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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e3efe9897da520a03e7e627ea52ed84e6b7b7013 | 816 | py | Python | hash_encrypt.py | dingwen07/account-manage-system | 8c65a5cf8c3c2b73e10fa4e36260c773fd9d9c6d | [
"MIT"
] | null | null | null | hash_encrypt.py | dingwen07/account-manage-system | 8c65a5cf8c3c2b73e10fa4e36260c773fd9d9c6d | [
"MIT"
] | null | null | null | hash_encrypt.py | dingwen07/account-manage-system | 8c65a5cf8c3c2b73e10fa4e36260c773fd9d9c6d | [
"MIT"
] | null | null | null | import hashlib
import json
ACCOUNT_DATA_FILE = 'account.json'
def hash_encrypt(user_id, password):
with open(ACCOUNT_DATA_FILE, 'r') as load_f:
load_data = json.load(load_f)
salt_a_a = load_data['config']['login']['LoginMethod']['password']['salt']['salt_a_a']
salt_a_b = load_data['config']['logi... | 40.8 | 90 | 0.678922 | 130 | 816 | 3.869231 | 0.253846 | 0.059642 | 0.111332 | 0.151093 | 0.441352 | 0.441352 | 0.38171 | 0.38171 | 0.38171 | 0 | 0 | 0.007163 | 0.144608 | 816 | 19 | 91 | 42.947368 | 0.713467 | 0 | 0 | 0 | 0 | 0 | 0.221814 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0.375 | 0.125 | 0 | 0.25 | 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 |
e3f7cefb9cf75e3546ba6cd0242f82ab2e50cef8 | 923 | py | Python | orchestra/urls.py | RubenPX/django-orchestra | 5ab4779e1ae12ec99569d682601b7810587ed381 | [
"Unlicense"
] | null | null | null | orchestra/urls.py | RubenPX/django-orchestra | 5ab4779e1ae12ec99569d682601b7810587ed381 | [
"Unlicense"
] | 4 | 2021-01-30T14:26:46.000Z | 2022-03-18T16:28:39.000Z | orchestra/urls.py | RubenPX/django-orchestra | 5ab4779e1ae12ec99569d682601b7810587ed381 | [
"Unlicense"
] | 3 | 2022-02-06T04:35:59.000Z | 2022-03-17T00:40:17.000Z | from django.contrib import admin
from django.conf.urls import include, url
from rest_framework.authtoken.views import obtain_auth_token
from orchestra.views import serve_private_media
from . import api
from .utils.apps import isinstalled
admin.autodiscover()
api.autodiscover()
urlpatterns = [
# Admin
url(... | 27.969697 | 88 | 0.687974 | 121 | 923 | 5.082645 | 0.305785 | 0.052033 | 0.034146 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.136511 | 923 | 32 | 89 | 28.84375 | 0.771644 | 0.080173 | 0 | 0 | 0 | 0 | 0.216568 | 0.03787 | 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 |
e3f942c3127bc845a05eddd93fb595d026a8e47c | 468 | py | Python | src/commands/FindFunctionsCommand.py | UCHH57/BufferDestroyer69 | b82fd06635485228f8aecc0c4ffbbbb43ba0723b | [
"MIT"
] | null | null | null | src/commands/FindFunctionsCommand.py | UCHH57/BufferDestroyer69 | b82fd06635485228f8aecc0c4ffbbbb43ba0723b | [
"MIT"
] | null | null | null | src/commands/FindFunctionsCommand.py | UCHH57/BufferDestroyer69 | b82fd06635485228f8aecc0c4ffbbbb43ba0723b | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
from Command import Command
from os import system
class FindFunctionsCommand(Command):
command = "ff"
usage = "[function name]"
help = "\tGet a function address.\n\tex:\tff system"
def set_option(self, option, cmd):
system('(echo "b main"; echo ... | 29.25 | 93 | 0.566239 | 63 | 468 | 4.190476 | 0.746032 | 0.030303 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019886 | 0.247863 | 468 | 15 | 94 | 31.2 | 0.730114 | 0.09188 | 0 | 0 | 0 | 0 | 0.380615 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 0 | 0.777778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
e3f9ae18539fadeee071cb709db255970a5f25ee | 1,559 | py | Python | src/moderation/tests/settings/csrf_middleware.py | ixc/django-moderation | 2755020cd645b79791853e714b8fafa8e6ee7b1c | [
"BSD-3-Clause"
] | null | null | null | src/moderation/tests/settings/csrf_middleware.py | ixc/django-moderation | 2755020cd645b79791853e714b8fafa8e6ee7b1c | [
"BSD-3-Clause"
] | null | null | null | src/moderation/tests/settings/csrf_middleware.py | ixc/django-moderation | 2755020cd645b79791853e714b8fafa8e6ee7b1c | [
"BSD-3-Clause"
] | null | null | null | from moderation.tests.utils.testsettingsmanager import get_only_settings_locals
import django
import os
DATABASE_ENGINE = 'sqlite3'
DEBUG = True
INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.admin',
'django.contrib.sites',
'm... | 28.87037 | 79 | 0.712636 | 157 | 1,559 | 6.923567 | 0.414013 | 0.143514 | 0.046918 | 0.038638 | 0.305428 | 0.305428 | 0.200552 | 0.200552 | 0.200552 | 0.200552 | 0 | 0.006102 | 0.159076 | 1,559 | 53 | 80 | 29.415094 | 0.823036 | 0.025657 | 0 | 0.195122 | 0 | 0 | 0.492754 | 0.422266 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.073171 | 0 | 0.073171 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
54019e3b5ea0a9a87c84f7e83d9be5d5562656b8 | 2,518 | py | Python | simulations/effect_of_position/make_params_positioneffect.py | thejasvibr/the_cocktail_party_nightmare | 385bd4c6d1b8bfc7079b3ba68a0fc3ce79cec3f6 | [
"MIT"
] | 2 | 2019-06-15T14:08:11.000Z | 2022-03-16T09:00:25.000Z | simulations/effect_of_position/make_params_positioneffect.py | thejasvibr/the_cocktail_party_nightmare | 385bd4c6d1b8bfc7079b3ba68a0fc3ce79cec3f6 | [
"MIT"
] | null | null | null | simulations/effect_of_position/make_params_positioneffect.py | thejasvibr/the_cocktail_party_nightmare | 385bd4c6d1b8bfc7079b3ba68a0fc3ce79cec3f6 | [
"MIT"
] | null | null | null | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""Explores the effect of multiple variables on the CPN all for 200 bats -
which is the a group size at which a focal bat in the centre can just
about detect one neighbour per call.
Created on Sun Sep 1 20:22:09 2019
@author: tbeleyur
"""
import glob
import os
import s... | 35.971429 | 89 | 0.687053 | 307 | 2,518 | 5.374593 | 0.423453 | 0.206061 | 0.038182 | 0.026667 | 0.009697 | 0.009697 | 0 | 0 | 0 | 0 | 0 | 0.028747 | 0.22637 | 2,518 | 69 | 90 | 36.492754 | 0.818275 | 0.110802 | 0 | 0 | 0 | 0 | 0.129538 | 0.0381 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 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 |
540cf54f7f266c93e0f158c6fd632e007b37e9f3 | 1,035 | py | Python | config.py | torpedoallen/drag-me-here | ceac88dd3721aca8feb9b33e46248755650ceaf9 | [
"BSD-3-Clause"
] | 69 | 2015-01-16T03:07:51.000Z | 2021-09-07T10:18:15.000Z | config.py | torpedoallen/drag-me-here | ceac88dd3721aca8feb9b33e46248755650ceaf9 | [
"BSD-3-Clause"
] | 2 | 2015-08-12T08:37:23.000Z | 2018-07-05T09:06:15.000Z | config.py | torpedoallen/drag-me-here | ceac88dd3721aca8feb9b33e46248755650ceaf9 | [
"BSD-3-Clause"
] | 25 | 2015-01-14T16:34:17.000Z | 2021-09-29T06:19:09.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# AUTHOR: fanzeyi
from plim import preprocessor
try:
from dae.api import permdir
from dae.api.mysql import get_mysql_conn_params
_SQL_PARAMS = get_mysql_conn_params()
UPLOAD_FOLDER = permdir.get_permdir()
except ImportError:
_SQL_PARAMS = {
... | 27.236842 | 78 | 0.508213 | 105 | 1,035 | 4.714286 | 0.533333 | 0.127273 | 0.018182 | 0.072727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032508 | 0.375845 | 1,035 | 37 | 79 | 27.972973 | 0.733746 | 0.057971 | 0 | 0.071429 | 0 | 0 | 0.085391 | 0.022634 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.107143 | 0.178571 | 0 | 0.178571 | 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 |
540daf7d3558d464122ad042b81f3d9890efa688 | 333 | py | Python | skfem/element/element_quad/element_quad0.py | YerbaPage/scikit-fem | e5140e0648e4a0f1ea0b60de90851ab49d369453 | [
"BSD-3-Clause"
] | null | null | null | skfem/element/element_quad/element_quad0.py | YerbaPage/scikit-fem | e5140e0648e4a0f1ea0b60de90851ab49d369453 | [
"BSD-3-Clause"
] | null | null | null | skfem/element/element_quad/element_quad0.py | YerbaPage/scikit-fem | e5140e0648e4a0f1ea0b60de90851ab49d369453 | [
"BSD-3-Clause"
] | null | null | null | import numpy as np
from ..element_h1 import ElementH1
from ...mesh.mesh2d import MeshQuad
class ElementQuad0(ElementH1):
interior_dofs = 1
dim = 2
maxdeg = 0
dofnames = ['u']
doflocs = np.zeros((1, 2))
mesh_type = MeshQuad
def lbasis(self, X, i):
return np.ones(X.shape[1]), np.z... | 18.5 | 52 | 0.636637 | 49 | 333 | 4.244898 | 0.693878 | 0.067308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043651 | 0.243243 | 333 | 17 | 53 | 19.588235 | 0.781746 | 0 | 0 | 0 | 0 | 0 | 0.003003 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.25 | 0.083333 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
5411f7b4e2744b95ce530f3a57c726e1e75653fe | 786 | py | Python | scripts/duplicateDetector.py | jccaicedo/localization-agent | d280acf355307b74e68dca9ec80ab293f0d18642 | [
"MIT"
] | 8 | 2016-11-20T19:43:45.000Z | 2020-12-09T04:58:05.000Z | scripts/duplicateDetector.py | jccaicedo/localization-agent | d280acf355307b74e68dca9ec80ab293f0d18642 | [
"MIT"
] | 45 | 2015-05-04T20:41:05.000Z | 2017-07-17T12:04:13.000Z | scripts/duplicateDetector.py | jccaicedo/localization-agent | d280acf355307b74e68dca9ec80ab293f0d18642 | [
"MIT"
] | 9 | 2016-11-20T19:43:46.000Z | 2020-09-01T21:01:54.000Z | import os,sys
from PIL import Image
import utils as cu
import numpy as np
def findNearestNeighbor(H,i):
J = np.tile(H[i,:],(H.shape[0],1))
R = np.sum( np.abs(J-H), axis=1 )
R[i] = np.inf
return np.argmin(R),np.min(R)
params = cu.loadParams('imageDir')
dir = params['imageDir']
allImages = os.listdir(dir)
H = n... | 23.117647 | 46 | 0.625954 | 133 | 786 | 3.699248 | 0.43609 | 0.012195 | 0.085366 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021909 | 0.187023 | 786 | 33 | 47 | 23.818182 | 0.748044 | 0 | 0 | 0 | 0 | 0 | 0.05598 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.133333 | null | null | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
541939cb69d4ea2809ef3b5c9c32fd8c9a6ce4e9 | 392 | py | Python | test_urls.py | dhozac/socrates_gui | e3a8166b4f406fe660ff2343c50696baf8c113e2 | [
"Apache-2.0"
] | 2 | 2019-01-29T20:37:04.000Z | 2020-12-15T16:48:46.000Z | test_urls.py | dhozac/socrates_gui | e3a8166b4f406fe660ff2343c50696baf8c113e2 | [
"Apache-2.0"
] | 1 | 2018-05-24T08:38:31.000Z | 2018-05-24T08:38:31.000Z | test_urls.py | dhozac/socrates_gui | e3a8166b4f406fe660ff2343c50696baf8c113e2 | [
"Apache-2.0"
] | 1 | 2020-12-25T23:29:30.000Z | 2020-12-25T23:29:30.000Z | from django.conf.urls import include, url
urlpatterns = [
url(r'', include('django_rethink.urls', namespace='django_rethink')),
url(r'^bonk/', include('bonk.urls', namespace='bonk')),
url(r'', include('socrates_api.urls', namespace='socrates_api')),
url(r'^gui/', include('socrates_gui.urls', namespace=... | 39.2 | 74 | 0.67602 | 51 | 392 | 5.058824 | 0.352941 | 0.077519 | 0.085271 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.112245 | 392 | 9 | 75 | 43.555556 | 0.741379 | 0 | 0 | 0 | 0 | 0 | 0.357143 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
541a94c610c0f6573e40ba3c1ad4de9888a279d0 | 248 | py | Python | mymodules.py | dabrowskiw/UE-EinfuehrungGesundheitsinformatik | 6d2db95d99945545bf6eefdbb69104e67266ef3a | [
"CC-BY-4.0"
] | null | null | null | mymodules.py | dabrowskiw/UE-EinfuehrungGesundheitsinformatik | 6d2db95d99945545bf6eefdbb69104e67266ef3a | [
"CC-BY-4.0"
] | null | null | null | mymodules.py | dabrowskiw/UE-EinfuehrungGesundheitsinformatik | 6d2db95d99945545bf6eefdbb69104e67266ef3a | [
"CC-BY-4.0"
] | null | null | null | def dostuff(what):
print("You want me to do what? " + what + "?")
print("Hi there, thanks for importing mymdolues!")
if __name__=="__main__":
from sys import argv
print(argv)
if argv[1] == "Hi":
print("Hello to you, too!") | 24.8 | 50 | 0.604839 | 36 | 248 | 3.944444 | 0.694444 | 0.126761 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005291 | 0.237903 | 248 | 10 | 51 | 24.8 | 0.746032 | 0 | 0 | 0 | 0 | 0 | 0.37751 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.25 | 0 | 0.375 | 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 |
5424151ff0cc5f56df329e9528a8f7261dba9f6c | 1,177 | py | Python | setup.py | e-dard/postcodes | d63c47b4ecd765bc2e4e6ba34bc0b8a796f44005 | [
"WTFPL"
] | 10 | 2015-02-10T07:43:45.000Z | 2020-07-08T20:23:03.000Z | setup.py | e-dard/postcodes | d63c47b4ecd765bc2e4e6ba34bc0b8a796f44005 | [
"WTFPL"
] | 6 | 2015-02-09T23:57:21.000Z | 2020-04-04T02:14:44.000Z | setup.py | e-dard/postcodes | d63c47b4ecd765bc2e4e6ba34bc0b8a796f44005 | [
"WTFPL"
] | 9 | 2015-10-02T13:56:55.000Z | 2020-05-20T22:30:24.000Z | """
Postcodes
---------
A simple library for getting access to UK Postcode data.
"""
from setuptools import setup
setup(
name='Postcodes',
version='0.1',
url='http://github.com/e-dard/postcodes',
license='WTFPL',
author='Edward Robinson',
author_email='me@eddrobinson.net',
description='A s... | 30.973684 | 79 | 0.633815 | 125 | 1,177 | 5.864 | 0.736 | 0.0191 | 0.038199 | 0.046385 | 0.125512 | 0.125512 | 0.125512 | 0.125512 | 0.125512 | 0.125512 | 0 | 0.002245 | 0.242991 | 1,177 | 37 | 80 | 31.810811 | 0.820426 | 0.065421 | 0 | 0 | 0 | 0 | 0.532051 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.033333 | 0 | 0.033333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5424ec09771b6adddb7935b988549faad8d90cea | 547 | py | Python | day02-python/part1.py | jgosmann/aoc2021 | ea507a44d7caeff0f5341946834fb329c87f0536 | [
"Unlicense"
] | null | null | null | day02-python/part1.py | jgosmann/aoc2021 | ea507a44d7caeff0f5341946834fb329c87f0536 | [
"Unlicense"
] | null | null | null | day02-python/part1.py | jgosmann/aoc2021 | ea507a44d7caeff0f5341946834fb329c87f0536 | [
"Unlicense"
] | null | null | null | import sys
class Submarine:
def __init__(self):
self.horizontal_pos = 0
self.depth = 0
def execute(self, command, arg):
getattr(self, command)(arg)
def forward(self, distance):
self.horizontal_pos += distance
def up(self, rise):
self.depth -= rise
def dow... | 20.259259 | 49 | 0.636197 | 68 | 547 | 5.014706 | 0.426471 | 0.11437 | 0.099707 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004866 | 0.248629 | 547 | 26 | 50 | 21.038462 | 0.824818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.277778 | false | 0 | 0.055556 | 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 |
542679c7456eddcbab1efeaee5e1eb179bd21d5d | 9,908 | py | Python | ocd_backend/models/model.py | aolieman/open-raadsinformatie | 66469fc924fb0d312607afe998d271bf6f55c9d6 | [
"MIT"
] | null | null | null | ocd_backend/models/model.py | aolieman/open-raadsinformatie | 66469fc924fb0d312607afe998d271bf6f55c9d6 | [
"MIT"
] | null | null | null | ocd_backend/models/model.py | aolieman/open-raadsinformatie | 66469fc924fb0d312607afe998d271bf6f55c9d6 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from sqlalchemy.orm.exc import MultipleResultsFound, NoResultFound
from ocd_backend.models.definitions import Mapping, Prov, Ori, Meta
from ocd_backend.models.exceptions import MissingProperty
from ocd_backend.models.properties import PropertyBase, Property, StringProperty, Relation
from ocd_b... | 33.70068 | 113 | 0.608801 | 1,117 | 9,908 | 5.231871 | 0.242614 | 0.02447 | 0.021561 | 0.020534 | 0.083162 | 0.042437 | 0.02601 | 0 | 0 | 0 | 0 | 0.002478 | 0.30763 | 9,908 | 293 | 114 | 33.8157 | 0.849417 | 0.061163 | 0 | 0.186869 | 0 | 0 | 0.029901 | 0 | 0 | 0 | 0 | 0.003413 | 0.020202 | 0 | null | null | 0.010101 | 0.050505 | 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 |
54285bdc37f173a12d8fa59c11beed24db752614 | 1,311 | py | Python | merino/build_summary/count_heatmap.py | cmap/merino | 30701866b05b8517e09beaec17a3ea4454c1fd63 | [
"BSD-3-Clause"
] | 3 | 2018-10-05T11:38:36.000Z | 2019-07-23T16:53:18.000Z | merino/build_summary/count_heatmap.py | cmap/merino | 30701866b05b8517e09beaec17a3ea4454c1fd63 | [
"BSD-3-Clause"
] | 9 | 2018-09-17T20:35:24.000Z | 2021-07-13T14:04:51.000Z | merino/build_summary/count_heatmap.py | cmap/merino | 30701866b05b8517e09beaec17a3ea4454c1fd63 | [
"BSD-3-Clause"
] | 1 | 2018-09-25T14:32:49.000Z | 2018-09-25T14:32:49.000Z | import sys
import pandas as pd
import seaborn as sns
import string
import matplotlib
matplotlib.use("Agg")
import matplotlib.pyplot as plt
import os
'''
Make heatmap of median beadcount per well - used for cohort level analysis. Takes a build gct or gctx file and
associated metadata (most likely inst_info.txt)
'''
de... | 30.488372 | 110 | 0.68955 | 204 | 1,311 | 4.269608 | 0.45098 | 0.050517 | 0.059701 | 0.041332 | 0.061998 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017176 | 0.20061 | 1,311 | 43 | 111 | 30.488372 | 0.813931 | 0 | 0 | 0 | 0 | 0 | 0.048866 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.225806 | null | null | 0.064516 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
5429510131da626cb107a973f7ba839e46994e60 | 292 | py | Python | registronavale/admin-urls.py | jcassee/pycon7 | 36386e85b0700533fdc7709d1d4e9fec06f6cbc6 | [
"MIT"
] | 7 | 2016-04-15T14:45:07.000Z | 2021-03-16T20:35:53.000Z | registronavale/admin-urls.py | jcassee/pycon7 | 36386e85b0700533fdc7709d1d4e9fec06f6cbc6 | [
"MIT"
] | 1 | 2016-04-23T18:39:10.000Z | 2016-05-18T10:09:17.000Z | registronavale/admin-urls.py | jcassee/pycon7 | 36386e85b0700533fdc7709d1d4e9fec06f6cbc6 | [
"MIT"
] | null | null | null | from django.conf.urls import include, url
from django.contrib import admin
from django.views.generic import RedirectView
admin.autodiscover()
urlpatterns = [
url(r'^$', RedirectView.as_view(url='/admin/', permanent=True), name='index'),
url(r'^admin/', include(admin.site.urls)),
]
| 26.545455 | 82 | 0.726027 | 39 | 292 | 5.410256 | 0.564103 | 0.14218 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.116438 | 292 | 10 | 83 | 29.2 | 0.817829 | 0 | 0 | 0 | 0 | 0 | 0.071918 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
542a889a5ad9725585ab542fc6355478c7fbc00d | 6,255 | py | Python | tools/misc.py | dineshjoshi/cassandra-dtest-1 | 18ccbb4d308c27b67a8d81a2c849dc27fc3e2b5c | [
"Apache-2.0"
] | 44 | 2017-07-13T14:20:42.000Z | 2022-03-27T23:55:27.000Z | tools/misc.py | dineshjoshi/cassandra-dtest-1 | 18ccbb4d308c27b67a8d81a2c849dc27fc3e2b5c | [
"Apache-2.0"
] | 64 | 2017-07-26T16:06:01.000Z | 2022-03-17T22:57:03.000Z | tools/misc.py | dineshjoshi/cassandra-dtest-1 | 18ccbb4d308c27b67a8d81a2c849dc27fc3e2b5c | [
"Apache-2.0"
] | 105 | 2017-07-13T14:28:14.000Z | 2022-03-23T04:22:46.000Z | import os
import subprocess
import time
import hashlib
import logging
import pytest
from collections import Mapping
from ccmlib.node import Node
logger = logging.getLogger(__name__)
# work for cluster started by populate
def new_node(cluster, bootstrap=True, token=None, remote_debug_port='0', data_center=None, by... | 39.09375 | 121 | 0.63693 | 809 | 6,255 | 4.756489 | 0.358467 | 0.037162 | 0.035083 | 0.02183 | 0.128378 | 0.122921 | 0.122921 | 0.086798 | 0.074584 | 0.039241 | 0 | 0.013629 | 0.249241 | 6,255 | 159 | 122 | 39.339623 | 0.805792 | 0.243165 | 0 | 0.029703 | 0 | 0 | 0.151344 | 0.006722 | 0 | 0 | 0 | 0 | 0 | 1 | 0.128713 | false | 0.069307 | 0.09901 | 0.039604 | 0.336634 | 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 |
58087c4a78d055ca4ed332b8cd1be36fc88f6ed5 | 799 | py | Python | src/poetry/puzzle/exceptions.py | pkoch/poetry | d22c5a7187d8b5a30196a7df58111b3c90be7d22 | [
"MIT"
] | 7,258 | 2018-02-28T16:23:08.000Z | 2019-12-11T18:27:58.000Z | src/poetry/puzzle/exceptions.py | pkoch/poetry | d22c5a7187d8b5a30196a7df58111b3c90be7d22 | [
"MIT"
] | 1,608 | 2018-02-28T15:31:35.000Z | 2019-12-11T20:00:05.000Z | src/poetry/puzzle/exceptions.py | pkoch/poetry | d22c5a7187d8b5a30196a7df58111b3c90be7d22 | [
"MIT"
] | 597 | 2018-03-07T15:07:46.000Z | 2019-12-11T16:36:22.000Z | from __future__ import annotations
from typing import TYPE_CHECKING
if TYPE_CHECKING:
from poetry.core.packages.dependency import Dependency
from poetry.mixology.failure import SolveFailure
from poetry.packages import DependencyPackage
class SolverProblemError(Exception):
def __init__(self, error:... | 24.212121 | 86 | 0.704631 | 83 | 799 | 6.518072 | 0.385542 | 0.055453 | 0.05915 | 0.073937 | 0.140481 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.206508 | 799 | 32 | 87 | 24.96875 | 0.853312 | 0 | 0 | 0.095238 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.190476 | false | 0 | 0.238095 | 0.095238 | 0.619048 | 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 |
580b3a5b6cf7cf7d960292ac28ee1981bbe52d61 | 2,271 | py | Python | notebooks/api/tests/test_API_Hugo_OSS.py | jkcso/oss2021 | f5c2dc76670027ec4d508b46a81345ce711ae5e8 | [
"CC0-1.0"
] | 28 | 2020-03-11T13:47:00.000Z | 2021-07-17T19:10:48.000Z | notebooks/api/tests/test_API_Hugo_OSS.py | jkcso/oss2021 | f5c2dc76670027ec4d508b46a81345ce711ae5e8 | [
"CC0-1.0"
] | 38 | 2020-02-23T18:09:46.000Z | 2020-07-20T17:24:10.000Z | notebooks/api/tests/test_API_Hugo_OSS.py | jkcso/oss2021 | f5c2dc76670027ec4d508b46a81345ce711ae5e8 | [
"CC0-1.0"
] | 38 | 2019-11-24T09:07:30.000Z | 2021-02-14T21:03:36.000Z | from unittest import TestCase
import frontmatter
from pbx_gs_python_utils.utils.Dev import Dev
from pbx_gs_python_utils.utils.Files import Files
from oss_hugo.API_Hugo_OSS import API_Hugo_OSS
from oss_hugo.OSS_Participant import OSS_Participant
from oss_hugo.OSS_Session import OSS_Session
class test_API_Hugo_OSS(Tes... | 34.938462 | 98 | 0.695288 | 297 | 2,271 | 5.016835 | 0.218855 | 0.056376 | 0.052349 | 0.068456 | 0.438255 | 0.314765 | 0.108054 | 0.053691 | 0 | 0 | 0 | 0.012081 | 0.198151 | 2,271 | 64 | 99 | 35.484375 | 0.80615 | 0 | 0 | 0.083333 | 0 | 0 | 0.062087 | 0 | 0 | 0 | 0 | 0 | 0.354167 | 1 | 0.270833 | false | 0 | 0.145833 | 0 | 0.4375 | 0.020833 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
58123f318323ecbbeaf8c08c9f68dfadb455fb2f | 477 | py | Python | students/urls.py | rafaelmadaloz/i18n-scholl-system | ebe0b7756f97901881c35e1692ad2d36ee2e17b2 | [
"MIT"
] | 88 | 2019-02-11T18:04:44.000Z | 2022-03-07T04:56:26.000Z | students/urls.py | rafaelmadaloz/i18n-scholl-system | ebe0b7756f97901881c35e1692ad2d36ee2e17b2 | [
"MIT"
] | 13 | 2019-09-05T12:01:51.000Z | 2022-02-10T08:22:28.000Z | students/urls.py | Bhagwatgita/MS | 57f9e37195631849e183540fe5718135db32e43e | [
"MIT"
] | 38 | 2019-02-13T15:49:20.000Z | 2022-03-03T06:33:52.000Z | from django.urls import path
from students.views import (
StudentCreateView, StudentListView, StudentUpdateView, StudentDeleteView
)
app_name = 'students'
urlpatterns = [
path('', StudentListView.as_view(), name='student_list'),
path('create/', StudentCreateView.as_view(), name='student_create'),
pa... | 31.8 | 80 | 0.72956 | 52 | 477 | 6.519231 | 0.442308 | 0.070796 | 0.117994 | 0.20059 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115304 | 477 | 15 | 81 | 31.8 | 0.803318 | 0 | 0 | 0 | 0 | 0 | 0.207113 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.181818 | 0 | 0.181818 | 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 |
58225818c0f020bdba512197ac2eb2001c6d77c2 | 2,907 | py | Python | attendees/occasions/models/price.py | xjlin0/attendees32 | 25913c75ea8d916dcb065a23f2fa68bea558f77c | [
"MIT"
] | null | null | null | attendees/occasions/models/price.py | xjlin0/attendees32 | 25913c75ea8d916dcb065a23f2fa68bea558f77c | [
"MIT"
] | 5 | 2022-01-21T03:26:40.000Z | 2022-02-04T17:32:16.000Z | attendees/occasions/models/price.py | xjlin0/attendees32 | 25913c75ea8d916dcb065a23f2fa68bea558f77c | [
"MIT"
] | null | null | null | import pghistory
from django.contrib.contenttypes.fields import GenericRelation
from django.core.validators import MinValueValidator
from django.db import models
import django.utils.timezone
import model_utils.fields
from model_utils.models import SoftDeletableModel, TimeStampedModel
from attendees.persons.models impo... | 42.75 | 169 | 0.73925 | 351 | 2,907 | 5.923077 | 0.307692 | 0.045695 | 0.026936 | 0.046176 | 0.415103 | 0.311688 | 0.275132 | 0.205868 | 0.185666 | 0.13468 | 0 | 0.010582 | 0.154799 | 2,907 | 67 | 170 | 43.38806 | 0.835572 | 0 | 0 | 0.068966 | 0 | 0 | 0.079119 | 0.007912 | 0.017241 | 0 | 0 | 0 | 0 | 1 | 0.017241 | false | 0 | 0.155172 | 0.017241 | 0.655172 | 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 |
582324e943e645d49595ee6eb42d8e773929de0b | 13,420 | py | Python | src/python/tests/unittests/test_web/test_serialize/test_serialize_model.py | annihilatethee/seedsync | 7a0ba915cc570bc12916088baa6eb6bee6f291c9 | [
"Apache-2.0"
] | 255 | 2017-12-25T00:53:40.000Z | 2022-03-27T10:29:21.000Z | src/python/tests/unittests/test_web/test_serialize/test_serialize_model.py | annihilatethee/seedsync | 7a0ba915cc570bc12916088baa6eb6bee6f291c9 | [
"Apache-2.0"
] | 111 | 2018-01-04T10:35:49.000Z | 2022-03-29T15:12:52.000Z | src/python/tests/unittests/test_web/test_serialize/test_serialize_model.py | annihilatethee/seedsync | 7a0ba915cc570bc12916088baa6eb6bee6f291c9 | [
"Apache-2.0"
] | 53 | 2017-12-25T09:34:19.000Z | 2022-03-15T17:53:27.000Z | # Copyright 2017, Inderpreet Singh, All rights reserved.
import unittest
import json
from datetime import datetime
from pytz import timezone
from .test_serialize import parse_stream
from web.serialize import SerializeModel
from model import ModelFile
class TestSerializeModel(unittest.TestCase):
def test_event_n... | 40.059701 | 95 | 0.591654 | 1,600 | 13,420 | 4.85875 | 0.069375 | 0.181374 | 0.087986 | 0.071006 | 0.789426 | 0.724981 | 0.668382 | 0.612426 | 0.554541 | 0.491124 | 0 | 0.026947 | 0.247839 | 13,420 | 334 | 96 | 40.179641 | 0.743214 | 0.004024 | 0 | 0.535714 | 0 | 0 | 0.096378 | 0.014367 | 0 | 0 | 0 | 0 | 0.305195 | 1 | 0.058442 | false | 0 | 0.022727 | 0 | 0.084416 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
582a72b2a93eb7b3375cc6aca1abe08a8d913dd3 | 2,264 | py | Python | recipes/Python/577904_Convert_Audio_CD_track_iTunes/recipe-577904.py | tdiprima/code | 61a74f5f93da087d27c70b2efe779ac6bd2a3b4f | [
"MIT"
] | 2,023 | 2017-07-29T09:34:46.000Z | 2022-03-24T08:00:45.000Z | recipes/Python/577904_Convert_Audio_CD_track_iTunes/recipe-577904.py | unhacker/code | 73b09edc1b9850c557a79296655f140ce5e853db | [
"MIT"
] | 32 | 2017-09-02T17:20:08.000Z | 2022-02-11T17:49:37.000Z | recipes/Python/577904_Convert_Audio_CD_track_iTunes/recipe-577904.py | unhacker/code | 73b09edc1b9850c557a79296655f140ce5e853db | [
"MIT"
] | 780 | 2017-07-28T19:23:28.000Z | 2022-03-25T20:39:41.000Z | #!/usr/bin/env python
#coding=utf-8
import os
import sys
from time import sleep
from win32com.client import Dispatch
def exit(message):
confirm = raw_input(message)
sys.exit(1)
def main():
itunes = Dispatch("iTunes.Application")
for source in itunes.Sources:
if source.Kind == 3:
... | 34.830769 | 104 | 0.517668 | 244 | 2,264 | 4.70082 | 0.331967 | 0.048823 | 0.05231 | 0.069747 | 0.230166 | 0.064516 | 0.064516 | 0.064516 | 0.064516 | 0 | 0 | 0.010909 | 0.392668 | 2,264 | 64 | 105 | 35.375 | 0.823273 | 0.052562 | 0 | 0.2 | 0 | 0 | 0.101449 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.08 | null | null | 0.08 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
582fe3c20d4efff7081ea9b9d5861a821fada022 | 813 | py | Python | contact_manager/urls.py | ConnorH2582/sample-proj | 043b76106e3b3484cbf9ada31d8274e9d5ea64bf | [
"MIT"
] | null | null | null | contact_manager/urls.py | ConnorH2582/sample-proj | 043b76106e3b3484cbf9ada31d8274e9d5ea64bf | [
"MIT"
] | null | null | null | contact_manager/urls.py | ConnorH2582/sample-proj | 043b76106e3b3484cbf9ada31d8274e9d5ea64bf | [
"MIT"
] | null | null | null | from django.conf.urls import include, url, patterns
from django.contrib import admin
from contact_manager.views import IndexView,CreateEventView,EventProfileView,CreateContactView,ContactProfileView,ContactSearchView
urlpatterns = patterns('',
url(r'^$', IndexView.as_view(), name='index'),
url(r'^new_event/$',... | 62.538462 | 131 | 0.707257 | 112 | 813 | 4.982143 | 0.392857 | 0.043011 | 0.107527 | 0.057348 | 0.089606 | 0.089606 | 0.089606 | 0.089606 | 0.089606 | 0.089606 | 0 | 0.034574 | 0.075031 | 813 | 12 | 132 | 67.75 | 0.707447 | 0 | 0 | 0 | 0 | 0.272727 | 0.324723 | 0.217712 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.272727 | 0 | 0.272727 | 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 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5832f615a19352ea36e548de1ef506957fb97aee | 547 | py | Python | django_base/ad/models.py | Windsooon/best-channels | f82a9b51be6292945e3d4ef2cd2702ac4fdbe0cf | [
"MIT"
] | 10 | 2017-11-12T19:14:36.000Z | 2019-08-05T08:07:55.000Z | django_base/ad/models.py | Windsooon/best-channels | f82a9b51be6292945e3d4ef2cd2702ac4fdbe0cf | [
"MIT"
] | 3 | 2020-02-11T22:03:33.000Z | 2021-06-10T19:56:27.000Z | django_base/ad/models.py | Windsooon/best-channels | f82a9b51be6292945e3d4ef2cd2702ac4fdbe0cf | [
"MIT"
] | 1 | 2019-12-26T19:30:21.000Z | 2019-12-26T19:30:21.000Z | from django.db import models
from inner.models import Inner
class Ad(models.Model):
inner = models.ForeignKey(
Inner, related_name="ad", on_delete=models.CASCADE)
name = models.CharField(max_length=255, unique=True)
thumbnail = models.CharField(max_length=255, unique=True)
url = models.URLFiel... | 32.176471 | 61 | 0.73309 | 72 | 547 | 5.388889 | 0.541667 | 0.07732 | 0.092784 | 0.123711 | 0.345361 | 0.190722 | 0.190722 | 0 | 0 | 0 | 0 | 0.015351 | 0.166362 | 547 | 16 | 62 | 34.1875 | 0.835526 | 0 | 0 | 0 | 0 | 0 | 0.003656 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.153846 | 0.076923 | 0.923077 | 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 |
583367d98cf20d9032cfe24a93a55ab908fa6746 | 3,699 | py | Python | agentpy/examples.py | isabeaups/agentpy | 47d6554495218581cdd2c211366ee6c1f81a304d | [
"BSD-3-Clause"
] | 200 | 2020-06-19T20:49:41.000Z | 2022-03-22T09:10:00.000Z | agentpy/examples.py | isabeaups/agentpy | 47d6554495218581cdd2c211366ee6c1f81a304d | [
"BSD-3-Clause"
] | 18 | 2021-01-17T07:26:13.000Z | 2022-01-18T17:15:06.000Z | agentpy/examples.py | isabeaups/agentpy | 47d6554495218581cdd2c211366ee6c1f81a304d | [
"BSD-3-Clause"
] | 23 | 2021-01-24T00:33:53.000Z | 2022-03-16T22:34:08.000Z | import agentpy as ap
import numpy as np
def gini(x):
""" Calculate Gini Coefficient """
# By Warren Weckesser https://stackoverflow.com/a/39513799
x = np.array(x)
mad = np.abs(np.subtract.outer(x, x)).mean() # Mean absolute difference
rmad = mad / np.mean(x) # Relative mean absolute difference... | 27.4 | 76 | 0.608813 | 470 | 3,699 | 4.73617 | 0.297872 | 0.040431 | 0.021563 | 0.014376 | 0.084456 | 0.037736 | 0.037736 | 0.037736 | 0.037736 | 0 | 0 | 0.007553 | 0.284131 | 3,699 | 135 | 77 | 27.4 | 0.833082 | 0.337929 | 0 | 0.169492 | 0 | 0 | 0.008218 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.254237 | false | 0 | 0.033898 | 0.016949 | 0.389831 | 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 |
583daf5563ede60907a1689e579022abab0c4b03 | 853 | py | Python | trio_cdp/generated/tethering.py | vcalvert/trio-chrome-devtools-protocol | f41ca685b5c390f288592d135660c177fba5a945 | [
"MIT"
] | 37 | 2019-10-07T17:51:11.000Z | 2022-03-20T15:25:49.000Z | trio_cdp/generated/tethering.py | vcalvert/trio-chrome-devtools-protocol | f41ca685b5c390f288592d135660c177fba5a945 | [
"MIT"
] | 17 | 2019-08-30T15:55:22.000Z | 2021-07-03T06:00:06.000Z | trio_cdp/generated/tethering.py | vcalvert/trio-chrome-devtools-protocol | f41ca685b5c390f288592d135660c177fba5a945 | [
"MIT"
] | 14 | 2019-11-08T09:32:02.000Z | 2022-03-03T09:06:48.000Z | # DO NOT EDIT THIS FILE!
#
# This code is generated off of PyCDP modules. If you need to make
# changes, edit the generator and regenerate all of the modules.
from __future__ import annotations
import typing
from ..context import get_connection_context, get_session_context
import cdp.tethering
from cdp.tethering imp... | 21.871795 | 66 | 0.694021 | 111 | 853 | 5.225225 | 0.459459 | 0.082759 | 0.087931 | 0.062069 | 0.413793 | 0.227586 | 0 | 0 | 0 | 0 | 0 | 0 | 0.220399 | 853 | 38 | 67 | 22.447368 | 0.87218 | 0.17585 | 0 | 0.235294 | 1 | 0 | 0.057034 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.294118 | 0 | 0.411765 | 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 |
583e68f6e323add0c51bd6ac191e6a2f7deb834f | 573 | py | Python | src/gem_transmute.py | Cho0joy/botty | ed9c22b78a527443b46fdc3070cb128f32501e2e | [
"MIT"
] | 1 | 2022-02-09T03:19:59.000Z | 2022-02-09T03:19:59.000Z | src/gem_transmute.py | Cho0joy/botty | ed9c22b78a527443b46fdc3070cb128f32501e2e | [
"MIT"
] | null | null | null | src/gem_transmute.py | Cho0joy/botty | ed9c22b78a527443b46fdc3070cb128f32501e2e | [
"MIT"
] | 2 | 2022-01-10T12:46:31.000Z | 2022-02-12T20:26:16.000Z | from screen import Screen
from game_stats import GameStats
from template_finder import TemplateFinder
from transmute import Transmute
import threading
import keyboard
from ui.ui_manager import UiManager
if __name__ == "__main__":
s = Screen()
finder = TemplateFinder(s)
stats = GameStats()
ui = UiManage... | 30.157895 | 75 | 0.739965 | 74 | 573 | 5.513514 | 0.472973 | 0.066176 | 0.058824 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008386 | 0.167539 | 573 | 18 | 76 | 31.833333 | 0.84696 | 0 | 0 | 0 | 0 | 0 | 0.024433 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.411765 | 0 | 0.411765 | 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 |
583ead6ff9c32ef4b95801fa63fc1949228e7fb6 | 123,743 | py | Python | tournamentcontrol/competition/admin.py | goodtune/vitriolic | d135eecf7acbc229a872585ebafb8bbefca52df4 | [
"BSD-3-Clause"
] | null | null | null | tournamentcontrol/competition/admin.py | goodtune/vitriolic | d135eecf7acbc229a872585ebafb8bbefca52df4 | [
"BSD-3-Clause"
] | 28 | 2016-12-09T21:14:19.000Z | 2022-01-11T07:17:16.000Z | tournamentcontrol/competition/admin.py | goodtune/vitriolic | d135eecf7acbc229a872585ebafb8bbefca52df4 | [
"BSD-3-Clause"
] | null | null | null | from __future__ import unicode_literals
import collections
import functools
import logging
import operator
from functools import reduce
from django.apps import apps
from django.conf import settings
from django.conf.urls import include, url
from django.contrib import messages
from django.db import models
from django.d... | 52.433475 | 184 | 0.306708 | 6,807 | 123,743 | 5.350081 | 0.085647 | 0.051403 | 0.032621 | 0.034434 | 0.516777 | 0.448734 | 0.357296 | 0.305948 | 0.275935 | 0.243094 | 0 | 0.00145 | 0.632068 | 123,743 | 2,359 | 185 | 52.455702 | 0.798436 | 0.019945 | 0 | 0.555451 | 0 | 0.00188 | 0.051718 | 0.015 | 0 | 0 | 0 | 0.001272 | 0 | 1 | 0.036654 | false | 0 | 0.015038 | 0.007049 | 0.092575 | 0.00094 | 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 |
584282f308590f02f02c723e7d081d23a9da754a | 36,835 | py | Python | lisa/lisa/view/viewpyqt.py | rockwolf/python | 18b4a17136a9c22c77033c5c08a2072df8ed8db0 | [
"BSD-3-Clause"
] | null | null | null | lisa/lisa/view/viewpyqt.py | rockwolf/python | 18b4a17136a9c22c77033c5c08a2072df8ed8db0 | [
"BSD-3-Clause"
] | null | null | null | lisa/lisa/view/viewpyqt.py | rockwolf/python | 18b4a17136a9c22c77033c5c08a2072df8ed8db0 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'viewpyqt.ui'
#
# Created: Sat Feb 15 11:42:16 2014
# by: PyQt4 UI code generator 4.10.3
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
try:
_fromUtf8 = QtCore.QString.fromUtf8
except Attri... | 45.644362 | 105 | 0.683263 | 4,339 | 36,835 | 5.624107 | 0.060844 | 0.028685 | 0.013523 | 0.039094 | 0.584313 | 0.48326 | 0.414129 | 0.406835 | 0.404377 | 0.397328 | 0 | 0.039015 | 0.185177 | 36,835 | 806 | 106 | 45.700993 | 0.774039 | 0.005783 | 0 | 0.429836 | 1 | 0 | 0.118346 | 0.002513 | 0 | 0 | 0 | 0 | 0 | 1 | 0.006321 | false | 0 | 0.001264 | 0.003793 | 0.012642 | 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 |
5844bfbc45892c79165431419903ddae5ae73177 | 359 | py | Python | Apatira_Authman/Assignments/CoinToss/CoinToss.py | webguru001/Python-Django-Web | 6264bc4c90ef1432ba0902c76b567cf3caaae221 | [
"MIT"
] | 5 | 2019-05-17T01:30:02.000Z | 2021-06-17T21:02:58.000Z | Apatira_Authman/Assignments/CoinToss/CoinToss.py | curest0x1021/Python-Django-Web | 6264bc4c90ef1432ba0902c76b567cf3caaae221 | [
"MIT"
] | null | null | null | Apatira_Authman/Assignments/CoinToss/CoinToss.py | curest0x1021/Python-Django-Web | 6264bc4c90ef1432ba0902c76b567cf3caaae221 | [
"MIT"
] | null | null | null | def CoinToss():
import random
newArr = []
tails = 0
heads = 0
for count in range(1000):
random_num = random.random()
newArr.append(round(random_num))
for count in range(len(newArr)):
if(newArr[count] > 0):
heads += 1
elif(newArr[count] == 0):
tails += 1
print 'Number of Head Tosses: ', heads
prin... | 19.944444 | 40 | 0.64624 | 53 | 359 | 4.339623 | 0.471698 | 0.104348 | 0.086957 | 0.130435 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035461 | 0.214485 | 359 | 17 | 41 | 21.117647 | 0.780142 | 0 | 0 | 0 | 0 | 0 | 0.131285 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.066667 | null | null | 0.133333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
5848448748c8d0211c7ef54fd513e63ad3dfaca8 | 473 | py | Python | preprocess/hebing.py | lavizhao/keyword | f2dc25bfa71b8734ee1140672a5dc1875814453b | [
"Apache-2.0"
] | 3 | 2016-04-05T23:14:24.000Z | 2017-05-30T12:49:06.000Z | preprocess/hebing.py | lavizhao/keyword | f2dc25bfa71b8734ee1140672a5dc1875814453b | [
"Apache-2.0"
] | null | null | null | preprocess/hebing.py | lavizhao/keyword | f2dc25bfa71b8734ee1140672a5dc1875814453b | [
"Apache-2.0"
] | null | null | null | #coding: utf-8
'''
合并两个词表
'''
if __name__ == '__main__':
f = open("../data/new_stopwords.txt")
g = open("../data/stopwords.txt")
words = f.readlines()
words1 = g.readlines()
words = [word.strip() for word in words]
words1 = [word.strip() for word in words1]
g.close()
f.close()
... | 16.892857 | 46 | 0.566596 | 65 | 473 | 3.984615 | 0.446154 | 0.092664 | 0.104247 | 0.138996 | 0.301158 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016667 | 0.238901 | 473 | 27 | 47 | 17.518519 | 0.702778 | 0.027484 | 0 | 0 | 0 | 0 | 0.179775 | 0.150562 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5854ab04fc40e3743f509155e59a651b53df6413 | 26,614 | py | Python | stolos/tests/test_stolos.py | sailthru/stolos | 7b74da527033b2da7f3ccd6d19ed6fb0245ea0fc | [
"Apache-2.0"
] | 121 | 2015-01-20T08:58:35.000Z | 2021-08-08T15:13:11.000Z | stolos/tests/test_stolos.py | sailthru/stolos | 7b74da527033b2da7f3ccd6d19ed6fb0245ea0fc | [
"Apache-2.0"
] | 3 | 2015-01-20T22:19:49.000Z | 2016-02-10T10:48:11.000Z | stolos/tests/test_stolos.py | sailthru/stolos | 7b74da527033b2da7f3ccd6d19ed6fb0245ea0fc | [
"Apache-2.0"
] | 20 | 2016-02-03T17:08:31.000Z | 2021-04-19T10:43:28.000Z | import nose
import subprocess
from stolos import api
from stolos import exceptions
from stolos import queue_backend as qb
from stolos.testing_tools import (
with_setup, inject_into_dag,
enqueue, cycle_queue, consume_queue, get_qb_status,
validate_zero_queued_task, validate_not_exists,
validate_one_fail... | 35.203704 | 79 | 0.723003 | 3,935 | 26,614 | 4.538755 | 0.099873 | 0.068533 | 0.047592 | 0.053191 | 0.691097 | 0.64888 | 0.61355 | 0.56551 | 0.520493 | 0.478835 | 0 | 0.029812 | 0.190839 | 26,614 | 755 | 80 | 35.250331 | 0.799536 | 0.105358 | 0 | 0.605058 | 0 | 0.001946 | 0.068627 | 0.00352 | 0 | 0 | 0 | 0 | 0.064202 | 0 | null | null | 0.003891 | 0.011673 | 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 |
58595eb205fa2eb03a334f1c689b192334da0ea2 | 855 | py | Python | snowfin/locales.py | KAJdev/snowfin | a4c9d73b4436650bf1a4c6b6e9db6b5aadbb923d | [
"MIT"
] | 4 | 2021-11-30T02:26:29.000Z | 2021-11-30T15:46:01.000Z | snowfin/locales.py | KAJdev/snowfin | a4c9d73b4436650bf1a4c6b6e9db6b5aadbb923d | [
"MIT"
] | null | null | null | snowfin/locales.py | KAJdev/snowfin | a4c9d73b4436650bf1a4c6b6e9db6b5aadbb923d | [
"MIT"
] | null | null | null | from dataclasses import dataclass
__all__ = ("Localization",)
@dataclass(frozen=True)
class Localization:
da: str
de: str
en_GB: str
en_US: str
es_ES: str
fr: str
hr: str
it: str
lt: str
hu: str
nl: str
no: str
pl: str
pt_BR: str
ro: str
fi: str
sv... | 15.267857 | 50 | 0.506433 | 124 | 855 | 3.298387 | 0.524194 | 0.02445 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.388304 | 855 | 55 | 51 | 15.545455 | 0.782027 | 0 | 0 | 0 | 0 | 0 | 0.018713 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.022222 | 0.044444 | 0.844444 | 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 |
585be5b8cd9e65b87ff2d40cc69389c3104d1853 | 1,466 | gyp | Python | webkit/activex_shim/activex_shim.gyp | zachlatta/chromium | c4625eefca763df86471d798ee5a4a054b4716ae | [
"BSD-3-Clause"
] | 1 | 2021-09-24T22:49:10.000Z | 2021-09-24T22:49:10.000Z | webkit/activex_shim/activex_shim.gyp | changbai1980/chromium | c4625eefca763df86471d798ee5a4a054b4716ae | [
"BSD-3-Clause"
] | null | null | null | webkit/activex_shim/activex_shim.gyp | changbai1980/chromium | c4625eefca763df86471d798ee5a4a054b4716ae | [
"BSD-3-Clause"
] | null | null | null | # Copyright (c) 2009 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'variables': {
'chromium_code': 1,
},
'includes': [
'../../build/common.gypi',
],
'conditions': [
[ 'OS=="win"', {
'targets... | 26.654545 | 72 | 0.470668 | 136 | 1,466 | 4.860294 | 0.595588 | 0.060514 | 0.057489 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02603 | 0.371078 | 1,466 | 54 | 73 | 27.148148 | 0.690889 | 0.108458 | 0 | 0.12 | 0 | 0 | 0.484267 | 0.163469 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
585e758593639261d9f5a82150282bec0d24d4a5 | 6,905 | py | Python | library/oci_load_balancer_listener_facts.py | slmjy/oci-ansible-modules | 4713699064f4244b4554b5b2f97b5e5443fa2d6e | [
"Apache-2.0"
] | 106 | 2018-06-29T16:38:56.000Z | 2022-02-16T16:38:56.000Z | library/oci_load_balancer_listener_facts.py | slmjy/oci-ansible-modules | 4713699064f4244b4554b5b2f97b5e5443fa2d6e | [
"Apache-2.0"
] | 122 | 2018-09-11T12:49:39.000Z | 2021-05-01T04:54:22.000Z | library/oci_load_balancer_listener_facts.py | slmjy/oci-ansible-modules | 4713699064f4244b4554b5b2f97b5e5443fa2d6e | [
"Apache-2.0"
] | 78 | 2018-07-04T05:48:54.000Z | 2022-03-09T06:33:12.000Z | #!/usr/bin/python
# Copyright (c) 2018, Oracle and/or its affiliates.
# This software is made available to you under the terms of the GPL 3.0 license or the Apache 2.0 license.
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
# Apache License v2.0
# See LICENSE.TXT for detail... | 33.519417 | 127 | 0.585373 | 726 | 6,905 | 5.331956 | 0.286501 | 0.092999 | 0.03255 | 0.031 | 0.293981 | 0.216482 | 0.185998 | 0.111082 | 0.111082 | 0.111082 | 0 | 0.011004 | 0.341926 | 6,905 | 205 | 128 | 33.682927 | 0.840889 | 0.04504 | 0 | 0.251429 | 0 | 0.005714 | 0.637826 | 0.071949 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022857 | false | 0 | 0.04 | 0.005714 | 0.074286 | 0.005714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
585f94eac27787a4c520638aa2542c8ae1c7a24e | 6,804 | py | Python | sdk/python/pulumi_aws/ecr/get_repository.py | mdop-wh/pulumi-aws | 05bb32e9d694dde1c3b76d440fd2cd0344d23376 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_aws/ecr/get_repository.py | mdop-wh/pulumi-aws | 05bb32e9d694dde1c3b76d440fd2cd0344d23376 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_aws/ecr/get_repository.py | mdop-wh/pulumi-aws | 05bb32e9d694dde1c3b76d440fd2cd0344d23376 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Dict, List, Mapping, Optional, Tuple, Union
from .. import ... | 38.440678 | 202 | 0.675779 | 771 | 6,804 | 5.69131 | 0.193256 | 0.038742 | 0.073838 | 0.061531 | 0.241568 | 0.161805 | 0.060164 | 0.041021 | 0 | 0 | 0 | 0.000191 | 0.230894 | 6,804 | 176 | 203 | 38.659091 | 0.838334 | 0.174162 | 0 | 0.114035 | 1 | 0 | 0.173719 | 0.075167 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0.052632 | 0.017544 | 0.27193 | 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 |
587052de33a68f9e18b0c26e74e62216d3758c75 | 1,654 | py | Python | shamir_bip39_2039/checksum.py | klingebj/shamir-bip39 | c8067523789a5ffff1569b734b2fdcbc35fa8d8c | [
"Apache-2.0"
] | 4 | 2017-12-28T18:30:50.000Z | 2019-05-11T09:28:36.000Z | shamir_bip39_2039/checksum.py | klingebj/shamir-bip39 | c8067523789a5ffff1569b734b2fdcbc35fa8d8c | [
"Apache-2.0"
] | 1 | 2017-10-10T03:42:10.000Z | 2017-10-10T04:02:46.000Z | shamir_bip39_2039/checksum.py | klingebj/shamir_bip39 | c8067523789a5ffff1569b734b2fdcbc35fa8d8c | [
"Apache-2.0"
] | 1 | 2019-05-11T09:28:38.000Z | 2019-05-11T09:28:38.000Z | from english2039 import word_dict, word_inv_dict
from hashlib import sha256
def mnemonic_to_bits(mnemonic):
"""Convert a mnemonic to a bitstring"""
return ''.join(['{0:011b}'.format(word_inv_dict[w] - 1) for w in mnemonic])
def bits_to_mnemonic(bitstring):
"""Convert a bitstring to a mnemonic"""
n... | 25.446154 | 79 | 0.659008 | 237 | 1,654 | 4.375527 | 0.253165 | 0.067502 | 0.043394 | 0.092575 | 0.177435 | 0.128255 | 0.128255 | 0.128255 | 0.128255 | 0 | 0 | 0.032159 | 0.210399 | 1,654 | 64 | 80 | 25.84375 | 0.761868 | 0.163845 | 0 | 0.0625 | 0 | 0 | 0.020787 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.21875 | false | 0 | 0.0625 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5879b570de2029d3f95ba929d2975b5dcf2dc4fd | 774 | py | Python | Chapter21/tests/test_ppo.py | haohaoxiao/Deep-Reinforcement-Learning-Hands-On-Second-Edition | 1cbdff216fdc5cec02cc0da8664b788941f025c1 | [
"MIT"
] | 621 | 2019-07-27T19:24:56.000Z | 2022-03-31T14:19:52.000Z | Chapter21/tests/test_ppo.py | haohaoxiao/Deep-Reinforcement-Learning-Hands-On-Second-Edition | 1cbdff216fdc5cec02cc0da8664b788941f025c1 | [
"MIT"
] | 40 | 2019-09-01T09:45:22.000Z | 2022-03-24T13:13:00.000Z | Chapter21/tests/test_ppo.py | haohaoxiao/Deep-Reinforcement-Learning-Hands-On-Second-Edition | 1cbdff216fdc5cec02cc0da8664b788941f025c1 | [
"MIT"
] | 346 | 2019-07-26T15:16:56.000Z | 2022-03-30T15:33:20.000Z | import unittest
from numpy import testing
from lib import ppo
class TestPPO(unittest.TestCase):
def test_adv_ref(self):
vals = [0, 0, 0, 0, 0]
dones = [False, False, True, False, False]
rewards = [1, 1, 1, 1, 1]
adv_t, ref_t = ppo.calc_adv_ref(vals, dones, rewards, 1.0, 1.0)
... | 25.8 | 71 | 0.596899 | 122 | 774 | 3.590164 | 0.278689 | 0.027397 | 0.109589 | 0.018265 | 0.616438 | 0.52968 | 0.424658 | 0.424658 | 0.424658 | 0.424658 | 0 | 0.050877 | 0.263566 | 774 | 29 | 72 | 26.689655 | 0.717544 | 0 | 0 | 0.210526 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.210526 | 1 | 0.052632 | false | 0.052632 | 0.157895 | 0 | 0.263158 | 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 |
587d15771d65f0f6777f24b70fe43d3923e2090e | 1,844 | py | Python | Prog4comp-SL-HPL-Extra/src/rod_odespy.py | computational-medicine/BMED360-2021 | 2c6052b9affedf1fee23c89d23941bf08eb2614c | [
"MIT"
] | 2 | 2021-04-19T23:22:17.000Z | 2021-04-20T14:04:58.000Z | Prog4comp-SL-HPL-Extra/src/rod_odespy.py | computational-medicine/BMED360-2021 | 2c6052b9affedf1fee23c89d23941bf08eb2614c | [
"MIT"
] | null | null | null | Prog4comp-SL-HPL-Extra/src/rod_odespy.py | computational-medicine/BMED360-2021 | 2c6052b9affedf1fee23c89d23941bf08eb2614c | [
"MIT"
] | 2 | 2020-03-26T17:15:13.000Z | 2020-05-25T08:10:06.000Z | """Temperature evolution in a rod, computed by explicit odespy solvers."""
from numpy import linspace, zeros, linspace, array
import matplotlib.pyplot as plt
import time
def rhs(u, t):
N = len(u) - 1
rhs = zeros(N+1)
rhs[0] = dsdt(t)
for i in range(1, N):
rhs[i] = (beta/dx**2)*(u[i+1] - 2*u[i]... | 21.694118 | 77 | 0.577549 | 348 | 1,844 | 2.988506 | 0.324713 | 0.011538 | 0.011538 | 0.021154 | 0.057692 | 0 | 0 | 0 | 0 | 0 | 0 | 0.053221 | 0.225597 | 1,844 | 84 | 78 | 21.952381 | 0.67507 | 0.06128 | 0 | 0.074627 | 0 | 0 | 0.07874 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.074627 | null | null | 0.059701 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
5888811f1b918e5a711ae561db5fe1a72da2ab3c | 9,889 | py | Python | mapclientplugins/parametricfittingstep/model/mastermodel.py | mahyar-osn/mapclientplugins.parametricfittingstep | 3b78be6a3cbd99f970f0b28c65350304e446c19e | [
"Apache-2.0"
] | null | null | null | mapclientplugins/parametricfittingstep/model/mastermodel.py | mahyar-osn/mapclientplugins.parametricfittingstep | 3b78be6a3cbd99f970f0b28c65350304e446c19e | [
"Apache-2.0"
] | 2 | 2018-09-28T21:16:39.000Z | 2018-10-11T00:11:58.000Z | mapclientplugins/parametricfittingstep/model/mastermodel.py | mahyar-osn/mapclientplugins.parametricfittingstep | 3b78be6a3cbd99f970f0b28c65350304e446c19e | [
"Apache-2.0"
] | 2 | 2018-09-21T04:05:54.000Z | 2018-09-28T21:50:32.000Z | from __future__ import division
import os
import json
from PySide import QtCore
from opencmiss.zinc.material import Material
from mapclientplugins.parametricfittingstep.model.fiducialmarkers import FiducialMarkers as FiducialMarkersModel
from mapclientplugins.parametricfittingstep.scene.fiducialmarkers import Fiduc... | 38.034615 | 112 | 0.713925 | 1,157 | 9,889 | 5.706137 | 0.18064 | 0.019085 | 0.03605 | 0.029082 | 0.322024 | 0.223266 | 0.158588 | 0.130718 | 0.10512 | 0.062405 | 0 | 0.011282 | 0.202245 | 9,889 | 259 | 113 | 38.181467 | 0.82558 | 0.025887 | 0 | 0.042105 | 0 | 0 | 0.023164 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.205263 | false | 0 | 0.057895 | 0.1 | 0.394737 | 0.010526 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
588ed5533c78a2de7b58db6e524c2f334309a643 | 1,576 | py | Python | operator_api/ledger/migrations/0009_challenge.py | liquidity-network/nocust-hub | 76f49f9b8a6c264fcbe9e0c110e98031d463c0a8 | [
"MIT"
] | 1 | 2021-08-04T06:09:46.000Z | 2021-08-04T06:09:46.000Z | operator_api/ledger/migrations/0009_challenge.py | liquidity-network/nocust-hub | 76f49f9b8a6c264fcbe9e0c110e98031d463c0a8 | [
"MIT"
] | 8 | 2020-11-01T19:48:21.000Z | 2022-02-10T14:12:25.000Z | operator_api/ledger/migrations/0009_challenge.py | liquidity-network/nocust-hub | 76f49f9b8a6c264fcbe9e0c110e98031d463c0a8 | [
"MIT"
] | 3 | 2020-11-01T15:59:56.000Z | 2021-09-16T07:18:18.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.8 on 2018-01-07 13:07
from __future__ import unicode_literals
from decimal import Decimal
import django.core.validators
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('l... | 38.439024 | 113 | 0.560914 | 152 | 1,576 | 5.684211 | 0.506579 | 0.037037 | 0.048611 | 0.076389 | 0.104167 | 0.104167 | 0.104167 | 0.104167 | 0.104167 | 0 | 0 | 0.039668 | 0.312183 | 1,576 | 40 | 114 | 39.4 | 0.75738 | 0.043147 | 0 | 0 | 1 | 0 | 0.08505 | 0.015282 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.151515 | 0 | 0.242424 | 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 |
589af77ef99140a49164a2909d452037b1a25408 | 1,511 | py | Python | worker/publisherImplementation.py | LamriAli/remote-extraction-proxy-and-worker | 6e402efbd94298b015797183934fc10744ea0ded | [
"MIT"
] | null | null | null | worker/publisherImplementation.py | LamriAli/remote-extraction-proxy-and-worker | 6e402efbd94298b015797183934fc10744ea0ded | [
"MIT"
] | 10 | 2022-03-17T23:23:18.000Z | 2022-03-18T00:15:11.000Z | worker/publisherImplementation.py | LamriAli/remote-extraction-proxy-and-worker | 6e402efbd94298b015797183934fc10744ea0ded | [
"MIT"
] | 1 | 2022-03-24T23:56:46.000Z | 2022-03-24T23:56:46.000Z |
# This service is meant to publish extracted data to those who would listen..
# With RabbitMQ implementation, using a single queue means that data would be heard by one listener at a time..
import pika,os
from publishingService.publishingService import publishingService
from pika.exchange_type import ExchangeType
fr... | 40.837838 | 151 | 0.755129 | 189 | 1,511 | 5.862434 | 0.391534 | 0.022563 | 0.049639 | 0.076715 | 0.08574 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148908 | 1,511 | 37 | 152 | 40.837838 | 0.861586 | 0.142952 | 0 | 0 | 0 | 0 | 0.074361 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.173913 | false | 0.173913 | 0.173913 | 0 | 0.391304 | 0.043478 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
589c23f319628ca16890d8d5ab9f09ac15339456 | 11,029 | py | Python | tests/test_architectures.py | tom-andersson/neuralprocesses | 7696dc1c8bbe922fb2a1ba18fe0cdda041fc9cfd | [
"MIT"
] | null | null | null | tests/test_architectures.py | tom-andersson/neuralprocesses | 7696dc1c8bbe922fb2a1ba18fe0cdda041fc9cfd | [
"MIT"
] | null | null | null | tests/test_architectures.py | tom-andersson/neuralprocesses | 7696dc1c8bbe922fb2a1ba18fe0cdda041fc9cfd | [
"MIT"
] | null | null | null | from itertools import product
import lab as B
import numpy as np
import pytest
from .util import nps as nps_fixed_dtype, approx, generate_data # noqa
def generate_conv_arch_variations(configs):
varied_configs = []
for config in configs:
for variation in [
{
# Standard UN... | 29.254642 | 88 | 0.556351 | 1,427 | 11,029 | 4.138052 | 0.185704 | 0.042845 | 0.056901 | 0.052159 | 0.458764 | 0.413887 | 0.398815 | 0.37155 | 0.345809 | 0.302964 | 0 | 0.020247 | 0.301387 | 11,029 | 376 | 89 | 29.332447 | 0.746139 | 0.071176 | 0 | 0.364238 | 1 | 0 | 0.110589 | 0.006166 | 0 | 0 | 0 | 0 | 0.059603 | 1 | 0.056291 | false | 0.003311 | 0.016556 | 0.006623 | 0.102649 | 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 |
58a0bb78e5732b840f70ce1a857b324dfe0e60c1 | 2,355 | py | Python | src/bo/SellInfo.py | sebastianhaberey/ctax | b1da8a196560d25d5367e576cc6f659a9572bdc5 | [
"MIT"
] | 10 | 2018-12-18T21:16:47.000Z | 2022-01-17T19:53:33.000Z | src/bo/SellInfo.py | sebastianhaberey/ctax | b1da8a196560d25d5367e576cc6f659a9572bdc5 | [
"MIT"
] | 19 | 2018-09-15T18:51:45.000Z | 2018-09-29T18:01:46.000Z | src/bo/SellInfo.py | sebastianhaberey/ctax | b1da8a196560d25d5367e576cc6f659a9572bdc5 | [
"MIT"
] | null | null | null | from decimal import Decimal
from functools import reduce
from src.NumberUtils import currency_to_string
from src.bo.Transaction import TransactionType
class SellInfo:
"""
Information about a sell action, such as cost / proceeds, profit / loss, etc.
"""
def __init__(self, sell_trade, buy_items):
... | 33.169014 | 109 | 0.637367 | 305 | 2,355 | 4.796721 | 0.295082 | 0.067669 | 0.054682 | 0.051948 | 0.252905 | 0.247437 | 0.174983 | 0.174983 | 0.174983 | 0.131237 | 0 | 0.002921 | 0.273036 | 2,355 | 70 | 110 | 33.642857 | 0.851636 | 0.308705 | 0 | 0.181818 | 0 | 0 | 0.148583 | 0.085695 | 0 | 0 | 0 | 0 | 0 | 1 | 0.242424 | false | 0 | 0.121212 | 0 | 0.606061 | 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 |
58a2a1f598c44c4f04d9fd63548e5610770d031a | 9,915 | py | Python | assets/agents/test/opsci_tests/test_MultTimeResearcher&DAOTreasuryAgents.py | opscientia/darcspice | 3f0602a45c829127d552593d2d4c7c5646629136 | [
"Apache-2.0"
] | 6 | 2022-01-04T16:27:49.000Z | 2022-03-19T02:57:20.000Z | assets/agents/test/opsci_tests/test_MultTimeResearcher&DAOTreasuryAgents.py | opscientia/tokenspice | 3f0602a45c829127d552593d2d4c7c5646629136 | [
"Apache-2.0"
] | 1 | 2022-01-04T18:09:44.000Z | 2022-01-04T18:10:38.000Z | assets/agents/test/opsci_tests/test_MultTimeResearcher&DAOTreasuryAgents.py | opscientia/darcspice | 3f0602a45c829127d552593d2d4c7c5646629136 | [
"Apache-2.0"
] | null | null | null | from enforce_typing import enforce_types
from assets.agents.opsci_agents.mult_time_agents.MultTimeDAOTreasuryAgent import MultTimeDAOTreasuryAgent
from assets.agents.opsci_agents.mult_time_agents.MultTimeResearcherAgent import MultTimeResearcherAgent
from engine import AgentBase, SimStateBase, SimStrategyBase
from eng... | 38.430233 | 163 | 0.476551 | 955 | 9,915 | 4.824084 | 0.141361 | 0.090297 | 0.057738 | 0.060777 | 0.692642 | 0.644888 | 0.637508 | 0.614934 | 0.590623 | 0.491643 | 0 | 0.053025 | 0.406556 | 9,915 | 257 | 164 | 38.579767 | 0.729946 | 0.035703 | 0 | 0.726457 | 0 | 0 | 0.119916 | 0 | 0 | 0 | 0 | 0 | 0.264574 | 1 | 0.026906 | false | 0.004484 | 0.026906 | 0 | 0.067265 | 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 |
58a51e2764c78183581f1de8db83d540b8162da9 | 536 | py | Python | diskusi/models.py | harmonica-pacil/invid19 | b4986f3375721deb02c9b9b8c982cd4e426c423c | [
"Unlicense"
] | 1 | 2021-12-27T12:50:05.000Z | 2021-12-27T12:50:05.000Z | diskusi/models.py | harmonica-pacil/invid19 | b4986f3375721deb02c9b9b8c982cd4e426c423c | [
"Unlicense"
] | null | null | null | diskusi/models.py | harmonica-pacil/invid19 | b4986f3375721deb02c9b9b8c982cd4e426c423c | [
"Unlicense"
] | null | null | null | from django.db import models
from users.models import Profile
class Forum(models.Model):
title = models.CharField(max_length=50)
message = models.TextField()
creator = models.ForeignKey(Profile, on_delete=models.CASCADE, blank = True, null = True)
created_at = models.CharField(max_length=50)
creato... | 29.777778 | 93 | 0.695896 | 66 | 536 | 5.530303 | 0.530303 | 0.123288 | 0.147945 | 0.19726 | 0.142466 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016393 | 0.203358 | 536 | 17 | 94 | 31.529412 | 0.838407 | 0 | 0 | 0 | 0 | 0 | 0.052336 | 0.052336 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.133333 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
542d5415e8552843684a71b78fae0c5bf4882784 | 1,994 | py | Python | account/urls.py | reppon97/largo_store | 12e30bd2f3ab1d3acfb21bf18d0f0375af9f72d2 | [
"MIT"
] | null | null | null | account/urls.py | reppon97/largo_store | 12e30bd2f3ab1d3acfb21bf18d0f0375af9f72d2 | [
"MIT"
] | null | null | null | account/urls.py | reppon97/largo_store | 12e30bd2f3ab1d3acfb21bf18d0f0375af9f72d2 | [
"MIT"
] | null | null | null | from django.urls import path
from django.contrib.auth import views as auth_views
from django.views.generic import TemplateView
from account import views
from account.forms import UserLoginForm, PwdResetForm, PwdResetConfirmForm
app_name = 'account'
urlpatterns = [
path('register/', views.account_register, name='... | 56.971429 | 113 | 0.741725 | 238 | 1,994 | 5.932773 | 0.235294 | 0.128895 | 0.094193 | 0.076487 | 0.245042 | 0.227337 | 0.201841 | 0.201841 | 0.103399 | 0.103399 | 0 | 0.002299 | 0.127382 | 1,994 | 34 | 114 | 58.647059 | 0.809195 | 0 | 0 | 0 | 0 | 0 | 0.376128 | 0.272317 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.354839 | 0.16129 | 0 | 0.16129 | 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 |
542e45d3b57d707488a046f3d69fcd119f54b936 | 606 | py | Python | examples/src/Slides/Notes/RemoveNotesAtSpecificSlide.py | aspose-slides/Aspose.Slides-for-Python-via-.NET | c55ad5c71f942598f1e67e22a52cbcd1cb286467 | [
"MIT"
] | null | null | null | examples/src/Slides/Notes/RemoveNotesAtSpecificSlide.py | aspose-slides/Aspose.Slides-for-Python-via-.NET | c55ad5c71f942598f1e67e22a52cbcd1cb286467 | [
"MIT"
] | null | null | null | examples/src/Slides/Notes/RemoveNotesAtSpecificSlide.py | aspose-slides/Aspose.Slides-for-Python-via-.NET | c55ad5c71f942598f1e67e22a52cbcd1cb286467 | [
"MIT"
] | null | null | null | import aspose.slides as slides
# The path to the documents directory.
dataDir = "./examples/data/"
outDir = "./examples/out/"
#ExStart:RemoveNotesAtSpecificSlide
# Instantiate a Presentation object that represents a presentation file
with slides.Presentation(dataDir + "welcome-to-powerpoint.pptx") as presentation:... | 31.894737 | 98 | 0.778878 | 74 | 606 | 6.283784 | 0.567568 | 0.064516 | 0.068817 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001901 | 0.132013 | 606 | 19 | 99 | 31.894737 | 0.880228 | 0.377888 | 0 | 0 | 0 | 0 | 0.243243 | 0.159459 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.142857 | 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 |
5439cc129d4aba53e6cd23cef70baed117871580 | 9,722 | py | Python | worldloader/command.py | luyijun/evennia_worldloader | 79f3618a12265101ef5ff8c9182780874cfeb534 | [
"BSD-3-Clause"
] | 1 | 2016-04-03T02:26:21.000Z | 2016-04-03T02:26:21.000Z | worldloader/command.py | luyijun/evennia_worldloader | 79f3618a12265101ef5ff8c9182780874cfeb534 | [
"BSD-3-Clause"
] | null | null | null | worldloader/command.py | luyijun/evennia_worldloader | 79f3618a12265101ef5ff8c9182780874cfeb534 | [
"BSD-3-Clause"
] | null | null | null | """
Commands
Add three commands: @importcsv, @datainfo and @batchbuilder
"""
import os
import re
from django.conf import settings
from django.db.models.loading import get_model
from loader import import_csv, set_obj_data_info
from builder import build_all
from evennia import Command as BaseCommand
from evennia impor... | 34.475177 | 106 | 0.574985 | 1,218 | 9,722 | 4.507389 | 0.261084 | 0.028415 | 0.027869 | 0.032058 | 0.212022 | 0.165392 | 0.157013 | 0.136248 | 0.12714 | 0.115847 | 0 | 0.000596 | 0.310121 | 9,722 | 281 | 107 | 34.597865 | 0.817951 | 0.124049 | 0 | 0.361905 | 0 | 0 | 0.114855 | 0.00617 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.028571 | 0.152381 | null | null | 0.009524 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
5441a111d56366622bc3e66e9bc6e41d8fffe289 | 515 | py | Python | core/migrations/0002_auto_20171028_1257.py | vault-the/babybuddy | 162f117cef019771ef6393146a0c63110e337d7f | [
"BSD-2-Clause"
] | null | null | null | core/migrations/0002_auto_20171028_1257.py | vault-the/babybuddy | 162f117cef019771ef6393146a0c63110e337d7f | [
"BSD-2-Clause"
] | 5 | 2020-06-05T16:49:14.000Z | 2022-01-13T00:34:19.000Z | core/migrations/0002_auto_20171028_1257.py | vault-the/babybuddy | 162f117cef019771ef6393146a0c63110e337d7f | [
"BSD-2-Clause"
] | 1 | 2021-07-08T17:59:24.000Z | 2021-07-08T17:59:24.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.6 on 2017-10-28 16:57
from __future__ import unicode_literals
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('core', '0001_initial'),
]
operations = [
migra... | 23.409091 | 101 | 0.638835 | 58 | 515 | 5.534483 | 0.741379 | 0.068536 | 0.11838 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.053708 | 0.240777 | 515 | 21 | 102 | 24.52381 | 0.767263 | 0.132039 | 0 | 0 | 1 | 0 | 0.081081 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.214286 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5444efc1fded5038c1ec49433d8dedb8a8fd378f | 365 | py | Python | setup.py | VincentSch4rf/torchtime | bebd006cd67b31c342e0658285c9771c27411df0 | [
"Apache-2.0"
] | 4 | 2022-02-21T21:23:16.000Z | 2022-03-28T09:06:14.000Z | setup.py | VincentSch4rf/torchtime | bebd006cd67b31c342e0658285c9771c27411df0 | [
"Apache-2.0"
] | null | null | null | setup.py | VincentSch4rf/torchtime | bebd006cd67b31c342e0658285c9771c27411df0 | [
"Apache-2.0"
] | null | null | null | from setuptools import setup
setup(name='torchtime',
version='0.01',
description='A PyTorch Library for Time Series Classification',
url='http://github.com/vincentsch4rf/torchtime',
author='Vincent Scharf',
author_email='vincent.scharf@smail.inf.h-brs.de',
license='Apache2',
p... | 30.416667 | 69 | 0.673973 | 43 | 365 | 5.674419 | 0.860465 | 0.106557 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016892 | 0.189041 | 365 | 11 | 70 | 33.181818 | 0.807432 | 0 | 0 | 0 | 0 | 0 | 0.452055 | 0.090411 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.1 | 0 | 0.1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5444f6707595af88fb7997a4fe5d18f04e639ad5 | 7,940 | py | Python | portal/apps/thedaily/urls.py | Artis-Physis/utopia-cms | 5cb8d941d0b2df53fddc566a52e9d3baee4a007e | [
"BSD-3-Clause"
] | 8 | 2020-12-15T17:11:08.000Z | 2021-12-13T22:08:33.000Z | portal/apps/thedaily/urls.py | Artis-Physis/utopia-cms | 5cb8d941d0b2df53fddc566a52e9d3baee4a007e | [
"BSD-3-Clause"
] | 28 | 2020-12-15T17:34:03.000Z | 2022-02-01T04:09:10.000Z | portal/apps/thedaily/urls.py | Artis-Physis/utopia-cms | 5cb8d941d0b2df53fddc566a52e9d3baee4a007e | [
"BSD-3-Clause"
] | 7 | 2020-12-15T19:59:17.000Z | 2021-11-24T16:47:06.000Z | # -*- coding: utf-8 -*-
from django.conf import settings
from django.conf.urls import url
from django.views.generic import TemplateView, RedirectView
from django.views.decorators.vary import vary_on_cookie
from django.views.decorators.cache import never_cache
from django.contrib.auth import views as auth_views
from th... | 46.982249 | 119 | 0.706171 | 980 | 7,940 | 5.440816 | 0.17449 | 0.03976 | 0.035071 | 0.053638 | 0.397224 | 0.290698 | 0.228995 | 0.202551 | 0.159602 | 0.099212 | 0 | 0.000579 | 0.130479 | 7,940 | 168 | 120 | 47.261905 | 0.771727 | 0.024307 | 0 | 0.126667 | 0 | 0.006667 | 0.37093 | 0.252196 | 0 | 0 | 0 | 0.005952 | 0 | 1 | 0 | false | 0.093333 | 0.106667 | 0 | 0.106667 | 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 |
5447d9e6e0adc784c5ad636ec223f0609ced1687 | 20,272 | py | Python | src/python/getMatches.py | DBMSRow3/DBMSLeague | 76f0b32011f08809b62a3147e9c608d4bbe9a33a | [
"MIT"
] | null | null | null | src/python/getMatches.py | DBMSRow3/DBMSLeague | 76f0b32011f08809b62a3147e9c608d4bbe9a33a | [
"MIT"
] | null | null | null | src/python/getMatches.py | DBMSRow3/DBMSLeague | 76f0b32011f08809b62a3147e9c608d4bbe9a33a | [
"MIT"
] | null | null | null | from __future__ import print_function
from cassiopeia import riotapi
from cassiopeia.type.core.common import LoadPolicy
from cassiopeia.type.api.exception import APIError
from mysql.connector import errorcode
from cassiopeia.type.api.store import SQLAlchemyDB
from random import shuffle
import mysql.connector
im... | 45.048889 | 1,028 | 0.723609 | 2,538 | 20,272 | 5.486604 | 0.169425 | 0.071813 | 0.056302 | 0.066858 | 0.218169 | 0.087899 | 0.042513 | 0.032747 | 0.032747 | 0.01149 | 0 | 0.024722 | 0.155979 | 20,272 | 449 | 1,029 | 45.14922 | 0.789129 | 0.016377 | 0 | 0.035129 | 0 | 0.002342 | 0.230505 | 0.124031 | 0 | 0 | 0 | 0 | 0 | 1 | 0.018735 | false | 0.01171 | 0.030445 | 0 | 0.128806 | 0.030445 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5448e47c213726423fcddff83aa98ff6a40b5f7a | 6,665 | py | Python | readJSON.py | SanggeonPark/metaJSON | e5c3b36e8559f556c24961e93687cf5080147c42 | [
"MIT"
] | null | null | null | readJSON.py | SanggeonPark/metaJSON | e5c3b36e8559f556c24961e93687cf5080147c42 | [
"MIT"
] | null | null | null | readJSON.py | SanggeonPark/metaJSON | e5c3b36e8559f556c24961e93687cf5080147c42 | [
"MIT"
] | null | null | null | '''
The MIT License (MIT)
Copyright (c) 2013 SinnerSchrader Mobile GmbH
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, ... | 30.295455 | 133 | 0.636159 | 708 | 6,665 | 5.966102 | 0.330508 | 0.020833 | 0.012784 | 0.027225 | 0.016572 | 0.016572 | 0.016572 | 0 | 0 | 0 | 0 | 0.003054 | 0.263016 | 6,665 | 219 | 134 | 30.43379 | 0.856881 | 0 | 0 | 0.181818 | 0 | 0.019481 | 0.192453 | 0.008266 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.051948 | null | null | 0.084416 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
544d1323dadd73a6098635a294e774bf14ed3969 | 1,005 | py | Python | agent/Scenario.py | ottomattas/INFOIAG-Project_2020 | 1b0a18267e4bd499504e71c48765aa25f8df9b71 | [
"MIT"
] | null | null | null | agent/Scenario.py | ottomattas/INFOIAG-Project_2020 | 1b0a18267e4bd499504e71c48765aa25f8df9b71 | [
"MIT"
] | null | null | null | agent/Scenario.py | ottomattas/INFOIAG-Project_2020 | 1b0a18267e4bd499504e71c48765aa25f8df9b71 | [
"MIT"
] | null | null | null | from Ontology import generateRandomIri
class AGScenario():
def __init__(self, onto=None, act=None):
self.onto = onto
self.act = act
self.scenarioclass = self.onto.search_one(iri="*Scenario")
self.safeclass = self.onto.search_one(iri="*Safe")
self.unsafeclass = self.onto.sea... | 33.5 | 96 | 0.644776 | 122 | 1,005 | 5.237705 | 0.311475 | 0.175274 | 0.065728 | 0.079812 | 0.159624 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.257711 | 1,005 | 29 | 97 | 34.655172 | 0.856568 | 0 | 0 | 0.083333 | 1 | 0 | 0.020896 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.041667 | 0.083333 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5455d285ce179b1d12ad7467034308b94114f04e | 489 | py | Python | shop/utils/json_code/to_json.py | Hx-someone/aly-shop | 1ef1fb459246bb8c3216bea3f8c26f1f19944482 | [
"AFL-3.0"
] | null | null | null | shop/utils/json_code/to_json.py | Hx-someone/aly-shop | 1ef1fb459246bb8c3216bea3f8c26f1f19944482 | [
"AFL-3.0"
] | null | null | null | shop/utils/json_code/to_json.py | Hx-someone/aly-shop | 1ef1fb459246bb8c3216bea3f8c26f1f19944482 | [
"AFL-3.0"
] | null | null | null | # -*- coding: utf-8 -*-
from django.http import JsonResponse
from utils.json_code.status_code import Code
# 处理json格式转化,并加入异常码和异常信息
def to_json(errno=Code.OK, errmsg='', data=None, **kwargs):
"""
返回给前端 json数据以及错误信息
:param errno: 错误代码
:param errmsg: 错误信息
:param data: 数据
:param kwargs: 不定长数据
... | 20.375 | 64 | 0.648262 | 61 | 489 | 5.098361 | 0.540984 | 0.07717 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002625 | 0.220859 | 489 | 23 | 65 | 21.26087 | 0.813648 | 0.304703 | 0 | 0 | 0 | 0 | 0.049505 | 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 |
5456c9dfdf90930844a311f2a45cfeb49f1f625e | 1,512 | py | Python | myawards/migrations/0002_myrating_remove_project_general_delete_generalrating.py | nancyjamescoding/project-awards | a54a792395de0f05607ed922281f9458b45e9823 | [
"MIT"
] | null | null | null | myawards/migrations/0002_myrating_remove_project_general_delete_generalrating.py | nancyjamescoding/project-awards | a54a792395de0f05607ed922281f9458b45e9823 | [
"MIT"
] | null | null | null | myawards/migrations/0002_myrating_remove_project_general_delete_generalrating.py | nancyjamescoding/project-awards | a54a792395de0f05607ed922281f9458b45e9823 | [
"MIT"
] | null | null | null | # Generated by Django 4.0.3 on 2022-03-20 22:34
from decimal import Decimal
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('contenttypes', '0002_remove_content_type_name'),
('myawards', '0001_initial'),
]
... | 36 | 151 | 0.574074 | 138 | 1,512 | 6.166667 | 0.550725 | 0.028202 | 0.032902 | 0.051704 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026022 | 0.28836 | 1,512 | 41 | 152 | 36.878049 | 0.76487 | 0.029762 | 0 | 0.085714 | 1 | 0 | 0.156314 | 0.036177 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.085714 | 0 | 0.171429 | 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 |
54587138020caf3d9d10e1f5fedcdf104b429b96 | 5,843 | py | Python | devkits/Python/agent.py | busbey/project-z | 95cfbc2704632dce30a3003b8718aef988138269 | [
"CC-BY-3.0"
] | null | null | null | devkits/Python/agent.py | busbey/project-z | 95cfbc2704632dce30a3003b8718aef988138269 | [
"CC-BY-3.0"
] | 1 | 2015-04-10T13:42:56.000Z | 2015-04-10T13:45:41.000Z | devkits/Python/agent.py | busbey/project-z | 95cfbc2704632dce30a3003b8718aef988138269 | [
"CC-BY-3.0"
] | null | null | null | #!/usr/bin/env python
# Copyright (C) 2007 Sean Busbey, Roman Garnett, Brad Skaggs, Paul Ostazeski
#
# This program 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 (a... | 32.642458 | 114 | 0.567003 | 681 | 5,843 | 4.81351 | 0.299559 | 0.031727 | 0.025625 | 0.027761 | 0.085418 | 0.066504 | 0.031727 | 0.031727 | 0.031727 | 0 | 0 | 0.009711 | 0.312682 | 5,843 | 178 | 115 | 32.825843 | 0.806524 | 0.123738 | 0 | 0 | 0 | 0 | 0.073305 | 0 | 0 | 0 | 0.004704 | 0 | 0 | 0 | null | null | 0 | 0.030534 | null | null | 0.076336 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
5459449bdcb2f1f5488b8454a8659d0158984e26 | 2,146 | py | Python | FusionIIIT/applications/establishment/migrations/0007_faculty_info.py | sdhiman99/Fusion | e3fb620737720e81231f07867884b053d392c5b1 | [
"bzip2-1.0.6"
] | null | null | null | FusionIIIT/applications/establishment/migrations/0007_faculty_info.py | sdhiman99/Fusion | e3fb620737720e81231f07867884b053d392c5b1 | [
"bzip2-1.0.6"
] | null | null | null | FusionIIIT/applications/establishment/migrations/0007_faculty_info.py | sdhiman99/Fusion | e3fb620737720e81231f07867884b053d392c5b1 | [
"bzip2-1.0.6"
] | 2 | 2020-01-23T11:33:36.000Z | 2020-01-23T11:34:58.000Z | # Generated by Django 3.0.7 on 2020-07-07 13:15
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('globals', '0003_auto_20191024_1242'),
('establishment', '0006_ltc_application_ltc_eligible_user_ltc_tracking'),
... | 55.025641 | 225 | 0.608574 | 226 | 2,146 | 5.606195 | 0.40708 | 0.071034 | 0.07577 | 0.113654 | 0.36543 | 0.308603 | 0.308603 | 0.308603 | 0.308603 | 0.308603 | 0 | 0.036615 | 0.223672 | 2,146 | 38 | 226 | 56.473684 | 0.72389 | 0.020969 | 0 | 0 | 1 | 0 | 0.215341 | 0.035255 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 0.15625 | 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 |
545a7d160717cd35e5b6981443b0870c553530af | 50,183 | py | Python | app/Axigen/cli2.py | m3di/axigen-registration | 31a84027eccaf1d3ff75435569835917f6d0947d | [
"MIT"
] | null | null | null | app/Axigen/cli2.py | m3di/axigen-registration | 31a84027eccaf1d3ff75435569835917f6d0947d | [
"MIT"
] | null | null | null | app/Axigen/cli2.py | m3di/axigen-registration | 31a84027eccaf1d3ff75435569835917f6d0947d | [
"MIT"
] | null | null | null | #! /usr/bin/env python
"""
AXIGEN CLI Control Module
This module implements the base CLI class to be able to transparently access
AXIGEN's CLI commands via methods, along with some useful methods to process
the data returned by the standard CLI class commands.
In order to be able to use this module, please copy i... | 31.902734 | 157 | 0.658729 | 6,541 | 50,183 | 4.983642 | 0.092646 | 0.031658 | 0.025922 | 0.033376 | 0.593748 | 0.56528 | 0.521596 | 0.489907 | 0.437205 | 0.412203 | 0 | 0.004875 | 0.219218 | 50,183 | 1,572 | 158 | 31.923028 | 0.827089 | 0.004045 | 0 | 0.470076 | 0 | 0.001088 | 0.155447 | 0.00135 | 0 | 0 | 0 | 0.000636 | 0 | 0 | null | null | 0.023939 | 0.006529 | 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 |
54676d6188ae9a4d340e6033fbf9ee3b0c0ee9ab | 6,149 | py | Python | code/userprofile_userid_paidinfo.py | 7125messi/user_profile_case | 3bd203abe1e3413468612aae64be62253be2b1dd | [
"Apache-2.0"
] | null | null | null | code/userprofile_userid_paidinfo.py | 7125messi/user_profile_case | 3bd203abe1e3413468612aae64be62253be2b1dd | [
"Apache-2.0"
] | null | null | null | code/userprofile_userid_paidinfo.py | 7125messi/user_profile_case | 3bd203abe1e3413468612aae64be62253be2b1dd | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# encoding: utf-8
"""
File: userprofile_userid_paidinfo.py
Date: 2018/10/01
submit command:
submit command:
spark-submit --master yarn --deploy-mode client --driver-memory 1g --executor-memory 2g
--executor-cores 2 --num-executors 30 userprofile_userid_paidinfo.py start-date
A220U... | 62.111111 | 156 | 0.361522 | 446 | 6,149 | 4.688341 | 0.293722 | 0.043042 | 0.040172 | 0.04065 | 0.407939 | 0.378288 | 0.378288 | 0.343855 | 0.343855 | 0.299857 | 0 | 0.054676 | 0.56871 | 6,149 | 98 | 157 | 62.744898 | 0.733786 | 0.067979 | 0 | 0.313433 | 0 | 0 | 0.08667 | 0.019043 | 0.059701 | 0 | 0 | 0 | 0 | 1 | 0.014925 | false | 0 | 0.059701 | 0 | 0.074627 | 0 | 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 |
54683abc04c604a04bbb3473dca45fe6666faf7b | 1,417 | py | Python | part2/tacocat/seven/views.py | alejux-cr/python-exercise | c143f20e01c281015c0f0977c56e112f88e7b328 | [
"MIT"
] | null | null | null | part2/tacocat/seven/views.py | alejux-cr/python-exercise | c143f20e01c281015c0f0977c56e112f88e7b328 | [
"MIT"
] | null | null | null | part2/tacocat/seven/views.py | alejux-cr/python-exercise | c143f20e01c281015c0f0977c56e112f88e7b328 | [
"MIT"
] | null | null | null | from django.shortcuts import render
from django.http import HttpResponse
from .forms import IntegersListForm
from .listLogic import generate_set_pair_sum7
def home(request):
return render(request,'home.html')
def seven(request):
if request.method == 'POST':
set_list_form = IntegersListForm(request.POS... | 44.28125 | 106 | 0.622442 | 161 | 1,417 | 5.248447 | 0.304348 | 0.074556 | 0.11716 | 0.127811 | 0.489941 | 0.489941 | 0.489941 | 0.489941 | 0.415385 | 0.415385 | 0 | 0.005775 | 0.266761 | 1,417 | 31 | 107 | 45.709677 | 0.807507 | 0 | 0 | 0.344828 | 1 | 0 | 0.151729 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068966 | false | 0 | 0.137931 | 0.034483 | 0.37931 | 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 |
54694d67488b51a1e589c1b23c309af1083e1fec | 1,257 | py | Python | pii-manager/src/pii_manager/helper/json.py | ruinunca/data_tooling | 297e1f8c2898d00b523ccafb7bdd19c6d6aac9ff | [
"Apache-2.0"
] | 23 | 2021-10-21T14:23:40.000Z | 2022-03-27T01:06:13.000Z | pii-manager/src/pii_manager/helper/json.py | ruinunca/data_tooling | 297e1f8c2898d00b523ccafb7bdd19c6d6aac9ff | [
"Apache-2.0"
] | 331 | 2021-11-02T00:30:56.000Z | 2022-03-08T16:48:13.000Z | pii-manager/src/pii_manager/helper/json.py | ruinunca/data_tooling | 297e1f8c2898d00b523ccafb7bdd19c6d6aac9ff | [
"Apache-2.0"
] | 33 | 2021-08-07T18:53:38.000Z | 2022-02-11T13:38:11.000Z | """
Provide a custom JSON encoder that can serialize additional objects,
in particular PiiEntity objects
"""
from collections.abc import Iterator
import datetime
import json
def keygetter_set(v):
return str(v).lower()
class CustomJSONEncoder(json.JSONEncoder):
"""
A custom JSON encoder that can serial... | 26.1875 | 70 | 0.59825 | 154 | 1,257 | 4.850649 | 0.525974 | 0.024096 | 0.068273 | 0.048193 | 0.136546 | 0.136546 | 0.136546 | 0.136546 | 0.136546 | 0 | 0 | 0.006849 | 0.303103 | 1,257 | 47 | 71 | 26.744681 | 0.84589 | 0.348449 | 0 | 0 | 0 | 0 | 0.040053 | 0.029373 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.136364 | 0.045455 | 0.590909 | 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 |
546a0517e5f223f4f2a9ad299e708f7d18998ceb | 4,743 | py | Python | experiment-scripts/migrate-server-console.py | kruviser/aioquic-PoA_UniPisa | d0df2347171e525c56af0d717ef4b44240e56d77 | [
"BSD-3-Clause"
] | null | null | null | experiment-scripts/migrate-server-console.py | kruviser/aioquic-PoA_UniPisa | d0df2347171e525c56af0d717ef4b44240e56d77 | [
"BSD-3-Clause"
] | null | null | null | experiment-scripts/migrate-server-console.py | kruviser/aioquic-PoA_UniPisa | d0df2347171e525c56af0d717ef4b44240e56d77 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
#code taken from https://www.redhat.com/en/blog/container-migration-around-world and partially modified
import socket
import sys
from thread import *
import json
import os
import distutils.util
import subprocess
#import dns.update
#import dns.query
#import dns.tsigkeyring
def migrate_server(app_u... | 36.484615 | 138 | 0.527514 | 549 | 4,743 | 4.489982 | 0.406193 | 0.029209 | 0.0357 | 0.030832 | 0.107099 | 0.026775 | 0.026775 | 0.026775 | 0 | 0 | 0 | 0.016399 | 0.370019 | 4,743 | 129 | 139 | 36.767442 | 0.808568 | 0.318364 | 0 | 0.173333 | 0 | 0 | 0.158388 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.093333 | null | null | 0.12 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
546e5355e028c6074280c76f94692dbc9125c77d | 1,982 | py | Python | python_sms.py | MohanSha/Python | 54afb96fd90f43df01ee7561cb591ab49ad5e39f | [
"MIT"
] | 1 | 2021-06-12T11:42:17.000Z | 2021-06-12T11:42:17.000Z | python_sms.py | MohanSha/Python | 54afb96fd90f43df01ee7561cb591ab49ad5e39f | [
"MIT"
] | null | null | null | python_sms.py | MohanSha/Python | 54afb96fd90f43df01ee7561cb591ab49ad5e39f | [
"MIT"
] | 1 | 2021-06-12T11:42:20.000Z | 2021-06-12T11:42:20.000Z | # Description : This will text all the students Karate Club
import urllib # URL functions
import urllib2 # URL functions
import os
from time import strftime
import sqlite3
import sys
dropbox = os.getenv("dropbox")
scripts = os.getenv("scripts")
dbfile = ("database/maindatabase.db")
master_db = os.path.join(d... | 28.724638 | 222 | 0.636731 | 266 | 1,982 | 4.695489 | 0.533835 | 0.014412 | 0.028823 | 0.030424 | 0.067254 | 0.067254 | 0.067254 | 0.067254 | 0.067254 | 0.067254 | 0 | 0.007138 | 0.222503 | 1,982 | 68 | 223 | 29.147059 | 0.803374 | 0.165994 | 0 | 0 | 0 | 0.021277 | 0.31326 | 0.028589 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.12766 | null | null | 0.085106 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
5479478e173b57844cb68a057063cc24e545f212 | 509 | py | Python | setup.py | AndrewOriani/ECD_control | 1b968c8b729e7e2606e7c7cbfbf762b5439ee5b7 | [
"MIT"
] | null | null | null | setup.py | AndrewOriani/ECD_control | 1b968c8b729e7e2606e7c7cbfbf762b5439ee5b7 | [
"MIT"
] | null | null | null | setup.py | AndrewOriani/ECD_control | 1b968c8b729e7e2606e7c7cbfbf762b5439ee5b7 | [
"MIT"
] | 1 | 2022-02-27T21:44:05.000Z | 2022-02-27T21:44:05.000Z | from setuptools import setup, find_packages
setup(
name='ECD_control',
version='1.0',
description='ECD control is a fast, echoed, gate-based approach to the quantum control of an oscillator with weak dispersive coupling to a qubit.',
author='Alec Eickbusch',
author_email='alec.eickbusch@yale.edu',
... | 36.357143 | 151 | 0.699411 | 66 | 509 | 5.30303 | 0.757576 | 0.085714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007109 | 0.170923 | 509 | 14 | 152 | 36.357143 | 0.822275 | 0 | 0 | 0 | 0 | 0.076923 | 0.533333 | 0.045098 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.076923 | 0 | 0.076923 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
5479cbbf771db3699f0005fb85f780400b4558cc | 886 | py | Python | tests/test_padend.py | Jesse-Yung/jsonclasses | d40c52aec42bcb978a80ceb98b93ab38134dc790 | [
"MIT"
] | 50 | 2021-08-18T08:08:04.000Z | 2022-03-20T07:23:26.000Z | tests/test_padend.py | Jesse-Yung/jsonclasses | d40c52aec42bcb978a80ceb98b93ab38134dc790 | [
"MIT"
] | 1 | 2021-11-23T02:12:29.000Z | 2021-11-23T13:35:26.000Z | tests/test_padend.py | Jesse-Yung/jsonclasses | d40c52aec42bcb978a80ceb98b93ab38134dc790 | [
"MIT"
] | 8 | 2021-07-01T02:39:15.000Z | 2021-12-10T02:20:18.000Z | from __future__ import annotations
from tests.classes.super_str import SuperStr
from unittest import TestCase
class TestPadEnd(TestCase):
def test_padend_adds_str_to_the_end_of_str(self):
ps = SuperStr(pade="aaaaa")
self.assertEqual(ps.pade, "aaaaaeeeee")
def test_padend_keeps_value_when_ty... | 31.642857 | 75 | 0.731377 | 123 | 886 | 4.861789 | 0.349594 | 0.058528 | 0.108696 | 0.113712 | 0.240803 | 0.240803 | 0.150502 | 0.150502 | 0.150502 | 0 | 0 | 0.005487 | 0.177201 | 886 | 27 | 76 | 32.814815 | 0.814815 | 0 | 0 | 0 | 0 | 0 | 0.075621 | 0 | 0 | 0 | 0 | 0 | 0.263158 | 1 | 0.263158 | false | 0 | 0.157895 | 0 | 0.473684 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
547bbcbd7007653ca5a91aef3d327bdc371d44a9 | 12,978 | py | Python | cly/interactive.py | redislabsdev/cly | 748f1477ca4d7fa54669d6f85a7baf1b9056f0f0 | [
"BSD-3-Clause"
] | 2 | 2015-02-26T00:27:34.000Z | 2018-01-11T07:35:56.000Z | cly/interactive.py | redislabsdev/cly | 748f1477ca4d7fa54669d6f85a7baf1b9056f0f0 | [
"BSD-3-Clause"
] | null | null | null | cly/interactive.py | redislabsdev/cly | 748f1477ca4d7fa54669d6f85a7baf1b9056f0f0 | [
"BSD-3-Clause"
] | 3 | 2020-06-03T03:36:19.000Z | 2020-10-18T15:43:56.000Z | # -*- coding: utf-8 -*-
#
# Copyright (C) 2006-2007 Alec Thomas <alec@swapoff.org>
#
# This software is licensed as described in the file COPYING, which
# you should have received as part of this distribution.
#
"""CLY and readline, together at last.
This module uses readline's line editing and tab completion along w... | 30.973747 | 79 | 0.597781 | 1,419 | 12,978 | 5.30444 | 0.225511 | 0.018998 | 0.015943 | 0.0186 | 0.156636 | 0.087153 | 0.051813 | 0.033745 | 0.01488 | 0.01488 | 0 | 0.002129 | 0.312298 | 12,978 | 418 | 80 | 31.047847 | 0.841232 | 0.020959 | 0 | 0.393939 | 0 | 0.003788 | 0.04959 | 0 | 0 | 0 | 0 | 0 | 0.003788 | 0 | null | null | 0.015152 | 0.056818 | null | null | 0.049242 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
54813450f859618ebd044c1480c1b56293683160 | 343 | py | Python | requests_credssp/__init__.py | jborean93/requests-credssp | bf64668eba8d3820cd9b47b4aaeff6276087bf92 | [
"MIT"
] | 19 | 2016-09-06T19:11:52.000Z | 2022-03-05T23:30:37.000Z | requests_credssp/__init__.py | jborean93/requests-credssp | bf64668eba8d3820cd9b47b4aaeff6276087bf92 | [
"MIT"
] | 24 | 2016-09-02T04:03:34.000Z | 2022-02-17T05:44:23.000Z | requests_credssp/__init__.py | jborean93/requests-credssp | bf64668eba8d3820cd9b47b4aaeff6276087bf92 | [
"MIT"
] | 5 | 2016-10-26T16:08:49.000Z | 2021-05-10T04:19:15.000Z | # Copyright: (c) 2018, Jordan Borean (@jborean93) <jborean93@gmail.com>
# MIT License (see LICENSE or https://opensource.org/licenses/MIT)
import logging
from logging import NullHandler
from requests_credssp.credssp import HttpCredSSPAuth
logger = logging.getLogger(__name__)
logger.addHandler(NullHandler())
__all... | 22.866667 | 71 | 0.790087 | 40 | 343 | 6.55 | 0.7 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02623 | 0.110787 | 343 | 14 | 72 | 24.5 | 0.832787 | 0.390671 | 0 | 0 | 0 | 0 | 0.072816 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
5488d389e37130db871ca466b0af916d803d5afe | 457 | py | Python | warepy/load_yaml_test.py | ryzhovalex/warepy | fbee1b5f79bedb34dd6a71f32501d518a09bb0ce | [
"MIT"
] | null | null | null | warepy/load_yaml_test.py | ryzhovalex/warepy | fbee1b5f79bedb34dd6a71f32501d518a09bb0ce | [
"MIT"
] | null | null | null | warepy/load_yaml_test.py | ryzhovalex/warepy | fbee1b5f79bedb34dd6a71f32501d518a09bb0ce | [
"MIT"
] | null | null | null | import pytest
from . import load_yaml
def test_load_yaml_empty():
data = load_yaml('warepy/tests/empty.yaml')
assert \
data == {}, \
'Loaded data from an empty yaml should result empty dict'
def test_load_yaml_plain():
try:
load_yaml('warepy/tests/plain_type.yaml')
excep... | 21.761905 | 70 | 0.63895 | 58 | 457 | 4.862069 | 0.5 | 0.141844 | 0.078014 | 0.106383 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.277899 | 457 | 20 | 71 | 22.85 | 0.854545 | 0 | 0 | 0 | 0 | 0 | 0.352298 | 0.111597 | 0 | 0 | 0 | 0 | 0.133333 | 1 | 0.133333 | false | 0.066667 | 0.133333 | 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 |
548a1cbcfd950e8d7b930ae194ebf6bf1b73db6f | 1,262 | py | Python | src/main/main.py | Shaposhnikov-Alexey/FLT-graphs | f78511a6c966471366a4308afe39f2ef24b57826 | [
"MIT"
] | null | null | null | src/main/main.py | Shaposhnikov-Alexey/FLT-graphs | f78511a6c966471366a4308afe39f2ef24b57826 | [
"MIT"
] | 3 | 2020-09-16T20:38:15.000Z | 2020-10-14T20:10:13.000Z | src/main/main.py | Shaposhnikov-Alexey/FLT-graphs | f78511a6c966471366a4308afe39f2ef24b57826 | [
"MIT"
] | null | null | null | import sys
import time
from os import path
from src.main.graph import Graph
def benchmark_test(graph, automaton, regex_name):
start_intersect = 0
end_intersect = 0
start_reachability = 0
end_reachability = 0
args = {"type": 1}
for i in range(5):
start_intersect += time.time_ns()
... | 34.108108 | 110 | 0.647385 | 169 | 1,262 | 4.621302 | 0.366864 | 0.071703 | 0.051216 | 0.069142 | 0.145967 | 0.145967 | 0.074264 | 0.074264 | 0 | 0 | 0 | 0.030706 | 0.225832 | 1,262 | 36 | 111 | 35.055556 | 0.76868 | 0.045166 | 0 | 0 | 0 | 0 | 0.072379 | 0 | 0 | 0 | 0 | 0.027778 | 0.074074 | 1 | 0.037037 | false | 0 | 0.148148 | 0 | 0.185185 | 0.037037 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
548f506da49732a85afc858cfe20998fcfbf6bc9 | 358 | py | Python | Profile/migrations/0004_rename_header_mail_form_subject.py | Nagababu91768/Portfolio | e3fd02364eb035084555b345cb0e0681f6939d44 | [
"MIT"
] | null | null | null | Profile/migrations/0004_rename_header_mail_form_subject.py | Nagababu91768/Portfolio | e3fd02364eb035084555b345cb0e0681f6939d44 | [
"MIT"
] | null | null | null | Profile/migrations/0004_rename_header_mail_form_subject.py | Nagababu91768/Portfolio | e3fd02364eb035084555b345cb0e0681f6939d44 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.4 on 2021-06-10 15:52
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('Profile', '0003_mail_form'),
]
operations = [
migrations.RenameField(
model_name='mail_form',
old_name='header',
... | 18.842105 | 47 | 0.578212 | 39 | 358 | 5.153846 | 0.794872 | 0.079602 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076613 | 0.307263 | 358 | 18 | 48 | 19.888889 | 0.733871 | 0.125698 | 0 | 0 | 1 | 0 | 0.138264 | 0 | 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 |
549531617dcfc0ad59cd9d890d7293654f06e4fe | 377 | py | Python | libraries/instagram/migrations/0004_insta_url.py | cca/libraries_wagtail | f0baf62d0418ea5bb548c082aa84966aca363e56 | [
"ECL-2.0"
] | 9 | 2017-12-19T21:15:23.000Z | 2022-03-23T08:11:52.000Z | libraries/instagram/migrations/0004_insta_url.py | cca/libraries_wagtail | f0baf62d0418ea5bb548c082aa84966aca363e56 | [
"ECL-2.0"
] | 140 | 2017-07-12T00:09:53.000Z | 2021-11-02T17:30:43.000Z | libraries/instagram/migrations/0004_insta_url.py | cca/libraries_wagtail | f0baf62d0418ea5bb548c082aa84966aca363e56 | [
"ECL-2.0"
] | 3 | 2017-08-21T10:47:34.000Z | 2020-08-20T14:04:18.000Z | # Generated by Django 2.2.9 on 2020-01-16 23:23
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('instagram', '0003_ig_id'),
]
operations = [
migrations.AlterField(
model_name='instagram',
name='image',
... | 19.842105 | 50 | 0.588859 | 41 | 377 | 5.317073 | 0.780488 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.082707 | 0.29443 | 377 | 18 | 51 | 20.944444 | 0.736842 | 0.119363 | 0 | 0 | 1 | 0 | 0.1 | 0 | 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 |
5498491ebab7b840ed862d03277646981b37913b | 4,425 | py | Python | sdk/python/pulumi_aws/cognito/get_user_pools.py | chivandikwa/pulumi-aws | 19c08bf9dcb90544450ffa4eec7bf6751058fde2 | [
"ECL-2.0",
"Apache-2.0"
] | 260 | 2018-06-18T14:57:00.000Z | 2022-03-29T11:41:03.000Z | sdk/python/pulumi_aws/cognito/get_user_pools.py | chivandikwa/pulumi-aws | 19c08bf9dcb90544450ffa4eec7bf6751058fde2 | [
"ECL-2.0",
"Apache-2.0"
] | 1,154 | 2018-06-19T20:38:20.000Z | 2022-03-31T19:48:16.000Z | sdk/python/pulumi_aws/cognito/get_user_pools.py | chivandikwa/pulumi-aws | 19c08bf9dcb90544450ffa4eec7bf6751058fde2 | [
"ECL-2.0",
"Apache-2.0"
] | 115 | 2018-06-28T03:20:27.000Z | 2022-03-29T11:41:06.000Z | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import... | 31.607143 | 159 | 0.652881 | 557 | 4,425 | 4.958707 | 0.233393 | 0.055395 | 0.030413 | 0.043447 | 0.467777 | 0.419261 | 0.419261 | 0.357712 | 0.357712 | 0.330196 | 0 | 0.000299 | 0.245424 | 4,425 | 139 | 160 | 31.834532 | 0.826894 | 0.36904 | 0 | 0.115942 | 1 | 0 | 0.11249 | 0.032971 | 0 | 0 | 0 | 0 | 0 | 1 | 0.115942 | false | 0 | 0.072464 | 0.014493 | 0.304348 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
549a8e5c6974f099ff7ecc96e9e41da70ffe7e9f | 2,888 | py | Python | geocamUtil/UserUtil.py | geocam/geocamUtilWeb | b64fc063c64b4b0baa140db4c126f2ff980756ab | [
"NASA-1.3"
] | 4 | 2017-03-03T16:24:24.000Z | 2018-06-24T05:50:40.000Z | geocamUtil/UserUtil.py | geocam/geocamUtilWeb | b64fc063c64b4b0baa140db4c126f2ff980756ab | [
"NASA-1.3"
] | 1 | 2021-09-29T17:17:30.000Z | 2021-09-29T17:17:30.000Z | geocamUtil/UserUtil.py | geocam/geocamUtilWeb | b64fc063c64b4b0baa140db4c126f2ff980756ab | [
"NASA-1.3"
] | 1 | 2017-12-19T20:45:53.000Z | 2017-12-19T20:45:53.000Z | # __BEGIN_LICENSE__
#Copyright (c) 2015, United States Government, as represented by the
#Administrator of the National Aeronautics and Space Administration.
#All rights reserved.
# __END_LICENSE__
from django.contrib.auth.models import User
def user_exists(first_name, last_name):
existing_users = User.objects... | 30.083333 | 117 | 0.65651 | 370 | 2,888 | 4.897297 | 0.267568 | 0.083885 | 0.066225 | 0.075055 | 0.271523 | 0.225166 | 0.120309 | 0.120309 | 0.043046 | 0 | 0 | 0.004671 | 0.258657 | 2,888 | 96 | 118 | 30.083333 | 0.841663 | 0.114958 | 0 | 0.220339 | 0 | 0 | 0.041873 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.033898 | 0.016949 | null | null | 0.016949 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
549b18f30af8bc925e55b3b71f6f9258a70048ab | 1,653 | py | Python | road situation analysis/research/road/state estimation/sdc/kalman_sensor_base.py | MikhailKitikov/DrivingMonitor | 0b698d1ba644ce74e1c7d88c3e18a1ef997aabc0 | [
"MIT"
] | 100 | 2018-04-01T14:40:49.000Z | 2022-03-29T14:43:31.000Z | road situation analysis/research/road/state estimation/sdc/kalman_sensor_base.py | MikhailKitikov/DrivingMonitor | 0b698d1ba644ce74e1c7d88c3e18a1ef997aabc0 | [
"MIT"
] | 2 | 2020-06-11T10:01:22.000Z | 2021-05-27T13:48:08.000Z | road situation analysis/research/road/state estimation/sdc/kalman_sensor_base.py | MikhailKitikov/DrivingMonitor | 0b698d1ba644ce74e1c7d88c3e18a1ef997aabc0 | [
"MIT"
] | 57 | 2018-04-05T07:57:56.000Z | 2022-03-30T16:17:00.000Z | # -*- coding: utf-8 -*-
import numpy as np
from .kalman_filter import kalman_process_observation
class KalmanSensorBase(object):
"""
Модель наблюдений в модели калмановской локализации.
"""
def __init__(self, noise_variances=None):
"""
:param noise_covariance: Ожидаемые значения диспе... | 33.734694 | 88 | 0.672716 | 194 | 1,653 | 5.438144 | 0.396907 | 0.060664 | 0.079621 | 0.048341 | 0.117536 | 0.117536 | 0 | 0 | 0 | 0 | 0 | 0.002381 | 0.23775 | 1,653 | 48 | 89 | 34.4375 | 0.834921 | 0.199637 | 0 | 0.137931 | 0 | 0 | 0.023734 | 0 | 0 | 0 | 0 | 0 | 0.103448 | 1 | 0.241379 | false | 0 | 0.068966 | 0.034483 | 0.413793 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
54a33dab876348fed0a80a1f9c9c3a5ff82f1dc8 | 144 | py | Python | app.py | uibrick/trade_service | 0597894cde7d44531fb683062c5267c621e47249 | [
"MIT"
] | null | null | null | app.py | uibrick/trade_service | 0597894cde7d44531fb683062c5267c621e47249 | [
"MIT"
] | null | null | null | app.py | uibrick/trade_service | 0597894cde7d44531fb683062c5267c621e47249 | [
"MIT"
] | null | null | null | # -*- coding: UTF-8 -*-
from flask import Flask
app = Flask('test')
print('start app')
if __name__ == '__main__':
app.run()
| 12 | 27 | 0.548611 | 18 | 144 | 3.944444 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009524 | 0.270833 | 144 | 11 | 28 | 13.090909 | 0.666667 | 0.145833 | 0 | 0 | 0 | 0 | 0.190909 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.2 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
54a39f5bf1a71b2b9493364dc67f002ebe45f365 | 1,271 | py | Python | Dialect bot.tingapp/tingbot/web.py | benpawle/Dialect-Bot | ff3a2c8bf33e6fa7fb44e8ffe50199ae68e97fcc | [
"MIT"
] | 19 | 2015-11-04T01:34:19.000Z | 2020-04-25T23:51:49.000Z | Dialect bot.tingapp/tingbot/web.py | benpawle/Dialect-Bot | ff3a2c8bf33e6fa7fb44e8ffe50199ae68e97fcc | [
"MIT"
] | 58 | 2015-11-05T15:41:19.000Z | 2020-11-08T17:24:03.000Z | Dialect bot.tingapp/tingbot/web.py | benpawle/Dialect-Bot | ff3a2c8bf33e6fa7fb44e8ffe50199ae68e97fcc | [
"MIT"
] | 13 | 2015-11-05T00:45:32.000Z | 2021-12-07T17:20:17.000Z | import zmq
class webhook(object):
def __init__(self, hook_name):
ensure_setup()
self.hook_name = hook_name
def __call__(self, f):
register_webhook(self.hook_name, f)
return f
is_setup = False
zmq_subscriber = None
registered_webhooks = {}
def ensure_setup():
global is_se... | 24.921569 | 70 | 0.678993 | 164 | 1,271 | 4.95122 | 0.420732 | 0.068966 | 0.044335 | 0.061576 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005181 | 0.240755 | 1,271 | 50 | 71 | 25.42 | 0.836269 | 0.015736 | 0 | 0.051282 | 0 | 0 | 0.02482 | 0.02482 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.025641 | 0.076923 | 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 |
54a59fe7381add928358ccf03da645b9cc8d571a | 1,511 | py | Python | widgets/serverSetup.py | untAkshat/GUI-Chat-App | 12c8ad88757bcadf052179de0b75d8f269f92013 | [
"Apache-2.0"
] | null | null | null | widgets/serverSetup.py | untAkshat/GUI-Chat-App | 12c8ad88757bcadf052179de0b75d8f269f92013 | [
"Apache-2.0"
] | null | null | null | widgets/serverSetup.py | untAkshat/GUI-Chat-App | 12c8ad88757bcadf052179de0b75d8f269f92013 | [
"Apache-2.0"
] | 1 | 2020-10-20T07:54:40.000Z | 2020-10-20T07:54:40.000Z | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'w.ui'
#
# Created by: PyQt5 UI code generator 5.10.1
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_Form(object):
def setupUi(self, Form):
Form.setObjectName("Form")... | 36.853659 | 87 | 0.662475 | 175 | 1,511 | 5.685714 | 0.451429 | 0.065327 | 0.066332 | 0.048241 | 0.096482 | 0.096482 | 0 | 0 | 0 | 0 | 0 | 0.040575 | 0.217075 | 1,511 | 41 | 87 | 36.853659 | 0.800507 | 0.115817 | 0 | 0.1 | 1 | 0 | 0.069925 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.033333 | 0 | 0.133333 | 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 |
54b00af3544f8b1711435c6c8f5a3b6987975d4b | 9,474 | py | Python | profiles/models.py | noisy-witness/steemprojects.com | 752833a850af9d072c3c7dc278f5b41659a5eaee | [
"MIT"
] | 20 | 2017-09-05T17:19:19.000Z | 2018-06-26T01:46:21.000Z | profiles/models.py | noisy/steemprojects.com | 752833a850af9d072c3c7dc278f5b41659a5eaee | [
"MIT"
] | 117 | 2017-08-18T13:24:44.000Z | 2018-08-17T18:37:45.000Z | profiles/models.py | djonie08/Github | 51ee7af6313d32aad4dde7ccb97e48cc347681c3 | [
"MIT"
] | 9 | 2017-10-01T18:15:11.000Z | 2018-04-24T15:15:36.000Z | from django.conf import settings
from django.contrib.auth.models import User
from django.core.cache import cache
from django.core.urlresolvers import reverse
from django.db import models
from django.utils.translation import ugettext_lazy as _
from social_django.models import UserSocialAuth
from core.models import Base... | 34.95941 | 111 | 0.661178 | 1,208 | 9,474 | 4.937914 | 0.159768 | 0.036211 | 0.019614 | 0.03135 | 0.408047 | 0.362448 | 0.299749 | 0.271417 | 0.246605 | 0.210562 | 0 | 0.003071 | 0.243931 | 9,474 | 270 | 112 | 35.088889 | 0.82968 | 0.06787 | 0 | 0.21875 | 0 | 0 | 0.073799 | 0.035588 | 0 | 0 | 0 | 0.003704 | 0 | 1 | 0.166667 | false | 0 | 0.057292 | 0.072917 | 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 | 0 | 0 | 1 | 0 | 0 | 1 |
54b7936ab6143bfd8edc785f96653e6e2f803a98 | 1,878 | py | Python | wandb/core.py | rguerrettaz/client | 06a8759ad9c3c407e815cecbd789c3a2d44e4a2b | [
"MIT"
] | null | null | null | wandb/core.py | rguerrettaz/client | 06a8759ad9c3c407e815cecbd789c3a2d44e4a2b | [
"MIT"
] | null | null | null | wandb/core.py | rguerrettaz/client | 06a8759ad9c3c407e815cecbd789c3a2d44e4a2b | [
"MIT"
] | null | null | null | """Core variables, functions, and classes that we want in the wandb
module but are also used in modules that import the wandb module.
The purpose of this module is to break circular imports.
"""
import os
import string
import sys
import time
import click
from . import env
from . import io_wrap
__root_dir__ = env.... | 25.726027 | 85 | 0.668797 | 277 | 1,878 | 4.223827 | 0.429603 | 0.075214 | 0.047009 | 0.035897 | 0.137607 | 0.123077 | 0.123077 | 0.123077 | 0.080342 | 0.080342 | 0 | 0.001327 | 0.197551 | 1,878 | 73 | 86 | 25.726027 | 0.77505 | 0.249734 | 0 | 0.097561 | 0 | 0 | 0.133429 | 0 | 0 | 0 | 0 | 0.013699 | 0 | 1 | 0.121951 | false | 0 | 0.170732 | 0.04878 | 0.365854 | 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 |
54bb9f688092c3093ae5724d53f0d2df84a01e19 | 10,694 | py | Python | tools/miso/run_events_analysis.py | globusgenomics/galaxy | 7caf74d9700057587b3e3434c64e82c5b16540f1 | [
"CC-BY-3.0"
] | 1 | 2021-02-05T13:19:58.000Z | 2021-02-05T13:19:58.000Z | tools/miso/run_events_analysis.py | globusgenomics/galaxy | 7caf74d9700057587b3e3434c64e82c5b16540f1 | [
"CC-BY-3.0"
] | null | null | null | tools/miso/run_events_analysis.py | globusgenomics/galaxy | 7caf74d9700057587b3e3434c64e82c5b16540f1 | [
"CC-BY-3.0"
] | null | null | null | ##
## Events analysis
##
import os
import csv
import sys
import subprocess
from collections import defaultdict
import pysam
import gff_utils
import as_events
import run_miso
import misc_utils
import exon_utils
from parse_csv import *
from settings import Settings, load_settings
from settings import miso_path as miso_... | 38.192857 | 96 | 0.580699 | 1,338 | 10,694 | 4.434978 | 0.224215 | 0.02275 | 0.017526 | 0.013482 | 0.158409 | 0.135659 | 0.077856 | 0.023256 | 0.011122 | 0 | 0 | 0.005046 | 0.332803 | 10,694 | 279 | 97 | 38.329749 | 0.826629 | 0.062839 | 0 | 0.140845 | 0 | 0.004695 | 0.23402 | 0.004566 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.023474 | 0.070423 | null | null | 0.103286 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
54c644da9a958a0b6ff1596ea323a1a21d3b756b | 11,418 | py | Python | apps/face_detect/mp_video.py | yarenty/ml-suite | 570202d904cf5980c2262b4cfc067eb8428ea8d0 | [
"Apache-2.0"
] | 334 | 2018-06-07T00:42:09.000Z | 2022-01-08T19:48:50.000Z | apps/face_detect/mp_video.py | yarenty/ml-suite | 570202d904cf5980c2262b4cfc067eb8428ea8d0 | [
"Apache-2.0"
] | 99 | 2018-06-20T14:13:09.000Z | 2020-11-03T19:36:50.000Z | apps/face_detect/mp_video.py | yarenty/ml-suite | 570202d904cf5980c2262b4cfc067eb8428ea8d0 | [
"Apache-2.0"
] | 151 | 2018-06-15T12:10:09.000Z | 2021-11-19T06:22:35.000Z | # Multiprocessing video with queue
import multiprocessing as mp
import os
import cv2
import time
import ctypes
import threading
from detect_ap2 import det_preprocess, det_postprocess
from xfdnn.rt import xdnn
import numpy as np
##################################################
# CONSTANTS
#################... | 30.367021 | 349 | 0.629795 | 1,462 | 11,418 | 4.641587 | 0.20383 | 0.028294 | 0.035367 | 0.016505 | 0.294577 | 0.197318 | 0.143383 | 0.119216 | 0.082375 | 0.061155 | 0 | 0.020121 | 0.246978 | 11,418 | 375 | 350 | 30.448 | 0.769132 | 0.072955 | 0 | 0.268908 | 0 | 0.004202 | 0.127186 | 0.020449 | 0 | 0 | 0.00172 | 0 | 0 | 0 | null | null | 0 | 0.046218 | null | null | 0.063025 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
54c7538cdc10b70a050b06c2bccbd5a1feefc221 | 5,809 | py | Python | pandas_data_dictionary/pd_dd.py | tcouch/pandas-data-dictionary | 569cdb5a0c3fc5717d95475edc27b8483cae401c | [
"MIT"
] | null | null | null | pandas_data_dictionary/pd_dd.py | tcouch/pandas-data-dictionary | 569cdb5a0c3fc5717d95475edc27b8483cae401c | [
"MIT"
] | 8 | 2021-05-12T11:41:59.000Z | 2021-06-07T12:21:04.000Z | pandas_data_dictionary/pd_dd.py | tcouch/pandas-data-dictionary | 569cdb5a0c3fc5717d95475edc27b8483cae401c | [
"MIT"
] | null | null | null | import pandas as pd
from pandas.api.types import CategoricalDtype
import numpy as np
@pd.api.extensions.register_dataframe_accessor("dd")
class DataDictionaryAccessor():
validation_columns = {
'min_value':np.NaN,
'max_value':np.NaN,
'categories':"",
'ordered':False,... | 37.720779 | 91 | 0.65674 | 791 | 5,809 | 4.599241 | 0.192162 | 0.050577 | 0.056075 | 0.049478 | 0.26608 | 0.224299 | 0.204508 | 0.166575 | 0.105553 | 0.105553 | 0 | 0.000676 | 0.236357 | 5,809 | 154 | 92 | 37.720779 | 0.819432 | 0.096402 | 0 | 0.045045 | 0 | 0 | 0.072752 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.234234 | false | 0 | 0.027027 | 0.081081 | 0.396396 | 0.027027 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
49a451549945677ed1540c4dcc5bc4d3fb9a6b7a | 2,878 | py | Python | gram/migrations/0001_initial.py | SatishPatel8424/Instagram-django | c67728574da643f07167420731324b59817828be | [
"MIT"
] | 58 | 2018-10-03T19:41:36.000Z | 2022-03-14T21:24:43.000Z | gram/migrations/0001_initial.py | sevbo2003/Instagram-django | c9e07a7872f8acf9580ea1dcba7a7ce43c9ae464 | [
"MIT"
] | null | null | null | gram/migrations/0001_initial.py | sevbo2003/Instagram-django | c9e07a7872f8acf9580ea1dcba7a7ce43c9ae464 | [
"MIT"
] | 35 | 2019-01-29T00:00:48.000Z | 2022-03-28T05:00:39.000Z | # Generated by Django 2.0.7 on 2018-07-20 13:48
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | 41.710145 | 126 | 0.594858 | 293 | 2,878 | 5.675768 | 0.31058 | 0.028864 | 0.042093 | 0.066146 | 0.487673 | 0.487673 | 0.424534 | 0.378232 | 0.354781 | 0.212267 | 0 | 0.014272 | 0.269632 | 2,878 | 68 | 127 | 42.323529 | 0.776879 | 0.015636 | 0 | 0.47541 | 1 | 0 | 0.112328 | 0.007418 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.04918 | 0 | 0.114754 | 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 |
49b288503003588ae2bcbba1b71355761e0394d6 | 5,768 | py | Python | test/test_utils_macro_generate.py | lingjf/h2un | 7735c2f07f58ea8b92a9e9608c9b45c98c94c670 | [
"Apache-2.0"
] | null | null | null | test/test_utils_macro_generate.py | lingjf/h2un | 7735c2f07f58ea8b92a9e9608c9b45c98c94c670 | [
"Apache-2.0"
] | null | null | null | test/test_utils_macro_generate.py | lingjf/h2un | 7735c2f07f58ea8b92a9e9608c9b45c98c94c670 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
# coding=utf-8
def do_join(count, prefix, split):
s = ''
for i in range(count):
if i > 0:
s = s + split
s = s + prefix + str(i)
return s
def test_h2pp_th(count):
f.write('SUITE(H2PP_TH [generated])\n')
f.write('{\n')
for i in range(count):
... | 40.055556 | 111 | 0.483877 | 943 | 5,768 | 2.892895 | 0.088017 | 0.18915 | 0.094941 | 0.049853 | 0.791789 | 0.714443 | 0.653226 | 0.590176 | 0.590176 | 0.576613 | 0 | 0.040768 | 0.268551 | 5,768 | 143 | 112 | 40.335664 | 0.605831 | 0.005028 | 0 | 0.45082 | 0 | 0.114754 | 0.438731 | 0.026669 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057377 | false | 0 | 0 | 0 | 0.065574 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
49b46c53f67d2ae176fe38623f65b101407db847 | 194 | py | Python | 24Nov/evenOdd.py | universekavish/Python-Training | ccd7dfbc8802662de0e0fc20fe99bb3aae4c6e18 | [
"Apache-2.0"
] | null | null | null | 24Nov/evenOdd.py | universekavish/Python-Training | ccd7dfbc8802662de0e0fc20fe99bb3aae4c6e18 | [
"Apache-2.0"
] | null | null | null | 24Nov/evenOdd.py | universekavish/Python-Training | ccd7dfbc8802662de0e0fc20fe99bb3aae4c6e18 | [
"Apache-2.0"
] | null | null | null | def evenOdd(a) :
if a % 2 == 0 : return 'Even'
return 'ODD'
#MAIN APP STARTS HERE
a = int(input('Enter number to find if it is even or odd: '))
evenOdd = evenOdd(a)
print(a, ' is ', evenOdd) | 24.25 | 61 | 0.634021 | 35 | 194 | 3.514286 | 0.657143 | 0.130081 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013158 | 0.216495 | 194 | 8 | 62 | 24.25 | 0.796053 | 0.103093 | 0 | 0 | 0 | 0 | 0.310345 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.333333 | 0.166667 | 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 |
49b4ba5263668e82e7f629ae6ae797332ee0edf8 | 1,917 | py | Python | imapfw/testing/rascal.py | paralax/imapfw | 740a4fed1a1de28e4134a115a1dd9c6e90e29ec1 | [
"MIT"
] | 492 | 2015-10-12T18:18:48.000Z | 2022-02-14T11:46:46.000Z | imapfw/testing/rascal.py | paralax/imapfw | 740a4fed1a1de28e4134a115a1dd9c6e90e29ec1 | [
"MIT"
] | 21 | 2015-11-10T00:49:07.000Z | 2021-12-30T07:51:25.000Z | imapfw/testing/rascal.py | paralax/imapfw | 740a4fed1a1de28e4134a115a1dd9c6e90e29ec1 | [
"MIT"
] | 40 | 2015-10-15T13:27:31.000Z | 2021-12-30T07:52:24.000Z | # The MIT License (MIT).
# Copyright (c) 2015, Nicolas Sebrecht & contributors.
import unittest
import os
from imapfw.rascal import Rascal
from imapfw.api import types
from imapfw.testing import libcore
class TestRascal(unittest.TestCase):
def setUp(self):
def loadRascal(path):
rascal = Rasc... | 29.953125 | 88 | 0.672405 | 209 | 1,917 | 6.076555 | 0.334928 | 0.049606 | 0.074803 | 0.054331 | 0.401575 | 0.287402 | 0.220472 | 0.173228 | 0.173228 | 0.173228 | 0 | 0.004611 | 0.208138 | 1,917 | 63 | 89 | 30.428571 | 0.832016 | 0.039124 | 0 | 0.142857 | 0 | 0 | 0.058184 | 0 | 0 | 0 | 0 | 0 | 0.214286 | 1 | 0.261905 | false | 0 | 0.166667 | 0 | 0.47619 | 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 |
49b78c65ee36772d92b52ff87877badfeaa1ebf7 | 9,906 | py | Python | modules/pygsm/textsmshandler.py | whanderley/eden | 08ced3be3d52352c54cbd412ed86128fbb68b1d2 | [
"MIT"
] | 205 | 2015-01-20T08:26:09.000Z | 2022-03-27T19:59:33.000Z | modules/pygsm/textsmshandler.py | nursix/eden-asp | e49f46cb6488918f8d5a163dcd5a900cd686978c | [
"MIT"
] | 249 | 2015-02-10T09:56:35.000Z | 2022-03-23T19:54:36.000Z | modules/pygsm/textsmshandler.py | nursix/eden-asp | e49f46cb6488918f8d5a163dcd5a900cd686978c | [
"MIT"
] | 231 | 2015-02-10T09:33:17.000Z | 2022-02-18T19:56:05.000Z | #!/usr/bin/env python
# vim: ai ts=4 sts=4 et sw=4 encoding=utf-8
import errors, traceback, message
import re, datetime, time
import StringIO
import pytz
from smshandler import SmsHandler
class TextSmsHandler(SmsHandler):
SCTS_FMT = "%y/%m/%d,%H:%M:%S"
CMGL_MATCHER=re.compile(r'^\+CMGL: (\d+),"(.+?)","(.+?)",... | 39.783133 | 87 | 0.549667 | 1,230 | 9,906 | 4.361789 | 0.347154 | 0.016775 | 0.010065 | 0.016775 | 0.063187 | 0.046226 | 0.034296 | 0.01342 | 0.01342 | 0.01342 | 0 | 0.009398 | 0.366243 | 9,906 | 248 | 88 | 39.943548 | 0.845174 | 0.362407 | 0 | 0.160714 | 0 | 0 | 0.041232 | 0.010441 | 0 | 0 | 0 | 0.004032 | 0 | 0 | null | null | 0.008929 | 0.044643 | null | null | 0.017857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
49b93d807630c21a7361c1e8c05d7eac2a4a685a | 2,207 | py | Python | cfl/density_estimation_methods/condExpKC.py | eberharf/cfl | 077b99a05824f1371ac47d76dfed6bb160222668 | [
"BSD-3-Clause"
] | 6 | 2021-01-09T04:46:55.000Z | 2022-03-19T22:27:13.000Z | cfl/density_estimation_methods/condExpKC.py | eberharf/cfl | 077b99a05824f1371ac47d76dfed6bb160222668 | [
"BSD-3-Clause"
] | 12 | 2021-01-11T16:32:58.000Z | 2022-03-19T13:21:30.000Z | cfl/density_estimation_methods/condExpKC.py | eberharf/cfl | 077b99a05824f1371ac47d76dfed6bb160222668 | [
"BSD-3-Clause"
] | null | null | null | import os
import numpy as np
import tensorflow as tf
import matplotlib.pyplot as plt
from cfl.density_estimation_methods.condExpBase import CondExpBase
class CondExpKC(CondExpBase):
'''
A child class of CondExpBase that loosely recreates the
model construted in Chalupka 2015 visual bars code.
This m... | 29.426667 | 77 | 0.571364 | 239 | 2,207 | 5.154812 | 0.556485 | 0.028409 | 0.031656 | 0.035714 | 0.042208 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017397 | 0.34889 | 2,207 | 74 | 78 | 29.824324 | 0.839944 | 0.429995 | 0 | 0 | 0 | 0 | 0.114818 | 0 | 0 | 0 | 0 | 0.013514 | 0 | 1 | 0.111111 | false | 0 | 0.185185 | 0 | 0.407407 | 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 |
49b93eab3bade810c2fb1af1abe24722b9ff6fc2 | 2,122 | py | Python | AlgorithmsPractice/python/236_medium_Lowest Common Ancestor of a Binary Tree.py | YangXiaoo/NoteBook | 37056acad7a05b876832f72ac34d3d1a41e0dd22 | [
"CNRI-Python",
"RSA-MD",
"CECILL-B"
] | 58 | 2019-03-03T04:42:23.000Z | 2022-01-13T04:36:31.000Z | AlgorithmsPractice/python/236_medium_Lowest Common Ancestor of a Binary Tree.py | YangXiaoo/NoteBook | 37056acad7a05b876832f72ac34d3d1a41e0dd22 | [
"CNRI-Python",
"RSA-MD",
"CECILL-B"
] | null | null | null | AlgorithmsPractice/python/236_medium_Lowest Common Ancestor of a Binary Tree.py | YangXiaoo/NoteBook | 37056acad7a05b876832f72ac34d3d1a41e0dd22 | [
"CNRI-Python",
"RSA-MD",
"CECILL-B"
] | 28 | 2019-08-11T01:25:00.000Z | 2021-08-22T06:46:06.000Z | '''
Given a binary tree, find the lowest common ancestor (LCA) of two given nodes in the tree.
According to the definition of LCA on Wikipedia: “The lowest common ancestor is defined between two nodes p and q as the lowest node in T that has both p and q as descendants (where we allow a node to be a descendant of itse... | 29.887324 | 229 | 0.589538 | 328 | 2,122 | 3.728659 | 0.320122 | 0.057236 | 0.044971 | 0.013083 | 0.224857 | 0.190515 | 0.190515 | 0.184792 | 0.184792 | 0.184792 | 0 | 0.049046 | 0.3082 | 2,122 | 71 | 230 | 29.887324 | 0.78406 | 0.732328 | 0 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0 | 0 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
49bd2d11cfcc38f47f76c3d5c6c4e7b11b8ce58c | 6,843 | py | Python | scripts/gtf2overlap.py | 861934367/cgat | 77fdc2f819320110ed56b5b61968468f73dfc5cb | [
"BSD-2-Clause",
"BSD-3-Clause"
] | null | null | null | scripts/gtf2overlap.py | 861934367/cgat | 77fdc2f819320110ed56b5b61968468f73dfc5cb | [
"BSD-2-Clause",
"BSD-3-Clause"
] | null | null | null | scripts/gtf2overlap.py | 861934367/cgat | 77fdc2f819320110ed56b5b61968468f73dfc5cb | [
"BSD-2-Clause",
"BSD-3-Clause"
] | 1 | 2019-08-04T22:46:38.000Z | 2019-08-04T22:46:38.000Z | '''gtf2Overlap.py
=============================================
:Author: Nick Ilott
:Release: $Id$
:Date: |today|
:Tags: Python
Purpose
-------
Take two gtf files, merge transcripts, intersect them and draw a venn
diagram of the overlap. This is a crude way if assessing the overlap
between two gtf files. Results in... | 38.22905 | 480 | 0.593307 | 917 | 6,843 | 4.278081 | 0.25518 | 0.014275 | 0.02855 | 0.017334 | 0.270201 | 0.169003 | 0.126179 | 0.090747 | 0.090747 | 0.043334 | 0 | 0.014738 | 0.266257 | 6,843 | 178 | 481 | 38.44382 | 0.76658 | 0.087827 | 0 | 0.039216 | 0 | 0.039216 | 0.245368 | 0.022666 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.078431 | null | null | 0.029412 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
49bdafa3a3c1b0fcd5e5f020d3cf60fbf649a256 | 357 | py | Python | 2017/02/02-python.py | allengarvin/adventofcode | 004719c1721e514e3e8de8e94c25e0f858e96838 | [
"BSD-3-Clause"
] | null | null | null | 2017/02/02-python.py | allengarvin/adventofcode | 004719c1721e514e3e8de8e94c25e0f858e96838 | [
"BSD-3-Clause"
] | null | null | null | 2017/02/02-python.py | allengarvin/adventofcode | 004719c1721e514e3e8de8e94c25e0f858e96838 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/python3
from itertools import combinations
def divisible(arr):
return [y // x for x, y in combinations(sorted(arr), 2) if y % x == 0][0]
if __name__ == "__main__":
lines = [[int(x) for x in l.split()] for l in open("02-input.txt").readlines()]
print(sum([max(l) - min(l) for l in lines]))
... | 29.75 | 83 | 0.621849 | 60 | 357 | 3.566667 | 0.583333 | 0.018692 | 0.046729 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020906 | 0.196078 | 357 | 11 | 84 | 32.454545 | 0.724739 | 0.047619 | 0 | 0 | 0 | 0 | 0.058997 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0.142857 | 0.428571 | 0.285714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
49be08b9a6659811373363eb96c2b8d9532b0b93 | 423 | py | Python | icpc/2018-8-1/G-gen.py | Riteme/test | b511d6616a25f4ae8c3861e2029789b8ee4dcb8d | [
"BSD-Source-Code"
] | 3 | 2018-08-30T09:43:20.000Z | 2019-12-03T04:53:43.000Z | icpc/2018-8-1/G-gen.py | Riteme/test | b511d6616a25f4ae8c3861e2029789b8ee4dcb8d | [
"BSD-Source-Code"
] | null | null | null | icpc/2018-8-1/G-gen.py | Riteme/test | b511d6616a25f4ae8c3861e2029789b8ee4dcb8d | [
"BSD-Source-Code"
] | null | null | null | #!/usr/bin/env pypy
from sys import *
from random import *
n, CMAX = map(int, argv[1:])
r = randint(1, n - 1)
print n, r, randint(1, (n - r) * (n - r + 1) / 2)
L = []
for i in xrange(n):
L.append(randint(1, CMAX - 2))
print " ".join(map(str, L))
for i in xrange(n):
L[i] = randint(L[i] + 1, CMAX - 1)
print " ... | 21.15 | 49 | 0.546099 | 84 | 423 | 2.75 | 0.309524 | 0.034632 | 0.064935 | 0.090909 | 0.52381 | 0.454545 | 0.454545 | 0.38961 | 0.38961 | 0.38961 | 0 | 0.033639 | 0.22695 | 423 | 19 | 50 | 22.263158 | 0.672783 | 0.042553 | 0 | 0.4 | 0 | 0 | 0.007426 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.133333 | null | null | 0.266667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
49bf07ddb13cacbaa747bc238b7669d2d2086873 | 743 | py | Python | my_PP4E/system/commands.py | BeacherHou/Python-_Markdown- | 015d79a02d32f49395b80ca10919b3a09b72c4df | [
"MIT"
] | null | null | null | my_PP4E/system/commands.py | BeacherHou/Python-_Markdown- | 015d79a02d32f49395b80ca10919b3a09b72c4df | [
"MIT"
] | null | null | null | my_PP4E/system/commands.py | BeacherHou/Python-_Markdown- | 015d79a02d32f49395b80ca10919b3a09b72c4df | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from sys import argv
from scan_file import file_scanner
class UnknownCommand(Exception):
"一个“未知命令”异常的类"
pass
def process_file(line_str):
"一个逐行将“*name”和“+name”转换为“Ms.name”和“Mr.name”的函数"
if line_str[0] == '+':
# 剥去开头和末尾的字符:\n
print('Mr.' + line_str[1:-1])
elif line_str[0] == '*':
p... | 16.152174 | 54 | 0.658143 | 114 | 743 | 4.105263 | 0.464912 | 0.149573 | 0.051282 | 0.057692 | 0.089744 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017657 | 0.161507 | 743 | 45 | 55 | 16.511111 | 0.733547 | 0.425303 | 0 | 0.111111 | 0 | 0.055556 | 0.154334 | 0.095137 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0.055556 | 0.111111 | 0 | 0.222222 | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
49bf6ed26a2767543599f1a03c81a689122c7db2 | 267 | py | Python | usr/gre/sensehat/08_compass.py | Bugnon/oc-2018 | 7961de5ba9923512bd50c579c37f1dadf070b692 | [
"MIT"
] | 3 | 2018-09-20T12:16:48.000Z | 2019-06-21T08:32:17.000Z | sensehat/08_compass.py | Bugnon/oc-2018 | 7961de5ba9923512bd50c579c37f1dadf070b692 | [
"MIT"
] | null | null | null | sensehat/08_compass.py | Bugnon/oc-2018 | 7961de5ba9923512bd50c579c37f1dadf070b692 | [
"MIT"
] | 2 | 2018-09-20T11:55:05.000Z | 2019-09-01T19:40:13.000Z | # File: 08_compas.py
# Author: Raphael Holzer
# Date: 26. 11. 2018
from sense_hat import SenseHat
from time import sleep
sense = SenseHat()
while True:
raw = sense.get_compass_raw()
# print(raw)
print('x: {x}, y: {y}, z: {z}'.format(**raw))
sleep(1) | 19.071429 | 49 | 0.640449 | 42 | 267 | 3.97619 | 0.690476 | 0.095808 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051643 | 0.202247 | 267 | 14 | 50 | 19.071429 | 0.732394 | 0.277154 | 0 | 0 | 0 | 0 | 0.116402 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.142857 | 0.285714 | 0 | 0.285714 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
49c4c19aeacbd89d51f28be1d646b259c1b696cc | 3,903 | py | Python | Fingerprinting with Zero-Width Characters/main.py | DazEB2/SimplePyScripts | 1dde0a42ba93fe89609855d6db8af1c63b1ab7cc | [
"CC-BY-4.0"
] | 117 | 2015-12-18T07:18:27.000Z | 2022-03-28T00:25:54.000Z | Fingerprinting with Zero-Width Characters/main.py | DazEB2/SimplePyScripts | 1dde0a42ba93fe89609855d6db8af1c63b1ab7cc | [
"CC-BY-4.0"
] | 8 | 2018-10-03T09:38:46.000Z | 2021-12-13T19:51:09.000Z | Fingerprinting with Zero-Width Characters/main.py | DazEB2/SimplePyScripts | 1dde0a42ba93fe89609855d6db8af1c63b1ab7cc | [
"CC-BY-4.0"
] | 28 | 2016-08-02T17:43:47.000Z | 2022-03-21T08:31:12.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
__author__ = 'ipetrash'
# Fingerprinting with Zero-Width Characters
# zero-width-detection
# https://medium.com/@umpox/be-careful-what-you-copy-invisibly-inserting-usernames-into-text-with-zero-width-characters-18b4e6f17b66
# https://habrahabr.ru/post/352950/
# https:... | 30.732283 | 132 | 0.71586 | 545 | 3,903 | 4.772477 | 0.227523 | 0.204152 | 0.104575 | 0.027682 | 0.453672 | 0.329104 | 0.253749 | 0.192234 | 0.164552 | 0.126874 | 0 | 0.029503 | 0.174994 | 3,903 | 126 | 133 | 30.97619 | 0.778261 | 0.214963 | 0 | 0.171429 | 0 | 0 | 0.073587 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0.057143 | 0.285714 | 0.142857 | 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 |
49de2556509c84e6011a30f9ba3d444aae2df0d5 | 762 | py | Python | Aula 02/[Exercicio 07] Question of proof.py | IsaacPSilva/LetsCode | 64396ee9fd0ad395598c74c3727a614261e5dd50 | [
"MIT"
] | null | null | null | Aula 02/[Exercicio 07] Question of proof.py | IsaacPSilva/LetsCode | 64396ee9fd0ad395598c74c3727a614261e5dd50 | [
"MIT"
] | null | null | null | Aula 02/[Exercicio 07] Question of proof.py | IsaacPSilva/LetsCode | 64396ee9fd0ad395598c74c3727a614261e5dd50 | [
"MIT"
] | null | null | null | '''7. Faça um programa que mostre uma questão de múltipla escolha com
5 opções (letras a, b, c, d, e e). Sabendo a resposta certa, o programa
deve receber a opção do usuário e informar a letra que o usuário
marcou e se a resposta está certa ou errada.'''
print('Multiple choice question.')
print('-'*30)
#Question of p... | 28.222222 | 71 | 0.683727 | 123 | 762 | 4.235772 | 0.552846 | 0.040307 | 0.057582 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012461 | 0.15748 | 762 | 27 | 72 | 28.222222 | 0.799065 | 0.392388 | 0 | 0.176471 | 0 | 0 | 0.393873 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.764706 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
49ebf806a399ccf1a7a71bdb68b2dad78fb50930 | 2,539 | py | Python | src/rolca/core/migrations/0020_extend_author.py | dblenkus/rolca | 033492d9b573b1dc65cb836579dff27c6e06c7a7 | [
"Apache-2.0"
] | null | null | null | src/rolca/core/migrations/0020_extend_author.py | dblenkus/rolca | 033492d9b573b1dc65cb836579dff27c6e06c7a7 | [
"Apache-2.0"
] | 12 | 2016-11-27T18:38:23.000Z | 2017-09-09T16:18:17.000Z | src/rolca/core/migrations/0020_extend_author.py | dblenkus/rolca | 033492d9b573b1dc65cb836579dff27c6e06c7a7 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 3.0rc1 on 2021-01-10 09:50
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('core', '0019_submission... | 35.263889 | 141 | 0.57818 | 243 | 2,539 | 5.90535 | 0.337449 | 0.056446 | 0.112195 | 0.131707 | 0.428571 | 0.428571 | 0.395122 | 0.358188 | 0.326829 | 0.326829 | 0 | 0.019586 | 0.29618 | 2,539 | 71 | 142 | 35.760563 | 0.783436 | 0.018117 | 0 | 0.492308 | 1 | 0 | 0.09434 | 0.010839 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.046154 | 0 | 0.092308 | 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 |
49ed445b04a1ffdcf0fdab0cc41d3ea486dd2c01 | 568 | py | Python | lang/py/pylib/code/cmd/cmd_arguments.py | ch1huizong/learning | 632267634a9fd84a5f5116de09ff1e2681a6cc85 | [
"MIT"
] | 13 | 2020-01-04T07:37:38.000Z | 2021-08-31T05:19:58.000Z | lang/py/pylib/code/cmd/cmd_arguments.py | ch1huizong/learning | 632267634a9fd84a5f5116de09ff1e2681a6cc85 | [
"MIT"
] | 3 | 2020-06-05T22:42:53.000Z | 2020-08-24T07:18:54.000Z | lang/py/pylib/code/cmd/cmd_arguments.py | ch1huizong/learning | 632267634a9fd84a5f5116de09ff1e2681a6cc85 | [
"MIT"
] | 9 | 2020-10-19T04:53:06.000Z | 2021-08-31T05:20:01.000Z | #!/usr/bin/env python
# encoding: utf-8
#
# Copyright (c) 2008 Doug Hellmann All rights reserved.
#
"""
"""
__version__ = "$Id$"
#end_pymotw_header
import cmd
class HelloWorld(cmd.Cmd):
"""Simple command processor example."""
def do_greet(self, person):
"""greet [person]
Greet the named ... | 17.75 | 55 | 0.570423 | 65 | 568 | 4.738462 | 0.723077 | 0.032468 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012563 | 0.299296 | 568 | 32 | 56 | 17.75 | 0.761307 | 0.18838 | 0 | 0 | 0 | 0 | 0.047354 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.071429 | null | null | 0.214286 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.