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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9c73e42e5450f5297825a8b7b5ed477533484ff2 | 738 | py | Python | bookr/reviews/migrations/0002_book.py | rodrigobmedeiros/Bookr | bc8313226b020755c16f5ea2574f8716bd3774fd | [
"MIT"
] | null | null | null | bookr/reviews/migrations/0002_book.py | rodrigobmedeiros/Bookr | bc8313226b020755c16f5ea2574f8716bd3774fd | [
"MIT"
] | null | null | null | bookr/reviews/migrations/0002_book.py | rodrigobmedeiros/Bookr | bc8313226b020755c16f5ea2574f8716bd3774fd | [
"MIT"
] | null | null | null | # Generated by Django 3.2.5 on 2021-07-29 16:23
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('reviews', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Book',
fields=[
('id', mod... | 32.086957 | 117 | 0.598916 | 83 | 738 | 5.204819 | 0.662651 | 0.076389 | 0.041667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042751 | 0.271003 | 738 | 22 | 118 | 33.545455 | 0.760223 | 0.060976 | 0 | 0 | 1 | 0 | 0.178003 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
9c8249cf7ece7a4fc7fe4255815f150736f0a52e | 2,253 | py | Python | 04advanced/07.decorator.py | KEVINYZY/python-tutorial | ae43536908eb8af56c34865f52a6e8644edc4fa3 | [
"Apache-2.0"
] | 2 | 2021-01-04T10:44:44.000Z | 2022-02-13T07:53:41.000Z | 04advanced/07.decorator.py | zm79287/python-tutorial | d0f7348e1da4ff954e3add66e1aae55d599283ee | [
"Apache-2.0"
] | null | null | null | 04advanced/07.decorator.py | zm79287/python-tutorial | d0f7348e1da4ff954e3add66e1aae55d599283ee | [
"Apache-2.0"
] | 2 | 2020-11-23T08:58:51.000Z | 2022-02-13T07:53:42.000Z | # -*- coding: utf-8 -*-
"""
@description: 装饰器
@author:XuMing
"""
from __future__ import print_function # 兼容python3的print写法
from __future__ import unicode_literals # 兼容python3的编码处理
# 用 @ 来使用装饰器
# 使用 @ 符号来将某个函数替换为装饰符之后的函数:
# 例如这个函数:
def dec(f):
print('I am decorating function', id(f))
return f
def foo(x):
... | 14.72549 | 58 | 0.600976 | 315 | 2,253 | 4.190476 | 0.422222 | 0.027273 | 0.021212 | 0.027273 | 0.167424 | 0.137879 | 0.137879 | 0.137879 | 0.107576 | 0.107576 | 0 | 0.018777 | 0.267199 | 2,253 | 152 | 59 | 14.822368 | 0.780739 | 0.284066 | 0 | 0.388889 | 0 | 0 | 0.042567 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.263889 | false | 0.013889 | 0.027778 | 0.069444 | 0.486111 | 0.152778 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
9c8396c59408a9c358072af2cc6e2c053ab6cb23 | 1,203 | py | Python | firmware/accumulator.py | mfkiwl/OpenXcvr | 9bea6efd03cd246f16982f0fadafed684ac5ce1c | [
"MIT"
] | 14 | 2020-02-16T15:36:31.000Z | 2022-03-27T02:24:40.000Z | firmware/accumulator.py | mfkiwl/OpenXcvr | 9bea6efd03cd246f16982f0fadafed684ac5ce1c | [
"MIT"
] | 1 | 2020-11-23T16:16:33.000Z | 2020-11-23T16:16:33.000Z | firmware/accumulator.py | mfkiwl/OpenXcvr | 9bea6efd03cd246f16982f0fadafed684ac5ce1c | [
"MIT"
] | 4 | 2021-03-29T16:55:03.000Z | 2022-01-23T16:43:59.000Z | from baremetal import *
from math import ceil, log
def accumulator(clk, delta, channels):
t = delta.subtype
def tree(delta, x, n):
x, xn=t.register(clk, d=x), t.register(clk, d=x+delta*n)
delta=t.register(clk, d=delta)
if n == 1:
return [x, xn]
else:
retu... | 26.733333 | 81 | 0.558603 | 159 | 1,203 | 4.169811 | 0.377358 | 0.054299 | 0.072398 | 0.058824 | 0.042232 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021251 | 0.295927 | 1,203 | 44 | 82 | 27.340909 | 0.761511 | 0.01995 | 0 | 0.138889 | 0 | 0 | 0.023769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.027778 | 0.055556 | null | null | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
92bb3bebb7434a0fa628690329812cd6cf5d1e4e | 1,304 | py | Python | Thesis/availability/runRiakAvai.py | arnaudsjs/YCSB-1 | dc557d209244df72d68c9cb0a048d54e7bd72637 | [
"Apache-2.0"
] | null | null | null | Thesis/availability/runRiakAvai.py | arnaudsjs/YCSB-1 | dc557d209244df72d68c9cb0a048d54e7bd72637 | [
"Apache-2.0"
] | null | null | null | Thesis/availability/runRiakAvai.py | arnaudsjs/YCSB-1 | dc557d209244df72d68c9cb0a048d54e7bd72637 | [
"Apache-2.0"
] | null | null | null | #!/bin/python
import sys;
from Thesis.cluster.RiakCluster import RiakCluster;
from Thesis.availability.availabilityBenchmark import runAvailabilityBenchmark
NORMAL_BINDING = 'riak';
CONSISTENCY_BINDING = 'riak_consistency';
IPS_IN_CLUSTER = ['172.16.33.14', '172.16.33.15', '172.16.33.16', '172.16.33.17', '172.16.33.... | 36.222222 | 166 | 0.68635 | 138 | 1,304 | 6.42029 | 0.492754 | 0.071106 | 0.039503 | 0.027088 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05042 | 0.178681 | 1,304 | 36 | 167 | 36.222222 | 0.776844 | 0.009202 | 0 | 0 | 0 | 0.035714 | 0.182663 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.107143 | null | null | 0.107143 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
92bd667c315f3e7161532ced7aa8772d0be1becf | 2,189 | py | Python | cs2quiz1.py | suay1936/suay1936-cmis-cs2 | 2edd92f456e44f5e015c87256c356ed407b1053a | [
"CC0-1.0"
] | null | null | null | cs2quiz1.py | suay1936/suay1936-cmis-cs2 | 2edd92f456e44f5e015c87256c356ed407b1053a | [
"CC0-1.0"
] | null | null | null | cs2quiz1.py | suay1936/suay1936-cmis-cs2 | 2edd92f456e44f5e015c87256c356ed407b1053a | [
"CC0-1.0"
] | null | null | null | #Part 1:Terminology (13/15)
#Part 2:Programming (2/25)
#Total: (15
/40)
#Part 1: Terminology (15 points)
#1 1pt) What is the symbol "=" used for? (0)
# It is used to indicate that something is equal (the same) to the other.
#
#
#2 3pts) Write a technical definition for 'function' (3)
# A function is an unambiguous st... | 29.186667 | 182 | 0.675194 | 362 | 2,189 | 4.066298 | 0.422652 | 0.024457 | 0.034647 | 0.019022 | 0.027174 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040165 | 0.226587 | 2,189 | 74 | 183 | 29.581081 | 0.829297 | 0 | 0 | 0.1875 | 0 | 0 | 0.033784 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.0625 | null | null | 0.1875 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
92c2e842608fe3152cb2f17dcef131f665bf8925 | 31,275 | py | Python | deps/mozjs/js/xpconnect/src/dombindingsgen.py | zpao/spidernode | 843d5b5e9be55ce447fd03127aeeb2c7728ae168 | [
"MIT"
] | 48 | 2015-01-09T20:39:35.000Z | 2021-12-21T21:17:52.000Z | deps/mozjs/js/xpconnect/src/dombindingsgen.py | ninja1002/spidernode | ada8fc559bd2c047a6e52c78af9d27ab273c87d5 | [
"MIT"
] | 2 | 2016-02-05T10:27:37.000Z | 2019-01-22T16:22:51.000Z | deps/mozjs/js/xpconnect/src/dombindingsgen.py | ninja1002/spidernode | ada8fc559bd2c047a6e52c78af9d27ab273c87d5 | [
"MIT"
] | 8 | 2015-01-12T17:14:36.000Z | 2018-09-15T14:10:27.000Z | #!/usr/bin/env/python
# ***** BEGIN LICENSE BLOCK *****
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
#
# The contents of this file are subject to the Mozilla Public License Version
# 1.1 (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
# http://www.mozil... | 38.611111 | 181 | 0.587306 | 3,273 | 31,275 | 5.569508 | 0.175985 | 0.00757 | 0.002962 | 0.013166 | 0.197926 | 0.121949 | 0.091996 | 0.064951 | 0.056229 | 0.046794 | 0 | 0.002269 | 0.281183 | 31,275 | 809 | 182 | 38.658838 | 0.808594 | 0.078114 | 0 | 0.258015 | 0 | 0.012214 | 0.250591 | 0.069954 | 0 | 0 | 0 | 0 | 0.015267 | 0 | null | null | 0 | 0.00916 | null | null | 0.00458 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
92c62c9872a85748d49b594eb75587e8d2eb54a4 | 23,608 | py | Python | watson_developer_cloud/watson_service.py | aorumbayev/python-sdk | 8cd3f62b0b0dfe2508738f61e0b07e843edb414f | [
"Apache-2.0"
] | null | null | null | watson_developer_cloud/watson_service.py | aorumbayev/python-sdk | 8cd3f62b0b0dfe2508738f61e0b07e843edb414f | [
"Apache-2.0"
] | null | null | null | watson_developer_cloud/watson_service.py | aorumbayev/python-sdk | 8cd3f62b0b0dfe2508738f61e0b07e843edb414f | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
# Copyright 2017 IBM All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable... | 40.14966 | 263 | 0.638343 | 2,890 | 23,608 | 5.006228 | 0.139446 | 0.019284 | 0.01493 | 0.025159 | 0.303014 | 0.228643 | 0.194291 | 0.161667 | 0.145079 | 0.111004 | 0 | 0.003897 | 0.282701 | 23,608 | 587 | 264 | 40.218058 | 0.850478 | 0.13758 | 0 | 0.22439 | 0 | 0.002439 | 0.10833 | 0.006308 | 0 | 0 | 0 | 0 | 0 | 1 | 0.092683 | false | 0.065854 | 0.043902 | 0.014634 | 0.239024 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
92d06b7cd75308e040a9c170de50bc085e5f5ca4 | 780 | py | Python | test/test_consensus_no_test_and_set.py | stavros7167/distributed_protocol_completion | ecda8f447b50795c26c837b91e2d27e47bf435af | [
"MIT"
] | null | null | null | test/test_consensus_no_test_and_set.py | stavros7167/distributed_protocol_completion | ecda8f447b50795c26c837b91e2d27e47bf435af | [
"MIT"
] | null | null | null | test/test_consensus_no_test_and_set.py | stavros7167/distributed_protocol_completion | ecda8f447b50795c26c837b91e2d27e47bf435af | [
"MIT"
] | null | null | null | import cegis
import examples.consensus_no_test_and_set
def test_complete_consensus_prefer0read0prefer1read1_with_wait_freedom():
consensus = examples.consensus_no_test_and_set.consensus_prefer0read0prefer1read1()
solution, _ = cegis.synthesize(consensus, wait_freedom=True, check_local_deadlocks=True)
asse... | 45.882353 | 113 | 0.842308 | 93 | 780 | 6.569892 | 0.376344 | 0.270049 | 0.124386 | 0.150573 | 0.679214 | 0.522095 | 0.474632 | 0.474632 | 0.373159 | 0.373159 | 0 | 0.028289 | 0.09359 | 780 | 16 | 114 | 48.75 | 0.835926 | 0 | 0 | 0.166667 | 0 | 0 | 0.008974 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.333333 | 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 |
92d0f6639fd4aaa2a5815a5a82b5dffc3279b15d | 6,573 | py | Python | cover2cover.py | antimatt3r/cover2cover | 704ed26897d22936c4772750ef4905f5134f601e | [
"MIT"
] | null | null | null | cover2cover.py | antimatt3r/cover2cover | 704ed26897d22936c4772750ef4905f5134f601e | [
"MIT"
] | null | null | null | cover2cover.py | antimatt3r/cover2cover | 704ed26897d22936c4772750ef4905f5134f601e | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import sys
import datetime
import xml.etree.ElementTree as ET
import re
import os.path
# branch-rate="0.0" complexity="0.0" line-rate="1.0"
# branch="true" hits="1" number="86"
def find_lines(j_package, filename):
"""Return all <line> elements for a given source file in a package."""
lin... | 35.722826 | 110 | 0.618439 | 858 | 6,573 | 4.583916 | 0.203963 | 0.018307 | 0.014238 | 0.010679 | 0.114925 | 0.056954 | 0.022883 | 0.022883 | 0.022883 | 0.022883 | 0 | 0.009383 | 0.237943 | 6,573 | 183 | 111 | 35.918033 | 0.775804 | 0.024951 | 0 | 0.035714 | 0 | 0 | 0.100244 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.035714 | null | null | 0.021429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
92e1b7877f63aa85a2b3452591796791537ab496 | 920 | py | Python | tests/ProfileTest.py | gsarma/PyOpenWorm | 477ae0b5453109785d9711f1e270510681d9585f | [
"MIT"
] | null | null | null | tests/ProfileTest.py | gsarma/PyOpenWorm | 477ae0b5453109785d9711f1e270510681d9585f | [
"MIT"
] | 1 | 2015-05-23T19:26:57.000Z | 2015-05-26T02:04:43.000Z | tests/ProfileTest.py | gsarma/PyOpenWorm | 477ae0b5453109785d9711f1e270510681d9585f | [
"MIT"
] | 1 | 2015-06-21T17:34:15.000Z | 2015-06-21T17:34:15.000Z | """
Not actually tests, but benchmarks.
"""
from __future__ import print_function
from PyOpenWorm.neuron import Neuron
from PyOpenWorm.connection import Connection
from PyOpenWorm import connect, disconnect
def setup():
connect(configFile='tests/data_integrity_test.conf')
def teardown():
disconnect()
def ... | 20 | 56 | 0.659783 | 112 | 920 | 5.258929 | 0.419643 | 0.047538 | 0.03056 | 0.056027 | 0.207131 | 0.207131 | 0.207131 | 0.207131 | 0.207131 | 0.207131 | 0 | 0.013966 | 0.221739 | 920 | 45 | 57 | 20.444444 | 0.808659 | 0.125 | 0 | 0.25 | 0 | 0 | 0.057366 | 0.039113 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.166667 | 0 | 0.416667 | 0.041667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
92e49351f2e87cd251a4a0d28b1a03aec951667b | 7,260 | py | Python | gfwlist2pac/main.py | zwzmzd/gfwlist2pac | e782c10b3bc9c2c2a7989b2972020c719ee68aa6 | [
"MIT"
] | null | null | null | gfwlist2pac/main.py | zwzmzd/gfwlist2pac | e782c10b3bc9c2c2a7989b2972020c719ee68aa6 | [
"MIT"
] | null | null | null | gfwlist2pac/main.py | zwzmzd/gfwlist2pac | e782c10b3bc9c2c2a7989b2972020c719ee68aa6 | [
"MIT"
] | null | null | null | #!/usr/bin/python
# -*- coding: utf-8 -*-
import pkgutil
import os
import sys
import urlparse
import json
import datetime
import logging
import urllib2
from argparse import ArgumentParser
# import vendor files
cdir = os.path.dirname(os.path.abspath(__file__))
sys.path.insert(0, os.path.join(cdir, 'vendor'))
# for pkg... | 32.556054 | 84 | 0.565978 | 827 | 7,260 | 4.800484 | 0.244256 | 0.030227 | 0.007557 | 0.009068 | 0.172292 | 0.112594 | 0.036272 | 0.036272 | 0.023174 | 0.023174 | 0 | 0.018711 | 0.322727 | 7,260 | 222 | 85 | 32.702703 | 0.788692 | 0.06584 | 0 | 0.153409 | 0 | 0.005682 | 0.109666 | 0.003104 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.0625 | null | null | 0.017045 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
92e821bddeb93431ba8a0f0618c06994922683ac | 3,069 | py | Python | bot/utils/parser.py | shiva20991/drivesearch | bfb1ed8d70705fa3943339b143cf38f97757f154 | [
"MIT"
] | 9 | 2022-02-22T05:06:55.000Z | 2022-03-02T03:40:27.000Z | bot/utils/parser.py | shiva20991/drivesearch | bfb1ed8d70705fa3943339b143cf38f97757f154 | [
"MIT"
] | 1 | 2022-02-21T06:45:34.000Z | 2022-02-21T06:45:34.000Z | bot/utils/parser.py | shiva20991/drivesearch | bfb1ed8d70705fa3943339b143cf38f97757f154 | [
"MIT"
] | 3 | 2022-02-27T13:04:55.000Z | 2022-03-17T21:04:57.000Z | import re
import base64
import requests
from lxml import etree
from urllib.parse import urlparse
from bot import APPDRIVE_EMAIL, APPDRIVE_PASS, GDTOT_CRYPT
account = {
'email': APPDRIVE_EMAIL,
'passwd': APPDRIVE_PASS
}
def account_login(client, url, email, password):
data = {
'email': email,
... | 34.1 | 144 | 0.6116 | 414 | 3,069 | 4.413043 | 0.342995 | 0.087575 | 0.049261 | 0.032841 | 0.127531 | 0.094143 | 0.039409 | 0 | 0 | 0 | 0 | 0.018657 | 0.214076 | 3,069 | 90 | 145 | 34.1 | 0.738806 | 0.00391 | 0 | 0.121951 | 0 | 0.02439 | 0.247055 | 0.022906 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060976 | false | 0.060976 | 0.073171 | 0 | 0.182927 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
92e9013a70ea9e1cc54c8fe19058b7bbab85cc94 | 3,676 | py | Python | S4/S4 Library/simulation/interactions/looping_object_situation_start_immediate_interaction.py | NeonOcean/Environment | ca658cf66e8fd6866c22a4a0136d415705b36d26 | [
"CC-BY-4.0"
] | 1 | 2021-05-20T19:33:37.000Z | 2021-05-20T19:33:37.000Z | S4/S4 Library/simulation/interactions/looping_object_situation_start_immediate_interaction.py | NeonOcean/Environment | ca658cf66e8fd6866c22a4a0136d415705b36d26 | [
"CC-BY-4.0"
] | null | null | null | S4/S4 Library/simulation/interactions/looping_object_situation_start_immediate_interaction.py | NeonOcean/Environment | ca658cf66e8fd6866c22a4a0136d415705b36d26 | [
"CC-BY-4.0"
] | null | null | null | from interactions.aop import AffordanceObjectPair
from interactions.base.basic import BasicExtraVariant
from interactions.base.super_interaction import SuperInteraction
from sims4.localization import TunableLocalizedStringFactory
from sims4.tuning.tunable import TunableTuple, TunableReference, OptionalTunable, TunableP... | 85.488372 | 1,704 | 0.694777 | 410 | 3,676 | 6.05122 | 0.3 | 0.048368 | 0.036276 | 0.012898 | 0.141072 | 0.087868 | 0.087868 | 0.087868 | 0.087868 | 0.045143 | 0 | 0.002836 | 0.23259 | 3,676 | 42 | 1,705 | 87.52381 | 0.876639 | 0 | 0 | 0.111111 | 0 | 0.111111 | 0.329706 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.138889 | false | 0.027778 | 0.277778 | 0 | 0.583333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
92e9b26497aa217f0f2d8cd4d865d249803a07dc | 18,320 | py | Python | ngsutils/fastq/filter.py | bgruening/ngsutils | 417e90dc1918fb553dd84990f2c54bd8cea8f44d | [
"BSD-3-Clause"
] | 57 | 2015-03-09T01:26:45.000Z | 2022-02-22T07:26:01.000Z | ngsutils/fastq/filter.py | bgruening/ngsutils | 417e90dc1918fb553dd84990f2c54bd8cea8f44d | [
"BSD-3-Clause"
] | 33 | 2015-02-03T23:24:46.000Z | 2022-03-16T20:08:10.000Z | ngsutils/fastq/filter.py | bgruening/ngsutils | 417e90dc1918fb553dd84990f2c54bd8cea8f44d | [
"BSD-3-Clause"
] | 33 | 2015-01-18T16:47:47.000Z | 2022-02-22T07:28:09.000Z | #!/usr/bin/env python
## category General
## desc Filter out reads using a number of metrics
'''
Filter reads in a FASTQ file. The filtering criteria can be applied as a
batch, allowing you to use more than one criterion at a time.
'''
import sys
import os
from ngsutils.fastq import FASTQ
def fastq_filter(filter_ch... | 32.140351 | 146 | 0.493013 | 2,092 | 18,320 | 4.236616 | 0.122849 | 0.019181 | 0.042649 | 0.045019 | 0.510775 | 0.480086 | 0.445899 | 0.437549 | 0.377863 | 0.325962 | 0 | 0.010163 | 0.398472 | 18,320 | 569 | 147 | 32.196837 | 0.794102 | 0.022871 | 0 | 0.458427 | 0 | 0.004494 | 0.140627 | 0.003833 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.006742 | 0.006742 | null | null | 0.004494 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
92eea9e42f0c1b7f3435a296e98a28f223825255 | 8,328 | py | Python | lib/googlecloudsdk/api_lib/compute/daisy_utils.py | bopopescu/Google-Cloud-SDK-1 | c4683bacb2f6192d8a816932e438a0493085469b | [
"Apache-2.0"
] | null | null | null | lib/googlecloudsdk/api_lib/compute/daisy_utils.py | bopopescu/Google-Cloud-SDK-1 | c4683bacb2f6192d8a816932e438a0493085469b | [
"Apache-2.0"
] | null | null | null | lib/googlecloudsdk/api_lib/compute/daisy_utils.py | bopopescu/Google-Cloud-SDK-1 | c4683bacb2f6192d8a816932e438a0493085469b | [
"Apache-2.0"
] | 1 | 2020-07-24T20:13:29.000Z | 2020-07-24T20:13:29.000Z | # Copyright 2017 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | 34.7 | 79 | 0.722743 | 1,061 | 8,328 | 5.555137 | 0.30443 | 0.042755 | 0.022396 | 0.023753 | 0.097557 | 0.071429 | 0.031727 | 0.018154 | 0.012894 | 0 | 0 | 0.003689 | 0.186359 | 8,328 | 239 | 80 | 34.845188 | 0.866145 | 0.087896 | 0 | 0.02963 | 0 | 0 | 0.172745 | 0.031499 | 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 |
92f5edd8bc5234cdf54cf4433b48ae4073f22944 | 6,398 | py | Python | rlo/paper/scripts/mnist_result.py | tomjaguarpaw/knossos-ksc | 8fa75e67c0db8f632b135379740051cd10ff31f2 | [
"MIT"
] | 31 | 2021-09-09T16:09:55.000Z | 2022-02-20T02:15:19.000Z | rlo/paper/scripts/mnist_result.py | tomjaguarpaw/knossos-ksc | 8fa75e67c0db8f632b135379740051cd10ff31f2 | [
"MIT"
] | 40 | 2021-08-06T14:30:08.000Z | 2022-01-19T08:49:52.000Z | rlo/paper/scripts/mnist_result.py | tomjaguarpaw/knossos-ksc | 8fa75e67c0db8f632b135379740051cd10ff31f2 | [
"MIT"
] | 5 | 2021-08-06T11:20:31.000Z | 2022-01-07T19:39:40.000Z | # fmt: off
cost_sequence = [
102267214109.0,
102267223999.0,
102269202999.00002,
102566201999.00002,
132365101999.0,
102475101999.00002,
102465101999.00002,
132465101999.0,
162165001999.0,
162565001999.0,
162965001999.0,
163965001999.0,
163955001999.0,
13406500199... | 41.277419 | 92 | 0.414661 | 719 | 6,398 | 3.666203 | 0.133519 | 0.011381 | 0.031866 | 0.018209 | 0.617602 | 0.580804 | 0.554628 | 0.492413 | 0.475721 | 0.475721 | 0 | 0.193812 | 0.46452 | 6,398 | 154 | 93 | 41.545455 | 0.575598 | 0.00125 | 0 | 0.493421 | 0 | 0.019737 | 0.866468 | 0.003444 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
92f882351c1702231d9b872d62cee6354eabcb9a | 313 | py | Python | thread.py | lwiklendt/lsw | ae1e92a11e0eff079d24735b81e5c34057bd2dd7 | [
"MIT"
] | null | null | null | thread.py | lwiklendt/lsw | ae1e92a11e0eff079d24735b81e5c34057bd2dd7 | [
"MIT"
] | null | null | null | thread.py | lwiklendt/lsw | ae1e92a11e0eff079d24735b81e5c34057bd2dd7 | [
"MIT"
] | null | null | null | from concurrent import futures
import multiprocessing
def parexec(exec_func, nblocks, nthreads=None):
if nthreads is None:
nthreads = multiprocessing.cpu_count()
with futures.ThreadPoolExecutor(nthreads) as executor:
futures.wait([executor.submit(exec_func, i) for i in range(nblocks)])
| 31.3 | 77 | 0.747604 | 39 | 313 | 5.923077 | 0.666667 | 0.069264 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.169329 | 313 | 9 | 78 | 34.777778 | 0.888462 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
92fe1b1cd9ace283d3b062a147833841789bf2c0 | 5,545 | py | Python | tests/unit/modules/test_haproxyconn.py | byteskeptical/salt | 637fe0b04f38b2274191b005d73b3c6707d7f400 | [
"Apache-2.0"
] | 5 | 2018-05-01T20:51:14.000Z | 2021-11-09T05:43:00.000Z | tests/unit/modules/test_haproxyconn.py | byteskeptical/salt | 637fe0b04f38b2274191b005d73b3c6707d7f400 | [
"Apache-2.0"
] | 86 | 2017-01-27T11:54:46.000Z | 2020-05-20T06:25:26.000Z | tests/unit/modules/test_haproxyconn.py | byteskeptical/salt | 637fe0b04f38b2274191b005d73b3c6707d7f400 | [
"Apache-2.0"
] | 11 | 2017-01-26T19:36:29.000Z | 2021-12-11T07:54:16.000Z | # -*- coding: utf-8 -*-
'''
:codeauthor: Jayesh Kariya <jayeshk@saltstack.com>
'''
# Import Python Libs
from __future__ import absolute_import, print_function, unicode_literals
# Import Salt Testing Libs
from tests.support.mixins import LoaderModuleMockMixin
from tests.support.unit import TestCase, skipIf
from te... | 25.552995 | 81 | 0.566817 | 572 | 5,545 | 5.346154 | 0.229021 | 0.027469 | 0.065402 | 0.038914 | 0.252126 | 0.181164 | 0.129496 | 0.116416 | 0.116416 | 0 | 0 | 0.012003 | 0.323895 | 5,545 | 216 | 82 | 25.671296 | 0.803681 | 0.192786 | 0 | 0.135417 | 0 | 0 | 0.124842 | 0 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0.239583 | false | 0 | 0.052083 | 0.010417 | 0.416667 | 0.010417 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
13047e9436f1053d98a51fc575d14185c215fdaa | 2,065 | py | Python | atm_analytics/companies/migrations/0003_auto_20160309_2015.py | ifreddyrondon/atm-analytics | 654ba8993b05848cfb4a18ff2f6e4ee44ba7c246 | [
"MIT"
] | null | null | null | atm_analytics/companies/migrations/0003_auto_20160309_2015.py | ifreddyrondon/atm-analytics | 654ba8993b05848cfb4a18ff2f6e4ee44ba7c246 | [
"MIT"
] | 5 | 2020-06-05T18:26:14.000Z | 2022-03-11T23:22:19.000Z | atm_analytics/companies/migrations/0003_auto_20160309_2015.py | ifreddyrondon/atm-analytics | 654ba8993b05848cfb4a18ff2f6e4ee44ba7c246 | [
"MIT"
] | 1 | 2019-04-15T23:01:14.000Z | 2019-04-15T23:01:14.000Z | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('companies', '0002_atmrepositionevent'),
]
operations = [
migrations.AlterModelOptions(
name='bank',
... | 33.306452 | 99 | 0.57724 | 178 | 2,065 | 6.516854 | 0.269663 | 0.094828 | 0.150862 | 0.175 | 0.618103 | 0.483621 | 0.294828 | 0.232759 | 0.232759 | 0.232759 | 0 | 0.011676 | 0.294915 | 2,065 | 61 | 100 | 33.852459 | 0.785027 | 0.010169 | 0 | 0.6 | 0 | 0 | 0.169931 | 0.011263 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.036364 | 0 | 0.090909 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
130bcc6115205da5f5a778ae880b7f9e8117b3f5 | 667 | py | Python | boto3_exceptions/snowball.py | siteshen/boto3_exceptions | d6174c2577c9d4b17a09a89cd0e4bd1fe555b26b | [
"MIT"
] | 2 | 2021-06-22T00:00:35.000Z | 2021-07-15T03:25:52.000Z | boto3_exceptions/snowball.py | siteshen/boto3_exceptions | d6174c2577c9d4b17a09a89cd0e4bd1fe555b26b | [
"MIT"
] | null | null | null | boto3_exceptions/snowball.py | siteshen/boto3_exceptions | d6174c2577c9d4b17a09a89cd0e4bd1fe555b26b | [
"MIT"
] | null | null | null | import boto3
exceptions = boto3.client('snowball').exceptions
ClusterLimitExceededException = exceptions.ClusterLimitExceededException
Ec2RequestFailedException = exceptions.Ec2RequestFailedException
InvalidAddressException = exceptions.InvalidAddressException
InvalidInputCombinationException = exceptions.InvalidInpu... | 47.642857 | 78 | 0.911544 | 34 | 667 | 17.882353 | 0.411765 | 0.128289 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006319 | 0.050975 | 667 | 13 | 79 | 51.307692 | 0.954186 | 0 | 0 | 0 | 0 | 0 | 0.011994 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
130fcae7494537efebd8c185d0d05635869e6eeb | 3,666 | py | Python | apps/jobsub/src/jobsub/forms/interface.py | civascu/hue | 82f2de44789ff5a981ed725175bae7944832d1e9 | [
"Apache-2.0"
] | 2 | 2021-04-27T03:57:00.000Z | 2021-06-18T09:39:58.000Z | apps/jobsub/src/jobsub/forms/interface.py | civascu/hue | 82f2de44789ff5a981ed725175bae7944832d1e9 | [
"Apache-2.0"
] | null | null | null | apps/jobsub/src/jobsub/forms/interface.py | civascu/hue | 82f2de44789ff5a981ed725175bae7944832d1e9 | [
"Apache-2.0"
] | 2 | 2021-09-06T18:44:45.000Z | 2022-02-24T04:10:10.000Z | #!/usr/bin/env python
# Licensed to Cloudera, Inc. under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. Cloudera, Inc. licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you ma... | 31.067797 | 95 | 0.691217 | 456 | 3,666 | 5.407895 | 0.438596 | 0.024331 | 0.060827 | 0.012976 | 0.088402 | 0.025142 | 0 | 0 | 0 | 0 | 0 | 0.002822 | 0.226678 | 3,666 | 117 | 96 | 31.333333 | 0.867019 | 0.65521 | 0 | 0.2 | 0 | 0 | 0.075259 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.233333 | false | 0.033333 | 0.033333 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
13113777a94462851f1b9ab29f6a0d751839a843 | 899 | py | Python | tests/spotify_wrapper_unittests.py | prakharbahuguna/PyPly | 3e7c6df5282781f5e959e53d785d180d6bcb89bc | [
"MIT"
] | 1 | 2018-10-30T10:51:11.000Z | 2018-10-30T10:51:11.000Z | tests/spotify_wrapper_unittests.py | prakharbahuguna/PyPly | 3e7c6df5282781f5e959e53d785d180d6bcb89bc | [
"MIT"
] | null | null | null | tests/spotify_wrapper_unittests.py | prakharbahuguna/PyPly | 3e7c6df5282781f5e959e53d785d180d6bcb89bc | [
"MIT"
] | null | null | null | import unittest
import sys
sys.path.append('../src/')
import spotify_wrapper
__author__ = 'prakhar'
test_id = 'spotify:track:546QTayX6j4GcZsfTRrVnL'
test_name = 'Remember The Name (feat. Styles Of Beyond)'
test_artist = 'Fort Minor'
class SpotifyWrapperTestCase(unittest.TestCase):
def setUp(self):
spoti... | 27.242424 | 69 | 0.7297 | 111 | 899 | 5.531532 | 0.351351 | 0.18241 | 0.123779 | 0.112378 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006623 | 0.160178 | 899 | 33 | 70 | 27.242424 | 0.806623 | 0 | 0 | 0 | 0 | 0 | 0.136667 | 0.04 | 0 | 0 | 0 | 0 | 0.217391 | 1 | 0.217391 | false | 0 | 0.130435 | 0 | 0.391304 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
1312fdf2d49e8de30f44b9822d3522372a295c40 | 1,523 | py | Python | tests/providers/test_profile.py | jacksmith15/faker | bc5dda1983e4d055aa2698ccf0806a462cb8370e | [
"MIT"
] | 12,077 | 2015-01-01T18:30:07.000Z | 2022-03-31T23:22:01.000Z | tests/providers/test_profile.py | jacksmith15/faker | bc5dda1983e4d055aa2698ccf0806a462cb8370e | [
"MIT"
] | 1,306 | 2015-01-03T05:18:55.000Z | 2022-03-31T02:43:04.000Z | tests/providers/test_profile.py | jacksmith15/faker | bc5dda1983e4d055aa2698ccf0806a462cb8370e | [
"MIT"
] | 1,855 | 2015-01-08T14:20:10.000Z | 2022-03-25T17:23:32.000Z | import unittest
from faker import Faker
class TestProfileProvider(unittest.TestCase):
"""Test profile provider methods"""
num_samples = 10
def setUp(self):
self.fake = Faker()
Faker.seed(0)
def test_simple_profile(self):
for _ in range(self.num_samples):
profile... | 29.862745 | 59 | 0.571898 | 179 | 1,523 | 4.798883 | 0.22905 | 0.140861 | 0.157159 | 0.153667 | 0.700815 | 0.625146 | 0.593714 | 0.495925 | 0.400466 | 0.400466 | 0 | 0.007366 | 0.286934 | 1,523 | 50 | 60 | 30.46 | 0.78361 | 0.019041 | 0 | 0.378378 | 0 | 0 | 0.053763 | 0 | 0 | 0 | 0 | 0 | 0.459459 | 1 | 0.081081 | false | 0 | 0.054054 | 0 | 0.189189 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
13142d5c608418e13a8831331fc2d7acf69317cf | 4,873 | py | Python | common/pixmap.py | smmalmansoori/bub-n-bros | 5d1db7192edcf981a988fa17f008af3f50611822 | [
"MIT"
] | 3 | 2021-02-04T09:18:45.000Z | 2021-03-03T02:04:15.000Z | common/pixmap.py | smmalmansoori/bub-n-bros | 5d1db7192edcf981a988fa17f008af3f50611822 | [
"MIT"
] | null | null | null | common/pixmap.py | smmalmansoori/bub-n-bros | 5d1db7192edcf981a988fa17f008af3f50611822 | [
"MIT"
] | 1 | 2022-02-03T09:29:45.000Z | 2022-02-03T09:29:45.000Z | from __future__ import generators
import cStringIO
def decodepixmap(data):
f = cStringIO.StringIO(data)
sig = f.readline().strip()
assert sig == "P6"
while 1:
line = f.readline().strip()
if not line.startswith('#'):
break
wh = line.split()
w, h = map(int, wh)
sig... | 29.713415 | 80 | 0.437718 | 699 | 4,873 | 2.949928 | 0.178827 | 0.030068 | 0.026188 | 0.021339 | 0.373909 | 0.318138 | 0.256062 | 0.222599 | 0.185257 | 0.185257 | 0 | 0.087359 | 0.379848 | 4,873 | 163 | 81 | 29.895706 | 0.59497 | 0.012518 | 0 | 0.275862 | 0 | 0 | 0.020171 | 0 | 0 | 0 | 0 | 0 | 0.027586 | 0 | null | null | 0 | 0.013793 | 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 |
1314bc0bdde3b033c106381511a7f0480b38ecf2 | 812 | py | Python | site_settings/migrations/0001_initial.py | Lisgevan/Wagtail_Sevendays | ba2e0f0b65fc20a3f5b847eb4cfcef9f82b0e9cd | [
"MIT"
] | null | null | null | site_settings/migrations/0001_initial.py | Lisgevan/Wagtail_Sevendays | ba2e0f0b65fc20a3f5b847eb4cfcef9f82b0e9cd | [
"MIT"
] | null | null | null | site_settings/migrations/0001_initial.py | Lisgevan/Wagtail_Sevendays | ba2e0f0b65fc20a3f5b847eb4cfcef9f82b0e9cd | [
"MIT"
] | null | null | null | # Generated by Django 3.2.4 on 2021-06-10 07:43
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('wagtailcore', '0062_comment_models_and_pagesubscription'),
]
operations = [
migrations.... | 29 | 131 | 0.602217 | 80 | 812 | 6 | 0.6875 | 0.05 | 0.058333 | 0.091667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037415 | 0.275862 | 812 | 27 | 132 | 30.074074 | 0.778912 | 0.055419 | 0 | 0 | 1 | 0 | 0.145098 | 0.052288 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.3 | 0 | 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 |
131de3423a326e121f034d6a6b0281df8712e150 | 256 | py | Python | setup.py | timhunderwood/mandelbrot-plot | 45750a1528797a49c03d7c88f155725ae47c9dad | [
"MIT"
] | null | null | null | setup.py | timhunderwood/mandelbrot-plot | 45750a1528797a49c03d7c88f155725ae47c9dad | [
"MIT"
] | null | null | null | setup.py | timhunderwood/mandelbrot-plot | 45750a1528797a49c03d7c88f155725ae47c9dad | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from distutils.core import setup
setup(
name="mandelbrot",
version="1.0",
description="Interactive plotting of the mandelbrot set using chaco",
author="Tim",
url="",
packages=[],
python_requires="3.6",
)
| 18.285714 | 73 | 0.648438 | 32 | 256 | 5.15625 | 0.90625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019608 | 0.203125 | 256 | 13 | 74 | 19.692308 | 0.789216 | 0.078125 | 0 | 0 | 0 | 0 | 0.310638 | 0 | 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 |
132077f7809fe698c22918c81ab941499b6921d7 | 2,139 | py | Python | weather.py | nicolaskyejo/arduino_lcd | 93f09e946350a38ef7d216f593d7d4ebb3300cf6 | [
"MIT"
] | null | null | null | weather.py | nicolaskyejo/arduino_lcd | 93f09e946350a38ef7d216f593d7d4ebb3300cf6 | [
"MIT"
] | null | null | null | weather.py | nicolaskyejo/arduino_lcd | 93f09e946350a38ef7d216f593d7d4ebb3300cf6 | [
"MIT"
] | null | null | null | import serial
import requests
import bs4
import time
PORT = 'COM3' # on Windows
URL = 'https://supersaa.fi' # default setting is 'Helsinki', to change location open url in web browser, change location and send cookies
USER_AGENT = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chr... | 43.653061 | 190 | 0.683964 | 300 | 2,139 | 4.73 | 0.476667 | 0.038055 | 0.063425 | 0.046512 | 0.155039 | 0.060606 | 0.042283 | 0 | 0 | 0 | 0 | 0.022753 | 0.178121 | 2,139 | 49 | 191 | 43.653061 | 0.783845 | 0.133707 | 0 | 0 | 0 | 0.057143 | 0.352654 | 0.07584 | 0 | 0 | 0 | 0.020408 | 0.028571 | 1 | 0.057143 | false | 0 | 0.114286 | 0 | 0.228571 | 0.028571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
1321cf22ceb3a29f8971d82ec6d3ebc8b967f389 | 2,065 | py | Python | fiftyone/zoo/base.py | brimoor/fiftyone | 237d288955415575f885a3e58accf04d38bd1856 | [
"Apache-2.0"
] | 1 | 2020-10-09T05:16:49.000Z | 2020-10-09T05:16:49.000Z | fiftyone/zoo/base.py | brimoor/fiftyone | 237d288955415575f885a3e58accf04d38bd1856 | [
"Apache-2.0"
] | null | null | null | fiftyone/zoo/base.py | brimoor/fiftyone | 237d288955415575f885a3e58accf04d38bd1856 | [
"Apache-2.0"
] | null | null | null | """
FiftyOne Zoo Datasets provided natively by the library.
| Copyright 2017-2020, Voxel51, Inc.
| `voxel51.com <https://voxel51.com/>`_
|
"""
import logging
import os
import shutil
import eta.core.serial as etas
import eta.core.utils as etau
import eta.core.web as etaw
import fiftyone.types as fot
import fiftyone.u... | 25.8125 | 79 | 0.707022 | 268 | 2,065 | 5.261194 | 0.451493 | 0.028369 | 0.02766 | 0.024113 | 0.028369 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016413 | 0.20339 | 2,065 | 79 | 80 | 26.139241 | 0.840729 | 0.249879 | 0 | 0.051282 | 0 | 0 | 0.087766 | 0.021941 | 0 | 0 | 0 | 0 | 0 | 1 | 0.102564 | false | 0.025641 | 0.282051 | 0.051282 | 0.564103 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
132e2ef193a882a9361b63e85a33f6f7d1d72018 | 4,098 | py | Python | tests/python/gaia-ui-tests/gaiatest/apps/phone/regions/keypad.py | pdehaan/gaia | 0ea959d81cefa0128157ec3ff0e2b7bdd29afacf | [
"Apache-2.0"
] | 1 | 2015-03-02T04:03:00.000Z | 2015-03-02T04:03:00.000Z | tests/python/gaia-ui-tests/gaiatest/apps/phone/regions/keypad.py | caseyyee/gaia | fa82433dda06e9ae7d35a1f74cc16f4dd72cc514 | [
"Apache-2.0"
] | null | null | null | tests/python/gaia-ui-tests/gaiatest/apps/phone/regions/keypad.py | caseyyee/gaia | fa82433dda06e9ae7d35a1f74cc16f4dd72cc514 | [
"Apache-2.0"
] | null | null | null | # This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
import time
from marionette.by import By
from marionette.marionette import Actions
from gaiatest.apps.base import Base... | 40.574257 | 121 | 0.72694 | 550 | 4,098 | 5.08 | 0.238182 | 0.115247 | 0.070866 | 0.098425 | 0.426271 | 0.268074 | 0.232641 | 0.209377 | 0.129563 | 0.042233 | 0 | 0.002948 | 0.172279 | 4,098 | 100 | 122 | 40.98 | 0.820755 | 0.074915 | 0 | 0.1 | 0 | 0 | 0.097226 | 0.05469 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.1 | 0.042857 | 0.585714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
13300e449f4b7d451a5c93a10373b587c127785c | 832 | py | Python | tests/test_optimizers.py | AdrienCorenflos/blackjax | e3204e17d3833be73d6f703dbb33b68b1431e629 | [
"Apache-2.0"
] | null | null | null | tests/test_optimizers.py | AdrienCorenflos/blackjax | e3204e17d3833be73d6f703dbb33b68b1431e629 | [
"Apache-2.0"
] | null | null | null | tests/test_optimizers.py | AdrienCorenflos/blackjax | e3204e17d3833be73d6f703dbb33b68b1431e629 | [
"Apache-2.0"
] | null | null | null | import jax
import jax.numpy as jnp
import pytest
import blackjax.optimizers as optimizers
def test_dual_averaging():
"""We test the dual averaging algorithm by searching for the point that
minimizes the gradient of a simple function.
"""
# we need to wrap the gradient in a namedtuple as we optimize ... | 29.714286 | 78 | 0.682692 | 132 | 832 | 4.227273 | 0.515152 | 0.062724 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020472 | 0.236779 | 832 | 27 | 79 | 30.814815 | 0.858268 | 0.439904 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 1 | 0.076923 | false | 0 | 0.307692 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
133368366cf4991450b6f64a1a7970ca4d6881f7 | 2,399 | py | Python | services/controller/src/plz/controller/execution.py | neomatrix369/plz | 12f05a8d071e9c1976c444d34161530ffa73eeae | [
"MIT"
] | 1 | 2020-09-06T16:35:27.000Z | 2020-09-06T16:35:27.000Z | services/controller/src/plz/controller/execution.py | neomatrix369/plz | 12f05a8d071e9c1976c444d34161530ffa73eeae | [
"MIT"
] | null | null | null | services/controller/src/plz/controller/execution.py | neomatrix369/plz | 12f05a8d071e9c1976c444d34161530ffa73eeae | [
"MIT"
] | null | null | null | from abc import ABC
from plz.controller.api.exceptions import ExecutionNotFoundException
from plz.controller.execution_metadata import convert_measures_to_dict
from plz.controller.instances.instance_base import InstanceProvider
from plz.controller.results import ResultsStorage
from plz.controller.results.results_base ... | 39.327869 | 78 | 0.717799 | 292 | 2,399 | 5.650685 | 0.342466 | 0.073333 | 0.051515 | 0.032727 | 0.030303 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.220925 | 2,399 | 60 | 79 | 39.983333 | 0.882825 | 0.220092 | 0 | 0 | 0 | 0 | 0.004299 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.184211 | false | 0 | 0.157895 | 0.026316 | 0.552632 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
13384e84711886f136c314cf82c56592d5e6e36d | 489 | py | Python | loans/migrations/0007_productconfig_status.py | prateekmohanty63/microfinance | 39839c0d378be4ccc40a9dde5dc38a10773a38a1 | [
"MIT"
] | 1 | 2022-02-25T18:39:44.000Z | 2022-02-25T18:39:44.000Z | loans/migrations/0007_productconfig_status.py | prateekmohanty63/microfinance | 39839c0d378be4ccc40a9dde5dc38a10773a38a1 | [
"MIT"
] | null | null | null | loans/migrations/0007_productconfig_status.py | prateekmohanty63/microfinance | 39839c0d378be4ccc40a9dde5dc38a10773a38a1 | [
"MIT"
] | null | null | null | # Generated by Django 3.1.4 on 2022-02-25 12:08
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('loans', '0006_auto_20220225_1035'),
]
operations = [
migrations.AddField(
model_name='productconfig',
name='status',... | 25.736842 | 150 | 0.605317 | 51 | 489 | 5.705882 | 0.784314 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.088949 | 0.241309 | 489 | 18 | 151 | 27.166667 | 0.695418 | 0.092025 | 0 | 0 | 1 | 0 | 0.214932 | 0.052036 | 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 |
133e76fb9ffa79e03f7de65d8fa2546277d15ec9 | 1,808 | py | Python | masters/droidapiminer_timeline.py | markansn/masters_project | f72a104c9922dc2044f0aa2cfdbe9e51f369cc34 | [
"BSD-3-Clause"
] | null | null | null | masters/droidapiminer_timeline.py | markansn/masters_project | f72a104c9922dc2044f0aa2cfdbe9e51f369cc34 | [
"BSD-3-Clause"
] | null | null | null | masters/droidapiminer_timeline.py | markansn/masters_project | f72a104c9922dc2044f0aa2cfdbe9e51f369cc34 | [
"BSD-3-Clause"
] | null | null | null | import datetime
import sys
from sklearn.ensemble import RandomForestClassifier
from sklearn.model_selection import StratifiedKFold
sys.path.append("..")
from sklearn.svm import LinearSVC
from sklearn import metrics as sklearn_metrics
from sklearn.feature_extraction.text import TfidfVectorizer as TF
from tesseract imp... | 26.588235 | 93 | 0.667588 | 248 | 1,808 | 4.745968 | 0.447581 | 0.065421 | 0.027188 | 0.042481 | 0.052676 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02964 | 0.216261 | 1,808 | 67 | 94 | 26.985075 | 0.800988 | 0.196903 | 0 | 0.051282 | 0 | 0 | 0.039611 | 0.027102 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025641 | false | 0 | 0.358974 | 0 | 0.384615 | 0.153846 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
133eb5050ca991ebc538c29952f65abf5a5354c2 | 609 | py | Python | cp1_1_08_vote_counter.py | kukgini/my-py | a8e9a7b47e2b58e2429b19e879a75ee5eba9f4e9 | [
"MIT"
] | null | null | null | cp1_1_08_vote_counter.py | kukgini/my-py | a8e9a7b47e2b58e2429b19e879a75ee5eba9f4e9 | [
"MIT"
] | null | null | null | cp1_1_08_vote_counter.py | kukgini/my-py | a8e9a7b47e2b58e2429b19e879a75ee5eba9f4e9 | [
"MIT"
] | null | null | null | def solution(n, votes):
vote_counter = [0 for i in range(n+1)]
# 각 후보가 몇 표를 받았는지 개수를 세는 것
for i in votes:
vote_counter[i] += 1
# 표의 수 중에서 최대
max_val = max(vote_counter)
print(f'vote_counter={vote_counter}, max_val={max_val}')
answer = []
for idx in range(1, n + 1):
if vot... | 32.052632 | 60 | 0.589491 | 105 | 609 | 3.238095 | 0.371429 | 0.226471 | 0.094118 | 0.094118 | 0.176471 | 0.176471 | 0 | 0 | 0 | 0 | 0 | 0.047826 | 0.244663 | 609 | 19 | 61 | 32.052632 | 0.691304 | 0.059113 | 0 | 0 | 0 | 0 | 0.241681 | 0.049037 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0 | 0 | 0.125 | 0.1875 | 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 |
13425ff7f115e69b939b204e4e69440eed378a05 | 19,658 | py | Python | dht_tracker/dht/_kdht.py | nascu/dht-tracker | b4cba9be8b4c3dc495d8df309c81d6bdbca98af0 | [
"Apache-2.0"
] | 5 | 2018-05-21T19:11:31.000Z | 2019-12-04T04:18:48.000Z | dht_tracker/dht/_kdht.py | nascu/dht-tracker | b4cba9be8b4c3dc495d8df309c81d6bdbca98af0 | [
"Apache-2.0"
] | null | null | null | dht_tracker/dht/_kdht.py | nascu/dht-tracker | b4cba9be8b4c3dc495d8df309c81d6bdbca98af0 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
#coding:utf-8
"""
对http://www.bittorrent.org/beps/bep_0005.html中DHT Queries的实现
使用链表优化了挑战-响应模式,使每一次的请求都对应唯一一个tid,可以对每一个收到的信息进行真实性检测
使用任务队列对任务的调控、以及流量的控制
通过Pipe实现web对任务的控制
NormalDHT -> 正常模式
DHTSpider -> 爬虫模式
"""
import gevent
import logging
from random import choice
from struct import unpack
from s... | 29.784848 | 133 | 0.53449 | 2,121 | 19,658 | 4.75389 | 0.184347 | 0.019439 | 0.015472 | 0.008331 | 0.368144 | 0.298225 | 0.268769 | 0.21561 | 0.19637 | 0.180006 | 0 | 0.003499 | 0.331315 | 19,658 | 659 | 134 | 29.830046 | 0.76356 | 0.005952 | 0 | 0.324397 | 0 | 0.008043 | 0.08709 | 0.001535 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.029491 | 0.032172 | null | null | 0.005362 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
1349de7f10bddf8ff6c5115edd98452e10e72824 | 1,021 | py | Python | src/Eighth Chapter/Exercise9.py | matthijskrul/ThinkPython | 34c1d81f4ef535c32b8b0309b23c7ca37f851606 | [
"MIT"
] | null | null | null | src/Eighth Chapter/Exercise9.py | matthijskrul/ThinkPython | 34c1d81f4ef535c32b8b0309b23c7ca37f851606 | [
"MIT"
] | null | null | null | src/Eighth Chapter/Exercise9.py | matthijskrul/ThinkPython | 34c1d81f4ef535c32b8b0309b23c7ca37f851606 | [
"MIT"
] | null | null | null | # Write a function that counts how many times a substring occurs in a string.
import sys
def count(stringpart, stringwhole):
position = 0
tally = 0
while position < len(stringwhole):
x = stringwhole.find(stringpart, position)
if x == -1:
break
tally += 1
positi... | 25.525 | 77 | 0.583741 | 143 | 1,021 | 4.125874 | 0.51049 | 0.091525 | 0.050847 | 0.044068 | 0.047458 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018817 | 0.271303 | 1,021 | 39 | 78 | 26.179487 | 0.774194 | 0.230167 | 0 | 0 | 0 | 0 | 0.135065 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.115385 | false | 0.076923 | 0.038462 | 0 | 0.192308 | 0.038462 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
1351c02a7f9db38b2d39f8bd71c96f5d99d1312e | 1,399 | py | Python | ch46-机器学习-K近邻/knn-find_nearest.py | makelove/OpenCV-Python-Tutorial | e428d648f7aa50d6a0fb4f4d0fb1bd1a600fef41 | [
"MIT"
] | 2,875 | 2016-10-21T01:33:22.000Z | 2022-03-30T12:15:28.000Z | ch46-机器学习-K近邻/knn-find_nearest.py | makelove/OpenCV-Python-Tutorial | e428d648f7aa50d6a0fb4f4d0fb1bd1a600fef41 | [
"MIT"
] | 12 | 2017-07-18T14:24:27.000Z | 2021-07-04T10:32:25.000Z | ch46-机器学习-K近邻/knn-find_nearest.py | makelove/OpenCV-Python-Tutorial | e428d648f7aa50d6a0fb4f4d0fb1bd1a600fef41 | [
"MIT"
] | 1,066 | 2017-03-11T01:43:28.000Z | 2022-03-29T14:52:41.000Z | # -*- coding: utf-8 -*-
# @Time : 2017/8/8 12:33
# @Author : play4fun
# @File : knn-find_nearest.py
# @Software: PyCharm
"""
knn-find_nearest.py:
http://www.bogotobogo.com/python/OpenCV_Python/python_opencv3_Machine_Learning_Classification_K-nearest_neighbors_k-NN.php
"""
import cv2
import numpy as np
import m... | 27.98 | 122 | 0.694067 | 212 | 1,399 | 4.523585 | 0.556604 | 0.021898 | 0.043796 | 0.050052 | 0.039625 | 0 | 0 | 0 | 0 | 0 | 0 | 0.050622 | 0.13867 | 1,399 | 49 | 123 | 28.55102 | 0.745228 | 0.442459 | 0 | 0 | 0 | 0 | 0.05284 | 0 | 0 | 0 | 0 | 0.020408 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
135225350d465c1e8297d19d680ac42b2450249d | 476 | py | Python | scripts/study_case/ID_13/torch_geometric/transforms/face_to_edge.py | kzbnb/numerical_bugs | bc22e72bcc06df6ce7889a25e0aeed027bde910b | [
"Apache-2.0"
] | 8 | 2021-06-30T06:55:14.000Z | 2022-03-18T01:57:14.000Z | scripts/study_case/ID_13/torch_geometric/transforms/face_to_edge.py | kzbnb/numerical_bugs | bc22e72bcc06df6ce7889a25e0aeed027bde910b | [
"Apache-2.0"
] | 1 | 2021-06-30T03:08:15.000Z | 2021-06-30T03:08:15.000Z | scripts/study_case/ID_13/torch_geometric/transforms/face_to_edge.py | kzbnb/numerical_bugs | bc22e72bcc06df6ce7889a25e0aeed027bde910b | [
"Apache-2.0"
] | 2 | 2021-11-17T11:19:48.000Z | 2021-11-18T03:05:58.000Z | import torch
from scripts.study_case.ID_13.torch_geometric.utils import to_undirected
class FaceToEdge(object):
def __call__(self, data):
face = data.face
edge_index = torch.cat([face[:2], face[1:], face[::2]], dim=1)
edge_index = to_undirected(edge_index, num_nodes=data.num_nodes)
... | 26.444444 | 72 | 0.659664 | 65 | 476 | 4.4 | 0.507692 | 0.157343 | 0.083916 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016173 | 0.220588 | 476 | 17 | 73 | 28 | 0.754717 | 0 | 0 | 0 | 0 | 0 | 0.008403 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0.083333 | 0.583333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
135d076c462ce30ede6d26d336d7c0d111ba75c9 | 1,540 | py | Python | app/modules/users/mutations/LoginUser.py | ParzivalWins/Flask-GraphQL-Graphene-MySQL-Docker-StarterKit | f15024cfb5c664d03be9e09a659ae04c76f36fb0 | [
"MIT"
] | 29 | 2019-02-13T16:25:28.000Z | 2022-03-11T07:06:27.000Z | app/modules/users/mutations/LoginUser.py | ParzivalWins/Flask-GraphQL-Graphene-MySQL-Docker-StarterKit | f15024cfb5c664d03be9e09a659ae04c76f36fb0 | [
"MIT"
] | 2 | 2019-03-23T15:17:47.000Z | 2019-06-11T15:24:12.000Z | app/modules/users/mutations/LoginUser.py | ParzivalWins/Flask-GraphQL-Graphene-MySQL-Docker-StarterKit | f15024cfb5c664d03be9e09a659ae04c76f36fb0 | [
"MIT"
] | 21 | 2019-02-14T13:14:34.000Z | 2022-03-08T03:30:44.000Z | import datetime
from graphene_sqlalchemy import SQLAlchemyObjectType
from graphene import Mutation, Boolean, String, Field
from app.models.User import User as UserModel
from graphql import GraphQLError
class User(SQLAlchemyObjectType):
class Meta:
model = UserModel
exclude_fields = ("password",)
... | 34.222222 | 64 | 0.614935 | 160 | 1,540 | 5.825 | 0.43125 | 0.091202 | 0.090129 | 0.094421 | 0.05794 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.303896 | 1,540 | 44 | 65 | 35 | 0.869403 | 0 | 0 | 0.052632 | 0 | 0 | 0.122078 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.026316 | false | 0.105263 | 0.131579 | 0 | 0.421053 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
135d708b2d22c736895841888efa3ff7b6ce4dc4 | 614 | py | Python | testtrail/app.py | hongzhangMu/testrun | 39b573c26b24733383d840c6d89a6b22e758ad5d | [
"MIT"
] | null | null | null | testtrail/app.py | hongzhangMu/testrun | 39b573c26b24733383d840c6d89a6b22e758ad5d | [
"MIT"
] | null | null | null | testtrail/app.py | hongzhangMu/testrun | 39b573c26b24733383d840c6d89a6b22e758ad5d | [
"MIT"
] | null | null | null | # coding=utf-8
import logging
from flask_sqlalchemy import SQLAlchemy
log = logging.getLogger(__name__)
db = SQLAlchemy()
def make_settings(app, settings):
"""
This function is invoked before initializing app.
"""
def init_app(app, settings):
"""
This function is invoked before running app.
... | 19.806452 | 77 | 0.713355 | 79 | 614 | 5.265823 | 0.43038 | 0.105769 | 0.137019 | 0.110577 | 0.182692 | 0.182692 | 0.182692 | 0 | 0 | 0 | 0 | 0.002028 | 0.197068 | 614 | 30 | 78 | 20.466667 | 0.841785 | 0.175896 | 0 | 0 | 0 | 0 | 0.065263 | 0.065263 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.230769 | 0 | 0.461538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
135e350b918ecdb12bbb6c5413f896dac3e541a1 | 1,145 | py | Python | templating/jinja_templates.py | dhilipsiva/google-chartwrapper | 3769aecbef6c83b6cd93ee72ece478ffe433ac57 | [
"BSD-3-Clause"
] | null | null | null | templating/jinja_templates.py | dhilipsiva/google-chartwrapper | 3769aecbef6c83b6cd93ee72ece478ffe433ac57 | [
"BSD-3-Clause"
] | 1 | 2019-01-14T05:09:15.000Z | 2019-01-14T05:09:15.000Z | templating/jinja_templates.py | dhilipsiva/google-chartwrapper | 3769aecbef6c83b6cd93ee72ece478ffe433ac57 | [
"BSD-3-Clause"
] | null | null | null | from jinja2 import Environment, Template
#from GChartWrapper.jinja2 import ChartExtension
from jinja2 import nodes
from jinja2.ext import Extension
class ChartExtension(Extension):
tags = set(['chart'])
def parse(self, parser):
args = []
while 0:
token = parser.stream.next()... | 25.444444 | 75 | 0.601747 | 122 | 1,145 | 5.57377 | 0.540984 | 0.058824 | 0.047059 | 0.061765 | 0.091176 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015854 | 0.283843 | 1,145 | 45 | 76 | 25.444444 | 0.813415 | 0.071616 | 0 | 0.066667 | 0 | 0 | 0.184793 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.1 | 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 |
135ea92c3b7af5b44d04f57e0feffec493960d3f | 4,023 | py | Python | scratch/MFEIT_Dashboard/reconstruction_tests/reconstruct.py | marionleborgne/EIT_Dashboard | 057e05d20325fa6a9b9b0183f63a73c8b7e6cd3b | [
"Apache-2.0"
] | null | null | null | scratch/MFEIT_Dashboard/reconstruction_tests/reconstruct.py | marionleborgne/EIT_Dashboard | 057e05d20325fa6a9b9b0183f63a73c8b7e6cd3b | [
"Apache-2.0"
] | null | null | null | scratch/MFEIT_Dashboard/reconstruction_tests/reconstruct.py | marionleborgne/EIT_Dashboard | 057e05d20325fa6a9b9b0183f63a73c8b7e6cd3b | [
"Apache-2.0"
] | null | null | null | """
First attempt at static back projection reconstruction
for electrical impedance tomography project.
"""
import string
import numpy as np
import matplotlib.image as mpimg
import matplotlib.pyplot as plt
import matplotlib.animation as animation
sinogram_ids = np.array([ [0,0,46,0,37,0,28,0,0],
[0,56,0,47,... | 32.97541 | 123 | 0.660701 | 646 | 4,023 | 4.04644 | 0.301858 | 0.023718 | 0.013772 | 0.032135 | 0.261668 | 0.211553 | 0.195486 | 0.141546 | 0.087988 | 0.087988 | 0 | 0.0986 | 0.165548 | 4,023 | 122 | 124 | 32.97541 | 0.680071 | 0.486204 | 0 | 0 | 0 | 0 | 0.069755 | 0.028754 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.125 | null | null | 0.041667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
136190167e0053a04dea27c73aaee0ff5fea7664 | 1,320 | py | Python | tests/test_field_methods.py | concretesolutions/mysql-anonymous | a4246d657cb3749aa145c30320df78f9811b01d2 | [
"MIT"
] | null | null | null | tests/test_field_methods.py | concretesolutions/mysql-anonymous | a4246d657cb3749aa145c30320df78f9811b01d2 | [
"MIT"
] | null | null | null | tests/test_field_methods.py | concretesolutions/mysql-anonymous | a4246d657cb3749aa145c30320df78f9811b01d2 | [
"MIT"
] | null | null | null | import pytest
from anonymize.field import (
AnonymizeField, Nullify, RandomCellPhone, RandomPhone, RandomCpf)
@pytest.fixture
def anon():
return AnonymizeField({}, "id")
def test_should_get_a_list_item(anon):
assert anon._listify("") == [""]
def test_should_get_a_list_none(anon):
assert anon._list... | 25.882353 | 69 | 0.728788 | 177 | 1,320 | 5.112994 | 0.254237 | 0.069613 | 0.129282 | 0.159116 | 0.333702 | 0.046409 | 0 | 0 | 0 | 0 | 0 | 0.007958 | 0.143182 | 1,320 | 50 | 70 | 26.4 | 0.792219 | 0 | 0 | 0 | 0 | 0 | 0.108333 | 0 | 0 | 0 | 0 | 0 | 0.4 | 1 | 0.333333 | false | 0 | 0.066667 | 0.033333 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
1365969cac42427844e630cefb1d837f57936042 | 1,546 | py | Python | getdata.py | zoeypu98/cgi-lab | 845ad12f93560daa1906d56459adf25730575637 | [
"Apache-2.0"
] | null | null | null | getdata.py | zoeypu98/cgi-lab | 845ad12f93560daa1906d56459adf25730575637 | [
"Apache-2.0"
] | null | null | null | getdata.py | zoeypu98/cgi-lab | 845ad12f93560daa1906d56459adf25730575637 | [
"Apache-2.0"
] | null | null | null | def _wrapper(page):
"""
Wraps some text in common HTML.
"""
return ("""
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<style>
body {
font-family: -apple-system, BlinkMacSystemFont, sans-serif;
max-width: 24em;
... | 22.735294 | 97 | 0.42238 | 139 | 1,546 | 4.676259 | 0.57554 | 0.009231 | 0.009231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030023 | 0.439845 | 1,546 | 68 | 98 | 22.735294 | 0.720554 | 0.043984 | 0 | 0.038462 | 0 | 0.038462 | 0.91989 | 0.063536 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0.019231 | 0 | 0 | 0.076923 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
13670ccaaf351973ddb4d7dcb9aeb52c482419e7 | 1,614 | py | Python | kepler/emulator/TDT.py | ringer-atlas/kepler | 49d2c1a442995e776976780535c8116fc8a96731 | [
"MIT"
] | null | null | null | kepler/emulator/TDT.py | ringer-atlas/kepler | 49d2c1a442995e776976780535c8116fc8a96731 | [
"MIT"
] | null | null | null | kepler/emulator/TDT.py | ringer-atlas/kepler | 49d2c1a442995e776976780535c8116fc8a96731 | [
"MIT"
] | 3 | 2021-09-10T18:11:21.000Z | 2022-03-17T15:36:29.000Z |
__all__ = ['TDT']
from Gaugi import Algorithm
from Gaugi import StatusCode
from Gaugi import GeV
from Gaugi.messenger.macros import *
from kepler.emulator import Accept
#
# Chain definition
#
class TDT( Algorithm ):
#
# Constructor
#
def __init__(self, name, chain):
Algorithm.__init__(self, nam... | 20.43038 | 100 | 0.652416 | 174 | 1,614 | 5.770115 | 0.33908 | 0.065737 | 0.064741 | 0.079681 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012821 | 0.226766 | 1,614 | 78 | 101 | 20.692308 | 0.791667 | 0.071252 | 0 | 0.0625 | 0 | 0 | 0.092517 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0.34375 | 0.15625 | 0 | 0.40625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
1370c8f03dbb877ddcbd77b042a262cf20b8dd26 | 1,752 | py | Python | Stream-2/Back-End-Development/6.Boggle-Solver-Part-Two/2.Profiling/Solution/boggle.py | GunnerJnr/_CodeInstitute | efba0984a3dc71558eef97724c85e274a712798c | [
"MIT"
] | 4 | 2017-10-10T14:00:40.000Z | 2021-01-27T14:08:26.000Z | Stream-2/Back-End-Development/6.Boggle-Solver-Part-Two/2.Profiling/Solution/boggle.py | GunnerJnr/_CodeInstitute | efba0984a3dc71558eef97724c85e274a712798c | [
"MIT"
] | 115 | 2019-10-24T11:18:33.000Z | 2022-03-11T23:15:42.000Z | Stream-2/Back-End-Development/6.Boggle-Solver-Part-Two/2.Profiling/Solution/boggle.py | GunnerJnr/_CodeInstitute | efba0984a3dc71558eef97724c85e274a712798c | [
"MIT"
] | 5 | 2017-09-22T21:42:39.000Z | 2020-02-07T02:18:11.000Z | from string import ascii_uppercase
from random import choice
def check():
return 1
def make_grid(width, height):
return {(row, col): choice(ascii_uppercase)
for row in range(height)
for col in range(width)}
def neighbours_of_position((row, col)):
return [(row - 1, col - 1), (ro... | 23.675676 | 76 | 0.613014 | 246 | 1,752 | 4.195122 | 0.247967 | 0.023256 | 0.040698 | 0.031008 | 0.153101 | 0.153101 | 0.044574 | 0.044574 | 0.044574 | 0.044574 | 0 | 0.013396 | 0.275685 | 1,752 | 73 | 77 | 24 | 0.799842 | 0 | 0 | 0.041667 | 0 | 0 | 0.016 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.041667 | null | null | 0.041667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
1373ed71f5a1556b85f6f84494305c8653a4c150 | 1,735 | py | Python | shhh/api/encryption.py | olaoladapo/shhh | f02fb875559342a118963c22d28dd867e3be282d | [
"MIT"
] | 243 | 2019-09-17T23:29:38.000Z | 2022-03-29T07:29:36.000Z | shhh/api/encryption.py | olaoladapo/shhh | f02fb875559342a118963c22d28dd867e3be282d | [
"MIT"
] | 213 | 2019-09-18T12:52:18.000Z | 2022-03-31T16:07:15.000Z | shhh/api/encryption.py | shiitakepl/shhh | 54fc69ae741a7309d8ba996200fe6fd40b0345eb | [
"MIT"
] | 33 | 2019-09-18T12:59:01.000Z | 2022-03-25T16:42:09.000Z | import secrets
from base64 import urlsafe_b64decode, urlsafe_b64encode
from cryptography.fernet import Fernet
from cryptography.hazmat.backends import default_backend
from cryptography.hazmat.primitives import hashes
from cryptography.hazmat.primitives.kdf.pbkdf2 import PBKDF2HMAC
class Secret:
"""Encrypt and de... | 32.12963 | 70 | 0.610951 | 182 | 1,735 | 5.675824 | 0.318681 | 0.061955 | 0.063892 | 0.061955 | 0.0697 | 0.0697 | 0.0697 | 0 | 0 | 0 | 0 | 0.033627 | 0.280115 | 1,735 | 53 | 71 | 32.735849 | 0.793435 | 0.065706 | 0 | 0.04878 | 0 | 0 | 0.020625 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.097561 | false | 0.097561 | 0.146341 | 0 | 0.365854 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
137479ec923cf791e0790aeb6b6b6138c9116459 | 4,017 | py | Python | baseline.py | ginogustavo/h1bvisa | 2dd22bdbb9e882566aaa76fb56472481452e549f | [
"MIT"
] | null | null | null | baseline.py | ginogustavo/h1bvisa | 2dd22bdbb9e882566aaa76fb56472481452e549f | [
"MIT"
] | null | null | null | baseline.py | ginogustavo/h1bvisa | 2dd22bdbb9e882566aaa76fb56472481452e549f | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""baseline.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1ELj28VKxQe8E1h-VnIbU6HMb9ezVIUaB
"""
import numpy as np
import sklearn
from statistics import mean
from sklearn import metrics
from sklearn import ... | 39.382353 | 105 | 0.687329 | 535 | 4,017 | 4.936449 | 0.269159 | 0.020825 | 0.026505 | 0.022719 | 0.368042 | 0.368042 | 0.353654 | 0.327149 | 0.307838 | 0.307838 | 0 | 0.004809 | 0.22355 | 4,017 | 101 | 106 | 39.772277 | 0.841937 | 0.161314 | 0 | 0.319444 | 1 | 0 | 0.017451 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0.013889 | 0.125 | 0 | 0.375 | 0.027778 | 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 |
137550baab4dc9e952d840f9530d9f9373a21270 | 3,576 | py | Python | lab/tests/factories.py | betagouv/euphrosyne | a67857a8716b5060cd9a2c6fa5f3d45c3fff435a | [
"MIT"
] | 1 | 2022-02-21T19:46:20.000Z | 2022-02-21T19:46:20.000Z | lab/tests/factories.py | betagouv/euphrosyne | a67857a8716b5060cd9a2c6fa5f3d45c3fff435a | [
"MIT"
] | 37 | 2021-10-18T18:33:26.000Z | 2022-03-31T12:38:38.000Z | lab/tests/factories.py | betagouv/euphrosyne | a67857a8716b5060cd9a2c6fa5f3d45c3fff435a | [
"MIT"
] | 2 | 2022-03-03T15:41:30.000Z | 2022-03-07T14:20:26.000Z | from datetime import datetime, timedelta, timezone
import factory
import factory.fuzzy
from django.contrib.auth import get_user_model
from ..models import Object, ObjectGroup, Participation, Project, Run
NOW = datetime.now(tz=timezone.utc)
class StaffUserFactory(factory.django.DjangoModelFactory):
class Meta:
... | 29.311475 | 84 | 0.710291 | 384 | 3,576 | 6.46875 | 0.356771 | 0.038647 | 0.074879 | 0.086957 | 0.34058 | 0.304348 | 0.195652 | 0.164251 | 0.164251 | 0.134461 | 0 | 0.007589 | 0.189318 | 3,576 | 121 | 85 | 29.553719 | 0.849258 | 0.006991 | 0 | 0.136364 | 0 | 0 | 0.056354 | 0.020851 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022727 | false | 0.011364 | 0.056818 | 0.011364 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
1376d3b5e0d2283e90f38175524186b47d5ecf1d | 1,410 | py | Python | descriptor/customer6b.py | ambleacme/decorators-descriptors | ff9e9b5594f2824f529aa96d5620df7840bccccd | [
"MIT"
] | 78 | 2017-05-01T10:27:20.000Z | 2022-02-05T15:22:41.000Z | descriptor/customer6b.py | ambleacme/decorators-descriptors | ff9e9b5594f2824f529aa96d5620df7840bccccd | [
"MIT"
] | null | null | null | descriptor/customer6b.py | ambleacme/decorators-descriptors | ff9e9b5594f2824f529aa96d5620df7840bccccd | [
"MIT"
] | 36 | 2017-05-17T20:29:41.000Z | 2020-11-22T23:52:28.000Z | """
A client with name and e-mail:
>>> jack = Customer('John Robinson', 'jack@rob.org')
>>> jack.full_email()
'John Robinson <jack@rob.org>'
A client cannot be created with a blank e-mail:
>>> joe = Customer('Joseph Blow', '')
Traceback (most recent call last):
...
ValueError: 'email' m... | 24.310345 | 56 | 0.605674 | 182 | 1,410 | 4.631868 | 0.43956 | 0.017794 | 0.035587 | 0.081851 | 0.262159 | 0.132859 | 0.132859 | 0.132859 | 0.132859 | 0.132859 | 0 | 0.008499 | 0.248936 | 1,410 | 57 | 57 | 24.736842 | 0.787535 | 0.760993 | 0 | 0 | 0 | 0 | 0.027439 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.1 | 0.1 | 0.7 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
1381669df12b0f433b696b3adf13e5def936c65f | 1,526 | py | Python | projects/api/compare_results.py | mmaioli/projects | 648f1306a3dde5deb456c9886fb59c73e424d186 | [
"Apache-2.0"
] | null | null | null | projects/api/compare_results.py | mmaioli/projects | 648f1306a3dde5deb456c9886fb59c73e424d186 | [
"Apache-2.0"
] | null | null | null | projects/api/compare_results.py | mmaioli/projects | 648f1306a3dde5deb456c9886fb59c73e424d186 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""Compare results blueprint."""
from flask import Blueprint, jsonify, request
from ..controllers.compare_results import list_compare_results, create_compare_result, \
update_compare_result, delete_compare_result
from ..utils import to_snake_case
bp = Blueprint("compare_results", __name__... | 36.333333 | 89 | 0.716252 | 193 | 1,526 | 5.284974 | 0.233161 | 0.254902 | 0.117647 | 0.112745 | 0.562745 | 0.337255 | 0.337255 | 0.337255 | 0.205882 | 0.205882 | 0 | 0.000786 | 0.165793 | 1,526 | 41 | 90 | 37.219512 | 0.800471 | 0.131717 | 0 | 0.125 | 0 | 0 | 0.054657 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.125 | 0 | 0.458333 | 0.083333 | 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 |
138167463c1c775e7189d5e62c62232c61f0a27e | 8,946 | py | Python | sec5b_ml_model_binaryclass_pipeline_exec2_cross_validate.py | kaionwong/ethnicity-ml-prediction | 4e50e83ad98126786db0db27641128b9b32605dc | [
"Apache-2.0"
] | 3 | 2021-01-18T16:59:17.000Z | 2021-08-21T01:51:42.000Z | sec5b_ml_model_binaryclass_pipeline_exec2_cross_validate.py | kaionwong/ethnicity-ml-prediction | 4e50e83ad98126786db0db27641128b9b32605dc | [
"Apache-2.0"
] | null | null | null | sec5b_ml_model_binaryclass_pipeline_exec2_cross_validate.py | kaionwong/ethnicity-ml-prediction | 4e50e83ad98126786db0db27641128b9b32605dc | [
"Apache-2.0"
] | 1 | 2022-03-07T16:15:12.000Z | 2022-03-07T16:15:12.000Z | import sys
import numpy as np
import datetime
import helper_functions.helper_functions as hf
from sklearn.multiclass import OneVsRestClassifier
from sklearn.linear_model import LogisticRegression
from sklearn.ensemble import RandomForestClassifier
from sklearn.tree import DecisionTreeClassifier
from sklearn.naive_bayes... | 43.427184 | 110 | 0.611782 | 1,045 | 8,946 | 4.825837 | 0.188517 | 0.05235 | 0.026175 | 0.040452 | 0.711283 | 0.673607 | 0.649415 | 0.643863 | 0.643863 | 0.643863 | 0 | 0.027255 | 0.269953 | 8,946 | 206 | 111 | 43.427184 | 0.744909 | 0.070087 | 0 | 0.664835 | 0 | 0 | 0.274076 | 0.156399 | 0 | 0 | 0 | 0 | 0 | 1 | 0.005495 | false | 0 | 0.06044 | 0 | 0.065934 | 0.021978 | 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 |
1381fb4b57ef70b17ff0455ffdbba7dc60087670 | 1,689 | py | Python | alphafold_components/artifact_types.py | aburdenko/alphafold-inference-pipeline | b48dc5dba162d02450ce111fe9d52a09d03a0236 | [
"Apache-2.0"
] | 4 | 2022-02-14T17:54:18.000Z | 2022-02-25T12:58:58.000Z | alphafold_components/artifact_types.py | jarokaz/alphafold-inference-pipeline | 846c90fa05f3f1b2f0ac03c4a43a34a0142987e9 | [
"Apache-2.0"
] | 1 | 2022-03-18T18:23:42.000Z | 2022-03-18T18:23:42.000Z | alphafold_components/artifact_types.py | aburdenko/alphafold-inference-pipeline | b48dc5dba162d02450ce111fe9d52a09d03a0236 | [
"Apache-2.0"
] | 1 | 2022-03-05T22:54:24.000Z | 2022-03-05T22:54:24.000Z | # Copyright 2021 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | 30.160714 | 74 | 0.668443 | 225 | 1,689 | 4.902222 | 0.444444 | 0.054397 | 0.054397 | 0.029012 | 0.344515 | 0.201269 | 0.201269 | 0.201269 | 0.201269 | 0.201269 | 0 | 0.009181 | 0.226169 | 1,689 | 56 | 75 | 30.160714 | 0.834736 | 0.396684 | 0 | 0.357143 | 0 | 0 | 0.048387 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.107143 | 0.071429 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
13831d5561952275e961bee0b24fe9b1d0ceff32 | 372 | py | Python | src/api-engine/api/common/response.py | MicroMetaverse/cello | 9a6ee64ff1a5a5c829d403b059e650edd0df3d1e | [
"Apache-2.0"
] | 865 | 2017-01-12T21:51:37.000Z | 2022-03-26T16:39:16.000Z | src/api-engine/api/common/response.py | MicroMetaverse/cello | 9a6ee64ff1a5a5c829d403b059e650edd0df3d1e | [
"Apache-2.0"
] | 226 | 2017-02-06T08:36:24.000Z | 2022-03-30T06:13:46.000Z | src/api-engine/api/common/response.py | MicroMetaverse/cello | 9a6ee64ff1a5a5c829d403b059e650edd0df3d1e | [
"Apache-2.0"
] | 506 | 2017-02-08T06:11:18.000Z | 2022-03-10T04:25:25.000Z |
"""Class represents response format.
{
status, successful/fail
data, response
msg, error messages
}
"""
def ok(data):
return {
"data": data,
"msg": None,
"status": "successful"
}
def err(msg):
return {
"data": None,... | 15.5 | 36 | 0.435484 | 32 | 372 | 5.0625 | 0.5 | 0.197531 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.432796 | 372 | 23 | 37 | 16.173913 | 0.767773 | 0.293011 | 0 | 0.166667 | 0 | 0 | 0.190476 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0.166667 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 |
1385b49595a6fba7e25d3000fb8b542e69cd9541 | 3,973 | py | Python | src/winforms/toga_winforms/widgets/textinput.py | luizoti/toga | 3c49e685f325f1aba2ce048b253402d7e4519f97 | [
"BSD-3-Clause"
] | 1,261 | 2019-03-31T16:28:47.000Z | 2022-03-31T09:01:23.000Z | src/winforms/toga_winforms/widgets/textinput.py | luizoti/toga | 3c49e685f325f1aba2ce048b253402d7e4519f97 | [
"BSD-3-Clause"
] | 597 | 2019-04-02T20:02:42.000Z | 2022-03-30T10:28:47.000Z | src/winforms/toga_winforms/widgets/textinput.py | luizoti/toga | 3c49e685f325f1aba2ce048b253402d7e4519f97 | [
"BSD-3-Clause"
] | 318 | 2019-03-31T18:32:00.000Z | 2022-03-30T18:07:13.000Z | from ctypes import c_uint
from ctypes.wintypes import HWND, WPARAM
from travertino.size import at_least
from travertino.constants import TRANSPARENT
from toga_winforms.colors import native_color
from toga_winforms.libs import HorizontalTextAlignment, WinForms, user32
from .base import Widget
class TextInput(Widget... | 35.792793 | 118 | 0.691669 | 479 | 3,973 | 5.5762 | 0.300626 | 0.093598 | 0.038188 | 0.02134 | 0.205541 | 0.176713 | 0.129914 | 0.09547 | 0.09547 | 0.075627 | 0 | 0.00848 | 0.228291 | 3,973 | 110 | 119 | 36.118182 | 0.862688 | 0.125849 | 0 | 0.066667 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001733 | 0 | 0 | 1 | 0.266667 | false | 0.04 | 0.093333 | 0.013333 | 0.386667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
1389527ce73b159d2562804ca8d801407799f81d | 34,751 | py | Python | benchmarks/baseline_classifiers.py | zhhengcs/sunny-side-up | 0ddefdd1adf1c7ea3f48b669ffc763c0678481a3 | [
"Apache-2.0"
] | 581 | 2015-06-24T15:04:18.000Z | 2022-02-19T23:22:01.000Z | benchmarks/baseline_classifiers.py | zhhengcs/sunny-side-up | 0ddefdd1adf1c7ea3f48b669ffc763c0678481a3 | [
"Apache-2.0"
] | 32 | 2015-06-22T21:29:11.000Z | 2020-06-26T22:16:39.000Z | benchmarks/baseline_classifiers.py | zhhengcs/sunny-side-up | 0ddefdd1adf1c7ea3f48b669ffc763c0678481a3 | [
"Apache-2.0"
] | 168 | 2015-06-02T18:19:25.000Z | 2020-12-28T19:25:07.000Z | import os, sys, logging
import json
import numpy as np
import random
from collections import defaultdict, Counter
import cPickle as pickle
import cProfile, pstats
import threading
import time
import multiprocessing
import math
from sklearn import metrics
from sklearn import svm
from sklearn.naive_bayes import Gaussia... | 59.607204 | 166 | 0.357313 | 2,150 | 34,751 | 5.49907 | 0.160465 | 0.01421 | 0.02013 | 0.020891 | 0.47729 | 0.430771 | 0.406157 | 0.3763 | 0.360568 | 0.336294 | 0 | 0.026714 | 0.565883 | 34,751 | 582 | 167 | 59.709622 | 0.756993 | 0.482001 | 0 | 0.108614 | 0 | 0 | 0.094607 | 0.041239 | 0 | 0 | 0 | 0 | 0 | 1 | 0.014981 | false | 0.007491 | 0.089888 | 0.007491 | 0.116105 | 0.003745 | 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 |
1391bf23bc77aa7812f962b828e1929d7bb0b0d9 | 4,563 | py | Python | old_impl/main.py | shenlong95/chinese_sentiment-master | 1a84c6869ed80cdb59c9d1b6f2ca19292b469acd | [
"Apache-2.0"
] | 1 | 2021-09-04T08:38:10.000Z | 2021-09-04T08:38:10.000Z | old_impl/main.py | shenlong95/chinese_sentiment-master | 1a84c6869ed80cdb59c9d1b6f2ca19292b469acd | [
"Apache-2.0"
] | null | null | null | old_impl/main.py | shenlong95/chinese_sentiment-master | 1a84c6869ed80cdb59c9d1b6f2ca19292b469acd | [
"Apache-2.0"
] | null | null | null | # -*- coding: UTF-8 -*-
import os
import re
import numpy as np
import jieba
from gensim.models import KeyedVectors
from tensorflow.python.keras.models import Sequential
from tensorflow.python.keras.layers import Dense, Embedding, LSTM
from tensorflow.python.keras.preprocessing.sequence import pad_sequences
from tensor... | 28.698113 | 95 | 0.675871 | 623 | 4,563 | 4.760835 | 0.338684 | 0.018881 | 0.023601 | 0.042144 | 0.199595 | 0.163857 | 0.134862 | 0.109238 | 0.109238 | 0.109238 | 0 | 0.01762 | 0.191541 | 4,563 | 158 | 96 | 28.879747 | 0.783952 | 0.048652 | 0 | 0.163934 | 0 | 0.008197 | 0.074185 | 0.006009 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.090164 | null | null | 0.032787 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
13a04248e2ec2397dce7fb97d5d93afbd82d6f9f | 4,707 | py | Python | tasks.py | thomasantony/fabric | e00fb413aa28a45adadeaeb712eef324502ec209 | [
"BSD-2-Clause"
] | null | null | null | tasks.py | thomasantony/fabric | e00fb413aa28a45adadeaeb712eef324502ec209 | [
"BSD-2-Clause"
] | null | null | null | tasks.py | thomasantony/fabric | e00fb413aa28a45adadeaeb712eef324502ec209 | [
"BSD-2-Clause"
] | null | null | null | from functools import partial
from os import environ, getcwd
import sys
from invocations import travis
from invocations.checks import blacken
from invocations.docs import docs, www, sites, watch_docs
from invocations.pytest import test, integration, coverage
from invocations.packaging import release
from invocations.u... | 32.462069 | 79 | 0.653282 | 625 | 4,707 | 4.8528 | 0.4432 | 0.029674 | 0.005935 | 0.010551 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009651 | 0.25154 | 4,707 | 144 | 80 | 32.6875 | 0.851263 | 0.363076 | 0 | 0.061224 | 0 | 0 | 0.124491 | 0.014925 | 0 | 0 | 0 | 0.013889 | 0.071429 | 1 | 0.020408 | false | 0.040816 | 0.132653 | 0 | 0.163265 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
13a2c9987a3bd07a32f438e23fca4939b1fce313 | 339 | py | Python | hadoop/data/word-count/reducer.py | pacslab/big-data-systems-docker | f8df72eeac5ac76591905e898d9832f9438462fd | [
"Apache-2.0"
] | 2 | 2022-03-06T05:52:20.000Z | 2022-03-09T01:32:04.000Z | hadoop/data/word-count/reducer.py | pacslab/big-data-systems-docker | f8df72eeac5ac76591905e898d9832f9438462fd | [
"Apache-2.0"
] | null | null | null | hadoop/data/word-count/reducer.py | pacslab/big-data-systems-docker | f8df72eeac5ac76591905e898d9832f9438462fd | [
"Apache-2.0"
] | 1 | 2022-03-31T14:08:50.000Z | 2022-03-31T14:08:50.000Z | #!/usr/local/bin/python3.9
import sys
previous = None
sum = 0
for line in sys.stdin:
key, value = line.split( '\t' )
if key != previous:
if previous is not None:
print(previous + '\t' + str( sum ) )
previous = key
sum = 0
sum = sum + int( value )
print(previous + '... | 16.142857 | 48 | 0.530973 | 47 | 339 | 3.829787 | 0.531915 | 0.044444 | 0.155556 | 0.188889 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017621 | 0.330383 | 339 | 20 | 49 | 16.95 | 0.77533 | 0.073746 | 0 | 0.333333 | 0 | 0 | 0.019169 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.083333 | 0.166667 | 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 |
13a60305855de0daf25a5e142392d19a24cac9ed | 4,898 | py | Python | upload/migrations/0001_initial.py | guilhermesurek/doc-manage-app | a411357c18c1050b925c29dd11742de404e37192 | [
"MIT"
] | null | null | null | upload/migrations/0001_initial.py | guilhermesurek/doc-manage-app | a411357c18c1050b925c29dd11742de404e37192 | [
"MIT"
] | 7 | 2020-04-19T03:35:57.000Z | 2021-09-22T18:44:32.000Z | upload/migrations/0001_initial.py | guilhermesurek/doc-manage-app | a411357c18c1050b925c29dd11742de404e37192 | [
"MIT"
] | null | null | null | # Generated by Django 3.0.5 on 2020-04-20 00:08
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='EntityType',
fields=[
... | 59.731707 | 182 | 0.619437 | 517 | 4,898 | 5.626692 | 0.245648 | 0.117222 | 0.061877 | 0.082503 | 0.5978 | 0.524923 | 0.502234 | 0.334135 | 0.30526 | 0.273634 | 0 | 0.013732 | 0.241731 | 4,898 | 81 | 183 | 60.469136 | 0.769521 | 0.009187 | 0 | 0.364865 | 1 | 0 | 0.226139 | 0.022263 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.027027 | 0 | 0.081081 | 0 | 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 |
13ad2516b7abe65131bdbb102da0c44d7f0c5f89 | 173 | py | Python | Exercicios-Python/CursoEmVideo/ex048.py | bruno1906/ExerciciosPython | af657fb8083bc60b80d35d0d9f66495a2f1e3b43 | [
"MIT"
] | null | null | null | Exercicios-Python/CursoEmVideo/ex048.py | bruno1906/ExerciciosPython | af657fb8083bc60b80d35d0d9f66495a2f1e3b43 | [
"MIT"
] | null | null | null | Exercicios-Python/CursoEmVideo/ex048.py | bruno1906/ExerciciosPython | af657fb8083bc60b80d35d0d9f66495a2f1e3b43 | [
"MIT"
] | null | null | null | soma=0
cont=0
for c in range(1,501,2):
if c%3==0:
cont=cont + 1
soma=soma + c
print('A soma de todos os {} valores solicitados é {}.'.format(cont,soma))
| 21.625 | 74 | 0.583815 | 33 | 173 | 3.060606 | 0.636364 | 0.09901 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.077519 | 0.254335 | 173 | 7 | 75 | 24.714286 | 0.705426 | 0 | 0 | 0 | 0 | 0 | 0.271676 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.142857 | 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 |
13adeb1158562ad13090a1a7157264fa57e9126b | 323 | py | Python | backend/users/migrations/0004_remove_user_cart.py | dcostat04/FACES-2021 | 95d69ef9094e9ff02b1fce4413036aa53bb30213 | [
"MIT"
] | 2 | 2021-09-08T14:58:28.000Z | 2021-09-08T15:02:33.000Z | backend/users/migrations/0004_remove_user_cart.py | dcostat04/FACES-2021 | 95d69ef9094e9ff02b1fce4413036aa53bb30213 | [
"MIT"
] | null | null | null | backend/users/migrations/0004_remove_user_cart.py | dcostat04/FACES-2021 | 95d69ef9094e9ff02b1fce4413036aa53bb30213 | [
"MIT"
] | 1 | 2021-09-09T03:51:24.000Z | 2021-09-09T03:51:24.000Z | # Generated by Django 3.2.6 on 2021-08-28 05:47
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('users', '0003_alter_user_phone_no'),
]
operations = [
migrations.RemoveField(
model_name='user',
name='cart',
),
... | 17.944444 | 47 | 0.585139 | 36 | 323 | 5.111111 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.084071 | 0.30031 | 323 | 17 | 48 | 19 | 0.730089 | 0.139319 | 0 | 0 | 1 | 0 | 0.134058 | 0.086957 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.363636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
13ae3d86202a456adafcf694cbf74f79f029afdf | 3,145 | py | Python | utils/pokemon_detector.py | campos537/deep_learning_pokedex | e8b2da41195faf5a2bca4a09e27919ae73353054 | [
"Unlicense"
] | 8 | 2020-06-26T16:11:16.000Z | 2020-10-13T14:57:43.000Z | utils/pokemon_detector.py | campos537/deep_learning_pokedex | e8b2da41195faf5a2bca4a09e27919ae73353054 | [
"Unlicense"
] | null | null | null | utils/pokemon_detector.py | campos537/deep_learning_pokedex | e8b2da41195faf5a2bca4a09e27919ae73353054 | [
"Unlicense"
] | null | null | null | import cv2
from detecto.core import Model
from utils.labels import labels
import pandas as pd
import numpy as np
colors = {"Fire": (0, 0, 255), "Water": (255, 0, 0), "Ice": (
239, 255, 0), "Bug": (0, 255, 162), "Fairy": (255, 144, 255), "Electric": (0, 205, 255),
"Ghost": (122, 37, 34), "Dragon": (176... | 62.9 | 184 | 0.556439 | 476 | 3,145 | 3.571429 | 0.256303 | 0.047059 | 0.041176 | 0.047059 | 0.524118 | 0.490588 | 0.463529 | 0.421176 | 0.404706 | 0.404706 | 0 | 0.129479 | 0.219078 | 3,145 | 50 | 185 | 62.9 | 0.562704 | 0.01876 | 0 | 0.121951 | 0 | 0 | 0.064589 | 0.007141 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.121951 | 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 |
13b57c2fd37e5336c73fac31a9de6ebb89e1a332 | 328 | py | Python | src/pretix/helpers/dicts.py | NicsTr/pretix | e6d2380d9ed1836cc64a688b2be20d00a8500eab | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2020-04-25T00:11:00.000Z | 2020-04-25T00:11:00.000Z | src/pretix/helpers/dicts.py | NicsTr/pretix | e6d2380d9ed1836cc64a688b2be20d00a8500eab | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | src/pretix/helpers/dicts.py | NicsTr/pretix | e6d2380d9ed1836cc64a688b2be20d00a8500eab | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | def merge_dicts(*dict_args):
"""
Given any number of dicts, shallow copy and merge into a new dict,
precedence goes to key value pairs in latter dicts.
"""
result = {}
for dictionary in dict_args:
result.update(dictionary)
return result
def move_to_end(d, k):
v = d.pop(k)
d... | 21.866667 | 70 | 0.628049 | 51 | 328 | 3.941176 | 0.666667 | 0.079602 | 0.029851 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.277439 | 328 | 14 | 71 | 23.428571 | 0.848101 | 0.359756 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
13b666cf32fee8f87ca8614680c699b5344502fc | 3,155 | py | Python | sdk/python/kfp/cli/diagnose_me/utility.py | omarzouk/pipelines | f77ebc879741d4f5f5a6b7eede6d996788df3a45 | [
"Apache-2.0"
] | 1 | 2022-03-14T20:54:33.000Z | 2022-03-14T20:54:33.000Z | sdk/python/kfp/cli/diagnose_me/utility.py | omarzouk/pipelines | f77ebc879741d4f5f5a6b7eede6d996788df3a45 | [
"Apache-2.0"
] | 1 | 2020-02-06T12:53:44.000Z | 2020-02-06T12:53:44.000Z | sdk/python/kfp/cli/diagnose_me/utility.py | omarzouk/pipelines | f77ebc879741d4f5f5a6b7eede6d996788df3a45 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 The Kubeflow Authors. All Rights Reserved.
#
# Licensed under the Apache License,Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable... | 34.67033 | 84 | 0.666244 | 404 | 3,155 | 5.096535 | 0.450495 | 0.02914 | 0.031083 | 0.015542 | 0.032054 | 0.032054 | 0 | 0 | 0 | 0 | 0 | 0.005152 | 0.261807 | 3,155 | 90 | 85 | 35.055556 | 0.878918 | 0.524247 | 0 | 0.216216 | 0 | 0 | 0.007429 | 0 | 0 | 0 | 0 | 0.033333 | 0 | 1 | 0.162162 | false | 0 | 0.081081 | 0.027027 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
13bec929ce8e163a7b12a208d442a7df7617a5e9 | 1,291 | py | Python | aria/parser/reading/exceptions.py | tnadeau/incubator-ariatosca | de32028783969bc980144afa3c91061c7236459c | [
"Apache-2.0"
] | null | null | null | aria/parser/reading/exceptions.py | tnadeau/incubator-ariatosca | de32028783969bc980144afa3c91061c7236459c | [
"Apache-2.0"
] | null | null | null | aria/parser/reading/exceptions.py | tnadeau/incubator-ariatosca | de32028783969bc980144afa3c91061c7236459c | [
"Apache-2.0"
] | 1 | 2020-06-16T15:13:06.000Z | 2020-06-16T15:13:06.000Z | # Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the Li... | 33.102564 | 84 | 0.711851 | 164 | 1,291 | 5.542683 | 0.560976 | 0.066007 | 0.028603 | 0.035204 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003865 | 0.198296 | 1,291 | 38 | 85 | 33.973684 | 0.874396 | 0.474826 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.2 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
13bf6cf099a6f3262d674ebcb6ce1eefb6dc598b | 4,687 | py | Python | src/onedrivesdk/error.py | meson800/onedrive-sdk-python | e5642f8cad8eea37a4f653c1a23dfcfc06c37110 | [
"MIT"
] | 912 | 2015-10-08T18:52:13.000Z | 2022-03-29T10:54:40.000Z | src/onedrivesdk/error.py | lavrut/onedrive-sdk-python | e5642f8cad8eea37a4f653c1a23dfcfc06c37110 | [
"MIT"
] | 189 | 2015-10-08T20:11:21.000Z | 2022-01-27T23:24:17.000Z | src/onedrivesdk/error.py | lavrut/onedrive-sdk-python | e5642f8cad8eea37a4f653c1a23dfcfc06c37110 | [
"MIT"
] | 205 | 2015-10-09T10:28:16.000Z | 2022-03-15T11:58:41.000Z | '''
------------------------------------------------------------------------------
Copyright (c) 2015 Microsoft Corporation
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction,... | 36.617188 | 122 | 0.657777 | 544 | 4,687 | 5.579044 | 0.369485 | 0.039539 | 0.019769 | 0.022405 | 0.048105 | 0.034926 | 0.034926 | 0.034926 | 0.034926 | 0.034926 | 0 | 0.002819 | 0.243226 | 4,687 | 127 | 123 | 36.905512 | 0.852833 | 0.551312 | 0 | 0.121951 | 0 | 0 | 0.183243 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.121951 | false | 0 | 0.02439 | 0 | 0.707317 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
13c40ae040e808b9b9c914b83a3f4a008ceaaaac | 1,990 | py | Python | au-zone/nnef_converter/caffe2/protobufs/caffe2/proto/caffe2_legacy_pb2.py | asdor/NNEF-Tools | e84c3db29c1bffbd1938d40a10765badc0848606 | [
"Apache-2.0"
] | null | null | null | au-zone/nnef_converter/caffe2/protobufs/caffe2/proto/caffe2_legacy_pb2.py | asdor/NNEF-Tools | e84c3db29c1bffbd1938d40a10765badc0848606 | [
"Apache-2.0"
] | null | null | null | au-zone/nnef_converter/caffe2/protobufs/caffe2/proto/caffe2_legacy_pb2.py | asdor/NNEF-Tools | e84c3db29c1bffbd1938d40a10765badc0848606 | [
"Apache-2.0"
] | null | null | null | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: caffe2/proto/caffe2_legacy.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf.internal import enum_type_wrapper
from google.protobuf import descriptor as _descriptor
from google.protobuf i... | 29.264706 | 242 | 0.759296 | 261 | 1,990 | 5.582375 | 0.417625 | 0.041181 | 0.074125 | 0.082361 | 0.211393 | 0.107069 | 0.107069 | 0 | 0 | 0 | 0 | 0.053087 | 0.129146 | 1,990 | 67 | 243 | 29.701493 | 0.787651 | 0.085427 | 0 | 0.254902 | 1 | 0.019608 | 0.193388 | 0.13719 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.137255 | 0 | 0.137255 | 0 | 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 |
13c7ea367231350c909d49b5ce402a12b6cbd2ab | 3,914 | py | Python | handle.py | zhuangdx/timer_deleter | d2720cd9a87dc8c8ec2d811a592a0b855365b95e | [
"MIT"
] | null | null | null | handle.py | zhuangdx/timer_deleter | d2720cd9a87dc8c8ec2d811a592a0b855365b95e | [
"MIT"
] | null | null | null | handle.py | zhuangdx/timer_deleter | d2720cd9a87dc8c8ec2d811a592a0b855365b95e | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# @Time : 2018/10/31 16:32
# @Author : duoxuan·zhuang
# @File : handle.py
"""
从配置文件读取指定路径,删除超过时间的过期指定类型文件 (适用于linux)
逻辑:
1.读取配置文件---多个路径
2.遍历路径,读取类型,时间
3.获取过期文件数量-删除文件
4.获取空文件夹数量-删除空文件夹
"""
import datetime
import json
import logging
import logging.config
import os... | 25.75 | 81 | 0.618293 | 549 | 3,914 | 4.112933 | 0.295082 | 0.039858 | 0.062002 | 0.039858 | 0.255536 | 0.147033 | 0.08326 | 0.062888 | 0.062888 | 0.033658 | 0 | 0.013027 | 0.254727 | 3,914 | 151 | 82 | 25.92053 | 0.76037 | 0.040368 | 0 | 0.114943 | 0 | 0 | 0.083284 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.08046 | 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 |
13cf98cdfb684ecd81ccb6dc5270d275853093cc | 5,209 | py | Python | TriggerEfficiency/efficiency_analyzer/core.py | adewit/METStudies2017 | 0843828846a19fa2eae9c9beaad37a52a187d9f5 | [
"MIT"
] | null | null | null | TriggerEfficiency/efficiency_analyzer/core.py | adewit/METStudies2017 | 0843828846a19fa2eae9c9beaad37a52a187d9f5 | [
"MIT"
] | null | null | null | TriggerEfficiency/efficiency_analyzer/core.py | adewit/METStudies2017 | 0843828846a19fa2eae9c9beaad37a52a187d9f5 | [
"MIT"
] | 1 | 2019-03-13T15:45:21.000Z | 2019-03-13T15:45:21.000Z | import os
import subprocess
import sys
import time
from .htcondor.dag import DAG
from .utils.dbs import get_file_records_from_dbs
from .utils.os import safe_makedirs
from .utils.xrootd import xrdfs_locate_root_files
class EfficiencyAnalyzerError(Exception):
pass
class EfficiencyAnalyzer(DAG):
"""An interfa... | 43.408333 | 157 | 0.634287 | 638 | 5,209 | 5.012539 | 0.327586 | 0.020638 | 0.025016 | 0.030019 | 0.127267 | 0.053158 | 0.020638 | 0.020638 | 0 | 0 | 0 | 0.004278 | 0.282012 | 5,209 | 119 | 158 | 43.773109 | 0.850802 | 0.036283 | 0 | 0.057692 | 0 | 0 | 0.182344 | 0.066932 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.019231 | 0.153846 | null | null | 0.038462 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
13d2f20b51e9bcc4d7a94a2a38a8477d951609da | 3,898 | py | Python | utest/test_templates/test_lists.py | wuyonghong/Rammbock-python3 | d882540ea71aef4759abfcd33578605e63f2b2f8 | [
"Apache-2.0"
] | null | null | null | utest/test_templates/test_lists.py | wuyonghong/Rammbock-python3 | d882540ea71aef4759abfcd33578605e63f2b2f8 | [
"Apache-2.0"
] | null | null | null | utest/test_templates/test_lists.py | wuyonghong/Rammbock-python3 | d882540ea71aef4759abfcd33578605e63f2b2f8 | [
"Apache-2.0"
] | null | null | null | from unittest import TestCase
from Rammbock.templates.primitives import UInt, PDU
from Rammbock.binary_tools import to_bin
from .tools import *
class TestListTemplate(TestCase):
def test_create_list(self):
list = get_list_of_three()
self.assertEqual(list.name, 'topthree')
self.assertEqual... | 35.117117 | 93 | 0.609287 | 524 | 3,898 | 4.335878 | 0.175573 | 0.198063 | 0.116197 | 0.043134 | 0.488996 | 0.328345 | 0.241197 | 0.213908 | 0.213908 | 0.213908 | 0 | 0.069495 | 0.23217 | 3,898 | 110 | 94 | 35.436364 | 0.689609 | 0 | 0 | 0.202703 | 0 | 0 | 0.060853 | 0 | 0 | 0 | 0.002804 | 0 | 0.418919 | 1 | 0.175676 | false | 0 | 0.054054 | 0 | 0.243243 | 0.040541 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
13d33f4aafe46941f9914c6f346c89f8a1d86535 | 895 | py | Python | src/classes/point.py | BoaVaga/boavaga_server | 7d25a68832d3b9f4f5666d0a3d55c99025498511 | [
"MIT"
] | null | null | null | src/classes/point.py | BoaVaga/boavaga_server | 7d25a68832d3b9f4f5666d0a3d55c99025498511 | [
"MIT"
] | null | null | null | src/classes/point.py | BoaVaga/boavaga_server | 7d25a68832d3b9f4f5666d0a3d55c99025498511 | [
"MIT"
] | null | null | null | from decimal import Decimal
from typing import Union
class Point:
def __init__(self, x: Union[Decimal, float, str], y: Union[Decimal, float, str]):
self.x = x if isinstance(x, Decimal) else Decimal(x)
self.y = y if isinstance(y, Decimal) else Decimal(y)
def __str__(self):
return f'POI... | 27.121212 | 85 | 0.576536 | 122 | 895 | 4.122951 | 0.344262 | 0.039761 | 0.067594 | 0.079523 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004739 | 0.292737 | 895 | 32 | 86 | 27.96875 | 0.789889 | 0 | 0 | 0 | 0 | 0 | 0.063687 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.173913 | false | 0 | 0.086957 | 0.043478 | 0.565217 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
13d4940f9f4a4eaac8139c0a1133835f09683a3f | 666 | py | Python | pyserial_led/layout/strip.py | praxist/pyserial-led-controller | 7cdd5a84db4b4ccf5f8dcc8a976ce8314c9ac146 | [
"MIT"
] | null | null | null | pyserial_led/layout/strip.py | praxist/pyserial-led-controller | 7cdd5a84db4b4ccf5f8dcc8a976ce8314c9ac146 | [
"MIT"
] | null | null | null | pyserial_led/layout/strip.py | praxist/pyserial-led-controller | 7cdd5a84db4b4ccf5f8dcc8a976ce8314c9ac146 | [
"MIT"
] | null | null | null | import serial
from time import sleep
from functools import reduce
class Strip:
def __init__(self, device, num_leds, code):
self.num_leds = num_leds
self.leds = [bytearray([0, 0, 0])] * num_leds
self.code = bytearray(code.encode())
self.ser = serial.Serial(device, 500000)
s... | 22.965517 | 75 | 0.581081 | 98 | 666 | 3.836735 | 0.397959 | 0.093085 | 0.087766 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033195 | 0.276276 | 666 | 28 | 76 | 23.785714 | 0.746888 | 0 | 0 | 0.105263 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0 | 0.157895 | 0 | 0.421053 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
13d5191056b70ff085dc246dd7e6c8b87f0ccc46 | 1,956 | py | Python | Example/1-example-pi-pulse.py | baidu/Quanlse | f84a9afc66a7a404fc1ee2ea0de110f966491279 | [
"Apache-2.0"
] | 33 | 2021-01-22T11:15:32.000Z | 2022-03-18T06:04:42.000Z | Example/1-example-pi-pulse.py | baidu/Quanlse | f84a9afc66a7a404fc1ee2ea0de110f966491279 | [
"Apache-2.0"
] | null | null | null | Example/1-example-pi-pulse.py | baidu/Quanlse | f84a9afc66a7a404fc1ee2ea0de110f966491279 | [
"Apache-2.0"
] | 5 | 2021-01-25T02:56:06.000Z | 2022-02-04T13:32:49.000Z | #!/usr/bin/python3
# -*- coding: utf8 -*-
# Copyright (c) 2021 Baidu, Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE... | 27.942857 | 99 | 0.683538 | 265 | 1,956 | 5.045283 | 0.550943 | 0.044877 | 0.019447 | 0.023934 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013839 | 0.150307 | 1,956 | 69 | 100 | 28.347826 | 0.790614 | 0.659509 | 0 | 0 | 0 | 0 | 0.028662 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.352941 | 0 | 0.352941 | 0.117647 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
13d5ecef40a1c85db0939bf57e5550fa4b1cefba | 77,879 | py | Python | pysodium/__init__.py | AbsurdlySuspicious/pysodium | d0bbebb7ab5274a2fc3201357f63045a9994bdf9 | [
"BSD-2-Clause"
] | null | null | null | pysodium/__init__.py | AbsurdlySuspicious/pysodium | d0bbebb7ab5274a2fc3201357f63045a9994bdf9 | [
"BSD-2-Clause"
] | null | null | null | pysodium/__init__.py | AbsurdlySuspicious/pysodium | d0bbebb7ab5274a2fc3201357f63045a9994bdf9 | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python2
"""
Wrapper for libsodium library
Copyright (c) 2013-2014, Marsiske Stefan.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must retain the a... | 54.883016 | 298 | 0.735102 | 9,849 | 77,879 | 5.49406 | 0.04437 | 0.049454 | 0.042099 | 0.041692 | 0.800577 | 0.678272 | 0.629743 | 0.592837 | 0.567648 | 0.535991 | 0 | 0.036569 | 0.182578 | 77,879 | 1,418 | 299 | 54.921721 | 0.813431 | 0.206782 | 0 | 0.458375 | 0 | 0 | 0.058998 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.106319 | false | 0.036108 | 0.003009 | 0.001003 | 0.210632 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 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 |
13d6fc8b199e22dca23afb5ddfbc9cb822b714af | 4,340 | py | Python | backend/migrations/0001_initial.py | HumanResourceMachine/hrm | 904ee7f609dc39d3095ca457f46896b50f4b7678 | [
"Apache-2.0"
] | 1 | 2018-06-05T07:29:38.000Z | 2018-06-05T07:29:38.000Z | backend/migrations/0001_initial.py | HumanResourceMachine/hrm | 904ee7f609dc39d3095ca457f46896b50f4b7678 | [
"Apache-2.0"
] | null | null | null | backend/migrations/0001_initial.py | HumanResourceMachine/hrm | 904ee7f609dc39d3095ca457f46896b50f4b7678 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 2.0.5 on 2018-06-01 15:35
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='apply',
... | 40.185185 | 116 | 0.56129 | 411 | 4,340 | 5.80292 | 0.192214 | 0.040252 | 0.06457 | 0.101468 | 0.739203 | 0.692662 | 0.612998 | 0.612998 | 0.49392 | 0.49392 | 0 | 0.012787 | 0.297235 | 4,340 | 107 | 117 | 40.560748 | 0.76918 | 0.010369 | 0 | 0.54 | 1 | 0 | 0.110179 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.01 | 0.03 | 0 | 0.07 | 0 | 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 |
13d9a3016187f16bb2cf3d4856423cf7ca5ad91e | 897 | py | Python | tests/integration/projects/fastai2/service.py | jmc529/BentoML | 96c1ec9e486d98930e24bbbac5b2991a6d416f97 | [
"Apache-2.0"
] | null | null | null | tests/integration/projects/fastai2/service.py | jmc529/BentoML | 96c1ec9e486d98930e24bbbac5b2991a6d416f97 | [
"Apache-2.0"
] | null | null | null | tests/integration/projects/fastai2/service.py | jmc529/BentoML | 96c1ec9e486d98930e24bbbac5b2991a6d416f97 | [
"Apache-2.0"
] | null | null | null | import pathlib
import sys
import numpy as np
import bentoml
from bentoml.adapters import DataframeInput
from bentoml.fastai import FastaiModelArtifact
@bentoml.env(infer_pip_packages=True)
@bentoml.artifacts([FastaiModelArtifact("model")])
class FastaiClassifier(bentoml.BentoService):
@bentoml.api(input=Datafra... | 27.181818 | 79 | 0.74359 | 114 | 897 | 5.614035 | 0.526316 | 0.042188 | 0.060938 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005249 | 0.150502 | 897 | 32 | 80 | 28.03125 | 0.834646 | 0.039019 | 0 | 0 | 0 | 0 | 0.015134 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.318182 | 0 | 0.454545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
13dbae4f656cfde08a31ebba7a0f1486f9540feb | 576 | py | Python | modeling/search_spaces/__init__.py | czyczyyzc/GATES | 53e2e45d6cd3ec3af1f9389f30bc34c9b04265fa | [
"MIT"
] | null | null | null | modeling/search_spaces/__init__.py | czyczyyzc/GATES | 53e2e45d6cd3ec3af1f9389f30bc34c9b04265fa | [
"MIT"
] | null | null | null | modeling/search_spaces/__init__.py | czyczyyzc/GATES | 53e2e45d6cd3ec3af1f9389f30bc34c9b04265fa | [
"MIT"
] | null | null | null | from __future__ import print_function, absolute_import
from .nasbench_101 import NasBench101SearchSpace
__factory = {
'nasbench_101': NasBench101SearchSpace
}
def names():
return sorted(__factory.keys())
def create(name, root, *args, **kwargs):
"""
Create a dataset instance.
Parameters
-... | 19.862069 | 54 | 0.652778 | 64 | 576 | 5.625 | 0.59375 | 0.066667 | 0.066667 | 0.1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027397 | 0.239583 | 576 | 28 | 55 | 20.571429 | 0.794521 | 0.237847 | 0 | 0 | 0 | 0 | 0.082707 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.181818 | 0.090909 | 0.545455 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 |
13de11e85aa8badeace5d91f959a62f319dec6c6 | 6,643 | py | Python | senet_train.py | sanghuynh1501/speech_denoising_tensorflow | b07b96871af88d4bcc055286dd2e379c0cb612d5 | [
"MIT"
] | 184 | 2018-08-01T02:02:03.000Z | 2022-01-25T11:31:53.000Z | senet_train.py | ashnashahgrover/SpeechDenoisingWithDeepFeatureLosses | 767a0cd0ccd932171a4d66f5f4d233ff192fe0e6 | [
"MIT"
] | 19 | 2018-11-09T07:06:23.000Z | 2021-03-12T09:09:02.000Z | senet_train.py | ashnashahgrover/SpeechDenoisingWithDeepFeatureLosses | 767a0cd0ccd932171a4d66f5f4d233ff192fe0e6 | [
"MIT"
] | 55 | 2018-07-24T14:36:48.000Z | 2022-01-25T11:31:42.000Z | from model import *
from data_import import *
import sys, getopt
# SPEECH ENHANCEMENT NETWORK
SE_LAYERS = 13 # NUMBER OF INTERNAL LAYERS
SE_CHANNELS = 64 # NUMBER OF FEATURE CHANNELS PER LAYER
SE_LOSS_LAYERS = 6 # NUMBER OF FEATURE LOSS LAYERS
SE_NORM = "NM" # TYPE OF LAYER NORMALIZATION (NM, SBN or None)
SE_LOSS_TYP... | 35.715054 | 131 | 0.607858 | 893 | 6,643 | 4.356103 | 0.227324 | 0.032391 | 0.028278 | 0.027764 | 0.429049 | 0.393316 | 0.341388 | 0.311568 | 0.243188 | 0.20617 | 0 | 0.016418 | 0.202318 | 6,643 | 185 | 132 | 35.908108 | 0.717683 | 0.155653 | 0 | 0.214876 | 0 | 0.016529 | 0.112627 | 0.006041 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.024793 | null | null | 0.07438 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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 |
13e562f75ed63147146e5f5bb415ce6b850eab23 | 410 | py | Python | examples/move_example.py | willdickson/rockaflly_grbl | 97f2de51bc0ea4fd700e0a25439faf27a2f95f9e | [
"MIT"
] | 1 | 2021-06-23T06:07:24.000Z | 2021-06-23T06:07:24.000Z | examples/move_example.py | willdickson/rockafly_grbl | 97f2de51bc0ea4fd700e0a25439faf27a2f95f9e | [
"MIT"
] | null | null | null | examples/move_example.py | willdickson/rockafly_grbl | 97f2de51bc0ea4fd700e0a25439faf27a2f95f9e | [
"MIT"
] | null | null | null | from __future__ import print_function
from rockafly_grbl import RockaflyGrbl
import time
param = {
'port' : '/dev/ttyUSB0',
'baudrate' : 115200,
'step_per_rev' : 4000,
}
dev = RockaflyGrbl(param)
print('pos: {}'.format(dev.position))
dev.move_to(90, 20)
print('pos: ... | 14.642857 | 41 | 0.609756 | 50 | 410 | 4.8 | 0.54 | 0.1 | 0.175 | 0.2125 | 0.404167 | 0.404167 | 0.283333 | 0.283333 | 0 | 0 | 0 | 0.057508 | 0.236585 | 410 | 27 | 42 | 15.185185 | 0.709265 | 0 | 0 | 0.214286 | 0 | 0 | 0.140741 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.214286 | 0 | 0.214286 | 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 |
13e63502b36a3c1fb7637267565c97ba547a5975 | 578 | py | Python | core/site/forms.py | jlin/inventory | c098c98e570c3bf9fadfd811eb75e1213f6ea428 | [
"BSD-3-Clause"
] | 22 | 2015-01-16T01:36:32.000Z | 2020-06-08T00:46:18.000Z | core/site/forms.py | jlin/inventory | c098c98e570c3bf9fadfd811eb75e1213f6ea428 | [
"BSD-3-Clause"
] | 8 | 2015-12-28T18:56:19.000Z | 2019-04-01T17:33:48.000Z | core/site/forms.py | jlin/inventory | c098c98e570c3bf9fadfd811eb75e1213f6ea428 | [
"BSD-3-Clause"
] | 13 | 2015-01-13T20:56:22.000Z | 2022-02-23T06:01:17.000Z | from django import forms
from django.core.exceptions import ValidationError
from core.site.models import Site
class SiteForm(forms.ModelForm):
full_name = forms.CharField()
class Meta:
model = Site
include = ('full_name',)
exclude = ('parent', 'name')
def validate_unique(self):
... | 26.272727 | 71 | 0.636678 | 68 | 578 | 5.176471 | 0.514706 | 0.090909 | 0.136364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.264706 | 578 | 21 | 72 | 27.52381 | 0.828235 | 0 | 0 | 0 | 0 | 0 | 0.076125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.1875 | 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 |
13e810afa278f1e228ad340022150fdbf0910ed3 | 315 | py | Python | web-app/jogoteca.py | brunocozendey/Pythonplayground | 41257c5010274f7964b3f72a2d00513ddf8ad3c1 | [
"MIT"
] | null | null | null | web-app/jogoteca.py | brunocozendey/Pythonplayground | 41257c5010274f7964b3f72a2d00513ddf8ad3c1 | [
"MIT"
] | null | null | null | web-app/jogoteca.py | brunocozendey/Pythonplayground | 41257c5010274f7964b3f72a2d00513ddf8ad3c1 | [
"MIT"
] | null | null | null | from flask import Flask
from flask_mysqldb import MySQL
import os
app = Flask(__name__)
app.config.from_pyfile('config.py')
db = MySQL(app)
from views import *
if __name__ == '__main__': #Faz com que só execute esse if se esse arquivo for execcutado diretamente
app.run(host='0.0.0.0', port=8080, debug=True) | 26.25 | 101 | 0.746032 | 53 | 315 | 4.169811 | 0.622642 | 0.027149 | 0.027149 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029851 | 0.149206 | 315 | 12 | 102 | 26.25 | 0.794776 | 0.231746 | 0 | 0 | 0 | 0 | 0.099174 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.444444 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 |
13eb408b69c2f6c0d56e27536c19aea01e62c440 | 729 | py | Python | conpaas-services/scripts/manager/notify_git_push.py | bopopescu/conpaas-2 | 0141a11b67b14757f445b44613ea79819b9c2eaf | [
"BSD-3-Clause"
] | 5 | 2016-02-24T14:44:03.000Z | 2020-11-29T19:18:40.000Z | conpaas-services/scripts/manager/notify_git_push.py | bopopescu/conpaas-2 | 0141a11b67b14757f445b44613ea79819b9c2eaf | [
"BSD-3-Clause"
] | 25 | 2015-03-23T16:05:19.000Z | 2018-02-13T17:22:22.000Z | conpaas-services/scripts/manager/notify_git_push.py | bopopescu/conpaas-2 | 0141a11b67b14757f445b44613ea79819b9c2eaf | [
"BSD-3-Clause"
] | 2 | 2015-11-06T15:16:09.000Z | 2020-07-26T03:18:03.000Z | #!/usr/bin/env python
import simplejson
from conpaas.core.https import client
def main():
client.conpaas_init_ssl_ctx('/etc/cpsmanager/certs', 'user')
method = 'git_push_hook'
manager_ip = '127.0.0.1'
res = client.jsonrpc_post(manager_ip, 443, '/', method)
if res[0] == 200:
try:
... | 24.3 | 75 | 0.596708 | 99 | 729 | 4.222222 | 0.626263 | 0.064593 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031955 | 0.270233 | 729 | 29 | 76 | 25.137931 | 0.753759 | 0.076818 | 0 | 0 | 0 | 0 | 0.174367 | 0.031297 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.111111 | null | null | 0.055556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
13f2821ee4d32f23d26b6bd7cc8bd99bbd53c119 | 701 | py | Python | launch_error_1.py | TheBigCharles/Saviour | 69ab5adae824157f04847bbe0568184583167258 | [
"MIT"
] | 3 | 2020-09-27T05:56:26.000Z | 2021-04-13T13:28:55.000Z | launch_error_1.py | TheBigCharles/Saviour | 69ab5adae824157f04847bbe0568184583167258 | [
"MIT"
] | null | null | null | launch_error_1.py | TheBigCharles/Saviour | 69ab5adae824157f04847bbe0568184583167258 | [
"MIT"
] | null | null | null | import smtplib
from email.mime.text import MIMEText
from email.mime.image import MIMEImage
from email.mime.multipart import MIMEMultipart
from email.mime.application import MIMEApplication
fromaddr = 'felix_test_mail@yeah.net'
password = 'test223'
toaddrs = ['felix_test_mail@yeah.net']
content = 'Sorry, there is ... | 19.472222 | 71 | 0.727532 | 87 | 701 | 5.804598 | 0.551724 | 0.071287 | 0.10297 | 0.067327 | 0.079208 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005137 | 0.166904 | 701 | 36 | 72 | 19.472222 | 0.859589 | 0 | 0 | 0 | 0 | 0 | 0.217949 | 0.068376 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.15 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 |
13f4c08282440cc91aca19f84892340588bc7776 | 8,563 | py | Python | manager/cached_templates/templates/base_emp.htm.py | jordancarlson08/MyStuff | 4f4f6fdd298ce00e4a1f8a4621aaf94c0ccdb773 | [
"Apache-2.0"
] | null | null | null | manager/cached_templates/templates/base_emp.htm.py | jordancarlson08/MyStuff | 4f4f6fdd298ce00e4a1f8a4621aaf94c0ccdb773 | [
"Apache-2.0"
] | null | null | null | manager/cached_templates/templates/base_emp.htm.py | jordancarlson08/MyStuff | 4f4f6fdd298ce00e4a1f8a4621aaf94c0ccdb773 | [
"Apache-2.0"
] | null | null | null | # -*- coding:ascii -*-
from mako import runtime, filters, cache
UNDEFINED = runtime.UNDEFINED
__M_dict_builtin = dict
__M_locals_builtin = locals
_magic_number = 9
_modified_time = 1396928451.622646
_enable_loop = True
_template_filename = 'C:\\Users\\Jordan Carlson\\Desktop\\MyStuff\\manager\\templates/base_emp.htm'
_... | 74.46087 | 5,012 | 0.533224 | 1,054 | 8,563 | 4.166034 | 0.148956 | 0.042359 | 0.056935 | 0.045548 | 0.714644 | 0.67274 | 0.593714 | 0.583694 | 0.552949 | 0.537691 | 0 | 0.007555 | 0.304449 | 8,563 | 114 | 5,013 | 75.114035 | 0.729684 | 0.014364 | 0 | 0.52381 | 0 | 0.107143 | 0.576581 | 0.134536 | 0 | 0 | 0 | 0 | 0 | 1 | 0.178571 | false | 0.011905 | 0.02381 | 0.095238 | 0.380952 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
13f5485202673c6ace6f183eb522621d2f13bbb1 | 6,641 | py | Python | src/tools/android/loading/dependency_graph.py | bopopescu/MQUIC | 703e944ec981366cfd2528943b1def2c72b7e49d | [
"MIT"
] | 1 | 2018-01-02T15:42:08.000Z | 2018-01-02T15:42:08.000Z | src/tools/android/loading/dependency_graph.py | bopopescu/MQUIC | 703e944ec981366cfd2528943b1def2c72b7e49d | [
"MIT"
] | null | null | null | src/tools/android/loading/dependency_graph.py | bopopescu/MQUIC | 703e944ec981366cfd2528943b1def2c72b7e49d | [
"MIT"
] | 1 | 2020-07-25T02:05:49.000Z | 2020-07-25T02:05:49.000Z | # Copyright 2016 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Request dependency graph."""
import logging
import sys
import graph
import request_track
class _RequestNode(graph.Node):
def __init__(self, request)... | 39.529762 | 80 | 0.695678 | 945 | 6,641 | 4.651852 | 0.259259 | 0.032757 | 0.029572 | 0.028662 | 0.157643 | 0.131938 | 0.096224 | 0.074158 | 0.068016 | 0.040036 | 0 | 0.002343 | 0.228881 | 6,641 | 167 | 81 | 39.766467 | 0.856083 | 0.364102 | 0 | 0.096774 | 0 | 0 | 0.036219 | 0 | 0 | 0 | 0 | 0.011976 | 0.021505 | 1 | 0.086022 | false | 0 | 0.043011 | 0 | 0.225806 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
13f720dfc301e2432526ef529523be1b03b8387d | 3,365 | py | Python | apps/article/serializers.py | hashqueue/drf_vue_blog | cd36412135373faa555e9a90fae5fc491c67f12b | [
"MIT"
] | null | null | null | apps/article/serializers.py | hashqueue/drf_vue_blog | cd36412135373faa555e9a90fae5fc491c67f12b | [
"MIT"
] | null | null | null | apps/article/serializers.py | hashqueue/drf_vue_blog | cd36412135373faa555e9a90fae5fc491c67f12b | [
"MIT"
] | null | null | null | """w created serializers.py at 2021/9/3 下午12:12"""
from rest_framework import serializers
from drf_spectacular.utils import extend_schema_field, OpenApiTypes
from tag.models import Tag
from utils.drf_utils.base_model_serializer import BaseHyperlinkedModelSerializer, BaseModelSerializer
from .models import Article
cla... | 38.238636 | 120 | 0.653789 | 357 | 3,365 | 6 | 0.392157 | 0.033613 | 0.048553 | 0.040616 | 0.362278 | 0.321195 | 0.321195 | 0.285714 | 0.285714 | 0.285714 | 0 | 0.004779 | 0.253789 | 3,365 | 87 | 121 | 38.678161 | 0.848268 | 0.22734 | 0 | 0.382979 | 0 | 0 | 0.067957 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.06383 | false | 0 | 0.106383 | 0 | 0.553191 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
13f85aeb78894661b414433ab11afccf52782a3f | 3,374 | py | Python | snsynth/pytorch/pytorch_synthesizer.py | shlomihod/smartnoise-sdk-synth | cc143390d96f3dd8b3af365094f969dfea0d4f0b | [
"MIT"
] | 56 | 2021-02-21T19:45:47.000Z | 2022-03-20T16:45:56.000Z | snsynth/pytorch/pytorch_synthesizer.py | shlomihod/smartnoise-sdk-synth | cc143390d96f3dd8b3af365094f969dfea0d4f0b | [
"MIT"
] | 87 | 2021-02-20T20:43:49.000Z | 2022-03-31T16:24:46.000Z | snsynth/pytorch/pytorch_synthesizer.py | shlomihod/smartnoise-sdk-synth | cc143390d96f3dd8b3af365094f969dfea0d4f0b | [
"MIT"
] | 17 | 2021-02-18T18:47:09.000Z | 2022-03-01T06:44:17.000Z | from functools import wraps
import numpy as np
import pandas as pd
import warnings
from snsynth.preprocessors.preprocessing import GeneralTransformer
from snsynth.base import SDGYMBaseSynthesizer
class PytorchDPSynthesizer(SDGYMBaseSynthesizer):
def __init__(self, epsilon, gan, preprocessor=None):
"""
... | 37.910112 | 95 | 0.643746 | 366 | 3,374 | 5.773224 | 0.327869 | 0.046853 | 0.035495 | 0.060577 | 0.12778 | 0.076668 | 0.047326 | 0.047326 | 0 | 0 | 0 | 0.000414 | 0.284529 | 3,374 | 88 | 96 | 38.340909 | 0.874896 | 0.123592 | 0 | 0.04918 | 0 | 0 | 0.099757 | 0 | 0 | 0 | 0 | 0.011364 | 0 | 1 | 0.081967 | false | 0 | 0.098361 | 0 | 0.262295 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
b925419e5c55919dce8909be19d57b4be424dec4 | 5,526 | py | Python | job_title_processing/ressources_txt/FR/cleaner/location.py | OnlineJobVacanciesESSnetBigData/JobTitleProcessing_FR | d5cf340e1a57d84562705a92b213333875be21f7 | [
"MIT"
] | 3 | 2020-10-25T17:44:50.000Z | 2021-12-11T22:28:18.000Z | job_title_processing/ressources_txt/FR/cleaner/location.py | OnlineJobVacanciesESSnetBigData/JobTitleProcessing_FR | d5cf340e1a57d84562705a92b213333875be21f7 | [
"MIT"
] | null | null | null | job_title_processing/ressources_txt/FR/cleaner/location.py | OnlineJobVacanciesESSnetBigData/JobTitleProcessing_FR | d5cf340e1a57d84562705a92b213333875be21f7 | [
"MIT"
] | 1 | 2020-11-19T12:44:25.000Z | 2020-11-19T12:44:25.000Z | # -*- coding: utf-8 -*-
loc_departments = [
"Ain","Aisne","Allier","Alpes de Hautes-Provence", "Hautes-Alpes",
"Alpes-Maritimes","Ardèche","Ardennes","Ariège", "Aube","Aude",
"Aveyron","Bouches-du-Rhône","Calvados","Cantal", "Charente",
"Charente-Maritime","Cher","Corrèze","Corse-du-Sud", "Haute-Co... | 56.969072 | 82 | 0.628664 | 591 | 5,526 | 5.86802 | 0.708968 | 0.007209 | 0.006344 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000212 | 0.14477 | 5,526 | 96 | 83 | 57.5625 | 0.733601 | 0.011763 | 0 | 0 | 0 | 0 | 0.65219 | 0.00843 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b929bf54adb02e41b876b37c7683b65526cf51cf | 2,859 | py | Python | pykeg/core/admin.py | theshiv303/kegbot-server | 425b0f8779e0d97aa6ca032b29b2623d693f9fd4 | [
"MIT"
] | 75 | 2015-01-12T22:51:20.000Z | 2022-02-23T02:09:50.000Z | pykeg/core/admin.py | theshiv303/kegbot-server | 425b0f8779e0d97aa6ca032b29b2623d693f9fd4 | [
"MIT"
] | 83 | 2015-01-03T19:04:46.000Z | 2021-07-11T19:06:39.000Z | pykeg/core/admin.py | theshiv303/kegbot-server | 425b0f8779e0d97aa6ca032b29b2623d693f9fd4 | [
"MIT"
] | 66 | 2015-01-05T01:55:06.000Z | 2021-11-27T17:07:24.000Z | """Django admin site settings for core models."""
from django.contrib import admin
from pykeg.core import models
from pykeg.core.util import CtoF
class UserAdmin(admin.ModelAdmin):
list_display = (
"username",
"email",
"date_joined",
"last_login",
"is_active",
"is_... | 24.02521 | 93 | 0.704442 | 327 | 2,859 | 5.972477 | 0.278287 | 0.078341 | 0.139273 | 0.188428 | 0.223758 | 0.026626 | 0 | 0 | 0 | 0 | 0 | 0.000819 | 0.145855 | 2,859 | 118 | 94 | 24.228814 | 0.798935 | 0.01504 | 0 | 0 | 0 | 0 | 0.160498 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.030303 | false | 0 | 0.045455 | 0.030303 | 0.636364 | 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 |
b92a4ce9405408273db0ab27c756c7d0b2ec1738 | 396 | py | Python | AT/migrations/0008_atcontext_current_step.py | seakers/daphne-brain | 1d703d468cd503a21395f986dd72e67b6e556451 | [
"MIT"
] | null | null | null | AT/migrations/0008_atcontext_current_step.py | seakers/daphne-brain | 1d703d468cd503a21395f986dd72e67b6e556451 | [
"MIT"
] | null | null | null | AT/migrations/0008_atcontext_current_step.py | seakers/daphne-brain | 1d703d468cd503a21395f986dd72e67b6e556451 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.8 on 2020-02-12 16:59
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('AT', '0007_remove_atcontext_current_step'),
]
operations = [
migrations.AddField(
model_name='atcontext',
name='curr... | 20.842105 | 53 | 0.603535 | 42 | 396 | 5.547619 | 0.761905 | 0.094421 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 0.280303 | 396 | 18 | 54 | 22 | 0.750877 | 0.113636 | 0 | 0 | 1 | 0 | 0.163324 | 0.097421 | 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 |
b92f2b7f7d836101a765ccee5d04eb323c6bdcc4 | 758 | py | Python | s3prl/upstream/wav2vec2_hug/hubconf.py | voidful/s3prl | 78cd91d717abf151e855a874070ef17679136e5f | [
"MIT"
] | null | null | null | s3prl/upstream/wav2vec2_hug/hubconf.py | voidful/s3prl | 78cd91d717abf151e855a874070ef17679136e5f | [
"MIT"
] | null | null | null | s3prl/upstream/wav2vec2_hug/hubconf.py | voidful/s3prl | 78cd91d717abf151e855a874070ef17679136e5f | [
"MIT"
] | null | null | null | from .expert import UpstreamExpert as _UpstreamExpert
def wav2vec2_hug(ckpt, *args, **kwargs):
"""
ckpt:
The identifier string of huggingface wav2vec2 models.
eg. facebook/wav2vec2-base-960h
see https://huggingface.co/facebook
"""
return _UpstreamExpert(ckpt, *... | 27.071429 | 65 | 0.675462 | 89 | 758 | 5.58427 | 0.370787 | 0.160966 | 0.112676 | 0.126761 | 0.412475 | 0.309859 | 0.16499 | 0.16499 | 0 | 0 | 0 | 0.061889 | 0.189974 | 758 | 27 | 66 | 28.074074 | 0.747557 | 0.183377 | 0 | 0.25 | 0 | 0 | 0.172174 | 0.151304 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.083333 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b9302ffc1ccd5cfd545d1d6b650f206acbe582c7 | 2,185 | py | Python | fixture/db.py | Nish1975/python_training | 55e9149aea2bb274b03c2aa828bfac5fd76b0ce6 | [
"Apache-2.0"
] | null | null | null | fixture/db.py | Nish1975/python_training | 55e9149aea2bb274b03c2aa828bfac5fd76b0ce6 | [
"Apache-2.0"
] | null | null | null | fixture/db.py | Nish1975/python_training | 55e9149aea2bb274b03c2aa828bfac5fd76b0ce6 | [
"Apache-2.0"
] | null | null | null | from model.group import Group
from model.contact import Contact
import mysql.connector
class DbFixture:
def __init__(self, host, name, user, password):
self.host=host
self.name=name
self.user=user
self.password=password
self.connection=mysql.connector.connect(host=host, data... | 42.019231 | 120 | 0.593593 | 236 | 2,185 | 5.440678 | 0.275424 | 0.076324 | 0.042056 | 0.046729 | 0.394081 | 0.370717 | 0.32243 | 0.32243 | 0.32243 | 0.32243 | 0 | 0.019737 | 0.304348 | 2,185 | 51 | 121 | 42.843137 | 0.825 | 0.021968 | 0 | 0.325581 | 0 | 0.046512 | 0.14105 | 0.010309 | 0 | 0 | 0 | 0 | 0 | 1 | 0.093023 | false | 0.069767 | 0.069767 | 0 | 0.232558 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b935ee3fe262416b8c110759877bea81bbe2acd9 | 3,134 | py | Python | interceptor/jobs_wrapper.py | fossabot/interceptor | c08a428520a68902807bdc095636024f6f33c413 | [
"Apache-2.0"
] | null | null | null | interceptor/jobs_wrapper.py | fossabot/interceptor | c08a428520a68902807bdc095636024f6f33c413 | [
"Apache-2.0"
] | null | null | null | interceptor/jobs_wrapper.py | fossabot/interceptor | c08a428520a68902807bdc095636024f6f33c413 | [
"Apache-2.0"
] | null | null | null | # Copyright 2018 getcarrier.io
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed t... | 46.776119 | 103 | 0.622846 | 351 | 3,134 | 5.401709 | 0.396011 | 0.102848 | 0.063291 | 0.071203 | 0.406118 | 0.406118 | 0.406118 | 0.406118 | 0.406118 | 0.406118 | 0 | 0.006634 | 0.278558 | 3,134 | 67 | 104 | 46.776119 | 0.831933 | 0.194959 | 0 | 0.409091 | 0 | 0 | 0.146848 | 0.039106 | 0 | 0 | 0 | 0 | 0 | 1 | 0.113636 | false | 0.068182 | 0.068182 | 0 | 0.295455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b93f23dff9b19d57177f387901df89061be12b1c | 3,465 | py | Python | tests.py | loganFortune/ESP | 4b1d5f2fd89aca7d531892dff757d2531f993124 | [
"MIT"
] | 1 | 2021-05-13T15:08:01.000Z | 2021-05-13T15:08:01.000Z | tests.py | loganFortune/ESP | 4b1d5f2fd89aca7d531892dff757d2531f993124 | [
"MIT"
] | null | null | null | tests.py | loganFortune/ESP | 4b1d5f2fd89aca7d531892dff757d2531f993124 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Author : LF - SM -TD
Date : 01/02/2020
"""
# Library Python Basics
import os
import matplotlib.pyplot as plt
#Library Chaos Libraries
import nolds.examples
import nolds
import PyGnuplot as gp
def test_nolds_package_service_accuracy():
print("You are testing the 'nolds' package...")
... | 36.09375 | 200 | 0.655411 | 509 | 3,465 | 4.381139 | 0.320236 | 0.033632 | 0.037668 | 0.043946 | 0.401794 | 0.363677 | 0.269058 | 0.257399 | 0.183408 | 0.183408 | 0 | 0.048596 | 0.198268 | 3,465 | 95 | 201 | 36.473684 | 0.75414 | 0.168254 | 0 | 0.233333 | 0 | 0.016667 | 0.459573 | 0.059853 | 0 | 0 | 0 | 0.010526 | 0 | 1 | 0.05 | false | 0 | 0.083333 | 0 | 0.133333 | 0.216667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 |
b94291535563c11dd994508874dd103debe60eac | 712 | py | Python | tap_github/tests/test_core.py | laurentS/tap-github-1 | 15352678f176a4d599a95d6081d8247d8a9dc7a7 | [
"Apache-2.0"
] | null | null | null | tap_github/tests/test_core.py | laurentS/tap-github-1 | 15352678f176a4d599a95d6081d8247d8a9dc7a7 | [
"Apache-2.0"
] | null | null | null | tap_github/tests/test_core.py | laurentS/tap-github-1 | 15352678f176a4d599a95d6081d8247d8a9dc7a7 | [
"Apache-2.0"
] | null | null | null | """Tests standard tap features using the built-in SDK tests library."""
import datetime
from singer_sdk.testing import get_standard_tap_tests
from tap_github.tap import TapGitHub
SAMPLE_CONFIG = {
"start_date": datetime.datetime.now(datetime.timezone.utc).strftime("%Y-%m-%d"),
"searches": [
{
... | 24.551724 | 84 | 0.674157 | 94 | 712 | 4.946809 | 0.478723 | 0.11828 | 0.137634 | 0.08172 | 0.077419 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.213483 | 712 | 28 | 85 | 25.428571 | 0.830357 | 0.292135 | 0 | 0 | 0 | 0 | 0.138211 | 0 | 0 | 0 | 0 | 0.035714 | 0 | 1 | 0.0625 | false | 0 | 0.1875 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
b943dc207f787e289c117cfca9f2e4f1fb0fa0d3 | 40,210 | py | Python | workspace/sconstools3/qt5/__init__.py | pfrydlewicz/nexxT | 33616dbeee448c59201aa3009d637fe6b8d2b39c | [
"Apache-2.0"
] | 5 | 2020-05-03T10:52:14.000Z | 2022-03-02T10:32:33.000Z | workspace/sconstools3/qt5/__init__.py | pfrydlewicz/nexxT | 33616dbeee448c59201aa3009d637fe6b8d2b39c | [
"Apache-2.0"
] | 32 | 2020-05-18T15:49:00.000Z | 2022-02-22T20:10:56.000Z | workspace/sconstools3/qt5/__init__.py | pfrydlewicz/nexxT | 33616dbeee448c59201aa3009d637fe6b8d2b39c | [
"Apache-2.0"
] | 2 | 2020-03-21T15:04:46.000Z | 2021-03-01T15:42:49.000Z |
"""SCons.Tool.qt5
Tool-specific initialization for Qt5.
There normally shouldn't be any need to import this module directly.
It will usually be imported through the generic SCons.Tool.Tool()
selection method.
"""
#
# Copyright (c) 2001-7,2010,2011,2012 The SCons Foundation
#
# Permission is hereby granted, free of... | 39.499018 | 158 | 0.59622 | 4,716 | 40,210 | 4.941688 | 0.168999 | 0.015876 | 0.009869 | 0.010985 | 0.362926 | 0.326754 | 0.282472 | 0.259644 | 0.22935 | 0.202961 | 0 | 0.013534 | 0.290699 | 40,210 | 1,017 | 159 | 39.537856 | 0.803583 | 0.183586 | 0 | 0.32525 | 0 | 0.007133 | 0.160567 | 0.011379 | 0 | 0 | 0 | 0.006883 | 0 | 1 | 0.041369 | false | 0.052782 | 0.018545 | 0.002853 | 0.114123 | 0.022825 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b944ab9a6c486a1ceee03e0ec5e78731a99dc09a | 2,425 | py | Python | code/venv/lib/python3.6/site-packages/pgadmin4/pgadmin/browser/server_groups/servers/roles/tests/test_role_add.py | jhkuang11/UniTrade | 5f68b853926e167936b58c8543b8f95ebd6f5211 | [
"MIT"
] | null | null | null | code/venv/lib/python3.6/site-packages/pgadmin4/pgadmin/browser/server_groups/servers/roles/tests/test_role_add.py | jhkuang11/UniTrade | 5f68b853926e167936b58c8543b8f95ebd6f5211 | [
"MIT"
] | 10 | 2020-06-05T19:42:26.000Z | 2022-03-11T23:38:35.000Z | code/venv/lib/python3.6/site-packages/pgadmin4/pgadmin/browser/server_groups/servers/roles/tests/test_role_add.py | jhkuang11/UniTrade | 5f68b853926e167936b58c8543b8f95ebd6f5211 | [
"MIT"
] | null | null | null | ##########################################################################
#
# pgAdmin 4 - PostgreSQL Tools
#
# Copyright (C) 2013 - 2017, The pgAdmin Development Team
# This software is released under the PostgreSQL Licence
#
##########################################################################
import json
from... | 41.101695 | 77 | 0.548866 | 255 | 2,425 | 5.039216 | 0.388235 | 0.062257 | 0.028016 | 0.031128 | 0.037354 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008168 | 0.293196 | 2,425 | 58 | 78 | 41.810345 | 0.74154 | 0.123299 | 0 | 0 | 0 | 0 | 0.102249 | 0 | 0 | 0 | 0 | 0 | 0.027027 | 1 | 0.081081 | false | 0.081081 | 0.162162 | 0 | 0.297297 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
b9451d863f7a144536d11cdb19c397e47b61ec12 | 3,973 | py | Python | clients/python-flask/generated/openapi_server/models/disk_space_monitor_descriptor_disk_space.py | cliffano/jenkins-api-clients-generator | 522d02b3a130a29471df5ec1d3d22c822b3d0813 | [
"MIT"
] | null | null | null | clients/python-flask/generated/openapi_server/models/disk_space_monitor_descriptor_disk_space.py | cliffano/jenkins-api-clients-generator | 522d02b3a130a29471df5ec1d3d22c822b3d0813 | [
"MIT"
] | null | null | null | clients/python-flask/generated/openapi_server/models/disk_space_monitor_descriptor_disk_space.py | cliffano/jenkins-api-clients-generator | 522d02b3a130a29471df5ec1d3d22c822b3d0813 | [
"MIT"
] | null | null | null | # coding: utf-8
from __future__ import absolute_import
from datetime import date, datetime # noqa: F401
from typing import List, Dict # noqa: F401
from openapi_server.models.base_model_ import Model
from openapi_server import util
class DiskSpaceMonitorDescriptorDiskSpace(Model):
"""NOTE: This class is auto ... | 27.783217 | 115 | 0.640826 | 377 | 3,973 | 6.618037 | 0.177719 | 0.050501 | 0.34509 | 0.028056 | 0.507816 | 0.306212 | 0.286974 | 0 | 0 | 0 | 0 | 0.00875 | 0.280896 | 3,973 | 142 | 116 | 27.978873 | 0.864543 | 0.508684 | 0 | 0.24 | 0 | 0 | 0.066242 | 0.022293 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.1 | 0 | 0.42 | 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 |
b94b13c75e2c661efda2698f05a367ba43669504 | 7,582 | py | Python | dojustonething/test_todolist.py | jmathes/Do-Just-One-Thing | 1956d44842ce5edcc1067a004777a9080c835858 | [
"Apache-2.0"
] | 1 | 2016-08-02T19:14:42.000Z | 2016-08-02T19:14:42.000Z | dojustonething/test_todolist.py | jmathes/Do-Just-One-Thing | 1956d44842ce5edcc1067a004777a9080c835858 | [
"Apache-2.0"
] | null | null | null | dojustonething/test_todolist.py | jmathes/Do-Just-One-Thing | 1956d44842ce5edcc1067a004777a9080c835858 | [
"Apache-2.0"
] | null | null | null | # encoding: utf-8
# chr(33) through chr(126)
# !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~
import helpers
from todolist import ToDoList, AmbiguousUrgencyExeption, all_chars
import mock
class FakeItem(object):
def __init__(self, parent=None):
pass
def... | 39.489583 | 115 | 0.670008 | 1,017 | 7,582 | 4.715831 | 0.181908 | 0.136781 | 0.040867 | 0.026689 | 0.619058 | 0.550459 | 0.506047 | 0.453711 | 0.397623 | 0.309216 | 0 | 0.012547 | 0.201134 | 7,582 | 191 | 116 | 39.696335 | 0.779264 | 0.017673 | 0 | 0.335714 | 0 | 0 | 0.087062 | 0 | 0 | 0 | 0 | 0 | 0.371429 | 0 | null | null | 0.014286 | 0.021429 | null | null | 0.064286 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 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.