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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
bdf4bba83ce926e7df5ccce4b0f2ff6a517c48e0 | 19,839 | py | Python | Host_DM/plot_results.py | obscode/CSPMCMC | 3811d5196a99f2f0adea2b6d0e01b12d93fd9639 | [
"MIT"
] | 1 | 2019-09-30T13:57:57.000Z | 2019-09-30T13:57:57.000Z | Host_DM/plot_results.py | obscode/CSPMCMC | 3811d5196a99f2f0adea2b6d0e01b12d93fd9639 | [
"MIT"
] | null | null | null | Host_DM/plot_results.py | obscode/CSPMCMC | 3811d5196a99f2f0adea2b6d0e01b12d93fd9639 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import matplotlib
matplotlib.use("Agg")
import matplotlib.pyplot as plt
from numpy import *
import pickle
import sys,os,string
from astropy.io import ascii
from myplotlib import PanelPlot
import config
import STANstats
import get_data
import sigfig
try:
import corner
except:
corner = None
... | 34.502609 | 85 | 0.63849 | 3,392 | 19,839 | 3.631191 | 0.112618 | 0.022327 | 0.025331 | 0.020784 | 0.584314 | 0.453763 | 0.41869 | 0.388082 | 0.356499 | 0.331087 | 0 | 0.05275 | 0.147638 | 19,839 | 574 | 86 | 34.562718 | 0.675636 | 0.050103 | 0 | 0.333988 | 0 | 0 | 0.080527 | 0.00651 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.023576 | null | null | 0.003929 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
bdfc35f54a9b8bd1f3bd3c52660efd98b04dbd81 | 6,342 | py | Python | tests/test_hdf5.py | MSLNZ/MSL-IO | 0b7a1f6ddacc936a98f134fd67f209840a500030 | [
"MIT"
] | 6 | 2021-06-27T00:26:09.000Z | 2022-02-11T06:04:23.000Z | tests/test_hdf5.py | MSLNZ/MSL-IO | 0b7a1f6ddacc936a98f134fd67f209840a500030 | [
"MIT"
] | null | null | null | tests/test_hdf5.py | MSLNZ/MSL-IO | 0b7a1f6ddacc936a98f134fd67f209840a500030 | [
"MIT"
] | 1 | 2018-03-01T03:11:00.000Z | 2018-03-01T03:11:00.000Z | import os
import tempfile
import pytest
import numpy as np
try:
import h5py
except ImportError:
h5py = None
from msl.io import read, HDF5Writer, JSONWriter
from msl.io.readers import HDF5Reader
from helper import read_sample, roots_equal
@pytest.mark.skipif(h5py is None, reason='h5py not installed')
def te... | 33.555556 | 97 | 0.621728 | 907 | 6,342 | 4.286659 | 0.210584 | 0.039609 | 0.042438 | 0.034208 | 0.35571 | 0.301955 | 0.237912 | 0.221451 | 0.178241 | 0.178241 | 0 | 0.046268 | 0.233207 | 6,342 | 188 | 98 | 33.734043 | 0.753239 | 0.065594 | 0 | 0.126761 | 0 | 0 | 0.098225 | 0.020795 | 0 | 0 | 0 | 0 | 0.43662 | 1 | 0.021127 | false | 0 | 0.06338 | 0 | 0.084507 | 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 |
da00ed6eab4691bf8ae09817f4bff2f338f59adc | 2,758 | py | Python | exp_final_whitebox_attacker.py | alanefl/graph-based-recommender-attacks | 4b7545b32bb18ebe89cbfdcd8463550296373002 | [
"MIT"
] | 3 | 2019-03-08T09:09:52.000Z | 2019-12-05T02:39:43.000Z | exp_final_whitebox_attacker.py | alanefl/graph-based-recommender-attacks | 4b7545b32bb18ebe89cbfdcd8463550296373002 | [
"MIT"
] | 2 | 2018-12-07T19:03:43.000Z | 2018-12-08T03:16:15.000Z | exp_final_whitebox_attacker.py | alanefl/graph-based-recommender-attacks | 4b7545b32bb18ebe89cbfdcd8463550296373002 | [
"MIT"
] | 3 | 2019-01-28T09:13:42.000Z | 2022-02-22T00:27:29.000Z | import traceback
import sys
import numpy as np
from gbra.data.network_loader import Movielens100kLoader
from gbra.attackers.attacker import *
from gbra.recommender.recommenders import PixieRandomWalkRecommender
ITERATIONS = 5
PIXIE_PARAMS = {
'n_p': 30,
'n_v': 4,
'max_steps_in_walk': 1000,
'alpha': 0... | 29.978261 | 91 | 0.734228 | 313 | 2,758 | 6.172524 | 0.383387 | 0.028986 | 0.039337 | 0.039337 | 0.230331 | 0.21118 | 0.124224 | 0.124224 | 0.124224 | 0.056936 | 0 | 0.023612 | 0.170776 | 2,758 | 91 | 92 | 30.307692 | 0.821163 | 0.06744 | 0 | 0.115942 | 0 | 0 | 0.099038 | 0.018444 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.086957 | null | null | 0.057971 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
da013d7bf5bd3738906f5171efb4f3e2276d7876 | 695 | py | Python | Examples/connection_test.py | Wenlin88/MonoDAQ-U-X | 51bf5986537211bea6d36dcbcb515689ecd361d5 | [
"MIT"
] | 1 | 2019-09-30T18:03:21.000Z | 2019-09-30T18:03:21.000Z | Examples/connection_test.py | Wenlin88/MonoDAQ-U-X | 51bf5986537211bea6d36dcbcb515689ecd361d5 | [
"MIT"
] | null | null | null | Examples/connection_test.py | Wenlin88/MonoDAQ-U-X | 51bf5986537211bea6d36dcbcb515689ecd361d5 | [
"MIT"
] | null | null | null | from isotel.idm import gateway, monodaq
import pickle
from pathlib import Path
# For quick access; remote ip adress; username and password is stored at little.secrets pickle. Note! Newer use donwloaded pickle. It can be hacked!
little_secrets = pickle.load(open(str(Path.home()) + "/little.secrets", "rb" ) )
remote_ip ... | 38.611111 | 148 | 0.667626 | 90 | 695 | 5.055556 | 0.588889 | 0.171429 | 0.083516 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009363 | 0.231655 | 695 | 17 | 149 | 40.882353 | 0.842697 | 0.307914 | 0 | 0 | 0 | 0 | 0.106918 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.181818 | 0.272727 | 0 | 0.272727 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
da03a31757da96abc382fc61fe58ac8b0cd58b3b | 196 | py | Python | Ex031 Custo da Viagem.py | JeanPauloGarcia/Python-Exercicios | faff4670806c423680ee00a88d3c4c49b437e72e | [
"MIT"
] | null | null | null | Ex031 Custo da Viagem.py | JeanPauloGarcia/Python-Exercicios | faff4670806c423680ee00a88d3c4c49b437e72e | [
"MIT"
] | null | null | null | Ex031 Custo da Viagem.py | JeanPauloGarcia/Python-Exercicios | faff4670806c423680ee00a88d3c4c49b437e72e | [
"MIT"
] | null | null | null | n = float(input('Distância viagem: '))
'''if n > 200:
n1 = n*0.45
else:
n1 = n*0.5'''
# modo 2
n1 = n*0.5 if n<=200 else n*0.45
print('Sua viagem de {}km custará {} reais'.format(n, n1))
| 19.6 | 58 | 0.561224 | 40 | 196 | 2.75 | 0.525 | 0.072727 | 0.109091 | 0.090909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137255 | 0.219388 | 196 | 9 | 59 | 21.777778 | 0.581699 | 0.030612 | 0 | 0 | 0 | 0 | 0.398496 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 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 |
da10d2e7c8f7427a5a8d088d25892ba004bc9a7e | 8,483 | py | Python | BinlogCapturer/src/binlogCapturer.py | lvxinup/BaikalDB-Migrate | 60235c16ec63fc856b6e9e632344ecd7f08e7e69 | [
"Apache-2.0"
] | 3 | 2020-12-16T07:40:39.000Z | 2021-01-30T08:07:06.000Z | BinlogCapturer/src/binlogCapturer.py | lvxinup/BaikalDB-Migrate | 60235c16ec63fc856b6e9e632344ecd7f08e7e69 | [
"Apache-2.0"
] | null | null | null | BinlogCapturer/src/binlogCapturer.py | lvxinup/BaikalDB-Migrate | 60235c16ec63fc856b6e9e632344ecd7f08e7e69 | [
"Apache-2.0"
] | 4 | 2020-12-16T07:06:37.000Z | 2020-12-16T07:14:39.000Z | # Copyright (c) 2020-present ly.com, Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applic... | 38.559091 | 135 | 0.672875 | 825 | 8,483 | 6.877576 | 0.290909 | 0.014099 | 0.013747 | 0.020092 | 0.127952 | 0.090589 | 0.069792 | 0.069792 | 0.069792 | 0.069792 | 0 | 0.005337 | 0.226924 | 8,483 | 219 | 136 | 38.73516 | 0.859866 | 0.138394 | 0 | 0.1125 | 0 | 0 | 0.046854 | 0.012366 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.09375 | null | null | 0.025 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
da1334404697889260a8bebeea04c6d1b234a792 | 363 | py | Python | settings/local-dist.py | brianjgeiger/osf-pigeon | 474e741358514d24907d92be80d90d82dd38f707 | [
"MIT"
] | null | null | null | settings/local-dist.py | brianjgeiger/osf-pigeon | 474e741358514d24907d92be80d90d82dd38f707 | [
"MIT"
] | null | null | null | settings/local-dist.py | brianjgeiger/osf-pigeon | 474e741358514d24907d92be80d90d82dd38f707 | [
"MIT"
] | null | null | null | # New tokens can be found at https://archive.org/account/s3.php
IA_ACCESS_KEY = 'change to valid token'
IA_SECRET_KEY = 'change to valid token'
DOI_FORMAT = '10.70102/fk2osf.io/{guid}'
OSF_BEARER_TOKEN = ''
DATACITE_USERNAME = None
DATACITE_PASSWORD = None
DATACITE_URL = None
DATACITE_PREFIX = '10.70102' # Datacite... | 27.923077 | 82 | 0.757576 | 57 | 363 | 4.631579 | 0.701754 | 0.136364 | 0.083333 | 0.121212 | 0.159091 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051282 | 0.140496 | 363 | 12 | 83 | 30.25 | 0.794872 | 0.30854 | 0 | 0 | 0 | 0 | 0.302419 | 0.100806 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
da15731fc2951f272b0cca8ce3a85560331472b7 | 10,894 | py | Python | basic_ops.py | dingmingxin/crossword_generator | ff6dae5673ab6f5ebdb259dc85a7609710c7a0f7 | [
"BSD-3-Clause"
] | 51 | 2016-05-19T14:04:44.000Z | 2022-02-02T23:39:16.000Z | basic_ops.py | dingmingxin/crossword_generator | ff6dae5673ab6f5ebdb259dc85a7609710c7a0f7 | [
"BSD-3-Clause"
] | null | null | null | basic_ops.py | dingmingxin/crossword_generator | ff6dae5673ab6f5ebdb259dc85a7609710c7a0f7 | [
"BSD-3-Clause"
] | 15 | 2016-05-20T15:59:13.000Z | 2022-03-05T02:23:12.000Z | import random
import time
def generate_random_possibility(words, dim):
""" This function returns a randomly-generated possibility, instead of generating all
possible ones.
"""
# Generate possibility
possibility = {"word": words[random.randint(0, len(words)-1)],
"location": [rand... | 33.937695 | 144 | 0.607582 | 1,520 | 10,894 | 4.274342 | 0.167105 | 0.030783 | 0.016931 | 0.020779 | 0.352932 | 0.306603 | 0.265045 | 0.197322 | 0.187163 | 0.16069 | 0 | 0.010611 | 0.290619 | 10,894 | 321 | 145 | 33.937695 | 0.830098 | 0.316046 | 0 | 0.388535 | 1 | 0 | 0.031601 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095541 | false | 0 | 0.012739 | 0.012739 | 0.299363 | 0.012739 | 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 |
da17e42de65984cda1a54beeefab951ef1a68679 | 1,538 | py | Python | utils/tail_server_events.py | dshean/sliderule-python | 3cf9a6c65987705354cb536d71f85a32fbb24d15 | [
"BSD-3-Clause"
] | 1 | 2021-04-09T22:01:33.000Z | 2021-04-09T22:01:33.000Z | utils/tail_server_events.py | dshean/sliderule-python | 3cf9a6c65987705354cb536d71f85a32fbb24d15 | [
"BSD-3-Clause"
] | null | null | null | utils/tail_server_events.py | dshean/sliderule-python | 3cf9a6c65987705354cb536d71f85a32fbb24d15 | [
"BSD-3-Clause"
] | null | null | null | #
# Connects to SlideRule server at provided url and prints log messages
# generated on server to local terminal
#
import sys
import logging
from sliderule import sliderule
from sliderule import icesat2
###############################################################################
# GLOBAL CODE
####################... | 25.213115 | 79 | 0.496749 | 159 | 1,538 | 4.716981 | 0.408805 | 0.093333 | 0.053333 | 0.08 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017456 | 0.217815 | 1,538 | 60 | 80 | 25.633333 | 0.605985 | 0.249675 | 0 | 0 | 1 | 0 | 0.063337 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.035714 | 0.142857 | 0 | 0.142857 | 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 |
da1a6848821060521f2d756bf5d84bdf6c4c26e4 | 1,160 | py | Python | hw/hw02/tests/q5.py | surajrampure/data-94-sp21 | 074543103579c28d796c681f78f3c38449825328 | [
"BSD-3-Clause"
] | 1 | 2020-11-21T09:42:52.000Z | 2020-11-21T09:42:52.000Z | hw/hw02/tests/q5.py | surajrampure/data-94-sp21 | 074543103579c28d796c681f78f3c38449825328 | [
"BSD-3-Clause"
] | null | null | null | hw/hw02/tests/q5.py | surajrampure/data-94-sp21 | 074543103579c28d796c681f78f3c38449825328 | [
"BSD-3-Clause"
] | null | null | null | test = { 'name': 'q5',
'points': 3,
'suites': [ { 'cases': [ {'code': ">>> big_tippers(['suraj', 15, 'isaac', 9, 'angela', 19]) == ['suraj', 'angela']\nTrue", 'hidden': False, 'locked': False},
{ 'code': ">>> big_tippers(['suraj', 15, 'isaac', 25, 'angela', 19, 'anna... | 68.235294 | 183 | 0.323276 | 93 | 1,160 | 4 | 0.634409 | 0.080645 | 0.137097 | 0.177419 | 0.295699 | 0.295699 | 0 | 0 | 0 | 0 | 0 | 0.036021 | 0.497414 | 1,160 | 16 | 184 | 72.5 | 0.602058 | 0 | 0 | 0.125 | 0 | 0.1875 | 0.433621 | 0.036207 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 |
da221c0a85253196d067a1ec0dca319c11cf5a14 | 609 | py | Python | tgbot/models.py | psevdognom/gostbot | f5a142c0657285077cee58151590163a9e7f2527 | [
"Apache-2.0"
] | 1 | 2020-11-10T10:30:33.000Z | 2020-11-10T10:30:33.000Z | tgbot/models.py | psevdognom/gostbot | f5a142c0657285077cee58151590163a9e7f2527 | [
"Apache-2.0"
] | 1 | 2020-07-30T17:38:30.000Z | 2020-07-30T19:36:42.000Z | tgbot/models.py | psevdognom/gostbot | f5a142c0657285077cee58151590163a9e7f2527 | [
"Apache-2.0"
] | null | null | null | from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy import Column, Integer, String
from sqlalchemy import create_engine
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import sessionmaker
engine = create_engine('sqlite:///gosts.db')
Session = sessionmaker(bind=engine)
s... | 29 | 55 | 0.766831 | 77 | 609 | 5.831169 | 0.519481 | 0.155902 | 0.075724 | 0.124722 | 0.280624 | 0.280624 | 0.280624 | 0.280624 | 0.280624 | 0 | 0 | 0 | 0.152709 | 609 | 21 | 56 | 29 | 0.870155 | 0.073892 | 0 | 0.125 | 0 | 0 | 0.04078 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.3125 | 0.0625 | 0.75 | 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 |
da2549884ef76e4e06e5ec00ceef487768236a9e | 625 | py | Python | TBert.py | ggnicolau/Projeto-12--TBert-SP-City-Hall | 467e55b75e3e14eb6f8a2feadffc50a98f9e7a50 | [
"MIT"
] | null | null | null | TBert.py | ggnicolau/Projeto-12--TBert-SP-City-Hall | 467e55b75e3e14eb6f8a2feadffc50a98f9e7a50 | [
"MIT"
] | null | null | null | TBert.py | ggnicolau/Projeto-12--TBert-SP-City-Hall | 467e55b75e3e14eb6f8a2feadffc50a98f9e7a50 | [
"MIT"
] | null | null | null | #%%Links
# BERT with Topic Model
https://www.aclweb.org/anthology/2020.acl-main.630.pdf
https://towardsdatascience.com/topic-modeling-with-bert-779f7db187e6
https://www.kaggle.com/dskswu/topic-modeling-bert-lda
https://blog.insightdatascience.com/contextual-topic-identification-4291d256a032
https://datascience.stac... | 62.5 | 102 | 0.8208 | 88 | 625 | 5.829545 | 0.590909 | 0.126706 | 0.066277 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.072368 | 0.0272 | 625 | 10 | 103 | 62.5 | 0.771382 | 0.0464 | 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 |
da28c193ef77163ddf391ccdf35c16001c14a2a9 | 4,577 | py | Python | Lib/test/test_compiler/test_static/readonly.py | mananpal1997/cinder | a8804cc6e3a5861463ff959abcd09ad60a0763e5 | [
"CNRI-Python-GPL-Compatible"
] | null | null | null | Lib/test/test_compiler/test_static/readonly.py | mananpal1997/cinder | a8804cc6e3a5861463ff959abcd09ad60a0763e5 | [
"CNRI-Python-GPL-Compatible"
] | null | null | null | Lib/test/test_compiler/test_static/readonly.py | mananpal1997/cinder | a8804cc6e3a5861463ff959abcd09ad60a0763e5 | [
"CNRI-Python-GPL-Compatible"
] | null | null | null | from compiler.errors import TypedSyntaxError
from unittest import skip
from .common import StaticTestBase
class ReadonlyTests(StaticTestBase):
def test_readonly_assign_0(self):
codestr = """
from typing import List
def foo():
x: List[int] = readonly([])
"""
sel... | 26.005682 | 88 | 0.464059 | 502 | 4,577 | 4.11753 | 0.135458 | 0.027092 | 0.087083 | 0.087083 | 0.63135 | 0.590227 | 0.544751 | 0.524432 | 0.421384 | 0.328012 | 0 | 0.007113 | 0.41643 | 4,577 | 175 | 89 | 26.154286 | 0.766754 | 0 | 0 | 0.615385 | 0 | 0 | 0.580948 | 0.004807 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0.051282 | 0.076923 | 0 | 0.198718 | 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 |
da2ea93da9afa176a477a8495db2615a90754e3c | 301 | py | Python | Extras/002ex.py | lucasbraga10/ListaDeExerciciosPython | 496a6c90e33e60fdf13e841c78a22707aa7139a8 | [
"MIT"
] | null | null | null | Extras/002ex.py | lucasbraga10/ListaDeExerciciosPython | 496a6c90e33e60fdf13e841c78a22707aa7139a8 | [
"MIT"
] | null | null | null | Extras/002ex.py | lucasbraga10/ListaDeExerciciosPython | 496a6c90e33e60fdf13e841c78a22707aa7139a8 | [
"MIT"
] | null | null | null | hora = input('Digite a hora atual: ')
try:
hora = int(hora)
if 0 <= hora <= 11:
print('Bom Dia')
elif 12 <= hora <= 17:
print('Boa Tarde')
elif 18 <= hora <= 23:
print('Boa Noite')
else:
print('Valor Inválido')
except:
print('Valor Inválido')
| 18.8125 | 37 | 0.51495 | 39 | 301 | 3.974359 | 0.641026 | 0.103226 | 0.232258 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.054455 | 0.328904 | 301 | 15 | 38 | 20.066667 | 0.712871 | 0 | 0 | 0.153846 | 0 | 0 | 0.245847 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.384615 | 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 |
da2fb0e4b9c5cd78249a882ade9203be37d076f3 | 4,344 | py | Python | run_2c/figures/plot_ivs.py | braghiere/3D_FSPM | 5ba06b6e65c3299776bb32e552d2788564a7306d | [
"MIT"
] | null | null | null | run_2c/figures/plot_ivs.py | braghiere/3D_FSPM | 5ba06b6e65c3299776bb32e552d2788564a7306d | [
"MIT"
] | null | null | null | run_2c/figures/plot_ivs.py | braghiere/3D_FSPM | 5ba06b6e65c3299776bb32e552d2788564a7306d | [
"MIT"
] | 1 | 2022-02-10T14:34:33.000Z | 2022-02-10T14:34:33.000Z |
import numpy as np
import matplotlib.pyplot as plt
import os, sys
from scipy.interpolate import interp2d
from pylab import *
filelist=[]
#error = []
biomrsd1= []
biomrsd2= []
dirname1 = "/home/renato/groimp_efficient/run_1/"
dirname2 = "/home/renato/groimp_efficient/run_1c/jules/"
list = [94]
for i in range(1,2):... | 24.681818 | 119 | 0.652394 | 708 | 4,344 | 3.940678 | 0.261299 | 0.058065 | 0.103226 | 0.044803 | 0.31828 | 0.185663 | 0.164158 | 0.150538 | 0.143369 | 0.110394 | 0 | 0.071887 | 0.138582 | 4,344 | 175 | 120 | 24.822857 | 0.673704 | 0.200046 | 0 | 0.036364 | 0 | 0 | 0.128272 | 0.061664 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.045455 | null | null | 0.018182 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
da37e2b8ed8d04e1694b1c5e3fc2968aed7f5493 | 938 | py | Python | app/main/forms.py | tonyishangu/Pitch | 6af51349086d615bb3a14a100df5f3f2f4441214 | [
"MIT"
] | null | null | null | app/main/forms.py | tonyishangu/Pitch | 6af51349086d615bb3a14a100df5f3f2f4441214 | [
"MIT"
] | null | null | null | app/main/forms.py | tonyishangu/Pitch | 6af51349086d615bb3a14a100df5f3f2f4441214 | [
"MIT"
] | null | null | null | from flask_wtf import FlaskForm
from wtforms import StringField,TextAreaField,SubmitField, SelectField
from wtforms.validators import Required
class PitchForm(FlaskForm):
title = StringField('Pitch title',validators=[Required()])
category = SelectField('Pitch category', choices=[('Motivational', 'Motivational... | 39.083333 | 159 | 0.732409 | 86 | 938 | 7.976744 | 0.430233 | 0.131195 | 0.104956 | 0.153061 | 0.233236 | 0.233236 | 0.166181 | 0 | 0 | 0 | 0 | 0.002439 | 0.1258 | 938 | 24 | 160 | 39.083333 | 0.834146 | 0 | 0 | 0.166667 | 0 | 0 | 0.179979 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 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 |
da3c4ac30ec8cbb4f50d0e6f54d08e89941129bf | 357 | py | Python | theano/compile/tests/test_function_name.py | mdda/Theano | 6ca7b2b65000e371f009b617d41bc5a90f022d38 | [
"BSD-3-Clause"
] | 295 | 2015-09-25T21:15:04.000Z | 2022-01-13T01:16:18.000Z | theano/compile/tests/test_function_name.py | AtousaTorabi/Theano_old | ba2d2f74406243112e813df31429721c791a889a | [
"BSD-3-Clause"
] | 21 | 2015-10-28T19:06:32.000Z | 2022-03-11T23:13:05.000Z | theano/compile/tests/test_function_name.py | AtousaTorabi/Theano_old | ba2d2f74406243112e813df31429721c791a889a | [
"BSD-3-Clause"
] | 114 | 2015-09-26T21:23:02.000Z | 2021-11-19T02:36:41.000Z | import unittest
import os
import re
import theano
from theano import tensor
class FunctionName(unittest.TestCase):
def test_function_name(self):
x = tensor.vector('x')
func = theano.function([x], x + 1.)
regex = re.compile(os.path.basename('.*test_function_name.pyc?:13'))
assert... | 21 | 76 | 0.67507 | 50 | 357 | 4.74 | 0.6 | 0.101266 | 0.135021 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010563 | 0.204482 | 357 | 16 | 77 | 22.3125 | 0.823944 | 0 | 0 | 0 | 0 | 0 | 0.081232 | 0.078431 | 0 | 0 | 0 | 0 | 0.090909 | 1 | 0.090909 | false | 0 | 0.454545 | 0 | 0.636364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
da486790a4010f1ed533b021cccf13c3e964e378 | 5,004 | py | Python | sgh_stepperArm.py | davidramirezm30/scratch-orangepi | b4aa70f1cdcc030186532ad61cebf786be415b4b | [
"MIT"
] | null | null | null | sgh_stepperArm.py | davidramirezm30/scratch-orangepi | b4aa70f1cdcc030186532ad61cebf786be415b4b | [
"MIT"
] | null | null | null | sgh_stepperArm.py | davidramirezm30/scratch-orangepi | b4aa70f1cdcc030186532ad61cebf786be415b4b | [
"MIT"
] | null | null | null | # meArm.py - York Hack Space May 2014
# A motion control library for Phenoptix meArm using Adafruit 16-channel PWM servo driver
from sgh_Adafruit_PWM_Servo_Driver import PWM
import kinematics
import time
from math import pi
class meArm():
def __init__(self, sweepMinBase = -206, sweepMaxBase = 206, angleMinBase = ... | 43.894737 | 155 | 0.601519 | 644 | 5,004 | 4.635093 | 0.307453 | 0.039196 | 0.00804 | 0.007035 | 0.054271 | 0.042211 | 0.042211 | 0.042211 | 0.042211 | 0.042211 | 0 | 0.036415 | 0.286571 | 5,004 | 113 | 156 | 44.283186 | 0.79972 | 0.082134 | 0 | 0.047619 | 0 | 0 | 0.025488 | 0 | 0 | 0 | 0.001085 | 0 | 0 | 0 | null | null | 0 | 0.047619 | null | null | 0.059524 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
da5097b56f955d58d7c07e2cd9380b37c6714381 | 206 | py | Python | goodread/config.py | frictionlessdata/goodread | 094ca6c713f23e357d24795b207cb0fdee0012ca | [
"MIT"
] | 2 | 2021-03-10T07:38:21.000Z | 2021-04-03T09:49:20.000Z | goodread/config.py | frictionlessdata/goodread | 094ca6c713f23e357d24795b207cb0fdee0012ca | [
"MIT"
] | 3 | 2021-03-13T08:09:56.000Z | 2021-03-13T14:24:53.000Z | goodread/config.py | roll/goodread-py | 094ca6c713f23e357d24795b207cb0fdee0012ca | [
"MIT"
] | null | null | null | import os
# Helpers
def read_asset(*paths):
dirname = os.path.dirname(__file__)
return open(os.path.join(dirname, "assets", *paths)).read().strip()
# General
VERSION = read_asset("VERSION")
| 12.875 | 71 | 0.674757 | 27 | 206 | 4.925926 | 0.62963 | 0.135338 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.165049 | 206 | 15 | 72 | 13.733333 | 0.773256 | 0.072816 | 0 | 0 | 0 | 0 | 0.069149 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 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 |
da53752dcf6b6cccf46e141a566ea1d87d74739d | 2,575 | py | Python | gcb_web_auth/backends/oauth.py | Duke-GCB/gcb-web-auth | 51b74f278a3234e1036cc111407ff2b951354873 | [
"MIT"
] | 1 | 2017-04-26T10:26:01.000Z | 2017-04-26T10:26:01.000Z | gcb_web_auth/backends/oauth.py | Duke-GCB/gcb-web-auth | 51b74f278a3234e1036cc111407ff2b951354873 | [
"MIT"
] | 25 | 2017-04-26T20:08:55.000Z | 2021-06-07T19:14:43.000Z | gcb_web_auth/backends/oauth.py | Duke-GCB/gcb-web-auth | 51b74f278a3234e1036cc111407ff2b951354873 | [
"MIT"
] | null | null | null | from ..utils import user_details_from_token, OAuthException
from ..groupmanager import user_belongs_to_group
from ..models import GroupManagerConnection
from .base import BaseBackend
from django.core.exceptions import PermissionDenied
import logging
# Maps django User attributes to OIDC userinfo keys
logging.basicCon... | 36.267606 | 110 | 0.680388 | 322 | 2,575 | 5.220497 | 0.329193 | 0.065437 | 0.030934 | 0.032124 | 0.118977 | 0.045211 | 0.045211 | 0.045211 | 0 | 0 | 0 | 0.000521 | 0.254757 | 2,575 | 70 | 111 | 36.785714 | 0.875456 | 0.278058 | 0 | 0.051282 | 0 | 0 | 0.085194 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.128205 | false | 0.051282 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
da5817c0ccd94f09614efc895d74996c5c2086e4 | 7,315 | py | Python | backend/_tests/test_lambda.py | codemonkey800/napari-hub | 34a40b68d67002de2514d55b575b71159c7456cb | [
"MIT"
] | null | null | null | backend/_tests/test_lambda.py | codemonkey800/napari-hub | 34a40b68d67002de2514d55b575b71159c7456cb | [
"MIT"
] | null | null | null | backend/_tests/test_lambda.py | codemonkey800/napari-hub | 34a40b68d67002de2514d55b575b71159c7456cb | [
"MIT"
] | null | null | null | from unittest import mock
import requests
from requests.exceptions import HTTPError
from backend.napari import get_plugin
from backend.napari import get_plugins
from backend.napari import get_download_url
from backend.napari import get_license
class FakeResponse:
def __init__(self, *, data: str):
self.te... | 36.034483 | 195 | 0.666029 | 944 | 7,315 | 4.988347 | 0.220339 | 0.058611 | 0.048418 | 0.029306 | 0.553196 | 0.459758 | 0.378424 | 0.330006 | 0.28265 | 0.220641 | 0 | 0.048255 | 0.13028 | 7,315 | 202 | 196 | 36.212871 | 0.691921 | 0 | 0 | 0.194286 | 0 | 0.022857 | 0.637731 | 0.31784 | 0 | 0 | 0 | 0 | 0.177143 | 1 | 0.057143 | false | 0 | 0.04 | 0 | 0.108571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
da597c1b33b1775b34cb070ed8fecbd878d88b90 | 1,981 | py | Python | src/webpage.py | Lanfei/hae | a8325083fff1792be73f16656000a048472dc296 | [
"MIT"
] | 39 | 2015-01-15T13:07:50.000Z | 2021-11-07T20:21:37.000Z | src/webpage.py | jjzhang166/hae | a8325083fff1792be73f16656000a048472dc296 | [
"MIT"
] | null | null | null | src/webpage.py | jjzhang166/hae | a8325083fff1792be73f16656000a048472dc296 | [
"MIT"
] | 15 | 2015-09-10T08:31:36.000Z | 2021-08-09T16:58:42.000Z | import assets
import webbrowser
from PyQt5.Qt import QMessageBox
from PyQt5.QtNetwork import QNetworkDiskCache
from PyQt5.QtWebKitWidgets import QWebPage, QWebInspector
class WebPage(QWebPage):
def __init__(self):
super(WebPage, self).__init__()
self.inspector = QWebInspector()
self.inspector.setPage(self)
se... | 31.951613 | 96 | 0.744573 | 223 | 1,981 | 6.578475 | 0.38565 | 0.05317 | 0.054533 | 0.04908 | 0.113838 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006948 | 0.128218 | 1,981 | 61 | 97 | 32.47541 | 0.842501 | 0.141848 | 0 | 0.046512 | 0 | 0 | 0.003546 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.209302 | false | 0 | 0.139535 | 0.046512 | 0.511628 | 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 |
da6d5e10eb908686caf520c0282d057272e35a99 | 417 | py | Python | python/ack.py | catseye/Dipple | 7c098e6b4cd9bffd8ff65465cfa4620ce09678a2 | [
"Unlicense"
] | 5 | 2016-05-18T01:51:37.000Z | 2022-01-13T23:34:32.000Z | python/ack.py | catseye/Dipple | 7c098e6b4cd9bffd8ff65465cfa4620ce09678a2 | [
"Unlicense"
] | 2 | 2015-08-06T20:21:11.000Z | 2017-08-02T14:30:31.000Z | python/ack.py | catseye/Dipple | 7c098e6b4cd9bffd8ff65465cfa4620ce09678a2 | [
"Unlicense"
] | 1 | 2015-01-25T02:49:49.000Z | 2015-01-25T02:49:49.000Z | #!/usr/bin/env python
import sys
def ack(m, n):
if m == 0:
return n + 1
elif n == 0:
return ack(m-1, 1)
else:
return ack(m-1, ack(m, n-1))
sys.setrecursionlimit(12000)
for m in range(0, 4):
for n in range(0, 10):
print "ack(%s,%s)=%s" % (m, n, ack(m, n))
m = 4
n = 0
print ... | 16.038462 | 45 | 0.472422 | 86 | 417 | 2.290698 | 0.290698 | 0.081218 | 0.126904 | 0.152284 | 0.304569 | 0.304569 | 0.304569 | 0.304569 | 0.304569 | 0.304569 | 0 | 0.071186 | 0.292566 | 417 | 25 | 46 | 16.68 | 0.59661 | 0.177458 | 0 | 0.133333 | 0 | 0 | 0.076696 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.066667 | null | null | 0.133333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
da72b5d6db173d0936d21e44910a561197ddd81b | 1,384 | py | Python | src/config/settings.py | crayzee/useful | d760a11202093681ff69e402ba816cfc7e5ff739 | [
"BSD-3-Clause"
] | 2 | 2021-02-14T17:57:18.000Z | 2021-02-14T18:11:17.000Z | src/config/settings.py | crayzee/useful | d760a11202093681ff69e402ba816cfc7e5ff739 | [
"BSD-3-Clause"
] | null | null | null | src/config/settings.py | crayzee/useful | d760a11202093681ff69e402ba816cfc7e5ff739 | [
"BSD-3-Clause"
] | null | null | null | import os
from .local_config import *
PROJECT_NAME = "Useful"
SERVER_HOST = 'http://127.0.0.1:8000'
# Secret key
SECRET_KEY = b"laksd^8223kad_)8dkfjslkjUJKSN83_*Kk3ja@8ksdfj"
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
API_V1_STR = "/api/v1"
# Token 60 minutes * 24 hours * 7 days = 7 da... | 23.862069 | 70 | 0.721821 | 206 | 1,384 | 4.57767 | 0.417476 | 0.09544 | 0.127253 | 0.084836 | 0.033934 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03786 | 0.12211 | 1,384 | 57 | 71 | 24.280702 | 0.738272 | 0.064306 | 0 | 0 | 0 | 0 | 0.391001 | 0.171451 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.054054 | 0.054054 | 0 | 0.054054 | 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 |
da73bebdb1a8c110e03d6c6e8884f8ede489e4ad | 3,612 | py | Python | bluebottle/cms/migrations/0021_auto_20171017_2015.py | terrameijar/bluebottle | b4f5ba9c4f03e678fdd36091b29240307ea69ffd | [
"BSD-3-Clause"
] | 10 | 2015-05-28T18:26:40.000Z | 2021-09-06T10:07:03.000Z | bluebottle/cms/migrations/0021_auto_20171017_2015.py | terrameijar/bluebottle | b4f5ba9c4f03e678fdd36091b29240307ea69ffd | [
"BSD-3-Clause"
] | 762 | 2015-01-15T10:00:59.000Z | 2022-03-31T15:35:14.000Z | bluebottle/cms/migrations/0021_auto_20171017_2015.py | terrameijar/bluebottle | b4f5ba9c4f03e678fdd36091b29240307ea69ffd | [
"BSD-3-Clause"
] | 9 | 2015-02-20T13:19:30.000Z | 2022-03-08T14:09:17.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.10.8 on 2017-10-17 18:15
from __future__ import unicode_literals
import adminsortable.fields
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('utils', '0002_maillog'),
... | 47.526316 | 249 | 0.592193 | 372 | 3,612 | 5.602151 | 0.327957 | 0.052783 | 0.026871 | 0.042226 | 0.334933 | 0.300384 | 0.252879 | 0.197697 | 0.197697 | 0.151631 | 0 | 0.01676 | 0.256645 | 3,612 | 75 | 250 | 48.16 | 0.759404 | 0.018826 | 0 | 0.441176 | 1 | 0 | 0.186106 | 0.007343 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.102941 | 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 |
da7a14fecc0293a448e5b7f69f5fae7ef9b4d5fb | 1,615 | py | Python | usernado/torntriplets/api.py | reganto/usernado | cb6c2b7b855d2e9abcc5b9c9849ff2b7d46883db | [
"Apache-2.0"
] | 3 | 2022-01-19T18:18:49.000Z | 2022-03-31T06:47:00.000Z | usernado/torntriplets/api.py | reganto/Usernado | 2f3e28322f1f8af13a158e6e566a2f5d78039cac | [
"Apache-2.0"
] | 10 | 2022-03-23T05:42:47.000Z | 2022-03-31T11:32:38.000Z | usernado/torntriplets/api.py | reganto/usernado | cb6c2b7b855d2e9abcc5b9c9849ff2b7d46883db | [
"Apache-2.0"
] | 1 | 2022-03-31T06:47:12.000Z | 2022-03-31T06:47:12.000Z | from typing import Any, Dict, Optional
import tornado.escape
import tornado.web
from usernado.torntriplets.base import BaseHandler
class BaseValidationError(ValueError):
pass
class DataMalformedOrNotProvidedError(BaseValidationError):
pass
class APIHandler(BaseHandler):
def get_json_argument(
... | 28.839286 | 73 | 0.63839 | 166 | 1,615 | 6.126506 | 0.361446 | 0.047198 | 0.019666 | 0.041298 | 0.371681 | 0.371681 | 0.371681 | 0.371681 | 0.285152 | 0.285152 | 0 | 0 | 0.282972 | 1,615 | 55 | 74 | 29.363636 | 0.878238 | 0.300929 | 0 | 0.482759 | 0 | 0 | 0.003953 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068966 | false | 0.068966 | 0.137931 | 0 | 0.37931 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
da7a5ddce9f4b0e607e1f5ea8b534056c6de7812 | 412 | py | Python | mayan/apps/acls/permissions.py | eshbeata/open-paperless | 6b9ed1f21908116ad2795b3785b2dbd66713d66e | [
"Apache-2.0"
] | 2,743 | 2017-12-18T07:12:30.000Z | 2022-03-27T17:21:25.000Z | mayan/apps/acls/permissions.py | kyper999/mayan-edms | ca7b8301a1f68548e8e718d42a728a500d67286e | [
"Apache-2.0"
] | 15 | 2020-06-06T00:00:48.000Z | 2022-03-12T00:03:54.000Z | mayan/apps/acls/permissions.py | kyper999/mayan-edms | ca7b8301a1f68548e8e718d42a728a500d67286e | [
"Apache-2.0"
] | 257 | 2017-12-18T03:12:58.000Z | 2022-03-25T08:59:10.000Z | from __future__ import absolute_import, unicode_literals
from django.utils.translation import ugettext_lazy as _
from permissions import PermissionNamespace
namespace = PermissionNamespace('acls', _('Access control lists'))
permission_acl_edit = namespace.add_permission(
name='acl_edit', label=_('Edit ACLs')
)
... | 27.466667 | 66 | 0.791262 | 49 | 412 | 6.265306 | 0.530612 | 0.084691 | 0.143322 | 0.169381 | 0.188925 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.114078 | 412 | 14 | 67 | 29.428571 | 0.841096 | 0 | 0 | 0 | 0 | 0 | 0.140777 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.3 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
da83cac0de8a0644873fc98b7129a03e1e3e96ac | 962 | py | Python | src/genie/libs/parser/ironware/tests/ShowMPLSLSP/cli/equal/golden_output1_expected.py | jamesditrapani/genieparser | d2c2f7e863889f323604c35ded767ca1d902055b | [
"Apache-2.0"
] | null | null | null | src/genie/libs/parser/ironware/tests/ShowMPLSLSP/cli/equal/golden_output1_expected.py | jamesditrapani/genieparser | d2c2f7e863889f323604c35ded767ca1d902055b | [
"Apache-2.0"
] | null | null | null | src/genie/libs/parser/ironware/tests/ShowMPLSLSP/cli/equal/golden_output1_expected.py | jamesditrapani/genieparser | d2c2f7e863889f323604c35ded767ca1d902055b | [
"Apache-2.0"
] | null | null | null | expected_output = {
'lsps': {
'mlx8.1_to_ces.2': {
'destination': '1.1.1.1',
'admin': 'UP',
'operational': 'UP',
'flap_count': 1,
'retry_count': 0,
'tunnel_interface': 'tunnel0'
},
'mlx8.1_to_ces.1': {
'desti... | 26.722222 | 42 | 0.39501 | 92 | 962 | 3.913043 | 0.26087 | 0.083333 | 0.077778 | 0.166667 | 0.466667 | 0.466667 | 0.466667 | 0.466667 | 0.466667 | 0.466667 | 0 | 0.078324 | 0.429314 | 962 | 35 | 43 | 27.485714 | 0.577413 | 0 | 0 | 0.342857 | 0 | 0 | 0.391892 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 |
da851717fcc7c1db00f5aa310d945f9a35207e50 | 10,049 | py | Python | src/mbed_cloud/_backends/iam/models/user_invitation_resp.py | GQMai/mbed-cloud-sdk-python | 76ef009903415f37f69dcc5778be8f5fb14c08fe | [
"Apache-2.0"
] | 12 | 2017-12-28T11:18:43.000Z | 2020-10-04T12:11:15.000Z | src/mbed_cloud/_backends/iam/models/user_invitation_resp.py | GQMai/mbed-cloud-sdk-python | 76ef009903415f37f69dcc5778be8f5fb14c08fe | [
"Apache-2.0"
] | 50 | 2017-12-21T12:50:41.000Z | 2020-01-13T16:07:08.000Z | src/mbed_cloud/_backends/iam/models/user_invitation_resp.py | GQMai/mbed-cloud-sdk-python | 76ef009903415f37f69dcc5778be8f5fb14c08fe | [
"Apache-2.0"
] | 8 | 2018-04-25T17:47:29.000Z | 2019-08-29T06:38:27.000Z | # coding: utf-8
"""
Account Management API
API for managing accounts, users, creating API keys, uploading trusted certificates
OpenAPI spec version: v3
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteritems
import re
class Us... | 26.584656 | 163 | 0.569509 | 1,132 | 10,049 | 4.922261 | 0.127208 | 0.043073 | 0.17229 | 0.055994 | 0.545406 | 0.464465 | 0.390165 | 0.311199 | 0.23654 | 0.216798 | 0 | 0.0047 | 0.343616 | 10,049 | 377 | 164 | 26.655172 | 0.840055 | 0.350582 | 0 | 0.213333 | 1 | 0 | 0.131036 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.173333 | false | 0 | 0.02 | 0 | 0.32 | 0.006667 | 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 |
da851a1afbbfafbfd8181febba1e1dc63ff24b87 | 475 | py | Python | src/orders/tests/order_content_type_replacement/tests_order_item.py | iNerV/education-backend | 787c0d090eb6e4a9338812941b0246a6e1b8e7ad | [
"MIT"
] | 151 | 2020-04-21T09:58:57.000Z | 2021-09-12T09:01:21.000Z | src/orders/tests/order_content_type_replacement/tests_order_item.py | iNerV/education-backend | 787c0d090eb6e4a9338812941b0246a6e1b8e7ad | [
"MIT"
] | 163 | 2020-05-29T20:52:00.000Z | 2021-09-11T12:44:56.000Z | src/orders/tests/order_content_type_replacement/tests_order_item.py | iNerV/education-backend | 787c0d090eb6e4a9338812941b0246a6e1b8e7ad | [
"MIT"
] | 39 | 2020-04-21T12:28:16.000Z | 2021-09-12T15:33:47.000Z | import pytest
pytestmark = [pytest.mark.django_db]
def test_order_without_items(order):
order = order()
assert order.item is None
def test_order_with_record(order, record):
order = order(record=record)
assert order.item == record
def test_order_with_course(order, course):
order = order(cour... | 16.964286 | 42 | 0.717895 | 65 | 475 | 5.046154 | 0.292308 | 0.152439 | 0.146341 | 0.146341 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.187368 | 475 | 27 | 43 | 17.592593 | 0.849741 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.285714 | 1 | 0.285714 | false | 0 | 0.071429 | 0 | 0.357143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
da8ed4c0472579bd4d5d2628a89966ad10d3fad5 | 2,887 | py | Python | vyperlogix/daemon/utils.py | raychorn/chrome_gui | f1fade70b61af12ee43c55c075aa9cfd32caa962 | [
"CC0-1.0"
] | 1 | 2020-09-29T01:36:33.000Z | 2020-09-29T01:36:33.000Z | vyperlogix/daemon/utils.py | raychorn/chrome_gui | f1fade70b61af12ee43c55c075aa9cfd32caa962 | [
"CC0-1.0"
] | null | null | null | vyperlogix/daemon/utils.py | raychorn/chrome_gui | f1fade70b61af12ee43c55c075aa9cfd32caa962 | [
"CC0-1.0"
] | null | null | null | import os, sys
import traceback
from vyperlogix.misc import _utils
from vyperlogix.hash import lists
_metadata = lists.HashedLists2()
def getDaemons(prefix, fpath):
import re
from vyperlogix import misc
_name = misc.funcName()
s_regex = r".+%s\.((py)|(pyc)|(pyo))" % ('_tasklet')
s_svn_regex = '[._]svn... | 33.569767 | 215 | 0.602009 | 405 | 2,887 | 4.130864 | 0.274074 | 0.053796 | 0.017932 | 0.010759 | 0.289301 | 0.289301 | 0.261805 | 0.261805 | 0.211596 | 0.211596 | 0 | 0.006821 | 0.23831 | 2,887 | 85 | 216 | 33.964706 | 0.753979 | 0 | 0 | 0.337838 | 0 | 0.013514 | 0.101871 | 0.008316 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.013514 | 0.175676 | null | null | 0.081081 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
da92973f8664607a74f4efaec125fafddf4dd12d | 2,288 | py | Python | arike/visits/models.py | iamsdas/arike | ab76f48f49cd794dd4b77172b347e260a03413b2 | [
"MIT"
] | null | null | null | arike/visits/models.py | iamsdas/arike | ab76f48f49cd794dd4b77172b347e260a03413b2 | [
"MIT"
] | null | null | null | arike/visits/models.py | iamsdas/arike | ab76f48f49cd794dd4b77172b347e260a03413b2 | [
"MIT"
] | null | null | null | from django.contrib.auth import get_user_model
from django.db import models
from django.utils import timezone
from arike.patients.models import Patient, Treatment
User = get_user_model()
class Hygiene(models.TextChoices):
GOOD = "good"
POOR = "poor"
OK = "ok"
class Symptoms(models.TextChoices):
FE... | 32.225352 | 81 | 0.719843 | 268 | 2,288 | 6.029851 | 0.294776 | 0.029703 | 0.07797 | 0.064975 | 0.434406 | 0.405322 | 0.405322 | 0.405322 | 0.405322 | 0.339728 | 0 | 0.002102 | 0.168269 | 2,288 | 70 | 82 | 32.685714 | 0.847084 | 0 | 0 | 0.37037 | 0 | 0 | 0.021416 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074074 | false | 0 | 0.074074 | 0.018519 | 0.925926 | 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 |
16f71339643c7fc6d95188482e9e85260eb6d407 | 519 | py | Python | main.py | frederikkoenigwork/my-python-sample-app | abeed8e73877172099aa7a0c53c7ee05674c1b02 | [
"Unlicense"
] | null | null | null | main.py | frederikkoenigwork/my-python-sample-app | abeed8e73877172099aa7a0c53c7ee05674c1b02 | [
"Unlicense"
] | null | null | null | main.py | frederikkoenigwork/my-python-sample-app | abeed8e73877172099aa7a0c53c7ee05674c1b02 | [
"Unlicense"
] | null | null | null | import django
print(django.get_version())
print(f"boa {111 * 6}")
print(f"{6*6}")
input = input("Hey abuser, enter some stuff!\n")
cmp = 1 > 0
print(type(cmp))
print(input)
try:
int(asdf)
except Exception:
print("Oh no, it failed!")
while False:
print("False!")
listeL = [1,2,3,45,6,4,3,6,8,6,3... | 9.611111 | 48 | 0.635838 | 86 | 519 | 3.825581 | 0.662791 | 0.036474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.062053 | 0.192678 | 519 | 53 | 49 | 9.792453 | 0.72315 | 0.034682 | 0 | 0 | 0 | 0 | 0.186603 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.05 | 0 | 0.05 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
16f9b725e9aef0aa98b319d6a522f9a1a0c54c28 | 6,826 | py | Python | ooobuild/lo/i18n/transliteration_modules.py | Amourspirit/ooo_uno_tmpl | 64e0c86fd68f24794acc22d63d8d32ae05dd12b8 | [
"Apache-2.0"
] | null | null | null | ooobuild/lo/i18n/transliteration_modules.py | Amourspirit/ooo_uno_tmpl | 64e0c86fd68f24794acc22d63d8d32ae05dd12b8 | [
"Apache-2.0"
] | null | null | null | ooobuild/lo/i18n/transliteration_modules.py | Amourspirit/ooo_uno_tmpl | 64e0c86fd68f24794acc22d63d8d32ae05dd12b8 | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
#
# Copyright 2022 :Barry-Thomas-Paul: Moss
#
# 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... | 35.005128 | 155 | 0.713742 | 824 | 6,826 | 5.730583 | 0.274272 | 0.030496 | 0.063532 | 0.088945 | 0.372935 | 0.311309 | 0.233799 | 0.193139 | 0.11817 | 0.089792 | 0 | 0.008572 | 0.213888 | 6,826 | 194 | 156 | 35.185567 | 0.871413 | 0.127454 | 0 | 0 | 0 | 0 | 0.353437 | 0.160532 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.023256 | 0 | 0.976744 | 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 |
16fe9a9c206b9e8c7de3aca2c90042c644707331 | 342 | py | Python | main.py | freakyLuffy/Teleuserbot | d5871e919b37d6b63de7e3115fd9d1d3bb6ce33b | [
"MIT"
] | null | null | null | main.py | freakyLuffy/Teleuserbot | d5871e919b37d6b63de7e3115fd9d1d3bb6ce33b | [
"MIT"
] | null | null | null | main.py | freakyLuffy/Teleuserbot | d5871e919b37d6b63de7e3115fd9d1d3bb6ce33b | [
"MIT"
] | 1 | 2021-09-06T08:57:43.000Z | 2021-09-06T08:57:43.000Z | from start import client
from modules import codeforces,delete,notes,hastebin,pin,pm,user,spam,rextester
white=[]
from telethon import TelegramClient,events
import logging
logging.basicConfig(format='[%(levelname) 5s/%(asctime)s] %(name)s: %(message)s',
level=logging.WARNING)
client.start().run_u... | 24.428571 | 81 | 0.739766 | 43 | 342 | 5.837209 | 0.744186 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003378 | 0.134503 | 342 | 13 | 82 | 26.307692 | 0.844595 | 0 | 0 | 0 | 0 | 0 | 0.15 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
e508750914ec307fdf73cf0c5c0d5889efc9baed | 349 | py | Python | perm-comb-finder/count-uniques.py | catseye/NaNoGenLab | 3e4a7314e6023557856e1cc910e9d0edc4daf43c | [
"Unlicense"
] | 20 | 2015-06-05T14:02:12.000Z | 2021-11-02T22:19:18.000Z | perm-comb-finder/count-uniques.py | catseye/NaNoGenLab | 3e4a7314e6023557856e1cc910e9d0edc4daf43c | [
"Unlicense"
] | 1 | 2015-10-15T12:58:35.000Z | 2015-10-15T12:58:35.000Z | perm-comb-finder/count-uniques.py | catseye/NaNoGenLab | 3e4a7314e6023557856e1cc910e9d0edc4daf43c | [
"Unlicense"
] | 1 | 2021-04-08T23:50:06.000Z | 2021-04-08T23:50:06.000Z | #!/usr/bin/env python
import sys
import re
words = []
for line in sys.stdin:
words.extend(line.strip().split())
def clean(w):
w = w.replace("'", "")
return re.match('^.*?([a-zA-Z0-9]+).*?$', w).group(1).upper()
words = [clean(w) for w in words]
print len(words), len(set(words))
assert len(words) == len(set... | 23.266667 | 65 | 0.616046 | 58 | 349 | 3.706897 | 0.568966 | 0.055814 | 0.102326 | 0.130233 | 0.176744 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010101 | 0.148997 | 349 | 14 | 66 | 24.928571 | 0.713805 | 0.057307 | 0 | 0 | 0 | 0 | 0.070122 | 0.067073 | 0 | 0 | 0 | 0 | 0.083333 | 0 | null | null | 0 | 0.166667 | null | null | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e50fb4a27317e4ddcda68870a1cc74e298cdcda3 | 3,705 | py | Python | find_entity/probable_acmation.py | Mleader2/bert_music_correct | 8218abe595e602436f2ace8b7e6abc743b4a49d1 | [
"Apache-2.0"
] | 6 | 2020-08-05T07:57:46.000Z | 2022-03-01T08:26:43.000Z | find_entity/probable_acmation.py | Mleader2/bert_music_correct | 8218abe595e602436f2ace8b7e6abc743b4a49d1 | [
"Apache-2.0"
] | 3 | 2020-11-13T19:03:58.000Z | 2021-08-25T16:12:34.000Z | find_entity/probable_acmation.py | Mleader2/bert_music_correct | 8218abe595e602436f2ace8b7e6abc743b4a49d1 | [
"Apache-2.0"
] | 4 | 2020-08-05T07:57:47.000Z | 2022-01-29T09:20:17.000Z | # 发现疑似实体,辅助训练
# 用ac自动机构建发现疑似实体的工具
import os
from collections import defaultdict
import json
import re
from .acmation import KeywordTree, add_to_ac, entity_files_folder, entity_folder
from curLine_file import curLine, normal_transformer
domain2entity_map = {}
domain2entity_map["music"] = ["age", "singer", "song", "top... | 46.3125 | 129 | 0.624022 | 440 | 3,705 | 4.963636 | 0.286364 | 0.105311 | 0.046703 | 0.041209 | 0.387363 | 0.339286 | 0.267399 | 0.267399 | 0.255952 | 0.213828 | 0 | 0.005189 | 0.271795 | 3,705 | 80 | 130 | 46.3125 | 0.804299 | 0.169771 | 0 | 0 | 0 | 0 | 0.090016 | 0 | 0 | 0 | 0 | 0.0125 | 0 | 1 | 0.017857 | false | 0 | 0.107143 | 0 | 0.142857 | 0.053571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
e511045dc9d1f3b8b876038d32067f643c1a8989 | 46,886 | py | Python | scripts/merge.py | CHREC/drseus | 085a4f413088606455e85f8fd83b96bf09c2f260 | [
"Unlicense"
] | 1 | 2020-06-17T02:29:22.000Z | 2020-06-17T02:29:22.000Z | scripts/merge.py | CHREC/drseus | 085a4f413088606455e85f8fd83b96bf09c2f260 | [
"Unlicense"
] | 1 | 2019-09-17T22:38:39.000Z | 2021-03-23T14:52:51.000Z | scripts/merge.py | CHREC/drseus | 085a4f413088606455e85f8fd83b96bf09c2f260 | [
"Unlicense"
] | 4 | 2019-09-17T22:42:31.000Z | 2021-07-23T14:39:37.000Z | #!python/bin/python3
"""
Copyright (c) 2018 NSF Center for Space, High-performance, and Resilient Computing (SHREC)
University of Pittsburgh. All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided
that the following conditions are met:
1. Redistribu... | 57.812577 | 131 | 0.316214 | 3,016 | 46,886 | 4.743369 | 0.134615 | 0.072697 | 0.038166 | 0.041801 | 0.505452 | 0.405145 | 0.319516 | 0.287082 | 0.258213 | 0.247449 | 0 | 0.015723 | 0.610673 | 46,886 | 810 | 132 | 57.883951 | 0.767996 | 0.050569 | 0 | 0.378788 | 0 | 0 | 0.07836 | 0.01068 | 0 | 0 | 0 | 0.001235 | 0 | 1 | 0.001377 | false | 0.015152 | 0.008264 | 0.001377 | 0.011019 | 0.027548 | 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 |
e51aaa4a989eb3218049b6d066a0b24def1e1dae | 1,236 | py | Python | global_finprint/annotation/migrations/0018_migrate_obs_to_event.py | GlobalFinPrint/global_finprint | 8a91ceaaed42aaa716d8c9f27518ba673ebf351c | [
"Apache-2.0"
] | null | null | null | global_finprint/annotation/migrations/0018_migrate_obs_to_event.py | GlobalFinPrint/global_finprint | 8a91ceaaed42aaa716d8c9f27518ba673ebf351c | [
"Apache-2.0"
] | 6 | 2020-06-05T18:42:32.000Z | 2022-01-13T00:48:57.000Z | global_finprint/annotation/migrations/0018_migrate_obs_to_event.py | GlobalFinPrint/global_finprint | 8a91ceaaed42aaa716d8c9f27518ba673ebf351c | [
"Apache-2.0"
] | null | null | null | from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('annotation', '0017_auto_20160516_0030'),
]
operations = [
migrations.RunSQL('''
-- migrate initial observations to an event
insert into anno... | 25.22449 | 67 | 0.559061 | 105 | 1,236 | 6.342857 | 0.514286 | 0.06006 | 0.12012 | 0.103604 | 0.37988 | 0.277778 | 0.277778 | 0.277778 | 0.192192 | 0 | 0 | 0.020752 | 0.376214 | 1,236 | 48 | 68 | 25.75 | 0.843061 | 0 | 0 | 0.297297 | 0 | 0 | 0.820388 | 0.15534 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.054054 | 0 | 0.135135 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e522eaf34259c88d5f3b0fcb2083eb3344cecf3f | 3,925 | py | Python | src/Stele/analysis/analysis_ipg/fixes/LegendSettings_ui.py | SherwinGroup/Stele | 9bb7da0b406a801975e21c9f7ce05d369ae661e5 | [
"MIT"
] | 1 | 2021-06-22T19:38:32.000Z | 2021-06-22T19:38:32.000Z | src/Stele/analysis/analysis_ipg/fixes/LegendSettings_ui.py | SherwinGroup/Stele | 9bb7da0b406a801975e21c9f7ce05d369ae661e5 | [
"MIT"
] | 1 | 2021-08-23T20:54:25.000Z | 2021-08-23T20:54:25.000Z | src/Stele/analysis/analysis_ipg/fixes/LegendSettings_ui.py | SherwinGroup/Stele | 9bb7da0b406a801975e21c9f7ce05d369ae661e5 | [
"MIT"
] | 1 | 2017-08-16T21:05:46.000Z | 2017-08-16T21:05:46.000Z | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'C:\Users\FELLab\Documents\GitHub\Interactivepg-waffle\interactivePG\fixes\LegendSettings.ui'
#
# Created by: PyQt5 UI code generator 5.6
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
cl... | 53.767123 | 146 | 0.74293 | 369 | 3,925 | 7.840108 | 0.298103 | 0.037331 | 0.047701 | 0.034221 | 0.17767 | 0.091255 | 0 | 0 | 0 | 0 | 0 | 0.011487 | 0.157197 | 3,925 | 72 | 147 | 54.513889 | 0.863059 | 0.065987 | 0 | 0 | 1 | 0 | 0.084176 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033333 | false | 0 | 0.033333 | 0 | 0.083333 | 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 |
e5258940b9d55361af93bbe4d01f5b1dd591bfcd | 1,557 | py | Python | h/schemas.py | ssin122/test-h | c10062ae23b690afaac0ab4af7b9a5a5e4b686a9 | [
"MIT"
] | 2 | 2021-11-07T23:14:54.000Z | 2021-11-17T10:11:55.000Z | h/schemas.py | ssin122/test-h | c10062ae23b690afaac0ab4af7b9a5a5e4b686a9 | [
"MIT"
] | null | null | null | h/schemas.py | ssin122/test-h | c10062ae23b690afaac0ab4af7b9a5a5e4b686a9 | [
"MIT"
] | 1 | 2017-03-12T00:18:33.000Z | 2017-03-12T00:18:33.000Z | # -*- coding: utf-8 -*-
"""Classes for validating data passed to views."""
from __future__ import unicode_literals
import copy
import jsonschema
from jsonschema.exceptions import best_match
class ValidationError(Exception):
pass
class JSONSchema(object):
"""
Validate data according to a Draft 4 JSON S... | 29.377358 | 82 | 0.635196 | 180 | 1,557 | 5.366667 | 0.461111 | 0.040373 | 0.043478 | 0.047619 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002671 | 0.278741 | 1,557 | 52 | 83 | 29.942308 | 0.857524 | 0.311496 | 0 | 0 | 0 | 0 | 0.018182 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0.041667 | 0.166667 | 0 | 0.541667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
e52646bd330bfa11295e34fc3b824b03dc40fe63 | 990 | py | Python | after/app.py | littlepea/python-admin-business-logic-talk | 8d020ceb175492e25cd02e5960d6e0b966017f2b | [
"MIT"
] | null | null | null | after/app.py | littlepea/python-admin-business-logic-talk | 8d020ceb175492e25cd02e5960d6e0b966017f2b | [
"MIT"
] | null | null | null | after/app.py | littlepea/python-admin-business-logic-talk | 8d020ceb175492e25cd02e5960d6e0b966017f2b | [
"MIT"
] | null | null | null | import urllib2
import json
from aqi import Station
from cache import cache
API_BASE = 'https://api.openaq.org/v1/latest'
def _get_city_url(city):
return '{}?city={}'.format(API_BASE, city)
def _load_results(url):
try:
response = urllib2.urlopen(url)
results = json.load(response)
r... | 20.625 | 56 | 0.643434 | 124 | 990 | 4.975806 | 0.459677 | 0.038898 | 0.032415 | 0.045381 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016151 | 0.249495 | 990 | 47 | 57 | 21.06383 | 0.814266 | 0 | 0 | 0 | 0 | 0 | 0.180808 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.125 | 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 |
e52c5ee52170299fb274be7b8f2275c6c731e728 | 377 | py | Python | 24.py | arvinddoraiswamy/LearnPython | f731a7390a0d335640c23a1e76fa1eb6887b6894 | [
"MIT"
] | 10 | 2015-02-05T04:46:25.000Z | 2020-12-17T21:11:36.000Z | 24.py | arvinddoraiswamy/LearnPython | f731a7390a0d335640c23a1e76fa1eb6887b6894 | [
"MIT"
] | null | null | null | 24.py | arvinddoraiswamy/LearnPython | f731a7390a0d335640c23a1e76fa1eb6887b6894 | [
"MIT"
] | 12 | 2015-05-23T08:55:54.000Z | 2020-09-04T15:47:59.000Z | import configparser
config = configparser.ConfigParser()
print("Read the file")
config.read("config_24.txt")
print("\n")
print("Once you read you get the data in and can play with it")
l1 = config.sections()
print(config[l1[0]]['User'])
print("\n")
print("To access the DEFAULT section, do it directly - it won't show u... | 29 | 87 | 0.718833 | 60 | 377 | 4.5 | 0.583333 | 0.044444 | 0.081481 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021084 | 0.119363 | 377 | 12 | 88 | 31.416667 | 0.792169 | 0 | 0 | 0.181818 | 0 | 0 | 0.485411 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 0.636364 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
e52d6019fd994380e0d9a2736246d284c148e9ba | 443 | py | Python | manufacturer/migrations/0002_manufacturer_website.py | skaaldig/borrowing | 70a19a1f3db3719247e42814176ed6b69afe081c | [
"MIT"
] | null | null | null | manufacturer/migrations/0002_manufacturer_website.py | skaaldig/borrowing | 70a19a1f3db3719247e42814176ed6b69afe081c | [
"MIT"
] | null | null | null | manufacturer/migrations/0002_manufacturer_website.py | skaaldig/borrowing | 70a19a1f3db3719247e42814176ed6b69afe081c | [
"MIT"
] | null | null | null | # Generated by Django 2.0.13 on 2019-05-06 17:02
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('manufacturer', '0001_move_manufacturer_and_rename'),
]
operations = [
migrations.AddField(
model_name='manufacturer',
... | 22.15 | 62 | 0.611738 | 45 | 443 | 5.888889 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.062696 | 0.27991 | 443 | 19 | 63 | 23.315789 | 0.768025 | 0.103837 | 0 | 0 | 1 | 0 | 0.172152 | 0.083544 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e52e7114c4c8002c2b57e4ffbd0cc8038d0f43cb | 3,656 | py | Python | download/ABCD_download.py | ThomasYeoLab/ABCD_scripts | 980097b3d89e63dd4efd037841f135ade7d3750e | [
"MIT"
] | 2 | 2021-08-08T06:49:04.000Z | 2021-11-05T02:36:08.000Z | download/ABCD_download.py | ThomasYeoLab/ABCD_scripts | 980097b3d89e63dd4efd037841f135ade7d3750e | [
"MIT"
] | null | null | null | download/ABCD_download.py | ThomasYeoLab/ABCD_scripts | 980097b3d89e63dd4efd037841f135ade7d3750e | [
"MIT"
] | null | null | null |
# coding: utf-8
# In[36]:
import pandas
import os
import sys
import datetime
from nda_aws_token_generator import *
from pathlib import Path
# In[37]:
def update_aws_config(username,password,web_service_url='https://nda.nih.gov/DataManager/dataManager'):
generator = NDATokenGenerator(web_service_url)
... | 30.214876 | 108 | 0.596827 | 459 | 3,656 | 4.588235 | 0.352941 | 0.023267 | 0.02849 | 0.032764 | 0.117284 | 0.079772 | 0.079772 | 0.079772 | 0.079772 | 0.079772 | 0 | 0.011905 | 0.26477 | 3,656 | 120 | 109 | 30.466667 | 0.771577 | 0.208698 | 0 | 0.063492 | 0 | 0 | 0.185106 | 0.05657 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0.111111 | 0.095238 | 0 | 0.15873 | 0.079365 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
e54460f82677a82a4c20f2a3e31d8914c449db71 | 1,463 | py | Python | tests/test_subprocess_extension.py | npcole/latexbuild | 596a2a0a4c42eaa5eb9503d64f9073ad5d0640d5 | [
"MIT"
] | 27 | 2016-04-15T22:38:04.000Z | 2022-02-06T12:13:37.000Z | tests/test_subprocess_extension.py | npcole/latexbuild | 596a2a0a4c42eaa5eb9503d64f9073ad5d0640d5 | [
"MIT"
] | 6 | 2017-04-06T00:32:56.000Z | 2021-07-09T04:16:37.000Z | tests/test_subprocess_extension.py | pappasam/latexbuild | 596a2a0a4c42eaa5eb9503d64f9073ad5d0640d5 | [
"MIT"
] | 6 | 2016-09-30T17:20:47.000Z | 2021-01-28T20:52:19.000Z | import os
import unittest
from subprocess import CalledProcessError
from latexbuild.subprocess_extension import check_output_cwd
#######################################################################
# Define constants
#######################################################################
PATH_FILE = os.path.abspath... | 34.833333 | 77 | 0.518797 | 134 | 1,463 | 5.276119 | 0.365672 | 0.056577 | 0.079208 | 0.063649 | 0.142857 | 0.062235 | 0 | 0 | 0 | 0 | 0 | 0 | 0.120984 | 1,463 | 41 | 78 | 35.682927 | 0.549767 | 0.03486 | 0 | 0 | 0 | 0 | 0.047862 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.208333 | false | 0 | 0.166667 | 0 | 0.458333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e545c987961ef987cbf7bd7af98052eacf914e76 | 2,131 | py | Python | FastAutoAugment/nas/arch_trainer.py | sytelus/fast-autoaugment | a53708699dce1233ce2a0bf0416ae2278007d506 | [
"MIT"
] | null | null | null | FastAutoAugment/nas/arch_trainer.py | sytelus/fast-autoaugment | a53708699dce1233ce2a0bf0416ae2278007d506 | [
"MIT"
] | null | null | null | FastAutoAugment/nas/arch_trainer.py | sytelus/fast-autoaugment | a53708699dce1233ce2a0bf0416ae2278007d506 | [
"MIT"
] | null | null | null | from typing import Optional, Callable
import os
import torch
from torch.utils.data import DataLoader
from torch import Tensor
from torch.optim.optimizer import Optimizer
from torch.optim.lr_scheduler import _LRScheduler
from overrides import overrides, EnforceOverrides
from ..common.config import Config
from ..commo... | 38.053571 | 83 | 0.661661 | 271 | 2,131 | 4.95203 | 0.332103 | 0.033532 | 0.026826 | 0.031297 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004966 | 0.244017 | 2,131 | 55 | 84 | 38.745455 | 0.828057 | 0.011732 | 0 | 0.044444 | 0 | 0 | 0.037072 | 0.022814 | 0 | 0 | 0 | 0 | 0 | 1 | 0.088889 | false | 0 | 0.333333 | 0 | 0.488889 | 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 |
e547e877ea0b546cad0a6abe04c73ce96240387b | 896 | py | Python | pytan3/tests/test_utils/test_crypt.py | lifehackjim/pytan3 | ca8223facb3797261655645fb4ecba6e13856b5e | [
"MIT"
] | 3 | 2020-06-15T15:34:07.000Z | 2021-09-21T15:22:00.000Z | pytan3/tests/test_utils/test_crypt.py | lifehackjim/pytan3 | ca8223facb3797261655645fb4ecba6e13856b5e | [
"MIT"
] | null | null | null | pytan3/tests/test_utils/test_crypt.py | lifehackjim/pytan3 | ca8223facb3797261655645fb4ecba6e13856b5e | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Test suite for pytan3."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import pytest
import pytan3
import re
def test_encrypt_decrypt():
"""Test encrypt / decrypt with valid key."""
... | 29.866667 | 71 | 0.689732 | 128 | 896 | 4.640625 | 0.351563 | 0.092593 | 0.107744 | 0.040404 | 0.383838 | 0.383838 | 0.383838 | 0.265993 | 0.265993 | 0.265993 | 0 | 0.010855 | 0.177455 | 896 | 29 | 72 | 30.896552 | 0.795115 | 0.127232 | 0 | 0.3 | 0 | 0 | 0.134465 | 0 | 0 | 0 | 0 | 0 | 0.1 | 1 | 0.1 | false | 0 | 0.35 | 0 | 0.45 | 0.05 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
e54d26678218e56586a416feb9b45a4d21e7530a | 914 | py | Python | apps/areas/migrations/0003_auto_20210215_1959.py | windVane369/meiduo | 6165e2b1fe42aa529b6eb6ca832e9fa67b7477d3 | [
"Apache-2.0"
] | null | null | null | apps/areas/migrations/0003_auto_20210215_1959.py | windVane369/meiduo | 6165e2b1fe42aa529b6eb6ca832e9fa67b7477d3 | [
"Apache-2.0"
] | null | null | null | apps/areas/migrations/0003_auto_20210215_1959.py | windVane369/meiduo | 6165e2b1fe42aa529b6eb6ca832e9fa67b7477d3 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 3.1.6 on 2021-02-15 11:59
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('areas', '0002_auto_20210215_1956'),
]
operations = [
migrations.AddField(
model_name='area',
... | 29.483871 | 129 | 0.612691 | 100 | 914 | 5.42 | 0.54 | 0.049816 | 0.071956 | 0.094096 | 0.258303 | 0.258303 | 0 | 0 | 0 | 0 | 0 | 0.046477 | 0.270241 | 914 | 30 | 130 | 30.466667 | 0.766117 | 0.049234 | 0 | 0.333333 | 1 | 0 | 0.087659 | 0.026528 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e54d30c9387c89a4896a9b3c359d877b95d8740d | 432 | py | Python | Python/Algorithms/1805.py | DimitrisJim/leetcode_solutions | 765ea578748f8c9b21243dec9dc8a16163e85c0c | [
"Unlicense"
] | 2 | 2021-01-15T17:22:54.000Z | 2021-05-16T19:58:02.000Z | Python/Algorithms/1805.py | DimitrisJim/leetcode_solutions | 765ea578748f8c9b21243dec9dc8a16163e85c0c | [
"Unlicense"
] | null | null | null | Python/Algorithms/1805.py | DimitrisJim/leetcode_solutions | 765ea578748f8c9b21243dec9dc8a16163e85c0c | [
"Unlicense"
] | null | null | null | from string import ascii_lowercase
class Solution:
trans_table = {ord(i): ' ' for i in ascii_lowercase}
def numDifferentIntegers(self, word: str) -> int:
seen = set()
# Translation map translates "[a-z] => ' '"
for i in word.translate(self.trans_table).split():
# strip any... | 27 | 58 | 0.592593 | 54 | 432 | 4.666667 | 0.740741 | 0.111111 | 0.047619 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003257 | 0.289352 | 432 | 15 | 59 | 28.8 | 0.81759 | 0.208333 | 0 | 0 | 0 | 0 | 0.005917 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
e55ed07309d1bc4c4714e7e47ef852ae00e35aeb | 2,424 | py | Python | awkward_pandas/accessor.py | martindurant/awkward_extras | 5cad442d52e960768f16cdf64aae0f0c10cd33f4 | [
"BSD-3-Clause"
] | null | null | null | awkward_pandas/accessor.py | martindurant/awkward_extras | 5cad442d52e960768f16cdf64aae0f0c10cd33f4 | [
"BSD-3-Clause"
] | 1 | 2020-11-17T15:54:26.000Z | 2020-11-17T19:27:22.000Z | awkward_pandas/accessor.py | martindurant/awkward_extras | 5cad442d52e960768f16cdf64aae0f0c10cd33f4 | [
"BSD-3-Clause"
] | 1 | 2020-11-23T08:52:09.000Z | 2020-11-23T08:52:09.000Z | import functools
import inspect
import pandas as pd
import awkward1 as ak
from .series import AwkwardSeries
from .dtype import AwkardType
funcs = [n for n in dir(ak) if inspect.isfunction(getattr(ak, n))]
@pd.api.extensions.register_series_accessor("ak")
class AwkwardAccessor:
def __init__(self, pandas_obj):
... | 35.130435 | 97 | 0.613861 | 294 | 2,424 | 4.938776 | 0.384354 | 0.043388 | 0.046832 | 0.039945 | 0.049587 | 0.049587 | 0 | 0 | 0 | 0 | 0 | 0.000596 | 0.308168 | 2,424 | 68 | 98 | 35.647059 | 0.865236 | 0.171205 | 0 | 0.040816 | 0 | 0 | 0.0225 | 0 | 0 | 0 | 0 | 0.014706 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0.040816 | 0.44898 | 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 |
e56f95313666f0c69512af094eaacef1cd96f697 | 1,735 | py | Python | cassandra-helper/copy_keyspace.py | HolmesProcessing/toolbox | 7de75cf477e71fb433bf0c2e2a55c2a7c38100a2 | [
"Apache-2.0"
] | null | null | null | cassandra-helper/copy_keyspace.py | HolmesProcessing/toolbox | 7de75cf477e71fb433bf0c2e2a55c2a7c38100a2 | [
"Apache-2.0"
] | null | null | null | cassandra-helper/copy_keyspace.py | HolmesProcessing/toolbox | 7de75cf477e71fb433bf0c2e2a55c2a7c38100a2 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python2.7
import pika
import json, os
import magic
import time
import ast
from sys import argv
from cassandra.cluster import Cluster
from cassandra.auth import PlainTextAuthProvider
from cassandra import query
from sets import Set
def print_usage():
print("USAGE: %s KEYSPACE_FROM KEYSPACE_TO TABLE SELE... | 27.539683 | 163 | 0.676657 | 270 | 1,735 | 4.233333 | 0.388889 | 0.052493 | 0.010499 | 0.038495 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023208 | 0.15562 | 1,735 | 62 | 164 | 27.983871 | 0.756997 | 0.013256 | 0 | 0.076923 | 0 | 0.019231 | 0.23495 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.019231 | false | 0.076923 | 0.192308 | 0 | 0.211538 | 0.211538 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
e572da2f2a7ca87ea284feddda92b470709ee671 | 25,068 | py | Python | powerpod/types.py | bucko909/powerpod | 829ad79a32f0041876c57f642d3d239947c3594a | [
"BSD-2-Clause"
] | 3 | 2016-12-18T20:51:02.000Z | 2019-12-29T12:47:41.000Z | powerpod/types.py | bucko909/powerpod | 829ad79a32f0041876c57f642d3d239947c3594a | [
"BSD-2-Clause"
] | null | null | null | powerpod/types.py | bucko909/powerpod | 829ad79a32f0041876c57f642d3d239947c3594a | [
"BSD-2-Clause"
] | null | null | null | from collections import namedtuple
import datetime
import calendar
import struct
import sys
class StructType(object):
"""
Automatically uses SHAPE to pack/unpack simple structs.
"""
@classmethod
def from_binary(cls, data):
try:
return cls(*cls._decode(*struct.unpack(cls.SHAPE, data)))
except:
sys.stderr... | 39.16875 | 489 | 0.678873 | 3,805 | 25,068 | 4.287516 | 0.183706 | 0.022067 | 0.03261 | 0.03972 | 0.28546 | 0.217359 | 0.12995 | 0.091333 | 0.071105 | 0.056761 | 0 | 0.081807 | 0.181267 | 25,068 | 639 | 490 | 39.230047 | 0.713068 | 0.241703 | 0 | 0.155902 | 0 | 0 | 0.103764 | 0.019694 | 0 | 0 | 0.00922 | 0.001565 | 0.066815 | 0 | null | null | 0 | 0.011136 | null | null | 0.002227 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
e5765b63498aedff82c2802f809cf6d2e6ee5e33 | 662 | py | Python | plugins/plugin_base.py | Robinson04/inoft_vocal_framework | 9659e0852604bc628b01e0440535add0ae5fc5d1 | [
"MIT"
] | 11 | 2020-04-15T07:47:34.000Z | 2022-03-30T21:47:36.000Z | plugins/plugin_base.py | Robinson04/inoft_vocal_framework | 9659e0852604bc628b01e0440535add0ae5fc5d1 | [
"MIT"
] | 20 | 2020-08-09T00:11:49.000Z | 2021-09-11T11:34:02.000Z | plugins/plugin_base.py | Robinson04/inoft_vocal_framework | 9659e0852604bc628b01e0440535add0ae5fc5d1 | [
"MIT"
] | 6 | 2020-02-21T04:45:19.000Z | 2021-07-18T22:13:55.000Z | from abc import abstractmethod
from typing import Any
class PluginBase:
# Exist to make it easier to detect if a class if a plugin of any class type.
pass
class PluginCodeGenerationBase(PluginBase):
# from inoft_vocal_framework.botpress_integration.generator import GeneratorCore
@abstractmethod
... | 36.777778 | 104 | 0.703927 | 86 | 662 | 5.325581 | 0.593023 | 0.052402 | 0.039301 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.247734 | 662 | 17 | 105 | 38.941176 | 0.919679 | 0.256798 | 0 | 0 | 0 | 0 | 0.409836 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0.1 | 0.2 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
e57953f7d080f6dd0d028b8c3c8f68f6eb411e7d | 4,366 | py | Python | one/image.py | OpenNebula/addon-linstor | 71cc6d5d625929f0350cec866ff07e953fcebe12 | [
"Apache-2.0"
] | 11 | 2018-10-18T19:53:52.000Z | 2021-11-08T11:42:56.000Z | one/image.py | OpenNebula/addon-linstor | 71cc6d5d625929f0350cec866ff07e953fcebe12 | [
"Apache-2.0"
] | 13 | 2018-11-26T16:15:35.000Z | 2021-08-02T18:24:14.000Z | one/image.py | OpenNebula/addon-linstor | 71cc6d5d625929f0350cec866ff07e953fcebe12 | [
"Apache-2.0"
] | 7 | 2018-11-08T03:44:59.000Z | 2021-05-16T20:47:19.000Z | # -*- coding: utf-8 -*-
"""
OpenNebula Driver for Linstor
Copyright 2018 LINBIT USA LLC
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... | 25.383721 | 83 | 0.554741 | 474 | 4,366 | 5.012658 | 0.261603 | 0.057239 | 0.087542 | 0.114478 | 0.573653 | 0.498317 | 0.498317 | 0.279882 | 0.188131 | 0.156145 | 0 | 0.006156 | 0.330279 | 4,366 | 171 | 84 | 25.532164 | 0.80643 | 0.25126 | 0 | 0.621359 | 0 | 0 | 0.057273 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.174757 | false | 0 | 0.009709 | 0.009709 | 0.514563 | 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 |
e5896561c75ca54acb654060cb261650c4d273df | 1,247 | py | Python | cru_robot/des_pub.py | chula-eic/NukeBot | 59ae793829d34dfa3abf8a95ac1054d645c134d8 | [
"Apache-2.0"
] | null | null | null | cru_robot/des_pub.py | chula-eic/NukeBot | 59ae793829d34dfa3abf8a95ac1054d645c134d8 | [
"Apache-2.0"
] | null | null | null | cru_robot/des_pub.py | chula-eic/NukeBot | 59ae793829d34dfa3abf8a95ac1054d645c134d8 | [
"Apache-2.0"
] | 1 | 2019-10-21T13:19:34.000Z | 2019-10-21T13:19:34.000Z | #!/usr/bin/env python3
import rospy
from std_msgs.msg import String
from cru_robot.msg import FloatList
pub = rospy.Publisher('destination', FloatList, queue_size=10)
servo_pub = rospy.Publisher('servo', String, queue_size=10)
queue = []; #DECLARE QUEUE/FLOATLIST QUEUE HERE
state = 0
def callback(data):
global pub
... | 23.528302 | 62 | 0.621492 | 170 | 1,247 | 4.452941 | 0.382353 | 0.05284 | 0.047556 | 0.063408 | 0.129458 | 0.06605 | 0 | 0 | 0 | 0 | 0 | 0.026205 | 0.234964 | 1,247 | 52 | 63 | 23.980769 | 0.767296 | 0.092221 | 0 | 0.136364 | 0 | 0 | 0.079041 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.022727 | 0.068182 | 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 |
e58b603f3270c8cd8bb40f3d52ba76dda553c385 | 1,357 | py | Python | example_runner.py | AmirPupko/pandas-to-sql | 12cb699d70acd368a284304d78c086fa0b1bc204 | [
"MIT"
] | 18 | 2021-01-21T17:10:29.000Z | 2022-03-30T19:48:00.000Z | example_runner.py | AmirPupko/pandas-to-sql | 12cb699d70acd368a284304d78c086fa0b1bc204 | [
"MIT"
] | null | null | null | example_runner.py | AmirPupko/pandas-to-sql | 12cb699d70acd368a284304d78c086fa0b1bc204 | [
"MIT"
] | null | null | null | from copy import copy
import sqlite3
import pandas as pd
import pandas_to_sql
from pandas_to_sql.testing.utils.fake_data_creation import create_fake_dataset
from pandas_to_sql.conventions import flatten_grouped_dataframe
# table_name = 'random_data'
# df, _ = create_fake_dataset()
# df_ = pandas_to_sql.wrap_df(df, tab... | 36.675676 | 102 | 0.791452 | 220 | 1,357 | 4.481818 | 0.35 | 0.040568 | 0.078093 | 0.045639 | 0.093306 | 0.093306 | 0 | 0 | 0 | 0 | 0 | 0.008006 | 0.079587 | 1,357 | 36 | 103 | 37.694444 | 0.781425 | 0.202653 | 0 | 0 | 0 | 0 | 0.116387 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 1 | 0 | false | 0 | 0.318182 | 0 | 0.318182 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
e5900ab58ab8e7a67396a9fe2fe64e00c91a05bf | 448 | py | Python | min-blockchain/app/views/__init__.py | JoMingyu/Blockchain-py | 607e54c06eb9e4eb3667d18e32db736b2759ac46 | [
"MIT"
] | 12 | 2017-12-08T10:32:07.000Z | 2021-12-18T08:01:09.000Z | min-blockchain/app/views/__init__.py | JoMingyu/min-blockchain | 607e54c06eb9e4eb3667d18e32db736b2759ac46 | [
"MIT"
] | null | null | null | min-blockchain/app/views/__init__.py | JoMingyu/min-blockchain | 607e54c06eb9e4eb3667d18e32db736b2759ac46 | [
"MIT"
] | 5 | 2018-01-09T12:12:03.000Z | 2021-03-21T05:56:42.000Z | from flask_restful import Api
class ViewInjector:
def __init__(self, app=None):
if app is not None:
self.init_app(app)
def init_app(self, app):
from app.views.blockchain import Node, Chain, Mine, Transaction
api = Api(app)
api.add_resource(Node, '/node')
... | 24.888889 | 71 | 0.627232 | 58 | 448 | 4.655172 | 0.396552 | 0.088889 | 0.207407 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.261161 | 448 | 17 | 72 | 26.352941 | 0.81571 | 0 | 0 | 0 | 0 | 0 | 0.0625 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.416667 | 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 |
e594f58c382594d969ae896f651140e88f621f92 | 23,856 | py | Python | omd/versions/1.2.8p15.cre/share/check_mk/modules/packaging.py | NCAR/spol-nagios | 4f88bef953983050bc6568d3f1027615fbe223fb | [
"BSD-3-Clause"
] | null | null | null | omd/versions/1.2.8p15.cre/share/check_mk/modules/packaging.py | NCAR/spol-nagios | 4f88bef953983050bc6568d3f1027615fbe223fb | [
"BSD-3-Clause"
] | null | null | null | omd/versions/1.2.8p15.cre/share/check_mk/modules/packaging.py | NCAR/spol-nagios | 4f88bef953983050bc6568d3f1027615fbe223fb | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/python
# -*- encoding: utf-8; py-indent-offset: 4 -*-
# +------------------------------------------------------------------+
# | ____ _ _ __ __ _ __ |
# | / ___| |__ ___ ___| | __ | \/ | |/ / |
# | | | | '_ \ / _ \/ __| |/ /... | 36.255319 | 117 | 0.577088 | 2,928 | 23,856 | 4.534495 | 0.152322 | 0.006327 | 0.01898 | 0.019206 | 0.303909 | 0.242374 | 0.191911 | 0.170822 | 0.152444 | 0.137004 | 0 | 0.006929 | 0.304242 | 23,856 | 657 | 118 | 36.310502 | 0.792987 | 0.116239 | 0 | 0.310838 | 0 | 0 | 0.178356 | 0.002282 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.002045 | 0.010225 | null | null | 0.00818 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
e598f30af78d83c0850f21960df36978aef36582 | 335 | py | Python | ci_test_settings.py | cumanachao/utopia-crm | 6d648971c427ca9f380b15ed0ceaf5767b88e8b9 | [
"BSD-3-Clause"
] | 13 | 2020-12-14T19:56:04.000Z | 2021-11-06T13:24:48.000Z | ci_test_settings.py | cumanachao/utopia-crm | 6d648971c427ca9f380b15ed0ceaf5767b88e8b9 | [
"BSD-3-Clause"
] | 5 | 2020-12-14T19:56:30.000Z | 2021-09-22T22:09:39.000Z | ci_test_settings.py | cumanachao/utopia-crm | 6d648971c427ca9f380b15ed0ceaf5767b88e8b9 | [
"BSD-3-Clause"
] | 3 | 2021-03-24T03:55:08.000Z | 2022-01-13T15:22:34.000Z | # coding=utf-8
from datetime import date
from settings import *
DEBUG = True
ALLOWED_HOSTS = ['testserver', ]
DATABASES = {
'default': {
'HOST': '127.0.0.1',
'NAME': 'utopia',
'PASSWORD': 'citest',
'USER': 'utopiatest_django',
'ENGINE': 'django.contrib.gis.db.backends.pos... | 17.631579 | 59 | 0.573134 | 36 | 335 | 5.277778 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028112 | 0.256716 | 335 | 18 | 60 | 18.611111 | 0.73494 | 0.035821 | 0 | 0 | 0 | 0 | 0.370717 | 0.11838 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.076923 | 0.153846 | 0 | 0.153846 | 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 |
e599c7f4a812fe28fcb19fc70378acc1a1ead3f3 | 1,396 | py | Python | trialswithotherCV/RDFRandomCV.py | devs4v/DecisionTreeAndRDF | 9e630df0354712e6496a0b679b4b417f14acc689 | [
"MIT"
] | 1 | 2016-05-28T17:34:09.000Z | 2016-05-28T17:34:09.000Z | trialswithotherCV/RDFRandomCV.py | devs4v/DecisionTreeAndRDF | 9e630df0354712e6496a0b679b4b417f14acc689 | [
"MIT"
] | null | null | null | trialswithotherCV/RDFRandomCV.py | devs4v/DecisionTreeAndRDF | 9e630df0354712e6496a0b679b4b417f14acc689 | [
"MIT"
] | null | null | null | ''' crossvalidation.py
# Author : Shivam Chaturvedi
# Last Modified : 06:25 PM, 10th September 2013
# Purpose : Perform random cross validation [Machine Learning](Checking accuracy of classified decisions using k-fold validation)
# Copyright : (C) 2013
'''
from random import random
import sys
from rdforest import... | 37.72973 | 171 | 0.758596 | 172 | 1,396 | 6.145349 | 0.593023 | 0.019868 | 0.017029 | 0.035951 | 0.092715 | 0.092715 | 0 | 0 | 0 | 0 | 0 | 0.020713 | 0.135387 | 1,396 | 36 | 172 | 38.777778 | 0.855012 | 0.073066 | 0 | 0.1 | 0 | 0.05 | 0.277401 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.15 | null | null | 0.05 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e5a15de438d9e84ae243630576c60f87a6909270 | 764 | py | Python | models.py | plumdog/mainstay_kanban | 1930573c9ca832c1e7f5883226b110929d331a85 | [
"MIT"
] | null | null | null | models.py | plumdog/mainstay_kanban | 1930573c9ca832c1e7f5883226b110929d331a85 | [
"MIT"
] | null | null | null | models.py | plumdog/mainstay_kanban | 1930573c9ca832c1e7f5883226b110929d331a85 | [
"MIT"
] | null | null | null | from django.db import models
from mainstay.models import UpdatedAndCreated
class TaskUsersManager(models.Manager):
def for_user(self, user):
return self.get_queryset().filter(models.Q(user=user) | models.Q(user=None))
class Task(UpdatedAndCreated, models.Model):
name = models.CharField(max_length=20... | 36.380952 | 104 | 0.742147 | 95 | 764 | 5.863158 | 0.473684 | 0.064632 | 0.093357 | 0.122083 | 0.283662 | 0.283662 | 0.283662 | 0.147217 | 0 | 0 | 0 | 0.004566 | 0.140052 | 764 | 20 | 105 | 38.2 | 0.843227 | 0 | 0 | 0 | 0 | 0 | 0.043194 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.133333 | 0.066667 | 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 |
e5a6e1742578b7dddfcb7f9f3b116b9682fe0ba7 | 10,252 | py | Python | module_api/rogertests/test_accounts.py | rogertalk/roger-api | 7228d96910ab0a96af53ca2830115d5fc5e1de79 | [
"MIT"
] | 3 | 2019-05-19T22:21:44.000Z | 2020-04-26T01:58:55.000Z | module_api/rogertests/test_accounts.py | rogertalk/roger-api | 7228d96910ab0a96af53ca2830115d5fc5e1de79 | [
"MIT"
] | null | null | null | module_api/rogertests/test_accounts.py | rogertalk/roger-api | 7228d96910ab0a96af53ca2830115d5fc5e1de79 | [
"MIT"
] | null | null | null | import mock
from roger import accounts, streams
from roger_common import errors
import rogertests
class BaseTestCase(rogertests.RogerTestCase):
def setUp(self):
super(BaseTestCase, self).setUp()
# Make sure the bots are initialized during this test.
import roger.bots
reload(roger... | 40.68254 | 96 | 0.668455 | 1,124 | 10,252 | 6.012456 | 0.191281 | 0.047647 | 0.038473 | 0.050015 | 0.417135 | 0.279077 | 0.19488 | 0.127109 | 0.109352 | 0.085528 | 0 | 0.029456 | 0.22181 | 10,252 | 251 | 97 | 40.844622 | 0.817623 | 0.175185 | 0 | 0.266667 | 0 | 0 | 0.104444 | 0 | 0 | 0 | 0 | 0 | 0.327273 | 1 | 0.127273 | false | 0.060606 | 0.030303 | 0 | 0.206061 | 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 |
e5b1c845186aa3bee0cde053a74b6e227193f41a | 515 | py | Python | test_check_DB_ORM.py | leScandal/Training | b76b9c767be43928c707cc484a3181661249ad50 | [
"Apache-2.0"
] | null | null | null | test_check_DB_ORM.py | leScandal/Training | b76b9c767be43928c707cc484a3181661249ad50 | [
"Apache-2.0"
] | null | null | null | test_check_DB_ORM.py | leScandal/Training | b76b9c767be43928c707cc484a3181661249ad50 | [
"Apache-2.0"
] | null | null | null | import mysql.connector
from fixture.orm import ORMFixture
from model.group import Group
db = ORMFixture(host="127.0.0.1", database = "addressbook", user = "root", password = "")
#connection = mysql.connector.connect(host="127.0.0.1", database = "addressbook", user = "root", password = "")
try:
l = db.get_group_li... | 25.75 | 111 | 0.642718 | 76 | 515 | 4.289474 | 0.5 | 0.08589 | 0.04908 | 0.055215 | 0.276074 | 0.276074 | 0.276074 | 0.276074 | 0.276074 | 0.276074 | 0 | 0.043689 | 0.2 | 515 | 20 | 112 | 25.75 | 0.747573 | 0.231068 | 0 | 0.133333 | 0 | 0 | 0.068354 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.133333 | 0.2 | 0 | 0.2 | 0.266667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
e5b4546e3025f4f59055fb05e61367a75decdfc1 | 43,202 | py | Python | .kodi/addons/plugin.video.projectfreetv/default.py | C6SUMMER/allinclusive-kodi-pi | 8baf247c79526849c640c6e56ca57a708a65bd11 | [
"Apache-2.0"
] | null | null | null | .kodi/addons/plugin.video.projectfreetv/default.py | C6SUMMER/allinclusive-kodi-pi | 8baf247c79526849c640c6e56ca57a708a65bd11 | [
"Apache-2.0"
] | null | null | null | .kodi/addons/plugin.video.projectfreetv/default.py | C6SUMMER/allinclusive-kodi-pi | 8baf247c79526849c640c6e56ca57a708a65bd11 | [
"Apache-2.0"
] | 2 | 2018-04-17T17:34:39.000Z | 2020-07-26T03:43:33.000Z | import xbmc, xbmcgui, xbmcplugin
import urllib, urllib2
import re, string
try:
from addon.common.addon import Addon
from addon.common.net import Net
except:
print 'Failed to import script.module.addon.common'
xbmcgui.Dialog().ok("PFTV Import Failure", "Failed to import addon.common", "A compon... | 43.949135 | 334 | 0.601083 | 5,182 | 43,202 | 4.862601 | 0.109224 | 0.026431 | 0.022264 | 0.027502 | 0.494127 | 0.423605 | 0.385943 | 0.32832 | 0.297603 | 0.257997 | 0 | 0.005679 | 0.241841 | 43,202 | 983 | 335 | 43.949135 | 0.763632 | 0.09944 | 0 | 0.330914 | 0 | 0.020319 | 0.208577 | 0.048274 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.007257 | 0.033382 | null | null | 0.027576 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
e5bd6851f61673a18a9f645f842878ce00a27be8 | 2,549 | py | Python | www/apis.py | yumaojun03/blog-python-app | 92ecad4c693090d67351d022e47b2d5be901d25d | [
"FTL"
] | 200 | 2015-09-16T15:47:00.000Z | 2021-01-14T07:45:04.000Z | www/apis.py | yumaojun03/blog-python-app | 92ecad4c693090d67351d022e47b2d5be901d25d | [
"FTL"
] | 7 | 2015-12-06T16:41:34.000Z | 2018-04-10T02:43:55.000Z | www/apis.py | yumaojun03/blog-python-app | 92ecad4c693090d67351d022e47b2d5be901d25d | [
"FTL"
] | 274 | 2015-09-10T07:23:22.000Z | 2020-10-17T06:35:18.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
实现以Json数据格式进行交换的RESTful API
设计原因:
由于API就是把Web App的功能全部封装了,所以,通过API操作数据,
可以极大地把前端和后端的代码隔离,使得后端代码易于测试,
前端代码编写更简单
实现方式:
一个API也是一个URL的处理函数,我们希望能直接通过一个@api来
把函数变成JSON格式的REST API, 因此我们需要实现一个装饰器,
由该装饰器将 函数返回的数据 处理成 json 格式
"""
import json
import logg... | 25.237624 | 101 | 0.655551 | 285 | 2,549 | 5.680702 | 0.452632 | 0.017295 | 0.027177 | 0.027795 | 0.064237 | 0.064237 | 0.039531 | 0 | 0 | 0 | 0 | 0.002036 | 0.229109 | 2,549 | 100 | 102 | 25.49 | 0.821883 | 0.016477 | 0 | 0.054054 | 0 | 0 | 0.065597 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.135135 | 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 |
e5c1929a317092258c55c48775a60ed4c418c8ad | 1,131 | py | Python | Pyspark/Ak1Twitter.py | akshaymantriwar/Data-Analysis | 4c1c8b33b07df348ffdb5d374c1cfd71267e6511 | [
"MIT"
] | 1 | 2018-02-28T11:29:12.000Z | 2018-02-28T11:29:12.000Z | Pyspark/Ak1Twitter.py | akshaymantriwar/Data-Analysis | 4c1c8b33b07df348ffdb5d374c1cfd71267e6511 | [
"MIT"
] | null | null | null | Pyspark/Ak1Twitter.py | akshaymantriwar/Data-Analysis | 4c1c8b33b07df348ffdb5d374c1cfd71267e6511 | [
"MIT"
] | null | null | null | import socket
import sys
import requests
import requests_oauthlib
import json
ACCESS_TOKEN = 'your access token'
ACCESS_SECRET = 'yours'
CONSUMER_KEY = 'yours'
CONSUMER_SECRET = 'yours'
my_auth = requests_oauthlib.OAuth1(CONSUMER_KEY, CONSUMER_SECRET,ACCESS_TOKEN, ACCESS_SECRET)
TCP_IP = "localhost"
TCP_PORT = 9993... | 25.133333 | 93 | 0.664898 | 159 | 1,131 | 4.54717 | 0.471698 | 0.062241 | 0.047026 | 0.063624 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022822 | 0.147657 | 1,131 | 44 | 94 | 25.704545 | 0.727178 | 0 | 0 | 0 | 0 | 0 | 0.226868 | 0.037367 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.16129 | null | null | 0.193548 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e5c660d1e9db34e1f450fb210a16a64dc1938736 | 3,537 | py | Python | examples/ncbi_gene_mapping.py | JTaeger/graphio | e856d4266842540cfe56ba7367d8f97183ae2954 | [
"Apache-2.0"
] | 12 | 2020-01-16T22:05:43.000Z | 2021-05-27T11:36:17.000Z | examples/ncbi_gene_mapping.py | JTaeger/graphio | e856d4266842540cfe56ba7367d8f97183ae2954 | [
"Apache-2.0"
] | 2 | 2020-04-16T17:23:14.000Z | 2021-05-17T13:40:24.000Z | examples/ncbi_gene_mapping.py | JTaeger/graphio | e856d4266842540cfe56ba7367d8f97183ae2954 | [
"Apache-2.0"
] | 4 | 2020-01-16T23:38:52.000Z | 2021-05-27T11:36:19.000Z | # This excample script shows how to download a data file,
# parse nodes and relationships from the file and load them to Neo4j
#
# The maintainer of this package has a background in computational biology.
# This example loads data on gene IDs from a public genome database.
# We create (:Gene) nodes and (:Gene)-[:MAPS]-... | 34.676471 | 165 | 0.713316 | 510 | 3,537 | 4.739216 | 0.303922 | 0.100124 | 0.052131 | 0.041374 | 0.156392 | 0.110054 | 0.031444 | 0.031444 | 0.031444 | 0 | 0 | 0.015278 | 0.185751 | 3,537 | 101 | 166 | 35.019802 | 0.823958 | 0.307323 | 0 | 0.036364 | 0 | 0.018182 | 0.168729 | 0.042079 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.054545 | 0.109091 | 0 | 0.109091 | 0.127273 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
e5c7dc69d51e3024de52f806ec754b770919bf02 | 1,344 | py | Python | data_loader/data_sets.py | Shawn-Guo-CN/EmergentLanguage | 607240a7455776755b09af3399c7e87f85531b7e | [
"MIT"
] | 1 | 2020-09-24T15:56:40.000Z | 2020-09-24T15:56:40.000Z | data_loader/data_sets.py | Shawn-Guo-CN/EmergentLanguage | 607240a7455776755b09af3399c7e87f85531b7e | [
"MIT"
] | null | null | null | data_loader/data_sets.py | Shawn-Guo-CN/EmergentLanguage | 607240a7455776755b09af3399c7e87f85531b7e | [
"MIT"
] | null | null | null | import numpy as np
import torch
from torch.utils.data import Dataset
class DSpritesDataset(Dataset):
"""dSprites dataset."""
def __init__(self, npz_file:str, transform=None):
"""
Args:
npz_file: Path to the npz file.
root_dir: Directory with all the images.
... | 28 | 77 | 0.616815 | 157 | 1,344 | 5.050955 | 0.43949 | 0.069357 | 0.042875 | 0.050441 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002079 | 0.284226 | 1,344 | 47 | 78 | 28.595745 | 0.822245 | 0.186012 | 0 | 0 | 0 | 0 | 0.110465 | 0 | 0 | 0 | 0 | 0.021277 | 0 | 1 | 0.153846 | false | 0 | 0.115385 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
e5ced64f600ac3c74487191e1195ab9459b82463 | 5,223 | py | Python | checklists_scrapers/tests/validation/test_species.py | StuartMacKay/checklists_scrapers | a6151481554e761ca0cd9a190f6a27334b130cdf | [
"BSD-3-Clause"
] | 4 | 2015-10-25T15:43:06.000Z | 2021-05-06T03:18:23.000Z | checklists_scrapers/tests/validation/test_species.py | StuartMacKay/checklists_scrapers | a6151481554e761ca0cd9a190f6a27334b130cdf | [
"BSD-3-Clause"
] | null | null | null | checklists_scrapers/tests/validation/test_species.py | StuartMacKay/checklists_scrapers | a6151481554e761ca0cd9a190f6a27334b130cdf | [
"BSD-3-Clause"
] | null | null | null | """Validate the species in each entry of the downloaded checklists.
Validation Tests:
Species:
1. the species is a dict.
2. either the common name or scientific name is given.
SpeciesName:
1. common name is a string.
2. common name is set.
3. common name does not have leading... | 38.977612 | 79 | 0.624928 | 621 | 5,223 | 5.185185 | 0.140097 | 0.152174 | 0.048447 | 0.067081 | 0.73882 | 0.640994 | 0.586335 | 0.55 | 0.476708 | 0.476708 | 0 | 0.004477 | 0.273023 | 5,223 | 133 | 80 | 39.270677 | 0.843561 | 0.297339 | 0 | 0.619718 | 0 | 0 | 0.079787 | 0 | 0 | 0 | 0 | 0 | 0.169014 | 1 | 0.211268 | false | 0 | 0.014085 | 0 | 0.267606 | 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 |
e5d6dad7953ab7d02a774b3d3ef187f861ee936c | 7,515 | py | Python | sdk/python/pulumi_aws_native/apigateway/resource.py | AaronFriel/pulumi-aws-native | 5621690373ac44accdbd20b11bae3be1baf022d1 | [
"Apache-2.0"
] | 29 | 2021-09-30T19:32:07.000Z | 2022-03-22T21:06:08.000Z | sdk/python/pulumi_aws_native/apigateway/resource.py | AaronFriel/pulumi-aws-native | 5621690373ac44accdbd20b11bae3be1baf022d1 | [
"Apache-2.0"
] | 232 | 2021-09-30T19:26:26.000Z | 2022-03-31T23:22:06.000Z | sdk/python/pulumi_aws_native/apigateway/resource.py | AaronFriel/pulumi-aws-native | 5621690373ac44accdbd20b11bae3be1baf022d1 | [
"Apache-2.0"
] | 4 | 2021-11-10T19:42:01.000Z | 2022-02-05T10:15:49.000Z | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
__a... | 38.937824 | 134 | 0.628077 | 900 | 7,515 | 4.923333 | 0.15 | 0.05958 | 0.07267 | 0.030016 | 0.625367 | 0.539382 | 0.502821 | 0.477996 | 0.438276 | 0.421124 | 0 | 0.000183 | 0.272921 | 7,515 | 192 | 135 | 39.140625 | 0.810761 | 0.245775 | 0 | 0.358974 | 1 | 0 | 0.112455 | 0.00567 | 0 | 0 | 0 | 0 | 0 | 1 | 0.136752 | false | 0.008547 | 0.042735 | 0 | 0.264957 | 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 |
e5da80306fa2ac2bc6ac0b8cb8ff988dfdd4d6e0 | 4,098 | py | Python | physics/atoms.py | wirawan0/pyqmc | 8d641ba2b91d1d7a05a90574d0787fb991ee15e2 | [
"Apache-2.0"
] | null | null | null | physics/atoms.py | wirawan0/pyqmc | 8d641ba2b91d1d7a05a90574d0787fb991ee15e2 | [
"Apache-2.0"
] | null | null | null | physics/atoms.py | wirawan0/pyqmc | 8d641ba2b91d1d7a05a90574d0787fb991ee15e2 | [
"Apache-2.0"
] | null | null | null | # $Id: atoms.py,v 1.2 2010-09-07 15:10:56 wirawan Exp $
#
# pyqmc.physics.atoms module
# Created: 20100903
# Wirawan Purwanto
#
# This module is part of PyQMC project.
#
# Information about atoms
#
# Rigged with the help of Wikipedia,
# http://en.wikipedia.org/wiki/List_of_elements_by_symbol
# - taken from the source ... | 19.421801 | 89 | 0.688141 | 688 | 4,098 | 3.965116 | 0.655523 | 0.087977 | 0.084311 | 0.046188 | 0.150293 | 0.085044 | 0.065982 | 0.065982 | 0.065982 | 0.065982 | 0 | 0.090613 | 0.251342 | 4,098 | 210 | 90 | 19.514286 | 0.798566 | 0.093216 | 0 | 0.063218 | 0 | 0 | 0.591386 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.017241 | 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 |
e5e421d037f71a654f61f43d828fef468d8bcce1 | 8,590 | py | Python | 6_nac_workflow/step2b/DO_NACs.py | compchem-cybertraining/Tutorials_QE_and_eQE | e7315621d4a670b1abd72da8f4c6622aa7986a5a | [
"CC0-1.0"
] | 1 | 2021-09-24T01:44:34.000Z | 2021-09-24T01:44:34.000Z | 6_nac_workflow/step2b/DO_NACs.py | compchem-cybertraining/Tutorials_QE_and_eQE | e7315621d4a670b1abd72da8f4c6622aa7986a5a | [
"CC0-1.0"
] | null | null | null | 6_nac_workflow/step2b/DO_NACs.py | compchem-cybertraining/Tutorials_QE_and_eQE | e7315621d4a670b1abd72da8f4c6622aa7986a5a | [
"CC0-1.0"
] | 1 | 2021-09-24T01:44:37.000Z | 2021-09-24T01:44:37.000Z | #!/usr/bin/env python
# coding: utf-8
# # DO NACs (HPC version)
#
# This file demonstrates how to run the calculations of the NACs in the KS space, using QE.
#
# In particular, this example is designed to run calculations on UB HPC cluster, CCR (Center for Computational Research). More specifically, using the nodes ... | 28.922559 | 516 | 0.711874 | 1,374 | 8,590 | 4.390102 | 0.361718 | 0.008289 | 0.012765 | 0.014092 | 0.042772 | 0.025862 | 0.025862 | 0.014257 | 0.014257 | 0 | 0 | 0.039098 | 0.169267 | 8,590 | 296 | 517 | 29.02027 | 0.806194 | 0.511176 | 0 | 0.086667 | 0 | 0.02 | 0.733672 | 0.194969 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.073333 | 0 | 0.073333 | 0.013333 | 0 | 0 | 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 |
e5e55875316373b225d26baf74a1dab1a548ce5c | 215 | py | Python | src/tmtccmd/__init__.py | robamu-org/tmtccmd | 7b8b936f0d18fdbd375da92d43ecdd37d71ded57 | [
"Apache-2.0"
] | 1 | 2021-08-30T10:20:45.000Z | 2021-08-30T10:20:45.000Z | src/tmtccmd/__init__.py | robamu-org/tmtccmd | 7b8b936f0d18fdbd375da92d43ecdd37d71ded57 | [
"Apache-2.0"
] | 8 | 2021-09-06T17:23:32.000Z | 2022-03-04T13:41:52.000Z | src/tmtccmd/__init__.py | robamu-org/tmtccmd | 7b8b936f0d18fdbd375da92d43ecdd37d71ded57 | [
"Apache-2.0"
] | null | null | null | VERSION_NAME = "tmtccmd"
VERSION_MAJOR = 1
VERSION_MINOR = 10
VERSION_REVISION = 2
# I think this needs to be in string representation to be parsed so we can't
# use a formatted string here.
__version__ = "1.10.2"
| 23.888889 | 76 | 0.753488 | 37 | 215 | 4.162162 | 0.72973 | 0.051948 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045198 | 0.176744 | 215 | 8 | 77 | 26.875 | 0.824859 | 0.47907 | 0 | 0 | 0 | 0 | 0.119266 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
e5e5dceba9ff0dbb036d5ff97359215a91dde058 | 3,114 | py | Python | knocker/request.py | klen/knocker | 69a69a862c52e272db58f3e3f1030174c6dbbebe | [
"MIT"
] | 4 | 2020-06-04T06:39:08.000Z | 2022-03-16T07:49:04.000Z | knocker/request.py | klen/knocker | 69a69a862c52e272db58f3e3f1030174c6dbbebe | [
"MIT"
] | null | null | null | knocker/request.py | klen/knocker | 69a69a862c52e272db58f3e3f1030174c6dbbebe | [
"MIT"
] | null | null | null | """Do requests."""
import asyncio
import http
from random import random
import sentry_sdk
from asgi_tools._compat import aio_sleep
from httpx import (
HTTPError, ConnectError, TimeoutException, NetworkError,
AsyncClient, Response, HTTPStatusError)
from . import config as global_config, logger
async def pro... | 31.14 | 98 | 0.572897 | 345 | 3,114 | 5.075362 | 0.356522 | 0.035979 | 0.036551 | 0.037693 | 0.138778 | 0.051399 | 0 | 0 | 0 | 0 | 0 | 0.010763 | 0.313744 | 3,114 | 99 | 99 | 31.454545 | 0.80861 | 0.058767 | 0 | 0.088235 | 0 | 0 | 0.098019 | 0 | 0 | 0 | 0 | 0.010101 | 0 | 1 | 0.014706 | false | 0 | 0.102941 | 0 | 0.220588 | 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 |
e5ee61fe5a868caef0b43048a674bc0b30ecaf71 | 719 | py | Python | wait_until/test_main.py | gabrieldemarmiesse/wait-until | 6244ff16da2c6e85b13523892c77ec248e3467b3 | [
"MIT"
] | 2 | 2020-06-28T15:43:22.000Z | 2021-06-18T12:25:47.000Z | wait_until/test_main.py | gabrieldemarmiesse/wait-until | 6244ff16da2c6e85b13523892c77ec248e3467b3 | [
"MIT"
] | null | null | null | wait_until/test_main.py | gabrieldemarmiesse/wait-until | 6244ff16da2c6e85b13523892c77ec248e3467b3 | [
"MIT"
] | null | null | null | import time
from wait_until import wait_until
import pytest
def some_function_that_cannot_work():
raise ValueError("I cannot work!")
def test_wait_until_exception_raised():
with pytest.raises(TimeoutError) as err:
wait_until(some_function_that_cannot_work, timeout=1)
assert "Timeou... | 22.46875 | 62 | 0.652295 | 98 | 719 | 4.5 | 0.469388 | 0.122449 | 0.068027 | 0.099773 | 0.117914 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009276 | 0.250348 | 719 | 31 | 63 | 23.193548 | 0.808905 | 0 | 0 | 0 | 0 | 0 | 0.072674 | 0 | 0 | 0 | 0 | 0 | 0.1 | 1 | 0.25 | false | 0 | 0.15 | 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 |
e5f025e14360e6ae8dc29fa8231cf53c05e198cb | 2,263 | py | Python | sql_handler.py | zepc007/CityData | d7e2f7c8378bd46385e3dc2ce638eac97d66b00c | [
"MIT"
] | 1 | 2021-07-11T13:10:30.000Z | 2021-07-11T13:10:30.000Z | sql_handler.py | zepc007/CityData | d7e2f7c8378bd46385e3dc2ce638eac97d66b00c | [
"MIT"
] | null | null | null | sql_handler.py | zepc007/CityData | d7e2f7c8378bd46385e3dc2ce638eac97d66b00c | [
"MIT"
] | 1 | 2021-07-11T13:09:56.000Z | 2021-07-11T13:09:56.000Z | import json
import pandas as pd
from sqlalchemy import create_engine
class SqlClient:
def __init__(self, host, port, username, password, db):
self.host = host
self.port = port
self.username = username
self.password = password
self.db = db
self._conn = None
... | 41.145455 | 120 | 0.627928 | 296 | 2,263 | 4.476351 | 0.300676 | 0.05283 | 0.113208 | 0.063396 | 0.166038 | 0.109434 | 0.079245 | 0 | 0 | 0 | 0 | 0.00412 | 0.249227 | 2,263 | 54 | 121 | 41.907407 | 0.77575 | 0 | 0 | 0 | 0 | 0.023256 | 0.181617 | 0.041538 | 0 | 0 | 0 | 0 | 0 | 1 | 0.069767 | false | 0.093023 | 0.069767 | 0 | 0.209302 | 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 |
e5f4db7859b756897941cc13fc6474573e60afe6 | 9,787 | py | Python | PythonExtensions/debug/console.py | Jakar510/PythonExtensions | f29600f73454d21345f6da893a1df1b71ddacd0b | [
"MIT"
] | null | null | null | PythonExtensions/debug/console.py | Jakar510/PythonExtensions | f29600f73454d21345f6da893a1df1b71ddacd0b | [
"MIT"
] | null | null | null | PythonExtensions/debug/console.py | Jakar510/PythonExtensions | f29600f73454d21345f6da893a1df1b71ddacd0b | [
"MIT"
] | null | null | null | import sys
import traceback
from pprint import PrettyPrinter
from threading import Lock
from types import TracebackType
from typing import *
__all__ = [
# 'getPPrintStr', 'check', 'get_func_details', 'print_signature'
'PRINT', 'Print', 'print_exception', 'print_stack_trace', 'PrettyPrint',
# 'TITLE_TAG... | 32.30033 | 149 | 0.598345 | 1,193 | 9,787 | 4.682314 | 0.190277 | 0.015038 | 0.021482 | 0.015038 | 0.268887 | 0.223058 | 0.15145 | 0.092016 | 0.051916 | 0.051916 | 0 | 0.005663 | 0.278328 | 9,787 | 302 | 150 | 32.407285 | 0.785219 | 0.222234 | 0 | 0.298851 | 0 | 0 | 0.064507 | 0.027527 | 0 | 0 | 0 | 0 | 0.017241 | 1 | 0.206897 | false | 0 | 0.034483 | 0.028736 | 0.425287 | 0.183908 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
f904dbf4d95a4bd9b1226658b8ecfb3a7a36830a | 579 | py | Python | pyNetSocket/docs/__init__.py | DrSparky2k7/pyNetSocket | 43cac3b0bf0179a3ca2146f07b2e17eb5e766a3e | [
"MIT"
] | 1 | 2021-01-09T09:40:54.000Z | 2021-01-09T09:40:54.000Z | pyNetSocket/docs/__init__.py | DrSparky2k7/pyNetSocket | 43cac3b0bf0179a3ca2146f07b2e17eb5e766a3e | [
"MIT"
] | null | null | null | pyNetSocket/docs/__init__.py | DrSparky2k7/pyNetSocket | 43cac3b0bf0179a3ca2146f07b2e17eb5e766a3e | [
"MIT"
] | 1 | 2021-01-13T04:47:07.000Z | 2021-01-13T04:47:07.000Z | print('The documentation for the pyNetSocket library')
print('This covers all the information you need to start')
print('')
print('Topics:',
'server',
'client',
'callbacks',
sep='\n\t')
print('To view information:',
'import pyNetSocket.docs.TOPIC',
sep='\n')
print('')
print('You can ... | 28.95 | 63 | 0.661485 | 79 | 579 | 4.848101 | 0.620253 | 0.052219 | 0.073107 | 0.114883 | 0.214099 | 0.214099 | 0.214099 | 0 | 0 | 0 | 0 | 0.018557 | 0.162349 | 579 | 19 | 64 | 30.473684 | 0.771134 | 0 | 0 | 0.111111 | 0 | 0 | 0.585492 | 0.037997 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0.444444 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
f906cfdd689803bd9e44a27fad5503c8c3323058 | 6,182 | py | Python | pypy/lang/prolog/interpreter/arithmetic.py | camillobruni/pygirl | ddbd442d53061d6ff4af831c1eab153bcc771b5a | [
"MIT"
] | 12 | 2016-01-06T07:10:28.000Z | 2021-05-13T23:02:02.000Z | pypy/lang/prolog/interpreter/arithmetic.py | woodrow/pyoac | b5dc59e6a38e7912db47f26fb23ffa4764a3c0e7 | [
"MIT"
] | null | null | null | pypy/lang/prolog/interpreter/arithmetic.py | woodrow/pyoac | b5dc59e6a38e7912db47f26fb23ffa4764a3c0e7 | [
"MIT"
] | 2 | 2016-07-29T07:09:50.000Z | 2016-10-16T08:50:26.000Z | import py
import math
from pypy.lang.prolog.interpreter.parsing import parse_file, TermBuilder
from pypy.lang.prolog.interpreter import engine, helper, term, error
from pypy.lang.prolog.interpreter.error import UnificationFailed, FunctionNotFound
from pypy.rlib.rarithmetic import intmask
from pypy.rlib.jit import we_ar... | 42.634483 | 118 | 0.537043 | 709 | 6,182 | 4.555712 | 0.22426 | 0.014861 | 0.022291 | 0.018576 | 0.317337 | 0.218576 | 0.19226 | 0.139628 | 0.139628 | 0.130031 | 0 | 0.00871 | 0.294241 | 6,182 | 144 | 119 | 42.930556 | 0.731607 | 0.020544 | 0 | 0.18254 | 0 | 0 | 0.160218 | 0.020999 | 0 | 0 | 0 | 0 | 0.02381 | 0 | null | null | 0 | 0.071429 | 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 |
f90a63e090dfc5e07483171a1b2114c6fd453602 | 379 | py | Python | froide/campaign/listeners.py | xenein/froide | 59bd3eeded3c3ed00fbc858fe20bfea99c8dbefa | [
"MIT"
] | 198 | 2016-12-03T22:42:55.000Z | 2022-03-25T15:08:36.000Z | froide/campaign/listeners.py | xenein/froide | 59bd3eeded3c3ed00fbc858fe20bfea99c8dbefa | [
"MIT"
] | 264 | 2016-11-30T18:53:17.000Z | 2022-03-17T11:34:18.000Z | froide/campaign/listeners.py | xenein/froide | 59bd3eeded3c3ed00fbc858fe20bfea99c8dbefa | [
"MIT"
] | 42 | 2016-12-22T04:08:27.000Z | 2022-02-26T08:30:38.000Z | from .utils import connect_foirequest
def connect_campaign(sender, **kwargs):
reference = kwargs.get("reference")
if not reference:
return
if "@" in reference:
parts = reference.split("@", 1)
else:
parts = reference.split(":", 1)
if len(parts) != 2:
return
names... | 22.294118 | 41 | 0.614776 | 42 | 379 | 5.47619 | 0.547619 | 0.147826 | 0.165217 | 0.173913 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014337 | 0.263852 | 379 | 16 | 42 | 23.6875 | 0.810036 | 0 | 0 | 0.153846 | 0 | 0 | 0.031662 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.076923 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f90beb2c215d893adc92dbd991ff199c881a7e70 | 8,857 | py | Python | escsim/simulator.py | Edlward/foc_esc | 58425c0ce5865c077ce313bd672b971380f2edad | [
"MIT"
] | 67 | 2015-07-12T18:08:43.000Z | 2022-03-05T07:05:01.000Z | escsim/simulator.py | Edlward/foc_esc | 58425c0ce5865c077ce313bd672b971380f2edad | [
"MIT"
] | 1 | 2015-09-08T14:01:46.000Z | 2015-09-09T01:36:22.000Z | escsim/simulator.py | gtoonstra/foc_esc | 58425c0ce5865c077ce313bd672b971380f2edad | [
"MIT"
] | 44 | 2015-07-17T14:59:07.000Z | 2021-02-20T13:55:14.000Z | import math
import constants
class Simulator(object):
def __init__ (self):
self.bemfa = 0.0
self.bemfb = 0.0
self.va = 0.0
self.vb = 0.0
self.kp = constants.KP_EST_RPM
self.ki = constants.KI_EST_RPM
self.ls = 0.035
self.rs = 1.05
self.esta = ... | 36.004065 | 142 | 0.554815 | 1,279 | 8,857 | 3.70993 | 0.172009 | 0.043203 | 0.034141 | 0.046575 | 0.367334 | 0.274183 | 0.226765 | 0.154689 | 0.14373 | 0.126027 | 0 | 0.045884 | 0.318392 | 8,857 | 245 | 143 | 36.15102 | 0.740103 | 0.194535 | 0 | 0.062069 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.013793 | null | null | 0.006897 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
f90cbcecedc6eda63c34624621d2b2d5d9a2e112 | 643 | py | Python | 50/26.py | ElyKar/Euler | 38744b553b22565ac30ece06e2e3fbf3408068e2 | [
"MIT"
] | null | null | null | 50/26.py | ElyKar/Euler | 38744b553b22565ac30ece06e2e3fbf3408068e2 | [
"MIT"
] | null | null | null | 50/26.py | ElyKar/Euler | 38744b553b22565ac30ece06e2e3fbf3408068e2 | [
"MIT"
] | null | null | null | #!/bin/python
from decimal import *
import re
maxi = 0
maxidx = 0
def longest(s):
cur = 0
sub = ''
for start in range(len(s)):
end = start+1
test = s[start]
while end < len(s) and len(sub) == 0:
if test == s[end:end+end-start]:
sub = test
test += s[end]
end += 1
return len(sub)
getcontext... | 20.09375 | 75 | 0.595645 | 107 | 643 | 3.579439 | 0.364486 | 0.031332 | 0.041775 | 0.057441 | 0.229765 | 0.114883 | 0 | 0 | 0 | 0 | 0 | 0.048638 | 0.200622 | 643 | 32 | 76 | 20.09375 | 0.696498 | 0.163297 | 0 | 0 | 0 | 0 | 0.020522 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.08 | null | null | 0.08 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f90cc0604730602a4aaae583a2f8ead38f06e506 | 6,108 | py | Python | ghiblister.py | mcscope/NoisebrigePythonDebuggingTalk | af2156376671694afd94bd6158ffa27a00022924 | [
"Unlicense"
] | 46 | 2017-09-27T20:19:36.000Z | 2020-12-08T10:07:19.000Z | ghiblister.py | mcscope/NoisebridgePythonDebuggingTalk | af2156376671694afd94bd6158ffa27a00022924 | [
"Unlicense"
] | 6 | 2018-01-09T08:07:37.000Z | 2020-09-07T12:25:13.000Z | ghiblister.py | mcscope/NoisebridgePythonDebuggingTalk | af2156376671694afd94bd6158ffa27a00022924 | [
"Unlicense"
] | 18 | 2017-10-10T02:06:51.000Z | 2019-12-01T10:18:13.000Z | # Christopher Beacham May 5, 2017
# Created for Noisebridge Python class, distribute and use freely
# This is an example program that is a client for Studio Ghibli's API.
# (https://ghibliapi.herokuapp.com/#section/Studio-Ghibli-API)
# It downloads all the resources available in the API, and cross links some of them,
... | 35.719298 | 108 | 0.540439 | 685 | 6,108 | 4.740146 | 0.388321 | 0.016631 | 0.012011 | 0.014783 | 0.02279 | 0.013551 | 0 | 0 | 0 | 0 | 0 | 0.005707 | 0.368861 | 6,108 | 170 | 109 | 35.929412 | 0.836576 | 0.286182 | 0 | 0.180851 | 0 | 0.021277 | 0.188941 | 0.019392 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.042553 | null | null | 0.021277 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
f912619400af35ddcfb350826e39f99938321fc6 | 1,206 | py | Python | CellCycle/ChainModule/ProdCons.py | AQuadroTeam/server_cellsCycle | 4a07ef62928e87256350dd0c501ddeb19bc89462 | [
"MIT"
] | 3 | 2016-08-11T15:46:16.000Z | 2016-11-18T09:19:03.000Z | CellCycle/ChainModule/ProdCons.py | AQuadroTeam/server_cellsCycle | 4a07ef62928e87256350dd0c501ddeb19bc89462 | [
"MIT"
] | 3 | 2016-08-15T12:32:28.000Z | 2016-12-09T11:11:51.000Z | CellCycle/ChainModule/ProdCons.py | AQuadroTeam/CellsCycle | 4a07ef62928e87256350dd0c501ddeb19bc89462 | [
"MIT"
] | null | null | null | #! /usr/bin/env python
import Queue
from Queue import Empty
from ListThread import ListThread
BUF_SIZE = 10
q = Queue.Queue(BUF_SIZE)
class ProducerThread(ListThread):
def __init__(self, myself, master, slave, slave_of_slave, master_of_master, logger, settings, name):
ListThread.__init__(self, myself, m... | 28.714286 | 114 | 0.661692 | 157 | 1,206 | 4.828025 | 0.33758 | 0.079156 | 0.073879 | 0.105541 | 0.672823 | 0.672823 | 0.672823 | 0.672823 | 0.672823 | 0.672823 | 0 | 0.002172 | 0.236318 | 1,206 | 41 | 115 | 29.414634 | 0.820847 | 0.017413 | 0 | 0.4 | 0 | 0 | 0.040541 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.1 | 0 | 0.5 | 0.133333 | 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 |
f91bedac14fe13a22bfb82edb11d867f9395e611 | 17,601 | py | Python | Classes.py | SamVarney/Robinhood | 8dc517f86957138a543cef186997a18371ca1e9b | [
"MIT"
] | null | null | null | Classes.py | SamVarney/Robinhood | 8dc517f86957138a543cef186997a18371ca1e9b | [
"MIT"
] | null | null | null | Classes.py | SamVarney/Robinhood | 8dc517f86957138a543cef186997a18371ca1e9b | [
"MIT"
] | null | null | null |
from Robinhood import Robinhood
import config
import pandas as pd
from datetime import time, datetime
from bokeh.plotting import figure, output_file, show
#my_trader = Robinhood()
def instrument_info(instrument):
return instrument['symbol']
class Portfolio:
def __init__(self, my_trader):
self.tra... | 36.66875 | 171 | 0.602807 | 2,123 | 17,601 | 4.801696 | 0.173811 | 0.021581 | 0.013243 | 0.006867 | 0.25878 | 0.202276 | 0.1907 | 0.170689 | 0.162252 | 0.146361 | 0 | 0.002028 | 0.271462 | 17,601 | 480 | 172 | 36.66875 | 0.79295 | 0.156696 | 0 | 0.23913 | 0 | 0 | 0.156001 | 0.032553 | 0 | 0 | 0 | 0.00625 | 0 | 0 | null | null | 0.004348 | 0.021739 | null | null | 0.13913 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
f91d774d8418b73c0df6843208a96ce220b0f168 | 3,753 | py | Python | vendor/github.com/elastic/beats/libbeat/tests/system/test_template.py | N0mansky/countbeat | fa80242cf1ea46f036a3a4920eea3e00554f777e | [
"Apache-2.0"
] | 16 | 2018-08-22T03:29:31.000Z | 2021-09-05T14:01:10.000Z | vendor/github.com/elastic/beats/libbeat/tests/system/test_template.py | railroadmanuk/rubrikbeat | af012076d68f64e12092d885257aa5a706453695 | [
"MIT"
] | 3 | 2020-05-29T13:53:51.000Z | 2021-06-01T22:19:56.000Z | libbeat/tests/system/test_template.py | sure0000/beats | 1690690b3fcbe4a46aedc1121f9aa128497ed22d | [
"ECL-2.0",
"Apache-2.0"
] | 6 | 2018-10-31T06:55:01.000Z | 2021-02-06T18:50:04.000Z | from base import BaseTest
import os
from elasticsearch import Elasticsearch, TransportError
from nose.plugins.attrib import attr
import unittest
INTEGRATION_TESTS = os.environ.get('INTEGRATION_TESTS', False)
class Test(BaseTest):
def test_index_modified(self):
"""
Test that beat stops in case el... | 32.921053 | 111 | 0.632294 | 448 | 3,753 | 5.089286 | 0.212054 | 0.024561 | 0.052632 | 0.063158 | 0.651316 | 0.603947 | 0.585526 | 0.555702 | 0.555702 | 0.460965 | 0 | 0.005829 | 0.268585 | 3,753 | 113 | 112 | 33.212389 | 0.824772 | 0 | 0 | 0.472222 | 0 | 0.041667 | 0.195482 | 0.020709 | 0 | 0 | 0 | 0 | 0.097222 | 0 | null | null | 0 | 0.069444 | null | null | 0.013889 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
f91e42103d2c1859585030f9f680e4ff2f4e698a | 690 | py | Python | corehq/apps/accounting/management/commands/generate_invoices.py | dslowikowski/commcare-hq | ad8885cf8dab69dc85cb64f37aeaf06106124797 | [
"BSD-3-Clause"
] | 1 | 2015-02-10T23:26:39.000Z | 2015-02-10T23:26:39.000Z | corehq/apps/accounting/management/commands/generate_invoices.py | SEL-Columbia/commcare-hq | 992ee34a679c37f063f86200e6df5a197d5e3ff6 | [
"BSD-3-Clause"
] | 1 | 2022-03-12T01:03:25.000Z | 2022-03-12T01:03:25.000Z | corehq/apps/accounting/management/commands/generate_invoices.py | johan--/commcare-hq | 86ee99c54f55ee94e4c8f2f6f30fc44e10e69ebd | [
"BSD-3-Clause"
] | null | null | null | from optparse import make_option
import datetime
from django.core.management import BaseCommand
from corehq.apps.accounting.tasks import generate_invoices
class Command(BaseCommand):
help = ("Generate missing invoices based on the given date in YYYY-MM-DD "
"format")
option_list = BaseCommand.opt... | 31.363636 | 78 | 0.652174 | 82 | 690 | 5.329268 | 0.634146 | 0.10984 | 0.06865 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003831 | 0.243478 | 690 | 21 | 79 | 32.857143 | 0.833333 | 0 | 0 | 0 | 1 | 0 | 0.16087 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.235294 | 0 | 0.470588 | 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 |
f91e77f81799f057320d41ed5c0898b9104a8573 | 668 | py | Python | src/solutions/solution_7.py | mannickutd/project_euler | 3e042773cc8628b19fa4d341e56ab8cecd2ea642 | [
"Apache-2.0"
] | null | null | null | src/solutions/solution_7.py | mannickutd/project_euler | 3e042773cc8628b19fa4d341e56ab8cecd2ea642 | [
"Apache-2.0"
] | null | null | null | src/solutions/solution_7.py | mannickutd/project_euler | 3e042773cc8628b19fa4d341e56ab8cecd2ea642 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Solution to question 7
Nicholas Staples
2014-04-15
"""
from utils.include_decorator import include_decorator
# Generator for primes.
# Not a particulary quick one but for small primes it is fine.
# If you are consistently looking for prime numbers you would probably
# generate them once ... | 20.875 | 70 | 0.703593 | 111 | 668 | 4.153153 | 0.666667 | 0.104121 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045198 | 0.20509 | 668 | 32 | 71 | 20.875 | 0.822976 | 0.434132 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.0625 | null | null | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f9215c75703c23dde5e4fa67bed97e08eca42978 | 921 | py | Python | scraper/storage_spiders/diegoshoecom.py | chongiadung/choinho | d2a216fe7a5064d73cdee3e928a7beef7f511fd1 | [
"MIT"
] | null | null | null | scraper/storage_spiders/diegoshoecom.py | chongiadung/choinho | d2a216fe7a5064d73cdee3e928a7beef7f511fd1 | [
"MIT"
] | 10 | 2020-02-11T23:34:28.000Z | 2022-03-11T23:16:12.000Z | scraper/storage_spiders/diegoshoecom.py | chongiadung/choinho | d2a216fe7a5064d73cdee3e928a7beef7f511fd1 | [
"MIT"
] | 3 | 2018-08-05T14:54:25.000Z | 2021-06-07T01:49:59.000Z | # Auto generated by generator.py. Delete this line if you make modification.
from scrapy.spiders import Rule
from scrapy.linkextractors import LinkExtractor
XPATH = {
'name' : "//div[@class='product-info']/form/h1",
'price' : "//div[@class='price-wrap clearfix']/p[@class='actual-price']/span/span/span",
'c... | 34.111111 | 92 | 0.648208 | 110 | 921 | 5.309091 | 0.581818 | 0.068493 | 0.113014 | 0.089041 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001259 | 0.137894 | 921 | 26 | 93 | 35.423077 | 0.734257 | 0.130293 | 0 | 0 | 1 | 0.043478 | 0.483709 | 0.307018 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.086957 | 0 | 0.086957 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f92418c9a9ee88d443081957c827b2cf66e6d52b | 435 | py | Python | Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/lms/djangoapps/courseware/migrations/0015_add_courseware_stats_index.py | osoco/better-ways-of-thinking-about-software | 83e70d23c873509e22362a09a10d3510e10f6992 | [
"MIT"
] | 3 | 2021-12-15T04:58:18.000Z | 2022-02-06T12:15:37.000Z | Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/lms/djangoapps/courseware/migrations/0015_add_courseware_stats_index.py | osoco/better-ways-of-thinking-about-software | 83e70d23c873509e22362a09a10d3510e10f6992 | [
"MIT"
] | null | null | null | Part-03-Understanding-Software-Crafting-Your-Own-Tools/models/edx-platform/lms/djangoapps/courseware/migrations/0015_add_courseware_stats_index.py | osoco/better-ways-of-thinking-about-software | 83e70d23c873509e22362a09a10d3510e10f6992 | [
"MIT"
] | 1 | 2019-01-02T14:38:50.000Z | 2019-01-02T14:38:50.000Z | # Generated by Django 2.2.18 on 2021-02-18 17:35
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('courseware', '0014_fix_nan_value_for_global_speed'),
]
operations = [
migrations.AddIndex(
model_name='studentmodule',
... | 24.166667 | 105 | 0.643678 | 49 | 435 | 5.510204 | 0.795918 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05988 | 0.232184 | 435 | 17 | 106 | 25.588235 | 0.748503 | 0.105747 | 0 | 0 | 1 | 0 | 0.263566 | 0.090439 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
f925678191b707a90f520b823a88f06012e7d065 | 148 | py | Python | problem/10000~19999/11948/11948.py3.py | njw1204/BOJ-AC | 1de41685725ae4657a7ff94e413febd97a888567 | [
"MIT"
] | 1 | 2019-04-19T16:37:44.000Z | 2019-04-19T16:37:44.000Z | problem/10000~19999/11948/11948.py3.py | njw1204/BOJ-AC | 1de41685725ae4657a7ff94e413febd97a888567 | [
"MIT"
] | 1 | 2019-04-20T11:42:44.000Z | 2019-04-20T11:42:44.000Z | problem/10000~19999/11948/11948.py3.py | njw1204/BOJ-AC | 1de41685725ae4657a7ff94e413febd97a888567 | [
"MIT"
] | 3 | 2019-04-19T16:37:47.000Z | 2021-10-25T00:45:00.000Z | x=[]
for i in range(4):
x.append(int(input()))
x.sort()
ans=sum(x[1:])
x=[]
for i in range(2):
x.append(int(input()))
ans+=max(x)
print(ans) | 14.8 | 26 | 0.567568 | 31 | 148 | 2.709677 | 0.516129 | 0.095238 | 0.119048 | 0.166667 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024 | 0.155405 | 148 | 10 | 27 | 14.8 | 0.648 | 0 | 0 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.1 | 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 |
f926e4b4d495797807abf91c8bfa7da02a68b80a | 733 | py | Python | mytutor/urls.py | adityapandadev/FindMyTutor | 7c153824355cd53c82d20fd4208b7091b84967d7 | [
"MIT"
] | 1 | 2021-07-26T16:06:53.000Z | 2021-07-26T16:06:53.000Z | mytutor/urls.py | adityapandadev/Findmytutor | 7c153824355cd53c82d20fd4208b7091b84967d7 | [
"MIT"
] | null | null | null | mytutor/urls.py | adityapandadev/Findmytutor | 7c153824355cd53c82d20fd4208b7091b84967d7 | [
"MIT"
] | null | null | null | from django.contrib import admin
from django.urls import path
from django.urls.conf import include
from mytutor import views
from django.views.generic.base import RedirectView
urlpatterns = [
path('home/', views.HomeView.as_view()),
path('tutor/', views.TutorListView.as_view()),
path('contact/', views.Cont... | 38.578947 | 92 | 0.699864 | 90 | 733 | 5.6 | 0.377778 | 0.095238 | 0.119048 | 0.107143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.136426 | 733 | 18 | 93 | 40.722222 | 0.796209 | 0 | 0 | 0 | 0 | 0 | 0.151432 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.3125 | 0 | 0.3125 | 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 |
f9284ae0ed060eed8944ff4b814eee1e48057630 | 717 | py | Python | django/publicmapping/publicmapping/celery.py | PublicMapping/districtbuilder-classic | 6e4b9d644043082eb0499f5aa77e777fff73a67c | [
"Apache-2.0"
] | 2 | 2020-06-15T00:37:15.000Z | 2021-09-23T00:05:25.000Z | django/publicmapping/publicmapping/celery.py | PublicMapping/districtbuilder-classic | 6e4b9d644043082eb0499f5aa77e777fff73a67c | [
"Apache-2.0"
] | 2 | 2020-05-11T20:54:54.000Z | 2020-06-05T17:16:13.000Z | django/publicmapping/publicmapping/celery.py | PublicMapping/districtbuilder-classic | 6e4b9d644043082eb0499f5aa77e777fff73a67c | [
"Apache-2.0"
] | 1 | 2021-09-23T00:06:08.000Z | 2021-09-23T00:06:08.000Z | from __future__ import absolute_import, unicode_literals
import os
from celery import Celery
from . import REDIS_URL
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "publicmapping.settings")
# Configure Celery app to use Redis as both the results backend and the message broker.
app = Celery('publicmapping', backend=R... | 37.736842 | 87 | 0.800558 | 101 | 717 | 5.534653 | 0.564356 | 0.042934 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125523 | 717 | 18 | 88 | 39.833333 | 0.891547 | 0.488145 | 0 | 0 | 0 | 0 | 0.230556 | 0.122222 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
0054ba2d43533ad49392c07910fef919c68d4430 | 18,625 | py | Python | babilim/training/losses.py | penguinmenac3/babilim | d3b1dd7c38a9de8f1e553cc5c0b2dfa62fe25c27 | [
"MIT"
] | 1 | 2020-05-04T15:20:55.000Z | 2020-05-04T15:20:55.000Z | babilim/training/losses.py | penguinmenac3/babilim | d3b1dd7c38a9de8f1e553cc5c0b2dfa62fe25c27 | [
"MIT"
] | 1 | 2019-11-28T09:03:20.000Z | 2019-11-28T09:03:20.000Z | babilim/training/losses.py | penguinmenac3/babilim | d3b1dd7c38a9de8f1e553cc5c0b2dfa62fe25c27 | [
"MIT"
] | 1 | 2019-11-28T08:30:13.000Z | 2019-11-28T08:30:13.000Z | # AUTOGENERATED FROM: babilim/training/losses.ipynb
# Cell: 0
"""doc
# babilim.training.losses
> A package containing all losses.
"""
# Cell: 1
from collections import defaultdict
from typing import Any
import json
import numpy as np
import babilim
from babilim.core.itensor import ITensor
from babilim.core.logging i... | 45.874384 | 286 | 0.628617 | 2,503 | 18,625 | 4.544946 | 0.118658 | 0.021976 | 0.018987 | 0.039557 | 0.638186 | 0.618143 | 0.605397 | 0.582718 | 0.541579 | 0.531646 | 0 | 0.003556 | 0.275275 | 18,625 | 405 | 287 | 45.987654 | 0.839235 | 0.420671 | 0 | 0.382199 | 1 | 0 | 0.032889 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.115183 | false | 0 | 0.089005 | 0 | 0.314136 | 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 |
00573c549df2f7162056e919b9a823effa6b19f7 | 1,535 | py | Python | Examples/digits/NN/runNN.py | longtengz/pyml | fa65d4274afe6ef60b31cd2a006a142c350c577d | [
"MIT"
] | 4 | 2017-04-09T16:25:14.000Z | 2018-03-28T15:41:55.000Z | Examples/digits/NN/runNN.py | longtengz/pyml | fa65d4274afe6ef60b31cd2a006a142c350c577d | [
"MIT"
] | null | null | null | Examples/digits/NN/runNN.py | longtengz/pyml | fa65d4274afe6ef60b31cd2a006a142c350c577d | [
"MIT"
] | null | null | null | import sys
# TODO
# need to normalize this path for Windows users
sys.path.insert(0, '../../../NeuralNet')
from NeuralNet import NN
from ActivationFunction.AF import *
trainingPairs = list()
testPairs = list()
with open('../data/trainingDigits.data', 'r') as trainingDigitsFile:
for line in list(trainingDigitsFi... | 30.7 | 152 | 0.695765 | 199 | 1,535 | 5.366834 | 0.396985 | 0.022472 | 0.033708 | 0.048689 | 0.370787 | 0.370787 | 0.330524 | 0.243446 | 0.243446 | 0.129213 | 0 | 0.062791 | 0.159609 | 1,535 | 49 | 153 | 31.326531 | 0.765116 | 0.391531 | 0 | 0.285714 | 0 | 0 | 0.126761 | 0.099675 | 0 | 0 | 0 | 0.020408 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 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 |
005ac9b14b94b52e2743e4397f8aed64e361559e | 1,507 | py | Python | observations/r/swahili.py | hajime9652/observations | 2c8b1ac31025938cb17762e540f2f592e302d5de | [
"Apache-2.0"
] | 199 | 2017-07-24T01:34:27.000Z | 2022-01-29T00:50:55.000Z | observations/r/swahili.py | hajime9652/observations | 2c8b1ac31025938cb17762e540f2f592e302d5de | [
"Apache-2.0"
] | 46 | 2017-09-05T19:27:20.000Z | 2019-01-07T09:47:26.000Z | observations/r/swahili.py | hajime9652/observations | 2c8b1ac31025938cb17762e540f2f592e302d5de | [
"Apache-2.0"
] | 45 | 2017-07-26T00:10:44.000Z | 2022-03-16T20:44:59.000Z | # -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import csv
import numpy as np
import os
import sys
from observations.util import maybe_download_and_extract
def swahili(path):
"""Swahili
Attitudes towards the Swahili language a... | 23.184615 | 71 | 0.684141 | 206 | 1,507 | 4.868932 | 0.563107 | 0.03988 | 0.047856 | 0.045862 | 0.043868 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012111 | 0.232913 | 1,507 | 64 | 72 | 23.546875 | 0.855536 | 0.446583 | 0 | 0 | 0 | 0 | 0.100381 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.409091 | 0 | 0.5 | 0.045455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
005bacdde9dfe7d2f249be1a724d289ebd153f3b | 19,504 | py | Python | qubits/cl_utils.py | thespacedoctor/qubits | 3c02ace7226389841c6bb838d045c11bed61a3c2 | [
"MIT"
] | 3 | 2018-09-25T09:32:55.000Z | 2021-11-17T11:35:17.000Z | qubits/cl_utils.py | thespacedoctor/qubits | 3c02ace7226389841c6bb838d045c11bed61a3c2 | [
"MIT"
] | 1 | 2018-03-16T16:04:52.000Z | 2018-03-16T16:04:52.000Z | qubits/cl_utils.py | thespacedoctor/qubits | 3c02ace7226389841c6bb838d045c11bed61a3c2 | [
"MIT"
] | 2 | 2017-07-16T08:23:41.000Z | 2021-02-23T12:49:17.000Z | #!/usr/local/bin/python
# encoding: utf-8
"""
*Documentation for qubits can be found here: https://github.com/thespacedoctor/qubits*
Usage:
qubits init <pathToWorkspace>
qubits run -s <pathToSettingsFile> -o <pathToOutputDirectory> -d <pathToSpectralDatabase>
COMMANDS
--------
init setu... | 40.46473 | 485 | 0.656429 | 1,718 | 19,504 | 7.37078 | 0.259604 | 0.010503 | 0.024876 | 0.038695 | 0.265182 | 0.184632 | 0.152649 | 0.129985 | 0.118297 | 0.101714 | 0 | 0.000414 | 0.257742 | 19,504 | 481 | 486 | 40.548857 | 0.874283 | 0.045324 | 0 | 0.366755 | 0 | 0.01847 | 0.258761 | 0.044778 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.063325 | null | null | 0.023747 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
00603629eb004f9787cdbd9d31855418006e15bc | 2,734 | py | Python | examples/projects/LGL/LGL-simulation.py | JamesPino/booleannet | dc7324ca6756a80de74551bb24bb6ce23b1a762d | [
"MIT"
] | null | null | null | examples/projects/LGL/LGL-simulation.py | JamesPino/booleannet | dc7324ca6756a80de74551bb24bb6ce23b1a762d | [
"MIT"
] | null | null | null | examples/projects/LGL/LGL-simulation.py | JamesPino/booleannet | dc7324ca6756a80de74551bb24bb6ce23b1a762d | [
"MIT"
] | 1 | 2019-03-13T14:52:51.000Z | 2019-03-13T14:52:51.000Z | """
LGL simulator
It is also a demonstration on how the collector works
"""
import boolean2
from boolean2 import Model, util
from random import choice
# ocasionally randomized nodes
TARGETS = set( "PDGF IL15".split() )
def new_getvalue( state, name, p):
"""
Called every time a node value is used in an expr... | 30.377778 | 81 | 0.653621 | 361 | 2,734 | 4.897507 | 0.401662 | 0.027149 | 0.042986 | 0.056561 | 0.253394 | 0.253394 | 0.253394 | 0.253394 | 0.227376 | 0.196833 | 0 | 0.011605 | 0.243599 | 2,734 | 90 | 82 | 30.377778 | 0.843327 | 0.168252 | 0 | 0.181818 | 0 | 0 | 0.086559 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.068182 | null | null | 0.068182 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
0066a97d1120a09b9055e61b5c4459d6c38fa43a | 450 | py | Python | book/migrations/0011_auto_20170603_1526.py | pyprism/Hiren-Mail-Notify | 324583a2edd25da5d2077914a79da291e00c743e | [
"MIT"
] | null | null | null | book/migrations/0011_auto_20170603_1526.py | pyprism/Hiren-Mail-Notify | 324583a2edd25da5d2077914a79da291e00c743e | [
"MIT"
] | 144 | 2015-10-18T17:19:03.000Z | 2021-06-27T07:05:56.000Z | book/migrations/0011_auto_20170603_1526.py | pyprism/Hiren-Mail-Notify | 324583a2edd25da5d2077914a79da291e00c743e | [
"MIT"
] | 1 | 2015-10-18T17:04:39.000Z | 2015-10-18T17:04:39.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2017-06-03 09:26
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('book', '0010_auto_20170603_1441'),
]
operations = [
migrations.AlterField(
... | 21.428571 | 58 | 0.611111 | 50 | 450 | 5.32 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.097264 | 0.268889 | 450 | 20 | 59 | 22.5 | 0.711246 | 0.146667 | 0 | 0 | 1 | 0 | 0.091864 | 0.060367 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.