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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
82375c0aea9e29d0883a083fde9e2658a9cd5fee | 203 | py | Python | Python/Numpy/002_Shape_and_Reshape.py | o-silva-1/HackerRank | be5241c1439e7ed54fe4a1847984a9ac79c6e2a9 | [
"MIT"
] | null | null | null | Python/Numpy/002_Shape_and_Reshape.py | o-silva-1/HackerRank | be5241c1439e7ed54fe4a1847984a9ac79c6e2a9 | [
"MIT"
] | null | null | null | Python/Numpy/002_Shape_and_Reshape.py | o-silva-1/HackerRank | be5241c1439e7ed54fe4a1847984a9ac79c6e2a9 | [
"MIT"
] | null | null | null | # https://www.hackerrank.com/challenges/np-shape-reshape/problem?h_r=next-challenge&h_v=zen
import numpy as np
arr = input().split(' ')
np_arr = np.array(arr, int)
np_arr.shape = (3, 3)
print(np_arr)
| 20.3 | 91 | 0.714286 | 37 | 203 | 3.783784 | 0.675676 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01105 | 0.108374 | 203 | 9 | 92 | 22.555556 | 0.762431 | 0.438424 | 0 | 0 | 0 | 0 | 0.008929 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
8246bef53f647ed24cdb9294f764c94f0316156b | 1,016 | py | Python | IRN/train.py | Barry-Menglong-Yao/conll2019-snopes-crawling | f803a99e27866036b92175c7d9786611ad1f389b | [
"Apache-2.0"
] | 1 | 2021-12-28T16:28:19.000Z | 2021-12-28T16:28:19.000Z | IRN/train.py | Barry-Menglong-Yao/conll2019-snopes-crawling | f803a99e27866036b92175c7d9786611ad1f389b | [
"Apache-2.0"
] | null | null | null | IRN/train.py | Barry-Menglong-Yao/conll2019-snopes-crawling | f803a99e27866036b92175c7d9786611ad1f389b | [
"Apache-2.0"
] | null | null | null | import os
import torch
import random
import numpy as np
from network.image_reconstrcution_network import ImageReconstrcutionNetwork
from trainer import ImageReconstrcutionTrainer
from util.config import Config
def init_seeds(seed=0):
#torch.manual_seed(seed)
#torch.cuda.manual_seed(seed)
#torch.cuda.manual... | 28.222222 | 132 | 0.787402 | 134 | 1,016 | 5.813433 | 0.470149 | 0.038511 | 0.033376 | 0.04878 | 0.207959 | 0.207959 | 0.207959 | 0.136072 | 0.136072 | 0 | 0 | 0.017738 | 0.112205 | 1,016 | 35 | 133 | 29.028571 | 0.845898 | 0.340551 | 0 | 0 | 0 | 0 | 0.049774 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.318182 | 0 | 0.363636 | 0.045455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
413791542e1e259fecd9575d5697cc211ad492b3 | 450 | py | Python | Python_version/elips.py | RomaniukVadim/ellipsometric-calculator | 629ae5c962dacd4416a180e0904b8ddcf642371a | [
"WTFPL"
] | null | null | null | Python_version/elips.py | RomaniukVadim/ellipsometric-calculator | 629ae5c962dacd4416a180e0904b8ddcf642371a | [
"WTFPL"
] | null | null | null | Python_version/elips.py | RomaniukVadim/ellipsometric-calculator | 629ae5c962dacd4416a180e0904b8ddcf642371a | [
"WTFPL"
] | null | null | null | #!/usr/env python3
import argparse
import math
def main():
parser = argparse.ArgumentParser(description='Ellipsometry calculator (console version).')
parser.add_argument("--x2", dest='zname', type=argparse.FileType('r'), help='specify zipfile')
parser.add_argument("-d", dest='dname', type=argparse.Fi... | 26.470588 | 104 | 0.684444 | 53 | 450 | 5.603774 | 0.660377 | 0.060606 | 0.114478 | 0.141414 | 0.215488 | 0.215488 | 0 | 0 | 0 | 0 | 0 | 0.005222 | 0.148889 | 450 | 16 | 105 | 28.125 | 0.770235 | 0.037778 | 0 | 0 | 0 | 0 | 0.24537 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.2 | null | null | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
413809b3dc98458b4acb094a02a9c10328344308 | 685 | py | Python | tests/aliyun_iot_test.py | tenstone/xiaoyun-smart-speaker-server | 6afcdedd1a2485269afffb425803aff71b6cbd51 | [
"MIT"
] | 1 | 2020-05-18T06:58:25.000Z | 2020-05-18T06:58:25.000Z | tests/aliyun_iot_test.py | tenstone/xiaoyun-smart-speaker-server | 6afcdedd1a2485269afffb425803aff71b6cbd51 | [
"MIT"
] | 1 | 2022-02-10T12:45:45.000Z | 2022-02-10T12:45:45.000Z | tests/aliyun_iot_test.py | tenstone/xiaoyun-smart-speaker-server | 6afcdedd1a2485269afffb425803aff71b6cbd51 | [
"MIT"
] | null | null | null | # -*- coding: utf-8-*-
import unittest
import os
os.sys.path.append(os.path.join(os.path.dirname(__file__), '../'))
from app.components import logger
from app.components.aliyun_iot import IotServer
class TestComponentsAliyunIOT(unittest.TestCase):
"""
表格计算
"""
def setUp(self):
self.iot_server... | 20.147059 | 66 | 0.637956 | 84 | 685 | 4.880952 | 0.559524 | 0.05122 | 0.095122 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001905 | 0.233577 | 685 | 33 | 67 | 20.757576 | 0.779048 | 0.062774 | 0 | 0 | 0 | 0 | 0.021886 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0.058824 | 0.235294 | 0 | 0.470588 | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
413decd6b7ac0b8b57b4131955d7ec7af4d84bba | 3,201 | py | Python | eyelab/views/ui/ui_layergroup_entry.py | MedVisBonn/eyelab | 658997be88b87087e81820e26986b0fc938e5c2d | [
"MIT"
] | null | null | null | eyelab/views/ui/ui_layergroup_entry.py | MedVisBonn/eyelab | 658997be88b87087e81820e26986b0fc938e5c2d | [
"MIT"
] | null | null | null | eyelab/views/ui/ui_layergroup_entry.py | MedVisBonn/eyelab | 658997be88b87087e81820e26986b0fc938e5c2d | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
################################################################################
## Form generated from reading UI file 'ui_layergroup_entry.ui'
##
## Created by: Qt User Interface Compiler version 6.1.3
##
## WARNING! All changes made in this file will be lost when recompiling UI file!
#######... | 38.566265 | 87 | 0.659794 | 279 | 3,201 | 7.530466 | 0.405018 | 0.079962 | 0.059971 | 0.028558 | 0.079962 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023011 | 0.199 | 3,201 | 82 | 88 | 39.036585 | 0.796412 | 0.085598 | 0 | 0 | 1 | 0 | 0.046182 | 0.015273 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033898 | false | 0 | 0.067797 | 0 | 0.118644 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4142a722bde1ddff3f4dd78cd7f726007fba6f52 | 11,145 | py | Python | IdeaProjects/matplotDev/matplotlibDev1.py | sinomiko/project | 00fadb0033645f103692f5b06c861939a9d4aa0e | [
"BSD-3-Clause"
] | 1 | 2018-12-30T14:07:42.000Z | 2018-12-30T14:07:42.000Z | IdeaProjects/matplotDev/matplotlibDev1.py | sinomiko/project | 00fadb0033645f103692f5b06c861939a9d4aa0e | [
"BSD-3-Clause"
] | null | null | null | IdeaProjects/matplotDev/matplotlibDev1.py | sinomiko/project | 00fadb0033645f103692f5b06c861939a9d4aa0e | [
"BSD-3-Clause"
] | null | null | null | # encoding: utf-8
import numpy as np
import matplotlib as mpl
import matplotlib.pyplot as plt
#matplotlib inline
# 4.1. 一维数据集
#
# 在下面的所有例子中,我们将按照存储在 NumPy ndarray 对象中的数据绘制图表。当然,matplotlib 也能够按照以不同的 Python 格式存储的数据(如列表对象)绘制图表。首先,我们需要用于绘制图表的数据。为此,我们生成20个标准正态分布(伪)随机数,保存在一个NumPy ndarray中:
np.random.seed(1000)
y = np.random.... | 27.518519 | 251 | 0.713863 | 1,775 | 11,145 | 4.472113 | 0.308169 | 0.029982 | 0.025195 | 0.028219 | 0.349836 | 0.330688 | 0.313051 | 0.306248 | 0.301965 | 0.292391 | 0 | 0.039772 | 0.102109 | 11,145 | 404 | 252 | 27.586634 | 0.752273 | 0.254643 | 0 | 0.613718 | 0 | 0 | 0.082433 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.018051 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
414470a20b36382982558f1e95478f07692c39d3 | 472 | py | Python | tests/config.py | mizzy/maglica | 8bc19e7fc1bf632c9027ac80f6c3f39d8bd05f85 | [
"BSD-2-Clause"
] | 15 | 2015-02-01T17:36:18.000Z | 2021-06-10T20:51:14.000Z | tests/config.py | mizzy/maglica | 8bc19e7fc1bf632c9027ac80f6c3f39d8bd05f85 | [
"BSD-2-Clause"
] | null | null | null | tests/config.py | mizzy/maglica | 8bc19e7fc1bf632c9027ac80f6c3f39d8bd05f85 | [
"BSD-2-Clause"
] | null | null | null | # $ nosetests -v --rednose --with-coverage tests/config.py
from nose.tools import *
import maglica.config
def test_config_load():
config = maglica.config.load('etc/maglica.conf.example')
eq_(config.hosts[0], "host0.example.com")
eq_(config.hosts[1], "host1.example.com")
eq_(config.client["host"], "cl... | 27.764706 | 60 | 0.690678 | 66 | 472 | 4.651515 | 0.545455 | 0.130293 | 0.117264 | 0.175896 | 0.156352 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029484 | 0.137712 | 472 | 16 | 61 | 29.5 | 0.724816 | 0.118644 | 0 | 0 | 0 | 0 | 0.251208 | 0.057971 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.181818 | 0 | 0.272727 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4150929e942157f1bce17e4545425c85a0a9dfef | 16,023 | py | Python | main.py | impressive8/Practice | 6fc30fce500d97cb2091387bf2742b8e4cc4495d | [
"MIT"
] | 197 | 2018-04-08T01:37:29.000Z | 2022-03-25T07:17:18.000Z | main.py | impressive8/Practice | 6fc30fce500d97cb2091387bf2742b8e4cc4495d | [
"MIT"
] | 2 | 2020-02-01T17:42:41.000Z | 2021-06-09T10:38:49.000Z | main.py | impressive8/Practice | 6fc30fce500d97cb2091387bf2742b8e4cc4495d | [
"MIT"
] | 80 | 2018-06-29T04:00:34.000Z | 2022-03-24T07:57:33.000Z | # ===================================
# Import the libraries
# ===================================
import numpy as np
from matplotlib import pylab as plt
import imaging
import utility
import os,sys
# ===================================
# Which stages to run
# ===================================
do_add_noise = False
d... | 35.215385 | 135 | 0.576421 | 1,853 | 16,023 | 4.700486 | 0.160281 | 0.033754 | 0.037887 | 0.037199 | 0.518829 | 0.47256 | 0.419288 | 0.37899 | 0.338347 | 0.301722 | 0 | 0.100427 | 0.225676 | 16,023 | 454 | 136 | 35.292952 | 0.601596 | 0.279224 | 0 | 0.408 | 0 | 0 | 0.10302 | 0.058031 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.064 | 0.02 | 0 | 0.02 | 0.004 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
4150a5e0f2085d293f7b12df820c38652a42f8aa | 12,579 | py | Python | coldsweat/fetcher.py | jeroenh/coldsweat | 339f413ea6393c50c7b98b85a8c6fd74a4586567 | [
"MIT"
] | 106 | 2015-02-01T22:24:32.000Z | 2021-11-08T08:50:55.000Z | coldsweat/fetcher.py | jeroenh/coldsweat | 339f413ea6393c50c7b98b85a8c6fd74a4586567 | [
"MIT"
] | 47 | 2015-02-19T13:50:45.000Z | 2019-09-02T19:58:20.000Z | coldsweat/fetcher.py | jeroenh/coldsweat | 339f413ea6393c50c7b98b85a8c6fd74a4586567 | [
"MIT"
] | 23 | 2015-02-20T21:21:54.000Z | 2019-11-30T05:13:17.000Z | # -*- coding: utf-8 -*-
'''
Description: the feed fetcher
Copyright (c) 2013—2016 Andrea Peltrin
Portions are copyright (c) 2013 Rui Carmo
License: MIT (see LICENSE for details)
'''
import sys, os, re, time, urlparse
from datetime import datetime
from peewee import IntegrityError
import feedparser
import requests
fr... | 35.634561 | 144 | 0.565864 | 1,410 | 12,579 | 4.897872 | 0.239716 | 0.056762 | 0.027802 | 0.028671 | 0.165798 | 0.111932 | 0.086591 | 0.059948 | 0.053866 | 0.039676 | 0 | 0.00798 | 0.342476 | 12,579 | 352 | 145 | 35.735795 | 0.826865 | 0.092456 | 0 | 0.253521 | 0 | 0 | 0.115618 | 0.002331 | 0 | 0 | 0 | 0.002841 | 0 | 0 | null | null | 0.00939 | 0.065728 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
41569e5e017f94b8bc03473ce433df43099554cf | 286 | py | Python | phanterpwa/interface/Admin/production.py | PhanterJR/phanterpwa | 6daff40845b3a853cd08d319c4ce148f8deebed7 | [
"MIT"
] | 2 | 2019-06-06T10:37:01.000Z | 2021-10-16T03:36:28.000Z | phanterpwa/interface/Admin/production.py | PhanterJR/phanterpwa | 6daff40845b3a853cd08d319c4ce148f8deebed7 | [
"MIT"
] | null | null | null | phanterpwa/interface/Admin/production.py | PhanterJR/phanterpwa | 6daff40845b3a853cd08d319c4ce148f8deebed7 | [
"MIT"
] | null | null | null | from phanterpwa.server import PhanterPWATornado
if __name__ == "__main__":
import os
projectPath = os.path.dirname(__file__)
print(projectPath)
AppRunv = PhanterPWATornado(projectPath)
try:
AppRunv.run()
except KeyboardInterrupt:
AppRunv.stop()
| 23.833333 | 47 | 0.695804 | 27 | 286 | 6.925926 | 0.740741 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.22028 | 286 | 11 | 48 | 26 | 0.838565 | 0 | 0 | 0 | 0 | 0 | 0.027972 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.1 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
41581dd5a29d0d2428a3d341c3227a0c254875b8 | 271 | py | Python | join.py | florisdenhengst/pydial-benchmark-stopos | 0c2c70f327bc6ef41cfa849852ffe6300cc4f27e | [
"MIT"
] | null | null | null | join.py | florisdenhengst/pydial-benchmark-stopos | 0c2c70f327bc6ef41cfa849852ffe6300cc4f27e | [
"MIT"
] | null | null | null | join.py | florisdenhengst/pydial-benchmark-stopos | 0c2c70f327bc6ef41cfa849852ffe6300cc4f27e | [
"MIT"
] | null | null | null | import argparse
parser = argparse.ArgumentParser(description="Generate path to config file given input")
parser.add_argument('vars', nargs='+')
args = parser.parse_args()
# The last item of vars contains the random seed
result = '-'.join(args.vars[:-1])
print(result)
| 24.636364 | 88 | 0.745387 | 38 | 271 | 5.263158 | 0.763158 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004202 | 0.121771 | 271 | 10 | 89 | 27.1 | 0.836134 | 0.169742 | 0 | 0 | 1 | 0 | 0.206278 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
41612b688431101d4228b6a577f3b0ee96a44628 | 618 | py | Python | mysite/personal/urls.py | salimab/library1 | 9746329837ba40fa2d9816adf19ff9d9f559bbaa | [
"MIT"
] | null | null | null | mysite/personal/urls.py | salimab/library1 | 9746329837ba40fa2d9816adf19ff9d9f559bbaa | [
"MIT"
] | null | null | null | mysite/personal/urls.py | salimab/library1 | 9746329837ba40fa2d9816adf19ff9d9f559bbaa | [
"MIT"
] | null | null | null | from django.conf.urls import url
from personal.models import Book
from . import views
from django.contrib.auth.views import login
from django.views.generic import ListView, DetailView
urlpatterns = [
url(r'^$', views.index , name='index'),
url(r'^login/$', login, {'template_name': 'personal/login.html'}),
... | 34.333333 | 87 | 0.614887 | 78 | 618 | 4.794872 | 0.461538 | 0.042781 | 0.160428 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004158 | 0.221683 | 618 | 17 | 88 | 36.352941 | 0.773389 | 0 | 0 | 0 | 0 | 0 | 0.171799 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.384615 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
41619fc16893077852a588c0d3ebc29c67fdbfcc | 2,455 | py | Python | carbon/lib/carbon/log.py | ehazlett/graphite | b20573e92cb90de254505baa160210483f203be9 | [
"Apache-2.0"
] | 1 | 2015-05-21T10:23:03.000Z | 2015-05-21T10:23:03.000Z | carbon/lib/carbon/log.py | Cue/graphite | 450eeeb0eacc433bc5914c1dff2e05dbf420cf8d | [
"Apache-2.0"
] | null | null | null | carbon/lib/carbon/log.py | Cue/graphite | 450eeeb0eacc433bc5914c1dff2e05dbf420cf8d | [
"Apache-2.0"
] | null | null | null | import time
from sys import stdout, stderr
from zope.interface import implements
from twisted.python.log import startLoggingWithObserver, textFromEventDict, msg, err, ILogObserver
from twisted.python.logfile import DailyLogFile
class CarbonLogObserver(object):
implements(ILogObserver)
def log_to_dir(self, logdir... | 24.306931 | 98 | 0.701833 | 287 | 2,455 | 5.919861 | 0.271777 | 0.148323 | 0.090053 | 0.117716 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.159267 | 2,455 | 100 | 99 | 24.55 | 0.823159 | 0.006925 | 0 | 0.128571 | 0 | 0 | 0.068145 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.228571 | false | 0 | 0.071429 | 0.014286 | 0.357143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
416ea9fd8056f26889da4e772e2a3ac8b50231ab | 1,671 | py | Python | supports/pyload/src/pyload/plugins/accounts/EuroshareEu.py | LuckyNicky/pycrawler | 4b3fe2f6e8e51f236d95a64a89a44199e4e97743 | [
"Apache-2.0"
] | 1 | 2020-04-02T17:03:39.000Z | 2020-04-02T17:03:39.000Z | supports/pyload/src/pyload/plugins/accounts/EuroshareEu.py | LuckyNicky/pycrawler | 4b3fe2f6e8e51f236d95a64a89a44199e4e97743 | [
"Apache-2.0"
] | null | null | null | supports/pyload/src/pyload/plugins/accounts/EuroshareEu.py | LuckyNicky/pycrawler | 4b3fe2f6e8e51f236d95a64a89a44199e4e97743 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
import json
import re
import time
from ..base.account import BaseAccount
class EuroshareEu(BaseAccount):
__name__ = "EuroshareEu"
__type__ = "account"
__version__ = "0.12"
__status__ = "testing"
__pyload_version__ = "0.5"
__description__ = """Euroshare.eu account pl... | 27.393443 | 107 | 0.519449 | 177 | 1,671 | 4.672316 | 0.531073 | 0.066505 | 0.072551 | 0.076179 | 0.14873 | 0.113664 | 0.113664 | 0.113664 | 0.113664 | 0.113664 | 0 | 0.014172 | 0.324357 | 1,671 | 60 | 108 | 27.85 | 0.718335 | 0.012567 | 0 | 0 | 0 | 0.021739 | 0.279126 | 0.015777 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0.065217 | 0.086957 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
417221be3e316342a6fa9154928c6a83da99eeb9 | 499 | py | Python | tests/test_get_updates.py | concretesolutions/mysql-anonymous | a4246d657cb3749aa145c30320df78f9811b01d2 | [
"MIT"
] | null | null | null | tests/test_get_updates.py | concretesolutions/mysql-anonymous | a4246d657cb3749aa145c30320df78f9811b01d2 | [
"MIT"
] | null | null | null | tests/test_get_updates.py | concretesolutions/mysql-anonymous | a4246d657cb3749aa145c30320df78f9811b01d2 | [
"MIT"
] | null | null | null | from anonymize.anonymize import AnonymizeUpdate, AnonymizeScheme
def test_should_get_the_update_list():
data = AnonymizeUpdate(AnonymizeScheme("default", {
"tables": {
"user": {
"nullify": ["phone", ],
"random_email": ["email", ],
"random_ip": ['... | 29.352941 | 119 | 0.531062 | 46 | 499 | 5.586957 | 0.717391 | 0.233463 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028818 | 0.304609 | 499 | 16 | 120 | 31.1875 | 0.711816 | 0 | 0 | 0 | 0 | 0.076923 | 0.328657 | 0.058116 | 0 | 0 | 0 | 0 | 0.076923 | 1 | 0.076923 | false | 0 | 0.076923 | 0 | 0.153846 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4176b3250f2179deaa30e43611510dfb698b6de1 | 2,143 | py | Python | python_project/DeleteElasticsearchIndices.py | wangyuqianily/bbotte.github.io | 7b7522c1db445179a5be029f1da4db70bcc154f4 | [
"Apache-2.0"
] | 2 | 2021-08-22T16:13:27.000Z | 2021-08-22T16:13:34.000Z | python_project/DeleteElasticsearchIndices.py | wangyuqianily/bbotte.github.io | 7b7522c1db445179a5be029f1da4db70bcc154f4 | [
"Apache-2.0"
] | null | null | null | python_project/DeleteElasticsearchIndices.py | wangyuqianily/bbotte.github.io | 7b7522c1db445179a5be029f1da4db70bcc154f4 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
#ecoding=utf8
#自动删除elasticsearch数据库保留较久的数据
#普通数据保留时间为daysToKeep,access日志保留时间为access_date
#pip install elasticsearch 安装elasticsearch包
import datetime
import re
from elasticsearch import Elasticsearch
daysToKeep = 30
es = Elasticsearch('localhost:9200',timeout=60.0)
keep_time = (datetime.datetime... | 32.969231 | 104 | 0.698087 | 314 | 2,143 | 4.601911 | 0.33121 | 0.106574 | 0.070588 | 0.022837 | 0.281661 | 0.235294 | 0.137024 | 0.103806 | 0 | 0 | 0 | 0.028682 | 0.15399 | 2,143 | 64 | 105 | 33.484375 | 0.76834 | 0.251983 | 0 | 0 | 0 | 0 | 0.056747 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.075 | null | null | 0.075 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4180c010d94ce77b0775ae90c79802a1245aa772 | 1,999 | py | Python | src/tmdb/api_testing.py | kierrez/movie-website | 74f4ed018aba545dec190b70d62abe0ac6085462 | [
"MIT"
] | 1 | 2019-03-02T20:06:16.000Z | 2019-03-02T20:06:16.000Z | src/tmdb/api_testing.py | kierrez/movie-website | 74f4ed018aba545dec190b70d62abe0ac6085462 | [
"MIT"
] | 1 | 2022-01-07T22:57:41.000Z | 2022-01-07T22:57:41.000Z | src/tmdb/api_testing.py | kierrez/movie-website | 74f4ed018aba545dec190b70d62abe0ac6085462 | [
"MIT"
] | null | null | null | import django
import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "mysite.settings")
django.setup()
from django.contrib.auth import get_user_model
from importer.utils import import_ratings_from_csv
from titles.models import Title
from tmdb.api import TmdbWrapper, TitleDetailsGetter
User = get_user_model()
d... | 25.303797 | 100 | 0.72036 | 289 | 1,999 | 4.771626 | 0.269896 | 0.069616 | 0.078318 | 0.047861 | 0.248731 | 0.171139 | 0.063814 | 0.063814 | 0 | 0 | 0 | 0.038395 | 0.127064 | 1,999 | 78 | 101 | 25.628205 | 0.751862 | 0.654827 | 0 | 0 | 0 | 0 | 0.173375 | 0.113003 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.4375 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
4188b579ad1181892d567d0767ea95ba676c48c9 | 6,732 | py | Python | axonius_api_client/api/system/users.py | rwils83/axonius_api_client | 1990ed4d1287482a4648dc51edcaa5eb08255f5b | [
"MIT"
] | null | null | null | axonius_api_client/api/system/users.py | rwils83/axonius_api_client | 1990ed4d1287482a4648dc51edcaa5eb08255f5b | [
"MIT"
] | 3 | 2021-05-18T14:28:30.000Z | 2021-09-06T20:01:56.000Z | axonius_api_client/api/system/users.py | rwils83/axonius_api_client | 1990ed4d1287482a4648dc51edcaa5eb08255f5b | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""API model for working with system configuration."""
from typing import List, Optional
from ...exceptions import ApiError, NotFoundError
from ..mixins import ChildMixins
from ..parsers import parse_unchanged
class Users(ChildMixins): # pragma: no cover
"""User Role controls."""
de... | 33.162562 | 98 | 0.58066 | 853 | 6,732 | 4.385698 | 0.143025 | 0.036354 | 0.063619 | 0.0278 | 0.496124 | 0.412724 | 0.347501 | 0.283881 | 0.187383 | 0.155841 | 0 | 0.00042 | 0.292484 | 6,732 | 202 | 99 | 33.326733 | 0.785009 | 0.027629 | 0 | 0.307692 | 0 | 0 | 0.121812 | 0.024888 | 0.006993 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0.20979 | 0.027972 | 0 | 0.216783 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
41a1a65579b9b9fb4619e6879a5263fb65b7ed83 | 1,206 | py | Python | gameball/exceptions/gameball_exception.py | aaelfiky/gameball-python | bd7aead60ac53c6539f10a41d9c47e87569ce8c3 | [
"MIT"
] | 1 | 2022-03-15T14:08:06.000Z | 2022-03-15T14:08:06.000Z | gameball/exceptions/gameball_exception.py | aaelfiky/gameball-python | bd7aead60ac53c6539f10a41d9c47e87569ce8c3 | [
"MIT"
] | null | null | null | gameball/exceptions/gameball_exception.py | aaelfiky/gameball-python | bd7aead60ac53c6539f10a41d9c47e87569ce8c3 | [
"MIT"
] | 1 | 2022-01-17T00:38:18.000Z | 2022-01-17T00:38:18.000Z | from __future__ import absolute_import, division, print_function
class GameballException(Exception):
def __init__(
self,
message=None,
http_body=None,
json_body=None,
headers=None,
code=None,
):
super(GameballException, self).__init__(message)
... | 26.8 | 80 | 0.611111 | 130 | 1,206 | 5.346154 | 0.484615 | 0.079137 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001193 | 0.305141 | 1,206 | 44 | 81 | 27.409091 | 0.828162 | 0.216418 | 0 | 0.064516 | 0 | 0 | 0.032402 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.129032 | false | 0.064516 | 0.032258 | 0.064516 | 0.354839 | 0.032258 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
41a7bf570de5af2196396f6db7d2f68a8abdfe45 | 5,984 | py | Python | ana/fresnel.py | hanswenzel/opticks | b75b5929b6cf36a5eedeffb3031af2920f75f9f0 | [
"Apache-2.0"
] | 11 | 2020-07-05T02:39:32.000Z | 2022-03-20T18:52:44.000Z | ana/fresnel.py | hanswenzel/opticks | b75b5929b6cf36a5eedeffb3031af2920f75f9f0 | [
"Apache-2.0"
] | null | null | null | ana/fresnel.py | hanswenzel/opticks | b75b5929b6cf36a5eedeffb3031af2920f75f9f0 | [
"Apache-2.0"
] | 4 | 2020-09-03T20:36:32.000Z | 2022-01-19T07:42:21.000Z | #!/usr/bin/env python
#
# Copyright (c) 2019 Opticks Team. All Rights Reserved.
#
# This file is part of Opticks
# (see https://bitbucket.org/simoncblyth/opticks).
#
# 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... | 24.42449 | 92 | 0.546123 | 906 | 5,984 | 3.538631 | 0.290287 | 0.013724 | 0.012477 | 0.013724 | 0.168434 | 0.150967 | 0.128509 | 0.09607 | 0.07486 | 0.05053 | 0 | 0.039496 | 0.297627 | 5,984 | 244 | 93 | 24.52459 | 0.723293 | 0.244151 | 0 | 0.246269 | 0 | 0 | 0.020656 | 0 | 0 | 0 | 0 | 0 | 0.029851 | 1 | 0.08209 | false | 0.052239 | 0.044776 | 0.007463 | 0.179104 | 0.007463 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
41a80a7bb2ea9f3edd7fce0c895966513940b18c | 17,695 | py | Python | examples/api-samples/inc_samples/sample31.py | groupdocs-legacy-sdk/python | 80e5ef5a9a14ac4a7815c6cf933b5b2997381455 | [
"Apache-2.0"
] | null | null | null | examples/api-samples/inc_samples/sample31.py | groupdocs-legacy-sdk/python | 80e5ef5a9a14ac4a7815c6cf933b5b2997381455 | [
"Apache-2.0"
] | null | null | null | examples/api-samples/inc_samples/sample31.py | groupdocs-legacy-sdk/python | 80e5ef5a9a14ac4a7815c6cf933b5b2997381455 | [
"Apache-2.0"
] | null | null | null | ### This sample will show how to Create and Upload Envelop to GroupDocs account using Python SDK
# Import of classes from libraries
import os, time, random
from pyramid.renderers import render_to_response
from groupdocs.ApiClient import ApiClient
from groupdocs.StorageApi import StorageApi
from groupdocs.SignatureAp... | 64.345455 | 289 | 0.441989 | 1,267 | 17,695 | 6.041042 | 0.219416 | 0.025085 | 0.05017 | 0.066109 | 0.289522 | 0.261301 | 0.245362 | 0.228247 | 0.222367 | 0.209302 | 0 | 0.011637 | 0.490082 | 17,695 | 275 | 290 | 64.345455 | 0.83664 | 0.086635 | 0 | 0.322115 | 0 | 0 | 0.099981 | 0.044809 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.076923 | null | null | 0.004808 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
41a8ad6c52784414d3afc665096b267a843b65be | 678 | py | Python | tests/test_data.py | hhsecond/stockroom | d1335773e33493df07cc95f9bb48fbc351313dd6 | [
"Apache-2.0"
] | null | null | null | tests/test_data.py | hhsecond/stockroom | d1335773e33493df07cc95f9bb48fbc351313dd6 | [
"Apache-2.0"
] | null | null | null | tests/test_data.py | hhsecond/stockroom | d1335773e33493df07cc95f9bb48fbc351313dd6 | [
"Apache-2.0"
] | null | null | null | import pytest
import numpy as np
def test_save_data(stock):
arr = np.arange(20).reshape(4, 5)
stock.data['aset', 1] = arr
stock.commit("added data")
assert np.allclose(stock.data['aset', 1], arr)
del stock
def test_save_to_non_existing_column(stock):
arr = np.arange(20).reshape(4, 5)
wit... | 24.214286 | 54 | 0.675516 | 104 | 678 | 4.240385 | 0.375 | 0.102041 | 0.117914 | 0.126984 | 0.47619 | 0.360544 | 0.210884 | 0.210884 | 0.14966 | 0 | 0 | 0.030797 | 0.185841 | 678 | 27 | 55 | 25.111111 | 0.768116 | 0 | 0 | 0.315789 | 0 | 0 | 0.051622 | 0 | 0 | 0 | 0 | 0 | 0.052632 | 1 | 0.210526 | false | 0 | 0.105263 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
41a8d342baf300c3e7063c86b9c63dcb4a0417e4 | 515 | py | Python | pandas_market_calendars/holidays_jp.py | mgellman-radix/pandas_market_calendars | 2de80686267cdbb0b3b6878521fd2aebc6dca3bb | [
"MIT"
] | null | null | null | pandas_market_calendars/holidays_jp.py | mgellman-radix/pandas_market_calendars | 2de80686267cdbb0b3b6878521fd2aebc6dca3bb | [
"MIT"
] | null | null | null | pandas_market_calendars/holidays_jp.py | mgellman-radix/pandas_market_calendars | 2de80686267cdbb0b3b6878521fd2aebc6dca3bb | [
"MIT"
] | null | null | null | from pandas import (
Timestamp
)
# Apr. 30 (Tue.) Abdication Day
# May 1 (Wed.) Accession Day
# May 2 (Thu.) National Holiday
# May 3 (Fri.) Constitution Memorial Day
# May 4 (Sat.) Greenery Day
# May 6 (Mon.) Children's Day (May 5) observed
AscensionDays = [
Timestamp('2019-04-30', tz='Asia/... | 28.611111 | 49 | 0.619417 | 75 | 515 | 4.253333 | 0.546667 | 0.094044 | 0.172414 | 0.250784 | 0.326019 | 0.326019 | 0 | 0 | 0 | 0 | 0 | 0.116505 | 0.2 | 515 | 17 | 50 | 30.294118 | 0.657767 | 0.415534 | 0 | 0 | 0 | 0 | 0.340136 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
41b028aa3880d819cacddc876ce5774ff3b88727 | 1,240 | py | Python | Algo and DSA/LeetCode-Solutions-master/Python/insert-delete-getrandom-o1.py | Sourav692/FAANG-Interview-Preparation | f523e5c94d582328b3edc449ea16ac6ab28cdc81 | [
"Unlicense"
] | 3,269 | 2018-10-12T01:29:40.000Z | 2022-03-31T17:58:41.000Z | Algo and DSA/LeetCode-Solutions-master/Python/insert-delete-getrandom-o1.py | Sourav692/FAANG-Interview-Preparation | f523e5c94d582328b3edc449ea16ac6ab28cdc81 | [
"Unlicense"
] | 53 | 2018-12-16T22:54:20.000Z | 2022-02-25T08:31:20.000Z | Algo and DSA/LeetCode-Solutions-master/Python/insert-delete-getrandom-o1.py | Sourav692/FAANG-Interview-Preparation | f523e5c94d582328b3edc449ea16ac6ab28cdc81 | [
"Unlicense"
] | 1,236 | 2018-10-12T02:51:40.000Z | 2022-03-30T13:30:37.000Z | # Time: O(1)
# Space: O(n)
from random import randint
class RandomizedSet(object):
def __init__(self):
"""
Initialize your data structure here.
"""
self.__set = []
self.__used = {}
def insert(self, val):
"""
Inserts a value to the set. Returns true i... | 21.754386 | 106 | 0.542742 | 157 | 1,240 | 4.006369 | 0.33758 | 0.122417 | 0.063593 | 0.071542 | 0.402226 | 0.36566 | 0.216216 | 0.136725 | 0.136725 | 0.136725 | 0 | 0.0086 | 0.343548 | 1,240 | 56 | 107 | 22.142857 | 0.764128 | 0.282258 | 0 | 0.190476 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.190476 | false | 0 | 0.047619 | 0 | 0.52381 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
41b8fe61ea30cea12c5965b50e3135e870aa3f8f | 1,637 | py | Python | BuildSimHubAPI/measures/hvac_template.py | ruijis/buildsimhub_python_api | 67a88a421a5970b9134a97faf3d52a5a8a6c6258 | [
"MIT"
] | 19 | 2018-02-27T22:58:04.000Z | 2022-02-21T15:03:59.000Z | BuildSimHubAPI/measures/hvac_template.py | ruijis/buildsimhub_python_api | 67a88a421a5970b9134a97faf3d52a5a8a6c6258 | [
"MIT"
] | 11 | 2018-02-15T16:47:53.000Z | 2018-12-19T18:33:20.000Z | BuildSimHubAPI/measures/hvac_template.py | ruijis/buildsimhub_python_api | 67a88a421a5970b9134a97faf3d52a5a8a6c6258 | [
"MIT"
] | 11 | 2018-01-26T02:12:38.000Z | 2019-09-29T12:05:31.000Z | from .model_action import ModelAction
class HVACTemplate(ModelAction):
# this shows the ip to si conversion rate
# if unit is 'ip', then multiply this rate.
# for window it is the U-value
# convert U-value IP to SI
# The conversion will change w/ft2 to w/m2 if ip shows
NUM_HVAC = 14
def _... | 34.104167 | 79 | 0.60843 | 234 | 1,637 | 4.145299 | 0.547009 | 0.028866 | 0.012371 | 0.030928 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.057399 | 0.318876 | 1,637 | 47 | 80 | 34.829787 | 0.812556 | 0.128283 | 0 | 0 | 0 | 0 | 0.637324 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.027778 | 0.027778 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
41baba6d45efb33b6b1668aec3423b969a4f4ce4 | 1,633 | py | Python | test/mc_init_test.py | lechat/multiconf | c41cbe9ab3fb768a7d4dbd7b9f5d983b1306bde3 | [
"BSD-3-Clause"
] | null | null | null | test/mc_init_test.py | lechat/multiconf | c41cbe9ab3fb768a7d4dbd7b9f5d983b1306bde3 | [
"BSD-3-Clause"
] | null | null | null | test/mc_init_test.py | lechat/multiconf | c41cbe9ab3fb768a7d4dbd7b9f5d983b1306bde3 | [
"BSD-3-Clause"
] | null | null | null | # Copyright (c) 2012 Lars Hupfeldt Nielsen, Hupfeldt IT
# All rights reserved. This work is under a BSD license, see LICENSE.TXT.
# pylint: disable=E0611
from pytest import xfail
from .. import ConfigRoot, ConfigItem
from ..envs import EnvFactory
ef = EnvFactory()
dev1 = ef.Env('dev1')
dev2 = ef.Env('dev2')
g_dev ... | 23.666667 | 73 | 0.63319 | 262 | 1,633 | 3.774809 | 0.259542 | 0.040445 | 0.109201 | 0.121335 | 0.49545 | 0.351871 | 0.351871 | 0.31547 | 0.31547 | 0.31547 | 0 | 0.049402 | 0.231476 | 1,633 | 68 | 74 | 24.014706 | 0.738645 | 0.090018 | 0 | 0.4 | 0 | 0 | 0.039136 | 0 | 0 | 0 | 0 | 0 | 0.133333 | 0 | null | null | 0 | 0.066667 | null | null | 0.022222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
41be8ad9b87e428d6c9fb93063564080df1a6f56 | 1,650 | py | Python | plotly/run_funcs.py | NREL/MetMastVis | 0c3dd87540471c061eb491c871fdb32e6dabd31b | [
"Apache-2.0"
] | 1 | 2018-05-25T20:03:48.000Z | 2018-05-25T20:03:48.000Z | plotly/run_funcs.py | nhamilto/MetMast | 38475682adb21081c86c58e9008a278971306c23 | [
"Apache-2.0"
] | null | null | null | plotly/run_funcs.py | nhamilto/MetMast | 38475682adb21081c86c58e9008a278971306c23 | [
"Apache-2.0"
] | 2 | 2018-06-07T20:00:03.000Z | 2020-11-26T21:52:04.000Z | import vis
import utils
import met_funcs
import plotly_vis
import MetMastData
import pandas as pd
import matplotlib.pyplot as plt
from colour import Color
import plotly
from plotly import tools
#import plotly.tools as tls
import plotly.plotly as py
import plotly.graph_objs as go
# Place input files here
#inputfiles_he... | 34.375 | 238 | 0.807273 | 255 | 1,650 | 4.909804 | 0.396078 | 0.103834 | 0.055911 | 0.071885 | 0.164537 | 0.049521 | 0 | 0 | 0 | 0 | 0 | 0.041944 | 0.089697 | 1,650 | 48 | 239 | 34.375 | 0.791611 | 0.338182 | 0 | 0 | 0 | 0 | 0.040201 | 0.030151 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.461538 | 0 | 0.461538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
41c78c68d065b859c2c2e5291510d5c31db6e4ea | 3,166 | py | Python | pandaserver/test/testSimulReco14.py | rybkine/panda-server | 30fdeaa658a38fe2049849446c300c1e1f5b5231 | [
"Apache-2.0"
] | 1 | 2019-08-30T13:47:51.000Z | 2019-08-30T13:47:51.000Z | pandaserver/test/testSimulReco14.py | mkycanopus/panda-server | 0f7c36800c033fada8bbde53dceaab98770b6df2 | [
"Apache-2.0"
] | null | null | null | pandaserver/test/testSimulReco14.py | mkycanopus/panda-server | 0f7c36800c033fada8bbde53dceaab98770b6df2 | [
"Apache-2.0"
] | null | null | null | import sys
import time
import random
import commands
import userinterface.Client as Client
from taskbuffer.JobSpec import JobSpec
from taskbuffer.FileSpec import FileSpec
if len(sys.argv)>1:
site = sys.argv[1]
cloud = None
else:
site = None
cloud = 'US'
#cloud = 'TW'
#Recent changes (BNL migrati... | 31.039216 | 259 | 0.669299 | 371 | 3,166 | 5.679245 | 0.371968 | 0.066445 | 0.052682 | 0.013289 | 0.055055 | 0.037969 | 0.037969 | 0 | 0 | 0 | 0 | 0.0512 | 0.21036 | 3,166 | 101 | 260 | 31.346535 | 0.7912 | 0.062539 | 0 | 0.025 | 0 | 0.0125 | 0.210864 | 0.121795 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.0875 | null | null | 0.0375 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
41c7bcd341ef6d9db7278e79f57fd4a8cff03453 | 8,012 | py | Python | TweakApi/models/billing_source_sofort.py | tweak-com-public/tweak-api-client-python | 019f86da11fdb12683d516f8f37db5d717380bcc | [
"Apache-2.0"
] | null | null | null | TweakApi/models/billing_source_sofort.py | tweak-com-public/tweak-api-client-python | 019f86da11fdb12683d516f8f37db5d717380bcc | [
"Apache-2.0"
] | null | null | null | TweakApi/models/billing_source_sofort.py | tweak-com-public/tweak-api-client-python | 019f86da11fdb12683d516f8f37db5d717380bcc | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
"""
tweak-api
Tweak API to integrate with all the Tweak services. You can find out more about Tweak at <a href='https://www.tweak.com'>https://www.tweak.com</a>, #tweak.
OpenAPI spec version: 1.0.8-beta.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
... | 25.928803 | 165 | 0.585122 | 876 | 8,012 | 5.18379 | 0.192922 | 0.042281 | 0.176173 | 0.054614 | 0.443074 | 0.298172 | 0.125963 | 0.051531 | 0.014975 | 0 | 0 | 0.005593 | 0.330504 | 8,012 | 308 | 166 | 26.012987 | 0.840977 | 0.413255 | 0 | 0.238532 | 0 | 0 | 0.071653 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.201835 | false | 0 | 0.027523 | 0 | 0.357798 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
41cb6174b0eb3f32fce935cceb7087df91f7622f | 595 | py | Python | src/help/text/chsh.py | Hamzah-z/user-scripts | b345c812d45f1bd872c771809ecd3c0330ca236e | [
"Apache-2.0"
] | 1 | 2019-12-18T19:49:45.000Z | 2019-12-18T19:49:45.000Z | src/help/text/chsh.py | Hamzah-z/user-scripts | b345c812d45f1bd872c771809ecd3c0330ca236e | [
"Apache-2.0"
] | null | null | null | src/help/text/chsh.py | Hamzah-z/user-scripts | b345c812d45f1bd872c771809ecd3c0330ca236e | [
"Apache-2.0"
] | 1 | 2021-06-13T00:08:02.000Z | 2021-06-13T00:08:02.000Z | """chfn help text"""
CHSH = dict(
text="""chsh changes your "shell" on Redbrick.
** WARNING - Do not use this command if you are unsure
** of what you are doing! :-)
A "Shell" is the style of command line environment on RedBrick.
It is essentially, the 'prompt' and set of commands that you get
when you log in.
... | 27.045455 | 64 | 0.736134 | 98 | 595 | 4.469388 | 0.632653 | 0.073059 | 0.127854 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.169748 | 595 | 21 | 65 | 28.333333 | 0.88664 | 0.023529 | 0 | 0 | 0 | 0 | 0.942609 | 0.149565 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
68bb9912ef13f9b892f27cca3983560845ebbab2 | 1,926 | py | Python | algorithms/2.1_add_two_numbers.py | ycpeng7/leetcode_challenges | 1a55e2af08f8b5c5d204c16cc161721ffe7d6647 | [
"MIT"
] | null | null | null | algorithms/2.1_add_two_numbers.py | ycpeng7/leetcode_challenges | 1a55e2af08f8b5c5d204c16cc161721ffe7d6647 | [
"MIT"
] | null | null | null | algorithms/2.1_add_two_numbers.py | ycpeng7/leetcode_challenges | 1a55e2af08f8b5c5d204c16cc161721ffe7d6647 | [
"MIT"
] | null | null | null | #-------------------------------------------------------------------------------
# Add Two Numbers
#-------------------------------------------------------------------------------
# By Ying Peng
# https://leetcode.com/problems/add-two-numbers/
# Completed 12/3/20
#----------------------------------------------------... | 27.514286 | 80 | 0.330737 | 176 | 1,926 | 3.482955 | 0.375 | 0.019576 | 0.042414 | 0.029364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038961 | 0.280374 | 1,926 | 70 | 81 | 27.514286 | 0.403319 | 0.472482 | 0 | 0.058824 | 0 | 0 | 0.00804 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.029412 | 0 | 0.176471 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
68c3b0e3c32c4d0937107143623d703a7f6d4cba | 2,279 | py | Python | todo/bucketlist/tests/test_models.py | NdagiStanley/not-by-might | 5216c066c0869056e47259b33e42f375366f022c | [
"MIT"
] | 1 | 2019-01-15T20:18:50.000Z | 2019-01-15T20:18:50.000Z | todo/bucketlist/tests/test_models.py | NdagiStanley/not-by-might | 5216c066c0869056e47259b33e42f375366f022c | [
"MIT"
] | 17 | 2018-09-24T16:46:30.000Z | 2019-01-21T17:19:26.000Z | todo/bucketlist/tests/test_models.py | NdagiStanley/not-by-might | 5216c066c0869056e47259b33e42f375366f022c | [
"MIT"
] | 1 | 2016-04-13T11:16:27.000Z | 2016-04-13T11:16:27.000Z | import datetime
from django.test import TestCase
from django.core.urlresolvers import reverse
from ..models import Bucketlist, BucketlistItem, User
class UserModelTest(TestCase):
"""Test User Model"""
def setUp(self):
"""Create instances of the models"""
self.user = User.objects.create(userna... | 39.982456 | 94 | 0.678806 | 276 | 2,279 | 5.528986 | 0.202899 | 0.127785 | 0.112058 | 0.09502 | 0.440367 | 0.326343 | 0.277195 | 0.178244 | 0.119266 | 0.119266 | 0 | 0.001639 | 0.197016 | 2,279 | 56 | 95 | 40.696429 | 0.83224 | 0.153137 | 0 | 0 | 0 | 0 | 0.074508 | 0 | 0 | 0 | 0 | 0 | 0.371429 | 1 | 0.257143 | false | 0.028571 | 0.114286 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
68c8c49a947bfb4e3cdee097d291390bb5c31758 | 1,726 | py | Python | tests/test_backup.py | RSabet/rolling-backup | 9dcc9ca350d1e5d4d1ee031c36487253c60eafa0 | [
"MIT"
] | null | null | null | tests/test_backup.py | RSabet/rolling-backup | 9dcc9ca350d1e5d4d1ee031c36487253c60eafa0 | [
"MIT"
] | null | null | null | tests/test_backup.py | RSabet/rolling-backup | 9dcc9ca350d1e5d4d1ee031c36487253c60eafa0 | [
"MIT"
] | null | null | null | import random
import pytest
from rolling_backup import backup
CONTENT = "Hello"
def create_backups(image_file, num: int):
for i in range(num):
image_file.write(f"{CONTENT} - {i}")
assert backup(str(image_file), num_to_keep=num)
d = image_file.dirpath()
should = d / f... | 28.295082 | 95 | 0.616454 | 245 | 1,726 | 4.159184 | 0.261224 | 0.211973 | 0.09421 | 0.064769 | 0.570167 | 0.526006 | 0.411187 | 0.334642 | 0.334642 | 0.119725 | 0 | 0.01728 | 0.228853 | 1,726 | 61 | 96 | 28.295082 | 0.74831 | 0 | 0 | 0.295455 | 0 | 0 | 0.179964 | 0.09898 | 0 | 0 | 0 | 0 | 0.295455 | 1 | 0.136364 | false | 0 | 0.068182 | 0 | 0.227273 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
68caf27fb5451631df049d1573b4235a1bdc14a4 | 7,705 | py | Python | post/views.py | agiledesign2/drf-blog-post | a0dc7457e9e85e6b1a1f3aa81036b81f7054734f | [
"MIT"
] | null | null | null | post/views.py | agiledesign2/drf-blog-post | a0dc7457e9e85e6b1a1f3aa81036b81f7054734f | [
"MIT"
] | 1 | 2020-05-16T09:44:57.000Z | 2020-05-16T09:44:57.000Z | posts/views.py | agiledesign2/django-blog-post | 318636682b9d4993b5ef7c3e8ead8bb5460aba01 | [
"MIT"
] | null | null | null | from django.shortcuts import render, redirect, get_object_or_404
from django.utils import timezone
from .models import Post, Category
from taggit.models import Tag
from .forms import AddPostForm
#from .validator import group_required
# complex lookups (for searching)
from django.db.models import Q
from django.urls ... | 29.185606 | 94 | 0.662297 | 850 | 7,705 | 5.849412 | 0.202353 | 0.027152 | 0.033789 | 0.030973 | 0.431215 | 0.348753 | 0.31074 | 0.266693 | 0.24638 | 0.219831 | 0 | 0.001697 | 0.235042 | 7,705 | 263 | 95 | 29.296578 | 0.841873 | 0.136924 | 0 | 0.421687 | 0 | 0 | 0.064925 | 0.021642 | 0 | 0 | 0 | 0 | 0 | 1 | 0.096386 | false | 0.024096 | 0.096386 | 0.006024 | 0.620482 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
68cbf12bc70184cee6d43fa3ffcdca46bedc9617 | 9,137 | py | Python | python/snippet_utils.py | emory-irlab/Mouse2Gaze | 3280c905d76fb85b8a7b9803ec56a719730392d7 | [
"MIT"
] | null | null | null | python/snippet_utils.py | emory-irlab/Mouse2Gaze | 3280c905d76fb85b8a7b9803ec56a719730392d7 | [
"MIT"
] | null | null | null | python/snippet_utils.py | emory-irlab/Mouse2Gaze | 3280c905d76fb85b8a7b9803ec56a719730392d7 | [
"MIT"
] | null | null | null | # -- Writtenb by dsavenk
import psycopg2
from os import path
import re
import urllib2
#import emu_load_snippets
from BeautifulSoup import BeautifulSoup
#from html_resource_save import resource_extractor
import urllib
import httplib
import socket
#prefix = emu_load_snippets.prefix
prefix = 'dg21'
socket.setdefaulttimeo... | 39.214592 | 150 | 0.572398 | 1,138 | 9,137 | 4.372583 | 0.189807 | 0.032556 | 0.015675 | 0.032355 | 0.37701 | 0.309084 | 0.26869 | 0.251206 | 0.251206 | 0.229502 | 0 | 0.0071 | 0.290905 | 9,137 | 233 | 151 | 39.214592 | 0.76092 | 0.059757 | 0 | 0.331169 | 0 | 0 | 0.070255 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.012987 | 0.051948 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
68cd7fda8b73a02b4268932ba3d89d31da85143d | 3,749 | py | Python | utils/isa.py | skilkis/GENX | 049267ba7751013517d49939e4ce387484959500 | [
"MIT"
] | 2 | 2019-01-08T13:53:29.000Z | 2019-02-05T06:17:18.000Z | utils/isa.py | skilkis/GENX | 049267ba7751013517d49939e4ce387484959500 | [
"MIT"
] | null | null | null | utils/isa.py | skilkis/GENX | 049267ba7751013517d49939e4ce387484959500 | [
"MIT"
] | null | null | null | from constants import Constants
import numpy as np
# TODO finish implementing all regions of the atmosphere
class ISA(Constants):
def __init__(self, altitude=0):
""" Calculates International Standard Atmosphere properties for the specified geo-potential altitude
:param float altitude: Geo-potent... | 42.123596 | 113 | 0.558816 | 572 | 3,749 | 3.634615 | 0.262238 | 0.050505 | 0.034632 | 0.02886 | 0.366041 | 0.349687 | 0.275132 | 0.275132 | 0.275132 | 0.183742 | 0 | 0.183043 | 0.188317 | 3,749 | 88 | 114 | 42.602273 | 0.500164 | 0.657509 | 0 | 0.125 | 0 | 0 | 0.027961 | 0 | 0 | 0 | 0 | 0.011364 | 0 | 1 | 0.0625 | false | 0 | 0.0625 | 0 | 0.1875 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
68d4aa65d3bfe628d460fc7812a7481a60635970 | 7,768 | py | Python | django_cbtools/sync_gateway.py | smarttradeapp/django_couchbase | d96b32977bdb0dbf1a6e891ab29ea7b69ac6bed4 | [
"BSD-3-Clause"
] | 6 | 2016-06-23T08:21:43.000Z | 2018-07-19T09:42:32.000Z | django_cbtools/sync_gateway.py | smarttradeapp/django_cbtools | d96b32977bdb0dbf1a6e891ab29ea7b69ac6bed4 | [
"BSD-3-Clause"
] | 26 | 2015-10-17T08:59:36.000Z | 2021-06-10T17:48:41.000Z | django_cbtools/sync_gateway.py | smarttradeapp/django_couchbase | d96b32977bdb0dbf1a6e891ab29ea7b69ac6bed4 | [
"BSD-3-Clause"
] | 8 | 2015-11-28T13:47:19.000Z | 2020-12-15T12:58:00.000Z | import json
import logging
import requests
from requests.auth import HTTPBasicAuth
from django.conf import settings
logger = logging.getLogger(__name__)
class SyncGatewayException(Exception):
pass
class SyncGatewayConflict(SyncGatewayException):
pass
class SyncGateway(object):
@staticmethod
def ... | 35.962963 | 117 | 0.607364 | 842 | 7,768 | 5.387173 | 0.135392 | 0.063492 | 0.100529 | 0.043651 | 0.530644 | 0.459877 | 0.417108 | 0.414242 | 0.357804 | 0.315476 | 0 | 0.007742 | 0.301622 | 7,768 | 215 | 118 | 36.130233 | 0.828387 | 0.03862 | 0 | 0.361842 | 0 | 0 | 0.080118 | 0.004436 | 0 | 0 | 0 | 0 | 0 | 1 | 0.098684 | false | 0.078947 | 0.046053 | 0.006579 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
68d73c38a4b75247e3508965edda75784278bb36 | 727 | py | Python | app/services/interface.py | izconcept/Turnt | 28d25ebfbd43aa6472aa1f0eec7e73ec1b8d15d3 | [
"Apache-2.0"
] | 4 | 2018-01-29T05:51:32.000Z | 2018-02-08T05:18:47.000Z | app/services/interface.py | izconcept/Turnt | 28d25ebfbd43aa6472aa1f0eec7e73ec1b8d15d3 | [
"Apache-2.0"
] | 3 | 2018-01-30T21:41:09.000Z | 2018-01-31T18:20:01.000Z | app/services/interface.py | izconcept/Turnt | 28d25ebfbd43aa6472aa1f0eec7e73ec1b8d15d3 | [
"Apache-2.0"
] | 1 | 2019-03-29T19:32:28.000Z | 2019-03-29T19:32:28.000Z | import time
import pyautogui
def typer(command):
pyautogui.typewrite(command)
pyautogui.typewrite('\n')
def open_valve(axis, step):
typer("G91G0" + axis + "-" + str(step))
def close_valve(axis, step):
typer("G91G0" + axis + str(step))
def give_me_some_white_bottle(duration):
if duration == 0:... | 17.309524 | 43 | 0.636864 | 102 | 727 | 4.343137 | 0.313725 | 0.081264 | 0.090293 | 0.088036 | 0.634312 | 0.544018 | 0.352144 | 0.352144 | 0.167043 | 0 | 0 | 0.028419 | 0.225585 | 727 | 41 | 44 | 17.731707 | 0.758437 | 0 | 0 | 0.321429 | 0 | 0 | 0.026171 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.071429 | 0 | 0.392857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
68da264f2cfdcd5707af2f1031da22a94467e12b | 2,501 | py | Python | puzzler/puzzles/polyominoes45.py | tiwo/puzzler | 7ad3d9a792f0635f7ec59ffa85fb46b54fd77a7e | [
"Intel"
] | null | null | null | puzzler/puzzles/polyominoes45.py | tiwo/puzzler | 7ad3d9a792f0635f7ec59ffa85fb46b54fd77a7e | [
"Intel"
] | null | null | null | puzzler/puzzles/polyominoes45.py | tiwo/puzzler | 7ad3d9a792f0635f7ec59ffa85fb46b54fd77a7e | [
"Intel"
] | 1 | 2022-01-02T16:54:14.000Z | 2022-01-02T16:54:14.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# $Id$
# Author: David Goodger <goodger@python.org>
# Copyright: (C) 1998-2015 by David J. Goodger
# License: GPL 2 (see __init__.py)
"""
Concrete pentomino & tetromino (polyominoes of order 4 & 5) puzzles.
"""
from puzzler.puzzles.polyominoes import Polyominoes45, OneSi... | 21.938596 | 76 | 0.612555 | 305 | 2,501 | 4.911475 | 0.301639 | 0.072096 | 0.069426 | 0.074766 | 0.397864 | 0.333111 | 0.317089 | 0.226969 | 0.226969 | 0.226969 | 0 | 0.072813 | 0.236705 | 2,501 | 113 | 77 | 22.132743 | 0.711891 | 0.136745 | 0 | 0.327273 | 0 | 0 | 0.030317 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.145455 | false | 0 | 0.018182 | 0 | 0.654545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
68df548e4248d1c3e8da7e5ae61685570defbde2 | 576 | py | Python | space_manager/branches/migrations/0011_branch_minimap_img.py | yoojat/Space-Manager | dd482eb8a3ac8b5d4d06c63e5a5d9ccaeb3ce7b9 | [
"MIT"
] | null | null | null | space_manager/branches/migrations/0011_branch_minimap_img.py | yoojat/Space-Manager | dd482eb8a3ac8b5d4d06c63e5a5d9ccaeb3ce7b9 | [
"MIT"
] | 1 | 2018-02-27T15:21:53.000Z | 2018-02-27T15:21:53.000Z | space_manager/branches/migrations/0011_branch_minimap_img.py | yoojat/Space-Manager | dd482eb8a3ac8b5d4d06c63e5a5d9ccaeb3ce7b9 | [
"MIT"
] | 1 | 2018-02-16T08:31:30.000Z | 2018-02-16T08:31:30.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.9 on 2018-05-03 14:34
from __future__ import unicode_literals
from django.db import migrations, models
import space_manager.branches.models
class Migration(migrations.Migration):
dependencies = [
('branches', '0010_branch_lounge_img_cabinet'),
]
... | 26.181818 | 127 | 0.668403 | 66 | 576 | 5.606061 | 0.727273 | 0.064865 | 0.108108 | 0.140541 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04646 | 0.215278 | 576 | 21 | 128 | 27.428571 | 0.772124 | 0.118056 | 0 | 0 | 1 | 0 | 0.108911 | 0.059406 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.214286 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
68e02c589e8f1a8db10b0ff06b4d124889110e3b | 4,726 | py | Python | Source/sobrevivente.py | wesferr/Zombicide | a4ebec16565cd5aa0bd02dfeb53b108b1daca70a | [
"MIT"
] | 1 | 2020-02-27T16:09:00.000Z | 2020-02-27T16:09:00.000Z | Source/sobrevivente.py | wesferr/Zombicide | a4ebec16565cd5aa0bd02dfeb53b108b1daca70a | [
"MIT"
] | null | null | null | Source/sobrevivente.py | wesferr/Zombicide | a4ebec16565cd5aa0bd02dfeb53b108b1daca70a | [
"MIT"
] | null | null | null | # Copyright (c) 2018 by Wesley Ferreira. All Rights Reserved.
from pygame import *
from pygame.locals import *
from spritesGame import *
from math import *
class Sobrevivente(object):
def __init__(self, area, nome, imgPlayer = None):
self.area = area
self.grid = self.area.grid
self.seleci... | 30.490323 | 114 | 0.470588 | 609 | 4,726 | 3.635468 | 0.200328 | 0.065041 | 0.018067 | 0.03794 | 0.208672 | 0.117886 | 0.111111 | 0.092141 | 0.070461 | 0.070461 | 0 | 0.046957 | 0.391663 | 4,726 | 154 | 115 | 30.688312 | 0.72313 | 0.012484 | 0 | 0.251908 | 0 | 0 | 0.001082 | 0 | 0 | 0 | 0 | 0.006494 | 0 | 0 | null | null | 0.022901 | 0.030534 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
68e217a5de06b8634e03ceb0c929ab67a9c87db3 | 406 | py | Python | cv/migrations/0003_auto_20200826_1142.py | Shuhao99/2020Bridging-Coursework | e1e4c2aee7f6c626729023392fdd8854f3a76903 | [
"MIT"
] | null | null | null | cv/migrations/0003_auto_20200826_1142.py | Shuhao99/2020Bridging-Coursework | e1e4c2aee7f6c626729023392fdd8854f3a76903 | [
"MIT"
] | null | null | null | cv/migrations/0003_auto_20200826_1142.py | Shuhao99/2020Bridging-Coursework | e1e4c2aee7f6c626729023392fdd8854f3a76903 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.15 on 2020-08-26 03:42
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('cv', '0002_experience_experience_name'),
]
operations = [
migrations.AlterField(
model_name='experience',
name='exp... | 21.368421 | 53 | 0.6133 | 42 | 406 | 5.809524 | 0.714286 | 0.172131 | 0.147541 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.067797 | 0.273399 | 406 | 18 | 54 | 22.555556 | 0.759322 | 0.1133 | 0 | 0 | 1 | 0 | 0.178771 | 0.086592 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
68e8ab2bfd54518c739c30012b012e93c5a898d4 | 427 | py | Python | otter/json_schema/__init__.py | codebyravi/otter | d58077ba4af24a586ae0a0becaf6da96b716a597 | [
"Apache-2.0"
] | 20 | 2015-02-11T16:32:07.000Z | 2019-11-12T03:27:54.000Z | otter/json_schema/__init__.py | codebyravi/otter | d58077ba4af24a586ae0a0becaf6da96b716a597 | [
"Apache-2.0"
] | 1,145 | 2015-01-01T00:00:47.000Z | 2022-02-11T03:40:39.000Z | otter/json_schema/__init__.py | codebyravi/otter | d58077ba4af24a586ae0a0becaf6da96b716a597 | [
"Apache-2.0"
] | 29 | 2015-01-08T15:00:11.000Z | 2021-02-16T16:33:53.000Z | """
Draft 3 JSON schemas (http://tools.ietf.org/html/draft-zyp-json-schema-03)
of data that will be transmitted to and from otter.
"""
import functools
from jsonschema import Draft3Validator, validate, FormatChecker
# This is there since later modules need to add specific format validators to this.
format_checker = F... | 32.846154 | 90 | 0.798595 | 59 | 427 | 5.728814 | 0.711864 | 0.115385 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013298 | 0.119438 | 427 | 12 | 91 | 35.583333 | 0.885638 | 0.489461 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
68eb17fe8d008791a0fef854b9af4d27846c10b0 | 438 | py | Python | hirearefugee/userclass/migrations/0003_auto_20200812_1803.py | maximilianharr/hirearefugee | 307afb512af86128d5ce011f1779964dd71976fd | [
"Apache-2.0"
] | 1 | 2020-09-07T07:20:04.000Z | 2020-09-07T07:20:04.000Z | hirearefugee/userclass/migrations/0003_auto_20200812_1803.py | maximilianharr/hirearefugee | 307afb512af86128d5ce011f1779964dd71976fd | [
"Apache-2.0"
] | 2 | 2020-09-14T18:13:55.000Z | 2020-09-14T21:21:28.000Z | hirearefugee/userclass/migrations/0003_auto_20200812_1803.py | maximilianharr/hirearefugee | 307afb512af86128d5ce011f1779964dd71976fd | [
"Apache-2.0"
] | null | null | null | # Generated by Django 3.1 on 2020-08-12 18:03
from django.conf import settings
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('userclass', '0002_auto_20200812_1731'),
]
operations = [
... | 21.9 | 66 | 0.652968 | 47 | 438 | 5.914894 | 0.765957 | 0.071942 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.091463 | 0.251142 | 438 | 19 | 67 | 23.052632 | 0.756098 | 0.098174 | 0 | 0 | 1 | 0 | 0.132316 | 0.058524 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.153846 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
68f9361114cb2bfb34f389991f3680138e33eed4 | 1,438 | py | Python | solutions/day2.py | alanahanson/adventofcode2017 | b73e545a6cef356682228266f5344cd40303ee0c | [
"MIT"
] | null | null | null | solutions/day2.py | alanahanson/adventofcode2017 | b73e545a6cef356682228266f5344cd40303ee0c | [
"MIT"
] | null | null | null | solutions/day2.py | alanahanson/adventofcode2017 | b73e545a6cef356682228266f5344cd40303ee0c | [
"MIT"
] | null | null | null | from unittest import TestCase
def checksum(data, operator):
rows = [[int(num) for num in row.strip().split()] for row in data.strip().split("\n")]
return sum(operator(rows))
def difference(rows):
return [max(row) - min(row) for row in rows]
def quotients(rows):
return [find_quotient(row) for row in ... | 28.196078 | 90 | 0.639082 | 212 | 1,438 | 4.169811 | 0.339623 | 0.084842 | 0.130091 | 0.126697 | 0.294118 | 0.122172 | 0 | 0 | 0 | 0 | 0 | 0.04304 | 0.240612 | 1,438 | 50 | 91 | 28.76 | 0.766484 | 0 | 0 | 0 | 0 | 0 | 0.073765 | 0.017397 | 0 | 0 | 0 | 0 | 0.135135 | 1 | 0.243243 | false | 0 | 0.027027 | 0.054054 | 0.405405 | 0.054054 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
68fdedab8714215232ad67d3eb905ec4469d59d7 | 745 | py | Python | olea/models/mango.py | Pix-00/olea | 98bee1fd8866a3929f685a139255afb7b6813f31 | [
"Apache-2.0"
] | 2 | 2020-06-18T03:25:52.000Z | 2020-06-18T07:33:45.000Z | olea/models/mango.py | Pix-00/olea | 98bee1fd8866a3929f685a139255afb7b6813f31 | [
"Apache-2.0"
] | 15 | 2021-01-28T07:11:04.000Z | 2021-05-24T07:11:37.000Z | olea/models/mango.py | Pix-00/olea | 98bee1fd8866a3929f685a139255afb7b6813f31 | [
"Apache-2.0"
] | null | null | null | __all__ = ['Mango']
from sqlalchemy_ import BaseModel, Column, ForeignKey, UniqueConstraint, relationship
from sqlalchemy_.types import JSONB, DateTime, Integer, String
class Mango(BaseModel):
__tablename__ = 'mango'
id = Column(String, primary_key=True)
pit_id = Column(String, ForeignKey('pit.id', onde... | 28.653846 | 85 | 0.691275 | 85 | 745 | 5.8 | 0.564706 | 0.097363 | 0.056795 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00491 | 0.179866 | 745 | 25 | 86 | 29.8 | 0.801964 | 0 | 0 | 0 | 0 | 0 | 0.068456 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.111111 | 0.055556 | 0.888889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
ec055eebc44bbfef95ec6bc6d02a5ba6d8be2c7b | 5,384 | py | Python | tabular_ml_toolkit/preprocessor.py | psmathur/tabular_ml_toolkit | 46bd88abc398aeb5c7024c5b24c7a7ea9b3b5fb1 | [
"Apache-2.0"
] | 1 | 2021-11-07T04:50:26.000Z | 2021-11-07T04:50:26.000Z | tabular_ml_toolkit/preprocessor.py | psmathur/tabular_ml_toolkit | 46bd88abc398aeb5c7024c5b24c7a7ea9b3b5fb1 | [
"Apache-2.0"
] | null | null | null | tabular_ml_toolkit/preprocessor.py | psmathur/tabular_ml_toolkit | 46bd88abc398aeb5c7024c5b24c7a7ea9b3b5fb1 | [
"Apache-2.0"
] | null | null | null | # AUTOGENERATED! DO NOT EDIT! File to edit: 01_preprocessor.ipynb (unless otherwise specified).
__all__ = ['PreProcessor']
# Cell
from .dataframeloader import *
from .logger import *
# Cell
# hide
from sklearn.compose import ColumnTransformer, make_column_transformer
from sklearn.pipeline import Pipeline
from sklear... | 46.017094 | 119 | 0.676634 | 589 | 5,384 | 5.806452 | 0.252971 | 0.049123 | 0.016374 | 0.015205 | 0.353216 | 0.28655 | 0.265497 | 0.256433 | 0.195614 | 0.195614 | 0 | 0.001248 | 0.255572 | 5,384 | 117 | 120 | 46.017094 | 0.852046 | 0.266159 | 0 | 0.20339 | 1 | 0 | 0.127928 | 0.016474 | 0 | 0 | 0 | 0.008547 | 0 | 1 | 0.101695 | false | 0.016949 | 0.169492 | 0.016949 | 0.338983 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ec0c809a1777f7f4d7cd38a0f0c627c6975ec5e6 | 2,105 | py | Python | C Project Files/py/postscriptNameMap.py | colinmford/font-production-project-template-glyphs | ee74ee217f32a6192cf27df122076d397aa1b743 | [
"MIT"
] | 1 | 2021-08-04T21:08:39.000Z | 2021-08-04T21:08:39.000Z | C Project Files/py/postscriptNameMap.py | colinmford/font-production-project-template-glyphs | ee74ee217f32a6192cf27df122076d397aa1b743 | [
"MIT"
] | null | null | null | C Project Files/py/postscriptNameMap.py | colinmford/font-production-project-template-glyphs | ee74ee217f32a6192cf27df122076d397aa1b743 | [
"MIT"
] | null | null | null | def generatePostscriptNameMap(glyphList):
"""
Generate a PostScript Name Map to be stored in the "public.postscriptNames" lib.
Used to rename glyphs during generation, like so:
{"indianrupee.tab": "uni20B9.tab"}
Args:
glyphList (list): A list of Glyph objects or a Font object (Defcon or F... | 35.677966 | 104 | 0.593349 | 282 | 2,105 | 4.425532 | 0.439716 | 0.008013 | 0.041667 | 0.057692 | 0.084936 | 0.084936 | 0.040064 | 0.040064 | 0.040064 | 0 | 0 | 0.014875 | 0.297387 | 2,105 | 59 | 105 | 35.677966 | 0.828938 | 0.449881 | 0 | 0 | 1 | 0 | 0.065589 | 0.039533 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0 | 0.074074 | 0 | 0.148148 | 0.074074 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ec0e4acb60e907436a56c51a02a6b7cd8feac0fe | 369 | py | Python | test/__init__.py | Cazoo-uk/py-logger | 97f5e4cbb800262615130a20c70ad6e2fd039b6f | [
"MIT"
] | 1 | 2021-09-30T10:01:36.000Z | 2021-09-30T10:01:36.000Z | test/__init__.py | Cazoo-uk/py-logger | 97f5e4cbb800262615130a20c70ad6e2fd039b6f | [
"MIT"
] | 1 | 2020-09-25T07:54:24.000Z | 2020-10-12T11:11:48.000Z | test/__init__.py | Cazoo-uk/py-logger | 97f5e4cbb800262615130a20c70ad6e2fd039b6f | [
"MIT"
] | null | null | null | class LambdaContext(object):
def __init__(
self,
request_id="request_id",
function_name="my-function",
function_version="v1.0",
):
self.aws_request_id = request_id
self.function_name = function_name
self.function_version = function_version
def get_rem... | 26.357143 | 48 | 0.650407 | 43 | 369 | 5.139535 | 0.511628 | 0.162896 | 0.144796 | 0.162896 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007407 | 0.268293 | 369 | 13 | 49 | 28.384615 | 0.811111 | 0 | 0 | 0 | 0 | 0 | 0.067751 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0.083333 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ec0fa4f849b4d211abfec3d93bde5caf14d92597 | 1,743 | py | Python | raspberrypy/motor/L289N.py | slipstreamJumper/RaspberryPy | 40e91b73a1b21c84b0b66f193a955e53c5286a38 | [
"MIT"
] | 1 | 2022-01-23T19:21:08.000Z | 2022-01-23T19:21:08.000Z | raspberrypy/motor/L289N.py | slipstreamJumper/RaspberryPy | 40e91b73a1b21c84b0b66f193a955e53c5286a38 | [
"MIT"
] | 2 | 2020-07-22T17:20:33.000Z | 2020-07-23T00:30:55.000Z | raspberrypy/motor/L289N.py | slipstreamJumper/RaspberryPy | 40e91b73a1b21c84b0b66f193a955e53c5286a38 | [
"MIT"
] | 2 | 2019-07-02T00:26:25.000Z | 2020-07-22T17:26:56.000Z | from ..utils.GPIO_utils import setup_output, output, GPIO_Base
from time import sleep
import random
def keep_decorate(func):
def func_wrapper(self, keep=None):
func(self, keep)
if keep is None: keep = self.keep
if keep > 0:
sleep(keep)
self._stop()
return func_wrapper
class L289N(GPIO_Base... | 27.234375 | 85 | 0.652324 | 267 | 1,743 | 4.104869 | 0.209738 | 0.10219 | 0.120438 | 0.09854 | 0.525547 | 0.525547 | 0.504562 | 0.480839 | 0.480839 | 0.480839 | 0 | 0.032647 | 0.191624 | 1,743 | 63 | 86 | 27.666667 | 0.745209 | 0.133678 | 0 | 0.38 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.26 | false | 0 | 0.06 | 0 | 0.36 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ec10ee62b4a33eb795748660e631547aad46c65a | 6,653 | py | Python | fsm.py | Tattos/TOC-Project-2017 | 5e7b5603772583499b1339c9c963a8783f01f767 | [
"MIT"
] | null | null | null | fsm.py | Tattos/TOC-Project-2017 | 5e7b5603772583499b1339c9c963a8783f01f767 | [
"MIT"
] | null | null | null | fsm.py | Tattos/TOC-Project-2017 | 5e7b5603772583499b1339c9c963a8783f01f767 | [
"MIT"
] | null | null | null | # -- coding: UTF-8 --
from transitions.extensions import GraphMachine
global name
global reserve
class TocMachine(GraphMachine):
def __init__(self, **machine_configs):
self.machine = GraphMachine(
model = self,
**machine_configs
)
#state 1(finish)
def is_going_to_state1... | 43.201299 | 188 | 0.632948 | 933 | 6,653 | 4.334405 | 0.163987 | 0.093472 | 0.051682 | 0.069238 | 0.579624 | 0.477498 | 0.37908 | 0.242087 | 0.211919 | 0.099654 | 0 | 0.026435 | 0.238088 | 6,653 | 153 | 189 | 43.48366 | 0.771355 | 0.023749 | 0 | 0.244444 | 0 | 0.02963 | 0.213183 | 0.00741 | 0 | 0 | 0 | 0 | 0 | 1 | 0.303704 | false | 0 | 0.007407 | 0 | 0.422222 | 0.096296 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ec12c5e43990e93dd5973a26cd375c935d1d422e | 29,947 | py | Python | header_common.py | invisiblebob395/awefawe | 42daf9d3ae06bcdb3b91973d94eed8bed1303e2b | [
"BSD-3-Clause"
] | null | null | null | header_common.py | invisiblebob395/awefawe | 42daf9d3ae06bcdb3b91973d94eed8bed1303e2b | [
"BSD-3-Clause"
] | null | null | null | header_common.py | invisiblebob395/awefawe | 42daf9d3ae06bcdb3b91973d94eed8bed1303e2b | [
"BSD-3-Clause"
] | null | null | null | ###################################################
# header_common.py
# This file contains common declarations.
# DO NOT EDIT THIS FILE!
###################################################
server_event_preset_message = 0
server_event_play_sound = 1
server_event_scene_prop_p... | 27.883613 | 170 | 0.631182 | 4,099 | 29,947 | 4.204928 | 0.277629 | 0.105593 | 0.011604 | 0.016245 | 0.165526 | 0.101416 | 0.082444 | 0.073509 | 0.073509 | 0.071188 | 0 | 0.159939 | 0.322503 | 29,947 | 1,073 | 171 | 27.909599 | 0.689585 | 0.04892 | 0 | 0.096 | 1 | 0 | 0.001094 | 0 | 0 | 0 | 0.008684 | 0 | 0 | 1 | 0.001 | false | 0.002 | 0 | 0 | 0.002 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ec156505e91c441a8ad50c79db3df921782b1221 | 440 | py | Python | tests/resources/my_dummy_handlers/dummy_handler_multiple_args_too_few.py | stude1/robotframework-oxygen | e9845ab5d392d5d75d296d8cbca47f3a66659697 | [
"MIT"
] | 13 | 2020-05-15T08:30:13.000Z | 2022-01-24T01:10:29.000Z | tests/resources/my_dummy_handlers/dummy_handler_multiple_args_too_few.py | stude1/robotframework-oxygen | e9845ab5d392d5d75d296d8cbca47f3a66659697 | [
"MIT"
] | 23 | 2020-05-18T09:00:16.000Z | 2022-01-20T06:32:38.000Z | tests/resources/my_dummy_handlers/dummy_handler_multiple_args_too_few.py | stude1/robotframework-oxygen | e9845ab5d392d5d75d296d8cbca47f3a66659697 | [
"MIT"
] | 5 | 2020-08-21T07:08:18.000Z | 2021-11-29T18:04:46.000Z | from oxygen import BaseHandler
class MyDummyHandler(BaseHandler):
'''
A test handler that throws mismatch argument exception because
parse_results expects too many arguments
'''
def run_my_dummy_handler(self, result_file):
return result_file, 'foo'
def parse_results(self, result_file... | 23.157895 | 66 | 0.625 | 50 | 440 | 5.32 | 0.64 | 0.150376 | 0.146617 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.295455 | 440 | 18 | 67 | 24.444444 | 0.858065 | 0.234091 | 0 | 0 | 0 | 0 | 0.041009 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.1 | 0.2 | 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 | 1 | 0 | 0 | 0 | 1 |
ec187475e9c297665ae42158746fc88cffcf55f6 | 3,534 | py | Python | deep_qa-master/deep_qa/data/instances/sequence_tagging/tagging_instance.py | RTHMaK/RPGOne | 3f3ada7db1762781668bfb2377154fdc00e17212 | [
"Apache-2.0"
] | 1 | 2017-04-11T13:03:55.000Z | 2017-04-11T13:03:55.000Z | deep_qa-master/deep_qa/data/instances/sequence_tagging/tagging_instance.py | RTHMaK/RPGOne | 3f3ada7db1762781668bfb2377154fdc00e17212 | [
"Apache-2.0"
] | null | null | null | deep_qa-master/deep_qa/data/instances/sequence_tagging/tagging_instance.py | RTHMaK/RPGOne | 3f3ada7db1762781668bfb2377154fdc00e17212 | [
"Apache-2.0"
] | null | null | null | from typing import Dict, List, Any
import numpy
from overrides import overrides
from ..instance import TextInstance, IndexedInstance
from ...data_indexer import DataIndexer
class TaggingInstance(TextInstance):
"""
A ``TaggingInstance`` represents a passage of text and a tag sequence over that text.
The... | 42.071429 | 99 | 0.665535 | 437 | 3,534 | 5.196796 | 0.340961 | 0.042272 | 0.03963 | 0.01321 | 0.022897 | 0.022897 | 0 | 0 | 0 | 0 | 0 | 0.001895 | 0.253254 | 3,534 | 83 | 100 | 42.578313 | 0.858659 | 0.270232 | 0 | 0.183673 | 0 | 0 | 0.034483 | 0.009331 | 0 | 0 | 0 | 0 | 0.020408 | 1 | 0.22449 | false | 0 | 0.102041 | 0.061224 | 0.489796 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ec18af381f04c60608f7445c92c54531b795a35a | 494 | py | Python | readFromWrite.py | openNuke/toolkit | 3ee4d13865f8327532906d42af53a929a55e354c | [
"BSD-3-Clause"
] | 36 | 2015-11-01T20:13:18.000Z | 2021-06-24T22:01:07.000Z | readFromWrite.py | ZBYVFX/toolset | aaf213ddbaa0f924306271544b04760ddea7eee2 | [
"BSD-3-Clause"
] | 2 | 2015-10-19T09:04:34.000Z | 2015-12-16T13:58:03.000Z | readFromWrite.py | ZBYVFX/toolset | aaf213ddbaa0f924306271544b04760ddea7eee2 | [
"BSD-3-Clause"
] | 9 | 2015-06-15T17:38:20.000Z | 2021-05-23T06:05:13.000Z | #rafal kaniewski
# todo mov not working
import nuke
from PySide import QtGui
def run(node):
clipboard = QtGui.QApplication.clipboard()
filename = node['file'].evaluate()
filesplit = filename.rsplit('.',-2)
filesplit[1] = '%0'+str(len(filesplit[1]))+'d'
filep = '.'.join(filesplit)
filenameFrame = nuke... | 23.52381 | 84 | 0.678138 | 59 | 494 | 5.677966 | 0.627119 | 0.059701 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016432 | 0.137652 | 494 | 20 | 85 | 24.7 | 0.769953 | 0.121457 | 0 | 0 | 0 | 0 | 0.051044 | 0 | 0 | 0 | 0 | 0.05 | 0 | 1 | 0.090909 | false | 0 | 0.181818 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ec1c799b1e47e5da04c6afaaf74aef8c07f2bf38 | 543 | py | Python | src/settings.py | psykzz/st3-gitblame | 42179a999d03b19d9f20b85d2f30fe5c288d0f59 | [
"MIT"
] | 28 | 2017-02-01T19:28:53.000Z | 2019-04-03T13:55:37.000Z | src/settings.py | frou/st3-gitblame | 154163dc5e08eb37a3f7181f500719d577b61cfa | [
"MIT"
] | 43 | 2019-04-07T14:07:55.000Z | 2022-01-29T22:20:09.000Z | src/settings.py | psykzz/st3-gitblame | 42179a999d03b19d9f20b85d2f30fe5c288d0f59 | [
"MIT"
] | 14 | 2017-02-10T22:00:35.000Z | 2019-04-01T17:45:43.000Z | import sublime
def pkg_settings():
# NOTE: The sublime.load_settings(...) call has to be deferred to this function,
# rather than just being called immediately and assigning a module-level variable,
# because of: https://www.sublimetext.com/docs/3/api_reference.html#plugin_lifecycle
return sublime.loa... | 36.2 | 88 | 0.801105 | 76 | 543 | 5.407895 | 0.657895 | 0.107056 | 0.10219 | 0.097324 | 0.121655 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002092 | 0.119705 | 543 | 14 | 89 | 38.785714 | 0.857741 | 0.443831 | 0 | 0 | 0 | 0 | 0.276094 | 0.074074 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0.166667 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
ec1f2ee5219b5c68ec78fd02b208a221d7e1c648 | 395 | py | Python | recruiting/migrations/0002_adminresume_bottom_msg.py | NSYT0607/DONGKEY | 83f926f22a10a28895c9ad71038c9a27d200e231 | [
"MIT"
] | 1 | 2018-04-10T11:47:16.000Z | 2018-04-10T11:47:16.000Z | recruiting/migrations/0002_adminresume_bottom_msg.py | NSYT0607/DONGKEY | 83f926f22a10a28895c9ad71038c9a27d200e231 | [
"MIT"
] | null | null | null | recruiting/migrations/0002_adminresume_bottom_msg.py | NSYT0607/DONGKEY | 83f926f22a10a28895c9ad71038c9a27d200e231 | [
"MIT"
] | null | null | null | # Generated by Django 2.0.1 on 2018-02-15 22:20
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('recruiting', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='adminresume',
name='bottom_msg',
... | 20.789474 | 60 | 0.597468 | 41 | 395 | 5.682927 | 0.853659 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.067138 | 0.283544 | 395 | 18 | 61 | 21.944444 | 0.756184 | 0.113924 | 0 | 0 | 1 | 0 | 0.16092 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ec286e80af59f4eccb8146eeff506741d8b1caa5 | 1,162 | py | Python | sdk/core/azure-common/azure/common/cloud.py | vincenttran-msft/azure-sdk-for-python | 348b56f9f03eeb3f7b502eed51daf494ffff874d | [
"MIT"
] | 1 | 2022-03-09T08:59:13.000Z | 2022-03-09T08:59:13.000Z | sdk/core/azure-common/azure/common/cloud.py | vincenttran-msft/azure-sdk-for-python | 348b56f9f03eeb3f7b502eed51daf494ffff874d | [
"MIT"
] | null | null | null | sdk/core/azure-common/azure/common/cloud.py | vincenttran-msft/azure-sdk-for-python | 348b56f9f03eeb3f7b502eed51daf494ffff874d | [
"MIT"
] | 1 | 2022-03-04T06:21:56.000Z | 2022-03-04T06:21:56.000Z | #-------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#--------------------------------------------------------------------------
def get_cli... | 37.483871 | 97 | 0.575731 | 150 | 1,162 | 4.413333 | 0.52 | 0.084592 | 0.126888 | 0.039275 | 0.048338 | 0.048338 | 0 | 0 | 0 | 0 | 0 | 0.025219 | 0.215146 | 1,162 | 30 | 98 | 38.733333 | 0.700658 | 0.507745 | 0 | 0 | 0 | 0.090909 | 0.50469 | 0.045028 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | true | 0 | 0.272727 | 0 | 0.454545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ec291a6b6790452f3e97a82363e5973cfb65a86a | 3,473 | py | Python | vega/app.py | YEZHIAN1996/pythonstudy | a8774ef97266e8ab0289484ef190d2ee55f1d37c | [
"Apache-2.0"
] | 1 | 2022-02-22T01:54:56.000Z | 2022-02-22T01:54:56.000Z | vega/app.py | YEZHIAN1996/pythonstudy | a8774ef97266e8ab0289484ef190d2ee55f1d37c | [
"Apache-2.0"
] | null | null | null | vega/app.py | YEZHIAN1996/pythonstudy | a8774ef97266e8ab0289484ef190d2ee55f1d37c | [
"Apache-2.0"
] | null | null | null | from colorama import Fore, Style
from getpass import getpass
from service.user_service import UserService
from service.news_service import NewsService
import mysql
import os
import sys
import time
__user_service = UserService()
__news_service = NewsService()
while 1:
os.system('clear')
print(Fore.LIGHTBLUE_EX,... | 43.4125 | 118 | 0.424417 | 346 | 3,473 | 4.106936 | 0.251445 | 0.120338 | 0.114004 | 0.126671 | 0.4905 | 0.372273 | 0.247713 | 0.23012 | 0.208304 | 0.208304 | 0 | 0.013423 | 0.442269 | 3,473 | 80 | 119 | 43.4125 | 0.720186 | 0.001152 | 0 | 0.376623 | 0 | 0 | 0.112457 | 0.012687 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.064935 | 0.103896 | 0 | 0.103896 | 0.311688 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
ec2a05caf70b6d5b3ac7425d6fe6c408d8020aaa | 2,362 | py | Python | xbox/webapi/api/provider/titlehub/models.py | OpenXbox/xbox-webapi-python | 1a5aeb1b1ce94f38b5dae7f6b59938bc9ec112b2 | [
"MIT"
] | 122 | 2018-03-17T05:20:35.000Z | 2022-03-30T23:30:14.000Z | xbox/webapi/api/provider/titlehub/models.py | OpenXbox/xbox-webapi-python | 1a5aeb1b1ce94f38b5dae7f6b59938bc9ec112b2 | [
"MIT"
] | 62 | 2018-03-27T14:17:11.000Z | 2022-03-30T16:36:03.000Z | xbox/webapi/api/provider/titlehub/models.py | OpenXbox/xbox-webapi-python | 1a5aeb1b1ce94f38b5dae7f6b59938bc9ec112b2 | [
"MIT"
] | 38 | 2018-05-09T19:17:48.000Z | 2022-02-03T06:55:04.000Z | from datetime import datetime
from enum import Enum
from typing import Any, List, Optional
from xbox.webapi.common.models import CamelCaseModel, PascalCaseModel
class TitleFields(str, Enum):
SERVICE_CONFIG_ID = "scid"
ACHIEVEMENT = "achievement"
STATS = "stats"
GAME_PASS = "gamepass"
IMAGE = "ima... | 22.495238 | 69 | 0.723539 | 274 | 2,362 | 6.036496 | 0.368613 | 0.059855 | 0.031439 | 0.026602 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.198561 | 2,362 | 104 | 70 | 22.711538 | 0.873745 | 0 | 0 | 0.074074 | 0 | 0 | 0.030059 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.049383 | 0.049383 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
ec2bf9162b78137b2733f5b84b3dbb7d05de0458 | 429 | py | Python | other/_first.py | ngd-b/python-demo | 0341c1620bcde1c1d886cb9e75dc6db3722273c8 | [
"MIT"
] | 1 | 2019-10-09T13:40:13.000Z | 2019-10-09T13:40:13.000Z | other/_first.py | ngd-b/python-demo | 0341c1620bcde1c1d886cb9e75dc6db3722273c8 | [
"MIT"
] | null | null | null | other/_first.py | ngd-b/python-demo | 0341c1620bcde1c1d886cb9e75dc6db3722273c8 | [
"MIT"
] | null | null | null | #!/usr/bin/python
# -*- coding:utf-8 -*-
print("hello world")
# pthon 中的关键字
import keyword
print(keyword.kwlist)
# 注释
'''
一行注释
二行注释
'''
"""
三行注释
四行注释
"""
print("多行注释")
# 单行语句换行
print("you"
"are"
"my"
"friend")
# 这种运算则需要使用 \ 符
count = 23+ \
12+ \
34
print(count)
# 字符串 复用
print("祖国"*2)
# print(... | 9.75 | 22 | 0.550117 | 70 | 429 | 3.371429 | 0.657143 | 0.033898 | 0.050847 | 0.067797 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05988 | 0.221445 | 429 | 44 | 23 | 9.75 | 0.646707 | 0.226107 | 0 | 0.1 | 0 | 0 | 0.12069 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.05 | 0 | 0.05 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
ec363ba66c10f615ccd1efaa4439368d1082bab4 | 1,257 | py | Python | backend/portfolios/factories/certification_factory.py | NumanIbnMazid/numanibnmazid.com | 905e3afab285316d88bafa30dc080dfbb0611731 | [
"MIT"
] | 1 | 2022-01-28T18:20:19.000Z | 2022-01-28T18:20:19.000Z | backend/portfolios/factories/certification_factory.py | NumanIbnMazid/numanibnmazid.com | 905e3afab285316d88bafa30dc080dfbb0611731 | [
"MIT"
] | null | null | null | backend/portfolios/factories/certification_factory.py | NumanIbnMazid/numanibnmazid.com | 905e3afab285316d88bafa30dc080dfbb0611731 | [
"MIT"
] | null | null | null | import factory
from portfolios.models import Certification
from users.factories.user_factory import UserFactory
from factory.django import DjangoModelFactory
from utils.helpers import create_factory_data
class CertificationFactory(DjangoModelFactory):
class Meta:
model = Certification
user = factory.... | 33.972973 | 97 | 0.752586 | 150 | 1,257 | 6.013333 | 0.393333 | 0.10643 | 0.053215 | 0.044346 | 0.13082 | 0.13082 | 0.13082 | 0.13082 | 0.13082 | 0.13082 | 0 | 0.002846 | 0.161496 | 1,257 | 36 | 98 | 34.916667 | 0.852941 | 0 | 0 | 0.066667 | 0 | 0 | 0.077963 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033333 | false | 0 | 0.166667 | 0.033333 | 0.633333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
ec3aa0d3dbdedfe9a32ff3de2e04e3173e137571 | 1,862 | py | Python | src/esri/arcpy/SamplePythonToolbox.py | TrieuLe0801/Arcgis-python | 7b6c3d33bd7b9a6bea495f288a0d8015ffcc48b0 | [
"Apache-2.0"
] | null | null | null | src/esri/arcpy/SamplePythonToolbox.py | TrieuLe0801/Arcgis-python | 7b6c3d33bd7b9a6bea495f288a0d8015ffcc48b0 | [
"Apache-2.0"
] | null | null | null | src/esri/arcpy/SamplePythonToolbox.py | TrieuLe0801/Arcgis-python | 7b6c3d33bd7b9a6bea495f288a0d8015ffcc48b0 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
import arcpy
import os
import foo
class Toolbox(object):
def __init__(self):
"""Define the toolbox (the name of the toolbox is the name of the
.pyt file)."""
self.label = "Sample Python Toolbox"
self.alias = "SamplePythonToolbox"
# List... | 34.481481 | 77 | 0.566058 | 187 | 1,862 | 5.593583 | 0.475936 | 0.01912 | 0.025813 | 0.034417 | 0.076482 | 0.049713 | 0 | 0 | 0 | 0 | 0 | 0.001647 | 0.348013 | 1,862 | 54 | 78 | 34.481481 | 0.859967 | 0.309345 | 0 | 0.15625 | 0 | 0 | 0.097854 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.21875 | false | 0 | 0.09375 | 0 | 0.53125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ec40bbd517e3c02e18567a2d5b21aca1aa15f393 | 896 | py | Python | labellab-flask/api/routes/images.py | AkMo3/LabelLab | 1f16905bba1a332035d082cfc6337b8551478e05 | [
"Apache-2.0"
] | null | null | null | labellab-flask/api/routes/images.py | AkMo3/LabelLab | 1f16905bba1a332035d082cfc6337b8551478e05 | [
"Apache-2.0"
] | null | null | null | labellab-flask/api/routes/images.py | AkMo3/LabelLab | 1f16905bba1a332035d082cfc6337b8551478e05 | [
"Apache-2.0"
] | null | null | null | from flask import Blueprint
from api.controllers import imagescontroller
imagesprint = Blueprint("images", __name__)
imagesprint.add_url_rule(
"/image/create/<int:project_id>",
view_func=imagescontroller.imageController["save_image"],
methods=["POST"]
)
imagesprint.add_url_rule(
"/image/get/<int:p... | 25.6 | 66 | 0.728795 | 103 | 896 | 6.029126 | 0.291262 | 0.112721 | 0.136876 | 0.169082 | 0.700483 | 0.658615 | 0.639291 | 0 | 0 | 0 | 0 | 0 | 0.125 | 896 | 35 | 67 | 25.6 | 0.792092 | 0 | 0 | 0.321429 | 0 | 0 | 0.273133 | 0.181717 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.071429 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ec4378bb4ce358808d41359aa59acc20ceb4f275 | 278 | py | Python | PyLaGriT/setup.py | millerta/LaGriT-1 | 511ef22f3b7e839c7e0484604cd7f6a2278ae6b9 | [
"CNRI-Python"
] | 1 | 2019-11-01T18:12:10.000Z | 2019-11-01T18:12:10.000Z | PyLaGriT/setup.py | millerta/LaGriT-1 | 511ef22f3b7e839c7e0484604cd7f6a2278ae6b9 | [
"CNRI-Python"
] | null | null | null | PyLaGriT/setup.py | millerta/LaGriT-1 | 511ef22f3b7e839c7e0484604cd7f6a2278ae6b9 | [
"CNRI-Python"
] | 1 | 2019-09-29T08:35:55.000Z | 2019-09-29T08:35:55.000Z | from distutils.core import setup
import os
setup(name='pylagrit',
version='1.0.0',
description='Python interface for LaGriT',
author='Dylan R. Harp',
author_email='dharp@lanl.gov',
url='lagrit.lanl.gov',
license='LGPL',
packages=[
'pylagrit',
'pylagrit.pexpect']
)
| 18.533333 | 43 | 0.705036 | 38 | 278 | 5.131579 | 0.763158 | 0.071795 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012346 | 0.125899 | 278 | 14 | 44 | 19.857143 | 0.790123 | 0 | 0 | 0 | 0 | 0 | 0.395683 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.153846 | 0 | 0.153846 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ec47c391472807dff9a5e36963375db6a8649611 | 4,177 | py | Python | scripts/bib_poli_poi_manager.py | sdcioc/bibpoli | fba86ff4e949c92aa6ef93a629b5e73fcf97a581 | [
"MIT"
] | null | null | null | scripts/bib_poli_poi_manager.py | sdcioc/bibpoli | fba86ff4e949c92aa6ef93a629b5e73fcf97a581 | [
"MIT"
] | null | null | null | scripts/bib_poli_poi_manager.py | sdcioc/bibpoli | fba86ff4e949c92aa6ef93a629b5e73fcf97a581 | [
"MIT"
] | null | null | null | #! /usr/bin/python
# Author: Ciocirlan Stefan-Dan 19/09/2018
import json
import copy
import rospy
#functie de converire a numelui unui punct de interes in calea lui ca parametru ros
def convert_POIName_RosparamName(poi_name):
prefix = '/mmap/poi/submap_0/';
if not poi_name.startswith(prefix):
poi_name = prefix ... | 37.972727 | 115 | 0.721331 | 608 | 4,177 | 4.787829 | 0.304276 | 0.038475 | 0.022329 | 0.019581 | 0.410168 | 0.29337 | 0.243902 | 0.219856 | 0.170388 | 0.170388 | 0 | 0.004315 | 0.167824 | 4,177 | 109 | 116 | 38.321101 | 0.833142 | 0.324396 | 0 | 0.452055 | 0 | 0 | 0.13872 | 0.030032 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.041096 | null | null | 0.027397 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ec4888f3f9bb05215e75e4d095dd646b049f0424 | 3,976 | py | Python | pysnmp-with-texts/CISCO-IETF-SCTP-EXT-CAPABILITY.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 8 | 2019-05-09T17:04:00.000Z | 2021-06-09T06:50:51.000Z | pysnmp-with-texts/CISCO-IETF-SCTP-EXT-CAPABILITY.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 4 | 2019-05-31T16:42:59.000Z | 2020-01-31T21:57:17.000Z | pysnmp-with-texts/CISCO-IETF-SCTP-EXT-CAPABILITY.py | agustinhenze/mibs.snmplabs.com | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | [
"Apache-2.0"
] | 10 | 2019-04-30T05:51:36.000Z | 2022-02-16T03:33:41.000Z | #
# PySNMP MIB module CISCO-IETF-SCTP-EXT-CAPABILITY (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CISCO-IETF-SCTP-EXT-CAPABILITY
# Produced by pysmi-0.3.4 at Wed May 1 12:01:04 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python ... | 107.459459 | 477 | 0.791499 | 421 | 3,976 | 7.470309 | 0.382423 | 0.006359 | 0.046741 | 0.030525 | 0.446423 | 0.311924 | 0.293482 | 0.293482 | 0.293482 | 0.289984 | 0 | 0.084476 | 0.082998 | 3,976 | 36 | 478 | 110.444444 | 0.778113 | 0.089034 | 0 | 0.178571 | 0 | 0.107143 | 0.307777 | 0.041517 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ec4ac519fa41cce9811a254aee52f6208f542e4f | 4,699 | py | Python | src/project/video_labels.py | KumarLabJax/JABS-behavior-classifier | 8c038a7510ae08d90418403a723e396344bb671c | [
"FSFAP"
] | null | null | null | src/project/video_labels.py | KumarLabJax/JABS-behavior-classifier | 8c038a7510ae08d90418403a723e396344bb671c | [
"FSFAP"
] | null | null | null | src/project/video_labels.py | KumarLabJax/JABS-behavior-classifier | 8c038a7510ae08d90418403a723e396344bb671c | [
"FSFAP"
] | null | null | null | from .track_labels import TrackLabels
class VideoLabels:
"""
store the labels associated with a video file.
labels are organized by "identity". Each identity may have multiple
behaviors labeled. An identity and behavior uniquely identifies a
TrackLabels object, which stores labels for each frame ... | 35.067164 | 80 | 0.593318 | 502 | 4,699 | 5.406375 | 0.272908 | 0.087693 | 0.079587 | 0.07664 | 0.245394 | 0.10538 | 0.028003 | 0 | 0 | 0 | 0 | 0.002877 | 0.334326 | 4,699 | 133 | 81 | 35.330827 | 0.86477 | 0.411364 | 0 | 0.075472 | 0 | 0 | 0.037179 | 0 | 0 | 0 | 0 | 0.015038 | 0 | 1 | 0.132075 | false | 0 | 0.018868 | 0.018868 | 0.283019 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ec4c8db2c51a568d0df46d4f28891c13344f4017 | 443 | py | Python | PersonalWebApp/ClientsManagement/migrations/0018_projectsrequest_project_request_slug.py | CiganOliviu/personal_website | abedf67efc2e7e212c32815f645d3b3709f9f177 | [
"MIT"
] | 1 | 2021-04-02T16:45:52.000Z | 2021-04-02T16:45:52.000Z | ClientsManagementSystem/ClientsManagement/migrations/0018_projectsrequest_project_request_slug.py | CiganOliviu/ClientsManagementSystem | 6271dd007e549fd0369c4df7c017980b915a91b5 | [
"MIT"
] | null | null | null | ClientsManagementSystem/ClientsManagement/migrations/0018_projectsrequest_project_request_slug.py | CiganOliviu/ClientsManagementSystem | 6271dd007e549fd0369c4df7c017980b915a91b5 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.8 on 2020-11-09 10:28
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('ClientsManagement', '0017_auto_20201108_1950'),
]
operations = [
migrations.AddField(
model_name='projectsrequest',
... | 23.315789 | 76 | 0.632054 | 47 | 443 | 5.808511 | 0.87234 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.10303 | 0.255079 | 443 | 18 | 77 | 24.611111 | 0.724242 | 0.10158 | 0 | 0 | 1 | 0 | 0.189394 | 0.058081 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ec4e5fa4d1849a441dee901738f4a4985d58a3c1 | 989 | py | Python | setup.py | fengsp/lookup | c10bb571809d4ead095ce17f822a30f8fde4eaef | [
"BSD-3-Clause"
] | 9 | 2015-04-09T21:43:29.000Z | 2022-02-22T19:03:34.000Z | setup.py | 3Demonica/lookup | c10bb571809d4ead095ce17f822a30f8fde4eaef | [
"BSD-3-Clause"
] | 1 | 2015-11-11T16:24:57.000Z | 2015-11-19T06:08:42.000Z | setup.py | 3Demonica/lookup | c10bb571809d4ead095ce17f822a30f8fde4eaef | [
"BSD-3-Clause"
] | 4 | 2015-01-05T11:49:50.000Z | 2022-02-22T19:03:35.000Z | """
lookup
------
Look up words via the command line.
Links
`````
* `documentation <https://github.com/fengsp/lookup>`_
* `development version
<http://github.com/fengsp/lookup/zipball/master#egg=lookup-dev>`_
"""
from setuptools import setup
setup(
name='lookup',
version='0.2',
url='https://github.c... | 21.042553 | 67 | 0.605662 | 100 | 989 | 5.85 | 0.7 | 0.05641 | 0.076923 | 0.107692 | 0.088889 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006667 | 0.241658 | 989 | 46 | 68 | 21.5 | 0.773333 | 0.211325 | 0 | 0 | 0 | 0 | 0.42153 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.033333 | 0 | 0.033333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ec51ee86ac4ba81ac68fefbc2989c1af1ada01a8 | 2,013 | py | Python | sdk/python/pulumi_aws_native/codestar/_inputs.py | AaronFriel/pulumi-aws-native | 5621690373ac44accdbd20b11bae3be1baf022d1 | [
"Apache-2.0"
] | 29 | 2021-09-30T19:32:07.000Z | 2022-03-22T21:06:08.000Z | sdk/python/pulumi_aws_native/codestar/_inputs.py | AaronFriel/pulumi-aws-native | 5621690373ac44accdbd20b11bae3be1baf022d1 | [
"Apache-2.0"
] | 232 | 2021-09-30T19:26:26.000Z | 2022-03-31T23:22:06.000Z | sdk/python/pulumi_aws_native/codestar/_inputs.py | AaronFriel/pulumi-aws-native | 5621690373ac44accdbd20b11bae3be1baf022d1 | [
"Apache-2.0"
] | 4 | 2021-11-10T19:42:01.000Z | 2022-02-05T10:15:49.000Z | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
__a... | 28.352113 | 80 | 0.648286 | 234 | 2,013 | 5.371795 | 0.273504 | 0.122514 | 0.100239 | 0.060461 | 0.302307 | 0.240255 | 0.218775 | 0.11615 | 0 | 0 | 0 | 0.008963 | 0.224044 | 2,013 | 70 | 81 | 28.757143 | 0.795775 | 0.07998 | 0 | 0.211538 | 1 | 0 | 0.108342 | 0.060672 | 0 | 0 | 0 | 0 | 0 | 1 | 0.192308 | false | 0 | 0.096154 | 0.076923 | 0.403846 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ec53d18772cf322357771f2b6a79f3b1cfae651a | 1,970 | py | Python | f5/bigip/__init__.py | yuanfm/f5-common-python | 7d6588d56323e7065fec929ff00020081f9d6ade | [
"Apache-2.0"
] | null | null | null | f5/bigip/__init__.py | yuanfm/f5-common-python | 7d6588d56323e7065fec929ff00020081f9d6ade | [
"Apache-2.0"
] | null | null | null | f5/bigip/__init__.py | yuanfm/f5-common-python | 7d6588d56323e7065fec929ff00020081f9d6ade | [
"Apache-2.0"
] | null | null | null | """Classes and functions for configuring BIG-IP"""
# Copyright 2014 F5 Networks Inc.
#
# 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
#
# Unle... | 39.4 | 74 | 0.644162 | 236 | 1,970 | 5.254237 | 0.525424 | 0.048387 | 0.044355 | 0.025806 | 0.051613 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011127 | 0.270051 | 1,970 | 49 | 75 | 40.204082 | 0.851182 | 0.34264 | 0 | 0 | 0 | 0 | 0.117415 | 0.036249 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0.076923 | 0.269231 | 0 | 0.346154 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
ec572a85699eea732946d1fcc2724486847f42b4 | 1,634 | py | Python | Practicals/gist_multiplication_table-tutorial.py | dev-bhargav/Python3-for-dummies | 8be093ada6de2070d8c14346a0c15d78074b79d7 | [
"MIT"
] | null | null | null | Practicals/gist_multiplication_table-tutorial.py | dev-bhargav/Python3-for-dummies | 8be093ada6de2070d8c14346a0c15d78074b79d7 | [
"MIT"
] | null | null | null | Practicals/gist_multiplication_table-tutorial.py | dev-bhargav/Python3-for-dummies | 8be093ada6de2070d8c14346a0c15d78074b79d7 | [
"MIT"
] | null | null | null | import random as RND
gen_row = lambda: [ RND.randint(10, 99) for c in range(3) ]
# 'data' is a nested list comprised of five rows and three columns
data = [gen_row() for c in range(5)]
# create some column headers
col_headers = ["col{}".format(i) for i in range(1, 4)]
# print the column headers first
print("{:^8} {:^... | 34.765957 | 108 | 0.684211 | 276 | 1,634 | 4.028986 | 0.496377 | 0.007194 | 0.010791 | 0.019784 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021622 | 0.207466 | 1,634 | 46 | 109 | 35.521739 | 0.837066 | 0 | 0 | 0 | 0 | 0 | 0.149457 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.1 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6b4d51076b403049aba5f4d3863e2292c59d0be7 | 12,524 | py | Python | cogs/fun.py | Skullknight011/Cyanmaton | 76da2b6944666bab32630c96108b61b511acb6eb | [
"CC0-1.0"
] | 1 | 2021-04-01T13:42:34.000Z | 2021-04-01T13:42:34.000Z | cogs/fun.py | Skullknight011/Cyanmaton | 76da2b6944666bab32630c96108b61b511acb6eb | [
"CC0-1.0"
] | null | null | null | cogs/fun.py | Skullknight011/Cyanmaton | 76da2b6944666bab32630c96108b61b511acb6eb | [
"CC0-1.0"
] | 1 | 2021-02-19T14:56:16.000Z | 2021-02-19T14:56:16.000Z | import discord
from discord.ext import commands
import os
import numpy
import requests
import json
import random
import json
import sys
import traceback
import importlib
from math import *
from cogs.lists import cowboy_sayings
from cogs.lists import roasts
from cogs.lists import colour
from cogs.lists import lenny_face... | 43.637631 | 214 | 0.6355 | 1,595 | 12,524 | 4.917868 | 0.196865 | 0.041815 | 0.079934 | 0.02486 | 0.402473 | 0.27639 | 0.235084 | 0.198496 | 0.177588 | 0.145844 | 0 | 0.029837 | 0.221255 | 12,524 | 286 | 215 | 43.79021 | 0.774121 | 0 | 0 | 0.181818 | 0 | 0.038961 | 0.233333 | 0.031343 | 0 | 0 | 0.000663 | 0 | 0 | 0 | null | null | 0.012987 | 0.077922 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6b5140207f30a322a8c72e6c8cce57aadcbcce4b | 2,429 | py | Python | keras/lstm_my.py | mobarski/sandbox | 64ac79143750d5dcbd4d0f3abdab6efeb9bdf50c | [
"MIT"
] | null | null | null | keras/lstm_my.py | mobarski/sandbox | 64ac79143750d5dcbd4d0f3abdab6efeb9bdf50c | [
"MIT"
] | null | null | null | keras/lstm_my.py | mobarski/sandbox | 64ac79143750d5dcbd4d0f3abdab6efeb9bdf50c | [
"MIT"
] | null | null | null | text = """
ala ma kota
a kot ma ale
"""
# ------------------------------------------------------------------------------
# TODO as class
chars = list(sorted(set(text))) # stabilne indeksy
len_chars = len(chars)+1
c_to_i = {c:i+1 for i,c in enumerate(chars)}
i_to_c = {i+1:c for i,c in enumerate(chars)}
def text_to_i... | 24.535354 | 80 | 0.553314 | 377 | 2,429 | 3.408488 | 0.281167 | 0.049805 | 0.035019 | 0.040467 | 0.091829 | 0.056031 | 0 | 0 | 0 | 0 | 0 | 0.017257 | 0.117332 | 2,429 | 98 | 81 | 24.785714 | 0.58209 | 0.256896 | 0 | 0.030303 | 0 | 0 | 0.051868 | 0.013385 | 0 | 0 | 0 | 0.010204 | 0 | 1 | 0.045455 | false | 0 | 0.060606 | 0.015152 | 0.151515 | 0.121212 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6b5b587cb0ce620906a483609ab64dc143ca2768 | 1,169 | py | Python | doc/examples/python_logging.py | ralphm/udplog | 04fa2045f0eb23dfd73be704ac7713384c6860d7 | [
"MIT"
] | null | null | null | doc/examples/python_logging.py | ralphm/udplog | 04fa2045f0eb23dfd73be704ac7713384c6860d7 | [
"MIT"
] | 1 | 2018-02-27T20:09:35.000Z | 2018-02-27T20:09:35.000Z | doc/examples/python_logging.py | ralphm/udplog | 04fa2045f0eb23dfd73be704ac7713384c6860d7 | [
"MIT"
] | 1 | 2016-10-11T12:27:33.000Z | 2016-10-11T12:27:33.000Z | """
Example of using the standard logging facility to send events to udplog.
"""
import logging
import socket
import warnings
from udplog.udplog import UDPLogger, UDPLogHandler
# Get a logger in the idiomatic way.
logger = logging.getLogger(__name__)
# Set up logging to stdout
logging.basicConfig(level=logging.DEBU... | 25.413043 | 73 | 0.664671 | 138 | 1,169 | 5.57971 | 0.565217 | 0.038961 | 0.036364 | 0.041558 | 0.044156 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001091 | 0.215569 | 1,169 | 45 | 74 | 25.977778 | 0.838604 | 0.106929 | 0 | 0 | 0 | 0 | 0.190824 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.148148 | null | null | 0.037037 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6b60b2d12c5d9dbd477a2f5ad06e24a5440736ae | 2,190 | py | Python | tests/test_gf.py | senk8/crypto-math | 91c7b02a28e91190089b0213065498ce3c6b2e18 | [
"MIT"
] | 1 | 2022-01-01T07:48:29.000Z | 2022-01-01T07:48:29.000Z | tests/test_gf.py | senk8/crypto-math | 91c7b02a28e91190089b0213065498ce3c6b2e18 | [
"MIT"
] | null | null | null | tests/test_gf.py | senk8/crypto-math | 91c7b02a28e91190089b0213065498ce3c6b2e18 | [
"MIT"
] | null | null | null | from crypto_math import GF, field_extension
import pytest
@pytest.fixture
def setup():
F7 = GF(7)
F7_4 = field_extension(F7, 4)
return F7_4
@pytest.mark.parametrize(
"x,y,expect",
[
([1, 1, 1, 1], [2, 3, 1], [1, 3, 4, 2]),
([2, 3, 1], [6, 1, 3, 1], [6, 3, 6, 2]),
([1, 1, ... | 18.559322 | 51 | 0.387671 | 403 | 2,190 | 2.022333 | 0.099256 | 0.120245 | 0.110429 | 0.078528 | 0.622086 | 0.603681 | 0.596319 | 0.500614 | 0.480982 | 0.435583 | 0 | 0.181303 | 0.355251 | 2,190 | 117 | 52 | 18.717949 | 0.395892 | 0 | 0 | 0.347826 | 0 | 0 | 0.020091 | 0 | 0 | 0 | 0 | 0 | 0.065217 | 1 | 0.076087 | false | 0 | 0.021739 | 0 | 0.108696 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6b612f1385de3aea9ee32b7c61b778ab34bc50ba | 4,495 | py | Python | fgietAdmission/settings/prod.py | rpsingh21/Fgiet-Admission | a6871da939c2ec16e480844254d801c3a486c5c2 | [
"MIT"
] | 5 | 2018-09-28T20:05:14.000Z | 2019-05-31T19:12:48.000Z | fgietAdmission/settings/prod.py | rpsingh21/Fgiet-Admission | a6871da939c2ec16e480844254d801c3a486c5c2 | [
"MIT"
] | 5 | 2019-09-30T18:40:15.000Z | 2020-04-20T20:28:29.000Z | fgietAdmission/settings/prod.py | rpsingh21/Fgiet-Admission | a6871da939c2ec16e480844254d801c3a486c5c2 | [
"MIT"
] | 3 | 2019-09-30T20:54:55.000Z | 2020-04-15T15:39:37.000Z | import os
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(
os.path.dirname(os.path.abspath(__file__))))
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = os.environ.get(
'SECRET_KEY', 'j2b_z(*4w+#)t^nz3)0n3da(tcj&... | 27.746914 | 91 | 0.691435 | 515 | 4,495 | 5.817476 | 0.390291 | 0.065087 | 0.052069 | 0.023364 | 0.202603 | 0.175901 | 0.091789 | 0.071762 | 0.056742 | 0 | 0 | 0.015809 | 0.169744 | 4,495 | 161 | 92 | 27.919255 | 0.786977 | 0.124583 | 0 | 0 | 0 | 0.008621 | 0.440561 | 0.298214 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.060345 | 0.017241 | 0 | 0.017241 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
6b78c685cbe88fe52be31d9316aa083ac998c4fb | 902 | py | Python | lesson9/napalm_simple.py | mfeindt0705/pynetmf | 02fc092fd42ce5be5e160fa88b65c63d23408a6a | [
"Apache-2.0"
] | null | null | null | lesson9/napalm_simple.py | mfeindt0705/pynetmf | 02fc092fd42ce5be5e160fa88b65c63d23408a6a | [
"Apache-2.0"
] | 7 | 2021-03-18T21:28:13.000Z | 2022-02-10T10:39:10.000Z | lesson9/napalm_simple.py | mfeindt0705/pynetmf | 02fc092fd42ce5be5e160fa88b65c63d23408a6a | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
from getpass import getpass
from pprint import pprint
from napalm import get_network_driver
# Supress SSL Certificate Warnings
import requests
from requests.packages.urllib3.exceptions import InsecureRequestWarning
requests.packages.urllib3.disable_warnings(InsecureRequestWarning)
cisco3 = dic... | 20.044444 | 71 | 0.732816 | 110 | 902 | 5.872727 | 0.418182 | 0.108359 | 0.049536 | 0.058824 | 0.130031 | 0.130031 | 0 | 0 | 0 | 0 | 0 | 0.017972 | 0.136364 | 902 | 44 | 72 | 20.5 | 0.811297 | 0.131929 | 0 | 0.233333 | 0 | 0 | 0.118252 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.1 | 0.166667 | 0 | 0.166667 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
6b7ba61ef023c1db826796f4b0845a69f907a4aa | 535 | py | Python | run_scraper.py | justinslud/scrape-wikipedia-current-events | fa4a261a15e86b2470506ecb72ab0d488240c77d | [
"MIT"
] | null | null | null | run_scraper.py | justinslud/scrape-wikipedia-current-events | fa4a261a15e86b2470506ecb72ab0d488240c77d | [
"MIT"
] | null | null | null | run_scraper.py | justinslud/scrape-wikipedia-current-events | fa4a261a15e86b2470506ecb72ab0d488240c77d | [
"MIT"
] | null | null | null | from wiki_scrape_db import get_headlines
headlines = []
for year in list(range(1995, 2020)):
try:
headlines.append(get_headlines(year))
except Exception as e:
print(e)
headlines.append(get_headlines(1994, start_month='July'))
headlines.append(get_headlines(2020, end_month='November'))
with o... | 29.722222 | 76 | 0.695327 | 68 | 535 | 5.352941 | 0.617647 | 0.131868 | 0.148352 | 0.222527 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035088 | 0.147664 | 535 | 17 | 77 | 31.470588 | 0.763158 | 0 | 0 | 0 | 0 | 0 | 0.102804 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.076923 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6b7e9434ecd7d1a7626dabe916fb3aaec1e3cb2a | 9,265 | py | Python | yasql/apps/sqlquery/migrations/0001_initial.py | Fanduzi/YaSQL | bc6366a9b1c1e9ed84fd24ea2b4a21f8f99d0af5 | [
"Apache-2.0"
] | 443 | 2018-02-08T02:53:48.000Z | 2020-10-13T10:01:55.000Z | yasql/apps/sqlquery/migrations/0001_initial.py | Fanduzi/YaSQL | bc6366a9b1c1e9ed84fd24ea2b4a21f8f99d0af5 | [
"Apache-2.0"
] | 27 | 2018-03-06T03:50:07.000Z | 2020-08-18T08:09:49.000Z | yasql/apps/sqlquery/migrations/0001_initial.py | Fanduzi/YaSQL | bc6366a9b1c1e9ed84fd24ea2b4a21f8f99d0af5 | [
"Apache-2.0"
] | 148 | 2018-03-15T06:07:25.000Z | 2020-08-17T14:58:45.000Z | # Generated by Django 2.2.16 on 2020-12-15 07:18
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('sqlorders', '0001_initial'),
migrations.swappable_dependency(s... | 54.181287 | 172 | 0.582515 | 897 | 9,265 | 5.765886 | 0.152731 | 0.146752 | 0.069026 | 0.082173 | 0.728152 | 0.676141 | 0.628384 | 0.607889 | 0.581787 | 0.581787 | 0 | 0.006828 | 0.272855 | 9,265 | 170 | 173 | 54.5 | 0.760873 | 0.004965 | 0 | 0.539877 | 1 | 0 | 0.215471 | 0.063687 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.018405 | 0 | 0.042945 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6b8f45fdb0fa4f30fcf42cfaca12072123bf631a | 2,124 | py | Python | tests/rules/test_gcloud_cli.py | ronandoolan2/thefuck | 7ca0919e70fe23a551b2388c050aa34925c09d0c | [
"MIT"
] | null | null | null | tests/rules/test_gcloud_cli.py | ronandoolan2/thefuck | 7ca0919e70fe23a551b2388c050aa34925c09d0c | [
"MIT"
] | null | null | null | tests/rules/test_gcloud_cli.py | ronandoolan2/thefuck | 7ca0919e70fe23a551b2388c050aa34925c09d0c | [
"MIT"
] | null | null | null | import pytest
from thefuck.rules.gcloud_cli import match, get_new_command
from thefuck.types import Command
no_suggestions = '''\
ERROR: (gcloud) Command name argument expected.
'''
misspelled_command = '''\
ERROR: (gcloud) Invalid choice: 'comute'.
Usage: gcloud [optional flags] <group | command>
group may be ... | 36 | 80 | 0.660075 | 228 | 2,124 | 6.061404 | 0.5 | 0.08466 | 0.091172 | 0.058611 | 0.227207 | 0.18958 | 0.18958 | 0 | 0 | 0 | 0 | 0 | 0.245763 | 2,124 | 58 | 81 | 36.62069 | 0.862672 | 0 | 0 | 0.065217 | 0 | 0 | 0.687853 | 0.010358 | 0 | 0 | 0 | 0 | 0.065217 | 1 | 0.065217 | false | 0 | 0.065217 | 0 | 0.130435 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6ba44c15532a1eb969c9c42b5ee34f85d42c99fb | 892 | py | Python | changePositionToIndexUpstream.py | oicr-gsi/bam-statistics | 62109bcb6ae09a0425a386dd139e5487ef019c81 | [
"MIT"
] | null | null | null | changePositionToIndexUpstream.py | oicr-gsi/bam-statistics | 62109bcb6ae09a0425a386dd139e5487ef019c81 | [
"MIT"
] | null | null | null | changePositionToIndexUpstream.py | oicr-gsi/bam-statistics | 62109bcb6ae09a0425a386dd139e5487ef019c81 | [
"MIT"
] | null | null | null | #!/usr/bin/python
## my upstream target intervals were of size 1000 each.
import sys
# use stdin if stdin is full
if not sys.stdin.isatty():
indexFile = sys.stdin
#otherwise, read from input
else:
try:
input_file = sys.argv[1]
except IndexError:
message = 'need filename as first argument if stdin is not ful... | 21.238095 | 66 | 0.502242 | 104 | 892 | 4.288462 | 0.509615 | 0.06278 | 0.080717 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036822 | 0.421525 | 892 | 41 | 67 | 21.756098 | 0.827519 | 0.136771 | 0 | 0.392857 | 0 | 0 | 0.070588 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.035714 | null | null | 0.107143 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6ba5c75d24987e85c04283050683308be22b8758 | 3,084 | py | Python | resources/python/KemendagriKTP/main.py | freezyoff/kosan-server | 0e6ec0a763075a838557258740f95bf07caf47a7 | [
"MIT"
] | null | null | null | resources/python/KemendagriKTP/main.py | freezyoff/kosan-server | 0e6ec0a763075a838557258740f95bf07caf47a7 | [
"MIT"
] | 4 | 2020-03-02T13:06:23.000Z | 2022-02-27T12:47:45.000Z | resources/python/KemendagriKTP/main.py | freezyoff/kosan-server | 0e6ec0a763075a838557258740f95bf07caf47a7 | [
"MIT"
] | null | null | null | import os
import sys
import glob
import options as setting
import xlsToCsv as csvConverter
import csvParser as parser
import dbProvider as db
def printProgress(prefix="", iteration=1, maxIteration=1, size=30, file=sys.stdout):
iteration = int(iteration)
size = int(size)
maxIteration = int(maxIteration)
x = int(si... | 28.82243 | 104 | 0.682231 | 382 | 3,084 | 5.486911 | 0.277487 | 0.064408 | 0.028626 | 0.038168 | 0.156011 | 0.130725 | 0.099237 | 0.099237 | 0.099237 | 0 | 0 | 0.009939 | 0.151751 | 3,084 | 107 | 105 | 28.82243 | 0.791284 | 0.045071 | 0 | 0.15 | 0 | 0 | 0.088435 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.025 | 0.1125 | null | null | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6baa91249a1d6feaecd6484fdec577d31bedced2 | 890 | py | Python | posts/views.py | JySa65/platzi-gram | e991a59a8ebe28574671f39cf8bd552e31799cd8 | [
"MIT"
] | null | null | null | posts/views.py | JySa65/platzi-gram | e991a59a8ebe28574671f39cf8bd552e31799cd8 | [
"MIT"
] | null | null | null | posts/views.py | JySa65/platzi-gram | e991a59a8ebe28574671f39cf8bd552e31799cd8 | [
"MIT"
] | null | null | null | from django.shortcuts import render
from django.views.generic import ListView, CreateView, DetailView
from django.contrib.auth.mixins import LoginRequiredMixin
from posts.models import Post
from posts.forms import PostForm
from django.urls import reverse_lazy
# Create your views here.
class PostListView(LoginRequired... | 28.709677 | 65 | 0.741573 | 105 | 890 | 6.171429 | 0.495238 | 0.061728 | 0.046296 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002732 | 0.177528 | 890 | 30 | 66 | 29.666667 | 0.882514 | 0.025843 | 0 | 0.136364 | 0 | 0 | 0.024277 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.272727 | 0 | 0.818182 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
6bab10a8f6ed4cb25868e69655d856cbf7ed3d4a | 1,315 | py | Python | board/views.py | mijiFernandes/pa_1 | 10ede10494a632a98ef4e234ef58a73e8ea3c52f | [
"Unlicense"
] | null | null | null | board/views.py | mijiFernandes/pa_1 | 10ede10494a632a98ef4e234ef58a73e8ea3c52f | [
"Unlicense"
] | null | null | null | board/views.py | mijiFernandes/pa_1 | 10ede10494a632a98ef4e234ef58a73e8ea3c52f | [
"Unlicense"
] | null | null | null | from django.views.generic import ListView, DetailView, TemplateView, CreateView, UpdateView, DeleteView
from board.models import Post
from django.contrib.auth.mixins import LoginRequiredMixin
from django.urls import reverse_lazy
from mysite.views import OwnerOnlyMixin
from django.conf import settings
#--- ListView
c... | 25.784314 | 103 | 0.727757 | 154 | 1,315 | 6.097403 | 0.467532 | 0.047923 | 0.054313 | 0.067093 | 0.165069 | 0.165069 | 0 | 0 | 0 | 0 | 0 | 0.000912 | 0.16654 | 1,315 | 50 | 104 | 26.3 | 0.855839 | 0.019772 | 0 | 0.3125 | 0 | 0 | 0.112753 | 0.040435 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.1875 | 0.03125 | 0.96875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
6baefc213b6e18384bf7694489eee455b60eff69 | 1,763 | py | Python | twilio_notification.py | srisankethu/cowin-service | 12595b3e5c13f1990e11ed9a82723840dc0882f1 | [
"MIT"
] | null | null | null | twilio_notification.py | srisankethu/cowin-service | 12595b3e5c13f1990e11ed9a82723840dc0882f1 | [
"MIT"
] | null | null | null | twilio_notification.py | srisankethu/cowin-service | 12595b3e5c13f1990e11ed9a82723840dc0882f1 | [
"MIT"
] | null | null | null | from twilio.rest import Client
from twilio.twiml.voice_response import Gather, VoiceResponse
import os
class TwilioNotification:
def __init__(self, sid, auth_token):
self.client = Client(sid, auth_token)
def send_call(self, action_url, contacts):
response = VoiceResponse()
gather = ... | 41.97619 | 405 | 0.613727 | 215 | 1,763 | 4.916279 | 0.409302 | 0.034059 | 0.022706 | 0.037843 | 0.126774 | 0.073794 | 0.073794 | 0.073794 | 0 | 0 | 0 | 0.010228 | 0.27907 | 1,763 | 42 | 406 | 41.97619 | 0.8214 | 0 | 0 | 0.129032 | 0 | 0.032258 | 0.283447 | 0.027211 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.096774 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6bc5c3c8ad41b9e3ab17bceffccd95fe645a515a | 5,037 | py | Python | PhaseI/DataPreparation/monitor_HRRR_forecast_rainfall.py | uva-hydroinformatics-lab/FloodWarningModelProject | b7db75943a6e1dc8dd5799cb069612e3d188911a | [
"MIT"
] | 2 | 2019-05-07T09:01:18.000Z | 2019-05-07T09:01:21.000Z | PhaseI/DataPreparation/monitor_HRRR_forecast_rainfall.py | uva-hydroinformatics-lab/FloodWarningModelProject | b7db75943a6e1dc8dd5799cb069612e3d188911a | [
"MIT"
] | null | null | null | PhaseI/DataPreparation/monitor_HRRR_forecast_rainfall.py | uva-hydroinformatics-lab/FloodWarningModelProject | b7db75943a6e1dc8dd5799cb069612e3d188911a | [
"MIT"
] | 1 | 2018-05-03T17:15:02.000Z | 2018-05-03T17:15:02.000Z | from pydap.client import open_url
from pydap.exceptions import ServerError
import subprocess
import boto.ec2
import datetime as dt
import numpy as np
import csv
import schedule
import time
"""
Global parameters:
-Study area location (LL and UR corners of TUFLOW model bounds)
-Initial and avera... | 35.723404 | 105 | 0.600953 | 657 | 5,037 | 4.488584 | 0.406393 | 0.021363 | 0.033232 | 0.021363 | 0.15429 | 0.084775 | 0.084775 | 0.084775 | 0.062394 | 0.062394 | 0 | 0.036782 | 0.249752 | 5,037 | 141 | 106 | 35.723404 | 0.743583 | 0.203693 | 0 | 0.123596 | 0 | 0.011236 | 0.1613 | 0.02777 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.101124 | null | null | 0.134831 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6bd13573370ac90140341288aa969c676558720f | 1,421 | py | Python | custom/migrations/0003_auto_20181001_1734.py | rexhepberlajolli/Insurance | 8a179976bfb3d9c476d8fc415c8dd7fc0face434 | [
"MIT"
] | null | null | null | custom/migrations/0003_auto_20181001_1734.py | rexhepberlajolli/Insurance | 8a179976bfb3d9c476d8fc415c8dd7fc0face434 | [
"MIT"
] | 23 | 2018-10-02T20:16:29.000Z | 2022-03-24T03:55:46.000Z | custom/migrations/0003_auto_20181001_1734.py | rexhepberlajolli/Insurance | 8a179976bfb3d9c476d8fc415c8dd7fc0face434 | [
"MIT"
] | null | null | null | # Generated by Django 2.1.1 on 2018-10-01 17:34
import django.contrib.postgres.fields
from django.db import migrations, models
import uuid
class Migration(migrations.Migration):
dependencies = [
('custom', '0002_riskfield_risk_type'),
]
operations = [
migrations.AlterModelOptions(
... | 36.435897 | 245 | 0.589022 | 140 | 1,421 | 5.864286 | 0.485714 | 0.053593 | 0.051157 | 0.065773 | 0.180268 | 0.180268 | 0 | 0 | 0 | 0 | 0 | 0.02243 | 0.247009 | 1,421 | 38 | 246 | 37.394737 | 0.74486 | 0.031668 | 0 | 0.34375 | 1 | 0 | 0.225619 | 0.017467 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.09375 | 0 | 0.1875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6bd719864180b59c3d21d158c7f7b73ceb5e6694 | 1,040 | py | Python | tests/unit/chroma_core/lib/storage_plugin/subscription_plugin.py | beevans/integrated-manager-for-lustre | 6b7e49b8a58058e6139ad815a4388f21a581dfa0 | [
"MIT"
] | 52 | 2018-09-13T03:26:23.000Z | 2022-03-25T16:51:37.000Z | tests/unit/chroma_core/lib/storage_plugin/subscription_plugin.py | beevans/integrated-manager-for-lustre | 6b7e49b8a58058e6139ad815a4388f21a581dfa0 | [
"MIT"
] | 1,264 | 2018-06-15T19:50:57.000Z | 2022-03-28T08:19:04.000Z | tests/unit/chroma_core/lib/storage_plugin/subscription_plugin.py | beevans/integrated-manager-for-lustre | 6b7e49b8a58058e6139ad815a4388f21a581dfa0 | [
"MIT"
] | 27 | 2018-06-18T08:51:59.000Z | 2022-03-16T15:35:34.000Z | from chroma_core.lib.storage_plugin.api import attributes
from chroma_core.lib.storage_plugin.api.identifiers import GlobalId, ScopedId
from chroma_core.lib.storage_plugin.api.plugin import Plugin
from chroma_core.lib.storage_plugin.api import resources
from chroma_core.lib.storage_plugin.api import relations
version ... | 26.666667 | 95 | 0.722115 | 122 | 1,040 | 5.991803 | 0.303279 | 0.068399 | 0.095759 | 0.116279 | 0.337893 | 0.337893 | 0.250342 | 0.160055 | 0 | 0 | 0 | 0.00117 | 0.177885 | 1,040 | 38 | 96 | 27.368421 | 0.853801 | 0 | 0 | 0.192308 | 0 | 0 | 0.041346 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.038462 | 0.192308 | 0 | 0.653846 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
6bd88c3ebeb6be89ecc6b48f2f8cb1de2882b211 | 1,865 | py | Python | google_or_tools/knapsack_cp_sat.py | tias/hakank | 87b7f180c9393afce440864eb9e5fb119bdec1a4 | [
"MIT"
] | 279 | 2015-01-10T09:55:35.000Z | 2022-03-28T02:34:03.000Z | google_or_tools/knapsack_cp_sat.py | tias/hakank | 87b7f180c9393afce440864eb9e5fb119bdec1a4 | [
"MIT"
] | 10 | 2017-10-05T15:48:50.000Z | 2021-09-20T12:06:52.000Z | google_or_tools/knapsack_cp_sat.py | tias/hakank | 87b7f180c9393afce440864eb9e5fb119bdec1a4 | [
"MIT"
] | 83 | 2015-01-20T03:44:00.000Z | 2022-03-13T23:53:06.000Z | # Copyright 2021 Hakan Kjellerstrand hakank@gmail.com
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law ... | 24.539474 | 74 | 0.688472 | 278 | 1,865 | 4.553957 | 0.485612 | 0.047393 | 0.033175 | 0.045814 | 0.050553 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035691 | 0.18874 | 1,865 | 75 | 75 | 24.866667 | 0.801058 | 0.478284 | 0 | 0.074074 | 0 | 0 | 0.069817 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0 | 0.148148 | 0 | 0.185185 | 0.444444 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 |
6bdcc333baa696834a6f60e9431421020f6f9298 | 762 | py | Python | L1TriggerConfig/L1ScalesProducers/python/L1CaloScalesConfig_cff.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 852 | 2015-01-11T21:03:51.000Z | 2022-03-25T21:14:00.000Z | L1TriggerConfig/L1ScalesProducers/python/L1CaloScalesConfig_cff.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 30,371 | 2015-01-02T00:14:40.000Z | 2022-03-31T23:26:05.000Z | L1TriggerConfig/L1ScalesProducers/python/L1CaloScalesConfig_cff.py | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 3,240 | 2015-01-02T05:53:18.000Z | 2022-03-31T17:24:21.000Z | import FWCore.ParameterSet.Config as cms
from L1TriggerConfig.L1ScalesProducers.l1CaloScales_cfi import *
emrcdsrc = cms.ESSource("EmptyESSource",
recordName = cms.string('L1EmEtScaleRcd'),
iovIsRunNotTime = cms.bool(True),
firstValid = cms.vuint32(1)
)
jetrcdsrc = cms.ESSource("EmptyESSource",
record... | 26.275862 | 64 | 0.723097 | 76 | 762 | 7.236842 | 0.381579 | 0.08 | 0.174545 | 0.247273 | 0.654545 | 0.654545 | 0.341818 | 0.341818 | 0 | 0 | 0 | 0.029321 | 0.149606 | 762 | 28 | 65 | 27.214286 | 0.819444 | 0 | 0 | 0.363636 | 0 | 0 | 0.151316 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6be11fbead11fcb81f2ef968873ca42c8b19679c | 3,127 | py | Python | auth/application/user_service.py | nicolaszein/auth | 90112f1a4d6f368714b19daad7e8a4226594b383 | [
"MIT"
] | null | null | null | auth/application/user_service.py | nicolaszein/auth | 90112f1a4d6f368714b19daad7e8a4226594b383 | [
"MIT"
] | null | null | null | auth/application/user_service.py | nicolaszein/auth | 90112f1a4d6f368714b19daad7e8a4226594b383 | [
"MIT"
] | null | null | null | import uuid
from auth.application.exception import InvalidCredentials, UserNotActivated
from auth.domain.user import User
from auth.infrastructure.password import Password
from auth.infrastructure.token import Token
from auth.infrastructure.user_adapter import UserAdapter
class UserService:
def __init__(self):
... | 35.134831 | 99 | 0.721458 | 391 | 3,127 | 5.317136 | 0.158568 | 0.084656 | 0.137085 | 0.080808 | 0.358826 | 0.320346 | 0.210678 | 0.147186 | 0.147186 | 0.107744 | 0 | 0.0004 | 0.201151 | 3,127 | 88 | 100 | 35.534091 | 0.831865 | 0 | 0 | 0.126984 | 0 | 0 | 0.021426 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.190476 | false | 0.285714 | 0.095238 | 0.031746 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
6bea0b523f00b0e10c188dff6116fb32a31bf903 | 1,585 | py | Python | copy.py | tzuryby/copyip | 31f32bbf7615308f2f80b4632157e4bfb207c693 | [
"Apache-2.0"
] | null | null | null | copy.py | tzuryby/copyip | 31f32bbf7615308f2f80b4632157e4bfb207c693 | [
"Apache-2.0"
] | null | null | null | copy.py | tzuryby/copyip | 31f32bbf7615308f2f80b4632157e4bfb207c693 | [
"Apache-2.0"
] | null | null | null |
import sys
import os
import urllib2
from bs4 import BeautifulSoup as bsoup
print sys.argv
if len(sys.argv) < 3:
print "Usage example: python copy.py Netflix /path/to/target-repo-directory"
sys.exit(1)
orgurl = sys.argv[1]
targetdir = sys.argv[2]
orgurl = "https://www.github.com/%s?page=1" % orgurl
print "... | 25.15873 | 102 | 0.702208 | 243 | 1,585 | 4.403292 | 0.366255 | 0.102804 | 0.052336 | 0.056075 | 0.243925 | 0.128972 | 0.091589 | 0.091589 | 0.091589 | 0.091589 | 0 | 0.012279 | 0.177918 | 1,585 | 62 | 103 | 25.564516 | 0.808903 | 0.104101 | 0 | 0.102564 | 0 | 0 | 0.166431 | 0.021246 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.102564 | null | null | 0.153846 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6bebaf90bd15c0134f852db0621fb4a1fed9268b | 264 | py | Python | colorizer/__main__.py | danbradham/colorizer | 0071f7fdfa3d88e024103e585c8c194877176c8f | [
"MIT"
] | 2 | 2020-03-26T14:37:42.000Z | 2020-06-20T23:04:52.000Z | colorizer/__main__.py | danbradham/colorizer | 0071f7fdfa3d88e024103e585c8c194877176c8f | [
"MIT"
] | null | null | null | colorizer/__main__.py | danbradham/colorizer | 0071f7fdfa3d88e024103e585c8c194877176c8f | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Standard library imports
import sys
# Third party imports
from Qt import QtWidgets
# Local imports
from .ui import Dialog
if __name__ == '__main__':
app = QtWidgets.QApplication(sys.argv)
d = Dialog()
sys.exit(d.exec_())
| 15.529412 | 42 | 0.674242 | 35 | 264 | 4.828571 | 0.714286 | 0.130178 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004762 | 0.204545 | 264 | 16 | 43 | 16.5 | 0.8 | 0.30303 | 0 | 0 | 0 | 0 | 0.044693 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 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 | 1 | 0 | 0 | 0 | 0 | 1 |
6bf44da783424910fd5398cf483e2be80ee83e20 | 3,799 | py | Python | afgraph/evolve/evolution_tree.py | TNonet/afgraph | e5b0fc57b3301d1560cba8b131a5371a5f4f96b5 | [
"MIT"
] | null | null | null | afgraph/evolve/evolution_tree.py | TNonet/afgraph | e5b0fc57b3301d1560cba8b131a5371a5f4f96b5 | [
"MIT"
] | null | null | null | afgraph/evolve/evolution_tree.py | TNonet/afgraph | e5b0fc57b3301d1560cba8b131a5371a5f4f96b5 | [
"MIT"
] | null | null | null | from ..function.node import *
from ..function.tree import *
import numpy as np
def generate_tree(name='test'):
p_branch = .2
p_infertile = .1
p_channel = 1 - p_branch - p_infertile
decay = .25
branch_nodes = [Max, Sum, Mean, Min, Product, Median]
infertile_nodes = [Constant, Input, Uniform, N... | 31.658333 | 114 | 0.614635 | 491 | 3,799 | 4.533605 | 0.260692 | 0.04717 | 0.024708 | 0.012129 | 0.241689 | 0.172058 | 0.172058 | 0.140611 | 0.11186 | 0.11186 | 0 | 0.013258 | 0.30508 | 3,799 | 120 | 115 | 31.658333 | 0.829924 | 0.334562 | 0 | 0.063492 | 1 | 0 | 0.035109 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.015873 | false | 0.015873 | 0.047619 | 0 | 0.095238 | 0.063492 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6bf7fad60bd6530f2448ecde08c56c91a702e06b | 665 | py | Python | prob_046.py | tansly/euler | 8b420cb05223cf60b6c01aac9bfe8ce5a3b96ddc | [
"MIT"
] | 1 | 2017-02-13T19:00:59.000Z | 2017-02-13T19:00:59.000Z | prob_046.py | tansly/euler | 8b420cb05223cf60b6c01aac9bfe8ce5a3b96ddc | [
"MIT"
] | null | null | null | prob_046.py | tansly/euler | 8b420cb05223cf60b6c01aac9bfe8ce5a3b96ddc | [
"MIT"
] | null | null | null | def checkPrime(x):
if x==1:
return False
elif x==2:
return True
elif x%2==0:
return False
else:
n=3
while n<x:
if x%n==0:
return False
else:
n+=2
return True
def checksq(n, i):
return (int(((n - i) /... | 19 | 58 | 0.389474 | 94 | 665 | 2.755319 | 0.265957 | 0.03861 | 0.034749 | 0.123552 | 0.131274 | 0 | 0 | 0 | 0 | 0 | 0 | 0.059172 | 0.491729 | 665 | 34 | 59 | 19.558824 | 0.707101 | 0 | 0 | 0.3125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6bf98c9ac4bb1a4708a2740a2a12d4e6b1ccfeea | 377 | py | Python | Solutions/6kyu/6kyu_ascii_cipher.py | citrok25/Codewars-1 | dc641c5079e2e8b5955eb027fd15427e5bdb2e26 | [
"MIT"
] | 46 | 2017-08-24T09:27:57.000Z | 2022-02-25T02:24:33.000Z | Solutions/6kyu/6kyu_ascii_cipher.py | abbhishek971/Codewars | 9e761811db724da1e8aae44594df42b4ee879a16 | [
"MIT"
] | null | null | null | Solutions/6kyu/6kyu_ascii_cipher.py | abbhishek971/Codewars | 9e761811db724da1e8aae44594df42b4ee879a16 | [
"MIT"
] | 35 | 2017-08-01T22:09:48.000Z | 2022-02-18T17:21:37.000Z | def ascii_cipher(message, key):
pfactor = max(
i for i in range(2, abs(key)+1)
if is_prime(i) and key%i==0
)*(-1 if key<0 else 1)
return ''.join(chr((ord(c)+pfactor)%128) for c in message)
def is_prime(n):
if n < 2: return False
return all(... | 31.416667 | 71 | 0.511936 | 69 | 377 | 2.753623 | 0.478261 | 0.042105 | 0.063158 | 0.115789 | 0.126316 | 0 | 0 | 0 | 0 | 0 | 0 | 0.063745 | 0.334218 | 377 | 11 | 72 | 34.272727 | 0.693227 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
6bff94374d1c3418f2f616b2dab661a86acc6ce0 | 19,067 | py | Python | bindings/ast.py | idobatter/PythonJS | 0161dd5aba6caeaf5b06e74cc8524efd04a36143 | [
"BSD-3-Clause"
] | 1 | 2015-11-06T02:36:29.000Z | 2015-11-06T02:36:29.000Z | bindings/ast.py | idobatter/PythonJS | 0161dd5aba6caeaf5b06e74cc8524efd04a36143 | [
"BSD-3-Clause"
] | null | null | null | bindings/ast.py | idobatter/PythonJS | 0161dd5aba6caeaf5b06e74cc8524efd04a36143 | [
"BSD-3-Clause"
] | null | null | null | # Brython AST to Python AST Bridge
# by Brett Hartshorn - copyright 2013
# License: "New BSD"
def brython_tokenize(src):
module = 'test'
return JS('__BRYTHON__.$tokenize(src, module)')
_decorators = []
def push_decorator(ctx):
_decorators.append( ctx )
def pop_decorators():
arr = list( _decorators )
_decorators.... | 22.671819 | 131 | 0.639744 | 2,891 | 19,067 | 4.068834 | 0.104116 | 0.041656 | 0.040551 | 0.038086 | 0.409759 | 0.308085 | 0.24424 | 0.192298 | 0.17436 | 0.133979 | 0 | 0.00687 | 0.206063 | 19,067 | 841 | 132 | 22.671819 | 0.770181 | 0.096135 | 0 | 0.334808 | 0 | 0 | 0.067669 | 0.005609 | 0 | 0 | 0 | 0.003567 | 0.007375 | 0 | null | null | 0.047198 | 0.011799 | null | null | 0.053097 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
d4010288139e89f92e7e1a1c715375c19d4b15d5 | 2,779 | py | Python | spira/yevon/gdsii/base.py | JCoetzee123/spira | dae08feba1578ecc8745b45109f4fb7bef374546 | [
"MIT"
] | null | null | null | spira/yevon/gdsii/base.py | JCoetzee123/spira | dae08feba1578ecc8745b45109f4fb7bef374546 | [
"MIT"
] | null | null | null | spira/yevon/gdsii/base.py | JCoetzee123/spira | dae08feba1578ecc8745b45109f4fb7bef374546 | [
"MIT"
] | null | null | null | from spira.core.transformable import Transformable
from spira.core.parameters.initializer import ParameterInitializer
from spira.core.parameters.initializer import MetaInitializer
from spira.core.parameters.descriptor import FunctionParameter
from spira.yevon.process.gdsii_layer import LayerParameter
from spira.core.pa... | 30.877778 | 110 | 0.652033 | 299 | 2,779 | 5.658863 | 0.284281 | 0.037234 | 0.038416 | 0.054374 | 0.291962 | 0.252955 | 0.205674 | 0.205674 | 0.205674 | 0.085106 | 0 | 0.000481 | 0.251889 | 2,779 | 89 | 111 | 31.224719 | 0.813372 | 0.015113 | 0 | 0.234375 | 0 | 0 | 0.038334 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.171875 | false | 0 | 0.109375 | 0.046875 | 0.609375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.