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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
19e3cc99b66e2939b99c81e570efb9afd33fa23d | 5,773 | py | Python | rovina.py | Pandoro/tools | 631c6036cb74dc845668fd912588fd31aae46f8b | [
"MIT"
] | 1 | 2019-04-22T16:38:03.000Z | 2019-04-22T16:38:03.000Z | rovina.py | afcarl/tools-Pandoro | 631c6036cb74dc845668fd912588fd31aae46f8b | [
"MIT"
] | 2 | 2018-03-13T10:49:48.000Z | 2018-03-13T10:54:01.000Z | rovina.py | afcarl/tools-Pandoro | 631c6036cb74dc845668fd912588fd31aae46f8b | [
"MIT"
] | 2 | 2018-03-08T19:40:10.000Z | 2018-06-11T14:43:49.000Z | import json
import os
import sys
sys.path.append('/usr/lib/python2.7/dist-packages')
import cv2
import numpy as np
from tqdm import *
import dataset_utils
class Rovina(object):
def __init__(self, config_filename):
self.config_filename = config_filename
with open(config_filename) as config_fil... | 37.245161 | 161 | 0.625498 | 775 | 5,773 | 4.374194 | 0.154839 | 0.067847 | 0.029499 | 0.041298 | 0.257817 | 0.156637 | 0.112684 | 0.043068 | 0 | 0 | 0 | 0.005034 | 0.277325 | 5,773 | 155 | 162 | 37.245161 | 0.807526 | 0.013338 | 0 | 0.108333 | 0 | 0 | 0.073749 | 0.024759 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.058333 | 0.025 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
19e85b96640382129fd31d8131a6692e41afddf9 | 4,952 | py | Python | gpgLabs/GPR/GPRlab1.py | victortocantins/gpgLabs | 310b69c681dd1ebf91ba8be2b5ac27adf5fc0f12 | [
"MIT"
] | null | null | null | gpgLabs/GPR/GPRlab1.py | victortocantins/gpgLabs | 310b69c681dd1ebf91ba8be2b5ac27adf5fc0f12 | [
"MIT"
] | null | null | null | gpgLabs/GPR/GPRlab1.py | victortocantins/gpgLabs | 310b69c681dd1ebf91ba8be2b5ac27adf5fc0f12 | [
"MIT"
] | null | null | null | import numpy as np
from scipy.constants import mu_0, epsilon_0
import matplotlib.pyplot as plt
from PIL import Image
import warnings
warnings.filterwarnings('ignore')
from ipywidgets import interact, interactive, IntSlider, widget, FloatText, FloatSlider, fixed
from .Wiggle import wiggle, PrimaryWave, ReflectedWave
i... | 24.636816 | 94 | 0.544628 | 695 | 4,952 | 3.851799 | 0.238849 | 0.029884 | 0.015689 | 0.016436 | 0.331715 | 0.294733 | 0.294733 | 0.277176 | 0.261113 | 0.228614 | 0 | 0.078196 | 0.243336 | 4,952 | 200 | 95 | 24.76 | 0.636242 | 0.047254 | 0 | 0.310606 | 0 | 0 | 0.035458 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.075758 | false | 0 | 0.068182 | 0.007576 | 0.189394 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
19ebb2a3f5203d8e575a8e0bab417177a0a48924 | 5,010 | py | Python | third_party/unidecode/x0bd.py | asysc2020/contentbox | 5c155976e0ce7ea308d62293ab89624d97b21d09 | [
"Apache-2.0"
] | 39 | 2015-06-10T23:18:07.000Z | 2021-10-21T04:29:06.000Z | third_party/unidecode/x0bd.py | asysc2020/contentbox | 5c155976e0ce7ea308d62293ab89624d97b21d09 | [
"Apache-2.0"
] | 2 | 2016-08-22T12:38:10.000Z | 2017-01-26T18:37:33.000Z | third_party/unidecode/x0bd.py | asysc2020/contentbox | 5c155976e0ce7ea308d62293ab89624d97b21d09 | [
"Apache-2.0"
] | 26 | 2015-06-10T22:09:15.000Z | 2021-06-27T15:45:15.000Z | data = (
'bols', # 0x00
'bolt', # 0x01
'bolp', # 0x02
'bolh', # 0x03
'bom', # 0x04
'bob', # 0x05
'bobs', # 0x06
'bos', # 0x07
'boss', # 0x08
'bong', # 0x09
'boj', # 0x0a
'boc', # 0x0b
'bok', # 0x0c
'bot', # 0x0d
'bop', # 0x0e
'boh', # 0x0f
'bwa', # 0x1... | 19.343629 | 20 | 0.436128 | 513 | 5,010 | 4.259259 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.179328 | 0.358882 | 5,010 | 258 | 21 | 19.418605 | 0.500934 | 0.255289 | 0 | 0 | 0 | 0 | 0.359764 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
19ed8ee16410261911df594fb0af9ff20f20ca7e | 6,556 | py | Python | pystitchy/grid.py | iht/Stitchy-Studio | f7faf846d7ce498ef5945caaff2b09f9108e2919 | [
"MIT"
] | 1 | 2021-02-28T17:27:16.000Z | 2021-02-28T17:27:16.000Z | pystitchy/grid.py | iht/Stitchy-Studio | f7faf846d7ce498ef5945caaff2b09f9108e2919 | [
"MIT"
] | null | null | null | pystitchy/grid.py | iht/Stitchy-Studio | f7faf846d7ce498ef5945caaff2b09f9108e2919 | [
"MIT"
] | null | null | null | # Copyright (c) 2012 Israel Herraiz <isra@herraiz.org>
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, me... | 33.968912 | 107 | 0.585265 | 838 | 6,556 | 4.409308 | 0.236277 | 0.05115 | 0.045737 | 0.05954 | 0.440866 | 0.397564 | 0.335859 | 0.283356 | 0.271719 | 0.271719 | 0 | 0.011341 | 0.314063 | 6,556 | 192 | 108 | 34.145833 | 0.810318 | 0.194783 | 0 | 0.350877 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0.026316 | 0.017544 | 0.219298 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
19effa59bdd92c4854c56be758df2693cacdcb3d | 1,158 | py | Python | scraper/engine.py | pesya/scraper | c088dc3dc613fec94e297ac71302d2305b44b14c | [
"BSD-3-Clause"
] | null | null | null | scraper/engine.py | pesya/scraper | c088dc3dc613fec94e297ac71302d2305b44b14c | [
"BSD-3-Clause"
] | null | null | null | scraper/engine.py | pesya/scraper | c088dc3dc613fec94e297ac71302d2305b44b14c | [
"BSD-3-Clause"
] | null | null | null | import sys
import csv
import requests
from parsel import Selector
from scraper.parser import get_features_from_item
start_url = 'http://www.world-art.ru/animation/rating_top.php'
SIGN_STDOUT = '-'
FORMAT_CSV = 'csv'
FORMAT_JL = 'jl'
def parse(url: str, out_path: str, out_format: str):
"""
gets link and ret... | 28.243902 | 103 | 0.69171 | 162 | 1,158 | 4.716049 | 0.469136 | 0.078534 | 0.094241 | 0.049738 | 0.10733 | 0.10733 | 0.10733 | 0.10733 | 0.10733 | 0 | 0 | 0.007423 | 0.185665 | 1,158 | 40 | 104 | 28.95 | 0.802757 | 0.029361 | 0 | 0 | 0 | 0 | 0.16787 | 0.08574 | 0 | 0 | 0 | 0 | 0.083333 | 1 | 0.041667 | false | 0 | 0.208333 | 0 | 0.291667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
19f6250f9d15cae4fb338cfbac1c36e435b2c1ca | 3,188 | py | Python | third_party/nkata/tests/transformvideo_test.py | google/offline-content-packager | 5a023eeeed4973e452309b434a59ce745487fdd6 | [
"Apache-2.0"
] | 32 | 2016-05-31T13:01:46.000Z | 2022-03-18T11:17:36.000Z | third_party/nkata/tests/transformvideo_test.py | google/offline-content-packager | 5a023eeeed4973e452309b434a59ce745487fdd6 | [
"Apache-2.0"
] | null | null | null | third_party/nkata/tests/transformvideo_test.py | google/offline-content-packager | 5a023eeeed4973e452309b434a59ce745487fdd6 | [
"Apache-2.0"
] | 29 | 2016-06-08T18:11:00.000Z | 2021-09-28T04:14:34.000Z | # Copyright 2015 The Offline Content Packager Authors. 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 requi... | 32.20202 | 78 | 0.69542 | 409 | 3,188 | 5.244499 | 0.366748 | 0.027972 | 0.02331 | 0.022378 | 0.02704 | 0.02704 | 0 | 0 | 0 | 0 | 0 | 0.007042 | 0.198243 | 3,188 | 98 | 79 | 32.530612 | 0.83216 | 0.192284 | 0 | 0 | 0 | 0 | 0.15 | 0.020703 | 0 | 0 | 0 | 0 | 0.015385 | 1 | 0.092308 | false | 0 | 0.153846 | 0.015385 | 0.276923 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
19f8e4fcaecd9a3968eed26a324bf80026d1583f | 246 | py | Python | algorithm/python/BAEKJOON_1436.py | cjsrhd94/TIL | b91bab7d99d10c63f91af0790cb28ec3d228b68b | [
"MIT"
] | 1 | 2021-08-19T06:23:00.000Z | 2021-08-19T06:23:00.000Z | algorithm/python/BAEKJOON_1436.py | cjsrhd94/TIL | b91bab7d99d10c63f91af0790cb28ec3d228b68b | [
"MIT"
] | null | null | null | algorithm/python/BAEKJOON_1436.py | cjsrhd94/TIL | b91bab7d99d10c63f91af0790cb28ec3d228b68b | [
"MIT"
] | null | null | null | n = int(input())
count = 0
number = 0
while True:
if '666' in str(number): #문자열로 변경하였을때 '666'이 포함되어있다면 count를 세준다.
count += 1
if count == n: #count가 입력값과 동일할 때 print -> n번째 값 출력
print(number)
break
number += 1 | 24.6 | 68 | 0.565041 | 39 | 246 | 3.564103 | 0.717949 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.059524 | 0.317073 | 246 | 10 | 69 | 24.6 | 0.767857 | 0.296748 | 0 | 0 | 0 | 0 | 0.017442 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
19f91845aaff11955f6b430aa3684474c464bf80 | 3,599 | py | Python | cacheTraceAnalysis/plot/reqRate.py | Thesys-lab/cacheWorkloadAnalysisOSDI20 | cfc5bbb5c8d909571546c78c247561c9db449469 | [
"Apache-2.0"
] | 6 | 2020-11-12T07:51:02.000Z | 2022-03-27T20:20:01.000Z | cacheTraceAnalysis/plot/reqRate.py | Thesys-lab/InMemoryCachingWorkloadAnalysis | 5f6f9f7e29a164478f3fc28eb64c170bbbafdec7 | [
"Apache-2.0"
] | null | null | null | cacheTraceAnalysis/plot/reqRate.py | Thesys-lab/InMemoryCachingWorkloadAnalysis | 5f6f9f7e29a164478f3fc28eb64c170bbbafdec7 | [
"Apache-2.0"
] | 1 | 2021-12-31T01:16:09.000Z | 2021-12-31T01:16:09.000Z | """ plot request rate
"""
import os, sys
sys.path.append(os.path.join(os.path.dirname(os.path.abspath(__file__)), "../"))
from utils.common import *
def _cal_req_rate(trace_reader, window):
metadata_name = "reqRateList_w{}_{}.pickle".format(window, trace_reader.trace_path.split("/")[-1])
loaded = load_metadata(... | 38.698925 | 159 | 0.689358 | 600 | 3,599 | 3.825 | 0.193333 | 0.076688 | 0.057516 | 0.030501 | 0.467974 | 0.410458 | 0.309368 | 0.293682 | 0.237909 | 0.237909 | 0 | 0.02082 | 0.159211 | 3,599 | 92 | 160 | 39.119565 | 0.737607 | 0.004724 | 0 | 0.140845 | 0 | 0 | 0.094065 | 0.021557 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028169 | false | 0 | 0.042254 | 0 | 0.112676 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
19fac7af0c83f21b636a9b1fa9c53ac1705d1cfb | 5,097 | py | Python | utils.py | sjenni/DeepBilevel | 9db6c9d81188e891104677a7ffc4b045421fb097 | [
"MIT"
] | 8 | 2019-10-23T12:16:13.000Z | 2020-11-16T02:20:28.000Z | utils.py | sjenni/DeepBilevel | 9db6c9d81188e891104677a7ffc4b045421fb097 | [
"MIT"
] | null | null | null | utils.py | sjenni/DeepBilevel | 9db6c9d81188e891104677a7ffc4b045421fb097 | [
"MIT"
] | 4 | 2020-02-06T14:54:47.000Z | 2020-10-25T03:03:04.000Z | import tensorflow as tf
from tensorflow.python import pywrap_tensorflow
from tensorflow.python.platform import tf_logging as logging
from tensorflow.python.training import saver as tf_saver
def average_gradients(tower_grads):
"""Calculate the average gradient for each shared variable across all towers.
Note t... | 36.148936 | 84 | 0.673141 | 706 | 5,097 | 4.685552 | 0.290368 | 0.025393 | 0.043531 | 0.00786 | 0.05925 | 0.035671 | 0.018138 | 0 | 0 | 0 | 0 | 0.004223 | 0.256622 | 5,097 | 140 | 85 | 36.407143 | 0.868831 | 0.429468 | 0 | 0.046875 | 0 | 0 | 0.028592 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.109375 | false | 0 | 0.0625 | 0 | 0.28125 | 0.03125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
19fd46480858b4a1d5b5836cc3a46a14d32272f9 | 828 | py | Python | tests/backup_bsps.py | LaudateCorpus1/bsp_tool | e8c2489ac3bda5a4467f1dce220a76bbf4ce5b19 | [
"MIT"
] | null | null | null | tests/backup_bsps.py | LaudateCorpus1/bsp_tool | e8c2489ac3bda5a4467f1dce220a76bbf4ce5b19 | [
"MIT"
] | null | null | null | tests/backup_bsps.py | LaudateCorpus1/bsp_tool | e8c2489ac3bda5a4467f1dce220a76bbf4ce5b19 | [
"MIT"
] | null | null | null | import os
import shutil
import sys
from maplist import installed_games
backup_dir = "F:/bsps"
if len(sys.argv) == 2:
backup_dir = sys.argv[1]
print(f"Making backups in '{backup_dir}'")
i = 0
for base_dir, game_dir in installed_games:
i += 1
print(f"Backing up ({i}/{len(installed_games)}) {game_dir}...")... | 30.666667 | 67 | 0.642512 | 128 | 828 | 3.945313 | 0.40625 | 0.069307 | 0.079208 | 0.083168 | 0.138614 | 0.075248 | 0 | 0 | 0 | 0 | 0 | 0.00625 | 0.227053 | 828 | 26 | 68 | 31.846154 | 0.782813 | 0.043478 | 0 | 0.090909 | 0 | 0 | 0.164557 | 0.035443 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.181818 | 0 | 0.181818 | 0.181818 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
19ff517f6d368213182e5f5031c40842eae17a49 | 1,391 | py | Python | examples/server.py | fhamborg/Giveme5W | b5f49712654ab466e605716b4cd9f8dce9bcdd88 | [
"Apache-2.0"
] | 16 | 2018-03-28T11:20:11.000Z | 2020-09-17T19:39:25.000Z | examples/server.py | fhamborg/Giveme5W | b5f49712654ab466e605716b4cd9f8dce9bcdd88 | [
"Apache-2.0"
] | 3 | 2018-03-15T10:17:29.000Z | 2018-05-16T13:14:28.000Z | examples/server.py | fhamborg/Giveme5W | b5f49712654ab466e605716b4cd9f8dce9bcdd88 | [
"Apache-2.0"
] | 6 | 2018-05-08T12:53:51.000Z | 2021-09-25T03:21:02.000Z | import logging
from flask import Flask, request, jsonify
from extractor.document import Document
from extractor.five_w_extractor import FiveWExtractor
app = Flask(__name__)
log = logging.getLogger(__name__)
host = None
port = 5000
debug = False
options = None
extractor = FiveWExtractor()
ch = logging.StreamHandler()
... | 26.245283 | 82 | 0.675054 | 165 | 1,391 | 5.527273 | 0.381818 | 0.096491 | 0.061404 | 0.041667 | 0.057018 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003537 | 0.186916 | 1,391 | 52 | 83 | 26.75 | 0.802829 | 0 | 0 | 0 | 0 | 0 | 0.179727 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.1 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c202c2c6ef86a127b7a659f1ab70e457fb054b54 | 4,799 | py | Python | dserve/__init__.py | JIC-CSB/dserve | 5f20d9de8ffb52f98ef9c68b327fe1ca9fcee17e | [
"MIT"
] | null | null | null | dserve/__init__.py | JIC-CSB/dserve | 5f20d9de8ffb52f98ef9c68b327fe1ca9fcee17e | [
"MIT"
] | null | null | null | dserve/__init__.py | JIC-CSB/dserve | 5f20d9de8ffb52f98ef9c68b327fe1ca9fcee17e | [
"MIT"
] | null | null | null | """Script for running the dserve server."""
import os
from flask import (
Flask,
jsonify,
send_file,
abort,
request,
)
from flask_cors import CORS, cross_origin
app = Flask(__name__)
cors = CORS(app)
@app.route("/")
@cross_origin()
def root():
content = {
"_links": {
"s... | 25.526596 | 77 | 0.600542 | 503 | 4,799 | 5.497018 | 0.17495 | 0.065099 | 0.03038 | 0.036166 | 0.383725 | 0.237613 | 0.164557 | 0.146474 | 0.146474 | 0.146474 | 0 | 0.00838 | 0.254011 | 4,799 | 187 | 78 | 25.663102 | 0.763966 | 0.00771 | 0 | 0.36129 | 0 | 0 | 0.119008 | 0.022498 | 0 | 0 | 0 | 0 | 0 | 1 | 0.070968 | false | 0 | 0.019355 | 0 | 0.187097 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
c203136ec3038930bc5926aaf959f30e095e46a5 | 1,610 | py | Python | kkutil/security.py | kaka19ace/kkutils | 1ac449488d85ba2c6b18c5dc9cf77a0bc36579b1 | [
"MIT"
] | 1 | 2015-12-13T18:42:52.000Z | 2015-12-13T18:42:52.000Z | kkutil/security.py | kaka19ace/kkutil | 1ac449488d85ba2c6b18c5dc9cf77a0bc36579b1 | [
"MIT"
] | null | null | null | kkutil/security.py | kaka19ace/kkutil | 1ac449488d85ba2c6b18c5dc9cf77a0bc36579b1 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
"""
util regex tool
refs:
http://www.symantec.com/connect/articles/detection-sql-injection-and-cross-site-scripting-attacks
"""
import re
INJECTION_REGEX = re.compile(
r"(%27)|(\')|(\-\-)|(%23)|(#)|" # Regex for detection of SQL meta-characters
r"\w*((%27)|(\... | 35 | 148 | 0.608075 | 234 | 1,610 | 4.076923 | 0.393162 | 0.067086 | 0.089099 | 0.104822 | 0.381551 | 0.339623 | 0.339623 | 0.264151 | 0.264151 | 0.213836 | 0 | 0.036136 | 0.157764 | 1,610 | 45 | 149 | 35.777778 | 0.667404 | 0.390062 | 0 | 0.076923 | 0 | 0.076923 | 0.360996 | 0.266598 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.038462 | 0.038462 | 0.230769 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
c204bfd19101390dbf534e7049d9b49aef3685e3 | 1,520 | py | Python | update_eeprom_rc.py | rkojedzinszky/thermo-sensor | f0b5aa6dbf231b566e00a683c5bb1551569d2463 | [
"BSD-3-Clause"
] | 2 | 2019-04-25T17:38:02.000Z | 2020-03-03T22:50:04.000Z | update_eeprom_rc.py | rkojedzinszky/thermo-sensor | f0b5aa6dbf231b566e00a683c5bb1551569d2463 | [
"BSD-3-Clause"
] | null | null | null | update_eeprom_rc.py | rkojedzinszky/thermo-sensor | f0b5aa6dbf231b566e00a683c5bb1551569d2463 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python
REGISTERS = {
'IOCFG2': 0x00,
'IOCFG1': 0x01,
'IOCFG0': 0x02,
'FIFOTHR': 0x03,
'SYNC1': 0x04,
'SYNC0': 0x05,
'PKTLEN': 0x06,
'PKTCTRL1': 0x07,
'PKTCTRL0': 0x08,
'ADDR': 0x09,
'CHANNR': 0x0A,
'FSCTRL1': 0x0B,
'FSCTRL0': 0x0C,
'FREQ2': 0x0D,
... | 20.540541 | 72 | 0.484211 | 170 | 1,520 | 4.282353 | 0.829412 | 0.028846 | 0.027473 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.165377 | 0.319737 | 1,520 | 73 | 73 | 20.821918 | 0.538685 | 0.013158 | 0 | 0.030769 | 0 | 0.015385 | 0.247498 | 0.02535 | 0 | 0 | 0.128085 | 0 | 0 | 1 | 0 | false | 0 | 0.030769 | 0 | 0.030769 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
c2065e5fc7e61fdabd4ab6fd12c1ead2ad9d477a | 78,713 | py | Python | htdeblur/acquisition/motion.py | zfphil/htdeblur | ac557284f9913292721a6b9f943ff9b921043978 | [
"BSD-3-Clause"
] | 2 | 2020-01-16T18:30:55.000Z | 2020-02-06T08:33:51.000Z | htdeblur/acquisition/motion.py | zfphil/htdeblur | ac557284f9913292721a6b9f943ff9b921043978 | [
"BSD-3-Clause"
] | null | null | null | htdeblur/acquisition/motion.py | zfphil/htdeblur | ac557284f9913292721a6b9f943ff9b921043978 | [
"BSD-3-Clause"
] | null | null | null | # Copyright 2017 Regents of the University of California
#
# Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
#
# 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the follow... | 54.284828 | 757 | 0.612656 | 9,155 | 78,713 | 4.967013 | 0.085745 | 0.088272 | 0.0687 | 0.078904 | 0.65905 | 0.598135 | 0.524905 | 0.469795 | 0.426869 | 0.386625 | 0 | 0.012827 | 0.305693 | 78,713 | 1,449 | 758 | 54.322291 | 0.819235 | 0.151385 | 0 | 0.417735 | 0 | 0.005342 | 0.094554 | 0.003625 | 0 | 0 | 0 | 0.00069 | 0.025641 | 1 | 0.013889 | false | 0 | 0.012821 | 0 | 0.035256 | 0.017094 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
c2094cbd00b0292a602f2ea788a9486c162b5e7e | 2,053 | py | Python | leetcode/weekly150/last_substring.py | jan25/code_sorted | f405fd0898f72eb3d5428f9e10aefb4a009d5089 | [
"Unlicense"
] | 2 | 2018-01-18T11:01:36.000Z | 2021-12-20T18:14:48.000Z | leetcode/weekly150/last_substring.py | jan25/code_sorted | f405fd0898f72eb3d5428f9e10aefb4a009d5089 | [
"Unlicense"
] | null | null | null | leetcode/weekly150/last_substring.py | jan25/code_sorted | f405fd0898f72eb3d5428f9e10aefb4a009d5089 | [
"Unlicense"
] | null | null | null | '''
https://leetcode.com/contest/weekly-contest-150/problems/last-substring-in-lexicographical-order/
SA algorithm mostly copied from https://cp-algorithms.com/string/suffix-array.html
Status: tle. probably py3 lists
'''
class SuffixArray:
def __init__(self, s):
self.s = s
self.n = len(s)
... | 31.584615 | 97 | 0.431076 | 313 | 2,053 | 2.814696 | 0.188498 | 0.085131 | 0.040863 | 0.056754 | 0.292849 | 0.162316 | 0 | 0 | 0 | 0 | 0 | 0.037187 | 0.397467 | 2,053 | 64 | 98 | 32.078125 | 0.67502 | 0.103751 | 0 | 0.037037 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074074 | false | 0 | 0 | 0 | 0.148148 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
c20c7d9e299f07af3208c0a8aedd483571769bbb | 18,555 | py | Python | schemagen/schemagen.py | GoZaddy/SchemaGen | c8374382f6b52ad3cec398c77fd5bc90fe891818 | [
"MIT"
] | 3 | 2021-03-26T22:51:41.000Z | 2021-03-27T15:17:24.000Z | schemagen/schemagen.py | GoZaddy/SchemaGen | c8374382f6b52ad3cec398c77fd5bc90fe891818 | [
"MIT"
] | null | null | null | schemagen/schemagen.py | GoZaddy/SchemaGen | c8374382f6b52ad3cec398c77fd5bc90fe891818 | [
"MIT"
] | null | null | null | from antlr4 import *
from .antlr import GraphQLLexer, GraphQLListener, GraphQLParser
from .codegen import CodegenTool, Class, String, ClassInstance, IfElse, If, Method, Expr, Variable
import re
from math import floor
from datetime import datetime
from .utils import strip_string_quotes, camel_case_to_snake_case, process... | 46.156716 | 136 | 0.492643 | 1,654 | 18,555 | 5.261185 | 0.136638 | 0.019306 | 0.019421 | 0.025396 | 0.495059 | 0.456332 | 0.425075 | 0.390715 | 0.347276 | 0.333142 | 0 | 0.001883 | 0.427648 | 18,555 | 401 | 137 | 46.27182 | 0.817514 | 0.05896 | 0 | 0.386207 | 0 | 0 | 0.045045 | 0.004884 | 0 | 0 | 0 | 0 | 0 | 1 | 0.013793 | false | 0.013793 | 0.031034 | 0 | 0.048276 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c20cac9dd66122173bfd30ba53957fea5bb5307b | 2,231 | py | Python | app/api/views.py | rickywang432/flask | c956dee6c7dfbb57a5fcd247d23af37e20b96da7 | [
"MIT"
] | null | null | null | app/api/views.py | rickywang432/flask | c956dee6c7dfbb57a5fcd247d23af37e20b96da7 | [
"MIT"
] | 1 | 2021-06-02T02:01:38.000Z | 2021-06-02T02:01:38.000Z | app/api/views.py | rickywang432/flask | c956dee6c7dfbb57a5fcd247d23af37e20b96da7 | [
"MIT"
] | null | null | null | from flask import Flask, request, jsonify,Blueprint
from flask_marshmallow import Marshmallow
from app.models import User, Group, Role
from app import ma
api = Blueprint('api', __name__)
class UserSchema(ma.Schema):
class Meta:
# Fields to expose
fields = ('id', 'confirmed','first_name','last_nam... | 26.247059 | 80 | 0.685791 | 311 | 2,231 | 4.787781 | 0.170418 | 0.042982 | 0.069846 | 0.034251 | 0.443922 | 0.304231 | 0.28274 | 0.173271 | 0.173271 | 0.173271 | 0 | 0 | 0.160466 | 2,231 | 85 | 81 | 26.247059 | 0.794981 | 0.069027 | 0 | 0.210526 | 0 | 0 | 0.099469 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.140351 | false | 0 | 0.070175 | 0 | 0.491228 | 0.035088 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
c20d8ed82808f42c1ce9f7452c5668af8015a2b5 | 2,335 | py | Python | setup.py | maljovec/samply | 9364c2f671c02cb7bab484c0e856a0a0ca6ecc40 | [
"BSD-3-Clause"
] | null | null | null | setup.py | maljovec/samply | 9364c2f671c02cb7bab484c0e856a0a0ca6ecc40 | [
"BSD-3-Clause"
] | 2 | 2019-02-21T00:28:36.000Z | 2019-11-09T04:35:39.000Z | setup.py | maljovec/samplers | 9364c2f671c02cb7bab484c0e856a0a0ca6ecc40 | [
"BSD-3-Clause"
] | null | null | null | """
Setup script for samply
"""
from setuptools import setup
import re
extra_args = {}
def get_property(prop, project):
"""
Helper function for retrieving properties from a project's
__init__.py file
@In, prop, string representing the property to be retrieved
@In, project, ... | 29.935897 | 77 | 0.615418 | 252 | 2,335 | 5.587302 | 0.547619 | 0.06392 | 0.02983 | 0.02983 | 0.096591 | 0.096591 | 0 | 0 | 0 | 0 | 0 | 0.006282 | 0.250107 | 2,335 | 77 | 78 | 30.324675 | 0.79783 | 0.233833 | 0 | 0 | 0 | 0 | 0.360259 | 0.025354 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0 | 0.04 | 0 | 0.12 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c20db92c5e61a54ef4ff2401b5df9360bca3d9b1 | 4,353 | py | Python | 数据结构实践课/实验3/文本格式化.py | TD21forever/hdu-term-project-helper | f42f553efd1d7b59162d3fc793ac14ae30850efd | [
"Apache-2.0"
] | 17 | 2021-01-09T06:49:09.000Z | 2022-02-23T01:36:20.000Z | 数据结构实践课/实验3/文本格式化.py | TD21forever/hdu-term-project-helper | f42f553efd1d7b59162d3fc793ac14ae30850efd | [
"Apache-2.0"
] | null | null | null | 数据结构实践课/实验3/文本格式化.py | TD21forever/hdu-term-project-helper | f42f553efd1d7b59162d3fc793ac14ae30850efd | [
"Apache-2.0"
] | 1 | 2021-06-22T12:56:16.000Z | 2021-06-22T12:56:16.000Z | # -*- coding: utf-8 -*-
# @Author: TD21forever
# @Date: 2018-11-14 15:41:57
# @Last Modified by: TD21forever
# @Last Modified time: 2018-11-15 16:50:48
file = open('input.txt','r')#读取文件
#预处理 传入字符串
def preprocess(article):
article = article.strip()
article = article.replace(",", ", ")
article... | 34.824 | 107 | 0.464278 | 495 | 4,353 | 3.951515 | 0.260606 | 0.0409 | 0.05317 | 0.033742 | 0.4182 | 0.398773 | 0.397239 | 0.397239 | 0.385992 | 0.385992 | 0 | 0.032756 | 0.389846 | 4,353 | 124 | 108 | 35.104839 | 0.70369 | 0.087296 | 0 | 0.478723 | 0 | 0.010638 | 0.080671 | 0.037454 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021277 | false | 0 | 0 | 0 | 0.031915 | 0.202128 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
c213c3cc512fab07ba3d806bd3d3286525745450 | 389 | py | Python | crawler/robo_proxy.py | xliangwu/com.caveup.machine_learn | 793131c4767f45d468a813752c07d02f623a7b99 | [
"Apache-2.0"
] | 1 | 2018-09-19T06:27:14.000Z | 2018-09-19T06:27:14.000Z | crawler/robo_proxy.py | xliangwu/com.caveup.machine_learn | 793131c4767f45d468a813752c07d02f623a7b99 | [
"Apache-2.0"
] | null | null | null | crawler/robo_proxy.py | xliangwu/com.caveup.machine_learn | 793131c4767f45d468a813752c07d02f623a7b99 | [
"Apache-2.0"
] | null | null | null | import requests
def pages_crawler():
http_header = {
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36',
}
url = r'https://robo.datayes.com/v2/indicator_library'
response = requests.get(url, headers=http_header)
p... | 24.3125 | 135 | 0.676093 | 55 | 389 | 4.545455 | 0.8 | 0.096 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.087774 | 0.179949 | 389 | 15 | 136 | 25.933333 | 0.695925 | 0 | 0 | 0 | 0 | 0.1 | 0.44473 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.1 | 0 | 0.2 | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c2145a28b8098d26c67f49818369dff92c2ac06b | 11,662 | py | Python | apiosintDS/apiosintDS.py | davidonzo/apiosintDS | b5bb1c42e1a3d984a69e8794a4c5da6969dcd917 | [
"MIT"
] | 13 | 2019-10-15T06:54:49.000Z | 2022-03-28T23:23:29.000Z | apiosintDS/apiosintDS.py | davidonzo/apiosintDS | b5bb1c42e1a3d984a69e8794a4c5da6969dcd917 | [
"MIT"
] | 1 | 2019-11-12T15:00:53.000Z | 2019-11-14T09:37:46.000Z | apiosintDS/apiosintDS.py | davidonzo/apiosintDS | b5bb1c42e1a3d984a69e8794a4c5da6969dcd917 | [
"MIT"
] | 4 | 2019-12-05T05:34:07.000Z | 2022-03-24T09:59:26.000Z | import sys
import logging
import pytz
logging.basicConfig(format='%(levelname)s: %(message)s')
if (sys.version_info < (3, 0)):#NO MORE PYTHON 2!!! https://pythonclock.org/
logging.error(" ########################### ERROR ###########################")
logging.error(" ============================================... | 51.149123 | 428 | 0.607271 | 1,384 | 11,662 | 5.091763 | 0.257948 | 0.052788 | 0.021711 | 0.023414 | 0.361288 | 0.315453 | 0.270044 | 0.231304 | 0.191571 | 0.147013 | 0 | 0.008854 | 0.234865 | 11,662 | 227 | 429 | 51.374449 | 0.780903 | 0.003773 | 0 | 0.334884 | 0 | 0.046512 | 0.382371 | 0.036068 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037209 | false | 0 | 0.069767 | 0 | 0.139535 | 0.009302 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
c2160b83bdfd16bb5fd59f1cfbfcbb7c7d36395f | 3,327 | py | Python | 5-3_stock inventory.py | hkrsmk/python | 1ee1b0adc911b62af3911428f441c6c59e1b345f | [
"Unlicense"
] | null | null | null | 5-3_stock inventory.py | hkrsmk/python | 1ee1b0adc911b62af3911428f441c6c59e1b345f | [
"Unlicense"
] | null | null | null | 5-3_stock inventory.py | hkrsmk/python | 1ee1b0adc911b62af3911428f441c6c59e1b345f | [
"Unlicense"
] | null | null | null | #Stock inventory control system.
def menu():
print("""1. Add New Stock
2. Update existing stock
3. Sell stock, even though 2 will work too
8. Display Inventory
9. Exit""")
while True:
try:
choice = int(input("Please select an option"))
break
except:
... | 30.522936 | 87 | 0.479411 | 346 | 3,327 | 4.595376 | 0.369942 | 0.034591 | 0.022642 | 0.043396 | 0.042767 | 0.042767 | 0.042767 | 0.042767 | 0.042767 | 0 | 0 | 0.014739 | 0.327021 | 3,327 | 108 | 88 | 30.805556 | 0.6954 | 0.245867 | 0 | 0.283784 | 0 | 0 | 0.229412 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.054054 | false | 0 | 0 | 0 | 0.067568 | 0.216216 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
c21a8492971d5deb4f24b54f0d01b958dad6c817 | 1,780 | py | Python | 2017/day23.py | andypymont/adventofcode | 912aa48fc5b31ec9202fb9654380991fc62afcd1 | [
"MIT"
] | null | null | null | 2017/day23.py | andypymont/adventofcode | 912aa48fc5b31ec9202fb9654380991fc62afcd1 | [
"MIT"
] | null | null | null | 2017/day23.py | andypymont/adventofcode | 912aa48fc5b31ec9202fb9654380991fc62afcd1 | [
"MIT"
] | null | null | null | """
2017 Day 23
https://adventofcode.com/2017/day/23
"""
from typing import Dict
import aocd # type: ignore
class Program:
def __init__(self, text: str):
self.registers: Dict[str, int] = {}
self.commands = text.split("\n")
self.position = 0
self.mul_count = 0
def get(self, k... | 25.797101 | 75 | 0.561798 | 236 | 1,780 | 4.152542 | 0.347458 | 0.035714 | 0.078571 | 0.061224 | 0.146939 | 0.146939 | 0.146939 | 0.133673 | 0.085714 | 0.085714 | 0 | 0.044444 | 0.292135 | 1,780 | 68 | 76 | 26.176471 | 0.733333 | 0.072472 | 0 | 0 | 0 | 0 | 0.04484 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.155556 | false | 0 | 0.044444 | 0.022222 | 0.333333 | 0.044444 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
c21ace7559f52cf54fe988e11522102469f04048 | 1,641 | py | Python | src/simulator/wsn/test.py | liuliuliu0605/Federated-Learning-PyTorch | 04169455917ae50a8fea2dabd756a0ca1774e5d5 | [
"MIT"
] | null | null | null | src/simulator/wsn/test.py | liuliuliu0605/Federated-Learning-PyTorch | 04169455917ae50a8fea2dabd756a0ca1774e5d5 | [
"MIT"
] | null | null | null | src/simulator/wsn/test.py | liuliuliu0605/Federated-Learning-PyTorch | 04169455917ae50a8fea2dabd756a0ca1774e5d5 | [
"MIT"
] | null | null | null | import sys
from sklearn.datasets import make_blobs
from src.simulator.wsn.network import Network
from src.simulator.wsn.utils import *
from src.simulator.wsn.fcm import *
from src.simulator.wsn.direct_communication import *
from src.utils import complete, star
seed = 1
np.random.seed(seed )
logging.basic... | 32.176471 | 80 | 0.672151 | 215 | 1,641 | 4.953488 | 0.44186 | 0.032864 | 0.060094 | 0.071362 | 0.114554 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028636 | 0.191347 | 1,641 | 51 | 81 | 32.176471 | 0.773926 | 0.197441 | 0 | 0.0625 | 0 | 0 | 0.055688 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.21875 | 0 | 0.21875 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c21c3b472b61858775a3801d8a7ee0aff0f5536a | 4,149 | py | Python | src/dewloosh/geom/cell.py | dewloosh/dewloosh-geom | 5c97fbab4b68f4748bf4309184b9e0e877f94cd6 | [
"MIT"
] | 2 | 2021-12-11T17:25:51.000Z | 2022-01-06T15:36:27.000Z | src/dewloosh/geom/cell.py | dewloosh/dewloosh-geom | 5c97fbab4b68f4748bf4309184b9e0e877f94cd6 | [
"MIT"
] | null | null | null | src/dewloosh/geom/cell.py | dewloosh/dewloosh-geom | 5c97fbab4b68f4748bf4309184b9e0e877f94cd6 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
try:
from collections.abc import Iterable
except ImportError:
from collections import Iterable
import numpy as np
from numpy import ndarray
from dewloosh.math.array import atleast1d
from dewloosh.math.utils import to_range
from .celldata import CellData
from .utils import jacobian_mat... | 33.192 | 89 | 0.577489 | 499 | 4,149 | 4.651303 | 0.248497 | 0.034468 | 0.039207 | 0.025851 | 0.19776 | 0.18785 | 0.167169 | 0.167169 | 0.167169 | 0.101249 | 0 | 0.008678 | 0.305616 | 4,149 | 125 | 90 | 33.192 | 0.796946 | 0.065317 | 0 | 0.172414 | 0 | 0 | 0.021194 | 0 | 0 | 0 | 0 | 0 | 0.022989 | 1 | 0.114943 | false | 0 | 0.103448 | 0.022989 | 0.413793 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c22246e42a11a496e2843439e4ad4abd332a1d57 | 968 | py | Python | softlearning/environments/mujoco_safety_gym/envs/fetch/slide.py | anyboby/mbpo | 98b75cb4cb13a2640fce1fbe1ddef466b864342e | [
"MIT"
] | 5 | 2020-02-12T17:09:09.000Z | 2021-09-29T16:06:40.000Z | softlearning/environments/mujoco_safety_gym/envs/fetch/slide.py | anyboby/mbpo | 98b75cb4cb13a2640fce1fbe1ddef466b864342e | [
"MIT"
] | 10 | 2020-08-31T02:50:02.000Z | 2022-02-09T23:36:43.000Z | softlearning/environments/mujoco_safety_gym/envs/fetch/slide.py | anyboby/mbpo | 98b75cb4cb13a2640fce1fbe1ddef466b864342e | [
"MIT"
] | 2 | 2022-03-15T01:45:26.000Z | 2022-03-15T06:46:47.000Z | import os
import numpy as np
from gym import utils
from mujoco_safety_gym.envs import fetch_env
# Ensure we get the path separator correct on windows
MODEL_XML_PATH = os.path.join('fetch', 'slide.xml')
class FetchSlideEnv(fetch_env.FetchEnvNew, utils.EzPickle):
def __init__(self, reward_type='sparse'):
... | 37.230769 | 105 | 0.66219 | 143 | 968 | 4.188811 | 0.538462 | 0.020033 | 0.015025 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.059367 | 0.216942 | 968 | 25 | 106 | 38.72 | 0.730871 | 0.052686 | 0 | 0 | 0 | 0 | 0.078689 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.210526 | 0 | 0.315789 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
c224e7c1cff16812960fb4cd9afab8ab99e06afc | 2,227 | py | Python | index_to_csv.py | grenzi/photoindexer | d10b3b6f347168706dc9c2673a29102fd73f31e1 | [
"Apache-2.0"
] | null | null | null | index_to_csv.py | grenzi/photoindexer | d10b3b6f347168706dc9c2673a29102fd73f31e1 | [
"Apache-2.0"
] | null | null | null | index_to_csv.py | grenzi/photoindexer | d10b3b6f347168706dc9c2673a29102fd73f31e1 | [
"Apache-2.0"
] | null | null | null | import os
import json
from enum import Enum
from datetime import datetime,date
import logging
import pathlib
from tqdm import tqdm
from datastructures import Volume, IndexedFile,load_index_if_exists, save_index
from os import listdir
from os.path import isfile, join
import itertools
import csv
logger = lo... | 35.349206 | 122 | 0.58599 | 273 | 2,227 | 4.684982 | 0.373626 | 0.023456 | 0.031274 | 0.039875 | 0.195465 | 0.195465 | 0.1595 | 0.1595 | 0.1595 | 0.1595 | 0 | 0.00802 | 0.272115 | 2,227 | 63 | 123 | 35.349206 | 0.780999 | 0.024248 | 0 | 0.150943 | 0 | 0 | 0.10197 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.226415 | 0 | 0.226415 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
c2253045dcaa56a5991a62320574be6662b1c519 | 1,056 | py | Python | tests/test_wrapper.py | waysup/Jike-Metro | b8ead80dddd5d695784c5587edfd8df87c55a4e6 | [
"MIT"
] | 193 | 2018-04-04T02:27:51.000Z | 2022-03-14T03:26:44.000Z | tests/test_wrapper.py | BeiFenKu/Jike-Metro | e97fd0a751dca28a39d0e9fb94fbd696d5ee07b3 | [
"MIT"
] | 16 | 2018-04-04T05:58:15.000Z | 2021-01-08T02:56:57.000Z | tests/test_wrapper.py | BeiFenKu/Jike-Metro | e97fd0a751dca28a39d0e9fb94fbd696d5ee07b3 | [
"MIT"
] | 24 | 2018-04-06T09:34:58.000Z | 2021-03-02T02:10:07.000Z | import unittest
from collections import namedtuple
from jike.objects.wrapper import *
class TestWrapper(unittest.TestCase):
def setUp(self):
self.Test = namedtuple('Test', ['id', 'content', 'other', 'none'])
def test_repr_namedtuple(self):
self.Test.__repr__ = repr_namedtuple
test = s... | 34.064516 | 83 | 0.61553 | 132 | 1,056 | 4.719697 | 0.234848 | 0.089888 | 0.067416 | 0.11236 | 0.41252 | 0.41252 | 0.279294 | 0.279294 | 0.199037 | 0.199037 | 0 | 0 | 0.202652 | 1,056 | 30 | 84 | 35.2 | 0.739905 | 0 | 0 | 0.086957 | 0 | 0 | 0.135417 | 0 | 0 | 0 | 0 | 0 | 0.26087 | 1 | 0.173913 | false | 0 | 0.130435 | 0 | 0.347826 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
c225d7cd38555d8a71f34fd96c413aa41e8e84be | 10,125 | py | Python | storm_control/hal4000/illumination/illuminationChannelUI.py | shiwei23/STORM6 | 669067503ebd164b575ce529fcc4a9a3f576b3d7 | [
"MIT"
] | 47 | 2015-02-11T16:05:54.000Z | 2022-03-26T14:13:12.000Z | storm_control/hal4000/illumination/illuminationChannelUI.py | shiwei23/STORM6 | 669067503ebd164b575ce529fcc4a9a3f576b3d7 | [
"MIT"
] | 110 | 2015-01-30T03:53:41.000Z | 2021-11-03T15:58:44.000Z | storm_control/hal4000/illumination/illuminationChannelUI.py | shiwei23/STORM6 | 669067503ebd164b575ce529fcc4a9a3f576b3d7 | [
"MIT"
] | 61 | 2015-01-09T18:31:27.000Z | 2021-12-21T13:07:51.000Z | #!/usr/bin/env python
"""
The various ChannelUI classes.
Hazen 04/17
"""
import os
from PyQt5 import QtCore, QtWidgets
def loadStyleSheet(name):
text = ""
with open(os.path.join(os.path.dirname(__file__), name)) as fp:
text += fp.read()
return text
class ChannelUI(QtWidgets.QFrame):
"... | 32.041139 | 100 | 0.645136 | 1,189 | 10,125 | 5.381833 | 0.280067 | 0.03985 | 0.018284 | 0.028129 | 0.231755 | 0.15268 | 0.115799 | 0.060947 | 0.015627 | 0.015627 | 0 | 0.007661 | 0.265185 | 10,125 | 315 | 101 | 32.142857 | 0.852419 | 0.240494 | 0 | 0.263804 | 0 | 0 | 0.009503 | 0 | 0 | 0 | 0 | 0.006349 | 0 | 1 | 0.184049 | false | 0.01227 | 0.01227 | 0.018405 | 0.269939 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
c22ad6cee4570624757675e6c7ad19a18a8249f2 | 5,028 | py | Python | DataProcess/ultimate_subimage.py | EmmaAlexander/possum-tools | 051ebca682cd97b68fa2a89c9d67e99cf85b09c7 | [
"MIT"
] | 5 | 2021-11-18T13:27:30.000Z | 2021-12-05T00:15:33.000Z | DataProcess/ultimate_subimage.py | EmmaAlexander/possum-tools | 051ebca682cd97b68fa2a89c9d67e99cf85b09c7 | [
"MIT"
] | null | null | null | DataProcess/ultimate_subimage.py | EmmaAlexander/possum-tools | 051ebca682cd97b68fa2a89c9d67e99cf85b09c7 | [
"MIT"
] | null | null | null | #CASA script to create cutouts of fits cubes
directoryA = '/Volumes/TARDIS/Work/askap/'
directoryB = '/Volumes/NARNIA/pilot_cutouts/'
import numpy as np
sources=np.loadtxt('/Users/emma/GitHub/possum-tools/DataProcess/pilot_sources.txt',dtype='str')
for i in range(0,sources.shape[0]):
objectname=sources[i,0]
POSSUM... | 57.136364 | 134 | 0.793755 | 715 | 5,028 | 5.366434 | 0.160839 | 0.08809 | 0.054209 | 0.084702 | 0.711754 | 0.660933 | 0.632786 | 0.557988 | 0.557988 | 0.489445 | 0 | 0.020131 | 0.061456 | 5,028 | 87 | 135 | 57.793103 | 0.792965 | 0.022076 | 0 | 0.279412 | 0 | 0.088235 | 0.36321 | 0.243023 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.014706 | 0 | 0.014706 | 0.029412 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c2306615617cec84564c5dcb8ee8a144809be27e | 1,640 | py | Python | openhab2/scripts/readNilan.py | starze/openhab2 | e4eeeecd829cdf286372067bd61561e63fed6e1a | [
"MIT"
] | 10 | 2017-04-04T08:28:54.000Z | 2021-02-24T04:36:07.000Z | openhab2/scripts/readNilan.py | starze/openhab2 | e4eeeecd829cdf286372067bd61561e63fed6e1a | [
"MIT"
] | 2 | 2017-04-18T13:33:12.000Z | 2018-06-05T21:27:18.000Z | openhab2/scripts/readNilan.py | starze/openhab2 | e4eeeecd829cdf286372067bd61561e63fed6e1a | [
"MIT"
] | 7 | 2017-04-17T18:02:19.000Z | 2020-09-25T21:28:08.000Z | #!/usr/bin/env python3
# -*- coding: ISO-8859-1 -*-
# https://github.com/starze/openhab2
# https://github.com/roggmaeh/nilan-openhab
import minimalmodbus
import serial
import os, sys
import csv
import httplib2
minimalmodbus.CLOSE_PORT_AFTER_EACH_CALL = True
instrument = minimalmodbus.Instrument('/dev/ttyUSB0', 30, m... | 34.166667 | 109 | 0.675 | 220 | 1,640 | 4.995455 | 0.468182 | 0.087352 | 0.054595 | 0.050955 | 0.243858 | 0.216561 | 0.216561 | 0.216561 | 0.11283 | 0.11283 | 0 | 0.02695 | 0.140244 | 1,640 | 47 | 110 | 34.893617 | 0.751773 | 0.121951 | 0 | 0.114286 | 0 | 0 | 0.171788 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0.057143 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
c230b7732d9a3dd108e45e13abd94ad053baac7e | 2,316 | py | Python | face_signin/prepare_training.py | sribs/FaceRecognition | 68284173195d55f32a353fe3d78a53c25fbf1363 | [
"Apache-2.0"
] | null | null | null | face_signin/prepare_training.py | sribs/FaceRecognition | 68284173195d55f32a353fe3d78a53c25fbf1363 | [
"Apache-2.0"
] | null | null | null | face_signin/prepare_training.py | sribs/FaceRecognition | 68284173195d55f32a353fe3d78a53c25fbf1363 | [
"Apache-2.0"
] | null | null | null | import cv2
import numpy as np
import os
def prepare_training_data(data_folder_path):
#------STEP-1--------
#get the directories (one directory for each subject) in data folder
dirs = sorted(os.listdir(data_folder_path))
#print(dirs)
faces = []
labels = []
for label,coun... | 31.297297 | 85 | 0.593264 | 300 | 2,316 | 4.493333 | 0.466667 | 0.029674 | 0.031157 | 0.023739 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01518 | 0.317358 | 2,316 | 73 | 86 | 31.726027 | 0.837445 | 0.346287 | 0 | 0.0625 | 0 | 0 | 0.047989 | 0.027523 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.09375 | 0 | 0.25 | 0.03125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
c2318081600b41f253e54a78d1001f4ddb857e30 | 15,873 | py | Python | fisspy/analysis/tdmap.py | SNU-sunday/FISS-PYTHON | f79420debef476a904356d42542cb6472990bb2f | [
"BSD-2-Clause"
] | 3 | 2017-02-18T06:42:08.000Z | 2021-01-05T04:15:08.000Z | fisspy/analysis/tdmap.py | SNU-sunday/fisspy | f79420debef476a904356d42542cb6472990bb2f | [
"BSD-2-Clause"
] | 1 | 2019-06-30T10:35:27.000Z | 2019-06-30T10:35:27.000Z | fisspy/analysis/tdmap.py | SNU-sunday/FISS-PYTHON | f79420debef476a904356d42542cb6472990bb2f | [
"BSD-2-Clause"
] | 1 | 2017-02-23T05:24:13.000Z | 2017-02-23T05:24:13.000Z | from __future__ import absolute_import, division
import numpy as np
import matplotlib.pyplot as plt
from matplotlib import gridspec
from fisspy.analysis.filter import FourierFilter
from interpolation.splines import LinearSpline
from matplotlib.animation import FuncAnimation
import astropy.units as u
from astropy.time i... | 41.015504 | 86 | 0.449001 | 1,830 | 15,873 | 3.830601 | 0.156284 | 0.039372 | 0.019971 | 0.024964 | 0.396576 | 0.305278 | 0.246648 | 0.234665 | 0.203138 | 0.160057 | 0 | 0.02394 | 0.4158 | 15,873 | 387 | 87 | 41.015504 | 0.732018 | 0.033705 | 0 | 0.197605 | 0 | 0 | 0.031363 | 0.001443 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02994 | false | 0.002994 | 0.026946 | 0 | 0.062874 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
c232029579d8b288e2ac9ed43b03f0690df1e9c2 | 1,317 | py | Python | polaris/polaris/sep24/tzinfo.py | yuriescl/django-polaris | 8806d0e4e8baaddbffbceb3609786d2436b8abe1 | [
"Apache-2.0"
] | 81 | 2019-11-16T21:47:22.000Z | 2022-02-17T07:35:02.000Z | polaris/polaris/sep24/tzinfo.py | yuriescl/django-polaris | 8806d0e4e8baaddbffbceb3609786d2436b8abe1 | [
"Apache-2.0"
] | 491 | 2019-11-10T23:44:30.000Z | 2022-03-20T00:25:02.000Z | polaris/polaris/sep24/tzinfo.py | yuriescl/django-polaris | 8806d0e4e8baaddbffbceb3609786d2436b8abe1 | [
"Apache-2.0"
] | 89 | 2019-11-18T21:31:01.000Z | 2022-03-28T13:47:41.000Z | import pytz
from datetime import datetime, timedelta, timezone
from rest_framework.decorators import api_view, parser_classes, renderer_classes
from rest_framework.parsers import JSONParser
from rest_framework.renderers import JSONRenderer
from rest_framework.request import Request
from rest_framework.response import ... | 34.657895 | 87 | 0.741838 | 161 | 1,317 | 5.913043 | 0.447205 | 0.042017 | 0.089286 | 0.052521 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.161731 | 1,317 | 37 | 88 | 35.594595 | 0.862319 | 0 | 0 | 0 | 0 | 0 | 0.094913 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032258 | false | 0 | 0.290323 | 0 | 0.419355 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
c2321c74ae596a68d5084730c6df5fe1a40a8090 | 1,615 | py | Python | utils/fundoptutils.py | joshualee155/FundOptimizer | da842de6c99f89c767d03c9ef1b392237b726a3f | [
"MIT"
] | 2 | 2021-01-03T00:46:51.000Z | 2021-09-01T02:48:51.000Z | utils/fundoptutils.py | joshualee155/FundOptimizer | da842de6c99f89c767d03c9ef1b392237b726a3f | [
"MIT"
] | null | null | null | utils/fundoptutils.py | joshualee155/FundOptimizer | da842de6c99f89c767d03c9ef1b392237b726a3f | [
"MIT"
] | 1 | 2021-08-28T11:04:00.000Z | 2021-08-28T11:04:00.000Z | import pandas as pd
import datetime as dt
class FundType( object ):
OF = 'Open Ended Fund'
ETF = 'Exchange Traded Fund'
LOF = 'Listed Open Ended Fund'
MMF = 'Money Market Fund'
def getFundType( fundCode ):
fundTypeDf = pd.read_csv( 'refData/fund_list.csv', names = [ 'fundCode', 'fundType... | 30.471698 | 102 | 0.596285 | 187 | 1,615 | 5.128342 | 0.470588 | 0.072993 | 0.027112 | 0.054223 | 0.070907 | 0.070907 | 0.070907 | 0.070907 | 0 | 0 | 0 | 0.002575 | 0.278638 | 1,615 | 52 | 103 | 31.057692 | 0.820601 | 0.074303 | 0 | 0.108108 | 0 | 0 | 0.149692 | 0.014354 | 0 | 0 | 0 | 0 | 0 | 1 | 0.081081 | false | 0 | 0.054054 | 0 | 0.459459 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
c234a2bf9d847b0178d0e12fe82918d472e89c91 | 2,014 | py | Python | plotter.py | keshavbantu/covclass | e27cfb4ff8e7e6f076c3429aa1c4696e173bc3a4 | [
"MIT"
] | null | null | null | plotter.py | keshavbantu/covclass | e27cfb4ff8e7e6f076c3429aa1c4696e173bc3a4 | [
"MIT"
] | null | null | null | plotter.py | keshavbantu/covclass | e27cfb4ff8e7e6f076c3429aa1c4696e173bc3a4 | [
"MIT"
] | null | null | null | import cleaner as dataStream
import plotly.graph_objects as go
import plotly.io as pio
#DONUT PLOT - CONDITIONS -----------------------------------------
labels = ['Diabetes','Hypertension','Coronary Heart(D)','Chronic Kidney(D)','No Conditions','Obstructive Pulmonary(D)']
values = dataStream.PIEList
fig_cond = go.Fi... | 38 | 124 | 0.627607 | 306 | 2,014 | 4.058824 | 0.326797 | 0.032206 | 0.043478 | 0.101449 | 0.326087 | 0.280193 | 0.206119 | 0.146538 | 0.146538 | 0.146538 | 0 | 0.071057 | 0.140516 | 2,014 | 53 | 125 | 38 | 0.646447 | 0.120159 | 0 | 0.243902 | 0 | 0 | 0.302207 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.073171 | 0 | 0.073171 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
c239846032333fb5d26b1c1eb5b5c8a5cf233d15 | 2,219 | py | Python | Music/__init__.py | izazkhan8293/Musicheu | 9cd33a71868b8b850d6fd78eaac05dda0713b7cc | [
"Apache-2.0"
] | null | null | null | Music/__init__.py | izazkhan8293/Musicheu | 9cd33a71868b8b850d6fd78eaac05dda0713b7cc | [
"Apache-2.0"
] | null | null | null | Music/__init__.py | izazkhan8293/Musicheu | 9cd33a71868b8b850d6fd78eaac05dda0713b7cc | [
"Apache-2.0"
] | null | null | null | from pyrogram import Client
import asyncio
from Music.config import API_ID, API_HASH, BOT_TOKEN, MONGO_DB_URI, SUDO_USERS
from motor.motor_asyncio import AsyncIOMotorClient as MongoClient
import time
import uvloop
from Music import config
import importlib
from pyrogram import Client as Bot
from Music.config import API_... | 28.448718 | 102 | 0.708878 | 302 | 2,219 | 4.986755 | 0.268212 | 0.055777 | 0.035857 | 0.047809 | 0.2417 | 0.183267 | 0.169987 | 0.169987 | 0.169987 | 0.169987 | 0 | 0.005637 | 0.200541 | 2,219 | 77 | 103 | 28.818182 | 0.843292 | 0 | 0 | 0.106667 | 0 | 0 | 0.036503 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.026667 | false | 0 | 0.186667 | 0 | 0.213333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
c23a870064fefb4e740984ad848e886ea4aa0cd9 | 9,372 | py | Python | test.py | ZJianjin/Traffic4cast2020_lds | 6cb76e885a9539e485c055222be77f41a559c507 | [
"Apache-2.0"
] | 3 | 2020-12-10T13:43:08.000Z | 2021-01-17T04:36:34.000Z | test.py | ZJianjin/Traffic4cast2020_lds | 6cb76e885a9539e485c055222be77f41a559c507 | [
"Apache-2.0"
] | null | null | null | test.py | ZJianjin/Traffic4cast2020_lds | 6cb76e885a9539e485c055222be77f41a559c507 | [
"Apache-2.0"
] | null | null | null | import random
from random import shuffle
import numpy as np
import tensorflow as tf
from tensorflow.python.tools import freeze_graph
import datetime
import time
import queue
import threading
import logging
from PIL import Image
import itertools
import yaml
import re
import os
import glob
import shutil
import sys
import... | 37.94332 | 122 | 0.636364 | 1,313 | 9,372 | 4.204113 | 0.192689 | 0.03913 | 0.049275 | 0.028986 | 0.270652 | 0.183333 | 0.156703 | 0.105435 | 0.071739 | 0.05942 | 0 | 0.031276 | 0.222151 | 9,372 | 246 | 123 | 38.097561 | 0.725926 | 0.103713 | 0 | 0.042781 | 0 | 0 | 0.046356 | 0.003042 | 0 | 0 | 0 | 0 | 0.005348 | 1 | 0.02139 | false | 0 | 0.128342 | 0 | 0.165775 | 0.010695 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
c23bc080151d66518c85923b1ce1c8be7c0ff949 | 3,037 | py | Python | python/python-010/rds.py | suzuxander/suzuxander_samples | 736224dae91b432ef3ec796f5eda23417865f142 | [
"MIT"
] | null | null | null | python/python-010/rds.py | suzuxander/suzuxander_samples | 736224dae91b432ef3ec796f5eda23417865f142 | [
"MIT"
] | null | null | null | python/python-010/rds.py | suzuxander/suzuxander_samples | 736224dae91b432ef3ec796f5eda23417865f142 | [
"MIT"
] | null | null | null | from troposphere import Template, Ref, Parameter, GetAtt
from troposphere.ec2 import SecurityGroup
from troposphere.rds import DBSubnetGroup, DBInstance
def create_rds_template():
template = Template()
vpc = template.add_parameter(
parameter=Parameter(
title='Vpc',
Type='Strin... | 25.957265 | 66 | 0.55186 | 246 | 3,037 | 6.609756 | 0.365854 | 0.177122 | 0.098401 | 0.142681 | 0.250923 | 0.211562 | 0 | 0 | 0 | 0 | 0 | 0.01059 | 0.347053 | 3,037 | 116 | 67 | 26.181034 | 0.80938 | 0.013171 | 0 | 0.161616 | 0 | 0 | 0.111185 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.010101 | false | 0.030303 | 0.030303 | 0 | 0.040404 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
c24663b502469b48e008fb30a563fba0b901fd18 | 7,119 | py | Python | total_tolles_ferleihsystem/auth_providers/ldap_auth_provider.py | spethso/Verleihsystem-TTF | 39179f9ac5b07f5106e555f82f3c9011d33805bd | [
"MIT"
] | 1 | 2019-03-17T08:11:14.000Z | 2019-03-17T08:11:14.000Z | total_tolles_ferleihsystem/auth_providers/ldap_auth_provider.py | spethso/Verleihsystem-TTF | 39179f9ac5b07f5106e555f82f3c9011d33805bd | [
"MIT"
] | 60 | 2018-06-12T14:46:50.000Z | 2020-11-16T00:50:37.000Z | total_tolles_ferleihsystem/auth_providers/ldap_auth_provider.py | FIUS/ttf-backend | 39179f9ac5b07f5106e555f82f3c9011d33805bd | [
"MIT"
] | 1 | 2019-12-02T19:25:59.000Z | 2019-12-02T19:25:59.000Z | """
Auth Providers which provides LDAP login
"""
from typing import List, Dict
from ldap3 import Connection, Server, AUTO_BIND_TLS_BEFORE_BIND, SUBTREE
from ldap3.core.exceptions import LDAPSocketOpenError, LDAPBindError
from ..login import LoginProvider
from .. import APP, AUTH_LOGGER
class LDAPAuthProvider(LoginPr... | 47.46 | 118 | 0.61975 | 910 | 7,119 | 4.579121 | 0.141758 | 0.050156 | 0.040557 | 0.038397 | 0.538757 | 0.402208 | 0.201104 | 0.145428 | 0.110391 | 0.091193 | 0 | 0.000605 | 0.303554 | 7,119 | 149 | 119 | 47.778523 | 0.839855 | 0.172215 | 0 | 0.101852 | 0 | 0.009259 | 0.077121 | 0.024218 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064815 | false | 0.018519 | 0.046296 | 0.027778 | 0.361111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
c247338889dd4aef3193b428e74aac5424652e3f | 4,117 | py | Python | md2html.py | osfans/yancheng | 1f5cec75c8d97006f8b2ee4b1b36b7dc78930ef0 | [
"Apache-2.0"
] | 4 | 2017-01-26T03:25:24.000Z | 2019-04-15T14:11:46.000Z | md2html.py | osfans/yancheng | 1f5cec75c8d97006f8b2ee4b1b36b7dc78930ef0 | [
"Apache-2.0"
] | 1 | 2016-12-02T04:26:31.000Z | 2016-12-05T05:02:39.000Z | md2html.py | osfans/xu | 1f5cec75c8d97006f8b2ee4b1b36b7dc78930ef0 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
import re, os, glob
template = """
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
<style>
body {
font-family: PMingLiu, HanaMinA, HanaMinB, Helvetica, arial, sans-serif;
writing-mode: vertical-rl... | 24.360947 | 120 | 0.459072 | 499 | 4,117 | 3.759519 | 0.304609 | 0.03838 | 0.037313 | 0.022388 | 0.075693 | 0.052239 | 0.026652 | 0.026652 | 0.026652 | 0.026652 | 0 | 0.030928 | 0.363857 | 4,117 | 168 | 121 | 24.505952 | 0.683849 | 0.00753 | 0 | 0.123288 | 0 | 0.020548 | 0.360274 | 0.038942 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034247 | false | 0 | 0.006849 | 0 | 0.054795 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
c24d4c5a8f9125c9ef834c785c10d1d380869f30 | 8,645 | py | Python | src/utils/strava.py | adrigrillo/endomondo-strava-migrator | 398ff4a0db4a8a5a3a4f0d8fb53157ffeeb88079 | [
"MIT"
] | 2 | 2020-12-08T20:51:38.000Z | 2021-01-03T20:42:10.000Z | src/utils/strava.py | adrigrillo/endomondo-strava-migrator | 398ff4a0db4a8a5a3a4f0d8fb53157ffeeb88079 | [
"MIT"
] | 1 | 2020-12-08T21:09:50.000Z | 2020-12-08T21:30:35.000Z | src/utils/strava.py | adrigrillo/endomondo-strava-migrator | 398ff4a0db4a8a5a3a4f0d8fb53157ffeeb88079 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
utils/strava.py
=================
Utility class to Strava API
"""
import json
import time
from configparser import ConfigParser, NoOptionError
from datetime import datetime
from pathlib import Path
from typing import Tuple
from loguru import logger
from stravalib import Client, exc
from ut... | 36.020833 | 99 | 0.65587 | 1,096 | 8,645 | 5.058394 | 0.221715 | 0.021645 | 0.019481 | 0.017316 | 0.271104 | 0.268939 | 0.2307 | 0.199315 | 0.149531 | 0.111833 | 0 | 0.00803 | 0.265356 | 8,645 | 239 | 100 | 36.171548 | 0.864903 | 0.365992 | 0 | 0.169643 | 0 | 0 | 0.23559 | 0.020696 | 0 | 0 | 0 | 0 | 0 | 1 | 0.053571 | false | 0 | 0.107143 | 0 | 0.223214 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
df9a160281e97721997326dd0b0903a52cd73273 | 5,293 | py | Python | train_synthText.py | skyatmoon/Detailed-Handwriting-detection | 1eb7ba8087290cbdd3fbc2c092fbdbc2b715fc9c | [
"MIT"
] | 1 | 2020-12-08T01:24:34.000Z | 2020-12-08T01:24:34.000Z | train_synthText.py | skyatmoon/Detailed-Handwriting-detection | 1eb7ba8087290cbdd3fbc2c092fbdbc2b715fc9c | [
"MIT"
] | null | null | null | train_synthText.py | skyatmoon/Detailed-Handwriting-detection | 1eb7ba8087290cbdd3fbc2c092fbdbc2b715fc9c | [
"MIT"
] | null | null | null | """
Author: brooklyn
train with synthText
"""
import torch
import torch.nn as nn
import torch.optim as optim
import torchvision.transforms as transforms
import os
from net.craft import CRAFT
import sys
from utils.cal_loss import cal_synthText_loss
from dataset.synthDataset import SynthDataset
import argparse
from eval... | 37.807143 | 128 | 0.642736 | 671 | 5,293 | 4.831595 | 0.257824 | 0.055521 | 0.052437 | 0.027761 | 0.186305 | 0.115978 | 0.101172 | 0.062307 | 0.028378 | 0.028378 | 0 | 0.016962 | 0.242585 | 5,293 | 139 | 129 | 38.079137 | 0.791719 | 0.029284 | 0 | 0.07767 | 0 | 0 | 0.107918 | 0.023069 | 0 | 0 | 0 | 0 | 0 | 1 | 0.009709 | false | 0 | 0.106796 | 0 | 0.116505 | 0.038835 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
df9b4ebedd02514962424a1cc0a1b5aae502b670 | 1,896 | py | Python | friendcircle/models.py | jossafossa/Project24_backend | bb5cc91d21c9f93034b85b3e94e829f7ab33c565 | [
"MIT"
] | null | null | null | friendcircle/models.py | jossafossa/Project24_backend | bb5cc91d21c9f93034b85b3e94e829f7ab33c565 | [
"MIT"
] | 9 | 2019-12-04T23:15:59.000Z | 2022-02-10T09:08:38.000Z | friendcircle/models.py | jossafossa/Project24_backend | bb5cc91d21c9f93034b85b3e94e829f7ab33c565 | [
"MIT"
] | null | null | null | from django.db import models
class FriendCircle(models.Model):
name = models.CharField(blank=True, max_length=255)
description = models.CharField(blank=True, max_length=1000)
interests = models.ManyToManyField('interests.Interest', blank=True)
members = models.ManyToManyField(
'users.CustomUser... | 35.773585 | 103 | 0.68038 | 203 | 1,896 | 6.192118 | 0.369458 | 0.043755 | 0.044551 | 0.066826 | 0.531424 | 0.505967 | 0.415274 | 0.415274 | 0.415274 | 0.205251 | 0 | 0.005964 | 0.204114 | 1,896 | 52 | 104 | 36.461538 | 0.827038 | 0.074367 | 0 | 0.375 | 0 | 0 | 0.149629 | 0.048544 | 0 | 0 | 0 | 0 | 0 | 1 | 0.075 | false | 0 | 0.025 | 0.075 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
df9d6d03fbed45db8f46a22336474ebb4831783c | 474 | py | Python | components/collector/tests/source_collectors/jira/test_issues.py | m-zakeri/quality-time | 531931f0d8d4f5d262ea98445868158e41d268da | [
"Apache-2.0"
] | null | null | null | components/collector/tests/source_collectors/jira/test_issues.py | m-zakeri/quality-time | 531931f0d8d4f5d262ea98445868158e41d268da | [
"Apache-2.0"
] | null | null | null | components/collector/tests/source_collectors/jira/test_issues.py | m-zakeri/quality-time | 531931f0d8d4f5d262ea98445868158e41d268da | [
"Apache-2.0"
] | null | null | null | """Unit tests for the Jira issues collector."""
from .base import JiraTestCase
class JiraIssuesTest(JiraTestCase):
"""Unit tests for the Jira issue collector."""
METRIC_TYPE = "issues"
async def test_issues(self):
"""Test that the issues are returned."""
issues_json = dict(total=1, issu... | 29.625 | 78 | 0.679325 | 59 | 474 | 5.355932 | 0.59322 | 0.056962 | 0.075949 | 0.094937 | 0.120253 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005236 | 0.194093 | 474 | 15 | 79 | 31.6 | 0.82199 | 0.172996 | 0 | 0 | 0 | 0 | 0.020528 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
df9e429f72ebf0471ad51a2d2296ecb2934b944d | 1,485 | py | Python | cf_xarray/tests/test_coding.py | rcaneill/cf-xarray | 210e997ab5e550e411ec1a4e789aac28e77bacff | [
"Apache-2.0"
] | null | null | null | cf_xarray/tests/test_coding.py | rcaneill/cf-xarray | 210e997ab5e550e411ec1a4e789aac28e77bacff | [
"Apache-2.0"
] | null | null | null | cf_xarray/tests/test_coding.py | rcaneill/cf-xarray | 210e997ab5e550e411ec1a4e789aac28e77bacff | [
"Apache-2.0"
] | null | null | null | import numpy as np
import pandas as pd
import pytest
import xarray as xr
import cf_xarray as cfxr
@pytest.mark.parametrize(
"mindex",
[
pd.MultiIndex.from_product([["a", "b"], [1, 2]], names=("lat", "lon")),
pd.MultiIndex.from_arrays(
[["a", "b", "c", "d"], [1, 2, 4, 10]], names=(... | 34.534884 | 80 | 0.60404 | 184 | 1,485 | 4.728261 | 0.423913 | 0.011494 | 0.055172 | 0.022989 | 0.201149 | 0.183908 | 0.183908 | 0.183908 | 0.08046 | 0 | 0 | 0.014555 | 0.213468 | 1,485 | 42 | 81 | 35.357143 | 0.730308 | 0 | 0 | 0.108108 | 0 | 0 | 0.145455 | 0 | 0 | 0 | 0 | 0 | 0.054054 | 1 | 0.027027 | false | 0 | 0.135135 | 0 | 0.162162 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
dfa2ba545c720071817fb0691cb4e7c5aad3c2a5 | 8,344 | py | Python | project/pfasst/transfer_tools.py | amit17133129/pyMG-2016 | b82a60811bb0a8b91d8793c47177a240221f9176 | [
"BSD-2-Clause"
] | 2 | 2016-04-04T15:20:50.000Z | 2020-08-01T19:28:55.000Z | project/pfasst/transfer_tools.py | amit17133129/pyMG-2016 | b82a60811bb0a8b91d8793c47177a240221f9176 | [
"BSD-2-Clause"
] | 1 | 2020-10-02T05:44:45.000Z | 2020-10-02T05:44:45.000Z | project/pfasst/transfer_tools.py | amit17133129/pyMG-2016 | b82a60811bb0a8b91d8793c47177a240221f9176 | [
"BSD-2-Clause"
] | 11 | 2016-03-26T18:37:06.000Z | 2020-10-01T19:44:55.000Z | # coding=utf-8
import numpy as np
import scipy.interpolate as intpl
import scipy.sparse as sprs
def to_sparse(D, format="csc"):
"""
Transform dense matrix to sparse matrix of return_type
bsr_matrix(arg1[, shape, dtype, copy, blocksize]) Block Sparse Row matrix
coo_matrix(arg1[, shape, dtype, ... | 36.920354 | 111 | 0.628715 | 1,323 | 8,344 | 3.815571 | 0.141345 | 0.021395 | 0.02397 | 0.027734 | 0.562203 | 0.499802 | 0.48019 | 0.464342 | 0.453249 | 0.44374 | 0 | 0.017192 | 0.254075 | 8,344 | 225 | 112 | 37.084444 | 0.793862 | 0.311841 | 0 | 0.29927 | 0 | 0 | 0.005457 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.072993 | false | 0 | 0.021898 | 0 | 0.248175 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
dfa3a2fa2289a9c892b09c29ede2ebe39a3dd0c8 | 7,266 | py | Python | python/trees/rbtree_graphviz.py | rcanepa/cs-fundamentals | b362fc206417501e53a5739df1edf7568901eef8 | [
"MIT"
] | null | null | null | python/trees/rbtree_graphviz.py | rcanepa/cs-fundamentals | b362fc206417501e53a5739df1edf7568901eef8 | [
"MIT"
] | null | null | null | python/trees/rbtree_graphviz.py | rcanepa/cs-fundamentals | b362fc206417501e53a5739df1edf7568901eef8 | [
"MIT"
] | null | null | null | """rbtree_graphviz.py - create a graphviz representation of a LLRBT.
The purpose of this module is to visually show how the shape of a LLRBT
changes when keys are inserted in it. For every insert, sub graph (tree)
is added to the main graph.
`initialization_list` holds the values that are inserted in the tree.
This l... | 38.648936 | 100 | 0.597991 | 979 | 7,266 | 4.21144 | 0.181818 | 0.045113 | 0.037351 | 0.027165 | 0.626486 | 0.581858 | 0.555421 | 0.488964 | 0.488964 | 0.447005 | 0 | 0.003315 | 0.294247 | 7,266 | 187 | 101 | 38.855615 | 0.800702 | 0.260666 | 0 | 0.449541 | 0 | 0 | 0.097455 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.036697 | false | 0 | 0.018349 | 0 | 0.091743 | 0.009174 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
dfad270ef93b37ed6df9bcf779f6cf41ac7ec78e | 2,499 | py | Python | graphtiny/service.py | Canicio/pyqtgraph-tiny | b88ebe8a2e6ad860ca4857b527adccbbde14851d | [
"MIT"
] | 1 | 2018-03-17T12:36:56.000Z | 2018-03-17T12:36:56.000Z | graphtiny/service.py | Canicio/pyqtgraph-tiny | b88ebe8a2e6ad860ca4857b527adccbbde14851d | [
"MIT"
] | 1 | 2017-08-08T18:31:31.000Z | 2017-08-08T18:31:31.000Z | graphtiny/service.py | Canicio/graphtiny | b88ebe8a2e6ad860ca4857b527adccbbde14851d | [
"MIT"
] | null | null | null | from time import sleep
import pyqtgraph as pg
import threading
from graphtiny.api import IChart, IDataStreamWindow
from graphtiny.domain import DataStreamWindow, Chart
class FuncThread(threading.Thread):
def __init__(self, t, *a) -> None:
self._t = t
self._a = a
threading.Thread.__init__(... | 34.232877 | 95 | 0.612645 | 283 | 2,499 | 5.222615 | 0.29682 | 0.048714 | 0.047361 | 0.018945 | 0.258457 | 0.161028 | 0.106901 | 0.05954 | 0 | 0 | 0 | 0.002828 | 0.292517 | 2,499 | 72 | 96 | 34.708333 | 0.833145 | 0.010404 | 0 | 0.071429 | 0 | 0 | 0.012151 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.089286 | false | 0 | 0.089286 | 0 | 0.232143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
dfb2125e655f351b14d7a2e313cfea92c5b3d51d | 4,629 | py | Python | pcie_bw.py | pcie-bench/pcie-model | 5bb1a71684c51f4bbbab2b9673c6bbc3dcf57b11 | [
"Apache-2.0"
] | 30 | 2018-12-05T22:02:26.000Z | 2022-03-13T17:09:51.000Z | pcie_bw.py | pcie-bench/pcie-model | 5bb1a71684c51f4bbbab2b9673c6bbc3dcf57b11 | [
"Apache-2.0"
] | null | null | null | pcie_bw.py | pcie-bench/pcie-model | 5bb1a71684c51f4bbbab2b9673c6bbc3dcf57b11 | [
"Apache-2.0"
] | 13 | 2018-12-28T14:31:48.000Z | 2022-02-25T11:24:36.000Z | #! /usr/bin/env python3
#
## Copyright (C) 2015-2018 Rolf Neugebauer. All rights reserved.
## Copyright (C) 2015 Netronome Systems, 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 co... | 38.575 | 80 | 0.534241 | 593 | 4,629 | 4.042159 | 0.333895 | 0.033375 | 0.050063 | 0.037547 | 0.239883 | 0.157697 | 0.139341 | 0.115978 | 0.095953 | 0.047559 | 0 | 0.046527 | 0.331389 | 4,629 | 119 | 81 | 38.89916 | 0.727948 | 0.168935 | 0 | 0.097561 | 0 | 0.012195 | 0.163952 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.012195 | false | 0 | 0.036585 | 0 | 0.04878 | 0.012195 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
dfb71ae9c49c8ec75050dd6031ca98dd54f66f9f | 18,950 | py | Python | BiModNeuroCNN/training/bimodal_classification.py | cfcooney/BiModNeuroCNN | f79da6150b4186bcbc15d876394f4af8a47076d0 | [
"MIT"
] | 4 | 2020-10-31T21:20:12.000Z | 2022-01-05T16:13:07.000Z | BiModNeuroCNN/training/bimodal_classification.py | cfcooney/BiModNeuroCNN | f79da6150b4186bcbc15d876394f4af8a47076d0 | [
"MIT"
] | null | null | null | BiModNeuroCNN/training/bimodal_classification.py | cfcooney/BiModNeuroCNN | f79da6150b4186bcbc15d876394f4af8a47076d0 | [
"MIT"
] | null | null | null | """
Description: Class for training CNNs using a nested cross-validation method. Train on the inner_fold to obtain
optimized hyperparameters. Train outer_fold to obtain classification performance.
"""
from braindecode.datautil.iterators import BalancedBatchSizeIterator
from braindecode.experiments.stopcriteria imp... | 57.95107 | 154 | 0.644063 | 2,615 | 18,950 | 4.327342 | 0.130402 | 0.028279 | 0.031813 | 0.019795 | 0.510339 | 0.459791 | 0.445564 | 0.435136 | 0.426211 | 0.420467 | 0 | 0.02253 | 0.269235 | 18,950 | 326 | 155 | 58.128834 | 0.794627 | 0.174354 | 0 | 0.156682 | 0 | 0.009217 | 0.054925 | 0.010139 | 0 | 0 | 0 | 0 | 0.009217 | 1 | 0.046083 | false | 0 | 0.092166 | 0 | 0.165899 | 0.02765 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
dfb9067db6876e985a83eb3d9d6219b06ce32b30 | 1,197 | py | Python | setup.py | adadesions/sfcpy | d395218ae9f72fed378c30ad604923373b7fbf3f | [
"MIT"
] | 2 | 2019-08-28T19:30:32.000Z | 2020-03-28T16:17:01.000Z | setup.py | adadesions/sfcpy | d395218ae9f72fed378c30ad604923373b7fbf3f | [
"MIT"
] | 5 | 2021-03-18T22:53:57.000Z | 2022-03-11T23:42:38.000Z | setup.py | adadesions/sfcpy | d395218ae9f72fed378c30ad604923373b7fbf3f | [
"MIT"
] | null | null | null | """Setup script for sfcpy"""
import os.path
from setuptools import setup
# The directory containing this file
HERE = os.path.abspath(os.path.dirname(__file__))
# The text of the README file
with open(os.path.join(HERE, "README.md"), encoding='utf-8') as fid:
README = fid.read()
# This call to setup() does all t... | 29.925 | 73 | 0.652464 | 144 | 1,197 | 5.291667 | 0.618056 | 0.124672 | 0.164042 | 0.136483 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011482 | 0.199666 | 1,197 | 39 | 74 | 30.692308 | 0.783925 | 0.104428 | 0 | 0.064516 | 0 | 0 | 0.418233 | 0.023496 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.064516 | 0 | 0.064516 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
dfb94390c72e2b9eb210dfba78b3240cd00784e2 | 7,921 | py | Python | make_DigitalCommons_spreadsheet.py | lsulibraries/CWBR_DigitalCommons | 6eb994d08d6de088075cde82f6dc2b3aed15bdda | [
"Apache-2.0"
] | null | null | null | make_DigitalCommons_spreadsheet.py | lsulibraries/CWBR_DigitalCommons | 6eb994d08d6de088075cde82f6dc2b3aed15bdda | [
"Apache-2.0"
] | null | null | null | make_DigitalCommons_spreadsheet.py | lsulibraries/CWBR_DigitalCommons | 6eb994d08d6de088075cde82f6dc2b3aed15bdda | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
import csv
import os
from collections import namedtuple
import string
from nameparser import HumanName
def csv_to_dict(filename):
file_dict = dict()
with open(filename, 'r', newline='', encoding='utf-8') as csvfile:
csvreader = csv.reader(csvfile, delimiter='\t', quotechar='"'... | 36.004545 | 112 | 0.550562 | 826 | 7,921 | 4.986683 | 0.211864 | 0.033989 | 0.03496 | 0.039087 | 0.369507 | 0.284535 | 0.177227 | 0.168488 | 0.132799 | 0.110464 | 0 | 0.013849 | 0.334554 | 7,921 | 219 | 113 | 36.16895 | 0.767596 | 0.002651 | 0 | 0.067416 | 0 | 0 | 0.102418 | 0.010128 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095506 | false | 0 | 0.02809 | 0.016854 | 0.224719 | 0.005618 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
dfb9a74f5e09588db5c20e479a0c85f0735ce76b | 7,524 | py | Python | pip_services3_redis/cache/RedisCache.py | pip-services-python/pip-services-redis-python | ecb2e667ab266af0274b0891a19e802cb256766a | [
"MIT"
] | null | null | null | pip_services3_redis/cache/RedisCache.py | pip-services-python/pip-services-redis-python | ecb2e667ab266af0274b0891a19e802cb256766a | [
"MIT"
] | null | null | null | pip_services3_redis/cache/RedisCache.py | pip-services-python/pip-services-redis-python | ecb2e667ab266af0274b0891a19e802cb256766a | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from typing import Optional, Any
import redis
from pip_services3_commons.config import IConfigurable, ConfigParams
from pip_services3_commons.errors import ConfigException, InvalidStateException
from pip_services3_commons.refer import IReferenceable, IReferences
from pip_services3_commons.run i... | 37.064039 | 158 | 0.636895 | 819 | 7,524 | 5.666667 | 0.25641 | 0.05042 | 0.049774 | 0.032321 | 0.25167 | 0.23357 | 0.214178 | 0.191338 | 0.138332 | 0.117216 | 0 | 0.009568 | 0.277645 | 7,524 | 202 | 159 | 37.247525 | 0.844342 | 0.427432 | 0 | 0.094595 | 0 | 0 | 0.067328 | 0 | 0 | 0 | 0 | 0.004951 | 0 | 1 | 0.148649 | false | 0.013514 | 0.121622 | 0 | 0.391892 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
dfbade8328cd7332030b49fd40ed470582f05c91 | 7,392 | py | Python | main/model/property.py | lipis/gae-init-magic | 6b1e0b50f8e5200cb2dacebca9ac65e796b241a9 | [
"MIT"
] | 1 | 2018-10-26T13:33:20.000Z | 2018-10-26T13:33:20.000Z | main/model/property.py | lipis/gae-init-magic | 6b1e0b50f8e5200cb2dacebca9ac65e796b241a9 | [
"MIT"
] | 652 | 2018-10-26T12:28:08.000Z | 2021-08-02T09:13:48.000Z | main/model/property.py | lipis/gae-init-magic | 6b1e0b50f8e5200cb2dacebca9ac65e796b241a9 | [
"MIT"
] | null | null | null | # coding: utf-8
from __future__ import absolute_import
from google.appengine.ext import ndb
from api import fields
import model
import util
class Property(model.Base):
name = ndb.StringProperty(required=True)
rank = ndb.IntegerProperty(default=0)
verbose_name = ndb.StringProperty(default='')
show_on_view ... | 38.701571 | 123 | 0.652056 | 911 | 7,392 | 5.155873 | 0.148189 | 0.031935 | 0.090483 | 0.070258 | 0.285288 | 0.170321 | 0.117309 | 0.117309 | 0.090909 | 0.029168 | 0 | 0.003033 | 0.197105 | 7,392 | 190 | 124 | 38.905263 | 0.788374 | 0.001759 | 0 | 0.111111 | 0 | 0.006173 | 0.203741 | 0.064525 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04321 | false | 0 | 0.030864 | 0.012346 | 0.358025 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
dfbc302b59b318fa83066ffc6aa91c4caa2533da | 1,189 | py | Python | tests/test_request.py | pauleveritt/wired_components | a9072d5fc48680d5ff895887842ffd0f06bc0081 | [
"MIT"
] | 1 | 2019-09-15T12:30:44.000Z | 2019-09-15T12:30:44.000Z | tests/test_request.py | pauleveritt/wired_components | a9072d5fc48680d5ff895887842ffd0f06bc0081 | [
"MIT"
] | null | null | null | tests/test_request.py | pauleveritt/wired_components | a9072d5fc48680d5ff895887842ffd0f06bc0081 | [
"MIT"
] | null | null | null | import pytest
from wired import ServiceContainer
@pytest.fixture
def request_container(registry, simple_root) -> ServiceContainer:
from wired_components.request import wired_setup as request_setup
from wired_components.resource import IRoot
from wired_components.url import IUrl, Url
# Outside system ... | 31.289474 | 69 | 0.764508 | 148 | 1,189 | 5.966216 | 0.358108 | 0.061155 | 0.107588 | 0.088335 | 0.13137 | 0.09513 | 0.09513 | 0 | 0 | 0 | 0 | 0 | 0.175778 | 1,189 | 37 | 70 | 32.135135 | 0.90102 | 0.124474 | 0 | 0 | 0 | 0 | 0.022201 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.125 | false | 0 | 0.291667 | 0 | 0.458333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
dfbd03cf9bf0d42acbc4621a1653916d133bdb8e | 958 | py | Python | Charts and Graphs/LollipopCharts.py | aprakash7/Buildyourown | 58f0530ea84bf9e91f258d947610ea1e93d7d456 | [
"MIT"
] | null | null | null | Charts and Graphs/LollipopCharts.py | aprakash7/Buildyourown | 58f0530ea84bf9e91f258d947610ea1e93d7d456 | [
"MIT"
] | null | null | null | Charts and Graphs/LollipopCharts.py | aprakash7/Buildyourown | 58f0530ea84bf9e91f258d947610ea1e93d7d456 | [
"MIT"
] | 1 | 2021-05-31T04:20:54.000Z | 2021-05-31T04:20:54.000Z | # -*- coding: utf-8 -*-
"""
Created on Mon May 17 21:24:53 2021
@author: Akshay Prakash
"""
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
table = pd.read_csv(r'\1617table.csv')
table.head()
plt.hlines(y= np.arange(1, 21), xmin = 0, xmax = table['Pts'], color = 'skyblue')
plt.p... | 30.903226 | 84 | 0.583507 | 134 | 958 | 4.164179 | 0.544776 | 0.086022 | 0.096774 | 0.11828 | 0.365591 | 0.365591 | 0.365591 | 0.365591 | 0.365591 | 0.365591 | 0 | 0.16092 | 0.182672 | 958 | 30 | 85 | 31.933333 | 0.551724 | 0.086639 | 0 | 0.2 | 0 | 0 | 0.256287 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.15 | 0 | 0.15 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
dfbf2ca5c949daa624f3881dc6dcb4567701067b | 1,126 | py | Python | python/merge-kml-files/merge-kml-files.py | bmaupin/graveyard | 71d52fe6589ce13dfe7433906d1aa50df48c9f94 | [
"MIT"
] | 1 | 2019-11-23T10:44:58.000Z | 2019-11-23T10:44:58.000Z | python/merge-kml-files/merge-kml-files.py | bmaupin/graveyard | 71d52fe6589ce13dfe7433906d1aa50df48c9f94 | [
"MIT"
] | 8 | 2020-07-16T07:14:12.000Z | 2020-10-14T17:25:33.000Z | python/merge-kml-files/merge-kml-files.py | bmaupin/graveyard | 71d52fe6589ce13dfe7433906d1aa50df48c9f94 | [
"MIT"
] | 1 | 2019-11-23T10:45:00.000Z | 2019-11-23T10:45:00.000Z | #!/usr/bin/env python
import sys
import lxml.etree
def main():
if len(sys.argv) < 3:
sys.stderr.write('ERROR: Must provide at least 2 KML files to merge\n')
sys.exit('Usage: {} FILE1 FILE2 ...'.format(sys.argv[0]))
first_kml_root = lxml.etree.parse(sys.argv[1]).getroot()
first_kml_ns... | 31.277778 | 79 | 0.599467 | 151 | 1,126 | 4.251656 | 0.456954 | 0.11215 | 0.074766 | 0.049844 | 0.143302 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013398 | 0.27087 | 1,126 | 35 | 80 | 32.171429 | 0.768575 | 0.109236 | 0 | 0 | 0 | 0 | 0.122 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0.083333 | 0 | 0.125 | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
dfbf59c5b26596753447f4f968efc9068d24fa0b | 3,829 | py | Python | tccli/services/partners/v20180321/help.py | tarnover/tencentcloud-cli | 5b0537913a33884a20d7663405a8aa1c2276b41a | [
"Apache-2.0"
] | null | null | null | tccli/services/partners/v20180321/help.py | tarnover/tencentcloud-cli | 5b0537913a33884a20d7663405a8aa1c2276b41a | [
"Apache-2.0"
] | null | null | null | tccli/services/partners/v20180321/help.py | tarnover/tencentcloud-cli | 5b0537913a33884a20d7663405a8aa1c2276b41a | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
DESC = "partners-2018-03-21"
INFO = {
"AgentPayDeals": {
"params": [
{
"name": "OwnerUin",
"desc": "订单所有者uin"
},
{
"name": "AgentPay",
"desc": "代付标志,1:代付;0:自付"
},
{
"name": "DealNames",
"desc": "订单号数组"
}
... | 19.049751 | 68 | 0.404022 | 256 | 3,829 | 6.042969 | 0.457031 | 0.058177 | 0.076923 | 0.074337 | 0.365869 | 0.312217 | 0.290886 | 0.290886 | 0.268908 | 0.195217 | 0 | 0.010841 | 0.397754 | 3,829 | 201 | 69 | 19.049751 | 0.660017 | 0.005484 | 0 | 0.305 | 0 | 0 | 0.420804 | 0.094563 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
dfc3450cc6a455bca7329de3130cbc552b8baa62 | 747 | py | Python | 2019/10 October/dp10302019.py | vishrutkmr7/DailyPracticeProblemsDIP | d1bfbc75f2024736c22c05385f753a90ddcfa0f5 | [
"MIT"
] | 5 | 2019-08-06T02:34:41.000Z | 2022-01-08T03:03:16.000Z | 2019/10 October/dp10302019.py | ourangzeb/DailyPracticeProblemsDIP | 66c07af88754e5d59b243e3ee9f02db69f7c0a77 | [
"MIT"
] | 15 | 2021-06-01T14:04:16.000Z | 2022-03-08T21:17:22.000Z | 2019/10 October/dp10302019.py | ourangzeb/DailyPracticeProblemsDIP | 66c07af88754e5d59b243e3ee9f02db69f7c0a77 | [
"MIT"
] | 4 | 2019-09-19T20:00:05.000Z | 2021-08-16T11:31:51.000Z | # This problem was recently asked by LinkedIn:
# Given a non-empty array where each element represents a digit of a non-negative integer, add one to the integer.
# The most significant digit is at the front of the array and each element in the array contains only one digit.
# Furthermore, the integer does not have lea... | 28.730769 | 114 | 0.619813 | 120 | 747 | 3.858333 | 0.55 | 0.017279 | 0.034557 | 0.047516 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018553 | 0.278447 | 747 | 25 | 115 | 29.88 | 0.840445 | 0.514056 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0 | 0 | 0.25 | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
dfc40c993839966190091cb6ae4333cb9d7b2cc3 | 1,122 | py | Python | kbr/run_utils.py | brugger/kbr-tools | 95c8f8274e28b986e7fd91c8404026433488c940 | [
"MIT"
] | 1 | 2021-02-02T09:47:40.000Z | 2021-02-02T09:47:40.000Z | kbr/run_utils.py | brugger/kbr-tools | 95c8f8274e28b986e7fd91c8404026433488c940 | [
"MIT"
] | 1 | 2021-08-04T13:00:00.000Z | 2021-08-04T13:00:00.000Z | kbr/run_utils.py | brugger/kbr-tools | 95c8f8274e28b986e7fd91c8404026433488c940 | [
"MIT"
] | null | null | null | import subprocess
import sys
import os
class ExecutionInfo:
def __init__(self, p_status: int, stdout: str, stderr: str):
self.p_status = p_status
self.stdout = stdout
self.stderr = stderr
def exit_fail(msg: str = "") -> None:
print(msg)
sys.exit(-1)
def exit_ok(msg: str = "") ... | 23.375 | 123 | 0.632799 | 156 | 1,122 | 4.423077 | 0.333333 | 0.050725 | 0.031884 | 0.043478 | 0.356522 | 0.307246 | 0.307246 | 0.234783 | 0.234783 | 0.234783 | 0 | 0.004582 | 0.221925 | 1,122 | 47 | 124 | 23.87234 | 0.785796 | 0 | 0 | 0.064516 | 0 | 0 | 0.012489 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.16129 | false | 0 | 0.096774 | 0 | 0.322581 | 0.16129 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
dfc40d4989f8ef494b36888ba91588827d76ffc5 | 2,614 | py | Python | tests/client/test_files.py | philopon/datapane | d7d69865d4def0cbe6eb334acd9edeb829dd67e6 | [
"Apache-2.0"
] | 481 | 2020-04-25T05:40:21.000Z | 2022-03-30T22:04:35.000Z | tests/client/test_files.py | tig/datapane | defae6776e73b07191c0a5804a50b284ec3c9a63 | [
"Apache-2.0"
] | 74 | 2020-04-28T10:47:35.000Z | 2022-03-14T15:50:55.000Z | tests/client/test_files.py | admariner/datapane | c440eaf07bd1c1f2de3ff952e0fd8c78d636aa8f | [
"Apache-2.0"
] | 41 | 2020-07-21T16:30:21.000Z | 2022-02-21T22:50:27.000Z | from pathlib import Path
import altair as alt
import folium
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
import plotly.graph_objects as p_go
import pytest
from bokeh.layouts import column
from bokeh.models import ColumnDataSource
from bokeh.plotting import figure
from pandas.io.formats.style ... | 26.948454 | 121 | 0.694721 | 411 | 2,614 | 4.309002 | 0.350365 | 0.054207 | 0.062112 | 0.01694 | 0.321287 | 0.271033 | 0.241671 | 0.241671 | 0.199887 | 0.199887 | 0 | 0.017757 | 0.181331 | 2,614 | 96 | 122 | 27.229167 | 0.809813 | 0.174445 | 0 | 0.278689 | 0 | 0 | 0.089977 | 0.028904 | 0 | 0 | 0 | 0 | 0.032787 | 1 | 0.163934 | false | 0 | 0.229508 | 0 | 0.393443 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
dfc5ea1ec35f681b24bc22174c17b45b8de95235 | 1,417 | py | Python | twirp/logging.py | batchar2/twirpy | e5940a2a038926844098def09748953287071747 | [
"Unlicense"
] | 51 | 2020-05-23T22:31:53.000Z | 2022-03-08T19:14:04.000Z | twirp/logging.py | batchar2/twirpy | e5940a2a038926844098def09748953287071747 | [
"Unlicense"
] | 20 | 2020-05-15T10:20:38.000Z | 2022-02-06T23:21:56.000Z | twirp/logging.py | batchar2/twirpy | e5940a2a038926844098def09748953287071747 | [
"Unlicense"
] | 10 | 2020-05-29T09:55:49.000Z | 2021-10-16T00:14:04.000Z | import os
import logging
import sys
import structlog
from structlog.stdlib import LoggerFactory, add_log_level
_configured = False
def configure(force = False):
"""
Configures logging & structlog modules
Keyword Arguments:
force: Force to reconfigure logging.
"""
global _configured
if ... | 22.140625 | 57 | 0.628088 | 143 | 1,417 | 6.097902 | 0.468531 | 0.055046 | 0.025229 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.299224 | 1,417 | 63 | 58 | 22.492063 | 0.878147 | 0.253352 | 0 | 0 | 0 | 0 | 0.023762 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060606 | false | 0 | 0.151515 | 0 | 0.272727 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
dfc68640fe94c25498745f6373d4a8f15e6f9a5f | 878 | py | Python | setup.py | Arkq/pyexec | ec90b0aaff80996155d033bd722ff59c9259460e | [
"MIT"
] | null | null | null | setup.py | Arkq/pyexec | ec90b0aaff80996155d033bd722ff59c9259460e | [
"MIT"
] | null | null | null | setup.py | Arkq/pyexec | ec90b0aaff80996155d033bd722ff59c9259460e | [
"MIT"
] | null | null | null | # setup.py
# Copyright (c) 2015-2017 Arkadiusz Bokowy
#
# This file is a part of pyexec.
#
# This project is licensed under the terms of the MIT license.
from setuptools import setup
import pyexec
with open("README.rst") as f:
long_description = f.read()
setup(
name="pyexec",
version=pyexec.__version__... | 25.085714 | 62 | 0.654897 | 100 | 878 | 5.66 | 0.65 | 0.079505 | 0.088339 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014577 | 0.218679 | 878 | 34 | 63 | 25.823529 | 0.810496 | 0.160592 | 0 | 0 | 0 | 0 | 0.450685 | 0.035616 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
dfc7144f2268699316911b76b5597b6509452a54 | 4,898 | py | Python | data-sources/kbr/authority-persons-marc-to-csv.py | kbrbe/beltrans-data-integration | 951ae3941b22a6fe0a8d30079bdf6f4f0a55f092 | [
"MIT"
] | null | null | null | data-sources/kbr/authority-persons-marc-to-csv.py | kbrbe/beltrans-data-integration | 951ae3941b22a6fe0a8d30079bdf6f4f0a55f092 | [
"MIT"
] | 21 | 2022-02-14T10:58:52.000Z | 2022-03-28T14:04:40.000Z | data-sources/kbr/authority-persons-marc-to-csv.py | kbrbe/beltrans-data-integration | 951ae3941b22a6fe0a8d30079bdf6f4f0a55f092 | [
"MIT"
] | null | null | null | #
# (c) 2022 Sven Lieber
# KBR Brussels
#
#import xml.etree.ElementTree as ET
import lxml.etree as ET
import os
import json
import itertools
import enchant
import hashlib
import csv
from optparse import OptionParser
import utils
import stdnum
NS_MARCSLIM = 'http://www.loc.gov/MARC21/slim'
ALL_NS = {'marc': NS_MARCSLI... | 43.732143 | 186 | 0.682115 | 589 | 4,898 | 5.602716 | 0.339559 | 0.016667 | 0.053333 | 0.059394 | 0.276364 | 0.23697 | 0.179394 | 0.106667 | 0.081818 | 0.081818 | 0 | 0.009119 | 0.126786 | 4,898 | 111 | 187 | 44.126126 | 0.76245 | 0.144957 | 0 | 0 | 0 | 0.028571 | 0.30882 | 0.142033 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028571 | false | 0 | 0.142857 | 0 | 0.171429 | 0.014286 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
dfc7e5a8bbc57e53f20590d631fe2b87c31a1671 | 3,886 | py | Python | promoterz/evaluationPool.py | emillj/gekkoJaponicus | d77c8c7a303b97a3643eb3f3c8b995b8b393f3f7 | [
"MIT"
] | null | null | null | promoterz/evaluationPool.py | emillj/gekkoJaponicus | d77c8c7a303b97a3643eb3f3c8b995b8b393f3f7 | [
"MIT"
] | null | null | null | promoterz/evaluationPool.py | emillj/gekkoJaponicus | d77c8c7a303b97a3643eb3f3c8b995b8b393f3f7 | [
"MIT"
] | 1 | 2021-11-29T20:18:25.000Z | 2021-11-29T20:18:25.000Z | #!/bin/python
import time
import random
from multiprocessing import Pool, Process, Pipe, TimeoutError
from multiprocessing.pool import ThreadPool
class EvaluationPool():
def __init__(self, EvaluationTool, Urls, poolsize):
self.EvaluationTool = EvaluationTool
self.Urls = Urls
self.lasttim... | 33.213675 | 97 | 0.587494 | 457 | 3,886 | 4.949672 | 0.258206 | 0.045977 | 0.02122 | 0.013263 | 0.04863 | 0.04863 | 0 | 0 | 0 | 0 | 0 | 0.006662 | 0.304683 | 3,886 | 116 | 98 | 33.5 | 0.830496 | 0.060473 | 0 | 0 | 0 | 0 | 0.005214 | 0 | 0 | 0 | 0 | 0 | 0.022989 | 1 | 0.057471 | false | 0 | 0.045977 | 0 | 0.149425 | 0.045977 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
dfc9bea7af7becf02c3cd0e4f00d6640fee9f247 | 3,001 | py | Python | website/drawquest/apps/following/models.py | bopopescu/drawquest-web | 8d8f9149b6efeb65202809a5f8916386f58a1b3b | [
"BSD-3-Clause"
] | 19 | 2015-11-10T17:36:20.000Z | 2021-04-12T07:36:00.000Z | website/drawquest/apps/following/models.py | bopopescu/drawquest-web | 8d8f9149b6efeb65202809a5f8916386f58a1b3b | [
"BSD-3-Clause"
] | 1 | 2021-06-09T03:45:34.000Z | 2021-06-09T03:45:34.000Z | website/drawquest/apps/following/models.py | bopopescu/drawquest-web | 8d8f9149b6efeb65202809a5f8916386f58a1b3b | [
"BSD-3-Clause"
] | 6 | 2015-11-11T00:38:38.000Z | 2020-07-25T20:10:08.000Z | from canvas.cache_patterns import CachedCall
from drawquest import knobs
from drawquest.apps.drawquest_auth.models import User
from drawquest.apps.drawquest_auth.details_models import UserDetails
from drawquest.pagination import FakePaginator
def _sorted(users):
return sorted(users, key=lambda user: user.username... | 34.102273 | 92 | 0.65978 | 375 | 3,001 | 5.117333 | 0.245333 | 0.029182 | 0.03752 | 0.031266 | 0.517978 | 0.455446 | 0.398124 | 0.398124 | 0.398124 | 0.398124 | 0 | 0.007829 | 0.233922 | 3,001 | 87 | 93 | 34.494253 | 0.826881 | 0.04032 | 0 | 0.322034 | 0 | 0 | 0.062105 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.101695 | false | 0 | 0.084746 | 0.033898 | 0.305085 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
dfcaf8188821bfe0448579c92b86161cf07a8cb5 | 3,674 | py | Python | Python 3/PyGame/Matrix_based_3D/entities.py | DarkShadow4/python | 4cd94e0cf53ee06c9c31e9272572ca9656697c30 | [
"MIT"
] | null | null | null | Python 3/PyGame/Matrix_based_3D/entities.py | DarkShadow4/python | 4cd94e0cf53ee06c9c31e9272572ca9656697c30 | [
"MIT"
] | null | null | null | Python 3/PyGame/Matrix_based_3D/entities.py | DarkShadow4/python | 4cd94e0cf53ee06c9c31e9272572ca9656697c30 | [
"MIT"
] | 1 | 2020-08-19T17:25:22.000Z | 2020-08-19T17:25:22.000Z | import numpy as np
def translationMatrix(dx=0, dy=0, dz=0):
return np.array([[1, 0, 0, 0],
[0, 1, 0, 0],
[0, 0, 1, 0],
[dx, dy, dz, 1]])
def scalingMatrix(sx=1, sy=1, sz=1):
return np.array([[sx, 0, 0, 0],
[0, sy, 0... | 33.099099 | 106 | 0.459717 | 484 | 3,674 | 3.444215 | 0.136364 | 0.097181 | 0.091782 | 0.059988 | 0.557888 | 0.554889 | 0.526695 | 0.519496 | 0.454709 | 0.454709 | 0 | 0.072284 | 0.363636 | 3,674 | 110 | 107 | 33.4 | 0.640719 | 0.080022 | 0 | 0.481928 | 0 | 0 | 0.007156 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.108434 | false | 0 | 0.012048 | 0.024096 | 0.192771 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
dfcda9e0f1ad0a543490dfbdc63f6f36b102ec00 | 1,258 | py | Python | setup.py | utix/django-json-api | 938f78f664a4ecbabb9e678595926d1a580f9d0c | [
"MIT"
] | 7 | 2021-02-26T14:35:17.000Z | 2021-02-26T21:21:58.000Z | setup.py | utix/django-json-api | 938f78f664a4ecbabb9e678595926d1a580f9d0c | [
"MIT"
] | 7 | 2021-02-26T14:44:30.000Z | 2021-06-02T14:27:17.000Z | setup.py | utix/django-json-api | 938f78f664a4ecbabb9e678595926d1a580f9d0c | [
"MIT"
] | 1 | 2021-02-26T20:10:42.000Z | 2021-02-26T20:10:42.000Z | #!/usr/bin/env python
from os.path import join
from setuptools import find_packages, setup
# DEPENDENCIES
def requirements_from_pip(filename):
with open(filename, "r") as pip:
return [line.strip() for line in pip if not line.startswith("#") and line.strip()]
core_deps = requirements_from_pip("requireme... | 29.952381 | 90 | 0.692369 | 160 | 1,258 | 5.2625 | 0.53125 | 0.041568 | 0.061758 | 0.054632 | 0.152019 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004739 | 0.161367 | 1,258 | 41 | 91 | 30.682927 | 0.793365 | 0.035771 | 0 | 0 | 0 | 0 | 0.31157 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0 | 0.068966 | 0 | 0.137931 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
dfcf9bc6b50b9274d2e45ff7e0b6d1af9920cab0 | 1,632 | py | Python | youtube_dl/extractor/businessinsider.py | MOODesign/Youtube-videos-Download | 730c0d12a06f349907481570f1f2890251f7a181 | [
"Unlicense"
] | 16 | 2020-12-01T15:26:58.000Z | 2022-02-24T23:12:14.000Z | youtube_dl/extractor/businessinsider.py | MOODesign/Youtube-videos-Download | 730c0d12a06f349907481570f1f2890251f7a181 | [
"Unlicense"
] | 5 | 2021-02-20T10:30:00.000Z | 2021-06-01T21:12:31.000Z | youtube_dl/extractor/businessinsider.py | MOODesign/Youtube-videos-Download | 730c0d12a06f349907481570f1f2890251f7a181 | [
"Unlicense"
] | 7 | 2020-12-01T15:27:04.000Z | 2022-01-09T23:21:53.000Z | # coding: utf-8
from __future__ import unicode_literals
from .common import InfoExtractor
from .jwplatform import JWPlatformIE
class BusinessInsiderIE(InfoExtractor):
_VALID_URL = r'https?://(?:[^/]+\.)?businessinsider\.(?:com|nl)/(?:[^/]+/)*(?P<id>[^/?#&]+)'
_TESTS = [{
'url': 'http://uk.businessins... | 37.953488 | 112 | 0.571078 | 183 | 1,632 | 4.928962 | 0.540984 | 0.031042 | 0.01663 | 0.019956 | 0.080931 | 0.022173 | 0.022173 | 0 | 0 | 0 | 0 | 0.065375 | 0.240809 | 1,632 | 42 | 113 | 38.857143 | 0.662631 | 0.007966 | 0 | 0.108108 | 0 | 0.081081 | 0.411874 | 0.089054 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027027 | false | 0 | 0.081081 | 0 | 0.216216 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
dfcfb445e47c75ccbf0dd0f1527b09b9571a8702 | 578 | py | Python | map_house.py | renankalfa/python-0-ao-Data_Scientist | 2f61e1cbb1c5565da53cc1cd9aa5c3f5d1cacc88 | [
"MIT"
] | 1 | 2022-03-27T23:55:37.000Z | 2022-03-27T23:55:37.000Z | map_house.py | renankalfa/python-0-ao-Data_Scientist | 2f61e1cbb1c5565da53cc1cd9aa5c3f5d1cacc88 | [
"MIT"
] | null | null | null | map_house.py | renankalfa/python-0-ao-Data_Scientist | 2f61e1cbb1c5565da53cc1cd9aa5c3f5d1cacc88 | [
"MIT"
] | null | null | null | import plotly.express as px
import pandas as pd
data = pd.read_csv('kc_house_data.csv')
data_mapa = data[['id', 'lat', 'long', 'price']]
grafico1 = px.scatter_mapbox(data_mapa, lat='lat', lon='long',
hover_name='id', hover_data=['price'],
color_discrete_sequen... | 36.125 | 75 | 0.610727 | 79 | 578 | 4.265823 | 0.607595 | 0.047478 | 0.118694 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035635 | 0.223183 | 578 | 15 | 76 | 38.533333 | 0.714922 | 0 | 0 | 0 | 0 | 0 | 0.15917 | 0.036332 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
dfcfba95af54686ffe34f16d2ea3725de4ec6aa5 | 1,561 | py | Python | scripts/api-timeboard.py | ryhennessy/hiring-engineers | f151fb593a016b38b92767ce48d217c3d57c492a | [
"Apache-2.0"
] | null | null | null | scripts/api-timeboard.py | ryhennessy/hiring-engineers | f151fb593a016b38b92767ce48d217c3d57c492a | [
"Apache-2.0"
] | null | null | null | scripts/api-timeboard.py | ryhennessy/hiring-engineers | f151fb593a016b38b92767ce48d217c3d57c492a | [
"Apache-2.0"
] | 1 | 2019-02-06T00:09:36.000Z | 2019-02-06T00:09:36.000Z | #!/usr/bin/python
from datadog import initialize, api
options = {
'api_key': '17370fa45ebc4a8184d3dde9f8189c38',
'app_key': 'b0d652bbd1d861656723c1a93bc1a2f22d493d57'
}
initialize(**options)
title = "Ryan Great Timeboard"
description = "My Timeboard that is super awesome"
graphs = [
{
"title": "My Metric ove... | 20.539474 | 73 | 0.547726 | 139 | 1,561 | 6.064748 | 0.47482 | 0.03796 | 0.046263 | 0.071174 | 0.381969 | 0.33452 | 0.33452 | 0.33452 | 0.33452 | 0.33452 | 0 | 0.042278 | 0.257527 | 1,561 | 75 | 74 | 20.813333 | 0.685073 | 0.01025 | 0 | 0.457143 | 0 | 0 | 0.486399 | 0.123057 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.014286 | 0 | 0.014286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
dfd10fcf278a06e3edb0f59aed0bddac1ebc200d | 732 | py | Python | Playground/Spin.py | fountainment/cherry-soda | 3dd0eb7d0b5503ba572ff2104990856ef7a87495 | [
"MIT"
] | 27 | 2020-01-16T08:20:54.000Z | 2022-03-29T20:40:15.000Z | Playground/Spin.py | fountainment/cherry-soda | 3dd0eb7d0b5503ba572ff2104990856ef7a87495 | [
"MIT"
] | 10 | 2022-01-07T14:07:27.000Z | 2022-03-19T18:13:44.000Z | Playground/Spin.py | fountainment/cherry-soda | 3dd0eb7d0b5503ba572ff2104990856ef7a87495 | [
"MIT"
] | 6 | 2019-12-27T10:04:07.000Z | 2021-12-15T17:29:24.000Z | import numpy as np
import math
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
def get_spin(radius_scale, height_scale, rounds):
xs, ys, zs = [], [], []
theta = 0.0
delta = 0.1
twopi = math.pi * 2.0
for i in range(int(rounds * twopi / delta)):
theta += delta
... | 23.612903 | 49 | 0.579235 | 114 | 732 | 3.578947 | 0.464912 | 0.051471 | 0.029412 | 0.063725 | 0.068627 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043643 | 0.280055 | 732 | 30 | 50 | 24.4 | 0.73055 | 0 | 0 | 0 | 0 | 0 | 0.010929 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.153846 | 0 | 0.269231 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
dfd2a91be88a84783b35bd946e501cc258160953 | 1,911 | py | Python | bin/get_latest_rotation.py | rhots/automation | cfa97656885f4ff91e1c79af5eb8fa38a85c35a8 | [
"0BSD"
] | 1 | 2017-06-06T03:07:01.000Z | 2017-06-06T03:07:01.000Z | bin/get_latest_rotation.py | rhots/automation | cfa97656885f4ff91e1c79af5eb8fa38a85c35a8 | [
"0BSD"
] | 3 | 2016-12-19T21:09:53.000Z | 2017-02-14T03:32:18.000Z | bin/get_latest_rotation.py | rhots/automation | cfa97656885f4ff91e1c79af5eb8fa38a85c35a8 | [
"0BSD"
] | null | null | null | import os.path
from bs4 import BeautifulSoup
import requests
# Location of file to store latest known page number
LAST_KNOWN_PAGE_FILE = "/tmp/rotation_checker_latest"
# URL of forum thread where latest rotations are posted
ROTATION_FORUM_THREAD = "https://us.battle.net/forums/en/heroes/topic/17936383460"
def write_... | 27.695652 | 85 | 0.697541 | 286 | 1,911 | 4.384615 | 0.34965 | 0.107656 | 0.134769 | 0.054226 | 0.176236 | 0.122807 | 0 | 0 | 0 | 0 | 0 | 0.017117 | 0.205128 | 1,911 | 68 | 86 | 28.102941 | 0.808427 | 0.140241 | 0 | 0 | 0 | 0 | 0.117359 | 0.030562 | 0 | 0 | 0 | 0 | 0 | 1 | 0.155556 | false | 0 | 0.066667 | 0.044444 | 0.422222 | 0.044444 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
dfd2e5bbf8ec59072195c98d519d767f6b535cb9 | 2,485 | py | Python | fidelis/credentials.py | semperstew/fidelis | 8766b1bfa5bac342faf61bf4302a0e822d0a0ec9 | [
"Apache-2.0"
] | null | null | null | fidelis/credentials.py | semperstew/fidelis | 8766b1bfa5bac342faf61bf4302a0e822d0a0ec9 | [
"Apache-2.0"
] | null | null | null | fidelis/credentials.py | semperstew/fidelis | 8766b1bfa5bac342faf61bf4302a0e822d0a0ec9 | [
"Apache-2.0"
] | null | null | null | # fidelis/credentials.py
import datetime
import requests
import threading
from dateutil.tz import tzlocal
from collections import namedtuple
def _local_now():
return datetime.datetime.now(tzlocal())
class FidelisCredentials(object):
"""Object to hold authentication credentials"""
_default_token_timeout = 10... | 25.10101 | 79 | 0.695775 | 304 | 2,485 | 5.417763 | 0.266447 | 0.046752 | 0.03643 | 0.040073 | 0.052823 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002521 | 0.202012 | 2,485 | 98 | 80 | 25.357143 | 0.828038 | 0.08008 | 0 | 0.101449 | 0 | 0 | 0.035857 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.188406 | false | 0.043478 | 0.072464 | 0.043478 | 0.434783 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
dfd45fc42c8fe07d08d4459f4ff51b022c580213 | 6,254 | py | Python | pos_wechat/tests/test_wechat_order.py | nahualventure/pos-addons | 3c911c28c259967fb74e311ddcc8e6ca032c005d | [
"MIT"
] | null | null | null | pos_wechat/tests/test_wechat_order.py | nahualventure/pos-addons | 3c911c28c259967fb74e311ddcc8e6ca032c005d | [
"MIT"
] | null | null | null | pos_wechat/tests/test_wechat_order.py | nahualventure/pos-addons | 3c911c28c259967fb74e311ddcc8e6ca032c005d | [
"MIT"
] | 3 | 2021-06-15T05:45:42.000Z | 2021-07-27T12:28:53.000Z | # Copyright 2018 Ivan Yelizariev <https://it-projects.info/team/yelizariev>
# License MIT (https://opensource.org/licenses/MIT).
import logging
from odoo.addons.point_of_sale.tests.common import TestPointOfSaleCommon
try:
from unittest.mock import patch
except ImportError:
from mock import patch
_logger = l... | 35.942529 | 88 | 0.512312 | 635 | 6,254 | 4.861417 | 0.32126 | 0.035633 | 0.016845 | 0.014577 | 0.097182 | 0.068675 | 0.023324 | 0 | 0 | 0 | 0 | 0.035088 | 0.380237 | 6,254 | 173 | 89 | 36.150289 | 0.761352 | 0.077071 | 0 | 0.115942 | 0 | 0 | 0.162876 | 0.011113 | 0 | 0 | 0 | 0 | 0.028986 | 1 | 0.050725 | false | 0 | 0.036232 | 0 | 0.137681 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
dfd6670490ad28a09d2ea2ea84c8564b4b85c4b8 | 582 | py | Python | docker/settings.py | uw-it-aca/course-roster-lti | 599dad70e06bc85d3d862116c00e8ecf0e2e9c8c | [
"Apache-2.0"
] | null | null | null | docker/settings.py | uw-it-aca/course-roster-lti | 599dad70e06bc85d3d862116c00e8ecf0e2e9c8c | [
"Apache-2.0"
] | 53 | 2017-01-28T00:03:57.000Z | 2022-03-23T21:57:13.000Z | docker/settings.py | uw-it-aca/course-roster-lti | 599dad70e06bc85d3d862116c00e8ecf0e2e9c8c | [
"Apache-2.0"
] | null | null | null | from .base_settings import *
INSTALLED_APPS += [
'course_roster.apps.CourseRosterConfig',
'compressor',
]
COMPRESS_ROOT = '/static/'
COMPRESS_PRECOMPILERS = (('text/less', 'lessc {infile} {outfile}'),)
COMPRESS_OFFLINE = True
STATICFILES_FINDERS += ('compressor.finders.CompressorFinder',)
if os.getenv('ENV',... | 26.454545 | 72 | 0.735395 | 68 | 582 | 5.985294 | 0.676471 | 0.088452 | 0.093366 | 0.117936 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023952 | 0.139175 | 582 | 21 | 73 | 27.714286 | 0.788423 | 0 | 0 | 0 | 0 | 0 | 0.305842 | 0.185567 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.058824 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
dfdf748f02b9b943852a62e3f8521187d01d62ea | 2,175 | py | Python | app/__init__.py | muthash/Weconnect-api | d3434c99b96a911258dfb8e3ff68696a2021a64b | [
"MIT"
] | 1 | 2018-03-15T17:08:11.000Z | 2018-03-15T17:08:11.000Z | app/__init__.py | muthash/Weconnect-api | d3434c99b96a911258dfb8e3ff68696a2021a64b | [
"MIT"
] | 1 | 2018-02-28T21:26:04.000Z | 2018-03-01T07:19:05.000Z | app/__init__.py | muthash/Weconnect-api | d3434c99b96a911258dfb8e3ff68696a2021a64b | [
"MIT"
] | 1 | 2018-03-09T03:45:22.000Z | 2018-03-09T03:45:22.000Z | """ The create_app function wraps the creation of a new Flask object, and
returns it after it's loaded up with configuration settings
using app.config
"""
from flask import jsonify
from flask_api import FlaskAPI
from flask_cors import CORS
from flask_sqlalchemy import SQLAlchemy
from flask_jwt_extended import J... | 31.521739 | 83 | 0.686897 | 291 | 2,175 | 4.993127 | 0.333333 | 0.037164 | 0.055059 | 0.041294 | 0.181005 | 0.129387 | 0.129387 | 0.129387 | 0.129387 | 0.129387 | 0 | 0.010772 | 0.231724 | 2,175 | 68 | 84 | 31.985294 | 0.858767 | 0.184828 | 0 | 0 | 0 | 0 | 0.069226 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.108696 | false | 0 | 0.26087 | 0 | 0.5 | 0.086957 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
dfe01ac7f7adb258b0362ce750c15bb90b3ecb5f | 520 | py | Python | run.py | bayusetiawan01/poj | 9c205ce298a2b3ca0d9c00b7d4a3fd05fecf326a | [
"MIT"
] | 25 | 2016-02-26T17:35:19.000Z | 2021-08-17T10:30:14.000Z | run.py | bayusetiawan01/poj | 9c205ce298a2b3ca0d9c00b7d4a3fd05fecf326a | [
"MIT"
] | 5 | 2016-04-27T16:52:46.000Z | 2021-04-24T10:06:16.000Z | run.py | bayusetiawan01/poj | 9c205ce298a2b3ca0d9c00b7d4a3fd05fecf326a | [
"MIT"
] | 6 | 2016-04-27T16:50:13.000Z | 2021-04-03T06:27:41.000Z | import sys
import subprocess
if __name__ == "__main__":
try:
executable = sys.argv[1]
input_filename = sys.argv[2]
output_filename = sys.argv[3]
tl = sys.argv[4]
except IndexError:
sys.exit(-1)
input_file = open(input_filename, "r")
output_file = open(output_fil... | 27.368421 | 118 | 0.634615 | 64 | 520 | 4.875 | 0.5 | 0.089744 | 0.096154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0125 | 0.230769 | 520 | 18 | 119 | 28.888889 | 0.7675 | 0 | 0 | 0 | 0 | 0 | 0.040385 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
dfe159b3edd0ee9b633d2a90e3ddecd214d799b8 | 4,580 | py | Python | Version Autonome/main.py | chiudidier/ProjetBloc5 | 214f401e5b35bc5894ecc3d20f338762b689f2ca | [
"CC0-1.0"
] | null | null | null | Version Autonome/main.py | chiudidier/ProjetBloc5 | 214f401e5b35bc5894ecc3d20f338762b689f2ca | [
"CC0-1.0"
] | null | null | null | Version Autonome/main.py | chiudidier/ProjetBloc5 | 214f401e5b35bc5894ecc3d20f338762b689f2ca | [
"CC0-1.0"
] | null | null | null | from taquin import *
from random import *
from math import *
#main
'''
old : ancienne façon de mélanger qui correspond à une manipulation du taquin. Plus à coder pour les élèves et pour faire des essais de profondeur
montxt='012345678'# position initiale = solution
montaquin=Taquin(montxt)#... | 24.491979 | 224 | 0.606332 | 533 | 4,580 | 5.208255 | 0.322702 | 0.032421 | 0.020173 | 0.025937 | 0.477666 | 0.477666 | 0.45317 | 0.45317 | 0.45317 | 0.45317 | 0 | 0.012092 | 0.331878 | 4,580 | 186 | 225 | 24.623656 | 0.895098 | 0.129039 | 0 | 0.057143 | 0 | 0 | 0.164326 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.085714 | 0 | 0.085714 | 0.257143 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
dfe30fcd6927ef89f0f16539956bef3a4837e607 | 1,336 | py | Python | tests/filestack_helpers_test.py | SanthoshBala18/filestack-python | db55f3a27a4d073e1ba33d3d09a3def8da1a25e4 | [
"Apache-2.0"
] | 47 | 2017-01-28T12:27:18.000Z | 2021-07-02T16:29:04.000Z | tests/filestack_helpers_test.py | malarozi/filestack-python | 7109a9c20225532c95f0204d12649137c0de01a1 | [
"Apache-2.0"
] | 36 | 2017-01-25T23:48:33.000Z | 2022-01-29T22:33:12.000Z | tests/filestack_helpers_test.py | malarozi/filestack-python | 7109a9c20225532c95f0204d12649137c0de01a1 | [
"Apache-2.0"
] | 24 | 2017-01-24T23:57:32.000Z | 2022-01-29T22:34:34.000Z | import pytest
from filestack.helpers import verify_webhook_signature
@pytest.mark.parametrize('signature, expected_result', [
('57cbb25386c3d6ff758a7a75cf52ba02cf2b0a1a2d6d5dfb9c886553ca6011cb', True),
('incorrect-signature', False),
])
def test_webhook_verification(signature, expected_result):
secret = '... | 40.484848 | 105 | 0.695359 | 156 | 1,336 | 5.839744 | 0.358974 | 0.054885 | 0.074643 | 0.05708 | 0.256861 | 0.206367 | 0.144896 | 0.144896 | 0.144896 | 0.144896 | 0 | 0.053333 | 0.157934 | 1,336 | 32 | 106 | 41.75 | 0.756444 | 0 | 0 | 0.148148 | 0 | 0 | 0.378743 | 0.073353 | 0 | 0 | 0 | 0 | 0.148148 | 1 | 0.074074 | false | 0 | 0.074074 | 0 | 0.148148 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
dfe42600497b94099e0a72123b092ceef56b943a | 4,558 | py | Python | pattern/check_multiples.py | Lostefra/TranslationCoherence | b7b09c475cc78842d9724161a8cbee372d41da08 | [
"MIT"
] | null | null | null | pattern/check_multiples.py | Lostefra/TranslationCoherence | b7b09c475cc78842d9724161a8cbee372d41da08 | [
"MIT"
] | null | null | null | pattern/check_multiples.py | Lostefra/TranslationCoherence | b7b09c475cc78842d9724161a8cbee372d41da08 | [
"MIT"
] | null | null | null | import rdflib
from rdflib.term import URIRef
from utilities.utility_functions import prefix
from utilities import constants
def has_equivalent(node, graph):
equivalents = list(graph.subjects(predicate=constants.EQUIVALENCE_PREDICATE, object=node)) + \
list(graph.subjects(predicate=constants.SYNONYMY_PR... | 54.915663 | 125 | 0.698113 | 634 | 4,558 | 4.856467 | 0.173502 | 0.08217 | 0.063657 | 0.068204 | 0.640468 | 0.569665 | 0.555375 | 0.476129 | 0.465086 | 0.420266 | 0 | 0.027213 | 0.169592 | 4,558 | 82 | 126 | 55.585366 | 0.786262 | 0.306713 | 0 | 0.45283 | 0 | 0 | 0.106254 | 0.040842 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037736 | false | 0 | 0.075472 | 0 | 0.150943 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
dfe4a5779ee044b60ee7d70e0fc7668e972bffae | 5,875 | py | Python | app/main/views.py | Ammoh-Moringa/pitches | 2551f2c8e323066ebdde3f92046368d7c7759fa6 | [
"MIT"
] | null | null | null | app/main/views.py | Ammoh-Moringa/pitches | 2551f2c8e323066ebdde3f92046368d7c7759fa6 | [
"MIT"
] | null | null | null | app/main/views.py | Ammoh-Moringa/pitches | 2551f2c8e323066ebdde3f92046368d7c7759fa6 | [
"MIT"
] | null | null | null | from flask import render_template, request, redirect, url_for, abort
from flask_login import login_required, current_user
from . forms import PitchForm, CommentForm, CategoryForm
from .import main
from .. import db
from ..models import User, Pitch, Comments, PitchCategory, Votes
#display categories on the landing page... | 30.759162 | 116 | 0.683574 | 735 | 5,875 | 5.308844 | 0.191837 | 0.039467 | 0.051256 | 0.020502 | 0.201179 | 0.170169 | 0.139416 | 0.099436 | 0.082522 | 0.082522 | 0 | 0.002106 | 0.19166 | 5,875 | 190 | 117 | 30.921053 | 0.819541 | 0.104681 | 0 | 0.198276 | 0 | 0 | 0.135172 | 0.018319 | 0 | 0 | 0 | 0 | 0 | 1 | 0.094828 | false | 0 | 0.051724 | 0 | 0.284483 | 0.051724 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
dfe61cbf2bb3b5a52f9141b8b81d778c054609e4 | 10,299 | py | Python | networks/classes/centernet/models/ModelCenterNet.py | ALIENK9/Kuzushiji-recognition | a18c1fbfa72b6bbbcfe4004148cd0e90531acf6b | [
"MIT"
] | 2 | 2019-09-15T08:52:38.000Z | 2019-09-15T08:58:58.000Z | networks/classes/centernet/models/ModelCenterNet.py | MatteoRizzo96/CognitiveServices | a5efeb8f585ae2ee0465ab25e587c4db0e2b32b3 | [
"MIT"
] | null | null | null | networks/classes/centernet/models/ModelCenterNet.py | MatteoRizzo96/CognitiveServices | a5efeb8f585ae2ee0465ab25e587c4db0e2b32b3 | [
"MIT"
] | 2 | 2020-11-06T07:29:56.000Z | 2020-11-06T07:33:27.000Z | import glob
import os
import pandas as pd
from tensorflow.python.keras.preprocessing.image import ImageDataGenerator
from typing import Dict, List, Union, Tuple
import numpy as np
import tensorflow as tf
from tensorflow.python.keras.callbacks import ModelCheckpoint, TensorBoard, LearningRateScheduler
from networks.c... | 40.869048 | 108 | 0.556656 | 1,073 | 10,299 | 5.086673 | 0.214352 | 0.03133 | 0.023452 | 0.02565 | 0.286918 | 0.225724 | 0.196775 | 0.186149 | 0.186149 | 0.157017 | 0 | 0.006806 | 0.357996 | 10,299 | 251 | 109 | 41.031873 | 0.818663 | 0.100204 | 0 | 0.304094 | 0 | 0 | 0.073057 | 0.004317 | 0 | 0 | 0 | 0 | 0.011696 | 1 | 0.046784 | false | 0 | 0.052632 | 0 | 0.157895 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
dfec725778cb5fb317db1061f7feba9a3d3f7b10 | 554 | py | Python | tests/test_imgs2bw.py | antsfamily/improc | ceab171b0e61187fa2ced7c58540d5ffde79ebac | [
"MIT"
] | 2 | 2019-09-29T08:43:31.000Z | 2022-01-12T09:46:18.000Z | tests/test_imgs2bw.py | antsfamily/improc | ceab171b0e61187fa2ced7c58540d5ffde79ebac | [
"MIT"
] | null | null | null | tests/test_imgs2bw.py | antsfamily/improc | ceab171b0e61187fa2ced7c58540d5ffde79ebac | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Date : 2018-07-04 09:43:51
# @Author : Zhi Liu (zhiliu.mind@gmail.com)
# @Link : http://iridescent.ink
# @Version : $1.1$
import matplotlib.cm as cm
from matplotlib import pyplot as plt
import improc as imp
datafolder = '/mnt/d/DataSets/oi/nsi/classical/'
imgsp... | 19.103448 | 48 | 0.658845 | 81 | 554 | 4.506173 | 0.716049 | 0.043836 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045259 | 0.162455 | 554 | 28 | 49 | 19.785714 | 0.741379 | 0.299639 | 0 | 0 | 0 | 0 | 0.149215 | 0.086387 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
dfec78daa3bbf2130e5e79b3fbc047fcd7c950b3 | 764 | py | Python | Un4/Un4.py | tonypithony/forktinypythonprojectsscripts | 3dae818c822ee7de6de021e9f46d02bfe05f7355 | [
"MIT"
] | null | null | null | Un4/Un4.py | tonypithony/forktinypythonprojectsscripts | 3dae818c822ee7de6de021e9f46d02bfe05f7355 | [
"MIT"
] | null | null | null | Un4/Un4.py | tonypithony/forktinypythonprojectsscripts | 3dae818c822ee7de6de021e9f46d02bfe05f7355 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
"""Jump the Five"""
import argparse
# --------------------------------------------------
def get_args():
parser = argparse.ArgumentParser(description='Jump the Five',
formatter_class=argparse.ArgumentDefaultsHelpFormatter)
parser.add_argument('text', metavar='str', help='Input text'... | 25.466667 | 64 | 0.522251 | 98 | 764 | 3.938776 | 0.612245 | 0.036269 | 0.056995 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090214 | 0.143979 | 764 | 30 | 65 | 25.466667 | 0.5 | 0.304974 | 0 | 0 | 0 | 0 | 0.111538 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.066667 | 0 | 0.266667 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
dff25402be58788805ce4000a620f3bec7823781 | 4,537 | py | Python | iocage/main.py | krcNAS/iocage | 13d87e92f8ba186b6c8b7f64a948f26a05586430 | [
"BSD-2-Clause"
] | null | null | null | iocage/main.py | krcNAS/iocage | 13d87e92f8ba186b6c8b7f64a948f26a05586430 | [
"BSD-2-Clause"
] | null | null | null | iocage/main.py | krcNAS/iocage | 13d87e92f8ba186b6c8b7f64a948f26a05586430 | [
"BSD-2-Clause"
] | null | null | null | # Copyright (c) 2014-2017, iocage
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted providing that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and th... | 33.858209 | 143 | 0.642054 | 606 | 4,537 | 4.70297 | 0.458746 | 0.022105 | 0.011228 | 0.010526 | 0.072982 | 0.047719 | 0.047719 | 0.047719 | 0.047719 | 0.047719 | 0 | 0.013674 | 0.258541 | 4,537 | 133 | 144 | 34.112782 | 0.833532 | 0.384175 | 0 | 0.123288 | 0 | 0 | 0.118917 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.054795 | false | 0.013699 | 0.150685 | 0 | 0.273973 | 0.041096 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
dff4072d877687a20524346adc49201f57ca4cea | 905 | py | Python | svety/tests.py | clemsciences/svety | 44a0c2ab5453e9d01b71b5a3f0e0e959740c2d90 | [
"MIT"
] | null | null | null | svety/tests.py | clemsciences/svety | 44a0c2ab5453e9d01b71b5a3f0e0e959740c2d90 | [
"MIT"
] | null | null | null | svety/tests.py | clemsciences/svety | 44a0c2ab5453e9d01b71b5a3f0e0e959740c2d90 | [
"MIT"
] | null | null | null | """
"""
import os
import unittest
from lxml import etree
from svety import PACKDIR
from svety import reader
from svety import retriever
__author__ = ["Clément Besnier <clemsciences@aol.com>", ]
class TestMain(unittest.TestCase):
"""
"""
def setUp(self) -> None:
self.filename = "hellqvist.xml... | 23.205128 | 60 | 0.667403 | 109 | 905 | 5.385321 | 0.440367 | 0.081772 | 0.076661 | 0.057922 | 0.149915 | 0.149915 | 0.149915 | 0.149915 | 0.149915 | 0.149915 | 0 | 0.005626 | 0.214365 | 905 | 38 | 61 | 23.815789 | 0.819972 | 0 | 0 | 0.086957 | 0 | 0 | 0.079096 | 0.024859 | 0 | 0 | 0 | 0 | 0.173913 | 1 | 0.173913 | false | 0 | 0.26087 | 0 | 0.478261 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
dff5479d5d3e3729b12a7cdf8fd0b259fd5d0c88 | 5,424 | py | Python | tests/internal/processes/test_generator.py | clausmichele/openeo-python-client | b20af2b24fcb12d0fce0e2acdb8afeeb881ff454 | [
"Apache-2.0"
] | 1 | 2021-04-01T13:15:35.000Z | 2021-04-01T13:15:35.000Z | tests/internal/processes/test_generator.py | clausmichele/openeo-python-client | b20af2b24fcb12d0fce0e2acdb8afeeb881ff454 | [
"Apache-2.0"
] | null | null | null | tests/internal/processes/test_generator.py | clausmichele/openeo-python-client | b20af2b24fcb12d0fce0e2acdb8afeeb881ff454 | [
"Apache-2.0"
] | null | null | null | from textwrap import dedent
from openeo.internal.processes.generator import PythonRenderer
from openeo.internal.processes.parse import Process
def test_render_basic():
process = Process.from_dict({
"id": "incr",
"description": "Increment a value",
"summary": "Increment a value",
"... | 28.851064 | 117 | 0.50295 | 509 | 5,424 | 5.265226 | 0.137525 | 0.078358 | 0.05597 | 0.065672 | 0.726866 | 0.672015 | 0.627985 | 0.571269 | 0.55597 | 0.516791 | 0 | 0.000816 | 0.322456 | 5,424 | 187 | 118 | 29.005348 | 0.728435 | 0 | 0 | 0.688742 | 0 | 0 | 0.499078 | 0 | 0 | 0 | 0 | 0 | 0.05298 | 1 | 0.046358 | false | 0 | 0.019868 | 0 | 0.119205 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
dff9aadffba2a29e37c671ac7172c7de73a82cb0 | 14,895 | py | Python | hyperion/generators/adapt_sequence_batch_generator.py | jsalt2019-diadet/hyperion | 14a11436d62f3c15cd9b1f70bcce3eafbea2f753 | [
"Apache-2.0"
] | 9 | 2019-09-22T05:19:59.000Z | 2022-03-05T18:03:37.000Z | hyperion/generators/adapt_sequence_batch_generator.py | jsalt2019-diadet/hyperion | 14a11436d62f3c15cd9b1f70bcce3eafbea2f753 | [
"Apache-2.0"
] | null | null | null | hyperion/generators/adapt_sequence_batch_generator.py | jsalt2019-diadet/hyperion | 14a11436d62f3c15cd9b1f70bcce3eafbea2f753 | [
"Apache-2.0"
] | 4 | 2019-10-10T06:34:05.000Z | 2022-03-05T18:03:56.000Z | """
Copyright 2018 Jesus Villalba (Johns Hopkins University)
Apache 2.0 (http://www.apache.org/licenses/LICENSE-2.0)
"""
from __future__ import absolute_import
from __future__ import print_function
from __future__ import division
from six.moves import xrange
import sys
import os
import argparse
import time
import c... | 34.320276 | 111 | 0.608728 | 1,935 | 14,895 | 4.311628 | 0.101809 | 0.088457 | 0.05993 | 0.046746 | 0.626993 | 0.51684 | 0.428982 | 0.380559 | 0.352991 | 0.314275 | 0 | 0.006006 | 0.306949 | 14,895 | 433 | 112 | 34.399538 | 0.802189 | 0.007586 | 0 | 0.352159 | 0 | 0 | 0.008192 | 0 | 0 | 0 | 0 | 0 | 0.016611 | 1 | 0.076412 | false | 0.006645 | 0.056478 | 0.016611 | 0.182724 | 0.003322 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
dffa822e50735b496917f2c8ca75cc5ca8d78488 | 1,113 | py | Python | main.py | Lojlvenom/simple-python-blockchain | b226f81644daa066156aa5b9581c04cf4d47d0dc | [
"MIT"
] | null | null | null | main.py | Lojlvenom/simple-python-blockchain | b226f81644daa066156aa5b9581c04cf4d47d0dc | [
"MIT"
] | null | null | null | main.py | Lojlvenom/simple-python-blockchain | b226f81644daa066156aa5b9581c04cf4d47d0dc | [
"MIT"
] | null | null | null | import fastapi as _fastapi
import blockchain as _blockchain
app_desc = {
'title':'Simple python blockchain API',
'version':'1.0.0',
}
bc = _blockchain.Blockchain()
app = _fastapi.FastAPI(**app_desc)
def validade_blockchain():
if not bc._is_chain_valid():
return _fastapi.HTTPException(
... | 22.26 | 91 | 0.629829 | 134 | 1,113 | 5.044776 | 0.402985 | 0.051775 | 0.094675 | 0.073965 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007084 | 0.238994 | 1,113 | 49 | 92 | 22.714286 | 0.791027 | 0.02336 | 0 | 0.076923 | 0 | 0 | 0.23318 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.128205 | false | 0 | 0.051282 | 0.025641 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
dffa84ab01f78c539667e6f6871367dc2095eb09 | 1,747 | py | Python | setup.py | SanjeevaRDodlapati/Chem-Learn | 2db2e98061ee3dbb00ed20c51ea18b15956e298e | [
"MIT"
] | null | null | null | setup.py | SanjeevaRDodlapati/Chem-Learn | 2db2e98061ee3dbb00ed20c51ea18b15956e298e | [
"MIT"
] | null | null | null | setup.py | SanjeevaRDodlapati/Chem-Learn | 2db2e98061ee3dbb00ed20c51ea18b15956e298e | [
"MIT"
] | null | null | null | from glob import glob
import os
from setuptools import setup, find_packages
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(name='chemlearn',
version='0.0.0',
description='Deep learning for chemistry',
long_description=read('README.rst'),
author... | 36.395833 | 80 | 0.499714 | 143 | 1,747 | 6.041958 | 0.664336 | 0.109954 | 0.144676 | 0.12037 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01476 | 0.379508 | 1,747 | 47 | 81 | 37.170213 | 0.782288 | 0 | 0 | 0 | 0 | 0 | 0.419576 | 0.025186 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02381 | false | 0 | 0.071429 | 0.02381 | 0.119048 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
dfff599aef2fa931d79fa84797d0acce9a216f5a | 5,407 | py | Python | murder.py | lgrn/murder | 1e4582cc5fa8c31c35e70997daebd111f1badf4d | [
"Unlicense"
] | null | null | null | murder.py | lgrn/murder | 1e4582cc5fa8c31c35e70997daebd111f1badf4d | [
"Unlicense"
] | null | null | null | murder.py | lgrn/murder | 1e4582cc5fa8c31c35e70997daebd111f1badf4d | [
"Unlicense"
] | null | null | null | #!/usr/bin/env python3
# murder 0.2.3
import sys
if sys.version_info[0] != (3):
sys.stdout.write("Sorry this software requires Python 3. This is Python {}.\n".format(sys.version_info[0]))
sys.exit(1)
import time
import requests
import json
import re
# Your "filename" file should contain one word per row. Do... | 32.769697 | 129 | 0.653227 | 757 | 5,407 | 4.594452 | 0.336856 | 0.025877 | 0.010351 | 0.012651 | 0.273145 | 0.234043 | 0.234043 | 0.203565 | 0.165037 | 0.146061 | 0 | 0.007039 | 0.211763 | 5,407 | 165 | 130 | 32.769697 | 0.80901 | 0.149621 | 0 | 0.342105 | 0 | 0.04386 | 0.326134 | 0.025524 | 0 | 0 | 0 | 0 | 0 | 1 | 0.026316 | false | 0.035088 | 0.061404 | 0 | 0.105263 | 0.175439 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
dfff777451f2b530e80b5323a7284116b77ea627 | 703 | py | Python | cfn_review_bot/merge.py | biochimia/cfn-review-bot | 1c8a84b51f7c398c21725cb888a9ab694ddfbb56 | [
"Apache-2.0"
] | 1 | 2019-04-04T12:09:16.000Z | 2019-04-04T12:09:16.000Z | cfn_review_bot/merge.py | biochimia/cfn-review-bot | 1c8a84b51f7c398c21725cb888a9ab694ddfbb56 | [
"Apache-2.0"
] | null | null | null | cfn_review_bot/merge.py | biochimia/cfn-review-bot | 1c8a84b51f7c398c21725cb888a9ab694ddfbb56 | [
"Apache-2.0"
] | null | null | null | def _deep_merge_mapping(old, new):
merged = {}
merged.update(old)
for k, nv in new.items():
try:
ov = merged[k]
except KeyError:
merged[k] = nv
continue
merged[k] = deep_merge(ov, nv)
return merged
def _deep_merge_sequence(old, new):
r... | 20.676471 | 66 | 0.571835 | 90 | 703 | 4.311111 | 0.344444 | 0.123711 | 0.092784 | 0.097938 | 0.324742 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.318634 | 703 | 33 | 67 | 21.30303 | 0.810021 | 0 | 0 | 0 | 0 | 0 | 0.036984 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.130435 | false | 0 | 0 | 0.043478 | 0.347826 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
5f0133420725ce23664fd5aac6eace5b4be90d9b | 324 | py | Python | 02_module/package_test/module1/my_sum.py | zzz0072/Python_Exercises | 9918aa8197a77ef237e5e60306c7785eca5cb1d3 | [
"BSD-2-Clause"
] | null | null | null | 02_module/package_test/module1/my_sum.py | zzz0072/Python_Exercises | 9918aa8197a77ef237e5e60306c7785eca5cb1d3 | [
"BSD-2-Clause"
] | null | null | null | 02_module/package_test/module1/my_sum.py | zzz0072/Python_Exercises | 9918aa8197a77ef237e5e60306c7785eca5cb1d3 | [
"BSD-2-Clause"
] | null | null | null | #/usr/bin/env python
from ..module2 import my_print
def my_sum(x, y):
result = x + y
my_print.my_print(result)
# To run method alone
if __name__ == "__main__":
import sys
if len(sys.argv) != 3:
print("%s str1 str2" % sys.argv[0])
raise SystemExit(1)
my_sum(sys.argv[1], sys.argv[2]... | 18 | 43 | 0.608025 | 54 | 324 | 3.407407 | 0.611111 | 0.152174 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032787 | 0.246914 | 324 | 17 | 44 | 19.058824 | 0.721311 | 0.12037 | 0 | 0 | 0 | 0 | 0.071174 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.2 | 0 | 0.3 | 0.3 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5f033434eab634732c27a8827763d152ae9391a1 | 1,054 | py | Python | repos/system_upgrade/el7toel8/actors/preparepythonworkround/tests/test_preparepythonworkaround.py | AloisMahdal/leapp-repository | 9ac2b8005750e8e56e5fde61e8762044d0f16257 | [
"Apache-2.0"
] | null | null | null | repos/system_upgrade/el7toel8/actors/preparepythonworkround/tests/test_preparepythonworkaround.py | AloisMahdal/leapp-repository | 9ac2b8005750e8e56e5fde61e8762044d0f16257 | [
"Apache-2.0"
] | 9 | 2020-01-07T12:48:59.000Z | 2020-01-16T10:44:34.000Z | repos/system_upgrade/el7toel8/actors/preparepythonworkround/tests/test_preparepythonworkaround.py | AloisMahdal/leapp-repository | 9ac2b8005750e8e56e5fde61e8762044d0f16257 | [
"Apache-2.0"
] | null | null | null | from os import symlink, path, access, X_OK
import pytest
from leapp.libraries.actor import workaround
from leapp.libraries.common.utils import makedirs
def fake_symlink(basedir):
def impl(source, target):
source_path = str(basedir.join(*source.lstrip('/').split('/')))
makedirs(source_path)
... | 32.9375 | 84 | 0.734345 | 140 | 1,054 | 5.35 | 0.428571 | 0.096128 | 0.080107 | 0.064085 | 0.058745 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008899 | 0.147059 | 1,054 | 31 | 85 | 34 | 0.824249 | 0.08444 | 0 | 0.1 | 0 | 0 | 0.065489 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.15 | false | 0 | 0.2 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5f03df5d79ef568c79e0a3f2f05ab7cc845b03d5 | 707 | py | Python | codility/equi_leader.py | py-in-the-sky/challenges | 4a36095de8cb56b4f9f83c241eafb13dfbeb4065 | [
"MIT"
] | null | null | null | codility/equi_leader.py | py-in-the-sky/challenges | 4a36095de8cb56b4f9f83c241eafb13dfbeb4065 | [
"MIT"
] | null | null | null | codility/equi_leader.py | py-in-the-sky/challenges | 4a36095de8cb56b4f9f83c241eafb13dfbeb4065 | [
"MIT"
] | null | null | null | """
https://codility.com/programmers/task/equi_leader/
"""
from collections import Counter, defaultdict
def solution(A):
def _is_equi_leader(i):
prefix_count_top = running_counts[top]
suffix_count_top = total_counts[top] - prefix_count_top
return (prefix_count_top * 2 > i + 1) and (suffi... | 24.37931 | 89 | 0.595474 | 98 | 707 | 4.05102 | 0.387755 | 0.100756 | 0.105793 | 0.065491 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018109 | 0.29703 | 707 | 28 | 90 | 25.25 | 0.780684 | 0.070721 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.058824 | 0 | 0.294118 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
5f05166068ffa658a5a11fcc559025940e70a85b | 1,419 | py | Python | downloader.py | Luonic/tf-cnn-lstm-ocr-captcha | 9ac6202d546093d95083a32c71cdccb800dfdea2 | [
"MIT"
] | 10 | 2017-08-08T22:57:32.000Z | 2020-04-07T21:50:20.000Z | downloader.py | Luonic/tf-cnn-lstm-ocr-captcha | 9ac6202d546093d95083a32c71cdccb800dfdea2 | [
"MIT"
] | null | null | null | downloader.py | Luonic/tf-cnn-lstm-ocr-captcha | 9ac6202d546093d95083a32c71cdccb800dfdea2 | [
"MIT"
] | 5 | 2018-07-17T16:47:21.000Z | 2021-11-06T15:03:56.000Z | import urllib
import requests
import multiprocessing.pool
from multiprocessing import Pool
import uuid
import os
images_dir = os.path.join("data", "train")
small_letters = map(chr, range(ord('a'), ord('f')+1))
digits = map(chr, range(ord('0'), ord('9')+1))
base_16 = digits + small_letters
MAX_THREADS = 100
def capt... | 30.191489 | 143 | 0.547569 | 186 | 1,419 | 4.048387 | 0.419355 | 0.071713 | 0.042497 | 0.058433 | 0.250996 | 0.173971 | 0.151394 | 0 | 0 | 0 | 0 | 0.031697 | 0.310782 | 1,419 | 47 | 144 | 30.191489 | 0.738241 | 0.065539 | 0 | 0.162162 | 0 | 0 | 0.075327 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027027 | false | 0 | 0.162162 | 0 | 0.189189 | 0.135135 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 |
5f05920c4f06c4b47bf5845e7dd08b41ac585c06 | 7,679 | py | Python | code/Models.py | IGLICT/CMIC-Retrieval | d2f452517360f127d0a8175d55ba9f9491c152c2 | [
"MIT"
] | 29 | 2021-10-01T12:05:54.000Z | 2022-03-16T02:40:19.000Z | code/Models.py | IGLICT/CMIC-Retrieval | d2f452517360f127d0a8175d55ba9f9491c152c2 | [
"MIT"
] | 5 | 2021-12-20T12:25:58.000Z | 2022-03-10T19:08:32.000Z | code/Models.py | IGLICT/CMIC-Retrieval | d2f452517360f127d0a8175d55ba9f9491c152c2 | [
"MIT"
] | 1 | 2022-01-04T05:52:49.000Z | 2022-01-04T05:52:49.000Z | import jittor as jt
from jittor import nn, models
if jt.has_cuda:
jt.flags.use_cuda = 1 # jt.flags.use_cuda
class QueryEncoder(nn.Module):
def __init__(self, out_dim=128):
super(QueryEncoder, self).__init__()
self.dim = out_dim
self.resnet = models.resnet50(pretrained=False)
sel... | 36.393365 | 113 | 0.625602 | 929 | 7,679 | 4.990312 | 0.227126 | 0.036885 | 0.051769 | 0.050475 | 0.360009 | 0.304357 | 0.278473 | 0.198878 | 0.163072 | 0.092752 | 0 | 0.021108 | 0.259669 | 7,679 | 211 | 114 | 36.393365 | 0.794371 | 0.216434 | 0 | 0.152381 | 0 | 0 | 0.018345 | 0 | 0 | 0 | 0 | 0.004739 | 0 | 1 | 0.114286 | false | 0 | 0.038095 | 0.028571 | 0.266667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |