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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
519dd46f491b01aeaac462a0ddbde99abbe10759 | 1,176 | py | Python | test/connectivity/acts/framework/tests/IntegrationTest.py | Keneral/atools | 055e76621340c7dced125e9de56e2645b5e1cdfb | [
"Unlicense"
] | null | null | null | test/connectivity/acts/framework/tests/IntegrationTest.py | Keneral/atools | 055e76621340c7dced125e9de56e2645b5e1cdfb | [
"Unlicense"
] | null | null | null | test/connectivity/acts/framework/tests/IntegrationTest.py | Keneral/atools | 055e76621340c7dced125e9de56e2645b5e1cdfb | [
"Unlicense"
] | 1 | 2018-02-24T19:13:01.000Z | 2018-02-24T19:13:01.000Z | #!/usr/bin/python3.4
#
# Copyright 2015 - The Android Open Source Project
#
# 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
#
# Un... | 36.75 | 79 | 0.720238 | 168 | 1,176 | 4.958333 | 0.630952 | 0.072029 | 0.031212 | 0.038415 | 0.076831 | 0.076831 | 0 | 0 | 0 | 0 | 0 | 0.01278 | 0.201531 | 1,176 | 32 | 80 | 36.75 | 0.874334 | 0.518707 | 0 | 0 | 0 | 0 | 0.190217 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.166667 | false | 0.083333 | 0.25 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
519eb67f29e60e40eff09552de03a33a11857f87 | 272 | py | Python | abc001_b.py | Lockdef/kyopro-code | 2d943a87987af05122c556e173e5108a0c1c77c8 | [
"MIT"
] | null | null | null | abc001_b.py | Lockdef/kyopro-code | 2d943a87987af05122c556e173e5108a0c1c77c8 | [
"MIT"
] | null | null | null | abc001_b.py | Lockdef/kyopro-code | 2d943a87987af05122c556e173e5108a0c1c77c8 | [
"MIT"
] | null | null | null | n = int(input())/10e2
if 0.1 > n:
print("00")
elif 5 >= n:
if len(str(int(n*10))) == 1:
print("0{}".format(int(n*10)))
else:
print(int(n*10))
elif 30 >= n:
print(int(n)+50)
elif 70 >= n:
print((int(n) - 30)//5 + 80)
else:
print(89)
| 18.133333 | 38 | 0.474265 | 50 | 272 | 2.58 | 0.42 | 0.155039 | 0.139535 | 0.155039 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.147208 | 0.275735 | 272 | 14 | 39 | 19.428571 | 0.507614 | 0 | 0 | 0.142857 | 0 | 0 | 0.018382 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.428571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
51a4ae1504f46e9a6bca4dca57c89186e773334a | 1,164 | py | Python | test/test_rand.py | sprotg/animal-avatar-generator | c458686c7814f6681372007cae647298096c1166 | [
"MIT"
] | 1 | 2022-03-04T23:48:05.000Z | 2022-03-04T23:48:05.000Z | test/test_rand.py | Nacht1gall/animal-avatar-generator | 488bca540d0f939634aee2fee935b4acf637ae1a | [
"MIT"
] | null | null | null | test/test_rand.py | Nacht1gall/animal-avatar-generator | 488bca540d0f939634aee2fee935b4acf637ae1a | [
"MIT"
] | 2 | 2022-01-18T09:00:58.000Z | 2022-01-18T09:01:22.000Z | import logging
import unittest
from animal_avatar.utils import rand
logger = logging.getLogger(__name__)
class TestCustomRandom(unittest.TestCase):
def test_custom_random(self):
seeds = (
'seed', 'test', 'some long string over there!'
)
expected_results = (
(-2038... | 32.333333 | 93 | 0.582474 | 114 | 1,164 | 5.72807 | 0.54386 | 0.064319 | 0.042879 | 0.05513 | 0.070444 | 0 | 0 | 0 | 0 | 0 | 0 | 0.213665 | 0.308419 | 1,164 | 35 | 94 | 33.257143 | 0.597516 | 0.032646 | 0 | 0 | 0 | 0 | 0.114973 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | false | 0 | 0.107143 | 0 | 0.178571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
51b422bac0c2ef194b5f9de5e05ac462a9db6a51 | 1,247 | py | Python | holobot/extensions/moderation/commands/view_warn_decay_command.py | rexor12/holobot | 89b7b416403d13ccfeee117ef942426b08d3651d | [
"MIT"
] | 1 | 2021-05-24T00:17:46.000Z | 2021-05-24T00:17:46.000Z | holobot/extensions/moderation/commands/view_warn_decay_command.py | rexor12/holobot | 89b7b416403d13ccfeee117ef942426b08d3651d | [
"MIT"
] | 41 | 2021-03-24T22:50:09.000Z | 2021-12-17T12:15:13.000Z | holobot/extensions/moderation/commands/view_warn_decay_command.py | rexor12/holobot | 89b7b416403d13ccfeee117ef942426b08d3651d | [
"MIT"
] | null | null | null | from ..managers import IWarnManager
from holobot.discord.sdk.actions import ReplyAction
from holobot.discord.sdk.commands import CommandBase, CommandInterface
from holobot.discord.sdk.commands.models import CommandResponse, ServerChatInteractionContext
from holobot.discord.sdk.enums import Permission
from holobot.sdk.i... | 49.88 | 93 | 0.757819 | 139 | 1,247 | 6.604317 | 0.47482 | 0.071895 | 0.078431 | 0.091503 | 0.063181 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.170008 | 1,247 | 24 | 94 | 51.958333 | 0.886957 | 0 | 0 | 0 | 0 | 0 | 0.133119 | 0.029671 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.318182 | 0 | 0.454545 | 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 | 0 | 0 | 0 | 1 |
51b56e716e98c100aa435aaa1bbbfc8dfef79c10 | 4,254 | py | Python | Others/NeuralPy/error.py | fredmorcos/attic | 0da3b94aa525df59ddc977c32cb71c243ffd0dbd | [
"Unlicense"
] | 2 | 2021-01-24T09:00:51.000Z | 2022-01-23T20:52:17.000Z | Others/NeuralPy/error.py | fredmorcos/attic | 0da3b94aa525df59ddc977c32cb71c243ffd0dbd | [
"Unlicense"
] | 6 | 2020-02-29T01:59:03.000Z | 2022-02-15T10:25:40.000Z | Others/NeuralPy/error.py | fredmorcos/attic | 0da3b94aa525df59ddc977c32cb71c243ffd0dbd | [
"Unlicense"
] | 1 | 2019-03-22T14:41:21.000Z | 2019-03-22T14:41:21.000Z | """
Error function module.
"""
__docformat__ = "restructuredtext en"
## Copyright (c) 2009 Emmanuel Goossaert
##
## This file is part of npy.
##
## npy is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
## the Free Software Foundation; eithe... | 29.748252 | 114 | 0.650917 | 507 | 4,254 | 5.293886 | 0.343195 | 0.038748 | 0.039121 | 0.021237 | 0.281297 | 0.220194 | 0.164307 | 0.13003 | 0.13003 | 0.107303 | 0 | 0.002282 | 0.279032 | 4,254 | 142 | 115 | 29.957746 | 0.87284 | 0.201693 | 0 | 0.340909 | 0 | 0 | 0.042871 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.022727 | 0.068182 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
51b6b4f8b5917c9368d31b09bb5d94543b93aad5 | 1,289 | py | Python | src/masonite/packages/Package.py | StevenMHernandez/masonite | f3088e124c40d0f9cd9de8f4518dd3ae4c296db6 | [
"MIT"
] | 1,816 | 2018-02-14T01:59:51.000Z | 2022-03-31T17:09:20.000Z | src/masonite/packages/Package.py | StevenMHernandez/masonite | f3088e124c40d0f9cd9de8f4518dd3ae4c296db6 | [
"MIT"
] | 340 | 2018-02-11T00:27:26.000Z | 2022-03-21T12:00:24.000Z | src/masonite/packages/Package.py | StevenMHernandez/masonite | f3088e124c40d0f9cd9de8f4518dd3ae4c296db6 | [
"MIT"
] | 144 | 2018-03-18T00:08:16.000Z | 2022-02-26T01:51:58.000Z | import os
class Package:
def __init__(self):
self.root_dir = ""
self.name = ""
self.config = ""
self.commands = []
self.views = []
self.migrations = []
self.controller_locations = []
self.routes = []
self.assets = []
def _build_path(self... | 27.425532 | 67 | 0.613654 | 151 | 1,289 | 5.006623 | 0.211921 | 0.083333 | 0.103175 | 0.10582 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.290147 | 1,289 | 46 | 68 | 28.021739 | 0.82623 | 0 | 0 | 0.162162 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.216216 | false | 0 | 0.027027 | 0.027027 | 0.459459 | 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 | 0 | 0 | 0 | 1 |
51b7cd1e24251cf7d713a9677a540959cb3d8295 | 748 | py | Python | 02_knn/class_decorator.py | lanhongvp/machine_learning | 0076e7d5801764739e6800f29e505318f5c0e7df | [
"MIT"
] | null | null | null | 02_knn/class_decorator.py | lanhongvp/machine_learning | 0076e7d5801764739e6800f29e505318f5c0e7df | [
"MIT"
] | null | null | null | 02_knn/class_decorator.py | lanhongvp/machine_learning | 0076e7d5801764739e6800f29e505318f5c0e7df | [
"MIT"
] | null | null | null | from functools import wraps
class Foo(object):
def __init__(self,func):
self._func = func
def __call__(self):
print('class decorator running')
self._func()
print('class decorator ending')
@Foo
def bar():
print('bar')
# bar()
def logged(func):
def with_logging(*args,*... | 17.809524 | 44 | 0.610963 | 96 | 748 | 4.34375 | 0.34375 | 0.105516 | 0.091127 | 0.086331 | 0.417266 | 0.417266 | 0.417266 | 0.417266 | 0.417266 | 0.417266 | 0 | 0.001792 | 0.254011 | 748 | 41 | 45 | 18.243902 | 0.74552 | 0.006684 | 0 | 0.266667 | 0 | 0 | 0.105263 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.266667 | false | 0 | 0.033333 | 0.033333 | 0.5 | 0.233333 | 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 | 0 | 0 | 0 | 1 |
51b8fad3cdbc904603b4215c159b833894606caf | 1,933 | py | Python | aula 16 - Tupla.py | CelsoAntunesNogueira/Phyton3 | 3a7ec8d7a6f996b2d3c36a9c6d239707e76aace4 | [
"MIT"
] | null | null | null | aula 16 - Tupla.py | CelsoAntunesNogueira/Phyton3 | 3a7ec8d7a6f996b2d3c36a9c6d239707e76aace4 | [
"MIT"
] | null | null | null | aula 16 - Tupla.py | CelsoAntunesNogueira/Phyton3 | 3a7ec8d7a6f996b2d3c36a9c6d239707e76aace4 | [
"MIT"
] | null | null | null | #TUPLAS SÃO VARIAVEIS COMPOSTAS
#AS TUPLAS SÃO IMUTÁVEIS!!
#TUPLAS UTILAZAM PARENTESES () OU SEM NADA
lanche = ("Hambúrguer" , 'Suco', 'Pizza', 'Pudim')
print(lanche[1]) #USANDO O ESQUEMA DE FATIAMENTO DA AULA 09
print(lanche[-1]) #PEGA O ULTIMO ,QUE NO CASO O PUDIM
print(lanche[1:3])... | 41.12766 | 117 | 0.644077 | 311 | 1,933 | 4.003215 | 0.4791 | 0.028916 | 0.038554 | 0.026506 | 0.151004 | 0.115663 | 0.057831 | 0.057831 | 0 | 0 | 0 | 0.022409 | 0.261252 | 1,933 | 46 | 118 | 42.021739 | 0.84944 | 0.514227 | 0 | 0.137931 | 0 | 0 | 0.163399 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.689655 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
51bf71799dccb64ef1bba6c1d20a3c0ddbcb30d0 | 1,723 | py | Python | nlp/text_classification/cnn_multiclass/run.py | zhangyong2/tensorflow_nlp | 4cc3cc4abec27526336897f1c62cf904b48f2676 | [
"Apache-2.0"
] | 1 | 2019-01-30T08:39:24.000Z | 2019-01-30T08:39:24.000Z | nlp/text_classification/cnn_multiclass/run.py | zhangyong2/tensorflow_nlp | 4cc3cc4abec27526336897f1c62cf904b48f2676 | [
"Apache-2.0"
] | null | null | null | nlp/text_classification/cnn_multiclass/run.py | zhangyong2/tensorflow_nlp | 4cc3cc4abec27526336897f1c62cf904b48f2676 | [
"Apache-2.0"
] | null | null | null | # -*- coding:utf-8 -*-
import tensorflow as tf
from nlp.text_classification.cnn_multiclass import train
from nlp.text_classification.cnn_multiclass import predict
import argparse
def main(args):
if args.process == tf.estimator.ModeKeys.TRAIN:
train.train_cnn_classfier(args)
elif args.process == tf.es... | 39.159091 | 117 | 0.721416 | 234 | 1,723 | 5.081197 | 0.32906 | 0.12111 | 0.228764 | 0.079899 | 0.510513 | 0.437342 | 0.390244 | 0.232128 | 0.136249 | 0.136249 | 0 | 0.018 | 0.129425 | 1,723 | 43 | 118 | 40.069767 | 0.774667 | 0.011608 | 0 | 0 | 0 | 0 | 0.203529 | 0.079412 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032258 | false | 0 | 0.129032 | 0 | 0.16129 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
51c32b88732dd3d0067726697d6ca13ee5f48917 | 695 | py | Python | profiles/schema.py | Mohamed-Kaizen/fakerz | bf93f5aa4c5899672b24f5f25a2cf6134e9238b7 | [
"MIT"
] | null | null | null | profiles/schema.py | Mohamed-Kaizen/fakerz | bf93f5aa4c5899672b24f5f25a2cf6134e9238b7 | [
"MIT"
] | null | null | null | profiles/schema.py | Mohamed-Kaizen/fakerz | bf93f5aa4c5899672b24f5f25a2cf6134e9238b7 | [
"MIT"
] | null | null | null | from fakerz.settings import settings
from pydantic import BaseModel, EmailStr, Field, validator
from . import validators
class UserLogin(BaseModel):
password: str = Field(
...,
min_length=settings.MINIMUM_PASSWORD_LENGTH,
max_length=settings.MAXIMUM_PASSWORD_LENGTH,
)
email: Emai... | 24.821429 | 87 | 0.705036 | 75 | 695 | 6.28 | 0.493333 | 0.076433 | 0.076433 | 0.097665 | 0.140127 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.215827 | 695 | 27 | 88 | 25.740741 | 0.86422 | 0 | 0 | 0 | 0 | 0 | 0.008633 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0.166667 | 0.166667 | 0 | 0.444444 | 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 | 0 | 0 | 0 | 1 |
51cd82099652b1a7b36b61ac9d7e3d734957ab06 | 2,239 | py | Python | skyportal/models/invitation.py | bparazin/skyportal | c160610ca0cc28eef9f36c2d11cc15bd9bcbfe56 | [
"BSD-3-Clause"
] | 52 | 2018-11-02T00:53:21.000Z | 2022-03-08T16:03:52.000Z | skyportal/models/invitation.py | bparazin/skyportal | c160610ca0cc28eef9f36c2d11cc15bd9bcbfe56 | [
"BSD-3-Clause"
] | 1,944 | 2017-04-27T18:51:20.000Z | 2022-03-31T20:17:44.000Z | skyportal/models/invitation.py | bparazin/skyportal | c160610ca0cc28eef9f36c2d11cc15bd9bcbfe56 | [
"BSD-3-Clause"
] | 63 | 2017-05-13T01:40:47.000Z | 2022-03-12T11:32:11.000Z | __all__ = ['Invitation']
import sqlalchemy as sa
from sqlalchemy.orm import relationship
from sqlalchemy.dialects import postgresql as psql
from sqlalchemy_utils import EmailType
from sqlalchemy import event
from baselayer.app.models import Base, AccessibleIfUserMatches
from baselayer.app.env import load_env
from ..... | 31.097222 | 86 | 0.678874 | 265 | 2,239 | 5.539623 | 0.362264 | 0.038147 | 0.027248 | 0.059946 | 0.263624 | 0.263624 | 0.263624 | 0.263624 | 0.263624 | 0.202316 | 0 | 0.000563 | 0.206342 | 2,239 | 71 | 87 | 31.535211 | 0.825549 | 0 | 0 | 0.166667 | 0 | 0 | 0.213488 | 0.072354 | 0 | 0 | 0 | 0 | 0 | 1 | 0.016667 | false | 0.066667 | 0.15 | 0 | 0.416667 | 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 | 0 | 0 | 0 | 1 |
51cf51a60f61324a4ea24b3f8548c024a971692d | 650 | py | Python | v1_0/api/harbour.py | golnazads/adsrex | 72175cddaf0c7e6b433a87b463c72fbc921aeab7 | [
"MIT"
] | null | null | null | v1_0/api/harbour.py | golnazads/adsrex | 72175cddaf0c7e6b433a87b463c72fbc921aeab7 | [
"MIT"
] | 6 | 2015-08-25T12:26:05.000Z | 2019-12-12T20:35:06.000Z | v1_0/api/harbour.py | golnazads/adsrex | 72175cddaf0c7e6b433a87b463c72fbc921aeab7 | [
"MIT"
] | 6 | 2015-08-18T17:22:34.000Z | 2021-02-16T23:09:43.000Z | from v1_0.user_roles import anonymous_user, authenticated_user, bumblebee_user
import unittest
class HarbourServiceTest(unittest.TestCase):
def test_anonymous_user(self):
r = anonymous_user.get('harbour/mirrors')
self.assertEqual(r.status_code, 401)
def check_harbour_service(self, user=authen... | 29.545455 | 78 | 0.729231 | 82 | 650 | 5.426829 | 0.426829 | 0.08764 | 0.12809 | 0.094382 | 0.251685 | 0.139326 | 0 | 0 | 0 | 0 | 0 | 0.009276 | 0.170769 | 650 | 21 | 79 | 30.952381 | 0.816327 | 0 | 0 | 0 | 0 | 0 | 0.086154 | 0 | 0 | 0 | 0 | 0 | 0.133333 | 1 | 0.266667 | false | 0 | 0.133333 | 0 | 0.466667 | 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 | 0 | 0 | 0 | 1 |
51d80c3fe83b79ff3bb54905ef2f9c29d1d6a56b | 1,590 | py | Python | src/oauth/endpoint/auth_views.py | Hazzari/Media_library | b389a013ef71b4770d462b2d2f7575b4cf660bd8 | [
"MIT"
] | null | null | null | src/oauth/endpoint/auth_views.py | Hazzari/Media_library | b389a013ef71b4770d462b2d2f7575b4cf660bd8 | [
"MIT"
] | null | null | null | src/oauth/endpoint/auth_views.py | Hazzari/Media_library | b389a013ef71b4770d462b2d2f7575b4cf660bd8 | [
"MIT"
] | null | null | null | import urllib.parse
from django.conf import settings
from django.shortcuts import render
from rest_framework.decorators import api_view
from rest_framework.exceptions import AuthenticationFailed
from rest_framework.response import Response
from .. import serializers
from ..services import google, spotify, spotify_sta... | 32.44898 | 79 | 0.71761 | 188 | 1,590 | 5.87766 | 0.367021 | 0.043439 | 0.046154 | 0.045249 | 0.180995 | 0.054299 | 0 | 0 | 0 | 0 | 0 | 0.006849 | 0.173585 | 1,590 | 48 | 80 | 33.125 | 0.834094 | 0.088679 | 0 | 0.0625 | 0 | 0 | 0.15309 | 0.033006 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.25 | 0 | 0.53125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
51d94bb77184efc4c5bcbaf627f23a79f2e560f0 | 1,006 | py | Python | hgapp/games/migrations/0013_auto_20200610_2203.py | shadytradesman/The-Contract-Website | d8b353064f91c53ebab951dec784a0a36caba260 | [
"Apache-2.0"
] | 6 | 2020-10-03T12:15:05.000Z | 2021-10-15T04:43:36.000Z | hgapp/games/migrations/0013_auto_20200610_2203.py | shadytradesman/The-Contract-Website | d8b353064f91c53ebab951dec784a0a36caba260 | [
"Apache-2.0"
] | 99 | 2020-06-04T17:43:56.000Z | 2022-03-12T01:07:20.000Z | hgapp/games/migrations/0013_auto_20200610_2203.py | shadytradesman/The-Contract-Website | d8b353064f91c53ebab951dec784a0a36caba260 | [
"Apache-2.0"
] | 9 | 2020-06-06T16:39:09.000Z | 2020-10-02T16:24:17.000Z | # Generated by Django 2.2.12 on 2020-06-10 21:03
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('games', '0012_game_attendance_is_confirmed'),
]
operations = [
migrations.AlterField(
model_name='game',
... | 41.916667 | 269 | 0.592445 | 98 | 1,006 | 5.969388 | 0.602041 | 0.047863 | 0.08547 | 0.099145 | 0.112821 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03073 | 0.223658 | 1,006 | 23 | 270 | 43.73913 | 0.71831 | 0.045726 | 0 | 0.235294 | 1 | 0 | 0.327273 | 0.035294 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
51dc7e91458641dc417be1e8b7f3bd4d31af18c1 | 363 | py | Python | app/api/serializers/echo.py | sanadhis/django-template | d45fe5bca08224c7597d918b57288484e23677f2 | [
"MIT"
] | null | null | null | app/api/serializers/echo.py | sanadhis/django-template | d45fe5bca08224c7597d918b57288484e23677f2 | [
"MIT"
] | null | null | null | app/api/serializers/echo.py | sanadhis/django-template | d45fe5bca08224c7597d918b57288484e23677f2 | [
"MIT"
] | null | null | null | from rest_framework import serializers
class EchoSerializer(serializers.Serializer):
scheme = serializers.CharField()
body = serializers.CharField()
path = serializers.CharField()
method = serializers.CharField()
userAgent = serializers.CharField()
nowTime = serializers.DateTimeField()
requ... | 33 | 46 | 0.746556 | 30 | 363 | 9 | 0.6 | 0.37037 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.165289 | 363 | 11 | 47 | 33 | 0.891089 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
51e6efbe48020014c7df29633835dced16916945 | 1,550 | py | Python | ircsyslog/config.py | examknow/ircsyslog | 7168d3a5a8c52279d2fb7367590c07832071f38e | [
"MIT"
] | null | null | null | ircsyslog/config.py | examknow/ircsyslog | 7168d3a5a8c52279d2fb7367590c07832071f38e | [
"MIT"
] | null | null | null | ircsyslog/config.py | examknow/ircsyslog | 7168d3a5a8c52279d2fb7367590c07832071f38e | [
"MIT"
] | null | null | null | import yaml
from re import compile as re_compile
from dataclasses import dataclass
from typing import Dict, Tuple, Optional, Pattern, List
@dataclass
class Config(object):
server: Tuple[str, int, bool]
nickname: str
username: str
realname: str
channel: str
reportformat: str
... | 25.833333 | 81 | 0.61871 | 184 | 1,550 | 5.054348 | 0.309783 | 0.150538 | 0.069892 | 0.043011 | 0.152688 | 0.152688 | 0.088172 | 0.088172 | 0.088172 | 0 | 0 | 0.00087 | 0.258065 | 1,550 | 59 | 82 | 26.271186 | 0.807826 | 0 | 0 | 0 | 0 | 0 | 0.072903 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.020833 | false | 0.0625 | 0.083333 | 0 | 0.395833 | 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 | 0 | 0 | 0 | 1 |
51ea225dc3d3bd966df6702e1b976a6c02f57b33 | 2,207 | py | Python | XSTAF/tools/sample_tool/ui/ui_sampleDialog.py | xcgspring/XSTAF | 68a5bec4312173f931b9024e851cefaf778e3bfd | [
"Apache-2.0"
] | 2 | 2016-03-21T01:02:57.000Z | 2018-03-16T02:25:04.000Z | XSTAF/tools/sample_tool/ui/ui_sampleDialog.py | xcgspring/XSTAF | 68a5bec4312173f931b9024e851cefaf778e3bfd | [
"Apache-2.0"
] | null | null | null | XSTAF/tools/sample_tool/ui/ui_sampleDialog.py | xcgspring/XSTAF | 68a5bec4312173f931b9024e851cefaf778e3bfd | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'sampleDialog.ui'
#
# Created: Tue Mar 17 12:55:23 2015
# by: PyQt4 UI code generator 4.11.3
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
try:
_fromUtf8 = QtCore.QString.fromUtf8
except A... | 40.87037 | 113 | 0.718169 | 238 | 2,207 | 6.588235 | 0.428571 | 0.058036 | 0.05102 | 0.071429 | 0.172194 | 0.172194 | 0.172194 | 0.172194 | 0.104592 | 0.104592 | 0 | 0.023433 | 0.168555 | 2,207 | 53 | 114 | 41.641509 | 0.831063 | 0.098324 | 0 | 0.157895 | 1 | 0 | 0.062563 | 0.012109 | 0 | 0 | 0 | 0 | 0 | 1 | 0.131579 | false | 0 | 0.052632 | 0.078947 | 0.289474 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
51ea411a8a09fa791ca371f4f5e6bc1d3c23440b | 36,105 | py | Python | parser/fase2/team11/generadorC3D/gramaticaC3D.py | Josue-Zea/tytus | f9e4be9a8c03eb698fade7a748972e4f52d46685 | [
"MIT"
] | 35 | 2020-12-07T03:11:43.000Z | 2021-04-15T17:38:16.000Z | parser/fase2/team11/generadorC3D/gramaticaC3D.py | Josue-Zea/tytus | f9e4be9a8c03eb698fade7a748972e4f52d46685 | [
"MIT"
] | 47 | 2020-12-09T01:29:09.000Z | 2021-01-13T05:37:50.000Z | parser/fase2/team11/generadorC3D/gramaticaC3D.py | Josue-Zea/tytus | f9e4be9a8c03eb698fade7a748972e4f52d46685 | [
"MIT"
] | 556 | 2020-12-07T03:13:31.000Z | 2021-06-17T17:41:10.000Z | import ply.yacc as yacc
import ply.lex as lex
import re
from generadorC3D.clases import Enum, Error, EType, Nodo, TraducirProcedimientos
from generadorC3D.creacionArbol import *
#from reporteEnEjecucion import *
from graphviz import render
contadorTemp = 0
C3Direcciones = []
Errores = []
procedimientos = []
reserva... | 34.418494 | 129 | 0.538513 | 3,647 | 36,105 | 5.256924 | 0.153277 | 0.023576 | 0.011214 | 0.013144 | 0.275193 | 0.192051 | 0.13744 | 0.080638 | 0.06207 | 0.042093 | 0 | 0.017228 | 0.307077 | 36,105 | 1,049 | 130 | 34.418494 | 0.749101 | 0.287495 | 0 | 0.116743 | 0 | 0.004608 | 0.328314 | 0.013009 | 0 | 0 | 0 | 0.000953 | 0 | 1 | 0.202765 | false | 0.001536 | 0.009217 | 0 | 0.227343 | 0.009217 | 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 | 0 | 0 | 0 | 1 |
51ec836cd70b602657efebec71ff36590d720e3b | 3,675 | py | Python | tests/profiles/adobefonts_test.py | Archangel-Ambriel/fontbakery | 360551e750c57461c49fe0be39c95797d4a65b4f | [
"Apache-2.0"
] | null | null | null | tests/profiles/adobefonts_test.py | Archangel-Ambriel/fontbakery | 360551e750c57461c49fe0be39c95797d4a65b4f | [
"Apache-2.0"
] | null | null | null | tests/profiles/adobefonts_test.py | Archangel-Ambriel/fontbakery | 360551e750c57461c49fe0be39c95797d4a65b4f | [
"Apache-2.0"
] | 1 | 2020-06-14T17:13:59.000Z | 2020-06-14T17:13:59.000Z | import os
from fontTools.ttLib import TTFont
from fontbakery.checkrunner import (PASS, WARN, FAIL)
from fontbakery.utils import TEST_FILE
def test_check_family_consistent_upm():
from fontbakery.profiles.adobefonts import (
com_adobe_fonts_check_family_consistent_upm as check)
base_path = TEST_FILE("... | 39.095745 | 119 | 0.708027 | 492 | 3,675 | 5.065041 | 0.286585 | 0.05618 | 0.070626 | 0.06862 | 0.430979 | 0.345506 | 0.280096 | 0.246388 | 0.246388 | 0.131621 | 0 | 0.011852 | 0.196463 | 3,675 | 93 | 120 | 39.516129 | 0.832035 | 0.157279 | 0 | 0.327869 | 0 | 0 | 0.232422 | 0.199219 | 0 | 0 | 0.001953 | 0 | 0.131148 | 1 | 0.065574 | false | 0.065574 | 0.147541 | 0 | 0.213115 | 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 | 0 | 0 | 0 | 1 |
51f4668617ca402d6bf3cfac93377f8ff97cf66e | 3,569 | py | Python | large_app/python/api/auth/basic_auth.py | sahilGupta89/large_flask_app | e1ab54431bb935c02186f586d9246b741d9f2d33 | [
"MIT"
] | null | null | null | large_app/python/api/auth/basic_auth.py | sahilGupta89/large_flask_app | e1ab54431bb935c02186f586d9246b741d9f2d33 | [
"MIT"
] | null | null | null | large_app/python/api/auth/basic_auth.py | sahilGupta89/large_flask_app | e1ab54431bb935c02186f586d9246b741d9f2d33 | [
"MIT"
] | null | null | null | from dataclasses import dataclass
import logging
import auth0
from models import Auth0Mapping, BasicCache, db, User
log = logging.getLogger(__name__)
@dataclass
class BasicAuthResult:
user: User
token_result: auth0.TokenResult
def user_from_basic_auth_request(request) -> User:
basic_auth_result = requ... | 26.634328 | 79 | 0.692631 | 448 | 3,569 | 5.28125 | 0.245536 | 0.106932 | 0.031699 | 0.037194 | 0.24049 | 0.125951 | 0.071851 | 0.038884 | 0.038884 | 0 | 0 | 0.009482 | 0.231718 | 3,569 | 133 | 80 | 26.834586 | 0.853392 | 0.105352 | 0 | 0.160494 | 0 | 0 | 0.041351 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0.160494 | 0.049383 | 0 | 0.320988 | 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 | 0 | 0 | 0 | 1 |
51fa900520035acfd61116f0a9e15503e0be4641 | 4,244 | py | Python | bin/pylib/depend/depsettings.py | grbd/GBD.Embedded.CMake4Mbed | b0b61af1be3f36604aeb4dc5cf671720cd12a2ba | [
"Apache-2.0"
] | null | null | null | bin/pylib/depend/depsettings.py | grbd/GBD.Embedded.CMake4Mbed | b0b61af1be3f36604aeb4dc5cf671720cd12a2ba | [
"Apache-2.0"
] | null | null | null | bin/pylib/depend/depsettings.py | grbd/GBD.Embedded.CMake4Mbed | b0b61af1be3f36604aeb4dc5cf671720cd12a2ba | [
"Apache-2.0"
] | null | null | null | """
Represents the Depend settings
"""
# Always try to import cElementTree since it's faster if it exists
try:
import xml.etree.cElementTree as ET
except ImportError:
import xml.etree.ElementTree as ET
import platform
from os.path import join, abspath, exists
from pylib.logwrapper import LogWrapper
from pyli... | 35.07438 | 114 | 0.614515 | 456 | 4,244 | 5.684211 | 0.348684 | 0.032407 | 0.021219 | 0.042824 | 0.072145 | 0.039352 | 0 | 0 | 0 | 0 | 0 | 0.000657 | 0.282988 | 4,244 | 120 | 115 | 35.366667 | 0.850805 | 0.111687 | 0 | 0.116883 | 0 | 0 | 0.161662 | 0.014875 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.090909 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
51fc5f7d59972dfc55fa2c21af54e5cec73e21dc | 28,601 | py | Python | data.py | wenbingtao/GLHA | ff81c29de3cc742374ed497fc85d601bf3f1a92b | [
"MIT"
] | 8 | 2021-02-08T09:58:40.000Z | 2022-01-18T17:53:00.000Z | data.py | wenbingtao/GLHA | ff81c29de3cc742374ed497fc85d601bf3f1a92b | [
"MIT"
] | null | null | null | data.py | wenbingtao/GLHA | ff81c29de3cc742374ed497fc85d601bf3f1a92b | [
"MIT"
] | 2 | 2021-03-09T11:27:48.000Z | 2021-11-08T14:23:53.000Z |
# Load data
from __future__ import print_function
import os
import pickle
import h5py
import numpy as np
import cv2
from transformations import quaternion_from_matrix
from utils import loadh5
def load_geom(geom_file, geom_type, scale_factor, flip_R=False):
if geom_type == "calibration":
# load geome... | 32.427438 | 112 | 0.527534 | 3,753 | 28,601 | 3.786038 | 0.103917 | 0.025125 | 0.028855 | 0.021676 | 0.723485 | 0.697445 | 0.684918 | 0.660919 | 0.638891 | 0.638891 | 0 | 0.024982 | 0.328205 | 28,601 | 882 | 113 | 32.427438 | 0.714531 | 0.160379 | 0 | 0.661591 | 0 | 0 | 0.049744 | 0.000924 | 0 | 0 | 0 | 0.001134 | 0.003384 | 1 | 0.018613 | false | 0 | 0.013536 | 0 | 0.049069 | 0.055838 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
a4000c7d394983dc512bde51770ed306417a6a45 | 11,446 | py | Python | enigma.py | kmggh/python-enigma-machine | 1b461d5a6ac0252db2f927692bc487e1968443a7 | [
"Artistic-2.0"
] | 1 | 2015-01-20T15:35:13.000Z | 2015-01-20T15:35:13.000Z | enigma.py | kmggh/python-enigma-machine | 1b461d5a6ac0252db2f927692bc487e1968443a7 | [
"Artistic-2.0"
] | null | null | null | enigma.py | kmggh/python-enigma-machine | 1b461d5a6ac0252db2f927692bc487e1968443a7 | [
"Artistic-2.0"
] | null | null | null | # Copyright (C) 2015 by Ken Guyton. All Rights Reserved.
"""An emulator for the enigma machine.
The sequence of data flow is:
in --> pb-r3-r2-r1-refl-r1-r2-r3-pb --> out
-------- --------
forward reverse
pb is the PlugBoard.
r1, r2, r3 are the rotors, specifically the RotorShifters.
... | 29.807292 | 75 | 0.683558 | 1,727 | 11,446 | 4.384482 | 0.158078 | 0.029054 | 0.01598 | 0.011094 | 0.374802 | 0.34271 | 0.31458 | 0.293053 | 0.280243 | 0.280243 | 0 | 0.010348 | 0.231697 | 11,446 | 383 | 76 | 29.885117 | 0.850694 | 0.533199 | 0 | 0.12844 | 0 | 0 | 0.033833 | 0.033405 | 0 | 0 | 0 | 0 | 0 | 1 | 0.229358 | false | 0 | 0.009174 | 0 | 0.431193 | 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 | 0 | 0 | 0 | 1 |
cf9178c5c9b167462f5ae3db177a86eaa00e16ff | 3,896 | py | Python | src/corex/subtree.py | rsling/cow | afd42457a5f454e2271711ddaf0ef67406d4777f | [
"BSD-2-Clause"
] | 2 | 2019-01-19T11:31:08.000Z | 2020-08-10T08:36:34.000Z | src/corex/subtree.py | rsling/cow | afd42457a5f454e2271711ddaf0ef67406d4777f | [
"BSD-2-Clause"
] | null | null | null | src/corex/subtree.py | rsling/cow | afd42457a5f454e2271711ddaf0ef67406d4777f | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/python
from anytree import Node, RenderTree, find, AnyNode
class SubtreeBuilder():
"""Utility class for rebuilding dependency (sub)trees from a list of (word, annos) tuples"""
def __init__(self, depindpos=0, dephdpos=1, deprelpos=2):
self.depindpos = int(depindpos)
self.dephdpos = ... | 38.196078 | 273 | 0.639887 | 531 | 3,896 | 4.591337 | 0.186441 | 0.073831 | 0.085316 | 0.036916 | 0.288761 | 0.228876 | 0.228876 | 0.228876 | 0.228876 | 0.215751 | 0 | 0.002022 | 0.238193 | 3,896 | 101 | 274 | 38.574257 | 0.819407 | 0.056982 | 0 | 0.121212 | 0 | 0 | 0.018827 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.212121 | false | 0 | 0.015152 | 0.060606 | 0.257576 | 0.060606 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cf997fa77e98fc38096e14e06c9ff8512fe9f73f | 2,648 | py | Python | src/modelSuite/XTran/palTrans/seconPal.py | mirofedurco/PyAstronomy | b0e5806a18bde647654e6c9de323327803722864 | [
"MIT"
] | 98 | 2015-01-01T12:46:05.000Z | 2022-02-13T14:17:36.000Z | src/modelSuite/XTran/palTrans/seconPal.py | mirofedurco/PyAstronomy | b0e5806a18bde647654e6c9de323327803722864 | [
"MIT"
] | 46 | 2015-02-10T19:53:38.000Z | 2022-01-11T17:26:05.000Z | src/modelSuite/XTran/palTrans/seconPal.py | mirofedurco/PyAstronomy | b0e5806a18bde647654e6c9de323327803722864 | [
"MIT"
] | 38 | 2015-01-08T17:00:34.000Z | 2022-03-04T05:15:22.000Z | from __future__ import division
from . import pal
import PyAstronomy.funcFit as fuf
from PyAstronomy.pyaC import pyaErrors as PE
import six
class SecPalLC(fuf.OneDFit):
"""
Calculate and fit analytical secondary transit light-curves using the formulae
provided by Pal 2008.
.. note :: The **evaluatio... | 34.38961 | 117 | 0.608006 | 356 | 2,648 | 4.488764 | 0.47191 | 0.026283 | 0.011264 | 0.026283 | 0.041302 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017241 | 0.27719 | 2,648 | 76 | 118 | 34.842105 | 0.817659 | 0.598565 | 0 | 0 | 0 | 0 | 0.067198 | 0 | 0 | 0 | 0 | 0.013158 | 0 | 1 | 0.08 | false | 0 | 0.2 | 0 | 0.36 | 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 | 0 | 0 | 0 | 1 |
cf9a624f70dd6402d32565ee8a5fb6a00a725b1f | 1,628 | py | Python | webapp/core/migrations/0001_initial.py | kvnlee5818/immunichain | 8c3e6a38772117554f54a855b0d6d92bdeb413e2 | [
"Apache-2.0"
] | null | null | null | webapp/core/migrations/0001_initial.py | kvnlee5818/immunichain | 8c3e6a38772117554f54a855b0d6d92bdeb413e2 | [
"Apache-2.0"
] | null | null | null | webapp/core/migrations/0001_initial.py | kvnlee5818/immunichain | 8c3e6a38772117554f54a855b0d6d92bdeb413e2 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.2 on 2017-07-27 18:13
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migratio... | 42.842105 | 189 | 0.621007 | 177 | 1,628 | 5.553672 | 0.519774 | 0.076297 | 0.057986 | 0.070193 | 0.250254 | 0.250254 | 0.250254 | 0.250254 | 0.250254 | 0.160732 | 0 | 0.024019 | 0.232801 | 1,628 | 37 | 190 | 44 | 0.76301 | 0.041769 | 0 | 0.344828 | 1 | 0.034483 | 0.19589 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.137931 | 0 | 0.275862 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cf9d789f87c683ebd33a175ce0978db73e602e52 | 820 | py | Python | Code/plot_attentions.py | anjandeepsahni/automatic_speech_recognition | 181d6435e1846bb137218e260e2f65584e045bd8 | [
"MIT"
] | 7 | 2020-02-07T12:19:02.000Z | 2022-02-03T14:37:47.000Z | Code/plot_attentions.py | anjandeepsahni/automatic_speech_recognition | 181d6435e1846bb137218e260e2f65584e045bd8 | [
"MIT"
] | 1 | 2020-07-09T04:25:01.000Z | 2020-07-09T04:25:01.000Z | Code/plot_attentions.py | anjandeepsahni/automatic_speech_recognition | 181d6435e1846bb137218e260e2f65584e045bd8 | [
"MIT"
] | 4 | 2020-05-05T20:17:37.000Z | 2022-02-03T14:37:47.000Z | import matplotlib.pyplot as plt
import torch
# mode = 'train'
# mode = 'val'
mode = 'test'
if mode == 'train':
attention_weights = torch.load('./attention_weights_train.pt',
map_location='cpu')
elif mode == 'val':
attention_weights = torch.load('./attention_weights_val.pt',
... | 31.538462 | 76 | 0.632927 | 108 | 820 | 4.564815 | 0.388889 | 0.292089 | 0.127789 | 0.15213 | 0.322515 | 0.249493 | 0 | 0 | 0 | 0 | 0 | 0.009434 | 0.22439 | 820 | 25 | 77 | 32.8 | 0.765723 | 0.032927 | 0 | 0.142857 | 0 | 0 | 0.129114 | 0.102532 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.095238 | 0 | 0.095238 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cfa835d76f108eb6066f16dd21e18d87bef4b109 | 984 | py | Python | setup.py | sebdah/markdown-docs | e95c97975ddf56ed0750b553287fffdaae3148b4 | [
"Apache-2.0"
] | 1 | 2016-05-17T05:20:16.000Z | 2016-05-17T05:20:16.000Z | setup.py | sebdah/markdown-docs | e95c97975ddf56ed0750b553287fffdaae3148b4 | [
"Apache-2.0"
] | 1 | 2021-04-23T20:47:43.000Z | 2021-04-23T20:47:43.000Z | setup.py | sebdah/markdown-docs | e95c97975ddf56ed0750b553287fffdaae3148b4 | [
"Apache-2.0"
] | 1 | 2016-05-17T05:24:08.000Z | 2016-05-17T05:24:08.000Z | """ Setup script for PyPI """
from setuptools import setup
setup(name='markdown-docs',
version='0.2.0',
license='Apache License, Version 2.0',
description='Documentation generator for Markdown projects',
author='Sebastian Dahlgren',
author_email='sebastian.dahlgren@gmail.com',
maintainer='Seba... | 29.818182 | 64 | 0.636179 | 104 | 984 | 5.961538 | 0.673077 | 0.109677 | 0.070968 | 0.087097 | 0.096774 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018205 | 0.218496 | 984 | 32 | 65 | 30.75 | 0.788036 | 0.021341 | 0 | 0 | 0 | 0 | 0.510995 | 0.058639 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.034483 | 0 | 0.034483 | 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 | 0 | 0 | 0 | 1 |
cfb26f3d3e2d2f26547c074cf61afb8034f26b57 | 2,208 | py | Python | py/FileSplit.py | pandafw/panda-scripts | f0c029d86a7f6d21576f0e830fba934dd1f4bd3d | [
"Apache-2.0"
] | null | null | null | py/FileSplit.py | pandafw/panda-scripts | f0c029d86a7f6d21576f0e830fba934dd1f4bd3d | [
"Apache-2.0"
] | null | null | null | py/FileSplit.py | pandafw/panda-scripts | f0c029d86a7f6d21576f0e830fba934dd1f4bd3d | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
# -*- coding: UTF-8 -*-
#
#
import os
import sys
import getopt
class FileSplitter:
def __init__(self):
# ----------------------------
# arguments
# ----------------------------
self.srcFile = None
self.outDir = None
self.divSize = 1024 * 1024
def showUsage(self, err = None, exitCode... | 20.635514 | 73 | 0.571558 | 307 | 2,208 | 4.071661 | 0.361564 | 0.0616 | 0.0384 | 0.0312 | 0.0624 | 0.0624 | 0.0624 | 0.048 | 0.048 | 0.048 | 0 | 0.029656 | 0.236413 | 2,208 | 106 | 74 | 20.830189 | 0.711744 | 0.050725 | 0 | 0.078947 | 0 | 0 | 0.162356 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.039474 | null | null | 0.157895 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cfb4d3f5683c2ffff9c5ea8f27ba6efa2955a11d | 1,517 | py | Python | hwpy_modules/port.py | wovo/hwpy | f00f2acf23bc7160d0970be609b06ea4d824b76b | [
"BSL-1.0"
] | null | null | null | hwpy_modules/port.py | wovo/hwpy | f00f2acf23bc7160d0970be609b06ea4d824b76b | [
"BSL-1.0"
] | 1 | 2019-11-13T23:17:53.000Z | 2019-11-14T07:48:22.000Z | hwpy_modules/port.py | wovo/hwpy | f00f2acf23bc7160d0970be609b06ea4d824b76b | [
"BSL-1.0"
] | null | null | null | """
port
part of hwpy: an OO hardware interface library
home: https://www.github.com/wovo/hwpy
"""
class port:
"""A port is a set of pins.
port.n is the number of pins.
port.pins are the pins themselves.
"""
def __init__( self, pins ):
"""Create a port from a list of pins.
"""
... | 23.338462 | 62 | 0.518787 | 215 | 1,517 | 3.623256 | 0.316279 | 0.071887 | 0.056483 | 0.061617 | 0.28113 | 0.232349 | 0.166881 | 0.112965 | 0.112965 | 0.112965 | 0 | 0.009646 | 0.38497 | 1,517 | 65 | 63 | 23.338462 | 0.825295 | 0.452208 | 0 | 0.347826 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.217391 | false | 0 | 0 | 0 | 0.304348 | 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 | 0 | 0 | 0 | 1 |
cfbd274fd40a91d8b310129842cab9d152f70355 | 3,503 | py | Python | codedep/decorators.py | MattShannon/codedep | 60c2f95e15e3aa17b0d85162f48f8f95774612ac | [
"BSD-3-Clause"
] | 2 | 2017-05-21T20:27:52.000Z | 2017-11-02T12:27:50.000Z | codedep/decorators.py | MattShannon/codedep | 60c2f95e15e3aa17b0d85162f48f8f95774612ac | [
"BSD-3-Clause"
] | null | null | null | codedep/decorators.py | MattShannon/codedep | 60c2f95e15e3aa17b0d85162f48f8f95774612ac | [
"BSD-3-Clause"
] | null | null | null | """Decorators for adding dependency information to functions and objects."""
# Copyright 2011, 2012, 2013, 2014 Matt Shannon
# This file is part of codedep.
# See `License` for details of license and warranty.
import inspect
from codedep.hash import hashString
def _updateInfo(fnOrClassOrObj):
"""Sets any unse... | 29.940171 | 79 | 0.674279 | 433 | 3,503 | 5.39261 | 0.355658 | 0.04454 | 0.023555 | 0.034261 | 0.289936 | 0.217559 | 0.157602 | 0.140471 | 0.112206 | 0.112206 | 0 | 0.008171 | 0.266343 | 3,503 | 116 | 80 | 30.198276 | 0.900389 | 0.624607 | 0 | 0.266667 | 0 | 0 | 0.029935 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.233333 | false | 0 | 0.066667 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cfbe7fff1d80e270086c03182a10cf4acf044be2 | 2,331 | py | Python | votes/migrations/0003_auto_20170928_2238.py | Angoreher/xcero | 27965682dcb4a8c300110a277905633e0201ffd7 | [
"MIT"
] | null | null | null | votes/migrations/0003_auto_20170928_2238.py | Angoreher/xcero | 27965682dcb4a8c300110a277905633e0201ffd7 | [
"MIT"
] | null | null | null | votes/migrations/0003_auto_20170928_2238.py | Angoreher/xcero | 27965682dcb4a8c300110a277905633e0201ffd7 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.5 on 2017-09-29 01:38
from __future__ import unicode_literals
import django.core.validators
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('magic', '0006_auto_20170928_2... | 37.596774 | 178 | 0.598456 | 232 | 2,331 | 5.849138 | 0.37069 | 0.048637 | 0.041268 | 0.064849 | 0.271186 | 0.229919 | 0.094326 | 0.094326 | 0.094326 | 0.094326 | 0 | 0.02346 | 0.268554 | 2,331 | 61 | 179 | 38.213115 | 0.772434 | 0.029172 | 0 | 0.388889 | 1 | 0 | 0.135841 | 0.010177 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.074074 | 0 | 0.12963 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cfca19e3357a2a2689bc0c8ceea383b275fbf8e1 | 2,316 | py | Python | Train/Train_patchcnn_224.py | giussepi/cyto_CRLM | 4489d5d81c4270ec7b6048ceb2f2a02bfa699177 | [
"Apache-2.0"
] | null | null | null | Train/Train_patchcnn_224.py | giussepi/cyto_CRLM | 4489d5d81c4270ec7b6048ceb2f2a02bfa699177 | [
"Apache-2.0"
] | 6 | 2020-03-24T18:11:41.000Z | 2022-03-12T00:16:18.000Z | Train/Train_patchcnn_224.py | giussepi/cyto_CRLM | 4489d5d81c4270ec7b6048ceb2f2a02bfa699177 | [
"Apache-2.0"
] | null | null | null | import torch
import torch.nn as nn
from torch.autograd import Variable
from train_module import *
import torch.optim as optim
from torch.optim import lr_scheduler
import numpy as np
import torchvision
from torchvision import datasets, models, transforms
from torch.utils.data import Dataset, DataLoader
#import matplotl... | 32.166667 | 133 | 0.764249 | 356 | 2,316 | 4.769663 | 0.382022 | 0.03298 | 0.030624 | 0.031802 | 0.179623 | 0.151355 | 0.151355 | 0.13192 | 0.13192 | 0.13192 | 0 | 0.036085 | 0.126511 | 2,316 | 72 | 134 | 32.166667 | 0.803262 | 0.073402 | 0 | 0 | 0 | 0 | 0.129439 | 0.098598 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 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 | 0 | 0 | 0 | 1 |
cfd58041a1d396e88866a346d6a6f34a8720dfd1 | 5,793 | py | Python | lib/decorators.py | rcarmo/rss2imap-gae | 7f64d92ec9e91edd85fca03fed4ef9128565463e | [
"MIT"
] | 2 | 2015-02-23T22:35:12.000Z | 2019-02-27T01:18:30.000Z | lib/decorators.py | rcarmo/rss2imap-gae | 7f64d92ec9e91edd85fca03fed4ef9128565463e | [
"MIT"
] | null | null | null | lib/decorators.py | rcarmo/rss2imap-gae | 7f64d92ec9e91edd85fca03fed4ef9128565463e | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Decorator functions
Created by: Rui Carmo
"""
from bottle import request, response, route, abort
import time, binascii, hashlib, email.utils, functools, json
from datetime import datetime
import logging
from google.appengine.api import memcache
log = logging.getLogg... | 31.655738 | 104 | 0.546176 | 608 | 5,793 | 5.098684 | 0.310855 | 0.039032 | 0.060323 | 0.040323 | 0.235161 | 0.192903 | 0.192903 | 0.128387 | 0.072258 | 0.072258 | 0 | 0.004944 | 0.336613 | 5,793 | 182 | 105 | 31.82967 | 0.801717 | 0.015881 | 0 | 0.348485 | 0 | 0 | 0.068563 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.037879 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cfda09cd0d5dc2fef179937b1fbaebb3002f9a90 | 868 | py | Python | ngos/urls.py | daksh2k/cov-web | 4fd37ee215ccb7673981ae2104f90cb097269e9d | [
"MIT"
] | null | null | null | ngos/urls.py | daksh2k/cov-web | 4fd37ee215ccb7673981ae2104f90cb097269e9d | [
"MIT"
] | null | null | null | ngos/urls.py | daksh2k/cov-web | 4fd37ee215ccb7673981ae2104f90cb097269e9d | [
"MIT"
] | null | null | null | from django.contrib import admin
from django.urls import path, include
from django.conf import settings
from django.conf.urls.static import static
from . import views
urlpatterns = [
path('login', views.login, name='ngologin'),
path('register', views.register, name='ngoregister'),
path('logout', views.log... | 43.4 | 110 | 0.746544 | 95 | 868 | 6.768421 | 0.368421 | 0.062208 | 0.043546 | 0.065319 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.104839 | 868 | 19 | 111 | 45.684211 | 0.827542 | 0 | 0 | 0 | 0 | 0 | 0.328341 | 0.150922 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.3125 | 0 | 0.3125 | 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 | 0 | 0 | 0 | 1 |
cfdc0e814f15e225050edff7f91431225374ffef | 3,746 | py | Python | cexapi.py | toomyem/cex-bot | 2cf8ccddfad18e2af1170e94e29a8cd3912bf7f3 | [
"Unlicense"
] | 1 | 2016-06-29T13:07:26.000Z | 2016-06-29T13:07:26.000Z | cexapi.py | toomyem/cex-bot | 2cf8ccddfad18e2af1170e94e29a8cd3912bf7f3 | [
"Unlicense"
] | null | null | null | cexapi.py | toomyem/cex-bot | 2cf8ccddfad18e2af1170e94e29a8cd3912bf7f3 | [
"Unlicense"
] | null | null | null |
import json
import urllib
import urllib2
import hmac
import hashlib
import time
def _map_order(o):
return {'id': int(o['id']),
'type': str(o['type']),
'amount': float(o['amount']),
'price': float(o['price']),
'time': int(o['time'])/1000, # cex gives time in ms
'pend... | 30.958678 | 90 | 0.593433 | 519 | 3,746 | 4.16763 | 0.277457 | 0.02589 | 0.016644 | 0.009709 | 0.141008 | 0.134998 | 0.134998 | 0.116505 | 0.116505 | 0.116505 | 0 | 0.008267 | 0.22504 | 3,746 | 120 | 91 | 31.216667 | 0.736824 | 0.005339 | 0 | 0.061224 | 0 | 0 | 0.153371 | 0.005909 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.061224 | null | null | 0.010204 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cfe95f2e1356cddf82deeffb787364a15f1c01a3 | 390 | py | Python | nc/migrations/0024_remove_asset_trusted_by.py | kfarrelly/nucleo | 096fa9fdfac39383269904f5d58b3714ce2d2f46 | [
"Apache-2.0"
] | 1 | 2022-01-10T23:35:53.000Z | 2022-01-10T23:35:53.000Z | nc/migrations/0024_remove_asset_trusted_by.py | kfarrelly/nucleo | 096fa9fdfac39383269904f5d58b3714ce2d2f46 | [
"Apache-2.0"
] | null | null | null | nc/migrations/0024_remove_asset_trusted_by.py | kfarrelly/nucleo | 096fa9fdfac39383269904f5d58b3714ce2d2f46 | [
"Apache-2.0"
] | 1 | 2022-01-10T23:36:32.000Z | 2022-01-10T23:36:32.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.13 on 2018-05-31 21:52
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('nc', '0023_asset_trusted_by'),
]
operations = [
migrations.RemoveField(
... | 19.5 | 49 | 0.610256 | 44 | 390 | 5.181818 | 0.75 | 0.078947 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.077465 | 0.271795 | 390 | 19 | 50 | 20.526316 | 0.725352 | 0.176923 | 0 | 0 | 1 | 0 | 0.119497 | 0.066038 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cfee9d1460259b74b4e1d6f34b4ba9f856af6ad0 | 920 | py | Python | tests/test_ps_preduce.py | axiserr/Hetu | 0052f727488db0570d6b37f63549b43b0920bc29 | [
"Apache-2.0"
] | 82 | 2021-07-20T02:45:54.000Z | 2022-03-14T07:08:45.000Z | tests/test_ps_preduce.py | axiserr/Hetu | 0052f727488db0570d6b37f63549b43b0920bc29 | [
"Apache-2.0"
] | 4 | 2021-11-25T13:39:21.000Z | 2022-03-13T04:14:14.000Z | tests/test_ps_preduce.py | axiserr/Hetu | 0052f727488db0570d6b37f63549b43b0920bc29 | [
"Apache-2.0"
] | 13 | 2021-07-18T14:40:56.000Z | 2022-03-09T06:37:42.000Z | from hetu import get_worker_communicate
from hetu.preduce import PartialReduce
from hetu import ndarray
import hetu as ht
import ctypes
import argparse
import numpy as np
from tqdm import tqdm
import time
import random
def test(args):
comm = get_worker_communicate()
rank = comm.rank()
comm.ssp_init(rank ... | 23.589744 | 56 | 0.653261 | 132 | 920 | 4.393939 | 0.431818 | 0.041379 | 0.048276 | 0.037931 | 0.044828 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022599 | 0.230435 | 920 | 38 | 57 | 24.210526 | 0.79661 | 0 | 0 | 0.060606 | 0 | 0 | 0.023913 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060606 | false | 0 | 0.30303 | 0 | 0.363636 | 0.060606 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
cff1c4fcd91cc461d1c8ab96e88d957ce7dd435f | 566 | py | Python | django_log_entry_audit/migrations/0002_fields.py | dukic-dev/django-log-entry-audit | bd1031fd7ec2daa09e36aa902ca645cc1072184e | [
"MIT"
] | null | null | null | django_log_entry_audit/migrations/0002_fields.py | dukic-dev/django-log-entry-audit | bd1031fd7ec2daa09e36aa902ca645cc1072184e | [
"MIT"
] | null | null | null | django_log_entry_audit/migrations/0002_fields.py | dukic-dev/django-log-entry-audit | bd1031fd7ec2daa09e36aa902ca645cc1072184e | [
"MIT"
] | null | null | null | # Generated by Django 3.0.8 on 2020-12-07 11:19
import django.contrib.postgres.fields.jsonb
from django.db import migrations
import django_log_entry_audit.encoders
class Migration(migrations.Migration):
dependencies = [
("django_log_entry_audit", "0001_initial"),
]
operations = [
migrat... | 24.608696 | 68 | 0.650177 | 62 | 566 | 5.758065 | 0.612903 | 0.07563 | 0.117647 | 0.159664 | 0.330532 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045024 | 0.254417 | 566 | 22 | 69 | 25.727273 | 0.800948 | 0.079505 | 0 | 0.125 | 1 | 0 | 0.092486 | 0.042389 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1875 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cff3124e4f8f8de4c0d43fdd718206d7a6660ab0 | 1,852 | py | Python | src/api/custom_logger.py | CallumHoughton18/Mushroom-Classification | 10e376a925147f82dd73c69f117fb0d95cc7725f | [
"MIT"
] | 1 | 2021-01-17T19:44:13.000Z | 2021-01-17T19:44:13.000Z | src/api/custom_logger.py | mbeacom/Mushroom-Classification | ab8a08498c93aa0d307dbcfb37b00f27a63055df | [
"MIT"
] | null | null | null | src/api/custom_logger.py | mbeacom/Mushroom-Classification | ab8a08498c93aa0d307dbcfb37b00f27a63055df | [
"MIT"
] | 1 | 2021-01-17T19:44:30.000Z | 2021-01-17T19:44:30.000Z | """Contains method for setting up application wide logger"""
from os import path, mkdir
from enum import Enum
import logging.config
import logging
import yaml
from api.helpers import generate_enviroment_variable_yaml_loader
class LoggerType(Enum):
"""Logger Type Enum to be used to return different configured log... | 35.615385 | 95 | 0.690605 | 232 | 1,852 | 5.336207 | 0.413793 | 0.019386 | 0.038772 | 0.038772 | 0.231826 | 0.144588 | 0.144588 | 0.144588 | 0.144588 | 0.103393 | 0 | 0.002102 | 0.229482 | 1,852 | 51 | 96 | 36.313725 | 0.865452 | 0.12203 | 0 | 0.142857 | 1 | 0 | 0.127673 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.085714 | false | 0 | 0.2 | 0 | 0.428571 | 0.085714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cffb2eed5d0e81acd8bedbad30a52ddd5573aace | 994 | py | Python | com_port.py | tunerok/py_com_writer | d3c3773730387da1d1885e32e428387cc17740ce | [
"MIT"
] | null | null | null | com_port.py | tunerok/py_com_writer | d3c3773730387da1d1885e32e428387cc17740ce | [
"MIT"
] | null | null | null | com_port.py | tunerok/py_com_writer | d3c3773730387da1d1885e32e428387cc17740ce | [
"MIT"
] | null | null | null | import serial, os, datetime
#generate the name of the file
now = datetime.datetime.now()
out_file = open(str(now).replace(".","").replace(" ","").replace(":","").replace("-",""), 'w')
#asking user to configure new port connection
print('Enter COM number: ')
C_PORT_NUMBER = int(input())
print('Enter COM-port speed: '... | 23.116279 | 102 | 0.620724 | 144 | 994 | 4.180556 | 0.409722 | 0.139535 | 0.139535 | 0.07309 | 0.225914 | 0.225914 | 0.225914 | 0.225914 | 0.225914 | 0.225914 | 0 | 0.007417 | 0.186117 | 994 | 42 | 103 | 23.666667 | 0.736712 | 0.196177 | 0 | 0.307692 | 1 | 0 | 0.107459 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.038462 | 0 | 0.038462 | 0.153846 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
cffbf11e30accffa052e6ea90f7739ed9f7c871a | 1,473 | py | Python | pysk8/pysk8/util.py | andrewramsay/sk8-drivers | 67347a71762fb421f5ae65a595def5c7879e8b0c | [
"MIT"
] | null | null | null | pysk8/pysk8/util.py | andrewramsay/sk8-drivers | 67347a71762fb421f5ae65a595def5c7879e8b0c | [
"MIT"
] | 4 | 2018-03-09T11:28:37.000Z | 2018-03-09T11:30:12.000Z | pysk8/pysk8/util.py | andrewramsay/sk8-drivers | 67347a71762fb421f5ae65a595def5c7879e8b0c | [
"MIT"
] | null | null | null | import sys
def fmt_addr(addr):
""" Format a Bluetooth hardware address as a hex string.
Args:
addr (bytes): raw Bluetooth address in dongle format.
Returns:
str. Address in xx:xx:xx:xx:xx:xx format.
"""
return ':'.join(reversed(['{:02x}'.format(v) for v in bytearray(addr)]))
... | 30.6875 | 88 | 0.631365 | 221 | 1,473 | 4.167421 | 0.307692 | 0.065147 | 0.078176 | 0.078176 | 0.198697 | 0.198697 | 0.185668 | 0.185668 | 0.152009 | 0.093377 | 0 | 0.012579 | 0.244399 | 1,473 | 47 | 89 | 31.340426 | 0.814915 | 0.519348 | 0 | 0 | 0 | 0 | 0.03252 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.066667 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
320269a9e394a97d0c55fb7a4b9fbd6e750b571e | 3,171 | py | Python | awards/migrations/0001_initial.py | koyoo-maxwel/awards | 17a88a27a9a409683bb2d1d4afc864553bf9b118 | [
"MIT"
] | null | null | null | awards/migrations/0001_initial.py | koyoo-maxwel/awards | 17a88a27a9a409683bb2d1d4afc864553bf9b118 | [
"MIT"
] | null | null | null | awards/migrations/0001_initial.py | koyoo-maxwel/awards | 17a88a27a9a409683bb2d1d4afc864553bf9b118 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2018-10-18 11:45
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations... | 51.145161 | 181 | 0.559445 | 354 | 3,171 | 4.870057 | 0.293785 | 0.032483 | 0.032483 | 0.051044 | 0.470418 | 0.408933 | 0.389791 | 0.346868 | 0.346868 | 0.346868 | 0 | 0.041825 | 0.253548 | 3,171 | 61 | 182 | 51.983607 | 0.686523 | 0.020814 | 0 | 0.320755 | 1 | 0 | 0.105416 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.075472 | 0 | 0.150943 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3205b86a95221e174388ea49e90586e2adcbc4ba | 292 | py | Python | src/clients/urls.py | Bounty1993/rest-crm | 3a9af9cc7b70d66335317cce6b151cfd1fa043ba | [
"MIT"
] | null | null | null | src/clients/urls.py | Bounty1993/rest-crm | 3a9af9cc7b70d66335317cce6b151cfd1fa043ba | [
"MIT"
] | 6 | 2020-06-05T22:42:20.000Z | 2022-02-10T12:36:11.000Z | src/clients/urls.py | Bounty1993/rest-crm | 3a9af9cc7b70d66335317cce6b151cfd1fa043ba | [
"MIT"
] | null | null | null | from django.urls import path, include
from rest_framework import routers
from .views import ClientViewSet, ContactViewSet
app_name = 'clients'
router = routers.DefaultRouter()
router.register(r'manage', ClientViewSet)
router.register(r'contact', ContactViewSet)
urlpatterns = router.urls | 22.461538 | 48 | 0.808219 | 35 | 292 | 6.685714 | 0.628571 | 0.119658 | 0.128205 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.106164 | 292 | 13 | 49 | 22.461538 | 0.896552 | 0 | 0 | 0 | 0 | 0 | 0.068259 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 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 | 0 | 0 | 0 | 1 |
320f15895b1f261e826ba1be106f1a28689a261b | 633 | py | Python | src/python/detectors/log_injection/log_injection.py | martinschaef/amazon-codeguru-reviewer-python-detectors | 7452471b7ac5e1f2e1a0bfbd0f615d98f160e0e4 | [
"Apache-2.0"
] | 18 | 2022-01-27T22:50:22.000Z | 2022-02-15T17:41:24.000Z | src/python/detectors/log_injection/log_injection.py | martinschaef/amazon-codeguru-reviewer-python-detectors | 7452471b7ac5e1f2e1a0bfbd0f615d98f160e0e4 | [
"Apache-2.0"
] | 1 | 2022-01-31T21:36:18.000Z | 2022-02-22T17:09:54.000Z | src/python/detectors/log_injection/log_injection.py | martinschaef/amazon-codeguru-reviewer-python-detectors | 7452471b7ac5e1f2e1a0bfbd0f615d98f160e0e4 | [
"Apache-2.0"
] | 7 | 2022-02-10T21:50:50.000Z | 2022-03-28T14:21:10.000Z | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
import logging
logger = logging.getLogger(__name__)
# {fact rule=log-injection@v1.0 defects=1}
def logging_noncompliant():
filename = input("Enter a filename: ")
# Noncompliant: unsanitized input is l... | 27.521739 | 69 | 0.696682 | 80 | 633 | 5.4375 | 0.5625 | 0.05977 | 0.050575 | 0.091954 | 0.413793 | 0.289655 | 0.137931 | 0 | 0 | 0 | 0 | 0.015296 | 0.173776 | 633 | 22 | 70 | 28.772727 | 0.816444 | 0.458136 | 0 | 0.444444 | 0 | 0 | 0.186186 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
321178948e7dd8399a0fa8956ca92b6e22a1c9d1 | 570 | py | Python | examples/logistic/prediction-single.py | yanndupis/tf-encrypted | cfaea3ba87520f73979ed4e4f397eba3beb0a535 | [
"Apache-2.0"
] | null | null | null | examples/logistic/prediction-single.py | yanndupis/tf-encrypted | cfaea3ba87520f73979ed4e4f397eba3beb0a535 | [
"Apache-2.0"
] | null | null | null | examples/logistic/prediction-single.py | yanndupis/tf-encrypted | cfaea3ba87520f73979ed4e4f397eba3beb0a535 | [
"Apache-2.0"
] | null | null | null | import tf_encrypted as tfe
from common import LogisticRegression, PredictionClient
num_features = 10
model = LogisticRegression(num_features)
prediction_client = PredictionClient('prediction-client', num_features)
x = tfe.define_private_input(prediction_client.player_name, prediction_client.provide_input)
y = mode... | 28.5 | 101 | 0.812281 | 74 | 570 | 5.986486 | 0.5 | 0.216704 | 0.099323 | 0.117381 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003884 | 0.096491 | 570 | 19 | 102 | 30 | 0.856311 | 0 | 0 | 0 | 0 | 0 | 0.049123 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.181818 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
3217fcc0cb1e95c467f85e8ef8f55f587b78fd46 | 1,639 | py | Python | p2j.py | paulo1er/PST-Toeic | 6ffe02bc3cea54aab2db2c8f3cde5a153417cf51 | [
"MIT"
] | null | null | null | p2j.py | paulo1er/PST-Toeic | 6ffe02bc3cea54aab2db2c8f3cde5a153417cf51 | [
"MIT"
] | 1 | 2018-12-18T16:59:35.000Z | 2018-12-18T17:03:25.000Z | p2j.py | paulo1er/PST-Toeic | 6ffe02bc3cea54aab2db2c8f3cde5a153417cf51 | [
"MIT"
] | null | null | null |
import os
import shutil
from pdf2image import convert_from_path
from PyPDF2 import PdfFileWriter, PdfFileReader
"""
This file contains functions to extract the pdf into multiple jpg images
"""
# split the pdf into multiple 1-page pdfs
def splitPdf(inputPath):
inputpdf = PdfFileReader(open(inp... | 24.102941 | 83 | 0.630262 | 201 | 1,639 | 5.074627 | 0.462687 | 0.027451 | 0.044118 | 0.047059 | 0.102941 | 0.05098 | 0 | 0 | 0 | 0 | 0 | 0.009967 | 0.265406 | 1,639 | 67 | 84 | 24.462687 | 0.837209 | 0.120195 | 0 | 0.117647 | 0 | 0 | 0.117596 | 0.020035 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.117647 | null | null | 0.029412 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
321840854090a2e62067f50d5d5e28627eac654b | 21,497 | py | Python | meiduo/apps/users/views.py | libin-c/Meiduo | 58468fd619a8d9f022df442a10a56b1b12ed1dd8 | [
"MIT"
] | null | null | null | meiduo/apps/users/views.py | libin-c/Meiduo | 58468fd619a8d9f022df442a10a56b1b12ed1dd8 | [
"MIT"
] | 5 | 2020-05-11T20:23:15.000Z | 2021-11-02T15:46:04.000Z | meiduo/apps/users/views.py | libin-c/Meiduo | 58468fd619a8d9f022df442a10a56b1b12ed1dd8 | [
"MIT"
] | null | null | null | import json
from django.contrib.auth import login, logout
from django.contrib.auth.mixins import LoginRequiredMixin
from django.core.paginator import Paginator
from django.shortcuts import render, redirect
from django.urls import reverse
from django.views import View
from django.http.response import HttpResponse, HttpR... | 31.942051 | 109 | 0.575801 | 2,312 | 21,497 | 5.224913 | 0.175606 | 0.03096 | 0.016391 | 0.040811 | 0.44644 | 0.381623 | 0.335679 | 0.29106 | 0.270944 | 0.270944 | 0 | 0.012741 | 0.306322 | 21,497 | 672 | 110 | 31.989583 | 0.797344 | 0.093408 | 0 | 0.467153 | 0 | 0.012165 | 0.101993 | 0.021811 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055961 | false | 0.06326 | 0.051095 | 0.007299 | 0.309002 | 0.004866 | 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 | 0 | 0 | 0 | 1 |
321d75ee71a667ff667395283f4bfe0a07f6f94e | 2,059 | py | Python | hash_chain/app/modules/auth/controller.py | sajib-hassan/flask-qldb-boilerplate | 4f0b3e8e74f53b50e56a45c5b7d20d9e54375119 | [
"MIT"
] | 2 | 2021-05-24T03:57:50.000Z | 2021-11-09T06:13:18.000Z | hash_chain/app/modules/auth/controller.py | sajib-hassan/flask-qldb-boilerplate | 4f0b3e8e74f53b50e56a45c5b7d20d9e54375119 | [
"MIT"
] | 1 | 2021-03-21T22:32:03.000Z | 2021-03-21T22:32:03.000Z | hash_chain/app/modules/auth/controller.py | sajib-hassan/flask-qldb-boilerplate | 4f0b3e8e74f53b50e56a45c5b7d20d9e54375119 | [
"MIT"
] | 1 | 2021-01-20T06:36:45.000Z | 2021-01-20T06:36:45.000Z | # encoding: utf-8
from http import HTTPStatus
from flask_restx import Resource
from hash_chain.app.modules.auth.decorators import token_required
from hash_chain.app.modules.auth.dto import AuthDto
from hash_chain.app.modules.auth.services import Auth
api = AuthDto.api
user_auth = AuthDto.auth
user_model = AuthDto.us... | 34.316667 | 85 | 0.707625 | 274 | 2,059 | 5.222628 | 0.324818 | 0.084556 | 0.107617 | 0.184486 | 0.519217 | 0.439553 | 0.346611 | 0.346611 | 0.346611 | 0.289308 | 0 | 0.001727 | 0.156387 | 2,059 | 59 | 86 | 34.898305 | 0.822107 | 0.141816 | 0 | 0.236842 | 0 | 0 | 0.189455 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.078947 | false | 0.026316 | 0.131579 | 0 | 0.368421 | 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 | 0 | 0 | 0 | 1 |
3224363dedd1448e081d9e25cac4b2bf2a4e4c7a | 3,567 | py | Python | ibm/was_traditional/wsadmin_commands/create_update_conn_factory.py | jose9701/docker-pirate | 96781c1ced8ecdb9ea832f3fdcc16bac165224b0 | [
"Apache-2.0"
] | 10 | 2021-04-07T02:21:07.000Z | 2022-03-19T06:06:51.000Z | ibm/was_traditional/wsadmin_commands/create_update_conn_factory.py | jose9701/docker-pirate | 96781c1ced8ecdb9ea832f3fdcc16bac165224b0 | [
"Apache-2.0"
] | null | null | null | ibm/was_traditional/wsadmin_commands/create_update_conn_factory.py | jose9701/docker-pirate | 96781c1ced8ecdb9ea832f3fdcc16bac165224b0 | [
"Apache-2.0"
] | 62 | 2021-04-10T20:40:54.000Z | 2022-03-28T23:19:59.000Z | # WSADMIN SCRIPT TO CREATE OR UPDATE A CONNECTION FACTORY (DATA-AUTH MUST BE ALREADY-CREATED)
# Santiago Garcia Arango
# Command:
# wsadmin.sh -lang jython -f /tmp/test.py conn_factory_name conn_factory_jndi_name queue_manager service_channel qmgr_hostname qmgr_port data_auth_alias
import sys
conn_factory_name... | 67.301887 | 629 | 0.747687 | 398 | 3,567 | 6.427136 | 0.306533 | 0.098905 | 0.064504 | 0.037138 | 0.669273 | 0.659109 | 0.641126 | 0.613761 | 0.613761 | 0.613761 | 0 | 0.008306 | 0.156154 | 3,567 | 52 | 630 | 68.596154 | 0.841528 | 0.140454 | 0 | 0.46875 | 0 | 0 | 0.384796 | 0.035164 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03125 | false | 0 | 0.03125 | 0 | 0.125 | 0.09375 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5c5ddbf2d4883e325b697d9e4562227d1ee69248 | 1,850 | py | Python | src/racecar-controllers/deep_learning/scripts/otonomus/distance.py | burakekincioglu/Autonomous-Car-with-ROS | 83d8d497819ffe30851ffc4d453e01c28783d7c7 | [
"Unlicense"
] | 1 | 2021-08-09T09:30:09.000Z | 2021-08-09T09:30:09.000Z | src/racecar-controllers/deep_learning/scripts/otonomus/distance.py | burakekincioglu/Autonomous-Car-with-ROS | 83d8d497819ffe30851ffc4d453e01c28783d7c7 | [
"Unlicense"
] | null | null | null | src/racecar-controllers/deep_learning/scripts/otonomus/distance.py | burakekincioglu/Autonomous-Car-with-ROS | 83d8d497819ffe30851ffc4d453e01c28783d7c7 | [
"Unlicense"
] | null | null | null | import math
import sys
def dot(v, w):
x, y = v
X, Y = w
return x * X + y * Y
def length(v):
x, y = v
return math.sqrt(x * x + y * y)
def vector(b, e):
x, y = b
X, Y = e
return X - x, Y - y
def unit(v):
x, y = v
mag = length(v)
return x / mag, y / mag
def distance(p... | 24.666667 | 92 | 0.637297 | 335 | 1,850 | 3.423881 | 0.277612 | 0.020924 | 0.062772 | 0.010462 | 0.047951 | 0.041848 | 0.024412 | 0.024412 | 0.024412 | 0 | 0 | 0.024017 | 0.257297 | 1,850 | 74 | 93 | 25 | 0.810771 | 0.462162 | 0 | 0.179487 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.205128 | false | 0 | 0.051282 | 0.025641 | 0.487179 | 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 | 0 | 0 | 0 | 1 |
5c5fe6151b3f46025d071307646d5e8dbf1ecd1c | 3,105 | py | Python | blog/urls.py | BaichuanWu/Blog_on_django | 6bbc6481063f45110212e387b33701687559e21a | [
"MIT"
] | null | null | null | blog/urls.py | BaichuanWu/Blog_on_django | 6bbc6481063f45110212e387b33701687559e21a | [
"MIT"
] | null | null | null | blog/urls.py | BaichuanWu/Blog_on_django | 6bbc6481063f45110212e387b33701687559e21a | [
"MIT"
] | null | null | null | #!usr/bin/env python
# coding=utf-8
"""
author:wubaichuan
"""
from django.conf.urls import patterns, url
urlpatterns = patterns('blog',
<<<<<<< HEAD
url(r'^(?P<page>\d*)$', 'views.common.index', name='index'),
url(r'^login/$', 'views.auth.user_login', name='user_login'),... | 62.1 | 120 | 0.509501 | 353 | 3,105 | 4.311615 | 0.155807 | 0.081472 | 0.04205 | 0.051248 | 0.736531 | 0.658344 | 0.638633 | 0.505913 | 0.461892 | 0.278581 | 0 | 0.011566 | 0.276006 | 3,105 | 49 | 121 | 63.367347 | 0.66548 | 0 | 0 | 0 | 0 | 0 | 0.47422 | 0.208867 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.026316 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5c63465b64811fcba93dbad3af0161122dd47425 | 503 | py | Python | django_base/playlist/migrations/0007_playlist_subscriber.py | Windsooon/youtube-channels | 83ee3215cc5dff3dfd01979a7b5440d701029456 | [
"MIT"
] | 10 | 2017-11-12T19:14:36.000Z | 2019-08-05T08:07:55.000Z | django_base/playlist/migrations/0007_playlist_subscriber.py | Windsooon/youtube-channels | 83ee3215cc5dff3dfd01979a7b5440d701029456 | [
"MIT"
] | 3 | 2020-02-11T22:03:33.000Z | 2021-06-10T19:56:27.000Z | django_base/playlist/migrations/0007_playlist_subscriber.py | Windsooon/youtube-channels | 83ee3215cc5dff3dfd01979a7b5440d701029456 | [
"MIT"
] | 1 | 2019-12-26T19:30:21.000Z | 2019-12-26T19:30:21.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.2 on 2017-06-23 00:14
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('playlist', '0006_auto_20170622_1115'),
]
operations = [
migrations.AddField... | 22.863636 | 61 | 0.620278 | 54 | 503 | 5.592593 | 0.796296 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.092141 | 0.266402 | 503 | 21 | 62 | 23.952381 | 0.726287 | 0.135189 | 0 | 0 | 1 | 0 | 0.113426 | 0.053241 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.357143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5c6414f9ff891feba7fc7b67e56b0c2edfe042de | 1,960 | py | Python | examples/loading_menu.py | elifiner/termenu | a7a57a1b07d8451003ee750704cdf0d904e9e272 | [
"MIT"
] | 23 | 2016-12-01T17:34:24.000Z | 2022-03-15T19:41:22.000Z | examples/loading_menu.py | elifiner/termenu | a7a57a1b07d8451003ee750704cdf0d904e9e272 | [
"MIT"
] | 1 | 2018-04-28T17:32:50.000Z | 2018-04-28T17:32:50.000Z | examples/loading_menu.py | elifiner/termenu | a7a57a1b07d8451003ee750704cdf0d904e9e272 | [
"MIT"
] | 5 | 2018-10-26T17:07:26.000Z | 2020-03-05T16:54:20.000Z | import sys
sys.path.insert(0, "..")
import time
import termenu
import threading
"""
This example shows how you could implement a menu for data that is loading slowly,
for instance over a network or as a result of some processing.
"""
class AutoloadingList(object):
def __init__(self, iter):
self._iter = it... | 29.253731 | 100 | 0.652041 | 247 | 1,960 | 4.894737 | 0.417004 | 0.02895 | 0.027295 | 0.052109 | 0.067825 | 0.067825 | 0.067825 | 0 | 0 | 0 | 0 | 0.012154 | 0.244388 | 1,960 | 66 | 101 | 29.69697 | 0.804186 | 0.032143 | 0 | 0.102041 | 0 | 0 | 0.01837 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.204082 | false | 0.020408 | 0.081633 | 0 | 0.44898 | 0.040816 | 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 | 0 | 0 | 0 | 1 |
5c65635eae0fe795207517df1f19fe42130ff87e | 415 | py | Python | misc/build-order/alt.py | j-rewerts/practice-problems | e6039484999f8b2baf4ea7e33743daa58107feab | [
"MIT"
] | null | null | null | misc/build-order/alt.py | j-rewerts/practice-problems | e6039484999f8b2baf4ea7e33743daa58107feab | [
"MIT"
] | 6 | 2019-03-24T18:34:37.000Z | 2019-04-05T00:27:06.000Z | misc/build-order/alt.py | j-rewerts/practice-problems | e6039484999f8b2baf4ea7e33743daa58107feab | [
"MIT"
] | null | null | null | import graph
projects = ['a', 'b', 'c', 'd', 'e', 'f', 'g']
depend = [('a', 'd'), ('f', 'b'), ('b', 'd'), ('f', 'a'), ('d', 'c'), ('g', 'a'), ('a', 'c')]
def buildGraph(projects, depend):
graph = Graph()
for project in projects:
graph.get(project)
for a, b in depend:
graph.addEdge(a, b)
return grap... | 21.842105 | 93 | 0.542169 | 60 | 415 | 3.75 | 0.416667 | 0.026667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.195181 | 415 | 19 | 94 | 21.842105 | 0.673653 | 0 | 0 | 0 | 0 | 0 | 0.050481 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.076923 | null | null | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5c6cd904153fd3306183ca8db3385d58993888af | 2,490 | py | Python | py_misc/threading/promise.py | melon-yellow/py-misc | 321fa0141c74be67fe7a6aa6fb766c619eb1470d | [
"MIT"
] | null | null | null | py_misc/threading/promise.py | melon-yellow/py-misc | 321fa0141c74be67fe7a6aa6fb766c619eb1470d | [
"MIT"
] | null | null | null | py_misc/threading/promise.py | melon-yellow/py-misc | 321fa0141c74be67fe7a6aa6fb766c619eb1470d | [
"MIT"
] | null | null | null |
##########################################################################################################################
# Modules
from ..call import Safe, Caller
from .daemon import Daemon
##########################################################################################################################
#... | 30 | 122 | 0.515261 | 230 | 2,490 | 5.143478 | 0.286957 | 0.042265 | 0.021978 | 0.035503 | 0.062553 | 0.062553 | 0 | 0 | 0 | 0 | 0 | 0 | 0.262249 | 2,490 | 82 | 123 | 30.365854 | 0.643985 | 0.110843 | 0 | 0.043478 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.217391 | false | 0.043478 | 0.043478 | 0.086957 | 0.434783 | 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 | 0 | 0 | 0 | 1 |
5c6e3efed901dcd7c56acbb19da59fdd098e71cc | 2,460 | py | Python | ppr-api/src/models/search.py | bcgov/ppr-deprecated | c8925b6f6b0d7fb3f4e267dfe25650a1045ef2e3 | [
"Apache-2.0"
] | 1 | 2019-11-15T19:07:25.000Z | 2019-11-15T19:07:25.000Z | ppr-api/src/models/search.py | bryan-gilbert/ppr | c8925b6f6b0d7fb3f4e267dfe25650a1045ef2e3 | [
"Apache-2.0"
] | 6 | 2021-03-03T05:18:35.000Z | 2022-02-10T21:55:45.000Z | ppr-api/src/models/search.py | bcgov/ppr-deprecated | c8925b6f6b0d7fb3f4e267dfe25650a1045ef2e3 | [
"Apache-2.0"
] | null | null | null | """Module for database models encapsulating search related tables."""
import sqlalchemy
import sqlalchemy.orm
from sqlalchemy.dialects import postgresql
import models.financing_statement
import models.payment
import schemas.search
from .database import BaseORM
class Search(BaseORM):
"""Represents the database ... | 42.413793 | 120 | 0.746341 | 270 | 2,460 | 6.618519 | 0.333333 | 0.098489 | 0.130946 | 0.078344 | 0.275322 | 0.168998 | 0.111919 | 0 | 0 | 0 | 0 | 0.003855 | 0.156504 | 2,460 | 57 | 121 | 43.157895 | 0.857349 | 0.125203 | 0 | 0.054054 | 0 | 0 | 0.049859 | 0.010818 | 0 | 0 | 0 | 0 | 0 | 1 | 0.054054 | false | 0 | 0.189189 | 0 | 0.810811 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
5c80b0741d6365d37d2f458f555925aa17c4a444 | 3,459 | py | Python | djsetslow.py | Ursinus-CS371-S2021/HW1_PlantCellSegmentation | e4e7da8a1a1006b9fbf2b0b30864a68ab1d799ef | [
"Apache-2.0"
] | 1 | 2021-01-31T04:59:37.000Z | 2021-01-31T04:59:37.000Z | djsetslow.py | Ursinus-CS371-S2021/HW1_PlantCellSegmentation | e4e7da8a1a1006b9fbf2b0b30864a68ab1d799ef | [
"Apache-2.0"
] | null | null | null | djsetslow.py | Ursinus-CS371-S2021/HW1_PlantCellSegmentation | e4e7da8a1a1006b9fbf2b0b30864a68ab1d799ef | [
"Apache-2.0"
] | 2 | 2022-02-14T00:22:11.000Z | 2022-02-14T00:37:05.000Z | # List of lists, where each inner list corresponds to a bubble
class ListSet:
def __init__(self, N):
self.N = N
self._bubbles = []
for i in range(N):
self._bubbles.append({i})
def get_set_label(self, i):
"""
Return a number that is the same for every elem... | 28.586777 | 77 | 0.500723 | 460 | 3,459 | 3.645652 | 0.202174 | 0.041741 | 0.047704 | 0.040549 | 0.584377 | 0.548599 | 0.548599 | 0.548599 | 0.522361 | 0.522361 | 0 | 0.002953 | 0.412547 | 3,459 | 121 | 78 | 28.586777 | 0.822343 | 0.446372 | 0 | 0.27027 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.216216 | false | 0 | 0 | 0 | 0.378378 | 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 | 0 | 0 | 0 | 1 |
5c821fb2eecca6cbd1cf5e237730860bde9c1950 | 823 | py | Python | bin/gen3d.py | gicsaw/pdbtools | 10a9441f0345d34e90ca1c454a6aa460b7da926d | [
"MIT"
] | null | null | null | bin/gen3d.py | gicsaw/pdbtools | 10a9441f0345d34e90ca1c454a6aa460b7da926d | [
"MIT"
] | null | null | null | bin/gen3d.py | gicsaw/pdbtools | 10a9441f0345d34e90ca1c454a6aa460b7da926d | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import pdbtools.ligand_tools as ligand_tools
def main():
import argparse
title_line = 'generate 3d conformation from SMILES'
parser = argparse.ArgumentParser(description=title_line)
parser.add_argument('-i', '--input_smi', required=True,
help='input SMILE... | 28.37931 | 71 | 0.629405 | 107 | 823 | 4.579439 | 0.485981 | 0.081633 | 0.104082 | 0.061224 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003252 | 0.252734 | 823 | 28 | 72 | 29.392857 | 0.793496 | 0.024301 | 0 | 0 | 1 | 0 | 0.177057 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.1 | 0 | 0.15 | 0.05 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5c8ca74c6d865b8a1be5922fea97a7cd039ec9c5 | 2,356 | py | Python | scripts/update_daily_histograms.py | SPC-Admin/ScrippsPlanktonCameras | c3737347513ce81e5afbe798b947fe603c64590f | [
"MIT"
] | null | null | null | scripts/update_daily_histograms.py | SPC-Admin/ScrippsPlanktonCameras | c3737347513ce81e5afbe798b947fe603c64590f | [
"MIT"
] | null | null | null | scripts/update_daily_histograms.py | SPC-Admin/ScrippsPlanktonCameras | c3737347513ce81e5afbe798b947fe603c64590f | [
"MIT"
] | null | null | null | from rois.models import Image, PlanktonCamera
from roistats.models import DailyHistograms
import datetime
import pytz
import numpy as np
import glob
import os
import sys
def run(*args):
print args
tday = datetime.date.today()
start_hour = datetime.datetime(
year=tday.year,
month=td... | 27.717647 | 67 | 0.644312 | 316 | 2,356 | 4.598101 | 0.338608 | 0.068135 | 0.020647 | 0.03097 | 0.057811 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028841 | 0.23472 | 2,356 | 84 | 68 | 28.047619 | 0.777038 | 0.078947 | 0 | 0.035714 | 0 | 0 | 0.034754 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.142857 | null | null | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5c8e38e7bb9a45095206d97c4b8a0048233ce611 | 3,218 | py | Python | qcodes_contrib_drivers/drivers/Aviosys/IP_Power_9258S.py | lankes-fzj/Qcodes_contrib_drivers | 4985b7e1db8aab234a270a27cd294b073bb39642 | [
"MIT"
] | null | null | null | qcodes_contrib_drivers/drivers/Aviosys/IP_Power_9258S.py | lankes-fzj/Qcodes_contrib_drivers | 4985b7e1db8aab234a270a27cd294b073bb39642 | [
"MIT"
] | null | null | null | qcodes_contrib_drivers/drivers/Aviosys/IP_Power_9258S.py | lankes-fzj/Qcodes_contrib_drivers | 4985b7e1db8aab234a270a27cd294b073bb39642 | [
"MIT"
] | null | null | null | from qcodes import Instrument, InstrumentChannel, ChannelList
from qcodes.utils.validators import Enum
from qcodes.utils.helpers import create_on_off_val_mapping
import urllib.request
class PowerChannel(InstrumentChannel):
"""
Channel class for a socket on the Aviosys IP Power 9258S.
Args:
parent... | 34.602151 | 120 | 0.648229 | 370 | 3,218 | 5.408108 | 0.313514 | 0.058471 | 0.02099 | 0.013993 | 0.073963 | 0.052974 | 0.052974 | 0.052974 | 0.052974 | 0.052974 | 0 | 0.010802 | 0.25202 | 3,218 | 92 | 121 | 34.978261 | 0.820523 | 0.178372 | 0 | 0 | 0 | 0 | 0.055078 | 0.019531 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0.088889 | 0.088889 | 0.022222 | 0.333333 | 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 | 0 | 0 | 0 | 1 |
5c8f3f64ef1f8bf45ec4bc311ff5ae505334445b | 326 | py | Python | tests/testshell.py | JohnSpeno/python-secure-zone | ca3c87d86486034789552905656e3c0bc3849908 | [
"MIT"
] | 2 | 2015-03-20T06:54:06.000Z | 2017-02-05T22:29:58.000Z | tests/testshell.py | JohnSpeno/python-secure-zone | ca3c87d86486034789552905656e3c0bc3849908 | [
"MIT"
] | null | null | null | tests/testshell.py | JohnSpeno/python-secure-zone | ca3c87d86486034789552905656e3c0bc3849908 | [
"MIT"
] | null | null | null | #!/usr/bin/env python -i
import os
from psz.config import DEFAULTS as defaults
os.environ['DJANGO_SETTINGS_MODULE']='settings'
from psz.models import Dnskey
defaults['path_zonedir'] = '/tmp'
TEST_ZONE_NAME = 'psz.test.zone.co.uk'
keynamebit = 'K' + TEST_ZONE_NAME
key = Dnskey.from_dnssec_keygen(zone='psz.test.zone.co.... | 27.166667 | 59 | 0.760736 | 53 | 326 | 4.509434 | 0.584906 | 0.133891 | 0.100418 | 0.108787 | 0.125523 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.09816 | 326 | 11 | 60 | 29.636364 | 0.812925 | 0.070552 | 0 | 0 | 0 | 0 | 0.282392 | 0.07309 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 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 | 0 | 0 | 0 | 1 |
5c8fbb2d6d7f9cbaf8a96b98386eefd9b9f65119 | 1,218 | py | Python | advanced-day_60_to_day_80/Day_61-flask_WTForms/login_project/main.py | jawad5311/100-days-Python | 9e2c8990365e680d4dcf579c4d7f5d8f0d804566 | [
"Apache-2.0"
] | null | null | null | advanced-day_60_to_day_80/Day_61-flask_WTForms/login_project/main.py | jawad5311/100-days-Python | 9e2c8990365e680d4dcf579c4d7f5d8f0d804566 | [
"Apache-2.0"
] | null | null | null | advanced-day_60_to_day_80/Day_61-flask_WTForms/login_project/main.py | jawad5311/100-days-Python | 9e2c8990365e680d4dcf579c4d7f5d8f0d804566 | [
"Apache-2.0"
] | null | null | null | import flask
import wtforms
from flask import Flask, render_template
from wtforms import Form, BooleanField, StringField, validators, PasswordField
class LoginForm(Form):
email = StringField(
'Email Address',
[
validators.Length(min=6, max=35)]
)
password = PasswordField(
... | 24.857143 | 97 | 0.643678 | 137 | 1,218 | 5.532847 | 0.49635 | 0.092348 | 0.105541 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014846 | 0.22578 | 1,218 | 49 | 98 | 24.857143 | 0.788971 | 0.018883 | 0 | 0 | 0 | 0 | 0.141541 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.054054 | false | 0.108108 | 0.108108 | 0.027027 | 0.405405 | 0.027027 | 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 | 0 | 0 | 0 | 1 |
5c95c64f74fc5305fb34502236e9e4d58ca0e7db | 2,053 | py | Python | backend/app/schema/export_schema.py | sartography/star-drive | c0f33378d42913c3e677e07f74eb46d7b2b82a0a | [
"MIT"
] | null | null | null | backend/app/schema/export_schema.py | sartography/star-drive | c0f33378d42913c3e677e07f74eb46d7b2b82a0a | [
"MIT"
] | 368 | 2018-12-18T14:43:20.000Z | 2022-03-02T02:54:18.000Z | backend/app/schema/export_schema.py | sartography/star-drive | c0f33378d42913c3e677e07f74eb46d7b2b82a0a | [
"MIT"
] | 2 | 2019-10-02T03:06:06.000Z | 2020-10-05T16:53:48.000Z | from marshmallow import missing
from marshmallow_enum import EnumField
from app import ma
from app.model.participant import Participant, Relationship
from app.model.user import User, Role
from app.schema.model_schema import ModelSchema
"""
This package provides specialized schemas to use during export and import to
... | 39.480769 | 107 | 0.712616 | 263 | 2,053 | 5.505703 | 0.463878 | 0.019337 | 0.041436 | 0.049724 | 0.229972 | 0.229972 | 0.229972 | 0.185773 | 0.185773 | 0.185773 | 0 | 0 | 0.191427 | 2,053 | 51 | 108 | 40.254902 | 0.872289 | 0.145641 | 0 | 0.37931 | 0 | 0 | 0.179116 | 0.018474 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.034483 | 0.206897 | 0 | 0.62069 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
5c970be12cd1bd51ce786c98fdfca43c49d3e554 | 11,422 | py | Python | RC/RC_Toyota.py | EShaotran/panda | 76a696bc765884d50a821e01d88b8da0be4f3553 | [
"MIT"
] | null | null | null | RC/RC_Toyota.py | EShaotran/panda | 76a696bc765884d50a821e01d88b8da0be4f3553 | [
"MIT"
] | null | null | null | RC/RC_Toyota.py | EShaotran/panda | 76a696bc765884d50a821e01d88b8da0be4f3553 | [
"MIT"
] | null | null | null | #Remote-Controlled Car Script
#Integrated for Toyota Prius Prime 2018
#--Ethan Shaotran--
#__William_____
import sys
from panda import Panda
import threading
from threading import Thread
import termios
import tty
import select
from hexdump import hexdump
KPH_to_MPH = 1.60934
class CAR:
PRIUS = "TOYOTA PRIUS 2017"
... | 34.403614 | 158 | 0.63903 | 1,810 | 11,422 | 3.983978 | 0.209945 | 0.089031 | 0.093607 | 0.088199 | 0.380946 | 0.35432 | 0.330606 | 0.303425 | 0.28831 | 0.272916 | 0 | 0.141956 | 0.181579 | 11,422 | 331 | 159 | 34.507553 | 0.629439 | 0.127999 | 0 | 0.078512 | 0 | 0 | 0.112781 | 0.07586 | 0 | 0 | 0.048623 | 0 | 0 | 0 | null | null | 0 | 0.033058 | null | null | 0.016529 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5c9877fb6cb4a4b180cbebe37dc1c6bcefa84910 | 546 | py | Python | day6/repaso.py | alqmy/The-Garage-Summer-Of-Code | af310d5e5194a62962db2fc1e601099468251efa | [
"MIT"
] | null | null | null | day6/repaso.py | alqmy/The-Garage-Summer-Of-Code | af310d5e5194a62962db2fc1e601099468251efa | [
"MIT"
] | null | null | null | day6/repaso.py | alqmy/The-Garage-Summer-Of-Code | af310d5e5194a62962db2fc1e601099468251efa | [
"MIT"
] | null | null | null | my_list = list(range(10))
print(my_list[0])
i = 0
while i < len(my_list):
print(my_list[i])
i += 1
for i in my_list:
print(i)
if 5 in my_list:
print("Five is in the list")=
def my_func(x, y, z):
return x * y * z
def power(x, y):
result = 1
while y > 0:
result *= x
y ... | 13 | 33 | 0.553114 | 92 | 546 | 3.195652 | 0.358696 | 0.122449 | 0.112245 | 0.088435 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028424 | 0.291209 | 546 | 42 | 34 | 13 | 0.731266 | 0 | 0 | 0 | 0 | 0 | 0.09872 | 0 | 0.038462 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.230769 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5ca258b820f1108506da18be62cb721f4ea5b0e8 | 628 | py | Python | Apache Beam Postgres/Appache-Beam-Read-Postgres-SQL.py | vibwipro/GCP-Python | f97741efe0b0a96d2c69279d3cf6c404f4f0ca20 | [
"MIT"
] | null | null | null | Apache Beam Postgres/Appache-Beam-Read-Postgres-SQL.py | vibwipro/GCP-Python | f97741efe0b0a96d2c69279d3cf6c404f4f0ca20 | [
"MIT"
] | null | null | null | Apache Beam Postgres/Appache-Beam-Read-Postgres-SQL.py | vibwipro/GCP-Python | f97741efe0b0a96d2c69279d3cf6c404f4f0ca20 | [
"MIT"
] | null | null | null | import apache_beam as beam
from apache_beam.options.pipeline_options import PipelineOptions
from beam_nuggets.io import relational_db
with beam.Pipeline(options=PipelineOptions()) as p:
source_config = relational_db.SourceConfiguration(
drivername='postgresql+pg8000',
host='localhost',
... | 34.888889 | 67 | 0.670382 | 68 | 628 | 6.029412 | 0.588235 | 0.087805 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016632 | 0.234076 | 628 | 18 | 68 | 34.888889 | 0.835759 | 0 | 0 | 0 | 0 | 0 | 0.156863 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.058824 | 0.176471 | 0 | 0.176471 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
5ca3516054967920a753a65faddd151fcf79cf7b | 457 | py | Python | colossalai/nn/layer/parallel_2p5d/__init__.py | jiangz17THU/ColossalAI | 354b7954d1fa6b21a5ba566f0d5ec099280ad315 | [
"Apache-2.0"
] | null | null | null | colossalai/nn/layer/parallel_2p5d/__init__.py | jiangz17THU/ColossalAI | 354b7954d1fa6b21a5ba566f0d5ec099280ad315 | [
"Apache-2.0"
] | null | null | null | colossalai/nn/layer/parallel_2p5d/__init__.py | jiangz17THU/ColossalAI | 354b7954d1fa6b21a5ba566f0d5ec099280ad315 | [
"Apache-2.0"
] | null | null | null | from ._operation import reduce_by_batch_2p5d, split_tensor_2p5d
from .layers import (Classifier2p5D, Embedding2p5D, LayerNorm2p5D, Linear2p5D, PatchEmbedding2p5D,
VocabParallelClassifier2p5D, VocabParallelEmbedding2p5D)
__all__ = [
'split_tensor_2p5d', 'reduce_by_batch_2p5d', 'Linear2p5D', 'La... | 50.777778 | 119 | 0.785558 | 35 | 457 | 9.828571 | 0.514286 | 0.046512 | 0.075581 | 0.098837 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090226 | 0.126915 | 457 | 8 | 120 | 57.125 | 0.77193 | 0 | 0 | 0 | 0 | 0 | 0.345733 | 0.115974 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5cace3e7d1116e891762a3c7ab6f0c1c2d14aa35 | 1,677 | py | Python | verify-auth.py | miguelforsetti/upmov | e456f03162214cd8d6d7d65d300a1c6cafbc6d03 | [
"Apache-2.0"
] | null | null | null | verify-auth.py | miguelforsetti/upmov | e456f03162214cd8d6d7d65d300a1c6cafbc6d03 | [
"Apache-2.0"
] | null | null | null | verify-auth.py | miguelforsetti/upmov | e456f03162214cd8d6d7d65d300a1c6cafbc6d03 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# see https://openvpn.net/community-resources/reference-manual-for-openvpn-2-4/
#
# when OpenVPN requests for authentication verification via auth-user-pass-verify with via-file method,
# it'll write username and password in a temp file, and set it as an argument to your ... | 36.456522 | 105 | 0.74359 | 263 | 1,677 | 4.695817 | 0.547529 | 0.026721 | 0.046154 | 0.038866 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007107 | 0.161002 | 1,677 | 45 | 106 | 37.266667 | 0.870647 | 0.714967 | 0 | 0 | 0 | 0 | 0.008734 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.1875 | 0.1875 | 0 | 0.1875 | 0.125 | 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 | 0 | 0 | 0 | 1 |
5cae17dca974e38fadd749a03dd87a945e4fdd69 | 736 | py | Python | lang/py/pylib/11/socket/uds/uds_client.py | ch1huizong/learning | 632267634a9fd84a5f5116de09ff1e2681a6cc85 | [
"MIT"
] | null | null | null | lang/py/pylib/11/socket/uds/uds_client.py | ch1huizong/learning | 632267634a9fd84a5f5116de09ff1e2681a6cc85 | [
"MIT"
] | null | null | null | lang/py/pylib/11/socket/uds/uds_client.py | ch1huizong/learning | 632267634a9fd84a5f5116de09ff1e2681a6cc85 | [
"MIT"
] | null | null | null | #! /usr/bin/env python
# -*- coding:UTF-8 -*-
import socket
import sys
sock = socket.socket(socket.AF_UNIX,socket.SOCK_STREAM)
server_address = '/tmp/uds_socket'
print >>sys.stderr,'Connecting to %s'% server_address
try:
sock.connect(server_address)
except socket.error,msg:
print >> sys.stderr,msg
sys.ex... | 21.028571 | 55 | 0.661685 | 102 | 736 | 4.666667 | 0.519608 | 0.084034 | 0.147059 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011986 | 0.206522 | 736 | 34 | 56 | 21.647059 | 0.803082 | 0.0625 | 0 | 0.086957 | 0 | 0 | 0.157434 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.086957 | null | null | 0.217391 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5cc566e91ed3b4a816d5fd0a6f86daa0985121d5 | 1,413 | py | Python | google-play-store-app-download-count.py | marting87/py-codes | 4a4c65f29f57dfad2d95ef935276840f0c9b18e9 | [
"MIT"
] | 12 | 2015-04-17T01:34:37.000Z | 2020-05-03T10:47:57.000Z | google-play-store-app-download-count.py | marting87/py-codes | 4a4c65f29f57dfad2d95ef935276840f0c9b18e9 | [
"MIT"
] | null | null | null | google-play-store-app-download-count.py | marting87/py-codes | 4a4c65f29f57dfad2d95ef935276840f0c9b18e9 | [
"MIT"
] | 12 | 2015-03-08T23:20:32.000Z | 2019-12-18T21:08:53.000Z | import requests
from bs4 import BeautifulSoup
class GooglePlay(object):
def get_playstore_info(self, app):
# Fetch android app page
app_page = requests.get(app)
# Provide the app page content to BeautifulSoup parser
soup = BeautifulSoup(app_page.content, 'html.parser')
# ... | 33.642857 | 91 | 0.64402 | 169 | 1,413 | 5.224852 | 0.384615 | 0.11325 | 0.04077 | 0.06795 | 0.043035 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002722 | 0.220099 | 1,413 | 42 | 92 | 33.642857 | 0.798548 | 0.122435 | 0 | 0 | 0 | 0 | 0.193679 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.083333 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5cd25927c647ee5cc9be2e6801ec8c2e081b366c | 4,370 | py | Python | crunchy_bot/fetcher/test_guest_pass_fetcher.py | lamdav/CrunchyBot | 426b217a10b542936d24cede9640b8c91eb8bf27 | [
"MIT"
] | 1 | 2019-11-18T13:17:27.000Z | 2019-11-18T13:17:27.000Z | crunchy_bot/fetcher/test_guest_pass_fetcher.py | lamdaV/CrunchyBot | 426b217a10b542936d24cede9640b8c91eb8bf27 | [
"MIT"
] | 2 | 2020-02-25T07:56:37.000Z | 2020-03-25T03:44:18.000Z | crunchy_bot/fetcher/test_guest_pass_fetcher.py | lamdav/CrunchyBot | 426b217a10b542936d24cede9640b8c91eb8bf27 | [
"MIT"
] | 1 | 2020-01-16T04:04:38.000Z | 2020-01-16T04:04:38.000Z | import pathlib
from typing import Any
from unittest import mock
from unittest.mock import patch
import pytest
from selenium.webdriver.common.keys import Keys
from crunchy_bot.config.config_parser import Config
from crunchy_bot.fetcher.guest_pass_fetcher import GuestPassFetcher
from crunchy_bot.logging.logger import L... | 31.89781 | 83 | 0.693822 | 557 | 4,370 | 5.084381 | 0.224417 | 0.044492 | 0.064266 | 0.038842 | 0.281427 | 0.265184 | 0.253531 | 0.20339 | 0.20339 | 0.135593 | 0 | 0.012003 | 0.199314 | 4,370 | 136 | 84 | 32.132353 | 0.797371 | 0.009153 | 0 | 0.108333 | 0 | 0 | 0.12061 | 0.055453 | 0 | 0 | 0 | 0 | 0.15 | 1 | 0.05 | false | 0.166667 | 0.075 | 0.025 | 0.166667 | 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 | 0 | 0 | 0 | 1 |
5cd3c1c08ece25b16af7ca43614878ace4a85f0f | 3,171 | py | Python | examples.py | ema-fox/tlhl | de80bec16fdf5b33431ffa151d3b44394329f2fd | [
"BSD-3-Clause"
] | null | null | null | examples.py | ema-fox/tlhl | de80bec16fdf5b33431ffa151d3b44394329f2fd | [
"BSD-3-Clause"
] | null | null | null | examples.py | ema-fox/tlhl | de80bec16fdf5b33431ffa151d3b44394329f2fd | [
"BSD-3-Clause"
] | 1 | 2019-01-12T11:04:59.000Z | 2019-01-12T11:04:59.000Z | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
import datetime
from tlhl import *
from tlhl.xhtml10 import *
from tlhl.entities import *
RAW_WITH_UTF8_CHARS = "Fancy UTF-8 Quotes used here “something that should quote” but string just a raw string. Some &<<>> stuff to try and trip it up."
SOME_UTF8 = u"Fancy UTF-8 ... | 32.030303 | 154 | 0.578366 | 394 | 3,171 | 4.57868 | 0.451777 | 0.017738 | 0.019956 | 0.021619 | 0.235033 | 0.191796 | 0.134146 | 0.088692 | 0.088692 | 0.088692 | 0 | 0.020026 | 0.275623 | 3,171 | 98 | 155 | 32.357143 | 0.765346 | 0.01356 | 0 | 0.04918 | 0 | 0.032787 | 0.401723 | 0.021535 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.065574 | null | null | 0.04918 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5cd7c6111ebe806be91ea67172f3f8cf4a6c5932 | 364 | py | Python | day_2/inbuilt_functions.py | anishLearnsToCode/python-workshop-8 | 0f64bfa7cf175283181b6e7f51a5e3b80d4b6b60 | [
"MIT"
] | 3 | 2020-12-31T06:28:11.000Z | 2021-11-28T15:44:00.000Z | day_2/inbuilt_functions.py | anishLearnsToCode/python-workshop-8 | 0f64bfa7cf175283181b6e7f51a5e3b80d4b6b60 | [
"MIT"
] | null | null | null | day_2/inbuilt_functions.py | anishLearnsToCode/python-workshop-8 | 0f64bfa7cf175283181b6e7f51a5e3b80d4b6b60 | [
"MIT"
] | null | null | null | def abs(x: str) -> float:
return x if x > 0 else -x
# print(abs(10))
# print(abs(-10))
x = set()
# print(type(x))
x.add(10)
x.add(10)
x.add(10)
# print(x)
# print(len(x))
# print([ord(character) for character in input()])
# print(x.__repr__())
# var = map(int, input().split())
# print(var)
n = int(input())
... | 14 | 50 | 0.571429 | 68 | 364 | 3 | 0.441176 | 0.088235 | 0.088235 | 0.068627 | 0.088235 | 0.088235 | 0 | 0 | 0 | 0 | 0 | 0.047458 | 0.18956 | 364 | 25 | 51 | 14.56 | 0.644068 | 0.494505 | 0 | 0.375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0.125 | 0.25 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
5cd8ea6ab4f4beda69cd15ef3927eeaa4f0e11e9 | 1,935 | py | Python | nevergrad/optimization/test_utils.py | se4u/nevergrad | 38924bc7b0bff834316ccf974922db2c22be1606 | [
"MIT"
] | 1 | 2021-04-21T09:19:44.000Z | 2021-04-21T09:19:44.000Z | nevergrad/optimization/test_utils.py | se4u/nevergrad | 38924bc7b0bff834316ccf974922db2c22be1606 | [
"MIT"
] | null | null | null | nevergrad/optimization/test_utils.py | se4u/nevergrad | 38924bc7b0bff834316ccf974922db2c22be1606 | [
"MIT"
] | 1 | 2019-12-12T10:36:54.000Z | 2019-12-12T10:36:54.000Z | # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import numpy as np
from ..common import testing
from .test_base import CounterFunction
from .optimizerlib import Zero
fro... | 35.833333 | 77 | 0.699225 | 289 | 1,935 | 4.550173 | 0.349481 | 0.095817 | 0.159696 | 0.152091 | 0.264639 | 0.188593 | 0.059316 | 0.059316 | 0 | 0 | 0 | 0.031017 | 0.166925 | 1,935 | 53 | 78 | 36.509434 | 0.784739 | 0.115762 | 0 | 0 | 0 | 0 | 0.015836 | 0 | 0 | 0 | 0 | 0 | 0.414634 | 1 | 0.073171 | false | 0 | 0.121951 | 0 | 0.195122 | 0.02439 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5cdd9ef413b452220a3ae772882abc87449b3818 | 449 | py | Python | api/app/database.py | adriencanterot/biglazy | b10b685c31770aabdb7ea955ba9aeaf4f6755e26 | [
"Apache-2.0"
] | 1 | 2019-12-13T07:08:39.000Z | 2019-12-13T07:08:39.000Z | api/app/database.py | adriencanterot/biglazy | b10b685c31770aabdb7ea955ba9aeaf4f6755e26 | [
"Apache-2.0"
] | 12 | 2019-12-12T17:38:20.000Z | 2022-02-27T06:30:46.000Z | api/app/database.py | kemoscare/kemos | b10b685c31770aabdb7ea955ba9aeaf4f6755e26 | [
"Apache-2.0"
] | null | null | null | from pymongo import MongoClient
from config import MONGODB_CONNECTION, MONGODB_DATABASE_NAME
_MONGO_CLIENT = None
def get_client(connection_string=MONGODB_CONNECTION):
if(_MONGO_CLIENT == None):
return MongoClient(connection_string)
else:
return _MONGO_CLIENT
def get_database(connection_stri... | 32.071429 | 92 | 0.815145 | 55 | 449 | 6.236364 | 0.327273 | 0.139942 | 0.110787 | 0.145773 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.129176 | 449 | 14 | 93 | 32.071429 | 0.877238 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0.1 | 0.7 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
5cdfce1f4935f97857136df2b91eb3042a223708 | 1,183 | py | Python | tests/test_instrument.py | ibutsky/trident | 842fa2c7adee4bde79e660e8e9e70163e2e549fe | [
"BSD-3-Clause-Clear"
] | null | null | null | tests/test_instrument.py | ibutsky/trident | 842fa2c7adee4bde79e660e8e9e70163e2e549fe | [
"BSD-3-Clause-Clear"
] | null | null | null | tests/test_instrument.py | ibutsky/trident | 842fa2c7adee4bde79e660e8e9e70163e2e549fe | [
"BSD-3-Clause-Clear"
] | null | null | null | """
Tests for Instrument Class and Functions
"""
#-----------------------------------------------------------------------------
# Copyright (c) 2016, Trident Development Team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file LICENSE, distributed with this software.
#---... | 31.131579 | 78 | 0.617075 | 141 | 1,183 | 5.007092 | 0.475177 | 0.141643 | 0.090652 | 0.045326 | 0.056657 | 0 | 0 | 0 | 0 | 0 | 0 | 0.053443 | 0.177515 | 1,183 | 37 | 79 | 31.972973 | 0.672148 | 0.4235 | 0 | 0.222222 | 0 | 0 | 0.021605 | 0 | 0 | 0 | 0 | 0 | 0.555556 | 1 | 0.055556 | false | 0 | 0.166667 | 0 | 0.222222 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7a260a50557bb23a96f4db3b4faf19c8b224881d | 434 | py | Python | selenium-progect/searchproducts.py | tangjikuo/selenium-python-unittest | 9fa95f516b0fb50a6f128c7946df366bb23f5769 | [
"MIT"
] | null | null | null | selenium-progect/searchproducts.py | tangjikuo/selenium-python-unittest | 9fa95f516b0fb50a6f128c7946df366bb23f5769 | [
"MIT"
] | null | null | null | selenium-progect/searchproducts.py | tangjikuo/selenium-python-unittest | 9fa95f516b0fb50a6f128c7946df366bb23f5769 | [
"MIT"
] | null | null | null | from selenium import webdriver
driver = webdriver.Firefox()
driver.implicitly_wait(30)
driver.maximize_window()
driver.get("http://demo.magentocommerce.com/")
search_field=driver.find_element_by_name("q")
sraech_field.submit()
products = driver.find_element_by_xpath("//h2[@calss='product-name']/a")
prin... | 21.7 | 73 | 0.730415 | 57 | 434 | 5.385965 | 0.684211 | 0.065147 | 0.110749 | 0.123779 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007916 | 0.126728 | 434 | 19 | 74 | 22.842105 | 0.802111 | 0 | 0 | 0 | 0 | 0 | 0.183575 | 0.070048 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.083333 | null | null | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7a31d8aaf9bb8c8a4a2cfea6912b6233cd61989b | 380 | py | Python | src/io/__init__.py | libercapital/dados_publicos_cnpj_receita_federal | a02f98ebb1e5aa64539cc371d94ba78a49647214 | [
"MIT"
] | 7 | 2022-02-04T22:02:01.000Z | 2022-03-08T22:55:29.000Z | src/io/__init__.py | libercapital/dados_publicos_cnpj_receita_federal | a02f98ebb1e5aa64539cc371d94ba78a49647214 | [
"MIT"
] | 3 | 2022-02-04T22:48:01.000Z | 2022-02-10T01:53:00.000Z | src/io/__init__.py | libercapital/dados_publicos_cnpj_receita_federal | a02f98ebb1e5aa64539cc371d94ba78a49647214 | [
"MIT"
] | 1 | 2022-03-18T17:07:18.000Z | 2022-03-18T17:07:18.000Z | CORE_URL = "https://www.gov.br/receitafederal/pt-br/assuntos/orientacao-tributaria/cadastros/consultas/dados-publicos-cnpj"
CORE_URL_FILES = "http://200.152.38.155/CNPJ"
CNAE_JSON_NAME = 'cnaes.json'
NATJU_JSON_NAME = 'natju.json'
QUAL_SOCIO_JSON_NAME = 'qual_socio.json'
MOTIVOS_JSON_NAME = 'motivos.json'
PAIS_JS... | 42.222222 | 124 | 0.776316 | 58 | 380 | 4.793103 | 0.568966 | 0.172662 | 0.093525 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031609 | 0.084211 | 380 | 8 | 125 | 47.5 | 0.767241 | 0 | 0 | 0 | 0 | 0.125 | 0.556452 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 |
7a32564523c52bc7bbae19ae21e4dea825ee9236 | 3,648 | py | Python | otk/sdb/lens.py | draustin/otk | c6e91423ec79b85b380ee9385f6d27c91f92503d | [
"MIT"
] | 7 | 2020-05-17T14:26:42.000Z | 2022-02-14T04:52:54.000Z | otk/sdb/lens.py | uamhforever/otk | c6e91423ec79b85b380ee9385f6d27c91f92503d | [
"MIT"
] | 17 | 2020-04-10T22:50:00.000Z | 2020-06-18T04:54:19.000Z | otk/sdb/lens.py | uamhforever/otk | c6e91423ec79b85b380ee9385f6d27c91f92503d | [
"MIT"
] | 1 | 2022-02-14T04:52:45.000Z | 2022-02-14T04:52:45.000Z | """Functions for making lens-shaped surfaces."""
from dataclasses import dataclass
from typing import Sequence, Tuple, Callable
import numpy as np
from .. import functions
from ..types import Sequence2, Sequence3
from ..sdb import *
__all__ = ['make_spherical_singlet', 'make_toroidal_singlet', 'make_spherical_singlet_... | 45.6 | 134 | 0.687774 | 501 | 3,648 | 4.878244 | 0.225549 | 0.057283 | 0.012275 | 0.012275 | 0.274959 | 0.201309 | 0.153846 | 0.104746 | 0.07856 | 0.07856 | 0 | 0.05366 | 0.172423 | 3,648 | 79 | 135 | 46.177215 | 0.755879 | 0.078673 | 0 | 0.095238 | 0 | 0 | 0.042827 | 0.02336 | 0 | 0 | 0 | 0.012658 | 0.047619 | 1 | 0.142857 | false | 0 | 0.095238 | 0.063492 | 0.444444 | 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 | 0 | 0 | 0 | 1 |
7a4745b68f96d0d63e5d4ad97b3266daef9b8357 | 3,053 | py | Python | oauth2_provider/tests/test_application_views.py | pydanny/django-oauth-toolkit | bf9ce2837f9ae2be939ac00a23f348266b91325d | [
"BSD-2-Clause-FreeBSD"
] | 1 | 2019-07-25T23:15:39.000Z | 2019-07-25T23:15:39.000Z | oauth2_provider/tests/test_application_views.py | pydanny/django-oauth-toolkit | bf9ce2837f9ae2be939ac00a23f348266b91325d | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | oauth2_provider/tests/test_application_views.py | pydanny/django-oauth-toolkit | bf9ce2837f9ae2be939ac00a23f348266b91325d | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | from __future__ import unicode_literals
from django.core.urlresolvers import reverse
from django.test import TestCase
from ..compat import get_user_model
from ..models import Application
class BaseTest(TestCase):
def setUp(self):
self.foo_user = get_user_model().objects.create_user("foo_user", "test@use... | 38.64557 | 119 | 0.694399 | 378 | 3,053 | 5.34127 | 0.206349 | 0.048539 | 0.027241 | 0.059435 | 0.510649 | 0.419019 | 0.30213 | 0.179297 | 0.179297 | 0.155523 | 0 | 0.026199 | 0.187357 | 3,053 | 78 | 120 | 39.141026 | 0.787586 | 0 | 0 | 0.175439 | 0 | 0 | 0.1415 | 0.030134 | 0 | 0 | 0 | 0 | 0.105263 | 1 | 0.157895 | false | 0.070175 | 0.087719 | 0 | 0.315789 | 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 | 0 | 0 | 0 | 1 |
7a57a2f563b0c92740cacbc3977419c83bd6177c | 1,154 | py | Python | chars/link_scripts/PlayerOrientation.py | camsdu59/Zelda_BlenderGame | 0f5d5d15bfa79e9f8ea15f0ebcb76bce92f77a21 | [
"FSFAP"
] | 27 | 2016-01-13T14:16:13.000Z | 2022-01-03T05:38:44.000Z | chars/link_scripts/PlayerOrientation.py | camsdu59/Zelda_BlenderGame | 0f5d5d15bfa79e9f8ea15f0ebcb76bce92f77a21 | [
"FSFAP"
] | 1 | 2017-04-29T00:51:26.000Z | 2017-04-29T00:54:43.000Z | chars/link_scripts/PlayerOrientation.py | camsdu59/Zelda_BlenderGame | 0f5d5d15bfa79e9f8ea15f0ebcb76bce92f77a21 | [
"FSFAP"
] | 14 | 2016-01-20T21:02:37.000Z | 2020-07-19T05:47:20.000Z | from bge import logic
import math
import mathutils
scene = logic.getCurrentScene()
class PlayerOrientationManager:
def __init__(self):
pass
def linearOrient(player, target):
pass
def orient_player(self, player):
if (player.targetManager.active == False):
orientController = scene.objects['orientControlle... | 25.644444 | 58 | 0.747834 | 135 | 1,154 | 6.259259 | 0.437037 | 0.017751 | 0.066272 | 0.104142 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009082 | 0.141248 | 1,154 | 44 | 59 | 26.227273 | 0.843592 | 0 | 0 | 0.121212 | 0 | 0 | 0.038128 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0.060606 | 0.090909 | 0 | 0.30303 | 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 | 0 | 0 | 0 | 1 |
7a5fa61271df60a5996232af9c0aed83be888b4e | 11,987 | py | Python | pennies/market/curve_calibration.py | coder6464/pennies | 2540be85a2beacc5d9341eb0665d1aad63dad2f7 | [
"Apache-2.0"
] | 4 | 2017-12-21T22:08:52.000Z | 2018-01-19T06:47:57.000Z | pennies/market/curve_calibration.py | coder6464/pennies | 2540be85a2beacc5d9341eb0665d1aad63dad2f7 | [
"Apache-2.0"
] | 1 | 2016-07-27T19:09:43.000Z | 2016-08-01T21:55:27.000Z | pennies/market/curve_calibration.py | coder6464/pennies | 2540be85a2beacc5d9341eb0665d1aad63dad2f7 | [
"Apache-2.0"
] | 4 | 2017-01-14T01:50:22.000Z | 2018-08-12T15:07:41.000Z | """Calibrate a RatesTermStructure to a set of market instruments """
from __future__ import absolute_import, division, print_function
import numpy as np
import pandas as pd
from scipy.optimize import root
from pennies.market.curves import DiscountCurveWithNodes
from pennies.market.market import RatesTermStructure
fr... | 43.118705 | 163 | 0.640444 | 1,547 | 11,987 | 4.825469 | 0.230123 | 0.02505 | 0.013128 | 0.015941 | 0.141058 | 0.114133 | 0.100201 | 0.054655 | 0.054655 | 0.054655 | 0 | 0.008608 | 0.273129 | 11,987 | 277 | 164 | 43.274368 | 0.848158 | 0.36648 | 0 | 0.117647 | 0 | 0 | 0.063664 | 0 | 0 | 0 | 0 | 0.01083 | 0.029412 | 1 | 0.036765 | false | 0 | 0.095588 | 0 | 0.161765 | 0.117647 | 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 | 0 | 0 | 0 | 1 |
7a673de4ec85365a0d2bfe43bc083e63a351c808 | 9,456 | py | Python | dataset_factory.py | suswei/RLCT | e9e04ca5e64250dfbb94134ec5283286dcdc4358 | [
"MIT"
] | null | null | null | dataset_factory.py | suswei/RLCT | e9e04ca5e64250dfbb94134ec5283286dcdc4358 | [
"MIT"
] | null | null | null | dataset_factory.py | suswei/RLCT | e9e04ca5e64250dfbb94134ec5283286dcdc4358 | [
"MIT"
] | null | null | null | from __future__ import print_function
import torch
import torch.nn as nn
#from torchvision import datasets, transforms
from sklearn.datasets import load_iris, load_breast_cancer
from sklearn.model_selection import train_test_split
from torch.utils.data import TensorDataset, SubsetRandomSampler
from torch import Tensor
... | 48.244898 | 163 | 0.670791 | 1,260 | 9,456 | 4.863492 | 0.155556 | 0.037533 | 0.052546 | 0.058747 | 0.682441 | 0.677219 | 0.664164 | 0.657963 | 0.632996 | 0.62092 | 0 | 0.014972 | 0.215948 | 9,456 | 195 | 164 | 48.492308 | 0.811573 | 0.13695 | 0 | 0.472441 | 0 | 0 | 0.024204 | 0.00258 | 0 | 0 | 0 | 0.005128 | 0 | 1 | 0.007874 | false | 0 | 0.110236 | 0 | 0.125984 | 0.015748 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7a67f7416d2a9243b0df99b9fac134c8692bfc30 | 227 | py | Python | tests/main.test.py | elMeniwy/PyPlot | 54759c329d06340ec0d0a57a5376e7320439dfbd | [
"MIT"
] | null | null | null | tests/main.test.py | elMeniwy/PyPlot | 54759c329d06340ec0d0a57a5376e7320439dfbd | [
"MIT"
] | null | null | null | tests/main.test.py | elMeniwy/PyPlot | 54759c329d06340ec0d0a57a5376e7320439dfbd | [
"MIT"
] | null | null | null | import pytest
from main import plot,format_eq, validEq
plot("x")
def plot_test():
x = "x+2"
assert plot(x)
def format_eq_test():
assert format_eq()
def validEq_test():
assert validEq()
| 11.947368 | 41 | 0.603524 | 32 | 227 | 4.09375 | 0.40625 | 0.183206 | 0.122137 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006173 | 0.286344 | 227 | 18 | 42 | 12.611111 | 0.802469 | 0 | 0 | 0 | 0 | 0 | 0.019139 | 0 | 0 | 0 | 0 | 0 | 0.3 | 1 | 0.3 | false | 0 | 0.2 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7a6af64ad85a64fa23e2aa982c67d1ab5217f2cf | 1,604 | py | Python | farnsworth/models/exploit.py | mechaphish/farnsworth | 7d6bcbd94ab5ab521c29309fe3c47a0f6005a5d3 | [
"BSD-2-Clause"
] | 6 | 2016-08-20T23:39:42.000Z | 2020-11-06T23:08:03.000Z | farnsworth/models/exploit.py | mechaphish/farnsworth | 7d6bcbd94ab5ab521c29309fe3c47a0f6005a5d3 | [
"BSD-2-Clause"
] | null | null | null | farnsworth/models/exploit.py | mechaphish/farnsworth | 7d6bcbd94ab5ab521c29309fe3c47a0f6005a5d3 | [
"BSD-2-Clause"
] | 5 | 2016-08-21T13:16:00.000Z | 2020-11-06T23:08:17.000Z | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
from peewee import FloatField, BlobField, ForeignKeyField
from .base import BaseModel
from .challenge_set import ChallengeSet
from .crash import Crash
from .job import Job
from ..peewee_extensions import EnumField... | 37.302326 | 96 | 0.609102 | 159 | 1,604 | 6 | 0.484277 | 0.034591 | 0.059748 | 0.02935 | 0.037736 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005296 | 0.293641 | 1,604 | 42 | 97 | 38.190476 | 0.836717 | 0.076683 | 0 | 0 | 0 | 0 | 0.10069 | 0.016552 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033333 | false | 0 | 0.3 | 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 | 0 | 0 | 1 | 0 | 0 | 1 |
7a6b6a72d51d3272a1dabbb4a2f60c62b6b832c4 | 445 | py | Python | fair/constants/br_atoms.py | OMS-NetZero/FAIR-pro | 61b068858a043c21916f5e73bedd91eec0d27c57 | [
"Apache-2.0"
] | 4 | 2017-09-26T12:04:04.000Z | 2020-04-16T16:29:06.000Z | fair/constants/br_atoms.py | shaheen19/FAIR | 345c23b3d35918729e7aa49ecb39047494c48a6e | [
"Apache-2.0"
] | 16 | 2017-06-17T07:42:50.000Z | 2018-07-27T16:01:03.000Z | fair/constants/br_atoms.py | shaheen19/FAIR | 345c23b3d35918729e7aa49ecb39047494c48a6e | [
"Apache-2.0"
] | 2 | 2017-07-04T12:06:23.000Z | 2017-07-04T12:07:41.000Z | # Number of bromine atoms in each species
cfc11 = 0
cfc12 = 0
cfc113 = 0
cfc114 = 0
cfc115 = 0
carb_tet = 0
mcf = 0
hcfc22 = 0
hcfc141b = 0
hcfc142b = 0
halon1211 = 1
halon1202 = 2
halon1301 = 1
halon2402 = 2
ch3br = 1
ch3cl = 0
aslist = [cfc11, cfc12, cfc113, cfc114, cfc115, ca... | 20.227273 | 76 | 0.604494 | 58 | 445 | 4.603448 | 0.482759 | 0.052434 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.309211 | 0.316854 | 445 | 21 | 77 | 21.190476 | 0.569079 | 0.08764 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7a77659f184820479c4ee0dd91b546ff5f72b372 | 153 | py | Python | JiaLu/learn/list_training8.py | 13022108937/homework | 05b3c0535532766b286976b15245ed1f925da8c5 | [
"Apache-2.0"
] | null | null | null | JiaLu/learn/list_training8.py | 13022108937/homework | 05b3c0535532766b286976b15245ed1f925da8c5 | [
"Apache-2.0"
] | null | null | null | JiaLu/learn/list_training8.py | 13022108937/homework | 05b3c0535532766b286976b15245ed1f925da8c5 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
count = 3
list1 = []
while count > 0:
num = int(input(">>> "))
list1.append(num)
count -= 1
list1.sort()
print(list1)
| 13.909091 | 28 | 0.568627 | 22 | 153 | 3.954545 | 0.727273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.059322 | 0.228758 | 153 | 10 | 29 | 15.3 | 0.677966 | 0.130719 | 0 | 0 | 0 | 0 | 0.030303 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.125 | 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 | 0 | 0 | 0 | 1 |
7a883ee15b9545fd43015306f8723a700da92a44 | 1,005 | py | Python | benkyo/benkyo/migrations/0005_review.py | ryanarnold/benkyo | a75b0ec7e0663ca5bf79ca98e25d201444f472aa | [
"MIT"
] | null | null | null | benkyo/benkyo/migrations/0005_review.py | ryanarnold/benkyo | a75b0ec7e0663ca5bf79ca98e25d201444f472aa | [
"MIT"
] | null | null | null | benkyo/benkyo/migrations/0005_review.py | ryanarnold/benkyo | a75b0ec7e0663ca5bf79ca98e25d201444f472aa | [
"MIT"
] | null | null | null | # Generated by Django 2.0.7 on 2018-08-05 08:17
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('benkyo', '0004_auto_2018... | 37.222222 | 135 | 0.627861 | 112 | 1,005 | 5.482143 | 0.5625 | 0.052117 | 0.068404 | 0.107492 | 0.179153 | 0.179153 | 0.179153 | 0.179153 | 0.179153 | 0.179153 | 0 | 0.042416 | 0.225871 | 1,005 | 26 | 136 | 38.653846 | 0.746787 | 0.044776 | 0 | 0 | 1 | 0 | 0.117954 | 0.024008 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.15 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7a8d940d211af7e4b2e03b072915ed7dfa1c5798 | 19,822 | py | Python | controllers/admin.py | Maulana-gif/Bibi13 | 0c41b286d521512aca3bdb03305e0751edb3a82b | [
"BSD-2-Clause"
] | null | null | null | controllers/admin.py | Maulana-gif/Bibi13 | 0c41b286d521512aca3bdb03305e0751edb3a82b | [
"BSD-2-Clause"
] | null | null | null | controllers/admin.py | Maulana-gif/Bibi13 | 0c41b286d521512aca3bdb03305e0751edb3a82b | [
"BSD-2-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# this file is released under public domain and you can use without limitations
#########################################################################
## This is a sample controller
## - index is the default action of any application
## - user is required for authentication and authorization... | 46.64 | 296 | 0.588891 | 2,409 | 19,822 | 4.661685 | 0.161478 | 0.039181 | 0.035886 | 0.046928 | 0.470169 | 0.405877 | 0.345592 | 0.316652 | 0.306322 | 0.288691 | 0 | 0.009846 | 0.292907 | 19,822 | 424 | 297 | 46.75 | 0.791381 | 0.194632 | 0 | 0.331984 | 0 | 0 | 0.129289 | 0.035712 | 0 | 0 | 0 | 0.011792 | 0 | 1 | 0.08502 | false | 0.004049 | 0 | 0.008097 | 0.161943 | 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 | 0 | 0 | 0 | 1 |
7a8fe2f4acf76067bda01586e6274c5e4e5dcc1c | 1,898 | py | Python | mixcoatl/automation/configuration_management_system.py | zomGreg/mixcoatl | dd8d7e206682955b251d7f858fffee56b11df8c6 | [
"Apache-2.0"
] | null | null | null | mixcoatl/automation/configuration_management_system.py | zomGreg/mixcoatl | dd8d7e206682955b251d7f858fffee56b11df8c6 | [
"Apache-2.0"
] | null | null | null | mixcoatl/automation/configuration_management_system.py | zomGreg/mixcoatl | dd8d7e206682955b251d7f858fffee56b11df8c6 | [
"Apache-2.0"
] | null | null | null | from mixcoatl.resource import Resource
from mixcoatl.decorators.lazy import lazy_property
from mixcoatl.decorators.validations import required_attrs
from mixcoatl.utils import uncamel, camelize, camel_keys, uncamel_keys
import json
class ConfigurationManagementSystem(Resource):
"""A configuration management syst... | 34.509091 | 112 | 0.691254 | 237 | 1,898 | 5.388186 | 0.451477 | 0.031323 | 0.037588 | 0.03289 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.233404 | 1,898 | 54 | 113 | 35.148148 | 0.877663 | 0.260274 | 0 | 0.176471 | 0 | 0 | 0.071429 | 0.029155 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0.058824 | 0.147059 | 0 | 0.441176 | 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 | 0 | 0 | 0 | 1 |
7a9552b9676a98b8a97efa556cdf6c4dd26c9a60 | 1,214 | py | Python | create_doi.py | caltechlibrary/manage_dois | ef1e908c27c8908117a5ed12481ebb9ed468a713 | [
"BSD-3-Clause"
] | 1 | 2019-01-31T21:47:28.000Z | 2019-01-31T21:47:28.000Z | create_doi.py | caltechlibrary/manage_dois | ef1e908c27c8908117a5ed12481ebb9ed468a713 | [
"BSD-3-Clause"
] | null | null | null | create_doi.py | caltechlibrary/manage_dois | ef1e908c27c8908117a5ed12481ebb9ed468a713 | [
"BSD-3-Clause"
] | null | null | null | import os,json
from datacite import DataCiteMDSClient, schema40
def create_doi(metadata,url):
password = os.environ['DATACITE']
prefix = '10.33569'
# Initialize the MDS client.
d = DataCiteMDSClient(
username='CALTECH.LIBRARY',
password=password,
prefix=prefix,
... | 28.232558 | 73 | 0.635091 | 139 | 1,214 | 5.446043 | 0.553957 | 0.043593 | 0.044914 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018539 | 0.244646 | 1,214 | 42 | 74 | 28.904762 | 0.806979 | 0.107908 | 0 | 0.068966 | 0 | 0 | 0.135436 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0.068966 | 0.068966 | 0 | 0.103448 | 0.103448 | 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 | 0 | 0 | 0 | 1 |
7a988e0002f335ae296b856df9e8f08788d807d1 | 1,591 | py | Python | chat/permissions.py | jbbqqf/okapi | 3db29ef1e15685fae304190bd176f75c4e367d03 | [
"BSD-3-Clause"
] | null | null | null | chat/permissions.py | jbbqqf/okapi | 3db29ef1e15685fae304190bd176f75c4e367d03 | [
"BSD-3-Clause"
] | null | null | null | chat/permissions.py | jbbqqf/okapi | 3db29ef1e15685fae304190bd176f75c4e367d03 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from rest_framework.permissions import BasePermission, SAFE_METHODS
class IsChannelAdminOrReadOnly(BasePermission):
"""
Custom permission to allow only users having admin_channel rights on a
given channel to perform write actions.
It also prevents anyone to edit default gener... | 27.912281 | 74 | 0.63105 | 189 | 1,591 | 5.232804 | 0.417989 | 0.060667 | 0.056623 | 0.064712 | 0.497472 | 0.497472 | 0.43276 | 0.29727 | 0.192113 | 0.107179 | 0 | 0.002747 | 0.313639 | 1,591 | 56 | 75 | 28.410714 | 0.90293 | 0.350723 | 0 | 0.6 | 0 | 0 | 0.036847 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08 | false | 0 | 0.04 | 0 | 0.56 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
7aa411bdff76a75445dd619af97efe81c4f89891 | 2,219 | py | Python | utils/csv-to-json.py | cartland/octavia-street-hilton | 228bb304a8dd1ffc63cc7c03f80b41483ca6e7f9 | [
"Apache-2.0"
] | null | null | null | utils/csv-to-json.py | cartland/octavia-street-hilton | 228bb304a8dd1ffc63cc7c03f80b41483ca6e7f9 | [
"Apache-2.0"
] | null | null | null | utils/csv-to-json.py | cartland/octavia-street-hilton | 228bb304a8dd1ffc63cc7c03f80b41483ca6e7f9 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
#
# Copyright 2014 Chris Cartland. 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 require... | 28.818182 | 76 | 0.62055 | 314 | 2,219 | 4.347134 | 0.484076 | 0.043956 | 0.019048 | 0.023443 | 0.055678 | 0.055678 | 0 | 0 | 0 | 0 | 0 | 0.01915 | 0.246958 | 2,219 | 76 | 77 | 29.197368 | 0.797726 | 0.359171 | 0 | 0.093023 | 0 | 0 | 0.116641 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.093023 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7aacdb8f33c976abc32fb465995265eea83671b6 | 675 | py | Python | _0702_div3/B_Balanced_Remainders.py | mingweihe/codeforces | 8395d68a09373775009b76dbde189ce5bbba58ae | [
"MIT"
] | null | null | null | _0702_div3/B_Balanced_Remainders.py | mingweihe/codeforces | 8395d68a09373775009b76dbde189ce5bbba58ae | [
"MIT"
] | null | null | null | _0702_div3/B_Balanced_Remainders.py | mingweihe/codeforces | 8395d68a09373775009b76dbde189ce5bbba58ae | [
"MIT"
] | null | null | null | from collections import Counter
def solve(N, A):
ans = 0
cnt = Counter(map(lambda x: x % 3, A))
avg = len(A) / 3
maxi = max(cnt.values())
if maxi == avg: return 0
for i in xrange(3):
if cnt[i] == maxi:
cur_moves = abs(cnt[i]-avg)
ans += cur_moves
cnt... | 25 | 49 | 0.499259 | 105 | 675 | 3.114286 | 0.380952 | 0.04893 | 0.100917 | 0.073395 | 0.067278 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029345 | 0.343704 | 675 | 26 | 50 | 25.961538 | 0.708804 | 0 | 0 | 0 | 0 | 0 | 0.002963 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.043478 | null | null | 0.043478 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
7ab4f8edc4abf49e16e40e465e1a2b5fdce9938d | 175 | py | Python | tests/ibmi/blackrock/test_blackrock_spike_data_acquisition_simple.py | sgowda/brain-python-interface | 708e2a5229d0496a8ce9de32bda66f0925d366d9 | [
"Apache-2.0"
] | 7 | 2015-08-25T00:28:49.000Z | 2020-04-14T22:58:51.000Z | tests/ibmi/blackrock/test_blackrock_spike_data_acquisition_simple.py | sgowda/brain-python-interface | 708e2a5229d0496a8ce9de32bda66f0925d366d9 | [
"Apache-2.0"
] | 89 | 2020-08-03T16:54:08.000Z | 2022-03-09T19:56:19.000Z | tests/ibmi/blackrock/test_blackrock_spike_data_acquisition_simple.py | sgowda/brain-python-interface | 708e2a5229d0496a8ce9de32bda66f0925d366d9 | [
"Apache-2.0"
] | 4 | 2020-03-06T15:39:00.000Z | 2021-05-26T17:03:21.000Z | import time
from riglib import blackrock
channels = [5, 6, 7, 8]
obj = blackrock.Spikes(channels)
obj.start()
for i in range(10):
print(obj.get())
time.sleep(0.01)
| 14.583333 | 32 | 0.668571 | 29 | 175 | 4.034483 | 0.793103 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.06338 | 0.188571 | 175 | 11 | 33 | 15.909091 | 0.760563 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.125 | 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 | 0 | 0 | 0 | 1 |
8f8523b5720c4e854d4021b66e4f8f535509a672 | 556 | py | Python | tests/test_utils/test_objectise.py | dida-do/dida-tools | 95979e076cb7e7707d50e34b1f2e16d77c95bf9d | [
"Apache-2.0"
] | 1 | 2021-04-14T15:47:54.000Z | 2021-04-14T15:47:54.000Z | tests/test_utils/test_objectise.py | dida-do/dida-tools | 95979e076cb7e7707d50e34b1f2e16d77c95bf9d | [
"Apache-2.0"
] | null | null | null | tests/test_utils/test_objectise.py | dida-do/dida-tools | 95979e076cb7e7707d50e34b1f2e16d77c95bf9d | [
"Apache-2.0"
] | null | null | null | """Test the `objectise` function"""
import unittest
from utils.objectise import snake2camal, objectise
def dummy_fn(x, y=2):
return x + y
class TestSnake2Camel(unitest.TestCase):
def test_snake2camel(self):
assert snake2camel("hello_world") == "HelloWorld"
class TestObjectise(unittest.TestCase):
... | 23.166667 | 57 | 0.654676 | 64 | 556 | 5.484375 | 0.546875 | 0.039886 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018779 | 0.233813 | 556 | 23 | 58 | 24.173913 | 0.805164 | 0.052158 | 0 | 0 | 0 | 0 | 0.055662 | 0 | 0 | 0 | 0 | 0 | 0.133333 | 1 | 0.266667 | false | 0 | 0.133333 | 0.066667 | 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 | 0 | 0 | 0 | 1 |
8f87d35ace608185b98e21cc2dc5068edc5efd2c | 2,054 | py | Python | techy_bot.py | ProgrammingMyLife/Discord-Techy-Bot | 39de33378309fdd9ae7523de59560fe8b2ec0eba | [
"MIT"
] | null | null | null | techy_bot.py | ProgrammingMyLife/Discord-Techy-Bot | 39de33378309fdd9ae7523de59560fe8b2ec0eba | [
"MIT"
] | null | null | null | techy_bot.py | ProgrammingMyLife/Discord-Techy-Bot | 39de33378309fdd9ae7523de59560fe8b2ec0eba | [
"MIT"
] | null | null | null |
import discord
import os
import datetime
client = discord.Client()
dt = datetime.datetime.now()
hour = dt.hour
@client.event
async def on_ready():
print(f'Bot is online')
part_of_day(hour)
@client.event
async def on_message(message):
if message.author == client.user:
re... | 30.656716 | 160 | 0.612463 | 276 | 2,054 | 4.543478 | 0.347826 | 0.093301 | 0.136364 | 0.165072 | 0.354864 | 0.333333 | 0.293461 | 0.293461 | 0.23764 | 0.153908 | 0 | 0.009032 | 0.245375 | 2,054 | 66 | 161 | 31.121212 | 0.8 | 0.001461 | 0 | 0.113636 | 0 | 0 | 0.330812 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.068182 | 0 | 0.090909 | 0.022727 | 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 | 0 | 0 | 0 | 1 |
8f97039c4202fd6d0b8ce5d17e398d5e7f020bf6 | 4,365 | py | Python | src/kinematics.py | CyanBrown/PhysicsCalculator | 51c72c5e76cf5075fc9ada49e21080029628560c | [
"MIT"
] | null | null | null | src/kinematics.py | CyanBrown/PhysicsCalculator | 51c72c5e76cf5075fc9ada49e21080029628560c | [
"MIT"
] | 4 | 2021-01-02T17:54:18.000Z | 2021-01-19T23:42:54.000Z | src/kinematics.py | CyanBrown/PhysicsCalculator | 51c72c5e76cf5075fc9ada49e21080029628560c | [
"MIT"
] | null | null | null | import math
from src.errors import *
class kinematics:
def __init__(self, kinvalues):
"""
:param kinvalues: dictionary of known values, used keys = ['X','X0','V','V0','A','T']
"""
self.values = kinvalues
self.solved = False
# calls calculate attributes to start th... | 41.971154 | 118 | 0.52142 | 526 | 4,365 | 4.262357 | 0.174905 | 0.374665 | 0.088314 | 0.071365 | 0.682872 | 0.618198 | 0.569135 | 0.531668 | 0.510705 | 0.451829 | 0 | 0.016565 | 0.322337 | 4,365 | 103 | 119 | 42.378641 | 0.741379 | 0.147995 | 0 | 0.15625 | 0 | 0 | 0.028773 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.078125 | false | 0 | 0.03125 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8f9ae648397af2de5b672e70043bfeb92058286e | 1,630 | py | Python | IniParser.py | neudeeptech/XlsToIni | 3731f0ebd222bbec2dcb84864297cb5634f630ee | [
"MIT"
] | null | null | null | IniParser.py | neudeeptech/XlsToIni | 3731f0ebd222bbec2dcb84864297cb5634f630ee | [
"MIT"
] | null | null | null | IniParser.py | neudeeptech/XlsToIni | 3731f0ebd222bbec2dcb84864297cb5634f630ee | [
"MIT"
] | null | null | null | from xlrd import open_workbook, XLRDError
import sys
class XlsToIni :
def toIni(self, xlsFile, iniFile):
x = open_workbook(xlsFile)
sheet=x.sheet_by_name('ConfigList')
f=open(iniFile,"w+")
a_status=""
for i in range(3,(sheet.nrows)):
for... | 25.873016 | 46 | 0.459509 | 247 | 1,630 | 3.004049 | 0.271255 | 0.137466 | 0.145553 | 0.084906 | 0.212938 | 0.156334 | 0.156334 | 0.156334 | 0.156334 | 0.156334 | 0 | 0.018421 | 0.300614 | 1,630 | 62 | 47 | 26.290323 | 0.631579 | 0 | 0 | 0.117647 | 0 | 0 | 0.127632 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.039216 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.