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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
408378ae2d1cd6ca599deacc2843f436a637b9b1 | 7,472 | py | Python | IRIS/IRIS_formatting.py | Xinglab/IRIS | dc3c172eae9083daf57ce0e71c4fe322ab5cc928 | [
"BSD-2-Clause-FreeBSD"
] | 7 | 2019-11-21T08:42:37.000Z | 2021-08-13T15:49:18.000Z | IRIS/IRIS_formatting.py | Xinglab/IRIS | dc3c172eae9083daf57ce0e71c4fe322ab5cc928 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | IRIS/IRIS_formatting.py | Xinglab/IRIS | dc3c172eae9083daf57ce0e71c4fe322ab5cc928 | [
"BSD-2-Clause-FreeBSD"
] | 2 | 2021-05-08T08:22:38.000Z | 2022-01-20T23:43:03.000Z | import sys, numpy, argparse, os
def loadSamplelist(fin_samples, sample_fin_list, sample_header, sample_name_field, sample_size):
for l in open(fin_samples):
ls=l.strip()
sample_fin_list.append(ls)
for r in open(ls):
rs=map(lambda x:x.split('/')[-sample_name_field].split('.bam')[0],r.strip().strip(',').split(... | 42.454545 | 204 | 0.722564 | 1,196 | 7,472 | 4.233278 | 0.158027 | 0.03733 | 0.053723 | 0.04365 | 0.417737 | 0.364408 | 0.340707 | 0.301995 | 0.301995 | 0.286984 | 0 | 0.008779 | 0.115766 | 7,472 | 175 | 205 | 42.697143 | 0.75753 | 0.034529 | 0 | 0.125 | 0 | 0.006579 | 0.1447 | 0.033158 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.006579 | null | null | 0.065789 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
408784a24cae84367d1864aa02a8ff6e4a8e197a | 1,109 | py | Python | bot/conversation_handlers/stage01.py | gerbigtim/coaching_bot | 5b4ef6e207a5017f7b4274d8238550b4988d0a6e | [
"MIT"
] | null | null | null | bot/conversation_handlers/stage01.py | gerbigtim/coaching_bot | 5b4ef6e207a5017f7b4274d8238550b4988d0a6e | [
"MIT"
] | null | null | null | bot/conversation_handlers/stage01.py | gerbigtim/coaching_bot | 5b4ef6e207a5017f7b4274d8238550b4988d0a6e | [
"MIT"
] | null | null | null | # imports
from telegram.ext import (
CommandHandler,
MessageHandler,
Filters,
ConversationHandler,
)
from handler_functions.start import start
from handler_functions.bio import bio
from handler_functions.gender import gender
from handler_functions.photo import photo, skip_photo
from handler_functions.lo... | 38.241379 | 102 | 0.734896 | 122 | 1,109 | 6.565574 | 0.368852 | 0.082397 | 0.149813 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001087 | 0.170424 | 1,109 | 29 | 103 | 38.241379 | 0.869565 | 0.097385 | 0 | 0 | 0 | 0 | 0.053053 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.307692 | 0 | 0.307692 | 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 |
4087ac882a0e642cb2645d67bfb2e7473130d2e9 | 265 | py | Python | python100days/day03/conversion.py | lanSeFangZhou/pythonbase | f4daa373573b2fc0a59a5eb919d02eddf5914e18 | [
"Apache-2.0"
] | null | null | null | python100days/day03/conversion.py | lanSeFangZhou/pythonbase | f4daa373573b2fc0a59a5eb919d02eddf5914e18 | [
"Apache-2.0"
] | 1 | 2021-06-02T00:58:26.000Z | 2021-06-02T00:58:26.000Z | python100days/day03/conversion.py | lanSeFangZhou/pythonbase | f4daa373573b2fc0a59a5eb919d02eddf5914e18 | [
"Apache-2.0"
] | null | null | null | # 英制单位英寸和公制单位厘米互换
value =float(input('请输入长度:'))
unit =input('请输入单位:')
if unit == 'in' or unit == '英寸':
print('%f英寸 = %f厘米' % (value, value * 2.54))
elif unit == '厘米' or unit == 'cm':
print('%f 厘米 = %f英寸' % (value, value / 2.54))
else:
print('请输入有效的单位') | 26.5 | 49 | 0.558491 | 38 | 265 | 3.894737 | 0.578947 | 0.081081 | 0.148649 | 0.175676 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028302 | 0.2 | 265 | 10 | 50 | 26.5 | 0.669811 | 0.056604 | 0 | 0 | 0 | 0 | 0.204819 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.375 | 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 |
4088dc579c34d53321481174879bd2850ab8f43e | 485 | py | Python | tests/models/test_dtfactory.py | surajsjain/ocean.py | 2e853db94d9aee2a0cf6b3d58f714215b83d917b | [
"Apache-2.0"
] | 4 | 2021-07-05T20:21:41.000Z | 2021-09-02T14:13:26.000Z | tests/models/test_dtfactory.py | surajsjain/ocean.py | 2e853db94d9aee2a0cf6b3d58f714215b83d917b | [
"Apache-2.0"
] | null | null | null | tests/models/test_dtfactory.py | surajsjain/ocean.py | 2e853db94d9aee2a0cf6b3d58f714215b83d917b | [
"Apache-2.0"
] | 1 | 2021-03-25T15:04:12.000Z | 2021-03-25T15:04:12.000Z | from ocean_lib.models.data_token import DataToken
from ocean_lib.models.dtfactory import DTFactory
from ocean_lib.ocean.util import to_base_18
def test1(network, alice_wallet, dtfactory_address):
dtfactory = DTFactory(dtfactory_address)
dt_address = dtfactory.createToken('foo_blob', 'DT1', 'DT1', to_base_18(... | 37.307692 | 108 | 0.781443 | 68 | 485 | 5.294118 | 0.411765 | 0.075 | 0.1 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025822 | 0.121649 | 485 | 12 | 109 | 40.416667 | 0.819249 | 0 | 0 | 0 | 0 | 0 | 0.045361 | 0 | 0 | 0 | 0 | 0 | 0.222222 | 1 | 0.111111 | false | 0 | 0.333333 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
408fa80f7b62ab2142b5ebe87fafa4317281b530 | 6,779 | py | Python | sdk/python/pulumi_aws/acm/get_certificate.py | mehd-io/pulumi-aws | 034629c3fb30dc90db65b196d115df43723df19c | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_aws/acm/get_certificate.py | mehd-io/pulumi-aws | 034629c3fb30dc90db65b196d115df43723df19c | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_aws/acm/get_certificate.py | mehd-io/pulumi-aws | 034629c3fb30dc90db65b196d115df43723df19c | [
"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, Mapping, Optional, Sequence, Union
from .. import _utilitie... | 39.184971 | 260 | 0.651424 | 845 | 6,779 | 5.022485 | 0.227219 | 0.040057 | 0.03016 | 0.05655 | 0.207352 | 0.146795 | 0.128417 | 0.095193 | 0.063619 | 0.020735 | 0 | 0.006459 | 0.246349 | 6,779 | 172 | 261 | 39.412791 | 0.824232 | 0.315828 | 0 | 0.127273 | 1 | 0 | 0.127052 | 0.014841 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.045455 | 0.045455 | 0.254545 | 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 |
40902a024648160483f25a5dd670916ae7cc2c01 | 2,688 | py | Python | Part 3/batch_VS_stochastic.py | m9psy/neural_network_habr_guide | 543b4bc82cfed5d5675b9ecc1cc97c2286a5562a | [
"MIT"
] | 20 | 2016-08-08T12:16:51.000Z | 2022-03-26T19:56:09.000Z | Part 3/batch_VS_stochastic.py | m9psy/neural_network_habr_guide | 543b4bc82cfed5d5675b9ecc1cc97c2286a5562a | [
"MIT"
] | null | null | null | Part 3/batch_VS_stochastic.py | m9psy/neural_network_habr_guide | 543b4bc82cfed5d5675b9ecc1cc97c2286a5562a | [
"MIT"
] | 8 | 2016-08-08T14:22:13.000Z | 2020-05-30T07:05:36.000Z | import numpy as np
import matplotlib.pyplot as plt
TOTAL = 200
STEP = 0.25
EPS = 0.1
INITIAL_THETA = [9, 14]
def func(x):
return 0.2 * x + 3
def generate_sample(total=TOTAL):
x = 0
while x < total * STEP:
yield func(x) + np.random.uniform(-1, 1) * np.random.uniform(2, 8)
x += STEP
def... | 29.866667 | 74 | 0.553943 | 376 | 2,688 | 3.867021 | 0.223404 | 0.013755 | 0.053645 | 0.057772 | 0.514443 | 0.467675 | 0.447043 | 0.447043 | 0.430536 | 0.372765 | 0 | 0.030822 | 0.239583 | 2,688 | 89 | 75 | 30.202247 | 0.680528 | 0.105655 | 0 | 0.4 | 1 | 0 | 0.016277 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.046154 | 0.030769 | 0.184615 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4096eff81f78a7602d75dd243df5e2e64ac51f0d | 429 | py | Python | kalachakra/saraswati/migrations/0004_ritual_people_name.py | tony-mikhailov/Kalachakra | 7a46be7e75bad0500914e5a7c44662c6740ebaa2 | [
"MIT"
] | null | null | null | kalachakra/saraswati/migrations/0004_ritual_people_name.py | tony-mikhailov/Kalachakra | 7a46be7e75bad0500914e5a7c44662c6740ebaa2 | [
"MIT"
] | 3 | 2021-03-19T01:19:04.000Z | 2021-06-04T22:44:35.000Z | kalachakra/saraswati/migrations/0004_ritual_people_name.py | tony-mikhailov/Kalachakra | 7a46be7e75bad0500914e5a7c44662c6740ebaa2 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.6 on 2020-04-05 07:50
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('saraswati', '0003_auto_20200402_1918'),
]
operations = [
migrations.AddField(
model_name='ritual',
name='people_name... | 22.578947 | 88 | 0.617716 | 49 | 429 | 5.285714 | 0.816327 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.107937 | 0.265734 | 429 | 18 | 89 | 23.833333 | 0.714286 | 0.104895 | 0 | 0 | 1 | 0 | 0.128272 | 0.060209 | 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 |
40997199af5c3427ea68e5bd37b9d827653408fe | 14,709 | py | Python | src/toil/jobStores/abstractJobStore.py | adamnovak/toil | 3a81f1114ec7f347e6e7bfd861073d897a9188ec | [
"Apache-2.0"
] | null | null | null | src/toil/jobStores/abstractJobStore.py | adamnovak/toil | 3a81f1114ec7f347e6e7bfd861073d897a9188ec | [
"Apache-2.0"
] | null | null | null | src/toil/jobStores/abstractJobStore.py | adamnovak/toil | 3a81f1114ec7f347e6e7bfd861073d897a9188ec | [
"Apache-2.0"
] | null | null | null | # Copyright (C) 2015 UCSC Computational Genomics Lab
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | 37.143939 | 102 | 0.615066 | 1,595 | 14,709 | 5.634483 | 0.253919 | 0.056081 | 0.067653 | 0.059308 | 0.258039 | 0.212529 | 0.191165 | 0.172916 | 0.161344 | 0.161344 | 0 | 0.002351 | 0.306003 | 14,709 | 395 | 103 | 37.237975 | 0.878037 | 0.441634 | 0 | 0.375 | 0 | 0 | 0.048501 | 0 | 0 | 0 | 0 | 0.002532 | 0 | 1 | 0.210526 | false | 0 | 0.046053 | 0.019737 | 0.322368 | 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 |
409c909153fb2318680014346b00ba060e9d1ace | 699 | py | Python | summary/abs_summarization.py | solarpark7346/sukjulyo | 52caaa7f49294898b055062d7c0b2cb5c5393c24 | [
"MIT"
] | null | null | null | summary/abs_summarization.py | solarpark7346/sukjulyo | 52caaa7f49294898b055062d7c0b2cb5c5393c24 | [
"MIT"
] | null | null | null | summary/abs_summarization.py | solarpark7346/sukjulyo | 52caaa7f49294898b055062d7c0b2cb5c5393c24 | [
"MIT"
] | 3 | 2021-10-31T08:23:44.000Z | 2022-01-13T03:59:22.000Z | import torch
from transformers import PreTrainedTokenizerFast
from transformers import BartForConditionalGeneration
class AbsSummarization():
def __init__(self):
self.tokenizer = PreTrainedTokenizerFast.from_pretrained('gogamza/kobart-summarization')
self.model = BartForConditionalGeneration.from_pretrained('gog... | 38.833333 | 91 | 0.815451 | 81 | 699 | 6.777778 | 0.481481 | 0.118397 | 0.065574 | 0.114754 | 0.233151 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.085837 | 699 | 18 | 92 | 38.833333 | 0.859155 | 0 | 0 | 0 | 0 | 0 | 0.08 | 0.08 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.230769 | 0 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
40a02814845a829728726e29b79dfead7feb2132 | 3,401 | py | Python | PythonFiles_DataScience/demo37_pythonfordatascience.py | mahnooranjum/Programming_DataScience | f7a4215d4615b3f8460c3a1944a585628cf6930d | [
"MIT"
] | null | null | null | PythonFiles_DataScience/demo37_pythonfordatascience.py | mahnooranjum/Programming_DataScience | f7a4215d4615b3f8460c3a1944a585628cf6930d | [
"MIT"
] | null | null | null | PythonFiles_DataScience/demo37_pythonfordatascience.py | mahnooranjum/Programming_DataScience | f7a4215d4615b3f8460c3a1944a585628cf6930d | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Demo37_PythonforDataScience.ipynb
# PYTHON FOR DATA SCIENCE
We will take our python programming skills a step further and process large data in it. Python is an excellent language for deployment. Hence we will be using open source data during the learning process!!
This will make sure we un... | 18.284946 | 259 | 0.643046 | 569 | 3,401 | 3.787346 | 0.377856 | 0.011137 | 0.015313 | 0.011137 | 0.122506 | 0.099768 | 0.099768 | 0.099768 | 0.099768 | 0.067285 | 0 | 0.043904 | 0.18965 | 3,401 | 186 | 260 | 18.284946 | 0.737663 | 0.017054 | 0 | 0.329897 | 0 | 0 | 0.118523 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.123711 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
40a5c13d7bfe8ebdc535f6e928718db2cd73a81f | 623 | py | Python | src/11/11367.py | youngdaLee/Baekjoon | 7d858d557dbbde6603fe4e8af2891c2b0e1940c0 | [
"MIT"
] | 11 | 2020-09-20T15:17:11.000Z | 2022-03-17T12:43:33.000Z | src/11/11367.py | youngdaLee/Baekjoon | 7d858d557dbbde6603fe4e8af2891c2b0e1940c0 | [
"MIT"
] | 3 | 2021-10-30T07:51:36.000Z | 2022-03-09T05:19:23.000Z | src/11/11367.py | youngdaLee/Baekjoon | 7d858d557dbbde6603fe4e8af2891c2b0e1940c0 | [
"MIT"
] | 13 | 2021-01-21T03:19:08.000Z | 2022-03-28T10:44:58.000Z | """
11367. Report Card Time
작성자: xCrypt0r
언어: Python 3
사용 메모리: 29,380 KB
소요 시간: 64 ms
해결 날짜: 2020년 9월 18일
"""
def main():
for _ in range(int(input())):
name, score = input().split()
score = int(score)
if score < 60: grade = 'F'
elif score < 67: grade = 'D'
elif score < 70:... | 20.096774 | 37 | 0.499197 | 87 | 623 | 3.471264 | 0.586207 | 0.208609 | 0.066225 | 0.099338 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.091358 | 0.34992 | 623 | 30 | 38 | 20.766667 | 0.654321 | 0.163724 | 0 | 0 | 0 | 0 | 0.042969 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0 | 0 | 0.0625 | 0.0625 | 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 |
40a99a0c9d4869b889926f6fe54b50b768c6cb98 | 4,160 | py | Python | git_talk/lib/changelog/main.py | cove9988/git-talk | 9f549d8565948a150834bcaa704b55ae15c094c1 | [
"MIT"
] | 5 | 2020-04-06T11:00:27.000Z | 2020-09-30T15:16:56.000Z | git_talk/lib/changelog/main.py | ggdrg/git-talk | 89ed00caa6a426ea9d5fa84cbef588d07aebc1f0 | [
"MIT"
] | 3 | 2020-09-26T02:53:30.000Z | 2020-10-09T01:46:37.000Z | git_talk/lib/changelog/main.py | ggdrg/git-talk | 89ed00caa6a426ea9d5fa84cbef588d07aebc1f0 | [
"MIT"
] | 1 | 2020-09-25T23:41:54.000Z | 2020-09-25T23:41:54.000Z |
import os
import logging
from typing import Optional
import click
from git_talk.lib.changelog import generate_changelog
from git_talk.lib.changelog.presenter import MarkdownPresenter
from git_talk.lib.changelog.repository import GitRepository
# @click.command()
# @click.option(
# "-r",
# ... | 33.821138 | 122 | 0.629567 | 494 | 4,160 | 5.200405 | 0.265182 | 0.072791 | 0.023355 | 0.035812 | 0.207084 | 0.141689 | 0.141689 | 0.085636 | 0.085636 | 0.085636 | 0 | 0 | 0.226683 | 4,160 | 123 | 123 | 33.821138 | 0.79857 | 0.512019 | 0 | 0.129032 | 1 | 0 | 0.053908 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032258 | false | 0 | 0.112903 | 0 | 0.145161 | 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 |
40ac4ec777b7bc387be14a996d46bdf5f0da5291 | 2,416 | py | Python | tests.py | ckelly/pybingmaps | 9214e3a4c2c9e756848fac7c0d76c46dcc64b65d | [
"MIT"
] | null | null | null | tests.py | ckelly/pybingmaps | 9214e3a4c2c9e756848fac7c0d76c46dcc64b65d | [
"MIT"
] | null | null | null | tests.py | ckelly/pybingmaps | 9214e3a4c2c9e756848fac7c0d76c46dcc64b65d | [
"MIT"
] | null | null | null | import unittest
import random
from time import sleep
import os
from bingmaps import *
class BingMapsTestError(Exception):
"""Bing Maps test exception"""
def __init__(self, reason):
self.reason = unicode(reason)
def __str__(self):
return self.reason
# TODO: enter your key for testing
api... | 29.82716 | 78 | 0.598096 | 272 | 2,416 | 5.154412 | 0.400735 | 0.059914 | 0.034237 | 0.025678 | 0.349501 | 0.349501 | 0.349501 | 0.293866 | 0.293866 | 0.293866 | 0 | 0.061921 | 0.284768 | 2,416 | 81 | 79 | 29.82716 | 0.749421 | 0.146109 | 0 | 0.204082 | 0 | 0 | 0.133528 | 0 | 0 | 0 | 0 | 0.012346 | 0.183673 | 1 | 0.102041 | false | 0 | 0.102041 | 0.020408 | 0.265306 | 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 |
40adb16a80ad4faf260352c08db6efc0124c7ac3 | 450 | py | Python | awardapp/migrations/0004_auto_20191024_1607.py | Elisephan/Awards-project | 269bfbe45a35338fab9c71fc7d8de48b61b1580b | [
"MIT"
] | null | null | null | awardapp/migrations/0004_auto_20191024_1607.py | Elisephan/Awards-project | 269bfbe45a35338fab9c71fc7d8de48b61b1580b | [
"MIT"
] | null | null | null | awardapp/migrations/0004_auto_20191024_1607.py | Elisephan/Awards-project | 269bfbe45a35338fab9c71fc7d8de48b61b1580b | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2019-10-24 16:07
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('awardapp', '0003_auto_20191024_1606'),
]
operations = [
migrations.AlterField... | 21.428571 | 51 | 0.617778 | 49 | 450 | 5.469388 | 0.836735 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.106061 | 0.266667 | 450 | 20 | 52 | 22.5 | 0.706061 | 0.146667 | 0 | 0 | 1 | 0 | 0.110236 | 0.060367 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
40b182cffd8ba6689e9b3d11caa57c733d863c65 | 2,646 | py | Python | supervised_learning/analysis.py | gonzalezJohnas/SpeechCommand-recognition | d5351abe45c571a075c24bd04d328e76293f9230 | [
"MIT"
] | null | null | null | supervised_learning/analysis.py | gonzalezJohnas/SpeechCommand-recognition | d5351abe45c571a075c24bd04d328e76293f9230 | [
"MIT"
] | 2 | 2021-04-10T18:12:44.000Z | 2022-02-09T23:36:43.000Z | supervised_learning/analysis.py | gonzalezJohnas/SpeechCommand-recognition | d5351abe45c571a075c24bd04d328e76293f9230 | [
"MIT"
] | null | null | null | from global_utils import *
# target word
TARGET_WORD = 'right'
def display_lowpass_normal(wav, lowpass_signal, fs, label=''):
fig, (axs_raw, axs_low) = plt.subplots(2)
fig.tight_layout(pad=3.0)
fig.set_figheight(FIG_HEIGHT)
fig.set_figwidth(FIG_WIDTH)
# display the plot
axs_raw.plot(wav)
... | 29.730337 | 103 | 0.708239 | 368 | 2,646 | 4.769022 | 0.252717 | 0.082051 | 0.109402 | 0.08661 | 0.378348 | 0.364103 | 0.345299 | 0.259829 | 0.249573 | 0.192593 | 0 | 0.006032 | 0.185563 | 2,646 | 88 | 104 | 30.068182 | 0.808353 | 0.032502 | 0 | 0.214286 | 0 | 0 | 0.115159 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | false | 0.160714 | 0.017857 | 0 | 0.071429 | 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 |
40bab880835594679397baae0088587d6d0269a6 | 2,904 | py | Python | Manipulation of PDF Files/pandf_gui.py | clair513/DIY | 843770590a729c6aabf63367a3ab848e21ab78b9 | [
"MIT"
] | 1 | 2019-12-18T17:28:11.000Z | 2019-12-18T17:28:11.000Z | Manipulation of PDF Files/pandf_gui.py | clair513/DIY | 843770590a729c6aabf63367a3ab848e21ab78b9 | [
"MIT"
] | null | null | null | Manipulation of PDF Files/pandf_gui.py | clair513/DIY | 843770590a729c6aabf63367a3ab848e21ab78b9 | [
"MIT"
] | null | null | null | # Importing required packages:
import pandas as pd
from tkinter import *
from tkinter.ttk import *
root = Tk()
# To visualize input DataFrame:
def generate_plot(gui_root, df, x_axis, y_axis=None,
plot={'type':None, 'hue':None},
aesthetics={'style':'whitegrid', 'palette':'... | 38.72 | 107 | 0.587466 | 384 | 2,904 | 4.377604 | 0.515625 | 0.032124 | 0.014277 | 0.012493 | 0.074955 | 0.028554 | 0.021416 | 0.021416 | 0 | 0 | 0 | 0.100047 | 0.266873 | 2,904 | 74 | 108 | 39.243243 | 0.689526 | 0.219353 | 0 | 0 | 1 | 0 | 0.05855 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022222 | false | 0.022222 | 0.177778 | 0 | 0.2 | 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 |
40bc7b5a674a2b504a89d6769ec57fdcc5fda4af | 357 | py | Python | Chapter03/Activity11/fibonacci.py | vumaasha/python-workshop | 0fbc21c514a8df5bfffb8db926e451232c6c08bf | [
"MIT"
] | null | null | null | Chapter03/Activity11/fibonacci.py | vumaasha/python-workshop | 0fbc21c514a8df5bfffb8db926e451232c6c08bf | [
"MIT"
] | null | null | null | Chapter03/Activity11/fibonacci.py | vumaasha/python-workshop | 0fbc21c514a8df5bfffb8db926e451232c6c08bf | [
"MIT"
] | null | null | null | def fibonacci_iterative(n):
previous = 0
current = 1
for i in range(n - 1):
current_old = current
current = previous + current
previous = current_old
return current
def fibonacci_recursive(n):
if n == 0 or n == 1:
return n
else:
return fibonacci_recursive... | 23.8 | 70 | 0.602241 | 47 | 357 | 4.446809 | 0.404255 | 0.028708 | 0.272727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028689 | 0.316527 | 357 | 14 | 71 | 25.5 | 0.827869 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
40c0c0515519976b7d3396916ff20c4b1d6edd0a | 126 | py | Python | app/domain/__init__.py | emge1/tracardi | 0a4a8a38f0f769464f50d3c1113b798107810810 | [
"MIT"
] | null | null | null | app/domain/__init__.py | emge1/tracardi | 0a4a8a38f0f769464f50d3c1113b798107810810 | [
"MIT"
] | null | null | null | app/domain/__init__.py | emge1/tracardi | 0a4a8a38f0f769464f50d3c1113b798107810810 | [
"MIT"
] | null | null | null | __all__ = [
'session',
'event',
'profile',
'consent',
'segment',
'source',
'rule',
'entity'
]
| 11.454545 | 14 | 0.444444 | 9 | 126 | 5.777778 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.349206 | 126 | 10 | 15 | 12.6 | 0.634146 | 0 | 0 | 0 | 0 | 0 | 0.388889 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
40c712bda8811c80835db84231a9e91605ae40b6 | 675 | py | Python | src/main/management/commands/create_admin_user.py | LokotamaTheMastermind/website-portfolio-django-project | 932d509428d592ee573ff82821b9490c8da9600a | [
"Apache-2.0"
] | null | null | null | src/main/management/commands/create_admin_user.py | LokotamaTheMastermind/website-portfolio-django-project | 932d509428d592ee573ff82821b9490c8da9600a | [
"Apache-2.0"
] | null | null | null | src/main/management/commands/create_admin_user.py | LokotamaTheMastermind/website-portfolio-django-project | 932d509428d592ee573ff82821b9490c8da9600a | [
"Apache-2.0"
] | null | null | null | # polls/management/commands/create_admin_user.py
import sys
import logging
from django.core.management.base import BaseCommand, CommandError
from django.contrib.auth.models import User
from django.conf import settings
class Command(BaseCommand):
help = 'Creates the initial admin user'
def handle(self, *args... | 28.125 | 65 | 0.642963 | 81 | 675 | 5.296296 | 0.641975 | 0.06993 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.253333 | 675 | 23 | 66 | 29.347826 | 0.85119 | 0.068148 | 0 | 0 | 0 | 0 | 0.143541 | 0.039872 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0.055556 | 0.277778 | 0 | 0.444444 | 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 |
40c7452a82c23c82f183d4188dfd8d42aa979d41 | 1,597 | py | Python | app.py | jdanper/incredipaper | 4c2d2dc1e2280f19e01d2e8faea4c9a1ae9b5449 | [
"MIT"
] | null | null | null | app.py | jdanper/incredipaper | 4c2d2dc1e2280f19e01d2e8faea4c9a1ae9b5449 | [
"MIT"
] | null | null | null | app.py | jdanper/incredipaper | 4c2d2dc1e2280f19e01d2e8faea4c9a1ae9b5449 | [
"MIT"
] | null | null | null | import unirest
import json
import requests
import os
import subprocess
import time
import argparse
rootUrl = "https://api.unsplash.com/"
unirest.default_header("Accept", "application/json")
unirest.default_header("Accept-Version", "v1")
unirest.default_header("Authorization","<CLIENT-ID>")
def downloadPic(randomPic_... | 40.948718 | 204 | 0.707577 | 194 | 1,597 | 5.778351 | 0.572165 | 0.037467 | 0.053524 | 0.046387 | 0.119536 | 0.119536 | 0.119536 | 0.119536 | 0.119536 | 0.119536 | 0 | 0.006608 | 0.147151 | 1,597 | 38 | 205 | 42.026316 | 0.816446 | 0.038197 | 0 | 0 | 0 | 0.030303 | 0.375082 | 0.080887 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.212121 | null | null | 0.121212 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
40c934e19e6344f536502d3f0e951d55cb483721 | 5,641 | py | Python | nc/models.py | caktus/Traffic-Stops | 2c6eda9477f1770c5ad1208a1937c3e828fbfb28 | [
"MIT"
] | 1 | 2021-12-10T14:58:11.000Z | 2021-12-10T14:58:11.000Z | nc/models.py | caktus/Traffic-Stops | 2c6eda9477f1770c5ad1208a1937c3e828fbfb28 | [
"MIT"
] | 5 | 2020-08-12T15:20:31.000Z | 2021-06-10T13:43:02.000Z | nc/models.py | caktus/Traffic-Stops | 2c6eda9477f1770c5ad1208a1937c3e828fbfb28 | [
"MIT"
] | null | null | null | from caching.base import CachingManager, CachingMixin
from django.db import models
from tsdata.models import CensusProfile
PURPOSE_CHOICES = (
(1, "Speed Limit Violation"),
(2, "Stop Light/Sign Violation"),
(3, "Driving While Impaired"),
(4, "Safe Movement Violation"),
(5, "Vehicle Equipment Violat... | 34.607362 | 99 | 0.710867 | 651 | 5,641 | 6.015361 | 0.294931 | 0.064351 | 0.089377 | 0.107252 | 0.435649 | 0.280644 | 0.162666 | 0.162666 | 0.143258 | 0.143258 | 0 | 0.010586 | 0.162737 | 5,641 | 162 | 100 | 34.820988 | 0.818548 | 0.013296 | 0 | 0.119048 | 0 | 0 | 0.113269 | 0 | 0 | 0 | 0 | 0.006173 | 0 | 1 | 0.015873 | false | 0.031746 | 0.02381 | 0.007937 | 0.611111 | 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 |
40d5ed5ea76d8603996be2780920650b434417e6 | 9,213 | py | Python | Utils/Matrix.py | valavanisleonidas/Machine_Learning_Toolkit | 4a66e1419189e279a82fa6a7ff7945153308842a | [
"MIT"
] | null | null | null | Utils/Matrix.py | valavanisleonidas/Machine_Learning_Toolkit | 4a66e1419189e279a82fa6a7ff7945153308842a | [
"MIT"
] | null | null | null | Utils/Matrix.py | valavanisleonidas/Machine_Learning_Toolkit | 4a66e1419189e279a82fa6a7ff7945153308842a | [
"MIT"
] | null | null | null | import os
import platform
import numpy
class Matrix:
def __init__(self):
if platform.system() == "Windows":
self.delimiterForPath = "\\"
else:
self.delimiterForPath = "/"
self.labelsDType = numpy.int32
self.imagesDType = numpy.float32
def deleteRows(se... | 43.457547 | 151 | 0.64485 | 945 | 9,213 | 6.201058 | 0.240212 | 0.030034 | 0.009556 | 0.021843 | 0.235666 | 0.221331 | 0.181741 | 0.147782 | 0.131741 | 0.131741 | 0 | 0.02185 | 0.254857 | 9,213 | 211 | 152 | 43.663507 | 0.831755 | 0.242592 | 0 | 0.03252 | 0 | 0 | 0.07364 | 0.013166 | 0 | 0 | 0 | 0 | 0.02439 | 0 | null | null | 0 | 0.065041 | null | null | 0.105691 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
40d7ebe962811bafc69c16d6ae16e6cb4f35d53d | 3,955 | py | Python | python-is-easy/assignments/snowman/main.py | eDyablo/pirple | 08910c7574203f685a0971cba61a54166d805a1c | [
"MIT"
] | null | null | null | python-is-easy/assignments/snowman/main.py | eDyablo/pirple | 08910c7574203f685a0971cba61a54166d805a1c | [
"MIT"
] | null | null | null | python-is-easy/assignments/snowman/main.py | eDyablo/pirple | 08910c7574203f685a0971cba61a54166d805a1c | [
"MIT"
] | null | null | null | '''
Homework assignment for the 'Python is easy' course by Pirple.
Written be Ed Yablonsky.
Snowman(Hangman) game.
'''
from os import (
name as os_name,
system as system_call,
)
from os.path import (
abspath,
dirname,
join as join_path,
)
'''
Screen displays game output
'''
class Screen:
de... | 23.682635 | 81 | 0.551707 | 501 | 3,955 | 4.225549 | 0.241517 | 0.037789 | 0.045347 | 0.031176 | 0.117619 | 0.064714 | 0 | 0 | 0 | 0 | 0 | 0.006767 | 0.327434 | 3,955 | 166 | 82 | 23.825301 | 0.789098 | 0.028319 | 0 | 0.137931 | 0 | 0 | 0.030414 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.206897 | false | 0 | 0.017241 | 0.043103 | 0.353448 | 0.008621 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
40dc4792e5546b69652c162537bffd53c76ae2d8 | 3,949 | py | Python | python/fix-page-breaks.py | utcompling/GeoAnnotate | a864106d9595e8426339f1d34432a54e04cee66a | [
"Apache-2.0"
] | 9 | 2015-11-19T06:03:08.000Z | 2021-02-16T19:14:42.000Z | python/fix-page-breaks.py | utcompling/GeoAnnotate | a864106d9595e8426339f1d34432a54e04cee66a | [
"Apache-2.0"
] | null | null | null | python/fix-page-breaks.py | utcompling/GeoAnnotate | a864106d9595e8426339f1d34432a54e04cee66a | [
"Apache-2.0"
] | 1 | 2018-10-09T23:12:34.000Z | 2018-10-09T23:12:34.000Z | #!/usr/bin/python
import argparse
import re
parser = argparse.ArgumentParser(description='Fix page breaks in War of The Rebellion text')
parser.add_argument('files', nargs='*',
help='Files to process')
args = parser.parse_args()
for file in args.files:
outfile = open(file + ".joined-pagebreak", ... | 36.564815 | 171 | 0.52469 | 584 | 3,949 | 3.542808 | 0.207192 | 0.136298 | 0.047849 | 0.0232 | 0.464476 | 0.42581 | 0.318028 | 0.200097 | 0.19043 | 0.182214 | 0 | 0.013527 | 0.251203 | 3,949 | 107 | 172 | 36.906542 | 0.686168 | 0.041023 | 0 | 0.273684 | 0 | 0.021053 | 0.306085 | 0.035979 | 0 | 0 | 0 | 0 | 0.010526 | 0 | null | null | 0 | 0.021053 | null | null | 0.052632 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
40e031fd64128f14855fedd41208af0c66f89410 | 886 | py | Python | urls.py | cartologic/cartoview_graduated_styler | f3dc6b0d48dc95bdd7e68d148a5182a4e259dbf3 | [
"BSD-2-Clause"
] | null | null | null | urls.py | cartologic/cartoview_graduated_styler | f3dc6b0d48dc95bdd7e68d148a5182a4e259dbf3 | [
"BSD-2-Clause"
] | 16 | 2017-08-06T09:49:01.000Z | 2021-09-01T08:40:58.000Z | urls.py | cartologic/cartoview_graduated_styler | f3dc6b0d48dc95bdd7e68d148a5182a4e259dbf3 | [
"BSD-2-Clause"
] | null | null | null | # from django.conf.urls import patterns, url, include
# from django.views.generic import TemplateView
# from . import views, APP_NAME
#
# urlpatterns = patterns('',
# url(r'^$', views.index, name='%s.index' % APP_NAME),
# )
from django.urls import path, re_path, include
from . import views, APP_NAME
from .api impo... | 34.076923 | 110 | 0.705418 | 128 | 886 | 4.703125 | 0.273438 | 0.081395 | 0.034884 | 0.059801 | 0.212625 | 0.093023 | 0.093023 | 0.093023 | 0 | 0 | 0 | 0 | 0.123025 | 886 | 25 | 111 | 35.44 | 0.774775 | 0.240406 | 0 | 0 | 0 | 0 | 0.233083 | 0.157895 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.307692 | 0 | 0.307692 | 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 |
40e13f8b874a94920da4e07d42899e93081c3e2f | 4,284 | py | Python | graalpython/com.oracle.graal.python.parser.antlr/postprocess.py | transposit/graalpython | adadf5f211cc67a14bb3aca7c61219513d036b13 | [
"UPL-1.0",
"Apache-2.0",
"OpenSSL"
] | 1 | 2019-05-28T13:04:32.000Z | 2019-05-28T13:04:32.000Z | graalpython/com.oracle.graal.python.parser.antlr/postprocess.py | transposit/graalpython | adadf5f211cc67a14bb3aca7c61219513d036b13 | [
"UPL-1.0",
"Apache-2.0",
"OpenSSL"
] | null | null | null | graalpython/com.oracle.graal.python.parser.antlr/postprocess.py | transposit/graalpython | adadf5f211cc67a14bb3aca7c61219513d036b13 | [
"UPL-1.0",
"Apache-2.0",
"OpenSSL"
] | null | null | null | # Copyright (c) 2018, 2019, Oracle and/or its affiliates. All rights reserved.
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# The Universal Permissive License (UPL), Version 1.0
#
# Subject to the condition set forth below, permission is hereby granted to any
# person obtaining a copy of this softw... | 37.911504 | 88 | 0.722222 | 616 | 4,284 | 4.978896 | 0.345779 | 0.068145 | 0.022824 | 0.009782 | 0.374959 | 0.358005 | 0.339746 | 0.339746 | 0.30388 | 0.278448 | 0 | 0.007011 | 0.20098 | 4,284 | 112 | 89 | 38.25 | 0.888986 | 0.448413 | 0 | 0 | 0 | 0 | 0.607143 | 0.038296 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.033333 | 0.05 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
40e6bbe29a59bd4a98298179d233b2bfddb4c1e0 | 971 | py | Python | groups/views.py | MAKENTNU/web | 7a5b512bf4c087d1561cdb623d7df4b3d04811a2 | [
"MIT"
] | 10 | 2017-11-25T01:47:20.000Z | 2020-03-24T18:28:24.000Z | groups/views.py | MAKENTNU/web | 7a5b512bf4c087d1561cdb623d7df4b3d04811a2 | [
"MIT"
] | 319 | 2017-11-16T09:56:03.000Z | 2022-03-28T00:24:37.000Z | groups/views.py | MAKENTNU/web | 7a5b512bf4c087d1561cdb623d7df4b3d04811a2 | [
"MIT"
] | 6 | 2017-11-12T14:04:08.000Z | 2021-03-10T09:41:18.000Z | from django.contrib.auth.mixins import PermissionRequiredMixin
from django.urls import reverse_lazy
from django.views.generic import DetailView, ListView, UpdateView
from .models import Committee
class CommitteeList(ListView):
model = Committee
template_name = 'groups/committee_list.html'
context_object_... | 30.34375 | 65 | 0.77137 | 98 | 971 | 7.438776 | 0.438776 | 0.076818 | 0.090535 | 0.106996 | 0.379973 | 0.294925 | 0.145405 | 0 | 0 | 0 | 0 | 0 | 0.142122 | 971 | 31 | 66 | 31.322581 | 0.87515 | 0 | 0 | 0.363636 | 0 | 0 | 0.205973 | 0.130793 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.181818 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
40ea5c5e0176d43f5d51fa89b969ce72cc0fce56 | 1,219 | py | Python | model/commit.py | uniaim-event-team/pullre-kun | 60ee86c399d34254c82974a5debcdcb7d332f2a1 | [
"MIT"
] | 3 | 2020-03-24T08:06:37.000Z | 2020-03-29T08:53:55.000Z | model/commit.py | uniaim-event-team/pullre-kun | 60ee86c399d34254c82974a5debcdcb7d332f2a1 | [
"MIT"
] | 7 | 2020-03-23T12:36:01.000Z | 2020-04-11T08:14:06.000Z | model/commit.py | uniaim-event-team/pullre-kun | 60ee86c399d34254c82974a5debcdcb7d332f2a1 | [
"MIT"
] | null | null | null | from sqlalchemy import (
BigInteger,
Column,
DateTime,
Text,
String,
Integer,
)
from sqlalchemy.sql.functions import current_timestamp
from model.base import BaseObject
class Commit(BaseObject):
__tablename__ = 'commits'
id = Column(BigInteger, primary_key=True, autoincrement=True)
... | 31.25641 | 108 | 0.721903 | 139 | 1,219 | 6.158273 | 0.366906 | 0.130841 | 0.074766 | 0.107477 | 0.446262 | 0.446262 | 0.446262 | 0.446262 | 0.446262 | 0.446262 | 0 | 0.013807 | 0.168171 | 1,219 | 38 | 109 | 32.078947 | 0.830375 | 0 | 0 | 0.193548 | 0 | 0 | 0.010664 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.096774 | 0 | 0.774194 | 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 |
40eb080a05a597358c0a6ee395b1cbd8baf803e7 | 7,211 | py | Python | corefacility/core/test/models/test_application_access.py | serik1987/corefacility | 78d84e19403361e83ef562e738473849f9133bef | [
"RSA-MD"
] | null | null | null | corefacility/core/test/models/test_application_access.py | serik1987/corefacility | 78d84e19403361e83ef562e738473849f9133bef | [
"RSA-MD"
] | null | null | null | corefacility/core/test/models/test_application_access.py | serik1987/corefacility | 78d84e19403361e83ef562e738473849f9133bef | [
"RSA-MD"
] | null | null | null | import os
import random
import string
import base64
from django.utils import timezone
from django.contrib.auth.hashers import make_password, check_password
from django.test import TestCase
from parameterized import parameterized
from core.models import Module, EntryPoint, ExternalAuthorizationSession, User
AUTHORIZA... | 43.969512 | 113 | 0.627791 | 779 | 7,211 | 5.593068 | 0.215661 | 0.05233 | 0.026394 | 0.022034 | 0.202662 | 0.152169 | 0.116364 | 0.106725 | 0.084462 | 0.084462 | 0 | 0.004146 | 0.26418 | 7,211 | 163 | 114 | 44.239264 | 0.817 | 0 | 0 | 0.118881 | 0 | 0 | 0.1488 | 0.037027 | 0 | 0 | 0 | 0 | 0.083916 | 1 | 0.062937 | false | 0.090909 | 0.06993 | 0 | 0.174825 | 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 |
40f1379ab73e0f4b4e9297a1caebe96d0365e7e2 | 577 | py | Python | app/route/stats/route.py | LifeLaboratory/finopolis_backend | 56aac8e0b92193c627b68f3d029f6f804d001db3 | [
"MIT"
] | null | null | null | app/route/stats/route.py | LifeLaboratory/finopolis_backend | 56aac8e0b92193c627b68f3d029f6f804d001db3 | [
"MIT"
] | null | null | null | app/route/stats/route.py | LifeLaboratory/finopolis_backend | 56aac8e0b92193c627b68f3d029f6f804d001db3 | [
"MIT"
] | null | null | null | # coding=utf-8
from app.route.stats.processor import *
from app.api.base.base_router import BaseRouter
from app.api.base import base_name as names
class Stats(BaseRouter):
def __init__(self):
super().__init__()
self.args = [names.face, names.post, names.socnet, names.likes, names.views, names.com... | 25.086957 | 100 | 0.646447 | 79 | 577 | 4.518987 | 0.481013 | 0.058824 | 0.056022 | 0.078431 | 0.145658 | 0.145658 | 0 | 0 | 0 | 0 | 0 | 0.002283 | 0.240901 | 577 | 22 | 101 | 26.227273 | 0.812785 | 0.020797 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0 | 0.1875 | 0 | 0.5625 | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
40f5e193e0cc75def4b2ba8e4e082e5183a4bea7 | 4,748 | py | Python | tests/test_api_gateway/test_common/test_exceptions.py | Clariteia/api_gateway_common | e68095f31091699fc6cc4537bd6acf97a8dc6c3e | [
"MIT"
] | 3 | 2021-05-14T08:13:09.000Z | 2021-05-26T11:25:35.000Z | tests/test_api_gateway/test_common/test_exceptions.py | Clariteia/api_gateway_common | e68095f31091699fc6cc4537bd6acf97a8dc6c3e | [
"MIT"
] | 27 | 2021-05-13T08:43:19.000Z | 2021-08-24T17:19:36.000Z | tests/test_api_gateway/test_common/test_exceptions.py | Clariteia/api_gateway_common | e68095f31091699fc6cc4537bd6acf97a8dc6c3e | [
"MIT"
] | null | null | null | """
Copyright (C) 2021 Clariteia SL
This file is part of minos framework.
Minos framework can not be copied and/or distributed without the express permission of Clariteia SL.
"""
import unittest
from minos.api_gateway.common import (
EmptyMinosModelSequenceException,
MinosAttributeValidationException,
Mi... | 39.566667 | 117 | 0.771272 | 377 | 4,748 | 9.525199 | 0.289125 | 0.044834 | 0.090226 | 0.140351 | 0.205792 | 0.082985 | 0.057366 | 0 | 0 | 0 | 0 | 0.00299 | 0.154802 | 4,748 | 119 | 118 | 39.89916 | 0.891851 | 0.036226 | 0 | 0.082353 | 0 | 0 | 0.067863 | 0.035026 | 0 | 0 | 0 | 0 | 0.270588 | 1 | 0.270588 | false | 0.011765 | 0.023529 | 0 | 0.305882 | 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 |
40f7a744294465f0d9fa2d8e7fd481a7d36370d7 | 977 | py | Python | native_prophet.py | 1143048123/cddh | 52d91f02359af659343b8c4ad4f2ba349de20852 | [
"MIT"
] | 177 | 2018-01-05T01:46:07.000Z | 2018-03-09T05:32:45.000Z | native_prophet.py | 1143048123/cddh | 52d91f02359af659343b8c4ad4f2ba349de20852 | [
"MIT"
] | 15 | 2018-01-05T03:28:38.000Z | 2018-01-17T03:04:06.000Z | native_prophet.py | 1143048123/cddh | 52d91f02359af659343b8c4ad4f2ba349de20852 | [
"MIT"
] | 55 | 2018-01-05T05:24:55.000Z | 2018-01-25T11:53:38.000Z | # coding: utf-8
# quote from kmaiya/HQAutomator
# 谷歌搜索部分原版搬运,未做修改
import time
import json
import requests
import webbrowser
questions = []
def get_answer():
resp = requests.get('http://htpmsg.jiecaojingxuan.com/msg/current',timeout=4).text
resp_dict = json.loads(resp)
if resp_dict['msg']... | 25.710526 | 87 | 0.58956 | 118 | 977 | 4.771186 | 0.559322 | 0.056838 | 0.056838 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006906 | 0.258956 | 977 | 37 | 88 | 26.405405 | 0.769337 | 0.060389 | 0 | 0.076923 | 0 | 0 | 0.195205 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.153846 | null | null | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
40f9e62c7e463cdddcd04524566bd56b8cb59940 | 1,407 | py | Python | src/sntk/kernels/ntk.py | gear/s-ntk | 3cd72cef4c941941750e03820c9c2850b81d529e | [
"MIT"
] | null | null | null | src/sntk/kernels/ntk.py | gear/s-ntk | 3cd72cef4c941941750e03820c9c2850b81d529e | [
"MIT"
] | null | null | null | src/sntk/kernels/ntk.py | gear/s-ntk | 3cd72cef4c941941750e03820c9c2850b81d529e | [
"MIT"
] | null | null | null | import math
import numpy as np
# return an array K of size (d_max, d_max, N, N), K[i][j] is kernel value of depth i + 1 with first j layers fixed
def kernel_value_batch(X, d_max):
K = np.zeros((d_max, d_max, X.shape[0], X.shape[0]))
for fix_dep in range(d_max):
S = np.matmul(X, X.T)
H = np.ze... | 40.2 | 115 | 0.509595 | 276 | 1,407 | 2.485507 | 0.206522 | 0.069971 | 0.040816 | 0.081633 | 0.814869 | 0.69242 | 0.634111 | 0.634111 | 0.581633 | 0.581633 | 0 | 0.027225 | 0.321251 | 1,407 | 35 | 116 | 40.2 | 0.691099 | 0.132907 | 0 | 0.645161 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064516 | false | 0 | 0.064516 | 0 | 0.193548 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 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 |
dc01dc4bc345b863361dbfcbff2946a74c676b49 | 1,261 | py | Python | modules/nmap_script/address_info.py | naimkowshik/reyna-eye | f729ec964e586ae3f63ff29fd524f7aed3748a74 | [
"MIT"
] | 4 | 2021-04-22T19:19:13.000Z | 2022-02-10T09:26:58.000Z | modules/nmap_script/address_info.py | naimkowshik/reyna-eye | f729ec964e586ae3f63ff29fd524f7aed3748a74 | [
"MIT"
] | null | null | null | modules/nmap_script/address_info.py | naimkowshik/reyna-eye | f729ec964e586ae3f63ff29fd524f7aed3748a74 | [
"MIT"
] | 1 | 2022-02-03T19:29:46.000Z | 2022-02-03T19:29:46.000Z | import subprocess
import sys
import time
import os
#############################
# COLORING YOUR SHELL #
#############################
R = "\033[1;31m" #
B = "\033[1;34m" #
Y = "\033[1;33m" #
G = "\033[1;32m" #
RS = "\033[0m" #
W = "\033[1;37m" ... | 32.333333 | 120 | 0.57732 | 166 | 1,261 | 4.427711 | 0.524096 | 0.176871 | 0.114286 | 0.04898 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.062887 | 0.230769 | 1,261 | 38 | 121 | 33.184211 | 0.686598 | 0.015067 | 0 | 0.066667 | 0 | 0 | 0.66813 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.133333 | 0 | 0.133333 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
dc0d2dd1628c5437389a9030a61c8c8847b09265 | 1,331 | py | Python | examples/python/fling.py | arminfriedl/fling | 909606a9960fede8951436748c20a9600819b93a | [
"MIT"
] | null | null | null | examples/python/fling.py | arminfriedl/fling | 909606a9960fede8951436748c20a9600819b93a | [
"MIT"
] | null | null | null | examples/python/fling.py | arminfriedl/fling | 909606a9960fede8951436748c20a9600819b93a | [
"MIT"
] | null | null | null | import flingclient as fc
from flingclient.rest import ApiException
from datetime import datetime
# Per default the dockerized fling service runs on localhost:3000 In case you
# run your own instance, change the base url
configuration = fc.Configuration(host="http://localhost:3000")
# Every call, with the exception of... | 40.333333 | 86 | 0.75432 | 189 | 1,331 | 5.174603 | 0.502646 | 0.03681 | 0.042945 | 0.067485 | 0.149284 | 0.149284 | 0.149284 | 0.149284 | 0.149284 | 0.149284 | 0 | 0.014324 | 0.160781 | 1,331 | 32 | 87 | 41.59375 | 0.861235 | 0.299775 | 0 | 0.105263 | 0 | 0 | 0.101842 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0.210526 | 0.157895 | 0 | 0.210526 | 0.052632 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
dc0e5e9f0de144528e9e2fd2507b7d3b024c5594 | 1,408 | py | Python | tests/TestPythonLibDir/RemotePkcs1Signer/__init__.py | q351941406/isign-1 | c24ce94fa88f15ebc6cc2dbda6852c6d17094fc6 | [
"Apache-2.0"
] | 83 | 2019-08-20T09:34:27.000Z | 2022-03-24T13:42:36.000Z | tests/TestPythonLibDir/RemotePkcs1Signer/__init__.py | q351941406/isign-1 | c24ce94fa88f15ebc6cc2dbda6852c6d17094fc6 | [
"Apache-2.0"
] | 15 | 2019-08-20T06:34:16.000Z | 2020-05-17T21:22:52.000Z | tests/TestPythonLibDir/RemotePkcs1Signer/__init__.py | q351941406/isign-1 | c24ce94fa88f15ebc6cc2dbda6852c6d17094fc6 | [
"Apache-2.0"
] | 6 | 2020-02-09T09:35:17.000Z | 2022-03-19T18:43:17.000Z | import base64
import requests
class RemotePkcs1Signer(object):
""" Client-side Signer subclass, that calls the Signing Service over HTTP to sign things """
# standard headers for request
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json'
}
def __init__(s... | 32.744186 | 106 | 0.599432 | 157 | 1,408 | 5.267516 | 0.477707 | 0.058041 | 0.026602 | 0.036276 | 0.065296 | 0.065296 | 0 | 0 | 0 | 0 | 0 | 0.020222 | 0.297585 | 1,408 | 42 | 107 | 33.52381 | 0.815976 | 0.019886 | 0 | 0 | 0 | 0 | 0.129032 | 0.02621 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.074074 | 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 |
dc19c0faf717f2a11500ab0d47cd0b71aa1f7557 | 4,638 | py | Python | musicscore/musicxml/types/complextypes/notations.py | alexgorji/music_score | b4176da52295361f3436826903485c5cb8054c5e | [
"MIT"
] | 2 | 2020-06-22T13:33:28.000Z | 2020-12-30T15:09:00.000Z | musicscore/musicxml/types/complextypes/notations.py | alexgorji/music_score | b4176da52295361f3436826903485c5cb8054c5e | [
"MIT"
] | 37 | 2020-02-18T12:15:00.000Z | 2021-12-13T20:01:14.000Z | musicscore/musicxml/types/complextypes/notations.py | alexgorji/music_score | b4176da52295361f3436826903485c5cb8054c5e | [
"MIT"
] | null | null | null | from musicscore.dtd.dtd import Sequence, GroupReference, Choice, Element
from musicscore.musicxml.attributes.optional_unique_id import OptionalUniqueId
from musicscore.musicxml.attributes.printobject import PrintObject
from musicscore.musicxml.groups.common import Editorial
from musicscore.musicxml.elements.xml_element... | 30.715232 | 118 | 0.684994 | 461 | 4,638 | 6.605206 | 0.223427 | 0.091954 | 0.108374 | 0.087356 | 0.434483 | 0.293596 | 0.293596 | 0.219704 | 0.208867 | 0.208867 | 0 | 0.000798 | 0.189737 | 4,638 | 150 | 119 | 30.92 | 0.809473 | 0.067055 | 0 | 0.277778 | 0 | 0 | 0.029307 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.155556 | false | 0 | 0.177778 | 0 | 0.577778 | 0.011111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
90541de92a1d97d772f070e495cb4dccfca0eef7 | 1,416 | py | Python | dev/libs.py | karimwitani/webscraping | 58d4b2587d039fcea567db2caf86bbddb4e0b96f | [
"MIT"
] | null | null | null | dev/libs.py | karimwitani/webscraping | 58d4b2587d039fcea567db2caf86bbddb4e0b96f | [
"MIT"
] | null | null | null | dev/libs.py | karimwitani/webscraping | 58d4b2587d039fcea567db2caf86bbddb4e0b96f | [
"MIT"
] | null | null | null | import selenium
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.common.exceptions import TimeoutException
def browser_init():
option = webdriver.Chro... | 40.457143 | 136 | 0.738701 | 179 | 1,416 | 5.703911 | 0.407821 | 0.058766 | 0.06856 | 0.078355 | 0.32713 | 0.32713 | 0.32713 | 0.32713 | 0.29383 | 0.29383 | 0 | 0.011962 | 0.114407 | 1,416 | 35 | 137 | 40.457143 | 0.802233 | 0.045904 | 0 | 0 | 0 | 0 | 0.192137 | 0.117211 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0.136364 | 0.272727 | 0 | 0.409091 | 0.045455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
905515ca4421e0d997a1e7e93a11455f5f918cff | 380 | py | Python | setup.py | dwastberg/osmuf | 0cef4e87401b3fc2d344d7e067b4d9ada25848a4 | [
"MIT"
] | null | null | null | setup.py | dwastberg/osmuf | 0cef4e87401b3fc2d344d7e067b4d9ada25848a4 | [
"MIT"
] | null | null | null | setup.py | dwastberg/osmuf | 0cef4e87401b3fc2d344d7e067b4d9ada25848a4 | [
"MIT"
] | null | null | null | from setuptools import setup
setup(name='osmuf',
version='0.1',
install_requires=[
"seaborn",
],
description='Urban Form analysis from OpenStreetMap',
url='http://github.com/atelierlibre/osmuf',
author='AtelierLibre',
author_email='mail@atelierlibre.org',
lic... | 25.333333 | 59 | 0.615789 | 39 | 380 | 5.923077 | 0.820513 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006969 | 0.244737 | 380 | 14 | 60 | 27.142857 | 0.797909 | 0 | 0 | 0 | 0 | 0 | 0.342105 | 0.055263 | 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 |
90572919b03e5c9195f95e3b9733b72ece7106bb | 5,623 | py | Python | depimpact/tests/test_functions.py | NazBen/dep-impact | 284e72bccfb6309110df5191dfae3c0a93ce813b | [
"MIT"
] | null | null | null | depimpact/tests/test_functions.py | NazBen/dep-impact | 284e72bccfb6309110df5191dfae3c0a93ce813b | [
"MIT"
] | null | null | null | depimpact/tests/test_functions.py | NazBen/dep-impact | 284e72bccfb6309110df5191dfae3c0a93ce813b | [
"MIT"
] | null | null | null | import numpy as np
import openturns as ot
def func_overflow(X, model=1, h_power=0.6):
"""Overflow model function.
Parameters
----------
X : np.ndarray, shape : N x 8
Input variables
- x1 : Flow,
- x2 : Krisler Coefficient,
- x3 : Zv, etc...
model : bool, option... | 24.554585 | 123 | 0.486395 | 831 | 5,623 | 3.23586 | 0.194946 | 0.012272 | 0.040164 | 0.056898 | 0.500186 | 0.489029 | 0.476757 | 0.454816 | 0.454816 | 0.435478 | 0 | 0.046309 | 0.347146 | 5,623 | 229 | 124 | 24.554585 | 0.685917 | 0.002312 | 0 | 0.443548 | 0 | 0 | 0.049939 | 0 | 0 | 0 | 0 | 0 | 0.032258 | 0 | null | null | 0 | 0.016129 | 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 |
9059540a6a1df436a316a8b4d0bf19c43271fcb4 | 1,699 | py | Python | app/main/forms.py | ingabire1/blog | 5fcee6027cee9fbdcd94057123862bd146a16e98 | [
"Unlicense"
] | null | null | null | app/main/forms.py | ingabire1/blog | 5fcee6027cee9fbdcd94057123862bd146a16e98 | [
"Unlicense"
] | null | null | null | app/main/forms.py | ingabire1/blog | 5fcee6027cee9fbdcd94057123862bd146a16e98 | [
"Unlicense"
] | null | null | null |
from flask_wtf import FlaskForm
from wtforms import StringField,TextAreaField,SubmitField
from wtforms.validators import Required
class ReviewForm(FlaskForm):
title = StringField('Review title',validators=[Required()])
review = TextAreaField('Movie review', validators=[Required()])
submit = SubmitField('... | 42.475 | 94 | 0.712772 | 162 | 1,699 | 7.438272 | 0.333333 | 0.224066 | 0.057261 | 0.087137 | 0.291286 | 0.225726 | 0.149378 | 0.149378 | 0.149378 | 0.149378 | 0 | 0 | 0.140082 | 1,699 | 39 | 95 | 43.564103 | 0.824778 | 0.268393 | 0 | 0.16 | 0 | 0 | 0.12571 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.12 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
905fb1174dc9f76a043ce3432db2989539fb3eae | 1,212 | py | Python | surface/ex_surface02.py | orbingol/NURBS-Python_Examples | c99d8cd3d20e7523694ce62f72760b260582fa11 | [
"MIT"
] | 48 | 2017-12-14T09:54:48.000Z | 2020-03-30T13:34:44.000Z | surface/ex_surface02.py | GabrielJie/NURBS-Python_Examples | c99d8cd3d20e7523694ce62f72760b260582fa11 | [
"MIT"
] | 7 | 2020-05-27T04:27:24.000Z | 2021-05-25T16:11:39.000Z | surface/ex_surface02.py | GabrielJie/NURBS-Python_Examples | c99d8cd3d20e7523694ce62f72760b260582fa11 | [
"MIT"
] | 37 | 2017-10-14T08:11:11.000Z | 2020-05-04T02:51:58.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Examples for the NURBS-Python Package
Released under MIT License
Developed by Onur Rauf Bingol (c) 2016-2017
"""
import os
from geomdl import BSpline
from geomdl import utilities
from geomdl import exchange
from geomdl import operations
from geomdl.visuali... | 22.867925 | 80 | 0.763201 | 186 | 1,212 | 4.854839 | 0.516129 | 0.055371 | 0.070875 | 0.059801 | 0.081949 | 0.081949 | 0 | 0 | 0 | 0 | 0 | 0.022201 | 0.145215 | 1,212 | 52 | 81 | 23.307692 | 0.849421 | 0.366337 | 0 | 0 | 0 | 0 | 0.02171 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.045455 | 0.318182 | 0 | 0.318182 | 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 |
90600f2b374617aa571df4d29f498ce0b363ef8b | 1,380 | bzl | Python | dev/bazel/deps/micromkl.bzl | cmsxbc/oneDAL | eeb8523285907dc359c84ca4894579d5d1d9f57e | [
"Apache-2.0"
] | 169 | 2020-03-30T09:13:05.000Z | 2022-03-15T11:12:36.000Z | dev/bazel/deps/micromkl.bzl | cmsxbc/oneDAL | eeb8523285907dc359c84ca4894579d5d1d9f57e | [
"Apache-2.0"
] | 1,198 | 2020-03-24T17:26:18.000Z | 2022-03-31T08:06:15.000Z | dev/bazel/deps/micromkl.bzl | cmsxbc/oneDAL | eeb8523285907dc359c84ca4894579d5d1d9f57e | [
"Apache-2.0"
] | 75 | 2020-03-30T11:39:58.000Z | 2022-03-26T05:16:20.000Z | #===============================================================================
# Copyright 2020-2021 Intel Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apa... | 33.658537 | 80 | 0.603623 | 165 | 1,380 | 4.939394 | 0.563636 | 0.07362 | 0.083436 | 0.069939 | 0.266258 | 0.186503 | 0.186503 | 0.107975 | 0 | 0 | 0 | 0.017528 | 0.173188 | 1,380 | 40 | 81 | 34.5 | 0.696757 | 0.52029 | 0 | 0.454545 | 0 | 0 | 0.451314 | 0.401855 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9061aefc06f55a6c43c18d036ea605173b84260a | 3,580 | py | Python | opennsa/protocols/nsi2/bindings/p2pservices.py | jmacauley/opennsa | 853c0fc8e065e74815cbc3f769939f64ac6aadeb | [
"BSD-3-Clause"
] | null | null | null | opennsa/protocols/nsi2/bindings/p2pservices.py | jmacauley/opennsa | 853c0fc8e065e74815cbc3f769939f64ac6aadeb | [
"BSD-3-Clause"
] | null | null | null | opennsa/protocols/nsi2/bindings/p2pservices.py | jmacauley/opennsa | 853c0fc8e065e74815cbc3f769939f64ac6aadeb | [
"BSD-3-Clause"
] | null | null | null | ## Generated by pyxsdgen
from xml.etree import ElementTree as ET
# types
class OrderedStpType(object):
def __init__(self, order, stp):
self.order = order # int
self.stp = stp # StpIdType -> string
@classmethod
def build(self, element):
return OrderedStpType(
ele... | 33.773585 | 134 | 0.613966 | 397 | 3,580 | 5.465995 | 0.219144 | 0.04424 | 0.047926 | 0.023502 | 0.174654 | 0.151152 | 0.063594 | 0.063594 | 0.04424 | 0 | 0 | 0.006528 | 0.272626 | 3,580 | 105 | 135 | 34.095238 | 0.826805 | 0.047486 | 0 | 0.151899 | 1 | 0 | 0.089491 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.139241 | false | 0 | 0.012658 | 0.037975 | 0.291139 | 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 |
9066b9980c0b3869cc716e1c22a3fe141c968868 | 1,705 | py | Python | myApps/test_web.py | Rocket-hodgepodge/NewsWeb | 7835b6ae4e754eb96f3f0d5983b2421c9464fee3 | [
"BSD-3-Clause"
] | null | null | null | myApps/test_web.py | Rocket-hodgepodge/NewsWeb | 7835b6ae4e754eb96f3f0d5983b2421c9464fee3 | [
"BSD-3-Clause"
] | null | null | null | myApps/test_web.py | Rocket-hodgepodge/NewsWeb | 7835b6ae4e754eb96f3f0d5983b2421c9464fee3 | [
"BSD-3-Clause"
] | 2 | 2018-07-04T01:43:36.000Z | 2018-07-04T06:12:47.000Z | from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
import unittest
class NewVisitorTest(unittest.TestCase):
def setUp(self):
self.timeout = 40
self.browser = webdriv... | 31.574074 | 89 | 0.775367 | 242 | 1,705 | 5.07438 | 0.371901 | 0.062704 | 0.063518 | 0.07329 | 0.281759 | 0.281759 | 0.2443 | 0.2443 | 0.2443 | 0.180782 | 0 | 0.015727 | 0.104985 | 1,705 | 53 | 90 | 32.169811 | 0.788991 | 0.06393 | 0 | 0 | 0 | 0 | 0.120527 | 0.065913 | 0 | 0 | 0 | 0 | 0.052632 | 1 | 0.078947 | false | 0.105263 | 0.131579 | 0 | 0.236842 | 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 |
906e5ccc6b995d3e3569837e29fff36deedc118c | 1,174 | py | Python | optimal_buy_gdax/history.py | coulterj/optimal-buy-gdax | cdebd2af2cf54bdef34c0ff64a4a731e540bdcdb | [
"Unlicense"
] | null | null | null | optimal_buy_gdax/history.py | coulterj/optimal-buy-gdax | cdebd2af2cf54bdef34c0ff64a4a731e540bdcdb | [
"Unlicense"
] | null | null | null | optimal_buy_gdax/history.py | coulterj/optimal-buy-gdax | cdebd2af2cf54bdef34c0ff64a4a731e540bdcdb | [
"Unlicense"
] | null | null | null | #!/usr/bin/env python3
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy import Column, String, Float, DateTime, Integer
from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker
Base = declarative_base()
class Order(Base):
__tablename__ = 'orders'
id = Column(Intege... | 24.458333 | 63 | 0.721465 | 139 | 1,174 | 5.863309 | 0.359712 | 0.132515 | 0.068712 | 0.080982 | 0.222086 | 0.222086 | 0.222086 | 0.222086 | 0.222086 | 0.161963 | 0 | 0.001048 | 0.187394 | 1,174 | 47 | 64 | 24.978723 | 0.853249 | 0.017888 | 0 | 0.235294 | 0 | 0 | 0.021701 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.029412 | false | 0 | 0.117647 | 0 | 0.852941 | 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 |
907488d52d48e24b4d69fb2af57f6618dc2c3ce3 | 2,836 | py | Python | Calculator.py | KunalKatiyar/Calculator | 74044d32b08738ef288ccfae6bb322e6ab05f608 | [
"MIT"
] | null | null | null | Calculator.py | KunalKatiyar/Calculator | 74044d32b08738ef288ccfae6bb322e6ab05f608 | [
"MIT"
] | null | null | null | Calculator.py | KunalKatiyar/Calculator | 74044d32b08738ef288ccfae6bb322e6ab05f608 | [
"MIT"
] | null | null | null | import sys
from PyQt5.QtWidgets import QApplication, QWidget, QPushButton, QHBoxLayout, QGroupBox, QDialog, QVBoxLayout, QGridLayout,QMainWindow, QApplication, QWidget, QPushButton, QAction, QLineEdit, QMessageBox
from PyQt5.QtGui import QIcon
from PyQt5.QtCore import pyqtSlot
class App(QDialog):
def __ini... | 35.45 | 203 | 0.605783 | 292 | 2,836 | 5.811644 | 0.335616 | 0.141426 | 0.245138 | 0.063642 | 0.172658 | 0.034178 | 0 | 0 | 0 | 0 | 0 | 0.037655 | 0.260226 | 2,836 | 80 | 204 | 35.45 | 0.771211 | 0.142807 | 0 | 0 | 0 | 0 | 0.034645 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.075472 | false | 0 | 0.075472 | 0 | 0.169811 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
907638a652d8418902c98ee951701aa5ff8b7dc1 | 2,279 | py | Python | src/py/proto/v3/diff/UniversalDiff_pb2.py | zifter/conf_protobuf | 1a8639d6f2a2535ece30dde840c99ba8261b5d7d | [
"MIT"
] | null | null | null | src/py/proto/v3/diff/UniversalDiff_pb2.py | zifter/conf_protobuf | 1a8639d6f2a2535ece30dde840c99ba8261b5d7d | [
"MIT"
] | null | null | null | src/py/proto/v3/diff/UniversalDiff_pb2.py | zifter/conf_protobuf | 1a8639d6f2a2535ece30dde840c99ba8261b5d7d | [
"MIT"
] | null | null | null | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: v3/diff/UniversalDiff.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflec... | 31.219178 | 203 | 0.777095 | 283 | 2,279 | 5.957597 | 0.388693 | 0.032028 | 0.067616 | 0.071174 | 0.130486 | 0.058126 | 0.042705 | 0 | 0 | 0 | 0 | 0.031065 | 0.110136 | 2,279 | 72 | 204 | 31.652778 | 0.800296 | 0.098728 | 0 | 0.113208 | 1 | 0.018868 | 0.183594 | 0.140137 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.132075 | 0 | 0.132075 | 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 |
907746020f32a1228d26593b0db9dbd5b8907c24 | 2,087 | py | Python | dataviz/euvotes.py | Udzu/pudzu | 5a0302830b052fc54feba891eb7bf634957a9d90 | [
"MIT"
] | 119 | 2017-07-22T15:02:30.000Z | 2021-08-02T10:42:59.000Z | dataviz/euvotes.py | Udzu/pudzu | 5a0302830b052fc54feba891eb7bf634957a9d90 | [
"MIT"
] | null | null | null | dataviz/euvotes.py | Udzu/pudzu | 5a0302830b052fc54feba891eb7bf634957a9d90 | [
"MIT"
] | 28 | 2017-08-04T14:28:41.000Z | 2019-11-27T23:46:14.000Z | from pudzu.charts import *
from pudzu.sandbox.bamboo import *
import seaborn as sns
# generate map
df = pd.read_csv("datasets/euvotes.csv").set_index('country')
palette = tmap(RGBA, sns.cubehelix_palette(11, start=0.2, rot=-0.75))
ranges = [20000000,10000000,5000000,2000000,1000000,500000,200000,100000,0]
def voteco... | 44.404255 | 148 | 0.684236 | 351 | 2,087 | 4 | 0.387464 | 0.083333 | 0.074074 | 0.029915 | 0.10114 | 0.071225 | 0.031339 | 0.031339 | 0 | 0 | 0 | 0.075791 | 0.121227 | 2,087 | 46 | 149 | 45.369565 | 0.689749 | 0.009104 | 0 | 0 | 1 | 0 | 0.17046 | 0.011138 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.088235 | 0.058824 | 0.352941 | 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 |
9082f22e3410593d0f53f454a62bd2d756d1a9be | 554 | py | Python | rsbroker/urls.py | land-pack/RsBroker | d556fda09582e0540cac0eabc163a984e8fc1c44 | [
"Apache-2.0"
] | null | null | null | rsbroker/urls.py | land-pack/RsBroker | d556fda09582e0540cac0eabc163a984e8fc1c44 | [
"Apache-2.0"
] | null | null | null | rsbroker/urls.py | land-pack/RsBroker | d556fda09582e0540cac0eabc163a984e8fc1c44 | [
"Apache-2.0"
] | null | null | null | from __future__ import absolute_import
import os
from tornado.web import StaticFileHandler
from rsbroker.views import websocket
from rsbroker.views.error import NotFoundErrorHandler
settings = dict(
template_path=os.path.join(os.path.dirname(__file__), "templates"),
static_path=os.path.join(os.path.dirname(... | 20.518519 | 71 | 0.714801 | 63 | 554 | 6.047619 | 0.460317 | 0.062992 | 0.089239 | 0.073491 | 0.16273 | 0.16273 | 0.16273 | 0.16273 | 0 | 0 | 0 | 0 | 0.16426 | 554 | 26 | 72 | 21.307692 | 0.822894 | 0.075812 | 0 | 0 | 0 | 0 | 0.071006 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.357143 | 0 | 0.357143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
9089cafc79c7a1e8e0abc38c3cabc190f618f305 | 1,648 | py | Python | wpa-psk/wpa-psk.py | ranisalt/rsaur | 8b8e8f596a35e8aff53ccff0fc941deacdc885a4 | [
"MIT"
] | null | null | null | wpa-psk/wpa-psk.py | ranisalt/rsaur | 8b8e8f596a35e8aff53ccff0fc941deacdc885a4 | [
"MIT"
] | null | null | null | wpa-psk/wpa-psk.py | ranisalt/rsaur | 8b8e8f596a35e8aff53ccff0fc941deacdc885a4 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import sys
from argparse import ArgumentParser
from getpass import getpass
from hashlib import pbkdf2_hmac
from signal import signal, SIGINT
def die(*_, **__):
sys.exit()
signal = signal(SIGINT, die)
iwd = """[Security]
PreSharedKey={psk}"""
supplicant = """network={{
ssid={ssid}
... | 28.912281 | 182 | 0.703277 | 227 | 1,648 | 5.052863 | 0.462555 | 0.061029 | 0.044464 | 0.027899 | 0.036617 | 0.036617 | 0 | 0 | 0 | 0 | 0 | 0.018841 | 0.162621 | 1,648 | 56 | 183 | 29.428571 | 0.812319 | 0.012743 | 0 | 0.085106 | 0 | 0.042553 | 0.369619 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021277 | false | 0.340426 | 0.106383 | 0 | 0.12766 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
908b0f1eabec4449e380288689a4979deb9e601d | 424 | py | Python | easyml/mainsite/migrations/0015_auto_20181014_1837.py | evancasey1/EasyML | 69f0c246cb7e1d6f7167eb504c30693088e703fd | [
"MIT"
] | null | null | null | easyml/mainsite/migrations/0015_auto_20181014_1837.py | evancasey1/EasyML | 69f0c246cb7e1d6f7167eb504c30693088e703fd | [
"MIT"
] | null | null | null | easyml/mainsite/migrations/0015_auto_20181014_1837.py | evancasey1/EasyML | 69f0c246cb7e1d6f7167eb504c30693088e703fd | [
"MIT"
] | 1 | 2020-10-25T08:14:33.000Z | 2020-10-25T08:14:33.000Z | # Generated by Django 2.1.2 on 2018-10-14 18:37
from django.db import migrations
import picklefield.fields
class Migration(migrations.Migration):
dependencies = [
('mainsite', '0014_mlmodel_type_num'),
]
operations = [
migrations.AlterField(
model_name='mlmodel',
... | 21.2 | 72 | 0.629717 | 44 | 424 | 5.977273 | 0.772727 | 0.129278 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.060897 | 0.264151 | 424 | 19 | 73 | 22.315789 | 0.782051 | 0.106132 | 0 | 0 | 1 | 0 | 0.106101 | 0.055703 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9092b9fc5566c9c58a04dd93c04224cbbceb0b64 | 1,911 | py | Python | sdl2/blendmode.py | namelivia/py-sdl2 | c1bdf43501224d5f0a125dbce70198100ec7be82 | [
"CC0-1.0"
] | 222 | 2017-08-19T00:51:59.000Z | 2022-02-05T19:39:33.000Z | sdl2/blendmode.py | namelivia/py-sdl2 | c1bdf43501224d5f0a125dbce70198100ec7be82 | [
"CC0-1.0"
] | 103 | 2017-08-20T17:13:05.000Z | 2022-02-05T20:20:01.000Z | sdl2/blendmode.py | namelivia/py-sdl2 | c1bdf43501224d5f0a125dbce70198100ec7be82 | [
"CC0-1.0"
] | 54 | 2017-08-20T17:13:00.000Z | 2022-01-14T23:51:13.000Z | from ctypes import c_int
from .dll import _bind
__all__ = [
# Enums
"SDL_BlendMode",
"SDL_BLENDMODE_NONE", "SDL_BLENDMODE_BLEND", "SDL_BLENDMODE_ADD",
"SDL_BLENDMODE_MOD", "SDL_BLENDMODE_MUL", "SDL_BLENDMODE_INVALID",
"SDL_BlendOperation",
"SDL_BLENDOPERATION_ADD", "SDL_BLENDOPERATION_SUBTRACT... | 31.327869 | 204 | 0.791209 | 236 | 1,911 | 5.79661 | 0.220339 | 0.266082 | 0.124269 | 0.128655 | 0.258041 | 0.243421 | 0.067982 | 0 | 0 | 0 | 0 | 0.048289 | 0.143904 | 1,911 | 60 | 205 | 31.85 | 0.787897 | 0.007849 | 0 | 0 | 0 | 0 | 0.329107 | 0.235077 | 0 | 0 | 0.055468 | 0 | 0 | 1 | 0 | false | 0 | 0.046512 | 0 | 0.046512 | 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 |
909acbc6fed7077e7d615e7ea5b4fd6ba9538288 | 954 | py | Python | CSS/spiraleFile.py | NsiLycee/premiere | 2814a21860e227e2db01ea201b1c4d99723a0562 | [
"Unlicense"
] | null | null | null | CSS/spiraleFile.py | NsiLycee/premiere | 2814a21860e227e2db01ea201b1c4d99723a0562 | [
"Unlicense"
] | null | null | null | CSS/spiraleFile.py | NsiLycee/premiere | 2814a21860e227e2db01ea201b1c4d99723a0562 | [
"Unlicense"
] | null | null | null | '''
Auteur : Joël Dendaletche
But : tracé une figure géométrique à l'aide de la bibliothèque Turtle
Le projet utilise l'objet file pour itérer le calcul de chaque nouveau point
Les coordonnées des points d'un polygone sont placés dans une file
l'algorithme consiste à calcule... | 45.428571 | 121 | 0.697065 | 149 | 954 | 4.463087 | 0.563758 | 0.030075 | 0.039098 | 0.06015 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01532 | 0.247379 | 954 | 21 | 122 | 45.428571 | 0.910864 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.142857 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
909acc24e11a5c6671af7463f6c79ae6bbfe3286 | 20,420 | py | Python | network/modules/spconv_unet.py | alexisgroshenry/NPM3D_DSNet | d1a2ec071728dcb3c733ecdee3a27f4534b67f33 | [
"MIT"
] | null | null | null | network/modules/spconv_unet.py | alexisgroshenry/NPM3D_DSNet | d1a2ec071728dcb3c733ecdee3a27f4534b67f33 | [
"MIT"
] | null | null | null | network/modules/spconv_unet.py | alexisgroshenry/NPM3D_DSNet | d1a2ec071728dcb3c733ecdee3a27f4534b67f33 | [
"MIT"
] | null | null | null | # -*- coding:utf-8 -*-
# author: Xinge
# @file: spconv_unet.py
# @time: 2020/06/22 15:01
import time
import numpy as np
import spconv
import torch
import torch.nn.functional as F
from torch import nn
def conv3x3(in_planes, out_planes, stride=1, indice_key=None):
return spconv.SubMConv3d(in_planes, out_planes, ker... | 41.588595 | 145 | 0.645495 | 2,725 | 20,420 | 4.615046 | 0.09211 | 0.072281 | 0.032204 | 0.038645 | 0.760814 | 0.708969 | 0.681218 | 0.64806 | 0.626749 | 0.596056 | 0 | 0.043211 | 0.235015 | 20,420 | 490 | 146 | 41.673469 | 0.761859 | 0.166552 | 0 | 0.503356 | 0 | 0 | 0.016119 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.077181 | false | 0 | 0.02349 | 0.02349 | 0.181208 | 0.003356 | 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 |
909b464aebeffe98a01bbc3d1080af46d979ef36 | 5,690 | py | Python | culturebank/models.py | Anaphory/culturebank | 9a408cb25fafcb14bbdd96278bebfbc898d32d00 | [
"Apache-2.0"
] | null | null | null | culturebank/models.py | Anaphory/culturebank | 9a408cb25fafcb14bbdd96278bebfbc898d32d00 | [
"Apache-2.0"
] | null | null | null | culturebank/models.py | Anaphory/culturebank | 9a408cb25fafcb14bbdd96278bebfbc898d32d00 | [
"Apache-2.0"
] | null | null | null | from zope.interface import implementer
from sqlalchemy import (
Column,
String,
Integer,
Float,
ForeignKey,
CheckConstraint,
)
from sqlalchemy.orm import relationship, backref
from clld import interfaces
from clld.db.meta import Base, CustomModelMixin
from clld.db.versioned import Versioned
fro... | 38.187919 | 100 | 0.727065 | 610 | 5,690 | 6.644262 | 0.229508 | 0.11547 | 0.066617 | 0.080188 | 0.288675 | 0.252159 | 0.171971 | 0.131014 | 0.131014 | 0.131014 | 0 | 0.011446 | 0.170826 | 5,690 | 148 | 101 | 38.445946 | 0.847605 | 0.01529 | 0 | 0.175573 | 0 | 0 | 0.097639 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.068702 | 0 | 0.770992 | 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 |
909bb64980267ae4a08d2d7a1f0a4d2581917497 | 1,579 | py | Python | sandbox/graph-size.py | maarten1983/khmer | 417aaa57f0659685c01887a6910de1c08d0a73e5 | [
"BSD-3-Clause"
] | 1 | 2019-11-02T15:12:44.000Z | 2019-11-02T15:12:44.000Z | sandbox/graph-size.py | ibest/khmer | fbc307abd64363b329745709846d77444ce0c025 | [
"BSD-3-Clause"
] | null | null | null | sandbox/graph-size.py | ibest/khmer | fbc307abd64363b329745709846d77444ce0c025 | [
"BSD-3-Clause"
] | null | null | null | #! /usr/bin/env python2
#
# This file is part of khmer, http://github.com/ged-lab/khmer/, and is
# Copyright (C) Michigan State University, 2009-2013. It is licensed under
# the three-clause BSD license; see doc/LICENSE.txt.
# Contact: khmer-project@idyll.org
#
import khmer
import sys
import screed
import os.path
from ... | 23.567164 | 76 | 0.664345 | 212 | 1,579 | 4.801887 | 0.537736 | 0.051081 | 0.031434 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01937 | 0.215326 | 1,579 | 66 | 77 | 23.924242 | 0.80226 | 0.157061 | 0 | 0 | 0 | 0 | 0.135671 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.125 | null | null | 0.275 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
90a3bca5369f1537b322d1766cb9151ec9a0af0c | 3,181 | py | Python | models.py | sheldonjinqi/CIS680_BicycleGAN | a1d32ad9ba39c61e07838f5b6391b6d2ab0765c4 | [
"MIT"
] | null | null | null | models.py | sheldonjinqi/CIS680_BicycleGAN | a1d32ad9ba39c61e07838f5b6391b6d2ab0765c4 | [
"MIT"
] | null | null | null | models.py | sheldonjinqi/CIS680_BicycleGAN | a1d32ad9ba39c61e07838f5b6391b6d2ab0765c4 | [
"MIT"
] | null | null | null | from torchvision.models import resnet18
import torch.nn.functional as F
import torch.nn as nn
import numpy as np
import torch
import pdb
##############################
# Encoder
##############################
class Encoder(nn.Module):
def __init__(self, latent_dim):
super(Encoder, self).__init__()
... | 30.586538 | 106 | 0.563345 | 388 | 3,181 | 4.494845 | 0.371134 | 0.030963 | 0.018922 | 0.024083 | 0.200115 | 0.138761 | 0.138761 | 0.102064 | 0.087156 | 0 | 0 | 0.011353 | 0.307765 | 3,181 | 103 | 107 | 30.883495 | 0.780654 | 0.185476 | 0 | 0.0625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009709 | 0 | 1 | 0.1875 | false | 0 | 0.1875 | 0.0625 | 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 |
90a450c6bb8a1da60bd0c096428df1ba30321115 | 1,565 | py | Python | scripts/slave/recipe_modules/v8/gclient_config.py | bopopescu/chromium-build | f8e42c70146c1b668421ee6358dc550a955770a3 | [
"BSD-3-Clause"
] | null | null | null | scripts/slave/recipe_modules/v8/gclient_config.py | bopopescu/chromium-build | f8e42c70146c1b668421ee6358dc550a955770a3 | [
"BSD-3-Clause"
] | null | null | null | scripts/slave/recipe_modules/v8/gclient_config.py | bopopescu/chromium-build | f8e42c70146c1b668421ee6358dc550a955770a3 | [
"BSD-3-Clause"
] | 1 | 2020-07-22T09:16:32.000Z | 2020-07-22T09:16:32.000Z | # Copyright 2013 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.
import DEPS
CONFIG_CTX = DEPS['gclient'].CONFIG_CTX
ChromiumGitURL = DEPS['gclient'].config.ChromiumGitURL
@CONFIG_CTX()
def v8(c):
soln = c.solutions.ad... | 30.686275 | 79 | 0.709904 | 229 | 1,565 | 4.707424 | 0.39738 | 0.058442 | 0.016698 | 0.041744 | 0.306122 | 0.189239 | 0.135436 | 0.06308 | 0.06308 | 0 | 0 | 0.014064 | 0.136741 | 1,565 | 50 | 80 | 31.3 | 0.783864 | 0.212141 | 0 | 0.25 | 0 | 0 | 0.252855 | 0.051387 | 0 | 0 | 0 | 0.02 | 0 | 1 | 0.15625 | false | 0 | 0.03125 | 0 | 0.1875 | 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 |
90a5135d7b2c7cb2a555e6f77c99a227c0fdaa11 | 2,386 | py | Python | podcast/download.py | jessstringham/podcasts | 04de6cc5cd7d27ee6ab56c0c7950526b606ec201 | [
"MIT"
] | 1 | 2018-05-08T09:26:45.000Z | 2018-05-08T09:26:45.000Z | podcast/download.py | jessstringham/podcasts | 04de6cc5cd7d27ee6ab56c0c7950526b606ec201 | [
"MIT"
] | null | null | null | podcast/download.py | jessstringham/podcasts | 04de6cc5cd7d27ee6ab56c0c7950526b606ec201 | [
"MIT"
] | 1 | 2020-12-13T18:04:00.000Z | 2020-12-13T18:04:00.000Z | import typing
import urllib.error
import urllib.request
from podcast.files import download_location
from podcast.info import build_info_content
from podcast.info import InfoContent
from podcast.models import Channel
from podcast.models import get_podcast_audio_link
from podcast.models import NewStatus
from podcast.mod... | 33.605634 | 79 | 0.723386 | 302 | 2,386 | 5.569536 | 0.390728 | 0.058859 | 0.060642 | 0.082045 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.209556 | 2,386 | 70 | 80 | 34.085714 | 0.891835 | 0.228835 | 0 | 0 | 0 | 0 | 0.008206 | 0 | 0 | 0 | 0 | 0.014286 | 0 | 1 | 0.090909 | false | 0 | 0.272727 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
90a821eadcd600fc9ceb85786e62d6539b2c7ae3 | 9,603 | py | Python | tools/netconf.py | jpfluger/radiucal | 42666478baaa93da05fdc5ab8f3b53df68b993e6 | [
"BSD-3-Clause"
] | 5 | 2019-12-15T09:47:02.000Z | 2022-03-16T03:18:55.000Z | tools/netconf.py | jpfluger/radiucal | 42666478baaa93da05fdc5ab8f3b53df68b993e6 | [
"BSD-3-Clause"
] | null | null | null | tools/netconf.py | jpfluger/radiucal | 42666478baaa93da05fdc5ab8f3b53df68b993e6 | [
"BSD-3-Clause"
] | 1 | 2021-03-27T08:11:53.000Z | 2021-03-27T08:11:53.000Z | #!/usr/bin/python
"""composes the config from user definitions."""
import argparse
import os
import users
import users.__config__
import importlib
import csv
# file indicators
IND_DELIM = "_"
USER_INDICATOR = "user" + IND_DELIM
VLAN_INDICATOR = "vlan" + IND_DELIM
AUTH_PHASE_ONE = "PEAP"
AUTH_PHASE_TWO = "MSCHAPV2"
c... | 30.389241 | 79 | 0.53754 | 1,229 | 9,603 | 4.042311 | 0.184703 | 0.0157 | 0.01087 | 0.008857 | 0.12037 | 0.055153 | 0.023752 | 0.011675 | 0 | 0 | 0 | 0.007927 | 0.330001 | 9,603 | 315 | 80 | 30.485714 | 0.764221 | 0.07456 | 0 | 0.103734 | 0 | 0 | 0.078472 | 0.009723 | 0 | 0 | 0 | 0 | 0 | 1 | 0.107884 | false | 0.070539 | 0.029046 | 0 | 0.165975 | 0.074689 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
90a9c694ad7055aeb7e214346c75ba596c28d602 | 3,673 | py | Python | twitter_scrapper.py | juanlucruz/SportEventLocator | 1ac8236f9fdd60917b9a7ee6bb6ca1fa5f6fa71e | [
"Apache-2.0"
] | null | null | null | twitter_scrapper.py | juanlucruz/SportEventLocator | 1ac8236f9fdd60917b9a7ee6bb6ca1fa5f6fa71e | [
"Apache-2.0"
] | null | null | null | twitter_scrapper.py | juanlucruz/SportEventLocator | 1ac8236f9fdd60917b9a7ee6bb6ca1fa5f6fa71e | [
"Apache-2.0"
] | null | null | null | # Import the Twython class
from twython import Twython, TwythonStreamer
import json
# import pandas as pd
import csv
import datetime
def process_tweet(tweet):
# Filter out unwanted data
d = {}
d['hashtags'] = [hashtag['text'] for hashtag in tweet['entities']['hashtags']]
try:
for key in {
... | 33.390909 | 88 | 0.58263 | 429 | 3,673 | 4.773893 | 0.354312 | 0.031738 | 0.021484 | 0.014648 | 0.066406 | 0.03418 | 0 | 0 | 0 | 0 | 0 | 0.012327 | 0.271168 | 3,673 | 109 | 89 | 33.697248 | 0.752708 | 0.34985 | 0 | 0.113208 | 0 | 0 | 0.243601 | 0.054181 | 0 | 0 | 0 | 0 | 0 | 1 | 0.113208 | false | 0.113208 | 0.075472 | 0 | 0.226415 | 0.037736 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
90aa48820bf97867a9816268e697f65885c29466 | 389 | py | Python | tools/bin/filter_cassandra_attributes.py | fruch/scylla-tools-java | 3fdce3d357b64402799742f61d3cc33b6f8fcfbb | [
"Apache-2.0"
] | null | null | null | tools/bin/filter_cassandra_attributes.py | fruch/scylla-tools-java | 3fdce3d357b64402799742f61d3cc33b6f8fcfbb | [
"Apache-2.0"
] | null | null | null | tools/bin/filter_cassandra_attributes.py | fruch/scylla-tools-java | 3fdce3d357b64402799742f61d3cc33b6f8fcfbb | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python2
import sys;
from yaml import load, dump, load_all
from cassandra_attributes import *
def main():
attributes = dict()
for i in range(1, len(sys.argv)):
attributes.update(load(open(sys.argv[i], 'r')))
print dump(dict(filter(lambda (a, b): a in cassandra_attributes, attributes.... | 25.933333 | 109 | 0.637532 | 54 | 389 | 4.388889 | 0.62963 | 0.160338 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006579 | 0.218509 | 389 | 14 | 110 | 27.785714 | 0.773026 | 0.053985 | 0 | 0 | 0 | 0 | 0.024523 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.3 | 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 |
90ab4c6f6273b660fe6334ebc9b6fb8fce97ce8e | 868 | py | Python | 2020/day04/day4_part1.py | dstjacques/AdventOfCode | 75bfb46a01487430d552ea827f0cf8ae3368f686 | [
"MIT"
] | null | null | null | 2020/day04/day4_part1.py | dstjacques/AdventOfCode | 75bfb46a01487430d552ea827f0cf8ae3368f686 | [
"MIT"
] | null | null | null | 2020/day04/day4_part1.py | dstjacques/AdventOfCode | 75bfb46a01487430d552ea827f0cf8ae3368f686 | [
"MIT"
] | null | null | null | input = """
ecl:gry pid:860033327 eyr:2020 hcl:#fffffd
byr:1937 iyr:2017 cid:147 hgt:183cm
iyr:2013 ecl:amb cid:350 eyr:2023 pid:028048884
hcl:#cfa07d byr:1929
hcl:#ae17e1 iyr:2013
eyr:2024
ecl:brn pid:760753108 byr:1931
hgt:179cm
hcl:#cfa07d eyr:2025 pid:166559648
iyr:2011 ecl:brn hgt:59in
"""
def validate(passpor... | 25.529412 | 122 | 0.615207 | 128 | 868 | 4.148438 | 0.445313 | 0.079096 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157576 | 0.239631 | 868 | 34 | 123 | 25.529412 | 0.64697 | 0 | 0 | 0 | 0 | 0 | 0.363636 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0.172414 | 0 | 0 | 0.103448 | 0.034483 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
90af463579adb14e899b746a24caf95a35d80b1b | 3,017 | py | Python | flumine/markets/market.py | jsphon/flumine | bd5cacf9793d53a99595fe4694aeb9b8d2962abb | [
"MIT"
] | null | null | null | flumine/markets/market.py | jsphon/flumine | bd5cacf9793d53a99595fe4694aeb9b8d2962abb | [
"MIT"
] | null | null | null | flumine/markets/market.py | jsphon/flumine | bd5cacf9793d53a99595fe4694aeb9b8d2962abb | [
"MIT"
] | null | null | null | import datetime
import logging
from typing import Optional
from betfairlightweight.resources.bettingresources import MarketBook, MarketCatalogue
from .blotter import Blotter
from ..events import events
logger = logging.getLogger(__name__)
class Market:
def __init__(
self,
flumine,
market... | 33.153846 | 88 | 0.670534 | 360 | 3,017 | 5.377778 | 0.252778 | 0.082645 | 0.079545 | 0.051653 | 0.143595 | 0.094008 | 0.094008 | 0.094008 | 0.094008 | 0.068182 | 0 | 0.000439 | 0.244614 | 3,017 | 90 | 89 | 33.522222 | 0.849057 | 0.032483 | 0 | 0.178082 | 0 | 0 | 0.00309 | 0 | 0 | 0 | 0 | 0.011111 | 0 | 1 | 0.178082 | false | 0 | 0.082192 | 0.013699 | 0.383562 | 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 |
90b264bddefd9c5d8b81c5073da1b99d48704da6 | 2,228 | py | Python | scripts/naive_search.py | simonbowly/lp-generators | 937c44074c234333b6a5408c3e18f498c2205948 | [
"MIT"
] | 9 | 2020-01-02T23:07:36.000Z | 2022-01-26T10:04:04.000Z | scripts/naive_search.py | simonbowly/lp-generators | 937c44074c234333b6a5408c3e18f498c2205948 | [
"MIT"
] | null | null | null | scripts/naive_search.py | simonbowly/lp-generators | 937c44074c234333b6a5408c3e18f498c2205948 | [
"MIT"
] | 1 | 2020-01-02T23:08:26.000Z | 2020-01-02T23:08:26.000Z |
import itertools
import multiprocessing
import json
import numpy as np
from tqdm import tqdm
from lp_generators.features import coeff_features, solution_features
from lp_generators.performance import clp_simplex_performance
from search_operators import lp_column_neighbour, lp_row_neighbour
from seeds import cli_see... | 33.253731 | 81 | 0.685817 | 259 | 2,228 | 5.629344 | 0.343629 | 0.082305 | 0.037037 | 0.027435 | 0.049383 | 0.049383 | 0 | 0 | 0 | 0 | 0 | 0.01117 | 0.236535 | 2,228 | 66 | 82 | 33.757576 | 0.845973 | 0.030521 | 0 | 0 | 0 | 0 | 0.027894 | 0.010228 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0.055556 | 0.185185 | 0.018519 | 0.277778 | 0.018519 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
90b769e3d5d7b99ed6ee9f9dfa67655328ca1e58 | 1,571 | py | Python | ProgressBar.py | ArisKots1992/Similar-World-News-Articles | 426aef1d6d9566e66ad634bc8468d554d887551c | [
"MIT"
] | 1 | 2017-09-09T13:53:09.000Z | 2017-09-09T13:53:09.000Z | ProgressBar.py | ArisKots1992/Similar-World-News-Articles | 426aef1d6d9566e66ad634bc8468d554d887551c | [
"MIT"
] | null | null | null | ProgressBar.py | ArisKots1992/Similar-World-News-Articles | 426aef1d6d9566e66ad634bc8468d554d887551c | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import time
import sys
import math
#HOMEMADE WITHOUT ONLINE CODE by Aris
#LIENCE BY ARIS
class ProgressBar:
def __init__(self,max_size=36):
ProgressBar.max_size = max_size
ProgressBar.tick = 20.0/max_size
ProgressBar.progress_counter = 0.0
ProgressBar.counte... | 29.092593 | 84 | 0.57352 | 175 | 1,571 | 5.091429 | 0.297143 | 0.047138 | 0.145903 | 0.074074 | 0.30303 | 0.222222 | 0.222222 | 0.150393 | 0.150393 | 0.150393 | 0 | 0.029412 | 0.307447 | 1,571 | 53 | 85 | 29.641509 | 0.78125 | 0.045194 | 0 | 0.195122 | 0 | 0 | 0.058824 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.073171 | null | null | 0.04878 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
90b801d343545a11009f0b5ecc8dd2af2c9f92ca | 3,189 | py | Python | ecommerce_project/apps/ecommerce/migrations/0001_initial.py | mlopezf2019/guadalupe_sowos_examen_3 | 813f960f2428ac5d753a02888134ac3992e9018e | [
"MIT"
] | null | null | null | ecommerce_project/apps/ecommerce/migrations/0001_initial.py | mlopezf2019/guadalupe_sowos_examen_3 | 813f960f2428ac5d753a02888134ac3992e9018e | [
"MIT"
] | null | null | null | ecommerce_project/apps/ecommerce/migrations/0001_initial.py | mlopezf2019/guadalupe_sowos_examen_3 | 813f960f2428ac5d753a02888134ac3992e9018e | [
"MIT"
] | null | null | null | # Generated by Django 3.1.1 on 2020-09-27 20:02
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('users', '0001_initial'),
]
operations = [
migrations.CreateModel(
... | 41.415584 | 123 | 0.54688 | 288 | 3,189 | 5.934028 | 0.253472 | 0.051492 | 0.057343 | 0.090111 | 0.609128 | 0.609128 | 0.590989 | 0.590989 | 0.492686 | 0.40316 | 0 | 0.017857 | 0.315146 | 3,189 | 76 | 124 | 41.960526 | 0.764652 | 0.014111 | 0 | 0.550725 | 1 | 0 | 0.112524 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.028986 | 0 | 0.086957 | 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 |
90bd59aae81c9889080df91dbd28e4a9b304ffd9 | 1,384 | py | Python | eahub/base/models.py | walambert/eahub.org | 21b6111b2626e4739c249d0881d16fbc818094cb | [
"MIT"
] | 36 | 2019-02-22T23:07:14.000Z | 2022-02-10T13:24:27.000Z | eahub/base/models.py | walambert/eahub.org | 21b6111b2626e4739c249d0881d16fbc818094cb | [
"MIT"
] | 717 | 2019-02-21T22:07:55.000Z | 2022-02-26T15:17:49.000Z | eahub/base/models.py | walambert/eahub.org | 21b6111b2626e4739c249d0881d16fbc818094cb | [
"MIT"
] | 19 | 2019-04-14T14:37:56.000Z | 2022-02-14T22:05:16.000Z | import uuid
from authtools import models as authtools_models
from django.core.validators import URLValidator
from django.db import models
from django.utils import timezone
from solo.models import SingletonModel
class User(authtools_models.AbstractEmailUser):
# django-allauth puts Google or EA.org SSO data in tho... | 28.833333 | 85 | 0.710983 | 166 | 1,384 | 5.777108 | 0.5 | 0.046924 | 0.056309 | 0.075078 | 0.171011 | 0.171011 | 0.171011 | 0.08342 | 0 | 0 | 0 | 0.012624 | 0.198699 | 1,384 | 47 | 86 | 29.446809 | 0.852119 | 0.095376 | 0 | 0 | 0 | 0 | 0.060048 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057143 | false | 0 | 0.171429 | 0.057143 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
90bee561f7ee7014b2253c39a50c061487d0ec34 | 2,106 | py | Python | scripts/math/generate_matrix_test.py | chr15murray/ledger | 85be05221f19598de8c6c58652139a1f2d9e362f | [
"Apache-2.0"
] | 96 | 2018-08-23T16:49:05.000Z | 2021-11-25T00:47:16.000Z | scripts/math/generate_matrix_test.py | chr15murray/ledger | 85be05221f19598de8c6c58652139a1f2d9e362f | [
"Apache-2.0"
] | 1,011 | 2018-08-17T12:25:21.000Z | 2021-11-18T09:30:19.000Z | scripts/math/generate_matrix_test.py | chr15murray/ledger | 85be05221f19598de8c6c58652139a1f2d9e362f | [
"Apache-2.0"
] | 65 | 2018-08-20T20:05:40.000Z | 2022-02-26T23:54:35.000Z | import numpy as np
types = ["int", "float", "double"]
def randi(*args):
return np.random.randint(-10, 10, size=args)
rngs = {"int": randi, "float": np.random.randn, "double": np.random.randn}
embodiments = {
"function": "R.%s(A,B).AllClose(C)",
"op": "(A %s B).AllClose(C)",
"inline_op": "(R = A, R ... | 25.071429 | 85 | 0.417854 | 271 | 2,106 | 3.206642 | 0.280443 | 0.01611 | 0.04603 | 0.023015 | 0.212888 | 0.186421 | 0.165708 | 0.133487 | 0.133487 | 0.133487 | 0 | 0.008955 | 0.363723 | 2,106 | 83 | 86 | 25.373494 | 0.639552 | 0 | 0 | 0 | 0 | 0 | 0.254036 | 0.041311 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.015385 | null | null | 0.061538 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
90c06ceec71cc460139a2abcafcd42b40b0a56a8 | 315 | py | Python | python/aisdk/player_movement.py | THUAI-Team/thuai2022-aisdk | 84d3239f3edd13cd9ffd9ad61c12890f393d8b88 | [
"MIT"
] | null | null | null | python/aisdk/player_movement.py | THUAI-Team/thuai2022-aisdk | 84d3239f3edd13cd9ffd9ad61c12890f393d8b88 | [
"MIT"
] | null | null | null | python/aisdk/player_movement.py | THUAI-Team/thuai2022-aisdk | 84d3239f3edd13cd9ffd9ad61c12890f393d8b88 | [
"MIT"
] | null | null | null | from enum import Enum
from sys import stderr
class PlayerMovement(Enum):
STOPPED = 0
WALKING = 1
RUNNING = 2
SLIPPED = 3
def to_json_representation(self):
return (str(self).split('.')[1]).lower()
class MovementNotAllowedError(ValueError):
def __init__(self, message):
super().__init__(message) | 22.5 | 44 | 0.714286 | 40 | 315 | 5.375 | 0.725 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019084 | 0.168254 | 315 | 14 | 45 | 22.5 | 0.801527 | 0 | 0 | 0 | 0 | 0 | 0.003165 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0.083333 | 0.916667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
90c531d029592c14df121556138eab86864faa16 | 2,927 | py | Python | user/forms.py | Zidan-Kharisma-Sakana/uts-f02 | d29652cb73829ffa63e0ca4d0e5f8d6d62500367 | [
"Unlicense"
] | null | null | null | user/forms.py | Zidan-Kharisma-Sakana/uts-f02 | d29652cb73829ffa63e0ca4d0e5f8d6d62500367 | [
"Unlicense"
] | null | null | null | user/forms.py | Zidan-Kharisma-Sakana/uts-f02 | d29652cb73829ffa63e0ca4d0e5f8d6d62500367 | [
"Unlicense"
] | null | null | null | from django import forms
from django.contrib.auth import authenticate
from django.contrib.auth.models import User
from django.contrib.auth.forms import AuthenticationForm, UserCreationForm
from django.forms import ValidationError, EmailField
from user import models
class MyAuthenticationForm(AuthenticationForm):
... | 32.522222 | 98 | 0.585924 | 306 | 2,927 | 5.496732 | 0.349673 | 0.029727 | 0.04459 | 0.042806 | 0.099287 | 0.033294 | 0 | 0 | 0 | 0 | 0 | 0.00152 | 0.325589 | 2,927 | 89 | 99 | 32.88764 | 0.850557 | 0.064571 | 0 | 0.104478 | 0 | 0 | 0.151154 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.059701 | false | 0.089552 | 0.089552 | 0 | 0.283582 | 0.029851 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
90c608f7d84094a6c38930b235bc4cc2b22ca8af | 2,044 | py | Python | powerranger/files.py | clayboone/powerranger | 09315c8b37132add56ce31f1b0c1dd0b1692bd23 | [
"MIT"
] | null | null | null | powerranger/files.py | clayboone/powerranger | 09315c8b37132add56ce31f1b0c1dd0b1692bd23 | [
"MIT"
] | 8 | 2020-04-18T20:20:08.000Z | 2020-05-06T13:39:03.000Z | powerranger/files.py | clayboone/powerranger | 09315c8b37132add56ce31f1b0c1dd0b1692bd23 | [
"MIT"
] | null | null | null | import curses
import itertools
import os
from pathlib import Path
import stat
from typing import Optional, Union
import config
from colors import Colors
class Item:
"""An item inside of a Directory."""
def __init__(self, path: Union[Path, str]):
self._path = Path(path)
self._selected = False
... | 27.253333 | 98 | 0.620841 | 257 | 2,044 | 4.762646 | 0.33463 | 0.058824 | 0.014706 | 0.029412 | 0.099673 | 0.099673 | 0.099673 | 0.099673 | 0.099673 | 0.099673 | 0 | 0.002732 | 0.283757 | 2,044 | 74 | 99 | 27.621622 | 0.833333 | 0.144814 | 0 | 0.104167 | 0 | 0 | 0.000588 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0 | 0.166667 | 0.020833 | 0.541667 | 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 |
90c806da308d72b961e15453707e27dd9643ad2b | 1,897 | py | Python | code/diva_evaluation_cli/bin/commands/actev_get_system_subcommands/git_command.py | wenhel/Argus | 39768a8d1671eb80f86bbd67e58478a4cbdcdeca | [
"MIT"
] | 4 | 2019-06-28T23:27:43.000Z | 2021-09-27T03:17:58.000Z | code/diva_evaluation_cli/bin/commands/actev_get_system_subcommands/git_command.py | wenhel/Argus | 39768a8d1671eb80f86bbd67e58478a4cbdcdeca | [
"MIT"
] | 2 | 2020-01-16T19:39:44.000Z | 2021-02-24T22:45:37.000Z | code/diva_evaluation_cli/bin/commands/actev_get_system_subcommands/git_command.py | wenhel/Argus | 39768a8d1671eb80f86bbd67e58478a4cbdcdeca | [
"MIT"
] | 1 | 2019-09-09T07:40:45.000Z | 2019-09-09T07:40:45.000Z | """Actev module: get-system git
Actev modules are used to parse actev commands in order to get arguments
before calling associated entry point methods to execute systems.
Warning: this file should not be modified: see src/entry_points to add your source code.
"""
from diva_evaluation_cli.bin.commands.actev_command i... | 43.113636 | 111 | 0.641012 | 251 | 1,897 | 4.717131 | 0.394422 | 0.076014 | 0.060811 | 0.101351 | 0.152027 | 0.072635 | 0 | 0 | 0 | 0 | 0 | 0 | 0.256194 | 1,897 | 43 | 112 | 44.116279 | 0.839121 | 0.377965 | 0 | 0 | 0 | 0 | 0.358696 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0.133333 | 0.066667 | 0 | 0.266667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
90c8e1c41e29404a0d0d0511d6b46db43890fb89 | 4,106 | py | Python | test/test_markdown_parser.py | Asana/SGTM | 0e9e236980ed68e80e021470da6374945bbac501 | [
"MIT"
] | 8 | 2020-12-05T00:13:03.000Z | 2022-01-11T11:35:51.000Z | test/test_markdown_parser.py | Asana/SGTM | 0e9e236980ed68e80e021470da6374945bbac501 | [
"MIT"
] | 12 | 2020-12-14T18:21:21.000Z | 2022-03-29T17:06:20.000Z | test/test_markdown_parser.py | Asana/SGTM | 0e9e236980ed68e80e021470da6374945bbac501 | [
"MIT"
] | 2 | 2021-06-27T09:32:55.000Z | 2022-02-27T23:17:36.000Z | import unittest
from html import escape
from src.markdown_parser import convert_github_markdown_to_asana_xml
class TestConvertGithubMarkdownToAsanaXml(unittest.TestCase):
def test_basic_markdown(self):
md = """~~strike~~ **bold** _italic_ `code` [link](asana.com)"""
xml = convert_github_markdown_... | 33.933884 | 115 | 0.585485 | 550 | 4,106 | 4.116364 | 0.198182 | 0.091873 | 0.14841 | 0.162544 | 0.563163 | 0.535336 | 0.491166 | 0.491166 | 0.491166 | 0.491166 | 0 | 0.006545 | 0.255723 | 4,106 | 120 | 116 | 34.216667 | 0.734293 | 0.016318 | 0 | 0.313131 | 0 | 0.040404 | 0.285183 | 0.028989 | 0 | 0 | 0 | 0 | 0.151515 | 1 | 0.151515 | false | 0 | 0.040404 | 0 | 0.20202 | 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 |
90cceb9760edd56688a99f6ee73a68bdf983a84e | 619 | py | Python | python/wotdbg.py | wanyancan/wot-debugserver | 4c6dd5c511659885abb355bef7c9318ed3e42937 | [
"MIT"
] | 32 | 2015-01-23T16:13:20.000Z | 2021-05-29T21:11:42.000Z | python/wotdbg.py | wanyancan/wot-debugserver | 4c6dd5c511659885abb355bef7c9318ed3e42937 | [
"MIT"
] | null | null | null | python/wotdbg.py | wanyancan/wot-debugserver | 4c6dd5c511659885abb355bef7c9318ed3e42937 | [
"MIT"
] | 16 | 2015-08-25T08:02:52.000Z | 2022-01-19T19:16:16.000Z | import os.path
import tcprepl
import BigWorld
def echo(s):
'''Send string to client'''
if tcprepl.write_client is not None:
tcprepl.write_client(s)
def exec_file(filename, exec_globals=None):
'''
Execute file
Try to find file named `filename` and execute it. If `exec_globals` is
spec... | 22.107143 | 74 | 0.660743 | 89 | 619 | 4.494382 | 0.47191 | 0.1375 | 0.09 | 0.075 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.248788 | 619 | 27 | 75 | 22.925926 | 0.860215 | 0 | 0 | 0 | 0 | 0 | 0.002326 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.214286 | 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 |
90d1622a98abf59a298f4b58a00b76f812b4c744 | 604 | py | Python | books/migrations/0004_alter_book_category.py | MwinyiMoha/books-service | 31a980a8505c5d5c2acad698bb493fad8c0ce8fe | [
"MIT"
] | null | null | null | books/migrations/0004_alter_book_category.py | MwinyiMoha/books-service | 31a980a8505c5d5c2acad698bb493fad8c0ce8fe | [
"MIT"
] | 3 | 2021-04-08T17:44:07.000Z | 2021-04-12T09:38:26.000Z | books/migrations/0004_alter_book_category.py | MwinyiMoha/books-service | 31a980a8505c5d5c2acad698bb493fad8c0ce8fe | [
"MIT"
] | null | null | null | # Generated by Django 3.2 on 2021-04-10 12:34
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [("books", "0003_auto_20210410_1231")]
operations = [
migrations.AlterField(
model_name="book",
name="category",
field=mod... | 24.16 | 57 | 0.47351 | 50 | 604 | 5.62 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.086111 | 0.403974 | 604 | 24 | 58 | 25.166667 | 0.694444 | 0.071192 | 0 | 0 | 1 | 0 | 0.152057 | 0.041145 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.055556 | 0 | 0.222222 | 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 |
90d9a5726836680355d0f136ca02e9d3ff263f57 | 1,087 | py | Python | modcma/__main__.py | IOHprofiler/ModularCMAES | 5ae3310d68b7e2bc37ef10de07945e89c16d6654 | [
"MIT"
] | 2 | 2021-04-08T06:16:21.000Z | 2022-01-25T18:18:51.000Z | modcma/__main__.py | IOHprofiler/ModularCMAES | 5ae3310d68b7e2bc37ef10de07945e89c16d6654 | [
"MIT"
] | 3 | 2020-11-16T15:24:53.000Z | 2021-11-10T10:27:50.000Z | modcma/__main__.py | IOHprofiler/ModularCMAES | 5ae3310d68b7e2bc37ef10de07945e89c16d6654 | [
"MIT"
] | 2 | 2021-01-13T15:36:46.000Z | 2021-04-08T06:24:25.000Z | """Allows the user to call the library as a cli-module."""
from argparse import ArgumentParser
from .modularcmaes import evaluate_bbob
parser = ArgumentParser(description="Run single function CMAES")
parser.add_argument(
"-f", "--fid", type=int, help="bbob function id", required=False, default=5
)
parser.add_ar... | 29.378378 | 79 | 0.689052 | 146 | 1,087 | 5.041096 | 0.5 | 0.097826 | 0.184783 | 0.057065 | 0.103261 | 0.103261 | 0.103261 | 0 | 0 | 0 | 0 | 0.006369 | 0.133395 | 1,087 | 36 | 80 | 30.194444 | 0.774947 | 0.072677 | 0 | 0.142857 | 0 | 0 | 0.183633 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.071429 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
90decc71935f62f946a40921c43b3f8580f075de | 2,398 | py | Python | setup.py | medchemfi/sdfconf | 81b1ed383c1d4b3e633fdc555e4027091226b025 | [
"MIT"
] | 6 | 2021-12-27T07:55:16.000Z | 2022-01-26T04:36:53.000Z | setup.py | medchemfi/sdfconf | 81b1ed383c1d4b3e633fdc555e4027091226b025 | [
"MIT"
] | null | null | null | setup.py | medchemfi/sdfconf | 81b1ed383c1d4b3e633fdc555e4027091226b025 | [
"MIT"
] | 3 | 2022-01-06T13:54:48.000Z | 2022-01-26T04:36:54.000Z | # -*- coding: utf-8 -*-
from setuptools import setup, find_packages
import re
import os
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
with open("src/sdfconf/_version.py", "rt") as vf:
VSRE = r"^__version__ = ['\"]([^'\"]*)['\"]"
for line in vf:
mo = re.search... | 42.821429 | 97 | 0.470809 | 205 | 2,398 | 5.414634 | 0.629268 | 0.013514 | 0.028829 | 0.034234 | 0.037838 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008997 | 0.397415 | 2,398 | 56 | 98 | 42.821429 | 0.75917 | 0.05171 | 0 | 0 | 0 | 0 | 0.35894 | 0.039735 | 0 | 0 | 0 | 0.017857 | 0 | 1 | 0.022727 | false | 0 | 0.068182 | 0.022727 | 0.113636 | 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 |
90e49b3af233dbd74b52999ca2aa64df02b0beff | 368 | py | Python | core/migrations/0008_auto_20190528_1802.py | peterson-dev/code-snippet-app | b5ecb7b8b679c307d361a7ce100d4115f92d99a5 | [
"MIT"
] | 2 | 2019-05-22T21:54:43.000Z | 2019-05-26T22:22:14.000Z | core/migrations/0008_auto_20190528_1802.py | peterson-dev/code-snippet-app | b5ecb7b8b679c307d361a7ce100d4115f92d99a5 | [
"MIT"
] | 14 | 2020-02-12T00:04:05.000Z | 2022-03-11T23:51:10.000Z | core/migrations/0008_auto_20190528_1802.py | peterson-dev/kode-kangaroo | b5ecb7b8b679c307d361a7ce100d4115f92d99a5 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.1 on 2019-05-28 22:02
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('core', '0007_auto_20190523_1740'),
]
operations = [
migrations.RenameField(
model_name='snippet',
old_name='post_content',
... | 19.368421 | 47 | 0.589674 | 40 | 368 | 5.25 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.120155 | 0.298913 | 368 | 18 | 48 | 20.444444 | 0.693798 | 0.122283 | 0 | 0 | 1 | 0 | 0.165109 | 0.071651 | 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 |
90e4c87211faae293a93093b6b860b2f8d021a50 | 2,740 | py | Python | scripts/Biupdownsample/grad_check.py | dongdong93/a2u_matting | 1d0ad8e630cce50c5b36c40ad384c888d292f9a8 | [
"MIT"
] | 22 | 2021-04-28T03:48:53.000Z | 2022-01-24T09:42:53.000Z | scripts/Biupdownsample/grad_check.py | dongdong93/a2u_matting | 1d0ad8e630cce50c5b36c40ad384c888d292f9a8 | [
"MIT"
] | 1 | 2021-08-08T20:10:18.000Z | 2021-08-23T07:33:38.000Z | scripts/Biupdownsample/grad_check.py | dongdong93/a2u_matting | 1d0ad8e630cce50c5b36c40ad384c888d292f9a8 | [
"MIT"
] | 5 | 2021-09-17T08:02:06.000Z | 2022-01-24T09:43:03.000Z | import os.path as osp
import sys
import subprocess
subprocess.call(['pip', 'install', 'cvbase'])
import cvbase as cvb
import torch
from torch.autograd import gradcheck
sys.path.append(osp.abspath(osp.join(__file__, '../../')))
from biupdownsample import biupsample_naive, BiupsampleNaive
from biupdownsample import bid... | 31.494253 | 79 | 0.691606 | 400 | 2,740 | 4.5675 | 0.215 | 0.059113 | 0.048166 | 0.096333 | 0.739464 | 0.692392 | 0.692392 | 0.68856 | 0.659551 | 0.639299 | 0 | 0.049111 | 0.137956 | 2,740 | 86 | 80 | 31.860465 | 0.724386 | 0.022993 | 0 | 0.59375 | 0 | 0 | 0.125701 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0.09375 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
90e95d3f579e468dcd63f6bfea79961b11c3e5b8 | 1,953 | py | Python | jupyterlab_bigquery/jupyterlab_bigquery/__init__.py | shunr/jupyter-extensions | a2fb310215664e29fd7252e5fe353f60a91a0aba | [
"Apache-2.0"
] | null | null | null | jupyterlab_bigquery/jupyterlab_bigquery/__init__.py | shunr/jupyter-extensions | a2fb310215664e29fd7252e5fe353f60a91a0aba | [
"Apache-2.0"
] | 1 | 2020-07-20T23:09:46.000Z | 2020-07-20T23:09:46.000Z | jupyterlab_bigquery/jupyterlab_bigquery/__init__.py | shunr/jupyter-extensions | a2fb310215664e29fd7252e5fe353f60a91a0aba | [
"Apache-2.0"
] | null | null | null | from notebook.utils import url_path_join
from jupyterlab_bigquery.list_items_handler import handlers
from jupyterlab_bigquery.details_handler import DatasetDetailsHandler, TablePreviewHandler, TableDetailsHandler
from jupyterlab_bigquery.version import VERSION
from jupyterlab_bigquery.pagedAPI_handler import PagedQuer... | 35.509091 | 111 | 0.721966 | 219 | 1,953 | 6.082192 | 0.374429 | 0.081081 | 0.041291 | 0.031532 | 0.160661 | 0.123123 | 0.069069 | 0.069069 | 0 | 0 | 0 | 0.003145 | 0.185868 | 1,953 | 54 | 112 | 36.166667 | 0.834591 | 0.152586 | 0 | 0.055556 | 0 | 0 | 0.085962 | 0 | 0 | 0 | 0 | 0.018519 | 0 | 1 | 0.111111 | false | 0 | 0.166667 | 0.055556 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
90eb050355216ee7d1a8b303ce6104092d1b2ec7 | 581 | py | Python | ios_notifications/migrations/0004_auto_20141105_1515.py | chillbear/django-ios-notifications | d48a7862eaa499672f27c192a3cf6f06e06f8117 | [
"BSD-3-Clause"
] | 2 | 2021-12-01T21:34:49.000Z | 2021-12-13T19:22:12.000Z | ios_notifications/migrations/0004_auto_20141105_1515.py | chillbear/django-ios-notifications | d48a7862eaa499672f27c192a3cf6f06e06f8117 | [
"BSD-3-Clause"
] | 1 | 2019-10-04T01:18:32.000Z | 2019-10-04T01:18:32.000Z | ios_notifications/migrations/0004_auto_20141105_1515.py | chillbear/django-ios-notifications | d48a7862eaa499672f27c192a3cf6f06e06f8117 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import django_fields.fields
class Migration(migrations.Migration):
dependencies = [
('ios_notifications', '0003_notification_loc_payload'),
]
operations = [
migrations.AlterField(
... | 26.409091 | 142 | 0.667814 | 60 | 581 | 6.216667 | 0.75 | 0.064343 | 0.096515 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017897 | 0.230637 | 581 | 21 | 143 | 27.666667 | 0.816555 | 0.036145 | 0 | 0 | 0 | 0 | 0.172043 | 0.051971 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.133333 | 0.2 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
90f5a5e0a26c00e35828acb499a24e15b010c10d | 1,574 | py | Python | awx/main/migrations/0156_capture_mesh_topology.py | ziegenberg/awx | a3e29317c5d4220fffe28370ec73c73802255246 | [
"Apache-2.0"
] | 1 | 2019-07-21T11:19:50.000Z | 2019-07-21T11:19:50.000Z | awx/main/migrations/0156_capture_mesh_topology.py | ziegenberg/awx | a3e29317c5d4220fffe28370ec73c73802255246 | [
"Apache-2.0"
] | 2 | 2022-02-10T11:57:21.000Z | 2022-02-27T22:43:44.000Z | awx/main/migrations/0156_capture_mesh_topology.py | ziegenberg/awx | a3e29317c5d4220fffe28370ec73c73802255246 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 2.2.20 on 2021-12-17 19:26
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('main', '0155_improved_health_check'),
]
operations = [
migrations.AlterField(
model_name='inst... | 34.977778 | 141 | 0.540661 | 142 | 1,574 | 5.880282 | 0.549296 | 0.038323 | 0.050299 | 0.079042 | 0.153293 | 0.153293 | 0.153293 | 0.153293 | 0.153293 | 0.153293 | 0 | 0.020735 | 0.325921 | 1,574 | 44 | 142 | 35.772727 | 0.766258 | 0.029225 | 0 | 0.210526 | 1 | 0 | 0.211664 | 0.017038 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.026316 | 0.052632 | 0 | 0.131579 | 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 |
90f9829385890920a9abc0c7d59d052db4801faf | 4,427 | py | Python | commands/data/fusion_data.py | Christ0ph990/Fusion360DevTools | fce10e34b3b92a058d275956c07d1b891ce02192 | [
"MIT"
] | 3 | 2022-02-12T21:00:39.000Z | 2022-03-18T13:17:17.000Z | commands/data/fusion_data.py | Christ0ph990/Fusion360DevTools | fce10e34b3b92a058d275956c07d1b891ce02192 | [
"MIT"
] | null | null | null | commands/data/fusion_data.py | Christ0ph990/Fusion360DevTools | fce10e34b3b92a058d275956c07d1b891ce02192 | [
"MIT"
] | null | null | null | # Copyright 2022 by Autodesk, Inc.
# Permission to use, copy, modify, and distribute this software in object code form
# for any purpose and without fee is hereby granted, provided that the above copyright
# notice appears in all copies and that both that copyright notice and the limited
# warranty and restricted ... | 42.161905 | 120 | 0.688954 | 642 | 4,427 | 4.562305 | 0.267913 | 0.0676 | 0.073745 | 0.104473 | 0.320929 | 0.233527 | 0.114032 | 0.096279 | 0.074428 | 0.051212 | 0 | 0.013154 | 0.210075 | 4,427 | 104 | 121 | 42.567308 | 0.824421 | 0.214592 | 0 | 0 | 0 | 0 | 0.084393 | 0.028613 | 0 | 0 | 0 | 0 | 0 | 1 | 0.084507 | false | 0 | 0.056338 | 0.056338 | 0.549296 | 0.028169 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
29057d1781f0e8f9898d6f1c32f5772d89c7df3a | 1,889 | py | Python | darts_search_space/imagenet/rlnas/evolution_search/config.py | megvii-model/RLNAS | a7e2ef9debcd06a93b075181a027b806b737b106 | [
"MIT"
] | 17 | 2021-05-17T04:54:17.000Z | 2022-01-23T09:59:02.000Z | darts_search_space/imagenet/rlnas/evolution_search/config.py | megvii-model/RLNAS | a7e2ef9debcd06a93b075181a027b806b737b106 | [
"MIT"
] | 2 | 2021-07-09T05:14:29.000Z | 2022-02-05T10:15:31.000Z | darts_search_space/imagenet/rlnas/evolution_search/config.py | megvii-model/RLNAS | a7e2ef9debcd06a93b075181a027b806b737b106 | [
"MIT"
] | 8 | 2021-05-28T00:04:20.000Z | 2021-10-18T02:41:34.000Z | import os
class config:
host = 'zhangxuanyang.zhangxuanyang.ws2.hh-c.brainpp.cn'
username = 'admin'
port = 5672
exp_name = os.path.dirname(os.path.abspath(__file__))
exp_name = '-'.join(i for i in exp_name.split(os.path.sep) if i);
test_send_pipe = exp_name + '-test-send_pipe'
test_recv_p... | 25.527027 | 112 | 0.528322 | 312 | 1,889 | 2.971154 | 0.349359 | 0.01726 | 0.012945 | 0.019417 | 0.10356 | 0.075512 | 0.075512 | 0 | 0 | 0 | 0 | 0.136778 | 0.303335 | 1,889 | 73 | 113 | 25.876712 | 0.567629 | 0.056114 | 0 | 0 | 0 | 0 | 0.155881 | 0.073157 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.018182 | 0 | 0.672727 | 0.018182 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
290a002c458607061f9182749313cea5d389910f | 1,757 | py | Python | src/admin.py | kappa243/agh-db-proj | 73a3e69fa11e65e196b3d8a34be0b1051654a7eb | [
"MIT"
] | null | null | null | src/admin.py | kappa243/agh-db-proj | 73a3e69fa11e65e196b3d8a34be0b1051654a7eb | [
"MIT"
] | null | null | null | src/admin.py | kappa243/agh-db-proj | 73a3e69fa11e65e196b3d8a34be0b1051654a7eb | [
"MIT"
] | null | null | null | from flask import Blueprint, request, render_template, flash, redirect, url_for
from flask_login import login_user, login_required, current_user, logout_user
from models import User
from werkzeug.security import generate_password_hash, check_password_hash
from app import db, login_manager
admin = Blueprint('admin', __... | 39.931818 | 100 | 0.636881 | 216 | 1,757 | 4.976852 | 0.347222 | 0.08186 | 0.048372 | 0.037209 | 0.189767 | 0.189767 | 0.139535 | 0.074419 | 0 | 0 | 0 | 0.005356 | 0.256118 | 1,757 | 43 | 101 | 40.860465 | 0.817138 | 0 | 0 | 0 | 0 | 0 | 0.100912 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027027 | false | 0.162162 | 0.135135 | 0 | 0.243243 | 0.054054 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
290c6742df1f8f4ad0e590b81b60add7140d2294 | 4,321 | py | Python | test/lib/test_map.py | oldmantaiter/inferno | 88da465625d18c6848f4be5fb37e20a5ae2c6db1 | [
"MIT"
] | 1 | 2015-10-15T04:18:14.000Z | 2015-10-15T04:18:14.000Z | test/lib/test_map.py | oldmantaiter/inferno | 88da465625d18c6848f4be5fb37e20a5ae2c6db1 | [
"MIT"
] | null | null | null | test/lib/test_map.py | oldmantaiter/inferno | 88da465625d18c6848f4be5fb37e20a5ae2c6db1 | [
"MIT"
] | null | null | null | import datetime
import types
from nose.tools import eq_
from nose.tools import ok_
from inferno.lib.map import keyset_map
from inferno.lib.rule import InfernoRule
class TestKeysetMap(object):
def setUp(self):
self.data = {
'city': 'toronto',
'country': 'canada',
'pop... | 36.008333 | 80 | 0.592918 | 480 | 4,321 | 5.079167 | 0.2 | 0.059065 | 0.063987 | 0.076702 | 0.659147 | 0.646432 | 0.621821 | 0.582855 | 0.552502 | 0.510254 | 0 | 0.019213 | 0.265216 | 4,321 | 119 | 81 | 36.310924 | 0.748661 | 0.040731 | 0 | 0.410526 | 0 | 0 | 0.127747 | 0.069548 | 0 | 0 | 0 | 0 | 0.126316 | 0 | null | null | 0 | 0.063158 | 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 |
29145e423185507525f6b1aaf218e49896993e52 | 22,417 | py | Python | geotrek/tourism/models.py | ker2x/Geotrek-admin | 78e154894d1d78dbb35789285c7def8deaaa2dd3 | [
"BSD-2-Clause"
] | null | null | null | geotrek/tourism/models.py | ker2x/Geotrek-admin | 78e154894d1d78dbb35789285c7def8deaaa2dd3 | [
"BSD-2-Clause"
] | null | null | null | geotrek/tourism/models.py | ker2x/Geotrek-admin | 78e154894d1d78dbb35789285c7def8deaaa2dd3 | [
"BSD-2-Clause"
] | null | null | null | import os
import re
import logging
from django.conf import settings
from django.contrib.gis.db import models
from django.utils.translation import ugettext_lazy as _
from django.utils.formats import date_format
from easy_thumbnails.alias import aliases
from easy_thumbnails.exceptions import InvalidImageFormatError
fro... | 43.868885 | 171 | 0.657581 | 2,503 | 22,417 | 5.636037 | 0.145825 | 0.06316 | 0.056993 | 0.040547 | 0.630963 | 0.555823 | 0.481818 | 0.436166 | 0.41008 | 0.381371 | 0 | 0.008463 | 0.23045 | 22,417 | 510 | 172 | 43.954902 | 0.809286 | 0.014498 | 0 | 0.40404 | 0 | 0 | 0.145538 | 0.026651 | 0 | 0 | 0 | 0 | 0 | 1 | 0.118687 | false | 0 | 0.05303 | 0.088384 | 0.540404 | 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 |
2917f428a5344543b5b9765a392fb7105a798a1a | 4,384 | py | Python | app/models.py | TrigeekSpace/academia-bknd | bd3b821240ef50868cd7d7b59c8d25e71086e70e | [
"BSD-3-Clause"
] | null | null | null | app/models.py | TrigeekSpace/academia-bknd | bd3b821240ef50868cd7d7b59c8d25e71086e70e | [
"BSD-3-Clause"
] | null | null | null | app/models.py | TrigeekSpace/academia-bknd | bd3b821240ef50868cd7d7b59c8d25e71086e70e | [
"BSD-3-Clause"
] | null | null | null | """ SQLAlchemy database models. """
from datetime import datetime
from depot.fields.sqlalchemy import UploadedFileField
from app import db
from app.util.data import many_to_many, foreign_key
from app.config import TOKEN_LEN
class User(db.Model):
""" User model class. """
id = db.Column(db.Integer(), primary_k... | 47.652174 | 87 | 0.707345 | 596 | 4,384 | 5.04698 | 0.177852 | 0.106383 | 0.123005 | 0.05984 | 0.643949 | 0.585106 | 0.550532 | 0.455785 | 0.376662 | 0.347407 | 0 | 0.006893 | 0.139599 | 4,384 | 91 | 88 | 48.175824 | 0.790562 | 0.039918 | 0 | 0.256757 | 0 | 0 | 0.078493 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.027027 | 0.067568 | 0 | 0.864865 | 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 |
291d8e921326cbecc63bc712d0993323051bed1f | 691 | py | Python | tests/test_demo.py | aaronestrada/flask-restplus-swagger-relative | e951bad6a2c72522ac74f5353a7b0cbe5436f20f | [
"BSD-3-Clause"
] | 3 | 2019-09-27T18:33:54.000Z | 2020-03-31T15:32:32.000Z | tests/test_demo.py | aaronestrada/flask-restplus-swagger-relative | e951bad6a2c72522ac74f5353a7b0cbe5436f20f | [
"BSD-3-Clause"
] | 1 | 2019-10-29T20:31:33.000Z | 2019-11-04T14:25:08.000Z | tests/test_demo.py | aaronestrada/flask-restplus-swagger-relative | e951bad6a2c72522ac74f5353a7b0cbe5436f20f | [
"BSD-3-Clause"
] | 1 | 2019-09-27T18:33:55.000Z | 2019-09-27T18:33:55.000Z | import pytest
from tests.test_application import app
@pytest.fixture
def client():
client = app.test_client()
yield client
def test_hello_resource(client):
"""
Test if it is possible to access to /hello resource
:param client: Test client object
:return:
"""
response = client.get('/h... | 23.827586 | 114 | 0.700434 | 93 | 691 | 5.043011 | 0.516129 | 0.085288 | 0.051173 | 0.089552 | 0.21322 | 0.21322 | 0.21322 | 0.21322 | 0.21322 | 0 | 0 | 0.005425 | 0.199711 | 691 | 28 | 115 | 24.678571 | 0.842676 | 0.279305 | 0 | 0 | 0 | 0 | 0.223947 | 0.18847 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.25 | false | 0 | 0.166667 | 0 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
291e921dde8646cb27f33c258f33f46413f66a28 | 1,614 | py | Python | 01_Introduction to Python/3-functions-and-packages/03_multiple-arguments.py | mohd-faizy/DataScience-With-Python | 13ebb10cf9083343056d5b782957241de1d595f9 | [
"MIT"
] | 5 | 2021-02-03T14:36:58.000Z | 2022-01-01T10:29:26.000Z | 01_Introduction to Python/3-functions-and-packages/03_multiple-arguments.py | mohd-faizy/DataScience-With-Python | 13ebb10cf9083343056d5b782957241de1d595f9 | [
"MIT"
] | null | null | null | 01_Introduction to Python/3-functions-and-packages/03_multiple-arguments.py | mohd-faizy/DataScience-With-Python | 13ebb10cf9083343056d5b782957241de1d595f9 | [
"MIT"
] | 3 | 2021-02-08T00:31:16.000Z | 2022-03-17T13:52:32.000Z | '''
03 - Multiple arguments
In the previous exercise, the square brackets around imag in the documentation showed us that the
imag argument is optional. But Python also uses a different way to tell users about arguments being
optional.
Have a look at the documentation of sorted() by typing help(sorted) in the IPython... | 35.086957 | 99 | 0.761462 | 275 | 1,614 | 4.425455 | 0.447273 | 0.049302 | 0.034511 | 0.023007 | 0.046015 | 0.046015 | 0.046015 | 0.046015 | 0 | 0 | 0 | 0.014372 | 0.180917 | 1,614 | 46 | 100 | 35.086957 | 0.906203 | 0.905824 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
291f1330f75cfc0ca15457846d8102779d88cf8f | 790 | py | Python | Taller_Algoritmos_02/Ejercicio_10.py | Angelio01/algoritmos_programacion- | 63cb4cd4cfa01f504bf9ed927dcebf2466d6f60d | [
"MIT"
] | null | null | null | Taller_Algoritmos_02/Ejercicio_10.py | Angelio01/algoritmos_programacion- | 63cb4cd4cfa01f504bf9ed927dcebf2466d6f60d | [
"MIT"
] | null | null | null | Taller_Algoritmos_02/Ejercicio_10.py | Angelio01/algoritmos_programacion- | 63cb4cd4cfa01f504bf9ed927dcebf2466d6f60d | [
"MIT"
] | 1 | 2021-10-29T19:40:32.000Z | 2021-10-29T19:40:32.000Z | """
Entradas: 3 Valores flotantes que son el valor de diferentes monedas
Chelines autriacos --> float --> x
Dramas griegos --> float --> z
Pesetas --> float --> w
Salidas 4 valores flotantes que es la conversión de las anteriores monedas
Pesetas --> float --> x
Francos franceses --> float --> z
Dolares --> float... | 28.214286 | 180 | 0.679747 | 125 | 790 | 4.296 | 0.432 | 0.055866 | 0.078212 | 0.063315 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.061256 | 0.173418 | 790 | 28 | 180 | 28.214286 | 0.761103 | 0.48481 | 0 | 0 | 0 | 0.125 | 0.613636 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
29204de0e1568db751699c8bf504b18e9d16ff4b | 4,049 | py | Python | estacionamientos/forms.py | ShadowManu/SAGE | 999626669c9a15755ed409e57864851eb27dc2c2 | [
"MIT"
] | null | null | null | estacionamientos/forms.py | ShadowManu/SAGE | 999626669c9a15755ed409e57864851eb27dc2c2 | [
"MIT"
] | null | null | null | estacionamientos/forms.py | ShadowManu/SAGE | 999626669c9a15755ed409e57864851eb27dc2c2 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from django import forms
from estacionamientos.models import Estacionamiento, Reserva, Pago
class EstacionamientosForm(forms.ModelForm):
nombre_duenio = forms.CharField(widget=forms.TextInput(
attrs={'class': 'form-control', 'placeholder': 'Nombre del Dueño'})... | 49.987654 | 107 | 0.646826 | 402 | 4,049 | 6.49005 | 0.266169 | 0.096972 | 0.123419 | 0.185128 | 0.60253 | 0.60253 | 0.595631 | 0.566501 | 0.526639 | 0.526639 | 0 | 0.005152 | 0.184984 | 4,049 | 80 | 108 | 50.6125 | 0.785455 | 0.010373 | 0 | 0.044118 | 0 | 0 | 0.273159 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.029412 | 0 | 0.470588 | 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 |
292db3dd254935b6485aa3e5a0431e5e9297d7e2 | 2,328 | py | Python | test/programytest/clients/restful/test_config.py | minhdc/documented-programy | fe947d68c0749201fbe93ee5644d304235d0c626 | [
"MIT"
] | null | null | null | test/programytest/clients/restful/test_config.py | minhdc/documented-programy | fe947d68c0749201fbe93ee5644d304235d0c626 | [
"MIT"
] | null | null | null | test/programytest/clients/restful/test_config.py | minhdc/documented-programy | fe947d68c0749201fbe93ee5644d304235d0c626 | [
"MIT"
] | null | null | null | import unittest
from programy.config.file.yaml_file import YamlConfigurationFile
from programy.clients.restful.config import RestConfiguration
from programy.clients.events.console.config import ConsoleConfiguration
class RestConfigurationTests(unittest.TestCase):
def test_init(self):
yaml = YamlConfigura... | 36.375 | 93 | 0.660653 | 262 | 2,328 | 5.683206 | 0.240458 | 0.087307 | 0.14775 | 0.064473 | 0.42176 | 0.346541 | 0.346541 | 0.346541 | 0.346541 | 0.346541 | 0 | 0.017954 | 0.210481 | 2,328 | 63 | 94 | 36.952381 | 0.792165 | 0 | 0 | 0.352941 | 0 | 0 | 0.209192 | 0.044674 | 0 | 0 | 0 | 0 | 0.431373 | 1 | 0.058824 | false | 0 | 0.078431 | 0 | 0.156863 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
29313d16ae55bd60b3205923aa0959f4632a0038 | 1,211 | py | Python | Assignments/06.py | zexhan17/Data-Structures-and-Algorithms-using-Python | b5fd3d47c2eb7bf93eb88b276799d6663cd602e4 | [
"MIT"
] | null | null | null | Assignments/06.py | zexhan17/Data-Structures-and-Algorithms-using-Python | b5fd3d47c2eb7bf93eb88b276799d6663cd602e4 | [
"MIT"
] | null | null | null | Assignments/06.py | zexhan17/Data-Structures-and-Algorithms-using-Python | b5fd3d47c2eb7bf93eb88b276799d6663cd602e4 | [
"MIT"
] | null | null | null | # Write a recursive function to count the number of nodes in a Tree. (first do your self then see code)
def count_nodes(self):
count = 1
left_count = 0
right_count = 0
if self.left:
left_count = self.left.count_nodes()
if self.right:
right_count = self.right.count_nodes()
return count + left_count + rig... | 31.868421 | 201 | 0.734104 | 217 | 1,211 | 4.013825 | 0.331797 | 0.061998 | 0.050517 | 0.041332 | 0.163031 | 0.06659 | 0.06659 | 0.06659 | 0 | 0 | 0 | 0.011317 | 0.197358 | 1,211 | 37 | 202 | 32.72973 | 0.884774 | 0 | 0 | 0.181818 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.045455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2934aab8985e093039352c584291d05e82d940ca | 1,629 | py | Python | checklog.py | mtibbett67/pymodules | 9a7dcd16fb2107029edaabde766c1dbdb769713c | [
"MIT"
] | null | null | null | checklog.py | mtibbett67/pymodules | 9a7dcd16fb2107029edaabde766c1dbdb769713c | [
"MIT"
] | null | null | null | checklog.py | mtibbett67/pymodules | 9a7dcd16fb2107029edaabde766c1dbdb769713c | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
NAME:
checklog.py
DESCRIPTION:
This script checks the tail of the log file and lists the disk space
CREATED:
Sun Mar 15 22:53:54 2015
VERSION:
1.0
AUTHOR:
Mark Tibbett
AUTHOR_EMAIL:
mtibbett67@gmail.com
URL:
N/A
DOWNLOAD_URL:
N/A
INSTALL_REQUIRES:
[]
PACKAGES:... | 16.793814 | 73 | 0.581952 | 237 | 1,629 | 3.983122 | 0.594937 | 0.01589 | 0.010593 | 0.016949 | 0.027542 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052936 | 0.257827 | 1,629 | 96 | 74 | 16.96875 | 0.727874 | 0.259669 | 0 | 0 | 0 | 0 | 0.248541 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.096774 | null | null | 0.193548 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
29351a72a75c3ab6afce56723dbd2096b63f981a | 726 | py | Python | algorithms/implementation/minimum_distances.py | avenet/hackerrank | e522030a023af4ff50d5fc64bd3eba30144e006c | [
"MIT"
] | null | null | null | algorithms/implementation/minimum_distances.py | avenet/hackerrank | e522030a023af4ff50d5fc64bd3eba30144e006c | [
"MIT"
] | null | null | null | algorithms/implementation/minimum_distances.py | avenet/hackerrank | e522030a023af4ff50d5fc64bd3eba30144e006c | [
"MIT"
] | null | null | null | n = int(input().strip())
items = [
int(A_temp)
for A_temp
in input().strip().split(' ')
]
items_map = {}
result = None
for i, item in enumerate(items):
if item not in items_map:
items_map[item] = [i]
else:
items_map[item].append(i)
for _, item_indexes in items_map.items():
it... | 22.6875 | 56 | 0.566116 | 99 | 726 | 3.949495 | 0.30303 | 0.102302 | 0.184143 | 0.076726 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006173 | 0.330579 | 726 | 31 | 57 | 23.419355 | 0.798354 | 0 | 0 | 0.083333 | 0 | 0 | 0.001377 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.041667 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
29452ec5be15d28b45cb5711c4822ec7f8c5c51e | 1,001 | py | Python | 233_number_of_digt_one.py | gengwg/leetcode | 0af5256ec98149ef5863f3bba78ed1e749650f6e | [
"Apache-2.0"
] | 2 | 2018-04-24T19:17:40.000Z | 2018-04-24T19:33:52.000Z | 233_number_of_digt_one.py | gengwg/leetcode | 0af5256ec98149ef5863f3bba78ed1e749650f6e | [
"Apache-2.0"
] | null | null | null | 233_number_of_digt_one.py | gengwg/leetcode | 0af5256ec98149ef5863f3bba78ed1e749650f6e | [
"Apache-2.0"
] | 3 | 2020-06-17T05:48:52.000Z | 2021-01-02T06:08:25.000Z | # Given an integer n, count the total number of digit 1 appearing
# in all non-negative integers less than or equal to n.
#
# For example:
# Given n = 13,
# Return 6, because digit 1 occurred in the following numbers:
# 1, 10, 11, 12, 13.
#
class Solution:
def countDigitOne(self, n):
"""
:type n: ... | 22.75 | 65 | 0.548452 | 143 | 1,001 | 3.783217 | 0.475524 | 0.022181 | 0.048059 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.053628 | 0.366633 | 1,001 | 43 | 66 | 23.27907 | 0.799685 | 0.280719 | 0 | 0 | 0 | 0 | 0.017978 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.066667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
294bff20d8c499704a706ccaf6f51e0e5fd8ce4d | 5,821 | py | Python | exercises/ali/cartpole-MCTS/cartpole.py | alik604/ra | 6058a9adb47db93bb86bcb2c224930c5731d663d | [
"Unlicense"
] | null | null | null | exercises/ali/cartpole-MCTS/cartpole.py | alik604/ra | 6058a9adb47db93bb86bcb2c224930c5731d663d | [
"Unlicense"
] | 5 | 2021-03-26T01:30:13.000Z | 2021-04-22T22:19:03.000Z | exercises/ali/cartpole-MCTS/cartpole.py | alik604/ra | 6058a9adb47db93bb86bcb2c224930c5731d663d | [
"Unlicense"
] | 1 | 2021-05-05T00:57:43.000Z | 2021-05-05T00:57:43.000Z | # from https://github.com/kvwoerden/mcts-cartpole
# ---------------------------------------------------------------------------- #
# Imports #
# ---------------------------------------------------------------------------- #
import os
import time
impor... | 39.067114 | 219 | 0.519842 | 608 | 5,821 | 4.827303 | 0.28125 | 0.040886 | 0.046337 | 0.02862 | 0.326065 | 0.274957 | 0.241908 | 0.222147 | 0.222147 | 0.190119 | 0 | 0.009093 | 0.263185 | 5,821 | 148 | 220 | 39.331081 | 0.675216 | 0 | 0 | 0.285714 | 0 | 0.008929 | 0.214567 | 0.005567 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.089286 | null | null | 0.026786 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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.