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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c61cc2fb9535813187b83c5b91526a0cf831ee42 | 1,598 | py | Python | problems/leetcode/lt-1839.py | neerajp99/algorithms | 1d6885d2a895821ac511fa8a46913d34db2511ca | [
"MIT"
] | 1 | 2021-06-17T07:59:42.000Z | 2021-06-17T07:59:42.000Z | problems/leetcode/lt-1839.py | neerajp99/algorithms | 1d6885d2a895821ac511fa8a46913d34db2511ca | [
"MIT"
] | null | null | null | problems/leetcode/lt-1839.py | neerajp99/algorithms | 1d6885d2a895821ac511fa8a46913d34db2511ca | [
"MIT"
] | 1 | 2022-01-13T08:42:31.000Z | 2022-01-13T08:42:31.000Z | # 1839. Longest Substring Of All Vowels in Order
"""
A string is considered beautiful if it satisfies the following conditions:
- Each of the 5 English vowels ('a', 'e', 'i', 'o', 'u') must appear at least once in it.
- The letters must be sorted in alphabetical order (i.e. all 'a's before 'e's, al... | 39.95 | 154 | 0.592616 | 212 | 1,598 | 4.448113 | 0.457547 | 0.038176 | 0.040297 | 0.059385 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030387 | 0.320401 | 1,598 | 40 | 155 | 39.95 | 0.837937 | 0.086984 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c62ce8967825eaa3e50a8f3cc514d64b2bbe543f | 786 | py | Python | users/migrations/0005_userpronoun.py | jazzyeagle/chatbot_website | 47da27f85907b5f3f7ea94bffd343a6322b8f39a | [
"BSD-3-Clause"
] | null | null | null | users/migrations/0005_userpronoun.py | jazzyeagle/chatbot_website | 47da27f85907b5f3f7ea94bffd343a6322b8f39a | [
"BSD-3-Clause"
] | null | null | null | users/migrations/0005_userpronoun.py | jazzyeagle/chatbot_website | 47da27f85907b5f3f7ea94bffd343a6322b8f39a | [
"BSD-3-Clause"
] | 1 | 2022-03-05T15:08:45.000Z | 2022-03-05T15:08:45.000Z | # Generated by Django 3.2.8 on 2021-10-24 21:00
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('users', '0004_user_email'),
]
operations = [
migrations.CreateModel(
name='UserPronoun',
... | 31.44 | 117 | 0.599237 | 83 | 786 | 5.566265 | 0.60241 | 0.051948 | 0.116883 | 0.155844 | 0.168831 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043178 | 0.263359 | 786 | 24 | 118 | 32.75 | 0.75475 | 0.057252 | 0 | 0 | 1 | 0 | 0.105548 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.277778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c6306a6c991305cc36020ea51ffc5b0c744976fc | 613 | py | Python | example.py | pudo/docstash | 8dd478701ca60785a06a8ca0681da59c7679c08b | [
"MIT"
] | 1 | 2015-01-02T05:24:28.000Z | 2015-01-02T05:24:28.000Z | example.py | pudo/docstash | 8dd478701ca60785a06a8ca0681da59c7679c08b | [
"MIT"
] | null | null | null | example.py | pudo/docstash | 8dd478701ca60785a06a8ca0681da59c7679c08b | [
"MIT"
] | null | null | null | from docstash import Stash
# open a stash in the current working directory:
stash = Stash(path='.stash')
# print a list of collections:
print list(stash)
# access (or create) a specific collection:
collection = stash.get('test')
# import a file from the local working directory:
collection.ingest('README.md')
# imp... | 22.703704 | 50 | 0.707993 | 90 | 613 | 4.8 | 0.611111 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.169657 | 613 | 26 | 51 | 23.576923 | 0.848723 | 0.443719 | 0 | 0 | 0 | 0 | 0.174699 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.090909 | null | null | 0.181818 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c639edee4552c0e51c58d80f0da7371a2a5111a9 | 3,404 | py | Python | marltoolbox/utils/exploration.py | tobiasbaumann1/amd | cb6190be92dea54db04ef9202d381b96f6f6218b | [
"MIT"
] | null | null | null | marltoolbox/utils/exploration.py | tobiasbaumann1/amd | cb6190be92dea54db04ef9202d381b96f6f6218b | [
"MIT"
] | null | null | null | marltoolbox/utils/exploration.py | tobiasbaumann1/amd | cb6190be92dea54db04ef9202d381b96f6f6218b | [
"MIT"
] | null | null | null | from gym.spaces import Discrete
from ray.rllib.models.action_dist import ActionDistribution
from ray.rllib.models.tf.tf_action_dist import Categorical
from ray.rllib.models.torch.torch_action_dist import TorchCategorical
from ray.rllib.utils.annotations import override
from ray.rllib.utils.exploration.stochastic_sampli... | 46 | 114 | 0.682726 | 373 | 3,404 | 6.096515 | 0.353887 | 0.027704 | 0.047493 | 0.044855 | 0.061566 | 0.028144 | 0 | 0 | 0 | 0 | 0 | 0.003923 | 0.251175 | 3,404 | 73 | 115 | 46.630137 | 0.888191 | 0.272033 | 0 | 0 | 0 | 0 | 0.003354 | 0 | 0 | 0 | 0 | 0.013699 | 0.044444 | 1 | 0.044444 | false | 0 | 0.244444 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c63ad1f80a2cb5614fe8283a636d42a91bd2065a | 612 | py | Python | radiomics/utility.py | RimeT/p3_radio | 3d522a4356c62255cd93c6d74eb388a2e474dd00 | [
"Apache-2.0"
] | null | null | null | radiomics/utility.py | RimeT/p3_radio | 3d522a4356c62255cd93c6d74eb388a2e474dd00 | [
"Apache-2.0"
] | null | null | null | radiomics/utility.py | RimeT/p3_radio | 3d522a4356c62255cd93c6d74eb388a2e474dd00 | [
"Apache-2.0"
] | null | null | null | import logging
def get_logger(log_file=None, name='radiomics_logger'):
logger = logging.getLogger(name)
logger.setLevel(logging.DEBUG)
# stream handler will send message to stdout
formatter = logging.Formatter('%(asctime)s [%(levelname)s] %(message)s', datefmt='%Y-%m-%d %H:%M:%S')
ch = logging.St... | 30.6 | 105 | 0.681373 | 78 | 612 | 5.282051 | 0.5 | 0.050971 | 0.145631 | 0.179612 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.19281 | 612 | 19 | 106 | 32.210526 | 0.834008 | 0.068627 | 0 | 0 | 0 | 0 | 0.126761 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.066667 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c64582309dee071422534453dcc03a37b4291e34 | 343 | py | Python | src/pyrin/api/swagger/__init__.py | wilsonGmn/pyrin | 25dbe3ce17e80a43eee7cfc7140b4c268a6948e0 | [
"BSD-3-Clause"
] | null | null | null | src/pyrin/api/swagger/__init__.py | wilsonGmn/pyrin | 25dbe3ce17e80a43eee7cfc7140b4c268a6948e0 | [
"BSD-3-Clause"
] | null | null | null | src/pyrin/api/swagger/__init__.py | wilsonGmn/pyrin | 25dbe3ce17e80a43eee7cfc7140b4c268a6948e0 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""
swagger package.
"""
from pyrin.packaging.base import Package
class SwaggerPackage(Package):
"""
swagger package class.
"""
NAME = __name__
COMPONENT_NAME = 'api.swagger.component'
CONFIG_STORE_NAMES = ['swagger']
DEPENDS = ['pyrin.api.router',
... | 18.052632 | 44 | 0.620991 | 34 | 343 | 6.058824 | 0.617647 | 0.135922 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003802 | 0.233236 | 343 | 18 | 45 | 19.055556 | 0.779468 | 0.180758 | 0 | 0 | 0 | 0 | 0.244186 | 0.081395 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.857143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
c646df50824a63e542badc8934e4d8ddb5c4d00e | 35,335 | py | Python | vmServer.py | aivaturi/parallels-vm-manager | 9cf3b4d634ff253fcc065d8da31a3267ddb66730 | [
"BSD-2-Clause-FreeBSD"
] | 1 | 2018-05-06T11:48:11.000Z | 2018-05-06T11:48:11.000Z | vmServer.py | aivaturi/parallels-vm-manager | 9cf3b4d634ff253fcc065d8da31a3267ddb66730 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | vmServer.py | aivaturi/parallels-vm-manager | 9cf3b4d634ff253fcc065d8da31a3267ddb66730 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | #!/usr/bin/python
__author__ = 'Aditya Ivaturi'
__version__ = '0.1'
__license__ = 'FreeBSD'
import base64
import json
import logging
import logging.handlers
import os
import re
import sys
import subprocess
import xml.etree.ElementTree
from bottle import *
import prlsdkapi
"""
@package vmServer
@brief Entry point t... | 33.652381 | 107 | 0.570341 | 4,120 | 35,335 | 4.794903 | 0.139563 | 0.028752 | 0.022779 | 0.01711 | 0.41473 | 0.37555 | 0.355707 | 0.312174 | 0.303771 | 0.273197 | 0 | 0.005042 | 0.309636 | 35,335 | 1,049 | 108 | 33.684461 | 0.804788 | 0.063422 | 0 | 0.425806 | 0 | 0.001613 | 0.173216 | 0.019523 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.012903 | 0.017742 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
c648d7ddd00dedfa317f7a5e26a2a60184d61176 | 1,063 | py | Python | tests/test_matrix_props/test_is_unitary.py | paniash/toqito | ab67c2a3fca77b3827be11d1e79531042ea62b82 | [
"MIT"
] | 76 | 2020-01-28T17:02:01.000Z | 2022-02-14T18:02:15.000Z | tests/test_matrix_props/test_is_unitary.py | paniash/toqito | ab67c2a3fca77b3827be11d1e79531042ea62b82 | [
"MIT"
] | 82 | 2020-05-31T20:09:38.000Z | 2022-03-28T17:13:59.000Z | tests/test_matrix_props/test_is_unitary.py | paniash/toqito | ab67c2a3fca77b3827be11d1e79531042ea62b82 | [
"MIT"
] | 30 | 2020-04-02T16:07:11.000Z | 2022-02-05T13:39:22.000Z | """Test is_unitary."""
import numpy as np
from toqito.matrix_props import is_unitary
from toqito.random import random_unitary
def test_is_unitary_random():
"""Test that random unitary matrix returns True."""
mat = random_unitary(2)
np.testing.assert_equal(is_unitary(mat), True)
def test_is_unitary_hard... | 26.575 | 58 | 0.680151 | 163 | 1,063 | 4.177914 | 0.245399 | 0.132159 | 0.066079 | 0.146843 | 0.577093 | 0.468429 | 0.468429 | 0.468429 | 0.414097 | 0.414097 | 0 | 0.021445 | 0.16651 | 1,063 | 39 | 59 | 27.25641 | 0.747178 | 0.216369 | 0 | 0.35 | 0 | 0 | 0.009975 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.25 | false | 0 | 0.15 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d65e9d75fdf5aa545814baa3de5cd7a24e128930 | 662 | py | Python | billing/migrations/0009_longer_product_code.py | jayvdb/django-customer-billing | 8d8b3b111a357b4fae0c0c249c1fc2cfdced3b27 | [
"MIT"
] | 13 | 2017-11-18T14:31:27.000Z | 2021-11-04T08:08:33.000Z | billing/migrations/0009_longer_product_code.py | jayvdb/django-customer-billing | 8d8b3b111a357b4fae0c0c249c1fc2cfdced3b27 | [
"MIT"
] | 3 | 2020-09-16T04:03:18.000Z | 2020-10-05T07:17:57.000Z | billing/migrations/0009_longer_product_code.py | jayvdb/django-customer-billing | 8d8b3b111a357b4fae0c0c249c1fc2cfdced3b27 | [
"MIT"
] | 5 | 2019-09-10T22:24:52.000Z | 2021-10-06T10:43:55.000Z | # Generated by Django 2.0.1 on 2018-01-26 09:41
import django.core.validators
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('billing', '0008_charge_deleted_and_reverses'),
]
operations = [
migrations.AlterField(
model_name=... | 33.1 | 281 | 0.679758 | 84 | 662 | 5.25 | 0.75 | 0.045351 | 0.090703 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05482 | 0.200906 | 662 | 19 | 282 | 34.842105 | 0.778828 | 0.067976 | 0 | 0 | 1 | 0 | 0.281301 | 0.052033 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d65f61e72f0d36f7c7c29ba0ebca46c13f9ce2dd | 1,367 | py | Python | simulations/ngspice/clock.py | matthuszagh/fmcw | b60f18102a948562bfc954de2658ba5fb48c3c79 | [
"Apache-2.0"
] | 14 | 2020-06-21T10:27:03.000Z | 2022-03-07T07:00:21.000Z | simulations/ngspice/adc-filter.py | matthuszagh/fmcw | b60f18102a948562bfc954de2658ba5fb48c3c79 | [
"Apache-2.0"
] | 9 | 2020-08-29T16:32:41.000Z | 2020-12-04T17:52:29.000Z | simulations/ngspice/adc-filter.py | matthuszagh/fmcw | b60f18102a948562bfc954de2658ba5fb48c3c79 | [
"Apache-2.0"
] | 8 | 2020-12-03T07:12:49.000Z | 2022-02-26T11:52:11.000Z | #!/usr/bin/env python
from skidl.pyspice import (
lib_search_paths,
Part,
generate_netlist,
SPICE,
gnd,
node,
no_files,
)
import numpy as np
import os
no_files()
spicelib = os.getenv("SPICELIB")
fname = ".data/adc-filter.dat"
lib_search_paths[SPICE].append(spicelib)
vac = Part("pyspice"... | 23.169492 | 77 | 0.584492 | 203 | 1,367 | 3.857143 | 0.458128 | 0.070243 | 0.045977 | 0.065134 | 0.051086 | 0.051086 | 0 | 0 | 0 | 0 | 0 | 0.037443 | 0.198976 | 1,367 | 58 | 78 | 23.568966 | 0.677626 | 0.014631 | 0 | 0 | 1 | 0 | 0.116642 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 0.0625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d662c479ddf656c97c36e48abeea4e257759114a | 1,945 | py | Python | mne_kit_gui/__init__.py | mne-tools/mne-kit-gui | 811f5618328afff5b54c6cbded90daaababc05a9 | [
"BSD-3-Clause"
] | 1 | 2022-01-16T06:13:56.000Z | 2022-01-16T06:13:56.000Z | mne_kit_gui/__init__.py | mne-tools/mne-kit-gui | 811f5618328afff5b54c6cbded90daaababc05a9 | [
"BSD-3-Clause"
] | 2 | 2022-02-28T17:05:25.000Z | 2022-03-08T12:59:14.000Z | mne_kit_gui/__init__.py | mne-tools/mne-kit-gui | 811f5618328afff5b54c6cbded90daaababc05a9 | [
"BSD-3-Clause"
] | null | null | null | """Convenience functions for opening GUIs."""
# Authors: Christian Brodbeck <christianbrodbeck@nyu.edu>
#
# License: BSD-3-Clause
import os
from mne.utils import verbose, get_config
from ._utils import _check_mayavi_version
from ._backend import _testing_mode
__version__ = '1.1.dev0'
def _initialize_gui(frame, v... | 25.933333 | 73 | 0.686375 | 240 | 1,945 | 5.35 | 0.445833 | 0.031153 | 0.042056 | 0.051402 | 0.125389 | 0.125389 | 0.098131 | 0.098131 | 0.098131 | 0.098131 | 0 | 0.006645 | 0.226221 | 1,945 | 74 | 74 | 26.283784 | 0.846512 | 0.477635 | 0 | 0.32 | 0 | 0 | 0.008989 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.12 | false | 0 | 0.32 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
d663792d81b149606b86cc7ccecf8ea807e84221 | 2,634 | py | Python | nerdle/build_nerdles.py | bacross/nerdle_wordle | 5f9b32a659bb60020d74da75ca9e0a4473ff8420 | [
"MIT"
] | null | null | null | nerdle/build_nerdles.py | bacross/nerdle_wordle | 5f9b32a659bb60020d74da75ca9e0a4473ff8420 | [
"MIT"
] | null | null | null | nerdle/build_nerdles.py | bacross/nerdle_wordle | 5f9b32a659bb60020d74da75ca9e0a4473ff8420 | [
"MIT"
] | null | null | null | import nerdle_cfg
import re
import luigi
import d6tflow
import itertools
import pandas as pd
import numpy as np
#helper functions
def check_len_int(nerdle):
nerdle_str = ''.join(nerdle)
try:
return all(len(x)==len(str(int(x))) for x in re.split('\+|\-|\*|\/|==',nerdle_str))
except:
return ... | 36.583333 | 137 | 0.667806 | 394 | 2,634 | 4.243655 | 0.317259 | 0.08134 | 0.043062 | 0.064593 | 0.235048 | 0.183612 | 0.07177 | 0 | 0 | 0 | 0 | 0.004286 | 0.202733 | 2,634 | 71 | 138 | 37.098592 | 0.791905 | 0.154138 | 0 | 0.136364 | 0 | 0 | 0.115471 | 0.023455 | 0 | 0 | 0 | 0.014085 | 0 | 1 | 0.113636 | false | 0 | 0.159091 | 0.022727 | 0.454545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d66ccd8bf404e1af9b1e07a0a2f97e820b806924 | 4,279 | py | Python | subunit2sql/db/models.py | mtreinish/subunit2sql | 2b46c7b0c793fcde25717667303de95a5bac6831 | [
"Apache-2.0"
] | 3 | 2015-10-28T02:38:06.000Z | 2016-07-11T22:15:30.000Z | subunit2sql/db/models.py | mtreinish/subunit2sql | 2b46c7b0c793fcde25717667303de95a5bac6831 | [
"Apache-2.0"
] | null | null | null | subunit2sql/db/models.py | mtreinish/subunit2sql | 2b46c7b0c793fcde25717667303de95a5bac6831 | [
"Apache-2.0"
] | null | null | null | # Copyright 2014 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 applicable... | 34.788618 | 79 | 0.644076 | 581 | 4,279 | 4.46988 | 0.263339 | 0.092414 | 0.115518 | 0.117058 | 0.434347 | 0.383519 | 0.371198 | 0.32499 | 0.32499 | 0.311513 | 0 | 0.018318 | 0.221781 | 4,279 | 122 | 80 | 35.07377 | 0.761562 | 0.143725 | 0 | 0.243902 | 0 | 0 | 0.099863 | 0.028532 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060976 | false | 0.012195 | 0.060976 | 0.036585 | 0.792683 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
d66dc8b893cd72640672a00128148013f4bb8326 | 1,290 | py | Python | misago/misago/users/serializers/ban.py | vascoalramos/misago-deployment | 20226072138403108046c0afad9d99eb4163cedc | [
"MIT"
] | 2 | 2021-03-06T21:06:13.000Z | 2021-03-09T15:05:12.000Z | misago/misago/users/serializers/ban.py | vascoalramos/misago-deployment | 20226072138403108046c0afad9d99eb4163cedc | [
"MIT"
] | null | null | null | misago/misago/users/serializers/ban.py | vascoalramos/misago-deployment | 20226072138403108046c0afad9d99eb4163cedc | [
"MIT"
] | null | null | null | from django.utils.translation import gettext as _
from rest_framework import serializers
from ...core.utils import format_plaintext_for_html
from ..models import Ban
__all__ = ["BanMessageSerializer", "BanDetailsSerializer"]
def serialize_message(message):
if message:
return {"plain": message, "html": f... | 28.043478 | 77 | 0.697674 | 138 | 1,290 | 6.275362 | 0.362319 | 0.076212 | 0.135104 | 0.050808 | 0.284065 | 0.233256 | 0.233256 | 0.143187 | 0 | 0 | 0 | 0 | 0.212403 | 1,290 | 45 | 78 | 28.666667 | 0.852362 | 0 | 0 | 0.129032 | 0 | 0 | 0.110078 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.129032 | false | 0 | 0.129032 | 0.064516 | 0.612903 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
d670cc41f02be2a8026345d487b6987c9cb985ad | 966 | py | Python | py-numpy/numpy_test.py | DeercoderPractice/exp-code | f49a55feeec0018997011162aa6df5e82b1a18dc | [
"MIT"
] | null | null | null | py-numpy/numpy_test.py | DeercoderPractice/exp-code | f49a55feeec0018997011162aa6df5e82b1a18dc | [
"MIT"
] | null | null | null | py-numpy/numpy_test.py | DeercoderPractice/exp-code | f49a55feeec0018997011162aa6df5e82b1a18dc | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import numpy as np
def test_concatenate():
x = np.array([11, 22])
y = np.array([18, 7, 6])
z = np.array([1, 3, 5])
print np.concatenate((x,y,z))
def test_concatenate2():
x = np.array(range(24))
x = x.reshape((3,4,2))
y = np.array(range(100, 124))
y = y.reshape((3,4,2))
z0 = np.conca... | 17.25 | 58 | 0.60559 | 178 | 966 | 3.185393 | 0.348315 | 0.08642 | 0.056437 | 0.10582 | 0.102293 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 0.188406 | 966 | 55 | 59 | 17.563636 | 0.651786 | 0.039337 | 0 | 0.1 | 0 | 0 | 0.024419 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.025 | null | null | 0.3 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d687f6bd6c4c1c6a86dde2555fc06ece68b6aea6 | 10,698 | py | Python | base/include/wx-3.0/wx/wxPython/i_files/_core_ex.py | jorgediazjr/dials-dev20191018 | 77d66c719b5746f37af51ad593e2941ed6fbba17 | [
"BSD-3-Clause"
] | null | null | null | base/include/wx-3.0/wx/wxPython/i_files/_core_ex.py | jorgediazjr/dials-dev20191018 | 77d66c719b5746f37af51ad593e2941ed6fbba17 | [
"BSD-3-Clause"
] | null | null | null | base/include/wx-3.0/wx/wxPython/i_files/_core_ex.py | jorgediazjr/dials-dev20191018 | 77d66c719b5746f37af51ad593e2941ed6fbba17 | [
"BSD-3-Clause"
] | 1 | 2020-02-04T15:39:06.000Z | 2020-02-04T15:39:06.000Z | #----------------------------------------------------------------------------
# Use Python's bool constants if available, make some if not
try:
True
except NameError:
__builtins__.True = 1==1
__builtins__.False = 1==0
def bool(value): return not not value
__builtins__.bool = bool
# workarounds f... | 32.516717 | 118 | 0.59441 | 1,244 | 10,698 | 4.995981 | 0.294212 | 0.016734 | 0.009654 | 0.010298 | 0.118101 | 0.089139 | 0.082703 | 0.056637 | 0.056637 | 0.043765 | 0 | 0.003101 | 0.246308 | 10,698 | 328 | 119 | 32.615854 | 0.767704 | 0.230697 | 0 | 0.240964 | 0 | 0 | 0.120629 | 0 | 0 | 0 | 0 | 0 | 0.03012 | 0 | null | null | 0.012048 | 0.054217 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d68dbb7af2cab9870799ceaba22af58433602476 | 4,650 | py | Python | test/util/web/test_webapi.py | TomBlock/cate | 3924300a9d85f09fd40bc67b9f8a220230788d1c | [
"MIT"
] | null | null | null | test/util/web/test_webapi.py | TomBlock/cate | 3924300a9d85f09fd40bc67b9f8a220230788d1c | [
"MIT"
] | null | null | null | test/util/web/test_webapi.py | TomBlock/cate | 3924300a9d85f09fd40bc67b9f8a220230788d1c | [
"MIT"
] | 1 | 2019-02-14T13:49:37.000Z | 2019-02-14T13:49:37.000Z | import re
import unittest
from cate.util.web import webapi
class UrlPatternTest(unittest.TestCase):
def test_url_pattern_works(self):
re_pattern = webapi.url_pattern('/open/{{id1}}ws/{{id2}}wf')
matcher = re.fullmatch(re_pattern, '/open/34ws/a66wf')
self.assertIsNotNone(matcher)
s... | 43.457944 | 109 | 0.606022 | 505 | 4,650 | 5.437624 | 0.215842 | 0.142025 | 0.099417 | 0.075747 | 0.61799 | 0.54807 | 0.490168 | 0.450473 | 0.406409 | 0.369993 | 0 | 0.013854 | 0.223871 | 4,650 | 106 | 110 | 43.867925 | 0.747021 | 0 | 0 | 0.321839 | 0 | 0.011494 | 0.209677 | 0.075484 | 0 | 0 | 0 | 0 | 0.402299 | 1 | 0.114943 | false | 0 | 0.034483 | 0 | 0.183908 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d69176a68719e2470e0b957199309e29d8fd8e8f | 2,536 | py | Python | shims/CounterFitConnection/tests/test_counterfit_connection.py | CallumTarttelin/CounterFit | 0f8b2ad8a884339857979dce6aa6dccc9644756b | [
"MIT"
] | 86 | 2021-03-25T22:01:37.000Z | 2022-03-29T19:09:58.000Z | shims/CounterFitConnection/tests/test_counterfit_connection.py | CallumTarttelin/CounterFit | 0f8b2ad8a884339857979dce6aa6dccc9644756b | [
"MIT"
] | 13 | 2021-03-25T22:00:31.000Z | 2022-03-30T17:59:06.000Z | shims/CounterFitConnection/tests/test_counterfit_connection.py | CallumTarttelin/CounterFit | 0f8b2ad8a884339857979dce6aa6dccc9644756b | [
"MIT"
] | 43 | 2021-07-11T04:12:15.000Z | 2022-03-22T01:42:23.000Z | '''
Tests the CounterFit app connection
To run this test, ensure you have the CounterFit Virtual IoT Device app running
'''
# pylint: disable=redefined-outer-name,unused-argument,duplicate-code
import pytest
import time
from counterfit_connection import CounterFitConnection
def test_init_counterfit_device():
'... | 35.71831 | 103 | 0.716088 | 327 | 2,536 | 5.385321 | 0.296636 | 0.132879 | 0.107325 | 0.1113 | 0.499716 | 0.499716 | 0.499716 | 0.441794 | 0.313458 | 0.245315 | 0 | 0.039374 | 0.16877 | 2,536 | 70 | 104 | 36.228571 | 0.796015 | 0.6597 | 0 | 0.222222 | 0 | 0 | 0.107652 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 1 | 0.222222 | false | 0 | 0.166667 | 0 | 0.388889 | 0.055556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d69bb8ef590e236c0045736544d535aeb13a20b4 | 1,467 | py | Python | rddeconv/__init__.py | agriff86/rd-deconvolve | 6d7772674886fe7391f66d6f89c03aca5e73d226 | [
"MIT"
] | null | null | null | rddeconv/__init__.py | agriff86/rd-deconvolve | 6d7772674886fe7391f66d6f89c03aca5e73d226 | [
"MIT"
] | null | null | null | rddeconv/__init__.py | agriff86/rd-deconvolve | 6d7772674886fe7391f66d6f89c03aca5e73d226 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Correct (deconvolve) the output from two-filter radon detectors"""
from rddeconv import metadata
__version__ = metadata.version
__author__ = metadata.authors[0]
__license__ = metadata.license
__copyright__ = metadata.copyright
from .deconvolve import deconvolve_dataframe
from .deconvolve ... | 29.34 | 115 | 0.781186 | 194 | 1,467 | 5.695876 | 0.448454 | 0.021719 | 0.038009 | 0.054299 | 0.208145 | 0.048869 | 0.048869 | 0 | 0 | 0 | 0 | 0.013047 | 0.111793 | 1,467 | 49 | 116 | 29.938776 | 0.834996 | 0.369461 | 0 | 0 | 0 | 0.04 | 0.126374 | 0.08022 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.44 | 0 | 0.44 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
d69d247d1bb8bc0ec0fee7b9d03d47f29430fffe | 5,355 | py | Python | moby_distribution/registry/auth.py | shabbywu/distribution | decc93545094089408e1da629a2e8253fc359a90 | [
"Apache-2.0"
] | 7 | 2021-12-15T16:02:32.000Z | 2022-03-18T08:15:12.000Z | moby_distribution/registry/auth.py | shabbywu/distribution | decc93545094089408e1da629a2e8253fc359a90 | [
"Apache-2.0"
] | null | null | null | moby_distribution/registry/auth.py | shabbywu/distribution | decc93545094089408e1da629a2e8253fc359a90 | [
"Apache-2.0"
] | 1 | 2022-03-18T08:04:46.000Z | 2022-03-18T08:04:46.000Z | # -*- coding: utf-8 -*-
import base64
import logging
from typing import Any, Dict, Optional
import requests
from www_authenticate import parse
from moby_distribution.registry.exceptions import AuthFailed
from moby_distribution.spec.auth import TokenResponse
logger = logging.getLogger(__name__)
class AuthorizationP... | 35.7 | 116 | 0.67619 | 552 | 5,355 | 6.403986 | 0.242754 | 0.089109 | 0.053748 | 0.031117 | 0.209618 | 0.175389 | 0.158982 | 0.130693 | 0.130693 | 0.106931 | 0 | 0.00435 | 0.227264 | 5,355 | 149 | 117 | 35.939597 | 0.849928 | 0.139869 | 0 | 0.138298 | 0 | 0 | 0.081147 | 0.025122 | 0 | 0 | 0 | 0 | 0.021277 | 1 | 0.138298 | false | 0.159574 | 0.074468 | 0.010638 | 0.425532 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
d6a7048a07fd1d07a020f8325e1a4360c8950b4a | 5,238 | py | Python | DesignAddon/DesignBeh/BlockEntityScripts/ClientSystem.py | linyuzhe210/BlockEntityChestDemo | b3c3f5027355bad47f9286b9aca2ee01b0fe41fb | [
"MIT"
] | 3 | 2021-09-18T03:11:34.000Z | 2022-02-15T05:55:08.000Z | DesignAddon/DesignBeh/BlockEntityScripts/ClientSystem.py | linyuzhe210/BlockEntityChestDemo | b3c3f5027355bad47f9286b9aca2ee01b0fe41fb | [
"MIT"
] | null | null | null | DesignAddon/DesignBeh/BlockEntityScripts/ClientSystem.py | linyuzhe210/BlockEntityChestDemo | b3c3f5027355bad47f9286b9aca2ee01b0fe41fb | [
"MIT"
] | 1 | 2022-02-15T05:59:04.000Z | 2022-02-15T05:59:04.000Z | # -*- coding: UTF-8 -*-
from mod.client.system.clientSystem import ClientSystem
import mod.client.extraClientApi as clientApi
import time
class Main(ClientSystem):
def __init__(self, namespace, system_name):
ClientSystem.__init__(self, namespace, system_name)
namespace = clientApi.GetEn... | 45.547826 | 140 | 0.609011 | 524 | 5,238 | 5.887405 | 0.278626 | 0.035008 | 0.049595 | 0.040519 | 0.344571 | 0.279417 | 0.152998 | 0.057699 | 0.031118 | 0.031118 | 0 | 0.00849 | 0.280451 | 5,238 | 115 | 141 | 45.547826 | 0.810029 | 0.185376 | 0 | 0.086957 | 0 | 0 | 0.090138 | 0.023595 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.043478 | null | null | 0.014493 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d6a70cecd39fcb0d47b7ab5bf600f063f2009b91 | 11,694 | py | Python | audiochall.py | CodeAchieveDream/SpeechRecognition | 972362258162c557d172edfada566a8665e95582 | [
"Apache-2.0"
] | 3 | 2019-06-19T13:59:07.000Z | 2021-04-10T07:03:07.000Z | audiochall.py | CodeAchieveDream/SpeechRecognition | 972362258162c557d172edfada566a8665e95582 | [
"Apache-2.0"
] | null | null | null | audiochall.py | CodeAchieveDream/SpeechRecognition | 972362258162c557d172edfada566a8665e95582 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
import numpy as np
import time
import tensorflow as tf
from tensorflow.python.ops import ctc_ops
from collections import Counter
yuyinutils = __import__("audioutils")
sparse_tuple_to_texts_ch = yuyinutils.sparse_tuple_to_texts_ch
ndarray_to_text_ch = yuyinutils.ndarray_to_text_c... | 38.467105 | 142 | 0.640157 | 1,644 | 11,694 | 4.259124 | 0.220803 | 0.024422 | 0.020423 | 0.035704 | 0.249357 | 0.228935 | 0.169666 | 0.134533 | 0.067409 | 0.05884 | 0 | 0.026522 | 0.24876 | 11,694 | 303 | 143 | 38.594059 | 0.770518 | 0 | 0 | 0 | 0 | 0.036232 | 0.079698 | 0.019578 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.007246 | null | null | 0.144928 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d6ab21eeb7ae59727fec9084c5522218c05e4097 | 4,158 | py | Python | ergo/platforms/metaculus/question/lineardate.py | bmillwood/ergo | 34be736f1979ad7f1f130bb90728270cb58dbfe8 | [
"MIT"
] | 2 | 2020-06-04T17:06:51.000Z | 2021-01-03T04:41:05.000Z | ergo/platforms/metaculus/question/lineardate.py | bmillwood/ergo | 34be736f1979ad7f1f130bb90728270cb58dbfe8 | [
"MIT"
] | null | null | null | ergo/platforms/metaculus/question/lineardate.py | bmillwood/ergo | 34be736f1979ad7f1f130bb90728270cb58dbfe8 | [
"MIT"
] | null | null | null | from datetime import date, datetime, timedelta
import pandas as pd
from plotnine import (
aes,
element_text,
facet_wrap,
geom_histogram,
ggplot,
guides,
scale_fill_brewer,
scale_x_datetime,
theme,
)
from ergo.theme import ergo_theme
from .linear import LinearQuestion
class Linea... | 30.350365 | 87 | 0.580087 | 472 | 4,158 | 4.991525 | 0.305085 | 0.033107 | 0.036078 | 0.035654 | 0.257216 | 0.182513 | 0.182513 | 0.160441 | 0.160441 | 0.160441 | 0 | 0.007777 | 0.319625 | 4,158 | 136 | 88 | 30.573529 | 0.825027 | 0.206109 | 0 | 0.181818 | 0 | 0 | 0.055823 | 0 | 0 | 0 | 0 | 0.022059 | 0 | 1 | 0.102273 | false | 0 | 0.056818 | 0.045455 | 0.295455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d6afa7dacc3eb098d4cdcf9228ba83d3ef0e3f02 | 3,802 | py | Python | vyperlogix/gds/otp.py | raychorn/chrome_gui | f1fade70b61af12ee43c55c075aa9cfd32caa962 | [
"CC0-1.0"
] | 1 | 2020-09-29T01:36:33.000Z | 2020-09-29T01:36:33.000Z | vyperlogix/gds/otp.py | raychorn/chrome_gui | f1fade70b61af12ee43c55c075aa9cfd32caa962 | [
"CC0-1.0"
] | null | null | null | vyperlogix/gds/otp.py | raychorn/chrome_gui | f1fade70b61af12ee43c55c075aa9cfd32caa962 | [
"CC0-1.0"
] | null | null | null | '''
This module provides an Otp object that can be used to get one time
pad strings. It should be adequate for situations that don't require
high security.
You can call the module directly as a script; it will want the
number of otp strings to print out and an optional seed number.
For example, 'python otp.py 20' wi... | 36.557692 | 73 | 0.69253 | 612 | 3,802 | 4.269608 | 0.405229 | 0.013777 | 0.013777 | 0.015308 | 0.031382 | 0.021431 | 0 | 0 | 0 | 0 | 0 | 0.038304 | 0.230931 | 3,802 | 103 | 74 | 36.912621 | 0.855335 | 0.023146 | 0 | 0.1 | 0 | 0.025 | 0.072131 | 0 | 0 | 0 | 0.047541 | 0 | 0 | 0 | null | null | 0 | 0.05 | null | null | 0.05 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d6b404b863690167cae21f7d4ec292b6f04b970d | 1,877 | py | Python | kats/tests/models/test_harmonic_regression.py | ottertune/ottertune-kats | 5e834958c64ce05ceb290d18163e4ec7ab95c0f4 | [
"MIT"
] | null | null | null | kats/tests/models/test_harmonic_regression.py | ottertune/ottertune-kats | 5e834958c64ce05ceb290d18163e4ec7ab95c0f4 | [
"MIT"
] | null | null | null | kats/tests/models/test_harmonic_regression.py | ottertune/ottertune-kats | 5e834958c64ce05ceb290d18163e4ec7ab95c0f4 | [
"MIT"
] | 1 | 2021-11-30T02:36:40.000Z | 2021-11-30T02:36:40.000Z | # Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import os
import unittest
from unittest import TestCase
import pkgutil
import io
import numpy as np
import pandas as pd
from kats.consts import... | 31.813559 | 81 | 0.671817 | 243 | 1,877 | 5.074074 | 0.485597 | 0.044607 | 0.048662 | 0.009732 | 0.004866 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033898 | 0.214172 | 1,877 | 58 | 82 | 32.362069 | 0.802034 | 0.185935 | 0 | 0 | 0 | 0 | 0.032873 | 0 | 0 | 0 | 0 | 0.017241 | 0.073171 | 1 | 0.073171 | false | 0 | 0.219512 | 0 | 0.341463 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d6b93447e2023796454de9b79bf22eee737e3fb2 | 3,641 | py | Python | 1.py | gewplay/e5 | 334d33641a7cc03b80c11ea4d18b4123473b61d9 | [
"Apache-2.0"
] | 9 | 2021-07-14T15:10:16.000Z | 2022-03-20T07:32:39.000Z | 1.py | gewplay/e5 | 334d33641a7cc03b80c11ea4d18b4123473b61d9 | [
"Apache-2.0"
] | null | null | null | 1.py | gewplay/e5 | 334d33641a7cc03b80c11ea4d18b4123473b61d9 | [
"Apache-2.0"
] | null | null | null | # -*- coding: UTF-8 -*-
from os import lseek
import requests as req
import json,sys,time
#先注册azure应用,确保应用有以下权限:
#files: Files.Read.All、Files.ReadWrite.All、Sites.Read.All、Sites.ReadWrite.All
#user: User.Read.All、User.ReadWrite.All、Directory.Read.All、Directory.ReadWrite.All
#mail: Mail.Read、Mail.ReadWrite、MailboxSetting... | 37.153061 | 127 | 0.614666 | 486 | 3,641 | 4.532922 | 0.26749 | 0.07626 | 0.039946 | 0.044939 | 0.482978 | 0.460281 | 0.427599 | 0.427599 | 0.310032 | 0.310032 | 0 | 0.040579 | 0.221642 | 3,641 | 97 | 128 | 37.536082 | 0.736768 | 0.086515 | 0 | 0.240506 | 0 | 0.012658 | 0.279385 | 0.009946 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025316 | false | 0.050633 | 0.037975 | 0 | 0.075949 | 0.177215 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
d6bcdb68050a6232d46b911f88ced7438ee83eb5 | 284 | py | Python | server/tests/test_leds.py | jeffeb3/sandypi | d8835e231f52738629371d46e99d3a36cf07b391 | [
"MIT"
] | null | null | null | server/tests/test_leds.py | jeffeb3/sandypi | d8835e231f52738629371d46e99d3a36cf07b391 | [
"MIT"
] | null | null | null | server/tests/test_leds.py | jeffeb3/sandypi | d8835e231f52738629371d46e99d3a36cf07b391 | [
"MIT"
] | null | null | null | from server.hw_controller.leds.leds_driver import LedsDriver
def test_led_driver_error():
try:
ld = LedsDriver()
except:
assert(True)
def test_led_driver():
try:
ld = LedsDriver((30,20))
assert(True)
except:
assert(False)
| 18.933333 | 60 | 0.609155 | 34 | 284 | 4.882353 | 0.588235 | 0.084337 | 0.120482 | 0.192771 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019901 | 0.292254 | 284 | 15 | 61 | 18.933333 | 0.80597 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.166667 | false | 0 | 0.083333 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d6c42e34b5e6637eeda93f566a989fc82f362671 | 3,186 | py | Python | tests/examples/test_nwchem_pymatgen.py | nkeilbart/aiida-nwchem | d5199b8a94fc2ec8ed30d3370ceac3826312b757 | [
"MIT"
] | 1 | 2019-12-12T15:54:58.000Z | 2019-12-12T15:54:58.000Z | tests/examples/test_nwchem_pymatgen.py | nkeilbart/aiida-nwchem | d5199b8a94fc2ec8ed30d3370ceac3826312b757 | [
"MIT"
] | 10 | 2017-11-16T15:53:39.000Z | 2021-12-07T16:34:18.000Z | tests/examples/test_nwchem_pymatgen.py | nkeilbart/aiida-nwchem | d5199b8a94fc2ec8ed30d3370ceac3826312b757 | [
"MIT"
] | 6 | 2018-08-14T13:26:30.000Z | 2021-12-31T14:37:31.000Z | #!/usr/bin/env runaiida
# -*- coding: utf-8 -*-
###########################################################################
# Copyright (c), The AiiDA team. All rights reserved. #
# This file is part of the AiiDA code. #
# ... | 32.181818 | 78 | 0.521657 | 329 | 3,186 | 4.942249 | 0.486322 | 0.0246 | 0.01476 | 0.016605 | 0.124231 | 0.124231 | 0.124231 | 0.124231 | 0.124231 | 0.124231 | 0 | 0.027622 | 0.272756 | 3,186 | 98 | 79 | 32.510204 | 0.674148 | 0.160389 | 0 | 0.138889 | 0 | 0 | 0.244672 | 0.022131 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.055556 | null | null | 0.069444 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d6cb06949c7ffe91c0234c2863683d46c8682930 | 468 | py | Python | umb/admin/forms.py | LuckyWirasakti/umb | 33507a27319e498f1d23de469d9a4d59a59480ac | [
"MIT"
] | null | null | null | umb/admin/forms.py | LuckyWirasakti/umb | 33507a27319e498f1d23de469d9a4d59a59480ac | [
"MIT"
] | null | null | null | umb/admin/forms.py | LuckyWirasakti/umb | 33507a27319e498f1d23de469d9a4d59a59480ac | [
"MIT"
] | null | null | null |
from umb.admin.models import Master, Weight
from django import forms
class WeightForm(forms.ModelForm):
class Meta:
model = Weight
fields = '__all__'
class MasterForm(forms.ModelForm):
class Meta:
model = Master
fields = '__all__'
def __init__(self, *args, **kwargs):
... | 26 | 64 | 0.636752 | 53 | 468 | 5.301887 | 0.584906 | 0.099644 | 0.135231 | 0.163701 | 0.199288 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | 468 | 18 | 64 | 26 | 0.80057 | 0 | 0 | 0.285714 | 0 | 0 | 0.066381 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.142857 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d6cd435c33d2b167dae04b922def439b034a8b04 | 308 | py | Python | pacote-download/Python/modulo01/python01ex/ex049.py | fabiosabariego/curso-python | a4ffff53ff9e92b5ef0de637e9bcce25f7feebd9 | [
"MIT"
] | null | null | null | pacote-download/Python/modulo01/python01ex/ex049.py | fabiosabariego/curso-python | a4ffff53ff9e92b5ef0de637e9bcce25f7feebd9 | [
"MIT"
] | null | null | null | pacote-download/Python/modulo01/python01ex/ex049.py | fabiosabariego/curso-python | a4ffff53ff9e92b5ef0de637e9bcce25f7feebd9 | [
"MIT"
] | null | null | null | """
Refaça o desafio 9, mostrando a tabuada do numero que o usuário escolher, só que faça com for
"""
res = 0
num = int(input('Digite um numero: '))
print('=' * 20)
print('A Tabuada do {} é:'.format(num))
print('=' * 20)
for c in range(1, 11):
res = num * c
print('{} x {} = {}'.format(num, c, res))
| 25.666667 | 93 | 0.590909 | 52 | 308 | 3.5 | 0.634615 | 0.087912 | 0.10989 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037037 | 0.211039 | 308 | 11 | 94 | 28 | 0.711934 | 0.301948 | 0 | 0.25 | 0 | 0 | 0.241546 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
d6d07994959cfeee4ff1897a9f6de1573d8c8c16 | 3,126 | py | Python | Baselines/OLTR/Codes/algorithms/basiconlineranker.py | nju-websoft/TRAVERS | 54b58e29bebc3cd9c01a2d47efcc25b2d2b98876 | [
"Apache-2.0"
] | 55 | 2018-08-31T13:13:08.000Z | 2021-12-09T06:12:04.000Z | Baselines/OLTR/Codes/algorithms/basiconlineranker.py | nju-websoft/TRAVERS | 54b58e29bebc3cd9c01a2d47efcc25b2d2b98876 | [
"Apache-2.0"
] | 1 | 2018-10-03T12:52:10.000Z | 2020-09-10T12:57:57.000Z | Baselines/OLTR/Codes/algorithms/basiconlineranker.py | nju-websoft/TRAVERS | 54b58e29bebc3cd9c01a2d47efcc25b2d2b98876 | [
"Apache-2.0"
] | 7 | 2018-11-28T13:34:47.000Z | 2021-02-12T23:45:48.000Z | # -*- coding: utf-8 -*-
import sys
import os
sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
import numpy as np
import utils.rankings as rnk
class BasicOnlineRanker(object):
def __init__(self, n_results, n_features):
self.n_features = n_features
self.n_results = n_results
self.n_interac... | 31.26 | 66 | 0.644274 | 392 | 3,126 | 4.755102 | 0.229592 | 0.106223 | 0.060086 | 0.05794 | 0.244099 | 0.174893 | 0.129828 | 0.06867 | 0.06867 | 0.06867 | 0 | 0.003951 | 0.271273 | 3,126 | 100 | 67 | 31.26 | 0.814311 | 0.03007 | 0 | 0.131579 | 0 | 0 | 0.000662 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.223684 | false | 0.013158 | 0.052632 | 0.026316 | 0.394737 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d6d8cc120ba62692d5855b96259e5afc5396c660 | 6,868 | py | Python | examples/kiva/service/kiva.py | aashish24/tangelo | fcaf2542d48904055558fa43c8d50533afc9ad71 | [
"Apache-2.0"
] | 1 | 2015-06-13T09:28:36.000Z | 2015-06-13T09:28:36.000Z | examples/kiva/service/kiva.py | aashish24/tangelo | fcaf2542d48904055558fa43c8d50533afc9ad71 | [
"Apache-2.0"
] | null | null | null | examples/kiva/service/kiva.py | aashish24/tangelo | fcaf2542d48904055558fa43c8d50533afc9ad71 | [
"Apache-2.0"
] | null | null | null | import bson.json_util
import datetime
import pymongo
import json
import cherrypy
import tangelo
def run(servername, dbname, type, datatype, querydata = None,
collection = None, by = None, datemin = None, datemax = None, count = 100):
# Check if we have valid count value if not default to 100
try:
... | 43.745223 | 121 | 0.533489 | 774 | 6,868 | 4.673127 | 0.237726 | 0.01493 | 0.013271 | 0.019906 | 0.318496 | 0.276196 | 0.190766 | 0.153166 | 0.112524 | 0.081559 | 0 | 0.00731 | 0.322801 | 6,868 | 156 | 122 | 44.025641 | 0.770372 | 0.147204 | 0 | 0.284404 | 0 | 0 | 0.221879 | 0.035665 | 0 | 0 | 0 | 0.00641 | 0 | 0 | null | null | 0 | 0.055046 | null | null | 0.009174 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d6eb15f530e67e9e883282f35bb43814730592e9 | 9,640 | py | Python | ML/learn/algorithm/activation_functions.py | qrsforever/workspace | 53c7ce7ca7da62c9fbb3d991ae9e4e34d07ece5f | [
"MIT"
] | 2 | 2017-06-07T03:20:42.000Z | 2020-01-07T09:14:26.000Z | ML/learn/algorithm/activation_functions.py | qrsforever/workspace | 53c7ce7ca7da62c9fbb3d991ae9e4e34d07ece5f | [
"MIT"
] | null | null | null | ML/learn/algorithm/activation_functions.py | qrsforever/workspace | 53c7ce7ca7da62c9fbb3d991ae9e4e34d07ece5f | [
"MIT"
] | null | null | null | #!/usr/bin/python3
# -*- coding: utf-8 -*-
# @file activation_functions.py
# @brief
# @author QRS
# @blog qrsforever.github.io
# @version 1.0
# @date 2019-05-29 18:24:39
################################ jupyter-vim #######################################
# https://github.com/qrsforever/vim/blob/master/bundle/.config... | 31.92053 | 85 | 0.41971 | 1,292 | 9,640 | 3.094427 | 0.151703 | 0.04002 | 0.017259 | 0.054027 | 0.50075 | 0.468484 | 0.436968 | 0.397199 | 0.336418 | 0.301901 | 0 | 0.0415 | 0.172614 | 9,640 | 301 | 86 | 32.026578 | 0.459754 | 0.070747 | 0 | 0.22807 | 0 | 0.011696 | 0.272201 | 0.042471 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064327 | false | 0 | 0.011696 | 0.046784 | 0.134503 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d6ef504528353eafb7b508490d0705758b1ef851 | 4,736 | py | Python | guestbook.py | tgirotto/bigdata-test | a67d1c3e1cfb64923b6158d5c0cc7fa8783e47f8 | [
"Apache-2.0"
] | null | null | null | guestbook.py | tgirotto/bigdata-test | a67d1c3e1cfb64923b6158d5c0cc7fa8783e47f8 | [
"Apache-2.0"
] | null | null | null | guestbook.py | tgirotto/bigdata-test | a67d1c3e1cfb64923b6158d5c0cc7fa8783e47f8 | [
"Apache-2.0"
] | null | null | null | import os
import urllib
import csv
from google.appengine.api import users
from google.appengine.ext import ndb
import jinja2
import webapp2
JINJA_ENVIRONMENT = jinja2.Environment(
loader=jinja2.FileSystemLoader(os.path.dirname(__file__)),
extensions=['jinja2.ext.autoescape'],
autoescape=True)
DEFAULT_GU... | 29.974684 | 95 | 0.635346 | 528 | 4,736 | 5.579545 | 0.268939 | 0.07943 | 0.052274 | 0.049219 | 0.360828 | 0.253904 | 0.218601 | 0.218601 | 0.218601 | 0.218601 | 0 | 0.005282 | 0.240498 | 4,736 | 157 | 96 | 30.165605 | 0.813734 | 0.165329 | 0 | 0.108434 | 0 | 0 | 0.064607 | 0.005899 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.084337 | null | null | 0.036145 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d6f51d173ed7067c938510594977bbe58a312088 | 2,654 | py | Python | platypush/message/event/music/snapcast.py | RichardChiang/platypush | 1777ebb0516118cdef20046a92caab496fa7c6cb | [
"MIT"
] | 228 | 2018-01-30T11:17:09.000Z | 2022-03-24T11:22:26.000Z | platypush/message/event/music/snapcast.py | RichardChiang/platypush | 1777ebb0516118cdef20046a92caab496fa7c6cb | [
"MIT"
] | 167 | 2017-12-11T19:35:38.000Z | 2022-03-27T14:45:30.000Z | platypush/message/event/music/snapcast.py | BlackLight/runbullet | 8d26c8634d2677b4402f0a21b9ab8244b44640db | [
"MIT"
] | 16 | 2018-05-03T07:31:56.000Z | 2021-12-05T19:27:37.000Z | from platypush.message.event import Event
class SnapcastEvent(Event):
""" Base class for Snapcast events """
def __init__(self, host='localhost', *args, **kwargs):
super().__init__(host=host, *args, **kwargs)
class ClientConnectedEvent(SnapcastEvent):
"""
Event fired upon client connection
... | 27.645833 | 88 | 0.646194 | 288 | 2,654 | 5.666667 | 0.1875 | 0.122549 | 0.067402 | 0.140931 | 0.573529 | 0.447304 | 0.393382 | 0.360294 | 0.321078 | 0.259804 | 0 | 0.000956 | 0.211756 | 2,654 | 95 | 89 | 27.936842 | 0.779159 | 0.15373 | 0 | 0.176471 | 0 | 0 | 0.042776 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.294118 | false | 0 | 0.029412 | 0 | 0.617647 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d6fb3a894fd5de2d71133641106fc703037f783d | 4,785 | py | Python | nwb_conversion_tools/utils/createextractors.py | miketrumpis/nwb-conversion-tools | 4d5c270b70eb4f1c09f98a6c04b51ccdf20336c1 | [
"BSD-3-Clause"
] | null | null | null | nwb_conversion_tools/utils/createextractors.py | miketrumpis/nwb-conversion-tools | 4d5c270b70eb4f1c09f98a6c04b51ccdf20336c1 | [
"BSD-3-Clause"
] | null | null | null | nwb_conversion_tools/utils/createextractors.py | miketrumpis/nwb-conversion-tools | 4d5c270b70eb4f1c09f98a6c04b51ccdf20336c1 | [
"BSD-3-Clause"
] | null | null | null | from distutils.version import StrictVersion
import numpy as np
try:
from spikeinterface.core.testing_tools import generate_recording, generate_sorting
import spikeinterface as si
if StrictVersion(si.__version__[:4]) >= StrictVersion("0.90"):
HAVE_SI_090 = True
else:
HAVE_SI_090 = Fals... | 39.875 | 114 | 0.699478 | 708 | 4,785 | 4.484463 | 0.194915 | 0.032126 | 0.047874 | 0.057953 | 0.436535 | 0.343937 | 0.263622 | 0.245354 | 0.245354 | 0.245354 | 0 | 0.061825 | 0.168443 | 4,785 | 119 | 115 | 40.210084 | 0.736115 | 0.04953 | 0 | 0.0625 | 1 | 0 | 0.039401 | 0 | 0 | 0 | 0 | 0 | 0.020833 | 1 | 0.020833 | false | 0 | 0.072917 | 0 | 0.114583 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ba315c153e335ec37c4f16d8c5f664127cee5343 | 2,306 | py | Python | graph/tests/bfs_test.py | RobMcZag/python-algorithms3 | 635e347d942612f6caa4e769a825bcfb26cf24ab | [
"Apache-2.0"
] | 1 | 2020-02-02T07:28:36.000Z | 2020-02-02T07:28:36.000Z | graph/tests/bfs_test.py | RobMcZag/python-algorithms3 | 635e347d942612f6caa4e769a825bcfb26cf24ab | [
"Apache-2.0"
] | null | null | null | graph/tests/bfs_test.py | RobMcZag/python-algorithms3 | 635e347d942612f6caa4e769a825bcfb26cf24ab | [
"Apache-2.0"
] | null | null | null | import unittest
import graph
class BreadthFirstSearchTest(unittest.TestCase):
__runSlowTests = False
def testTinyGraph(self):
g = graph.Graph.from_file('tinyG.txt')
bfs = graph.BreadthFirstSearch(g, 0)
self.assertEqual(7, bfs.count())
self.assertFalse(bfs.connected(7))
... | 30.342105 | 90 | 0.62706 | 304 | 2,306 | 4.661184 | 0.197368 | 0.190543 | 0.095272 | 0.0494 | 0.693013 | 0.547636 | 0.412138 | 0.375441 | 0.310515 | 0.310515 | 0 | 0.057542 | 0.223764 | 2,306 | 75 | 91 | 30.746667 | 0.734078 | 0 | 0 | 0.264151 | 0 | 0 | 0.021249 | 0 | 0 | 0 | 0 | 0 | 0.660377 | 1 | 0.075472 | false | 0 | 0.037736 | 0 | 0.150943 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ba3ee82d40d629f1adffa3d605d44f95df5c839b | 3,337 | py | Python | lidar_convenience.py | mrtpk/lidar-buster | 1bb1d59d2d470af4c08350cbd912081728cd01eb | [
"MIT"
] | 17 | 2018-09-11T05:17:48.000Z | 2021-03-23T02:10:59.000Z | lidar_convenience.py | mrtpk/lidar-buster | 1bb1d59d2d470af4c08350cbd912081728cd01eb | [
"MIT"
] | 1 | 2019-03-02T11:56:58.000Z | 2019-03-26T11:27:20.000Z | lidar_convenience.py | mrtpk/lidar-buster | 1bb1d59d2d470af4c08350cbd912081728cd01eb | [
"MIT"
] | 7 | 2018-09-10T06:34:38.000Z | 2021-04-22T12:12:02.000Z | import numpy as np
class LidarTools(object):
'''
Collection of helpers for processing LiDAR point cloud.
'''
def get_bev(self, points, resolution=0.1, pixel_values=None, generate_img=None):
'''
Returns bird's eye view of a LiDAR point cloud for a given resolution.
Optional pixe... | 45.094595 | 118 | 0.578663 | 476 | 3,337 | 3.894958 | 0.241597 | 0.035599 | 0.070119 | 0.0863 | 0.237325 | 0.226537 | 0.174757 | 0.059331 | 0.059331 | 0.033441 | 0 | 0.023285 | 0.292179 | 3,337 | 74 | 119 | 45.094595 | 0.761643 | 0.159724 | 0 | 0.130435 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.021739 | 0 | 0.152174 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ba4a2bb069a6b80480b69f45f8b6fb39a177e234 | 1,442 | py | Python | machine-learning-box/sales-prediction/py_scripts/data.py | akito19/treasure-boxes | a70f69944ba40a2561c76fee3f27d47d9b8c68a7 | [
"MIT"
] | null | null | null | machine-learning-box/sales-prediction/py_scripts/data.py | akito19/treasure-boxes | a70f69944ba40a2561c76fee3f27d47d9b8c68a7 | [
"MIT"
] | null | null | null | machine-learning-box/sales-prediction/py_scripts/data.py | akito19/treasure-boxes | a70f69944ba40a2561c76fee3f27d47d9b8c68a7 | [
"MIT"
] | null | null | null | import os
import pandas as pd
os.system(f"{sys.executable} -m pip install -U pytd==0.8.0 td-client")
import pytd
from tdclient.errors import NotFoundError
def database_exists(database, client):
try:
client.api_client.database(database)
return True
except NotFoundError:
pass
re... | 24.862069 | 110 | 0.70111 | 186 | 1,442 | 5.268817 | 0.38172 | 0.1 | 0.102041 | 0.085714 | 0.340816 | 0.17551 | 0.17551 | 0.095918 | 0 | 0 | 0 | 0.002616 | 0.204577 | 1,442 | 57 | 111 | 25.298246 | 0.851787 | 0 | 0 | 0.358974 | 0 | 0.025641 | 0.196949 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.102564 | false | 0.051282 | 0.102564 | 0 | 0.410256 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
ba4f17abfb789ff82760d2ddecbb7d269df9d1f1 | 410 | py | Python | project/backend/migrations/0005_alter_item_category.py | ryan-lam/hackathonx2021 | 1bdab8c474c5bfa37a17703761357092521128aa | [
"MIT"
] | 1 | 2021-07-27T14:01:35.000Z | 2021-07-27T14:01:35.000Z | project/backend/migrations/0005_alter_item_category.py | ryan-lam/hackathonx2021 | 1bdab8c474c5bfa37a17703761357092521128aa | [
"MIT"
] | null | null | null | project/backend/migrations/0005_alter_item_category.py | ryan-lam/hackathonx2021 | 1bdab8c474c5bfa37a17703761357092521128aa | [
"MIT"
] | 2 | 2021-07-09T19:54:53.000Z | 2021-07-10T16:46:00.000Z | # Generated by Django 3.2 on 2021-06-26 00:30
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('backend', '0004_alter_item_description'),
]
operations = [
migrations.AlterField(
model_name='item',
name='category',
... | 21.578947 | 72 | 0.612195 | 43 | 410 | 5.72093 | 0.837209 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.07047 | 0.273171 | 410 | 18 | 73 | 22.777778 | 0.755034 | 0.104878 | 0 | 0 | 1 | 0 | 0.150685 | 0.073973 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ba51e18d0512c3bf2181b9fdd5ee34ef5e1e672e | 1,645 | py | Python | shot.py | RanlyX/web_screenshot | 8fa988f831aee3b71a91ce627b07e1467adb6fb4 | [
"MIT"
] | null | null | null | shot.py | RanlyX/web_screenshot | 8fa988f831aee3b71a91ce627b07e1467adb6fb4 | [
"MIT"
] | null | null | null | shot.py | RanlyX/web_screenshot | 8fa988f831aee3b71a91ce627b07e1467adb6fb4 | [
"MIT"
] | null | null | null | # !usr/bin/python
# -*- coding:utf-8 -*-
import re
import sys
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
# Text color define
T_LIGHT_RED = "\033[1;31m"
NORMAL = "\033[m"
# Some phish url will be report "hxxp" or "hxxps"
def refinedURL(url):
refined = re.su... | 25.307692 | 97 | 0.634043 | 209 | 1,645 | 4.818182 | 0.449761 | 0.116187 | 0.047666 | 0.0715 | 0.075472 | 0.075472 | 0.075472 | 0.075472 | 0.075472 | 0.075472 | 0 | 0.020227 | 0.248632 | 1,645 | 64 | 98 | 25.703125 | 0.794498 | 0.179331 | 0 | 0.093023 | 0 | 0 | 0.102041 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.093023 | null | null | 0.162791 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ba531d21fbaa8e47f3f4118c9edea01ecf0df0f0 | 801 | py | Python | lib/tests/python/old/test_bug.py | re-Isearch/re-Isearch | f2a2012c1814b0940a6004b6186a5e6896c1135a | [
"BSD-4-Clause-UC",
"Apache-2.0"
] | 2 | 2022-02-05T17:48:29.000Z | 2022-02-06T15:25:04.000Z | lib/tests/python/old/test_bug.py | re-Isearch/re-Isearch | f2a2012c1814b0940a6004b6186a5e6896c1135a | [
"BSD-4-Clause-UC",
"Apache-2.0"
] | null | null | null | lib/tests/python/old/test_bug.py | re-Isearch/re-Isearch | f2a2012c1814b0940a6004b6186a5e6896c1135a | [
"BSD-4-Clause-UC",
"Apache-2.0"
] | 1 | 2022-03-30T20:14:00.000Z | 2022-03-30T20:14:00.000Z | #!/opt/BSN/bin/python
#-------------------------------------------------
#ident "%Z%%Y%%M% %I% %G% %U% BSN"
import sys
import string
from IB import *
#############################################################################
##
##
#############################################################################
qu... | 29.666667 | 105 | 0.499376 | 90 | 801 | 4.444444 | 0.677778 | 0.035 | 0.04 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009845 | 0.11236 | 801 | 26 | 106 | 30.807692 | 0.552743 | 0.129838 | 0 | 0 | 0 | 0 | 0.358209 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.230769 | null | null | 0.307692 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ba57553136a9f5f57f15c566fc18a766e205180e | 5,227 | py | Python | server.py | mudo121/vizbox | 490d0fb59df9ea4c282d3ca29e3399a33d80b824 | [
"MIT"
] | null | null | null | server.py | mudo121/vizbox | 490d0fb59df9ea4c282d3ca29e3399a33d80b824 | [
"MIT"
] | null | null | null | server.py | mudo121/vizbox | 490d0fb59df9ea4c282d3ca29e3399a33d80b824 | [
"MIT"
] | null | null | null | #! /usr/bin/env python
import json
import signal
import sys
from socket import error
import time
from tornado.ioloop import IOLoop
from tornado.web import Application, RequestHandler, StaticFileHandler
from tornado.websocket import WebSocketHandler
from backendbase import BackendBase
from rosbackend import RosBacken... | 29.868571 | 108 | 0.648173 | 600 | 5,227 | 5.485 | 0.27 | 0.070191 | 0.02917 | 0.025828 | 0.283804 | 0.224248 | 0.187785 | 0.187785 | 0.108174 | 0.072318 | 0 | 0.00448 | 0.231299 | 5,227 | 174 | 109 | 30.04023 | 0.814584 | 0.031758 | 0 | 0.130081 | 0 | 0 | 0.147547 | 0.018592 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.081301 | null | null | 0.162602 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ba60ea06032367c6de70716dc43a5ce67383aa71 | 20,067 | py | Python | acq4/util/Canvas/items/ImageCanvasItem.py | tropp/ACQ4 | 792e05e99cedfc175593d200aeabecd6fa6304ce | [
"MIT"
] | null | null | null | acq4/util/Canvas/items/ImageCanvasItem.py | tropp/ACQ4 | 792e05e99cedfc175593d200aeabecd6fa6304ce | [
"MIT"
] | null | null | null | acq4/util/Canvas/items/ImageCanvasItem.py | tropp/ACQ4 | 792e05e99cedfc175593d200aeabecd6fa6304ce | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from acq4.pyqtgraph.Qt import QtCore, QtGui
from CanvasItem import CanvasItem
import numpy as np
import scipy.ndimage as ndimage
import acq4.pyqtgraph as pg
import acq4.util.DataManager as DataManager
import acq4.util.debug as debug
class ImageCanvasItem(CanvasItem):
def __init__(self, imag... | 35.516814 | 100 | 0.542283 | 2,344 | 20,067 | 4.598549 | 0.180461 | 0.014844 | 0.021152 | 0.025605 | 0.463401 | 0.451062 | 0.428055 | 0.414139 | 0.399944 | 0.39577 | 0 | 0.023368 | 0.341057 | 20,067 | 564 | 101 | 35.579787 | 0.791802 | 0.040265 | 0 | 0.354037 | 0 | 0 | 0.03866 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.021739 | null | null | 0.018634 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ba61c0df45b8e18124fc2133d55c5fb37cc276b6 | 1,824 | py | Python | app/room/games/fibbing_it.py | hmajid2301/banter-bus-core-api | 79a304965b58f0cb131e0770ffc3bd734ec4dc60 | [
"Apache-2.0"
] | null | null | null | app/room/games/fibbing_it.py | hmajid2301/banter-bus-core-api | 79a304965b58f0cb131e0770ffc3bd734ec4dc60 | [
"Apache-2.0"
] | null | null | null | app/room/games/fibbing_it.py | hmajid2301/banter-bus-core-api | 79a304965b58f0cb131e0770ffc3bd734ec4dc60 | [
"Apache-2.0"
] | null | null | null | from app.game_state.game_state_models import (
FibbingItQuestion,
FibbingItState,
GameState,
NextQuestion,
UpdateQuestionRoundState,
)
from app.player.player_models import Player
from app.room.games.abstract_game import AbstractGame
from app.room.games.exceptions import UnexpectedGameStateType
from ... | 42.418605 | 119 | 0.741776 | 198 | 1,824 | 6.505051 | 0.262626 | 0.204969 | 0.081522 | 0.093168 | 0.18323 | 0.13354 | 0.13354 | 0 | 0 | 0 | 0 | 0 | 0.194079 | 1,824 | 42 | 120 | 43.428571 | 0.87619 | 0 | 0 | 0.057143 | 0 | 0 | 0.071272 | 0.015899 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057143 | false | 0 | 0.142857 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ba649c80ef18e615909eed58bedb558f5bafe10a | 11,115 | py | Python | scripts/mut_floydwarshall.py | dew-uff/versioned-prov | cf86ce5cc4d5a072ccbaeee90e201b84690989ce | [
"Unlicense",
"MIT"
] | 1 | 2018-03-26T15:19:37.000Z | 2018-03-26T15:19:37.000Z | scripts/mut_floydwarshall.py | dew-uff/versioned-prov | cf86ce5cc4d5a072ccbaeee90e201b84690989ce | [
"Unlicense",
"MIT"
] | null | null | null | scripts/mut_floydwarshall.py | dew-uff/versioned-prov | cf86ce5cc4d5a072ccbaeee90e201b84690989ce | [
"Unlicense",
"MIT"
] | null | null | null | from datetime import datetime
from pprint import pprint
import extensible_provn.view.mutable_prov
import annotations as prov
HIDE = prov.HIDE
SPECIFIC = prov.SPECIFIC
prov.reset_prov("../generated/mutable_prov/")
prov.STATS_VIEW = 1
def time():
return datetime.now().strftime("%Y-%m-%dT%H:%M:%S.%f")
def cond(en... | 45.740741 | 128 | 0.583086 | 1,622 | 11,115 | 3.828607 | 0.096178 | 0.090016 | 0.093076 | 0.084541 | 0.453301 | 0.28438 | 0.207407 | 0.129308 | 0.115781 | 0.077134 | 0 | 0.028709 | 0.251012 | 11,115 | 242 | 129 | 45.929752 | 0.717237 | 0.011786 | 0 | 0.037433 | 1 | 0 | 0.095112 | 0.002371 | 0 | 0 | 0 | 0 | 0 | 1 | 0.010695 | false | 0 | 0.02139 | 0.010695 | 0.042781 | 0.016043 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ba679bfbb5018dfa3fb1d8ca26310207144b5648 | 834 | py | Python | web/migrations/0008_auto_20160901_1912.py | acuestap/smarttools_test | caa8760be4dfd502d31f5e396392d1d455ebdca8 | [
"MIT"
] | null | null | null | web/migrations/0008_auto_20160901_1912.py | acuestap/smarttools_test | caa8760be4dfd502d31f5e396392d1d455ebdca8 | [
"MIT"
] | null | null | null | web/migrations/0008_auto_20160901_1912.py | acuestap/smarttools_test | caa8760be4dfd502d31f5e396392d1d455ebdca8 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2016-09-02 00:12
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('web', '0007_auto_20160901_0641'),
]
operations = [
migrations.AlterModelOptio... | 27.8 | 104 | 0.606715 | 83 | 834 | 5.903614 | 0.614458 | 0.055102 | 0.102041 | 0.118367 | 0.338776 | 0.338776 | 0.183673 | 0.183673 | 0 | 0 | 0 | 0.052545 | 0.269784 | 834 | 29 | 105 | 28.758621 | 0.752053 | 0.079137 | 0 | 0.318182 | 1 | 0 | 0.198693 | 0.113725 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.227273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ba6d42fa95f13d450e5c671659e51cd1fbce20fb | 2,002 | py | Python | spylls/hunspell/algo/trie.py | strepon/spylls | 929fe4ece4bffd0715af2a4043fab43010130191 | [
"MIT"
] | null | null | null | spylls/hunspell/algo/trie.py | strepon/spylls | 929fe4ece4bffd0715af2a4043fab43010130191 | [
"MIT"
] | null | null | null | spylls/hunspell/algo/trie.py | strepon/spylls | 929fe4ece4bffd0715af2a4043fab43010130191 | [
"MIT"
] | null | null | null | from collections import defaultdict
class Leaf: # pylint: disable=too-few-public-methods,missing-class-docstring
def __init__(self):
self.payloads = []
self.children = defaultdict(Leaf)
class Trie:
"""
`Trie <https://en.wikipedia.org/wiki/Trie>`_ is a data structure for effective pre... | 32.819672 | 100 | 0.615884 | 265 | 2,002 | 4.611321 | 0.471698 | 0.026187 | 0.041735 | 0.022913 | 0.076923 | 0.076923 | 0.076923 | 0.076923 | 0.076923 | 0.076923 | 0 | 0.002778 | 0.280719 | 2,002 | 60 | 101 | 33.366667 | 0.845833 | 0.471528 | 0 | 0.206897 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.206897 | false | 0 | 0.034483 | 0 | 0.344828 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ba6ec822a95f23f06f7f9b553b71694e1d95a43c | 3,792 | py | Python | vmprofile/migrations/0007_auto_20160915_1542.py | mattip/vmprof-server | 1b1ad0454e0b3d2382829048f452a60f40786bc1 | [
"MIT"
] | null | null | null | vmprofile/migrations/0007_auto_20160915_1542.py | mattip/vmprof-server | 1b1ad0454e0b3d2382829048f452a60f40786bc1 | [
"MIT"
] | null | null | null | vmprofile/migrations/0007_auto_20160915_1542.py | mattip/vmprof-server | 1b1ad0454e0b3d2382829048f452a60f40786bc1 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.9.6 on 2016-09-15 15:42
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import vmprofile.models
import uuid
def forward_func(apps, schema_editor):
RuntimeData = apps.... | 33.557522 | 132 | 0.585707 | 376 | 3,792 | 5.755319 | 0.305851 | 0.077634 | 0.07902 | 0.085028 | 0.381701 | 0.381701 | 0.192237 | 0.192237 | 0.192237 | 0.150647 | 0 | 0.016135 | 0.297205 | 3,792 | 112 | 133 | 33.857143 | 0.795872 | 0.017669 | 0 | 0.330097 | 1 | 0 | 0.103976 | 0.011822 | 0 | 0 | 0 | 0 | 0 | 1 | 0.019417 | false | 0 | 0.058252 | 0 | 0.116505 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ba793cfff46cd4d1153f1d2bd265f6dba08291f9 | 364 | py | Python | pyramid_scaffold/models/mymodel.py | regenalgrant/pyramid_scaffold | 022db71dacb511dd1fcbf23d09fe81bd175cdfe0 | [
"MIT"
] | null | null | null | pyramid_scaffold/models/mymodel.py | regenalgrant/pyramid_scaffold | 022db71dacb511dd1fcbf23d09fe81bd175cdfe0 | [
"MIT"
] | null | null | null | pyramid_scaffold/models/mymodel.py | regenalgrant/pyramid_scaffold | 022db71dacb511dd1fcbf23d09fe81bd175cdfe0 | [
"MIT"
] | null | null | null | import bcrypt
from sqlalchemy import (
Column,
Index,
Integer,
Unicode,
Date,
)
from .meta import Base
class Entry(Base):
__tablename__ = 'entries'
id = Column(Integer, primary_key=True)
title = Column(Unicode)
body = Column(Unicode)
category = Column(Unicode)
tags = Colum... | 17.333333 | 42 | 0.656593 | 41 | 364 | 5.682927 | 0.585366 | 0.223176 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | 364 | 20 | 43 | 18.2 | 0.85348 | 0 | 0 | 0 | 0 | 0 | 0.019231 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.176471 | 0 | 0.647059 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ba7c77147b294ea20e3376f55b2f18ff4a3ac8d8 | 1,820 | py | Python | tests/test_async.py | fruch/rpyc | 8db3fdcef2272d468aca562465279370d075be72 | [
"MIT"
] | null | null | null | tests/test_async.py | fruch/rpyc | 8db3fdcef2272d468aca562465279370d075be72 | [
"MIT"
] | null | null | null | tests/test_async.py | fruch/rpyc | 8db3fdcef2272d468aca562465279370d075be72 | [
"MIT"
] | null | null | null | import time
from nose.tools import raises
import rpyc
class Test_Async(object):
def __init__(self):
pass
def setup(self):
self.conn = rpyc.classic.connect_thread()
self.a_sleep = rpyc.async(self.conn.modules.time.sleep)
self.a_int = rpyc.async(self.conn.modules.__builtin__.in... | 24.931507 | 66 | 0.547802 | 224 | 1,820 | 4.308036 | 0.316964 | 0.036269 | 0.051813 | 0.049741 | 0.158549 | 0.091192 | 0 | 0 | 0 | 0 | 0 | 0.010915 | 0.345604 | 1,820 | 72 | 67 | 25.277778 | 0.799328 | 0 | 0 | 0.20339 | 0 | 0 | 0.028571 | 0 | 0 | 0 | 0 | 0 | 0.186441 | 0 | null | null | 0.016949 | 0.050847 | null | null | 0.067797 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ba81459609292f93ea081b05a4dc128290a7f383 | 1,419 | py | Python | django/bot/users/migrations/0001_initial.py | AngelOnFira/megagame-controller | 033fec84babf80ffd0868a0f7d946ac4c18b061c | [
"MIT"
] | null | null | null | django/bot/users/migrations/0001_initial.py | AngelOnFira/megagame-controller | 033fec84babf80ffd0868a0f7d946ac4c18b061c | [
"MIT"
] | 1 | 2022-03-03T21:56:12.000Z | 2022-03-03T21:56:12.000Z | django/bot/users/migrations/0001_initial.py | AngelOnFira/megagame-controller | 033fec84babf80ffd0868a0f7d946ac4c18b061c | [
"MIT"
] | null | null | null | # Generated by Django 3.2.8 on 2021-11-20 23:06
import django.db.models.deletion
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
("players", "0001_initial"),
]
operations = [
migrations.CreateModel(
name="M... | 30.847826 | 80 | 0.448908 | 113 | 1,419 | 5.504425 | 0.557522 | 0.038585 | 0.045016 | 0.07074 | 0.106109 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030534 | 0.446089 | 1,419 | 45 | 81 | 31.533333 | 0.760814 | 0.031712 | 0 | 0.131579 | 1 | 0 | 0.079446 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ba8191dbe03ad39a2d152fd4f8fec10908d68eea | 4,801 | py | Python | app/tests.py | nevooronni/RideAlong | 0921c0b77d7fbc4c9595d497648f5b40e2d87000 | [
"MIT"
] | 1 | 2019-01-24T01:02:55.000Z | 2019-01-24T01:02:55.000Z | app/tests.py | nevooronni/RideAlong | 0921c0b77d7fbc4c9595d497648f5b40e2d87000 | [
"MIT"
] | null | null | null | app/tests.py | nevooronni/RideAlong | 0921c0b77d7fbc4c9595d497648f5b40e2d87000 | [
"MIT"
] | null | null | null | from django.test import TestCase
from .models import Driver,Rider,DriverProfile,RiderProfile,RiderReview,DriverReview
class DriverTestClass(TestCase):
'''
test for driver class
'''
def setUp(self):
'''
setup method
'''
self.driver = Driver(first_name = "Neville",last_name = "Oronni",email = "nevooronni@gma... | 30.579618 | 137 | 0.728806 | 642 | 4,801 | 5.316199 | 0.154206 | 0.03223 | 0.02344 | 0.029886 | 0.491943 | 0.469968 | 0.408731 | 0.312628 | 0.249341 | 0.204219 | 0 | 0.017023 | 0.143512 | 4,801 | 157 | 138 | 30.579618 | 0.812986 | 0.186836 | 0 | 0.296875 | 0 | 0 | 0.12466 | 0.01252 | 0 | 0 | 0 | 0 | 0.15625 | 1 | 0.25 | false | 0 | 0.03125 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ba846df7131b4a81c1d2238da06283e661abe084 | 571 | py | Python | app/resources/drug.py | thehyve/rest_api | e60aa7064dc8946e96ee3937692887e3a5e40459 | [
"Apache-2.0"
] | 15 | 2017-04-03T22:11:02.000Z | 2021-03-16T11:49:25.000Z | app/resources/drug.py | thehyve/rest_api | e60aa7064dc8946e96ee3937692887e3a5e40459 | [
"Apache-2.0"
] | 123 | 2017-01-05T14:01:01.000Z | 2019-10-21T16:56:48.000Z | app/resources/drug.py | thehyve/rest_api | e60aa7064dc8946e96ee3937692887e3a5e40459 | [
"Apache-2.0"
] | 9 | 2017-04-03T22:20:14.000Z | 2021-05-28T16:38:54.000Z |
import time
import json
from flask import current_app, request
from flask_restful import abort, Resource
from app.common.response_templates import CTTVResponse
from app.common.results import RawResult
class Drug(Resource):
def get(self, drug_id):
start_time = time.time()
es = current_app.extens... | 27.190476 | 70 | 0.676007 | 78 | 571 | 4.782051 | 0.525641 | 0.048257 | 0.069705 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006944 | 0.243433 | 571 | 21 | 70 | 27.190476 | 0.856481 | 0 | 0 | 0 | 0 | 0 | 0.061404 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.375 | 0 | 0.5625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
ba86057ba3ffcc0f9a2e978bd3a91bd97426a8db | 268 | py | Python | general-practice/Exercises solved/w3resource/challenges/challenge2.py | lugabrielbueno/Projeto | f012c5bb9ce6f6d7c9e8196cc7986127dba3eba0 | [
"MIT"
] | null | null | null | general-practice/Exercises solved/w3resource/challenges/challenge2.py | lugabrielbueno/Projeto | f012c5bb9ce6f6d7c9e8196cc7986127dba3eba0 | [
"MIT"
] | null | null | null | general-practice/Exercises solved/w3resource/challenges/challenge2.py | lugabrielbueno/Projeto | f012c5bb9ce6f6d7c9e8196cc7986127dba3eba0 | [
"MIT"
] | null | null | null | # Write a Python program to check if a given positive integer is a power of three
def ispower3(num):
count = 0
for x in range(1000):
if 3**x == num:
count += 1
return count > 0
print(ispower3(9))
print(ispower3(15))
print(ispower3(20)) | 24.363636 | 81 | 0.626866 | 44 | 268 | 3.818182 | 0.704545 | 0.232143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.086735 | 0.268657 | 268 | 11 | 82 | 24.363636 | 0.770408 | 0.294776 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0 | 0 | 0.222222 | 0.333333 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ba87f3c324ef18aae5f86c43fec45779e0a438a3 | 499 | py | Python | authlib/deprecate.py | YPCrumble/authlib | 782a0fced780849418dc2a869528d10387e24b65 | [
"BSD-3-Clause"
] | 3,172 | 2017-11-11T05:54:14.000Z | 2022-03-31T23:59:59.000Z | authlib/deprecate.py | YPCrumble/authlib | 782a0fced780849418dc2a869528d10387e24b65 | [
"BSD-3-Clause"
] | 397 | 2017-11-11T02:49:06.000Z | 2022-03-31T21:02:37.000Z | authlib/deprecate.py | YPCrumble/authlib | 782a0fced780849418dc2a869528d10387e24b65 | [
"BSD-3-Clause"
] | 387 | 2017-11-18T08:59:56.000Z | 2022-03-15T18:37:37.000Z | import warnings
class AuthlibDeprecationWarning(DeprecationWarning):
pass
warnings.simplefilter('always', AuthlibDeprecationWarning)
def deprecate(message, version=None, link_uid=None, link_file=None):
if version:
message += '\nIt will be compatible before version {}.'.format(version)
if link_... | 29.352941 | 91 | 0.731463 | 57 | 499 | 6.298246 | 0.578947 | 0.058496 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002347 | 0.146293 | 499 | 16 | 92 | 31.1875 | 0.840376 | 0 | 0 | 0 | 0 | 0 | 0.180361 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0.1 | 0.1 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
baa83e27b5410d3f968fdb1bb66fd7b355a21817 | 404 | py | Python | week9/api/urls.py | yestemir/web | 5bdead66c26a3c466701e25ecae9720f04ad4118 | [
"Unlicense"
] | null | null | null | week9/api/urls.py | yestemir/web | 5bdead66c26a3c466701e25ecae9720f04ad4118 | [
"Unlicense"
] | 13 | 2021-03-10T08:46:52.000Z | 2022-03-02T08:13:58.000Z | week9/api/urls.py | yestemir/web | 5bdead66c26a3c466701e25ecae9720f04ad4118 | [
"Unlicense"
] | null | null | null | from django.urls import path
from api.views import product_list, getproduct, category_list, getcategory, getproductsbycategory
urlpatterns = [
path('products/', product_list),
path('products/<int:product_id>/', getproduct),
path('categories/', category_list),
path('categories/<int:category_id>', getcat... | 36.727273 | 97 | 0.747525 | 44 | 404 | 6.704545 | 0.409091 | 0.142373 | 0.115254 | 0.169492 | 0.183051 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.116337 | 404 | 11 | 98 | 36.727273 | 0.826331 | 0 | 0 | 0 | 0 | 0 | 0.274074 | 0.224691 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
baaf74ce673c5e46971d873756b7c6cdbde2f1a9 | 1,151 | py | Python | cam/button/cam.py | davidegaspar/raspi | cc34b4ae3c22a992389978b5420776829559c285 | [
"MIT"
] | 1 | 2016-04-12T09:53:38.000Z | 2016-04-12T09:53:38.000Z | cam/button/cam.py | davidegaspar/raspi | cc34b4ae3c22a992389978b5420776829559c285 | [
"MIT"
] | null | null | null | cam/button/cam.py | davidegaspar/raspi | cc34b4ae3c22a992389978b5420776829559c285 | [
"MIT"
] | null | null | null | #!/usr/bin/python
import os
import time
import RPi.GPIO as GPIO
import subprocess
#import sys
import signal
GPIO.setmode(GPIO.BCM)
GPIO.setwarnings(False)
buttonPin = 17
buzzPin = 22
GPIO.setup(buttonPin, GPIO.IN, pull_up_down = GPIO.PUD_DOWN)
GPIO.setup(buzzPin, GPIO.OUT)
GPIO.output(buzzPin, GPIO.LOW)
# Morse
d... | 16.681159 | 76 | 0.638575 | 160 | 1,151 | 4.55 | 0.39375 | 0.090659 | 0.116758 | 0.144231 | 0.233516 | 0.200549 | 0.200549 | 0.200549 | 0.104396 | 0.104396 | 0 | 0.018722 | 0.211121 | 1,151 | 68 | 77 | 16.926471 | 0.78304 | 0.027802 | 0 | 0.313725 | 0 | 0 | 0.039427 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.098039 | null | null | 0.039216 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bac157c3e453218eca60ddf43b06eb23347c023f | 1,872 | py | Python | django_workflow_system/migrations/0005_auto_20210720_0834.py | eikonomega/django-workflow-system | dc0e8807263266713d3d7fa46e240e8d72db28d1 | [
"MIT"
] | 2 | 2022-01-28T12:35:42.000Z | 2022-03-23T16:06:05.000Z | django_workflow_system/migrations/0005_auto_20210720_0834.py | eikonomega/django-workflow-system | dc0e8807263266713d3d7fa46e240e8d72db28d1 | [
"MIT"
] | 10 | 2021-04-27T20:26:32.000Z | 2021-07-21T15:34:31.000Z | django_workflow_system/migrations/0005_auto_20210720_0834.py | eikonomega/django-workflow-system | dc0e8807263266713d3d7fa46e240e8d72db28d1 | [
"MIT"
] | 1 | 2021-11-13T14:30:34.000Z | 2021-11-13T14:30:34.000Z | # Generated by Django 3.1.8 on 2021-07-20 13:34
from django.db import migrations, models
import django.db.models.deletion
import uuid
class Migration(migrations.Migration):
dependencies = [
('django_workflow_system', '0004_auto_20210701_0910'),
]
operations = [
migrations.CreateModel(
... | 52 | 316 | 0.683761 | 196 | 1,872 | 6.336735 | 0.47449 | 0.056361 | 0.080515 | 0.05314 | 0.310789 | 0.230274 | 0.170692 | 0.077295 | 0.077295 | 0 | 0 | 0.021651 | 0.21047 | 1,872 | 35 | 317 | 53.485714 | 0.818674 | 0.024038 | 0 | 0.068966 | 1 | 0.034483 | 0.411507 | 0.192877 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.103448 | 0 | 0.206897 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bac8126fa203590daf30c06731a8d63d6c7763fe | 2,074 | py | Python | test/test_importing.py | linyc74/qiime2_pipeline | 30d903a70b3e3b363995d9cb820443ed60244895 | [
"MIT"
] | null | null | null | test/test_importing.py | linyc74/qiime2_pipeline | 30d903a70b3e3b363995d9cb820443ed60244895 | [
"MIT"
] | null | null | null | test/test_importing.py | linyc74/qiime2_pipeline | 30d903a70b3e3b363995d9cb820443ed60244895 | [
"MIT"
] | null | null | null | from .setup import TestCase
from qiime2_pipeline.importing import ImportFeatureTable, ImportFeatureSequence, ImportTaxonomy
from qiime2_pipeline.exporting import ExportFeatureTable, ExportFeatureSequence
class TestImportFeatureTable(TestCase):
def setUp(self):
self.set_up(py_path=__file__)
def tearD... | 32.920635 | 95 | 0.697686 | 237 | 2,074 | 5.902954 | 0.202532 | 0.032166 | 0.080057 | 0.098642 | 0.636169 | 0.496783 | 0.496783 | 0.379557 | 0.379557 | 0.379557 | 0 | 0.001198 | 0.195275 | 2,074 | 62 | 96 | 33.451613 | 0.837028 | 0 | 0 | 0.488889 | 0 | 0 | 0.135969 | 0.135969 | 0 | 0 | 0 | 0 | 0.111111 | 1 | 0.244444 | false | 0 | 0.244444 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
bad41bb2c177a909abceceff4ca42aaae22c5f5b | 5,430 | py | Python | WebParser.py | Ted96/Di_Bot | 59c5aaef05915626117b5d9e6796f31f695a563e | [
"MIT"
] | 1 | 2021-02-12T14:49:06.000Z | 2021-02-12T14:49:06.000Z | WebParser.py | Ted96/Di_Bot | 59c5aaef05915626117b5d9e6796f31f695a563e | [
"MIT"
] | null | null | null | WebParser.py | Ted96/Di_Bot | 59c5aaef05915626117b5d9e6796f31f695a563e | [
"MIT"
] | null | null | null | from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from other import keys_and_strings
def convert_to_cap_greek( s : str ) -> str:
dict_accented_caps = { 'Ό' : 'Ο', 'Ά' : 'Α', 'Ί' : 'Ι', 'Έ' : 'Ε', 'Ύ' : 'Υ', 'Ή' : 'Η', 'Ώ' : 'Ω'}
res = s.upper()
for orig, new in dict_accented_caps.i... | 30.166667 | 122 | 0.683978 | 782 | 5,430 | 4.521739 | 0.290281 | 0.062217 | 0.035633 | 0.043552 | 0.315045 | 0.304299 | 0.297229 | 0.270645 | 0.228224 | 0.216629 | 0 | 0.011767 | 0.170534 | 5,430 | 179 | 123 | 30.335196 | 0.773313 | 0.169982 | 0 | 0.266055 | 0 | 0 | 0.138554 | 0.02075 | 0 | 0 | 0 | 0.005587 | 0 | 1 | 0.055046 | false | 0.073395 | 0.036697 | 0 | 0.146789 | 0.036697 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
bad66eb76fa2e6e88cb54de27ef33cf6fa7425f9 | 2,199 | py | Python | src/test/match_pattern.py | elsid/master | b3624a6fb3a007fff005c0811f05c5802344b46b | [
"MIT"
] | null | null | null | src/test/match_pattern.py | elsid/master | b3624a6fb3a007fff005c0811f05c5802344b46b | [
"MIT"
] | null | null | null | src/test/match_pattern.py | elsid/master | b3624a6fb3a007fff005c0811f05c5802344b46b | [
"MIT"
] | null | null | null | # coding: utf-8
from os.path import dirname, realpath, join
from subprocess import check_output
from hamcrest import assert_that, equal_to
BASE_DIR = dirname(realpath(__file__))
DATA_DIR = join(BASE_DIR, 'data')
MODEL_DIR = join(DATA_DIR, 'model')
PATTERN_DIR = join(DATA_DIR, 'pattern')
MATCH_DIR = join(DATA_DIR, 'ma... | 32.338235 | 80 | 0.727149 | 291 | 2,199 | 5.051546 | 0.213058 | 0.130612 | 0.061905 | 0.095238 | 0.186395 | 0.171429 | 0.085714 | 0.085714 | 0 | 0 | 0 | 0.002717 | 0.163256 | 2,199 | 67 | 81 | 32.820896 | 0.796196 | 0.005912 | 0 | 0 | 0 | 0 | 0.168956 | 0.071429 | 0 | 0 | 0 | 0 | 0.045455 | 1 | 0.227273 | false | 0 | 0.068182 | 0.022727 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
badd519c956a3bbebaabffcef86cead630ef6894 | 929 | py | Python | syn_net/data_generation/_mp_make.py | lilleswing/SynNet | 635af44d0cfe2a2015814001a3b1c809128b238a | [
"MIT"
] | 14 | 2021-10-18T06:56:49.000Z | 2022-03-01T01:32:10.000Z | syn_net/data_generation/_mp_make.py | lilleswing/SynNet | 635af44d0cfe2a2015814001a3b1c809128b238a | [
"MIT"
] | 3 | 2021-10-19T20:58:09.000Z | 2022-02-07T18:02:04.000Z | syn_net/data_generation/_mp_make.py | lilleswing/SynNet | 635af44d0cfe2a2015814001a3b1c809128b238a | [
"MIT"
] | 4 | 2021-10-20T03:02:59.000Z | 2022-01-25T22:12:47.000Z | """
This file contains a function to generate a single synthetic tree, prepared for
multiprocessing.
"""
import pandas as pd
import numpy as np
# import dill as pickle
# import gzip
from syn_net.data_generation.make_dataset import synthetic_tree_generator
from syn_net.utils.data_utils import ReactionSet
path_reactio... | 30.966667 | 93 | 0.783638 | 144 | 929 | 4.798611 | 0.527778 | 0.101302 | 0.069465 | 0.060781 | 0.083936 | 0.083936 | 0.083936 | 0 | 0 | 0 | 0 | 0.009756 | 0.11733 | 929 | 29 | 94 | 32.034483 | 0.832927 | 0.219591 | 0 | 0 | 1 | 0 | 0.257703 | 0.168067 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.266667 | 0 | 0.4 | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
badef667cba5570c32aa6de5e52f8902d8dbb812 | 2,034 | py | Python | main.py | schwarz/reddit-vip-flairs | d47b338809cdd08b2ec6b43b6612a770259efd69 | [
"MIT"
] | null | null | null | main.py | schwarz/reddit-vip-flairs | d47b338809cdd08b2ec6b43b6612a770259efd69 | [
"MIT"
] | null | null | null | main.py | schwarz/reddit-vip-flairs | d47b338809cdd08b2ec6b43b6612a770259efd69 | [
"MIT"
] | null | null | null | """
Automatically flair submissions with comments by interesting people.
"""
from dotenv import load_dotenv, find_dotenv
import logging
import praw
import os
def main():
logging.basicConfig(format='{asctime} - {name} - [{levelname}] {message}', style='{')
log = logging.getLogger(__name__)
log.setLevel(log... | 41.510204 | 119 | 0.63176 | 240 | 2,034 | 5.104167 | 0.329167 | 0.09551 | 0.071837 | 0.075102 | 0.059592 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.248279 | 2,034 | 48 | 120 | 42.375 | 0.801177 | 0.050147 | 0 | 0 | 0 | 0 | 0.180447 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025641 | false | 0.051282 | 0.102564 | 0 | 0.128205 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
bae7046ad6b7b0b834581ef61ba379c4278edf51 | 6,044 | py | Python | inventory/test_inventory.py | detrout/htsworkflow | 99d3300e2533d79428ad49aaf10b9429b175da2d | [
"BSD-3-Clause"
] | null | null | null | inventory/test_inventory.py | detrout/htsworkflow | 99d3300e2533d79428ad49aaf10b9429b175da2d | [
"BSD-3-Clause"
] | 1 | 2018-02-26T18:30:05.000Z | 2018-02-26T18:30:05.000Z | inventory/test_inventory.py | detrout/htsworkflow | 99d3300e2533d79428ad49aaf10b9429b175da2d | [
"BSD-3-Clause"
] | null | null | null | from __future__ import absolute_import, print_function
from django.test import TestCase
from django.test.utils import setup_test_environment, \
teardown_test_environment
from django.db import connection
from django.conf import settings
from django.contrib.auth.models import User
from django.urls import reverse
f... | 39.763158 | 91 | 0.645433 | 643 | 6,044 | 5.877138 | 0.214619 | 0.034401 | 0.025404 | 0.036518 | 0.576343 | 0.568934 | 0.568934 | 0.568934 | 0.568934 | 0.554115 | 0 | 0.007113 | 0.255625 | 6,044 | 151 | 92 | 40.02649 | 0.832852 | 0.008769 | 0 | 0.470588 | 0 | 0 | 0.062291 | 0.008016 | 0 | 0 | 0 | 0 | 0.151261 | 1 | 0.067227 | false | 0.05042 | 0.134454 | 0.008403 | 0.235294 | 0.008403 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
baea9a4a4c133ceef7c775400e36fc8c27ccf27f | 231 | py | Python | Python/Exercicio013.py | BarbaraGomes97/Desafios.cpp | 35f601738e8c937c812011863695e79e4a74c233 | [
"MIT"
] | null | null | null | Python/Exercicio013.py | BarbaraGomes97/Desafios.cpp | 35f601738e8c937c812011863695e79e4a74c233 | [
"MIT"
] | null | null | null | Python/Exercicio013.py | BarbaraGomes97/Desafios.cpp | 35f601738e8c937c812011863695e79e4a74c233 | [
"MIT"
] | null | null | null | # Conversor de temperatura de C° para F°
import colorama
colorama.init()
print('\033[32;1mConversor de temperaturas\033[m')
temp = float(input('Digite a temperatura em C°: '))
print(f'{temp} C° é equivalente a {(9*temp/5)+32} F°')
| 33 | 54 | 0.705628 | 44 | 231 | 3.818182 | 0.590909 | 0.035714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.064356 | 0.125541 | 231 | 6 | 55 | 38.5 | 0.742574 | 0.164502 | 0 | 0 | 0 | 0 | 0.591623 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.4 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
baee03c6b63b58fce246a7151ffb9ff8e82e7a3c | 1,954 | py | Python | RF/controllers/schedule.py | JaronrH/RF | 9a258c6b3fc351501a5603153730be3e9cf2a12e | [
"MIT"
] | 2 | 2016-06-02T21:47:02.000Z | 2021-02-21T23:03:31.000Z | RF/controllers/schedule.py | JaronrH/RF | 9a258c6b3fc351501a5603153730be3e9cf2a12e | [
"MIT"
] | null | null | null | RF/controllers/schedule.py | JaronrH/RF | 9a258c6b3fc351501a5603153730be3e9cf2a12e | [
"MIT"
] | null | null | null | from flask.ext.classy import FlaskView, route
from components import featureBroker
from flask import render_template, request
from datetime import datetime
class ScheduleController(FlaskView):
route_base = '/schedule/'
interface = featureBroker.RequiredFeature('entityInterfaces', featureBroker.HasMethods('get... | 39.877551 | 125 | 0.62999 | 197 | 1,954 | 6.137056 | 0.350254 | 0.063689 | 0.079404 | 0.099256 | 0.327543 | 0.327543 | 0.312655 | 0.312655 | 0.312655 | 0.263027 | 0 | 0.008374 | 0.266633 | 1,954 | 49 | 126 | 39.877551 | 0.834613 | 0.042989 | 0 | 0.405405 | 0 | 0 | 0.08024 | 0.030022 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.108108 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
baf7645d3210785928b19117149d749ca686ff47 | 3,528 | py | Python | backend/providers.py | sshaman1101/what-about-blank | 66df54fcc3d715aafb50ed9be347698b7a4b14d3 | [
"BSD-3-Clause"
] | null | null | null | backend/providers.py | sshaman1101/what-about-blank | 66df54fcc3d715aafb50ed9be347698b7a4b14d3 | [
"BSD-3-Clause"
] | 1 | 2018-06-16T23:19:26.000Z | 2018-06-17T10:48:38.000Z | backend/providers.py | sshaman1101/what-about-blank | 66df54fcc3d715aafb50ed9be347698b7a4b14d3 | [
"BSD-3-Clause"
] | null | null | null | import json
import asyncio
import threading
from datetime import datetime
from urllib.parse import urlparse
from aiohttp import ClientSession
from backend import config, storage, const
class BaseJSONProvider:
def __init__(self, url, prov_id=None, headers=None):
self._url = urlparse(url)
self._id ... | 33.923077 | 92 | 0.649376 | 438 | 3,528 | 5.116438 | 0.388128 | 0.015618 | 0.026774 | 0.022758 | 0.047747 | 0.047747 | 0.033913 | 0 | 0 | 0 | 0 | 0.000379 | 0.252834 | 3,528 | 103 | 93 | 34.252427 | 0.849772 | 0.172336 | 0 | 0 | 0 | 0 | 0.063838 | 0.015129 | 0 | 0 | 0 | 0.019417 | 0 | 1 | 0.121212 | false | 0 | 0.106061 | 0.030303 | 0.378788 | 0.030303 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
baf96bb725d1d6607a4cf1a346ca2bdde6de76de | 2,619 | py | Python | word_embedding_train.py | Astromis/PhraseSegmentation | 883d68828be74ec837cd2cca491f970df30e0b65 | [
"MIT"
] | null | null | null | word_embedding_train.py | Astromis/PhraseSegmentation | 883d68828be74ec837cd2cca491f970df30e0b65 | [
"MIT"
] | null | null | null | word_embedding_train.py | Astromis/PhraseSegmentation | 883d68828be74ec837cd2cca491f970df30e0b65 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import division
import gensim
import nltk
import smart_open
import json
from sentence_extracor import segment_sentences_tok
from gensim.models import TfidfModel
from gensim.corpora import Dictionary
import warnings
warnings.filterwarnings("ignore", message="numpy.dtype size chang... | 36.375 | 105 | 0.73425 | 361 | 2,619 | 5.163435 | 0.32133 | 0.038627 | 0.036481 | 0.05794 | 0.427575 | 0.344421 | 0.305794 | 0.305794 | 0.258584 | 0.164163 | 0 | 0.025675 | 0.137457 | 2,619 | 71 | 106 | 36.887324 | 0.799469 | 0.026728 | 0 | 0.166667 | 0 | 0 | 0.056444 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.375 | 0 | 0.458333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
bafd8caca7a08c4a41b263669c4c627b0a661aef | 5,868 | py | Python | PS/this_is_coding_test.py | tkxkd0159/dsalgo | 88ab07d5763a28a415e4eab752839e19061b0b3a | [
"MIT"
] | null | null | null | PS/this_is_coding_test.py | tkxkd0159/dsalgo | 88ab07d5763a28a415e4eab752839e19061b0b3a | [
"MIT"
] | 3 | 2022-02-10T04:19:00.000Z | 2022-02-10T04:21:26.000Z | PS/this_is_coding_test.py | tkxkd0159/dsalgo | 88ab07d5763a28a415e4eab752839e19061b0b3a | [
"MIT"
] | null | null | null | # This is coding test
class Greedy:
def __init__(self):
pass
@staticmethod
def change(n):
count = 0
coin_types = [500, 100, 50, 10]
for c in coin_types:
count += n // c
n %= c
return count
@staticmethod
def max_plus(case):
n,... | 26.432432 | 97 | 0.354124 | 723 | 5,868 | 2.792531 | 0.195021 | 0.019812 | 0.010401 | 0.027241 | 0.253096 | 0.119861 | 0.119861 | 0.072313 | 0.047548 | 0.047548 | 0 | 0.075386 | 0.513974 | 5,868 | 221 | 98 | 26.552036 | 0.632539 | 0.047716 | 0 | 0.380952 | 0 | 0 | 0.00526 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.059524 | false | 0.011905 | 0 | 0 | 0.119048 | 0.011905 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
24009d378abffdc1cdf657d2aa324f61734bddcf | 443 | py | Python | ai4good/webapp/apps.py | titorenko/compartmental-model | fe022ef754a2b07351db8f48e5b0fdfdbbcebdea | [
"MIT"
] | null | null | null | ai4good/webapp/apps.py | titorenko/compartmental-model | fe022ef754a2b07351db8f48e5b0fdfdbbcebdea | [
"MIT"
] | null | null | null | ai4good/webapp/apps.py | titorenko/compartmental-model | fe022ef754a2b07351db8f48e5b0fdfdbbcebdea | [
"MIT"
] | null | null | null | import dash
import dash_bootstrap_components as dbc
from flask import Flask
from ai4good.runner.facade import Facade
from ai4good.webapp.model_runner import ModelRunner
flask_app = Flask(__name__)
dash_app = dash.Dash(
__name__,
server=flask_app,
routes_pathname_prefix='/sim/',
suppress_callback_excep... | 23.315789 | 51 | 0.790068 | 57 | 443 | 5.789474 | 0.508772 | 0.060606 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005208 | 0.133183 | 443 | 18 | 52 | 24.611111 | 0.854167 | 0 | 0 | 0 | 0 | 0 | 0.011287 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
240f21a3d392e3c3999e26cec69a1ce43f948bec | 20,350 | py | Python | apps/jetpack/tests/test_views.py | mozilla/FlightDeck | 61d66783252ac1318c990e342877a26c64f59062 | [
"BSD-3-Clause"
] | 6 | 2015-04-24T03:10:44.000Z | 2020-12-27T19:46:33.000Z | apps/jetpack/tests/test_views.py | mozilla/FlightDeck | 61d66783252ac1318c990e342877a26c64f59062 | [
"BSD-3-Clause"
] | null | null | null | apps/jetpack/tests/test_views.py | mozilla/FlightDeck | 61d66783252ac1318c990e342877a26c64f59062 | [
"BSD-3-Clause"
] | 5 | 2015-09-18T19:58:31.000Z | 2020-01-28T05:46:55.000Z | import os
import commonware
import json
from jinja2 import UndefinedError
from nose.tools import eq_
from nose import SkipTest
from mock import patch, Mock
from test_utils import TestCase
from django.conf import settings
from django.contrib.auth.models import User
from django.core.urlresolvers import reverse
from dja... | 39.059501 | 84 | 0.624423 | 2,468 | 20,350 | 4.972042 | 0.11953 | 0.040746 | 0.031782 | 0.039117 | 0.643876 | 0.591231 | 0.56825 | 0.542091 | 0.490751 | 0.446174 | 0 | 0.009106 | 0.255283 | 20,350 | 520 | 85 | 39.134615 | 0.800594 | 0.068698 | 0 | 0.545232 | 0 | 0 | 0.083377 | 0.020791 | 0 | 0 | 0 | 0 | 0.04401 | 1 | 0.08313 | false | 0.056235 | 0.03423 | 0.002445 | 0.151589 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
2411cf801534bfb82e8be776b57c7c01ea28fae3 | 1,166 | py | Python | accounts/tests/tests_logout.py | oratosquilla-oratoria/django-blog | a821530ecabb3ab16d770d04c32c97db9d279177 | [
"MIT"
] | null | null | null | accounts/tests/tests_logout.py | oratosquilla-oratoria/django-blog | a821530ecabb3ab16d770d04c32c97db9d279177 | [
"MIT"
] | null | null | null | accounts/tests/tests_logout.py | oratosquilla-oratoria/django-blog | a821530ecabb3ab16d770d04c32c97db9d279177 | [
"MIT"
] | null | null | null | from django.contrib.auth import get_user
from django.contrib.auth.models import User
from django.test import TestCase
from django.urls import resolve, reverse
from .. import views
class LogOutTest(TestCase):
def setUp(self):
username = 'Vasyan'
password = '1234567v'
User.objects.create_us... | 34.294118 | 73 | 0.691252 | 147 | 1,166 | 5.346939 | 0.380952 | 0.044529 | 0.049618 | 0.053435 | 0.127226 | 0.066158 | 0 | 0 | 0 | 0 | 0 | 0.008602 | 0.202401 | 1,166 | 33 | 74 | 35.333333 | 0.836559 | 0.102058 | 0 | 0 | 0 | 0 | 0.060136 | 0 | 0 | 0 | 0 | 0 | 0.130435 | 1 | 0.173913 | false | 0.130435 | 0.217391 | 0 | 0.434783 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
24123b5271597983cb9f46dcae28199134af953e | 486 | py | Python | src/lambda_tests.py | erikj23/lambda-manager | 122a333f45cf8a8a640f9f1a2535fe630c736ea0 | [
"MIT"
] | 1 | 2019-06-19T00:01:16.000Z | 2019-06-19T00:01:16.000Z | src/lambda_tests.py | erikj23/lambda-manager | 122a333f45cf8a8a640f9f1a2535fe630c736ea0 | [
"MIT"
] | null | null | null | src/lambda_tests.py | erikj23/lambda-manager | 122a333f45cf8a8a640f9f1a2535fe630c736ea0 | [
"MIT"
] | null | null | null |
import boto3
import json
def get_client() -> boto3.Session:
return boto3.client("lambda")
def external_lambda_tests() -> None:
basic_call()
def basic_call() -> None:
lambda_client = get_client()
response = lambda_client.list_functions(
MaxItems=10
)
pretty_print(... | 17.357143 | 57 | 0.664609 | 59 | 486 | 5.101695 | 0.525424 | 0.059801 | 0.126246 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015873 | 0.222222 | 486 | 27 | 58 | 18 | 0.780423 | 0 | 0 | 0 | 0 | 0 | 0.028866 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0.0625 | 0.4375 | 0.1875 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
241436df1f82545925c9c9bf5511f48a8f40857d | 5,226 | py | Python | dsketch/experiments/classifiers/models.py | yumaloop/DifferentiableSketching | 08ca3d5bcc30497eae463cd28fa2bc4324307917 | [
"BSD-3-Clause"
] | null | null | null | dsketch/experiments/classifiers/models.py | yumaloop/DifferentiableSketching | 08ca3d5bcc30497eae463cd28fa2bc4324307917 | [
"BSD-3-Clause"
] | null | null | null | dsketch/experiments/classifiers/models.py | yumaloop/DifferentiableSketching | 08ca3d5bcc30497eae463cd28fa2bc4324307917 | [
"BSD-3-Clause"
] | null | null | null | import importlib
import torch.nn as nn
import torch.nn.functional as F
from dsketch.experiments.shared.utils import list_class_names
class MnistCNN(nn.Module):
def __init__(self):
super().__init__()
self.conv1 = nn.Conv2d(1, 30, (5, 5), padding=0, stride=1)
self.conv2 = nn.Conv2d(30, 15... | 27.946524 | 120 | 0.572905 | 753 | 5,226 | 3.831341 | 0.172643 | 0.046101 | 0.057192 | 0.072444 | 0.69636 | 0.681802 | 0.65234 | 0.639168 | 0.639168 | 0.639168 | 0 | 0.071448 | 0.290279 | 5,226 | 186 | 121 | 28.096774 | 0.70639 | 0.081516 | 0 | 0.634328 | 0 | 0 | 0.003156 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.156716 | false | 0 | 0.037313 | 0.007463 | 0.320896 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2415c3836fd762ff4a1164760db054ae75d76ef6 | 3,785 | py | Python | test/unit/test_apply.py | asmacdo/openshift-restclient-python | 917e725259d02abdd56c57376d5e814ea0fff142 | [
"Apache-2.0"
] | 1 | 2020-01-18T08:28:11.000Z | 2020-01-18T08:28:11.000Z | test/unit/test_apply.py | asmacdo/openshift-restclient-python | 917e725259d02abdd56c57376d5e814ea0fff142 | [
"Apache-2.0"
] | null | null | null | test/unit/test_apply.py | asmacdo/openshift-restclient-python | 917e725259d02abdd56c57376d5e814ea0fff142 | [
"Apache-2.0"
] | null | null | null | # Test ConfigMapHash and SecretHash equivalents
# tests based on https://github.com/kubernetes/kubernetes/pull/49961
from openshift.dynamic.apply import merge
tests = [
dict(
last_applied = dict(
kind="ConfigMap",
metadata=dict(name="foo"),
data=dict(one="1", two="2")
... | 32.62931 | 122 | 0.481638 | 406 | 3,785 | 4.46798 | 0.236453 | 0.052922 | 0.105843 | 0.125689 | 0.644432 | 0.644432 | 0.599228 | 0.592613 | 0.567806 | 0.567806 | 0 | 0.041885 | 0.343989 | 3,785 | 115 | 123 | 32.913043 | 0.688683 | 0.067635 | 0 | 0.726415 | 0 | 0 | 0.183314 | 0.024688 | 0 | 0 | 0 | 0 | 0.009434 | 1 | 0.009434 | false | 0 | 0.009434 | 0 | 0.018868 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
241a1e487a691f42e94afc958fc3f4a5802cc824 | 873 | py | Python | eight/main.py | yumenetwork/isn-tkinter | 4811e061e86b072bc4c494e43aaf829d4b90281b | [
"MIT"
] | null | null | null | eight/main.py | yumenetwork/isn-tkinter | 4811e061e86b072bc4c494e43aaf829d4b90281b | [
"MIT"
] | null | null | null | eight/main.py | yumenetwork/isn-tkinter | 4811e061e86b072bc4c494e43aaf829d4b90281b | [
"MIT"
] | null | null | null | from tkinter import *
root = Tk()
root.geometry("300x300")
# Fonctions
def quitter():
root.quit()
root.destroy()
def left(event):
x1, y1, x2, y2 = draw.coords(ball)
draw.coords(ball, x1 - 5, y1, x2 - 5, y2)
def right(event):
x1, y1, x2, y2 = draw.coords(ball)
draw.coords(ball, x1 + 5, y1,... | 18.1875 | 61 | 0.618557 | 138 | 873 | 3.905797 | 0.311594 | 0.148423 | 0.207792 | 0.081633 | 0.38961 | 0.38961 | 0.38961 | 0.38961 | 0.38961 | 0.38961 | 0 | 0.082621 | 0.195876 | 873 | 47 | 62 | 18.574468 | 0.685185 | 0.050401 | 0 | 0.142857 | 0 | 0 | 0.048544 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.178571 | false | 0 | 0.035714 | 0 | 0.214286 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
241a380cc8d45d7d62b7483de6840ed2eae19d1f | 2,849 | py | Python | services/web/server/src/simcore_service_webserver/version_control_models_snapshots.py | Surfict/osparc-simcore | 1e0b89574ec17ecb089674f9e5daa83d624430c8 | [
"MIT"
] | null | null | null | services/web/server/src/simcore_service_webserver/version_control_models_snapshots.py | Surfict/osparc-simcore | 1e0b89574ec17ecb089674f9e5daa83d624430c8 | [
"MIT"
] | 16 | 2021-10-04T20:31:52.000Z | 2022-03-14T04:31:25.000Z | services/web/server/src/simcore_service_webserver/version_control_models_snapshots.py | Surfict/osparc-simcore | 1e0b89574ec17ecb089674f9e5daa83d624430c8 | [
"MIT"
] | null | null | null | import warnings
from datetime import datetime
from typing import Any, Callable, Optional, Union
from uuid import UUID, uuid3
from pydantic import (
AnyUrl,
BaseModel,
Field,
PositiveInt,
StrictBool,
StrictFloat,
StrictInt,
)
from pydantic.main import BaseConfig
from yarl import URL
warning... | 29.071429 | 85 | 0.672166 | 337 | 2,849 | 5.525223 | 0.424332 | 0.042965 | 0.02739 | 0.027927 | 0.055317 | 0.035446 | 0.035446 | 0 | 0 | 0 | 0 | 0.000918 | 0.23517 | 2,849 | 97 | 86 | 29.371134 | 0.853603 | 0.130221 | 0 | 0.029851 | 0 | 0 | 0.181006 | 0.038961 | 0 | 0 | 0 | 0.010309 | 0 | 1 | 0.044776 | false | 0 | 0.104478 | 0.029851 | 0.402985 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
241ef5cad9a5913d0ffdd21bf38b84c065a9c0e4 | 33,048 | py | Python | opslib/restparser.py | OpenSwitchNOS/openswitch-ops-restd | baf2f631d53966b7084c7c99e88639d857a041c5 | [
"Apache-2.0"
] | null | null | null | opslib/restparser.py | OpenSwitchNOS/openswitch-ops-restd | baf2f631d53966b7084c7c99e88639d857a041c5 | [
"Apache-2.0"
] | null | null | null | opslib/restparser.py | OpenSwitchNOS/openswitch-ops-restd | baf2f631d53966b7084c7c99e88639d857a041c5 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# Copyright (C) 2015-2016 Hewlett-Packard Enterprise Development Company, L.P.
# 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
#
# ... | 37.090909 | 79 | 0.563483 | 3,750 | 33,048 | 4.816533 | 0.132 | 0.016056 | 0.017883 | 0.009689 | 0.243495 | 0.184476 | 0.154136 | 0.120751 | 0.091186 | 0.079006 | 0 | 0.002392 | 0.354969 | 33,048 | 890 | 80 | 37.132584 | 0.844913 | 0.158981 | 0 | 0.202578 | 0 | 0 | 0.079572 | 0.000905 | 0 | 0 | 0 | 0.001124 | 0 | 0 | null | null | 0.001842 | 0.020258 | null | null | 0.051565 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2425a8864bb37938c154c7ecb0a565e634eaf045 | 585 | py | Python | py_script/myplot.py | zhz03/software_development | ba6eaada8b00f958e8bc1c89fcad8d9562c34ea9 | [
"Apache-2.0"
] | null | null | null | py_script/myplot.py | zhz03/software_development | ba6eaada8b00f958e8bc1c89fcad8d9562c34ea9 | [
"Apache-2.0"
] | null | null | null | py_script/myplot.py | zhz03/software_development | ba6eaada8b00f958e8bc1c89fcad8d9562c34ea9 | [
"Apache-2.0"
] | null | null | null | """
This is my plotting obj/feature
"""
import matplotlib.pyplot as plt
class myplot():
def __init__(self):
pass
def plot2y1x(self,x,y1,y2):
"""
This function is to plot 2 data with the same x variable in the same figurse
:param x:
:param y1:
:param y2:
... | 16.714286 | 84 | 0.51453 | 91 | 585 | 3.175824 | 0.582418 | 0.031142 | 0.034602 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.093264 | 0.340171 | 585 | 35 | 85 | 16.714286 | 0.65544 | 0.266667 | 0 | 0 | 0 | 0 | 0.021798 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0.066667 | 0.066667 | 0 | 0.266667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
2428e458d017553b608d7316f69e6ced1766b336 | 5,167 | py | Python | modules/utils.py | inconvergent/axidraw-xy | e571cc3001acd1acaf9c488434fb456e851fe47f | [
"MIT"
] | 29 | 2016-07-20T22:21:33.000Z | 2020-02-01T00:45:51.000Z | modules/utils.py | inconvergent/axidraw-xy | e571cc3001acd1acaf9c488434fb456e851fe47f | [
"MIT"
] | 4 | 2016-07-24T10:31:10.000Z | 2016-08-17T07:13:10.000Z | modules/utils.py | inconvergent/axidraw-xy | e571cc3001acd1acaf9c488434fb456e851fe47f | [
"MIT"
] | 6 | 2016-08-01T03:36:22.000Z | 2019-10-05T05:15:03.000Z | # -*- coding: utf-8 -*-
from numpy import array
from numpy import column_stack
from numpy import cos
from numpy import linspace
from numpy import pi
from numpy import reshape
from numpy import row_stack
from numpy import sin
from numpy import logical_or
from numpy.random import random
TWOPI = 2.0*pi
def get_boundi... | 22.862832 | 77 | 0.684536 | 800 | 5,167 | 4.2475 | 0.14125 | 0.076516 | 0.049441 | 0.064744 | 0.646557 | 0.610948 | 0.60359 | 0.60359 | 0.60359 | 0.60359 | 0 | 0.019947 | 0.194697 | 5,167 | 225 | 78 | 22.964444 | 0.796683 | 0.004064 | 0 | 0.517857 | 0 | 0 | 0.061272 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.059524 | false | 0 | 0.160714 | 0 | 0.261905 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
243430f2b48b88727993c7bd9f01e2f14e829386 | 1,008 | py | Python | configs/network_configs.py | t-zhong/WaPIRL | 62bb01dc20a3fad0bd04d36ac57b4fc275cbd144 | [
"MIT"
] | 7 | 2020-10-15T08:12:29.000Z | 2021-11-17T13:22:38.000Z | configs/network_configs.py | t-zhong/WaPIRL | 62bb01dc20a3fad0bd04d36ac57b4fc275cbd144 | [
"MIT"
] | 1 | 2020-11-13T12:34:36.000Z | 2020-11-13T12:43:54.000Z | configs/network_configs.py | t-zhong/WaPIRL | 62bb01dc20a3fad0bd04d36ac57b4fc275cbd144 | [
"MIT"
] | 6 | 2020-11-27T06:30:29.000Z | 2022-03-02T22:41:58.000Z | # -*- coding: utf-8 -*-
"""
Configurations for CNN architectures.
"""
ALEXNET_BACKBONE_CONFIGS = ALEXNET_ENCODER_CONFIGS = dict(
batch_norm='bn',
local_response_norm='lrn',
)
VGGNET_BACKBONE_CONFIGS = VGGNET_ENCODER_CONFIGS = {
'16': {
'channels': [[64, 64, 'M'], [128, 128, 'M'], [256, 256,... | 26.526316 | 119 | 0.472222 | 132 | 1,008 | 3.462121 | 0.310606 | 0.043764 | 0.039387 | 0.087527 | 0.308534 | 0.293217 | 0.282276 | 0.258206 | 0.258206 | 0.258206 | 0 | 0.189227 | 0.281746 | 1,008 | 37 | 120 | 27.243243 | 0.441989 | 0.059524 | 0 | 0.076923 | 0 | 0 | 0.135684 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
243609e82e1a99f99b57f5be63c53064e5363bf7 | 351 | py | Python | blog-server/tests/repositories/test_post_repository.py | rob-blackbourn/blog-engine | 9b0239996732f377b70c82eb908bae826f35e67c | [
"Apache-2.0"
] | 1 | 2019-05-13T19:40:32.000Z | 2019-05-13T19:40:32.000Z | blog-server/tests/repositories/test_post_repository.py | rob-blackbourn/blog-engine | 9b0239996732f377b70c82eb908bae826f35e67c | [
"Apache-2.0"
] | null | null | null | blog-server/tests/repositories/test_post_repository.py | rob-blackbourn/blog-engine | 9b0239996732f377b70c82eb908bae826f35e67c | [
"Apache-2.0"
] | null | null | null | import asyncio
import pytest
from motor.motor_asyncio import AsyncIOMotorClient
from blog.repositories import PostRepository
@pytest.mark.asyncio
async def test_create_blog(db):
post_repository = PostRepository()
collection = db['posts']
result = await collection.insert_one({'name': 'Rob'})
assert ... | 21.9375 | 57 | 0.769231 | 44 | 351 | 6 | 0.704545 | 0.098485 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.150997 | 351 | 15 | 58 | 23.4 | 0.885906 | 0 | 0 | 0 | 0 | 0 | 0.034188 | 0 | 0 | 0 | 0 | 0 | 0.1 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
243ad99455ae070a4372449760ea852b3a6471f2 | 344 | py | Python | src/clikit/api/resolver/command_resolver.py | finswimmer/clikit | 206198eb60d53c5daefa715f8a93e1fe85ffcf7e | [
"MIT"
] | 1 | 2020-08-07T16:09:57.000Z | 2020-08-07T16:09:57.000Z | src/clikit/api/resolver/command_resolver.py | finswimmer/clikit | 206198eb60d53c5daefa715f8a93e1fe85ffcf7e | [
"MIT"
] | null | null | null | src/clikit/api/resolver/command_resolver.py | finswimmer/clikit | 206198eb60d53c5daefa715f8a93e1fe85ffcf7e | [
"MIT"
] | 1 | 2020-01-08T18:44:26.000Z | 2020-01-08T18:44:26.000Z | from clikit.api.args import RawArgs
from .resolved_command import ResolvedCommand
class CommandResolver(object):
"""
Returns the command to execute for the given console arguments.
"""
def resolve(
self, args, application
): # type: (RawArgs, Application) -> ResolvedCommand
rais... | 22.933333 | 67 | 0.697674 | 35 | 344 | 6.828571 | 0.771429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.223837 | 344 | 14 | 68 | 24.571429 | 0.895131 | 0.325581 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
243af7f096a559a7b78ef86e12180f04fe223787 | 2,891 | py | Python | decorators/has_state_decorator/_add_state_methods/_add_from_pointer.py | ozgen92/classier | dd865978f9066e1572e13c8f74c52f82a549972d | [
"MIT"
] | null | null | null | decorators/has_state_decorator/_add_state_methods/_add_from_pointer.py | ozgen92/classier | dd865978f9066e1572e13c8f74c52f82a549972d | [
"MIT"
] | null | null | null | decorators/has_state_decorator/_add_state_methods/_add_from_pointer.py | ozgen92/classier | dd865978f9066e1572e13c8f74c52f82a549972d | [
"MIT"
] | null | null | null | from classier.decorators.has_state_decorator.options import ATTRIBUTE_OPTIONS
from classier.decorators.has_state_decorator.options import METHOD_OPTIONS
from classier.objects import ClassMarker
from classier.decorators import _MARK_ATTRIBUTE_NAME
from classier.decorators.has_state_decorator import _MARK_TYPE_NAME
impor... | 43.80303 | 116 | 0.747838 | 373 | 2,891 | 5.477212 | 0.184987 | 0.069995 | 0.070485 | 0.051395 | 0.311796 | 0.207048 | 0.187959 | 0.187959 | 0.057758 | 0.057758 | 0 | 0 | 0.187478 | 2,891 | 65 | 117 | 44.476923 | 0.869732 | 0.036666 | 0 | 0.042553 | 0 | 0 | 0.021223 | 0 | 0 | 0 | 0 | 0.015385 | 0 | 1 | 0.06383 | false | 0 | 0.148936 | 0 | 0.297872 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
243ce01e5bd69e2db1758ee115ce3554b5dbe03b | 1,914 | py | Python | tests/test_ayab_image.py | shiluka/knitlib | bbba655f18a7466a626cfb805ffd97206c9407fd | [
"BSD-2-Clause"
] | null | null | null | tests/test_ayab_image.py | shiluka/knitlib | bbba655f18a7466a626cfb805ffd97206c9407fd | [
"BSD-2-Clause"
] | null | null | null | tests/test_ayab_image.py | shiluka/knitlib | bbba655f18a7466a626cfb805ffd97206c9407fd | [
"BSD-2-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# This file is part of Knitlib. It is based on AYAB.
#
# Knitlib is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any l... | 35.444444 | 89 | 0.69279 | 262 | 1,914 | 4.961832 | 0.458015 | 0.062308 | 0.08 | 0.087692 | 0.181538 | 0.087692 | 0 | 0 | 0 | 0 | 0 | 0.010013 | 0.217346 | 1,914 | 53 | 90 | 36.113208 | 0.85781 | 0.392372 | 0 | 0.074074 | 0 | 0 | 0.029694 | 0 | 0 | 0 | 0 | 0 | 0.222222 | 1 | 0.259259 | false | 0 | 0.185185 | 0 | 0.481481 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
243dfe64633a13e18a5a8dd2d7969fdcff640012 | 5,348 | py | Python | scripts/adbconnect.py | acmerobotics/relic-recovery | 4ff05bbf906829aef0a98bc32691e5d0eadc1d8f | [
"MIT"
] | 32 | 2018-01-17T03:00:02.000Z | 2022-01-15T18:30:48.000Z | scripts/adbconnect.py | acmerobotics/relic-recovery | 4ff05bbf906829aef0a98bc32691e5d0eadc1d8f | [
"MIT"
] | 4 | 2017-10-21T20:28:27.000Z | 2018-04-02T05:27:00.000Z | scripts/adbconnect.py | acmerobotics/relic-recovery | 4ff05bbf906829aef0a98bc32691e5d0eadc1d8f | [
"MIT"
] | 7 | 2018-02-21T00:59:20.000Z | 2021-01-21T21:52:17.000Z | from subprocess import run, Popen, PIPE, DEVNULL
from time import sleep
import sys, os
RC_PACKAGE = 'com.qualcomm.ftcrobotcontroller'
RC_ACTIVITY = 'org.firstinspires.ftc.robotcontroller.internal.FtcRobotControllerActivity'
ADB_PORT = 5555
PROFILE_FILENAME = 'temp.xml'
WIFI_DIRECT_PREFIX = 'DIRECT-xx-'
PROFILE_XML =... | 38.753623 | 123 | 0.585826 | 591 | 5,348 | 5.218274 | 0.321489 | 0.01751 | 0.011673 | 0.021401 | 0.203632 | 0.178988 | 0.154994 | 0.154994 | 0.037613 | 0.037613 | 0 | 0.009632 | 0.262341 | 5,348 | 137 | 124 | 39.036496 | 0.772117 | 0.021129 | 0 | 0.146341 | 0 | 0 | 0.35672 | 0.078952 | 0 | 0 | 0 | 0.007299 | 0 | 1 | 0.02439 | false | 0.089431 | 0.02439 | 0 | 0.073171 | 0.138211 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
2441cf527b1abb5c839116d314a7cd38992786a2 | 788 | py | Python | Desafio022.py | MarcioRSanches/Estudos_Python | 2fef374b82645d4efced42f3dc666bb0603cd858 | [
"MIT"
] | null | null | null | Desafio022.py | MarcioRSanches/Estudos_Python | 2fef374b82645d4efced42f3dc666bb0603cd858 | [
"MIT"
] | null | null | null | Desafio022.py | MarcioRSanches/Estudos_Python | 2fef374b82645d4efced42f3dc666bb0603cd858 | [
"MIT"
] | null | null | null | nomecompleto = str(input('Digite o seu nome completo: ')).strip()
print('Analisando seu nome....')
print('Seu nome em maiúsculas é {} '.format(nomecompleto.upper()))
print('Seu nome em minúsculas é {} '.format(nomecompleto.lower()))
print('Seu nome apenas com a primeira letra maiúscula é {}'.format(nomecompleto.capita... | 60.615385 | 163 | 0.728426 | 109 | 788 | 5.266055 | 0.458716 | 0.085366 | 0.10453 | 0.04878 | 0.156794 | 0.156794 | 0.156794 | 0.156794 | 0 | 0 | 0 | 0.002861 | 0.112944 | 788 | 12 | 164 | 65.666667 | 0.818312 | 0.088832 | 0 | 0 | 0 | 0 | 0.444134 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.818182 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
2442e965d1bf05922f310f5002fe5ab0b18f3848 | 960 | py | Python | enqueue.py | alex-groshev/SpyPy | c56f0552e274e3af25ec1c7bab356d77e8610b87 | [
"MIT"
] | null | null | null | enqueue.py | alex-groshev/SpyPy | c56f0552e274e3af25ec1c7bab356d77e8610b87 | [
"MIT"
] | null | null | null | enqueue.py | alex-groshev/SpyPy | c56f0552e274e3af25ec1c7bab356d77e8610b87 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import sys
import pika
from bson.json_util import dumps
from confspy import ConfSpyPy
from dataspy import DataSpyPy
def main():
if len(sys.argv) < 2:
print 'Please, specify a number of records to enqueue and regular expression (optional)!'
sys.exit(1)
conf... | 30.967742 | 111 | 0.677083 | 119 | 960 | 5.344538 | 0.605042 | 0.044025 | 0.025157 | 0.037736 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006502 | 0.198958 | 960 | 30 | 112 | 32 | 0.820546 | 0.020833 | 0 | 0 | 0 | 0 | 0.157316 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.238095 | null | null | 0.095238 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
244be3fe4ceb2c6c80dfe5fa396104fcfc0289fd | 564 | py | Python | umar.py | UMarda/CP19_025 | cde2d07c7c87dd1e4bd23f92ff6e1e3dd347f9c0 | [
"MIT"
] | 1 | 2019-04-21T14:56:02.000Z | 2019-04-21T14:56:02.000Z | umar.py | UMarda/CP19_025 | cde2d07c7c87dd1e4bd23f92ff6e1e3dd347f9c0 | [
"MIT"
] | 7 | 2019-05-05T06:34:09.000Z | 2019-05-13T20:52:36.000Z | umar.py | UMarda/cp19_25 | cde2d07c7c87dd1e4bd23f92ff6e1e3dd347f9c0 | [
"MIT"
] | null | null | null | ##################################Question 4#####################################
a=input("Enter the paragraph : ")
b=" "
l=len(a)
for i in range(l):
if i==0: # capital first letter of para
b+=a[i].upper()
if a[i]=="." and i+1!=l: # after the full stop without give a space
b+="."
... | 31.333333 | 81 | 0.340426 | 71 | 564 | 2.704225 | 0.492958 | 0.052083 | 0.03125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011962 | 0.258865 | 564 | 17 | 82 | 33.176471 | 0.447368 | 0.187943 | 0 | 0 | 0 | 0 | 0.082781 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.066667 | 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 | 0 | 0 | 1 |
24514922897fe45a0f95849f2cf9d6110658dbf6 | 1,948 | py | Python | bot/constants/messages.py | eyobofficial/Gebeya-Schedule-Bot | 8c757fa8c26cf5dda6f917997c521d0f37b28aa9 | [
"MIT"
] | 3 | 2019-08-27T11:40:17.000Z | 2021-04-13T17:51:48.000Z | bot/constants/messages.py | eyobofficial/Gebeya-Schedule-Bot | 8c757fa8c26cf5dda6f917997c521d0f37b28aa9 | [
"MIT"
] | 17 | 2019-08-26T23:55:32.000Z | 2021-06-09T18:25:32.000Z | bot/constants/messages.py | eyobofficial/Gebeya-Schedule-Bot | 8c757fa8c26cf5dda6f917997c521d0f37b28aa9 | [
"MIT"
] | 2 | 2019-08-30T07:15:15.000Z | 2019-08-30T14:23:36.000Z | welcome_message = \
"""
👋🏼 Hi {}! You are currently enrolled to the {} track \
during the {}-time session.
*To checkout your class schedules:*
/today - get class schedules for today
/tomorrow - get class schedules for tomorrow
/week - get class schedules for 1 week starting from today
/month - get class schedules fo... | 22.917647 | 80 | 0.707906 | 302 | 1,948 | 4.576159 | 0.291391 | 0.111433 | 0.098408 | 0.115774 | 0.674385 | 0.674385 | 0.674385 | 0.6411 | 0.6411 | 0.6411 | 0 | 0.010165 | 0.191992 | 1,948 | 84 | 81 | 23.190476 | 0.86277 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2453c95f50436d3b53994f463bb9e00bba564408 | 22,546 | py | Python | dbcArchives/2021/000_6-sds-3-x-dl/055_DLbyABr_04-ConvolutionalNetworks.py | r-e-x-a-g-o-n/scalable-data-science | a97451a768cf12eec9a20fbe5552bbcaf215d662 | [
"Unlicense"
] | 138 | 2017-07-25T06:48:28.000Z | 2022-03-31T12:23:36.000Z | dbcArchives/2021/000_6-sds-3-x-dl/055_DLbyABr_04-ConvolutionalNetworks.py | r-e-x-a-g-o-n/scalable-data-science | a97451a768cf12eec9a20fbe5552bbcaf215d662 | [
"Unlicense"
] | 11 | 2017-08-17T13:45:54.000Z | 2021-06-04T09:06:53.000Z | dbcArchives/2021/000_6-sds-3-x-dl/055_DLbyABr_04-ConvolutionalNetworks.py | r-e-x-a-g-o-n/scalable-data-science | a97451a768cf12eec9a20fbe5552bbcaf215d662 | [
"Unlicense"
] | 74 | 2017-08-18T17:04:46.000Z | 2022-03-21T14:30:51.000Z | # Databricks notebook source
# MAGIC %md
# MAGIC ScaDaMaLe Course [site](https://lamastex.github.io/scalable-data-science/sds/3/x/) and [book](https://lamastex.github.io/ScaDaMaLe/index.html)
# MAGIC
# MAGIC This is a 2019-2021 augmentation and update of [Adam Breindel](https://www.linkedin.com/in/adbreind)'s initial ... | 39.485114 | 455 | 0.720571 | 3,431 | 22,546 | 4.682017 | 0.258817 | 0.070966 | 0.01494 | 0.022473 | 0.323705 | 0.299116 | 0.285919 | 0.271663 | 0.229084 | 0.195966 | 0 | 0.026022 | 0.154573 | 22,546 | 570 | 456 | 39.554386 | 0.816746 | 0.740841 | 0 | 0.709677 | 0 | 0.032258 | 0.127069 | 0.068775 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.072581 | 0 | 0.072581 | 0.08871 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2454ee24c89097decbd0474a34dff98d40b9404f | 232 | py | Python | intent_server/__init__.py | visdesignlab/intent-system | 874714216771d90a84e887416a21c75e12a225b0 | [
"MIT"
] | 3 | 2020-06-19T00:03:53.000Z | 2022-01-20T07:58:53.000Z | intent_server/__init__.py | visdesignlab/intent-system | 874714216771d90a84e887416a21c75e12a225b0 | [
"MIT"
] | 179 | 2019-07-31T20:52:44.000Z | 2021-10-06T01:31:59.000Z | intent_server/__init__.py | visdesignlab/intent-system | 874714216771d90a84e887416a21c75e12a225b0 | [
"MIT"
] | 1 | 2020-06-15T07:32:09.000Z | 2020-06-15T07:32:09.000Z | from flask import Flask
from .views import views
def create_app() -> Flask:
app = Flask(
__name__,
static_url_path='',
static_folder='../app/build',
)
app.register_blueprint(views)
return app
| 13.647059 | 35 | 0.625 | 28 | 232 | 4.857143 | 0.571429 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.267241 | 232 | 16 | 36 | 14.5 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0.051724 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.2 | 0 | 0.4 | 0.1 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2455ad2246575967d5ac60feffec5987a9cf23f1 | 1,034 | py | Python | mydata_did/patched_protocols/issue_credential/v1_0/messages/credential_ack.py | decentralised-dataexchange/acapy-mydata-did-protocol | c84d86d12689cfb1a29d43734ee27a03ccdf8d77 | [
"Apache-2.0"
] | 1 | 2022-02-10T17:51:27.000Z | 2022-02-10T17:51:27.000Z | mydata_did/patched_protocols/issue_credential/v1_0/messages/credential_ack.py | decentralised-dataexchange/acapy-mydata-did-protocol | c84d86d12689cfb1a29d43734ee27a03ccdf8d77 | [
"Apache-2.0"
] | 12 | 2021-09-19T14:27:56.000Z | 2022-03-28T13:31:58.000Z | mydata_did/patched_protocols/issue_credential/v1_0/messages/credential_ack.py | decentralised-dataexchange/acapy-mydata-did-protocol | c84d86d12689cfb1a29d43734ee27a03ccdf8d77 | [
"Apache-2.0"
] | 1 | 2022-01-03T14:09:05.000Z | 2022-01-03T14:09:05.000Z | """A credential ack message."""
from marshmallow import EXCLUDE
from aries_cloudagent.messaging.ack.message import Ack, AckSchema
from aries_cloudagent.messaging.decorators.base import BaseDecoratorSet
from ..message_types import CREDENTIAL_ACK, PROTOCOL_PACKAGE
from .....v1_0.decorators.patched_decorator_set impor... | 25.85 | 78 | 0.72147 | 103 | 1,034 | 6.980583 | 0.436893 | 0.108484 | 0.038943 | 0.058414 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002361 | 0.180851 | 1,034 | 39 | 79 | 26.512821 | 0.846517 | 0.155706 | 0 | 0.105263 | 0 | 0 | 0.106888 | 0.084323 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.263158 | 0 | 0.526316 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
24564c70d4cffbbd0d54efaeeb4bfe5ad4c98b64 | 1,410 | py | Python | oldqa/qa/src/dedt_tests/Test_provenanceRewriter.py | KDahlgren/pyLDFI | 5a900392a18ab763d02046d13392e97f7c141f4e | [
"MIT"
] | 6 | 2016-10-16T04:36:43.000Z | 2017-05-04T05:18:45.000Z | oldqa/qa/src/dedt_tests/Test_provenanceRewriter.py | KDahlgren/pyldfi | 5a900392a18ab763d02046d13392e97f7c141f4e | [
"MIT"
] | 9 | 2016-11-01T23:12:09.000Z | 2017-05-06T22:27:08.000Z | oldqa/qa/src/dedt_tests/Test_provenanceRewriter.py | KDahlgren/pyldfi | 5a900392a18ab763d02046d13392e97f7c141f4e | [
"MIT"
] | 1 | 2018-12-15T08:03:37.000Z | 2018-12-15T08:03:37.000Z | #!/usr/bin/env python
'''
Test_provenanceRewriter.py
Defines unit tests for provenanceRewriter.py from src/dedt/.
'''
#############
# IMPORTS #
#############
# standard python packages
import inspect, os, sqlite3, sys, unittest
from StringIO import StringIO
# -----------------------------------------------------... | 21.692308 | 68 | 0.503546 | 114 | 1,410 | 6.017544 | 0.587719 | 0.030612 | 0.122449 | 0.139942 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001665 | 0.148227 | 1,410 | 64 | 69 | 22.03125 | 0.569525 | 0.317021 | 0 | 0.2 | 0 | 0 | 0.058735 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.266667 | 0.2 | 0.733333 | 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 | 0 | 0 | 0 | 1 |
245fd8e1a35b6555c73b84164af6e720e538549c | 14,272 | py | Python | B2G/gecko/testing/mozbase/mozrunner/mozrunner/runner.py | wilebeast/FireFox-OS | 43067f28711d78c429a1d6d58c77130f6899135f | [
"Apache-2.0"
] | 3 | 2015-08-31T15:24:31.000Z | 2020-04-24T20:31:29.000Z | B2G/gecko/testing/mozbase/mozrunner/mozrunner/runner.py | wilebeast/FireFox-OS | 43067f28711d78c429a1d6d58c77130f6899135f | [
"Apache-2.0"
] | null | null | null | B2G/gecko/testing/mozbase/mozrunner/mozrunner/runner.py | wilebeast/FireFox-OS | 43067f28711d78c429a1d6d58c77130f6899135f | [
"Apache-2.0"
] | 3 | 2015-07-29T07:17:15.000Z | 2020-11-04T06:55:37.000Z | #!/usr/bin/env python
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.
__all__ = ['Runner', 'ThunderbirdRunner', 'FirefoxRunner', 'runners', 'CLI', 'cli', 'package_meta... | 36.688946 | 122 | 0.605101 | 1,624 | 14,272 | 5.206897 | 0.22968 | 0.020814 | 0.029801 | 0.006386 | 0.105014 | 0.050142 | 0.033349 | 0.008278 | 0 | 0 | 0 | 0.004344 | 0.290289 | 14,272 | 388 | 123 | 36.783505 | 0.830487 | 0.095992 | 0 | 0.090129 | 0 | 0 | 0.116071 | 0.002033 | 0 | 0 | 0 | 0.002577 | 0.004292 | 0 | null | null | 0 | 0.055794 | null | null | 0.017167 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
246b8c98352fb3c9b415caf715e4966bb64fe27a | 3,614 | py | Python | Offline tasks/Offline_task_10/zad10.py | Szymon-Budziak/ASD_exercises_solutions | 36ccbdae03a6c7e4ad141a2b7b01bef9353574ee | [
"MIT"
] | 7 | 2021-12-28T23:38:42.000Z | 2022-03-29T16:36:16.000Z | Offline tasks/Offline_task_10/zad10.py | Szymon-Budziak/ASD_exercises_solutions | 36ccbdae03a6c7e4ad141a2b7b01bef9353574ee | [
"MIT"
] | null | null | null | Offline tasks/Offline_task_10/zad10.py | Szymon-Budziak/ASD_exercises_solutions | 36ccbdae03a6c7e4ad141a2b7b01bef9353574ee | [
"MIT"
] | 4 | 2021-06-29T20:21:52.000Z | 2022-03-12T10:04:17.000Z | class BSTNode:
def __init__(self, key):
self.key = key
self.left = None
self.right = None
self.parent = None
def find(root, key):
while root is not None:
if root.key == key:
return root
elif key < root.key:
root = root.left
else:
... | 30.369748 | 106 | 0.623962 | 497 | 3,614 | 4.424547 | 0.084507 | 0.213734 | 0.160073 | 0.049113 | 0.497954 | 0.394725 | 0.324693 | 0.282856 | 0.282856 | 0.255571 | 0 | 0.014408 | 0.28943 | 3,614 | 118 | 107 | 30.627119 | 0.8419 | 0 | 0 | 0.396226 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.056604 | false | 0 | 0 | 0 | 0.264151 | 0.160377 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
79e3885deb1ddc083673777f43242cd84431cb40 | 13,253 | py | Python | FATERUI/ui_settingdlg.py | LynnChan706/Fater | dde8e3baaac7be8b0c1f8bee0da628f6e6f2b772 | [
"MIT"
] | 4 | 2018-12-07T02:17:26.000Z | 2020-12-03T05:32:23.000Z | FATERUI/ui_settingdlg.py | LynnChan706/Fater | dde8e3baaac7be8b0c1f8bee0da628f6e6f2b772 | [
"MIT"
] | null | null | null | FATERUI/ui_settingdlg.py | LynnChan706/Fater | dde8e3baaac7be8b0c1f8bee0da628f6e6f2b772 | [
"MIT"
] | 1 | 2021-12-30T12:14:52.000Z | 2021-12-30T12:14:52.000Z | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'settingdlg.ui'
#
# Created by: PyQt5 UI code generator 5.5.1
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_settingdlg(object):
def setupUi(self, settingdlg):
settin... | 57.125 | 115 | 0.724515 | 1,283 | 13,253 | 7.346843 | 0.128605 | 0.129429 | 0.046892 | 0.030342 | 0.274666 | 0.123064 | 0.03607 | 0.026098 | 0.026098 | 0.026098 | 0 | 0.01897 | 0.164717 | 13,253 | 231 | 116 | 57.372294 | 0.83252 | 0.013808 | 0 | 0.050228 | 1 | 0 | 0.090568 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.009132 | false | 0 | 0.004566 | 0 | 0.018265 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
79e8994c6d791643f9e4d90e6facf8171500843d | 2,215 | py | Python | _integration/python-pymysql/test.py | jfrabaute/go-mysql-server | ce73caaf050acbb34d6ac66fccf700651336ad0d | [
"Apache-2.0"
] | 114 | 2020-01-15T21:45:24.000Z | 2020-09-24T03:49:35.000Z | _integration/python-pymysql/test.py | jfrabaute/go-mysql-server | ce73caaf050acbb34d6ac66fccf700651336ad0d | [
"Apache-2.0"
] | 63 | 2019-07-02T00:15:00.000Z | 2020-09-24T03:47:41.000Z | _integration/python-pymysql/test.py | jfrabaute/go-mysql-server | ce73caaf050acbb34d6ac66fccf700651336ad0d | [
"Apache-2.0"
] | 13 | 2020-05-01T04:28:42.000Z | 2020-09-09T02:32:52.000Z | # Copyright 2020-2021 Dolthub, 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... | 37.542373 | 76 | 0.604063 | 269 | 2,215 | 4.94052 | 0.416357 | 0.090293 | 0.039127 | 0.048157 | 0.659142 | 0.659142 | 0.626035 | 0.626035 | 0.626035 | 0.626035 | 0 | 0.014221 | 0.30158 | 2,215 | 58 | 77 | 38.189655 | 0.844861 | 0.494357 | 0 | 0 | 0 | 0 | 0.180238 | 0 | 0 | 0 | 0 | 0 | 0.04 | 1 | 0.04 | false | 0.04 | 0.08 | 0 | 0.16 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
79ef6b93e4d84344b1077093a2814ef640d1c290 | 3,628 | py | Python | finicityapi/models/certified_institution.py | monarchmoney/finicity-python | b2ab1ded435db75c78d42261f5e4acd2a3061487 | [
"MIT"
] | null | null | null | finicityapi/models/certified_institution.py | monarchmoney/finicity-python | b2ab1ded435db75c78d42261f5e4acd2a3061487 | [
"MIT"
] | null | null | null | finicityapi/models/certified_institution.py | monarchmoney/finicity-python | b2ab1ded435db75c78d42261f5e4acd2a3061487 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import finicityapi.models.child_institution
class CertifiedInstitution(object):
"""Implementation of the 'Certified Institution' model.
TODO: type model description here.
Attributes:
name (string): Institution's name
id (long|int): Institution's Id
... | 31.275862 | 124 | 0.541621 | 350 | 3,628 | 5.511429 | 0.268571 | 0.067392 | 0.017107 | 0.034215 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000444 | 0.379272 | 3,628 | 115 | 125 | 31.547826 | 0.856128 | 0.314223 | 0 | 0 | 0 | 0 | 0.077336 | 0 | 0 | 0 | 0 | 0.017391 | 0 | 1 | 0.030769 | false | 0 | 0.015385 | 0 | 0.107692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.