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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1c73f46ead9d192f8c5cfa4d781830fc13ee83fb | 247 | py | Python | src/nox_poetry/patch.py | drhagen/nox-poetry | 1afc0a007cea88614ff1e0b8be1415e0f8e84253 | [
"MIT"
] | 77 | 2020-09-30T14:17:18.000Z | 2022-03-28T14:39:00.000Z | src/nox_poetry/patch.py | drhagen/nox-poetry | 1afc0a007cea88614ff1e0b8be1415e0f8e84253 | [
"MIT"
] | 260 | 2020-05-27T05:23:54.000Z | 2022-03-30T23:28:55.000Z | src/nox_poetry/patch.py | drhagen/nox-poetry | 1afc0a007cea88614ff1e0b8be1415e0f8e84253 | [
"MIT"
] | 9 | 2020-06-01T10:43:09.000Z | 2022-03-26T19:00:40.000Z | """Monkey-patch Nox to install packages using nox-poetry.
.. deprecated:: 0.8
Use :func:`session` instead.
Import this module to monkey-patch Nox.
See :func:`nox_poetry.core.patch` for details.
"""
from nox_poetry.core import patch
patch()
| 19 | 57 | 0.728745 | 38 | 247 | 4.684211 | 0.605263 | 0.151685 | 0.157303 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009479 | 0.145749 | 247 | 12 | 58 | 20.583333 | 0.834123 | 0.789474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
1c82febfa89614dd1142513a9d7119aa77e3540a | 1,999 | py | Python | custom_email_user/admin.py | simodalla/django-custom-email-user | a8e91b655a03ea4b8bb58c52d892f7a369bb556c | [
"BSD-3-Clause"
] | null | null | null | custom_email_user/admin.py | simodalla/django-custom-email-user | a8e91b655a03ea4b8bb58c52d892f7a369bb556c | [
"BSD-3-Clause"
] | null | null | null | custom_email_user/admin.py | simodalla/django-custom-email-user | a8e91b655a03ea4b8bb58c52d892f7a369bb556c | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals, absolute_import
from django.contrib import admin
from django.contrib.admin.templatetags.admin_urls import admin_urlname
from django.contrib.auth.admin import UserAdmin
from django.core.urlresolvers import reverse
from django.utils.translation import uget... | 37.018519 | 79 | 0.631316 | 220 | 1,999 | 5.509091 | 0.522727 | 0.041254 | 0.042904 | 0.056106 | 0.075083 | 0.052805 | 0.052805 | 0.052805 | 0 | 0 | 0 | 0.003253 | 0.231116 | 1,999 | 53 | 80 | 37.716981 | 0.785296 | 0.141071 | 0 | 0 | 0 | 0 | 0.195906 | 0.012866 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025641 | false | 0.051282 | 0.230769 | 0.025641 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
98c6cb56823f094e93ba03f5a2abb90c720cd422 | 728 | py | Python | setup.py | oupin123/read-ICESat-2 | 2501f305536a7ef875438a3986d7de175f4b833d | [
"MIT"
] | 1 | 2020-02-06T17:30:07.000Z | 2020-02-06T17:30:07.000Z | setup.py | oupin123/read-ICESat-2 | 2501f305536a7ef875438a3986d7de175f4b833d | [
"MIT"
] | null | null | null | setup.py | oupin123/read-ICESat-2 | 2501f305536a7ef875438a3986d7de175f4b833d | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
setup(
name='read-ICESat-2',
version='1.0.0.4',
description='Tools for reading and using data from the NASA ICESat-2 mission',
url='https://github.com/tsutterley/read-ICESat-2',
author='Tyler Sutterley',
author_email='tsutterl@uw.edu',
license='MIT',
classifiers=[
'... | 33.090909 | 79 | 0.700549 | 92 | 728 | 5.5 | 0.76087 | 0.055336 | 0.043478 | 0.102767 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020408 | 0.125 | 728 | 21 | 80 | 34.666667 | 0.77394 | 0 | 0 | 0 | 0 | 0 | 0.611264 | 0.03022 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.047619 | 0 | 0.047619 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
98cb681ed2b8e872ba6edb5ec36832ada8384e8c | 115 | py | Python | common_utils_py/ddo/constants.py | nevermined-io/common-utils-py | 4a02843d4f4771935b6f057badac844fef6f6f13 | [
"Apache-2.0"
] | 1 | 2020-12-02T13:49:43.000Z | 2020-12-02T13:49:43.000Z | common_utils_py/ddo/constants.py | nevermined-io/common-utils-py | 4a02843d4f4771935b6f057badac844fef6f6f13 | [
"Apache-2.0"
] | 2 | 2021-08-24T13:14:47.000Z | 2021-12-01T17:06:29.000Z | common_utils_py/ddo/constants.py | nevermined-io/common-utils-py | 4a02843d4f4771935b6f057badac844fef6f6f13 | [
"Apache-2.0"
] | null | null | null | KEY_PAIR_MODULUS_BIT = 1024
DID_DDO_CONTEXT_URL = 'https://w3id.org/did/v1'
PROOF_TYPE = 'DDOIntegritySignature'
| 19.166667 | 47 | 0.791304 | 17 | 115 | 4.941176 | 0.941176 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.057692 | 0.095652 | 115 | 5 | 48 | 23 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0.382609 | 0.182609 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
98e78009f7629c966c4d9fab5c42f72211511e72 | 4,600 | py | Python | project/GUI/PopUps/ImportFilesPopUp.py | RemuTeam/Remu | a7d100ff9002b1b1d27249f8adf510b5a89c09e3 | [
"MIT"
] | 2 | 2017-09-18T11:04:38.000Z | 2017-09-25T17:23:21.000Z | project/GUI/PopUps/ImportFilesPopUp.py | RemuTeam/Remu | a7d100ff9002b1b1d27249f8adf510b5a89c09e3 | [
"MIT"
] | 26 | 2017-09-20T09:11:10.000Z | 2017-12-11T12:21:56.000Z | project/GUI/PopUps/ImportFilesPopUp.py | RemuTeam/Remu | a7d100ff9002b1b1d27249f8adf510b5a89c09e3 | [
"MIT"
] | null | null | null | import os
from Utils.FileHandler import copy_file_as
from Constants.TestReturnValue import *
from kivy.event import EventDispatcher
from Constants.SupportedFileTypes import AllSupportedFormats
from Constants.FileHandlingMode import ImportMultipleFiles
from GUI.PopUps.FileCopyDialogPopUp import FileCopyDialogPopUp
fro... | 47.42268 | 101 | 0.646739 | 532 | 4,600 | 5.445489 | 0.261278 | 0.031067 | 0.022437 | 0.016569 | 0.109769 | 0.066275 | 0.066275 | 0.066275 | 0.029686 | 0.029686 | 0 | 0.000311 | 0.300435 | 4,600 | 96 | 102 | 47.916667 | 0.899938 | 0.353043 | 0 | 0.090909 | 0 | 0 | 0.006787 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.5 | 0 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
98ed6f7ee54a2896ddb710c4d58359d0f424e2c5 | 6,993 | py | Python | env/lib/python3.6/site-packages/telegram/__init__.py | rogerscristo/BotFWD | 4f2ab1f4f4543c157ca0a79084536c065f74159f | [
"MIT"
] | null | null | null | env/lib/python3.6/site-packages/telegram/__init__.py | rogerscristo/BotFWD | 4f2ab1f4f4543c157ca0a79084536c065f74159f | [
"MIT"
] | 3 | 2017-09-01T22:18:30.000Z | 2017-09-01T22:24:57.000Z | env/lib/python3.6/site-packages/telegram/__init__.py | rogerscristo/BotFWD | 4f2ab1f4f4543c157ca0a79084536c065f74159f | [
"MIT"
] | 3 | 2018-02-22T22:20:27.000Z | 2018-04-22T10:58:24.000Z | #!/usr/bin/env python
#
# A library that provides a Python interface to the Telegram Bot API
# Copyright (C) 2015-2017
# Leandro Toledo de Souza <devs@python-telegram-bot.org>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser Public License as publish... | 55.5 | 98 | 0.812384 | 652 | 6,993 | 8.624233 | 0.28681 | 0.051574 | 0.014939 | 0.014227 | 0.10048 | 0.087498 | 0.077894 | 0.077894 | 0.077894 | 0.077894 | 0 | 0.002602 | 0.120835 | 6,993 | 125 | 99 | 55.944 | 0.912004 | 0.121979 | 0 | 0 | 0 | 0 | 0.233851 | 0.124186 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.737864 | 0 | 0.737864 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
98f0367ba1ea635288e2459f900f424c36b6780a | 4,465 | py | Python | Task3-ReplayGrounding/SoccerNetv2-ReplayGrounding-NetVLAD-More-Negative/loss.py | SilvioGiancola/SoccerNetv2-DevK | fb078911573409f48b85ee854dc8f09f432ee3a6 | [
"MIT"
] | 5 | 2022-01-20T11:40:26.000Z | 2022-01-31T22:28:02.000Z | Task3-ReplayGrounding/SoccerNetv2-ReplayGrounding-NetVLAD-More-Negative/loss.py | SilvioGiancola/SoccerNetv2-DevK | fb078911573409f48b85ee854dc8f09f432ee3a6 | [
"MIT"
] | null | null | null | Task3-ReplayGrounding/SoccerNetv2-ReplayGrounding-NetVLAD-More-Negative/loss.py | SilvioGiancola/SoccerNetv2-DevK | fb078911573409f48b85ee854dc8f09f432ee3a6 | [
"MIT"
] | null | null | null | import torch
####################################################################################################################################################
# Context-aware loss function
############################################################################################################################... | 52.529412 | 316 | 0.538858 | 644 | 4,465 | 3.572981 | 0.130435 | 0.054324 | 0.041721 | 0.046936 | 0.594959 | 0.533246 | 0.449804 | 0.442416 | 0.3794 | 0.347675 | 0 | 0.032013 | 0.146473 | 4,465 | 84 | 317 | 53.154762 | 0.571766 | 0.197536 | 0 | 0.051282 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.205128 | false | 0 | 0.051282 | 0.102564 | 0.461538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
98fd7195e07c33554920085182fa9faf4b46d620 | 299 | py | Python | codigo/Live204/exemplo_02.py | z4r4tu5tr4/live-de-quarta | 1d12adb83f2afe306faf52e47edacef714c50574 | [
"MIT"
] | 2 | 2017-06-05T23:32:00.000Z | 2017-06-08T01:01:35.000Z | codigo/Live204/exemplo_02.py | z4r4tu5tr4/live-de-quarta | 1d12adb83f2afe306faf52e47edacef714c50574 | [
"MIT"
] | null | null | null | codigo/Live204/exemplo_02.py | z4r4tu5tr4/live-de-quarta | 1d12adb83f2afe306faf52e47edacef714c50574 | [
"MIT"
] | null | null | null | from timeit import timeit
def teste_if_igual():
l = []
if l == []:
...
def teste_if():
l = []
if l:
...
# print(
# timeit('teste_if_igual()', globals=globals(), number=10_000)
# )
# print(
# timeit('teste_if()', globals=globals(), number=10_000)
# )
| 11.96 | 66 | 0.51505 | 36 | 299 | 4.055556 | 0.361111 | 0.191781 | 0.136986 | 0.246575 | 0.342466 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04717 | 0.29097 | 299 | 24 | 67 | 12.458333 | 0.641509 | 0.471572 | 0 | 0.444444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c709c3962daf7134b9c66c0f768acb6e2686b1fc | 1,478 | py | Python | 1-Basic/3_Drawing.py | zer0-911/OpenCv-Python | 7acb10259e731aa39076e91882f7a00fe69da1ee | [
"MIT"
] | null | null | null | 1-Basic/3_Drawing.py | zer0-911/OpenCv-Python | 7acb10259e731aa39076e91882f7a00fe69da1ee | [
"MIT"
] | null | null | null | 1-Basic/3_Drawing.py | zer0-911/OpenCv-Python | 7acb10259e731aa39076e91882f7a00fe69da1ee | [
"MIT"
] | null | null | null | # /**
# * @author Moh. Iqbal Fatchurozi
# * @email mohiqbalf5@gmail.com
# * @create date 2022-02-10 20:49:56
# * @modify date 2022-02-10 20:49:56
# * @desc [Menggambar dan menulis. Hilangkan komen untuk menjalankan program]
import cv2 as cv
import numpy as np
# # Menampilkan blank image
# blank = np.zeros((500,... | 29.56 | 85 | 0.61908 | 227 | 1,478 | 4.022026 | 0.400881 | 0.046002 | 0.078861 | 0.098576 | 0.293538 | 0.293538 | 0.293538 | 0.254107 | 0.16977 | 0 | 0 | 0.131188 | 0.179973 | 1,478 | 49 | 86 | 30.163265 | 0.622112 | 0.87889 | 0 | 0 | 0 | 0 | 0.007246 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
c7296855711d6355ef7c0cfc1f23996a6df64ffb | 401 | py | Python | wafec_test_data_server/models/data_event.py | wafec/wafec-test-data-server | b1355945f9fd7bebd550070487cb4e049e29832d | [
"MIT"
] | null | null | null | wafec_test_data_server/models/data_event.py | wafec/wafec-test-data-server | b1355945f9fd7bebd550070487cb4e049e29832d | [
"MIT"
] | null | null | null | wafec_test_data_server/models/data_event.py | wafec/wafec-test-data-server | b1355945f9fd7bebd550070487cb4e049e29832d | [
"MIT"
] | null | null | null | from .base import Base
from sqlalchemy import Column, Integer, String, Boolean
class DataEvent(Base):
__tablename__ = 'DATA_EVENT'
id = Column(Integer, primary_key=True)
source = Column(String)
event_name = Column(String)
value = Column(String)
data_type = Column(String)
is_callable = Co... | 23.588235 | 55 | 0.708229 | 49 | 401 | 5.571429 | 0.530612 | 0.263736 | 0.117216 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.201995 | 401 | 16 | 56 | 25.0625 | 0.853125 | 0 | 0 | 0 | 0 | 0 | 0.024938 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 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 | 1 | 0 | 0 | 2 |
c73c9be3a47af15e4367da4bd501a9a105cb4c28 | 418 | py | Python | pii-manager/src/pii_manager/piientity.py | raineydavid/data_tooling | 3b58756bf0f7f60e8ff3bd7b2efadd4e8587358d | [
"Apache-2.0"
] | null | null | null | pii-manager/src/pii_manager/piientity.py | raineydavid/data_tooling | 3b58756bf0f7f60e8ff3bd7b2efadd4e8587358d | [
"Apache-2.0"
] | null | null | null | pii-manager/src/pii_manager/piientity.py | raineydavid/data_tooling | 3b58756bf0f7f60e8ff3bd7b2efadd4e8587358d | [
"Apache-2.0"
] | null | null | null | from .piienum import PiiEnum
class PiiEntity:
"""
A detected PII entity
"""
__slots__ = "pos", "elem", "value"
def __init__(self, elem: PiiEnum, pos: int, value: str):
self.elem = elem
self.pos = pos
self.value = value
def __len__(self):
return len(self.value... | 19.904762 | 70 | 0.583732 | 52 | 418 | 4.384615 | 0.442308 | 0.105263 | 0.105263 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.279904 | 418 | 20 | 71 | 20.9 | 0.757475 | 0.050239 | 0 | 0 | 0 | 0 | 0.167979 | 0.107612 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.090909 | 0.181818 | 0.727273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
c743aa0863716a6171ad976f9466386e62caa87c | 468 | py | Python | tasks/task6/1011_a.py | eweilow/si1336-simulation-and-modeling | 98a8f4e8067a82584e8d6e4aa3b8c7bee6b0dc2b | [
"MIT"
] | null | null | null | tasks/task6/1011_a.py | eweilow/si1336-simulation-and-modeling | 98a8f4e8067a82584e8d6e4aa3b8c7bee6b0dc2b | [
"MIT"
] | null | null | null | tasks/task6/1011_a.py | eweilow/si1336-simulation-and-modeling | 98a8f4e8067a82584e8d6e4aa3b8c7bee6b0dc2b | [
"MIT"
] | 1 | 2020-11-05T08:07:06.000Z | 2020-11-05T08:07:06.000Z | from common import loadFile, plotData, loadRelaxationsFile, plotRelaxations
points, relaxations, accuracy, data = loadFile("./data/1011_a_1.bin")
plotData("./plots/1011/a_1.png", points, relaxations, accuracy, data)
plotData("./plots/1011/a_1_eq.png", points,
relaxations, accuracy, data, use3d=False)
gridS... | 39 | 77 | 0.769231 | 57 | 468 | 6.157895 | 0.385965 | 0.071225 | 0.068376 | 0.247863 | 0.290598 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058962 | 0.094017 | 468 | 11 | 78 | 42.545455 | 0.768868 | 0 | 0 | 0 | 0 | 0 | 0.260684 | 0.17735 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.142857 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c75cec62aa6e8548f4a6e090bfa2848124732571 | 381 | py | Python | search/urls.py | Zex0n/django-simple-cms | 097098dcea218697a53f9c04005c86a7680ee4e1 | [
"MIT"
] | 1 | 2021-04-03T09:29:13.000Z | 2021-04-03T09:29:13.000Z | search/urls.py | Zex0n/django-simple-cms | 097098dcea218697a53f9c04005c86a7680ee4e1 | [
"MIT"
] | null | null | null | search/urls.py | Zex0n/django-simple-cms | 097098dcea218697a53f9c04005c86a7680ee4e1 | [
"MIT"
] | null | null | null | from django.conf.urls import url
from . import views
from django.views.generic import TemplateView
urlpatterns = [
url(r'^$', views.SearchListView.as_view(), {'slug': 'main'}, name='list_search'),
# url(r'^page/goodpost/?$', TemplateView.as_view(template_name="page/good_post.html")),
# url(r'^page/(?P<slug>... | 47.625 | 91 | 0.685039 | 52 | 381 | 4.903846 | 0.557692 | 0.047059 | 0.062745 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.102362 | 381 | 8 | 92 | 47.625 | 0.745614 | 0.435696 | 0 | 0 | 0 | 0 | 0.098592 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
c75da62793e313f0314931d4726abbaff3eb708d | 13,136 | py | Python | dash_bio/Ideogram.py | apblair/dash-bio | aab01c520460e69eda29e07c97c3a9f9aef61f60 | [
"MIT"
] | 1 | 2022-01-14T19:44:57.000Z | 2022-01-14T19:44:57.000Z | dash_bio/Ideogram.py | apblair/dash-bio | aab01c520460e69eda29e07c97c3a9f9aef61f60 | [
"MIT"
] | null | null | null | dash_bio/Ideogram.py | apblair/dash-bio | aab01c520460e69eda29e07c97c3a9f9aef61f60 | [
"MIT"
] | null | null | null | # AUTO GENERATED FILE - DO NOT EDIT
from dash.development.base_component import Component, _explicitize_args
class Ideogram(Component):
"""An Ideogram component.
The Ideogram component is used to draw and animate genome-wide
datasets for organisms such as human, mouse, and any other
eukaryote. The Ideogram compo... | 46.914286 | 1,423 | 0.720996 | 1,598 | 13,136 | 5.899875 | 0.269086 | 0.078277 | 0.005834 | 0.006894 | 0.188163 | 0.178511 | 0.158676 | 0.153161 | 0.136614 | 0.136614 | 0 | 0.013483 | 0.181334 | 13,136 | 279 | 1,424 | 47.082437 | 0.863214 | 0.730892 | 0 | 0 | 1 | 0 | 0.291931 | 0.014409 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.052632 | 0 | 0.157895 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c76dcfed019b6c04f6c3a92f6c1e2f05b325c4c8 | 224 | py | Python | pythonExamples/FirstPythonLect/pythonLect6.py | davidruffner/computation-physics-nyu-2009 | 754d48f820773cd6b1b3cd3a7444363b78e1ea00 | [
"MIT"
] | null | null | null | pythonExamples/FirstPythonLect/pythonLect6.py | davidruffner/computation-physics-nyu-2009 | 754d48f820773cd6b1b3cd3a7444363b78e1ea00 | [
"MIT"
] | null | null | null | pythonExamples/FirstPythonLect/pythonLect6.py | davidruffner/computation-physics-nyu-2009 | 754d48f820773cd6b1b3cd3a7444363b78e1ea00 | [
"MIT"
] | null | null | null | list1 = range(50)
list2 = list()
for x in list1:
list2.append(x**2)
print list2
'''or more simply'''
list3 = [x**3 for x in list1]
print list3
'''more options'''
list4 = [x**3 for x in list1 if x % 2 ==0]
print list4
| 14.933333 | 42 | 0.620536 | 42 | 224 | 3.309524 | 0.47619 | 0.086331 | 0.129496 | 0.23741 | 0.18705 | 0.18705 | 0 | 0 | 0 | 0 | 0 | 0.102273 | 0.214286 | 224 | 14 | 43 | 16 | 0.6875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c7705b76514c37f7fb53bbbbe583573f3bff4685 | 54 | py | Python | stochopy/sample/hmc/__init__.py | keurfonluu/stochopy | a566a9db0efbd74e385f8d46fa4ece2ca939e45b | [
"BSD-3-Clause"
] | 36 | 2020-04-27T04:59:51.000Z | 2022-03-29T02:34:44.000Z | stochopy/sample/hmc/__init__.py | XiangyuYang-Opt/stochopy | 5f6625c40ec80297dbcd3bd85b5073b9ed6b8cb2 | [
"BSD-3-Clause"
] | 9 | 2020-09-20T08:38:00.000Z | 2021-11-22T08:20:41.000Z | stochopy/sample/hmc/__init__.py | XiangyuYang-Opt/stochopy | 5f6625c40ec80297dbcd3bd85b5073b9ed6b8cb2 | [
"BSD-3-Clause"
] | 6 | 2018-04-17T03:54:46.000Z | 2020-03-03T14:15:31.000Z | from ._hmc import sample
__all__ = [
"sample",
]
| 9 | 24 | 0.611111 | 6 | 54 | 4.666667 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.259259 | 54 | 5 | 25 | 10.8 | 0.7 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c77f246f184874bf7664474eb73665747250c2bb | 249 | py | Python | main.py | DaveRipper/Exigo | c697c49ebde0a1c7775a5e0cca2b5fb922235c9d | [
"MIT"
] | null | null | null | main.py | DaveRipper/Exigo | c697c49ebde0a1c7775a5e0cca2b5fb922235c9d | [
"MIT"
] | null | null | null | main.py | DaveRipper/Exigo | c697c49ebde0a1c7775a5e0cca2b5fb922235c9d | [
"MIT"
] | null | null | null | import os
from questioner import Questioner
questioner = Questioner("questions")
if __name__ == "__main__":
while True:
questioner.start()
if input("\n엔터를 누르면 다시 시작합니다") == "":
os.system("cls")
continue | 20.75 | 45 | 0.598394 | 26 | 249 | 5.423077 | 0.730769 | 0.283688 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.285141 | 249 | 12 | 46 | 20.75 | 0.792135 | 0 | 0 | 0 | 0 | 0 | 0.152 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 0.222222 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c79295f8d4ef8159414bad8b45c61d20ed81ee06 | 145 | py | Python | 2675/2675.py3.py | isac322/BOJ | 35959dd1a63d75ebca9ed606051f7a649d5c0c7b | [
"MIT"
] | 14 | 2017-05-02T02:00:42.000Z | 2021-11-16T07:25:29.000Z | 2675/2675.py3.py | isac322/BOJ | 35959dd1a63d75ebca9ed606051f7a649d5c0c7b | [
"MIT"
] | 1 | 2017-12-25T14:18:14.000Z | 2018-02-07T06:49:44.000Z | 2675/2675.py3.py | isac322/BOJ | 35959dd1a63d75ebca9ed606051f7a649d5c0c7b | [
"MIT"
] | 9 | 2016-03-03T22:06:52.000Z | 2020-04-30T22:06:24.000Z | len = int(input())
while len:
n, st = input().split()
n = int(n)
for i in st:
print(i*n, end = "")
print("")
len -= 1 | 18.125 | 28 | 0.441379 | 23 | 145 | 2.782609 | 0.565217 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010638 | 0.351724 | 145 | 8 | 29 | 18.125 | 0.670213 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c794d371976ce17bca9613baa4d7fffadc13bbac | 1,161 | py | Python | pyske/examples/list/maximum_segment_sum.py | YohannBaudet/PySke | 66aa88c75aeffe69256a47f18bb55a498912d275 | [
"BSD-2-Clause"
] | 1 | 2022-01-01T07:51:55.000Z | 2022-01-01T07:51:55.000Z | pyske/examples/list/maximum_segment_sum.py | YohannBaudet/PySke | 66aa88c75aeffe69256a47f18bb55a498912d275 | [
"BSD-2-Clause"
] | 2 | 2021-05-25T11:19:26.000Z | 2021-05-25T11:20:23.000Z | pyske/examples/list/maximum_segment_sum.py | YohannBaudet/PySke | 66aa88c75aeffe69256a47f18bb55a498912d275 | [
"BSD-2-Clause"
] | 7 | 2019-09-12T03:23:16.000Z | 2022-02-02T15:34:39.000Z | """
The Maximum Segment Sum (MSS) problem
"""
from pyske.core.interface import List
def int_to_tuple(num):
"""Duplicate a value into a pair of values"""
return num, num
def max_and_sum(_sum, number_pair):
"""From the best sum, current sum, and a new value, generate the new best and current sum"""
be... | 29.025 | 97 | 0.632214 | 182 | 1,161 | 3.824176 | 0.318681 | 0.070402 | 0.122126 | 0.097701 | 0.189655 | 0.189655 | 0.189655 | 0.189655 | 0.094828 | 0 | 0 | 0.048 | 0.246339 | 1,161 | 39 | 98 | 29.769231 | 0.747429 | 0.540913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.083333 | 0 | 0.583333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
c79c6a6f6af10ede81f58da5f5b895f456a573a9 | 840 | py | Python | setup.py | nandakishormpai2001/Rock_Paper_Scissors-1 | 1dc14273a9e32aa317a3f227b21810a1d3b8622e | [
"MIT"
] | 1 | 2020-08-19T05:22:11.000Z | 2020-08-19T05:22:11.000Z | setup.py | nandakishormpai2001/Rock_Paper_Scissors-1 | 1dc14273a9e32aa317a3f227b21810a1d3b8622e | [
"MIT"
] | 3 | 2020-11-13T18:54:33.000Z | 2022-02-10T02:02:05.000Z | setup.py | nandakishormpai2001/Rock_Paper_Scissors-1 | 1dc14273a9e32aa317a3f227b21810a1d3b8622e | [
"MIT"
] | 3 | 2020-05-09T07:02:54.000Z | 2020-10-03T17:30:09.000Z | print("\n show images of rock , paper, scissors and NOTHING in the same order for data collection\n")
import os
print("\nWelcome to the setup!")
try:
os.system('rmdir train_data')
except:
os.system('rm -r train_data')
print("\nremoved older data\n")
try:
os.system('pip install -r requirements.txt')
... | 26.25 | 102 | 0.70119 | 130 | 840 | 4.453846 | 0.315385 | 0.193437 | 0.207254 | 0.145078 | 0.552677 | 0.528497 | 0.385147 | 0 | 0 | 0 | 0 | 0.035714 | 0.166667 | 840 | 32 | 103 | 26.25 | 0.791429 | 0 | 0 | 0.25 | 0 | 0.041667 | 0.595719 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.041667 | 0 | 0.041667 | 0.125 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c7d056cf26ace33465645d00725b7bad8609ddb4 | 2,583 | py | Python | testmodel/webapp/selenium/test/templates-filter-aspect-test.py | srobb1/intermine | 8846a49be00ecbf27709ddc544b6801600a52ab8 | [
"PostgreSQL"
] | null | null | null | testmodel/webapp/selenium/test/templates-filter-aspect-test.py | srobb1/intermine | 8846a49be00ecbf27709ddc544b6801600a52ab8 | [
"PostgreSQL"
] | null | null | null | testmodel/webapp/selenium/test/templates-filter-aspect-test.py | srobb1/intermine | 8846a49be00ecbf27709ddc544b6801600a52ab8 | [
"PostgreSQL"
] | null | null | null | from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support.ui import Select
from selenium.common.exceptions import NoSuchElementException
from test.testmodeltestcase import TestModelTestCase as Super
import unittest, time, re, os
class TemplatesFilterAsp... | 38.552239 | 125 | 0.656214 | 326 | 2,583 | 4.984663 | 0.294479 | 0.060923 | 0.099692 | 0.110769 | 0.526769 | 0.526769 | 0.487385 | 0.487385 | 0.461538 | 0.461538 | 0 | 0.007874 | 0.262485 | 2,583 | 67 | 126 | 38.552239 | 0.845144 | 0.117693 | 0 | 0.55102 | 0 | 0 | 0.158451 | 0.120158 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.102041 | 0.122449 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
c7da3fd865bc77930a10b1167cb4f281d8e168e5 | 305 | py | Python | src/sot_talos_balance/talos/control_manager_sim_conf.py | imaroger/sot-talos-balance | 5e56700b4e105273ecf6feb3474789beac469a77 | [
"BSD-2-Clause"
] | null | null | null | src/sot_talos_balance/talos/control_manager_sim_conf.py | imaroger/sot-talos-balance | 5e56700b4e105273ecf6feb3474789beac469a77 | [
"BSD-2-Clause"
] | 8 | 2020-03-12T11:03:07.000Z | 2021-11-05T14:44:20.000Z | src/sot_talos_balance/talos/control_manager_sim_conf.py | imaroger/sot-talos-balance | 5e56700b4e105273ecf6feb3474789beac469a77 | [
"BSD-2-Clause"
] | 4 | 2019-05-07T13:12:29.000Z | 2020-06-09T17:02:53.000Z | # -*- coding: utf-8 -*-
"""
Created on Mon Feb 9 13:55:16 2015
@author: adelpret
"""
from control_manager_conf import * # noqa
TAU_MAX = 1e6
# security check of ControlManager
CURRENT_MAX = 1e6
# security check of ControlManager
CTRL_MAX = 1e6
# max desired current (security check of ControlManager)
| 20.333333 | 56 | 0.731148 | 44 | 305 | 4.954545 | 0.681818 | 0.082569 | 0.206422 | 0.399083 | 0.321101 | 0.321101 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 0.17377 | 305 | 14 | 57 | 21.785714 | 0.793651 | 0.662295 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c7ee611a035375f7ca907f4d0f5675c2544bae23 | 1,738 | py | Python | projects/src/main/python/CodeJam/Y14R5P1/frank/p1.py | DynamicCodeSearch/CodeSeer | ee985ece7691691585952eb88565f0e08bdc9113 | [
"MIT"
] | 5 | 2020-04-05T18:04:13.000Z | 2021-04-13T20:34:19.000Z | projects/src/main/python/CodeJam/Y14R5P1/frank/p1.py | DynamicCodeSearch/CodeSeer | ee985ece7691691585952eb88565f0e08bdc9113 | [
"MIT"
] | 1 | 2020-04-29T21:42:26.000Z | 2020-05-01T23:45:45.000Z | projects/src/main/python/CodeJam/Y14R5P1/frank/p1.py | DynamicCodeSearch/CodeSeer | ee985ece7691691585952eb88565f0e08bdc9113 | [
"MIT"
] | 3 | 2020-01-27T16:02:14.000Z | 2021-02-08T13:25:15.000Z | import sys
def _main():
ifn="codejam/test_files/Y14R5P1/A.in"
ofn="codejam/test_files/Y14R5P1/A.out"
sys.setrecursionlimit(2000)
with open(ifn) as inf:
with open(ofn,'w') as ouf:
noc = int(inf.readline())
for tnoc in xrange(1,noc+1):
ouf.write("... | 36.978723 | 79 | 0.352129 | 205 | 1,738 | 2.926829 | 0.312195 | 0.05 | 0.06 | 0.06 | 0.148333 | 0.046667 | 0 | 0 | 0 | 0 | 0 | 0.063232 | 0.508631 | 1,738 | 47 | 80 | 36.978723 | 0.639344 | 0.028193 | 0 | 0.046512 | 0 | 0 | 0.065125 | 0.038344 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.023256 | null | null | 0.046512 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
c7f37cb48a0b968d9d5958251c1de5b084ea0654 | 1,472 | py | Python | preprocess.py | RothIdan/AGAIN-VC | 1d819d6c4c494811c439efb7f35ff0a2a16ebc9f | [
"MIT"
] | null | null | null | preprocess.py | RothIdan/AGAIN-VC | 1d819d6c4c494811c439efb7f35ff0a2a16ebc9f | [
"MIT"
] | null | null | null | preprocess.py | RothIdan/AGAIN-VC | 1d819d6c4c494811c439efb7f35ff0a2a16ebc9f | [
"MIT"
] | null | null | null | import os
import copy
import logging
import numpy as np
import pyworld as pw
# import resemblyzer
from glob import glob
from tqdm import tqdm
from functools import partial
from multiprocessing.pool import ThreadPool
from util.parser import get_parser
from util.config import Config
from util.dsp import Dsp
from prepro... | 27.773585 | 122 | 0.714674 | 196 | 1,472 | 5.178571 | 0.408163 | 0.044335 | 0.041379 | 0.039409 | 0.106404 | 0.106404 | 0.106404 | 0.106404 | 0.106404 | 0.106404 | 0 | 0.009083 | 0.17731 | 1,472 | 53 | 123 | 27.773585 | 0.829067 | 0.242527 | 0 | 0 | 0 | 0 | 0.104545 | 0.021818 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0 | 0.5 | 0 | 0.576923 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
c7f5f52ff07cdc1b81e6e05e966b0858850b4941 | 1,952 | py | Python | api/migrations/0001_initial.py | PHONGLEX/djangorestframework_omdb_api | f7cf335adf7b19f4cf762cfd3f453734e63aa380 | [
"MIT"
] | null | null | null | api/migrations/0001_initial.py | PHONGLEX/djangorestframework_omdb_api | f7cf335adf7b19f4cf762cfd3f453734e63aa380 | [
"MIT"
] | null | null | null | api/migrations/0001_initial.py | PHONGLEX/djangorestframework_omdb_api | f7cf335adf7b19f4cf762cfd3f453734e63aa380 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.13 on 2021-09-24 10:08
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Genre',
fields=[
... | 39.836735 | 153 | 0.529201 | 191 | 1,952 | 5.282723 | 0.413613 | 0.133796 | 0.124876 | 0.166501 | 0.210109 | 0.156591 | 0.156591 | 0.156591 | 0.156591 | 0.156591 | 0 | 0.035294 | 0.303279 | 1,952 | 48 | 154 | 40.666667 | 0.706618 | 0.023566 | 0 | 0.292683 | 1 | 0 | 0.139706 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.04878 | 0 | 0.146341 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1be243e9db64cc75bc71140a34cf6de7f097f45a | 205 | py | Python | python/test/sandbox.py | atvilagi/Kotzebue | 46a1f69534bfe92b5b40e6b815d6b62da9c510ee | [
"MIT"
] | null | null | null | python/test/sandbox.py | atvilagi/Kotzebue | 46a1f69534bfe92b5b40e6b815d6b62da9c510ee | [
"MIT"
] | null | null | null | python/test/sandbox.py | atvilagi/Kotzebue | 46a1f69534bfe92b5b40e6b815d6b62da9c510ee | [
"MIT"
] | 2 | 2021-07-13T18:46:40.000Z | 2021-07-16T21:24:18.000Z | # Projet: fuelmeter-tools
# Created by: # Created on: 12/3/2019
# Purpose : sandbox
from python.puma.PumaData import PumaData
if __name__ == '__main__':
myData = PumaData()
myData.puma2uni_nc()
| 20.5 | 41 | 0.702439 | 26 | 205 | 5.192308 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047619 | 0.180488 | 205 | 9 | 42 | 22.777778 | 0.755952 | 0.37561 | 0 | 0 | 0 | 0 | 0.065041 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1bed1589a364b9bdd68c0db72d3e0364d877f017 | 1,120 | py | Python | Python3/405.py | rakhi2001/ecom7 | 73790d44605fbd51e8f7e804b9808e364fcfc680 | [
"MIT"
] | 854 | 2018-11-09T08:06:16.000Z | 2022-03-31T06:05:53.000Z | Python3/405.py | rakhi2001/ecom7 | 73790d44605fbd51e8f7e804b9808e364fcfc680 | [
"MIT"
] | 29 | 2019-06-02T05:02:25.000Z | 2021-11-15T04:09:37.000Z | Python3/405.py | rakhi2001/ecom7 | 73790d44605fbd51e8f7e804b9808e364fcfc680 | [
"MIT"
] | 347 | 2018-12-23T01:57:37.000Z | 2022-03-12T14:51:21.000Z | __________________________________________________________________________________________________
sample 16 ms submission
class Solution:
def toHex(self, num: int) -> str:
if num == 0: return '0'
x = num.to_bytes(4, byteorder='big', signed=True).hex()
count = 0
for i in x:
... | 32.941176 | 98 | 0.5625 | 96 | 1,120 | 3.489583 | 0.4375 | 0.035821 | 0.137313 | 0.155224 | 0.262687 | 0.262687 | 0.262687 | 0.262687 | 0.262687 | 0 | 0 | 0.049931 | 0.35625 | 1,120 | 33 | 99 | 33.939394 | 0.414702 | 0 | 0 | 0.3125 | 0 | 0 | 0.007143 | 0 | 0 | 0 | 0.009821 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
1bf0ecd322366479e09c565e73530af23dbbdd0c | 10,884 | py | Python | py/m2lstr/dfa.py | mjansche/m2lstr | ef6b4cb10c45316a101c77efc17a9adc01c920df | [
"Apache-2.0"
] | null | null | null | py/m2lstr/dfa.py | mjansche/m2lstr | ef6b4cb10c45316a101c77efc17a9adc01c920df | [
"Apache-2.0"
] | null | null | null | py/m2lstr/dfa.py | mjansche/m2lstr | ef6b4cb10c45316a101c77efc17a9adc01c920df | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 the m2lstr Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable ... | 29.576087 | 78 | 0.637082 | 1,346 | 10,884 | 4.994799 | 0.154532 | 0.034211 | 0.024989 | 0.028559 | 0.406366 | 0.334672 | 0.228023 | 0.17983 | 0.154693 | 0.138034 | 0 | 0.001633 | 0.268467 | 10,884 | 367 | 79 | 29.656676 | 0.842753 | 0.141216 | 0 | 0.419753 | 0 | 0 | 0.002706 | 0 | 0 | 0 | 0 | 0.002725 | 0.020576 | 1 | 0.230453 | false | 0.012346 | 0.020576 | 0.098765 | 0.522634 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
1bf50208400a7390deb985edb9d5ad884dd8d79a | 271 | py | Python | ToOptix/FEMPy/ElementSet.py | joha2/ToOptixCore | 8ad17dcee349173a1b000c28de66e567ba2ad7a1 | [
"MIT"
] | null | null | null | ToOptix/FEMPy/ElementSet.py | joha2/ToOptixCore | 8ad17dcee349173a1b000c28de66e567ba2ad7a1 | [
"MIT"
] | null | null | null | ToOptix/FEMPy/ElementSet.py | joha2/ToOptixCore | 8ad17dcee349173a1b000c28de66e567ba2ad7a1 | [
"MIT"
] | null | null | null | from .Element import Element
class ElementSet(object):
def __init__(self, name, elements):
self.__name = name
self.__elements = elements
def get_name(self):
return self.__name
def get_elements(self):
return self.__elements
| 19.357143 | 39 | 0.656827 | 32 | 271 | 5.125 | 0.40625 | 0.146341 | 0.170732 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.265683 | 271 | 13 | 40 | 20.846154 | 0.824121 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.111111 | 0.222222 | 0.777778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
4002fdcafddf3c748bb0d3edf34679d873123d34 | 298 | py | Python | tests/testapp/app/database.py | gtmanfred/teststack | c7f671b45b81a036abcb21df6f1ef26c8a138e93 | [
"Apache-2.0"
] | 1 | 2021-11-09T18:44:40.000Z | 2021-11-09T18:44:40.000Z | tests/testapp/app/database.py | gtmanfred/teststack | c7f671b45b81a036abcb21df6f1ef26c8a138e93 | [
"Apache-2.0"
] | 2 | 2021-11-11T17:43:42.000Z | 2022-03-08T19:26:31.000Z | tests/testapp/app/database.py | gtmanfred/teststack | c7f671b45b81a036abcb21df6f1ef26c8a138e93 | [
"Apache-2.0"
] | null | null | null | import flask_sqlalchemy
class BaseModel(flask_sqlalchemy.Model):
def to_dict(self):
return {column.key: getattr(self, attr) for attr, column in self.__mapper__.c.items()}
db = flask_sqlalchemy.SQLAlchemy(
model_class=BaseModel,
session_options={'expire_on_commit': True},
)
| 22.923077 | 94 | 0.734899 | 39 | 298 | 5.307692 | 0.692308 | 0.217391 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.154362 | 298 | 12 | 95 | 24.833333 | 0.821429 | 0 | 0 | 0 | 0 | 0 | 0.053691 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0.125 | 0.5 | 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 | 1 | 0 | 0 | 0 | 2 |
4006ecb22283a37e80a4a2e797c3be3fe3d0f445 | 2,916 | py | Python | server/weather.py | gacbert/accent | a582f564aad20bd606f0c4040f03f972f6a5e74a | [
"Apache-2.0"
] | null | null | null | server/weather.py | gacbert/accent | a582f564aad20bd606f0c4040f03f972f6a5e74a | [
"Apache-2.0"
] | null | null | null | server/weather.py | gacbert/accent | a582f564aad20bd606f0c4040f03f972f6a5e74a | [
"Apache-2.0"
] | null | null | null | from astral import AstralError
from cachetools import cached
from cachetools import TTLCache
from json.decoder import JSONDecodeError
from logging import info
from requests import get
from requests import RequestException
from firestore import DataError
from firestore import Firestore
# The endpoint of the Forecast A... | 30.061856 | 79 | 0.633745 | 379 | 2,916 | 4.746702 | 0.263852 | 0.055586 | 0.094497 | 0.062257 | 0.252918 | 0.142857 | 0.142857 | 0.142857 | 0.045581 | 0 | 0 | 0.003726 | 0.263717 | 2,916 | 96 | 80 | 30.375 | 0.834187 | 0.250343 | 0 | 0.078431 | 0 | 0 | 0.071059 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.215686 | false | 0 | 0.176471 | 0 | 0.607843 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
400ded48993b6227a18c5aade83d3b93e16bfd14 | 18,425 | py | Python | CS116/a07-j4mai/a07-j4mai/GRADED_ASSIGNMENT.py | JohnMai1994/CS116-2018_Winter_Term | dc95e63b9b4ff853c0bb19432dbd09512d4740a1 | [
"MIT"
] | null | null | null | CS116/a07-j4mai/a07-j4mai/GRADED_ASSIGNMENT.py | JohnMai1994/CS116-2018_Winter_Term | dc95e63b9b4ff853c0bb19432dbd09512d4740a1 | [
"MIT"
] | null | null | null | CS116/a07-j4mai/a07-j4mai/GRADED_ASSIGNMENT.py | JohnMai1994/CS116-2018_Winter_Term | dc95e63b9b4ff853c0bb19432dbd09512d4740a1 | [
"MIT"
] | null | null | null | ASSIGNMENT 07
Student's Quest ID: j4mai
**** Testing Results **********************************************************
37/41 Total Mark
** Question 1: 6/6
** Question 2: 7/7
** Question 3: 12/16
** Question 4: 12/12
(Question 1, Test t01, 1 marks): Question 1a: Passed; passed.
(Question 1, Test t02, 1 marks)... | 36.127451 | 89 | 0.590176 | 3,136 | 18,425 | 3.426977 | 0.115753 | 0.111659 | 0.060017 | 0.075928 | 0.500977 | 0.427933 | 0.384572 | 0.313762 | 0.269005 | 0.250861 | 0 | 0.096158 | 0.207544 | 18,425 | 509 | 90 | 36.198428 | 0.639888 | 0.209498 | 0 | 0.282675 | 0 | 0.148936 | 0.085818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.136778 | 0.012158 | null | null | 0.024316 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
40138af6155fb87289b71d844039ca68b0c65ddb | 603 | py | Python | PasswordGeneration/main.py | CodesDope/python-pro-course-projects | 1c334ff70f38b7db4314826853a982b7dd89ead0 | [
"MIT"
] | null | null | null | PasswordGeneration/main.py | CodesDope/python-pro-course-projects | 1c334ff70f38b7db4314826853a982b7dd89ead0 | [
"MIT"
] | null | null | null | PasswordGeneration/main.py | CodesDope/python-pro-course-projects | 1c334ff70f38b7db4314826853a982b7dd89ead0 | [
"MIT"
] | null | null | null | import random
import string
upper_chars = string.ascii_uppercase
lower_chars = string.ascii_lowercase
digit_chars = string.digits
symbol_chars = string.punctuation
random_upper_chars = "".join(random.sample(upper_chars, 4))
random_lower_chars = "".join(random.sample(lower_chars, 4))
random_digit_chars = "".join(rando... | 28.714286 | 86 | 0.792703 | 85 | 603 | 5.258824 | 0.223529 | 0.111857 | 0.178971 | 0.187919 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007326 | 0.094527 | 603 | 20 | 87 | 30.15 | 0.811355 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.2 | 0.133333 | 0 | 0.133333 | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
4025e2c8c31a52a8b0c28309762b47738735f12a | 691 | py | Python | app/config.py | marwahaha/News-Highlight-7 | dd1f682985c02a489c48222d785ba42e37b5c33b | [
"MIT"
] | null | null | null | app/config.py | marwahaha/News-Highlight-7 | dd1f682985c02a489c48222d785ba42e37b5c33b | [
"MIT"
] | null | null | null | app/config.py | marwahaha/News-Highlight-7 | dd1f682985c02a489c48222d785ba42e37b5c33b | [
"MIT"
] | 1 | 2019-08-04T02:56:33.000Z | 2019-08-04T02:56:33.000Z | class Config:
'''
General configuration parent class
'''
NEWS_SOURCE_API_BASE_URL= 'https://newsapi.org/v2/sources?apiKey=2ac4f1aeb1c84eba9807e140b299880e'
NEWS_API_BASE_URL= 'https://newsapi.org/v2/everything?sources={}&apiKey={}'
NEWS_API_KEY ='2ac4f1aeb1c84eba9807e140b299880e'
class ProdCon... | 24.678571 | 102 | 0.706223 | 70 | 691 | 6.842857 | 0.442857 | 0.125261 | 0.041754 | 0.06263 | 0.496868 | 0.496868 | 0.496868 | 0.384134 | 0.384134 | 0.384134 | 0 | 0.07286 | 0.205499 | 691 | 28 | 103 | 24.678571 | 0.799636 | 0.409551 | 0 | 0 | 0 | 0 | 0.449568 | 0.092219 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.125 | 0 | 0 | 0.875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
40263c3637187617b55ef0266528b278589a7e05 | 57 | py | Python | pysqs_extended_client/__init__.py | danbernstein/boto3-sqs-extended-client-lib | 37c90d58a880167ea6b998c3db267541ef5ea89c | [
"Apache-2.0"
] | 19 | 2018-08-23T20:49:59.000Z | 2022-02-09T09:51:02.000Z | pysqs_extended_client/__init__.py | danbernstein/boto3-sqs-extended-client-lib | 37c90d58a880167ea6b998c3db267541ef5ea89c | [
"Apache-2.0"
] | 8 | 2019-06-20T19:36:27.000Z | 2021-08-18T06:39:03.000Z | pysqs_extended_client/__init__.py | danbernstein/boto3-sqs-extended-client-lib | 37c90d58a880167ea6b998c3db267541ef5ea89c | [
"Apache-2.0"
] | 19 | 2018-11-30T20:54:01.000Z | 2022-01-31T23:16:11.000Z | __title__ = "pysqs_client_extended"
__version__ = "0.0.1" | 28.5 | 35 | 0.77193 | 8 | 57 | 4.25 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.057692 | 0.087719 | 57 | 2 | 36 | 28.5 | 0.596154 | 0 | 0 | 0 | 0 | 0 | 0.448276 | 0.362069 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
402a8a541f68f3dac97c78061c7fa0ea4c9e3dc6 | 323 | py | Python | gcn_prot/models/__init__.py | carrascomj/gcn-prot | 21bdcc4a701a301b84c49784f84e6832bf5a74a4 | [
"MIT"
] | 2 | 2020-08-17T12:09:42.000Z | 2020-08-17T13:49:27.000Z | gcn_prot/models/__init__.py | carrascomj/gcn-prot | 21bdcc4a701a301b84c49784f84e6832bf5a74a4 | [
"MIT"
] | 14 | 2020-03-16T10:04:51.000Z | 2020-08-17T12:31:45.000Z | gcn_prot/models/__init__.py | carrascomj/gcn-prot | 21bdcc4a701a301b84c49784f84e6832bf5a74a4 | [
"MIT"
] | 2 | 2020-03-29T17:50:08.000Z | 2020-10-21T02:24:57.000Z | """Expose only the models."""
from .models import FFNN, GCN_normed, GCN_simple
from .train import fit_network, forward_step
from .utils import sparsize
from .validation import Validation
__all__ = [
"GCN_simple",
"GCN_normed",
"FFNN",
"fit_network",
"forward_step",
"sparsize",
"Validation",... | 20.1875 | 48 | 0.687307 | 39 | 323 | 5.384615 | 0.487179 | 0.085714 | 0.161905 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.195046 | 323 | 15 | 49 | 21.533333 | 0.807692 | 0.071207 | 0 | 0 | 0 | 0 | 0.221088 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.307692 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
403970a57c2b125f008b09f45e58b0b90d21d7ba | 532 | py | Python | common/helpers.py | sk364/prosfair | bb16dd19aee9804b0a1b239b00ff99e285d7fd96 | [
"MIT"
] | null | null | null | common/helpers.py | sk364/prosfair | bb16dd19aee9804b0a1b239b00ff99e285d7fd96 | [
"MIT"
] | null | null | null | common/helpers.py | sk364/prosfair | bb16dd19aee9804b0a1b239b00ff99e285d7fd96 | [
"MIT"
] | null | null | null | def get_chess_square(size, x, y):
"""
Returns the coordinates of the square block given mouse position `x` and `y`
"""
return (x // (size // 8), y // (size // 8))
def get_chess_square_reverse(size, x, y):
"""
Returns the coordinates of the start of the square block on the board given the block's
coordi... | 22.166667 | 89 | 0.62406 | 86 | 532 | 3.767442 | 0.290698 | 0.092593 | 0.101852 | 0.157407 | 0.580247 | 0.580247 | 0.580247 | 0.580247 | 0.481481 | 0.481481 | 0 | 0.019704 | 0.236842 | 532 | 23 | 90 | 23.130435 | 0.778325 | 0.430451 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
403fd4418bdec95d1ce580883f0fc96291d63066 | 384 | py | Python | tolqc-api/app/main/service/accession_type_dict.py | sanger-tol/tolqc | 6ef535a0eb0028c5d9270ff18d95d38c6656cbdd | [
"MIT"
] | null | null | null | tolqc-api/app/main/service/accession_type_dict.py | sanger-tol/tolqc | 6ef535a0eb0028c5d9270ff18d95d38c6656cbdd | [
"MIT"
] | null | null | null | tolqc-api/app/main/service/accession_type_dict.py | sanger-tol/tolqc | 6ef535a0eb0028c5d9270ff18d95d38c6656cbdd | [
"MIT"
] | null | null | null | # SPDX-FileCopyrightText: 2021 Genome Research Ltd.
#
# SPDX-License-Identifier: MIT
from main.model import TolqcAccessionTypeDict
from main.schema import AccessionTypeDictSchema
from .base import BaseService, setup_service
@setup_service
class AccessionTypeDictService(BaseService):
class Meta:
model = ... | 24 | 51 | 0.796875 | 37 | 384 | 8.216216 | 0.621622 | 0.052632 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01227 | 0.151042 | 384 | 15 | 52 | 25.6 | 0.920245 | 0.203125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
4045da94ea55ffb50ea5c98808c477fb6d036a74 | 863 | py | Python | tests/test_files.py | yullidias/AutomaticIronyDetection | 3297ddc4ecc97e840b00df4ba4f9e6b8e710fdb9 | [
"MIT"
] | null | null | null | tests/test_files.py | yullidias/AutomaticIronyDetection | 3297ddc4ecc97e840b00df4ba4f9e6b8e710fdb9 | [
"MIT"
] | 1 | 2020-12-05T14:22:03.000Z | 2020-12-05T14:22:03.000Z | tests/test_files.py | yullidias/AutomaticIronyDetection | 3297ddc4ecc97e840b00df4ba4f9e6b8e710fdb9 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import unittest
from src.utils.files import get_filename
from src.utils.files import remove_extension
class TestFiles(unittest.TestCase):
def test_get_filename(self):
self.assertEqual(get_filename('text', '.json'), "text.json")
self.assertEqual(get_filename('text.json', ... | 31.962963 | 77 | 0.636153 | 99 | 863 | 5.333333 | 0.292929 | 0.198864 | 0.159091 | 0.227273 | 0.653409 | 0.566288 | 0.337121 | 0.337121 | 0 | 0 | 0 | 0.001449 | 0.200464 | 863 | 26 | 78 | 33.192308 | 0.763768 | 0.024334 | 0 | 0 | 0 | 0 | 0.191667 | 0 | 0 | 0 | 0 | 0 | 0.411765 | 1 | 0.117647 | false | 0 | 0.176471 | 0 | 0.352941 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
405fd77071e2c37c376e60f0ea26d383d7f0a8a2 | 893 | py | Python | setup.py | amiralis/pyDH | b119eff1d9dce81e3f2a12402a5c6d1e8bc2fbf0 | [
"Apache-2.0"
] | 30 | 2017-03-29T14:02:26.000Z | 2021-12-31T17:36:17.000Z | setup.py | amiralis/pyDH | b119eff1d9dce81e3f2a12402a5c6d1e8bc2fbf0 | [
"Apache-2.0"
] | 4 | 2018-08-02T06:10:45.000Z | 2021-07-02T20:39:11.000Z | setup.py | amiralis/pyDH | b119eff1d9dce81e3f2a12402a5c6d1e8bc2fbf0 | [
"Apache-2.0"
] | 14 | 2017-10-25T07:06:12.000Z | 2021-11-01T17:38:54.000Z |
from setuptools import setup
with open("README.md", "r") as fh:
long_description = fh.read()
setup(
name = 'pyDH',
packages = ['pyDH'],
version = '0.1.6',
license = 'Apache',
description = 'Pure Python Implementation of Diffie-Hellman Key Exchange',
long_description=long_description,
long_descripti... | 30.793103 | 76 | 0.646137 | 101 | 893 | 5.643564 | 0.623762 | 0.166667 | 0.219298 | 0.182456 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018182 | 0.199328 | 893 | 28 | 77 | 31.892857 | 0.779021 | 0 | 0 | 0 | 0 | 0 | 0.523543 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.04 | 0 | 0.04 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
406a63dc29a2c49fceab06041812957cb7f8b266 | 1,291 | py | Python | src/sales/migrations/0005_auto_20190904_1720.py | vladimirtkach/yesjob | 83800f4d29bf2dab30b14fc219d3150e3bc51e15 | [
"MIT"
] | null | null | null | src/sales/migrations/0005_auto_20190904_1720.py | vladimirtkach/yesjob | 83800f4d29bf2dab30b14fc219d3150e3bc51e15 | [
"MIT"
] | 18 | 2020-02-12T00:41:40.000Z | 2022-02-10T12:00:03.000Z | src/sales/migrations/0005_auto_20190904_1720.py | vladimirtkach/yesjob | 83800f4d29bf2dab30b14fc219d3150e3bc51e15 | [
"MIT"
] | null | null | null | # Generated by Django 2.2 on 2019-09-04 17:20
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('sales', '0004_auto_20190904_1712'),
]
operations = [
migrations.AlterField(
model_name='contact',
name='city',
... | 33.102564 | 179 | 0.58017 | 126 | 1,291 | 5.809524 | 0.452381 | 0.136612 | 0.170765 | 0.198087 | 0.521858 | 0.48224 | 0.198087 | 0.198087 | 0.142077 | 0.142077 | 0 | 0.048335 | 0.278854 | 1,291 | 38 | 180 | 33.973684 | 0.737916 | 0.033308 | 0 | 0.46875 | 1 | 0 | 0.167737 | 0.018459 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.03125 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
4074c284f707d23cdd4ddf9ffa401dc916d84f25 | 1,141 | py | Python | UserProfiles/migrations/0008_auto_20180812_2240.py | Milo-Goodfellow-Work/GuildsDevelopmentBuild | 96b384a4b2a3f5a6e930d6bfb4a3a98c73ba4da1 | [
"MIT"
] | null | null | null | UserProfiles/migrations/0008_auto_20180812_2240.py | Milo-Goodfellow-Work/GuildsDevelopmentBuild | 96b384a4b2a3f5a6e930d6bfb4a3a98c73ba4da1 | [
"MIT"
] | null | null | null | UserProfiles/migrations/0008_auto_20180812_2240.py | Milo-Goodfellow-Work/GuildsDevelopmentBuild | 96b384a4b2a3f5a6e930d6bfb4a3a98c73ba4da1 | [
"MIT"
] | null | null | null | # Generated by Django 2.0.7 on 2018-08-12 22:40
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('UserProfiles', '0007_auto_20180812_2238'),
]
operations = [
migrations.AlterField(
model_name='userprofilemodel',
na... | 33.558824 | 134 | 0.626643 | 107 | 1,141 | 6.579439 | 0.476636 | 0.113636 | 0.142045 | 0.164773 | 0.528409 | 0.528409 | 0.389205 | 0.389205 | 0.227273 | 0.227273 | 0 | 0.042403 | 0.255916 | 1,141 | 33 | 135 | 34.575758 | 0.786808 | 0.039439 | 0 | 0.444444 | 1 | 0 | 0.234918 | 0.082267 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.037037 | 0 | 0.148148 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
408478ecabcf085fa3bed3f3933a2f6bd355edf5 | 1,906 | py | Python | onmt/modules/Bottle.py | esalesky/NMTGMinor | b6eafff21f5aabb874720e6df30cd6b91c339a7c | [
"MIT"
] | 1 | 2020-05-22T21:40:42.000Z | 2020-05-22T21:40:42.000Z | onmt/modules/Bottle.py | esalesky/NMTGMinor | b6eafff21f5aabb874720e6df30cd6b91c339a7c | [
"MIT"
] | null | null | null | onmt/modules/Bottle.py | esalesky/NMTGMinor | b6eafff21f5aabb874720e6df30cd6b91c339a7c | [
"MIT"
] | 1 | 2020-12-13T07:41:33.000Z | 2020-12-13T07:41:33.000Z | import math
import torch
import torch.nn as nn
from torch.autograd import Variable
"""
Class Bottle:
When working with masked tensors, bottles extract the "true" tensors
using masks to avoid unnecessary computation
"""
class Bottle(nn.Module):
def __init__(self, function):
super(Bottle, sel... | 31.766667 | 120 | 0.598636 | 221 | 1,906 | 4.972851 | 0.411765 | 0.063694 | 0.035487 | 0.020018 | 0.027298 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009091 | 0.30745 | 1,906 | 59 | 121 | 32.305085 | 0.823485 | 0.564533 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
4085987041cfc75e1c6a289b6e05701969384f0b | 30,264 | py | Python | stage/test_mongodb_stages.py | anubandhan/datacollector-tests | 301c024c66d68353735256b262b681dd05ba16cc | [
"Apache-2.0"
] | null | null | null | stage/test_mongodb_stages.py | anubandhan/datacollector-tests | 301c024c66d68353735256b262b681dd05ba16cc | [
"Apache-2.0"
] | 1 | 2019-04-24T11:06:38.000Z | 2019-04-24T11:06:38.000Z | stage/test_mongodb_stages.py | anubandhan/datacollector-tests | 301c024c66d68353735256b262b681dd05ba16cc | [
"Apache-2.0"
] | 2 | 2019-05-24T06:34:37.000Z | 2020-03-30T11:48:18.000Z | # Copyright 2017 StreamSets Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writi... | 45.716012 | 122 | 0.68679 | 3,658 | 30,264 | 5.43111 | 0.103609 | 0.055117 | 0.036241 | 0.033573 | 0.744249 | 0.723209 | 0.69175 | 0.667791 | 0.658026 | 0.651281 | 0 | 0.007942 | 0.226176 | 30,264 | 661 | 123 | 45.785174 | 0.840386 | 0.222079 | 0 | 0.6325 | 0 | 0 | 0.098214 | 0.009234 | 0 | 0 | 0 | 0 | 0.065 | 1 | 0.0275 | false | 0 | 0.025 | 0 | 0.0525 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
408c93b0a0658afd84aa98079406bd4c287d9322 | 11,307 | py | Python | forge/cli.py | danhodos/forge | d501be4571dcef5691804c7db7008ee877933c8d | [
"Apache-2.0"
] | 438 | 2017-05-25T19:42:11.000Z | 2022-03-27T06:41:04.000Z | forge/cli.py | macduff23/forge | d501be4571dcef5691804c7db7008ee877933c8d | [
"Apache-2.0"
] | 153 | 2017-05-24T18:36:38.000Z | 2020-04-28T16:57:04.000Z | forge/cli.py | macduff23/forge | d501be4571dcef5691804c7db7008ee877933c8d | [
"Apache-2.0"
] | 48 | 2017-05-23T22:47:08.000Z | 2022-03-28T19:53:23.000Z | # Copyright 2017 datawire. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agr... | 29.912698 | 113 | 0.673123 | 1,507 | 11,307 | 4.984738 | 0.240212 | 0.017572 | 0.021299 | 0.025293 | 0.148163 | 0.107961 | 0.075745 | 0.07082 | 0.048456 | 0.048456 | 0 | 0.00331 | 0.225082 | 11,307 | 377 | 114 | 29.992042 | 0.854029 | 0.055718 | 0 | 0.240838 | 0 | 0 | 0.122705 | 0.003135 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.068063 | 0.062827 | null | null | 0.020942 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
409594e0c111ed1f5c4d4eb20c7724cd3d90e778 | 3,135 | py | Python | desktop/core/src/desktop/lib/paths.py | FrommyMind/hue | 60a2df13da71bed656adbf61269ab841e2370ed4 | [
"Apache-2.0"
] | 2 | 2020-02-02T15:22:13.000Z | 2020-07-29T15:25:44.000Z | desktop/core/src/desktop/lib/paths.py | FrommyMind/hue | 60a2df13da71bed656adbf61269ab841e2370ed4 | [
"Apache-2.0"
] | 7 | 2019-11-28T21:48:38.000Z | 2020-08-02T18:06:40.000Z | desktop/core/src/desktop/lib/paths.py | FrommyMind/hue | 60a2df13da71bed656adbf61269ab841e2370ed4 | [
"Apache-2.0"
] | 6 | 2020-05-29T21:46:30.000Z | 2020-12-15T20:32:19.000Z | #!/usr/bin/env python
# Licensed to Cloudera, Inc. under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. Cloudera, Inc. licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you ma... | 28.5 | 103 | 0.664115 | 411 | 3,135 | 4.878346 | 0.377129 | 0.026933 | 0.03591 | 0.049875 | 0.148628 | 0.110224 | 0.06384 | 0.06384 | 0.06384 | 0.06384 | 0 | 0.002044 | 0.219777 | 3,135 | 109 | 104 | 28.761468 | 0.817661 | 0.423604 | 0 | 0 | 0 | 0 | 0.057055 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.28125 | false | 0 | 0.0625 | 0.03125 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
4095a2364980ce6e7d9f2254c3040e587d14cbe7 | 158 | py | Python | notebook-widget/gamchanger/__init__.py | interpretml/GAMChanger | 29c8f6b029a5c2446df611e3e580892718370232 | [
"MIT"
] | 4 | 2021-12-03T01:27:35.000Z | 2021-12-03T05:56:51.000Z | notebook-widget/gamchanger/__init__.py | interpretml/GAMChanger | 29c8f6b029a5c2446df611e3e580892718370232 | [
"MIT"
] | null | null | null | notebook-widget/gamchanger/__init__.py | interpretml/GAMChanger | 29c8f6b029a5c2446df611e3e580892718370232 | [
"MIT"
] | null | null | null | """Top-level package for gamchanger."""
__author__ = """Jay Wang"""
__email__ = 'jayw@zijie.wang'
__version__ = '0.1.5'
from gamchanger.gamchanger import *
| 19.75 | 39 | 0.702532 | 20 | 158 | 4.95 | 0.85 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021739 | 0.126582 | 158 | 7 | 40 | 22.571429 | 0.695652 | 0.208861 | 0 | 0 | 0 | 0 | 0.235294 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
409be4b830ae53259bf19af5acf6128f74956b5d | 1,629 | py | Python | twdl/Stream.py | MrDmitry/twdl | 619e75c411c098e908d95de3084f71612fd6938c | [
"MIT"
] | 2 | 2021-03-09T12:36:10.000Z | 2021-12-29T01:08:31.000Z | twdl/Stream.py | dsodintsov/twdl | 619e75c411c098e908d95de3084f71612fd6938c | [
"MIT"
] | null | null | null | twdl/Stream.py | dsodintsov/twdl | 619e75c411c098e908d95de3084f71612fd6938c | [
"MIT"
] | null | null | null | # Copyright (c) 2018 by Dmitry Odintsov
# This code is licensed under the MIT license (MIT)
# (http://opensource.org/licenses/MIT)
# Stream class module
import os
from datetime import datetime
from . import Utils
class Stream():
""" Object containing information about active stream """
def __init__(self, ... | 37.883721 | 143 | 0.666053 | 246 | 1,629 | 4.191057 | 0.308943 | 0.130941 | 0.063046 | 0.037827 | 0.235694 | 0.129001 | 0.078565 | 0 | 0 | 0 | 0 | 0.004702 | 0.216697 | 1,629 | 42 | 144 | 38.785714 | 0.803292 | 0.120319 | 0 | 0 | 0 | 0 | 0.068166 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.12 | 0.16 | 0.52 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
40a70493a114ab9946c8216922f16748ca69c31c | 2,760 | py | Python | linda/graphdb/queries.py | cbotsikas/LindaWorkbench | b2bfa091fb4ec80ac35b3f68edf46780c1e9ffea | [
"MIT"
] | 18 | 2015-01-28T14:18:07.000Z | 2019-01-24T15:21:51.000Z | linda/graphdb/queries.py | alanponce/LindaWorkbench | 6a67c23237be2f78a991b96bfb62e8e214b47b32 | [
"MIT"
] | 194 | 2015-01-04T15:09:40.000Z | 2016-10-04T09:31:59.000Z | linda/graphdb/queries.py | alanponce/LindaWorkbench | 6a67c23237be2f78a991b96bfb62e8e214b47b32 | [
"MIT"
] | 4 | 2015-11-27T10:43:52.000Z | 2021-01-28T12:07:54.000Z | __author__ = 'mpetyx'
SPECIFIC_VOCABULARY = """
PREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX xsd:<http://www.w3.org/2001/XMLSchema#>
PREFIX dcterms:<http://purl.org/dc/terms/>
PREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#>
PREFIX owl:<http://www.w3.org/2002/07/owl#>
PREFIX skos:<http://www.w3.o... | 34.5 | 106 | 0.727536 | 356 | 2,760 | 5.606742 | 0.244382 | 0.03507 | 0.04509 | 0.06012 | 0.475952 | 0.475952 | 0.446894 | 0.446894 | 0.446894 | 0.446894 | 0 | 0.043337 | 0.105435 | 2,760 | 80 | 107 | 34.5 | 0.765087 | 0 | 0 | 0.537313 | 0 | 0.029851 | 0.798262 | 0.123506 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.029851 | null | null | 0.014925 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
40b76647cf429827c8747acb0c22ee79e4c688e1 | 1,560 | py | Python | src/metrics.py | akensert/autoencoder-chromatogram-enhancement | 9aeead5ba33bd97711c4de27841e9827f326b575 | [
"MIT"
] | 3 | 2021-07-04T13:47:52.000Z | 2021-07-23T01:40:34.000Z | src/metrics.py | akensert/autoencoder-chromatogram-enhancement | 9aeead5ba33bd97711c4de27841e9827f326b575 | [
"MIT"
] | null | null | null | src/metrics.py | akensert/autoencoder-chromatogram-enhancement | 9aeead5ba33bd97711c4de27841e9827f326b575 | [
"MIT"
] | 1 | 2022-02-15T07:54:04.000Z | 2022-02-15T07:54:04.000Z | import numpy as np
import scipy.signal
def mean_relative_error(y, x):
return np.mean(np.absolute(y - x) / (1 + np.absolute(y)))
def mean_absolute_error(y, x):
return np.mean(np.absolute(y - x))
def mean_squared_error(y, x):
return np.mean(np.square(y - x))
def root_mean_squared_error(y, x):
return ... | 28.888889 | 79 | 0.637821 | 263 | 1,560 | 3.547529 | 0.250951 | 0.036442 | 0.137192 | 0.109325 | 0.464094 | 0.424437 | 0.289389 | 0.160772 | 0.160772 | 0.160772 | 0 | 0.018961 | 0.222436 | 1,560 | 53 | 80 | 29.433962 | 0.750206 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.209302 | false | 0 | 0.046512 | 0.116279 | 0.465116 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
40c57507b95509dd0372cf74bb3642fa526e5e97 | 963 | py | Python | test/test_trix_parse.py | MarkHuisjes/RDFOWLtyping | c5849501bd76ee60e3ea02632990e3b8eaee6365 | [
"BSD-3-Clause"
] | 1 | 2017-04-05T16:11:54.000Z | 2017-04-05T16:11:54.000Z | test/test_trix_parse.py | MarkHuisjes/RDFOWLtyping | c5849501bd76ee60e3ea02632990e3b8eaee6365 | [
"BSD-3-Clause"
] | null | null | null | test/test_trix_parse.py | MarkHuisjes/RDFOWLtyping | c5849501bd76ee60e3ea02632990e3b8eaee6365 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
from rdflib.graph import ConjunctiveGraph
import unittest
class TestTrixParse(unittest.TestCase):
def setUp(self):
pass
def tearDown(self):
pass
def testAperture(self):
g=ConjunctiveGraph()
g.parse("test/trix/aperture.trix",format="trix")
... | 19.653061 | 61 | 0.555556 | 108 | 963 | 4.87037 | 0.435185 | 0.028517 | 0.119772 | 0.125475 | 0.340304 | 0.340304 | 0.340304 | 0.140684 | 0.140684 | 0 | 0 | 0.007541 | 0.311526 | 963 | 48 | 62 | 20.0625 | 0.785822 | 0.140187 | 0 | 0.227273 | 0 | 0 | 0.114216 | 0.089915 | 0 | 0 | 0 | 0 | 0.090909 | 1 | 0.227273 | false | 0.090909 | 0.090909 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
40d0e4bc9e49fb4a13ed5c40f7125f271e71115b | 1,374 | py | Python | MidTemLabSol/CB2.py | knrastogi/PythonPrograms | b9eac94f6cfd4334a6b7f5715e93c71d6f6f716c | [
"Apache-2.0"
] | 1 | 2019-09-17T20:49:55.000Z | 2019-09-17T20:49:55.000Z | MidTemLabSol/CB2.py | knrastogi/PythonPrograms | b9eac94f6cfd4334a6b7f5715e93c71d6f6f716c | [
"Apache-2.0"
] | null | null | null | MidTemLabSol/CB2.py | knrastogi/PythonPrograms | b9eac94f6cfd4334a6b7f5715e93c71d6f6f716c | [
"Apache-2.0"
] | null | null | null | ##Q2. Momentum is calculated as e=mc2., where m is the mass of the object and c is its velocity. Write a program that accepts an object’s mass (in KG)
#and velocity (in Meters per sec) and displays its momentum.
######################################################################################################... | 59.73913 | 151 | 0.290393 | 101 | 1,374 | 3.950495 | 0.544554 | 0.052632 | 0.067669 | 0.090226 | 0.195489 | 0.150376 | 0.150376 | 0.150376 | 0 | 0 | 0 | 0.025735 | 0.406114 | 1,374 | 22 | 152 | 62.454545 | 0.463235 | 0.465066 | 0 | 0.25 | 0 | 0 | 0.529101 | 0.26455 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
40dab1686a2c4fd8ec5ab875871309cfa5acbd03 | 13,394 | py | Python | pysnmp/Wellfleet-BOT-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 11 | 2021-02-02T16:27:16.000Z | 2021-08-31T06:22:49.000Z | pysnmp/Wellfleet-BOT-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 75 | 2021-02-24T17:30:31.000Z | 2021-12-08T00:01:18.000Z | pysnmp/Wellfleet-BOT-MIB.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module Wellfleet-BOT-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/Wellfleet-BOT-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 21:32:53 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Ma... | 144.021505 | 1,630 | 0.76594 | 1,467 | 13,394 | 6.993183 | 0.115201 | 0.014914 | 0.011405 | 0.015206 | 0.49693 | 0.433668 | 0.41544 | 0.405693 | 0.352861 | 0.345063 | 0 | 0.068301 | 0.074138 | 13,394 | 92 | 1,631 | 145.586957 | 0.758971 | 0.024489 | 0 | 0 | 0 | 0 | 0.146358 | 0.016696 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.082353 | 0 | 0.082353 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
40f13168a732ce9c4836305f3c41fdbc34b8bed9 | 643 | py | Python | snotrocket/snotrocket_sync.py | nibalizer/galileo | f5d100adcfaa238d98ec2df93040eafc4d9e7420 | [
"Apache-2.0"
] | 1 | 2015-01-11T04:32:57.000Z | 2015-01-11T04:32:57.000Z | snotrocket/snotrocket_sync.py | nibalizer/galileo | f5d100adcfaa238d98ec2df93040eafc4d9e7420 | [
"Apache-2.0"
] | 1 | 2015-01-12T01:17:07.000Z | 2015-01-12T01:17:07.000Z | snotrocket/snotrocket_sync.py | nibalizer/galileo | f5d100adcfaa238d98ec2df93040eafc4d9e7420 | [
"Apache-2.0"
] | 2 | 2015-01-17T00:52:39.000Z | 2017-09-09T05:42:18.000Z | #!/usr/bin/python
# application to follow the snot log and refresh the snotrocket
# cache as necessary
# doesn't return, must be run as a daemon
from elasticsearch import Elasticsearch
import tailer
from snotrocket_populate import import_ticket
import snotparser.snotparser as sp
snot_log = '/u/snot/test/logs/log'
... | 22.172414 | 66 | 0.754277 | 96 | 643 | 4.927083 | 0.53125 | 0.073996 | 0.054968 | 0.067653 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003704 | 0.160187 | 643 | 28 | 67 | 22.964286 | 0.872222 | 0.304821 | 0 | 0 | 0 | 0 | 0.143836 | 0.047945 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.416667 | 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 | 1 | 0 | 0 | 0 | 0 | 2 |
40f4e977f81a0c5f2af3a8a533a1346aac55bd69 | 7,134 | py | Python | designate/tests/test_api/test_v2/test_import_export.py | ISCAS-VDI/designate-base | bd945607e3345fbef8645c3441e96b032b70b098 | [
"Apache-2.0"
] | null | null | null | designate/tests/test_api/test_v2/test_import_export.py | ISCAS-VDI/designate-base | bd945607e3345fbef8645c3441e96b032b70b098 | [
"Apache-2.0"
] | null | null | null | designate/tests/test_api/test_v2/test_import_export.py | ISCAS-VDI/designate-base | bd945607e3345fbef8645c3441e96b032b70b098 | [
"Apache-2.0"
] | 1 | 2019-11-16T10:55:49.000Z | 2019-11-16T10:55:49.000Z | # COPYRIGHT 2015 Hewlett-Packard Development Company, L.P.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicabl... | 40.534091 | 78 | 0.654331 | 841 | 7,134 | 5.414982 | 0.256837 | 0.047431 | 0.055336 | 0.041502 | 0.464646 | 0.406236 | 0.406236 | 0.379886 | 0.367369 | 0.344971 | 0 | 0.006444 | 0.238716 | 7,134 | 175 | 79 | 40.765714 | 0.832075 | 0.183488 | 0 | 0.4 | 0 | 0 | 0.154896 | 0.020031 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0.085714 | false | 0 | 0.409524 | 0 | 0.504762 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
40f8b6e6302f355867a9bb762178e75dd084172b | 185 | py | Python | prime.py | dachuanz/python3 | f5618d0113b14cf7b52cf58f6d7f7d4b218a1792 | [
"Apache-2.0"
] | null | null | null | prime.py | dachuanz/python3 | f5618d0113b14cf7b52cf58f6d7f7d4b218a1792 | [
"Apache-2.0"
] | null | null | null | prime.py | dachuanz/python3 | f5618d0113b14cf7b52cf58f6d7f7d4b218a1792 | [
"Apache-2.0"
] | null | null | null | import math
def isprime(num):
count = int(math.sqrt(num))
while count>1:
if num % count == 0:
return False
count -= 1
else:
return True
| 18.5 | 31 | 0.513514 | 24 | 185 | 3.958333 | 0.666667 | 0.168421 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026549 | 0.389189 | 185 | 9 | 32 | 20.555556 | 0.814159 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0 | 0.444444 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
dc02877bfbf041ebab9ca463c7bffe63066b9722 | 225 | py | Python | python_modules/dagster/dagster_tests/cli_tests/workspace_tests/autodiscovery_tests/double_asset_collection.py | souterjk/dagster | 8b744a4959bb04ff9587cfee82a796404fcbc89e | [
"Apache-2.0"
] | null | null | null | python_modules/dagster/dagster_tests/cli_tests/workspace_tests/autodiscovery_tests/double_asset_collection.py | souterjk/dagster | 8b744a4959bb04ff9587cfee82a796404fcbc89e | [
"Apache-2.0"
] | null | null | null | python_modules/dagster/dagster_tests/cli_tests/workspace_tests/autodiscovery_tests/double_asset_collection.py | souterjk/dagster | 8b744a4959bb04ff9587cfee82a796404fcbc89e | [
"Apache-2.0"
] | null | null | null | from dagster import asset
from dagster.core.asset_defs.asset_collection import AssetCollection
@asset
def asset1():
pass
@asset
def asset2():
pass
ac1 = AssetCollection([asset1])
ac2 = AssetCollection([asset2])
| 13.235294 | 68 | 0.746667 | 27 | 225 | 6.148148 | 0.518519 | 0.13253 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031746 | 0.16 | 225 | 16 | 69 | 14.0625 | 0.846561 | 0 | 0 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.2 | 0.2 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
904d525d5e5e414037a6684798491604d7f552b2 | 189 | py | Python | subscripts/image_resize.py | connorfirth/fastdepth-webcam | c5a021cc83755b8d9363d882c1c86118719cce3a | [
"MIT"
] | null | null | null | subscripts/image_resize.py | connorfirth/fastdepth-webcam | c5a021cc83755b8d9363d882c1c86118719cce3a | [
"MIT"
] | null | null | null | subscripts/image_resize.py | connorfirth/fastdepth-webcam | c5a021cc83755b8d9363d882c1c86118719cce3a | [
"MIT"
] | null | null | null | import cv2
from PIL import Image
frame = cv2.imread('stock_hallway.jpg')
img_input = Image.fromarray(frame)
image = img_input.resize((224,224),Image.ANTIALIAS)
image.save('resize.jpg')
| 17.181818 | 51 | 0.756614 | 29 | 189 | 4.827586 | 0.586207 | 0.114286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047337 | 0.10582 | 189 | 10 | 52 | 18.9 | 0.781065 | 0 | 0 | 0 | 0 | 0 | 0.143617 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
905793bdbdc2486522255aefde1aeda67b676718 | 1,134 | py | Python | ezstruct/byte_order.py | matthewg/EzStruct | 5ae842354171997311fb68ad55b8d1a9440beb99 | [
"Apache-2.0"
] | null | null | null | ezstruct/byte_order.py | matthewg/EzStruct | 5ae842354171997311fb68ad55b8d1a9440beb99 | [
"Apache-2.0"
] | null | null | null | ezstruct/byte_order.py | matthewg/EzStruct | 5ae842354171997311fb68ad55b8d1a9440beb99 | [
"Apache-2.0"
] | null | null | null | """
Values for a structure's byte ordering. Possible values:
``"NATIVE_ENDIAN"``
Host byte ordering.
``"LITTLE_ENDIAN"``
Little-endian, e.g. the 2-byte number ``"\\x00\\x01"`` is ``1``.
``"BIG_ENDIAN"``
Big-endian, e.g. the 2-byte number ``"\\x01\\x00"`` is ``1``.
``"NET_ENDIAN"``
Network byte order, i.e. ... | 23.142857 | 74 | 0.644621 | 153 | 1,134 | 4.48366 | 0.405229 | 0.065598 | 0.099125 | 0.03207 | 0.06414 | 0.06414 | 0.06414 | 0 | 0 | 0 | 0 | 0.01413 | 0.188713 | 1,134 | 48 | 75 | 23.625 | 0.731522 | 0.407407 | 0 | 0 | 0 | 0 | 0.075385 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.263158 | false | 0 | 0 | 0.105263 | 0.473684 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
907781c0d1000df8e674418fd09446c9eb6ffe16 | 3,377 | py | Python | qiskit/opflow/evolutions/__init__.py | Roshan-Thomas/qiskit-terra | 77219b5c7b7146b1545c5e5190739b36f4064b2f | [
"Apache-2.0"
] | 1,599 | 2018-07-10T10:59:12.000Z | 2022-03-31T23:56:25.000Z | qiskit/opflow/evolutions/__init__.py | Roshan-Thomas/qiskit-terra | 77219b5c7b7146b1545c5e5190739b36f4064b2f | [
"Apache-2.0"
] | 5,244 | 2018-07-10T06:20:13.000Z | 2022-03-31T22:18:48.000Z | qiskit/opflow/evolutions/__init__.py | Roshan-Thomas/qiskit-terra | 77219b5c7b7146b1545c5e5190739b36f4064b2f | [
"Apache-2.0"
] | 1,409 | 2018-07-10T02:16:12.000Z | 2022-03-31T09:01:32.000Z | # This code is part of Qiskit.
#
# (C) Copyright IBM 2020.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivative wo... | 33.435644 | 95 | 0.753924 | 413 | 3,377 | 6.099274 | 0.474576 | 0.023819 | 0.027392 | 0.036919 | 0.18023 | 0.111155 | 0.080985 | 0.080985 | 0.080985 | 0.080985 | 0 | 0.002778 | 0.147172 | 3,377 | 100 | 96 | 33.77 | 0.871875 | 0.8244 | 0 | 0 | 0 | 0 | 0.231173 | 0.073555 | 0 | 0 | 0 | 0.01 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
9081d8bfa43472b5dc4d8093fe875fd36825eca2 | 239 | py | Python | tests/mock_path_builder.py | lcameron05/PCWG | 8ae8ea7d644aa5bec0d1651101d83d8f17994f4b | [
"MIT"
] | 14 | 2015-01-15T12:40:51.000Z | 2019-06-14T16:10:08.000Z | tests/mock_path_builder.py | lzhiwen3090/PCWG | 795e3ea267c7b87187dce04721c91a9d9c7999a7 | [
"MIT"
] | 121 | 2015-01-06T11:31:25.000Z | 2018-05-29T21:13:23.000Z | tests/mock_path_builder.py | lzhiwen3090/PCWG | 795e3ea267c7b87187dce04721c91a9d9c7999a7 | [
"MIT"
] | 26 | 2015-01-15T12:41:09.000Z | 2019-04-11T14:45:32.000Z | import os
from pcwg.core.path_builder import StandardPathBuilder
FILE_DIR = os.path.dirname(os.path.abspath(__file__))
class MockPathBuilder(StandardPathBuilder):
def get_base_folder(self):
return os.path.dirname(FILE_DIR)
| 21.727273 | 54 | 0.782427 | 32 | 239 | 5.5625 | 0.625 | 0.101124 | 0.146067 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.129707 | 239 | 10 | 55 | 23.9 | 0.855769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0.166667 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 2 |
90879667c134089d8444c6bb83133bcdffe3e402 | 597 | py | Python | Metadata/user_create.py | wimgielis/tm1py-samples | 6f21b3aa7aeb6f558e4d8ef7e6118978e391cec9 | [
"MIT"
] | 36 | 2019-04-04T04:19:17.000Z | 2022-03-24T20:04:07.000Z | Metadata/user_create.py | wimgielis/tm1py-samples | 6f21b3aa7aeb6f558e4d8ef7e6118978e391cec9 | [
"MIT"
] | 46 | 2019-02-11T03:19:42.000Z | 2022-03-18T19:33:36.000Z | Metadata/user_create.py | wimgielis/tm1py-samples | 6f21b3aa7aeb6f558e4d8ef7e6118978e391cec9 | [
"MIT"
] | 27 | 2019-02-13T15:30:54.000Z | 2022-01-06T00:51:10.000Z | """
Create a new user
"""
import configparser
from TM1py.Objects import User
from TM1py.Services import TM1Service
config = configparser.ConfigParser()
# storing the credentials in a file is not recommended for purposes other than testing.
# it's better to setup CAM with SSO or use keyring to store credentials in the... | 33.166667 | 114 | 0.760469 | 86 | 597 | 5.232558 | 0.697674 | 0.04 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017408 | 0.134003 | 597 | 17 | 115 | 35.117647 | 0.852998 | 0.425461 | 0 | 0 | 0 | 0 | 0.141141 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.125 | 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 | 1 | 1 | 0 | 0 | 0 | 0 | 2 |
909ef43a13566e555d8b55137e351c579c3432df | 38,637 | py | Python | Kekik_bot_service.py | hodan121/google_spreadsheets | e957e566afeab36e129ecf1f237f1dc384b871ee | [
"MIT"
] | null | null | null | Kekik_bot_service.py | hodan121/google_spreadsheets | e957e566afeab36e129ecf1f237f1dc384b871ee | [
"MIT"
] | null | null | null | Kekik_bot_service.py | hodan121/google_spreadsheets | e957e566afeab36e129ecf1f237f1dc384b871ee | [
"MIT"
] | null | null | null | from google.oauth2 import service_account
from googleapiclient.discovery import build
import datetime
def check_disk():
"""
Смотрим файлы на диске
:return: Объект drive
"""
return service_for_drive.files().list(pageSize=10,
fields="nextPageToken, files(id,... | 59.717156 | 158 | 0.557238 | 3,917 | 38,637 | 5.292571 | 0.170283 | 0.174135 | 0.223241 | 0.172206 | 0.649462 | 0.565096 | 0.477015 | 0.329458 | 0.271622 | 0.259611 | 0 | 0.038041 | 0.30331 | 38,637 | 646 | 159 | 59.809598 | 0.732112 | 0.035355 | 0 | 0.30192 | 0 | 0 | 0.178586 | 0.047695 | 0 | 0 | 0 | 0.001548 | 0 | 1 | 0.038394 | false | 0 | 0.005236 | 0 | 0.055846 | 0.00349 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
90ada2ee8da88f8ddc399f66c444279d7073e3b0 | 163 | py | Python | figures/lookup1a.py | brandon-rhodes/pycon2010-mighty-dictionary | 1f75fdd42cd243c9f86a87f7b48f6b3498d032e8 | [
"MIT"
] | 22 | 2015-05-10T10:32:47.000Z | 2021-08-21T17:29:09.000Z | figures/lookup1a.py | brandon-rhodes/pycon2010-mighty-dictionary | 1f75fdd42cd243c9f86a87f7b48f6b3498d032e8 | [
"MIT"
] | 2 | 2016-05-06T20:09:17.000Z | 2020-01-23T02:29:18.000Z | figures/lookup1a.py | brandon-rhodes/pycon2010-mighty-dictionary | 1f75fdd42cd243c9f86a87f7b48f6b3498d032e8 | [
"MIT"
] | 4 | 2016-04-17T23:38:11.000Z | 2019-03-06T02:28:48.000Z | import _dictdraw, sys
d = {'ftp': 21, 'ssh': 22, 'smtp': 25, 'time': 37, 'www': 80}
surface = _dictdraw.draw_dictionary(d, [4])
surface.write_to_png(sys.argv[1])
| 27.166667 | 61 | 0.650307 | 27 | 163 | 3.740741 | 0.851852 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.084507 | 0.128834 | 163 | 5 | 62 | 32.6 | 0.626761 | 0 | 0 | 0 | 0 | 0 | 0.104294 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
90b9bb562ff2de94ab31e03344a4bf61822586c2 | 11,484 | py | Python | bitcoin.py | Oleg42-prog/bitcoin | aa98dfb0992c76e4db082658d02a05d21c3ca7a7 | [
"MIT"
] | null | null | null | bitcoin.py | Oleg42-prog/bitcoin | aa98dfb0992c76e4db082658d02a05d21c3ca7a7 | [
"MIT"
] | 5 | 2021-11-04T13:04:12.000Z | 2021-11-04T13:26:33.000Z | bitcoin.py | Oleg42-prog/bitcoin | aa98dfb0992c76e4db082658d02a05d21c3ca7a7 | [
"MIT"
] | null | null | null | import uuid
from abc import ABC
import random
import copy
from Crypto.Hash import SHA256
from Crypto.PublicKey import RSA
from Crypto.Signature import pkcs1_15
import os
import json
class Network():
@property
def general_power(self):
return self._general_power
@property
def blocks_count(self):
return se... | 23.532787 | 170 | 0.738941 | 1,357 | 11,484 | 6.021371 | 0.114959 | 0.06364 | 0.061682 | 0.033656 | 0.350508 | 0.313548 | 0.199853 | 0.142822 | 0.096194 | 0.084445 | 0 | 0.00852 | 0.151689 | 11,484 | 488 | 171 | 23.532787 | 0.83022 | 0.005312 | 0 | 0.39548 | 0 | 0 | 0.02014 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.223164 | false | 0 | 0.025424 | 0.146893 | 0.480226 | 0.002825 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
90bf53561d065c369e235f4b354fe5e73ee82018 | 765 | py | Python | gryphon/tests/logic/configuration/bitstamp_bch_eur_test.py | qiquanzhijia/gryphon | 7bb2c646e638212bd1352feb1b5d21536a5b918d | [
"Apache-2.0"
] | 1,109 | 2019-06-20T19:23:27.000Z | 2022-03-20T14:03:43.000Z | gryphon/tests/logic/configuration/bitstamp_bch_eur_test.py | qiquanzhijia/gryphon | 7bb2c646e638212bd1352feb1b5d21536a5b918d | [
"Apache-2.0"
] | 63 | 2019-06-21T05:36:17.000Z | 2021-05-26T21:08:15.000Z | gryphon/tests/logic/configuration/bitstamp_bch_eur_test.py | qiquanzhijia/gryphon | 7bb2c646e638212bd1352feb1b5d21536a5b918d | [
"Apache-2.0"
] | 181 | 2019-06-20T19:42:05.000Z | 2022-03-21T13:05:13.000Z | import pyximport; pyximport.install()
import unittest
from cdecimal import Decimal
from gryphon.lib.exchange.bitstamp_bch_eur import BitstampBCHEURExchange
from gryphon.lib.money import Money
from gryphon.tests.logic.configuration.exchange import BaseConfiguration
class BitstampBCHEURConfigurationTest(BaseConfigur... | 34.772727 | 78 | 0.764706 | 85 | 765 | 6.682353 | 0.505882 | 0.058099 | 0.049296 | 0.091549 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029008 | 0.143791 | 765 | 21 | 79 | 36.428571 | 0.838168 | 0.067974 | 0 | 0 | 0 | 0 | 0.039381 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.461538 | 0 | 0.615385 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
90c4d49a2e66588821c61dc00316366dc59956d4 | 16,371 | py | Python | v2ray/com/core/transport/internet/config_pb2.py | xieruan/v2bp | 350b2f80d3a06494ed4092945804c1c851fdf1db | [
"MIT"
] | 7 | 2020-06-24T07:15:15.000Z | 2022-03-08T16:36:09.000Z | v2ray/com/core/transport/internet/config_pb2.py | xieruan/vp | 350b2f80d3a06494ed4092945804c1c851fdf1db | [
"MIT"
] | null | null | null | v2ray/com/core/transport/internet/config_pb2.py | xieruan/vp | 350b2f80d3a06494ed4092945804c1c851fdf1db | [
"MIT"
] | 6 | 2020-07-06T06:51:20.000Z | 2021-03-23T06:26:36.000Z | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: v2ray.com/core/transport/internet/config.proto
from google.protobuf.internal import enum_type_wrapper
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf i... | 42.522078 | 1,890 | 0.761591 | 2,038 | 16,371 | 5.850343 | 0.1158 | 0.044955 | 0.075736 | 0.074142 | 0.675082 | 0.642707 | 0.613436 | 0.546842 | 0.476055 | 0.472532 | 0 | 0.044257 | 0.11667 | 16,371 | 384 | 1,891 | 42.632813 | 0.780237 | 0.032496 | 0 | 0.601719 | 1 | 0.005731 | 0.259524 | 0.216944 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.017192 | 0 | 0.017192 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
90d7ae30d6d9de92a560793b7829bb316b7097e6 | 5,302 | py | Python | zipline/assets/asset_db_schema.py | quantrocket-llc/zipline | 4eccd1ff3f07addbdc1f9682b608e0584a9b59c6 | [
"Apache-2.0"
] | 14 | 2018-02-05T18:38:15.000Z | 2022-01-15T21:31:30.000Z | zipline/assets/asset_db_schema.py | quantrocket-llc/zipline | 4eccd1ff3f07addbdc1f9682b608e0584a9b59c6 | [
"Apache-2.0"
] | null | null | null | zipline/assets/asset_db_schema.py | quantrocket-llc/zipline | 4eccd1ff3f07addbdc1f9682b608e0584a9b59c6 | [
"Apache-2.0"
] | 8 | 2020-02-14T04:21:46.000Z | 2022-01-30T06:42:50.000Z | import sqlalchemy as sa
# Define a version number for the database generated by these writers
# Increment this version number any time a change is made to the schema of the
# assets database
ASSET_DB_VERSION = 8
# A frozenset of the names of all tables in the assets db
# NOTE: When modifying this schema, update the ... | 26.913706 | 91 | 0.628065 | 662 | 5,302 | 4.915408 | 0.232628 | 0.113092 | 0.064536 | 0.09035 | 0.49201 | 0.466503 | 0.393362 | 0.355255 | 0.345421 | 0.345421 | 0 | 0.001006 | 0.250094 | 5,302 | 196 | 92 | 27.05102 | 0.817404 | 0.20596 | 0 | 0.736842 | 1 | 0 | 0.153314 | 0.010491 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.005848 | 0 | 0.005848 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
90fadd1baef76587eed74a194b1220e47b7c25e5 | 978 | py | Python | setup.py | unrelentingtech/pysectools | 53b5be0ad0cf98bf5530ddf596ad6f2967ba02b3 | [
"Unlicense"
] | 10 | 2015-02-07T02:00:01.000Z | 2020-07-09T18:38:44.000Z | setup.py | unrelentingtech/pysectools | 53b5be0ad0cf98bf5530ddf596ad6f2967ba02b3 | [
"Unlicense"
] | 5 | 2015-04-16T07:10:30.000Z | 2019-01-13T22:37:33.000Z | setup.py | myfreeweb/pysectools | 53b5be0ad0cf98bf5530ddf596ad6f2967ba02b3 | [
"Unlicense"
] | 2 | 2018-07-23T15:01:56.000Z | 2018-12-10T19:08:49.000Z | #!/usr/bin/env python
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
setup(
name="pysectools",
version="0.5.2",
description="""A package of security-related Python functions. Dropping
privileges, entering sandboxes, generating random numbers, asking for
... | 27.942857 | 77 | 0.627812 | 96 | 978 | 6.333333 | 0.8125 | 0.036184 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00527 | 0.223926 | 978 | 34 | 78 | 28.764706 | 0.795784 | 0.04908 | 0 | 0 | 0 | 0 | 0.480603 | 0.029095 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.066667 | 0.1 | 0 | 0.1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
90fcf4edb836dd9d478fa4f32b36b30de5107f0a | 1,021 | py | Python | rest_api_example/middlewares/api.py | masanorinyo/rest_django_api_boilerplate | 097ef8bf8405c804f79600585c6cfd21682f3066 | [
"MIT"
] | null | null | null | rest_api_example/middlewares/api.py | masanorinyo/rest_django_api_boilerplate | 097ef8bf8405c804f79600585c6cfd21682f3066 | [
"MIT"
] | null | null | null | rest_api_example/middlewares/api.py | masanorinyo/rest_django_api_boilerplate | 097ef8bf8405c804f79600585c6cfd21682f3066 | [
"MIT"
] | null | null | null | """
testing testing
"""
from django.core.urlresolvers import resolve
from django.core.urlresolvers import reverse
from rest_api_example.custom import utilities
import urlparse
import logging
logger = logging.getLogger(__name__)
class VersionSwitchMiddleware(object):
def process_request(self, request):
r... | 40.84 | 144 | 0.693438 | 134 | 1,021 | 5.149254 | 0.522388 | 0.046377 | 0.04058 | 0.075362 | 0.092754 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002448 | 0.199804 | 1,021 | 25 | 145 | 40.84 | 0.842105 | 0.210578 | 0 | 0 | 0 | 0 | 0.052698 | 0 | 0 | 0 | 0 | 0.04 | 0 | 1 | 0.0625 | false | 0 | 0.3125 | 0 | 0.4375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
90fe5ca5b044291017b7d54881d6988eec09251a | 1,001 | py | Python | tests/unit/test_charm.py | pengale/charm-defer-with-dispatch | 2f94e6659f1e781e89baaaac90b822bb9a0286dd | [
"Apache-2.0"
] | null | null | null | tests/unit/test_charm.py | pengale/charm-defer-with-dispatch | 2f94e6659f1e781e89baaaac90b822bb9a0286dd | [
"Apache-2.0"
] | null | null | null | tests/unit/test_charm.py | pengale/charm-defer-with-dispatch | 2f94e6659f1e781e89baaaac90b822bb9a0286dd | [
"Apache-2.0"
] | null | null | null | # Copyright 2022 Penelope Valentine Gale
# See LICENSE file for licensing details.
#
# Learn more about testing at: https://juju.is/docs/sdk/testing
import unittest
from ops.model import ActiveStatus, MaintenanceStatus
from ops.testing import Harness
from charm import DeferWithDispatchCharm
class TestCharm(unittes... | 34.517241 | 89 | 0.737263 | 128 | 1,001 | 5.695313 | 0.632813 | 0.090535 | 0.046639 | 0.071331 | 0.112483 | 0.112483 | 0.112483 | 0 | 0 | 0 | 0 | 0.004896 | 0.183816 | 1,001 | 28 | 90 | 35.75 | 0.887393 | 0.342657 | 0 | 0 | 0 | 0 | 0.012327 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 1 | 0.153846 | false | 0 | 0.307692 | 0 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
29049f0b48c47e6e5835fd85213f4aba47f8c083 | 242 | py | Python | scripts/portal/pt_henespin.py | G00dBye/YYMS | 1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb | [
"MIT"
] | 54 | 2019-04-16T23:24:48.000Z | 2021-12-18T11:41:50.000Z | scripts/portal/pt_henespin.py | G00dBye/YYMS | 1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb | [
"MIT"
] | 3 | 2019-05-19T15:19:41.000Z | 2020-04-27T16:29:16.000Z | scripts/portal/pt_henespin.py | G00dBye/YYMS | 1de816fc842b6598d5b4b7896b6ab0ee8f7cdcfb | [
"MIT"
] | 49 | 2020-11-25T23:29:16.000Z | 2022-03-26T16:20:24.000Z | # Created by MechAviv
# Map ID :: 100000000
# Henesys : Henesys
if sm.hasQuest(32707) or chr.getLevel() < 100:
sm.warp(100000004, 1)
else:
sm.progressMessageFont(3, 20, 20, 0, "Spin-off: FriendStory is available starting at Lv. 100.") | 34.571429 | 99 | 0.698347 | 36 | 242 | 4.694444 | 0.861111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.179104 | 0.169421 | 242 | 7 | 99 | 34.571429 | 0.661692 | 0.235537 | 0 | 0 | 0 | 0 | 0.302198 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
2913f2e038b19af83d94714f2a1a9e7896d8ab16 | 585 | py | Python | unit_bench/randkey.py | jaredlunde/cargo-orm | 1d5524d359bd52a991edc738982b7df2149d9c69 | [
"MIT"
] | 3 | 2017-02-10T08:03:21.000Z | 2017-02-25T04:55:48.000Z | unit_bench/randkey.py | jaredlunde/cargo-orm | 1d5524d359bd52a991edc738982b7df2149d9c69 | [
"MIT"
] | null | null | null | unit_bench/randkey.py | jaredlunde/cargo-orm | 1d5524d359bd52a991edc738982b7df2149d9c69 | [
"MIT"
] | null | null | null | import dis
import uuid
import time
import string
from sys import intern
from cargo.expressions import _empty
from vital.security import iter_random_chars
from vital.debug import Compare, Timer, RandData
from random import randint
def k1(bits):
out = ""
for char in iter_random_chars(bits, string.ascii_letters ... | 19.5 | 78 | 0.699145 | 86 | 585 | 4.651163 | 0.44186 | 0.075 | 0.1125 | 0.065 | 0.29 | 0.29 | 0.29 | 0.29 | 0.29 | 0.29 | 0 | 0.045852 | 0.217094 | 585 | 29 | 79 | 20.172414 | 0.827511 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.409091 | 0.045455 | 0.590909 | 0.045455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
291b9c5e331a5bcd9d6062a69d92ed12b662dd10 | 3,005 | py | Python | routerdb.py | fortify24x7/Pentest-chainsaw | 9574b8c6ec114eee04f481cc8165f93d95f1377a | [
"MIT"
] | 39 | 2018-01-04T18:49:55.000Z | 2021-09-24T03:03:11.000Z | routerdb.py | fortify24x7/Pentest-chainsaw | 9574b8c6ec114eee04f481cc8165f93d95f1377a | [
"MIT"
] | null | null | null | routerdb.py | fortify24x7/Pentest-chainsaw | 9574b8c6ec114eee04f481cc8165f93d95f1377a | [
"MIT"
] | 13 | 2018-01-14T08:55:00.000Z | 2020-12-10T16:18:33.000Z | #!/usr/bin/env python
# -*- coding:utf-8 -*-
try:
import re
import requests
from bs4 import BeautifulSoup
import sys
import os
import argparse
from beautifultable import BeautifulTable
import optparse
except Exception as err:
print "[!] "+str(err)
sys.exit(0)
LIGHTRED = '\033[91m'
YL = '\033[33m'
GR = '\... | 29.174757 | 103 | 0.530782 | 411 | 3,005 | 4.579075 | 0.435523 | 0.018597 | 0.010627 | 0.021254 | 0.129649 | 0.129649 | 0.129649 | 0.129649 | 0 | 0 | 0 | 0.014303 | 0.185691 | 3,005 | 102 | 104 | 29.460784 | 0.628933 | 0.043594 | 0 | 0.146341 | 0 | 0.012195 | 0.332144 | 0.034606 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.085366 | 0.097561 | null | null | 0.170732 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
29351fd1c6181f52ca793f43846030420bd0964f | 838 | py | Python | exercises/fr/test_02_06.py | Jette16/spacy-course | 32df0c8f6192de6c9daba89740a28c0537e4d6a0 | [
"MIT"
] | 2,085 | 2019-04-17T13:10:40.000Z | 2022-03-30T21:51:46.000Z | exercises/fr/test_02_06.py | Jette16/spacy-course | 32df0c8f6192de6c9daba89740a28c0537e4d6a0 | [
"MIT"
] | 79 | 2019-04-18T14:42:55.000Z | 2022-03-07T08:15:43.000Z | exercises/fr/test_02_06.py | Jette16/spacy-course | 32df0c8f6192de6c9daba89740a28c0537e4d6a0 | [
"MIT"
] | 361 | 2019-04-17T13:34:32.000Z | 2022-03-28T04:42:45.000Z | def test():
assert (
"import Doc, Span" or "import Span, Doc" in __solution__
), "As-tu correctement importé Doc et Span ?"
assert doc.text == "Elle aime David Bowie", "As-tu correctement créé le Doc ?"
assert span.text == "David Bowie", "As-tu correctement créé le span ?"
assert span.label_... | 46.555556 | 82 | 0.640811 | 122 | 838 | 4.295082 | 0.467213 | 0.053435 | 0.091603 | 0.080153 | 0.248092 | 0.21374 | 0.21374 | 0.091603 | 0 | 0 | 0 | 0.00315 | 0.242243 | 838 | 17 | 83 | 49.294118 | 0.822047 | 0 | 0 | 0.117647 | 0 | 0 | 0.585919 | 0 | 0 | 0 | 0 | 0 | 0.411765 | 1 | 0.058824 | true | 0 | 0.117647 | 0 | 0.176471 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
294228a4a5815ee0df85bd3f6dd5815be4c87c66 | 513 | py | Python | setup/lambda/process-error/src/lambda_function.py | aws-samples/amazon-mwaa-complex-workflow-using-step-functions | 73835d3398ced067b40129c8cc9d9197f38e99a8 | [
"MIT-0"
] | 21 | 2021-01-12T14:43:06.000Z | 2021-10-01T16:47:19.000Z | setup/lambda/process-error/src/lambda_function.py | aws-samples/amazon-mwaa-complex-workflow-using-step-functions | 73835d3398ced067b40129c8cc9d9197f38e99a8 | [
"MIT-0"
] | null | null | null | setup/lambda/process-error/src/lambda_function.py | aws-samples/amazon-mwaa-complex-workflow-using-step-functions | 73835d3398ced067b40129c8cc9d9197f38e99a8 | [
"MIT-0"
] | 11 | 2021-02-10T16:37:18.000Z | 2022-01-18T21:35:12.000Z | # Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: MIT-0
import os
import logging
import datetime as dt
import boto3
import json
def lambda_handler(event, context):
try:
if isinstance(event, str):
event = json.loads(event)
logging.info('Execu... | 28.5 | 108 | 0.678363 | 70 | 513 | 4.942857 | 0.742857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005128 | 0.239766 | 513 | 17 | 109 | 30.176471 | 0.882051 | 0.189084 | 0 | 0 | 0 | 0 | 0.213075 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.357143 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
295e1c47d57deb2bb1e9f0286088ced775518c43 | 5,209 | py | Python | query_expenditures_from_mint.py | arytontediarjo/GoogleDataStudio-SpendingTracker | b872b9e64a6a2477b4e072d53577154e22adb5b1 | [
"MIT"
] | 1 | 2020-08-10T23:45:59.000Z | 2020-08-10T23:45:59.000Z | query_expenditures_from_mint.py | arytontediarjo/GoogleDataStudio-SpendingTracker | b872b9e64a6a2477b4e072d53577154e22adb5b1 | [
"MIT"
] | null | null | null | query_expenditures_from_mint.py | arytontediarjo/GoogleDataStudio-SpendingTracker | b872b9e64a6a2477b4e072d53577154e22adb5b1 | [
"MIT"
] | null | null | null | #######################################
# This script is used for querying
# mint data information into google
# spreadsheet
#######################################
import mintapi
import pandas as pd
import numpy as np
import warnings
import time
from re import sub
from decimal import Decimal
from datetime import dat... | 43.408333 | 105 | 0.62584 | 609 | 5,209 | 5.198686 | 0.377668 | 0.060013 | 0.011371 | 0.013898 | 0.139608 | 0.059381 | 0.019583 | 0.019583 | 0.019583 | 0 | 0 | 0.004681 | 0.261854 | 5,209 | 120 | 106 | 43.408333 | 0.818726 | 0.224803 | 0 | 0 | 0 | 0 | 0.111396 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.0625 | 0.1375 | null | null | 0.0375 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
2962a4ece08ad91e14c98abaf2d72ba0c1610139 | 850 | py | Python | zmanejo_part/consentimiento/__init__.py | abnercasallo/source | 94c14c6a277d1b783a1ceddbc0e0852443ea5847 | [
"MIT"
] | null | null | null | zmanejo_part/consentimiento/__init__.py | abnercasallo/source | 94c14c6a277d1b783a1ceddbc0e0852443ea5847 | [
"MIT"
] | null | null | null | zmanejo_part/consentimiento/__init__.py | abnercasallo/source | 94c14c6a277d1b783a1ceddbc0e0852443ea5847 | [
"MIT"
] | null | null | null | from otree.api import *
c = Currency
doc = """
Your app description
"""
class Constants(BaseConstants):
name_in_url = 'consentimiento'
players_per_group = None
num_rounds = 1
class Subsession(BaseSubsession):
pass
class Group(BaseGroup):
pass
class Player(BasePlaye... | 17 | 105 | 0.658824 | 90 | 850 | 6.122222 | 0.733333 | 0.065336 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00312 | 0.245882 | 850 | 49 | 106 | 17.346939 | 0.856474 | 0.085882 | 0 | 0.192308 | 0 | 0 | 0.074896 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0.192308 | 0.038462 | 0.038462 | 0.615385 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
296da723e6f5110a5182eb4ea70b997ce9f3f577 | 260 | py | Python | x74_pizza_loop.py | charliechocho/py-crash-course | b42b8a4c1cb8d76e8316f55c1565ff42d920ee63 | [
"Apache-2.0"
] | null | null | null | x74_pizza_loop.py | charliechocho/py-crash-course | b42b8a4c1cb8d76e8316f55c1565ff42d920ee63 | [
"Apache-2.0"
] | null | null | null | x74_pizza_loop.py | charliechocho/py-crash-course | b42b8a4c1cb8d76e8316f55c1565ff42d920ee63 | [
"Apache-2.0"
] | null | null | null | add_on = "\nLägg till en topping: "
add_on += "\nSkriv 'quit' när du är klar: "
topping = ""
while topping.lower() != 'quit':
topping = input(add_on)
if topping.lower() != 'quit':
print(f"Lägger till {topping.title()} till din beställning!")
| 26 | 69 | 0.619231 | 36 | 260 | 4.388889 | 0.611111 | 0.094937 | 0.202532 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.207692 | 260 | 9 | 70 | 28.888889 | 0.76699 | 0 | 0 | 0 | 0 | 0 | 0.438462 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.142857 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
2975446ddc61c8bd6b44974a736821ee84838a1c | 1,774 | py | Python | apis/alembic/versions/3d55942c29d0_drop_old_redmine_project.py | iii-org/devops-system | 71f938c9e225ac24ab9102a8221dc5341a01889c | [
"Apache-2.0"
] | 4 | 2021-07-15T15:59:01.000Z | 2022-02-24T02:58:52.000Z | apis/alembic/versions/3d55942c29d0_drop_old_redmine_project.py | iii-org/devops-system | 71f938c9e225ac24ab9102a8221dc5341a01889c | [
"Apache-2.0"
] | 4 | 2020-06-12T04:05:46.000Z | 2021-11-09T03:53:13.000Z | apis/alembic/versions/3d55942c29d0_drop_old_redmine_project.py | iii-org/devops-system | 71f938c9e225ac24ab9102a8221dc5341a01889c | [
"Apache-2.0"
] | 2 | 2020-09-29T05:39:28.000Z | 2021-11-26T09:52:17.000Z | """drop old redmine project
Revision ID: 3d55942c29d0
Revises: 626d063566c3
Create Date: 2021-04-14 11:26:11.943921
"""
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import postgresql
# revision identifiers, used by Alembic.
revision = '3d55942c29d0'
down_revision = '626d063566c3'
branch_la... | 41.255814 | 113 | 0.732244 | 217 | 1,774 | 5.857143 | 0.331797 | 0.075531 | 0.22502 | 0.259638 | 0.529504 | 0.529504 | 0.499607 | 0.499607 | 0.393391 | 0.173092 | 0 | 0.03866 | 0.125141 | 1,774 | 42 | 114 | 42.238095 | 0.780284 | 0.172492 | 0 | 0 | 0 | 0 | 0.167715 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08 | false | 0 | 0.12 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
297c8c92460e58f48fe2a8a89a096792944948c0 | 1,102 | py | Python | utils.py | arckayan/visual | f2fdd547b318d17ddb1b7ef81e929e9aeba5a2dd | [
"Apache-2.0"
] | null | null | null | utils.py | arckayan/visual | f2fdd547b318d17ddb1b7ef81e929e9aeba5a2dd | [
"Apache-2.0"
] | null | null | null | utils.py | arckayan/visual | f2fdd547b318d17ddb1b7ef81e929e9aeba5a2dd | [
"Apache-2.0"
] | null | null | null | # Copyright (C) 2020 Manish Sahani <rec.manish.sahani@gmail.com>.
#
# This code is Licensed under the Apache License, Version 2.0 (the "License");
# A copy of a License can be obtained at:
# http://www.apache.org/licenses/LICENSE-2.0#
#
# you may not use this file except in compliance with the License.
... | 29.783784 | 78 | 0.722323 | 160 | 1,102 | 4.9375 | 0.65 | 0.063291 | 0.037975 | 0.060759 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03683 | 0.186933 | 1,102 | 36 | 79 | 30.611111 | 0.844866 | 0.57078 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.533333 | 0.066667 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
2982875d7b3ad7b7a14be2a9bc6bed0036f1e4e1 | 3,253 | py | Python | stage/configuration/test_kudu_destination.py | streamsets/datacollector-tests | 6c3e908768e1d4a586e9183e2141096921ecd5be | [
"Apache-2.0"
] | 14 | 2019-03-04T10:12:39.000Z | 2021-11-24T16:17:09.000Z | stage/configuration/test_kudu_destination.py | Pragatibs/datacollector-tests | aac53b2f0e056009ef0e437c8430651e3cf4d502 | [
"Apache-2.0"
] | 48 | 2019-03-08T14:59:06.000Z | 2021-08-13T14:49:56.000Z | stage/configuration/test_kudu_destination.py | Pragatibs/datacollector-tests | aac53b2f0e056009ef0e437c8430651e3cf4d502 | [
"Apache-2.0"
] | 23 | 2018-09-24T20:49:17.000Z | 2021-11-24T16:17:11.000Z | # Copyright 2021 StreamSets Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writi... | 30.980952 | 98 | 0.645558 | 357 | 3,253 | 5.557423 | 0.355742 | 0.049395 | 0.091734 | 0.148185 | 0.389617 | 0.389617 | 0.389617 | 0.369456 | 0.275202 | 0.275202 | 0 | 0.003339 | 0.263449 | 3,253 | 104 | 99 | 31.278846 | 0.824708 | 0.16969 | 0 | 0.459016 | 0 | 0 | 0.208488 | 0.033507 | 0 | 0 | 0 | 0 | 0 | 1 | 0.229508 | false | 0.229508 | 0.032787 | 0 | 0.262295 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
4622ec128d6f0cddc9d62191c0e18efadf5e57e0 | 951 | py | Python | tests/__init__.py | open-source-uc/validate-uc-number-py | 49ce861f1af347251ffe1f76c462313ddd279469 | [
"MIT"
] | 1 | 2021-05-02T02:54:34.000Z | 2021-05-02T02:54:34.000Z | tests/__init__.py | open-source-uc/validate-uc-number-py | 49ce861f1af347251ffe1f76c462313ddd279469 | [
"MIT"
] | 1 | 2021-04-08T14:39:04.000Z | 2021-07-07T04:29:03.000Z | tests/__init__.py | open-source-uc/validate-uc-number-py | 49ce861f1af347251ffe1f76c462313ddd279469 | [
"MIT"
] | 2 | 2017-10-18T16:10:20.000Z | 2021-11-07T16:14:05.000Z | # coding=utf-8
import unittest
from ucnumber import validate
class ValidationTests(unittest.TestCase):
def test_validation_as_string(self):
self.assertTrue(validate('14644088'))
def test_validation_as_number(self):
self.assertTrue(validate(14644088))
def test_validation_as_string_with_... | 25.026316 | 54 | 0.71714 | 116 | 951 | 5.517241 | 0.37931 | 0.0875 | 0.179688 | 0.11875 | 0.346875 | 0.307813 | 0.165625 | 0.165625 | 0.165625 | 0 | 0 | 0.053985 | 0.181914 | 951 | 37 | 55 | 25.702703 | 0.768638 | 0.012618 | 0 | 0 | 0 | 0 | 0.042689 | 0 | 0 | 0 | 0 | 0 | 0.391304 | 1 | 0.347826 | false | 0 | 0.130435 | 0 | 0.521739 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
46335395dd7942753656a549f4536f24baebcd30 | 586 | py | Python | exercises/chapter01/test_01_02.py | deep-diver/fastai-course | 1a0a39311fba0e1b3f4720a612a17dc7c708d9bb | [
"MIT"
] | null | null | null | exercises/chapter01/test_01_02.py | deep-diver/fastai-course | 1a0a39311fba0e1b3f4720a612a17dc7c708d9bb | [
"MIT"
] | null | null | null | exercises/chapter01/test_01_02.py | deep-diver/fastai-course | 1a0a39311fba0e1b3f4720a612a17dc7c708d9bb | [
"MIT"
] | null | null | null | def test():
# Here we can either check objects created in the solution code, or the
# string value of the solution, available as __solution__. A helper for
# printing formatted messages is available as __msg__. See the testTemplate
# in the meta.json for details.
# If an assertion fails, the messag... | 45.076923 | 85 | 0.723549 | 86 | 586 | 4.604651 | 0.686047 | 0.075758 | 0.060606 | 0.070707 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.201365 | 586 | 12 | 86 | 48.833333 | 0.846154 | 0.505119 | 0 | 0 | 0 | 0 | 0.429577 | 0.091549 | 0 | 0 | 0 | 0 | 0.6 | 1 | 0.2 | true | 0 | 0 | 0 | 0.2 | 0.2 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
46378956a822c9923ce076b6df3fad1c4ada5c91 | 3,449 | py | Python | lib/dbox.py | raymondjacobson/monsoon | 22817b18b0c858e1231f3a4e61e31978859da656 | [
"MIT"
] | 3 | 2015-01-04T17:50:20.000Z | 2018-11-15T06:13:56.000Z | lib/dbox.py | raymondjacobson/monsoon | 22817b18b0c858e1231f3a4e61e31978859da656 | [
"MIT"
] | null | null | null | lib/dbox.py | raymondjacobson/monsoon | 22817b18b0c858e1231f3a4e61e31978859da656 | [
"MIT"
] | null | null | null | import dropbox, os, re, sys
from StringIO import StringIO
from config import config
from lib.db import saveUploadedFile, updateAccountSpace
def generateAccessToken(driver, email, password):
"""Automatically generates an authentication code for the master app"""
app_key = config['app_key']
app_secret = config['ap... | 39.643678 | 103 | 0.726877 | 463 | 3,449 | 5.181425 | 0.354212 | 0.041267 | 0.030013 | 0.02376 | 0.132555 | 0.132555 | 0.035848 | 0.035848 | 0 | 0 | 0 | 0.005802 | 0.150478 | 3,449 | 87 | 104 | 39.643678 | 0.812969 | 0 | 0 | 0.028986 | 1 | 0 | 0.107551 | 0.046747 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.028986 | 0.057971 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
4637d82e08f6d893fd2ca465336c2943862b82a2 | 960 | py | Python | drf_spectacular/renderers.py | foarsitter/drf-spectacular | c21a1774308a93a3e7004943abd77e440df2dfac | [
"BSD-3-Clause"
] | null | null | null | drf_spectacular/renderers.py | foarsitter/drf-spectacular | c21a1774308a93a3e7004943abd77e440df2dfac | [
"BSD-3-Clause"
] | null | null | null | drf_spectacular/renderers.py | foarsitter/drf-spectacular | c21a1774308a93a3e7004943abd77e440df2dfac | [
"BSD-3-Clause"
] | null | null | null | import yaml
from rest_framework.renderers import OpenAPIRenderer, JSONRenderer
class OpenApiYamlRenderer(OpenAPIRenderer):
media_type = 'application/vnd.oai.openapi'
def render(self, data, media_type=None, renderer_context=None):
# disable yaml advanced feature 'alias' for clean, portable, and readab... | 32 | 104 | 0.747917 | 110 | 960 | 6.354545 | 0.536364 | 0.090129 | 0.114449 | 0.065808 | 0.18598 | 0.094421 | 0 | 0 | 0 | 0 | 0 | 0.005 | 0.166667 | 960 | 29 | 105 | 33.103448 | 0.86875 | 0.08125 | 0 | 0 | 0 | 0 | 0.109091 | 0.067045 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0 | 0.117647 | 0.117647 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
464f3ed7d5cb9362db1433ffad35b40c9d98a13c | 1,229 | py | Python | dual/core/dmath/logarithm.py | YumaShimomoto/dual | 3cf79e6769e1c9e1560a45498a909c6757eb1a25 | [
"MIT"
] | null | null | null | dual/core/dmath/logarithm.py | YumaShimomoto/dual | 3cf79e6769e1c9e1560a45498a909c6757eb1a25 | [
"MIT"
] | null | null | null | dual/core/dmath/logarithm.py | YumaShimomoto/dual | 3cf79e6769e1c9e1560a45498a909c6757eb1a25 | [
"MIT"
] | null | null | null | #
# @Author: kuroitu (2020)
# @email: skuroitu@gmail.com
#
import numpy as np
from ..dual import *
from .exponential import *
def log(obj):
obj = to_dual(obj)
return Dual(np.log(obj.re), obj.im / obj.re)
def logn(obj, n):
obj = to_dual(obj)
return Dual(np.log(obj.re) / np.log(n), obj.im / (np.log... | 23.188679 | 74 | 0.563873 | 204 | 1,229 | 3.352941 | 0.166667 | 0.073099 | 0.122807 | 0.087719 | 0.482456 | 0.482456 | 0.415205 | 0.415205 | 0.233918 | 0.233918 | 0 | 0.061822 | 0.249797 | 1,229 | 52 | 75 | 23.634615 | 0.680043 | 0.095199 | 0 | 0.241379 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.241379 | false | 0 | 0.103448 | 0 | 0.586207 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
465eccad5680452fce512c94a9d26a3590f979ca | 1,731 | py | Python | Linked List/Note.py | xli1110/LC | 3c18b8809c5a21a62903060eef659654e0595036 | [
"MIT"
] | 2 | 2021-04-02T11:57:46.000Z | 2021-04-02T11:57:47.000Z | Linked List/Note.py | xli1110/LC | 3c18b8809c5a21a62903060eef659654e0595036 | [
"MIT"
] | null | null | null | Linked List/Note.py | xli1110/LC | 3c18b8809c5a21a62903060eef659654e0595036 | [
"MIT"
] | null | null | null | """
Tips:
1 - Use dummy for convenience.
dummy = Node(None)
p = dummy
dummy.next = head # do not forget this
xxxxxxxxx
return dummy.next
2 - Always check whether the node is None before visiting its attributes.
3 - reverse/concatenate: temp + iterate + operation
... | 36.0625 | 120 | 0.616407 | 273 | 1,731 | 3.89011 | 0.435897 | 0.028249 | 0.025424 | 0.022599 | 0.030132 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083468 | 0.287117 | 1,731 | 47 | 121 | 36.829787 | 0.777147 | 0.994801 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
46647952140c0ad2b726e231549d6ecbfa63d442 | 1,084 | py | Python | python/code/api/data/Sprite.py | benwoo1110/Ratventure | c264a0cbaf0e5931e1c3ae63b8b3529db50b0d66 | [
"MIT"
] | 1 | 2022-01-14T08:59:52.000Z | 2022-01-14T08:59:52.000Z | python/code/api/data/Sprite.py | benwoo1110/Ratventure | c264a0cbaf0e5931e1c3ae63b8b3529db50b0d66 | [
"MIT"
] | null | null | null | python/code/api/data/Sprite.py | benwoo1110/Ratventure | c264a0cbaf0e5931e1c3ae63b8b3529db50b0d66 | [
"MIT"
] | null | null | null | ######################################
# Import and initialize the librarys #
######################################
from code.api.core import os, log, coreFunc
from code.api.data.Images import Images
from code.api.data.Frame import Frame
#################
# Setup logging #
#################
filename = os.path.basenam... | 33.875 | 112 | 0.619926 | 134 | 1,084 | 4.947761 | 0.485075 | 0.102564 | 0.049774 | 0.045249 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005568 | 0.171587 | 1,084 | 31 | 113 | 34.967742 | 0.732739 | 0.084871 | 0 | 0 | 0 | 0 | 0.024 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.1875 | 0.125 | 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 | 1 | 0 | 0 | 0 | 2 |
466d967a685e72757d236e08fc0be231b0e90004 | 2,020 | py | Python | pyspedas/maven/tests/tests.py | xnchu/pyspedas | 62657581c0b6ed980fcd99ac34455a8b7a77dede | [
"MIT"
] | null | null | null | pyspedas/maven/tests/tests.py | xnchu/pyspedas | 62657581c0b6ed980fcd99ac34455a8b7a77dede | [
"MIT"
] | null | null | null | pyspedas/maven/tests/tests.py | xnchu/pyspedas | 62657581c0b6ed980fcd99ac34455a8b7a77dede | [
"MIT"
] | null | null | null |
import os
import unittest
from pyspedas.utilities.data_exists import data_exists
from pyspedas import maven
# class OrbitTestCases(unittest.TestCase):
# def test_get_merge_orbit_files(self):
# from pyspedas.maven.download_files_utilities import get_orbit_files, merge_orbit_files
# get_orbit_files(... | 32.063492 | 107 | 0.670792 | 271 | 2,020 | 4.627306 | 0.298893 | 0.111643 | 0.172249 | 0.229665 | 0.228868 | 0.100478 | 0.055821 | 0 | 0 | 0 | 0 | 0.005003 | 0.208416 | 2,020 | 63 | 108 | 32.063492 | 0.779237 | 0.392574 | 0 | 0 | 0 | 0 | 0.141791 | 0.11194 | 0 | 0 | 0 | 0 | 0.275862 | 1 | 0.241379 | false | 0 | 0.137931 | 0 | 0.413793 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
466dcf293b82b54a859fde840dd00c51b44a02c9 | 81 | py | Python | ABC_A/ABC167_A.py | ryosuke0825/atcoder_python | 185cdbe7db44ecca1aaf357858d16d31ce515ddb | [
"MIT"
] | null | null | null | ABC_A/ABC167_A.py | ryosuke0825/atcoder_python | 185cdbe7db44ecca1aaf357858d16d31ce515ddb | [
"MIT"
] | null | null | null | ABC_A/ABC167_A.py | ryosuke0825/atcoder_python | 185cdbe7db44ecca1aaf357858d16d31ce515ddb | [
"MIT"
] | null | null | null | S = input()
T = input()
if S == T[0:-1]:
print('Yes')
else:
print('No')
| 10.125 | 16 | 0.45679 | 14 | 81 | 2.642857 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033898 | 0.271605 | 81 | 7 | 17 | 11.571429 | 0.59322 | 0 | 0 | 0 | 0 | 0 | 0.061728 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
468049eafab7174417a1b4bf81bcdcaa1b4cd611 | 325 | py | Python | cities/models.py | berpress/django_train | 90fefe553754316a04c85a550f0d44306e5d3e7b | [
"Apache-2.0"
] | null | null | null | cities/models.py | berpress/django_train | 90fefe553754316a04c85a550f0d44306e5d3e7b | [
"Apache-2.0"
] | 6 | 2021-03-19T04:10:40.000Z | 2021-09-22T19:07:30.000Z | cities/models.py | berpress/django_train | 90fefe553754316a04c85a550f0d44306e5d3e7b | [
"Apache-2.0"
] | null | null | null | # Create your models here.
from django.db import models
class City(models.Model):
name = models.CharField(max_length=99, unique=True, verbose_name="City")
def __str__(self):
return self.name
class Meta:
verbose_name = "Город"
verbose_name_plural = "Города"
ordering = ["na... | 21.666667 | 76 | 0.652308 | 41 | 325 | 4.95122 | 0.682927 | 0.162562 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00813 | 0.243077 | 325 | 14 | 77 | 23.214286 | 0.817073 | 0.073846 | 0 | 0 | 0 | 0 | 0.063545 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0.111111 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
4681193379fa3c28669d7b9c34002a64c07ecffc | 599 | py | Python | tests/test_news.py | Juru-10/News | bbf2771afb423679dafefe8d1099e233210ca708 | [
"MIT"
] | null | null | null | tests/test_news.py | Juru-10/News | bbf2771afb423679dafefe8d1099e233210ca708 | [
"MIT"
] | null | null | null | tests/test_news.py | Juru-10/News | bbf2771afb423679dafefe8d1099e233210ca708 | [
"MIT"
] | null | null | null | import unittest
from app.models import News
class NewsTest(unittest.TestCase):
'''
Test Class to test the behaviour of the News class
'''
def setUp(self):
'''
Set up method that will run before every Test
'''
self.new_news = News('abc-news-au','ABC News (AU)','Australia... | 35.235294 | 261 | 0.671119 | 85 | 599 | 4.694118 | 0.635294 | 0.045113 | 0.055138 | 0.075188 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.208681 | 599 | 16 | 262 | 37.4375 | 0.841772 | 0.160267 | 0 | 0 | 0 | 0.142857 | 0.461207 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0.285714 | false | 0 | 0.285714 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
46914b7941afffe84a4c93a51b3be9b269409580 | 474 | py | Python | cars_ke/models.py | ahmed14-cell/cars | d9ec9784b416f945eb137d4dbf2875eee9db294d | [
"MIT"
] | null | null | null | cars_ke/models.py | ahmed14-cell/cars | d9ec9784b416f945eb137d4dbf2875eee9db294d | [
"MIT"
] | 5 | 2021-03-20T04:21:13.000Z | 2021-03-20T04:22:01.000Z | cars_ke/models.py | ahmed-gaal/cars | d9ec9784b416f945eb137d4dbf2875eee9db294d | [
"MIT"
] | 1 | 2020-09-01T12:33:41.000Z | 2020-09-01T12:33:41.000Z | from django.db import models
# Create your models here.
class Car(models.Model):
name = models.CharField(max_length=255)
model = models.CharField(max_length=255)
engine_type = models.CharField(max_length=255)
transmission = models.CharField(max_length=255)
horse_power = models.IntegerField()
c... | 31.6 | 72 | 0.7173 | 59 | 474 | 5.559322 | 0.559322 | 0.182927 | 0.219512 | 0.292683 | 0.329268 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030691 | 0.175105 | 474 | 15 | 73 | 31.6 | 0.808184 | 0.050633 | 0 | 0 | 0 | 0 | 0.020045 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.090909 | 0.090909 | 1 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
469694f35c024ed8935cfd6f3ea8a1730425840a | 436 | py | Python | mExceptions.py | SkyLined/mHTTPClient | d75e4d5a00c25927e9504903e18abb5d524ab4ba | [
"CC-BY-4.0"
] | null | null | null | mExceptions.py | SkyLined/mHTTPClient | d75e4d5a00c25927e9504903e18abb5d524ab4ba | [
"CC-BY-4.0"
] | null | null | null | mExceptions.py | SkyLined/mHTTPClient | d75e4d5a00c25927e9504903e18abb5d524ab4ba | [
"CC-BY-4.0"
] | null | null | null | # Passdown from mHTTPConnection (and mHTTPProtocol by extension)
from mHTTPConnection.mExceptions import *;
from mHTTPConnection.mExceptions import acExceptions as acHTTPConnectionExceptions;
class cHTTPFailedToConnectToProxyException(cHTTPException):
pass; # The proxy server did not respond to our CONNECT request w... | 31.142857 | 83 | 0.81422 | 39 | 436 | 9.102564 | 0.769231 | 0.160563 | 0.169014 | 0.202817 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007958 | 0.135321 | 436 | 13 | 84 | 33.538462 | 0.933687 | 0.305046 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.1 | 0.2 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
d3b1d97d255ea37f6fbe8194ac6f9ea8cf544d1b | 403 | py | Python | pipert2/core/base/wire.py | MayoG/PipeRT2 | 357bf8a5fd3f3fe2149b7b0317d2c39dde66561d | [
"MIT"
] | null | null | null | pipert2/core/base/wire.py | MayoG/PipeRT2 | 357bf8a5fd3f3fe2149b7b0317d2c39dde66561d | [
"MIT"
] | null | null | null | pipert2/core/base/wire.py | MayoG/PipeRT2 | 357bf8a5fd3f3fe2149b7b0317d2c39dde66561d | [
"MIT"
] | null | null | null | from typing import Tuple
from pipert2.core.base.routine import Routine
from pipert2.core.base.data_transmitter import DataTransmitter
class Wire:
def __init__(self, source: Routine, destinations: Tuple[Routine, ...],
data_transmitter: DataTransmitter = None):
self.source = source
... | 31 | 74 | 0.724566 | 44 | 403 | 6.454545 | 0.431818 | 0.211268 | 0.105634 | 0.133803 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006231 | 0.203474 | 403 | 12 | 75 | 33.583333 | 0.878505 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.333333 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
d3b7e6597e88d7b04042f825d4ec69845d3394d8 | 25,264 | py | Python | model-optimizer/mo/middle/passes/infer_test.py | apexxs/dldt | 17e66dc5a6631d630da454506902bd7c25d4170b | [
"Apache-2.0"
] | 2 | 2021-04-19T06:08:35.000Z | 2021-08-25T02:43:43.000Z | model-optimizer/mo/middle/passes/infer_test.py | apexxs/dldt | 17e66dc5a6631d630da454506902bd7c25d4170b | [
"Apache-2.0"
] | 6 | 2022-01-11T18:56:22.000Z | 2022-02-21T13:20:20.000Z | model-optimizer/mo/middle/passes/infer_test.py | apexxs/dldt | 17e66dc5a6631d630da454506902bd7c25d4170b | [
"Apache-2.0"
] | 3 | 2021-02-05T17:11:17.000Z | 2021-04-19T08:33:31.000Z | """
Copyright (c) 2018 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in wri... | 47.488722 | 119 | 0.492638 | 2,875 | 25,264 | 4.060174 | 0.085913 | 0.03598 | 0.03084 | 0.040093 | 0.783518 | 0.747537 | 0.711557 | 0.672321 | 0.57603 | 0.529684 | 0 | 0.03634 | 0.362809 | 25,264 | 531 | 120 | 47.578154 | 0.688781 | 0.053317 | 0 | 0.575058 | 0 | 0 | 0.170565 | 0.000885 | 0 | 0 | 0 | 0 | 0.090069 | 1 | 0.053118 | false | 0.004619 | 0.018476 | 0 | 0.080831 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d3cb25f11e48fd0ae4f5f8f936bf7b7814bdbede | 13,211 | py | Python | ta/wrapper.py | Chih-Ling-Hsu/ta | da7ad25bd25062a8bdc90db8c5326f83f0fc4065 | [
"MIT"
] | null | null | null | ta/wrapper.py | Chih-Ling-Hsu/ta | da7ad25bd25062a8bdc90db8c5326f83f0fc4065 | [
"MIT"
] | null | null | null | ta/wrapper.py | Chih-Ling-Hsu/ta | da7ad25bd25062a8bdc90db8c5326f83f0fc4065 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import pandas as pd
from .volume import *
from .volatility import *
from .trend import *
from .momentum import *
from .others import *
def add_volume_ta(df, high, low, close, volume, fillna=False, colprefix=""):
"""Add volume technical analysis features to dataframe.
Args:
df... | 57.942982 | 150 | 0.633109 | 1,827 | 13,211 | 4.432403 | 0.097427 | 0.157446 | 0.124475 | 0.046184 | 0.836503 | 0.723759 | 0.635466 | 0.561003 | 0.471227 | 0.450852 | 0 | 0.026476 | 0.202331 | 13,211 | 227 | 151 | 58.198238 | 0.741981 | 0.184392 | 0 | 0.180328 | 0 | 0 | 0.129693 | 0.020678 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04918 | false | 0 | 0.04918 | 0 | 0.147541 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d3cf4ad87aad8d23df92bcc5ea6eafff33ce6844 | 355 | py | Python | baixar.py | robertoweller/python | b01939810f7eb388f4b79bfad00abc5fb293d8dd | [
"MIT"
] | null | null | null | baixar.py | robertoweller/python | b01939810f7eb388f4b79bfad00abc5fb293d8dd | [
"MIT"
] | null | null | null | baixar.py | robertoweller/python | b01939810f7eb388f4b79bfad00abc5fb293d8dd | [
"MIT"
] | null | null | null | # pip3 install wget
import wget
# Lista de downloads
d = ['https://5ca0e999-de9a-47e0-9b77-7e3eeab0592c.usrfiles.com/ugd/5ca0e9_7409071f696845778d14c0b6e4f9d2da.pdf', 'https://s1.static.brasilescola.uol.com.br/vestibular/arquivos/cartilha-redacao-a-mil-2018.pdf']
for baixando in d:
nome_arquivo = wget.download... | 27.307692 | 211 | 0.766197 | 48 | 355 | 5.625 | 0.854167 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.155763 | 0.095775 | 355 | 12 | 212 | 29.583333 | 0.685358 | 0.101408 | 0 | 0 | 0 | 0.4 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d3da7a0ff1a3f3ac081b232aa852da449c2c4035 | 3,046 | py | Python | sinewave-stackex.py | ianmcloughlin/pyplot-examples | 394d3eef2bc702cb35b9497e582f8cb72dbb38ed | [
"Apache-2.0"
] | 6 | 2018-09-27T20:40:16.000Z | 2021-10-02T17:07:05.000Z | sinewave-stackex.py | ianmcloughlin/pyplot-examples | 394d3eef2bc702cb35b9497e582f8cb72dbb38ed | [
"Apache-2.0"
] | null | null | null | sinewave-stackex.py | ianmcloughlin/pyplot-examples | 394d3eef2bc702cb35b9497e582f8cb72dbb38ed | [
"Apache-2.0"
] | null | null | null | #! /usr/bin/env python
# This example came from an answer on Stack Exchange, which was found by
# Googling "plot sine wave python". The answer is available here:
# http://stackoverflow.com/questions/22566692/python-how-to-plot-graph-sine-wave
# The original solution was:
#
# import matplotlib.pyplot as plt
# import ... | 38.075 | 80 | 0.711425 | 554 | 3,046 | 3.911552 | 0.398917 | 0.02215 | 0.013844 | 0.009691 | 0.089063 | 0.064144 | 0.044301 | 0.044301 | 0.013844 | 0 | 0 | 0.030637 | 0.196323 | 3,046 | 80 | 81 | 38.075 | 0.854575 | 0.91497 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.