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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
42570cf100239405d5bc48466e3fc1777dcfe369 | 42,600 | py | Python | flink-ml-framework/python/flink_ml_framework/node_pb2.py | Sxnan/flink-ai-extended | 7d4f561524dbf4f824f1b304305c61e94247c962 | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"ECL-2.0",
"BSD-3-Clause"
] | null | null | null | flink-ml-framework/python/flink_ml_framework/node_pb2.py | Sxnan/flink-ai-extended | 7d4f561524dbf4f824f1b304305c61e94247c962 | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"ECL-2.0",
"BSD-3-Clause"
] | null | null | null | flink-ml-framework/python/flink_ml_framework/node_pb2.py | Sxnan/flink-ai-extended | 7d4f561524dbf4f824f1b304305c61e94247c962 | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"ECL-2.0",
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: node.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf.internal import enum_type_wrapper
from google.protobuf import descriptor as _descriptor
from google.protobuf... | 36.101695 | 3,216 | 0.736878 | 5,076 | 42,600 | 5.89342 | 0.05989 | 0.051613 | 0.055457 | 0.041183 | 0.650075 | 0.62116 | 0.613004 | 0.597159 | 0.571987 | 0.54461 | 0 | 0.037979 | 0.132207 | 42,600 | 1,179 | 3,217 | 36.132316 | 0.771235 | 0.032535 | 0 | 0.683673 | 1 | 0.003711 | 0.153159 | 0.079517 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.005566 | 0 | 0.005566 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
425abed592a7fa92fdacc87e447beb0d3199e5aa | 1,422 | py | Python | setup.py | smok-serwis/bunia | 61f032c990f2be8cf9ed5182e847309dd30af91b | [
"MIT"
] | null | null | null | setup.py | smok-serwis/bunia | 61f032c990f2be8cf9ed5182e847309dd30af91b | [
"MIT"
] | 2 | 2016-12-21T10:04:38.000Z | 2017-01-10T19:11:00.000Z | setup.py | smok-serwis/bunia | 61f032c990f2be8cf9ed5182e847309dd30af91b | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# coding=UTF-8
from setuptools import setup
setup(name='bunia',
version='1.0',
description='Write commands that use multiple interfaes',
author='Piotr Maślanka',
author_email='pmaslanka@smok.co',
url='https://github.com/smok-serwis/bunia',
download_url='https:/... | 33.857143 | 120 | 0.582982 | 148 | 1,422 | 5.567568 | 0.655405 | 0.161408 | 0.212379 | 0.09466 | 0.07767 | 0.07767 | 0.07767 | 0 | 0 | 0 | 0 | 0.012658 | 0.277778 | 1,422 | 41 | 121 | 34.682927 | 0.789679 | 0.023207 | 0 | 0.081081 | 0 | 0 | 0.55876 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.027027 | 0 | 0.027027 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
4262625cbb53752ed80b407ba1b247631d318d82 | 2,128 | py | Python | apl/internal.py | baruchel/apl | 238247a24106c80aa57ad8aa797afca71550425f | [
"MIT"
] | 26 | 2017-09-19T20:14:22.000Z | 2022-01-24T01:27:49.000Z | apl/internal.py | baruchel/apl | 238247a24106c80aa57ad8aa797afca71550425f | [
"MIT"
] | null | null | null | apl/internal.py | baruchel/apl | 238247a24106c80aa57ad8aa797afca71550425f | [
"MIT"
] | 4 | 2018-09-08T11:26:30.000Z | 2021-12-01T03:09:21.000Z | # -*- coding: utf-8 -*-
import numpy as np
class AplError(Exception):
pass
class DomainError(AplError):
pass
class RankError(AplError):
pass
class InvalidAxisError(AplError):
pass
class AplArray(np.ndarray):
def apl_rho(self):
if len(self.__apl_stops__) == 0:
return _apl(np.... | 26.6 | 67 | 0.578477 | 279 | 2,128 | 4.179211 | 0.272401 | 0.054889 | 0.037736 | 0.054889 | 0.375643 | 0.295026 | 0.221269 | 0.221269 | 0.221269 | 0.221269 | 0 | 0.005305 | 0.291353 | 2,128 | 79 | 68 | 26.936709 | 0.767905 | 0.082707 | 0 | 0.25 | 0 | 0 | 0.01512 | 0 | 0 | 0 | 0 | 0.012658 | 0 | 1 | 0.133333 | false | 0.066667 | 0.016667 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
4266c95c0e94ea79feed1eb525616e5980a8ea00 | 95 | py | Python | class-notes/renshu_mondai/ex3-r.py | rhoenkelevra/python_simple_applications | 28ceb5f9fe7ecf11d606d49463385e92927e8f98 | [
"MIT"
] | null | null | null | class-notes/renshu_mondai/ex3-r.py | rhoenkelevra/python_simple_applications | 28ceb5f9fe7ecf11d606d49463385e92927e8f98 | [
"MIT"
] | null | null | null | class-notes/renshu_mondai/ex3-r.py | rhoenkelevra/python_simple_applications | 28ceb5f9fe7ecf11d606d49463385e92927e8f98 | [
"MIT"
] | null | null | null | num = int(input("数値を入力してください。:"))
for i in range(300):
if i % num == 0:
print(i)
| 13.571429 | 33 | 0.515789 | 15 | 95 | 3.266667 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.059701 | 0.294737 | 95 | 6 | 34 | 15.833333 | 0.671642 | 0 | 0 | 0 | 0 | 0 | 0.136842 | 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 |
426bc75da11c1756959ab2302ecce92057f4e82a | 960 | py | Python | doc/dsg/spark/python/ml/pca.py | XDean/Share | 2113554e1aee180cb93da328f465d234eadc952d | [
"Apache-2.0"
] | 2 | 2018-05-03T01:53:31.000Z | 2018-05-03T09:28:17.000Z | doc/dsg/spark/python/ml/pca.py | XDean/Share | 2113554e1aee180cb93da328f465d234eadc952d | [
"Apache-2.0"
] | null | null | null | doc/dsg/spark/python/ml/pca.py | XDean/Share | 2113554e1aee180cb93da328f465d234eadc952d | [
"Apache-2.0"
] | null | null | null | from pyspark.ml.feature import PCA
from pyspark.ml.linalg import Vectors
from pyspark.sql import *
spark = SparkSession.builder.getOrCreate()
data = [(Vectors.sparse(5, [(1, 1.0), (3, 7.0)]),),
(Vectors.dense([2.0, 0.0, 3.0, 4.0, 5.0]),),
(Vectors.dense([4.0, 0.0, 0.0, 6.0, 7.0]),)]
df = spark.createD... | 38.4 | 63 | 0.514583 | 100 | 960 | 4.94 | 0.48 | 0.024292 | 0.024292 | 0.016194 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.210399 | 0.138542 | 960 | 24 | 64 | 40 | 0.386941 | 0.451042 | 0 | 0 | 0 | 0 | 0.073218 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 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 |
426c69fb251ab291144a4ec9d6182c0efc0188bf | 6,251 | py | Python | cogs/decriptions.py | Ryuk-dev75/Skilly_discord_bot | cdf27229f679771eb3aa7660ac1a46e5eea2131b | [
"Unlicense"
] | 1 | 2021-01-09T10:21:00.000Z | 2021-01-09T10:21:00.000Z | cogs/decriptions.py | Ryuk-dev75/Skilly_discord_bot | cdf27229f679771eb3aa7660ac1a46e5eea2131b | [
"Unlicense"
] | null | null | null | cogs/decriptions.py | Ryuk-dev75/Skilly_discord_bot | cdf27229f679771eb3aa7660ac1a46e5eea2131b | [
"Unlicense"
] | null | null | null | #!/usr/bin/env python3
import discord
from discord.ext import commands
import base64
import requests
import hashlib
from bs4 import BeautifulSoup
class Decriptions( commands.Cog ):
def __init__( self , client ):
self.client = client
''' On ready Event'''
@commands.Cog.listener()
async def on... | 28.543379 | 112 | 0.613822 | 834 | 6,251 | 4.567146 | 0.167866 | 0.028879 | 0.063009 | 0.054608 | 0.727225 | 0.727225 | 0.663429 | 0.625098 | 0.625098 | 0.625098 | 0 | 0.025499 | 0.222044 | 6,251 | 218 | 113 | 28.674312 | 0.757763 | 0.06159 | 0 | 0.355556 | 0 | 0.133333 | 0.373603 | 0.039553 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022222 | false | 0 | 0.066667 | 0 | 0.1 | 0.011111 | 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 |
427ba8783db80900bbb6c4aaa2d64d031b594b1d | 161 | py | Python | 1_create_file.py | ghwls12356/RPA | 2b692299a2cb3970c8e59dd01d8a55f1d463959f | [
"MIT"
] | 1 | 2021-10-14T08:09:21.000Z | 2021-10-14T08:09:21.000Z | 1_create_file.py | ghwls12356/RPA | 2b692299a2cb3970c8e59dd01d8a55f1d463959f | [
"MIT"
] | null | null | null | 1_create_file.py | ghwls12356/RPA | 2b692299a2cb3970c8e59dd01d8a55f1d463959f | [
"MIT"
] | null | null | null | from openpyxl import Workbook
wb = Workbook() #새 워크북 생성
ws = wb.active # 현재 활성화된 sheet 가져옴
ws.title = "jinsheet" # sheet의 이름변경
wb.save("sample.xlsx")
wb.close()
| 23 | 35 | 0.708075 | 27 | 161 | 4.222222 | 0.814815 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.161491 | 161 | 6 | 36 | 26.833333 | 0.844444 | 0.236025 | 0 | 0 | 0 | 0 | 0.158333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
42945fc59a6d9327483305f86e1659d4dcf70a0d | 508 | py | Python | hf/core/debug_util.py | zhaotudou/HeteroFusionRCNN | 0eb589c660a50c9adad14758e204a2f152ec22cd | [
"MIT"
] | 1 | 2021-08-11T12:18:25.000Z | 2021-08-11T12:18:25.000Z | hf/core/debug_util.py | zhaotudou/HeteroFusionRCNN | 0eb589c660a50c9adad14758e204a2f152ec22cd | [
"MIT"
] | null | null | null | hf/core/debug_util.py | zhaotudou/HeteroFusionRCNN | 0eb589c660a50c9adad14758e204a2f152ec22cd | [
"MIT"
] | 1 | 2021-08-11T12:18:30.000Z | 2021-08-11T12:18:30.000Z | import numpy as np
import tensorflow as tf
def print_tensor(tensor_np):
msg = "contains_NaN" if np.isnan(tensor_np).any() else "OK"
msg += " empty_size" if tensor_np.size == 0 else " OK"
print("==DEBUG==" + str(tensor_np.shape) + " " + msg)
return tensor_np
def debug(tensor):
debug_tensor = tf.p... | 25.4 | 74 | 0.661417 | 76 | 508 | 4.223684 | 0.394737 | 0.124611 | 0.158879 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00489 | 0.194882 | 508 | 19 | 75 | 26.736842 | 0.779951 | 0 | 0 | 0 | 0 | 0 | 0.094488 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.153846 | 0 | 0.615385 | 0.384615 | 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 |
429ee18e154577bab787ce1011f763f0eb62913e | 6,402 | py | Python | dbchat/cli.py | pioro/dbchat | 7607033d07be0f8de02a5b8eef46f29849b172fc | [
"Apache-2.0"
] | 1 | 2019-04-18T19:25:45.000Z | 2019-04-18T19:25:45.000Z | dbchat/cli.py | pioro/dbchat | 7607033d07be0f8de02a5b8eef46f29849b172fc | [
"Apache-2.0"
] | null | null | null | dbchat/cli.py | pioro/dbchat | 7607033d07be0f8de02a5b8eef46f29849b172fc | [
"Apache-2.0"
] | null | null | null | import click
import logging
import sys
from logging.handlers import TimedRotatingFileHandler
from lib.oracle.database import database_class
from lib.oracle.virtual import virtual
from lib.oracle.physical import physical
from lib.oracle.rds import rds
from lib.config import loadconfig
from lib.config import get_list
@... | 25.105882 | 78 | 0.600906 | 808 | 6,402 | 4.686881 | 0.154703 | 0.031687 | 0.066543 | 0.085556 | 0.635067 | 0.622392 | 0.57935 | 0.570108 | 0.567996 | 0.567996 | 0 | 0.00518 | 0.246173 | 6,402 | 254 | 79 | 25.204724 | 0.779528 | 0.056857 | 0 | 0.610465 | 0 | 0.005814 | 0.155459 | 0.006869 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.069767 | 0.05814 | null | null | 0.069767 | 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 |
42a090d6e6507135a2f7e402edf6b836aad976b1 | 241 | py | Python | ituro/accounts/mixins.py | kayduemre/ituro | eb5bb0655c2d85eed212d28c1d154006c57a4f03 | [
"MIT"
] | 9 | 2015-03-18T01:59:24.000Z | 2022-03-09T06:36:21.000Z | ituro/accounts/mixins.py | kayduemre/ituro | eb5bb0655c2d85eed212d28c1d154006c57a4f03 | [
"MIT"
] | 29 | 2015-03-18T01:59:49.000Z | 2021-06-10T20:39:03.000Z | ituro/accounts/mixins.py | kayduemre/ituro | eb5bb0655c2d85eed212d28c1d154006c57a4f03 | [
"MIT"
] | 10 | 2016-01-31T05:44:46.000Z | 2019-10-15T06:12:27.000Z | class RemoveUsernameFieldMixin(object):
"Removes username field from base_fields"
def __init__(self, *args, **kwargs):
self.base_fields.pop("username")
super(RemoveUsernameFieldMixin, self).__init__(*args, **kwargs)
| 34.428571 | 71 | 0.713693 | 25 | 241 | 6.48 | 0.64 | 0.123457 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.165975 | 241 | 6 | 72 | 40.166667 | 0.80597 | 0.161826 | 0 | 0 | 0 | 0 | 0.195021 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
42a2a15d85f9f4eed709038d1fb307343d30cc1b | 608 | py | Python | newColor.py | dusansimic/detekcija-melanoma | db487a1276ab8841fd0a25bdef1159fb5ad1517e | [
"MIT"
] | 2 | 2018-06-24T16:03:03.000Z | 2018-06-24T22:28:36.000Z | newColor.py | dusansimic/detekcija-melanoma | db487a1276ab8841fd0a25bdef1159fb5ad1517e | [
"MIT"
] | null | null | null | newColor.py | dusansimic/detekcija-melanoma | db487a1276ab8841fd0a25bdef1159fb5ad1517e | [
"MIT"
] | null | null | null | import cv2 as cv
import numpy as np
import preprocessing as prep
import util as util
from matplotlib import pyplot as plt
def getColorDeviation(img, out):
# Apply mask on the image
res = cv.bitwise_and(img, img, mask = out)
# Leave out black pixels (those which are removed by mask)
# TODO: Should remove those outs... | 27.636364 | 68 | 0.695724 | 95 | 608 | 4.442105 | 0.6 | 0.018957 | 0.07109 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018219 | 0.1875 | 608 | 21 | 69 | 28.952381 | 0.836032 | 0.34375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047619 | 0 | 1 | 0.071429 | false | 0 | 0.357143 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
42a7f7dced812db3292d0c7e38f05cbc7ac0ce9f | 265 | py | Python | catalog/bindings/csw/geodesic_string.py | NIVANorge/s-enda-playground | 56ae0a8978f0ba8a5546330786c882c31e17757a | [
"Apache-2.0"
] | null | null | null | catalog/bindings/csw/geodesic_string.py | NIVANorge/s-enda-playground | 56ae0a8978f0ba8a5546330786c882c31e17757a | [
"Apache-2.0"
] | null | null | null | catalog/bindings/csw/geodesic_string.py | NIVANorge/s-enda-playground | 56ae0a8978f0ba8a5546330786c882c31e17757a | [
"Apache-2.0"
] | null | null | null | from dataclasses import dataclass
from bindings.csw.geodesic_string_type import GeodesicStringType
__NAMESPACE__ = "http://www.opengis.net/gml"
@dataclass
class GeodesicString(GeodesicStringType):
class Meta:
namespace = "http://www.opengis.net/gml"
| 24.090909 | 64 | 0.777358 | 30 | 265 | 6.666667 | 0.633333 | 0.13 | 0.16 | 0.23 | 0.29 | 0.29 | 0 | 0 | 0 | 0 | 0 | 0 | 0.128302 | 265 | 10 | 65 | 26.5 | 0.865801 | 0 | 0 | 0 | 0 | 0 | 0.196226 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
35e952d6599cda8f762ba1ebdbba8dd2870aac57 | 32,320 | py | Python | steam/protobufs/steammessages_contentsystem_pb2.py | sammiee5311/steam | 79231d5bbf7ed4c7781680d392274d6bd21b9d7e | [
"MIT"
] | 727 | 2015-07-13T20:32:55.000Z | 2022-03-31T11:55:34.000Z | steam/protobufs/steammessages_contentsystem_pb2.py | sammiee5311/steam | 79231d5bbf7ed4c7781680d392274d6bd21b9d7e | [
"MIT"
] | 335 | 2015-07-22T12:28:35.000Z | 2022-02-24T11:53:12.000Z | steam/protobufs/steammessages_contentsystem_pb2.py | sammiee5311/steam | 79231d5bbf7ed4c7781680d392274d6bd21b9d7e | [
"MIT"
] | 155 | 2015-07-22T08:53:19.000Z | 2022-03-30T10:59:22.000Z | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: steammessages_contentsystem.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from... | 49.570552 | 3,262 | 0.794926 | 3,592 | 32,320 | 6.795657 | 0.089922 | 0.039328 | 0.058419 | 0.0288 | 0.681729 | 0.537075 | 0.475625 | 0.440147 | 0.416592 | 0.407907 | 0 | 0.035367 | 0.105043 | 32,320 | 651 | 3,263 | 49.646697 | 0.808539 | 0.030941 | 0 | 0.649241 | 1 | 0.001686 | 0.282575 | 0.253218 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.003373 | 0.013491 | 0 | 0.013491 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
35e9ed6c984118c9af803bedf384b7cceaa53ad3 | 675 | py | Python | src/py_wizard/questions/DateQuestion.py | shearern/PyWizard | fac7f859707bc7fe36737caa794c159a66ea0789 | [
"MIT"
] | null | null | null | src/py_wizard/questions/DateQuestion.py | shearern/PyWizard | fac7f859707bc7fe36737caa794c159a66ea0789 | [
"MIT"
] | null | null | null | src/py_wizard/questions/DateQuestion.py | shearern/PyWizard | fac7f859707bc7fe36737caa794c159a66ea0789 | [
"MIT"
] | null | null | null | '''
Created on Mar 25, 2013
@author: nate
'''
from datetime import datetime
from SimpleQuestion import SimpleQuestion
class DateQuestion(SimpleQuestion):
'''A question where the answer is a date'''
def __init__(self, name, question, format='%Y-%m-%d', default=None):
self.__format = ... | 24.107143 | 73 | 0.614815 | 78 | 675 | 5.051282 | 0.5 | 0.040609 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012685 | 0.299259 | 675 | 27 | 74 | 25 | 0.820296 | 0.112593 | 0 | 0 | 0 | 0 | 0.0322 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.153846 | 0.076923 | 0.615385 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
35f010badc8a70fc58d03b9433adaa3d8b05f42c | 1,704 | py | Python | tomheon/day16/day16-1.py | tomheon/advent2020 | f7193d5e437a4a27e904d3058ee3d72f3e02c571 | [
"MIT"
] | null | null | null | tomheon/day16/day16-1.py | tomheon/advent2020 | f7193d5e437a4a27e904d3058ee3d72f3e02c571 | [
"MIT"
] | 1 | 2020-12-06T07:51:48.000Z | 2020-12-08T05:03:11.000Z | tomheon/day16/day16-1.py | tomheon/advent2020 | f7193d5e437a4a27e904d3058ee3d72f3e02c571 | [
"MIT"
] | 8 | 2020-12-01T21:29:21.000Z | 2020-12-09T23:55:15.000Z | import sys
from itertools import takewhile, dropwhile
class Rule:
def __init__(self, field, ranges):
self.field = field
self.ranges = ranges
def __repr__(self):
return f'Rule {self.field} {self.ranges}'
def is_valid(self, value):
return any([lower <= value <= upper for (... | 25.432836 | 83 | 0.659624 | 252 | 1,704 | 4.238095 | 0.242063 | 0.044944 | 0.022472 | 0.036517 | 0.093633 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001495 | 0.214789 | 1,704 | 66 | 84 | 25.818182 | 0.796712 | 0 | 0 | 0 | 0 | 0 | 0.04284 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.255814 | false | 0 | 0.046512 | 0.093023 | 0.511628 | 0.023256 | 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 |
c41e1caa473048568c86147f052454a94d5ab3c6 | 779 | py | Python | tests/test_ec2_adapter.py | tobi-wan-kenobi/timewarp | 5fa35033924220dc9fbea1a1420c92a01a1384c6 | [
"MIT"
] | 5 | 2019-08-24T11:57:28.000Z | 2021-02-04T18:40:47.000Z | tests/test_ec2_adapter.py | tobi-wan-kenobi/timewarp | 5fa35033924220dc9fbea1a1420c92a01a1384c6 | [
"MIT"
] | null | null | null | tests/test_ec2_adapter.py | tobi-wan-kenobi/timewarp | 5fa35033924220dc9fbea1a1420c92a01a1384c6 | [
"MIT"
] | 1 | 2018-12-27T16:42:10.000Z | 2018-12-27T16:42:10.000Z | import mock
import unittest
import datetime
from . import mock_boto3
import timewarp.ec2
class TestEc2Adapter(unittest.TestCase):
def setUp(self):
self.boto3 = mock_boto3.Boto3Mock()
self.invalidInstanceId = "abcdef"
def tearDown(self):
self.boto3.teardown()
def test_invalidIns... | 27.821429 | 81 | 0.72914 | 82 | 779 | 6.865854 | 0.47561 | 0.058615 | 0.069272 | 0.099467 | 0.301954 | 0.301954 | 0.301954 | 0.301954 | 0.301954 | 0.301954 | 0 | 0.020472 | 0.184852 | 779 | 27 | 82 | 28.851852 | 0.866142 | 0.065469 | 0 | 0.111111 | 0 | 0 | 0.008264 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 1 | 0.222222 | false | 0 | 0.277778 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
c429ea28ca3a5b374d801d201f022718535184ed | 2,583 | py | Python | ML/ML.py | mattblasa/ML_Master | fbdd19faf60d736db994d4850804f616909c135b | [
"MIT"
] | null | null | null | ML/ML.py | mattblasa/ML_Master | fbdd19faf60d736db994d4850804f616909c135b | [
"MIT"
] | null | null | null | ML/ML.py | mattblasa/ML_Master | fbdd19faf60d736db994d4850804f616909c135b | [
"MIT"
] | null | null | null | import numpy as np
import pandas as pd
import seaborn as sns
import matplotlib.pyplot as plt
from sklearn.model_selection import train_test_split
from sklearn.linear_model import LogisticRegression
from sklearn.metrics import confusion_matrix, precision_score, classification_report, roc_curve, auc
import numpy as ... | 30.388235 | 113 | 0.718157 | 344 | 2,583 | 5.162791 | 0.369186 | 0.068131 | 0.031532 | 0.016892 | 0.237613 | 0.20045 | 0.20045 | 0.20045 | 0.165541 | 0.114865 | 0 | 0.005427 | 0.144019 | 2,583 | 84 | 114 | 30.75 | 0.797829 | 0.077042 | 0 | 0.212766 | 0 | 0 | 0.045872 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.531915 | null | null | 0.021277 | 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 |
c42d01da8e36273b2fba134ca63a3088d52264a8 | 1,385 | py | Python | config.py | goldangera/pitch-perfect | 30fe8876e0069646721e73f173b8b098d5a3de68 | [
"MIT"
] | null | null | null | config.py | goldangera/pitch-perfect | 30fe8876e0069646721e73f173b8b098d5a3de68 | [
"MIT"
] | 4 | 2021-02-08T20:31:31.000Z | 2022-03-11T23:51:59.000Z | config.py | goldangera/pitch-perfect | 30fe8876e0069646721e73f173b8b098d5a3de68 | [
"MIT"
] | null | null | null | import os
class Config:
'''
General configuration parent class
'''
SECRET_KEY = os.environ.get('SECRET_KEY')
SQLALCHEMY_DATABASE_URI = 'postgresql+psycopg2://golda:123@localhost/pitch'
UPLOADED_PHOTOS_DEST ='app/static/photos'
SQLALCHEMY_TRACK_MODIFICATIONS = True
# e-mail configuratio... | 22.704918 | 84 | 0.684477 | 157 | 1,385 | 5.904459 | 0.382166 | 0.038835 | 0.05178 | 0.064725 | 0.221143 | 0.221143 | 0.221143 | 0.221143 | 0.221143 | 0.221143 | 0 | 0.006422 | 0.212996 | 1,385 | 60 | 85 | 23.083333 | 0.844037 | 0.409386 | 0 | 0 | 0 | 0 | 0.215768 | 0.065007 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.090909 | 0.045455 | 0 | 0.727273 | 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 |
c439dd47517d880e4a64c5030f389f3d36bcf09b | 443 | py | Python | src/spn/experiments/AQP/leaves/static/StaticNumeric.py | tkrons/SPFlow_topdownrules | 6227fc973f4f36da7fbe25fa500d656eb7273033 | [
"Apache-2.0"
] | 199 | 2018-11-13T10:37:45.000Z | 2022-02-06T17:07:28.000Z | src/spn/experiments/AQP/leaves/static/StaticNumeric.py | minimrbanana/SPFlow | 32233bf29d107c62f0f727b0e64aaa74b37cfe1e | [
"Apache-2.0"
] | 46 | 2018-11-30T13:40:38.000Z | 2022-01-22T21:05:07.000Z | src/spn/experiments/AQP/leaves/static/StaticNumeric.py | minimrbanana/SPFlow | 32233bf29d107c62f0f727b0e64aaa74b37cfe1e | [
"Apache-2.0"
] | 78 | 2018-11-13T10:37:48.000Z | 2022-03-14T21:34:13.000Z | """
Created on June 21, 2018
@author: Moritz
"""
from spn.structure.Base import Leaf
class StaticNumeric(Leaf):
def __init__(self, val, scope=None):
Leaf.__init__(self, scope=scope)
self.val = val
@property
def mode(self):
return self.val
def create_static_leaf(val, scope):
... | 19.26087 | 87 | 0.670429 | 60 | 443 | 4.783333 | 0.616667 | 0.073171 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020349 | 0.223476 | 443 | 22 | 88 | 20.136364 | 0.813953 | 0.092551 | 0 | 0 | 0 | 0 | 0.14467 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 1 | 0.272727 | false | 0 | 0.090909 | 0.090909 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
c43c2dd5308c98533d18fee91644f94c1685b3f2 | 1,023 | py | Python | nlde/policy/nopolicy.py | Lars-H/federated_crop | 8e936926462aa5df5a9b8e6b42b061a3623fddf4 | [
"MIT"
] | 3 | 2020-10-30T20:52:31.000Z | 2021-09-15T07:33:09.000Z | crop_engine/nlde/policy/nopolicy.py | Lars-H/slurp | 0c7c8a5ca62145bedaff5791d6f54337674da2ea | [
"MIT"
] | null | null | null | crop_engine/nlde/policy/nopolicy.py | Lars-H/slurp | 0c7c8a5ca62145bedaff5791d6f54337674da2ea | [
"MIT"
] | null | null | null | """
Created on Nov 24, 2011
@author: Maribel Acosta
"""
from policy import Policy
class NoPolicy(Policy):
"""
Implements a routing policy that follows the operators order indicated by the query plan.
"""
def __init__(self):
self.priority_table = {}
def initialize_priorities(self... | 27.648649 | 110 | 0.620723 | 114 | 1,023 | 5.368421 | 0.517544 | 0.058824 | 0.083333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012397 | 0.290323 | 1,023 | 36 | 111 | 28.416667 | 0.830579 | 0.134897 | 0 | 0 | 0 | 0 | 0.006961 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0.055556 | 0.055556 | 0 | 0.388889 | 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 |
c43fa809cdd1a6038219dd5f6bf2ee25460e9986 | 137 | py | Python | recommends/__init__.py | Eksmo/django-recommends | 2e6d3a57cca6447cc3ac843db287bce19a0a161f | [
"MIT"
] | null | null | null | recommends/__init__.py | Eksmo/django-recommends | 2e6d3a57cca6447cc3ac843db287bce19a0a161f | [
"MIT"
] | null | null | null | recommends/__init__.py | Eksmo/django-recommends | 2e6d3a57cca6447cc3ac843db287bce19a0a161f | [
"MIT"
] | null | null | null | _version = "0.2.2"
__version__ = VERSION = tuple(map(int, _version.split('.')))
default_app_config = 'recommends.apps.RecommendsConfig'
| 27.4 | 60 | 0.737226 | 17 | 137 | 5.470588 | 0.764706 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024194 | 0.094891 | 137 | 4 | 61 | 34.25 | 0.725806 | 0 | 0 | 0 | 0 | 0 | 0.277372 | 0.233577 | 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 |
c451d4e7388ab50f43765bfb4ee4bf093791bfa5 | 150 | py | Python | main.py | KamilSuchanek95/Biometria_twarzy_SWiMwB_py | 249f421eb7647d1a8dcab8ed5d68e2c3a220d998 | [
"Unlicense"
] | null | null | null | main.py | KamilSuchanek95/Biometria_twarzy_SWiMwB_py | 249f421eb7647d1a8dcab8ed5d68e2c3a220d998 | [
"Unlicense"
] | null | null | null | main.py | KamilSuchanek95/Biometria_twarzy_SWiMwB_py | 249f421eb7647d1a8dcab8ed5d68e2c3a220d998 | [
"Unlicense"
] | null | null | null | #!/usr/bin/python3
from program.recognition_app import RecognitionApp
if __name__ == "__main__":
appli = RecognitionApp()
appli.mainloop()
| 16.666667 | 50 | 0.726667 | 16 | 150 | 6.25 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007937 | 0.16 | 150 | 8 | 51 | 18.75 | 0.785714 | 0.113333 | 0 | 0 | 0 | 0 | 0.061069 | 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 |
c456a943d1fa78cccb29fc5ddc48d70186389399 | 564 | py | Python | csem/meshing.py | michael-afanasiev/csem | e5c771b995440979717d8cf88ebc67eafd0e1557 | [
"MIT"
] | null | null | null | csem/meshing.py | michael-afanasiev/csem | e5c771b995440979717d8cf88ebc67eafd0e1557 | [
"MIT"
] | null | null | null | csem/meshing.py | michael-afanasiev/csem | e5c771b995440979717d8cf88ebc67eafd0e1557 | [
"MIT"
] | null | null | null |
import pyvtk
import numpy as np
from scipy.spatial import Delaunay
def generate_spherical_shell():
vertices = np.array([[0,0,0],
[2,0,0],
[2,2,0],
[0,2,0],
[0,0,12],
[2,0,12],
... | 25.636364 | 63 | 0.460993 | 63 | 564 | 4.063492 | 0.444444 | 0.046875 | 0.035156 | 0.03125 | 0.039063 | 0 | 0 | 0 | 0 | 0 | 0 | 0.084592 | 0.413121 | 564 | 21 | 64 | 26.857143 | 0.688822 | 0 | 0 | 0 | 1 | 0 | 0.017762 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.176471 | null | null | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c45710b23bdeff1286dce06de2027f6e60a262c6 | 101 | py | Python | Taller de Estrucuras de Control Repeticion/Punto04.py | Ricardoppp/Talleres_De_Algoritmos_Ricardo | 784efd97701b640bf8a5168c46ce3c4810ecb3d4 | [
"MIT"
] | null | null | null | Taller de Estrucuras de Control Repeticion/Punto04.py | Ricardoppp/Talleres_De_Algoritmos_Ricardo | 784efd97701b640bf8a5168c46ce3c4810ecb3d4 | [
"MIT"
] | null | null | null | Taller de Estrucuras de Control Repeticion/Punto04.py | Ricardoppp/Talleres_De_Algoritmos_Ricardo | 784efd97701b640bf8a5168c46ce3c4810ecb3d4 | [
"MIT"
] | null | null | null | #punto 4
#caja negra
suma=0
for i in range (6, 62, 5):
suma += i
#salidas
print (suma)
print (i) | 12.625 | 26 | 0.613861 | 20 | 101 | 3.1 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.077922 | 0.237624 | 101 | 8 | 27 | 12.625 | 0.727273 | 0.247525 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.4 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c46371bbf403515c82fe614fb4b2c9c94e597bcc | 30,678 | py | Python | gnosis/safe/tests/test_safe.py | HayesData/gnosis-py | 680709c6f070e6a13fd0d8fbb45594fce48dd68d | [
"MIT"
] | null | null | null | gnosis/safe/tests/test_safe.py | HayesData/gnosis-py | 680709c6f070e6a13fd0d8fbb45594fce48dd68d | [
"MIT"
] | null | null | null | gnosis/safe/tests/test_safe.py | HayesData/gnosis-py | 680709c6f070e6a13fd0d8fbb45594fce48dd68d | [
"MIT"
] | null | null | null | import logging
from django.test import TestCase
from eth_account import Account
from hexbytes import HexBytes
from web3 import Web3
from gnosis.eth.constants import GAS_CALL_DATA_BYTE, NULL_ADDRESS
from gnosis.eth.contracts import get_safe_contract
from gnosis.eth.utils import get_eth_address_with_key
from ..except... | 50.127451 | 1,591 | 0.645316 | 3,324 | 30,678 | 5.622443 | 0.098676 | 0.03981 | 0.031783 | 0.035689 | 0.531971 | 0.444968 | 0.378672 | 0.335973 | 0.311199 | 0.289315 | 0 | 0.074954 | 0.27417 | 30,678 | 611 | 1,592 | 50.209493 | 0.76436 | 0.04205 | 0 | 0.408389 | 0 | 0 | 0.080274 | 0.058368 | 0 | 1 | 0.002462 | 0.001637 | 0.156733 | 1 | 0.048565 | false | 0 | 0.02649 | 0 | 0.077263 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c46ec744a7f778cc6609c5e907be7c4513bca375 | 2,903 | py | Python | satinternet.py | ajsb85/beastcraft-telemetry | 1318d6b5bcdc8d43ab3a6c495da93907884e4f1a | [
"MIT"
] | 23 | 2016-01-07T23:47:21.000Z | 2022-03-02T11:53:00.000Z | satinternet.py | ajsb85/beastcraft-telemetry | 1318d6b5bcdc8d43ab3a6c495da93907884e4f1a | [
"MIT"
] | 3 | 2016-04-10T19:44:58.000Z | 2016-05-13T08:14:49.000Z | satinternet.py | ab77/beastcraft-telemetry | 1318d6b5bcdc8d43ab3a6c495da93907884e4f1a | [
"MIT"
] | 7 | 2016-02-29T16:40:06.000Z | 2020-04-12T05:11:37.000Z | #!/usr/bin/env python
import argparse, requests
from influxdb import InfluxDBClient
import os, time
from pprint import pprint
WAIT_TIME = 60 # seconds
def merge_dicts(x, y):
z = x.copy()
z.update(y)
return z
def main(host='localhost', port=8086):
user = 'admin'
password = 'admin'
dbname =... | 30.239583 | 102 | 0.477093 | 330 | 2,903 | 4.115152 | 0.39697 | 0.030928 | 0.030928 | 0.035346 | 0.201031 | 0.201031 | 0.201031 | 0.201031 | 0.201031 | 0.173785 | 0 | 0.020647 | 0.382708 | 2,903 | 95 | 103 | 30.557895 | 0.737165 | 0.009645 | 0 | 0.232877 | 0 | 0 | 0.121476 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.054795 | 0.054795 | null | null | 0.041096 | 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 |
c47eaf0dfae536215a93643b712f2d96fd4c70e0 | 3,613 | py | Python | lib/zope/interface/tests/unitfixtures.py | Kagami/kisa | 2597f67e519b8d66fec2684ff5a7726436bb029b | [
"CC0-1.0"
] | 7 | 2015-04-28T13:26:11.000Z | 2020-02-09T17:01:04.000Z | lib/zope/interface/tests/unitfixtures.py | Kagami/kisa | 2597f67e519b8d66fec2684ff5a7726436bb029b | [
"CC0-1.0"
] | null | null | null | lib/zope/interface/tests/unitfixtures.py | Kagami/kisa | 2597f67e519b8d66fec2684ff5a7726436bb029b | [
"CC0-1.0"
] | 3 | 2015-03-10T20:56:17.000Z | 2021-08-21T02:44:24.000Z | ##############################################################################
#
# Copyright (c) 2001, 2002 Zope Foundation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# TH... | 25.624113 | 78 | 0.623582 | 438 | 3,613 | 5.068493 | 0.369863 | 0.005405 | 0.014414 | 0.010811 | 0.089189 | 0.067568 | 0.045946 | 0.045946 | 0.045946 | 0.045946 | 0 | 0.012438 | 0.221146 | 3,613 | 140 | 79 | 25.807143 | 0.776475 | 0.277332 | 0 | 0.150685 | 0 | 0 | 0.122305 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.205479 | false | 0.09589 | 0.041096 | 0 | 0.671233 | 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 |
c489b00aa85126ea9e1c3ce7c5c991aee05b640e | 270 | py | Python | tests/runnable/runner/test_execution_mode.py | gift-surg/puma | 58beae3459a0c8d96adfe9af323e26868428df4d | [
"Apache-2.0"
] | null | null | null | tests/runnable/runner/test_execution_mode.py | gift-surg/puma | 58beae3459a0c8d96adfe9af323e26868428df4d | [
"Apache-2.0"
] | 13 | 2020-05-04T14:14:58.000Z | 2020-07-29T16:37:03.000Z | tests/runnable/runner/test_execution_mode.py | gift-surg/puma | 58beae3459a0c8d96adfe9af323e26868428df4d | [
"Apache-2.0"
] | null | null | null | from enum import auto, unique
from puma.helpers.testing.mixin import NotATestCaseEnum
@unique
class TestExecutionMode(NotATestCaseEnum):
WaitUntilStopped = auto()
EndQuicklyWithoutError = auto()
EndQuicklyWithError = auto()
IgnoreStopCommand = auto()
| 22.5 | 55 | 0.766667 | 24 | 270 | 8.625 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.159259 | 270 | 11 | 56 | 24.545455 | 0.911894 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.875 | 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 |
671ad952f64f4e2f2568c284c0aa21dc78a325b7 | 127 | py | Python | images 3.py | KarthikNandanSomisetty/idk-about-this...-but-do-give-a-like-to-it | 72f3e251f31fec7001286c57b7e63999a70c1b83 | [
"MIT"
] | null | null | null | images 3.py | KarthikNandanSomisetty/idk-about-this...-but-do-give-a-like-to-it | 72f3e251f31fec7001286c57b7e63999a70c1b83 | [
"MIT"
] | null | null | null | images 3.py | KarthikNandanSomisetty/idk-about-this...-but-do-give-a-like-to-it | 72f3e251f31fec7001286c57b7e63999a70c1b83 | [
"MIT"
] | null | null | null | from PIL import Image, ImageFilter
img = Image.open('./astro.jpg')
img.thumbnail((400, 400))
img.save("thumbnail_astro.jpg") | 18.142857 | 34 | 0.724409 | 19 | 127 | 4.789474 | 0.631579 | 0.175824 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052632 | 0.102362 | 127 | 7 | 35 | 18.142857 | 0.745614 | 0 | 0 | 0 | 0 | 0 | 0.234375 | 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 |
6742ccf0d190e623e8d2ef154fc7da65cc044588 | 2,022 | py | Python | examples/hacker_news/hacker_news_tests/test_ops/test_id_range_for_time.py | rpatil524/dagster | 6f918d94cbd543ab752ab484a65e3a40fd441716 | [
"Apache-2.0"
] | 1 | 2021-01-31T19:16:29.000Z | 2021-01-31T19:16:29.000Z | examples/hacker_news/hacker_news_tests/test_ops/test_id_range_for_time.py | rpatil524/dagster | 6f918d94cbd543ab752ab484a65e3a40fd441716 | [
"Apache-2.0"
] | null | null | null | examples/hacker_news/hacker_news_tests/test_ops/test_id_range_for_time.py | rpatil524/dagster | 6f918d94cbd543ab752ab484a65e3a40fd441716 | [
"Apache-2.0"
] | 1 | 2019-09-11T03:02:27.000Z | 2019-09-11T03:02:27.000Z | from dagster import build_op_context
from hacker_news.ops.id_range_for_time import (
binary_search_nearest_left,
binary_search_nearest_right,
id_range_for_time,
)
from hacker_news.resources.hn_resource import hn_snapshot_client
from hacker_news.resources.partition_bounds import partition_bounds
def test_b... | 37.444444 | 89 | 0.681998 | 295 | 2,022 | 4.389831 | 0.267797 | 0.138996 | 0.205405 | 0.23166 | 0.497297 | 0.494208 | 0.494208 | 0.471042 | 0.471042 | 0.240154 | 0 | 0.049717 | 0.214144 | 2,022 | 53 | 90 | 38.150943 | 0.765261 | 0.084075 | 0 | 0 | 0 | 0 | 0.03884 | 0 | 0 | 0 | 0 | 0 | 0.307692 | 1 | 0.076923 | false | 0 | 0.102564 | 0.025641 | 0.205128 | 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 |
6747f98d7a8451c8bcf16b6b2c4166398b7072d7 | 1,059 | py | Python | scriptable/ast/function/function.py | c7nw3r/scriptable | b285d865da41774c8321ebf51f5a468ef1c92402 | [
"Apache-2.0"
] | null | null | null | scriptable/ast/function/function.py | c7nw3r/scriptable | b285d865da41774c8321ebf51f5a468ef1c92402 | [
"Apache-2.0"
] | null | null | null | scriptable/ast/function/function.py | c7nw3r/scriptable | b285d865da41774c8321ebf51f5a468ef1c92402 | [
"Apache-2.0"
] | null | null | null | from typing import List
from scriptable.api import AST
from scriptable.api.ast_binding import ASTBinding
from scriptable.ast.function.function_head import FunctionHead
from scriptable.ast.function.function_tail import FunctionTail
class Function(AST[None]):
def __init__(self, head: FunctionHead, tail: FunctionTa... | 30.257143 | 63 | 0.6695 | 128 | 1,059 | 5.375 | 0.34375 | 0.05814 | 0.049419 | 0.072674 | 0.09593 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002494 | 0.242682 | 1,059 | 34 | 64 | 31.147059 | 0.855362 | 0.024551 | 0 | 0 | 0 | 0 | 0.007759 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.208333 | false | 0 | 0.25 | 0.083333 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
674deb263c2bae9db696c0e35be071b866a8c73f | 77 | py | Python | config.py | martjanz/shub2sqlite | c56aa7f7c49b20613a5ef7adf9e597c8b80e82c7 | [
"MIT"
] | 1 | 2018-10-09T09:54:30.000Z | 2018-10-09T09:54:30.000Z | config.py | martjanz/shub2sqlite | c56aa7f7c49b20613a5ef7adf9e597c8b80e82c7 | [
"MIT"
] | null | null | null | config.py | martjanz/shub2sqlite | c56aa7f7c49b20613a5ef7adf9e597c8b80e82c7 | [
"MIT"
] | null | null | null | # Scrapinghub API key
apikey = ""
# SQLite database file
database = "raw.db" | 15.4 | 22 | 0.701299 | 10 | 77 | 5.4 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 77 | 5 | 23 | 15.4 | 0.857143 | 0.519481 | 0 | 0 | 0 | 0 | 0.171429 | 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 |
67553c5b1fc48a0cd2b8d89252997831b247095e | 1,811 | py | Python | flatdata-py/generator/tests/generators/test_rust_generator.py | tianchengli/flatdata | 03ccf3669254ddef171d23a287c643dcd28650d2 | [
"Apache-2.0"
] | null | null | null | flatdata-py/generator/tests/generators/test_rust_generator.py | tianchengli/flatdata | 03ccf3669254ddef171d23a287c643dcd28650d2 | [
"Apache-2.0"
] | null | null | null | flatdata-py/generator/tests/generators/test_rust_generator.py | tianchengli/flatdata | 03ccf3669254ddef171d23a287c643dcd28650d2 | [
"Apache-2.0"
] | null | null | null | '''
Copyright (c) 2019 HERE Europe B.V.
See the LICENSE file in the root of this project for license details.
'''
import glob
from nose.tools import eq_
from generator.generators.rust import RustGenerator
from .assertions import generate_and_assert_in
from .schemas import schemas_and_expectations
def test_format_nu... | 42.116279 | 75 | 0.755936 | 233 | 1,811 | 5.459227 | 0.313305 | 0.163522 | 0.247642 | 0.330189 | 0.454403 | 0.316824 | 0.257075 | 0.257075 | 0.257075 | 0.257075 | 0 | 0.079899 | 0.12921 | 1,811 | 42 | 76 | 43.119048 | 0.726696 | 0.057979 | 0 | 0.0625 | 0 | 0 | 0.070165 | 0 | 0 | 0 | 0 | 0 | 0.0625 | 1 | 0.09375 | false | 0 | 0.15625 | 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 |
675bdc45ffadfa20cce564053f56bcf632966b0d | 439 | py | Python | utils/utils_nf.py | arcchang1236/camera-aware-noise-models | bf54628cac4227e98def5867e541331e695257d8 | [
"MIT"
] | 59 | 2020-07-24T12:49:11.000Z | 2022-03-03T07:17:50.000Z | utils/utils_nf.py | arcchang1236/camera-aware-noise-models | bf54628cac4227e98def5867e541331e695257d8 | [
"MIT"
] | 7 | 2020-08-28T06:26:16.000Z | 2022-03-31T11:35:50.000Z | utils/utils_nf.py | arcchang1236/camera-aware-noise-models | bf54628cac4227e98def5867e541331e695257d8 | [
"MIT"
] | 8 | 2020-08-13T08:51:50.000Z | 2021-05-20T05:00:38.000Z | import tensorflow as tf
def restore_last_model(ckpt_dir, sess, saver):
last_epoch = 0
ckpt = tf.train.get_checkpoint_state(ckpt_dir)
if ckpt:
print('loading ' + ckpt.model_checkpoint_path)
try:
last_epoch = int(ckpt.model_checkpoint_path.split('/')[-1].split('-')[-1])
saver.restore(sess, ckpt... | 33.769231 | 80 | 0.708428 | 64 | 439 | 4.625 | 0.515625 | 0.091216 | 0.192568 | 0.233108 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011019 | 0.173121 | 439 | 13 | 81 | 33.769231 | 0.804408 | 0 | 0 | 0 | 0 | 0 | 0.131818 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.083333 | 0 | 0.25 | 0.166667 | 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 |
67693ca5b29e52bd8a7439d3dd115087eb8f070c | 221 | py | Python | .vscode/settings.py | pting9y/python | a553b3048143f48ed617916335b13e31e4253eb2 | [
"MIT"
] | null | null | null | .vscode/settings.py | pting9y/python | a553b3048143f48ed617916335b13e31e4253eb2 | [
"MIT"
] | null | null | null | .vscode/settings.py | pting9y/python | a553b3048143f48ed617916335b13e31e4253eb2 | [
"MIT"
] | null | null | null | {
"python.formatting.provider": "black", // The Black code style
"python.linting.pylintEnabled": true,
"python.linting.enabled": true,
"editor.formatOnSave": true,
"breadcrumbs.enabled": false,
}
| 20.090909 | 66 | 0.656109 | 22 | 221 | 6.590909 | 0.681818 | 0.17931 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.190045 | 221 | 10 | 67 | 22.1 | 0.810056 | 0 | 0 | 0 | 0 | 0 | 0.545872 | 0.348624 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6781a99e070ae3764fb13551817524b993fe026f | 342 | py | Python | lnbits/extensions/diagonalley/views.py | stepansnigirev/lnbits | 82731dc901780b959d6ebecc4f61be137c8d2884 | [
"MIT"
] | 258 | 2020-04-27T21:36:21.000Z | 2021-10-30T23:24:48.000Z | lnbits/extensions/diagonalley/views.py | stepansnigirev/lnbits | 82731dc901780b959d6ebecc4f61be137c8d2884 | [
"MIT"
] | 283 | 2020-04-27T17:23:12.000Z | 2021-11-01T10:07:20.000Z | lnbits/extensions/diagonalley/views.py | stepansnigirev/lnbits | 82731dc901780b959d6ebecc4f61be137c8d2884 | [
"MIT"
] | 109 | 2020-04-28T06:00:17.000Z | 2021-10-13T02:48:28.000Z | from quart import g, render_template
from lnbits.decorators import check_user_exists, validate_uuids
from lnbits.extensions.diagonalley import diagonalley_ext
@diagonalley_ext.route("/")
@validate_uuids(["usr"], required=True)
@check_user_exists()
async def index():
return await render_template("diagonalley/inde... | 28.5 | 71 | 0.80117 | 46 | 342 | 5.73913 | 0.565217 | 0.106061 | 0.113636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.093567 | 342 | 11 | 72 | 31.090909 | 0.851613 | 0 | 0 | 0 | 0 | 0 | 0.076023 | 0.064327 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.375 | 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 |
679ad8a53dadfa5e88938f9a550e0355c4854764 | 170 | py | Python | 01-Introductions/02-While_loops/infinite_loop.py | francisrod01/udacity_python_foundations | 2a384cf35ce7eff547c88097cdc45cc4e8fc6041 | [
"MIT"
] | null | null | null | 01-Introductions/02-While_loops/infinite_loop.py | francisrod01/udacity_python_foundations | 2a384cf35ce7eff547c88097cdc45cc4e8fc6041 | [
"MIT"
] | null | null | null | 01-Introductions/02-While_loops/infinite_loop.py | francisrod01/udacity_python_foundations | 2a384cf35ce7eff547c88097cdc45cc4e8fc6041 | [
"MIT"
] | null | null | null | #!/usr/bin/python3.4
var = 1
while var == 1 : # This constructs an infinite loop
num = input("Enter a number: ")
print("You entered: ", num)
print("Good bye!")
| 18.888889 | 51 | 0.617647 | 26 | 170 | 4.038462 | 0.846154 | 0.07619 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030075 | 0.217647 | 170 | 8 | 52 | 21.25 | 0.759399 | 0.305882 | 0 | 0 | 0 | 0 | 0.327586 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.4 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
679d4ac79d7edd5f24e33d2c6d8c5f23fa4fe3eb | 2,596 | py | Python | controllers/default.py | Dans-labs/shebanq | e7efffc84bcedcc8c8a21638991fb765b95713df | [
"MIT"
] | 24 | 2016-06-28T21:32:09.000Z | 2022-03-02T05:42:00.000Z | controllers/default.py | Dans-labs/shebanq | e7efffc84bcedcc8c8a21638991fb765b95713df | [
"MIT"
] | 1 | 2018-07-08T09:38:07.000Z | 2021-10-21T18:56:13.000Z | controllers/default.py | Dans-labs/shebanq | e7efffc84bcedcc8c8a21638991fb765b95713df | [
"MIT"
] | 2 | 2018-08-24T15:12:16.000Z | 2021-07-30T09:34:23.000Z | EXPIRE = 3600 * 24 * 30
# def myerror(): return 1/0
# The next bit is used to be able to "import" this file
# for the purposes of documentation generation by mkdocstrings
if "cache" not in globals():
class Dummy:
def action(self):
return lambda f: f
def requires_signature(self):
... | 25.70297 | 77 | 0.616333 | 319 | 2,596 | 4.978056 | 0.451411 | 0.070529 | 0.141058 | 0.079345 | 0.131612 | 0.047229 | 0 | 0 | 0 | 0 | 0 | 0.009704 | 0.206086 | 2,596 | 100 | 78 | 25.96 | 0.760796 | 0.645609 | 0 | 0.08 | 0 | 0 | 0.100982 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.28 | false | 0 | 0 | 0.08 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
67a283f46d45ba1843a3e452ef25e4760705b3fe | 305 | py | Python | I.P.E. Pratico/Aula 06/exercicio_08b.py | GuilhermeSbizero0804/I.P.E | 53288fb70e1c8bbaf516bea0912f65f703f91497 | [
"MIT"
] | null | null | null | I.P.E. Pratico/Aula 06/exercicio_08b.py | GuilhermeSbizero0804/I.P.E | 53288fb70e1c8bbaf516bea0912f65f703f91497 | [
"MIT"
] | null | null | null | I.P.E. Pratico/Aula 06/exercicio_08b.py | GuilhermeSbizero0804/I.P.E | 53288fb70e1c8bbaf516bea0912f65f703f91497 | [
"MIT"
] | null | null | null | soma = 0
i = 0
n1 = int(input("Digite o primeiro numero: "))
n2 = int(input("Digite o segundo numero: "))
print("Soma: ")
'''while (i != n1):
soma = soma + n2
print(" + ",n2)
i = i + 1'''
for i in range (n1):
soma = soma + n2
print(" + ",n2)
print("= ", soma)
| 15.25 | 46 | 0.472131 | 43 | 305 | 3.348837 | 0.418605 | 0.145833 | 0.194444 | 0.208333 | 0.263889 | 0.263889 | 0 | 0 | 0 | 0 | 0 | 0.053659 | 0.327869 | 305 | 19 | 47 | 16.052632 | 0.64878 | 0 | 0 | 0 | 0 | 0 | 0.299517 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 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 |
67bdc3b80b4db84aa81e3301965da1e4ac013962 | 3,206 | py | Python | ymir/backend/src/pymir-controller/controller/invoker/invoker_task_importing.py | under-chaos/ymir | 83e98186b23429e6027b187cdade247f5f93e5de | [
"Apache-2.0"
] | 1 | 2022-01-12T03:12:47.000Z | 2022-01-12T03:12:47.000Z | ymir/backend/src/pymir-controller/controller/invoker/invoker_task_importing.py | under-chaos/ymir | 83e98186b23429e6027b187cdade247f5f93e5de | [
"Apache-2.0"
] | null | null | null | ymir/backend/src/pymir-controller/controller/invoker/invoker_task_importing.py | under-chaos/ymir | 83e98186b23429e6027b187cdade247f5f93e5de | [
"Apache-2.0"
] | null | null | null | import logging
import os
from typing import Dict
from controller.invoker.invoker_task_base import TaskBaseInvoker
from controller.utils import code, utils
from proto import backend_pb2
class TaskImportingInvoker(TaskBaseInvoker):
@classmethod
def task_invoke(cls, sandbox_root: str, repo_root: str, assets_con... | 49.323077 | 127 | 0.634124 | 394 | 3,206 | 4.837563 | 0.263959 | 0.034627 | 0.037775 | 0.03148 | 0.241343 | 0.210913 | 0.190976 | 0.190976 | 0.135362 | 0.135362 | 0 | 0.003021 | 0.277293 | 3,206 | 64 | 128 | 50.09375 | 0.819594 | 0.007486 | 0 | 0.076923 | 0 | 0.057692 | 0.133648 | 0.013522 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057692 | false | 0 | 0.423077 | 0 | 0.596154 | 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 |
67c4ec2a0027299b44bc546b69dd968b18c43822 | 169 | py | Python | Pacote download/Exercicios/Convertendo real para dolar.py | Henrique-GM/Exercicios_de_Python | 8cbbcaa31fc19e467576ab21ba3458d67052c40b | [
"Unlicense"
] | null | null | null | Pacote download/Exercicios/Convertendo real para dolar.py | Henrique-GM/Exercicios_de_Python | 8cbbcaa31fc19e467576ab21ba3458d67052c40b | [
"Unlicense"
] | null | null | null | Pacote download/Exercicios/Convertendo real para dolar.py | Henrique-GM/Exercicios_de_Python | 8cbbcaa31fc19e467576ab21ba3458d67052c40b | [
"Unlicense"
] | null | null | null | real = float(input('Quantos reais voçê têm na carteira? '))
dolar = 5.215
converter = real / dolar
print('Os dólares que voçê poderá ter é: {:.2f}R$'.format(converter)) | 33.8 | 69 | 0.704142 | 27 | 169 | 4.407407 | 0.851852 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034722 | 0.147929 | 169 | 5 | 69 | 33.8 | 0.791667 | 0 | 0 | 0 | 0 | 0 | 0.458824 | 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 |
67caa6e301f2f61b7930b8e9c44426aa0d8e4e8c | 156 | py | Python | config.py | ysanatomic/webpage-update-discord-bot | cd386324145f99a8ed498a9eb4edd913e5748953 | [
"MIT"
] | null | null | null | config.py | ysanatomic/webpage-update-discord-bot | cd386324145f99a8ed498a9eb4edd913e5748953 | [
"MIT"
] | null | null | null | config.py | ysanatomic/webpage-update-discord-bot | cd386324145f99a8ed498a9eb4edd913e5748953 | [
"MIT"
] | null | null | null | targets = ["http://example.com", "https://www.w3.org/People/Berners-Lee/", "http://0.0.0.0:8000/"]
secondsBetweenChecks = 10
CHANNEL_ID = 870331923527000105 | 52 | 98 | 0.717949 | 22 | 156 | 5.045455 | 0.818182 | 0.054054 | 0.054054 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.19863 | 0.064103 | 156 | 3 | 99 | 52 | 0.561644 | 0 | 0 | 0 | 0 | 0 | 0.484076 | 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 |
67e384764f62df13609507df3642b47709e3f80c | 3,208 | py | Python | DriveComputer/src/drive_control/computer_components/can_adapter.py | GSSM-AutoGolfCart/Drive-Computer | c0ca0ea33d8c6e643567d6318b160ce48ba73a37 | [
"MIT"
] | null | null | null | DriveComputer/src/drive_control/computer_components/can_adapter.py | GSSM-AutoGolfCart/Drive-Computer | c0ca0ea33d8c6e643567d6318b160ce48ba73a37 | [
"MIT"
] | null | null | null | DriveComputer/src/drive_control/computer_components/can_adapter.py | GSSM-AutoGolfCart/Drive-Computer | c0ca0ea33d8c6e643567d6318b160ce48ba73a37 | [
"MIT"
] | 2 | 2022-03-24T07:01:34.000Z | 2022-03-28T20:48:03.000Z | import serial
import logging
# Drive Computer Core Library
#
# Class to access the drive computer's CAN adapter
# Accepts and receives messages
#
# Part of the GSSM Autonomous Golf Cart
# Written by Joseph Telaak, class of 2022
# Convert a 16bit integer to 2 8bit integers
def sixteentoeight_coarse(message: int):
... | 26.295082 | 91 | 0.615648 | 402 | 3,208 | 4.855721 | 0.333333 | 0.05123 | 0.034836 | 0.021516 | 0.175205 | 0.070697 | 0.031762 | 0.031762 | 0 | 0 | 0 | 0.012105 | 0.27899 | 3,208 | 122 | 92 | 26.295082 | 0.83182 | 0.245948 | 0 | 0.035714 | 0 | 0 | 0.160654 | 0 | 0 | 0 | 0.001678 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.035714 | 0.107143 | 0.464286 | 0.017857 | 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 |
67e610abb313d04998ada5031074ce9a15c4a555 | 67 | py | Python | updater/scripts/builder/__init__.py | GuledS/Updater | d34e6061e9e8a1897b678d5773e13ba07b7a5546 | [
"BSD-3-Clause"
] | null | null | null | updater/scripts/builder/__init__.py | GuledS/Updater | d34e6061e9e8a1897b678d5773e13ba07b7a5546 | [
"BSD-3-Clause"
] | null | null | null | updater/scripts/builder/__init__.py | GuledS/Updater | d34e6061e9e8a1897b678d5773e13ba07b7a5546 | [
"BSD-3-Clause"
] | 2 | 2018-08-01T12:27:26.000Z | 2018-08-02T11:51:46.000Z | # Empty init.py to house python module
__all__ = ['build_project'] | 22.333333 | 38 | 0.746269 | 10 | 67 | 4.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.149254 | 67 | 3 | 39 | 22.333333 | 0.789474 | 0.537313 | 0 | 0 | 0 | 0 | 0.433333 | 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 |
67eb929fd99e67ac88312e2b1b577adf51302b22 | 1,542 | py | Python | samples/config.py | RebekkalPangras/IDV_MaskRCNN_Image_Segmentation | 0c1e5b290fc0c7dd6937ac80ad5e5aca236016b0 | [
"MIT"
] | null | null | null | samples/config.py | RebekkalPangras/IDV_MaskRCNN_Image_Segmentation | 0c1e5b290fc0c7dd6937ac80ad5e5aca236016b0 | [
"MIT"
] | null | null | null | samples/config.py | RebekkalPangras/IDV_MaskRCNN_Image_Segmentation | 0c1e5b290fc0c7dd6937ac80ad5e5aca236016b0 | [
"MIT"
] | null | null | null | import os
import sys
import time
import numpy as np
import imgaug # https://github.com/aleju/imgaug (pip3 install imgaug)
from pycocotools.coco import COCO
from pycocotools.cocoeval import COCOeval
from pycocotools import mask as maskUtils
# Root directory of the project
ROOT_DIR = "/content/IDV_MaskRCNN_Image_Segm... | 29.09434 | 70 | 0.679637 | 213 | 1,542 | 4.821596 | 0.568075 | 0.027264 | 0.019474 | 0.027264 | 0.033106 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015103 | 0.184176 | 1,542 | 52 | 71 | 29.653846 | 0.801272 | 0.498703 | 0 | 0 | 0 | 0 | 0.104839 | 0.064516 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.555556 | 0 | 0.777778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
db017f98dafe278448c4abc704705513f4c5c3e1 | 262 | py | Python | predictor/connectivity/classifier/imbalance/devel_config.py | tttor/csipb-jamu-prj | 33b08a8a12054c8a5a7240681a28c8b233b329ba | [
"MIT"
] | 5 | 2017-03-31T03:25:09.000Z | 2021-12-17T02:28:24.000Z | predictor/connectivity/classifier/imbalance/devel_config.py | tttor/csipb-jamu-prj | 33b08a8a12054c8a5a7240681a28c8b233b329ba | [
"MIT"
] | 165 | 2016-08-11T01:59:47.000Z | 2017-10-10T06:32:12.000Z | predictor/connectivity/classifier/imbalance/devel_config.py | tttor/csipb-jamu-prj | 33b08a8a12054c8a5a7240681a28c8b233b329ba | [
"MIT"
] | 11 | 2015-06-15T04:25:59.000Z | 2021-04-18T09:39:16.000Z | # devel_config.py
config = dict(method='esvm',
testSize=0.30,
maxTestingSamples=0,
smoteBatchSize=10000,
maxNumberOfSmoteBatch=0,
datasetDir='../../dataset/connectivity/compound_vs_protein')
| 29.111111 | 74 | 0.580153 | 22 | 262 | 6.772727 | 0.863636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055249 | 0.30916 | 262 | 8 | 75 | 32.75 | 0.767956 | 0.057252 | 0 | 0 | 0 | 0 | 0.204082 | 0.187755 | 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 |
db029184c2de33d5594c56d952be5b7b560b3c4c | 476 | py | Python | user.py | HWaruguru/Password-Locker | 084185ff74f78dca8da87a6993a4d0fde4d527fd | [
"MIT"
] | null | null | null | user.py | HWaruguru/Password-Locker | 084185ff74f78dca8da87a6993a4d0fde4d527fd | [
"MIT"
] | null | null | null | user.py | HWaruguru/Password-Locker | 084185ff74f78dca8da87a6993a4d0fde4d527fd | [
"MIT"
] | null | null | null | import pyperclip
import random
import string
class User:
"""
Class that creates user accounts and saves the user's information.
"""
def __init__(self, username, password):
'''
__init__ method that helps us define properties for each object.
Args:
username: Ne... | 22.666667 | 74 | 0.609244 | 51 | 476 | 5.529412 | 0.568627 | 0.085106 | 0.092199 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.327731 | 476 | 20 | 75 | 23.8 | 0.88125 | 0.460084 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.285714 | 0.428571 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 2 |
db03652f6e37d67368354f57c4214706441945da | 375 | py | Python | challenges/binary_search/binary_search.py | asakatida/data-structures-and-algorithms.py | 587d1a66a6c15a3c7d7786275608f065687e1810 | [
"MIT"
] | null | null | null | challenges/binary_search/binary_search.py | asakatida/data-structures-and-algorithms.py | 587d1a66a6c15a3c7d7786275608f065687e1810 | [
"MIT"
] | 2 | 2020-09-24T13:13:49.000Z | 2021-06-25T15:15:35.000Z | challenges/binary_search/binary_search.py | grandquista/data-structures-and-algorithms.py | 587d1a66a6c15a3c7d7786275608f065687e1810 | [
"MIT"
] | null | null | null | def binary_search(array, key):
bound_high = len(array) - 1
bound_low = 0
index = 0
while bound_low <= bound_high:
index = bound_low + (bound_high - bound_low) // 2
if array[index] == key:
return index
elif array[index] < key:
bound_low = index + 1
... | 26.785714 | 57 | 0.538667 | 49 | 375 | 3.918367 | 0.367347 | 0.208333 | 0.135417 | 0.177083 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029536 | 0.368 | 375 | 13 | 58 | 28.846154 | 0.780591 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0 | 0 | 0.230769 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
db07c15558bc220a33e8c766fa3d5d0d5b827eaf | 454 | py | Python | owtf/plugins/web/passive/WS_Information_Gathering@OWTF-WS-001.py | Lonewolf-Information-systems/owtf | 65355ce8bf4a4ea0177e24ee106f77e2f87c17fa | [
"BSD-3-Clause"
] | 1 | 2018-02-05T12:10:28.000Z | 2018-02-05T12:10:28.000Z | owtf/plugins/web/passive/WS_Information_Gathering@OWTF-WS-001.py | Lonewolf-Information-systems/owtf | 65355ce8bf4a4ea0177e24ee106f77e2f87c17fa | [
"BSD-3-Clause"
] | 2 | 2021-03-11T03:35:23.000Z | 2022-02-10T23:40:23.000Z | owtf/plugins/web/passive/WS_Information_Gathering@OWTF-WS-001.py | Lonewolf-Information-systems/owtf | 65355ce8bf4a4ea0177e24ee106f77e2f87c17fa | [
"BSD-3-Clause"
] | null | null | null | """
PASSIVE Plugin for Testing: WS Information Gathering (OWASP-WS-001)
"""
from owtf.dependency_management.dependency_resolver import ServiceLocator
DESCRIPTION = "Google Hacking/Third party sites for Web Services"
def run(PluginInfo):
resource = ServiceLocator.get_component("resource").get_resources('WSPassi... | 32.428571 | 106 | 0.80837 | 49 | 454 | 7.346939 | 0.734694 | 0.094444 | 0.144444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007335 | 0.099119 | 454 | 13 | 107 | 34.923077 | 0.872861 | 0.147577 | 0 | 0 | 0 | 0 | 0.313984 | 0.087071 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.2 | 0.2 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
db0c5727dd231a1d40579a61bf4d3a275c993dc1 | 544 | py | Python | Day1to3/Day3PomodoroTimer.py | craig3050/100DaysOfCode | 16abc8b54217d210537590acd014a820a56641b3 | [
"MIT"
] | null | null | null | Day1to3/Day3PomodoroTimer.py | craig3050/100DaysOfCode | 16abc8b54217d210537590acd014a820a56641b3 | [
"MIT"
] | null | null | null | Day1to3/Day3PomodoroTimer.py | craig3050/100DaysOfCode | 16abc8b54217d210537590acd014a820a56641b3 | [
"MIT"
] | null | null | null | from datetime import datetime
from datetime import timedelta
from time import sleep
time_counter = input("Please enter the time for the timer in minutes: ")
time_now = datetime.today()
print(time_now)
time_counter = int(time_counter) * 60
print(time_counter)
time_counter = timedelta(seconds = time_counter)
print(tim... | 25.904762 | 87 | 0.740809 | 77 | 544 | 5.038961 | 0.350649 | 0.283505 | 0.113402 | 0.185567 | 0.231959 | 0.159794 | 0 | 0 | 0 | 0 | 0 | 0.00641 | 0.139706 | 544 | 20 | 88 | 27.2 | 0.82265 | 0.150735 | 0 | 0.153846 | 0 | 0 | 0.104575 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.230769 | 0 | 0.230769 | 0.307692 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
db117c7b0a78ab250f3dd8008f9579fbceb4802c | 427 | py | Python | main.py | MarcoFavorito/google-hashcode-2018 | 66f46f813c289768b2423326a3055a271ea4bfbb | [
"MIT"
] | null | null | null | main.py | MarcoFavorito/google-hashcode-2018 | 66f46f813c289768b2423326a3055a271ea4bfbb | [
"MIT"
] | null | null | null | main.py | MarcoFavorito/google-hashcode-2018 | 66f46f813c289768b2423326a3055a271ea4bfbb | [
"MIT"
] | null | null | null | import sys
from src.sol import earliest_start_earliest_finish, skip_rides
from src.sol.random_solution import random_solution
from src.utils import parse_input
def main():
filename = sys.argv[1]
input_obj = parse_input(filename)
# o = random_solution(input_obj)
# o = earliest_start_earliest_finish.s... | 20.333333 | 62 | 0.733021 | 63 | 427 | 4.571429 | 0.412698 | 0.111111 | 0.069444 | 0.1875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002841 | 0.175644 | 427 | 20 | 63 | 21.35 | 0.815341 | 0.187354 | 0 | 0 | 0 | 0 | 0.023256 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.363636 | 0 | 0.454545 | 0.090909 | 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 |
db12586ef3de0a0cc08baed8125fbb2f770c69bf | 202 | py | Python | 67-69-pyperclip/my-code/simple_clipboard_logger_no_rpt.py | Anthlis/My_100_Days_Of_Python | 9bdc36075f633099bd70161ae19ffad7ab88a797 | [
"MIT"
] | 2 | 2020-11-15T12:44:01.000Z | 2021-11-15T12:26:32.000Z | 67-69-pyperclip/my-code/simple_clipboard_logger_no_rpt.py | Anthlis/My_100_Days_Of_Python | 9bdc36075f633099bd70161ae19ffad7ab88a797 | [
"MIT"
] | 1 | 2021-06-01T23:51:28.000Z | 2021-06-01T23:51:28.000Z | 67-69-pyperclip/my-code/simple_clipboard_logger_no_rpt.py | Anthlis/My_100_Days_Of_Python | 9bdc36075f633099bd70161ae19ffad7ab88a797 | [
"MIT"
] | 1 | 2021-01-06T14:36:27.000Z | 2021-01-06T14:36:27.000Z | import time
import pyperclip
old_word = ""
while(True):
time.sleep(2)
new_word=pyperclip.paste()
if new_word != old_word:
print(pyperclip.paste())
old_word=pyperclip.paste() | 20.2 | 34 | 0.658416 | 27 | 202 | 4.740741 | 0.481481 | 0.164063 | 0.28125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006329 | 0.217822 | 202 | 10 | 34 | 20.2 | 0.803797 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 0.222222 | 0.111111 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
db1eccf6aaefedc1278005c89229fe870a58b6b4 | 870 | py | Python | setup.py | shalevy1/editablegrid-python-sqlite-example | 14de3c0412a7d7441dd5a640dd535f52473fd32e | [
"MIT"
] | null | null | null | setup.py | shalevy1/editablegrid-python-sqlite-example | 14de3c0412a7d7441dd5a640dd535f52473fd32e | [
"MIT"
] | null | null | null | setup.py | shalevy1/editablegrid-python-sqlite-example | 14de3c0412a7d7441dd5a640dd535f52473fd32e | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: UTF-8 -*-
#
# This file is base on EditableGrid example.
# http://editablegrid.net
#
# Copyright 2018 by ceprio
# This file is part of editablegrid-python-sqlite-example which is released under the MIT License.
# See file LICENCE_1 or go to https://github.com/ceprio/edita... | 24.857143 | 100 | 0.673563 | 123 | 870 | 4.634146 | 0.626016 | 0.063158 | 0.073684 | 0.094737 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012857 | 0.195402 | 870 | 34 | 101 | 25.588235 | 0.801429 | 0.413793 | 0 | 0 | 0 | 0 | 0.12024 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | true | 0.058824 | 0.235294 | 0.058824 | 0.411765 | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
db310ea9a83f9a1a192beecc27d230dc17589b15 | 306 | py | Python | app/database/models/species.py | GruDev325/v_evet_api_aws | 0da1e14b67768a7e56f7dddc98a5aa9692acc443 | [
"MIT"
] | null | null | null | app/database/models/species.py | GruDev325/v_evet_api_aws | 0da1e14b67768a7e56f7dddc98a5aa9692acc443 | [
"MIT"
] | null | null | null | app/database/models/species.py | GruDev325/v_evet_api_aws | 0da1e14b67768a7e56f7dddc98a5aa9692acc443 | [
"MIT"
] | null | null | null | from sqlalchemy.orm import relationship
from .base import Base
from sqlalchemy import Column, String, Integer
class Species(Base):
__tablename__ = 'species'
id = Column("id", Integer, primary_key=True)
description = Column("description", String(255))
patients = relationship("Patient") | 23.538462 | 52 | 0.732026 | 35 | 306 | 6.257143 | 0.571429 | 0.127854 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011765 | 0.166667 | 306 | 13 | 53 | 23.538462 | 0.847059 | 0 | 0 | 0 | 0 | 0 | 0.087948 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
e1e00ffe2b1873983df847d4f9eb1b1c1ff100e6 | 6,346 | py | Python | tests/test_batched_nanny.py | ehsanmsd/kadabra | 1dfc34c6818dc6540e5cbfea85d80419f7a4d51e | [
"BSD-3-Clause"
] | 5 | 2016-11-18T00:15:43.000Z | 2016-11-18T18:19:41.000Z | tests/test_batched_nanny.py | ehsanmsd/kadabra | 1dfc34c6818dc6540e5cbfea85d80419f7a4d51e | [
"BSD-3-Clause"
] | 12 | 2016-11-18T05:29:14.000Z | 2017-10-16T18:34:34.000Z | tests/test_batched_nanny.py | ehsanmsd/kadabra | 1dfc34c6818dc6540e5cbfea85d80419f7a4d51e | [
"BSD-3-Clause"
] | 2 | 2017-03-29T11:07:26.000Z | 2021-08-10T20:09:13.000Z | import datetime
import kadabra
from mock import mock, call, MagicMock
NOW = datetime.datetime.utcnow()
def test_ctor():
channel = MagicMock()
publisher = MagicMock()
logger = MagicMock()
frequency_seconds = 10.0
threshold_seconds = 5.0
max_batch_size = 3
nanny = kadabra.agent.BatchedNan... | 31.889447 | 76 | 0.708793 | 759 | 6,346 | 5.658762 | 0.093544 | 0.074505 | 0.050291 | 0.048894 | 0.744121 | 0.708498 | 0.698254 | 0.677998 | 0.637951 | 0.622584 | 0 | 0.015388 | 0.190986 | 6,346 | 198 | 77 | 32.050505 | 0.821192 | 0 | 0 | 0.648485 | 0 | 0 | 0.051686 | 0.021746 | 0 | 0 | 0 | 0 | 0.206061 | 1 | 0.042424 | false | 0 | 0.018182 | 0 | 0.060606 | 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 |
e1e9d244eed82e102d63979918bfe446991333cb | 625 | py | Python | fig1-2_adaptation/target_response_curves.py | sjx93/rnn_for_gene_network_2020 | d2e16d836f35321923660777179e260065e3976c | [
"MIT"
] | 5 | 2021-04-20T14:43:51.000Z | 2022-02-09T07:43:11.000Z | fig1-2_adaptation/target_response_curves.py | sjx93/rnn_for_gene_network_2020 | d2e16d836f35321923660777179e260065e3976c | [
"MIT"
] | null | null | null | fig1-2_adaptation/target_response_curves.py | sjx93/rnn_for_gene_network_2020 | d2e16d836f35321923660777179e260065e3976c | [
"MIT"
] | 1 | 2022-02-02T09:23:20.000Z | 2022-02-02T09:23:20.000Z | import numpy as np
def adapt_pulse_double_exp(time_points, height):
# inputs: scalars
# output: np.array of shape=time_points
# double exponential response curve
# used for results in figs. 1&2
xs0 = np.linspace(0.0,(time_points-1), time_points)
y = height*2*(np.exp(-xs0/6) - np.exp(-xs0/3))
return y
de... | 32.894737 | 53 | 0.7104 | 109 | 625 | 3.954128 | 0.40367 | 0.185615 | 0.060325 | 0.102088 | 0.445476 | 0.445476 | 0.445476 | 0.445476 | 0.445476 | 0.445476 | 0 | 0.045977 | 0.1648 | 625 | 19 | 54 | 32.894737 | 0.779693 | 0.3888 | 0 | 0.444444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
e1f5d7068467549a5baf388ae726a65db26a9d9e | 130 | py | Python | s3/upload.py | rizwansoaib/aws-rekoginition | 010baf8ff88261ff0d9c2422001111e5546c01fb | [
"MIT"
] | 4 | 2019-02-17T19:02:27.000Z | 2020-04-26T20:03:03.000Z | s3/upload.py | rizwansoaib/aws-rekoginition | 010baf8ff88261ff0d9c2422001111e5546c01fb | [
"MIT"
] | null | null | null | s3/upload.py | rizwansoaib/aws-rekoginition | 010baf8ff88261ff0d9c2422001111e5546c01fb | [
"MIT"
] | 1 | 2021-01-28T15:41:35.000Z | 2021-01-28T15:41:35.000Z | import boto3
s3 = boto3.resource('s3')
data = open('gullu1.jpg', 'rb')
s3.Bucket('s3name').put_object(Key='s3name.jpg', Body=data) | 32.5 | 59 | 0.7 | 21 | 130 | 4.285714 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 0.076923 | 130 | 4 | 59 | 32.5 | 0.683333 | 0 | 0 | 0 | 0 | 0 | 0.229008 | 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 |
c006577ad57fc6a3bbed00c3dfa6320a3d6dd843 | 281 | py | Python | main.py | benjamin-weller/FakeEmail | eb825d9455357c73e4d0ae978029967818413d11 | [
"MIT"
] | null | null | null | main.py | benjamin-weller/FakeEmail | eb825d9455357c73e4d0ae978029967818413d11 | [
"MIT"
] | null | null | null | main.py | benjamin-weller/FakeEmail | eb825d9455357c73e4d0ae978029967818413d11 | [
"MIT"
] | null | null | null | from selenium import webdriver
from selenium.webdriver.support.wait import WebDriverWait
browser = webdriver.Firefox()
browser.implicitly_wait(10) #Setting a max ten second wait time
browser.get('http://www.fakemailgenerator.com')
browser.find_element_by_id("copy-button").click() | 40.142857 | 63 | 0.818505 | 39 | 281 | 5.794872 | 0.74359 | 0.106195 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007692 | 0.074733 | 281 | 7 | 64 | 40.142857 | 0.861538 | 0.120996 | 0 | 0 | 0 | 0 | 0.174089 | 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 |
c00a6af9770cd4c63679f812aa6443d091d7400c | 4,322 | py | Python | tests/unit/api/routes/test_File_Distributor.py | hongson1981/cdr-plugin-folder-to-folder | 598a589059242341f76838bc0638895603785287 | [
"Apache-2.0"
] | null | null | null | tests/unit/api/routes/test_File_Distributor.py | hongson1981/cdr-plugin-folder-to-folder | 598a589059242341f76838bc0638895603785287 | [
"Apache-2.0"
] | null | null | null | tests/unit/api/routes/test_File_Distributor.py | hongson1981/cdr-plugin-folder-to-folder | 598a589059242341f76838bc0638895603785287 | [
"Apache-2.0"
] | 1 | 2021-07-03T13:15:14.000Z | 2021-07-03T13:15:14.000Z | from unittest import TestCase
from osbot_utils.utils.Files import file_exists
import pytest
from cdr_plugin_folder_to_folder.common_settings.Config import API_VERSION
from cdr_plugin_folder_to_folder.pre_processing.Pre_Processor import Pre_Processor
from cdr_plugin_folder_to_folder.processing.File_Processing import Fi... | 43.656566 | 103 | 0.656178 | 599 | 4,322 | 4.464107 | 0.146912 | 0.052356 | 0.104712 | 0.045251 | 0.728123 | 0.721391 | 0.711294 | 0.68362 | 0.594615 | 0.578534 | 0 | 0.021705 | 0.253818 | 4,322 | 99 | 104 | 43.656566 | 0.807442 | 0.190652 | 0 | 0.515625 | 0 | 0 | 0.14644 | 0.090804 | 0 | 0 | 0 | 0 | 0.21875 | 1 | 0.078125 | false | 0 | 0.15625 | 0 | 0.265625 | 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 |
c0130b1f198d7c182238085676a41a081dd8f21b | 1,210 | py | Python | superlists/lists/views.py | wtyliangting/superlists_ | e6f75725f9115dab76c8f11db8ff3f137b93a48e | [
"bzip2-1.0.6"
] | null | null | null | superlists/lists/views.py | wtyliangting/superlists_ | e6f75725f9115dab76c8f11db8ff3f137b93a48e | [
"bzip2-1.0.6"
] | 2 | 2020-06-05T22:16:03.000Z | 2021-06-10T21:50:02.000Z | superlists/lists/views.py | wtyliangting/superlists_ | e6f75725f9115dab76c8f11db8ff3f137b93a48e | [
"bzip2-1.0.6"
] | null | null | null | #from django.shortcuts import render
from django.http import HttpResponse
from django.shortcuts import redirect,render
from lists.models import Item,List
def home_page(request):
'''
if request.method == 'POST':
#item = Item()
#new_item_text = request.POST.get('item_text', ' ')
Item.obje... | 33.611111 | 70 | 0.655372 | 162 | 1,210 | 4.716049 | 0.240741 | 0.094241 | 0.057592 | 0.099476 | 0.462042 | 0.439791 | 0.439791 | 0.348168 | 0.295812 | 0.295812 | 0 | 0 | 0.191736 | 1,210 | 35 | 71 | 34.571429 | 0.781186 | 0.380165 | 0 | 0.375 | 0 | 0 | 0.110626 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.1875 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
c024fca48366fe335f2792e4a4f61e5a47f25152 | 850 | py | Python | spm/file_managment/copy.py | mustafmst/simple-photo-manager | afdee6b093b183a54eb7c826a4543f1727a0bc7b | [
"MIT"
] | null | null | null | spm/file_managment/copy.py | mustafmst/simple-photo-manager | afdee6b093b183a54eb7c826a4543f1727a0bc7b | [
"MIT"
] | null | null | null | spm/file_managment/copy.py | mustafmst/simple-photo-manager | afdee6b093b183a54eb7c826a4543f1727a0bc7b | [
"MIT"
] | null | null | null | from os import getcwd, makedirs, path
from shutil import copyfile
from spm.config import Config
def get_path_from(config: Config):
return path.join(getcwd(), config.from_path)
def get_path_to(config: Config):
return path.join(getcwd(), config.to_path)
def get_file_name(config: Config, id: str):
retur... | 22.368421 | 48 | 0.681176 | 126 | 850 | 4.325397 | 0.269841 | 0.066055 | 0.049541 | 0.082569 | 0.13945 | 0.13945 | 0.13945 | 0 | 0 | 0 | 0 | 0 | 0.212941 | 850 | 37 | 49 | 22.972973 | 0.814649 | 0 | 0 | 0 | 0 | 0 | 0.023529 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.208333 | false | 0 | 0.125 | 0.125 | 0.458333 | 0.041667 | 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 |
c0253154a9b8db5290a3b6b5074886c594362546 | 276 | py | Python | problems/qing-wa-tiao-tai-jie-wen-ti-lcof/solution.py | MleMoe/LeetCode-1 | 14f275ba3c8079b820808da17c4952fcf9c8253c | [
"MIT"
] | 2 | 2021-03-25T01:58:55.000Z | 2021-08-06T12:47:13.000Z | problems/qing-wa-tiao-tai-jie-wen-ti-lcof/solution.py | MleMoe/LeetCode-1 | 14f275ba3c8079b820808da17c4952fcf9c8253c | [
"MIT"
] | 3 | 2019-08-27T13:25:42.000Z | 2021-08-28T17:49:34.000Z | problems/qing-wa-tiao-tai-jie-wen-ti-lcof/solution.py | MleMoe/LeetCode-1 | 14f275ba3c8079b820808da17c4952fcf9c8253c | [
"MIT"
] | 1 | 2021-08-14T08:49:39.000Z | 2021-08-14T08:49:39.000Z | class Solution:
"""
由于 Python 中整形数字的大小限制 取决计算机的内存 (可理解为无限大),因此可不考虑大数越界问题。
"""
def numWays(self, n: int) -> int:
last_ways, ways = 1, 1
for _ in range(1, n):
last_ways, ways = ways, last_ways + ways
return ways % 1000000007
| 25.090909 | 57 | 0.568841 | 34 | 276 | 4.5 | 0.617647 | 0.20915 | 0.235294 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.069519 | 0.322464 | 276 | 10 | 58 | 27.6 | 0.748663 | 0.192029 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c04854c8d38f4b564d651ee8176733c8cd247ffc | 111 | py | Python | swak/const.py | haje01/swak | 1f2de2dd285b29d6100bb89ae83ae8b05bafc05d | [
"MIT"
] | null | null | null | swak/const.py | haje01/swak | 1f2de2dd285b29d6100bb89ae83ae8b05bafc05d | [
"MIT"
] | 2 | 2018-03-05T00:42:30.000Z | 2021-06-01T22:26:37.000Z | swak/const.py | haje01/swak | 1f2de2dd285b29d6100bb89ae83ae8b05bafc05d | [
"MIT"
] | 1 | 2018-03-05T00:41:02.000Z | 2018-03-05T00:41:02.000Z | """This module implements consts."""
TIME_KEY = '_time'
TESTRUN_TAG = 'trun'
PLUGINDIR_PREFIX = 'swak_plugin'
| 18.5 | 36 | 0.72973 | 14 | 111 | 5.428571 | 0.928571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.126126 | 111 | 5 | 37 | 22.2 | 0.783505 | 0.27027 | 0 | 0 | 0 | 0 | 0.266667 | 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 |
c04eae8ff423d7fc54a65567de94a25b0fca9e26 | 6,418 | py | Python | pyAPES_utilities/soiltypes/mineral.py | LukeEcomod/pyAPES_VESBO | fdb4f44907e3055eb42db4a1260e0d7b9c55b415 | [
"MIT"
] | 3 | 2020-12-21T16:33:21.000Z | 2021-12-02T05:13:14.000Z | pyAPES_utilities/soiltypes/mineral.py | LukeEcomod/pyAPES_VESBO | fdb4f44907e3055eb42db4a1260e0d7b9c55b415 | [
"MIT"
] | null | null | null | pyAPES_utilities/soiltypes/mineral.py | LukeEcomod/pyAPES_VESBO | fdb4f44907e3055eb42db4a1260e0d7b9c55b415 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Mon Oct 22 10:44:19 2018
@author: L1656
Soil parameters for Ct, Vt, Mt, and OMt forests in different soil horizons (O, A, B1, B2, and C)
theta, and h in horizons A-C form Jauhiainen (2004), and in horizon O from Jauhiainen (2004) for Vt and OMt,
and Lauren and Heiskanen (2001) ... | 61.12381 | 151 | 0.51449 | 1,015 | 6,418 | 3.22266 | 0.338916 | 0.068481 | 0.062366 | 0.066035 | 0.204219 | 0.152553 | 0.113727 | 0.113727 | 0.089881 | 0.089881 | 0 | 0.33983 | 0.304456 | 6,418 | 105 | 152 | 61.12381 | 0.392921 | 0.210658 | 0 | 0.072289 | 0 | 0 | 0.048907 | 0.012724 | 0 | 0 | 0 | 0 | 0 | 1 | 0.012048 | false | 0 | 0.024096 | 0 | 0.048193 | 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 |
c05464c97b39c0eeb71095fe30aa206e4bc80aab | 253 | py | Python | {{cookiecutter.project_name}}/app/api/api_v1/endpoints/examples.py | shahnawaz-pabon/fastapi-template | 614c54cbdeb807124d63b401fca7cb6c3f58a503 | [
"MIT"
] | null | null | null | {{cookiecutter.project_name}}/app/api/api_v1/endpoints/examples.py | shahnawaz-pabon/fastapi-template | 614c54cbdeb807124d63b401fca7cb6c3f58a503 | [
"MIT"
] | null | null | null | {{cookiecutter.project_name}}/app/api/api_v1/endpoints/examples.py | shahnawaz-pabon/fastapi-template | 614c54cbdeb807124d63b401fca7cb6c3f58a503 | [
"MIT"
] | null | null | null | from fastapi import APIRouter
from fastapi.responses import JSONResponse
router = APIRouter()
@router.get("/hello")
def read_root():
return JSONResponse(
status_code=200, content={"status": "success", "message": "Hello World ⛄!!!"}
)
| 21.083333 | 85 | 0.687747 | 29 | 253 | 5.965517 | 0.724138 | 0.127168 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014286 | 0.16996 | 253 | 11 | 86 | 23 | 0.804762 | 0 | 0 | 0 | 0 | 0 | 0.166008 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.25 | 0.125 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
c055dda429075e6ea958472db7245abafed001e8 | 1,861 | py | Python | snake/util/sumtree.py | bnkk/snake-ai | 5a18244dc0fa021663f044f34e3c1c918a72631c | [
"MIT"
] | 665 | 2018-12-19T05:57:01.000Z | 2022-03-31T08:45:04.000Z | snake/util/sumtree.py | bnkk/snake-ai | 5a18244dc0fa021663f044f34e3c1c918a72631c | [
"MIT"
] | 17 | 2019-01-07T06:47:50.000Z | 2022-02-16T01:44:13.000Z | snake/util/sumtree.py | bnkk/snake-ai | 5a18244dc0fa021663f044f34e3c1c918a72631c | [
"MIT"
] | 221 | 2018-12-17T09:06:35.000Z | 2022-03-22T11:55:02.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# pylint: disable=C0111
import numpy as np
class SumTree:
def __init__(self, capacity):
self._capacity = capacity
self._tree = np.zeros(2 * self._capacity - 1)
self._data = [None] * self._capacity
self._data_idx = 0
@property
... | 25.148649 | 56 | 0.541644 | 227 | 1,861 | 4.198238 | 0.22467 | 0.102833 | 0.069255 | 0.062959 | 0.178384 | 0.050367 | 0 | 0 | 0 | 0 | 0 | 0.017456 | 0.353573 | 1,861 | 73 | 57 | 25.493151 | 0.77473 | 0.043525 | 0 | 0.12963 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.203704 | false | 0 | 0.018519 | 0.12963 | 0.388889 | 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 |
fbeb4b877974ae4f2ed90456f140b921209c5e6d | 1,369 | py | Python | packages/pyre/tracking/__init__.py | BryanRiel/pyre | 179359634a7091979cced427b6133dd0ec4726ea | [
"BSD-3-Clause"
] | null | null | null | packages/pyre/tracking/__init__.py | BryanRiel/pyre | 179359634a7091979cced427b6133dd0ec4726ea | [
"BSD-3-Clause"
] | null | null | null | packages/pyre/tracking/__init__.py | BryanRiel/pyre | 179359634a7091979cced427b6133dd0ec4726ea | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
#
# michael a.g. aïvázis
# orthologue
# (c) 1998-2018 all rights reserved
#
# factories
from .Chain import Chain as chain
from .Command import Command as command
from .File import File as file
from .FileRegion import FileRegion as region
from .NameLookup import NameLookup as lookup
from .Scrip... | 26.843137 | 94 | 0.727538 | 201 | 1,369 | 4.945274 | 0.487562 | 0.045272 | 0.030181 | 0.036217 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01275 | 0.197955 | 1,369 | 50 | 95 | 27.38 | 0.892532 | 0.497443 | 0 | 0 | 0 | 0 | 0.013975 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.5625 | 0.0625 | 0.8125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
fbf5186ce95f11449debb2a6fe4478b7b1066ae1 | 1,480 | py | Python | Leetcode/Basic/Others/190_Reverse_Bits.py | ZR-Huang/AlgorithmPractices | 226cecde136531341ce23cdf88529345be1912fc | [
"BSD-3-Clause"
] | 1 | 2019-11-26T11:52:25.000Z | 2019-11-26T11:52:25.000Z | Leetcode/Basic/Others/190_Reverse_Bits.py | ZR-Huang/AlgorithmPractices | 226cecde136531341ce23cdf88529345be1912fc | [
"BSD-3-Clause"
] | null | null | null | Leetcode/Basic/Others/190_Reverse_Bits.py | ZR-Huang/AlgorithmPractices | 226cecde136531341ce23cdf88529345be1912fc | [
"BSD-3-Clause"
] | null | null | null | '''
Reverse bits of a given 32 bits unsigned integer.
Example 1:
Input: 00000010100101000001111010011100
Output: 00111001011110000010100101000000
Explanation: The input binary string 00000010100101000001111010011100 represents the unsigned integer 43261596, so return 964176192 which its binary representation is 001110... | 47.741935 | 295 | 0.775676 | 187 | 1,480 | 6.13369 | 0.497326 | 0.05667 | 0.049695 | 0.043592 | 0.106364 | 0 | 0 | 0 | 0 | 0 | 0 | 0.267106 | 0.180405 | 1,480 | 31 | 296 | 47.741935 | 0.678483 | 0.837838 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0 | 0 | 0.333333 | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
fbf630e0e0e5efa0f20becea2d06986c41df83ac | 606 | py | Python | dsa/binary_search_recursion.py | SehgalNeeraj/Python | 65308d3495dd7fc4c1c206a1063129ad54eddbf0 | [
"MIT"
] | null | null | null | dsa/binary_search_recursion.py | SehgalNeeraj/Python | 65308d3495dd7fc4c1c206a1063129ad54eddbf0 | [
"MIT"
] | null | null | null | dsa/binary_search_recursion.py | SehgalNeeraj/Python | 65308d3495dd7fc4c1c206a1063129ad54eddbf0 | [
"MIT"
] | null | null | null | def binary_search_recursive(list, target):
"""
Returns the index position of the target if found, else returns None
complexity: O(log n)
"""
if len(list) <= 0:
return None
midpoint = len(list)//2
if list[midpoint] == target:
return True
if list[midpoint] < target:
... | 27.545455 | 72 | 0.643564 | 84 | 606 | 4.547619 | 0.47619 | 0.125654 | 0.219895 | 0.196335 | 0.324607 | 0.204188 | 0 | 0 | 0 | 0 | 0 | 0.036876 | 0.239274 | 606 | 21 | 73 | 28.857143 | 0.791757 | 0.181518 | 0 | 0 | 0 | 0 | 0.035714 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0 | 0 | 0.384615 | 0.076923 | 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 |
fbffaa82cb7c36f0c3164bd7b9f8bdb5bb05c48d | 307 | py | Python | scraping/worldloppet_race_id_gatherer/worldloppet/items.py | mikeacaballero/ski-tourism | ab82ee1812e776d187de16d0a823b2ae466d0d09 | [
"MIT"
] | 1 | 2019-02-03T11:10:54.000Z | 2019-02-03T11:10:54.000Z | scraping/worldloppet_race_id_gatherer/worldloppet/items.py | mcaballerophd/ski-tourism | ab82ee1812e776d187de16d0a823b2ae466d0d09 | [
"MIT"
] | null | null | null | scraping/worldloppet_race_id_gatherer/worldloppet/items.py | mcaballerophd/ski-tourism | ab82ee1812e776d187de16d0a823b2ae466d0d09 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# https://doc.scrapy.org/en/latest/topics/items.html
import scrapy
class WorldloppetItem(scrapy.Item):
# race_name = scrapy.Field()
# race_description = scrapy.Field()
race_id = scrapy.Field()
| 20.466667 | 52 | 0.693811 | 41 | 307 | 5.121951 | 0.756098 | 0.157143 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003922 | 0.169381 | 307 | 14 | 53 | 21.928571 | 0.819608 | 0.654723 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 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 |
2220985bd59b8c781f26a8b7eacedefd7d160e96 | 5,190 | py | Python | tests/event/test_data_unit.py | Arussil/salesmanago-python-api | d4e69a8356e98f5cf46b3e104abe8034ce99fc13 | [
"MIT"
] | 1 | 2021-04-20T17:19:13.000Z | 2021-04-20T17:19:13.000Z | tests/event/test_data_unit.py | Arussil/salesmanago-python-api | d4e69a8356e98f5cf46b3e104abe8034ce99fc13 | [
"MIT"
] | 1 | 2021-02-18T14:25:34.000Z | 2021-10-14T09:52:56.000Z | tests/event/test_data_unit.py | Arussil/salesmanago-python-api | d4e69a8356e98f5cf46b3e104abe8034ce99fc13 | [
"MIT"
] | 2 | 2021-02-18T11:40:38.000Z | 2021-10-14T09:56:39.000Z | import datetime
from unittest import TestCase
from .test_event_base import SalesManagoEventsTestsBase
from tests.utils import gen_list_of_strings, gen_dict
from salesmanago_python_api.data.event import SalesManagoEventData
class SalesManagoEventDataUnitTest(SalesManagoEventsTestsBase):
def test_create_minimal_ev... | 43.25 | 113 | 0.710019 | 564 | 5,190 | 6.037234 | 0.117021 | 0.161233 | 0.204405 | 0.131571 | 0.736564 | 0.730984 | 0.682819 | 0.674009 | 0.578561 | 0.536564 | 0 | 0.003873 | 0.204046 | 5,190 | 119 | 114 | 43.613445 | 0.820382 | 0 | 0 | 0.505495 | 0 | 0 | 0.065511 | 0 | 0 | 0 | 0 | 0 | 0.21978 | 1 | 0.175824 | false | 0 | 0.054945 | 0 | 0.241758 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
2221555219017b855d8b2f3e28969bebc4dbbfef | 529 | py | Python | Calibration/EcalAlCaRecoProducers/python/electronIsolationSequence_cff.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 852 | 2015-01-11T21:03:51.000Z | 2022-03-25T21:14:00.000Z | Calibration/EcalAlCaRecoProducers/python/electronIsolationSequence_cff.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 30,371 | 2015-01-02T00:14:40.000Z | 2022-03-31T23:26:05.000Z | Calibration/EcalAlCaRecoProducers/python/electronIsolationSequence_cff.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 3,240 | 2015-01-02T05:53:18.000Z | 2022-03-31T17:24:21.000Z | import FWCore.ParameterSet.Config as cms
#
# define our AlCa isolation sequence
#
from RecoEgamma.EgammaIsolationAlgos.eleIsolationSequence_cff import *
#this copy might look silly, but it can be useful to decouple from
#the standard isolation sequence
alcaElectronIsolationSequence=cms.Sequence(eleIsolationSequence)... | 27.842105 | 74 | 0.816635 | 65 | 529 | 6.569231 | 0.738462 | 0.079625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.119093 | 529 | 18 | 75 | 29.388889 | 0.916309 | 0.614367 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
222f79e35afe9e3a6ec471b720e12ff21bc0bc82 | 4,636 | py | Python | appstore_tools/appstore/types.py | luke14free/appstore-tools | 6d8d8ca6fbc361e927c07461235b96a2cd5d999e | [
"MIT"
] | null | null | null | appstore_tools/appstore/types.py | luke14free/appstore-tools | 6d8d8ca6fbc361e927c07461235b96a2cd5d999e | [
"MIT"
] | 7 | 2021-04-26T11:37:18.000Z | 2021-05-05T15:51:44.000Z | appstore_tools/appstore/types.py | luke14free/appstore-tools | 6d8d8ca6fbc361e927c07461235b96a2cd5d999e | [
"MIT"
] | 1 | 2021-04-26T12:39:09.000Z | 2021-04-26T12:39:09.000Z | from enum import Enum, auto
# TODO: remove pylint "disable" directives when pylint supports python 3.9 completely
from typing import TypedDict, Optional, Union, Literal, Sequence
class Platform(Enum):
IOS = auto()
MAC_OS = auto()
TV_OS = auto()
class ReleaseType(Enum):
MANUAL = auto()
AFTER_APP... | 34.340741 | 87 | 0.725626 | 527 | 4,636 | 6.13852 | 0.233397 | 0.120556 | 0.216383 | 0.262751 | 0.466461 | 0.412365 | 0.089026 | 0.058114 | 0 | 0 | 0 | 0.022269 | 0.176661 | 4,636 | 134 | 88 | 34.597015 | 0.825255 | 0.25755 | 0 | 0.036364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007463 | 0 | 1 | 0 | false | 0 | 0.018182 | 0 | 0.918182 | 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 |
2234f9eefbbe3dc0c22747465f197886b922dd14 | 7,595 | py | Python | cattledb/core/_timeseries.py | reiterd/cattledb | 015214afa5c3b1e94b555b138334163068aaf982 | [
"MIT"
] | 1 | 2021-02-26T14:52:40.000Z | 2021-02-26T14:52:40.000Z | cattledb/core/_timeseries.py | reiterd/cattledb | 015214afa5c3b1e94b555b138334163068aaf982 | [
"MIT"
] | 6 | 2020-04-30T19:20:28.000Z | 2021-03-09T15:10:50.000Z | cattledb/core/_timeseries.py | reiterd/cattledb | 015214afa5c3b1e94b555b138334163068aaf982 | [
"MIT"
] | 5 | 2020-05-04T09:10:33.000Z | 2021-07-20T15:04:50.000Z | #!/usr/bin/python
# coding: utf-8
import pendulum
import datetime
import bisect
try:
from cdb_ext_ts import timeseries
c_container = timeseries
c_ext = True
except ImportError: # pragma: no cover
c_container = None
c_ext = False
def extract_ts(ts):
if isinstance(ts, int):
return ts... | 24.901639 | 74 | 0.597762 | 1,030 | 7,595 | 4.147573 | 0.130097 | 0.071161 | 0.055712 | 0.017556 | 0.408708 | 0.302903 | 0.254916 | 0.152622 | 0.099251 | 0.070693 | 0 | 0.011632 | 0.286899 | 7,595 | 304 | 75 | 24.983553 | 0.777142 | 0.018828 | 0 | 0.276018 | 0 | 0 | 0.012389 | 0 | 0 | 0 | 0 | 0 | 0.013575 | 1 | 0.257919 | false | 0 | 0.022624 | 0.117647 | 0.565611 | 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 |
2247dfabe9679219306ed17bbc104295ded4e635 | 265 | py | Python | write.py | Nepmia/N4-Framework | 84d98f3fe05ca02f938332e5970bca5482ef8ce7 | [
"MIT"
] | null | null | null | write.py | Nepmia/N4-Framework | 84d98f3fe05ca02f938332e5970bca5482ef8ce7 | [
"MIT"
] | null | null | null | write.py | Nepmia/N4-Framework | 84d98f3fe05ca02f938332e5970bca5482ef8ce7 | [
"MIT"
] | null | null | null | from termcolor import colored
from helpers import N4_println
def write(path:str, content:str, method:str):
N4_println("Recorded a writing request with content:", content, f"on file {path}")
with open(path, method) as module:
module.write(content) | 29.444444 | 86 | 0.728302 | 39 | 265 | 4.897436 | 0.615385 | 0.094241 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009132 | 0.173585 | 265 | 9 | 87 | 29.444444 | 0.863014 | 0 | 0 | 0 | 0 | 0 | 0.203008 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.5 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
22483ac5d71dcdb9562b9d43b0830218716b2d80 | 1,532 | py | Python | df2mapd.py | mflaxman10/pandas2mapd | 1e542ee040e8547e8f3c91b57a4b4e065d7dc9de | [
"MIT"
] | null | null | null | df2mapd.py | mflaxman10/pandas2mapd | 1e542ee040e8547e8f3c91b57a4b4e065d7dc9de | [
"MIT"
] | null | null | null | df2mapd.py | mflaxman10/pandas2mapd | 1e542ee040e8547e8f3c91b57a4b4e065d7dc9de | [
"MIT"
] | null | null | null | #!/usr/bin/python
"""
Module for connecting to MapD database and creating tables with the provided data.
"""
__author__ = 'veda.shankar@gmail.com (Veda Shankar)'
import argparse
import sys
import string
import csv
import os
import pandas as pd
from pymapd import connect
connection = "NONE"
# Connect to the DB
d... | 28.90566 | 266 | 0.780026 | 233 | 1,532 | 4.871245 | 0.369099 | 0.071366 | 0.070485 | 0.07489 | 0.155947 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003715 | 0.12141 | 1,532 | 52 | 267 | 29.461538 | 0.839525 | 0.078329 | 0 | 0.117647 | 0 | 0.029412 | 0.259878 | 0.016717 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.058824 | 0.205882 | null | null | 0.176471 | 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 |
224a0a2186d8ef855dd313b759d1309b71794fdb | 946 | py | Python | Hauz/migrations/0016_auto_20180120_1022.py | VirginiaNdungu1/HauzBox | c586d221a903f2be681b895eec20dd01664ce141 | [
"MIT"
] | 1 | 2018-01-29T13:46:25.000Z | 2018-01-29T13:46:25.000Z | Hauz/migrations/0016_auto_20180120_1022.py | VirginiaNdungu1/HauzBox | c586d221a903f2be681b895eec20dd01664ce141 | [
"MIT"
] | null | null | null | Hauz/migrations/0016_auto_20180120_1022.py | VirginiaNdungu1/HauzBox | c586d221a903f2be681b895eec20dd01664ce141 | [
"MIT"
] | null | null | null | # Generated by Django 2.0.1 on 2018-01-20 07:22
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('Hauz', '0015_auto_20180119_0824'),
]
operations = [
migrations.RenameField(
model_name='expense',
old_name='maintena... | 24.894737 | 60 | 0.542283 | 87 | 946 | 5.678161 | 0.54023 | 0.091093 | 0.157895 | 0.182186 | 0.17004 | 0.17004 | 0.17004 | 0 | 0 | 0 | 0 | 0.05 | 0.344609 | 946 | 37 | 61 | 25.567568 | 0.746774 | 0.047569 | 0 | 0.354839 | 1 | 0 | 0.172414 | 0.025584 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.032258 | 0 | 0.129032 | 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 |
22502f1f8ef64c13aba55ef7c90d3f9811673959 | 598 | py | Python | tensortrade/feed/core/mixins.py | nicomon24/tensortrade | 870ae06a4440045edde4f5306e64264bd33d5b67 | [
"Apache-2.0"
] | 3,081 | 2020-01-12T13:42:13.000Z | 2022-03-27T18:09:31.000Z | tensortrade/feed/core/mixins.py | nicomon24/tensortrade | 870ae06a4440045edde4f5306e64264bd33d5b67 | [
"Apache-2.0"
] | 257 | 2020-01-15T03:14:29.000Z | 2022-03-31T04:19:14.000Z | tensortrade/feed/core/mixins.py | nicomon24/tensortrade | 870ae06a4440045edde4f5306e64264bd33d5b67 | [
"Apache-2.0"
] | 804 | 2020-01-12T12:22:22.000Z | 2022-03-28T13:41:59.000Z |
from typing import List, Callable
class DataTypeMixin:
@classmethod
def register_method(cls, func: "Callable", names: "List[str]"):
"""Injects methods into a specific stream instance.
Parameters
----------
func : `Callable`
The function to be injected as a method... | 24.916667 | 67 | 0.548495 | 66 | 598 | 4.954545 | 0.575758 | 0.073395 | 0.073395 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.339465 | 598 | 23 | 68 | 26 | 0.827848 | 0.329431 | 0 | 0 | 0 | 0 | 0.050445 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
22539ed7aa4e46b5675457f8eb7772d56dc63501 | 3,965 | py | Python | bl/manhole.py | djfroofy/beatlounge | 6ab173e2e1e3a8a357063e020f0392fa71330382 | [
"MIT"
] | 8 | 2015-04-29T02:52:42.000Z | 2018-12-06T17:49:32.000Z | bl/manhole.py | djfroofy/beatlounge | 6ab173e2e1e3a8a357063e020f0392fa71330382 | [
"MIT"
] | null | null | null | bl/manhole.py | djfroofy/beatlounge | 6ab173e2e1e3a8a357063e020f0392fa71330382 | [
"MIT"
] | null | null | null | import binascii
import base64
from zope.interface import implements
from twisted.application import service, strports
from twisted.cred import checkers, portal
from twisted.conch import telnet
try:
from twisted.conch import manhole_ssh, checkers as conchc
except ImportError, ie:
from warnings import warn
... | 30.037879 | 74 | 0.628247 | 392 | 3,965 | 6.183673 | 0.375 | 0.029703 | 0.027228 | 0.027228 | 0.104785 | 0.021452 | 0.021452 | 0 | 0 | 0 | 0 | 0.003964 | 0.300126 | 3,965 | 131 | 75 | 30.267176 | 0.86955 | 0.058008 | 0 | 0.064516 | 0 | 0 | 0.012071 | 0.005633 | 0 | 0 | 0 | 0.007634 | 0 | 0 | null | null | 0.053763 | 0.129032 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
225527d4330b0ddc3e355812a087edcd2ad0611a | 2,114 | py | Python | release/stubs.min/Autodesk/Revit/DB/__init___parts/RepeaterCoordinates.py | YKato521/ironpython-stubs | b1f7c580de48528490b3ee5791b04898be95a9ae | [
"MIT"
] | null | null | null | release/stubs.min/Autodesk/Revit/DB/__init___parts/RepeaterCoordinates.py | YKato521/ironpython-stubs | b1f7c580de48528490b3ee5791b04898be95a9ae | [
"MIT"
] | null | null | null | release/stubs.min/Autodesk/Revit/DB/__init___parts/RepeaterCoordinates.py | YKato521/ironpython-stubs | b1f7c580de48528490b3ee5791b04898be95a9ae | [
"MIT"
] | null | null | null | class RepeaterCoordinates(object, IDisposable):
"""
Represents coordinates in the array of repeating references in 0,1,or 2 dimensions.
RepeaterCoordinates(x: int,y: int)
RepeaterCoordinates(x: int)
RepeaterCoordinates()
"""
def Dispose(self):
""" Dispose(self: RepeaterCoordina... | 23.488889 | 221 | 0.616367 | 222 | 2,114 | 5.495496 | 0.31982 | 0.034426 | 0.039344 | 0.046721 | 0.202459 | 0.179508 | 0.179508 | 0.179508 | 0.179508 | 0.179508 | 0 | 0.003876 | 0.267739 | 2,114 | 89 | 222 | 23.752809 | 0.784238 | 0.419584 | 0 | 0.416667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0.333333 | 0 | 0 | 0.458333 | 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 |
2262b00197386440d533d37ef5fe5ff10a3621e5 | 177 | py | Python | Python/Tests/TestData/DebuggerProject/InfiniteRunThreadingInited.py | techkey/PTVS | 8355e67eedd8e915ca49bd38a2f36172696fd903 | [
"Apache-2.0"
] | 404 | 2019-05-07T02:21:57.000Z | 2022-03-31T17:03:04.000Z | Python/Tests/TestData/DebuggerProject/InfiniteRunThreadingInited.py | techkey/PTVS | 8355e67eedd8e915ca49bd38a2f36172696fd903 | [
"Apache-2.0"
] | 1,672 | 2019-05-06T21:09:38.000Z | 2022-03-31T23:16:04.000Z | Python/Tests/TestData/DebuggerProject/InfiniteRunThreadingInited.py | RaymonGulati1/PTVS | ee1d09f2a94be4e21016f7579205bb65ec82c616 | [
"Apache-2.0"
] | 186 | 2019-05-13T03:17:37.000Z | 2022-03-31T16:24:05.000Z | try:
import thread
except ImportError:
import _thread as thread
thread.start_new_thread(lambda: 42, ())
x = 1000000
while True:
y = x
z = x + 1
x = z + 1
| 12.642857 | 39 | 0.610169 | 27 | 177 | 3.888889 | 0.62963 | 0.228571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.08871 | 0.299435 | 177 | 13 | 40 | 13.615385 | 0.758065 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.3 | 0 | 0.3 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
2270ea1c5ca5bd55e05b8d4cf775e9ca33d7de58 | 277 | py | Python | examples/tmsconfig.py | fingorn/cranium-pi | a0f24b4460226339e2a8c1be5ade751448d0a4f9 | [
"MIT"
] | null | null | null | examples/tmsconfig.py | fingorn/cranium-pi | a0f24b4460226339e2a8c1be5ade751448d0a4f9 | [
"MIT"
] | null | null | null | examples/tmsconfig.py | fingorn/cranium-pi | a0f24b4460226339e2a8c1be5ade751448d0a4f9 | [
"MIT"
] | null | null | null | temp_thresholds=[
{'name':'IDLE',
'min_temp':20,
'max_temp':35},
{'name':'A',
'min_temp':200,
'max_temp':220},
{'name':'B',
'min_temp':221,
'max_temp':240},
{'name':'C',
'min_temp':241,
'max_temp':260},
{'name':'D',
'min_temp':261,
'max_temp':280},
]
| 14.578947 | 18 | 0.545126 | 42 | 277 | 3.333333 | 0.47619 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.119658 | 0.155235 | 277 | 18 | 19 | 15.388889 | 0.478632 | 0 | 0 | 0 | 0 | 0 | 0.389892 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
97e004eb1ba64c92efa7bf18f455871203c5418a | 555 | py | Python | vulcan/model/_school.py | v0idzz/vulcan-api | 1ae83d90236e678042a9f85f6c34b6bd82bf279f | [
"MIT"
] | 49 | 2019-01-10T22:10:19.000Z | 2022-01-10T17:07:51.000Z | vulcan/model/_school.py | v0idzz/vulcan-api | 1ae83d90236e678042a9f85f6c34b6bd82bf279f | [
"MIT"
] | 47 | 2019-01-08T21:04:17.000Z | 2022-03-21T04:02:37.000Z | vulcan/model/_school.py | v0idzz/vulcan-api | 1ae83d90236e678042a9f85f6c34b6bd82bf279f | [
"MIT"
] | 31 | 2019-05-04T14:05:33.000Z | 2021-11-01T18:51:16.000Z | # -*- coding: utf-8 -*-
from related import IntegerField, StringField, immutable
from ._serializable import Serializable
@immutable
class School(Serializable):
"""A single school building.
:var int ~.id: school ID
:var str ~.name: school full name
:var str ~.short_name: school short name
:var s... | 25.227273 | 61 | 0.675676 | 68 | 555 | 5.470588 | 0.397059 | 0.048387 | 0.137097 | 0.112903 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002242 | 0.196396 | 555 | 21 | 62 | 26.428571 | 0.831839 | 0.351351 | 0 | 0 | 0 | 0 | 0.054054 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.25 | 0 | 0.875 | 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 | 0 | 0 | 1 | 0 | 0 | 2 |
97e5948fcaf32d87cb6d2093088b7b0e9f99feaf | 24,538 | py | Python | tests/test_time_seg_util.py | ytjia/utils_py | 68039b367e2e38fdecf234ecc625406b9e203ec0 | [
"Apache-2.0"
] | null | null | null | tests/test_time_seg_util.py | ytjia/utils_py | 68039b367e2e38fdecf234ecc625406b9e203ec0 | [
"Apache-2.0"
] | null | null | null | tests/test_time_seg_util.py | ytjia/utils_py | 68039b367e2e38fdecf234ecc625406b9e203ec0 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Authors: Y. Jia <ytjia.zju@gmail.com>
import unittest
from utils_py import const
from utils_py import time_seg_util
class TestTimeSegUtil(unittest.TestCase):
def test_time_list_create(self):
first_minute_of_day = 0
self.assertEqual(time_seg_util.gen_s... | 62.437659 | 78 | 0.380308 | 4,503 | 24,538 | 2.05996 | 0.02465 | 0.047434 | 0.005929 | 0.009487 | 0.073092 | 0.017896 | 0.011643 | 0.011643 | 0.011643 | 0.011643 | 0 | 0.525242 | 0.318689 | 24,538 | 392 | 79 | 62.596939 | 0.029609 | 0.003097 | 0 | 0 | 0 | 0 | 0.478188 | 0 | 0 | 0 | 0 | 0 | 0.010499 | 1 | 0.005249 | false | 0 | 0.007874 | 0 | 0.015748 | 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 |
97efa69daeee31d40fff21e20877cad674b8ee54 | 466 | py | Python | src/utility/check_correlation.py | snakepowerpoint/wifi_predictor | 91b20e4ec53caae274134868763c74dcadef3dc4 | [
"Apache-2.0"
] | 2 | 2017-10-02T07:21:40.000Z | 2018-01-16T09:54:37.000Z | src/utility/check_correlation.py | snakepowerpoint/wifi_predictor | 91b20e4ec53caae274134868763c74dcadef3dc4 | [
"Apache-2.0"
] | null | null | null | src/utility/check_correlation.py | snakepowerpoint/wifi_predictor | 91b20e4ec53caae274134868763c74dcadef3dc4 | [
"Apache-2.0"
] | 1 | 2018-07-12T08:04:17.000Z | 2018-07-12T08:04:17.000Z | import seaborn as sns
import matplotlib.pyplot as plt
def check_correlation(data):
corrmat = data.corr()
plt.subplots(figsize=(12,9))
sns.heatmap(corrmat, vmax=0.9, square=True)
print(corrmat['Delay-mean'].sort_values(ascending=False))
print(corrmat['Delay-mean_log'].sort_values... | 35.846154 | 66 | 0.703863 | 63 | 466 | 5.095238 | 0.492063 | 0.149533 | 0.211838 | 0.299065 | 0.495327 | 0.401869 | 0.401869 | 0.274143 | 0 | 0 | 0 | 0.012658 | 0.152361 | 466 | 13 | 67 | 35.846154 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0.101099 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.2 | 0 | 0.3 | 0.4 | 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 |
97f241269e76f333d504f43258a42b0c6234a7e7 | 1,572 | py | Python | app/YtManagerApp/views/settings.py | cyberjacob/ytsm | 7e0bd75945b2bade0d38233e7fe890971d7909f2 | [
"MIT"
] | 1 | 2022-02-07T07:43:49.000Z | 2022-02-07T07:43:49.000Z | app/YtManagerApp/views/settings.py | girlpunk/ytsm | 7e0bd75945b2bade0d38233e7fe890971d7909f2 | [
"MIT"
] | null | null | null | app/YtManagerApp/views/settings.py | girlpunk/ytsm | 7e0bd75945b2bade0d38233e7fe890971d7909f2 | [
"MIT"
] | null | null | null | from django.contrib.auth.mixins import LoginRequiredMixin
from django.http import HttpResponseForbidden
from django.urls import reverse_lazy
from django.views.generic import FormView
from YtManagerApp import tasks
from YtManagerApp.views.forms.settings import SettingsForm, AdminSettingsForm
class SettingsView(Login... | 30.823529 | 78 | 0.711832 | 178 | 1,572 | 6.134831 | 0.342697 | 0.03663 | 0.054945 | 0.064103 | 0.270147 | 0.22619 | 0.22619 | 0.17033 | 0.17033 | 0.095238 | 0 | 0 | 0.195929 | 1,572 | 50 | 79 | 31.44 | 0.863924 | 0.012087 | 0 | 0.333333 | 0 | 0 | 0.042553 | 0.037395 | 0 | 0 | 0 | 0.02 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
3f0020a0fb43897712f2adbf7572e8e80211430b | 604 | py | Python | LeetCode/_1151_1200/_1197_MinimumKnightMoves.py | BigEggStudy/LeetCode-Py | 735e782742fab15bdb046eb6d5fc7b03502cc92d | [
"MIT"
] | 1 | 2021-01-30T04:07:26.000Z | 2021-01-30T04:07:26.000Z | LeetCode/_1151_1200/_1197_MinimumKnightMoves.py | BigEggStudy/LeetCode-Py | 735e782742fab15bdb046eb6d5fc7b03502cc92d | [
"MIT"
] | null | null | null | LeetCode/_1151_1200/_1197_MinimumKnightMoves.py | BigEggStudy/LeetCode-Py | 735e782742fab15bdb046eb6d5fc7b03502cc92d | [
"MIT"
] | 1 | 2021-09-09T20:12:25.000Z | 2021-09-09T20:12:25.000Z | #-----------------------------------------------------------------------------
# Runtime: 36ms
# Memory Usage:
# Link:
#-----------------------------------------------------------------------------
class Solution:
def minKnightMoves(self, x: int, y: int) -> int:
x, y = abs(x), abs(y)
if x < y:
... | 26.26087 | 78 | 0.294702 | 63 | 604 | 2.825397 | 0.380952 | 0.044944 | 0.134831 | 0.191011 | 0.202247 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03038 | 0.346026 | 604 | 22 | 79 | 27.454545 | 0.420253 | 0.31457 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
3f0bf4e5e4725e92b91a655dc9c3ff78b309c10f | 1,123 | py | Python | ph_helper.py | abdullahsumbal/ph-monitor | 79a80ebea849b5321ff6bf839d9445ce22c8eadc | [
"Apache-2.0"
] | 2 | 2019-07-17T17:40:32.000Z | 2020-03-21T01:49:46.000Z | ph_helper.py | abdullahsumbal/ph-monitor | 79a80ebea849b5321ff6bf839d9445ce22c8eadc | [
"Apache-2.0"
] | 1 | 2022-01-28T14:38:49.000Z | 2022-01-28T17:34:04.000Z | ph_helper.py | abdullahsumbal/ph-monitor | 79a80ebea849b5321ff6bf839d9445ce22c8eadc | [
"Apache-2.0"
] | null | null | null | import re
import sys
import pyautogui
import pyperclip
pyautogui.FAILSAFE = True
####################################################
# mouse and keyboard automation function
####################################################
def click():
pyautogui.click()
def moveMouse(x, y):
pyautogui.moveTo(x, y)
de... | 21.188679 | 95 | 0.532502 | 117 | 1,123 | 5.111111 | 0.529915 | 0.016722 | 0.036789 | 0.013378 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005353 | 0.168299 | 1,123 | 52 | 96 | 21.596154 | 0.634904 | 0.120214 | 0 | 0 | 0 | 0.037037 | 0.163871 | 0.067097 | 0 | 0 | 0 | 0 | 0 | 1 | 0.296296 | false | 0 | 0.148148 | 0.074074 | 0.555556 | 0.037037 | 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 |
3f149a842f5c0e2487517bce8deb46775077aaaf | 1,621 | py | Python | leetcode/max-area-of-island.py | kokuraxc/play-ground | 48b5291f3cca117e0cd0a17bf9255ec4dc1a5cdd | [
"MIT"
] | null | null | null | leetcode/max-area-of-island.py | kokuraxc/play-ground | 48b5291f3cca117e0cd0a17bf9255ec4dc1a5cdd | [
"MIT"
] | null | null | null | leetcode/max-area-of-island.py | kokuraxc/play-ground | 48b5291f3cca117e0cd0a17bf9255ec4dc1a5cdd | [
"MIT"
] | null | null | null | # https://leetcode.com/problems/max-area-of-island/
#%%
class Solution:
def maxAreaOfIsland(self, grid: list[list[int]]) -> int:
len_row, len_col = len(grid), len(grid[0])
def dfs(grid, index_row, index_col):
if (
index_row < 0
or index_row >= len_row
... | 28.946429 | 77 | 0.453424 | 265 | 1,621 | 2.645283 | 0.128302 | 0.199715 | 0.235378 | 0.256776 | 0.566334 | 0.566334 | 0.462197 | 0.330956 | 0.222539 | 0.222539 | 0 | 0.126379 | 0.384948 | 1,621 | 55 | 78 | 29.472727 | 0.57673 | 0.052437 | 0 | 0.15 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0 | 0 | 0.175 | 0.05 | 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 |
3f22b49dfc9316e121613eea20ed3b9b8a4fe906 | 1,033 | py | Python | app/common/objects/osm_admin_boundaries.py | openstreetmap-polska/gugik2osm | 60ebd0660ed55e3b3db0f034486a607975c5eb45 | [
"MIT"
] | 18 | 2020-01-31T11:19:28.000Z | 2022-01-05T08:58:51.000Z | app/common/objects/osm_admin_boundaries.py | openstreetmap-polska/gugik2osm | 60ebd0660ed55e3b3db0f034486a607975c5eb45 | [
"MIT"
] | 103 | 2019-12-11T11:35:01.000Z | 2022-03-01T21:10:50.000Z | app/common/objects/osm_admin_boundaries.py | openstreetmap-polska/gugik2osm | 60ebd0660ed55e3b3db0f034486a607975c5eb45 | [
"MIT"
] | 6 | 2020-12-06T14:53:43.000Z | 2021-04-18T18:09:29.000Z | from dataclasses import dataclass
from typing import List
from .. import database as db
@dataclass
class GeoJSONGeometryString:
value: str
def select_where_terc(terc_code: str) -> List[GeoJSONGeometryString]:
"""Returns GeoJSON string with geometry of administrative boundary in OSM with given TERYT terc co... | 36.892857 | 114 | 0.778316 | 138 | 1,033 | 5.608696 | 0.282609 | 0.041344 | 0.054264 | 0.151163 | 0.669251 | 0.568475 | 0.568475 | 0.568475 | 0.568475 | 0.568475 | 0 | 0 | 0.129719 | 1,033 | 27 | 115 | 38.259259 | 0.860957 | 0.286544 | 0 | 0 | 0 | 0 | 0.124827 | 0.058252 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.916667 | 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 |
3f2c6156ec5d6a109603eb116d29863968d014bd | 522 | py | Python | registros/migrations/0012_auto_20180208_2119.py | pontual/sistema-v1 | 5f63d11083077035326787a56c3ae8b66ee2054c | [
"MIT"
] | 1 | 2020-11-24T19:18:33.000Z | 2020-11-24T19:18:33.000Z | registros/migrations/0012_auto_20180208_2119.py | pontual/sistema-v1 | 5f63d11083077035326787a56c3ae8b66ee2054c | [
"MIT"
] | null | null | null | registros/migrations/0012_auto_20180208_2119.py | pontual/sistema-v1 | 5f63d11083077035326787a56c3ae8b66ee2054c | [
"MIT"
] | null | null | null | # Generated by Django 2.0.1 on 2018-02-08 21:19
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('registros', '0011_auto_20180208_2108'),
]
operations = [
migrations.AlterModelOptions(
name='empresa',
options={'ordering': ... | 23.727273 | 92 | 0.590038 | 47 | 522 | 6.404255 | 0.787234 | 0.179402 | 0.20598 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.082228 | 0.277778 | 522 | 21 | 93 | 24.857143 | 0.71618 | 0.086207 | 0 | 0.266667 | 1 | 0 | 0.242105 | 0.048421 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.266667 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
3f3fe2e63359d13da7d28c76b82a7d2b64a5743e | 212 | py | Python | nimble/models/debt.py | heoga/django-jam | 646ae833d62df5518a8389c73035503fe8fd801c | [
"BSD-2-Clause"
] | null | null | null | nimble/models/debt.py | heoga/django-jam | 646ae833d62df5518a8389c73035503fe8fd801c | [
"BSD-2-Clause"
] | 4 | 2016-12-18T18:13:00.000Z | 2021-06-10T20:38:26.000Z | nimble/models/debt.py | heoga/django-nimble | 646ae833d62df5518a8389c73035503fe8fd801c | [
"BSD-2-Clause"
] | null | null | null | import reversion
from .story import Story
@reversion.register(follow=['story_ptr'])
class Debt(Story):
ident = 'D'
typename = 'Debt'
api_detail_name = 'debt-detail'
api_list_name = 'debt-list'
| 17.666667 | 41 | 0.683962 | 28 | 212 | 5 | 0.571429 | 0.114286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.188679 | 212 | 11 | 42 | 19.272727 | 0.813953 | 0 | 0 | 0 | 0 | 0 | 0.160377 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.875 | 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 |
3f461a88fd7215ed7f53f94e512a47c28ab09c28 | 199 | py | Python | HOME/bin/usb_find_devices.py | AlanGreene/home | e50d3b103d6fa36ad7b847d6f34e4214cbd826e8 | [
"MIT",
"Unlicense"
] | null | null | null | HOME/bin/usb_find_devices.py | AlanGreene/home | e50d3b103d6fa36ad7b847d6f34e4214cbd826e8 | [
"MIT",
"Unlicense"
] | null | null | null | HOME/bin/usb_find_devices.py | AlanGreene/home | e50d3b103d6fa36ad7b847d6f34e4214cbd826e8 | [
"MIT",
"Unlicense"
] | null | null | null | #!/usr/bin/env python
import os
import usb.core
# only needed for MacPorts
# os.environ['DYLD_FALLBACK_LIBRARY_PATH'] = '/opt/local/lib'
os.environ['PYUSB_DEBUG'] = 'debug'
print(usb.core.find())
| 18.090909 | 61 | 0.723618 | 31 | 199 | 4.516129 | 0.774194 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.110553 | 199 | 10 | 62 | 19.9 | 0.79096 | 0.527638 | 0 | 0 | 0 | 0 | 0.175824 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
3f50a4f9fff257d9dcd2d29dd7e3c3e420c98664 | 852 | py | Python | src/text_normalizer/sample.py | arkataev/text_normalizer | a99326e31012157980d014c9730ac94bd1d18c1d | [
"MIT"
] | null | null | null | src/text_normalizer/sample.py | arkataev/text_normalizer | a99326e31012157980d014c9730ac94bd1d18c1d | [
"MIT"
] | null | null | null | src/text_normalizer/sample.py | arkataev/text_normalizer | a99326e31012157980d014c9730ac94bd1d18c1d | [
"MIT"
] | null | null | null | from typing import Iterator
from text_normalizer.normalization import normalize as _normalize
from text_normalizer.stemming import JsonStemmer, iStemTuple, Pipeline
def normalize(sentence: str, stemmer: JsonStemmer, pipeline=Pipeline, bigrams=True) -> Iterator[iStemTuple]:
"""
Анализ предложения на основе ба... | 38.727273 | 108 | 0.747653 | 92 | 852 | 6.836957 | 0.543478 | 0.038156 | 0.085851 | 0.082671 | 0.101749 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001433 | 0.180751 | 852 | 21 | 109 | 40.571429 | 0.899713 | 0.517606 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.6 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
3f57a8a1f71a87717ebefae82c14edc02d684fd4 | 455 | py | Python | Render2018/lib/Blender/mesh_edit.py | BigOto2/BlenderRenderDNS | a8ff239ecffef5217f0db35d579227a0a444c32d | [
"MIT"
] | 1 | 2021-07-28T00:42:39.000Z | 2021-07-28T00:42:39.000Z | Render2018/lib/Blender/mesh_edit.py | BigOto2/BlenderRenderDNS | a8ff239ecffef5217f0db35d579227a0a444c32d | [
"MIT"
] | null | null | null | Render2018/lib/Blender/mesh_edit.py | BigOto2/BlenderRenderDNS | a8ff239ecffef5217f0db35d579227a0a444c32d | [
"MIT"
] | 1 | 2019-05-13T17:38:05.000Z | 2019-05-13T17:38:05.000Z | #TODO: Should other functionality be moved here?
import bpy
import bmesh
def remove_doubles():
"""
Removes doubled vertices on the currently selected object in Blender.
"""
# Enter edit mode
bpy.ops.object.mode_set(mode="EDIT")
# Select all vertices
bpy.ops.mesh.select_all(action="SELECT"... | 21.666667 | 73 | 0.69011 | 63 | 455 | 4.904762 | 0.555556 | 0.07767 | 0.064725 | 0.10356 | 0.174757 | 0.174757 | 0.174757 | 0 | 0 | 0 | 0 | 0 | 0.208791 | 455 | 20 | 74 | 22.75 | 0.858333 | 0.428571 | 0 | 0 | 0 | 0 | 0.066667 | 0 | 0 | 0 | 0 | 0.05 | 0 | 1 | 0.142857 | true | 0 | 0.285714 | 0 | 0.428571 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
3f6eea515b7b582218de9c1ebcd71dc845f5078e | 605 | bzl | Python | bazel/deps.bzl | storypku/bazel-galaxy | 2e2a3303af6d1b2dced3f330559fd173ca793052 | [
"Apache-2.0"
] | null | null | null | bazel/deps.bzl | storypku/bazel-galaxy | 2e2a3303af6d1b2dced3f330559fd173ca793052 | [
"Apache-2.0"
] | null | null | null | bazel/deps.bzl | storypku/bazel-galaxy | 2e2a3303af6d1b2dced3f330559fd173ca793052 | [
"Apache-2.0"
] | null | null | null | load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace")
load("@com_github_nelhage_rules_boost//:boost/boost.bzl", "boost_deps")
load("@rules_cuda//cuda:dependencies.bzl", "rules_cuda_dependencies")
load("@rules_fuzzing//fuzzing:repositories.bzl", "rules_fuzzing_dependencies")
load("//third_party/llvm_toolchain:... | 37.8125 | 79 | 0.783471 | 77 | 605 | 5.688312 | 0.350649 | 0.100457 | 0.136986 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.082645 | 605 | 15 | 80 | 40.333333 | 0.789189 | 0.038017 | 0 | 0 | 0 | 0 | 0.546552 | 0.47069 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | true | 0 | 0 | 0 | 0.090909 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
58b449d323e3d01d5756cb72b9db0a6ff8918998 | 223 | py | Python | socksync/errors.py | osum4est/socksync-django | 00be35ad46966d52941be0637b89a72e03547efe | [
"MIT"
] | null | null | null | socksync/errors.py | osum4est/socksync-django | 00be35ad46966d52941be0637b89a72e03547efe | [
"MIT"
] | 8 | 2019-12-04T23:35:23.000Z | 2022-02-10T12:40:14.000Z | socksync/errors.py | osum4est/django-socksync | 00be35ad46966d52941be0637b89a72e03547efe | [
"MIT"
] | null | null | null | class SockSyncErrors:
ERROR_INVALID_FUNC = 1
ERROR_INVALID_TYPE = 2
ERROR_INVALID_NAME = 3
ERROR_MISSING_FIELD = 4
ERROR_BAD_INDEX = 5
ERROR_BAD_ID = 6
ERROR_INVALID_JSON = 7
ERROR_OTHER = 8
| 22.3 | 27 | 0.699552 | 33 | 223 | 4.272727 | 0.666667 | 0.340426 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048485 | 0.26009 | 223 | 9 | 28 | 24.777778 | 0.806061 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
58c0d181978cb58c9851bd571c652d08fee744a3 | 2,164 | py | Python | riptide/tests/helpers.py | theCapypara/riptide-lib | 560106d4196cdc5a5b84235f32ac44c80bc3994e | [
"MIT"
] | 4 | 2019-04-23T17:14:00.000Z | 2019-12-22T11:55:31.000Z | riptide/tests/helpers.py | theCapypara/riptide-lib | 560106d4196cdc5a5b84235f32ac44c80bc3994e | [
"MIT"
] | 15 | 2021-09-22T09:40:42.000Z | 2022-03-07T05:01:07.000Z | riptide/tests/helpers.py | theCapypara/riptide-lib | 560106d4196cdc5a5b84235f32ac44c80bc3994e | [
"MIT"
] | 1 | 2019-11-24T18:08:14.000Z | 2019-11-24T18:08:14.000Z | import os
from unittest import mock
from unittest.mock import Mock
from configcrunch.tests.test_utils import YamlConfigDocumentStub
from riptide.db.driver.abstract import AbstractDbDriver
class _WithYcdMock:
def __init__(self, ycd):
self.mock = mock.patch.object(ycd, '__init__', side_effect=_ycd_set_do... | 27.05 | 89 | 0.710259 | 290 | 2,164 | 4.931034 | 0.313793 | 0.061538 | 0.05035 | 0.041958 | 0.046154 | 0.046154 | 0.046154 | 0 | 0 | 0 | 0 | 0 | 0.207486 | 2,164 | 79 | 90 | 27.392405 | 0.833819 | 0.269871 | 0 | 0.102564 | 0 | 0 | 0.010674 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.128205 | 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 |
58cfc004092a82228441dbeee732757cb0702193 | 9,904 | py | Python | python/paddle/fluid/tests/unittests/test_matmul_op_with_head.py | L-Net-1992/Paddle | 4d0ca02ba56760b456f3d4b42a538555b9b6c307 | [
"Apache-2.0"
] | 11 | 2016-08-29T07:43:26.000Z | 2016-08-29T07:51:24.000Z | python/paddle/fluid/tests/unittests/test_matmul_op_with_head.py | L-Net-1992/Paddle | 4d0ca02ba56760b456f3d4b42a538555b9b6c307 | [
"Apache-2.0"
] | null | null | null | python/paddle/fluid/tests/unittests/test_matmul_op_with_head.py | L-Net-1992/Paddle | 4d0ca02ba56760b456f3d4b42a538555b9b6c307 | [
"Apache-2.0"
] | 1 | 2021-09-24T11:23:36.000Z | 2021-09-24T11:23:36.000Z | # Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by app... | 32.903654 | 80 | 0.553009 | 1,397 | 9,904 | 3.680744 | 0.141732 | 0.062233 | 0.026254 | 0.019253 | 0.755154 | 0.725982 | 0.698366 | 0.67114 | 0.666083 | 0.640607 | 0 | 0.020303 | 0.333603 | 9,904 | 300 | 81 | 33.013333 | 0.758788 | 0.151555 | 0 | 0.626667 | 0 | 0 | 0.052732 | 0.013751 | 0 | 0 | 0 | 0 | 0.008889 | 1 | 0.057778 | false | 0 | 0.017778 | 0 | 0.115556 | 0.008889 | 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 |
58d028163689fe05b2bcc642dfa1497f7bd1250a | 693 | py | Python | {{cookiecutter.project_directory_name}}/tests/test_{{cookiecutter.project_slug}}.py | johnpneumann/cookiecutter-py | dc0110fcdeebd397c0ebde186cb5d2ffdef648d4 | [
"MIT"
] | 2 | 2017-01-19T05:59:46.000Z | 2019-01-19T06:44:23.000Z | {{cookiecutter.project_directory_name}}/tests/test_{{cookiecutter.project_slug}}.py | johnpneumann/cookiecutter-py | dc0110fcdeebd397c0ebde186cb5d2ffdef648d4 | [
"MIT"
] | 4 | 2016-10-29T04:33:48.000Z | 2020-05-08T21:45:56.000Z | {{cookiecutter.project_directory_name}}/tests/test_{{cookiecutter.project_slug}}.py | johnpneumann/cookiecutter-py | dc0110fcdeebd397c0ebde186cb5d2ffdef648d4 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
tests.test_{{ cookiecutter.project_slug }}
~~~~~~~~~~~{% for n in range(cookiecutter.project_slug|length) %}~{% endfor %}
Tests for `{{ cookiecutter.project_slug }}` module.
:copyright: (c) {{ cookiecutter.copyright_year }} by {% if cookiecutter.project_owner == "" %}{{ coo... | 34.65 | 182 | 0.63925 | 75 | 693 | 5.706667 | 0.6 | 0.221963 | 0.161215 | 0.135514 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001739 | 0.170274 | 693 | 19 | 183 | 36.473684 | 0.742609 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | 0 | null | null | 0 | 0 | null | null | 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 | 1 | 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.