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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9f93dc547b1714d0a6c933cc6cbe2d7d3183b297 | 408 | py | Python | DiseaseIdentifier/DiseaseClassify/migrations/0002_auto_20190515_0951.py | Rosan93/Disease-Identifier | 6bf311c833ecaa3769ebf09c6d752a9ec7ebfdb4 | [
"Apache-2.0"
] | null | null | null | DiseaseIdentifier/DiseaseClassify/migrations/0002_auto_20190515_0951.py | Rosan93/Disease-Identifier | 6bf311c833ecaa3769ebf09c6d752a9ec7ebfdb4 | [
"Apache-2.0"
] | 18 | 2020-01-28T22:44:38.000Z | 2021-06-10T18:55:20.000Z | DiseaseIdentifier/DiseaseClassify/migrations/0002_auto_20190515_0951.py | RoshanGurungSr/Disease-Identifier | 6bf311c833ecaa3769ebf09c6d752a9ec7ebfdb4 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 2.2.1 on 2019-05-15 09:51
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('DiseaseClassify', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='uploadimage',
name='predict_i... | 21.473684 | 63 | 0.612745 | 42 | 408 | 5.833333 | 0.785714 | 0.097959 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.063973 | 0.272059 | 408 | 18 | 64 | 22.666667 | 0.760943 | 0.110294 | 0 | 0 | 1 | 0 | 0.180055 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9f9633dc043fbd091a7a7a4649ff0260baec1d6d | 1,951 | py | Python | rlagent.py | Ankur-Deka/Emergent-Multiagent-Strategies | 1486f0d772429ef8722055e1b9ebda841f9d2518 | [
"MIT"
] | 23 | 2020-07-05T11:13:00.000Z | 2022-01-28T00:24:41.000Z | rlagent.py | Ankur-Deka/Emergent-Multiagent-Strategies | 1486f0d772429ef8722055e1b9ebda841f9d2518 | [
"MIT"
] | 2 | 2020-09-07T19:09:40.000Z | 2021-06-02T02:21:51.000Z | rlagent.py | Ankur-Deka/Emergent-Multiagent-Strategies | 1486f0d772429ef8722055e1b9ebda841f9d2518 | [
"MIT"
] | 8 | 2020-07-06T07:24:37.000Z | 2021-09-27T20:28:25.000Z | from rlcore.algo import PPO
from rlcore.storage import RolloutStorage
class Neo(object):
def __init__(self, args, policy, obs_shape, action_space):
super().__init__()
self.obs_shape = obs_shape
self.action_space = action_space
self.actor_critic = policy # it is MPNN instance
self.rollou... | 38.254902 | 117 | 0.720656 | 278 | 1,951 | 4.820144 | 0.348921 | 0.116418 | 0.044776 | 0.026866 | 0.080597 | 0.046269 | 0.046269 | 0 | 0 | 0 | 0 | 0.001241 | 0.173757 | 1,951 | 51 | 118 | 38.254902 | 0.830025 | 0.054331 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.277778 | false | 0 | 0.055556 | 0.027778 | 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 |
9f984887cdc5dfcbc236d26f5c00d6485735aeb5 | 561 | py | Python | Alihossein/contest/8901/8901.py | alihossein/quera-answers | f81ac845c13ea419edc65a23d4dda8f83e79bafa | [
"MIT"
] | null | null | null | Alihossein/contest/8901/8901.py | alihossein/quera-answers | f81ac845c13ea419edc65a23d4dda8f83e79bafa | [
"MIT"
] | null | null | null | Alihossein/contest/8901/8901.py | alihossein/quera-answers | f81ac845c13ea419edc65a23d4dda8f83e79bafa | [
"MIT"
] | null | null | null | # question : https://quera.ir/problemset/contest/8901
x_n = input().split(' ')
x = x_n[1]
n = int(x_n[0])
default_value = {
'L': 0,
'M': 0,
'R': 0,
}
movements = []
for one_input in range(n):
movements.append(input().split(' '))
default_value[x] = 1
for one_movement in movements:
temp = default_va... | 22.44 | 71 | 0.643494 | 86 | 561 | 4 | 0.372093 | 0.27907 | 0.113372 | 0.104651 | 0.223837 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033259 | 0.196078 | 561 | 24 | 72 | 23.375 | 0.72949 | 0.090909 | 0 | 0 | 0 | 0 | 0.009843 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.05 | 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 |
9f9dd18cb8d0a85e4dc5406095cc86aa029acb6f | 556 | py | Python | py/codeforces/842C.py | shhuan/algorithms | 2830c7e2ada8dfd3dcdda7c06846116d4f944a27 | [
"MIT"
] | null | null | null | py/codeforces/842C.py | shhuan/algorithms | 2830c7e2ada8dfd3dcdda7c06846116d4f944a27 | [
"MIT"
] | null | null | null | py/codeforces/842C.py | shhuan/algorithms | 2830c7e2ada8dfd3dcdda7c06846116d4f944a27 | [
"MIT"
] | 1 | 2022-03-09T04:52:55.000Z | 2022-03-09T04:52:55.000Z | # -*- coding: utf-8 -*-
import math
import collections
import bisect
import heapq
import time
import random
import itertools
import sys
"""
created by shhuan at 2017/10/20 15:45
"""
def gcd(a, b):
if b == 0:
return a
return gcd(b, a%b)
N = 2*10**5+5
vis = [0] * N
G = collections.defaultdict(list... | 12.636364 | 40 | 0.543165 | 96 | 556 | 3.145833 | 0.489583 | 0.019868 | 0.033113 | 0.05298 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.070496 | 0.311151 | 556 | 44 | 41 | 12.636364 | 0.718016 | 0.03777 | 0 | 0.071429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.285714 | 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 |
9fa11d642ae59e13149e894a36502cffcd3f5e9c | 1,011 | py | Python | scraper/scraper.py | keanu-xoren/budget-generator | 03bc382975d977b8904c15080f442992b8e95916 | [
"Unlicense"
] | null | null | null | scraper/scraper.py | keanu-xoren/budget-generator | 03bc382975d977b8904c15080f442992b8e95916 | [
"Unlicense"
] | null | null | null | scraper/scraper.py | keanu-xoren/budget-generator | 03bc382975d977b8904c15080f442992b8e95916 | [
"Unlicense"
] | null | null | null | from bs4 import BeautifulSoup
import requests
TEST_CITY = {
"city" : "Oakland",
"state" : "IL",
"country" : "United States"
}
NUMBEO_URL = "https://www.numbeo.com/cost-of-living/in/"
def formatLocationURL(city, country='', state=''):
return ('-').join(filter(None, city.split(' ') + state.split(' ') ... | 25.923077 | 126 | 0.659743 | 130 | 1,011 | 4.961538 | 0.415385 | 0.062016 | 0.052713 | 0.062016 | 0.393798 | 0.393798 | 0.393798 | 0.393798 | 0.393798 | 0.393798 | 0 | 0.00123 | 0.195846 | 1,011 | 38 | 127 | 26.605263 | 0.792128 | 0.081108 | 0 | 0.190476 | 0 | 0 | 0.176216 | 0 | 0 | 0 | 0 | 0.026316 | 0 | 1 | 0.095238 | false | 0.047619 | 0.095238 | 0.047619 | 0.285714 | 0.047619 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
9fad7bab6264c1c55025598c4e622fea32054fb2 | 677 | py | Python | Curso_Em_Video_Python/ex051.py | ThallesTorres/Curso_Em_Video_Python | 95ffbff5a03f11fee41df746604dfe435f385a3b | [
"MIT"
] | null | null | null | Curso_Em_Video_Python/ex051.py | ThallesTorres/Curso_Em_Video_Python | 95ffbff5a03f11fee41df746604dfe435f385a3b | [
"MIT"
] | null | null | null | Curso_Em_Video_Python/ex051.py | ThallesTorres/Curso_Em_Video_Python | 95ffbff5a03f11fee41df746604dfe435f385a3b | [
"MIT"
] | null | null | null | # Ex: 051 - Desenvolva um programa que leia o primeiro termo e a razão de uma
# PA. No final. mostre os 10 primeiros termos dessa progressão.
print('''
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
--Seja bem-vindo!
--Exercício 051
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
''')
print('--Progressão Aritmética\n'
'--... | 26.038462 | 78 | 0.488922 | 72 | 677 | 4.597222 | 0.75 | 0.048338 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028725 | 0.177253 | 677 | 25 | 79 | 27.08 | 0.56553 | 0.202363 | 0 | 0.263158 | 0 | 0 | 0.617188 | 0.273438 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.263158 | 0 | 0 | 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 |
9fae13b10399627df2626c37a331fe9451ebc942 | 318 | py | Python | post-sermon/extract-meta.py | tstephen/cbc-gsuite | 94e910e902bbd53ddabd8d14b1a1da344f42cac4 | [
"Apache-2.0"
] | null | null | null | post-sermon/extract-meta.py | tstephen/cbc-gsuite | 94e910e902bbd53ddabd8d14b1a1da344f42cac4 | [
"Apache-2.0"
] | null | null | null | post-sermon/extract-meta.py | tstephen/cbc-gsuite | 94e910e902bbd53ddabd8d14b1a1da344f42cac4 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python3
#
# Extract audio metadata from m4a file
#
# Author: Tim Stephenson
# Date: 04 Jan 2021
#
import glob
from mutagen.mp4 import MP4
import numpy as np
filez = glob.glob("2020_12_27_AM.m4a")
mp4file = MP4(filez[0])
for tag in mp4file.tags:
print('{}: {}'.format(tag, mp4file.tags[tag]))
| 18.705882 | 50 | 0.679245 | 50 | 318 | 4.26 | 0.72 | 0.084507 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.092308 | 0.18239 | 318 | 16 | 51 | 19.875 | 0.726923 | 0.305031 | 0 | 0 | 0 | 0 | 0.107477 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 0.428571 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
9fb34021793f4ae930716a981e4f33049f09d9bf | 2,152 | py | Python | util.py | ZiyaoWei/pyMatrixProfile | 1c88e1558e2bc5210d328d253572f5ff7fab1a5e | [
"MIT"
] | 29 | 2017-08-13T04:24:16.000Z | 2021-12-24T07:51:08.000Z | util.py | ZiyaoWei/pyMatrixProfile | 1c88e1558e2bc5210d328d253572f5ff7fab1a5e | [
"MIT"
] | 2 | 2018-02-12T11:58:53.000Z | 2018-08-20T19:51:47.000Z | util.py | ZiyaoWei/pyMatrixProfile | 1c88e1558e2bc5210d328d253572f5ff7fab1a5e | [
"MIT"
] | 15 | 2017-08-19T23:16:45.000Z | 2019-09-21T04:53:43.000Z | import numpy as np
import numpy.fft as fft
def zNormalize(ts):
"""Return a z-normalized version of the time series ts.
>>> zNormalize(np.array([1.0, 1.0, 1.0]))
array([ 0., 0., 0.])
>>> np.round(zNormalize(np.array([1.0, 2.0, 0.0])), 3)
array([ 0. , 1.225, -1.225])
>>> np.round(zNormaliz... | 30.742857 | 114 | 0.546468 | 353 | 2,152 | 3.308782 | 0.226629 | 0.025685 | 0.020548 | 0.023973 | 0.309075 | 0.220034 | 0.203767 | 0.168664 | 0.157534 | 0.157534 | 0 | 0.08369 | 0.239312 | 2,152 | 69 | 115 | 31.188406 | 0.629811 | 0 | 0 | 0 | 0 | 0 | 0.090744 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.090909 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9fb8c8f25f414f03264984bbb5552b7247132d93 | 13,946 | py | Python | imghide.py | heyDevlopr/imghide | ff065c14c9bee38d96438c4917edd185fe064b00 | [
"MIT"
] | null | null | null | imghide.py | heyDevlopr/imghide | ff065c14c9bee38d96438c4917edd185fe064b00 | [
"MIT"
] | null | null | null | imghide.py | heyDevlopr/imghide | ff065c14c9bee38d96438c4917edd185fe064b00 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
import tkinter as tk
from tkinter import messagebox
from PIL import ImageTk
from PIL import Image
from os import path
from Crypto.Cipher import AES
from Crypto.Hash import SHA256
from Crypto import Random
import base64
from sys import exit
global mainBgColr, secBgColr, theme
mainBgColr = "#121212"
... | 37.090426 | 174 | 0.616019 | 1,840 | 13,946 | 4.575543 | 0.180978 | 0.03789 | 0.03207 | 0.040622 | 0.493527 | 0.461337 | 0.42214 | 0.402186 | 0.369759 | 0.308825 | 0 | 0.037395 | 0.242579 | 13,946 | 375 | 175 | 37.189333 | 0.759633 | 0.045461 | 0 | 0.351351 | 0 | 0 | 0.134216 | 0.009479 | 0 | 0 | 0 | 0 | 0 | 1 | 0.040541 | false | 0.067568 | 0.033784 | 0 | 0.101351 | 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 |
9fba0aed2849388fa22f9812223d3a142c659f0d | 1,931 | py | Python | tests/unit/exponential_distribution_test.py | konradarchicinski/stpp | 8e4d959d96cd79e74c866e75e32e961c78c56fd1 | [
"MIT"
] | 1 | 2021-12-01T05:41:27.000Z | 2021-12-01T05:41:27.000Z | tests/unit/exponential_distribution_test.py | konradarchicinski/stpp | 8e4d959d96cd79e74c866e75e32e961c78c56fd1 | [
"MIT"
] | 5 | 2021-05-17T07:35:58.000Z | 2021-05-17T07:38:38.000Z | tests/unit/exponential_distribution_test.py | konradarchicinski/stpp | 8e4d959d96cd79e74c866e75e32e961c78c56fd1 | [
"MIT"
] | null | null | null | import unittest
import fistpp as fs
class ExponetialDistributionTests(unittest.TestCase):
def setUp(self):
self.expdist = fs.ExponentialDistribution()
self.expected_values = [
0.001000500333583534, 0.005012541823544286, 0.010050335853501450,
0.025317807984289897, 0.05129329... | 38.62 | 77 | 0.572242 | 227 | 1,931 | 4.770925 | 0.325991 | 0.099723 | 0.066482 | 0.063712 | 0.184672 | 0.129271 | 0.129271 | 0.129271 | 0.129271 | 0.129271 | 0 | 0.309146 | 0.314863 | 1,931 | 50 | 78 | 38.62 | 0.509448 | 0 | 0 | 0.04878 | 0 | 0 | 0.033644 | 0 | 0 | 0 | 0 | 0 | 0.121951 | 1 | 0.146341 | false | 0 | 0.04878 | 0 | 0.219512 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9fc27f78537c7270eb5d8086381b1aab8119fa27 | 4,142 | py | Python | midonet/neutron/tests/unit/test_midonet_plugin.py | midokura/python-neutron-plugin-midonet | a123b0f769c4a0d218bcd6764383ab6c5c9351df | [
"Apache-2.0"
] | null | null | null | midonet/neutron/tests/unit/test_midonet_plugin.py | midokura/python-neutron-plugin-midonet | a123b0f769c4a0d218bcd6764383ab6c5c9351df | [
"Apache-2.0"
] | null | null | null | midonet/neutron/tests/unit/test_midonet_plugin.py | midokura/python-neutron-plugin-midonet | a123b0f769c4a0d218bcd6764383ab6c5c9351df | [
"Apache-2.0"
] | 1 | 2015-01-14T16:55:34.000Z | 2015-01-14T16:55:34.000Z | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright (C) 2012 Midokura Japan K.K.
# Copyright (C) 2013 Midokura PTE LTD
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of th... | 34.231405 | 78 | 0.711009 | 467 | 4,142 | 6.11349 | 0.411135 | 0.0662 | 0.028021 | 0.030823 | 0.09387 | 0.049037 | 0 | 0 | 0 | 0 | 0 | 0.011743 | 0.218735 | 4,142 | 120 | 79 | 34.516667 | 0.870519 | 0.238532 | 0 | 0.0625 | 0 | 0 | 0.066773 | 0.03099 | 0 | 0 | 0 | 0 | 0.03125 | 1 | 0.0625 | false | 0.0625 | 0.1875 | 0 | 0.40625 | 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 |
9fc44c4df166eb917e3ede8aaff6834bfa54541d | 293 | py | Python | 70/main.py | pauvrepetit/leetcode | 6ad093cf543addc4dfa52d72a8e3c0d05a23b771 | [
"MIT"
] | null | null | null | 70/main.py | pauvrepetit/leetcode | 6ad093cf543addc4dfa52d72a8e3c0d05a23b771 | [
"MIT"
] | null | null | null | 70/main.py | pauvrepetit/leetcode | 6ad093cf543addc4dfa52d72a8e3c0d05a23b771 | [
"MIT"
] | null | null | null | # 70. 爬楼梯
#
# 20210716
# huao
from math import comb
class Solution:
def climbStairs(self, n: int) -> int:
count = 0
for i in range(n // 2 + 1):
count += comb(n - i, i)
return count
print(Solution().climbStairs(2))
print(Solution().climbStairs(3))
| 14.65 | 41 | 0.566553 | 40 | 293 | 4.15 | 0.65 | 0.156627 | 0.289157 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.072816 | 0.296928 | 293 | 19 | 42 | 15.421053 | 0.73301 | 0.071672 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0 | 0.444444 | 0.222222 | 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 |
9fc63555a5d97adde7073aad022b494d17f2b105 | 5,586 | py | Python | tests/cors_test.py | aio-libs-abandoned/aiorest | 3caf0ad8018d96bd681843b54aa07c86803fbec8 | [
"MIT"
] | 3 | 2018-02-07T04:16:53.000Z | 2018-04-26T21:56:59.000Z | tests/cors_test.py | aio-libs-abandoned/aiorest | 3caf0ad8018d96bd681843b54aa07c86803fbec8 | [
"MIT"
] | null | null | null | tests/cors_test.py | aio-libs-abandoned/aiorest | 3caf0ad8018d96bd681843b54aa07c86803fbec8 | [
"MIT"
] | null | null | null | import unittest
import asyncio
import aiohttp
import contextlib
from aiorest import RESTServer
class REST:
def __init__(self, test):
self.test = test
def index(self, request):
return {'status': 'ok'}
def check_origin(self, request):
return {'status': 'ok'}
class CorsTests(uni... | 37.24 | 79 | 0.492839 | 519 | 5,586 | 5.211946 | 0.17341 | 0.04732 | 0.093161 | 0.093161 | 0.693531 | 0.657301 | 0.657301 | 0.63549 | 0.632902 | 0.627357 | 0 | 0.010756 | 0.400823 | 5,586 | 149 | 80 | 37.489933 | 0.797431 | 0 | 0 | 0.578512 | 0 | 0 | 0.119048 | 0.075009 | 0 | 0 | 0 | 0 | 0.198347 | 1 | 0.115702 | false | 0 | 0.041322 | 0.016529 | 0.190083 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9fc79d7efe3f419214ba720dac6afa62e6fb8b4d | 6,638 | py | Python | tests/test_prelude_tagblock.py | iwschris/ezodf2 | 061c4aa3f26e9157ad46155d8ce92db7187b0574 | [
"MIT"
] | 4 | 2015-03-15T22:32:35.000Z | 2019-12-23T12:13:13.000Z | tests/test_prelude_tagblock.py | iwschris/ezodf2 | 061c4aa3f26e9157ad46155d8ce92db7187b0574 | [
"MIT"
] | 3 | 2017-08-17T09:36:42.000Z | 2021-12-13T19:43:28.000Z | tests/test_prelude_tagblock.py | iwschris/ezodf2 | 061c4aa3f26e9157ad46155d8ce92db7187b0574 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
#coding:utf-8
# Purpose: test node organizer
# Created: 31.01.2011
# Copyright (C) 2011, Manfred Moitzi
# License: MIT
from __future__ import unicode_literals, print_function, division
__author__ = "mozman <mozman@gmx.at>"
import unittest
# test helpers
from mytesttools import create... | 32.067633 | 66 | 0.643567 | 806 | 6,638 | 5.057072 | 0.167494 | 0.169284 | 0.105986 | 0.14107 | 0.622424 | 0.600589 | 0.513739 | 0.425908 | 0.409715 | 0.409715 | 0 | 0.012547 | 0.231546 | 6,638 | 206 | 67 | 32.223301 | 0.786512 | 0.023802 | 0 | 0.444444 | 0 | 0 | 0.05873 | 0 | 0 | 0 | 0 | 0 | 0.361111 | 1 | 0.277778 | false | 0 | 0.027778 | 0.006944 | 0.361111 | 0.006944 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
9fca9163cf19b18a815beb45baf591b0fdf30b0d | 4,159 | py | Python | server.py | RobinKarlsson/protobuf-chat | 8f88d534ce82b30f4974ccf29b502848bc4617f8 | [
"MIT"
] | 1 | 2018-05-04T03:08:20.000Z | 2018-05-04T03:08:20.000Z | server.py | RobinKarlsson/protobuf-chat | 8f88d534ce82b30f4974ccf29b502848bc4617f8 | [
"MIT"
] | null | null | null | server.py | RobinKarlsson/protobuf-chat | 8f88d534ce82b30f4974ccf29b502848bc4617f8 | [
"MIT"
] | null | null | null | import protobuf
import select, socket, struct
class ChatServer:
def __init__(self, host = "", port = 8942):
self.port = port
self.host = host
#inet streaming server socket
self.ssocket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
#bind to host and port
self.ssocket.bind((self.host, self.port))
... | 24.755952 | 146 | 0.685982 | 550 | 4,159 | 5.16 | 0.285455 | 0.028541 | 0.027484 | 0.021142 | 0.148696 | 0.121212 | 0.097252 | 0.097252 | 0.064834 | 0.064834 | 0 | 0.003943 | 0.207261 | 4,159 | 167 | 147 | 24.904192 | 0.85684 | 0.190911 | 0 | 0 | 0 | 0 | 0.046502 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.030303 | 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 |
9fccbbaccb83a753732798efa876f1b3e3ea7bef | 282 | py | Python | tensorflow_impl/rsrcs/aggregator_tf/average.py | sahareslami/Garfield | b620816fe88b2cb2cef4a889342e6b1ad32a0395 | [
"MIT"
] | 8 | 2021-02-03T15:13:44.000Z | 2022-02-24T18:47:13.000Z | tensorflow_impl/rsrcs/aggregator_tf/average.py | sahareslami/Garfield | b620816fe88b2cb2cef4a889342e6b1ad32a0395 | [
"MIT"
] | 2 | 2021-09-13T14:36:10.000Z | 2022-01-26T16:33:16.000Z | tensorflow_impl/rsrcs/aggregator_tf/average.py | sahareslami/Garfield | b620816fe88b2cb2cef4a889342e6b1ad32a0395 | [
"MIT"
] | 8 | 2020-12-12T12:53:53.000Z | 2021-11-30T05:58:08.000Z | import numpy as np
class Average:
@staticmethod
def aggregate(gradients):
assert len(gradients) > 0, "Empty list of gradient to aggregate"
if len(gradients) > 1:
return np.mean(gradients, axis=0)
else:
return gradients[0]
| 20.142857 | 72 | 0.602837 | 34 | 282 | 5 | 0.705882 | 0.141176 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020725 | 0.315603 | 282 | 13 | 73 | 21.692308 | 0.860104 | 0 | 0 | 0 | 0 | 0 | 0.124113 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 1 | 0.111111 | false | 0 | 0.111111 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
4c80b5ed57d0be789483b47d24a343bce3d2da4a | 1,975 | py | Python | setup_test.py | nahidupa/grr | 100a9d85ef2abb234e12e3ac2623caffb4116be7 | [
"Apache-2.0"
] | 1 | 2016-02-13T15:40:20.000Z | 2016-02-13T15:40:20.000Z | setup_test.py | nahidupa/grr | 100a9d85ef2abb234e12e3ac2623caffb4116be7 | [
"Apache-2.0"
] | 3 | 2020-09-11T12:54:50.000Z | 2020-09-11T12:55:01.000Z | setup_test.py | nahidupa/grr | 100a9d85ef2abb234e12e3ac2623caffb4116be7 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
"""A quick script to verify that setup.py actually installs all files."""
# pylint: disable=g-import-not-at-top
import os
import re
try:
import setuptools
setuptools.setup = lambda *args, **kw: None
except ImportError:
from distutils import core
core.setup = lambda *args, **kw: None
im... | 26.689189 | 78 | 0.663291 | 276 | 1,975 | 4.663043 | 0.416667 | 0.042735 | 0.02331 | 0.026418 | 0.174048 | 0.113442 | 0.113442 | 0.113442 | 0.113442 | 0.113442 | 0 | 0.000629 | 0.194937 | 1,975 | 73 | 79 | 27.054795 | 0.808805 | 0.173165 | 0 | 0.14 | 0 | 0 | 0.133376 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.12 | null | null | 0.04 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
4c80ce7db1ccdf54f4d2169909fb3c6235305c07 | 542 | py | Python | vbb_backend/users/migrations/0009_auto_20210320_1800.py | patrickb42/backend-vbb-portal | 88362bc5b4d5cab95aa67e12694f98371604b65a | [
"MIT"
] | 3 | 2021-04-14T02:59:09.000Z | 2021-06-08T00:17:27.000Z | vbb_backend/users/migrations/0009_auto_20210320_1800.py | patrickb42/backend-vbb-portal | 88362bc5b4d5cab95aa67e12694f98371604b65a | [
"MIT"
] | 81 | 2020-12-08T00:11:52.000Z | 2021-08-09T18:13:32.000Z | vbb_backend/users/migrations/0009_auto_20210320_1800.py | patrickb42/backend-vbb-portal | 88362bc5b4d5cab95aa67e12694f98371604b65a | [
"MIT"
] | 5 | 2021-01-12T04:50:26.000Z | 2021-06-04T02:00:03.000Z | # Generated by Django 3.0.10 on 2021-03-20 18:00
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0008_auto_20210320_1759'),
]
operations = [
migrations.AlterField(
model_name='newslettersubscriber',
name... | 28.526316 | 184 | 0.614391 | 58 | 542 | 5.637931 | 0.87931 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.131579 | 0.228782 | 542 | 18 | 185 | 30.111111 | 0.650718 | 0.084871 | 0 | 0 | 1 | 0 | 0.218623 | 0.046559 | 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 |
4c839db449ac68daf937fc644576977c84b3940c | 499 | py | Python | stoa.py | petehague/stoa | ad2f292d7586aba6b1c4f229ab041404c4dc0413 | [
"Apache-2.0"
] | null | null | null | stoa.py | petehague/stoa | ad2f292d7586aba6b1c4f229ab041404c4dc0413 | [
"Apache-2.0"
] | null | null | null | stoa.py | petehague/stoa | ad2f292d7586aba6b1c4f229ab041404c4dc0413 | [
"Apache-2.0"
] | 1 | 2018-06-28T11:28:40.000Z | 2018-06-28T11:28:40.000Z | #!/usr/bin/env python
import os
import sys
import re
params = {"port": 9000,
"target": "./example"}
if len(sys.argv)>1:
for arg in sys.argv:
tokens = re.split("=",arg.strip())
if len(tokens)>1:
var = tokens[0]
value = tokens[1]
params[var] = value
#TODO: make this a more python... | 22.681818 | 77 | 0.627255 | 74 | 499 | 4.22973 | 0.581081 | 0.076677 | 0.134185 | 0.102236 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01995 | 0.196393 | 499 | 21 | 78 | 23.761905 | 0.760599 | 0.164329 | 0 | 0 | 0 | 0 | 0.221687 | 0 | 0 | 0 | 0 | 0.047619 | 0 | 1 | 0 | false | 0 | 0.2 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4c84460c05b17bcc9bd414baa9d36bea09dc97f3 | 1,179 | py | Python | plato/internal/weak_id_dict.py | jgosmann/plato | 25c1612debecadd0d1be6226e7ff3b5591feae00 | [
"MIT"
] | null | null | null | plato/internal/weak_id_dict.py | jgosmann/plato | 25c1612debecadd0d1be6226e7ff3b5591feae00 | [
"MIT"
] | 5 | 2021-04-03T19:06:16.000Z | 2021-06-06T12:47:27.000Z | plato/internal/weak_id_dict.py | py-plato/plato | 25c1612debecadd0d1be6226e7ff3b5591feae00 | [
"MIT"
] | null | null | null | """Provides a dictionary indexed by object identity with a weak reference."""
import weakref
from typing import Any, Dict, Generic, Iterator, TypeVar
T = TypeVar("T")
class WeakIdDict(Generic[T]):
"""Dictionary using object identity with a weak reference as key."""
data: Dict[int, T]
refs: Dict[int, we... | 26.2 | 77 | 0.602205 | 165 | 1,179 | 4.018182 | 0.309091 | 0.060332 | 0.060332 | 0.058824 | 0.244344 | 0.244344 | 0.096531 | 0.096531 | 0.096531 | 0.096531 | 0 | 0 | 0.279898 | 1,179 | 44 | 78 | 26.795455 | 0.780919 | 0.113656 | 0 | 0.206897 | 0 | 0 | 0.000967 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.241379 | false | 0 | 0.068966 | 0.068966 | 0.482759 | 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 |
4c8b40a5e0b3766a8e287eb5d28d415c8ef649af | 1,197 | py | Python | lib/abook.py | ids1024/Utilities | 1b9a35a0e2b1bb1aa324d76863b3073809e5b6b4 | [
"MIT"
] | null | null | null | lib/abook.py | ids1024/Utilities | 1b9a35a0e2b1bb1aa324d76863b3073809e5b6b4 | [
"MIT"
] | null | null | null | lib/abook.py | ids1024/Utilities | 1b9a35a0e2b1bb1aa324d76863b3073809e5b6b4 | [
"MIT"
] | null | null | null | import os
from configparser import ConfigParser
infile = os.path.expanduser("~/.abook/addressbook")
class AddressBook(object):
def __init__(self, contacts):
self.contacts = contacts
for i in self.contacts:
i["email"] = list(filter(None, i.get("email", '').split(",")))
def __getite... | 29.195122 | 74 | 0.580618 | 146 | 1,197 | 4.616438 | 0.349315 | 0.178042 | 0.035608 | 0.04451 | 0.086053 | 0.059347 | 0 | 0 | 0 | 0 | 0 | 0 | 0.302423 | 1,197 | 40 | 75 | 29.925 | 0.807186 | 0 | 0 | 0.060606 | 0 | 0 | 0.036759 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.060606 | 0.060606 | 0.515152 | 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 |
4c93c95e5c7d2b6cb6139e7002451b6042168d54 | 3,778 | py | Python | tests/unit/test_comments.py | severinbeauvais/business-schemas | 795eb235cbfbf8b00b4c9d834da73df1a307af05 | [
"Apache-2.0"
] | null | null | null | tests/unit/test_comments.py | severinbeauvais/business-schemas | 795eb235cbfbf8b00b4c9d834da73df1a307af05 | [
"Apache-2.0"
] | null | null | null | tests/unit/test_comments.py | severinbeauvais/business-schemas | 795eb235cbfbf8b00b4c9d834da73df1a307af05 | [
"Apache-2.0"
] | null | null | null | # Copyright © 2019 Province of British Columbia
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agr... | 29.748031 | 81 | 0.685283 | 501 | 3,778 | 5.057884 | 0.249501 | 0.049724 | 0.046172 | 0.074586 | 0.529597 | 0.479479 | 0.475927 | 0.439621 | 0.400158 | 0.36543 | 0 | 0.003082 | 0.227104 | 3,778 | 126 | 82 | 29.984127 | 0.864384 | 0.318158 | 0 | 0.753247 | 0 | 0 | 0.070663 | 0 | 0 | 0 | 0 | 0 | 0.116883 | 1 | 0.090909 | false | 0 | 0.038961 | 0 | 0.12987 | 0.233766 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4ca4fa5df403bbe21027e6b397acaec44547b78d | 882 | py | Python | test/test_add_contact.py | piersto/python_training_44 | 83eba193d6783047c196a38e8d701d5409260bfb | [
"Apache-2.0"
] | null | null | null | test/test_add_contact.py | piersto/python_training_44 | 83eba193d6783047c196a38e8d701d5409260bfb | [
"Apache-2.0"
] | null | null | null | test/test_add_contact.py | piersto/python_training_44 | 83eba193d6783047c196a38e8d701d5409260bfb | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
from model.contact import Contact
def test_add_contact(app):
app.contact.open_add_new_contact_page()
list_of_contacts_old = app.contact.list_of_contacts()
contact = Contact(firstname='Ivan',
middlename='Petrovich', lastname='Kovaliov',
... | 36.75 | 117 | 0.679138 | 114 | 882 | 4.885965 | 0.350877 | 0.086176 | 0.201077 | 0.122083 | 0.391382 | 0.147217 | 0.147217 | 0.147217 | 0.147217 | 0 | 0 | 0.005714 | 0.206349 | 882 | 23 | 118 | 38.347826 | 0.79 | 0.02381 | 0 | 0.133333 | 0 | 0 | 0.036173 | 0 | 0 | 0 | 0 | 0 | 0.133333 | 1 | 0.133333 | false | 0 | 0.066667 | 0 | 0.2 | 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 |
4ca69d9ec59c894cca08d1bbe844911e29e119d2 | 4,196 | py | Python | src/mimic_preproc/extract-scripts/get_cohort_baseline_info.py | aminzadenoori/POPCORN-POMDP | a2867bf40f6b89c9a01456dd9cd9ea2f2d20d9fd | [
"MIT"
] | 6 | 2020-03-01T03:33:52.000Z | 2021-08-13T10:57:49.000Z | src/mimic_preproc/extract-scripts/get_cohort_baseline_info.py | aminzadenoori/POPCORN-POMDP | a2867bf40f6b89c9a01456dd9cd9ea2f2d20d9fd | [
"MIT"
] | 2 | 2021-02-05T16:02:05.000Z | 2021-09-17T14:37:00.000Z | src/mimic_preproc/extract-scripts/get_cohort_baseline_info.py | aminzadenoori/POPCORN-POMDP | a2867bf40f6b89c9a01456dd9cd9ea2f2d20d9fd | [
"MIT"
] | 1 | 2021-08-13T10:57:51.000Z | 2021-08-13T10:57:51.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
File to build out a cohort using the ADMISSIONS, ICUSTAYS, and PATIENTS tables in raw mimic data.
@author: josephfutoma
"""
import numpy as np
import pandas as pd
import os
from datetime import datetime
import pickle
from time import time
PATH_TO_REPO = "XXX"
###... | 43.257732 | 149 | 0.750477 | 672 | 4,196 | 4.452381 | 0.297619 | 0.138369 | 0.036096 | 0.054144 | 0.307821 | 0.211898 | 0.148062 | 0.120655 | 0.120655 | 0.091578 | 0 | 0.012404 | 0.096997 | 4,196 | 96 | 150 | 43.708333 | 0.77725 | 0.289085 | 0 | 0 | 0 | 0 | 0.306517 | 0.037339 | 0 | 0 | 0 | 0.010417 | 0 | 1 | 0 | false | 0 | 0.12 | 0 | 0.12 | 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 |
4caabbbef9f49041b0ed4247fc627242dd587ea5 | 3,964 | py | Python | amy/workshops/migrations/0186_extend_Curriculum.py | code-review-doctor/amy | 268c1a199510457891459f3ddd73fcce7fe2b974 | [
"MIT"
] | 53 | 2015-01-10T17:39:19.000Z | 2019-06-12T17:36:34.000Z | amy/workshops/migrations/0186_extend_Curriculum.py | code-review-doctor/amy | 268c1a199510457891459f3ddd73fcce7fe2b974 | [
"MIT"
] | 1,176 | 2015-01-02T06:32:47.000Z | 2019-06-18T11:57:47.000Z | amy/workshops/migrations/0186_extend_Curriculum.py | code-review-doctor/amy | 268c1a199510457891459f3ddd73fcce7fe2b974 | [
"MIT"
] | 44 | 2015-01-03T15:08:56.000Z | 2019-06-09T05:33:08.000Z | # Generated by Django 2.1.7 on 2019-07-18 15:37
from django.db import migrations, models
import django.db.models.deletion
def extend_current_Curricula(apps, schema_editor):
"""Update existing Curricula with new fields."""
Curriculum = apps.get_model('workshops', 'Curriculum')
data = {
'swc-othe... | 33.59322 | 267 | 0.545913 | 385 | 3,964 | 5.574026 | 0.332468 | 0.090867 | 0.048928 | 0.084809 | 0.414725 | 0.389562 | 0.21808 | 0.205033 | 0.109972 | 0.05685 | 0 | 0.008589 | 0.32442 | 3,964 | 117 | 268 | 33.880342 | 0.792756 | 0.022452 | 0 | 0.504762 | 1 | 0.019048 | 0.303438 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.009524 | false | 0 | 0.019048 | 0 | 0.057143 | 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 |
4cabb489c6b40b4df7d35ae56f86041adb6fef91 | 1,329 | py | Python | python/htcrack/htcrack.py | Ethic41/codes | 865658ac267336846e78a63b0214fb1535e17df3 | [
"MIT"
] | 2 | 2018-04-28T14:16:35.000Z | 2018-04-28T14:16:39.000Z | python/htcrack/htcrack.py | Ethic41/codes | 865658ac267336846e78a63b0214fb1535e17df3 | [
"MIT"
] | null | null | null | python/htcrack/htcrack.py | Ethic41/codes | 865658ac267336846e78a63b0214fb1535e17df3 | [
"MIT"
] | null | null | null | import argparse
import os
from bs4 import BeautifulSoup as bs
import requests
def main():
parser = argparse.ArgumentParser()
parser.add_argument("-u", "--usernames", help="specify a file containing list of usernames", required=True, type=file)
parser.add_argument("-p", "--passwords", help="specify ... | 40.272727 | 123 | 0.631302 | 169 | 1,329 | 4.91716 | 0.402367 | 0.043321 | 0.054152 | 0.038508 | 0.141998 | 0.141998 | 0.077016 | 0 | 0 | 0 | 0 | 0.001016 | 0.259594 | 1,329 | 32 | 124 | 41.53125 | 0.843496 | 0.129421 | 0 | 0 | 0 | 0 | 0.179304 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0.37037 | 0.148148 | 0 | 0.259259 | 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 |
4cb463115dd2a4e007efcc899cb03c0fb0034e86 | 2,215 | py | Python | models/session.py | SsureyMoon/Python-GoogleAppEngine | 8afd367fcaf379a63f39e0077a75c3d06543a744 | [
"Apache-2.0"
] | null | null | null | models/session.py | SsureyMoon/Python-GoogleAppEngine | 8afd367fcaf379a63f39e0077a75c3d06543a744 | [
"Apache-2.0"
] | null | null | null | models/session.py | SsureyMoon/Python-GoogleAppEngine | 8afd367fcaf379a63f39e0077a75c3d06543a744 | [
"Apache-2.0"
] | null | null | null | from google.appengine.ext import ndb
from protorpc import messages
class Session(ndb.Model):
"""Session -- Session object"""
organizerUserId = ndb.StringProperty()
name = ndb.StringProperty(required=True)
highlights = ndb.StringProperty(repeated=True)
speaker = ndb.StringProperty()
duration = ... | 32.573529 | 77 | 0.730023 | 216 | 2,215 | 7.481481 | 0.324074 | 0.152847 | 0.037129 | 0.035891 | 0.042079 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012446 | 0.165688 | 2,215 | 67 | 78 | 33.059701 | 0.862013 | 0.193228 | 0 | 0 | 0 | 0 | 0.00748 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.047619 | 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 |
4cb5c4f23f5198ced0cb72195d063a0d5f592b02 | 726 | py | Python | Heike/iTunes.py | ArtezGDA/text-IO | b9ed7f2433c0eda08fb45d125ea22a5fdeaef667 | [
"MIT"
] | null | null | null | Heike/iTunes.py | ArtezGDA/text-IO | b9ed7f2433c0eda08fb45d125ea22a5fdeaef667 | [
"MIT"
] | null | null | null | Heike/iTunes.py | ArtezGDA/text-IO | b9ed7f2433c0eda08fb45d125ea22a5fdeaef667 | [
"MIT"
] | null | null | null | iTunes = {
'artists' : {
'The Neighbourhood':
#album name
'Wiped Out!': {
#title of song : duration
'Prey' : 3.22,
'Cry Baby' : 4.02,
'A Moment of Silence' : 2.05
},
'Kendrick Lamar':
'To Pimp a Butterfly': {
'King Kunta': 3.54,
'Alright': 3.39,
... | 17.285714 | 43 | 0.428375 | 89 | 726 | 3.494382 | 0.786517 | 0.019293 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.102506 | 0.395317 | 726 | 42 | 44 | 17.285714 | 0.605923 | 0.046832 | 0 | 0 | 0 | 0 | 0.376266 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4cbbaae61e4dd75936a1aff1597aa5ce7a5ba3d1 | 23,938 | py | Python | lib/config.py | captainshar/pi-setup | 901d996f42bfa03431f06498adfc099b3238aba2 | [
"MIT"
] | null | null | null | lib/config.py | captainshar/pi-setup | 901d996f42bfa03431f06498adfc099b3238aba2 | [
"MIT"
] | null | null | null | lib/config.py | captainshar/pi-setup | 901d996f42bfa03431f06498adfc099b3238aba2 | [
"MIT"
] | null | null | null | import os
import time
import copy
import glob
import socket
import hashlib
import traceback
import yaml
import pykube
import urlparse
import requests
import netifaces
import avahi
import dbus
import encodings.idna
WPA = """ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=%s
network=... | 30.110692 | 139 | 0.519175 | 2,624 | 23,938 | 4.690549 | 0.151677 | 0.016575 | 0.010968 | 0.012187 | 0.301917 | 0.231882 | 0.190608 | 0.14584 | 0.093435 | 0.086935 | 0 | 0.007457 | 0.333319 | 23,938 | 794 | 140 | 30.148615 | 0.76377 | 0.004136 | 0 | 0.192748 | 0 | 0.009542 | 0.21606 | 0.052232 | 0 | 0 | 0.000336 | 0 | 0 | 0 | null | null | 0.017176 | 0.028626 | null | null | 0.053435 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
4cc9d1d6bdcc9b52d275064105b6c2e53652caa0 | 399 | py | Python | restaurantapp/mainapp/migrations/0009_auto_20200604_0847.py | ShubhamJain0/ShubhamJain0.github.io | bf73d2a8f55c3362908c8102d1788a34627dba44 | [
"MIT"
] | null | null | null | restaurantapp/mainapp/migrations/0009_auto_20200604_0847.py | ShubhamJain0/ShubhamJain0.github.io | bf73d2a8f55c3362908c8102d1788a34627dba44 | [
"MIT"
] | 4 | 2021-04-08T21:52:50.000Z | 2022-02-10T09:29:03.000Z | restaurantapp/mainapp/migrations/0009_auto_20200604_0847.py | ShubhamJain0/Restaurant-App | bf73d2a8f55c3362908c8102d1788a34627dba44 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.2 on 2020-06-04 08:47
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('mainapp', '0008_auto_20200604_0749'),
]
operations = [
migrations.AlterField(
model_name='image',
name='image',
... | 21 | 65 | 0.598997 | 44 | 399 | 5.318182 | 0.795455 | 0.017094 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.108014 | 0.280702 | 399 | 18 | 66 | 22.166667 | 0.707317 | 0.112782 | 0 | 0 | 1 | 0 | 0.127841 | 0.065341 | 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 |
4ccd9ad777f5f0a21e804d22942d62827533c1a9 | 1,609 | py | Python | mysign_app/urls.py | mindhashnl/roomsignage | 7508a14f0d350bad874f69ae75044baa87267cbe | [
"MIT"
] | null | null | null | mysign_app/urls.py | mindhashnl/roomsignage | 7508a14f0d350bad874f69ae75044baa87267cbe | [
"MIT"
] | 11 | 2020-06-06T00:27:01.000Z | 2022-02-10T09:38:26.000Z | mysign_app/urls.py | mindhashnl/roomsignage | 7508a14f0d350bad874f69ae75044baa87267cbe | [
"MIT"
] | null | null | null | from django.contrib.auth import views
from django.urls import include, path
from django.views.generic import RedirectView, TemplateView
from mysign_app.routes import login
from .routes import admin, company, screen_index
urlpatterns = [
path('', TemplateView.as_view(template_name='mysign_app/index.html'), name='... | 45.971429 | 112 | 0.727781 | 207 | 1,609 | 5.449275 | 0.270531 | 0.06383 | 0.079787 | 0.06383 | 0.150709 | 0.069149 | 0.069149 | 0 | 0 | 0 | 0 | 0.001377 | 0.097576 | 1,609 | 34 | 113 | 47.323529 | 0.775482 | 0 | 0 | 0 | 0 | 0 | 0.295214 | 0.068365 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.166667 | 0.208333 | 0 | 0.208333 | 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 |
4ccff59def33fd6253c2683b00a3d357fd3e1718 | 165 | py | Python | BOJ/18000~18999/18800~18899/18870.py | shinkeonkim/today-ps | f3e5e38c5215f19579bb0422f303a9c18c626afa | [
"Apache-2.0"
] | 2 | 2020-01-29T06:54:41.000Z | 2021-11-07T13:23:27.000Z | BOJ/18000~18999/18800~18899/18870.py | shinkeonkim/Today_PS | bb0cda0ee1b9c57e1cfa38355e29d0f1c6167a44 | [
"Apache-2.0"
] | null | null | null | BOJ/18000~18999/18800~18899/18870.py | shinkeonkim/Today_PS | bb0cda0ee1b9c57e1cfa38355e29d0f1c6167a44 | [
"Apache-2.0"
] | null | null | null | n = int(input())
L = list(map(int,input().split()))
A = list(set(L[:]))
d = {}
A.sort()
for i in range(len(A)):
d[A[i]] = i
for i in L:
print(d[i],end = " ") | 18.333333 | 34 | 0.490909 | 34 | 165 | 2.382353 | 0.529412 | 0.197531 | 0.148148 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.212121 | 165 | 9 | 35 | 18.333333 | 0.623077 | 0 | 0 | 0 | 0 | 0 | 0.006024 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4cd5894acf36642aa4d8e719fb01693bc41f57cb | 1,163 | py | Python | netroids/main.py | FarmCodeGary/Netroids | a3370fb7cbfc01a05b57cbf6871a3c63827ad5ac | [
"MIT"
] | null | null | null | netroids/main.py | FarmCodeGary/Netroids | a3370fb7cbfc01a05b57cbf6871a3c63827ad5ac | [
"MIT"
] | null | null | null | netroids/main.py | FarmCodeGary/Netroids | a3370fb7cbfc01a05b57cbf6871a3c63827ad5ac | [
"MIT"
] | null | null | null | import socket
def get_local_address():
local_address = socket.gethostbyname(socket.gethostname())
typed_address = raw_input(
"Enter your external IP address (default: "+local_address+"): ").strip()
if typed_address != "":
local_address = typed_address
return local_address
i... | 36.34375 | 81 | 0.61049 | 139 | 1,163 | 4.827338 | 0.28777 | 0.196721 | 0.067064 | 0.059613 | 0.152012 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0047 | 0.268272 | 1,163 | 31 | 82 | 37.516129 | 0.783784 | 0.040413 | 0 | 0.076923 | 0 | 0 | 0.18207 | 0 | 0 | 0 | 0 | 0.032258 | 0 | 1 | 0.038462 | false | 0 | 0.115385 | 0 | 0.192308 | 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 |
4cdd96de861c4f773c399cfc64a538b4da4687bf | 4,888 | py | Python | spydrnet/ir/tests/test_wire.py | yinshuisiyuanabc/spydrnet | 8328817bf4ad4430237cf1220b0968f0bc077353 | [
"BSD-3-Clause"
] | null | null | null | spydrnet/ir/tests/test_wire.py | yinshuisiyuanabc/spydrnet | 8328817bf4ad4430237cf1220b0968f0bc077353 | [
"BSD-3-Clause"
] | null | null | null | spydrnet/ir/tests/test_wire.py | yinshuisiyuanabc/spydrnet | 8328817bf4ad4430237cf1220b0968f0bc077353 | [
"BSD-3-Clause"
] | 1 | 2020-12-04T15:43:31.000Z | 2020-12-04T15:43:31.000Z | import unittest
import spydrnet as sdn
from spydrnet.ir.first_class_element import FirstClassElement
class TestWire(unittest.TestCase):
def setUp(self):
self.definition_top = sdn.Definition()
self.port_top = self.definition_top.create_port()
self.inner_pin = self.port_top.create_pin()
... | 51.452632 | 119 | 0.706628 | 691 | 4,888 | 4.858177 | 0.099855 | 0.097706 | 0.152517 | 0.1549 | 0.742032 | 0.621686 | 0.620494 | 0.557939 | 0.499255 | 0.427167 | 0 | 0.011858 | 0.171849 | 4,888 | 95 | 120 | 51.452632 | 0.817441 | 0 | 0 | 0.358025 | 0 | 0 | 0.012886 | 0 | 0 | 0 | 0 | 0 | 0.419753 | 1 | 0.111111 | false | 0 | 0.037037 | 0 | 0.160494 | 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 |
4ce527d4ac68a43f31a6ea254afb3946cb4e5a2c | 1,952 | py | Python | tests/components/test_button.py | trickeydan/j5-dev | ba9e2adcb6d9ed766e4be048cb77cf3fa6592b5f | [
"MIT"
] | 10 | 2019-01-19T13:09:37.000Z | 2021-06-18T13:40:10.000Z | tests/components/test_button.py | trickeydan/j5-dev | ba9e2adcb6d9ed766e4be048cb77cf3fa6592b5f | [
"MIT"
] | 681 | 2019-01-22T18:12:23.000Z | 2022-03-25T14:14:31.000Z | tests/components/test_button.py | trickeydan/j5-dev | ba9e2adcb6d9ed766e4be048cb77cf3fa6592b5f | [
"MIT"
] | 8 | 2019-02-22T21:45:47.000Z | 2021-11-17T19:43:33.000Z | """Tests for the Button Classes."""
from time import sleep, time
from j5.components.button import Button, ButtonInterface
class MockButtonDriver(ButtonInterface):
"""A testing driver for the button component."""
def __init__(self) -> None:
self.state = False
def set_button_state(self, new_state... | 29.134328 | 74 | 0.688525 | 257 | 1,952 | 5.062257 | 0.256809 | 0.069178 | 0.059954 | 0.032283 | 0.140661 | 0.03382 | 0 | 0 | 0 | 0 | 0 | 0.009702 | 0.207992 | 1,952 | 66 | 75 | 29.575758 | 0.831824 | 0.273566 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.176471 | 1 | 0.294118 | false | 0 | 0.058824 | 0 | 0.411765 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4cef763905903528019b3dcdec0060680ef430d2 | 514 | py | Python | src/apps_script.py | Chimildic/goofy-hotkeys | a61cfbe43839960caea77f99c2b437e3ea04e181 | [
"MIT"
] | null | null | null | src/apps_script.py | Chimildic/goofy-hotkeys | a61cfbe43839960caea77f99c2b437e3ea04e181 | [
"MIT"
] | null | null | null | src/apps_script.py | Chimildic/goofy-hotkeys | a61cfbe43839960caea77f99c2b437e3ea04e181 | [
"MIT"
] | null | null | null | from googleapiclient.discovery import build
from os import getenv
from auth import get_credentials
class AppsScript():
def __init__(self, id: str):
self._name = getenv("API_SERVICE_NAME")
self._version = getenv("API_VERSION")
self._id = id
def run(self, function: str):
body =... | 30.235294 | 88 | 0.678988 | 64 | 514 | 5.21875 | 0.46875 | 0.053892 | 0.08982 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.210117 | 514 | 16 | 89 | 32.125 | 0.82266 | 0 | 0 | 0 | 0 | 0 | 0.068093 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.25 | 0 | 0.583333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
4cfd1c07c1227ace8e56b86e75e8428fcf9344c5 | 161 | py | Python | imgy/settings.py | claytonbrown/imgy | ca9017d2eccbb7da038cbbddb83149bb2fb9ed0d | [
"Apache-2.0"
] | 10 | 2017-11-27T13:30:41.000Z | 2022-02-16T13:31:43.000Z | imgy/settings.py | claytonbrown/imgy | ca9017d2eccbb7da038cbbddb83149bb2fb9ed0d | [
"Apache-2.0"
] | null | null | null | imgy/settings.py | claytonbrown/imgy | ca9017d2eccbb7da038cbbddb83149bb2fb9ed0d | [
"Apache-2.0"
] | 4 | 2018-02-17T00:59:21.000Z | 2020-06-29T12:15:44.000Z | import os
AWS_REGION = os.environ.get('AWS_REGION')
BUCKET = ""
CACHE_MAX_AGE = 3600
DEFAULT_QUALITY_RATE = 80
LOSSY_IMAGE_FMTS = ('jpg', 'jpeg', 'webp')
| 11.5 | 42 | 0.695652 | 24 | 161 | 4.333333 | 0.875 | 0.173077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044444 | 0.161491 | 161 | 13 | 43 | 12.384615 | 0.725926 | 0 | 0 | 0 | 0 | 0 | 0.132075 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 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 |
4cfdade8c2e596d712276c1d85dfc7bf396ddc73 | 9,549 | py | Python | sdk/python/pulumi_cloudflare/access_policy.py | juchom/pulumi-cloudflare | 404ad4a48966b1e62f8a5bf809fdfd1a17b5a03d | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_cloudflare/access_policy.py | juchom/pulumi-cloudflare | 404ad4a48966b1e62f8a5bf809fdfd1a17b5a03d | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | sdk/python/pulumi_cloudflare/access_policy.py | juchom/pulumi-cloudflare | 404ad4a48966b1e62f8a5bf809fdfd1a17b5a03d | [
"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 json
import warnings
import pulumi
import pulumi.runtime
from typing import Union
from . import utilities, tables
class AccessP... | 41.337662 | 222 | 0.622683 | 1,097 | 9,549 | 5.246126 | 0.186873 | 0.076455 | 0.062554 | 0.023458 | 0.640313 | 0.59305 | 0.5649 | 0.542485 | 0.51503 | 0.494527 | 0 | 0.001582 | 0.271861 | 9,549 | 230 | 223 | 41.517391 | 0.826118 | 0.452403 | 0 | 0.027778 | 1 | 0 | 0.170343 | 0.011729 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0.013889 | 0.083333 | 0.027778 | 0.305556 | 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 |
9800f9fd6763dc01bd710c606e7c3d32c1fde297 | 762 | py | Python | AutoNode/exceptions.py | jvalteren/auto-node | 2b5b15bfa94cbf79b9f353edf389998e330f2fec | [
"MIT"
] | 7 | 2020-04-11T19:29:57.000Z | 2020-08-18T21:56:15.000Z | AutoNode/exceptions.py | jvalteren/auto-node | 2b5b15bfa94cbf79b9f353edf389998e330f2fec | [
"MIT"
] | 31 | 2020-04-11T13:38:50.000Z | 2022-01-28T09:29:25.000Z | AutoNode/exceptions.py | jvalteren/auto-node | 2b5b15bfa94cbf79b9f353edf389998e330f2fec | [
"MIT"
] | 4 | 2020-04-11T19:30:00.000Z | 2021-11-10T15:22:58.000Z | """
Library of custom exceptions raised by AutNode
"""
from cryptography.fernet import InvalidToken
from pyhmy import Typgpy
from .common import (
node_config,
save_node_config
)
class ResetNode(Exception):
"""
The only exception that triggers a hard reset.
"""
def __init__(self, *args, cle... | 23.090909 | 99 | 0.653543 | 84 | 762 | 5.666667 | 0.583333 | 0.084034 | 0.058824 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.248032 | 762 | 32 | 100 | 23.8125 | 0.830716 | 0.177165 | 0 | 0 | 0 | 0 | 0.162988 | 0.086587 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0.133333 | 0.2 | 0 | 0.466667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
980868f1ee5979aa8f38d45bd78c45bb82ffcf9f | 604 | py | Python | test/praatio_test_case.py | timmahrt/praatIO | 000d0477fffb033b63d54311fac5c913157a59a6 | [
"MIT"
] | 208 | 2016-04-20T12:42:05.000Z | 2022-03-25T13:44:03.000Z | test/praatio_test_case.py | timmahrt/praatIO | 000d0477fffb033b63d54311fac5c913157a59a6 | [
"MIT"
] | 37 | 2017-10-31T15:22:59.000Z | 2022-01-02T02:55:46.000Z | test/praatio_test_case.py | timmahrt/praatIO | 000d0477fffb033b63d54311fac5c913157a59a6 | [
"MIT"
] | 33 | 2016-05-09T07:34:22.000Z | 2022-03-30T09:00:58.000Z | import unittest
import os
class PraatioTestCase(unittest.TestCase):
def __init__(self, *args, **kargs):
super(PraatioTestCase, self).__init__(*args, **kargs)
root = os.path.dirname(os.path.realpath(__file__))
self.dataRoot = os.path.join(root, "files")
self.outputRoot = os.path.jo... | 30.2 | 68 | 0.655629 | 73 | 604 | 5.246575 | 0.506849 | 0.078329 | 0.052219 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.216887 | 604 | 19 | 69 | 31.789474 | 0.809725 | 0 | 0 | 0 | 0 | 0 | 0.02649 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0.214286 | false | 0 | 0.142857 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
980b0cba5f954a361a8f14f064fc5bbaa5a702c9 | 617 | py | Python | project euler solutions/Problem_023b-with_Haskell.py | helq/old_code | a432faf1b340cb379190a2f2b11b997b02d1cd8d | [
"CC0-1.0"
] | null | null | null | project euler solutions/Problem_023b-with_Haskell.py | helq/old_code | a432faf1b340cb379190a2f2b11b997b02d1cd8d | [
"CC0-1.0"
] | 4 | 2020-03-10T19:20:21.000Z | 2021-06-07T15:39:48.000Z | project euler solutions/Problem_023b-with_Haskell.py | helq/old_code | a432faf1b340cb379190a2f2b11b997b02d1cd8d | [
"CC0-1.0"
] | null | null | null | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
# run Time: few seconds with runHaskell ~ 12 s
import subprocess as sub
p = sub.Popen(["runhaskell", "Problem_023.hs"], stdout=sub.PIPE)
aNums, b = p.communicate()
aNums = eval(aNums)
lenNums = 28123
noAbundantNums = [True for i in range(lenNums+1)]
lenAbun = len( aN... | 19.903226 | 64 | 0.628849 | 89 | 617 | 4.348315 | 0.58427 | 0.031008 | 0.046512 | 0.062016 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046908 | 0.23987 | 617 | 30 | 65 | 20.566667 | 0.778252 | 0.155592 | 0 | 0 | 0 | 0 | 0.046422 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.055556 | null | null | 0.055556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9812634887dc423040f77964b1264654f1d7d485 | 166 | py | Python | #13.py | dev-farmaan/Project-Euler | 08968de6b4b7ee2cbd2114413bc0006dfa81117e | [
"Unlicense"
] | null | null | null | #13.py | dev-farmaan/Project-Euler | 08968de6b4b7ee2cbd2114413bc0006dfa81117e | [
"Unlicense"
] | null | null | null | #13.py | dev-farmaan/Project-Euler | 08968de6b4b7ee2cbd2114413bc0006dfa81117e | [
"Unlicense"
] | null | null | null | # Work out the first ten digits of the sum of N 50 digit numbers.
total = 0
for x in range(int(input())):
total += int(input().rstrip())
print(str(total)[:10])
| 20.75 | 65 | 0.650602 | 30 | 166 | 3.6 | 0.8 | 0.148148 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037313 | 0.192771 | 166 | 7 | 66 | 23.714286 | 0.768657 | 0.379518 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
98159862d28f3574bdf8b9de13295c40359f8a56 | 242 | py | Python | Programs/ResourceEditor/Teamcity/getGitTime.py | stinvi/dava.engine | 2b396ca49cdf10cdc98ad8a9ffcf7768a05e285e | [
"BSD-3-Clause"
] | 26 | 2018-09-03T08:48:22.000Z | 2022-02-14T05:14:50.000Z | Programs/ResourceEditor/Teamcity/getGitTime.py | ANHELL-blitz/dava.engine | ed83624326f000866e29166c7f4cccfed1bb41d4 | [
"BSD-3-Clause"
] | null | null | null | Programs/ResourceEditor/Teamcity/getGitTime.py | ANHELL-blitz/dava.engine | ed83624326f000866e29166c7f4cccfed1bb41d4 | [
"BSD-3-Clause"
] | 45 | 2018-05-11T06:47:17.000Z | 2022-02-03T11:30:55.000Z | import os
import sys
if len(sys.argv) > 1:
branch = sys.argv[1]
else:
branch = ' '
os.chdir('../')
os.system("git config --global log.date local")
os.chdir('../../')
os.system("git log -1 --format=\"%ci\" > gitTime.txt")
| 16.133333 | 55 | 0.561983 | 36 | 242 | 3.777778 | 0.583333 | 0.102941 | 0.117647 | 0.220588 | 0.264706 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015625 | 0.206612 | 242 | 14 | 56 | 17.285714 | 0.692708 | 0 | 0 | 0 | 0 | 0 | 0.346491 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9817232442856e4985399218da8322a98ba365d9 | 2,397 | py | Python | blog/migrations/0001_initial.py | orangedigitallab/django-tinyblog | ea618b72821ac7683fd6995a6d1e9b0d32ad3183 | [
"MIT"
] | 3 | 2017-11-05T11:31:14.000Z | 2019-05-20T18:54:06.000Z | blog/migrations/0001_initial.py | orangedigitallab/django-tinyblog | ea618b72821ac7683fd6995a6d1e9b0d32ad3183 | [
"MIT"
] | 7 | 2019-05-29T12:34:50.000Z | 2022-03-11T23:48:15.000Z | blog/migrations/0001_initial.py | orangedigitallab/django-tinyblog | ea618b72821ac7683fd6995a6d1e9b0d32ad3183 | [
"MIT"
] | 2 | 2019-05-20T18:18:33.000Z | 2019-09-15T22:32:00.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.6 on 2017-10-29 12:33
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import taggit.managers
class Migration(migrations.Migration):
initial = True
dependenci... | 34.242857 | 88 | 0.467251 | 194 | 2,397 | 5.582474 | 0.541237 | 0.040628 | 0.025854 | 0.040628 | 0.051708 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028364 | 0.426366 | 2,397 | 69 | 89 | 34.73913 | 0.759273 | 0.028369 | 0 | 0.114754 | 1 | 0 | 0.115219 | 0.009888 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.081967 | 0 | 0.147541 | 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 |
e218105cbf7c2f43e9d273837bf60d78a92635ad | 1,235 | py | Python | modules/MemberList.py | PressureRX/OverwatchClanUnionBot | d345f8b55ffb3880abfde3193b60e8b37f03a923 | [
"MIT"
] | 1 | 2020-05-18T07:00:39.000Z | 2020-05-18T07:00:39.000Z | modules/MemberList.py | PressureRX/OverwatchClanUnionBot | d345f8b55ffb3880abfde3193b60e8b37f03a923 | [
"MIT"
] | null | null | null | modules/MemberList.py | PressureRX/OverwatchClanUnionBot | d345f8b55ffb3880abfde3193b60e8b37f03a923 | [
"MIT"
] | null | null | null | import json, time
from datetime import datetime
class MemberList:
def __init__(self):
self.Name = ""
self.Update = ""
self.Members = ""
def MessageFormVerify(self, content):
content = content
if '#' in content and '\n' in content:
return True
return ... | 29.404762 | 86 | 0.609717 | 137 | 1,235 | 5.459854 | 0.459854 | 0.042781 | 0.045455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004391 | 0.262348 | 1,235 | 41 | 87 | 30.121951 | 0.816685 | 0 | 0 | 0 | 0 | 0 | 0.055061 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.258065 | false | 0 | 0.064516 | 0.064516 | 0.483871 | 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 |
e21c0529803d8cf7d07315ac9f68529400094ac6 | 33,948 | py | Python | calico/openstack/test/test_plugin.py | fasaxc/felix | b5d58c0e9bad5fd3bfa81fc6ff5633dd40265622 | [
"Apache-2.0"
] | null | null | null | calico/openstack/test/test_plugin.py | fasaxc/felix | b5d58c0e9bad5fd3bfa81fc6ff5633dd40265622 | [
"Apache-2.0"
] | null | null | null | calico/openstack/test/test_plugin.py | fasaxc/felix | b5d58c0e9bad5fd3bfa81fc6ff5633dd40265622 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright 2014 Metaswitch Networks
#
# 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 applicab... | 37.101639 | 79 | 0.619742 | 4,169 | 33,948 | 4.863996 | 0.153994 | 0.019529 | 0.024312 | 0.013463 | 0.361032 | 0.312753 | 0.286863 | 0.258457 | 0.213137 | 0.178913 | 0 | 0.011363 | 0.302639 | 33,948 | 914 | 80 | 37.142232 | 0.845147 | 0.38777 | 0 | 0.271605 | 0 | 0 | 0.079739 | 0.003631 | 0 | 0 | 0 | 0 | 0.05679 | 0 | null | null | 0.032099 | 0.024691 | null | null | 0.054321 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
e22083c73c3a8bbe68634dcbf9c09b8f8d0d1774 | 1,582 | py | Python | app/res/view/json_editor/self.py | HsOjo/PyJSONEditor | c2cf5398fa569ba0575048f3deebbf23028a61a1 | [
"MIT"
] | null | null | null | app/res/view/json_editor/self.py | HsOjo/PyJSONEditor | c2cf5398fa569ba0575048f3deebbf23028a61a1 | [
"MIT"
] | null | null | null | app/res/view/json_editor/self.py | HsOjo/PyJSONEditor | c2cf5398fa569ba0575048f3deebbf23028a61a1 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'self.ui'
#
# Created by: PyQt5 UI code generator 5.13.0
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_JSONEditor(object):
def setupUi(self, JSONEditor):
JSONEdito... | 40.564103 | 84 | 0.726296 | 163 | 1,582 | 6.92638 | 0.435583 | 0.111603 | 0.14969 | 0.06023 | 0.079717 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012167 | 0.168774 | 1,582 | 38 | 85 | 41.631579 | 0.846388 | 0.112516 | 0 | 0 | 1 | 0 | 0.07015 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08 | false | 0 | 0.04 | 0 | 0.16 | 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 |
e224f12e0f17bc2f9d14c93c8ba2848a34dd1d06 | 1,205 | py | Python | generating_markov_chains/markov_chain_two.py | AlexanderEllis/presidential-tweets | ed07516defd9719abffd80e1d61d77b5d492467f | [
"MIT"
] | 2 | 2018-06-09T21:47:12.000Z | 2019-11-17T22:24:51.000Z | generating_markov_chains/markov_chain_two.py | AlexanderEllis/presidential-tweets | ed07516defd9719abffd80e1d61d77b5d492467f | [
"MIT"
] | null | null | null | generating_markov_chains/markov_chain_two.py | AlexanderEllis/presidential-tweets | ed07516defd9719abffd80e1d61d77b5d492467f | [
"MIT"
] | null | null | null | """
This module is for generating a Markov chain order two from a text.
"""
def generate_markov_chain(tweet_array):
"""
Input assumes text is an array of tweets, each tweet with words separated by spaces with no new lines.
This requires some changes to most transcripts ahead of time. Output will be a dictionary
wi... | 30.897436 | 103 | 0.721162 | 199 | 1,205 | 4.231156 | 0.452261 | 0.091449 | 0.046318 | 0.06057 | 0.081948 | 0.081948 | 0 | 0 | 0 | 0 | 0 | 0.004103 | 0.190871 | 1,205 | 39 | 104 | 30.897436 | 0.859487 | 0.489627 | 0 | 0 | 1 | 0 | 0.005119 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e226067962bb72ac3ba7231ce8e89b86aa9d302d | 2,956 | py | Python | tools/telemetry/telemetry/util/exception_formatter.py | shaochangbin/chromium-crosswalk | 634d34e4cf82b4f7400357c53ec12efaffe94add | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 2 | 2019-01-16T03:57:28.000Z | 2021-01-23T15:29:45.000Z | tools/telemetry/telemetry/util/exception_formatter.py | shaochangbin/chromium-crosswalk | 634d34e4cf82b4f7400357c53ec12efaffe94add | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | tools/telemetry/telemetry/util/exception_formatter.py | shaochangbin/chromium-crosswalk | 634d34e4cf82b4f7400357c53ec12efaffe94add | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1 | 2017-03-15T13:21:38.000Z | 2017-03-15T13:21:38.000Z | # Copyright 2014 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.
"""Print prettier and more detailed exceptions."""
import math
import os
import sys
import traceback
from telemetry.core import util
def PrintFormattedEx... | 37.417722 | 80 | 0.643775 | 354 | 2,956 | 5.245763 | 0.40113 | 0.038772 | 0.067851 | 0.030695 | 0.045234 | 0.045234 | 0 | 0 | 0 | 0 | 0 | 0.006815 | 0.255413 | 2,956 | 78 | 81 | 37.897436 | 0.836892 | 0.170839 | 0 | 0.054545 | 0 | 0 | 0.053998 | 0 | 0 | 0 | 0 | 0.012821 | 0.036364 | 1 | 0.054545 | false | 0 | 0.090909 | 0 | 0.2 | 0.163636 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
e22d114340e15efa860cae01b454157e4cce8484 | 18,601 | py | Python | huxley/api/tests/test_user.py | bmun/huxley | e75200cab21dd9edabb9d71578acb7054f875817 | [
"BSD-3-Clause"
] | 18 | 2015-07-12T00:55:51.000Z | 2021-12-13T15:41:06.000Z | huxley/api/tests/test_user.py | bmun/huxley | e75200cab21dd9edabb9d71578acb7054f875817 | [
"BSD-3-Clause"
] | 288 | 2015-01-13T23:05:09.000Z | 2022-03-25T17:35:36.000Z | huxley/api/tests/test_user.py | bmun/huxley | e75200cab21dd9edabb9d71578acb7054f875817 | [
"BSD-3-Clause"
] | 47 | 2015-05-12T15:39:57.000Z | 2022-03-30T09:12:48.000Z | # Copyright (c) 2011-2015 Berkeley Model United Nations. All rights reserved.
# Use of this source code is governed by a BSD License (see LICENSE).
import json
from django.urls import reverse
from django.test import TestCase
from django.test.client import Client
from rest_framework import exceptions
from huxley.acc... | 38.273663 | 94 | 0.630611 | 2,126 | 18,601 | 5.354657 | 0.108184 | 0.043219 | 0.036894 | 0.05253 | 0.663124 | 0.575545 | 0.551476 | 0.530569 | 0.483222 | 0.442287 | 0 | 0.006217 | 0.247675 | 18,601 | 485 | 95 | 38.352577 | 0.807275 | 0.053492 | 0 | 0.484211 | 0 | 0 | 0.123659 | 0 | 0 | 0 | 0 | 0 | 0.131579 | 1 | 0.105263 | false | 0.107895 | 0.026316 | 0.005263 | 0.184211 | 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 |
e2364b51282b7ee55349a1ac860bc6873f9fcc83 | 969 | py | Python | chapter09/urlopen_auth3.py | NetworkRanger/python-core | f0aa2c4ce0665e559e85aef04c40c42164cd838a | [
"MIT"
] | 1 | 2018-12-29T15:32:06.000Z | 2018-12-29T15:32:06.000Z | chapter09/urlopen_auth3.py | NetworkRanger/python-core | f0aa2c4ce0665e559e85aef04c40c42164cd838a | [
"MIT"
] | null | null | null | chapter09/urlopen_auth3.py | NetworkRanger/python-core | f0aa2c4ce0665e559e85aef04c40c42164cd838a | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding:utf-8 -*-
# Author: NetworkRanger
# Date: 2019/8/10 11:05 PM
import urllib.request, urllib.error, urllib.parse
LOGIN = 'wesley'
PASSWD = "You'll Never Guess"
URL = 'http://localhost'
REALM = 'Secure Archive'
def handler_version(url):
hdlr = urllib.request.HTTPBasicAuthHandler(... | 27.685714 | 74 | 0.670795 | 129 | 969 | 4.984496 | 0.527132 | 0.121306 | 0.052877 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02716 | 0.164087 | 969 | 34 | 75 | 28.5 | 0.766667 | 0.090815 | 0 | 0 | 0 | 0 | 0.144977 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0.130435 | 0.086957 | 0 | 0.26087 | 0.086957 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
e239c7631d7ab34a5be2d1005cccee8faec6fa84 | 2,946 | py | Python | genstar.py | PoHuit/starlight | bbf4aabbd94da94c732e820a69fcb0f9c0e9fe7f | [
"MIT"
] | 1 | 2017-09-26T05:47:48.000Z | 2017-09-26T05:47:48.000Z | genstar.py | PoHuit/starlight | bbf4aabbd94da94c732e820a69fcb0f9c0e9fe7f | [
"MIT"
] | 1 | 2017-09-26T05:45:17.000Z | 2017-09-26T05:45:17.000Z | genstar.py | PoHuit/starlight | bbf4aabbd94da94c732e820a69fcb0f9c0e9fe7f | [
"MIT"
] | null | null | null | # Copyright (c) 2017 Po Huit
# [This program is licensed under the "MIT License"]
# Please see the file COPYING in the source
# distribution of this software for license terms.
"""Generate a simulated EVE Online™ Project Discovery star
luminance trace."""
from random import *
from math import *
samples_per_day =... | 34.255814 | 77 | 0.60998 | 398 | 2,946 | 4.329146 | 0.309045 | 0.009286 | 0.037725 | 0.026698 | 0.080093 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03301 | 0.300747 | 2,946 | 85 | 78 | 34.658824 | 0.802427 | 0.223354 | 0 | 0 | 1 | 0 | 0.003617 | 0 | 0 | 0 | 0 | 0 | 0.016667 | 1 | 0.033333 | false | 0 | 0.033333 | 0 | 0.1 | 0.016667 | 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 |
e23c36d7da3338b8702399666e19319886bc603f | 1,276 | py | Python | geocoder/here_reverse.py | termim/geocoder | b7b7d0b383716c3ccf6535ee47424cd7ccfa4eaa | [
"MIT"
] | 1,506 | 2015-01-04T22:35:09.000Z | 2022-03-30T17:10:20.000Z | geocoder/here_reverse.py | termim/geocoder | b7b7d0b383716c3ccf6535ee47424cd7ccfa4eaa | [
"MIT"
] | 317 | 2015-01-01T00:36:20.000Z | 2021-11-11T14:58:18.000Z | geocoder/here_reverse.py | termim/geocoder | b7b7d0b383716c3ccf6535ee47424cd7ccfa4eaa | [
"MIT"
] | 339 | 2015-01-29T14:03:18.000Z | 2022-03-31T15:59:53.000Z | #!/usr/bin/python
# coding: utf8
from __future__ import absolute_import
from geocoder.location import Location
from geocoder.here import HereResult, HereQuery
class HereReverseResult(HereResult):
@property
def ok(self):
return bool(self.address)
class HereReverse(HereQuery):
"""
HERE Geoc... | 25.019608 | 89 | 0.641066 | 140 | 1,276 | 5.685714 | 0.642857 | 0.030151 | 0.047739 | 0.062814 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022335 | 0.228056 | 1,276 | 50 | 90 | 25.52 | 0.785787 | 0.254702 | 0 | 0 | 0 | 0.04 | 0.133554 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08 | false | 0 | 0.12 | 0.04 | 0.52 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
e23d47ce00441e1c3ba8b178116366a235b61ab4 | 2,678 | py | Python | legiscrape/video.py | notpeter/legiscrape | f90375dbfffa8aef62807ba34e9225b3f0b3776e | [
"MIT"
] | 3 | 2019-01-03T16:33:45.000Z | 2020-07-24T00:42:53.000Z | legiscrape/video.py | notpeter/legiscrape | f90375dbfffa8aef62807ba34e9225b3f0b3776e | [
"MIT"
] | 1 | 2018-09-12T16:46:47.000Z | 2018-09-12T16:46:47.000Z | legiscrape/video.py | notpeter/legiscrape | f90375dbfffa8aef62807ba34e9225b3f0b3776e | [
"MIT"
] | null | null | null | import json
import logging
import os
import shutil
import subprocess
from urllib.parse import parse_qsl, urlsplit
import requests
def es_search(index, clip_id):
"""Queries the elasticsearch for video metadata"""
search_url = 'http://search.granicus.com/api/%s/_search' % index
query = {'query': {'match': ... | 37.71831 | 81 | 0.617999 | 345 | 2,678 | 4.73913 | 0.434783 | 0.033639 | 0.014679 | 0.040367 | 0.193884 | 0.15474 | 0.099083 | 0.099083 | 0.055046 | 0 | 0 | 0.013245 | 0.210605 | 2,678 | 70 | 82 | 38.257143 | 0.76017 | 0.131815 | 0 | 0.107143 | 0 | 0 | 0.193409 | 0.011275 | 0 | 0 | 0 | 0.014286 | 0 | 1 | 0.053571 | false | 0 | 0.125 | 0 | 0.214286 | 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 |
e24069a9aab6e330ce47da693cbbb319a9f8d522 | 781 | py | Python | numpy_unique.py | Kalpavrikshika/python_modules | 9f338ab006dd5653fd7f65ff253bc50e0fd61fc6 | [
"Apache-2.0"
] | 1 | 2018-07-02T03:37:03.000Z | 2018-07-02T03:37:03.000Z | numpy_unique.py | Kalpavrikshika/python_modules | 9f338ab006dd5653fd7f65ff253bc50e0fd61fc6 | [
"Apache-2.0"
] | null | null | null | numpy_unique.py | Kalpavrikshika/python_modules | 9f338ab006dd5653fd7f65ff253bc50e0fd61fc6 | [
"Apache-2.0"
] | null | null | null | import numpy as numpy
a = numpy.array([5,2,6,2,7,5,6,8,2,9])
print ('First array:')
print(a)
print('\n')
print('Unique values of first array:')
u = numpy.unique(a)
print(u)
print('\n')
print('Unique array and indices array:')
u, indices = numpy.unique(a, return_index = True)
print (indices)
print('\n')
print('We ca... | 20.552632 | 71 | 0.697823 | 128 | 781 | 4.234375 | 0.320313 | 0.077491 | 0.142066 | 0.105166 | 0.391144 | 0.243542 | 0.114391 | 0 | 0 | 0 | 0 | 0.014728 | 0.130602 | 781 | 38 | 72 | 20.552632 | 0.783505 | 0 | 0 | 0.5 | 0 | 0 | 0.352941 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.033333 | 0 | 0.033333 | 0.8 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
e24a361a6b0075e75c4bfb876667876a60a7a8ba | 2,146 | py | Python | testresults/scons230_trace/strace/pypy_cpython_touch_only/cpython_run/time_all.py | SCons/scons-performance | 2df4558a1132b62a36f20c1c0b37da8fafa00114 | [
"MIT"
] | null | null | null | testresults/scons230_trace/strace/pypy_cpython_touch_only/cpython_run/time_all.py | SCons/scons-performance | 2df4558a1132b62a36f20c1c0b37da8fafa00114 | [
"MIT"
] | 1 | 2020-09-24T16:09:23.000Z | 2020-09-27T17:30:13.000Z | testresults/scons230_trace/strace/pypy_cpython_touch_only/cpython_run/time_all.py | SCons/scons-performance | 2df4558a1132b62a36f20c1c0b37da8fafa00114 | [
"MIT"
] | 2 | 2020-09-27T21:18:11.000Z | 2022-03-23T17:32:03.000Z | #!/usr/bin/env python2
import os
import sys
import sconstest
import time
import subprocess
def stdoutCmd(args):
process = subprocess.Popen(args, shell=False, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
sout, serr = process.communicate()
return sout
def getProcesses():
return stdoutCmd(['ps','-ef'... | 26.825 | 135 | 0.576421 | 286 | 2,146 | 4.265734 | 0.346154 | 0.029508 | 0.032787 | 0.036885 | 0.377049 | 0.347541 | 0.332787 | 0.309836 | 0.263934 | 0.203279 | 0 | 0.009375 | 0.254427 | 2,146 | 79 | 136 | 27.164557 | 0.753125 | 0.041007 | 0 | 0.225806 | 0 | 0.048387 | 0.231856 | 0.065757 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.080645 | null | null | 0.080645 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
e24c7bb3af4566170d6c0e76a19da8b4c8242554 | 1,013 | py | Python | safe_transaction_service/history/migrations/0002_auto_20190725_0857.py | kanhirun/safe-transaction-service | 9bd6103be7d77469a337b6f02c8e0693e7951e4c | [
"MIT"
] | 5 | 2021-01-28T17:41:42.000Z | 2021-11-14T17:09:18.000Z | safe_transaction_service/history/migrations/0002_auto_20190725_0857.py | kanhirun/safe-transaction-service | 9bd6103be7d77469a337b6f02c8e0693e7951e4c | [
"MIT"
] | 8 | 2022-03-15T18:39:45.000Z | 2022-03-28T01:28:13.000Z | safe_transaction_service/history/migrations/0002_auto_20190725_0857.py | kanhirun/safe-transaction-service | 9bd6103be7d77469a337b6f02c8e0693e7951e4c | [
"MIT"
] | 5 | 2021-04-06T17:20:02.000Z | 2022-01-13T10:58:08.000Z | # Generated by Django 2.2.2 on 2019-07-25 08:57
from django.db import migrations, models
import gnosis.eth.django.models
class Migration(migrations.Migration):
dependencies = [
('history', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='multisigconfirmati... | 28.138889 | 79 | 0.607108 | 96 | 1,013 | 6.302083 | 0.479167 | 0.059504 | 0.099174 | 0.138843 | 0.447934 | 0.319008 | 0.319008 | 0.319008 | 0.218182 | 0 | 0 | 0.035763 | 0.28233 | 1,013 | 35 | 80 | 28.942857 | 0.796424 | 0.044423 | 0 | 0.392857 | 1 | 0 | 0.156315 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.178571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e26dc94cfcea0ab5e136a5824b4a6058ea334139 | 1,053 | py | Python | get_autologin/tests.py | mazlumagar/django-get-autologin | 7a402569a2f1b070201595e794239cf88c234f5f | [
"BSD-2-Clause"
] | 1 | 2016-12-14T19:28:52.000Z | 2016-12-14T19:28:52.000Z | get_autologin/tests.py | mazlumagar/django-get-autologin | 7a402569a2f1b070201595e794239cf88c234f5f | [
"BSD-2-Clause"
] | null | null | null | get_autologin/tests.py | mazlumagar/django-get-autologin | 7a402569a2f1b070201595e794239cf88c234f5f | [
"BSD-2-Clause"
] | null | null | null | from django.contrib.auth.models import AnonymousUser
from django.test import TestCase, RequestFactory, Client
from django.contrib.auth import get_user_model
from django.urls.base import reverse
from django.conf import settings
from .models import Token
from .views import user_auth
UserModel = get_user_model()
class... | 37.607143 | 110 | 0.729345 | 135 | 1,053 | 5.555556 | 0.392593 | 0.066667 | 0.045333 | 0.056 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009132 | 0.168091 | 1,053 | 27 | 111 | 39 | 0.847032 | 0 | 0 | 0 | 0 | 0 | 0.05793 | 0 | 0 | 0 | 0 | 0 | 0.045455 | 1 | 0.090909 | false | 0.045455 | 0.318182 | 0 | 0.454545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
e26df99fb2549941af5cfdc7cccb69d8eff34c29 | 425 | py | Python | src/mandelbrot.py | poseen/pyMandelbrot | eeb3856dcf75a4eb9c67807db611456618c4fbef | [
"MIT"
] | null | null | null | src/mandelbrot.py | poseen/pyMandelbrot | eeb3856dcf75a4eb9c67807db611456618c4fbef | [
"MIT"
] | null | null | null | src/mandelbrot.py | poseen/pyMandelbrot | eeb3856dcf75a4eb9c67807db611456618c4fbef | [
"MIT"
] | null | null | null | #!/usr/bin/python
"""
This is the main python file to run.
"""
import sys
from application import Application
# -- Functions ---------------------------------------------------------------
def main():
"""
The main function.
"""
app = Application(sys.argv)
app.run()
# -- Main ent... | 20.238095 | 79 | 0.411765 | 36 | 425 | 4.638889 | 0.638889 | 0.083832 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.209412 | 425 | 20 | 80 | 21.25 | 0.497024 | 0.531765 | 0 | 0 | 0 | 0 | 0.051948 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e27718754b1e34c0101f09133912fa9e5336e7be | 2,974 | py | Python | code/src.py | oShadow05/ftp_most_update_files | 659121a3c873cca7e47cf24509d105fbe746618f | [
"MIT"
] | null | null | null | code/src.py | oShadow05/ftp_most_update_files | 659121a3c873cca7e47cf24509d105fbe746618f | [
"MIT"
] | null | null | null | code/src.py | oShadow05/ftp_most_update_files | 659121a3c873cca7e47cf24509d105fbe746618f | [
"MIT"
] | null | null | null | import subprocess
import ftplib
import os
import time
from hide_data import *
from datetime import datetime
# Creazione delle cartelle nominate per giorno, mese, anno, ora, minuti, secondi
def create_path_folder(init_path):
day = time.strftime("%d", time.localtime())
month = time.strftime("%m", time.... | 34.183908 | 144 | 0.594822 | 383 | 2,974 | 4.480418 | 0.37859 | 0.041958 | 0.027972 | 0.04662 | 0.235431 | 0.199301 | 0.199301 | 0.165501 | 0.165501 | 0.165501 | 0 | 0.011257 | 0.28312 | 2,974 | 86 | 145 | 34.581395 | 0.793621 | 0.166106 | 0 | 0.140351 | 0 | 0 | 0.08575 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0.087719 | 0.105263 | 0 | 0.175439 | 0.087719 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
e2785525ddf4f98911399e0d0d6bbb7a9251a2cc | 2,602 | py | Python | stock.py | ak4stock/ths_tdx_stock_xueqiu_guoren | a75a7720bc51aa6cbd2c74b66130f3f848da722e | [
"Apache-2.0"
] | 2 | 2021-09-17T09:08:51.000Z | 2021-11-23T08:14:29.000Z | stock.py | ak4stock/ths_tdx_stock_xueqiu_guoren | a75a7720bc51aa6cbd2c74b66130f3f848da722e | [
"Apache-2.0"
] | null | null | null | stock.py | ak4stock/ths_tdx_stock_xueqiu_guoren | a75a7720bc51aa6cbd2c74b66130f3f848da722e | [
"Apache-2.0"
] | 4 | 2021-09-08T08:13:04.000Z | 2022-03-15T12:02:17.000Z | /**
和谐完全加密
通达信加密公式解密和谐
通达信超赢版和谐
涨停密码
股票程序化交易
股票自动交易
首板套利
一进二
二进三
三进四
妖股龙头
擒龙捉妖
A股股票量化交易
下单跟单服务器搭建
文华财经
通达信
同花顺
雪球跟单下单
聚宽跟单下单
果仁跟单下单
掘金跟单下单
海龟策略
均线策略
网格交易
马丁格尔
Python量化交易
东方财富量化交易
证券量化交易
策略代写合作
股票指标公式代写
选股指标公式代写
股票量化交易
万1免5
万一免五
万1.5免5
万1.5免五
开户
数据抓取爬虫
... | 11.881279 | 46 | 0.781322 | 270 | 2,602 | 7.52963 | 0.825926 | 0.02361 | 0.010821 | 0.012789 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006055 | 0.174865 | 2,602 | 218 | 47 | 11.93578 | 0.940848 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e279a74cbf54ce448316f4712cc4f03add19c14c | 961 | py | Python | 2015/day05/solve.py | greenbender/aoc2018 | 0865214a1acd2025d8702054ed8b8882a03a2d5a | [
"Apache-2.0"
] | null | null | null | 2015/day05/solve.py | greenbender/aoc2018 | 0865214a1acd2025d8702054ed8b8882a03a2d5a | [
"Apache-2.0"
] | null | null | null | 2015/day05/solve.py | greenbender/aoc2018 | 0865214a1acd2025d8702054ed8b8882a03a2d5a | [
"Apache-2.0"
] | null | null | null | import sys
strings = [l.strip() for l in sys.stdin]
def nice1(string):
vowels, double = 0, False
for i in range(len(string)):
if i > 0:
if string[i-1:i+1] in ('ab', 'cd', 'pq', 'xy'):
return False
if not double and string[i-1] == string[i]:
do... | 21.840909 | 59 | 0.504683 | 142 | 961 | 3.415493 | 0.288732 | 0.037113 | 0.082474 | 0.045361 | 0.214433 | 0.119588 | 0.119588 | 0.119588 | 0.119588 | 0.119588 | 0 | 0.042834 | 0.368366 | 961 | 43 | 60 | 22.348837 | 0.756178 | 0 | 0 | 0.064516 | 0 | 0 | 0.013528 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.032258 | null | null | 0.064516 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e279c1360c573eb950c6021cda79134746a9d11e | 5,606 | py | Python | config/asgi.py | vendari12/django-ai-algotrade | f20d2691f08ec75f148cd6409b886b1dd6edac78 | [
"Apache-1.1"
] | null | null | null | config/asgi.py | vendari12/django-ai-algotrade | f20d2691f08ec75f148cd6409b886b1dd6edac78 | [
"Apache-1.1"
] | null | null | null | config/asgi.py | vendari12/django-ai-algotrade | f20d2691f08ec75f148cd6409b886b1dd6edac78 | [
"Apache-1.1"
] | null | null | null | """
ASGI config for stockze project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/dev/howto/deployment/asgi/
"""
import os
import sys
from pathlib import Path
from django.core.asgi import get_asgi_application
... | 43.796875 | 195 | 0.764003 | 704 | 5,606 | 5.933239 | 0.254261 | 0.045966 | 0.066076 | 0.077568 | 0.628441 | 0.540579 | 0.530524 | 0.530524 | 0.402921 | 0.337323 | 0 | 0.024203 | 0.11559 | 5,606 | 127 | 196 | 44.141732 | 0.818274 | 0.467 | 0 | 0 | 0 | 0 | 0.127094 | 0.042365 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.35 | 0 | 0.35 | 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 |
e27bb9707acfc006090e12622628d083aeba7646 | 2,326 | py | Python | data-gen.py | SigmaX-ai/tidre-demo | aff56cd6dfbc84828e53db9304b279d655c9dc96 | [
"Apache-2.0"
] | 1 | 2021-01-28T20:23:21.000Z | 2021-01-28T20:23:21.000Z | data-gen.py | SigmaX-ai/tidre-demo | aff56cd6dfbc84828e53db9304b279d655c9dc96 | [
"Apache-2.0"
] | 32 | 2019-07-10T13:56:01.000Z | 2022-03-24T19:05:22.000Z | data-gen.py | SigmaX-ai/tidre-demo | aff56cd6dfbc84828e53db9304b279d655c9dc96 | [
"Apache-2.0"
] | 1 | 2021-05-19T09:19:32.000Z | 2021-05-19T09:19:32.000Z | import pyarrow as pa
import rstr
import random
# Each tuple specifies a type of string to generate. The first entry specifies
# how many unique strings to generate (rstr is pretty slow). The second
# specifies how often to insert a string from that pool of unique strings into
# the actual dataset compared to inserting... | 39.423729 | 138 | 0.682717 | 343 | 2,326 | 4.498542 | 0.405248 | 0.058976 | 0.025275 | 0.037589 | 0.054439 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031414 | 0.178848 | 2,326 | 58 | 139 | 40.103448 | 0.77644 | 0.267412 | 0 | 0 | 1 | 0.022727 | 0.170213 | 0.082151 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.068182 | 0 | 0.068182 | 0.159091 | 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 |
e27f6e973d414265748a9bea826d35b7f830da3d | 4,419 | py | Python | xbmanIntegrated/Aclsm-master/jump/migrations/0001_initial.py | suntao789/Aclsm | 2202201c8279391386a4569e69f93d90eca5b96a | [
"Apache-2.0"
] | null | null | null | xbmanIntegrated/Aclsm-master/jump/migrations/0001_initial.py | suntao789/Aclsm | 2202201c8279391386a4569e69f93d90eca5b96a | [
"Apache-2.0"
] | null | null | null | xbmanIntegrated/Aclsm-master/jump/migrations/0001_initial.py | suntao789/Aclsm | 2202201c8279391386a4569e69f93d90eca5b96a | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by Django 1.11.16 on 2018-10-10 21:13
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrati... | 48.032609 | 170 | 0.590858 | 474 | 4,419 | 5.333333 | 0.278481 | 0.108782 | 0.035601 | 0.045095 | 0.607991 | 0.518592 | 0.505538 | 0.446203 | 0.429193 | 0.368671 | 0 | 0.093366 | 0.263182 | 4,419 | 91 | 171 | 48.56044 | 0.683047 | 0.015614 | 0 | 0.457831 | 1 | 0.012048 | 0.221302 | 0.088337 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.012048 | 0.048193 | 0 | 0.096386 | 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 |
e285c3c027d1b65470b35c3020404e54774288e4 | 655 | py | Python | setup.py | truthiswill/wait4disney | 39375ba535c5ca06aaf296a79ec342dd26f59669 | [
"Apache-2.0"
] | 106 | 2017-04-13T02:44:46.000Z | 2022-01-26T06:46:27.000Z | setup.py | truthiswill/wait4disney | 39375ba535c5ca06aaf296a79ec342dd26f59669 | [
"Apache-2.0"
] | 8 | 2018-04-20T04:49:24.000Z | 2021-12-22T03:04:29.000Z | setup.py | truthiswill/wait4disney | 39375ba535c5ca06aaf296a79ec342dd26f59669 | [
"Apache-2.0"
] | 20 | 2016-09-07T08:38:25.000Z | 2021-11-30T04:11:25.000Z | from setuptools import setup, find_packages
setup(
name = "disney",
version = "1.0",
description = "A history of Shanghai Disney waiting time",
long_description = "A history of Shanghai Disney waiting time",
license = "Apache License",
url = "http://s.gaott.info",
author = "gtt116",
au... | 25.192308 | 67 | 0.606107 | 70 | 655 | 5.542857 | 0.657143 | 0.061856 | 0.097938 | 0.108247 | 0.237113 | 0.237113 | 0.237113 | 0.237113 | 0 | 0 | 0 | 0.016667 | 0.267176 | 655 | 25 | 68 | 26.2 | 0.791667 | 0 | 0 | 0 | 0 | 0 | 0.354198 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.045455 | 0 | 0.045455 | 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 |
e286ea67b3479e5c22b89115775cfad8c168688e | 1,925 | py | Python | excel_helper.py | MrBigBang/android_strings_translator_py | ca4e59d8ba5d6a9f4ecbebbc22618d92d31ab90a | [
"Apache-2.0"
] | 4 | 2018-05-05T17:04:47.000Z | 2022-02-08T01:52:06.000Z | excel_helper.py | MrBigBang/android_strings_translator_py | ca4e59d8ba5d6a9f4ecbebbc22618d92d31ab90a | [
"Apache-2.0"
] | null | null | null | excel_helper.py | MrBigBang/android_strings_translator_py | ca4e59d8ba5d6a9f4ecbebbc22618d92d31ab90a | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
' excel_helper.py '
__author__ = 'Hyman Lee'
############## main code ###############
from openpyxl import Workbook
from openpyxl import load_workbook
import os
import const
import datetime
class ExcelHelper(object):
"""Excel 文件操作类"""
def __init__(self, path, ... | 32.083333 | 130 | 0.588052 | 253 | 1,925 | 4.252964 | 0.399209 | 0.052045 | 0.022305 | 0.035316 | 0.057621 | 0.057621 | 0.057621 | 0 | 0 | 0 | 0 | 0.00494 | 0.263896 | 1,925 | 59 | 131 | 32.627119 | 0.754411 | 0.027013 | 0 | 0 | 0 | 0 | 0.113001 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.116279 | 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 |
e29061235e6f366b2a28c1d90da81c2caa175311 | 1,238 | py | Python | services/backend/project/api/search.py | kzkaneoka/custom-job-search | ca6054aee979cb1eff701dc5ba0cf56fb92baf44 | [
"MIT"
] | null | null | null | services/backend/project/api/search.py | kzkaneoka/custom-job-search | ca6054aee979cb1eff701dc5ba0cf56fb92baf44 | [
"MIT"
] | 1 | 2021-06-02T00:51:06.000Z | 2021-06-02T00:51:06.000Z | services/backend/project/api/search.py | kzkaneoka/custom-job-search | ca6054aee979cb1eff701dc5ba0cf56fb92baf44 | [
"MIT"
] | null | null | null | from flask import Blueprint, jsonify, request
from project.api.sites import Indeed
search_blueprint = Blueprint("search", __name__)
@search_blueprint.route("/search", methods=["POST"])
def search_jobs():
post_data = request.get_json()
response_object = {"status": "fail", "message": "Invalid payload."}
i... | 36.411765 | 71 | 0.621971 | 132 | 1,238 | 5.613636 | 0.348485 | 0.245614 | 0.121457 | 0.072874 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012876 | 0.247173 | 1,238 | 33 | 72 | 37.515152 | 0.782189 | 0 | 0 | 0.068966 | 0 | 0 | 0.163974 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0 | 0.068966 | 0 | 0.241379 | 0.103448 | 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 |
e291056efd79df6ed69a66e9252be6d23c9555cf | 3,002 | py | Python | 2015/15_ScienceforHungryPeople/ingredient.py | deanearlwright/AdventOfCode | ca4cf6315c0efa38bd7748fb6f4bc99e7934871d | [
"MIT"
] | 1 | 2021-01-03T23:09:28.000Z | 2021-01-03T23:09:28.000Z | 2015/15_ScienceforHungryPeople/ingredient.py | deanearlwright/AdventOfCode | ca4cf6315c0efa38bd7748fb6f4bc99e7934871d | [
"MIT"
] | 6 | 2020-12-26T21:02:42.000Z | 2020-12-26T21:02:52.000Z | 2015/15_ScienceforHungryPeople/ingredient.py | deanearlwright/AdventOfCode | ca4cf6315c0efa38bd7748fb6f4bc99e7934871d | [
"MIT"
] | null | null | null | # ======================================================================
# Science for Hungry People
# Advent of Code 2015 Day 15 -- Eric Wastl -- https://adventofcode.com
#
# Python implementation by Dr. Dean Earl Wright III
# ======================================================================
# ================... | 42.28169 | 92 | 0.327781 | 227 | 3,002 | 4.264317 | 0.440529 | 0.010331 | 0.033058 | 0.045455 | 0.115702 | 0.068182 | 0.024793 | 0.024793 | 0.024793 | 0.024793 | 0 | 0.022028 | 0.274151 | 3,002 | 70 | 93 | 42.885714 | 0.422212 | 0.614923 | 0 | 0 | 0 | 0 | 0.21978 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.103448 | false | 0.034483 | 0.034483 | 0 | 0.241379 | 0.034483 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e29261ef91301705ce9394af4f642e7e24e5b49f | 2,153 | py | Python | utils/data.py | liuaoy/deep-time-series | 569ca2173b3c033522c3c3a6333b86270bcfa2e7 | [
"Apache-2.0"
] | null | null | null | utils/data.py | liuaoy/deep-time-series | 569ca2173b3c033522c3c3a6333b86270bcfa2e7 | [
"Apache-2.0"
] | null | null | null | utils/data.py | liuaoy/deep-time-series | 569ca2173b3c033522c3c3a6333b86270bcfa2e7 | [
"Apache-2.0"
] | null | null | null | from torch import Tensor, Generator
from typing import TypeVar, List, Optional, Tuple, Sequence
from torch import default_generator
from torch.utils.data import Dataset, Subset
T_co = TypeVar('T_co', covariant=True)
T = TypeVar('T')
from torch._utils import _accumulate
from torch import randperm
import torch
class Subs... | 37.12069 | 120 | 0.671621 | 280 | 2,153 | 5.060714 | 0.367857 | 0.06916 | 0.031757 | 0.023994 | 0.124206 | 0.0988 | 0.0494 | 0 | 0 | 0 | 0 | 0.008323 | 0.218765 | 2,153 | 58 | 120 | 37.12069 | 0.834126 | 0.317232 | 0 | 0 | 0 | 0 | 0.064194 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.2 | 0.057143 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
e294111ef4fd6db7a9b084f292b58f5a0c7bca0e | 484 | py | Python | molsysmt/_private/digestion/group_indices.py | uibcdf/MolModMTs | 4f6b6f671a9fa3e73008d1e9c48686d5f20a6573 | [
"MIT"
] | null | null | null | molsysmt/_private/digestion/group_indices.py | uibcdf/MolModMTs | 4f6b6f671a9fa3e73008d1e9c48686d5f20a6573 | [
"MIT"
] | null | null | null | molsysmt/_private/digestion/group_indices.py | uibcdf/MolModMTs | 4f6b6f671a9fa3e73008d1e9c48686d5f20a6573 | [
"MIT"
] | null | null | null | import numpy as np
def digest_group_indices(group_indices):
if type(group_indices)==str:
if group_indices in ['all', 'All', 'ALL']:
group_indices = 'all'
else:
raise ValueError()
elif type(group_indices) in [int, np.int64, np.int32]:
group_indices = np.array([gr... | 28.470588 | 64 | 0.642562 | 62 | 484 | 4.741935 | 0.403226 | 0.489796 | 0.108844 | 0.129252 | 0.278912 | 0.278912 | 0.278912 | 0.278912 | 0 | 0 | 0 | 0.02168 | 0.237603 | 484 | 16 | 65 | 30.25 | 0.775068 | 0 | 0 | 0 | 0 | 0 | 0.062112 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.083333 | 0 | 0.25 | 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 |
e2989c4724815cda6e8bc1c002ee692234e2d9d1 | 330 | py | Python | Curso/paquete/42_map.py | jsalmoralp/Python-Proyecto-Apuntes | cf4265e08e947aca1dbe9ec4ed1dfb7cb10e9309 | [
"MIT"
] | null | null | null | Curso/paquete/42_map.py | jsalmoralp/Python-Proyecto-Apuntes | cf4265e08e947aca1dbe9ec4ed1dfb7cb10e9309 | [
"MIT"
] | null | null | null | Curso/paquete/42_map.py | jsalmoralp/Python-Proyecto-Apuntes | cf4265e08e947aca1dbe9ec4ed1dfb7cb10e9309 | [
"MIT"
] | null | null | null | """
Map: Aplica una función a dcada elemento de una lista iterable, dvolviendo otra lista.
"""
def elevar_cuadrado(num):
# return num * num
return pow(num, 2)
# numeros = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
numeros = list(range(1, 11)) # Del 1 al 10
print(numeros)
numeros_elevados = list(map(elevar_cuadrado, ... | 20.625 | 86 | 0.660606 | 54 | 330 | 3.981481 | 0.666667 | 0.130233 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.068441 | 0.20303 | 330 | 15 | 87 | 22 | 0.749049 | 0.478788 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0.2 | 0.4 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
e29aee98afa3ae50f6d1e6686b8b58bb3400fd5e | 7,528 | py | Python | htpt/frame.py | ben-jones/facade | eb9004fb3e40e760bb9add772340a5d5805a7558 | [
"MIT"
] | null | null | null | htpt/frame.py | ben-jones/facade | eb9004fb3e40e760bb9add772340a5d5805a7558 | [
"MIT"
] | null | null | null | htpt/frame.py | ben-jones/facade | eb9004fb3e40e760bb9add772340a5d5805a7558 | [
"MIT"
] | 1 | 2019-10-17T16:57:23.000Z | 2019-10-17T16:57:23.000Z | # Ben Jones
# Fall 2013
# htpt
# frame.py: ensure in-order delivery of frames for the htpt project
import threading
import struct
#from random import randint
from buffers import Buffer
from constants import *
class FramingException(Exception):
pass
class SeqNumber():
# initialize this to -1 so that the first ... | 28.407547 | 132 | 0.69288 | 1,006 | 7,528 | 5.137177 | 0.253479 | 0.025155 | 0.01161 | 0.013158 | 0.149768 | 0.072368 | 0.050697 | 0.036765 | 0.025929 | 0.025929 | 0 | 0.010017 | 0.217588 | 7,528 | 264 | 133 | 28.515152 | 0.867402 | 0.129915 | 0 | 0.266667 | 0 | 0 | 0.026655 | 0 | 0 | 0 | 0 | 0.003788 | 0 | 0 | null | null | 0.028571 | 0.038095 | null | null | 0.009524 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e29bc7c2aa2dcb9549f0923f0c795f265538b607 | 768 | py | Python | tests/fakes/serial.py | ltowarek/arinna | 20fc3f028af9bbb7f98c3390fa94fb6e6f0c10c2 | [
"MIT"
] | null | null | null | tests/fakes/serial.py | ltowarek/arinna | 20fc3f028af9bbb7f98c3390fa94fb6e6f0c10c2 | [
"MIT"
] | 2 | 2021-03-25T21:58:09.000Z | 2021-03-28T07:48:59.000Z | tests/fakes/serial.py | ltowarek/arinna | 20fc3f028af9bbb7f98c3390fa94fb6e6f0c10c2 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
class FakeSerial:
def __init__(self):
self._last_written_data = None
self._response = None
self.read_data = []
@property
def last_written_data(self):
return self._last_written_data
@property
def response(self):
return self._response
... | 21.333333 | 48 | 0.578125 | 89 | 768 | 4.741573 | 0.382022 | 0.14218 | 0.14218 | 0.135071 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003876 | 0.328125 | 768 | 35 | 49 | 21.942857 | 0.813953 | 0.027344 | 0 | 0.076923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.269231 | false | 0 | 0 | 0.076923 | 0.423077 | 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 |
e29d31e53d690a42f535223ac874e2a38b94cfd3 | 2,196 | py | Python | tests/test_node.py | account-login/arggen | d105c330b97ed7eaf86e1d62f9fa59d37382d749 | [
"MIT"
] | 2 | 2020-02-05T08:49:44.000Z | 2020-04-09T07:08:24.000Z | tests/test_node.py | account-login/arggen | d105c330b97ed7eaf86e1d62f9fa59d37382d749 | [
"MIT"
] | null | null | null | tests/test_node.py | account-login/arggen | d105c330b97ed7eaf86e1d62f9fa59d37382d749 | [
"MIT"
] | null | null | null | from arggen import Root, Block, Condition, If, ElseIf, Else, Context, collect_node
def test_block():
block = Block('head')
block.add_child('asdf')
block.add_child('1234')
assert '\n'.join(block.to_source(0)) == '''
head {
asdf
1234
}'''[1:]
def test_if():
ifthen = If('abc')
ifthen.a... | 21.320388 | 82 | 0.491348 | 270 | 2,196 | 3.825926 | 0.159259 | 0.224589 | 0.063892 | 0.031946 | 0.343659 | 0.299129 | 0.230397 | 0.191675 | 0.135528 | 0.077444 | 0 | 0.016756 | 0.320583 | 2,196 | 102 | 83 | 21.529412 | 0.675603 | 0 | 0 | 0.321429 | 0 | 0 | 0.174408 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 1 | 0.083333 | false | 0 | 0.011905 | 0 | 0.095238 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e29f03857990f6afcc78b13c75a03abbfdcb85b0 | 1,421 | py | Python | python/src/data_structure/data_structure.py | yipwinghong/Algorithm | e594df043c9d965dbfbd958554e88c533c844a45 | [
"MIT"
] | 9 | 2019-10-31T16:58:31.000Z | 2022-02-08T08:42:30.000Z | python/src/data_structure/data_structure.py | yipwinghong/Algorithm | e594df043c9d965dbfbd958554e88c533c844a45 | [
"MIT"
] | null | null | null | python/src/data_structure/data_structure.py | yipwinghong/Algorithm | e594df043c9d965dbfbd958554e88c533c844a45 | [
"MIT"
] | null | null | null | # coding=utf-8
# Definition for singly-linked list.
class ListNode(object):
def __init__(self, x, next=None):
self.val = x
self.next = next
class DoubleNode(object):
def __init__(self, key, val, pre=None, next=None):
self.key = key
self.val = val
self.pre = pre
... | 21.861538 | 55 | 0.598874 | 187 | 1,421 | 4.31016 | 0.26738 | 0.078164 | 0.112903 | 0.147643 | 0.158809 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003027 | 0.302604 | 1,421 | 64 | 56 | 22.203125 | 0.810293 | 0.057706 | 0 | 0.204545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.204545 | false | 0 | 0 | 0.022727 | 0.386364 | 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 |
e2b0352e5b918402c48052d39ae8db18886ac3fc | 972 | py | Python | src/scripts/x+y2kmeans.py | ai-ku/upos | 27d610318a0c777e2ca88b1ab2de5aa48f5a399f | [
"MIT"
] | 4 | 2015-01-24T11:27:18.000Z | 2019-05-18T11:35:02.000Z | src/scripts/x+y2kmeans.py | ai-ku/upos_2014 | f4723cac53b4d550d2b0c613c9577eb247c7ff4a | [
"MIT"
] | null | null | null | src/scripts/x+y2kmeans.py | ai-ku/upos_2014 | f4723cac53b4d550d2b0c613c9577eb247c7ff4a | [
"MIT"
] | 1 | 2019-04-06T07:56:00.000Z | 2019-04-06T07:56:00.000Z | #!/usr/bin/env python
import sys, gzip #argparse
from optparse import OptionParser
from collections import defaultdict as dd
parser = OptionParser()
#parser = argparse.ArgumentParser(description='Finds unique x-y pairs and concatenates their vectors. Requires scode output to stdin.')
parser.add_option('-p', '--pairs'... | 27.771429 | 135 | 0.650206 | 152 | 972 | 4.078947 | 0.447368 | 0.043548 | 0.041935 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009988 | 0.175926 | 972 | 34 | 136 | 28.588235 | 0.764045 | 0.166667 | 0 | 0 | 0 | 0 | 0.071871 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.115385 | null | null | 0.038462 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
e2b1d2d9d4d17a7953134601fdd087e0d18688c5 | 1,403 | py | Python | tutorial.py | tlmolane/Volt | 094a4ad337ccb7656d147256f15c6e80e8a989db | [
"MIT"
] | null | null | null | tutorial.py | tlmolane/Volt | 094a4ad337ccb7656d147256f15c6e80e8a989db | [
"MIT"
] | null | null | null | tutorial.py | tlmolane/Volt | 094a4ad337ccb7656d147256f15c6e80e8a989db | [
"MIT"
] | null | null | null | from cryptography.hazmat.backends import default_backend
from cryptography.hazmat.primitives.asymmetric import rsa
from cryptography.hazmat.primitives import serialization
private_key = rsa.generate_private_key(
public_exponent = 65537,
key_size = 4096,
backend = defaul... | 28.632653 | 86 | 0.655025 | 151 | 1,403 | 5.907285 | 0.357616 | 0.089686 | 0.073991 | 0.057175 | 0.440583 | 0.440583 | 0.340807 | 0.215247 | 0.170404 | 0 | 0 | 0.011268 | 0.240912 | 1,403 | 48 | 87 | 29.229167 | 0.826291 | 0.26871 | 0 | 0.166667 | 1 | 0 | 0.089744 | 0.081854 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
e2b67733913a97c62a93867c44fad1f13659b19b | 391 | py | Python | api/data/models/concept_class.py | CO-CONNECT/mapping-pipeline | b96f158b419ae748d94df0426d653d96b74f9a2b | [
"MIT"
] | 4 | 2021-02-01T09:50:45.000Z | 2021-06-10T14:30:56.000Z | api/data/models/concept_class.py | CO-CONNECT/mapping-pipeline | b96f158b419ae748d94df0426d653d96b74f9a2b | [
"MIT"
] | 96 | 2020-12-04T10:47:40.000Z | 2022-03-31T14:21:47.000Z | api/data/models/concept_class.py | CO-CONNECT/mapping-pipeline | b96f158b419ae748d94df0426d653d96b74f9a2b | [
"MIT"
] | 2 | 2020-12-04T18:24:12.000Z | 2020-12-11T13:47:42.000Z | from django.db import models
class ConceptClass(models.Model):
concept_class_id = models.CharField(
primary_key=True, max_length=20
)
concept_class_name = models.CharField(
max_length=255
)
concept_class_concept_id = models.IntegerField(
)
class Me... | 21.722222 | 52 | 0.624041 | 43 | 391 | 5.395349 | 0.581395 | 0.206897 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018315 | 0.30179 | 391 | 18 | 53 | 21.722222 | 0.831502 | 0 | 0 | 0 | 0 | 0 | 0.053333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.461538 | 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 |
e2b72687796f1e980c683f19f91b8d0a5fa3f7e8 | 593 | py | Python | PYTHON/Fibanacci_numbers_by_replacing_prime_numbers_and_multiples_of_5_by_0.py | ayushyado/HACKTOBERFEST2021-2 | b63d568fd7f33023ca0b0dbd91325444c70c4d10 | [
"MIT"
] | 125 | 2021-10-01T19:05:26.000Z | 2021-10-03T13:32:42.000Z | PYTHON/Fibanacci_numbers_by_replacing_prime_numbers_and_multiples_of_5_by_0.py | ayushyado/HACKTOBERFEST2021-2 | b63d568fd7f33023ca0b0dbd91325444c70c4d10 | [
"MIT"
] | 201 | 2021-10-30T20:40:01.000Z | 2022-03-22T17:26:28.000Z | PYTHON/Fibanacci_numbers_by_replacing_prime_numbers_and_multiples_of_5_by_0.py | ayushyado/HACKTOBERFEST2021-2 | b63d568fd7f33023ca0b0dbd91325444c70c4d10 | [
"MIT"
] | 294 | 2021-10-01T18:46:05.000Z | 2021-10-03T14:25:07.000Z | def is_prime(n):
if n > 1:
for i in range(2, n // 2 + 1):
if (n % i) == 0:
return False
else:
return True
else:
return False
def fibonacci(n):
n1, n2 = 1, 1
count = 0
if n == 1:
print(n1)
else:
while count < n:
... | 19.766667 | 48 | 0.379427 | 78 | 593 | 2.858974 | 0.410256 | 0.040359 | 0.035874 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.088136 | 0.50253 | 593 | 29 | 49 | 20.448276 | 0.667797 | 0 | 0 | 0.230769 | 0 | 0 | 0.03204 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0 | 0 | 0.192308 | 0.115385 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e2b88912463635dc1ed6e3477d1e4a95c1f90327 | 1,259 | py | Python | hackerrank/Algorithms/Lego Blocks/solution.py | ATrain951/01.python-com_Qproject | c164dd093954d006538020bdf2e59e716b24d67c | [
"MIT"
] | 4 | 2020-07-24T01:59:50.000Z | 2021-07-24T15:14:08.000Z | hackerrank/Algorithms/Lego Blocks/solution.py | ATrain951/01.python-com_Qproject | c164dd093954d006538020bdf2e59e716b24d67c | [
"MIT"
] | null | null | null | hackerrank/Algorithms/Lego Blocks/solution.py | ATrain951/01.python-com_Qproject | c164dd093954d006538020bdf2e59e716b24d67c | [
"MIT"
] | null | null | null | #!/bin/python3
import os
#
# Complete the legoBlocks function below.
#
def legoBlocks(n, m):
#
# Write your code here.
#
mod = 1000000007 # 10 ** 9 + 7
height = n % mod
width = m % mod
# The number of combinations to build a single row
row_combinations = [1, 1, 2, 4]
# Build row ... | 26.229167 | 96 | 0.612391 | 185 | 1,259 | 4.086486 | 0.421622 | 0.119048 | 0.043651 | 0.034392 | 0.07672 | 0.07672 | 0.07672 | 0.07672 | 0 | 0 | 0 | 0.029252 | 0.266878 | 1,259 | 47 | 97 | 26.787234 | 0.789816 | 0.316918 | 0 | 0 | 0 | 0 | 0.025974 | 0 | 0 | 0 | 0 | 0.021277 | 0 | 1 | 0.043478 | false | 0 | 0.043478 | 0 | 0.130435 | 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 |
e2b964e49e569c4c694d7daa8f82076e086c76f8 | 1,376 | py | Python | cross3d/motionbuilder/motionbuilderscene.py | vedantirb/cross3d | e27c2dc80bf607ef7ccf3970b713bfea8211228b | [
"MIT"
] | 129 | 2016-07-26T16:00:56.000Z | 2021-08-07T03:44:41.000Z | cross3d/motionbuilder/motionbuilderscene.py | vedantirb/cross3d | e27c2dc80bf607ef7ccf3970b713bfea8211228b | [
"MIT"
] | 3 | 2016-08-26T01:37:03.000Z | 2019-08-13T01:46:01.000Z | cross3d/motionbuilder/motionbuilderscene.py | vedantirb/cross3d | e27c2dc80bf607ef7ccf3970b713bfea8211228b | [
"MIT"
] | 33 | 2016-07-30T00:26:00.000Z | 2022-03-09T07:10:54.000Z | ##
# \namespace cross3d.softimage.motionbuilderscene
#
# \remarks The MotionBuilderScene class will define all the operations for Motion Builder scene interaction.
#
# \author douglas
# \author Blur Studio
# \date 06/21/12
#
import pyfbsdk as mob
from cross3d.abstract.abstractscene import AbstractScene
from PyQt... | 32.761905 | 121 | 0.686047 | 149 | 1,376 | 6.261745 | 0.563758 | 0.028939 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010161 | 0.141715 | 1,376 | 41 | 122 | 33.560976 | 0.779848 | 0.255087 | 0 | 0.111111 | 0 | 0 | 0.091029 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.222222 | null | null | 0.055556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2c3692bbbfc5afd975e68ea154f66d9c38d49e12 | 8,544 | py | Python | models/RSA.py | judithfan/graphcomm | f856e95b5c1db9d8146b1f07139c11fce94aa96d | [
"MIT"
] | 2 | 2019-12-18T14:51:01.000Z | 2020-12-28T03:39:47.000Z | models/RSA.py | judithfan/visual_communication_in_context | f856e95b5c1db9d8146b1f07139c11fce94aa96d | [
"MIT"
] | 9 | 2017-11-01T20:28:14.000Z | 2021-05-06T18:44:40.000Z | models/RSA.py | judithfan/graphcomm | f856e95b5c1db9d8146b1f07139c11fce94aa96d | [
"MIT"
] | null | null | null | from __future__ import division
import os
import thread
import subprocess
import numpy as np
import sys
analysis_path = '../analysis'
if analysis_path not in sys.path:
sys.path.append(analysis_path)
import analysis_helpers as h
### python RSA.py --wppl BDA --perception human multimodal_fc6 multimodal_conv42 multim... | 55.122581 | 225 | 0.600187 | 948 | 8,544 | 5.232068 | 0.195148 | 0.054435 | 0.072581 | 0.063508 | 0.511694 | 0.434073 | 0.408669 | 0.397782 | 0.378226 | 0.378226 | 0 | 0.009039 | 0.287804 | 8,544 | 154 | 226 | 55.480519 | 0.806081 | 0.11985 | 0 | 0.226563 | 0 | 0.023438 | 0.206059 | 0.012278 | 0 | 0 | 0 | 0 | 0.007813 | 0 | null | null | 0 | 0.0625 | null | null | 0.070313 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
2c4184ca5abb2345b92de9400652439cc3cc865e | 2,367 | py | Python | contact/models.py | deepindo/DoPython | d80b85b3b24566de6ece9f452564e4827e705959 | [
"MIT"
] | 4 | 2022-01-04T09:56:19.000Z | 2022-01-20T12:14:16.000Z | contact/models.py | deepindo/DoPython | d80b85b3b24566de6ece9f452564e4827e705959 | [
"MIT"
] | null | null | null | contact/models.py | deepindo/DoPython | d80b85b3b24566de6ece9f452564e4827e705959 | [
"MIT"
] | 1 | 2022-01-20T09:40:16.000Z | 2022-01-20T09:40:16.000Z | from django.db import models
from django.utils import timezone
from datetime import datetime
class JD(models.Model):
"""企业招聘信息"""
title = models.CharField(max_length=50, verbose_name='招聘岗位')
description = models.TextField(verbose_name='招聘要求')
publish_date = models.DateTimeField(default=timezone.now, ... | 33.338028 | 107 | 0.673426 | 292 | 2,367 | 5.239726 | 0.376712 | 0.172549 | 0.094118 | 0.12549 | 0.35098 | 0.237255 | 0.237255 | 0.067974 | 0 | 0 | 0 | 0.012487 | 0.188002 | 2,367 | 70 | 108 | 33.814286 | 0.783559 | 0.020701 | 0 | 0.104167 | 0 | 0 | 0.085143 | 0.010426 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0.0625 | 0.041667 | 0.6875 | 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 |
2c48744394e8af94ce18a5d489258ed61508a4b5 | 719 | py | Python | src/encoded/tests/test_upgrade_organism.py | procha2/encoded | e9f122362b71f3b8641023b8d2d5ad531d3484b7 | [
"MIT"
] | 102 | 2015-05-20T01:17:43.000Z | 2022-03-07T06:03:55.000Z | src/encoded/tests/test_upgrade_organism.py | procha2/encoded | e9f122362b71f3b8641023b8d2d5ad531d3484b7 | [
"MIT"
] | 901 | 2015-01-07T23:11:57.000Z | 2022-03-18T13:56:12.000Z | src/encoded/tests/test_upgrade_organism.py | procha2/encoded | e9f122362b71f3b8641023b8d2d5ad531d3484b7 | [
"MIT"
] | 65 | 2015-02-06T23:00:26.000Z | 2022-01-22T07:58:44.000Z | import pytest
def test_organism_upgrade(upgrader, organism_1_0):
value = upgrader.upgrade('organism', organism_1_0, target_version='2')
assert value['schema_version'] == '2'
assert value['status'] == 'current'
def test_organism_upgrade_4_5(upgrader, organism_4_0):
value = upgrader.upgrade('organism'... | 37.842105 | 95 | 0.702364 | 94 | 719 | 5.06383 | 0.234043 | 0.138655 | 0.105042 | 0.159664 | 0.537815 | 0.537815 | 0.457983 | 0.457983 | 0.457983 | 0.457983 | 0 | 0.040584 | 0.143255 | 719 | 18 | 96 | 39.944444 | 0.732143 | 0 | 0 | 0.285714 | 0 | 0 | 0.198887 | 0 | 0 | 0 | 0 | 0 | 0.428571 | 1 | 0.142857 | false | 0 | 0.071429 | 0 | 0.214286 | 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 |
2c4b074613413f4656537a27f7fea4fec1f2b45f | 575 | py | Python | Question-05/main.py | gajrajgchouhan/alcyone | b4b70a66101207dd331c906e229147aa7cc470a9 | [
"MIT"
] | null | null | null | Question-05/main.py | gajrajgchouhan/alcyone | b4b70a66101207dd331c906e229147aa7cc470a9 | [
"MIT"
] | null | null | null | Question-05/main.py | gajrajgchouhan/alcyone | b4b70a66101207dd331c906e229147aa7cc470a9 | [
"MIT"
] | null | null | null | from astropy.constants import *
import astropy.units as u
from math import sqrt
time_correction_on_earth = 1 / ( 1 - (2 * G * M_earth / (c*c*R_earth)) )**0.5
for _ in range(int(input())):
distance = float(input())
distance = u.Quantity(distance, unit=u.m)
v_square = (G * M_earth) / distance
time_corr... | 38.333333 | 121 | 0.648696 | 90 | 575 | 3.911111 | 0.433333 | 0.159091 | 0.181818 | 0.119318 | 0.068182 | 0.068182 | 0.068182 | 0.068182 | 0 | 0 | 0 | 0.046809 | 0.182609 | 575 | 15 | 121 | 38.333333 | 0.702128 | 0 | 0 | 0 | 0 | 0 | 0.010417 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.272727 | 0 | 0.272727 | 0.090909 | 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 |
2c56b5a96187c024335e89712a42a6b43e8a51e4 | 373 | py | Python | metadata/resources/ibis.py | bmampaey/SDA | 4cbe6fc699a6f0724a4801b3cedf4ab47ca08721 | [
"MIT"
] | null | null | null | metadata/resources/ibis.py | bmampaey/SDA | 4cbe6fc699a6f0724a4801b3cedf4ab47ca08721 | [
"MIT"
] | 2 | 2021-07-06T12:14:40.000Z | 2021-08-23T11:23:21.000Z | metadata/resources/ibis.py | bmampaey/SDA | 4cbe6fc699a6f0724a4801b3cedf4ab47ca08721 | [
"MIT"
] | null | null | null | # Generated by command write_metadata_files version 1
from metadata.models import Ibis
from .base_metadata import BaseMetadataResource
__all__ = ['IbisResource']
class IbisResource(BaseMetadataResource):
'''RESTful resource for model Ibis'''
class Meta(BaseMetadataResource.Meta):
abstract = False
queryset = ... | 24.866667 | 53 | 0.788204 | 42 | 373 | 6.785714 | 0.642857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003086 | 0.131367 | 373 | 14 | 54 | 26.642857 | 0.876543 | 0.225201 | 0 | 0 | 1 | 0 | 0.088339 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2c5a86972d6080f363b32c3b6a84898b9d7e2319 | 640 | py | Python | cadnano/views/pathview/__init__.py | sherwoodyao/cadnano2.5 | ce6ff019b88ee7728de947bd86b35861cf57848d | [
"BSD-3-Clause"
] | 69 | 2015-01-13T02:54:40.000Z | 2022-03-27T14:25:51.000Z | cadnano/views/pathview/__init__.py | scholer/cadnano2.5 | ce6ff019b88ee7728de947bd86b35861cf57848d | [
"BSD-3-Clause"
] | 127 | 2015-01-01T06:26:34.000Z | 2022-03-02T12:48:05.000Z | cadnano/views/pathview/__init__.py | scholer/cadnano2.5 | ce6ff019b88ee7728de947bd86b35861cf57848d | [
"BSD-3-Clause"
] | 48 | 2015-01-22T19:57:49.000Z | 2022-03-27T14:27:53.000Z | # -*- coding: utf-8 -*-
from cadnano.util import to_dot_path
pp = to_dot_path(__file__)
PathNucleicAcidPartItemT = pp + '.nucleicacidpartitem.PathNucleicAcidPartItem'
PathVirtualHelixItemT = pp + 'virtualhelixitem.PathVirtualHelixItem'
PathStrandItemT = pp + 'strand.stranditem.StrandItem'
PathEndpointItemT = pp + 'stra... | 49.230769 | 78 | 0.809375 | 56 | 640 | 9.107143 | 0.607143 | 0.047059 | 0.035294 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001715 | 0.089063 | 640 | 13 | 79 | 49.230769 | 0.87307 | 0.032813 | 0 | 0 | 0 | 0 | 0.485437 | 0.485437 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 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 |
2c5df2e5d1c726f9ad7096a4bc634f794bd9df96 | 1,011 | py | Python | day060/server.py | avholloway/100DaysOfCode | c7eeb8c47731ea7f47144d22fd90e4cc965d34c9 | [
"MIT"
] | null | null | null | day060/server.py | avholloway/100DaysOfCode | c7eeb8c47731ea7f47144d22fd90e4cc965d34c9 | [
"MIT"
] | null | null | null | day060/server.py | avholloway/100DaysOfCode | c7eeb8c47731ea7f47144d22fd90e4cc965d34c9 | [
"MIT"
] | null | null | null | import json
import requests
from flask import Flask, request, render_template
app = Flask(__name__)
def fetch_posts():
resp = requests.get("https://api.npoint.io/43644ec4f0013682fc0d")
resp.raise_for_status()
return resp.json()
@app.route("/")
def page_home():
return render_template("index.html", p... | 24.658537 | 101 | 0.658754 | 132 | 1,011 | 4.848485 | 0.401515 | 0.109375 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021302 | 0.164194 | 1,011 | 41 | 102 | 24.658537 | 0.736095 | 0 | 0 | 0 | 0 | 0 | 0.197628 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.178571 | false | 0 | 0.107143 | 0.107143 | 0.5 | 0.035714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
2c6950ff419fba1742cedd74b62baf3940ba073a | 2,036 | py | Python | src/unicef_snapshot/migrations/0001_initial.py | unicef/unicef-snapshot | 69123c08777863f59899ee5a7aee1b2d69b1b400 | [
"Apache-2.0"
] | null | null | null | src/unicef_snapshot/migrations/0001_initial.py | unicef/unicef-snapshot | 69123c08777863f59899ee5a7aee1b2d69b1b400 | [
"Apache-2.0"
] | 1 | 2019-05-09T14:59:21.000Z | 2019-05-09T14:59:21.000Z | src/unicef_snapshot/migrations/0001_initial.py | unicef/unicef-snapshot | 69123c08777863f59899ee5a7aee1b2d69b1b400 | [
"Apache-2.0"
] | 1 | 2019-02-27T18:48:55.000Z | 2019-02-27T18:48:55.000Z | # Generated by Django 1.10.8 on 2018-03-26 16:05
import django.db.models.deletion
import django.utils.timezone
import model_utils.fields
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
('contenttypes', ... | 46.272727 | 144 | 0.589391 | 199 | 2,036 | 5.849246 | 0.417085 | 0.094502 | 0.036082 | 0.056701 | 0.182131 | 0.182131 | 0.182131 | 0.182131 | 0.182131 | 0 | 0 | 0.01723 | 0.287328 | 2,036 | 43 | 145 | 47.348837 | 0.784976 | 0.022593 | 0 | 0 | 1 | 0 | 0.147384 | 0.02666 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.138889 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2c6a05aba5dfb7ba4ec8d00c8f297ac612cf347d | 1,441 | py | Python | user/migrations/0011_alter_post_interacted_plusone.py | 64Digits/SixtyFour | f83fc46a62dbc40b696117a3654de690a74afa16 | [
"BSD-3-Clause"
] | 1 | 2017-01-09T13:22:25.000Z | 2017-01-09T13:22:25.000Z | user/migrations/0011_alter_post_interacted_plusone.py | 64Digits/SixtyFour | f83fc46a62dbc40b696117a3654de690a74afa16 | [
"BSD-3-Clause"
] | null | null | null | user/migrations/0011_alter_post_interacted_plusone.py | 64Digits/SixtyFour | f83fc46a62dbc40b696117a3654de690a74afa16 | [
"BSD-3-Clause"
] | null | null | null | # Generated by Django 4.0.1 on 2022-01-13 19:25
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.db.models.manager
import user.models
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.A... | 38.945946 | 157 | 0.630118 | 161 | 1,441 | 5.509317 | 0.459627 | 0.054115 | 0.078918 | 0.074408 | 0.200676 | 0.200676 | 0.200676 | 0.200676 | 0.200676 | 0.200676 | 0 | 0.019022 | 0.233865 | 1,441 | 36 | 158 | 40.027778 | 0.78442 | 0.031228 | 0 | 0.133333 | 1 | 0 | 0.091105 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2c75c456ae0e5b26879691f0f95a2280582b22ca | 495 | py | Python | introduccion_algoritmos/1-introduccion/uddt.py | cristian-rincon/escuela-datascience | a9c805ccd30d66bfb4d17f652e9ce2f20a8978fb | [
"MIT"
] | null | null | null | introduccion_algoritmos/1-introduccion/uddt.py | cristian-rincon/escuela-datascience | a9c805ccd30d66bfb4d17f652e9ce2f20a8978fb | [
"MIT"
] | 32 | 2021-02-12T02:48:30.000Z | 2022-03-13T01:56:19.000Z | introduccion_algoritmos/1-introduccion/uddt.py | cristian-rincon/escuela-datascience | a9c805ccd30d66bfb4d17f652e9ce2f20a8978fb | [
"MIT"
] | null | null | null | """
User Defined Data Type
"""
from dataclasses import dataclass
@dataclass
class Client:
name: str
id: str
credit: float
address: str
def main():
user1 = Client("Cristian", "00001", 4400000, "Cr 1 nro 1 01")
print(f'The client name is: {user1.name}')
print(f'The client id is: {user1.... | 16.5 | 65 | 0.630303 | 70 | 495 | 4.342857 | 0.442857 | 0.078947 | 0.118421 | 0.197368 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.054974 | 0.228283 | 495 | 29 | 66 | 17.068966 | 0.740838 | 0.044444 | 0 | 0 | 0 | 0 | 0.36129 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.0625 | 0 | 0.4375 | 0.3125 | 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 |
2c75fd5959235731ea06f5b1e13985fc3f541ab3 | 3,993 | py | Python | src/anmi/T3/__init__.py | alexmascension/ANMI | 9c51a497a5fa2650f1429f847c7f9df69271168b | [
"BSD-3-Clause"
] | 1 | 2021-11-30T23:30:45.000Z | 2021-11-30T23:30:45.000Z | src/anmi/T3/__init__.py | alexmascension/ANMI | 9c51a497a5fa2650f1429f847c7f9df69271168b | [
"BSD-3-Clause"
] | 2 | 2021-04-11T20:39:15.000Z | 2021-04-13T17:45:43.000Z | src/anmi/T3/__init__.py | alexmascension/ANMI | 9c51a497a5fa2650f1429f847c7f9df69271168b | [
"BSD-3-Clause"
] | 1 | 2021-11-30T23:31:11.000Z | 2021-11-30T23:31:11.000Z | from sympy import symbols, poly, zeros, simplify
from anmi.T2 import factorizacion_QR
def matriz_krylov(A, x, n_iters=None):
"""Genera una matriz de krylov dada una matriz A y un vector x. Cada columna de la matriz es la iteración i de A^i*x.
Args:
A (matriz): Matriz de aplicación
x (vector):... | 33.838983 | 164 | 0.610068 | 621 | 3,993 | 3.803543 | 0.247987 | 0.056308 | 0.020745 | 0.028789 | 0.207028 | 0.140559 | 0.099069 | 0.025402 | 0.025402 | 0 | 0 | 0.017538 | 0.271726 | 3,993 | 117 | 165 | 34.128205 | 0.794704 | 0.46832 | 0 | 0 | 0 | 0 | 0.005601 | 0 | 0 | 0 | 0 | 0.042735 | 0 | 1 | 0.081633 | false | 0 | 0.040816 | 0 | 0.204082 | 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 |
2c8056968e3597b13388558f5a0232e6f86f6911 | 11,797 | py | Python | kalman/quadrotor.py | jlrandulfe/drone-swarm | f6cb075aefa02c9f8cb1b06cf53356ed13ff2a47 | [
"MIT"
] | 8 | 2018-11-30T14:16:48.000Z | 2022-01-10T09:14:40.000Z | kalman/quadrotor.py | jlrandulfe/drone-swarm | f6cb075aefa02c9f8cb1b06cf53356ed13ff2a47 | [
"MIT"
] | 14 | 2018-11-02T12:44:41.000Z | 2019-01-13T12:19:26.000Z | kalman/quadrotor.py | jlrandulfe/drone-swarm | f6cb075aefa02c9f8cb1b06cf53356ed13ff2a47 | [
"MIT"
] | 3 | 2019-02-26T09:26:01.000Z | 2021-05-23T03:05:52.000Z | import numpy as np
from scipy import linalg as la
class quadrotor:
def __init__(self, tag, m, l, J, CDl, CDr, kt, km, kw, att, \
pqr, xyz, v_ned, w):
# physical constants
self.tag = tag
self.m = m # [Kg]
self.l = l # [m]
self.J = J # Inertia matrix [Kg/m^2... | 34.494152 | 96 | 0.511571 | 1,910 | 11,797 | 3.013613 | 0.12356 | 0.018416 | 0.018763 | 0.016678 | 0.399931 | 0.368485 | 0.29934 | 0.293085 | 0.275712 | 0.246525 | 0 | 0.035355 | 0.343053 | 11,797 | 341 | 97 | 34.595308 | 0.707355 | 0.168348 | 0 | 0.341564 | 0 | 0 | 0.002367 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.00823 | null | null | 0.004115 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
2c8664574946922bb957433865ba6804c7cc5fd9 | 5,128 | py | Python | events/models.py | 0xelectron/mhtportal-web | bd05069d6245e86d4ae887cacf33b04ef9476816 | [
"MIT"
] | null | null | null | events/models.py | 0xelectron/mhtportal-web | bd05069d6245e86d4ae887cacf33b04ef9476816 | [
"MIT"
] | 5 | 2019-10-20T06:17:36.000Z | 2021-06-10T18:13:29.000Z | events/models.py | 0xelectron/mhtportal-web | bd05069d6245e86d4ae887cacf33b04ef9476816 | [
"MIT"
] | 2 | 2019-05-11T17:25:25.000Z | 2019-10-12T17:59:47.000Z | import datetime
from django.db import models
from django.utils.translation import ugettext as _
from django.core.validators import RegexValidator
from base.models import (Address, Center, Participant)
class EventCategory(models.Model):
category = models.CharField(max_length=50, default="", help_text=_("Event Categ... | 50.27451 | 116 | 0.705343 | 625 | 5,128 | 5.5504 | 0.2304 | 0.078409 | 0.057077 | 0.076103 | 0.428654 | 0.349957 | 0.278755 | 0.205823 | 0.115595 | 0.089651 | 0 | 0.009279 | 0.180382 | 5,128 | 101 | 117 | 50.772277 | 0.816084 | 0.108814 | 0 | 0 | 0 | 0 | 0.139252 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.014286 | false | 0 | 0.071429 | 0.014286 | 0.814286 | 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 |
2c8a0f9b47fe9671bfd4418de60013a9dd744a0f | 3,572 | py | Python | TAT_setup.py | jacob975/TATIRP | 2d81fa280e039aa931c6f8456632a23ef123282a | [
"MIT"
] | null | null | null | TAT_setup.py | jacob975/TATIRP | 2d81fa280e039aa931c6f8456632a23ef123282a | [
"MIT"
] | 4 | 2017-08-22T03:15:22.000Z | 2017-12-19T17:55:31.000Z | TAT_setup.py | jacob975/TATIRP | 2d81fa280e039aa931c6f8456632a23ef123282a | [
"MIT"
] | null | null | null | #!/usr/bin/python
'''
Program:
This is a program to setup tat python code.
For Linux and macOS only
Usage:
1. TAT_setup.py
editor Jacob975
20170809
#################################
update log
20170809 version alpha 1
It can run properly
20170830 version alpha 2
1. combine the linux version and macOS version... | 29.04065 | 88 | 0.650056 | 574 | 3,572 | 3.907666 | 0.256098 | 0.045475 | 0.04815 | 0.029425 | 0.452965 | 0.394561 | 0.375836 | 0.375836 | 0.360232 | 0.360232 | 0 | 0.027984 | 0.209686 | 3,572 | 122 | 89 | 29.278689 | 0.76656 | 0.163774 | 0 | 0.36 | 0 | 0 | 0.177432 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.08 | null | null | 0.106667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
2c8e169fa772d76481a30eb28b5a652bbad7e3ca | 4,122 | py | Python | schedule_lib/schedule.py | allankellynet/mimas | 10025d43bba9e84f502a266760786842e7158a05 | [
"MIT"
] | null | null | null | schedule_lib/schedule.py | allankellynet/mimas | 10025d43bba9e84f502a266760786842e7158a05 | [
"MIT"
] | 1 | 2020-02-05T13:00:29.000Z | 2020-02-05T13:00:29.000Z | schedule_lib/schedule.py | allankellynet/mimas | 10025d43bba9e84f502a266760786842e7158a05 | [
"MIT"
] | null | null | null | #-----------------------------------------------------
# Mimas: conference submission and review system
# (c) Allan Kelly 2016-2020 http://www.allankelly.net
# Licensed under MIT License, see LICENSE file
# -----------------------------------------------------
# schedule.py
#
# System imports
import datetime
# Google... | 28.232877 | 82 | 0.62033 | 556 | 4,122 | 4.32554 | 0.188849 | 0.069854 | 0.077755 | 0.099792 | 0.409563 | 0.360499 | 0.298545 | 0.257796 | 0.2158 | 0.172141 | 0 | 0.003207 | 0.243571 | 4,122 | 146 | 83 | 28.232877 | 0.768121 | 0.088549 | 0 | 0.237113 | 0 | 0 | 0.004004 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.216495 | false | 0 | 0.030928 | 0.020619 | 0.474227 | 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 |
2c8e6304331ac02ccf16b63626ba260347c197f3 | 1,154 | py | Python | scripts/soccer.py | jkurdys/ThinkBayes2 | 1ebab8c10f2fec5db420f8032b23ea3c7d0f1346 | [
"MIT"
] | 1,337 | 2015-01-06T06:23:55.000Z | 2022-03-31T21:06:21.000Z | scripts/soccer.py | jkurdys/ThinkBayes2 | 1ebab8c10f2fec5db420f8032b23ea3c7d0f1346 | [
"MIT"
] | 43 | 2015-04-23T13:14:15.000Z | 2022-01-04T12:55:59.000Z | scripts/soccer.py | jkurdys/ThinkBayes2 | 1ebab8c10f2fec5db420f8032b23ea3c7d0f1346 | [
"MIT"
] | 1,497 | 2015-01-13T22:05:32.000Z | 2022-03-30T09:19:53.000Z | """This file contains code for use with "Think Bayes",
by Allen B. Downey, available from greenteapress.com
Copyright 2014 Allen B. Downey
License: GNU GPLv3 http://www.gnu.org/licenses/gpl.html
"""
from __future__ import print_function, division
import numpy
import thinkbayes2
import thinkplot
class Soccer(thinkb... | 22.192308 | 71 | 0.654246 | 147 | 1,154 | 5.034014 | 0.62585 | 0.016216 | 0.032432 | 0.059459 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019429 | 0.241768 | 1,154 | 51 | 72 | 22.627451 | 0.826286 | 0.400347 | 0 | 0 | 0 | 0 | 0.077419 | 0 | 0 | 0 | 0 | 0.019608 | 0 | 1 | 0.15 | false | 0 | 0.2 | 0 | 0.45 | 0.15 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
2c9489fb62d836beccadd2830666a388bf52773f | 2,441 | py | Python | PyPoll/main-PyPoll.py | designergal3002/Python-Challenge | 64633fa390f2de8961b4f3294c5feafa3b9dc7f9 | [
"CNRI-Python",
"RSA-MD"
] | null | null | null | PyPoll/main-PyPoll.py | designergal3002/Python-Challenge | 64633fa390f2de8961b4f3294c5feafa3b9dc7f9 | [
"CNRI-Python",
"RSA-MD"
] | null | null | null | PyPoll/main-PyPoll.py | designergal3002/Python-Challenge | 64633fa390f2de8961b4f3294c5feafa3b9dc7f9 | [
"CNRI-Python",
"RSA-MD"
] | null | null | null | import os
import csv
candidates = []
num_votes = 0
vote_counts = []
# Determine path for the CSV file to access
poll_path = os.path.join('..', '..', 'Resources', 'election_data.csv')
# Read the CSV file
with open(poll_path,newline="") as csvfile:
csvreader = csv.reader(csvfile)
# Remove the header of the ... | 26.247312 | 169 | 0.630479 | 270 | 2,441 | 4.944444 | 0.311111 | 0.074906 | 0.05618 | 0.033708 | 0.210487 | 0.182772 | 0.11985 | 0.070412 | 0 | 0 | 0 | 0.02954 | 0.154035 | 2,441 | 92 | 170 | 26.532609 | 0.616949 | 0.084801 | 0 | 0.186441 | 0 | 0 | 0.212584 | 0.125843 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.033898 | null | null | 0.135593 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
2c95e2cfffd9e1416c2a4650c7706d12e677f972 | 483 | py | Python | alembic/versions/2019102221_add_shared_file_system_column__75d4288ae265.py | kl-chou/codalab-worksheets | 101d1d9f86d3f7b8dae3b4fc3e2335fcf8d7c3d7 | [
"Apache-2.0"
] | 236 | 2015-12-29T22:50:03.000Z | 2022-03-28T21:12:34.000Z | alembic/versions/2019102221_add_shared_file_system_column__75d4288ae265.py | kl-chou/codalab-worksheets | 101d1d9f86d3f7b8dae3b4fc3e2335fcf8d7c3d7 | [
"Apache-2.0"
] | 2,628 | 2015-12-27T09:45:13.000Z | 2022-03-30T16:18:25.000Z | alembic/versions/2019102221_add_shared_file_system_column__75d4288ae265.py | kl-chou/codalab-worksheets | 101d1d9f86d3f7b8dae3b4fc3e2335fcf8d7c3d7 | [
"Apache-2.0"
] | 87 | 2015-12-30T01:36:46.000Z | 2022-03-08T15:21:30.000Z | """Add shared-file-system column to workers
Revision ID: 75d4288ae265
Revises: d0dd45f443b6
Create Date: 2019-10-22 21:05:26.580918
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '75d4288ae265'
down_revision = 'd0dd45f443b6'
def upgrade():
op.add_column(... | 21 | 110 | 0.747412 | 66 | 483 | 5.348485 | 0.651515 | 0.084986 | 0.135977 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125891 | 0.128364 | 483 | 22 | 111 | 21.954545 | 0.712589 | 0.349896 | 0 | 0 | 0 | 0 | 0.238562 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 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.