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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b362e255f88bd3cd37e7ad66e21656c727b380d6 | 1,459 | py | Python | src/audio/voiceCMD.py | GloryChou/Robotics-N | 438ecf06140a9df896b66ad58a624eab15535ffb | [
"MIT"
] | null | null | null | src/audio/voiceCMD.py | GloryChou/Robotics-N | 438ecf06140a9df896b66ad58a624eab15535ffb | [
"MIT"
] | null | null | null | src/audio/voiceCMD.py | GloryChou/Robotics-N | 438ecf06140a9df896b66ad58a624eab15535ffb | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import sys
sys.path.append("./voc")
from rnaudio import *
from bdasr import *
from rntuling import *
CMD_LST = ["前进","后退","左转","右转","停止"]
# 检测语音内容是否为命令
def checkCmd(text):
if(CMD_LST.index(text) < 0):
return False
return True
# 执行命令
def exeCmd(cmd):
if(C... | 23.918033 | 53 | 0.472241 | 149 | 1,459 | 4.469799 | 0.496644 | 0.054054 | 0.082583 | 0.112613 | 0.13964 | 0.054054 | 0 | 0 | 0 | 0 | 0 | 0.007946 | 0.396162 | 1,459 | 60 | 54 | 24.316667 | 0.748014 | 0.120631 | 0 | 0.057143 | 0 | 0 | 0.049167 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.114286 | null | null | 0.085714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
b3636195601e99ba41fb230804c3fbe974a23e03 | 1,221 | py | Python | utils/other.py | evicxixi/lens | b4fc43ee33877a2b1b299a971c01d1d3f9e594c5 | [
"MIT"
] | 2 | 2021-02-06T15:00:30.000Z | 2021-08-03T11:59:24.000Z | utils/other.py | evicxixi/lens | b4fc43ee33877a2b1b299a971c01d1d3f9e594c5 | [
"MIT"
] | null | null | null | utils/other.py | evicxixi/lens | b4fc43ee33877a2b1b299a971c01d1d3f9e594c5 | [
"MIT"
] | 1 | 2021-02-06T15:00:38.000Z | 2021-02-06T15:00:38.000Z | import collections
class ApiResponse(object):
'''lensAPI响应
Variables:
_status {dict} -- [description]
} {[type]} -- [description]
'''
_status = {
-1: '失败',
0: '未知错误',
1: '成功',
}
def __init__(self, code=0, msg=None, msg_list=[], data={}):
# supe... | 24.42 | 81 | 0.517609 | 136 | 1,221 | 4.397059 | 0.411765 | 0.06689 | 0.036789 | 0.056856 | 0.070234 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006135 | 0.332514 | 1,221 | 49 | 82 | 24.918367 | 0.727607 | 0.153972 | 0 | 0 | 0 | 0 | 0.08674 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.172414 | false | 0 | 0.034483 | 0.103448 | 0.413793 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
b366f83191f70953314cc94597cd93d243fc16d3 | 1,136 | py | Python | tests/test_spoc.py | canorbal/SPOC | 7dd83c86bd0ac4d406d1c6cf6ce63d579a71feaf | [
"MIT"
] | 3 | 2020-04-02T09:50:48.000Z | 2021-11-27T13:23:56.000Z | tests/test_spoc.py | canorbal/SPOC | 7dd83c86bd0ac4d406d1c6cf6ce63d579a71feaf | [
"MIT"
] | null | null | null | tests/test_spoc.py | canorbal/SPOC | 7dd83c86bd0ac4d406d1c6cf6ce63d579a71feaf | [
"MIT"
] | 1 | 2020-04-03T11:09:13.000Z | 2020-04-03T11:09:13.000Z | import pytest
from spoc import spoc, generate_spoc_model
@pytest.fixture()
def get_A():
n_nodes = 300
n_clusters = 5
pure_nodes = 10
A, _, _ = generate_spoc_model.generate_a(n_nodes, n_clusters, pure_nodes)
return A
def test_simple():
A = get_A()
spoc_obj = spoc.SPOC()
theta, b = spo... | 21.846154 | 77 | 0.614437 | 188 | 1,136 | 3.489362 | 0.175532 | 0.106707 | 0.03811 | 0.068598 | 0.643293 | 0.643293 | 0.643293 | 0.612805 | 0.472561 | 0.472561 | 0 | 0.047619 | 0.242077 | 1,136 | 51 | 78 | 22.27451 | 0.714286 | 0 | 0 | 0.512821 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25641 | 1 | 0.153846 | false | 0 | 0.051282 | 0 | 0.230769 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b368bf296dbdcc636fab9eb58ef641d1b9f373aa | 5,735 | py | Python | stepperModule.py | nathrun/Stepper-motor-controller | d77aa21691fe441685db429e178c42c1d3195003 | [
"MIT"
] | null | null | null | stepperModule.py | nathrun/Stepper-motor-controller | d77aa21691fe441685db429e178c42c1d3195003 | [
"MIT"
] | null | null | null | stepperModule.py | nathrun/Stepper-motor-controller | d77aa21691fe441685db429e178c42c1d3195003 | [
"MIT"
] | null | null | null | #---Documentation---------------------------------------------------------------
# This module was designed to run with a L298N h-bridge module. I created this
# in my spare time and did not test extensively so there might be bugs
# def __init__:
# params - motorPinsArray is an array that contains the GPIO pins ... | 39.280822 | 124 | 0.53932 | 677 | 5,735 | 4.543575 | 0.296898 | 0.017555 | 0.013654 | 0.014304 | 0.113459 | 0.081274 | 0.06827 | 0.050715 | 0.050715 | 0.050715 | 0 | 0.025887 | 0.326417 | 5,735 | 145 | 125 | 39.551724 | 0.770386 | 0.411857 | 0 | 0.275862 | 0 | 0 | 0.107513 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.022989 | null | null | 0.08046 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
b36a11a52537268fd878e410e54cd635db94dd2d | 3,980 | py | Python | codes/s3-3_HH.py | HiroshiARAKI/snn_from_scratch | e26e7ce2bbebaa35ad3e325c09f05c334d753049 | [
"MIT"
] | 7 | 2021-01-30T16:04:32.000Z | 2022-02-22T05:06:21.000Z | codes/s3-3_HH.py | HiroshiARAKI/snn_from_scratch | e26e7ce2bbebaa35ad3e325c09f05c334d753049 | [
"MIT"
] | null | null | null | codes/s3-3_HH.py | HiroshiARAKI/snn_from_scratch | e26e7ce2bbebaa35ad3e325c09f05c334d753049 | [
"MIT"
] | 2 | 2021-06-10T08:18:11.000Z | 2021-09-17T08:25:26.000Z | """
ゼロから学ぶスパイキングニューラルネットワーク
- Spiking Neural Networks from Scratch
Copyright (c) 2020 HiroshiARAKI. All Rights Reserved.
"""
import numpy as np
import matplotlib.pyplot as plt
class HodgkinHuxley:
def __init__(self, time, dt, rest=-65., Cm=1.0, gNa=120., gK=36., gl=0.3, ENa=50., EK=-77., El=-54.387):
""... | 27.448276 | 108 | 0.526131 | 580 | 3,980 | 3.524138 | 0.248276 | 0.029354 | 0.039628 | 0.023483 | 0.125734 | 0.050881 | 0.050881 | 0.031311 | 0 | 0 | 0 | 0.043738 | 0.327889 | 3,980 | 144 | 109 | 27.638889 | 0.720374 | 0.213065 | 0 | 0 | 0 | 0 | 0.017667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.134146 | false | 0 | 0.02439 | 0.109756 | 0.292683 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b3722763e70c4324d488749187556b4aee15e035 | 23,812 | py | Python | gprof_nn/bin/train.py | simonpf/gprof_nn | c00fb88266d665e82fd872a77768293945abf301 | [
"MIT"
] | 1 | 2021-08-05T04:00:53.000Z | 2021-08-05T04:00:53.000Z | gprof_nn/bin/train.py | simonpf/gprof_nn | c00fb88266d665e82fd872a77768293945abf301 | [
"MIT"
] | null | null | null | gprof_nn/bin/train.py | simonpf/gprof_nn | c00fb88266d665e82fd872a77768293945abf301 | [
"MIT"
] | null | null | null | """
==================
gprof_nn.bin.train
==================
This sub-module implements the 'train' sub-command of the
'gprof_nn' command line application, which trains
networks for the GPROF-NN retrieval algorithm.
"""
import argparse
import logging
from concurrent.futures import ProcessPoolExecutor
from pathlib impo... | 29.72784 | 88 | 0.57471 | 2,586 | 23,812 | 5.102088 | 0.109049 | 0.021222 | 0.029635 | 0.015765 | 0.727528 | 0.699864 | 0.668865 | 0.641883 | 0.634758 | 0.629225 | 0 | 0.008373 | 0.302873 | 23,812 | 800 | 89 | 29.765 | 0.786446 | 0.091676 | 0 | 0.633279 | 0 | 0.001616 | 0.157393 | 0.007351 | 0 | 0 | 0 | 0 | 0 | 1 | 0.008078 | false | 0 | 0.054927 | 0 | 0.071082 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b372ab4e30324f92aed03162c16fd4e5ff5a7e93 | 521 | py | Python | jp.atcoder/abc090/abc090_b/9150099.py | kagemeka/atcoder-submissions | 91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e | [
"MIT"
] | 1 | 2022-02-09T03:06:25.000Z | 2022-02-09T03:06:25.000Z | jp.atcoder/abc090/abc090_b/9150099.py | kagemeka/atcoder-submissions | 91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e | [
"MIT"
] | 1 | 2022-02-05T22:53:18.000Z | 2022-02-09T01:29:30.000Z | jp.atcoder/abc090/abc090_b/9150099.py | kagemeka/atcoder-submissions | 91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e | [
"MIT"
] | null | null | null | import sys
from bisect import bisect_left as bi_l
from bisect import bisect_right as bi_r
a, b = map(int, sys.stdin.readline().split())
def main():
palindromic_nums = []
for i in range(1, 10):
for j in range(10):
for k in range(10):
x = [i, j, k, j, i]
... | 23.681818 | 73 | 0.566219 | 79 | 521 | 3.506329 | 0.493671 | 0.216607 | 0.115523 | 0.158845 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019337 | 0.305182 | 521 | 21 | 74 | 24.809524 | 0.745856 | 0 | 0 | 0 | 0 | 0 | 0.016 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.2 | 0 | 0.333333 | 0.066667 | 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 |
b372ffef62affb5ef242405cae3add439db2480d | 1,299 | py | Python | cegs_portal/search/views/v1/search.py | ReddyLab/cegs-portal | a83703a3557167be328c24bfb866b6aa019ba059 | [
"MIT"
] | null | null | null | cegs_portal/search/views/v1/search.py | ReddyLab/cegs-portal | a83703a3557167be328c24bfb866b6aa019ba059 | [
"MIT"
] | null | null | null | cegs_portal/search/views/v1/search.py | ReddyLab/cegs-portal | a83703a3557167be328c24bfb866b6aa019ba059 | [
"MIT"
] | null | null | null | from urllib.parse import unquote_plus
from django.http import HttpResponseServerError
from cegs_portal.search.errors import SearchResultsException
from cegs_portal.search.forms import SearchForm
from cegs_portal.search.json_templates.v1.search_results import (
search_results as sr_json,
)
from cegs_portal.search.... | 34.184211 | 86 | 0.724403 | 154 | 1,299 | 5.922078 | 0.337662 | 0.085526 | 0.076754 | 0.109649 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002828 | 0.183218 | 1,299 | 37 | 87 | 35.108108 | 0.856739 | 0 | 0 | 0 | 0 | 0 | 0.073903 | 0.022325 | 0 | 0 | 0 | 0 | 0 | 1 | 0.107143 | false | 0 | 0.25 | 0 | 0.607143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
2fa1f479f53c3f2e4de760c0e8fd5baf829aa143 | 1,628 | py | Python | tests/TestFinDate.py | suhasghorp/FinancePy | 567486785b33768f229a404e860f92fd042034a2 | [
"BSD-3-Clause"
] | null | null | null | tests/TestFinDate.py | suhasghorp/FinancePy | 567486785b33768f229a404e860f92fd042034a2 | [
"BSD-3-Clause"
] | 1 | 2020-05-07T14:38:23.000Z | 2020-05-07T14:38:23.000Z | tests/TestFinDate.py | suhasghorp/FinancePy | 567486785b33768f229a404e860f92fd042034a2 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Sat Feb 06 07:26:46 2016
@author: Dominic O'Kane
"""
from financepy.finutils.FinTestCases import FinTestCases, globalTestCaseMode
from financepy.finutils.FinDate import FinDate
import sys
sys.path.append("..//..")
testCases = FinTestCases(__file__, globalTestCaseMode)
def te... | 21.421053 | 76 | 0.672604 | 184 | 1,628 | 5.907609 | 0.353261 | 0.091996 | 0.174793 | 0.24839 | 0.464581 | 0.435143 | 0.128795 | 0.060718 | 0 | 0 | 0 | 0.041096 | 0.192875 | 1,628 | 75 | 77 | 21.706667 | 0.786149 | 0.050983 | 0 | 0.285714 | 0 | 0 | 0.045543 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.071429 | 0 | 0.119048 | 0.285714 | 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 |
2fa3e01d47c19921a743351bbe713c10b4738ee6 | 1,479 | py | Python | src/scripts/zip-scorings-for-teams.py | trec-kba/kba-scorer | 6c45ba83b3dc890059b9a89b6598f47b1ced1061 | [
"MIT"
] | 2 | 2015-11-12T06:24:03.000Z | 2020-06-21T11:44:53.000Z | src/scripts/zip-scorings-for-teams.py | trec-kba/kba-scorer | 6c45ba83b3dc890059b9a89b6598f47b1ced1061 | [
"MIT"
] | null | null | null | src/scripts/zip-scorings-for-teams.py | trec-kba/kba-scorer | 6c45ba83b3dc890059b9a89b6598f47b1ced1061 | [
"MIT"
] | null | null | null |
import os
import sys
import gzip
import json
import zipfile
import argparse
from collections import defaultdict
parser = argparse.ArgumentParser()
parser.add_argument('runs')
parser.add_argument('--path', default='', help='path to use inside zip archive')
args = parser.parse_args()
teams = defaultdict(set)
#BIT-E... | 24.65 | 80 | 0.643002 | 216 | 1,479 | 4.300926 | 0.375 | 0.06028 | 0.032293 | 0.04521 | 0.124865 | 0.124865 | 0 | 0 | 0 | 0 | 0 | 0.004252 | 0.204868 | 1,479 | 59 | 81 | 25.067797 | 0.785714 | 0.04192 | 0 | 0 | 0 | 0 | 0.079972 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.166667 | null | null | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
2fa94d5ebd80847fa1aca632c4301c82c654431a | 726 | py | Python | tests/test_fetch.py | simonwoerpel/runpandarun | 6ea5f4c7fdda92775ed87c8930442a605d005551 | [
"MIT"
] | 3 | 2020-03-28T14:51:49.000Z | 2020-04-02T10:53:15.000Z | tests/test_fetch.py | simonwoerpel/simple-datastore | 6ea5f4c7fdda92775ed87c8930442a605d005551 | [
"MIT"
] | null | null | null | tests/test_fetch.py | simonwoerpel/simple-datastore | 6ea5f4c7fdda92775ed87c8930442a605d005551 | [
"MIT"
] | null | null | null | import unittest
from runpandarun import Datastore
class Test(unittest.TestCase):
# base fetching logic see `tests.test_datastore`
def setUp(self):
self.store = Datastore('./example/config.yml')
self.dataset = self.store.datasets[0]
def test_dedup_update_by_hash(self):
ds = self... | 26.888889 | 92 | 0.65978 | 97 | 726 | 4.793814 | 0.556701 | 0.058065 | 0.068817 | 0.08172 | 0.163441 | 0.163441 | 0.163441 | 0.163441 | 0.163441 | 0 | 0 | 0.001792 | 0.231405 | 726 | 26 | 93 | 27.923077 | 0.831541 | 0.174931 | 0 | 0.2 | 0 | 0 | 0.080672 | 0 | 0 | 0 | 0 | 0.038462 | 0.066667 | 1 | 0.2 | false | 0 | 0.133333 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2fa9b452061bd72650de90b5714719b70e6e7495 | 2,930 | py | Python | raymon/tests/profiling/test_features.py | pbonte/raymon | 83912d7a5ff22d61289688828169a7178fa34a2d | [
"MIT"
] | null | null | null | raymon/tests/profiling/test_features.py | pbonte/raymon | 83912d7a5ff22d61289688828169a7178fa34a2d | [
"MIT"
] | null | null | null | raymon/tests/profiling/test_features.py | pbonte/raymon | 83912d7a5ff22d61289688828169a7178fa34a2d | [
"MIT"
] | null | null | null | #%%
from raymon.profiling.components import DataType
import pytest
import pandas as pd
import numpy as np
from raymon.profiling.extractors.structured import generate_components
from raymon import InputComponent
from raymon import IntStats, FloatStats, CategoricStats
from raymon import ModelProfile
from raymon.globals... | 32.197802 | 119 | 0.682253 | 344 | 2,930 | 5.744186 | 0.27907 | 0.072874 | 0.092105 | 0.02581 | 0.398279 | 0.317308 | 0.21913 | 0.21913 | 0.147267 | 0.147267 | 0 | 0.022204 | 0.185324 | 2,930 | 90 | 120 | 32.555556 | 0.805614 | 0.002389 | 0 | 0.30137 | 1 | 0 | 0.069521 | 0 | 0 | 0 | 0 | 0 | 0.315068 | 1 | 0.054795 | false | 0.013699 | 0.136986 | 0 | 0.191781 | 0 | 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 |
2fb153dc1a8b21c31a7b9e950dbe6d8ea75a14ba | 1,806 | py | Python | app/webdriver/mouseActuator.py | enricoteterra/virtual-agent | fa07df4789ebf265bd56726f6d9aad6fce411c97 | [
"MIT"
] | null | null | null | app/webdriver/mouseActuator.py | enricoteterra/virtual-agent | fa07df4789ebf265bd56726f6d9aad6fce411c97 | [
"MIT"
] | null | null | null | app/webdriver/mouseActuator.py | enricoteterra/virtual-agent | fa07df4789ebf265bd56726f6d9aad6fce411c97 | [
"MIT"
] | null | null | null | from selenium.webdriver.common.action_chains import ActionChains
from selenium.webdriver.common.keys import Keys
class MouseActuator(object):
""" enables agent to look around the virtual environment
by performing drag and drop actions with the mouse. """
def __init__(self, webDriver):
self.... | 27.363636 | 79 | 0.565891 | 183 | 1,806 | 5.437158 | 0.42623 | 0.060302 | 0.110553 | 0.072362 | 0.41005 | 0.41005 | 0.41005 | 0.41005 | 0.41005 | 0.41005 | 0 | 0.014226 | 0.338317 | 1,806 | 66 | 80 | 27.363636 | 0.81841 | 0.160022 | 0 | 0.55 | 0 | 0 | 0.004076 | 0 | 0 | 0 | 0 | 0.015152 | 0 | 1 | 0.175 | false | 0 | 0.05 | 0 | 0.275 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
2fb362d1214c2e0358359ad3fad9859b269b610a | 2,017 | py | Python | doc/sphinx/source/gensidebar.py | chrisdane/ESMValTool | 35e0c2b0dbaa0927a2d677f382b43520633a1a0f | [
"Apache-2.0"
] | 1 | 2019-11-28T13:09:42.000Z | 2019-11-28T13:09:42.000Z | doc/sphinx/source/gensidebar.py | chrisdane/ESMValTool | 35e0c2b0dbaa0927a2d677f382b43520633a1a0f | [
"Apache-2.0"
] | null | null | null | doc/sphinx/source/gensidebar.py | chrisdane/ESMValTool | 35e0c2b0dbaa0927a2d677f382b43520633a1a0f | [
"Apache-2.0"
] | 1 | 2019-11-29T00:50:30.000Z | 2019-11-29T00:50:30.000Z | """Generates sidebar/toctree.
Generates the common sidebar/toctree for the sphinx/ReadTheDocs
documentation of the ESMValTool and its subprojects.
"""
import os
def _write_if_changed(fname, contents):
"""Write/update file only if changed."""
try:
with open(fname, "r") as stream:
old_cont... | 29.231884 | 73 | 0.609321 | 222 | 2,017 | 5.391892 | 0.427928 | 0.075188 | 0.050125 | 0.026734 | 0.028404 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001982 | 0.24938 | 2,017 | 68 | 74 | 29.661765 | 0.788639 | 0.185424 | 0 | 0 | 1 | 0 | 0.2977 | 0.013052 | 0 | 0 | 0 | 0 | 0 | 1 | 0.128205 | false | 0 | 0.025641 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2fbe60556591e6ea771b8d9b0fb07aa24ee7d52e | 412 | py | Python | src/bilbyui/migrations/0003_bilbyjob_job_id.py | gravitationalwavedc/gwcloud_bilby | f5074fe60ff2a3cfa6a7e8d3e97c9573a6152563 | [
"MIT"
] | 1 | 2020-10-26T02:35:26.000Z | 2020-10-26T02:35:26.000Z | src/bilbyui/migrations/0003_bilbyjob_job_id.py | gravitationalwavedc/gwcloud_bilby | f5074fe60ff2a3cfa6a7e8d3e97c9573a6152563 | [
"MIT"
] | 31 | 2020-05-04T05:57:45.000Z | 2022-02-23T04:35:35.000Z | src/bilbyui/migrations/0003_bilbyjob_job_id.py | gravitationalwavedc/gwcloud_bilby | f5074fe60ff2a3cfa6a7e8d3e97c9573a6152563 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.12 on 2020-05-04 01:55
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('bilbyui', '0002_auto_20200403_0346'),
]
operations = [
migrations.AddField(
model_name='bilbyjob',
name='job_id',
... | 21.684211 | 75 | 0.609223 | 46 | 412 | 5.347826 | 0.826087 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.107023 | 0.274272 | 412 | 18 | 76 | 22.888889 | 0.715719 | 0.11165 | 0 | 0 | 1 | 0 | 0.120879 | 0.063187 | 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 |
2fc423f893bd3252b0386c8c3d77fadc7763c6cf | 175 | py | Python | positive.py | sreeja808/area | d9356edae588cbbe1723ebb50206718bd5506e1a | [
"MIT"
] | null | null | null | positive.py | sreeja808/area | d9356edae588cbbe1723ebb50206718bd5506e1a | [
"MIT"
] | null | null | null | positive.py | sreeja808/area | d9356edae588cbbe1723ebb50206718bd5506e1a | [
"MIT"
] | 1 | 2021-05-26T03:50:29.000Z | 2021-05-26T03:50:29.000Z | list1 = [12,3,5,-5,-6,-1]
for i in list1:
if i >= 0:
print (i)
list2 = [12,4,-95,3]
for num in list2:
if num >= 0:
print (" [ ",num," ] ")
| 14.583333 | 31 | 0.405714 | 30 | 175 | 2.366667 | 0.533333 | 0.169014 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.174312 | 0.377143 | 175 | 11 | 32 | 15.909091 | 0.477064 | 0 | 0 | 0 | 0 | 0 | 0.034286 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
2fc7102688c701aaa329bcfa0f786cc0ecbade58 | 317 | py | Python | dkr-py310/docker-student-portal-310/course_files/experimental/py_socket_connector_info.py | pbarton666/virtual_classroom | a9d0dc2eb16ebc4d2fd451c3a3e6f96e37c87675 | [
"MIT"
] | null | null | null | dkr-py310/docker-student-portal-310/course_files/experimental/py_socket_connector_info.py | pbarton666/virtual_classroom | a9d0dc2eb16ebc4d2fd451c3a3e6f96e37c87675 | [
"MIT"
] | null | null | null | dkr-py310/docker-student-portal-310/course_files/experimental/py_socket_connector_info.py | pbarton666/virtual_classroom | a9d0dc2eb16ebc4d2fd451c3a3e6f96e37c87675 | [
"MIT"
] | null | null | null | #py_socket_connector_info.py
import socket
ip_address= 'localhost' #serving locally only
port = 8000 #an arbitrary 4-digit port
protocol_family_name= socket.AF_INET #olde tyme IPv4 protocol
socket_type= socket.SOCK_STREAM #a simple stream | 52.833333 | 72 | 0.624606 | 38 | 317 | 4.973684 | 0.789474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028169 | 0.328076 | 317 | 6 | 73 | 52.833333 | 0.859155 | 0.347003 | 0 | 0 | 0 | 0 | 0.044335 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
2fcb83df8246039030c933b8283469419c30c995 | 1,451 | py | Python | models/survey.py | SaijaUusi/pts_feedback | e3f0d798397fde7e0b60787cd9df8577e84d2b62 | [
"MIT"
] | null | null | null | models/survey.py | SaijaUusi/pts_feedback | e3f0d798397fde7e0b60787cd9df8577e84d2b62 | [
"MIT"
] | null | null | null | models/survey.py | SaijaUusi/pts_feedback | e3f0d798397fde7e0b60787cd9df8577e84d2b62 | [
"MIT"
] | null | null | null | import datetime
from app import app, db
from flask import flash, render_template, request, redirect
from wtforms import Form, IntegerField, StringField
class Survey:
__tablename__ = "surveys"
id = int()
description = str()
start_date = datetime.date
end_date = datetime.date
def __init__(sel... | 27.903846 | 69 | 0.644383 | 167 | 1,451 | 5.431138 | 0.383234 | 0.046307 | 0.035281 | 0.037486 | 0.063947 | 0.063947 | 0 | 0 | 0 | 0 | 0 | 0.002657 | 0.221916 | 1,451 | 52 | 70 | 27.903846 | 0.800709 | 0 | 0 | 0.105263 | 0 | 0 | 0.129477 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0.105263 | 0.026316 | 0.552632 | 0.052632 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
2fd30bbd15b0722c5160c27ab0b0eb48e83d7fcf | 537 | py | Python | tests/test_utils.py | smaeda-ks/twitter-python-ads-sdk-v2 | 2e9578c6f2e3ff431405677cf00d98b5f617d88c | [
"MIT"
] | null | null | null | tests/test_utils.py | smaeda-ks/twitter-python-ads-sdk-v2 | 2e9578c6f2e3ff431405677cf00d98b5f617d88c | [
"MIT"
] | null | null | null | tests/test_utils.py | smaeda-ks/twitter-python-ads-sdk-v2 | 2e9578c6f2e3ff431405677cf00d98b5f617d88c | [
"MIT"
] | null | null | null | from twitter_ads_v2.utils import CustomDecorators
def test_decorator_deprecated():
import warnings
class TestClass(object):
@classmethod
@CustomDecorators.deprecated('deprecated API')
def test(self):
pass
with warnings.catch_warnings(record=True) as log:
TestC... | 28.263158 | 63 | 0.66108 | 61 | 537 | 5.737705 | 0.557377 | 0.045714 | 0.045714 | 0.051429 | 0.091429 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012255 | 0.240223 | 537 | 18 | 64 | 29.833333 | 0.845588 | 0 | 0 | 0 | 0 | 0 | 0.078212 | 0 | 0 | 0 | 0 | 0 | 0.285714 | 1 | 0.142857 | false | 0.071429 | 0.142857 | 0 | 0.357143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
2fd55a9541f3cdf811e93acd233be903776f8c4b | 2,268 | py | Python | spNQueenTheorem/generator.py | lightofanima/Adventures | efb9d001520ff0b88746d8b3cf024de3307e45c7 | [
"MIT"
] | null | null | null | spNQueenTheorem/generator.py | lightofanima/Adventures | efb9d001520ff0b88746d8b3cf024de3307e45c7 | [
"MIT"
] | null | null | null | spNQueenTheorem/generator.py | lightofanima/Adventures | efb9d001520ff0b88746d8b3cf024de3307e45c7 | [
"MIT"
] | null | null | null | # This script generates a theorem for them Z3 SAT solver. The output of this program
# is designed to be the input for http://rise4fun.com/z3
# The output of z3 is the coordinates of the queens for a solution to the N Queen problem :)
#Prints an assert statement
def zassert(x):
print("( assert ( {} ) )".format(x)... | 36 | 211 | 0.507055 | 314 | 2,268 | 3.656051 | 0.27707 | 0.041812 | 0.036585 | 0.041812 | 0.275261 | 0.275261 | 0.275261 | 0.275261 | 0.240418 | 0.240418 | 0 | 0.012563 | 0.29806 | 2,268 | 63 | 212 | 36 | 0.708543 | 0.256173 | 0 | 0.103448 | 1 | 0.068966 | 0.321128 | 0 | 0 | 0 | 0 | 0 | 0.37931 | 1 | 0.103448 | false | 0 | 0 | 0 | 0.103448 | 0.137931 | 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 |
2fd7ccb0edcef982c78529cb3f2b6240607ff221 | 4,018 | py | Python | test/TestHttpdConf.py | bigio/mod_md | 5e34c14e2b7ad195f662290c26481cbc3a249fe0 | [
"Apache-2.0"
] | null | null | null | test/TestHttpdConf.py | bigio/mod_md | 5e34c14e2b7ad195f662290c26481cbc3a249fe0 | [
"Apache-2.0"
] | null | null | null | test/TestHttpdConf.py | bigio/mod_md | 5e34c14e2b7ad195f662290c26481cbc3a249fe0 | [
"Apache-2.0"
] | null | null | null | ###################################################################################################
# httpd test configuration generator
#
# (c) 2019 greenbytes GmbH
###################################################################################################
import os
from shutil import copyfile
from TestEnv i... | 29.328467 | 107 | 0.559731 | 507 | 4,018 | 4.238659 | 0.258383 | 0.065147 | 0.092136 | 0.02792 | 0.286645 | 0.158678 | 0.100512 | 0.100512 | 0.066077 | 0.035365 | 0 | 0.006067 | 0.261573 | 4,018 | 136 | 108 | 29.544118 | 0.718234 | 0.029617 | 0 | 0.139785 | 0 | 0 | 0.217532 | 0.017857 | 0 | 0 | 0 | 0 | 0 | 1 | 0.258065 | false | 0 | 0.032258 | 0 | 0.301075 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
2fe0baf495e13449bb86e81600805580f4d2c6d0 | 856 | py | Python | exercises/pressing_button.py | polde-live/interprog1 | a49ecef14453839518f1e8a6551fb3af493b1c2c | [
"Unlicense"
] | null | null | null | exercises/pressing_button.py | polde-live/interprog1 | a49ecef14453839518f1e8a6551fb3af493b1c2c | [
"Unlicense"
] | null | null | null | exercises/pressing_button.py | polde-live/interprog1 | a49ecef14453839518f1e8a6551fb3af493b1c2c | [
"Unlicense"
] | null | null | null | """
An Introduction to Interactive Programming in Python (Part 1)
Practice exercises for timers # 5.
Reflex tester
"""
import simpleguitk as simplegui
total_ticks = 0
first_click = True
# Timer handler
def tick():
global total_ticks
total_ticks += 1
def measure_time():
time_elapsed = t... | 19.454545 | 64 | 0.674065 | 112 | 856 | 4.991071 | 0.5 | 0.107335 | 0.039356 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030864 | 0.242991 | 856 | 44 | 65 | 19.454545 | 0.83179 | 0.073598 | 0 | 0.173913 | 0 | 0 | 0.110778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.043478 | null | null | 0.086957 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2fe95ac5ad6850056ec5d4d764a60b3bb96cbf2d | 1,500 | py | Python | archives/migrations/0018_auto_20220122_1014.py | mofadweb/Website | 2df3fd531b8fd0b47c2c2ca67e74692383352c71 | [
"MIT"
] | null | null | null | archives/migrations/0018_auto_20220122_1014.py | mofadweb/Website | 2df3fd531b8fd0b47c2c2ca67e74692383352c71 | [
"MIT"
] | 1 | 2022-02-18T11:01:43.000Z | 2022-02-18T11:01:43.000Z | archives/migrations/0018_auto_20220122_1014.py | mofadweb/Website | 2df3fd531b8fd0b47c2c2ca67e74692383352c71 | [
"MIT"
] | null | null | null | # Generated by Django 3.2 on 2022-01-22 10:14
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('archives', '0017_alter_report_type'),
]
operations = [
migrations.CreateModel(
name='AgencyDivision',
fields=[
... | 32.608696 | 117 | 0.550667 | 139 | 1,500 | 5.791367 | 0.438849 | 0.093168 | 0.089441 | 0.119255 | 0.484472 | 0.447205 | 0.273292 | 0.273292 | 0.273292 | 0.273292 | 0 | 0.031189 | 0.316 | 1,500 | 45 | 118 | 33.333333 | 0.753411 | 0.028667 | 0 | 0.461538 | 1 | 0 | 0.103093 | 0.01512 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.025641 | 0 | 0.102564 | 0 | 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 |
2feb430313c15390658eada278d9e4577ae009c9 | 635 | py | Python | src/kratos/migrations/0003_ambassadorinfo_user.py | mascot6699/MSHack-Hackathon-Management-Platform | f3782ad83d01de8ace99b55bdf4835d93ff18952 | [
"MIT"
] | 2 | 2019-01-21T08:16:46.000Z | 2019-01-26T10:02:48.000Z | src/kratos/migrations/0003_ambassadorinfo_user.py | mascot6699/MSHack-Hackathon-Management-Platform | f3782ad83d01de8ace99b55bdf4835d93ff18952 | [
"MIT"
] | null | null | null | src/kratos/migrations/0003_ambassadorinfo_user.py | mascot6699/MSHack-Hackathon-Management-Platform | f3782ad83d01de8ace99b55bdf4835d93ff18952 | [
"MIT"
] | 1 | 2021-01-31T17:05:03.000Z | 2021-01-31T17:05:03.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2019-01-20 02:45
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('profiles', '0003_auto_20190120_0245'),
('kratos', '000... | 27.608696 | 152 | 0.659843 | 74 | 635 | 5.459459 | 0.689189 | 0.059406 | 0.069307 | 0.108911 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.094188 | 0.214173 | 635 | 22 | 153 | 28.863636 | 0.715431 | 0.102362 | 0 | 0 | 1 | 0 | 0.179894 | 0.081129 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2febfc93c5aee54f3532447f7d16f306d692bcc0 | 695 | py | Python | solutions/solution523.py | Satily/leetcode_python_solution | 3f05fff7758d650469862bc28df9e4aa7b1d3203 | [
"MIT"
] | 3 | 2018-11-22T10:31:09.000Z | 2019-05-05T15:53:48.000Z | solutions/solution523.py | Satily/leetcode_python_solution | 3f05fff7758d650469862bc28df9e4aa7b1d3203 | [
"MIT"
] | null | null | null | solutions/solution523.py | Satily/leetcode_python_solution | 3f05fff7758d650469862bc28df9e4aa7b1d3203 | [
"MIT"
] | null | null | null | class Solution:
def checkSubarraySum(self, nums, k):
"""
:type nums: List[int]
:type k: int
:rtype: bool
"""
sums = [0]
s = 0
for num in nums:
s += num
sums.append(s)
for i in range(len(sums)):
for j in range... | 27.8 | 62 | 0.457554 | 92 | 695 | 3.369565 | 0.413043 | 0.019355 | 0.280645 | 0.03871 | 0.206452 | 0.206452 | 0 | 0 | 0 | 0 | 0 | 0.056872 | 0.392806 | 695 | 24 | 63 | 28.958333 | 0.677725 | 0.067626 | 0 | 0 | 0 | 0 | 0.013158 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0 | 0 | 0.235294 | 0.176471 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
2ff35089a6ef2faae60035d74db690ac433be79f | 1,330 | py | Python | literate/commands/commands.py | debrouwere/python-literate | 0d9e187c3e7adf6dda76ffddfac4c09bd01ff53d | [
"MIT"
] | 27 | 2015-03-23T12:20:10.000Z | 2021-12-29T00:57:36.000Z | literate/commands/commands.py | debrouwere/python-literate | 0d9e187c3e7adf6dda76ffddfac4c09bd01ff53d | [
"MIT"
] | null | null | null | literate/commands/commands.py | debrouwere/python-literate | 0d9e187c3e7adf6dda76ffddfac4c09bd01ff53d | [
"MIT"
] | 1 | 2018-01-27T16:08:37.000Z | 2018-01-27T16:08:37.000Z | import fs
from literate import parser, templates, package
def run(options):
for path in options.src:
source = fs.File(path).read()
parser.run(source)
def untangle(options):
raise NotImplementedError()
def weave(options):
src = fs.File(options.src)
dest = fs.Directory(options.dest)
... | 32.439024 | 97 | 0.650376 | 168 | 1,330 | 5.142857 | 0.494048 | 0.034722 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.247368 | 1,330 | 41 | 98 | 32.439024 | 0.863137 | 0.346617 | 0 | 0 | 0 | 0 | 0.014002 | 0 | 0 | 0 | 0 | 0.02439 | 0 | 1 | 0.130435 | false | 0 | 0.086957 | 0 | 0.217391 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
2ffe6616d8044d4fc9d06b0d7a8cb28470508338 | 1,339 | py | Python | WebServices/ErrorHandler.py | david-c-stein/Python-HouseLEDs | ba01368179f30fe7612b30f1257838b715fd866b | [
"MIT"
] | null | null | null | WebServices/ErrorHandler.py | david-c-stein/Python-HouseLEDs | ba01368179f30fe7612b30f1257838b715fd866b | [
"MIT"
] | null | null | null | WebServices/ErrorHandler.py | david-c-stein/Python-HouseLEDs | ba01368179f30fe7612b30f1257838b715fd866b | [
"MIT"
] | null | null | null |
import os
import tornado.web
import logging
import logging.config
class ErrorHandler(tornado.web.RequestHandler):
"""Generates an error response with status_code for all requests."""
def __init__(self, application, request, status_code):
tornado.web.RequestHandler.__init__(self, applica... | 38.257143 | 91 | 0.57655 | 141 | 1,339 | 5.262411 | 0.475177 | 0.107817 | 0.059299 | 0.070081 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012987 | 0.309933 | 1,339 | 34 | 92 | 39.382353 | 0.790043 | 0.097834 | 0 | 0 | 1 | 0 | 0.136364 | 0.066895 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08 | false | 0 | 0.16 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
641bda3052bba4bf9941da7364723d92a8d023d3 | 1,949 | py | Python | main.py | mrinalpande/Music-Encrypt | 95e0f128232be307c844066cdf85a39097855d47 | [
"MIT"
] | 6 | 2017-08-19T21:41:57.000Z | 2022-01-15T22:25:09.000Z | main.py | mrinalpande/Music-Encrypt | 95e0f128232be307c844066cdf85a39097855d47 | [
"MIT"
] | null | null | null | main.py | mrinalpande/Music-Encrypt | 95e0f128232be307c844066cdf85a39097855d47 | [
"MIT"
] | 2 | 2017-11-28T00:18:02.000Z | 2022-01-16T06:57:42.000Z | ### Author: Mrinal Pande
### Date: Aug,15 2017
import sys
import os.path
import encrypt
import decrypt
def main():
print("---------------------------------------------------")
print("Music Encrypt - Music Based Encryption")
print("Author: Mrinal Pande")
print("----------------------------------------... | 38.215686 | 79 | 0.473063 | 226 | 1,949 | 4.079646 | 0.29646 | 0.113883 | 0.073753 | 0.091106 | 0.37961 | 0.338395 | 0.338395 | 0.338395 | 0.219089 | 0.182213 | 0 | 0.014915 | 0.277578 | 1,949 | 51 | 80 | 38.215686 | 0.639915 | 0.020523 | 0 | 0.395833 | 0 | 0.020833 | 0.425644 | 0.107199 | 0 | 0 | 0 | 0 | 0 | 1 | 0.020833 | false | 0 | 0.083333 | 0 | 0.104167 | 0.541667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6421b1b7b2e38c7edd30e5c6a1cd997d966903be | 199 | py | Python | books/effectivepy-v2/chap7/ad52/subproces_popen.py | MerleLiuKun/my-python | 0bec138cc6a9870ca47e0e62e9b92d50fb6cb3d8 | [
"MIT"
] | 1 | 2018-12-10T02:29:58.000Z | 2018-12-10T02:29:58.000Z | books/effectivepy-v2/chap7/ad52/subproces_popen.py | MerleLiuKun/my-python | 0bec138cc6a9870ca47e0e62e9b92d50fb6cb3d8 | [
"MIT"
] | null | null | null | books/effectivepy-v2/chap7/ad52/subproces_popen.py | MerleLiuKun/my-python | 0bec138cc6a9870ca47e0e62e9b92d50fb6cb3d8 | [
"MIT"
] | 1 | 2021-05-26T09:06:20.000Z | 2021-05-26T09:06:20.000Z | """
"""
import subprocess
import time
proc = subprocess.Popen(["sleep", "1"])
while proc.poll() is None:
print("Working...")
time.sleep(1) # 模拟其他任务处理
print(f"Exit status {proc.poll()}")
| 14.214286 | 39 | 0.623116 | 26 | 199 | 4.769231 | 0.653846 | 0.096774 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012121 | 0.170854 | 199 | 13 | 40 | 15.307692 | 0.739394 | 0.040201 | 0 | 0 | 0 | 0 | 0.226519 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0.285714 | 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 |
642b03514aa01a3fc1ab774281df2701a42ff782 | 427 | py | Python | papier/helper.py | shiroyuki/papier | 4a39c3f38419dd19f84dca7b3ccec83933501dde | [
"MIT"
] | null | null | null | papier/helper.py | shiroyuki/papier | 4a39c3f38419dd19f84dca7b3ccec83933501dde | [
"MIT"
] | 1 | 2016-08-08T02:24:23.000Z | 2016-08-08T02:24:23.000Z | papier/helper.py | shiroyuki/papier | 4a39c3f38419dd19f84dca7b3ccec83933501dde | [
"MIT"
] | null | null | null | import os
import papier
_base_path = os.path.dirname(papier.__file__)
def path(*level):
global _base_path
primary = os.path.abspath(os.path.join(_base_path, *level))
secondary = os.path.abspath(os.path.join(_base_path, '..', *level))
local = os.path.abspath(os.path.join(*level))
return lo... | 25.117647 | 71 | 0.672131 | 61 | 427 | 4.508197 | 0.311475 | 0.196364 | 0.141818 | 0.163636 | 0.345455 | 0.345455 | 0.261818 | 0.261818 | 0.261818 | 0 | 0 | 0 | 0.194379 | 427 | 16 | 72 | 26.6875 | 0.799419 | 0 | 0 | 0 | 0 | 0 | 0.004684 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.181818 | 0 | 0.363636 | 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 |
642f544b40b4e720e89c3e4592c46d35b032a261 | 1,514 | py | Python | pymtl3/stdlib/ifcs/XcelMsg.py | mondO/pymtl3 | 9869dda28c01926cee6da94ebdeac2a210150c62 | [
"BSD-3-Clause"
] | 1 | 2022-01-03T06:22:11.000Z | 2022-01-03T06:22:11.000Z | pymtl3/stdlib/ifcs/XcelMsg.py | mondO/pymtl3 | 9869dda28c01926cee6da94ebdeac2a210150c62 | [
"BSD-3-Clause"
] | null | null | null | pymtl3/stdlib/ifcs/XcelMsg.py | mondO/pymtl3 | 9869dda28c01926cee6da94ebdeac2a210150c62 | [
"BSD-3-Clause"
] | null | null | null | """
========================================================================
XcelMsg.py
========================================================================
Accelerator message type implementation.
Author : Yanghui Ou
Date : June 3, 2019
"""
from pymtl3 import *
def mk_xcel_msg( addr, data ):
return mk_xcel_... | 24.031746 | 72 | 0.557464 | 181 | 1,514 | 4.375691 | 0.320442 | 0.037879 | 0.050505 | 0.106061 | 0.472222 | 0.429293 | 0.305556 | 0.136364 | 0.136364 | 0.136364 | 0 | 0.01269 | 0.219287 | 1,514 | 62 | 73 | 24.419355 | 0.65736 | 0.193527 | 0 | 0.325581 | 0 | 0 | 0.073372 | 0 | 0 | 0 | 0 | 0.016129 | 0 | 1 | 0.116279 | false | 0 | 0.023256 | 0.069767 | 0.325581 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
643ae99b478011011002ba14dfb2bc3f7d230569 | 322 | py | Python | example/3_decision_logic.py | waskitaTREK/python_bim_engineer | 964023a69a26bdc462b5aaff5d05b4087abffcba | [
"MIT"
] | 1 | 2021-06-09T04:39:18.000Z | 2021-06-09T04:39:18.000Z | example/3_decision_logic.py | waskitaTREK/python_bim_engineer | 964023a69a26bdc462b5aaff5d05b4087abffcba | [
"MIT"
] | null | null | null | example/3_decision_logic.py | waskitaTREK/python_bim_engineer | 964023a69a26bdc462b5aaff5d05b4087abffcba | [
"MIT"
] | null | null | null | number = 5
numbers = [1,2,3,4,5]
# if statement
if number == 5:
print(number)
if len(numbers) == 5:
print(numbers[3])
if number in numbers: # if 3 in [1,2,3,4,5]
print("3 is here")
# elif and else statement
if number == 3:
print("is 3")
elif number == 5:
print("is 5")
else:
print("not 3 & 5... | 15.333333 | 43 | 0.574534 | 59 | 322 | 3.135593 | 0.305085 | 0.12973 | 0.032432 | 0.043243 | 0.054054 | 0 | 0 | 0 | 0 | 0 | 0 | 0.091286 | 0.251553 | 322 | 21 | 44 | 15.333333 | 0.676349 | 0.173913 | 0 | 0 | 0 | 0 | 0.098859 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.428571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
643fdd1b895e36b331549eb024cdf360905a38fa | 2,651 | py | Python | fastsrv/src/build-conf.py | lingluadmin/operwrt-fast-cli | 8f7ad9f9138bea3fd89749aaff37f325ea0aa5a5 | [
"Apache-2.0"
] | 1 | 2018-03-08T08:14:08.000Z | 2018-03-08T08:14:08.000Z | fastsrv/src/build-conf.py | lingluadmin/operwrt-fast-cli | 8f7ad9f9138bea3fd89749aaff37f325ea0aa5a5 | [
"Apache-2.0"
] | null | null | null | fastsrv/src/build-conf.py | lingluadmin/operwrt-fast-cli | 8f7ad9f9138bea3fd89749aaff37f325ea0aa5a5 | [
"Apache-2.0"
] | null | null | null | import yaml
import socket
import os
import shutil
import sys
from jinja2 import Template
CONFIG_FILE='/fastsrv/sites-config/sites-config.yaml'
TEMPLATES_DIR='/fastsrv/templates'
OUTPUT_DIR='/fastsrv/output'
class AppConfigRender:
def __init__(self, app, basic_data):
self.app = app
data = dict(basi... | 30.471264 | 74 | 0.580158 | 332 | 2,651 | 4.385542 | 0.231928 | 0.098901 | 0.022665 | 0.020604 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000549 | 0.312335 | 2,651 | 86 | 75 | 30.825581 | 0.798135 | 0.002641 | 0 | 0.051948 | 0 | 0 | 0.049603 | 0.015476 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.077922 | null | null | 0.012987 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
64431f9669d3489afa834ce7abed1f2c6d512729 | 369 | py | Python | backend/tv_show/migrations/0003_rename_description_tvshow_footer.py | sysopmatt/py-schedule | c087b6e5ca162481394de0d5e8c7b41a74092f99 | [
"MIT"
] | null | null | null | backend/tv_show/migrations/0003_rename_description_tvshow_footer.py | sysopmatt/py-schedule | c087b6e5ca162481394de0d5e8c7b41a74092f99 | [
"MIT"
] | null | null | null | backend/tv_show/migrations/0003_rename_description_tvshow_footer.py | sysopmatt/py-schedule | c087b6e5ca162481394de0d5e8c7b41a74092f99 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.10 on 2021-12-13 02:00
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('tv_show', '0002_auto_20211213_0156'),
]
operations = [
migrations.RenameField(
model_name='tvshow',
old_name='description',... | 19.421053 | 48 | 0.590786 | 40 | 369 | 5.275 | 0.85 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.123552 | 0.298103 | 369 | 18 | 49 | 20.5 | 0.69112 | 0.124661 | 0 | 0 | 1 | 0 | 0.165109 | 0.071651 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ff22b9272715cc77db1e4d8b24ed060ea0c70d13 | 3,167 | py | Python | prune_neon/optimizers/optimizer.py | cs-chan/Fuzzy-Compression | f287a59896e27798c7ebca51a168e8a016b79a86 | [
"BSD-3-Clause"
] | 8 | 2018-06-20T19:00:37.000Z | 2021-05-28T06:44:42.000Z | prune_neon/optimizers/optimizer.py | cs-chan/fuzzyDCN | f287a59896e27798c7ebca51a168e8a016b79a86 | [
"BSD-3-Clause"
] | 1 | 2017-05-10T03:18:21.000Z | 2017-05-10T04:24:55.000Z | prune_neon/optimizers/optimizer.py | cs-chan/fuzzyDCN | f287a59896e27798c7ebca51a168e8a016b79a86 | [
"BSD-3-Clause"
] | 1 | 2017-11-09T02:19:54.000Z | 2017-11-09T02:19:54.000Z | # import numpy as np
from neon.optimizers.optimizer import Optimizer, get_param_list
class RMSPropNesterov(Optimizer):
"""
RMSProp with Nesterov Momentum
"""
# TODO: max norm constraint
def __init__(self, stochastic_round=False, momentum=0.5, decay_rate=0.90, learning_rate=1e-4, epsilon=1e-6,
... | 37.702381 | 111 | 0.627723 | 388 | 3,167 | 4.847938 | 0.226804 | 0.031898 | 0.034024 | 0.021265 | 0.261563 | 0.186071 | 0.064859 | 0 | 0 | 0 | 0 | 0.009965 | 0.271235 | 3,167 | 83 | 112 | 38.156627 | 0.805026 | 0.03947 | 0 | 0.107143 | 0 | 0 | 0.018285 | 0 | 0 | 0 | 0 | 0.012048 | 0 | 1 | 0.089286 | false | 0 | 0.017857 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ff2872b28f8c916dddf8527b91ef237d7511666f | 8,859 | py | Python | lhotse/features/kaldifeat.py | stachu86/lhotse | d5e78154db2d4d52f15aaadc8882f76eb5b77640 | [
"Apache-2.0"
] | null | null | null | lhotse/features/kaldifeat.py | stachu86/lhotse | d5e78154db2d4d52f15aaadc8882f76eb5b77640 | [
"Apache-2.0"
] | null | null | null | lhotse/features/kaldifeat.py | stachu86/lhotse | d5e78154db2d4d52f15aaadc8882f76eb5b77640 | [
"Apache-2.0"
] | null | null | null | from abc import ABC
from dataclasses import asdict, dataclass
from typing import Any, Dict, List, Optional, Sequence, Union
import numpy as np
import torch
from lhotse.features.base import FeatureExtractor, register_extractor
from lhotse.utils import EPSILON, Seconds, is_module_available
@dataclass
class KaldifeatF... | 34.741176 | 112 | 0.6468 | 1,107 | 8,859 | 5.00271 | 0.218609 | 0.026002 | 0.014446 | 0.00939 | 0.421452 | 0.396894 | 0.375767 | 0.371614 | 0.311484 | 0.311484 | 0 | 0.013281 | 0.25206 | 8,859 | 254 | 113 | 34.877953 | 0.822517 | 0.142906 | 0 | 0.360215 | 0 | 0 | 0.063785 | 0.002785 | 0 | 0 | 0 | 0 | 0.010753 | 1 | 0.102151 | false | 0.005376 | 0.048387 | 0.048387 | 0.510753 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ff2ae55b00e19ef0939fe7c2b7534111ada81b34 | 713 | py | Python | tests/test_integrational/test_global_context_update.py | best-doctor/Mario | a6c83b9f7e7558a4e71d8acb00b8d164fe8eec6f | [
"MIT"
] | 12 | 2020-01-30T02:19:16.000Z | 2022-01-20T04:00:43.000Z | tests/test_integrational/test_global_context_update.py | best-doctor/Mario | a6c83b9f7e7558a4e71d8acb00b8d164fe8eec6f | [
"MIT"
] | 32 | 2019-12-07T14:06:05.000Z | 2020-06-26T07:12:03.000Z | tests/test_integrational/test_global_context_update.py | best-doctor/Mario | a6c83b9f7e7558a4e71d8acb00b8d164fe8eec6f | [
"MIT"
] | 3 | 2020-08-21T07:54:53.000Z | 2021-01-11T12:05:48.000Z | import pytest
from super_mario.base_pipeline import BasePipeline
from super_mario.decorators import process_pipe
from super_mario.exceptions import GlobalContextUpdateException
@pytest.fixture
def simple_pipeline():
class SimplePipeline(BasePipeline):
pipeline = [
'sum_numbers',
'... | 23.766667 | 63 | 0.670407 | 80 | 713 | 5.75 | 0.45 | 0.058696 | 0.091304 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005587 | 0.246844 | 713 | 29 | 64 | 24.586207 | 0.851024 | 0 | 0 | 0.095238 | 0 | 0 | 0.040673 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.190476 | false | 0 | 0.190476 | 0.095238 | 0.619048 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ff309fdd5a997b5d53c2fabfa2c08b9af650c2aa | 176 | py | Python | fibonacci.py | leantab/algorithms | 63648855da19d41904da39dfeca9ab1094d9c9a1 | [
"MIT"
] | null | null | null | fibonacci.py | leantab/algorithms | 63648855da19d41904da39dfeca9ab1094d9c9a1 | [
"MIT"
] | null | null | null | fibonacci.py | leantab/algorithms | 63648855da19d41904da39dfeca9ab1094d9c9a1 | [
"MIT"
] | null | null | null | memo = {
0: 0,
1: 1,
2: 1,
}
def fib(n):
if n in memo:
return memo[n]
val = fib(n-1) + fib(n-2)
memo[n] = val
return val
print(fib(35))
| 10.352941 | 29 | 0.4375 | 32 | 176 | 2.40625 | 0.40625 | 0.155844 | 0.207792 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.093458 | 0.392045 | 176 | 16 | 30 | 11 | 0.626168 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0 | 0 | 0.25 | 0.083333 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ff30f5b5233eecf34514ea796a59baa599c3540d | 1,032 | py | Python | src/app.py | warussel/PC-generator | ffb86a8e1140640635f2d81693f8134dbc3f34eb | [
"MIT"
] | null | null | null | src/app.py | warussel/PC-generator | ffb86a8e1140640635f2d81693f8134dbc3f34eb | [
"MIT"
] | null | null | null | src/app.py | warussel/PC-generator | ffb86a8e1140640635f2d81693f8134dbc3f34eb | [
"MIT"
] | null | null | null | # app.py
# Backend to server using Flask
from flask import Flask, render_template, request, json, send_file
from character import Character
app = Flask(__name__)
# Home page to fill in character info
@app.route("/")
@app.route("/home")
def home() :
print("Render home page")
return render_template("home.html")... | 25.8 | 66 | 0.694767 | 130 | 1,032 | 5.346154 | 0.446154 | 0.080576 | 0.086331 | 0.069065 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.170543 | 1,032 | 40 | 67 | 25.8 | 0.811916 | 0.167636 | 0 | 0 | 0 | 0 | 0.214537 | 0 | 0 | 0 | 0 | 0.025 | 0 | 1 | 0.115385 | false | 0 | 0.076923 | 0 | 0.307692 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ff347b924b5181adaf69d9d7df9b29866c7c48e8 | 2,938 | py | Python | spex_spider.py | ITNano/WikiSubtitleReader | d9816a452f74f6d70e147eba688838d3b97189d5 | [
"Apache-2.0"
] | 1 | 2019-01-20T14:46:16.000Z | 2019-01-20T14:46:16.000Z | spex_spider.py | ITNano/WikiSubtitleReader | d9816a452f74f6d70e147eba688838d3b97189d5 | [
"Apache-2.0"
] | 4 | 2016-08-08T06:56:46.000Z | 2016-09-26T13:30:14.000Z | spex_spider.py | ITNano/WikiSubtitleReader | d9816a452f74f6d70e147eba688838d3b97189d5 | [
"Apache-2.0"
] | 1 | 2018-08-11T08:01:56.000Z | 2018-08-11T08:01:56.000Z | # -*- coding: utf-8 -*-
#!/usr/bin/python
# needs the Selenium package. Install it with pip by typing: pip install selenium
#install pip by running the script: https://bootstrap.pypa.io/get-pip.py (run by typing: python get-pip.py)
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from sel... | 50.655172 | 139 | 0.71341 | 384 | 2,938 | 5.320313 | 0.408854 | 0.078316 | 0.047969 | 0.071953 | 0.236417 | 0.236417 | 0.152717 | 0.119432 | 0.119432 | 0.119432 | 0 | 0.006703 | 0.187543 | 2,938 | 57 | 140 | 51.54386 | 0.849183 | 0.300204 | 0 | 0.052632 | 0 | 0.052632 | 0.175172 | 0.028459 | 0 | 0 | 0 | 0 | 0.052632 | 1 | 0.078947 | false | 0.131579 | 0.210526 | 0 | 0.342105 | 0.052632 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
ff356e852e1ee1c39ca421bfc65efae270b2fa31 | 29,541 | py | Python | pypy/rpython/lltypesystem/test/test_ll2ctypes.py | camillobruni/pygirl | ddbd442d53061d6ff4af831c1eab153bcc771b5a | [
"MIT"
] | 12 | 2016-01-06T07:10:28.000Z | 2021-05-13T23:02:02.000Z | pypy/rpython/lltypesystem/test/test_ll2ctypes.py | camillobruni/pygirl | ddbd442d53061d6ff4af831c1eab153bcc771b5a | [
"MIT"
] | null | null | null | pypy/rpython/lltypesystem/test/test_ll2ctypes.py | camillobruni/pygirl | ddbd442d53061d6ff4af831c1eab153bcc771b5a | [
"MIT"
] | 2 | 2016-07-29T07:09:50.000Z | 2016-10-16T08:50:26.000Z | import py
import sys, struct
import ctypes
from pypy.rpython.lltypesystem import lltype, rffi, llmemory
from pypy.rpython.tool import rffi_platform
from pypy.rpython.lltypesystem.ll2ctypes import lltype2ctypes, ctypes2lltype
from pypy.rpython.lltypesystem.ll2ctypes import standard_c_lib
from pypy.rpython.lltypesystem.l... | 37.299242 | 81 | 0.554991 | 3,775 | 29,541 | 4.286887 | 0.116556 | 0.038374 | 0.031144 | 0.04171 | 0.459124 | 0.37181 | 0.303652 | 0.2798 | 0.247853 | 0.230056 | 0 | 0.046826 | 0.314681 | 29,541 | 791 | 82 | 37.346397 | 0.752531 | 0.050574 | 0 | 0.28165 | 0 | 0 | 0.039713 | 0.000929 | 0 | 0 | 0.002143 | 0 | 0.295875 | 0 | null | null | 0 | 0.02276 | null | null | 0.004267 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
ff3af5113991d0ad24dd02549627acebd7bf0f71 | 476 | py | Python | bot/generics.py | terisikk/multi-proto-bot | 0fa269c015d631f161806eadf23a93cf5fff4ff6 | [
"MIT"
] | null | null | null | bot/generics.py | terisikk/multi-proto-bot | 0fa269c015d631f161806eadf23a93cf5fff4ff6 | [
"MIT"
] | null | null | null | bot/generics.py | terisikk/multi-proto-bot | 0fa269c015d631f161806eadf23a93cf5fff4ff6 | [
"MIT"
] | null | null | null | import time
class GenericEvent(object):
def __init__(self, client, original):
self.name = self.__class__.__name__.lower()
self.timestamp = time.time()
self.client = client
self.original_event = original
class PublicMessage(GenericEvent):
def __init__(self, client, original, t... | 26.444444 | 67 | 0.651261 | 53 | 476 | 5.45283 | 0.377358 | 0.138408 | 0.145329 | 0.228374 | 0.276817 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.245798 | 476 | 17 | 68 | 28 | 0.805014 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.076923 | 0 | 0.384615 | 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 |
ff3c15e33814b152e8873ed7e6590efe52392be5 | 846 | py | Python | examples/example1.py | cloudflare/gatelogic | 4dc763d83f7080da45ab1be0a16ab2e563a6a5d0 | [
"BSD-3-Clause"
] | 11 | 2017-12-13T11:39:08.000Z | 2020-07-30T09:55:47.000Z | examples/example1.py | cloudflare/gatelogic | 4dc763d83f7080da45ab1be0a16ab2e563a6a5d0 | [
"BSD-3-Clause"
] | null | null | null | examples/example1.py | cloudflare/gatelogic | 4dc763d83f7080da45ab1be0a16ab2e563a6a5d0 | [
"BSD-3-Clause"
] | null | null | null | '''
Simple example. To run:
../venv/bin/python example1.py
And observe the printed values. That's it.
'''
import gatelogic
c = gatelogic.Controller()
ingress = gatelogic.ReadableHub(c)
hub = gatelogic.QueryHub(c)
egress = gatelogic.ComputableHub(c)
def action(cell):
v = cell.value
if v == None:
... | 16.588235 | 60 | 0.658392 | 125 | 846 | 4.416 | 0.456 | 0.048913 | 0.025362 | 0.043478 | 0.054348 | 0.054348 | 0 | 0 | 0 | 0 | 0 | 0.018786 | 0.182033 | 846 | 50 | 61 | 16.92 | 0.778902 | 0 | 0 | 0 | 0 | 0 | 0.012245 | 0 | 0 | 0 | 0 | 0 | 0.037037 | 0 | null | null | 0 | 0.037037 | 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 |
ff3d085159b2bd98c70c77d308bce6e57c198408 | 2,327 | py | Python | bin/migrate_from_nex.py | mgharvey/misc_python | 1512dfe08273afbaf44a51aacf8de4b426bac438 | [
"BSD-3-Clause"
] | 9 | 2015-07-09T17:35:18.000Z | 2019-11-20T22:05:31.000Z | bin/migrate_from_nex.py | mgharvey/misc_python | 1512dfe08273afbaf44a51aacf8de4b426bac438 | [
"BSD-3-Clause"
] | 4 | 2015-09-07T11:30:27.000Z | 2017-07-03T04:51:44.000Z | bin/migrate_from_nex.py | mgharvey/misc_python | 1512dfe08273afbaf44a51aacf8de4b426bac438 | [
"BSD-3-Clause"
] | 6 | 2015-06-22T03:55:03.000Z | 2021-09-04T18:46:56.000Z | #!/usr/bin/env python
"""
Name: migrate_from_nex.py
Author: Michael G. Harvey
Date: 29 September 2013
Description: Convert a nexus alignment of concatenated SNPs to the input file format for
MIGRATE.
Usage: python bayescan_from_nex.py input_file output_directory number_of_populations \
individuals_in_pop_1 i... | 24.755319 | 95 | 0.671251 | 361 | 2,327 | 4.144044 | 0.351801 | 0.026738 | 0.045455 | 0.02139 | 0.032086 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027924 | 0.184358 | 2,327 | 93 | 96 | 25.021505 | 0.760274 | 0.022776 | 0 | 0.147059 | 0 | 0 | 0.197899 | 0.011609 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.058824 | null | null | 0.029412 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ff3d869e70cef0652e845beeac9355117d5c3067 | 10,711 | py | Python | models.py | MartinKist/p2p | 046c6258f936789aff73b884235b9b202e7e7f7a | [
"MIT"
] | 2 | 2021-06-29T11:32:59.000Z | 2021-06-30T09:11:24.000Z | models.py | MartinKist/p2p | 046c6258f936789aff73b884235b9b202e7e7f7a | [
"MIT"
] | null | null | null | models.py | MartinKist/p2p | 046c6258f936789aff73b884235b9b202e7e7f7a | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# (c) 2021 Martin Kistler
from __future__ import annotations
import random
import time
from abc import ABC, abstractmethod
from hashlib import sha256
from typing import Union
BYTEORDER = 'little'
# TODO: write down protocol specifications in respective docstrings
class MessageError(Except... | 27.185279 | 128 | 0.595369 | 1,266 | 10,711 | 4.884676 | 0.157188 | 0.034929 | 0.050938 | 0.024256 | 0.34945 | 0.302393 | 0.269082 | 0.238842 | 0.186125 | 0.173189 | 0 | 0.017595 | 0.294277 | 10,711 | 393 | 129 | 27.254453 | 0.800503 | 0.090374 | 0 | 0.397059 | 0 | 0 | 0.028488 | 0.004383 | 0 | 0 | 0 | 0.002545 | 0 | 1 | 0.194853 | false | 0.007353 | 0.022059 | 0.121324 | 0.444853 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ff416437733d4f2a3fd0e393952944af84d22b8b | 357 | py | Python | setup.py | fkmclane/armagetron.py | 3e033b6c7cfd2f7509de27ab6945eb02f0493c68 | [
"MIT"
] | null | null | null | setup.py | fkmclane/armagetron.py | 3e033b6c7cfd2f7509de27ab6945eb02f0493c68 | [
"MIT"
] | null | null | null | setup.py | fkmclane/armagetron.py | 3e033b6c7cfd2f7509de27ab6945eb02f0493c68 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
from setuptools import setup, find_packages
setup(
name='armagetron.py',
version='0.0.1',
description='a scripting library for Armagetron Advanced',
license='MIT',
url='https://github.com/fkmclane/armagetron.py',
author='Foster McLane',
author_email='fkmclane@gmail.c... | 23.8 | 62 | 0.694678 | 45 | 357 | 5.444444 | 0.755556 | 0.097959 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013333 | 0.159664 | 357 | 14 | 63 | 25.5 | 0.803333 | 0.058824 | 0 | 0 | 0 | 0 | 0.40597 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.090909 | 0 | 0.090909 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ff42e79f06a3b4faa5ffeba7793b69d829eadbe9 | 3,289 | py | Python | hubstore/view/main.py | pyrustic/hubstore | 640bb07286a3d63e3772def0a0f682198abffec8 | [
"MIT"
] | 4 | 2021-04-08T11:34:47.000Z | 2021-09-04T00:02:51.000Z | hubstore/view/main.py | pyrustic/hubstore | 640bb07286a3d63e3772def0a0f682198abffec8 | [
"MIT"
] | null | null | null | hubstore/view/main.py | pyrustic/hubstore | 640bb07286a3d63e3772def0a0f682198abffec8 | [
"MIT"
] | null | null | null | import tkinter as tk
from viewable import Viewable
from threadom import Threadom
from megawidget.toast import Toast
from hubstore.host import Host
from hubstore.view.views import Views
from hubstore.view.toolbar import Toolbar
from hubstore.view.pane import Pane
from hubstore.view.about import About
from hubstore.view.... | 28.353448 | 80 | 0.645181 | 406 | 3,289 | 5.014778 | 0.192118 | 0.070727 | 0.086444 | 0.039293 | 0.168959 | 0.055992 | 0 | 0 | 0 | 0 | 0 | 0.002867 | 0.257525 | 3,289 | 115 | 81 | 28.6 | 0.830876 | 0.048647 | 0 | 0.057471 | 0 | 0 | 0.007049 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.218391 | false | 0 | 0.16092 | 0.034483 | 0.425287 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ff44a8ab36b73ec3d8843794b7d80aa739dfe1df | 699 | py | Python | module4/solution/detect_brands.py | axel-sirota/getting-started-azure-computer-vision | a201bbadd5dec6192e1ac9abb0fa7a34e38c1176 | [
"MIT"
] | null | null | null | module4/solution/detect_brands.py | axel-sirota/getting-started-azure-computer-vision | a201bbadd5dec6192e1ac9abb0fa7a34e38c1176 | [
"MIT"
] | null | null | null | module4/solution/detect_brands.py | axel-sirota/getting-started-azure-computer-vision | a201bbadd5dec6192e1ac9abb0fa7a34e38c1176 | [
"MIT"
] | null | null | null | import os
from azure.cognitiveservices.vision.computervision import ComputerVisionClient
from msrest.authentication import CognitiveServicesCredentials
# Authenticate
subscription_key = os.environ["AZURE_COMPUTER_VISION_SUBSCRIPTION_KEY"]
endpoint = os.environ["AZURE_COMPUTER_VISION_ENDPOINT"]
computervision_client... | 38.833333 | 115 | 0.842632 | 80 | 699 | 7.15 | 0.6 | 0.078671 | 0.09965 | 0.076923 | 0.097902 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001531 | 0.065808 | 699 | 17 | 116 | 41.117647 | 0.874426 | 0.017167 | 0 | 0 | 0 | 0.111111 | 0.353285 | 0.131387 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
ff4762fe139f545ca8fb26b6d292cd513222debe | 2,401 | py | Python | wizardry/graph.py | tleeuwenburg/wizardry | 804849ea1b0d4b0166041d33d1a86f51f78862d2 | [
"Apache-2.0"
] | 3 | 2017-08-05T01:50:49.000Z | 2017-08-08T00:40:40.000Z | wizardry/graph.py | tleeuwenburg/wizardry | 804849ea1b0d4b0166041d33d1a86f51f78862d2 | [
"Apache-2.0"
] | null | null | null | wizardry/graph.py | tleeuwenburg/wizardry | 804849ea1b0d4b0166041d33d1a86f51f78862d2 | [
"Apache-2.0"
] | null | null | null | import builtins
from unittest.mock import patch
import matplotlib.pyplot as plt
import networkx as nx
import warnings
warnings.filterwarnings("ignore")
class Edge():
def __init__(self, master, a, b):
self.a = a
self.b = b
self.id = master._edge_id()
master.edges.append(self)
cla... | 22.027523 | 75 | 0.573511 | 327 | 2,401 | 4.036697 | 0.247706 | 0.045455 | 0.036364 | 0.042424 | 0.146212 | 0.146212 | 0.045455 | 0 | 0 | 0 | 0 | 0.003781 | 0.339025 | 2,401 | 108 | 76 | 22.231481 | 0.827977 | 0.201166 | 0 | 0.033898 | 0 | 0 | 0.007163 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.20339 | false | 0 | 0.084746 | 0 | 0.474576 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ff4a8ab7b459134eb1d8e00e714c994e706008d6 | 460 | py | Python | secuwear_backend/api/migrations/0012_auto_20180113_1300.py | MLHale/secuwear-project | a92cd4a4f8281e7762bfcc5d117edfcc0dbdbb6e | [
"MIT"
] | null | null | null | secuwear_backend/api/migrations/0012_auto_20180113_1300.py | MLHale/secuwear-project | a92cd4a4f8281e7762bfcc5d117edfcc0dbdbb6e | [
"MIT"
] | null | null | null | secuwear_backend/api/migrations/0012_auto_20180113_1300.py | MLHale/secuwear-project | a92cd4a4f8281e7762bfcc5d117edfcc0dbdbb6e | [
"MIT"
] | 2 | 2020-09-10T22:28:23.000Z | 2021-03-23T22:23:58.000Z | # -*- coding: utf-8 -*-
# Generated by Django 1.11.7 on 2018-01-13 19:00
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('api', '0011_auto_20180113_1248'),
]
operations = [
migrations.AlterField(
... | 21.904762 | 63 | 0.617391 | 52 | 460 | 5.269231 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.106195 | 0.263043 | 460 | 20 | 64 | 23 | 0.702065 | 0.147826 | 0 | 0 | 1 | 0 | 0.097686 | 0.059126 | 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 |
ff4e0c5db5a9b5edc87dd59a0233b77719aea3b5 | 942 | py | Python | setup.py | stefanoborini/cookiecutter-traitsui | dea5e2684278c09b8e3f9d27dde4c2805bec3f3f | [
"BSD-2-Clause"
] | null | null | null | setup.py | stefanoborini/cookiecutter-traitsui | dea5e2684278c09b8e3f9d27dde4c2805bec3f3f | [
"BSD-2-Clause"
] | null | null | null | setup.py | stefanoborini/cookiecutter-traitsui | dea5e2684278c09b8e3f9d27dde4c2805bec3f3f | [
"BSD-2-Clause"
] | null | null | null | import os
from setuptools import setup, find_packages
# Setup version
VERSION = '0.1.0.dev0'
# Read description
with open('README.rst', 'r') as readme:
README_TEXT = readme.read()
def write_version_py():
filename = os.path.join(
os.path.dirname(__file__),
'{{cookiecutter.project_name}}',
... | 21.409091 | 54 | 0.619958 | 103 | 942 | 5.436893 | 0.485437 | 0.135714 | 0.164286 | 0.107143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008253 | 0.228238 | 942 | 43 | 55 | 21.906977 | 0.762036 | 0.064756 | 0 | 0 | 0 | 0 | 0.210946 | 0.124287 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.064516 | 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 |
ff4e7121af623e15b4d4a863b9fcc3e2099a9e32 | 566 | py | Python | Introducing_Gemma_M0/Gemma_I2Csi7021.py | joewalk102/Adafruit_Learning_System_Guides | 2bda607f8c433c661a2d9d40b4db4fd132334c9a | [
"MIT"
] | 665 | 2017-09-27T21:20:14.000Z | 2022-03-31T09:09:25.000Z | Introducing_Gemma_M0/Gemma_I2Csi7021.py | joewalk102/Adafruit_Learning_System_Guides | 2bda607f8c433c661a2d9d40b4db4fd132334c9a | [
"MIT"
] | 641 | 2017-10-03T19:46:37.000Z | 2022-03-30T18:28:46.000Z | Introducing_Gemma_M0/Gemma_I2Csi7021.py | joewalk102/Adafruit_Learning_System_Guides | 2bda607f8c433c661a2d9d40b4db4fd132334c9a | [
"MIT"
] | 734 | 2017-10-02T22:47:38.000Z | 2022-03-30T14:03:51.000Z | # I2C sensor demo
import time
import adafruit_si7021
import board
import busio
i2c = busio.I2C(board.SCL, board.SDA)
# lock the I2C device before we try to scan
while not i2c.try_lock():
pass
print("I2C addresses found:", [hex(i) for i in i2c.scan()])
# unlock I2C now that we're done scanning.
i2c.unlock()
# ... | 20.962963 | 59 | 0.699647 | 91 | 566 | 4.307692 | 0.604396 | 0.071429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.087336 | 0.190813 | 566 | 26 | 60 | 21.769231 | 0.768559 | 0.293286 | 0 | 0 | 0 | 0 | 0.139594 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.071429 | 0.285714 | 0 | 0.285714 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
ff58152c8cc351d8f022fe6500b499f8d31b7dba | 1,631 | py | Python | setup.py | eli-collins/jinja2-htmlcompress | b23ed607ebb7b7ad11fb8292e8ff0b31f7ec505a | [
"BSD-3-Clause"
] | 6 | 2017-07-16T14:03:29.000Z | 2020-12-22T18:28:09.000Z | setup.py | eli-collins/jinja2-htmlcompress | b23ed607ebb7b7ad11fb8292e8ff0b31f7ec505a | [
"BSD-3-Clause"
] | null | null | null | setup.py | eli-collins/jinja2-htmlcompress | b23ed607ebb7b7ad11fb8292e8ff0b31f7ec505a | [
"BSD-3-Clause"
] | 1 | 2019-02-27T06:55:44.000Z | 2019-02-27T06:55:44.000Z | #!/usr/bin/env python
"""
jinja2htmlcompress setup script
"""
#=============================================================================
# imports
#=============================================================================
from setuptools import setup, find_packages
#============================================... | 29.654545 | 78 | 0.433476 | 107 | 1,631 | 6.542056 | 0.728972 | 0.034286 | 0.071429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00755 | 0.106683 | 1,631 | 54 | 79 | 30.203704 | 0.47289 | 0.466585 | 0 | 0 | 0 | 0 | 0.5 | 0.031915 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.04 | 0 | 0.04 | 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 |
ff58514ced7789afcd3fa2317589ea45977230df | 3,366 | py | Python | convert-ip-schema-to-rdg.py | weiliy/python-auto-stuff | 8c43f06e9754c730f9b86e373a417cd62e12ff1e | [
"MIT"
] | null | null | null | convert-ip-schema-to-rdg.py | weiliy/python-auto-stuff | 8c43f06e9754c730f9b86e373a417cd62e12ff1e | [
"MIT"
] | null | null | null | convert-ip-schema-to-rdg.py | weiliy/python-auto-stuff | 8c43f06e9754c730f9b86e373a417cd62e12ff1e | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import os
import argparse
import xlrd
import re
parser = argparse.ArgumentParser()
parser.add_argument("ipschema", type=str,
help="ipschema the filepath of the ip schema excel")
parser.add_argument("rdg", type=str,
help="the filepath of the rdg file output")
parser.add_argument("-a","--addr... | 32.679612 | 274 | 0.683898 | 465 | 3,366 | 4.817204 | 0.277419 | 0.028125 | 0.053125 | 0.014286 | 0.220536 | 0.174107 | 0.091071 | 0.066964 | 0.033036 | 0 | 0 | 0.004055 | 0.120915 | 3,366 | 102 | 275 | 33 | 0.752957 | 0.007724 | 0 | 0.095238 | 0 | 0.02381 | 0.336429 | 0.132714 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.047619 | null | null | 0.238095 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
ff5bee2eb623ed1e17f5ab6ec1e90a1d1b2ecec1 | 454 | py | Python | core/management/commands/index_titles.py | johnscancella/open-oni | fe6eeee437b8701cf9d54a5f5dc62fc4bbeb3999 | [
"Apache-2.0"
] | null | null | null | core/management/commands/index_titles.py | johnscancella/open-oni | fe6eeee437b8701cf9d54a5f5dc62fc4bbeb3999 | [
"Apache-2.0"
] | null | null | null | core/management/commands/index_titles.py | johnscancella/open-oni | fe6eeee437b8701cf9d54a5f5dc62fc4bbeb3999 | [
"Apache-2.0"
] | null | null | null | import logging
from django.core.management.base import BaseCommand
from core.management.commands import configure_logging
from core.solr_index import index_titles
configure_logging("index_titles_logging.config", "index_titles.log")
_logger = logging.getLogger(__name__)
class Command(BaseCommand):
def hand... | 23.894737 | 68 | 0.759912 | 54 | 454 | 6.111111 | 0.5 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.151982 | 454 | 18 | 69 | 25.222222 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0.181015 | 0.059603 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.363636 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ff5cf6c4819ae3bdd2220e5d6d5746c4f0013496 | 389 | py | Python | core/migrations/0007_alter_discussion_user_id.py | GDSC-BUK/sc-22.forum-service | 2202e61003f7b23f2871465e4a110f9083595f5b | [
"MIT"
] | null | null | null | core/migrations/0007_alter_discussion_user_id.py | GDSC-BUK/sc-22.forum-service | 2202e61003f7b23f2871465e4a110f9083595f5b | [
"MIT"
] | null | null | null | core/migrations/0007_alter_discussion_user_id.py | GDSC-BUK/sc-22.forum-service | 2202e61003f7b23f2871465e4a110f9083595f5b | [
"MIT"
] | null | null | null | # Generated by Django 4.0.3 on 2022-04-03 10:06
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0006_alter_reply_user_id'),
]
operations = [
migrations.AlterField(
model_name='discussion',
name='user_id',... | 20.473684 | 50 | 0.601542 | 44 | 389 | 5.159091 | 0.795455 | 0.052863 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.068345 | 0.285347 | 389 | 18 | 51 | 21.611111 | 0.748201 | 0.115681 | 0 | 0 | 1 | 0 | 0.131579 | 0.070175 | 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 |
ff61acbb7ed780d1ad4ebb47e00869455626b8c3 | 1,534 | py | Python | Kubera/Bot/bot.py | santhoshraje/kubera | 1993e6e4412c89939d7356a85d406bdea442b0f6 | [
"MIT"
] | 5 | 2020-08-20T08:56:20.000Z | 2021-02-08T11:10:25.000Z | Kubera/Bot/bot.py | santhoshraje/kubera | 1993e6e4412c89939d7356a85d406bdea442b0f6 | [
"MIT"
] | null | null | null | Kubera/Bot/bot.py | santhoshraje/kubera | 1993e6e4412c89939d7356a85d406bdea442b0f6 | [
"MIT"
] | null | null | null | # telegram api
from telegram.ext import Updater
# utils
from Utils.logging import get_logger as log
# controllers
from Controllers.main_menu import MainMenu
from Controllers.about import About
from Controllers.add_watchlist_button import UpdateWatchlist
from Controllers.dividend_summary import DividendSummary
# jobs
fr... | 29.5 | 101 | 0.675359 | 194 | 1,534 | 5.221649 | 0.448454 | 0.035538 | 0.041461 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009418 | 0.238592 | 1,534 | 51 | 102 | 30.078431 | 0.857877 | 0.149283 | 0 | 0 | 0 | 0 | 0.020202 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.333333 | 0 | 0.433333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ff647a5b13906782266b5c4973f68d0801877968 | 408 | py | Python | perma_web/perma/tests/test_forms.py | leppert/perma | adb0cec29679c3d161d72330e19114f89f8c42ac | [
"MIT",
"Unlicense"
] | null | null | null | perma_web/perma/tests/test_forms.py | leppert/perma | adb0cec29679c3d161d72330e19114f89f8c42ac | [
"MIT",
"Unlicense"
] | null | null | null | perma_web/perma/tests/test_forms.py | leppert/perma | adb0cec29679c3d161d72330e19114f89f8c42ac | [
"MIT",
"Unlicense"
] | null | null | null | from django.test import TestCase
from perma.forms import ContactForm
class FormsTestCase(TestCase):
def test_contact_form(self):
"""
Cruedely test that we're requiring a message in our
contact form.
"""
form_data = {'email': 'test@example.com', 'message': 'some message'}
... | 31.384615 | 76 | 0.654412 | 50 | 408 | 5.24 | 0.64 | 0.083969 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.240196 | 408 | 13 | 77 | 31.384615 | 0.845161 | 0.159314 | 0 | 0 | 0 | 0 | 0.128205 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
ff6d363ee692efddc958035ec6622a2547f78466 | 6,677 | py | Python | src/class_1/code.py | byteEpoch/python_course | 9db7333fe01f3bdec91b07e920a2279dde33e340 | [
"MIT"
] | 1 | 2021-03-03T00:16:25.000Z | 2021-03-03T00:16:25.000Z | src/class_1/code.py | byteEpoch/python_course | 9db7333fe01f3bdec91b07e920a2279dde33e340 | [
"MIT"
] | null | null | null | src/class_1/code.py | byteEpoch/python_course | 9db7333fe01f3bdec91b07e920a2279dde33e340 | [
"MIT"
] | 1 | 2021-03-30T14:42:59.000Z | 2021-03-30T14:42:59.000Z | # Esto es un comentario
# enteros - int
my_int = 42
# reales - float
my_float = 3.14
# strings - str
my_str = 'string con comilla simple'
my_str_2 = "string con comilla doble"
my_str_3 = """string
multilinea"""
"""Los strings
multilinea
pueden servir
para poner
comentarios de
varias líneas"""
# booleans - bool
my... | 28.656652 | 99 | 0.710199 | 1,101 | 6,677 | 4.236149 | 0.258856 | 0.051458 | 0.027015 | 0.017153 | 0.305103 | 0.298885 | 0.197684 | 0.159949 | 0.159949 | 0.159949 | 0 | 0.028245 | 0.199341 | 6,677 | 232 | 100 | 28.780172 | 0.844183 | 0.604912 | 0 | 0.372549 | 0 | 0 | 0.116435 | 0 | 0 | 0 | 0 | 0.00431 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.431373 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ff74fdc7b00342cad31d0e39c65d11e6576f8cbf | 2,190 | py | Python | zerosim/data/watchlists.py | rahulmkumar/ZeroSim1 | 63eb357c4831b666581df0de4355f85095653d06 | [
"MIT"
] | 1 | 2020-08-28T16:27:15.000Z | 2020-08-28T16:27:15.000Z | zerosim/data/watchlists.py | rahulmkumar/ZeroSim1 | 63eb357c4831b666581df0de4355f85095653d06 | [
"MIT"
] | null | null | null | zerosim/data/watchlists.py | rahulmkumar/ZeroSim1 | 63eb357c4831b666581df0de4355f85095653d06 | [
"MIT"
] | 1 | 2021-02-03T12:31:42.000Z | 2021-02-03T12:31:42.000Z | import shelve
import pandas as pd
class Watchlist(object):
def __init__(self, list_name, l_sym):
self.watchlist_name = list_name
self.l_symbols = l_sym
def get_watchlist_name(self):
return self.watchlist_name
def get_watchlist_sym(self):
return self.l_symbols
class Watc... | 28.076923 | 78 | 0.652055 | 276 | 2,190 | 4.815217 | 0.195652 | 0.036117 | 0.03386 | 0.036117 | 0.046652 | 0.046652 | 0.046652 | 0 | 0 | 0 | 0 | 0.004313 | 0.258904 | 2,190 | 77 | 79 | 28.441558 | 0.814541 | 0.038356 | 0 | 0.036364 | 0 | 0 | 0.038498 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.018182 | 0.054545 | null | null | 0.018182 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ff766bdfd676398151741015e2aa77007c6279ca | 296 | py | Python | MDAnalysis/count.py | chemlove/pdb-benchmarks | cff903a235fb7d016d72bb17e91d834a599fba00 | [
"MIT"
] | null | null | null | MDAnalysis/count.py | chemlove/pdb-benchmarks | cff903a235fb7d016d72bb17e91d834a599fba00 | [
"MIT"
] | null | null | null | MDAnalysis/count.py | chemlove/pdb-benchmarks | cff903a235fb7d016d72bb17e91d834a599fba00 | [
"MIT"
] | null | null | null | # Benchmark the counting of alanine residues in a PDB file
import time
import MDAnalysis as mda
pdb_filepath = "pdbs/1AKE.pdb"
u = mda.Universe(pdb_filepath)
def count():
return (u.residues.resnames == "ALA").sum()
start = time.time()
count()
elapsed = time.time() - start
print elapsed
| 17.411765 | 58 | 0.716216 | 44 | 296 | 4.772727 | 0.659091 | 0.104762 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004049 | 0.165541 | 296 | 16 | 59 | 18.5 | 0.846154 | 0.189189 | 0 | 0 | 0 | 0 | 0.067227 | 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 |
ff77698ec4eaea9d875149abb7305e9d98a0fdc5 | 251 | py | Python | atv/tests/factories.py | City-of-Helsinki/atv | dca73dab09ab0f3a051a9f691aec5674c6369bde | [
"MIT"
] | null | null | null | atv/tests/factories.py | City-of-Helsinki/atv | dca73dab09ab0f3a051a9f691aec5674c6369bde | [
"MIT"
] | 34 | 2021-05-28T06:23:38.000Z | 2022-03-08T12:42:01.000Z | atv/tests/factories.py | City-of-Helsinki/atv | dca73dab09ab0f3a051a9f691aec5674c6369bde | [
"MIT"
] | 1 | 2021-05-27T10:37:42.000Z | 2021-05-27T10:37:42.000Z | import factory
from django.contrib.auth.models import Group
class GroupFactory(factory.django.DjangoModelFactory):
name = factory.Sequence(lambda n: "group-%d" % n)
class Meta:
model = Group
django_get_or_create = ("name",)
| 22.818182 | 54 | 0.697211 | 31 | 251 | 5.548387 | 0.677419 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.199203 | 251 | 10 | 55 | 25.1 | 0.855721 | 0 | 0 | 0 | 0 | 0 | 0.047809 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
ff806fd26d7456b845fbc59ed15c10147633aab4 | 1,445 | py | Python | examples/tof-viewer/external/newton_host_driver/src/host_api/examples/python/tests/hsp_bad_command.py | rick-yhchen1013/aditof-sdk-rework | 911465dd1e05dd0b1c5107197b3b4dc3a10f77f9 | [
"MIT"
] | 5 | 2021-09-22T10:04:47.000Z | 2022-02-08T17:55:09.000Z | examples/tof-viewer/external/newton_host_driver/src/host_api/examples/python/tests/hsp_bad_command.py | rick-yhchen1013/aditof-sdk-rework | 911465dd1e05dd0b1c5107197b3b4dc3a10f77f9 | [
"MIT"
] | 99 | 2021-02-01T12:45:09.000Z | 2022-03-08T09:54:13.000Z | examples/tof-viewer/external/newton_host_driver/src/host_api/examples/python/tests/hsp_bad_command.py | rick-yhchen1013/aditof-sdk-rework | 911465dd1e05dd0b1c5107197b3b4dc3a10f77f9 | [
"MIT"
] | 4 | 2021-08-09T12:32:55.000Z | 2021-12-13T05:38:55.000Z | #!/usr/bin/env python
""" Test Newton RAM load commands
Usage:
test_ram.py [--target=<ram_target>][--count=<word_count>]
Options:
--help Shows this help message.
"""
from __future__ import print_function
from __future__ import absolute_import
from __future__ import unicode_literals
from docopt import docop... | 24.491525 | 85 | 0.668512 | 200 | 1,445 | 4.555 | 0.405 | 0.049396 | 0.048299 | 0.032931 | 0.196487 | 0.116356 | 0.072448 | 0.072448 | 0.072448 | 0 | 0 | 0.006108 | 0.20692 | 1,445 | 58 | 86 | 24.913793 | 0.788831 | 0.114879 | 0 | 0.216216 | 0 | 0 | 0.255118 | 0.050394 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027027 | false | 0.027027 | 0.378378 | 0 | 0.432432 | 0.243243 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ff892c5dcb7148d25479d8a30760f8643a6b60a1 | 11,849 | py | Python | _broken/preproc_feat.py | SU-ECE-17-7/ibeis | b12a45b06d8ce8f52585494c15f6776f5889ed67 | [
"Apache-2.0"
] | null | null | null | _broken/preproc_feat.py | SU-ECE-17-7/ibeis | b12a45b06d8ce8f52585494c15f6776f5889ed67 | [
"Apache-2.0"
] | null | null | null | _broken/preproc_feat.py | SU-ECE-17-7/ibeis | b12a45b06d8ce8f52585494c15f6776f5889ed67 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
r"""
Computes patch based features based on Hesaff, SIFT, or convnets.
"""
from __future__ import absolute_import, division, print_function, unicode_literals
from six.moves import zip, range
import pyhesaff
import utool
import utool as ut
#ut.noinject('[preproc_feat]')
(print, print_, printDBG, ... | 39.761745 | 164 | 0.647734 | 1,527 | 11,849 | 4.746562 | 0.183366 | 0.032285 | 0.030905 | 0.044426 | 0.516556 | 0.488687 | 0.453228 | 0.41777 | 0.387003 | 0.365756 | 0 | 0.012273 | 0.236729 | 11,849 | 297 | 165 | 39.895623 | 0.789142 | 0.586969 | 0 | 0.11828 | 0 | 0 | 0.057342 | 0 | 0 | 0 | 0 | 0.010101 | 0.064516 | 1 | 0.064516 | false | 0 | 0.096774 | 0.010753 | 0.204301 | 0.053763 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
ff931001fd3276c447a35be0ad2c4ac9072f8ef2 | 477 | py | Python | persons/models.py | jrosczyk/addressbook | fab640a3398b99fd1a2fe376b21707fb3457a731 | [
"MIT"
] | null | null | null | persons/models.py | jrosczyk/addressbook | fab640a3398b99fd1a2fe376b21707fb3457a731 | [
"MIT"
] | 2 | 2021-04-08T21:56:11.000Z | 2021-09-22T19:41:23.000Z | persons/models.py | jrosczyk/addressbook | fab640a3398b99fd1a2fe376b21707fb3457a731 | [
"MIT"
] | null | null | null | from django.db import models
from phone_field import PhoneField
# Create your models here.
class Person(models.Model):
first_name = models.CharField(max_length=100)
last_name = models.CharField(max_length=100)
email = models.EmailField(max_length=254)
phone = PhoneField(help_text='Contact phone number')
created ... | 31.8 | 53 | 0.786164 | 68 | 477 | 5.279412 | 0.573529 | 0.075209 | 0.10585 | 0.122563 | 0.172702 | 0.172702 | 0 | 0 | 0 | 0 | 0 | 0.021327 | 0.115304 | 477 | 15 | 54 | 31.8 | 0.829384 | 0.050314 | 0 | 0 | 0 | 0 | 0.04646 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.181818 | 0.090909 | 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 |
ff979e3ca1a0ade1fc0a6f1b80d0926f0f9c61ff | 3,084 | py | Python | tests/test_x7zipfile.py | UuuNyaa/x7zipfile | 5701758d39878a23bd0eae9a64cfabf7d1504c15 | [
"BSD-3-Clause"
] | null | null | null | tests/test_x7zipfile.py | UuuNyaa/x7zipfile | 5701758d39878a23bd0eae9a64cfabf7d1504c15 | [
"BSD-3-Clause"
] | null | null | null | tests/test_x7zipfile.py | UuuNyaa/x7zipfile | 5701758d39878a23bd0eae9a64cfabf7d1504c15 | [
"BSD-3-Clause"
] | 1 | 2021-08-05T04:40:42.000Z | 2021-08-05T04:40:42.000Z | # -*- coding: utf-8 -*-
# Copyright 2021 UuuNyaa <UuuNyaa@gmail.com>
# This file is part of x7zipfile.
import glob
import os
import shutil
import stat
import tempfile
import unittest
from tests import x7zipfile
from .archives import ARCHIVES, ARCHIVES_PATH
class TestCase(unittest.TestCase):
def test_archive_li... | 45.352941 | 136 | 0.527237 | 295 | 3,084 | 5.274576 | 0.318644 | 0.069409 | 0.01928 | 0.023136 | 0.20437 | 0.134961 | 0.096401 | 0.096401 | 0.096401 | 0.096401 | 0 | 0.008743 | 0.406615 | 3,084 | 67 | 137 | 46.029851 | 0.84153 | 0.031128 | 0 | 0.115385 | 0 | 0 | 0.020442 | 0 | 0 | 0 | 0 | 0 | 0.134615 | 1 | 0.038462 | false | 0.096154 | 0.153846 | 0 | 0.211538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ff987dbaf3747e37071a3b1067faf73ea5262fbd | 10,444 | py | Python | py/kubeflow/kfctl/testing/ci/update_jupyter_web_app.py | Bobgy/kfctl | c174b38f6b5d5d9791ae5a4a4cbb6a9fa9890ffd | [
"Apache-2.0"
] | 145 | 2019-07-25T15:35:35.000Z | 2022-03-22T07:40:45.000Z | py/kubeflow/kfctl/testing/ci/update_jupyter_web_app.py | Bobgy/kfctl | c174b38f6b5d5d9791ae5a4a4cbb6a9fa9890ffd | [
"Apache-2.0"
] | 501 | 2019-07-25T15:39:07.000Z | 2022-03-30T20:23:18.000Z | py/kubeflow/kfctl/testing/ci/update_jupyter_web_app.py | Bobgy/kfctl | c174b38f6b5d5d9791ae5a4a4cbb6a9fa9890ffd | [
"Apache-2.0"
] | 160 | 2019-07-25T15:53:56.000Z | 2022-02-12T18:55:27.000Z | """Script to build and update the Jupyter WebApp image.
Requires python3
hub CLI depends on an OAuth token with repo permissions:
https://hub.github.com/hub.1.html
* It will look for environment variable GITHUB_TOKEN
"""
import logging
import os
import tempfile
import yaml
import fire
import git
import httplib2
... | 35.645051 | 117 | 0.659996 | 1,487 | 10,444 | 4.494284 | 0.230666 | 0.025438 | 0.023343 | 0.029927 | 0.1631 | 0.108634 | 0.093671 | 0.046087 | 0.037109 | 0.026335 | 0 | 0.003747 | 0.233435 | 10,444 | 292 | 118 | 35.767123 | 0.831002 | 0.306492 | 0 | 0.080247 | 0 | 0.018519 | 0.153803 | 0.024546 | 0 | 0 | 0 | 0.013699 | 0 | 1 | 0.061728 | false | 0 | 0.08642 | 0.006173 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ff9c6b36b6ddec306c0555dcf878563876c6c863 | 2,681 | py | Python | core/components/security/auth.py | chiaki64/Windless | 12eef67e7c49bd131104c223539445ccd841edc1 | [
"MIT"
] | 10 | 2016-11-30T12:15:00.000Z | 2018-10-04T01:13:45.000Z | core/components/security/auth.py | chiaki64/Windless | 12eef67e7c49bd131104c223539445ccd841edc1 | [
"MIT"
] | null | null | null | core/components/security/auth.py | chiaki64/Windless | 12eef67e7c49bd131104c223539445ccd841edc1 | [
"MIT"
] | 3 | 2017-11-01T09:17:18.000Z | 2018-09-25T02:07:40.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import re
from aiohttp_security.abc import AbstractAuthorizationPolicy
from aiohttp_security import authorized_userid
from components.memory import RedisFilter
from cryptography.hazmat.backends import default_backend
from cryptography.hazmat.primitives import hashes
from ... | 26.544554 | 103 | 0.647893 | 319 | 2,681 | 5.398119 | 0.344828 | 0.037166 | 0.026132 | 0.037166 | 0.243902 | 0.189315 | 0.155633 | 0.126597 | 0.126597 | 0.126597 | 0 | 0.02573 | 0.246177 | 2,681 | 100 | 104 | 26.81 | 0.826324 | 0.025737 | 0 | 0.346154 | 0 | 0.012821 | 0.05596 | 0.025297 | 0 | 0 | 0.009199 | 0 | 0 | 1 | 0.025641 | false | 0.089744 | 0.102564 | 0 | 0.358974 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ff9ce37db58fa2fd241426394039e7e8d2bbd785 | 229 | py | Python | src/sentry/utils/validators.py | tobetterman/sentry | fe85d3aee19dcdbfdd27921c4fb04529fc995a79 | [
"BSD-3-Clause"
] | 1 | 2017-08-30T06:55:25.000Z | 2017-08-30T06:55:25.000Z | src/sentry/utils/validators.py | tobetterman/sentry | fe85d3aee19dcdbfdd27921c4fb04529fc995a79 | [
"BSD-3-Clause"
] | null | null | null | src/sentry/utils/validators.py | tobetterman/sentry | fe85d3aee19dcdbfdd27921c4fb04529fc995a79 | [
"BSD-3-Clause"
] | null | null | null | from __future__ import absolute_import
from ipaddr import IPAddress
def validate_ip(value, required=True):
if not required and not value:
return
# will raise a ValueError
IPAddress(value)
return value
| 17.615385 | 38 | 0.724891 | 30 | 229 | 5.333333 | 0.666667 | 0.1375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.235808 | 229 | 12 | 39 | 19.083333 | 0.914286 | 0.100437 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
ffa4032bbac1d72dc701e09deefe78a2de4d4702 | 560 | py | Python | LineSketch/LineSketch.py | avinashkranjan/PraticalPythonProjects | 12c1f7cedae57a843ceb6aba68cca48df505f341 | [
"MIT"
] | 930 | 2020-09-05T22:07:28.000Z | 2022-03-30T07:56:18.000Z | LineSketch/LineSketch.py | maheshdbabar9340/Amazing-Python-Scripts | e2272048cbe49b4bda5072bbdd8479739bb6c18d | [
"MIT"
] | 893 | 2020-09-04T07:57:24.000Z | 2022-02-08T02:12:26.000Z | LineSketch/LineSketch.py | maheshdbabar9340/Amazing-Python-Scripts | e2272048cbe49b4bda5072bbdd8479739bb6c18d | [
"MIT"
] | 497 | 2020-09-05T08:16:24.000Z | 2022-03-31T00:55:57.000Z | import turtle as t
tim = t.Turtle()
scr = t.Screen()
def move_forward():
tim.forward(10)
def move_backward():
tim.backward(10)
def clockwise():
tim.setheading(tim.heading() - 10)
def anticlockwise():
tim.setheading(tim.heading() + 10)
def clear():
tim.clear()
tim.penup()
tim.home(... | 15.135135 | 42 | 0.660714 | 82 | 560 | 4.463415 | 0.378049 | 0.054645 | 0.090164 | 0.125683 | 0.153005 | 0.153005 | 0 | 0 | 0 | 0 | 0 | 0.016985 | 0.158929 | 560 | 36 | 43 | 15.555556 | 0.760085 | 0 | 0 | 0 | 0 | 0 | 0.008929 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.217391 | false | 0 | 0.043478 | 0 | 0.26087 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ffb0aaa362594441e1c7683440b365d525b6912d | 278 | py | Python | fameTkinter.py | sairam1318/GUI | bd1892a2162993129008fccae0bfccfc11a90f2d | [
"Unlicense"
] | null | null | null | fameTkinter.py | sairam1318/GUI | bd1892a2162993129008fccae0bfccfc11a90f2d | [
"Unlicense"
] | null | null | null | fameTkinter.py | sairam1318/GUI | bd1892a2162993129008fccae0bfccfc11a90f2d | [
"Unlicense"
] | null | null | null | from tkinter import *
root = Tk()
root.geometry('500x900')
f1 = Frame(root, bg = 'pink')
f1.pack(side = LEFT)
label = Label(f1, text = "hai All")
label.pack()
f2 = Frame(root, bg = 'grey')
f1.pack(side = "top")
label = Label(f2, text = "hai All")
label.pack()
root.mainloop() | 18.533333 | 35 | 0.636691 | 44 | 278 | 4.022727 | 0.5 | 0.101695 | 0.124294 | 0.169492 | 0.214689 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051502 | 0.161871 | 278 | 15 | 36 | 18.533333 | 0.708155 | 0 | 0 | 0.166667 | 0 | 0 | 0.114695 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.083333 | 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 |
ffb473958d6bb9e3c1f8a29d3a01e9d25012d133 | 3,897 | py | Python | dss/dss_capi_ir/IYMatrix.py | PMeira/dss_python | 2dbc72ed875108d3f98d21cb0a488bab6b0d7f4c | [
"BSD-3-Clause"
] | 6 | 2018-02-08T23:25:26.000Z | 2018-12-31T00:58:29.000Z | dss/dss_capi_ir/IYMatrix.py | PMeira/dss_python | 2dbc72ed875108d3f98d21cb0a488bab6b0d7f4c | [
"BSD-3-Clause"
] | 19 | 2018-02-12T19:51:48.000Z | 2018-12-14T23:06:17.000Z | dss/dss_capi_ir/IYMatrix.py | PMeira/dss_python | 2dbc72ed875108d3f98d21cb0a488bab6b0d7f4c | [
"BSD-3-Clause"
] | null | null | null | '''
A compatibility layer for DSS C-API that mimics the official OpenDSS COM interface.
Copyright (c) 2016-2020 Paulo Meira
'''
from __future__ import absolute_import
from .._cffi_api_util import Base
import numpy as np
class IYMatrix(Base):
__slots__ = []
def GetCompressedYMatrix(self, factor=True):
... | 34.486726 | 116 | 0.659225 | 455 | 3,897 | 5.476923 | 0.274725 | 0.050562 | 0.117978 | 0.134831 | 0.411316 | 0.353933 | 0.219101 | 0.195827 | 0.126003 | 0.09069 | 0 | 0.014628 | 0.228124 | 3,897 | 112 | 117 | 34.794643 | 0.81383 | 0.128304 | 0 | 0.027397 | 0 | 0 | 0.022606 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.205479 | false | 0 | 0.041096 | 0.027397 | 0.39726 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
ffb73c662981d9fa6333759268ab71b56b0e3eeb | 1,859 | py | Python | imsim/dict_wcs.py | g-braeunlich/imSim | c6f97ba39f05313570d15671f2b9eb9bd1de24bc | [
"BSD-3-Clause"
] | 13 | 2017-06-03T12:38:08.000Z | 2022-01-24T18:56:31.000Z | imsim/dict_wcs.py | g-braeunlich/imSim | c6f97ba39f05313570d15671f2b9eb9bd1de24bc | [
"BSD-3-Clause"
] | 225 | 2016-11-29T23:08:20.000Z | 2022-03-08T03:20:17.000Z | imsim/dict_wcs.py | g-braeunlich/imSim | c6f97ba39f05313570d15671f2b9eb9bd1de24bc | [
"BSD-3-Clause"
] | 9 | 2017-10-26T17:20:23.000Z | 2022-03-29T09:53:18.000Z |
import yaml
import galsim
from galsim.config import WCSBuilder, RegisterWCSType
class DictWCS(WCSBuilder):
def __init__(self):
self.d = {} # Empty dict means we haven't read the file yet.
def buildWCS(self, config, base, logger):
"""Build the TanWCS based on the specifications in the config ... | 33.196429 | 90 | 0.559978 | 257 | 1,859 | 3.984436 | 0.416342 | 0.0625 | 0.011719 | 0.023438 | 0.013672 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013093 | 0.342657 | 1,859 | 55 | 91 | 33.8 | 0.824877 | 0.313609 | 0 | 0 | 0 | 0 | 0.058775 | 0 | 0 | 0 | 0 | 0.018182 | 0 | 1 | 0.0625 | false | 0 | 0.09375 | 0 | 0.21875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
ffb8ace7e263c7bd7949763625b33c44161d06c9 | 17,072 | py | Python | src/data/data_studio.py | decisionscients/Airbnb | f61bc76e4d2806bb827f625fd4acbf14e783b97e | [
"BSD-3-Clause"
] | null | null | null | src/data/data_studio.py | decisionscients/Airbnb | f61bc76e4d2806bb827f625fd4acbf14e783b97e | [
"BSD-3-Clause"
] | null | null | null | src/data/data_studio.py | decisionscients/Airbnb | f61bc76e4d2806bb827f625fd4acbf14e783b97e | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python3
# -*- coding:utf-8 -*-
# ============================================================================ #
# Project : Airbnb #
# Version : 0.1.0 #
# File : data_classes.py ... | 34.840816 | 89 | 0.508259 | 1,641 | 17,072 | 5.176722 | 0.209019 | 0.012713 | 0.01907 | 0.012007 | 0.341848 | 0.26239 | 0.228134 | 0.196822 | 0.147145 | 0.118423 | 0 | 0.006589 | 0.315429 | 17,072 | 489 | 90 | 34.912065 | 0.720288 | 0.175492 | 0 | 0.378723 | 0 | 0 | 0.053032 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.038298 | 0.085106 | null | null | 0.085106 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ffb9dfbedca4085a32f46e5c55f461ffb0cf9c13 | 1,162 | py | Python | tests/grammar/test_evaluator_test_cases.py | AlexandreH/securify2 | 2d2ba0e1c20cdda550120ecdc1a7164db9b90e3c | [
"Apache-2.0"
] | 258 | 2020-01-23T16:58:38.000Z | 2022-03-31T17:29:25.000Z | tests/grammar/test_evaluator_test_cases.py | sirhashalot/securify2 | 6852707449577add14bafce8e304946b3490a977 | [
"Apache-2.0"
] | 34 | 2020-01-30T06:11:58.000Z | 2022-02-27T07:53:17.000Z | tests/grammar/test_evaluator_test_cases.py | sirhashalot/securify2 | 6852707449577add14bafce8e304946b3490a977 | [
"Apache-2.0"
] | 66 | 2020-01-28T09:23:05.000Z | 2022-03-22T09:01:43.000Z | class EvaluatorTestCases:
expressions = [
("1 2 + 2.5 * 2 5 SUM", 14.5, float, 3),
("1 2 3 SUM 4 5 SUM 6 7 SUM", sum(range(8)), int, 3),
("1 2 3 SUM 4 5 SUM 6 7 SUM 8.5 *", sum(range(8)) * 8.5, float, 4),
]
not_ok = [
"""
void test(){
int a; int b... | 24.723404 | 75 | 0.268503 | 131 | 1,162 | 2.374046 | 0.229008 | 0.154341 | 0.144695 | 0.154341 | 0.565916 | 0.508039 | 0.379421 | 0.379421 | 0.379421 | 0.379421 | 0 | 0.064257 | 0.571429 | 1,162 | 46 | 76 | 25.26087 | 0.560241 | 0 | 0 | 0 | 0 | 0 | 0.20436 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
ffbaef05189405752763e167ffe0e524568de21e | 1,344 | py | Python | butter/mas/packets/packet_factory.py | bennymeg/Butter.MAS.PythonAPI | 9641293436d989ae9c5324c2b8129f232822b248 | [
"Apache-2.0"
] | 2 | 2019-08-22T08:57:42.000Z | 2019-11-28T14:01:49.000Z | butter/mas/packets/packet_factory.py | bennymeg/Butter.MAS.PythonAPI | 9641293436d989ae9c5324c2b8129f232822b248 | [
"Apache-2.0"
] | null | null | null | butter/mas/packets/packet_factory.py | bennymeg/Butter.MAS.PythonAPI | 9641293436d989ae9c5324c2b8129f232822b248 | [
"Apache-2.0"
] | null | null | null | from .packet_http import HttpPacket
from .packet_tcp import TcpPacket
from .packet_udp import UdpPacket
from .packet import Packet
class PacketFactory:
""" Packet factory for different types of protocols """
def getPacket(self, ip, port, query, protocol="http") -> Packet:
"""Creates new packet
... | 28 | 81 | 0.546875 | 131 | 1,344 | 5.587786 | 0.343511 | 0.040984 | 0.060109 | 0.087432 | 0.486339 | 0.29235 | 0.29235 | 0.29235 | 0.29235 | 0.29235 | 0 | 0 | 0.366071 | 1,344 | 47 | 82 | 28.595745 | 0.859155 | 0.298363 | 0 | 0.434783 | 0 | 0 | 0.035533 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0 | 0.173913 | 0 | 0.652174 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4401e88e4ee3c5327c58a55d01a6834eb0131d6c | 1,031 | py | Python | alphaVantageAPI/utils.py | twopirllc/alphaVantageAPI | 983228a80ce8ced134c05ef509db8671b40f6f5d | [
"MIT"
] | 78 | 2018-08-06T04:34:03.000Z | 2022-03-14T05:04:40.000Z | alphaVantageAPI/utils.py | twopirllc/alphaVantageAPI | 983228a80ce8ced134c05ef509db8671b40f6f5d | [
"MIT"
] | 4 | 2020-10-04T17:48:56.000Z | 2021-06-15T03:21:58.000Z | alphaVantageAPI/utils.py | twopirllc/alphaVantageAPI | 983228a80ce8ced134c05ef509db8671b40f6f5d | [
"MIT"
] | 20 | 2018-09-03T03:36:01.000Z | 2022-01-05T08:21:03.000Z | # -*- coding: utf-8 -*-
import time
from functools import wraps
from pathlib import Path
from time import perf_counter
def final_time(stime):
time_diff = perf_counter() - stime
return f"{time_diff * 1000:2.4f} ms ({time_diff:2.4f} s)"
def is_home(path:Path): # -> bool
"""Determines if the path is a User ... | 27.131579 | 81 | 0.603298 | 152 | 1,031 | 3.993421 | 0.427632 | 0.052718 | 0.029654 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02642 | 0.265761 | 1,031 | 38 | 82 | 27.131579 | 0.775429 | 0.220175 | 0 | 0 | 0 | 0.04 | 0.132051 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.16 | false | 0 | 0.16 | 0 | 0.52 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
440b5dccf6524a72bbac5900543588e4c537bd82 | 344 | py | Python | setup.py | mpailab/pylext | ea23ae31ec7a428a69b9f9a3af2af98a0b888014 | [
"MIT"
] | 1 | 2020-11-07T19:21:58.000Z | 2020-11-07T19:21:58.000Z | setup.py | mpailab/CFG-parser | ea23ae31ec7a428a69b9f9a3af2af98a0b888014 | [
"MIT"
] | 20 | 2020-01-31T20:36:06.000Z | 2021-04-24T21:48:16.000Z | setup.py | mpailab/pylext | ea23ae31ec7a428a69b9f9a3af2af98a0b888014 | [
"MIT"
] | null | null | null | import sys
import platform
from setuptools import find_packages
from skbuild import setup
extra_cmake_args = ['-DBUILD_PYLEXT=ON']
if platform.system() == "Windows":
extra_cmake_args.append('-GVisual Studio 16 2019')
setup(
packages=find_packages(),
package_data={'pylext': ['macros/*.pyg']},
cmake_a... | 20.235294 | 54 | 0.732558 | 45 | 344 | 5.355556 | 0.6 | 0.149378 | 0.174274 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020339 | 0.142442 | 344 | 16 | 55 | 21.5 | 0.79661 | 0 | 0 | 0 | 0 | 0 | 0.188953 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
440ca45a4bddc979e7138d3e386fe9d8aaba4fad | 293 | py | Python | global_params.py | Xpitfire/XdA | 3b5e056d4a2c24d1720a484aa6c2471e9636036f | [
"MIT"
] | null | null | null | global_params.py | Xpitfire/XdA | 3b5e056d4a2c24d1720a484aa6c2471e9636036f | [
"MIT"
] | null | null | null | global_params.py | Xpitfire/XdA | 3b5e056d4a2c24d1720a484aa6c2471e9636036f | [
"MIT"
] | null | null | null | class Args(object):
def __init__(self):
self.seed = 0
self.experiment = None
self.network = None
self.approach = None
self.parameter = []
self.taskcla = None
self.comment = None
self.log_dir = None
global args
args = Args()
| 20.928571 | 30 | 0.559727 | 34 | 293 | 4.676471 | 0.529412 | 0.251572 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005236 | 0.348123 | 293 | 13 | 31 | 22.538462 | 0.827225 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0 | 0 | 0.166667 | 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 |
440d11e1d65a1ff02edb49a4f74d358f7ec5117e | 347 | py | Python | Lection 1. Graphs representation/_gens/testgen.py | gennadiychistyakov/graphs-theory-materials | 191db41634d2bb9a0661963d489a34ba731506f1 | [
"MIT"
] | null | null | null | Lection 1. Graphs representation/_gens/testgen.py | gennadiychistyakov/graphs-theory-materials | 191db41634d2bb9a0661963d489a34ba731506f1 | [
"MIT"
] | null | null | null | Lection 1. Graphs representation/_gens/testgen.py | gennadiychistyakov/graphs-theory-materials | 191db41634d2bb9a0661963d489a34ba731506f1 | [
"MIT"
] | null | null | null | import os
import random
count = 30
os.system("javac GraphsGenerator.java")
for i in range(count):
vertex, density = random.randint(400, 600), random.randint(400, 600) / 1000
os.system("java GraphGenerator simplegraph " + str(vertex) + " " + str(density) + " > " + ("0" + str(i + 1) + ".in")[-5:])
os.system(... | 34.7 | 124 | 0.648415 | 47 | 347 | 4.787234 | 0.574468 | 0.106667 | 0.142222 | 0.168889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.072917 | 0.170029 | 347 | 10 | 125 | 34.7 | 0.708333 | 0 | 0 | 0 | 0 | 0 | 0.265487 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 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 |
441b6947fb5193601db0a3377f62dca0ffe4889b | 1,725 | py | Python | enums/csv/csv2enum/app/csv2enum.py | zelr0x/one-time-utils | d9bec98f5bb5c07486f94b689414c75ccf7a1b3b | [
"MIT"
] | null | null | null | enums/csv/csv2enum/app/csv2enum.py | zelr0x/one-time-utils | d9bec98f5bb5c07486f94b689414c75ccf7a1b3b | [
"MIT"
] | null | null | null | enums/csv/csv2enum/app/csv2enum.py | zelr0x/one-time-utils | d9bec98f5bb5c07486f94b689414c75ccf7a1b3b | [
"MIT"
] | null | null | null | import argparse
import csv
import sys
from stringcase import constcase
"""
Workflow:
1. execute sql
2. export results to .csv
3. feed csv to this and optionally redirect results
4. complete formatting manually
(impossible to avoid without adding
a formatting dictionary by the user).
... | 27.822581 | 80 | 0.667826 | 244 | 1,725 | 4.639344 | 0.508197 | 0.045053 | 0.040636 | 0.028269 | 0.047703 | 0.047703 | 0.047703 | 0 | 0 | 0 | 0 | 0.008639 | 0.194783 | 1,725 | 61 | 81 | 28.278689 | 0.805616 | 0.121739 | 0 | 0 | 0 | 0 | 0.091543 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.133333 | 0.133333 | 0.433333 | 0.133333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
441f0956730791d5e0aa26e404b82a440ea61193 | 2,257 | py | Python | test/test_jsonobjects.py | DLR-RM/python-jsonconversion | 02bc24840884b91e92b6b94730d1c2d302eeea62 | [
"BSD-2-Clause-NetBSD",
"BSD-2-Clause"
] | 6 | 2017-12-01T14:07:33.000Z | 2022-03-26T20:14:57.000Z | test/test_jsonobjects.py | DLR-RM/python-jsonconversion | 02bc24840884b91e92b6b94730d1c2d302eeea62 | [
"BSD-2-Clause-NetBSD",
"BSD-2-Clause"
] | 2 | 2018-11-25T14:55:41.000Z | 2021-05-17T07:23:42.000Z | test/test_jsonobjects.py | DLR-RM/python-jsonconversion | 02bc24840884b91e92b6b94730d1c2d302eeea62 | [
"BSD-2-Clause-NetBSD",
"BSD-2-Clause"
] | 1 | 2020-11-17T20:47:31.000Z | 2020-11-17T20:47:31.000Z | # Copyright (C) 2016-2017 DLR
#
# All rights reserved. This program and the accompanying materials are made
# available under the terms of the 2-Clause BSD License ("Simplified BSD
# License") which accompanies this distribution, and is available at
# https://opensource.org/licenses/BSD-2-Clause
#
# Contributors:
# Fra... | 30.917808 | 115 | 0.572441 | 352 | 2,257 | 3.502841 | 0.275568 | 0.115977 | 0.210868 | 0.020276 | 0.231955 | 0.183293 | 0.170316 | 0.170316 | 0.170316 | 0.170316 | 0 | 0.067757 | 0.241471 | 2,257 | 72 | 116 | 31.347222 | 0.652453 | 0.150199 | 0 | 0.173913 | 0 | 0.021739 | 0.056604 | 0 | 0 | 0 | 0 | 0 | 0.282609 | 1 | 0.173913 | false | 0 | 0.043478 | 0.086957 | 0.326087 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
442d3a64baf645e86d88223fdea6691517abbbdd | 706 | py | Python | python/03_tipos_de_dados/tipos.py | ac-gomes/python-iniciante | 002fc91facb5d89c23540d8b05073e8a3c8a4c59 | [
"MIT"
] | null | null | null | python/03_tipos_de_dados/tipos.py | ac-gomes/python-iniciante | 002fc91facb5d89c23540d8b05073e8a3c8a4c59 | [
"MIT"
] | null | null | null | python/03_tipos_de_dados/tipos.py | ac-gomes/python-iniciante | 002fc91facb5d89c23540d8b05073e8a3c8a4c59 | [
"MIT"
] | null | null | null | # função usada abaixo 'print()' é usada para exibir ou imprimir mensagens no console.
# Iteiros | Int
print(10)
# Será exibido no console o numero 10
# Ponto Flutuante | Float
print(9.5)
# Cadeia de caracteres | Strings
cadeia_de_caracter = "Olá Mundo!"
print(cadeia_de_caracter)
# Boleano | Boolean
valor_verdadeiro... | 23.533333 | 85 | 0.763456 | 108 | 706 | 4.842593 | 0.509259 | 0.061185 | 0.091778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00995 | 0.145892 | 706 | 29 | 86 | 24.344828 | 0.85738 | 0.483003 | 0 | 0 | 0 | 0 | 0.120787 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.714286 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
4430c8cf6acabc19030dc504a9134803814effae | 476 | py | Python | Python/questions/UniquePaths/unique-paths.py | udcymen/leetcode | 7c7c4085e6a8cea7106dd8bca86b370ca53e3ddd | [
"MIT"
] | null | null | null | Python/questions/UniquePaths/unique-paths.py | udcymen/leetcode | 7c7c4085e6a8cea7106dd8bca86b370ca53e3ddd | [
"MIT"
] | null | null | null | Python/questions/UniquePaths/unique-paths.py | udcymen/leetcode | 7c7c4085e6a8cea7106dd8bca86b370ca53e3ddd | [
"MIT"
] | null | null | null | def uniquePaths(m: int, n: int) -> int:
dp = [[0 for _ in range(m)] for _ in range(n)]
for i in range(m):
dp[0][i] = 1
for j in range(n):
dp[j][0] = 1
for i in range(1, n):
for j in range(1, m):
dp[i][j] = dp[i - 1][j] + dp[i][j - 1]
return... | 22.666667 | 50 | 0.47479 | 81 | 476 | 2.666667 | 0.259259 | 0.194444 | 0.236111 | 0.101852 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.06051 | 0.340336 | 476 | 21 | 51 | 22.666667 | 0.627389 | 0 | 0 | 0 | 0 | 0 | 0.016771 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0 | 0 | 0.133333 | 0.266667 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
443c8ee4761244880c161ee31234d63fc34c202e | 1,921 | py | Python | uspto/pbd/document.py | Velpeo/uspto-opendata-python | fbfe292d0b9dd01e541744d654d051ede8b4ed9b | [
"MIT"
] | 55 | 2017-10-26T19:46:57.000Z | 2022-03-06T20:23:49.000Z | uspto/pbd/document.py | Velpeo/uspto-opendata-python | fbfe292d0b9dd01e541744d654d051ede8b4ed9b | [
"MIT"
] | 13 | 2017-11-17T08:52:27.000Z | 2019-06-01T13:37:42.000Z | uspto/pbd/document.py | Velpeo/uspto-opendata-python | fbfe292d0b9dd01e541744d654d051ede8b4ed9b | [
"MIT"
] | 19 | 2017-11-08T04:16:21.000Z | 2022-03-06T20:24:40.000Z | # -*- coding: utf-8 -*-
# (c) 2017 Andreas Motl <andreas@ip-tools.org>
import logging
from uspto.util.document import GenericDocument
logger = logging.getLogger(__name__)
class UsptoPairBulkDataDocument(GenericDocument):
XML_NAMESPACES = {
'pat': 'http://www.wipo.int/standards/XMLSchema/ST96/Patent',
... | 40.87234 | 143 | 0.680895 | 159 | 1,921 | 8.100629 | 0.503145 | 0.016304 | 0.055901 | 0.079193 | 0.194876 | 0.139752 | 0.055901 | 0 | 0 | 0 | 0 | 0.014258 | 0.196773 | 1,921 | 46 | 144 | 41.76087 | 0.82048 | 0.034357 | 0 | 0 | 0 | 0 | 0.545651 | 0.416532 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.088235 | 0 | 0.205882 | 0.029412 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
444c4b7c36e28a58ff7465104c8e55466ccb9599 | 3,242 | py | Python | torchqf/model/factor_model.py | simaki/torchqf | e4dfd154c62ccd858847048f77d8c2f82924ae80 | [
"BSD-3-Clause"
] | 7 | 2021-05-18T17:03:10.000Z | 2021-12-01T07:58:41.000Z | torchqf/model/factor_model.py | vishalbelsare/torchqf | e4dfd154c62ccd858847048f77d8c2f82924ae80 | [
"BSD-3-Clause"
] | 27 | 2021-05-18T03:54:17.000Z | 2022-01-31T15:16:16.000Z | torchqf/model/factor_model.py | vishalbelsare/torchqf | e4dfd154c62ccd858847048f77d8c2f82924ae80 | [
"BSD-3-Clause"
] | 3 | 2021-07-13T12:56:12.000Z | 2021-12-26T23:00:06.000Z | from typing import TypeVar
import torch
from torch import Tensor
from torch.nn import Module
T = TypeVar("T")
class FactorModel(Module):
"""Factor model.
Attributes:
beta (Tensor): Created after `fit`.
Shape:
- input: :math:`(*, A, T)`
:math:`A` is the number of assets.
... | 34.489362 | 93 | 0.534855 | 427 | 3,242 | 4.014052 | 0.23185 | 0.04084 | 0.089848 | 0.106184 | 0.411319 | 0.411319 | 0.387981 | 0.359977 | 0.359977 | 0.359977 | 0 | 0.05256 | 0.319247 | 3,242 | 93 | 94 | 34.860215 | 0.72406 | 0.602097 | 0 | 0 | 0 | 0 | 0.060396 | 0 | 0 | 0 | 0 | 0 | 0.15 | 1 | 0.15 | false | 0 | 0.2 | 0.05 | 0.55 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
44547b2aba9054d13531c96df6084aae47fe2f62 | 176 | py | Python | Source Code/03_play_youtube_video.py | insanecodes/Python | e3e022fa5ff83e418dae32c661296224fc8ded36 | [
"MIT"
] | 22 | 2020-10-11T13:56:25.000Z | 2021-11-10T12:53:10.000Z | Source Code/03_play_youtube_video.py | insanecodes/Python | e3e022fa5ff83e418dae32c661296224fc8ded36 | [
"MIT"
] | null | null | null | Source Code/03_play_youtube_video.py | insanecodes/Python | e3e022fa5ff83e418dae32c661296224fc8ded36 | [
"MIT"
] | 8 | 2020-10-16T12:58:29.000Z | 2021-12-30T01:28:16.000Z | import vlc
import pafy
url = input("Paste your YouTube URL here:>> ")
video = pafy.new(url)
best = video.getbest()
media = vlc.MediaPlayer(best.url)
media.play()
| 16 | 47 | 0.659091 | 25 | 176 | 4.64 | 0.64 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.204545 | 176 | 10 | 48 | 17.6 | 0.828571 | 0 | 0 | 0 | 0 | 0 | 0.186747 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
4455bd06ae682dfc626ad7fc153b5eb489c47521 | 11,521 | py | Python | bips/workflows/workflow5.py | FCP-INDI/BrainImagingPipelines | 2b0da2b50814cc685f15fefbae8144624308ebfc | [
"Apache-2.0"
] | 1 | 2015-07-15T19:48:09.000Z | 2015-07-15T19:48:09.000Z | bips/workflows/workflow5.py | FCP-INDI/BrainImagingPipelines | 2b0da2b50814cc685f15fefbae8144624308ebfc | [
"Apache-2.0"
] | null | null | null | bips/workflows/workflow5.py | FCP-INDI/BrainImagingPipelines | 2b0da2b50814cc685f15fefbae8144624308ebfc | [
"Apache-2.0"
] | null | null | null | import os
from ..utils.reportsink.io import ReportSink
from .base import MetaWorkflow, load_config, register_workflow
from scripts.u0a14c5b5899911e1bca80023dfa375f2.QA_utils import corr_image, vol2surf
from .scripts.u0a14c5b5899911e1bca80023dfa375f2.utils import pickfirst
"""
Part 1: Define a MetaWorkflow
"""
desc = ... | 35.018237 | 171 | 0.601337 | 1,244 | 11,521 | 5.391479 | 0.241961 | 0.044729 | 0.009691 | 0.023856 | 0.160728 | 0.103772 | 0.036976 | 0.015506 | 0.015506 | 0 | 0 | 0.013807 | 0.277059 | 11,521 | 328 | 172 | 35.125 | 0.791452 | 0.007031 | 0 | 0.037037 | 0 | 0.005291 | 0.208406 | 0.034173 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.015873 | 0.079365 | null | null | 0.010582 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
44689eb1c353f9b02a6afaeadb0ae3553e6686c3 | 1,104 | py | Python | ratio/cifar10_resnet34_ratio_alpha_0_beta_0.75/ratio.py | guoyurong0104/CRL-code | 276466a64823c5bd1645317b6cfb7ee12d3ba735 | [
"MIT"
] | 1 | 2022-02-23T04:30:00.000Z | 2022-02-23T04:30:00.000Z | ratio/cifar10_resnet34_ratio_alpha_0_beta_0.75/ratio.py | guoyurong0104/CRL-code | 276466a64823c5bd1645317b6cfb7ee12d3ba735 | [
"MIT"
] | null | null | null | ratio/cifar10_resnet34_ratio_alpha_0_beta_0.75/ratio.py | guoyurong0104/CRL-code | 276466a64823c5bd1645317b6cfb7ee12d3ba735 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import math
import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.autograd import Variable
#对Variable操作如果直接使用索引,梯度不传播
import torch
import torch.nn as nn
import torch.nn.functional as F
def one_hot(index,classes):
N=index.size(0)
onehot = torch.zeros(N, classes).lo... | 28.307692 | 120 | 0.630435 | 165 | 1,104 | 4.139394 | 0.351515 | 0.096633 | 0.076135 | 0.064422 | 0.20205 | 0.158126 | 0.158126 | 0.158126 | 0.158126 | 0.158126 | 0 | 0.033721 | 0.221014 | 1,104 | 38 | 121 | 29.052632 | 0.760465 | 0.041667 | 0 | 0.214286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.107143 | false | 0 | 0.285714 | 0 | 0.535714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
447622d2c289dcacc27dfdd593d3988716c8fd79 | 293 | py | Python | setup.py | AlexanderKlemps/simple-gan | 8915baf8d50875fe51586540333887654db11764 | [
"Apache-2.0"
] | null | null | null | setup.py | AlexanderKlemps/simple-gan | 8915baf8d50875fe51586540333887654db11764 | [
"Apache-2.0"
] | null | null | null | setup.py | AlexanderKlemps/simple-gan | 8915baf8d50875fe51586540333887654db11764 | [
"Apache-2.0"
] | null | null | null | from setuptools import setup
setup(
name='simple_GAN',
version='1.0',
description='A simple GAN implemented using numpy only.',
author='Alexander Klemps',
author_email='alexander.klemps@hotmail.com',
packages=['simple_GAN'],
install_requires=["numpy", "matplotlib"],
)
| 24.416667 | 60 | 0.703072 | 35 | 293 | 5.771429 | 0.742857 | 0.133663 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008065 | 0.153584 | 293 | 11 | 61 | 26.636364 | 0.806452 | 0 | 0 | 0 | 0 | 0 | 0.423208 | 0.095563 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.1 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
44778e8b4fabbe63b8938bf8e8bca6342ace382a | 3,792 | py | Python | set2/challenge13.py | 8u1a/my_matasano_crypto_challenges | 0da1f7fc9445449d5d02867b659325ef5fe62c7d | [
"Unlicense"
] | null | null | null | set2/challenge13.py | 8u1a/my_matasano_crypto_challenges | 0da1f7fc9445449d5d02867b659325ef5fe62c7d | [
"Unlicense"
] | null | null | null | set2/challenge13.py | 8u1a/my_matasano_crypto_challenges | 0da1f7fc9445449d5d02867b659325ef5fe62c7d | [
"Unlicense"
] | null | null | null | __author__ = 'christianbuia'
import random
from Crypto.Cipher import AES
def pkcs7_padding(message_bytes, block_size):
pad_length = block_size - (len(message_bytes) % block_size)
if pad_length != block_size:
for i in range(0, pad_length):
message_bytes += bytes([pad_length])
return... | 36.114286 | 120 | 0.489188 | 402 | 3,792 | 4.472637 | 0.308458 | 0.100111 | 0.13515 | 0.160178 | 0.158509 | 0.130701 | 0.130701 | 0.130701 | 0.130701 | 0.130701 | 0 | 0.026268 | 0.136603 | 3,792 | 104 | 121 | 36.461538 | 0.522908 | 0.438027 | 0 | 0.04 | 0 | 0.02 | 0.076814 | 0.031769 | 0 | 0 | 0 | 0 | 0 | 1 | 0.16 | false | 0 | 0.04 | 0.02 | 0.38 | 0.04 | 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 |
4479068e6993ffaee57841db8ee112460f7809d1 | 1,773 | py | Python | src/blockchain/block.py | slawiko/blockchain_practice | 24a06d59cc2e0d9674edcaba5ea8c358f3feedd7 | [
"Apache-2.0"
] | null | null | null | src/blockchain/block.py | slawiko/blockchain_practice | 24a06d59cc2e0d9674edcaba5ea8c358f3feedd7 | [
"Apache-2.0"
] | 1 | 2019-10-21T16:28:08.000Z | 2019-10-21T16:28:08.000Z | src/blockchain/block.py | slawiko/digital_image | 24a06d59cc2e0d9674edcaba5ea8c358f3feedd7 | [
"Apache-2.0"
] | null | null | null | import hashlib
import logging
from blockchain.transaction import Transaction
complexity = 5
log = logging.getLogger(__name__)
class Block:
def __init__(self, previous_hash, transactions, nonce=None, block_hash=None):
self.previousHash = previous_hash
# TODO: merkle tree?
self.transaction... | 29.065574 | 105 | 0.619853 | 192 | 1,773 | 5.598958 | 0.307292 | 0.04186 | 0.04186 | 0.050233 | 0.235349 | 0.217674 | 0.217674 | 0.217674 | 0.217674 | 0.217674 | 0 | 0.045181 | 0.250987 | 1,773 | 60 | 106 | 29.55 | 0.764307 | 0.023689 | 0 | 0.136364 | 0 | 0.022727 | 0.167824 | 0.112269 | 0 | 0 | 0 | 0.016667 | 0 | 1 | 0.181818 | false | 0 | 0.068182 | 0.090909 | 0.431818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
447d3663a31b1d15fced0d43cf268e47627e1ca7 | 2,504 | py | Python | test/app-client/batch_files/run_application.py | susanwab/elijah-provisioning | 6364f1e6c6c802033df71999435d7f7dc03ad2b6 | [
"Apache-2.0"
] | 19 | 2015-01-18T23:37:18.000Z | 2019-10-16T15:53:29.000Z | test/app-client/batch_files/run_application.py | susanwab/elijah-provisioning | 6364f1e6c6c802033df71999435d7f7dc03ad2b6 | [
"Apache-2.0"
] | 5 | 2016-06-09T15:08:51.000Z | 2018-05-07T17:45:01.000Z | test/app-client/batch_files/run_application.py | susanwab/elijah-provisioning | 6364f1e6c6c802033df71999435d7f7dc03ad2b6 | [
"Apache-2.0"
] | 15 | 2015-02-02T11:08:14.000Z | 2020-03-24T14:22:50.000Z | #!/usr/bin/env python
#
# Cloudlet Infrastructure for Mobile Computing
#
# Author: Kiryong Ha <krha@cmu.edu>
#
# Copyright (C) 2011-2013 Carnegie Mellon University
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may ob... | 31.696203 | 93 | 0.678115 | 332 | 2,504 | 4.96988 | 0.509036 | 0.036364 | 0.032727 | 0.019394 | 0.031515 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009779 | 0.224042 | 2,504 | 78 | 94 | 32.102564 | 0.839424 | 0.309105 | 0 | 0.044444 | 0 | 0 | 0.184903 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.088889 | null | null | 0.044444 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
447f0e0f8838794d2898b615dca748811756dbfd | 1,073 | py | Python | boo/year.py | AirVetra/boo | bb8404c48a6f17402a98a88454fdd876184c35c1 | [
"MIT"
] | 1 | 2019-12-06T21:13:22.000Z | 2019-12-06T21:13:22.000Z | boo/year.py | AirVetra/boo | bb8404c48a6f17402a98a88454fdd876184c35c1 | [
"MIT"
] | null | null | null | boo/year.py | AirVetra/boo | bb8404c48a6f17402a98a88454fdd876184c35c1 | [
"MIT"
] | null | null | null | from boo.errors import WrongYearError
# Must manually hardcode new timestamps when new version arrives
TIMESTAMPS = {2012: 20190329,
2013: 20190411,
2014: 20190411,
2015: 20190411,
2016: 20190411,
2017: 20190423,
2018: 20191029, # fro... | 32.515152 | 110 | 0.603914 | 112 | 1,073 | 5.776786 | 0.678571 | 0.021638 | 0.030912 | 0.037094 | 0.083462 | 0.083462 | 0 | 0 | 0 | 0 | 0 | 0.237909 | 0.287046 | 1,073 | 32 | 111 | 33.53125 | 0.607843 | 0.233924 | 0 | 0 | 0 | 0.043478 | 0.237204 | 0.097378 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.043478 | 0 | 0.173913 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
448125bfd785d8e51ea254792163bb0d2227aacd | 10,771 | py | Python | pypush2/ui.py | jonathonw/pypush2 | 90e8b503c45070de83190b7fad3bfd9a2bc49bf5 | [
"BSD-3-Clause"
] | null | null | null | pypush2/ui.py | jonathonw/pypush2 | 90e8b503c45070de83190b7fad3bfd9a2bc49bf5 | [
"BSD-3-Clause"
] | null | null | null | pypush2/ui.py | jonathonw/pypush2 | 90e8b503c45070de83190b7fad3bfd9a2bc49bf5 | [
"BSD-3-Clause"
] | null | null | null | import pypush2.display, pypush2.colors, pypush2.device, pypush2.buttons, pypush2._utils.events
import cairocffi
import mido
import threading
from math import pi
from collections import deque
color = pypush2.colors.PUSH_COLORS_DICT["azure_radiance"]
dark_color = pypush2.colors.PUSH_COLORS_DICT["midnight"]
highlight_c... | 37.399306 | 200 | 0.722588 | 1,404 | 10,771 | 5.266382 | 0.171652 | 0.023803 | 0.017041 | 0.020557 | 0.422775 | 0.352448 | 0.227076 | 0.208277 | 0.161077 | 0.15188 | 0 | 0.020392 | 0.166837 | 10,771 | 287 | 201 | 37.529617 | 0.803544 | 0.06109 | 0 | 0.277228 | 0 | 0 | 0.028031 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.009901 | 0.029703 | null | null | 0.004951 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
448220a84bd89d97b3a7842070073f389ae0093b | 1,494 | py | Python | src/get_data.py | sukilsiva/ML-WorkFlow | a66b9c2b8ccab5cdc800a1c00133cb5fc5629792 | [
"MIT"
] | null | null | null | src/get_data.py | sukilsiva/ML-WorkFlow | a66b9c2b8ccab5cdc800a1c00133cb5fc5629792 | [
"MIT"
] | null | null | null | src/get_data.py | sukilsiva/ML-WorkFlow | a66b9c2b8ccab5cdc800a1c00133cb5fc5629792 | [
"MIT"
] | null | null | null | from numpy.core.numeric import flatnonzero
import pandas as pd
from pandas.core.indexes.base import Index
import sqlalchemy
import argparse
import yaml
pd.pandas.set_option("display.max_columns", None)
def read_params(config_path):
with open(config_path) as yaml_file:
config = yaml.safe_load(yaml_file)
... | 35.571429 | 99 | 0.707497 | 205 | 1,494 | 4.902439 | 0.404878 | 0.049751 | 0.059701 | 0.077612 | 0.155224 | 0.075622 | 0 | 0 | 0 | 0 | 0 | 0.003125 | 0.14324 | 1,494 | 42 | 100 | 35.571429 | 0.782031 | 0.124498 | 0 | 0 | 0 | 0 | 0.129701 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064516 | false | 0.064516 | 0.193548 | 0 | 0.322581 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
44843de8dc120c9942d1d7854767c9baf3c8ec56 | 3,812 | py | Python | idaes/util/update_workshop_materials.py | eyoung55/idaes-pse | 01a6d795d484155923baabcfc2878d5285b8c9b1 | [
"RSA-MD"
] | 112 | 2019-02-11T23:16:36.000Z | 2022-03-23T20:59:57.000Z | idaes/util/update_workshop_materials.py | eyoung55/idaes-pse | 01a6d795d484155923baabcfc2878d5285b8c9b1 | [
"RSA-MD"
] | 621 | 2019-03-01T14:44:12.000Z | 2022-03-31T19:49:25.000Z | idaes/util/update_workshop_materials.py | eyoung55/idaes-pse | 01a6d795d484155923baabcfc2878d5285b8c9b1 | [
"RSA-MD"
] | 154 | 2019-02-01T23:46:33.000Z | 2022-03-23T15:07:10.000Z | #################################################################################
# The Institute for the Design of Advanced Energy Systems Integrated Platform
# Framework (IDAES IP) was produced under the DOE Institute for the
# Design of Advanced Energy Systems (IDAES), and is copyright (c) 2018-2021
# by the softwar... | 42.355556 | 143 | 0.683893 | 472 | 3,812 | 5.317797 | 0.383475 | 0.128685 | 0.103586 | 0.150199 | 0.26494 | 0.147012 | 0.11753 | 0.086454 | 0 | 0 | 0 | 0.003427 | 0.157922 | 3,812 | 89 | 144 | 42.831461 | 0.778505 | 0.513641 | 0 | 0.057143 | 0 | 0 | 0.277372 | 0.129562 | 0 | 0 | 0 | 0.011236 | 0 | 1 | 0.057143 | false | 0 | 0.228571 | 0 | 0.342857 | 0.114286 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
4484a81588eb87439b6eac76283279795fdffd65 | 3,914 | py | Python | board/views/user.py | DPS0340/DjangoCRUDBoard | 0211e6aeb05c2e20af4f39a61744188eb5490534 | [
"MIT"
] | 14 | 2020-12-28T08:56:18.000Z | 2022-03-16T18:04:02.000Z | board/views/user.py | DPS0340/DjangoCRUDBoard | 0211e6aeb05c2e20af4f39a61744188eb5490534 | [
"MIT"
] | 27 | 2020-12-28T10:51:04.000Z | 2021-03-12T10:11:33.000Z | board/views/user.py | DPS0340/DjangoCRUDBoard | 0211e6aeb05c2e20af4f39a61744188eb5490534 | [
"MIT"
] | 7 | 2020-12-28T06:28:05.000Z | 2021-03-03T23:47:34.000Z | from ..responses import *
from ..utils import send_json, pop_args, byte_to_dict, get_user
from django.contrib.auth.models import User as Default_User
from ..models import User
from django.contrib.auth.hashers import make_password
from django.views import View
import sys
sys.path.append("../../")
import json
from Django... | 43.488889 | 137 | 0.642054 | 483 | 3,914 | 5.037267 | 0.285714 | 0.055898 | 0.092067 | 0.051377 | 0.407727 | 0.362104 | 0.31155 | 0.285245 | 0.212084 | 0.212084 | 0 | 0.002699 | 0.242718 | 3,914 | 89 | 138 | 43.977528 | 0.818151 | 0.061063 | 0 | 0.351351 | 0 | 0 | 0.09539 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.054054 | false | 0.148649 | 0.121622 | 0 | 0.405405 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
449280585b8559103650cebd3fc06f7a1b844875 | 936 | py | Python | lesson_planner/migrations/0014_auto_20200811_2219.py | Hogwarts250/lesson-discussion | 42aa0d5d4e4a8cb10c99ff7558e9d7a5f2f3e470 | [
"Apache-2.0"
] | null | null | null | lesson_planner/migrations/0014_auto_20200811_2219.py | Hogwarts250/lesson-discussion | 42aa0d5d4e4a8cb10c99ff7558e9d7a5f2f3e470 | [
"Apache-2.0"
] | 4 | 2021-04-08T19:49:25.000Z | 2021-06-10T20:08:37.000Z | lesson_planner/migrations/0014_auto_20200811_2219.py | Hogwarts250/lesson-discussion | 42aa0d5d4e4a8cb10c99ff7558e9d7a5f2f3e470 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 3.1 on 2020-08-12 05:19
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import uuid
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('lesson_planner... | 29.25 | 145 | 0.639957 | 102 | 936 | 5.72549 | 0.558824 | 0.041096 | 0.077055 | 0.097603 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044223 | 0.251068 | 936 | 31 | 146 | 30.193548 | 0.788873 | 0.04594 | 0 | 0.24 | 1 | 0 | 0.084175 | 0.025814 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.16 | 0 | 0.28 | 0 | 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 |
4492d7d99bf525f43c0bffaddf1001bc608bfd04 | 1,489 | py | Python | book/_build/jupyter_execute/pandas/22-Public Health Data Visualization using Pandas .py | hossainlab/dsnotes | fee64e157f45724bba1f49ad1b186dcaaf1e6c02 | [
"CC0-1.0"
] | null | null | null | book/_build/jupyter_execute/pandas/22-Public Health Data Visualization using Pandas .py | hossainlab/dsnotes | fee64e157f45724bba1f49ad1b186dcaaf1e6c02 | [
"CC0-1.0"
] | null | null | null | book/_build/jupyter_execute/pandas/22-Public Health Data Visualization using Pandas .py | hossainlab/dsnotes | fee64e157f45724bba1f49ad1b186dcaaf1e6c02 | [
"CC0-1.0"
] | null | null | null | # import library
import pandas as pd
import matplotlib.pyplot as plt
# set style
plt.style.use('seaborn')
# set figuresize and fontsize
plt.rcParams['figure.figsize'] = (8,6)
plt.rcParams['font.size'] = 14
# read data
data = pd.read_csv("../data/framingham.csv")
# examine first few rows
data.head()
# shap... | 36.317073 | 396 | 0.721289 | 236 | 1,489 | 4.533898 | 0.512712 | 0.007477 | 0.028037 | 0.019626 | 0.265421 | 0.213084 | 0.213084 | 0.213084 | 0.213084 | 0.213084 | 0 | 0.021407 | 0.121558 | 1,489 | 41 | 396 | 36.317073 | 0.796636 | 0.141034 | 0 | 0.111111 | 0 | 0.055556 | 0.308057 | 0.017378 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.111111 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.