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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d2b7ebb7c7ccc1338b94c19d7637e3ceac872b46 | 2,173 | py | Python | image_demo.py | a888999a/yolov3fusion1 | 3659898aee34a351e95ea545236b8bc682901498 | [
"MIT"
] | 7 | 2020-09-23T10:37:17.000Z | 2021-12-26T00:23:02.000Z | image_demo.py | a888999a/yolov3fusion1 | 3659898aee34a351e95ea545236b8bc682901498 | [
"MIT"
] | null | null | null | image_demo.py | a888999a/yolov3fusion1 | 3659898aee34a351e95ea545236b8bc682901498 | [
"MIT"
] | null | null | null | #! /usr/bin/env python
# coding=utf-8
#================================================================
# Copyright (C) 2019 * Ltd. All rights reserved.
#
# Editor : VIM
# File name : image_demo.py
# Author : YunYang1994
# Created date: 2019-01-20 16:06:06
# Description :
#
#====================... | 35.048387 | 135 | 0.673263 | 310 | 2,173 | 4.445161 | 0.345161 | 0.075472 | 0.046444 | 0.026125 | 0.127721 | 0.087083 | 0.087083 | 0.050798 | 0 | 0 | 0 | 0.046976 | 0.147722 | 2,173 | 61 | 136 | 35.622951 | 0.697084 | 0.156926 | 0 | 0 | 0 | 0 | 0.138767 | 0.109031 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.151515 | 0 | 0.151515 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d2b930c9508039d505766f1d70318392c9baf277 | 7,090 | py | Python | Sensor/main.py | mahsahadian/EdgeBenchmarkTool | cafddb2eb66732da0bff8f26107788e3c93fbe2f | [
"MIT"
] | null | null | null | Sensor/main.py | mahsahadian/EdgeBenchmarkTool | cafddb2eb66732da0bff8f26107788e3c93fbe2f | [
"MIT"
] | null | null | null | Sensor/main.py | mahsahadian/EdgeBenchmarkTool | cafddb2eb66732da0bff8f26107788e3c93fbe2f | [
"MIT"
] | 2 | 2022-01-31T01:55:56.000Z | 2022-02-01T01:43:20.000Z |
import cv2
from datetime import *
import time
import logging
import base64
import sys
import os
import shutil
import paho.mqtt.client as mqtt
from influxdb import InfluxDBClient
import datetime
import sys
import re
from typing import NamedTuple
import json
from dotenv import load_dotenv
load_dotenv("sensor-variab... | 33.130841 | 146 | 0.629478 | 822 | 7,090 | 5.240876 | 0.284672 | 0.025998 | 0.03714 | 0.024141 | 0.169684 | 0.151114 | 0.100046 | 0.088208 | 0.088208 | 0.088208 | 0 | 0.016301 | 0.24725 | 7,090 | 213 | 147 | 33.286385 | 0.790894 | 0.217913 | 0 | 0.063492 | 0 | 0 | 0.120517 | 0.02039 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.126984 | 0 | 0.222222 | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d2bbf8bdae1a8922b42a68b17b2aafcf8fd38f67 | 13,043 | py | Python | parlai/tasks/taskmaster2/agents.py | min942773/parlai_wandb | 1d9ba1a0df2199d0247cee8c4929a2598ac7e41a | [
"MIT"
] | 2 | 2017-09-20T21:49:51.000Z | 2018-08-12T06:58:10.000Z | parlai/tasks/taskmaster2/agents.py | min942773/parlai_wandb | 1d9ba1a0df2199d0247cee8c4929a2598ac7e41a | [
"MIT"
] | 7 | 2021-01-12T01:07:03.000Z | 2022-03-12T00:50:45.000Z | parlai/tasks/taskmaster2/agents.py | min942773/parlai_wandb | 1d9ba1a0df2199d0247cee8c4929a2598ac7e41a | [
"MIT"
] | 1 | 2021-01-07T11:45:03.000Z | 2021-01-07T11:45:03.000Z | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
"""
Taskmaster-2 implementation for ParlAI.
No official train/valid/test splits are available as of 2020-05-18, so we m... | 35.734247 | 86 | 0.521966 | 1,341 | 13,043 | 4.933632 | 0.251305 | 0.027509 | 0.029625 | 0.018138 | 0.311971 | 0.281137 | 0.220828 | 0.201935 | 0.180774 | 0.167171 | 0 | 0.009424 | 0.365407 | 13,043 | 364 | 87 | 35.832418 | 0.7899 | 0.08081 | 0 | 0.334483 | 0 | 0 | 0.119116 | 0.002102 | 0 | 0 | 0 | 0 | 0.003448 | 1 | 0.051724 | false | 0.006897 | 0.048276 | 0.013793 | 0.168966 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d2bd972bab298994d41d91b8c6a75e48470ccec5 | 2,520 | py | Python | tensorfn/distributed/launch.py | rosinality/tensorfn | cd410c5e6f6906d223f740501e711b9cfae260e4 | [
"Apache-2.0"
] | 13 | 2021-04-08T03:09:42.000Z | 2022-03-18T08:27:17.000Z | tensorfn/distributed/launch.py | rosinality/tensorfn | cd410c5e6f6906d223f740501e711b9cfae260e4 | [
"Apache-2.0"
] | 2 | 2020-08-16T20:25:34.000Z | 2021-07-13T00:35:52.000Z | tensorfn/distributed/launch.py | rosinality/tensorfn | cd410c5e6f6906d223f740501e711b9cfae260e4 | [
"Apache-2.0"
] | null | null | null | import os
import torch
from torch import distributed as dist
from torch import multiprocessing as mp
from tensorfn import distributed as dist_fn
def find_free_port():
import socket
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
sock.bind(("", 0))
port = sock.getsockname()[1]
sock.clo... | 27.096774 | 101 | 0.636508 | 348 | 2,520 | 4.327586 | 0.295977 | 0.029216 | 0.051129 | 0.102258 | 0.112218 | 0.112218 | 0.062417 | 0.062417 | 0.062417 | 0.062417 | 0 | 0.008157 | 0.270238 | 2,520 | 92 | 102 | 27.391304 | 0.810767 | 0 | 0 | 0.0625 | 0 | 0 | 0.163889 | 0.034921 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046875 | false | 0 | 0.09375 | 0 | 0.15625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d2bffe6b8d76be452fc84a9fa325b868d681f43c | 4,097 | py | Python | VideoStitchingSubsystem/StereoCameraAPIs/MonoLensStream.py | AriaPahlavan/see-through-adas-core | 7cc530243d324aecd9db538883bb77ee2d519661 | [
"Apache-2.0"
] | null | null | null | VideoStitchingSubsystem/StereoCameraAPIs/MonoLensStream.py | AriaPahlavan/see-through-adas-core | 7cc530243d324aecd9db538883bb77ee2d519661 | [
"Apache-2.0"
] | null | null | null | VideoStitchingSubsystem/StereoCameraAPIs/MonoLensStream.py | AriaPahlavan/see-through-adas-core | 7cc530243d324aecd9db538883bb77ee2d519661 | [
"Apache-2.0"
] | null | null | null | from enum import Enum
from threading import Thread
import cv2
import time
class Resolution(Enum):
_32p = (64, 32)
_96p = (128, 96)
_120p = (160, 120)
_144p = (256, 144)
_240p = (360, 240)
_288p = (480, 272)
_360p = (480, 360)
_480p = (720, 480)
_576p = (720, 576)
_Hd = (1280, ... | 28.255172 | 107 | 0.573102 | 439 | 4,097 | 5.284738 | 0.302961 | 0.034483 | 0.032328 | 0.038793 | 0.299138 | 0.212931 | 0.153448 | 0.124138 | 0.124138 | 0.124138 | 0 | 0.050181 | 0.323896 | 4,097 | 144 | 108 | 28.451389 | 0.787365 | 0.127898 | 0 | 0.209302 | 0 | 0 | 0.01478 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.093023 | false | 0.011628 | 0.05814 | 0 | 0.337209 | 0.011628 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d2c38a755a40c6e19281f0cc94b831f228ba7f94 | 250 | py | Python | 实例学习Numpy与Matplotlib/创建 numpy.array.py | shao1chuan/pythonbook | cd9877d04e1e11422d38cc051e368d3d9ce2ab45 | [
"MulanPSL-1.0"
] | 95 | 2020-10-11T04:45:46.000Z | 2022-02-25T01:50:40.000Z | 实例学习Numpy与Matplotlib/创建 numpy.array.py | shao1chuan/pythonbook | cd9877d04e1e11422d38cc051e368d3d9ce2ab45 | [
"MulanPSL-1.0"
] | null | null | null | 实例学习Numpy与Matplotlib/创建 numpy.array.py | shao1chuan/pythonbook | cd9877d04e1e11422d38cc051e368d3d9ce2ab45 | [
"MulanPSL-1.0"
] | 30 | 2020-11-05T09:01:00.000Z | 2022-03-08T05:58:55.000Z |
import numpy as np
nparr = np.array([i for i in range(10)])
a = np.zeros(10)
f = np.zeros(10,dtype=float)
n = np.full((3,5),44)
r = np.random.randint(0,100,size=(3,5))
r2 = np.random.random((3,5))
x = np.linspace(0,100,50)
print(nparr,a,f,n,r,r2,x) | 22.727273 | 40 | 0.64 | 58 | 250 | 2.758621 | 0.551724 | 0.0375 | 0.1125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.118721 | 0.124 | 250 | 11 | 41 | 22.727273 | 0.611872 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d2c38e45f035250f5b56f9b05cf87de9978e93b9 | 4,790 | py | Python | examples/DecryptLoginExamples/crawlers/weibomonitor/weibomonitor.py | hedou/DecryptLogin | ff86a5d378c8a42d1caebbb7482658a95053f716 | [
"Apache-2.0"
] | null | null | null | examples/DecryptLoginExamples/crawlers/weibomonitor/weibomonitor.py | hedou/DecryptLogin | ff86a5d378c8a42d1caebbb7482658a95053f716 | [
"Apache-2.0"
] | null | null | null | examples/DecryptLoginExamples/crawlers/weibomonitor/weibomonitor.py | hedou/DecryptLogin | ff86a5d378c8a42d1caebbb7482658a95053f716 | [
"Apache-2.0"
] | null | null | null | '''
Function:
微博监控
Author:
Charles
微信公众号:
Charles的皮卡丘
'''
import re
import time
from DecryptLogin import login
'''微博监控'''
class WeiboMonitor():
def __init__(self, username, password, time_interval=30):
_, self.session = self.login(username, password)
self.headers = {
'Accep... | 43.153153 | 161 | 0.571816 | 570 | 4,790 | 4.67193 | 0.315789 | 0.031543 | 0.034172 | 0.042058 | 0.270747 | 0.234698 | 0.20015 | 0.130304 | 0.130304 | 0.108524 | 0 | 0.020845 | 0.268894 | 4,790 | 111 | 162 | 43.153153 | 0.739577 | 0.012735 | 0 | 0.217391 | 0 | 0.043478 | 0.193234 | 0.024073 | 0 | 0 | 0 | 0 | 0 | 1 | 0.097826 | false | 0.043478 | 0.032609 | 0.01087 | 0.195652 | 0.01087 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d2c4dfb8a30f8c36fa075d277e4458a4776a5ca8 | 25,299 | py | Python | torchrec/metrics/rec_metric.py | xing-liu/torchrec | 82ffde7a69fdb9c66b79a753d6f03afa5db3f73e | [
"BSD-3-Clause"
] | 814 | 2022-02-23T17:24:14.000Z | 2022-03-31T16:52:23.000Z | torchrec/metrics/rec_metric.py | xing-liu/torchrec | 82ffde7a69fdb9c66b79a753d6f03afa5db3f73e | [
"BSD-3-Clause"
] | 89 | 2022-02-23T17:29:56.000Z | 2022-03-31T23:44:13.000Z | torchrec/metrics/rec_metric.py | xing-liu/torchrec | 82ffde7a69fdb9c66b79a753d6f03afa5db3f73e | [
"BSD-3-Clause"
] | 68 | 2022-02-23T17:42:17.000Z | 2022-03-28T06:39:55.000Z | #!/usr/bin/env python3
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.
#!/usr/bin/env python3
import abc
import math
from collections import defaultdict, dequ... | 38.331818 | 117 | 0.616072 | 2,863 | 25,299 | 5.214111 | 0.147049 | 0.02579 | 0.020029 | 0.00911 | 0.376675 | 0.332462 | 0.277465 | 0.221061 | 0.195606 | 0.17437 | 0 | 0.004437 | 0.305071 | 25,299 | 659 | 118 | 38.389985 | 0.844662 | 0.232104 | 0 | 0.285714 | 0 | 0 | 0.01812 | 0.001576 | 0 | 0 | 0 | 0.00607 | 0.02381 | 1 | 0.08658 | false | 0.006494 | 0.025974 | 0.015152 | 0.209957 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d2c5679b86d58ca48ad37cdef98dbe5e554266cb | 2,364 | py | Python | pyroomacoustics/experimental/tests/test_deconvolution.py | HemaZ/pyroomacoustics | c401f829c71ff03a947f68f9b6b2f48346ae84b2 | [
"MIT"
] | 1 | 2020-02-13T14:39:37.000Z | 2020-02-13T14:39:37.000Z | pyroomacoustics/experimental/tests/test_deconvolution.py | HemaZ/pyroomacoustics | c401f829c71ff03a947f68f9b6b2f48346ae84b2 | [
"MIT"
] | null | null | null | pyroomacoustics/experimental/tests/test_deconvolution.py | HemaZ/pyroomacoustics | c401f829c71ff03a947f68f9b6b2f48346ae84b2 | [
"MIT"
] | 1 | 2021-01-14T08:42:47.000Z | 2021-01-14T08:42:47.000Z |
from unittest import TestCase
import numpy as np
from scipy.signal import fftconvolve
import pyroomacoustics as pra
# fix seed for repeatability
np.random.seed(0)
h_len = 30
x_len = 1000
SNR = 1000. # decibels
h_lp = np.fft.irfft(np.ones(5), n=h_len)
h_rand = np.random.randn(h_len)
h_hann = pra.hann(h_len, flag='... | 26.266667 | 115 | 0.630711 | 374 | 2,364 | 3.796791 | 0.259358 | 0.042254 | 0.050704 | 0.053521 | 0.53169 | 0.5 | 0.452817 | 0.416197 | 0.374648 | 0.374648 | 0 | 0.032065 | 0.221658 | 2,364 | 89 | 116 | 26.561798 | 0.739674 | 0.032995 | 0 | 0.339286 | 0 | 0 | 0.044376 | 0 | 0 | 0 | 0 | 0 | 0.035714 | 1 | 0.053571 | false | 0 | 0.089286 | 0 | 0.178571 | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d2c5ccb03692b30b21e99cbcada633194e147414 | 7,423 | py | Python | pthelper/img_to_txt.py | hkcountryman/veg-scanner | 6b3aa4d0799c901cecdbc0f4b5ca61b0d754ab30 | [
"MIT"
] | null | null | null | pthelper/img_to_txt.py | hkcountryman/veg-scanner | 6b3aa4d0799c901cecdbc0f4b5ca61b0d754ab30 | [
"MIT"
] | null | null | null | pthelper/img_to_txt.py | hkcountryman/veg-scanner | 6b3aa4d0799c901cecdbc0f4b5ca61b0d754ab30 | [
"MIT"
] | null | null | null | import cv2 as cv
from deskew import determine_skew
import numpy as np
from PIL import Image, ImageFilter, ImageOps
from pytesseract import image_to_string
from skimage import io
from skimage.color import rgb2gray
from skimage.transform import rotate
from spellchecker import SpellChecker
import traceback
# On Windows, ... | 33.588235 | 108 | 0.649064 | 956 | 7,423 | 4.987448 | 0.277197 | 0.014681 | 0.029362 | 0.020134 | 0.442743 | 0.415478 | 0.39052 | 0.384018 | 0.35969 | 0.30453 | 0 | 0.006702 | 0.236158 | 7,423 | 221 | 109 | 33.588235 | 0.834215 | 0.500202 | 0 | 0.188406 | 0 | 0 | 0.037435 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.144928 | false | 0 | 0.144928 | 0 | 0.463768 | 0.057971 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d2c5ed1f81d8bfe0be0278969594e7da6dcf2781 | 3,544 | py | Python | scripts/training.py | tobinsouth/privacy-preserving-synthetic-mobility-data | fd4d1851b47e3e7304761a894b460e8345fae5db | [
"MIT"
] | null | null | null | scripts/training.py | tobinsouth/privacy-preserving-synthetic-mobility-data | fd4d1851b47e3e7304761a894b460e8345fae5db | [
"MIT"
] | null | null | null | scripts/training.py | tobinsouth/privacy-preserving-synthetic-mobility-data | fd4d1851b47e3e7304761a894b460e8345fae5db | [
"MIT"
] | null | null | null | # Params
learning_rate = 0.001
k = 0.0025
x0 =2500
epochs = 4
batch_size=16
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
import torch, numpy as np
from tqdm import tqdm
# Get the dataloader
from dataloader import get_train_test
trainStays, testStays = get_train_test(train_size=0.95, batch_siz... | 30.290598 | 110 | 0.628668 | 480 | 3,544 | 4.466667 | 0.345833 | 0.022388 | 0.020989 | 0.01819 | 0.138526 | 0.110541 | 0.079291 | 0.079291 | 0.079291 | 0.079291 | 0 | 0.034888 | 0.255926 | 3,544 | 117 | 111 | 30.290598 | 0.778157 | 0.107788 | 0 | 0.123457 | 0 | 0 | 0.057252 | 0.007316 | 0 | 0 | 0 | 0 | 0 | 1 | 0.012346 | false | 0 | 0.061728 | 0 | 0.08642 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d2c662f276d75d5cf194b16fa8615d6ac1fdca1d | 1,674 | py | Python | tests/compute/planar/test_rotateZ.py | ianna/vector | c00b258049c0ea1de46f90311849923b96068a02 | [
"BSD-3-Clause"
] | null | null | null | tests/compute/planar/test_rotateZ.py | ianna/vector | c00b258049c0ea1de46f90311849923b96068a02 | [
"BSD-3-Clause"
] | null | null | null | tests/compute/planar/test_rotateZ.py | ianna/vector | c00b258049c0ea1de46f90311849923b96068a02 | [
"BSD-3-Clause"
] | null | null | null | # Copyright (c) 2019-2021, Jonas Eschle, Jim Pivarski, Eduardo Rodrigues, and Henry Schreiner.
#
# Distributed under the 3-clause BSD license, see accompanying file LICENSE
# or https://github.com/scikit-hep/vector for details.
import numpy
import pytest
import vector.backends.numpy_
import vector.backends.object_
... | 37.2 | 94 | 0.680406 | 229 | 1,674 | 4.921397 | 0.279476 | 0.028394 | 0.063886 | 0.060337 | 0.44898 | 0.417036 | 0.417036 | 0.381544 | 0.28039 | 0.28039 | 0 | 0.123755 | 0.160096 | 1,674 | 44 | 95 | 38.045455 | 0.677809 | 0.130824 | 0 | 0.25 | 0 | 0 | 0.011034 | 0 | 0 | 0 | 0 | 0 | 0.375 | 1 | 0.0625 | false | 0 | 0.125 | 0 | 0.1875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d2c66e24087a653bf88316c9ed3e62b1ba5b4aa5 | 3,791 | py | Python | src/RIOT/tests/pkg_tensorflow-lite/mnist/mnist_mlp.py | ARte-team/ARte | 19f17f57522e1b18ba390718fc94be246451837b | [
"MIT"
] | 2 | 2020-04-30T08:17:45.000Z | 2020-05-23T08:46:54.000Z | src/RIOT/tests/pkg_tensorflow-lite/mnist/mnist_mlp.py | ARte-team/ARte | 19f17f57522e1b18ba390718fc94be246451837b | [
"MIT"
] | null | null | null | src/RIOT/tests/pkg_tensorflow-lite/mnist/mnist_mlp.py | ARte-team/ARte | 19f17f57522e1b18ba390718fc94be246451837b | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import os
# imports for array-handling
import numpy as np
import tensorflow as tf
# keras imports for the dataset and building our neural network
from tensorflow.keras.datasets import mnist
from tensorflow.keras.models import Sequential
from tensorflow.keras.layers import Dense, Dropout
# l... | 32.127119 | 92 | 0.759166 | 559 | 3,791 | 4.921288 | 0.309481 | 0.071247 | 0.05598 | 0.017448 | 0.171574 | 0.141403 | 0.077063 | 0.077063 | 0.077063 | 0 | 0 | 0.029204 | 0.141915 | 3,791 | 117 | 93 | 32.401709 | 0.816477 | 0.240834 | 0 | 0.061538 | 0 | 0 | 0.098424 | 0.010858 | 0 | 0 | 0 | 0 | 0 | 1 | 0.015385 | false | 0 | 0.092308 | 0 | 0.107692 | 0.076923 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d2c876fb5f375461dc3ae3b4e7ececc7c2f8aa23 | 2,091 | py | Python | stock_api_handler.py | Sergix/analyst-server | a2ec7cc92610f78ac2a4ce4a46c52410219cd360 | [
"MIT"
] | 2 | 2020-03-16T01:09:10.000Z | 2020-03-16T03:02:57.000Z | stock_api_handler.py | Sergix/analyst-server | a2ec7cc92610f78ac2a4ce4a46c52410219cd360 | [
"MIT"
] | 1 | 2020-04-21T16:49:53.000Z | 2020-04-29T02:15:45.000Z | stock_api_handler.py | Sergix/analyst-server | a2ec7cc92610f78ac2a4ce4a46c52410219cd360 | [
"MIT"
] | 3 | 2020-03-16T14:46:41.000Z | 2020-03-21T13:55:24.000Z | # This python script handles stock api request from yfinance
# Last Updated: 4/7/2020
# Credits:nóto
#Import yfinance api lib
import yfinance as yf
#Import pandas lib
import pandas as pd
#Import json to manipulate api data
import json
#Import math
import math
class StockApi():
def __init__(self):
self.pan... | 35.440678 | 109 | 0.648015 | 314 | 2,091 | 4.178344 | 0.372611 | 0.064024 | 0.067073 | 0.04878 | 0.155488 | 0.088415 | 0.088415 | 0.042683 | 0 | 0 | 0 | 0.007874 | 0.271162 | 2,091 | 58 | 110 | 36.051724 | 0.853018 | 0.351985 | 0 | 0.071429 | 0 | 0 | 0.003008 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d2ca30ab580a71ee2a0484e370c2d881b8376a24 | 2,143 | py | Python | homeassistant/components/eight_sleep/binary_sensor.py | andersop91/core | 0e0ef0aa17073609eae7c974cf4c73306b7c414b | [
"Apache-2.0"
] | 22,481 | 2020-03-02T13:09:59.000Z | 2022-03-31T23:34:28.000Z | homeassistant/components/eight_sleep/binary_sensor.py | andersop91/core | 0e0ef0aa17073609eae7c974cf4c73306b7c414b | [
"Apache-2.0"
] | 31,101 | 2020-03-02T13:00:16.000Z | 2022-03-31T23:57:36.000Z | homeassistant/components/eight_sleep/binary_sensor.py | andersop91/core | 0e0ef0aa17073609eae7c974cf4c73306b7c414b | [
"Apache-2.0"
] | 11,411 | 2020-03-02T14:19:20.000Z | 2022-03-31T22:46:07.000Z | """Support for Eight Sleep binary sensors."""
from __future__ import annotations
import logging
from pyeight.eight import EightSleep
from homeassistant.components.binary_sensor import (
BinarySensorDeviceClass,
BinarySensorEntity,
)
from homeassistant.core import HomeAssistant
from homeassistant.helpers.enti... | 27.474359 | 86 | 0.691087 | 221 | 2,143 | 6.452489 | 0.366516 | 0.047686 | 0.027349 | 0.023843 | 0.029453 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.227252 | 2,143 | 77 | 87 | 27.831169 | 0.861111 | 0.071395 | 0 | 0.068966 | 0 | 0 | 0.022845 | 0 | 0 | 0 | 0 | 0 | 0.034483 | 1 | 0.034483 | false | 0 | 0.137931 | 0 | 0.224138 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d2cb2cb149ab4d390a0fe9859ee6b67392f9a4c2 | 3,384 | py | Python | tensorbay/opendataset/FLIC/loader.py | rexzheng324-c/tensorbay-python-sdk | 764c28f34069229daa41474e2f104786dbfa973f | [
"MIT"
] | null | null | null | tensorbay/opendataset/FLIC/loader.py | rexzheng324-c/tensorbay-python-sdk | 764c28f34069229daa41474e2f104786dbfa973f | [
"MIT"
] | null | null | null | tensorbay/opendataset/FLIC/loader.py | rexzheng324-c/tensorbay-python-sdk | 764c28f34069229daa41474e2f104786dbfa973f | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
#
# Copyright 2021 Graviti. Licensed under MIT License.
#
# pylint: disable=invalid-name
# pylint: disable=missing-module-docstring
import os
from typing import Any, Dict, Iterator, Tuple
from tensorbay.dataset import Data, Dataset
from tensorbay.exception import ModuleImportError
from tensorba... | 31.924528 | 89 | 0.638889 | 376 | 3,384 | 5.619681 | 0.404255 | 0.017037 | 0.026503 | 0.020823 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018125 | 0.25 | 3,384 | 105 | 90 | 32.228571 | 0.814421 | 0.188239 | 0 | 0.067797 | 0 | 0 | 0.075746 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033898 | false | 0 | 0.118644 | 0 | 0.169492 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d2cb4dbefc7f4606adaa9b77d466de95f1e38071 | 3,925 | py | Python | my_answers/homework/OOP/athlete.py | eyalle/python_course | acc75fd3c81f69f314099051026c81d80d141a84 | [
"MIT"
] | null | null | null | my_answers/homework/OOP/athlete.py | eyalle/python_course | acc75fd3c81f69f314099051026c81d80d141a84 | [
"MIT"
] | null | null | null | my_answers/homework/OOP/athlete.py | eyalle/python_course | acc75fd3c81f69f314099051026c81d80d141a84 | [
"MIT"
] | null | null | null |
def get_time(time_in_seconds):
import datetime
time_str = str(datetime.timedelta(time_in_seconds))
time_fractions = time_str.split(":")
time_fractions[0] = time_fractions[0].replace(",","")
time_fractions[-1] += 's'
time_fractions[-2] += 'm'
time_fractions[-3] += 'h'
# print(time_fracti... | 39.25 | 125 | 0.642803 | 507 | 3,925 | 4.686391 | 0.167653 | 0.057239 | 0.050926 | 0.05303 | 0.407407 | 0.340067 | 0.266414 | 0.19234 | 0.15404 | 0.132997 | 0 | 0.037273 | 0.241274 | 3,925 | 99 | 126 | 39.646465 | 0.760578 | 0.047643 | 0 | 0.051282 | 0 | 0.012821 | 0.033253 | 0.017431 | 0 | 0 | 0 | 0 | 0 | 1 | 0.102564 | false | 0 | 0.025641 | 0 | 0.217949 | 0.051282 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d2cbe0ce287e68ba03cda24086915b54c95f413e | 3,391 | py | Python | osisoft/pidevclub/piwebapi/models/pi_data_server_license.py | jugillar/PI-Web-API-Client-Python | 9652e18384d8c66194c6d561d5ef01f60d820253 | [
"Apache-2.0"
] | 30 | 2019-01-03T03:09:25.000Z | 2022-03-30T17:42:54.000Z | osisoft/pidevclub/piwebapi/models/pi_data_server_license.py | jugillar/PI-Web-API-Client-Python | 9652e18384d8c66194c6d561d5ef01f60d820253 | [
"Apache-2.0"
] | null | null | null | osisoft/pidevclub/piwebapi/models/pi_data_server_license.py | jugillar/PI-Web-API-Client-Python | 9652e18384d8c66194c6d561d5ef01f60d820253 | [
"Apache-2.0"
] | 46 | 2018-11-07T14:46:35.000Z | 2022-03-31T12:23:39.000Z | # coding: utf-8
"""
Copyright 2018 OSIsoft, 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 t... | 23.548611 | 118 | 0.714833 | 484 | 3,391 | 4.77686 | 0.252066 | 0.060554 | 0.042388 | 0.033737 | 0.184256 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004315 | 0.179888 | 3,391 | 143 | 119 | 23.713287 | 0.827041 | 0.166912 | 0 | 0.076923 | 0 | 0 | 0.083809 | 0.008559 | 0 | 0 | 0 | 0 | 0 | 1 | 0.173077 | false | 0 | 0.019231 | 0.086538 | 0.336538 | 0.009615 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d2ccb686d34873a1a30c9b50f3a2bad12ac217e0 | 4,054 | py | Python | bot.py | JavierOramas/scholar_standing_bot | 9afde1fc0d56a3c57cf281092ff5c3d123ddac2f | [
"MIT"
] | null | null | null | bot.py | JavierOramas/scholar_standing_bot | 9afde1fc0d56a3c57cf281092ff5c3d123ddac2f | [
"MIT"
] | null | null | null | bot.py | JavierOramas/scholar_standing_bot | 9afde1fc0d56a3c57cf281092ff5c3d123ddac2f | [
"MIT"
] | 2 | 2021-09-19T21:08:55.000Z | 2021-09-19T21:09:39.000Z | #! /root/anaconda3/bin/python
import os
from apscheduler.schedulers.asyncio import AsyncIOScheduler
from pyrogram import Client, filters
from read_config import read_config
import json
import requests
import schedule
import time
def get_value_usd(sum):
price = requests.get('https://api.coingecko.com/api/v3/simple/... | 30.712121 | 228 | 0.619142 | 560 | 4,054 | 4.373214 | 0.283929 | 0.0441 | 0.0588 | 0.054308 | 0.471213 | 0.44753 | 0.418947 | 0.385463 | 0.385463 | 0.385463 | 0 | 0.035037 | 0.23261 | 4,054 | 132 | 229 | 30.712121 | 0.75217 | 0.053527 | 0 | 0.465347 | 0 | 0.039604 | 0.279561 | 0.04072 | 0 | 0 | 0.035761 | 0 | 0 | 1 | 0.079208 | false | 0.049505 | 0.079208 | 0 | 0.188119 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d2d16238955afe2195185ab27a0954cf27e01b00 | 7,622 | py | Python | skdecide/discrete_optimization/rcpsp_multiskill/parser/rcpsp_multiskill_parser.py | emilienDespres/scikit-decide | 2a3dd2d93e5e6d07984e1bc02b6e969261aeefbc | [
"MIT"
] | 27 | 2020-11-23T11:45:31.000Z | 2022-03-22T08:08:00.000Z | skdecide/discrete_optimization/rcpsp_multiskill/parser/rcpsp_multiskill_parser.py | emilienDespres/scikit-decide | 2a3dd2d93e5e6d07984e1bc02b6e969261aeefbc | [
"MIT"
] | 94 | 2021-02-24T09:50:23.000Z | 2022-02-27T10:07:15.000Z | skdecide/discrete_optimization/rcpsp_multiskill/parser/rcpsp_multiskill_parser.py | emilienDespres/scikit-decide | 2a3dd2d93e5e6d07984e1bc02b6e969261aeefbc | [
"MIT"
] | 12 | 2020-12-08T10:38:26.000Z | 2021-10-01T09:17:04.000Z | # Copyright (c) AIRBUS and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
from __future__ import annotations
from typing import Dict, Tuple
from skdecide.discrete_optimization.rcpsp_multiskill.rcpsp_multiskill import (
E... | 39.697917 | 126 | 0.494358 | 952 | 7,622 | 3.728992 | 0.17437 | 0.054085 | 0.040563 | 0.039437 | 0.289296 | 0.211831 | 0.155211 | 0.08169 | 0.063099 | 0.063099 | 0 | 0.050427 | 0.385988 | 7,622 | 191 | 127 | 39.905759 | 0.70812 | 0.177775 | 0 | 0.171975 | 0 | 0 | 0.038942 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.012739 | false | 0 | 0.019108 | 0 | 0.044586 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d2d1d69838e8dd6599bd00b4fca0bacfaf367308 | 530 | py | Python | pipe_anchorages/logging_monkeypatch.py | GlobalFishingWatch/anchorages_pipeline | 88764545b693bfb65fc7a7f62a344fb2afbc3d97 | [
"Apache-2.0"
] | 3 | 2017-12-22T10:19:15.000Z | 2020-04-20T10:28:43.000Z | pipe_tools/beam/logging_monkeypatch.py | GlobalFishingWatch/pipe-tools | 34dff591997bb2c25e018df86d13a9d42972032b | [
"Apache-2.0"
] | 37 | 2017-10-22T12:00:59.000Z | 2022-02-08T19:17:58.000Z | pipe_tools/beam/logging_monkeypatch.py | GlobalFishingWatch/pipe-tools | 34dff591997bb2c25e018df86d13a9d42972032b | [
"Apache-2.0"
] | 3 | 2018-01-21T14:07:58.000Z | 2021-07-28T16:02:20.000Z | import logging
# monkey patch to suppress the annoying warning you get when you import apache_beam
#
# No handlers could be found for logger "oauth2client.contrib.multistore_file"
#
# This warning is harmless, but annooying when you are using beam from a command line app
# see: https://issues.apache.org/jira/browse/BE... | 33.125 | 89 | 0.792453 | 79 | 530 | 5.278481 | 0.696203 | 0.033573 | 0.139089 | 0.158273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013129 | 0.137736 | 530 | 15 | 90 | 35.333333 | 0.899344 | 0.698113 | 0 | 0 | 0 | 0 | 0.238411 | 0.238411 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d2d2fa8cda2955386068decf56b4b942626e5d83 | 22,286 | py | Python | mizani/breaks.py | stillmatic/mizani | 9a9dcb2b2ae8fca9a1c5b5e475be4d1f801bda1c | [
"BSD-3-Clause"
] | null | null | null | mizani/breaks.py | stillmatic/mizani | 9a9dcb2b2ae8fca9a1c5b5e475be4d1f801bda1c | [
"BSD-3-Clause"
] | null | null | null | mizani/breaks.py | stillmatic/mizani | 9a9dcb2b2ae8fca9a1c5b5e475be4d1f801bda1c | [
"BSD-3-Clause"
] | null | null | null | """
All scales have a means by which the values that are mapped
onto the scale are interpreted. Numeric digital scales put
out numbers for direct interpretation, but most scales
cannot do this. What they offer is named markers/ticks that
aid in assessing the values e.g. the common odometer will
have ticks and values to... | 28.793282 | 75 | 0.531634 | 2,708 | 22,286 | 4.273634 | 0.182422 | 0.020911 | 0.009505 | 0.011492 | 0.230191 | 0.18042 | 0.160805 | 0.143178 | 0.125378 | 0.121662 | 0 | 0.033218 | 0.354303 | 22,286 | 773 | 76 | 28.83053 | 0.771022 | 0.358701 | 0 | 0.243902 | 0 | 0 | 0.025429 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.103659 | false | 0 | 0.030488 | 0.003049 | 0.286585 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d2d32938d031d59331d2f4a11e7ede6bb4a40fe0 | 2,412 | py | Python | examples/04_sweep_wind_directions.py | ElieKadoche/floris | d18f4d263ecabf502242592f9d60815a07c7b89c | [
"Apache-2.0"
] | null | null | null | examples/04_sweep_wind_directions.py | ElieKadoche/floris | d18f4d263ecabf502242592f9d60815a07c7b89c | [
"Apache-2.0"
] | 1 | 2019-03-02T00:29:12.000Z | 2019-03-02T04:59:54.000Z | examples/04_sweep_wind_directions.py | ElieKadoche/floris | d18f4d263ecabf502242592f9d60815a07c7b89c | [
"Apache-2.0"
] | null | null | null | # Copyright 2022 NREL
# 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
# distri... | 31.736842 | 95 | 0.76534 | 392 | 2,412 | 4.612245 | 0.479592 | 0.033186 | 0.014381 | 0.017699 | 0.017699 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016999 | 0.146352 | 2,412 | 75 | 96 | 32.16 | 0.861098 | 0.461857 | 0 | 0 | 0 | 0 | 0.085353 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.148148 | 0 | 0.148148 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d2d3e9419d90d8f17a71b13f9d3381c03813b4d4 | 623 | py | Python | 1.main.py | learning-nn/nn_from_scratch | 8f8f46efd5814a3cca645b644f70ddc07210256f | [
"MIT"
] | null | null | null | 1.main.py | learning-nn/nn_from_scratch | 8f8f46efd5814a3cca645b644f70ddc07210256f | [
"MIT"
] | null | null | null | 1.main.py | learning-nn/nn_from_scratch | 8f8f46efd5814a3cca645b644f70ddc07210256f | [
"MIT"
] | null | null | null | import numpy
import numpy as np
# converting to a layer with 4 input and 3 neuron
inputs = [[1.2, 2.1, 3.4, 1.2],
[1.2, 2.1, 3.4, 1.2],
[1.2, 2.1, 3.4, 1.2]]
print(numpy.shape(inputs))
weights = [[4.1, -4.5, 3.1, 2.3],
[-4.1, 4.5, 2.1, 2.3],
[4.1, 4.5, 3.1, -2.3]]
print(numpy... | 23.961538 | 71 | 0.536116 | 125 | 623 | 2.64 | 0.24 | 0.066667 | 0.054545 | 0.072727 | 0.2 | 0.2 | 0.142424 | 0.121212 | 0.072727 | 0.072727 | 0 | 0.173729 | 0.242376 | 623 | 25 | 72 | 24.92 | 0.525424 | 0.075441 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d2d55fb8abaabd881c853630310ad6dc464e75ff | 8,247 | py | Python | chapter_13/pymail.py | bimri/programming_python | ba52ccd18b9b4e6c5387bf4032f381ae816b5e77 | [
"MIT"
] | null | null | null | chapter_13/pymail.py | bimri/programming_python | ba52ccd18b9b4e6c5387bf4032f381ae816b5e77 | [
"MIT"
] | null | null | null | chapter_13/pymail.py | bimri/programming_python | ba52ccd18b9b4e6c5387bf4032f381ae816b5e77 | [
"MIT"
] | null | null | null | "A Console-Based Email Client"
#!/usr/local/bin/python
"""
##########################################################################
pymail - a simple console email interface client in Python; uses Python
poplib module to view POP email messages, smtplib to send new mails, and
the email package to extract mail header... | 37.830275 | 84 | 0.547229 | 933 | 8,247 | 4.825295 | 0.315113 | 0.015549 | 0.015993 | 0.017992 | 0.071524 | 0.055975 | 0.034207 | 0.015993 | 0.015993 | 0.015993 | 0 | 0.011214 | 0.318783 | 8,247 | 217 | 85 | 38.004608 | 0.790139 | 0.159937 | 0 | 0.229412 | 0 | 0 | 0.127597 | 0 | 0 | 0 | 0 | 0 | 0.005882 | 1 | 0.070588 | false | 0.047059 | 0.029412 | 0 | 0.147059 | 0.141176 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d2d6774deb12048e5d8199a5f876c5130870f008 | 1,027 | py | Python | dependencyinjection/internal/param_type_resolver.py | Cologler/dependencyinjection-python | dc05c61571f10652d82929ebec4b255f109b840b | [
"MIT"
] | null | null | null | dependencyinjection/internal/param_type_resolver.py | Cologler/dependencyinjection-python | dc05c61571f10652d82929ebec4b255f109b840b | [
"MIT"
] | null | null | null | dependencyinjection/internal/param_type_resolver.py | Cologler/dependencyinjection-python | dc05c61571f10652d82929ebec4b255f109b840b | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (c) 2017~2999 - cologler <skyoflw@gmail.com>
# ----------
#
# ----------
import typing
import inspect
from .errors import ParameterTypeResolveError
class ParameterTypeResolver:
''' desgin for resolve type from parameter. '''
def __init__(self, name_... | 31.121212 | 92 | 0.641675 | 111 | 1,027 | 5.828829 | 0.477477 | 0.043277 | 0.051005 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011538 | 0.240506 | 1,027 | 32 | 93 | 32.09375 | 0.817949 | 0.155794 | 0 | 0.111111 | 0 | 0 | 0.096019 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.166667 | 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 | 0 | 0 | 0 | 0 | 1 | 0 |
d2dbd1807d449ae04403cf686fe2378b35d5fa68 | 6,585 | py | Python | OpenPNM/Phases/__GenericPhase__.py | thirtywang/OpenPNM | e55ee7ae69a8be3e2b0e6bf24c9ff92b6d24e16a | [
"MIT"
] | null | null | null | OpenPNM/Phases/__GenericPhase__.py | thirtywang/OpenPNM | e55ee7ae69a8be3e2b0e6bf24c9ff92b6d24e16a | [
"MIT"
] | null | null | null | OpenPNM/Phases/__GenericPhase__.py | thirtywang/OpenPNM | e55ee7ae69a8be3e2b0e6bf24c9ff92b6d24e16a | [
"MIT"
] | 1 | 2020-07-02T02:21:10.000Z | 2020-07-02T02:21:10.000Z | # -*- coding: utf-8 -*-
"""
===============================================================================
module __GenericPhase__: Base class for building Phase objects
===============================================================================
"""
from OpenPNM.Network import GenericNetwork
import OpenPNM.Phases... | 39.909091 | 82 | 0.577525 | 784 | 6,585 | 4.753827 | 0.295918 | 0.017709 | 0.015294 | 0.010732 | 0.098202 | 0.033807 | 0.021465 | 0 | 0 | 0 | 0 | 0.005868 | 0.301291 | 6,585 | 164 | 83 | 40.152439 | 0.804173 | 0.318907 | 0 | 0.094737 | 0 | 0 | 0.087723 | 0 | 0 | 0 | 0 | 0.006098 | 0 | 1 | 0.073684 | false | 0.010526 | 0.042105 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d2dc2ba48e9f74dafb44ffcc8ba8cd1cd50c6109 | 2,922 | py | Python | event/test_event.py | Web-Team-IITI-Gymkhana/gymkhana_server | 67f4eba9dc0a55de04b3006ffeb5f608086b89ce | [
"MIT"
] | null | null | null | event/test_event.py | Web-Team-IITI-Gymkhana/gymkhana_server | 67f4eba9dc0a55de04b3006ffeb5f608086b89ce | [
"MIT"
] | 4 | 2022-01-14T12:31:33.000Z | 2022-01-28T10:25:44.000Z | event/test_event.py | Web-Team-IITI-Gymkhana/gymkhana_server | 67f4eba9dc0a55de04b3006ffeb5f608086b89ce | [
"MIT"
] | null | null | null | from uuid import uuid4
from fastapi.testclient import TestClient
from ..main import app
client = TestClient(app)
class Test_Event:
record = {
"name": "Winter of CP",
"description": "It is a coding event held in the month of Decemeber by Programming Club",
"created_on": "2022-01-28T21:33... | 36.525 | 97 | 0.612936 | 371 | 2,922 | 4.700809 | 0.283019 | 0.112385 | 0.144495 | 0.09633 | 0.663991 | 0.603784 | 0.591743 | 0.591743 | 0.561353 | 0.486239 | 0 | 0.08207 | 0.232717 | 2,922 | 79 | 98 | 36.987342 | 0.695807 | 0 | 0 | 0.338462 | 0 | 0 | 0.364601 | 0.150633 | 0 | 0 | 0 | 0 | 0.184615 | 1 | 0.107692 | false | 0 | 0.046154 | 0 | 0.2 | 0.015385 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d2dc62d8070e943c3939b3b81fa0c4b500c8b2a5 | 629 | py | Python | zigzag_conversion.py | cheng10/leetcode | 8ecab26e354501e7819afe29aa79df2eb8caa8ca | [
"MIT"
] | null | null | null | zigzag_conversion.py | cheng10/leetcode | 8ecab26e354501e7819afe29aa79df2eb8caa8ca | [
"MIT"
] | null | null | null | zigzag_conversion.py | cheng10/leetcode | 8ecab26e354501e7819afe29aa79df2eb8caa8ca | [
"MIT"
] | null | null | null | class Solution(object):
def convert(self, s, numRows):
"""
:type s: str
:type numRows: int
:rtype: str
"""
cycle = 2*(numRows-1)
if numRows == 1: cycle = 1
map = []
for i in range(numRows):
map.append('')
for j ... | 24.192308 | 46 | 0.384738 | 68 | 629 | 3.558824 | 0.411765 | 0.099174 | 0.07438 | 0.090909 | 0.14876 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01875 | 0.491256 | 629 | 25 | 47 | 25.16 | 0.7375 | 0.068362 | 0 | 0.117647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0 | 0 | 0.176471 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d2dc870265729c9617c1afe744f12af18a12c128 | 24,837 | py | Python | src/tests/ftest/soak/soak.py | cdurf1/daos | f57f682ba07560fd35c0991798c5496c20f10769 | [
"Apache-2.0"
] | null | null | null | src/tests/ftest/soak/soak.py | cdurf1/daos | f57f682ba07560fd35c0991798c5496c20f10769 | [
"Apache-2.0"
] | null | null | null | src/tests/ftest/soak/soak.py | cdurf1/daos | f57f682ba07560fd35c0991798c5496c20f10769 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
"""
(C) Copyright 2019 Intel Corporation.
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... | 39.930868 | 79 | 0.566856 | 3,054 | 24,837 | 4.463654 | 0.154551 | 0.014671 | 0.017826 | 0.008803 | 0.306265 | 0.244718 | 0.20826 | 0.18904 | 0.159404 | 0.139158 | 0 | 0.00636 | 0.341587 | 24,837 | 621 | 80 | 39.995169 | 0.827249 | 0.315255 | 0 | 0.242991 | 0 | 0 | 0.117724 | 0.004694 | 0 | 0 | 0 | 0 | 0.006231 | 1 | 0.056075 | false | 0.037383 | 0.034268 | 0 | 0.11838 | 0.018692 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d2dfa41f3a05071765ff4e4b5a6aecdae50d42b0 | 7,105 | py | Python | speedup.py | hjdeheer/malpaca | a0e5471a06175ef34aa95b3a1caea407e4e624a8 | [
"MIT"
] | null | null | null | speedup.py | hjdeheer/malpaca | a0e5471a06175ef34aa95b3a1caea407e4e624a8 | [
"MIT"
] | null | null | null | speedup.py | hjdeheer/malpaca | a0e5471a06175ef34aa95b3a1caea407e4e624a8 | [
"MIT"
] | null | null | null | import numpy as np
from numba import jit, prange
from scipy.stats import mode
from sklearn.metrics import accuracy_score
__all__ = ['dtw_distance', 'KnnDTW']
@jit(nopython=True, fastmath=True)
def cosine_distance(u:np.ndarray, v:np.ndarray):
assert(u.shape[0] == v.shape[0])
uv = 0
uu = 0
vv = 0
... | 28.194444 | 91 | 0.570443 | 963 | 7,105 | 4.105919 | 0.213915 | 0.024785 | 0.027314 | 0.02959 | 0.216995 | 0.209914 | 0.175013 | 0.167172 | 0.167172 | 0.146434 | 0 | 0.024676 | 0.326953 | 7,105 | 252 | 92 | 28.194444 | 0.802175 | 0.425334 | 0 | 0.061856 | 0 | 0 | 0.007968 | 0 | 0 | 0 | 0 | 0 | 0.010309 | 1 | 0.092784 | false | 0 | 0.041237 | 0 | 0.216495 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d2e2156c949fb7522a291e88e911e831ba30e23c | 1,115 | py | Python | DFS/Leetcode1239.py | Rylie-W/LeetRecord | 623c4efe88b3af54b8a65f6ec23db850b8c6f46f | [
"Apache-2.0"
] | null | null | null | DFS/Leetcode1239.py | Rylie-W/LeetRecord | 623c4efe88b3af54b8a65f6ec23db850b8c6f46f | [
"Apache-2.0"
] | null | null | null | DFS/Leetcode1239.py | Rylie-W/LeetRecord | 623c4efe88b3af54b8a65f6ec23db850b8c6f46f | [
"Apache-2.0"
] | null | null | null | class Solution:
def maxLength(self, arr) -> int:
def helper(word):
temp=[]
temp[:0]=word
res=set()
for w in temp:
if w not in res:
res.add(w)
else:
return None
return res
... | 26.547619 | 90 | 0.419731 | 142 | 1,115 | 3.239437 | 0.457746 | 0.06087 | 0.052174 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007553 | 0.406278 | 1,115 | 41 | 91 | 27.195122 | 0.687311 | 0.138117 | 0 | 0.064516 | 0 | 0 | 0.014675 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.096774 | false | 0 | 0 | 0 | 0.290323 | 0.032258 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d2e3431a8ca64567f24a9939424b3256a13d8da9 | 34,809 | py | Python | liberapay/payin/common.py | Panquesito7/liberapay.com | d6806390a533061c2b9fb147d7139d06024f9a1b | [
"PostgreSQL",
"CC0-1.0"
] | 1 | 2021-07-26T02:07:13.000Z | 2021-07-26T02:07:13.000Z | liberapay/payin/common.py | Panquesito7/liberapay.com | d6806390a533061c2b9fb147d7139d06024f9a1b | [
"PostgreSQL",
"CC0-1.0"
] | null | null | null | liberapay/payin/common.py | Panquesito7/liberapay.com | d6806390a533061c2b9fb147d7139d06024f9a1b | [
"PostgreSQL",
"CC0-1.0"
] | null | null | null | from collections import namedtuple
from datetime import timedelta
import itertools
from operator import attrgetter
from pando.utils import utcnow
from psycopg2.extras import execute_batch
from ..constants import SEPA
from ..exceptions import (
AccountSuspended, MissingPaymentAccount, RecipientAccountSuspended,
... | 39.964409 | 108 | 0.579965 | 4,093 | 34,809 | 4.790862 | 0.110677 | 0.015503 | 0.003978 | 0.00561 | 0.410679 | 0.337447 | 0.296191 | 0.255852 | 0.214901 | 0.1688 | 0 | 0.001906 | 0.336723 | 34,809 | 870 | 109 | 40.010345 | 0.84741 | 0.230027 | 0 | 0.256281 | 0 | 0.008375 | 0.391093 | 0.021196 | 0 | 0 | 0 | 0 | 0.028476 | 1 | 0.023451 | false | 0 | 0.01675 | 0 | 0.075377 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d2e3af7e8020910904dd800db879455657d8308e | 4,993 | py | Python | main.py | Potapov-AA/CaesarCipherWithKeyword | 4bd520418254b56950be079d0fce638039d4e202 | [
"MIT"
] | null | null | null | main.py | Potapov-AA/CaesarCipherWithKeyword | 4bd520418254b56950be079d0fce638039d4e202 | [
"MIT"
] | null | null | null | main.py | Potapov-AA/CaesarCipherWithKeyword | 4bd520418254b56950be079d0fce638039d4e202 | [
"MIT"
] | null | null | null | import time
from os import system, walk
from config import CONFIG
from encry import ENCRY
from decry import DECRY
# Функция настройки конфигурации
def conf_setting():
system('CLS')
print("Enter key elements: ")
# Выбор алфавита
alphabet = input("Select the used alphabet [EN]GLISH | [RU]SSIAN: ")
#... | 32.848684 | 143 | 0.488684 | 501 | 4,993 | 4.790419 | 0.299401 | 0.03 | 0.029167 | 0.0625 | 0.349167 | 0.28875 | 0.28875 | 0.2575 | 0.16 | 0.151667 | 0 | 0.003384 | 0.408171 | 4,993 | 151 | 144 | 33.066225 | 0.808799 | 0.084318 | 0 | 0.351351 | 0 | 0.009009 | 0.214004 | 0.005707 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045045 | false | 0 | 0.045045 | 0 | 0.108108 | 0.243243 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d2e5ecb02a9dd4eeeac961445b6d9553ecd7b3a1 | 1,743 | py | Python | converter.py | Poudingue/Max2Mitsuba | 857c67b91f524de3e33f66958f26b022fa0a38f0 | [
"WTFPL"
] | 4 | 2019-10-30T09:18:42.000Z | 2020-06-18T12:50:06.000Z | converter.py | Poudingue/Fbx2Mitsuba | 857c67b91f524de3e33f66958f26b022fa0a38f0 | [
"WTFPL"
] | null | null | null | converter.py | Poudingue/Fbx2Mitsuba | 857c67b91f524de3e33f66958f26b022fa0a38f0 | [
"WTFPL"
] | null | null | null | import sys
import os
if sys.version_info[0] != 3 :
print("Running in python "+sys.version_info[0]+", should be python 3.")
print("Please install python 3.7 from the official site python.org")
print("Exiting now.")
exit()
import shutil
import argparse
import fbx2tree
import builder_fromfbx
import time
# config is... | 34.86 | 176 | 0.724613 | 256 | 1,743 | 4.859375 | 0.4375 | 0.036174 | 0.068328 | 0.050643 | 0.115756 | 0.115756 | 0.038585 | 0.038585 | 0 | 0 | 0 | 0.009901 | 0.130809 | 1,743 | 49 | 177 | 35.571429 | 0.811221 | 0.056799 | 0 | 0.054054 | 0 | 0.054054 | 0.372561 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.216216 | 0 | 0.216216 | 0.162162 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d2e64e022f433cd3fd044c614f4cd92d7a6f232d | 4,256 | py | Python | run.py | snandasena/disaster-response-pipeline | 709af8c5fcb520dae82dc3b75c30ab2609402f53 | [
"MIT"
] | null | null | null | run.py | snandasena/disaster-response-pipeline | 709af8c5fcb520dae82dc3b75c30ab2609402f53 | [
"MIT"
] | null | null | null | run.py | snandasena/disaster-response-pipeline | 709af8c5fcb520dae82dc3b75c30ab2609402f53 | [
"MIT"
] | null | null | null | import sys
import json
import plotly
from flask import Flask
from flask import render_template, request
from plotly.graph_objects import Heatmap, Bar
from sklearn.externals import joblib
from sqlalchemy import create_engine
sys.path.append("common")
from common.nlp_common_utils import *
if len(sys.argv) == 1:
s... | 25.95122 | 79 | 0.672227 | 544 | 4,256 | 5.055147 | 0.316176 | 0.015273 | 0.024727 | 0.036364 | 0.179273 | 0.139273 | 0.078909 | 0.078909 | 0.078909 | 0.078909 | 0 | 0.003948 | 0.226269 | 4,256 | 163 | 80 | 26.110429 | 0.831157 | 0.232378 | 0 | 0.083333 | 0 | 0 | 0.108557 | 0.015645 | 0 | 0 | 0 | 0 | 0 | 1 | 0.107143 | false | 0 | 0.107143 | 0 | 0.309524 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d2e65a9a5236dcdd44347a721b18b12179871e04 | 840 | py | Python | process.py | s-xie/processing | e0f1a851bed6159a718ae4e4afb3bfe3a30f6af5 | [
"MIT"
] | null | null | null | process.py | s-xie/processing | e0f1a851bed6159a718ae4e4afb3bfe3a30f6af5 | [
"MIT"
] | null | null | null | process.py | s-xie/processing | e0f1a851bed6159a718ae4e4afb3bfe3a30f6af5 | [
"MIT"
] | null | null | null | import re
import sys
from nltk.tokenize import word_tokenize
from unidecode import unidecode
from nltk.tokenize import sent_tokenize
import argparse
parser = argparse.ArgumentParser()
parser.add_argument('fin')
parser.add_argument('fout')
args = parser.parse_args()
textproc = TextProc()
tokenizer = Tokenizer()
sente... | 20 | 45 | 0.613095 | 115 | 840 | 4.426087 | 0.426087 | 0.082515 | 0.062868 | 0.086444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032 | 0.255952 | 840 | 41 | 46 | 20.487805 | 0.7824 | 0 | 0 | 0.222222 | 0 | 0 | 0.027381 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d2e6ff17f08688e760eb2d19c6c6dfcc805a369d | 1,071 | py | Python | Aula 14 - Estrutura de repetição while/desafio058-jogo-da-adivinhação.py | josue-rosa/Python---Curso-em-Video | 2d74c7421a49952b7c3eadb1010533525f2de338 | [
"MIT"
] | 3 | 2020-10-07T03:21:07.000Z | 2020-10-13T14:18:49.000Z | Aula 14 - Estrutura de repetição while/desafio058-jogo-da-adivinhação.py | josue-rosa/Python---Curso-em-Video | 2d74c7421a49952b7c3eadb1010533525f2de338 | [
"MIT"
] | null | null | null | Aula 14 - Estrutura de repetição while/desafio058-jogo-da-adivinhação.py | josue-rosa/Python---Curso-em-Video | 2d74c7421a49952b7c3eadb1010533525f2de338 | [
"MIT"
] | null | null | null | """
Melhore o jogo do DESAFIO 028 onde o computador vai "pensar" em um numero entre 0 e 10.
Só que agora o jogador vai tentar adivinhar até acertar, mostrando no final
quantos palpites foram necessários para vencer
"""
"""
from random import randint
tentativas = 1
computador = randint(0, 10)
jogador = int(input('Infor... | 28.945946 | 87 | 0.687208 | 146 | 1,071 | 5.041096 | 0.5 | 0.092391 | 0.061141 | 0.024457 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022485 | 0.211018 | 1,071 | 36 | 88 | 29.75 | 0.848521 | 0.218487 | 0 | 0 | 0 | 0 | 0.295775 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 0.0625 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d2e7114d8d4486671f83a30e7420ce1d69cd65c1 | 1,550 | py | Python | plugins/googlefight.py | serpis/pynik | 074e6b2d2282557976eee3681d8bfcd5659c011e | [
"MIT"
] | 4 | 2016-08-09T21:25:23.000Z | 2019-08-16T21:55:17.000Z | plugins/googlefight.py | serpis/pynik | 074e6b2d2282557976eee3681d8bfcd5659c011e | [
"MIT"
] | 10 | 2015-01-25T21:25:22.000Z | 2021-01-28T19:50:22.000Z | plugins/googlefight.py | serpis/pynik | 074e6b2d2282557976eee3681d8bfcd5659c011e | [
"MIT"
] | 4 | 2015-05-06T21:45:39.000Z | 2018-07-02T16:47:36.000Z | # coding: utf-8
import re
import utility
from commands import Command
def google_pages(string):
url = 'http://www.google.se/search?q=' + utility.escape(string) + '&ie=UTF-8&oe=UTF-8'
response = utility.read_url(url)
data = response["data"]
search = re.search('swrnum=(\d+)">', data)
if search:
result = searc... | 22.142857 | 100 | 0.623226 | 218 | 1,550 | 4.380734 | 0.37156 | 0.052356 | 0.029319 | 0.029319 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.063439 | 0.227097 | 1,550 | 69 | 101 | 22.463768 | 0.733723 | 0.008387 | 0 | 0.166667 | 0 | 0 | 0.115309 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074074 | false | 0.018519 | 0.055556 | 0 | 0.314815 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d2e833d9d9dbd44a801765209ab9f359cdd98029 | 6,770 | py | Python | app/api/v2/resources/saleorders.py | calebrotich10/store-manager-api-v2 | 16dff84823e77218f1135c99f0592f113fddee84 | [
"MIT"
] | null | null | null | app/api/v2/resources/saleorders.py | calebrotich10/store-manager-api-v2 | 16dff84823e77218f1135c99f0592f113fddee84 | [
"MIT"
] | null | null | null | app/api/v2/resources/saleorders.py | calebrotich10/store-manager-api-v2 | 16dff84823e77218f1135c99f0592f113fddee84 | [
"MIT"
] | 1 | 2018-11-04T18:09:38.000Z | 2018-11-04T18:09:38.000Z | """This module contains objects for saleorders endpoints"""
from flask import Flask, jsonify, request, abort, make_response
from flask_restful import Resource
from flask_jwt_extended import get_jwt_identity, jwt_required
from . import common_functions
from ..models import products, saleorders
from ..utils import veri... | 39.590643 | 180 | 0.578434 | 660 | 6,770 | 5.730303 | 0.210606 | 0.069804 | 0.087255 | 0.096245 | 0.37229 | 0.318879 | 0.286621 | 0.264939 | 0.237441 | 0.208884 | 0 | 0.012664 | 0.335155 | 6,770 | 171 | 181 | 39.590643 | 0.827594 | 0.034269 | 0 | 0.30597 | 0 | 0.007463 | 0.168002 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022388 | false | 0 | 0.052239 | 0 | 0.171642 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d2ea517f3b08f633622c54a6e6b06e1d6019f32c | 627 | py | Python | installer/core/terraform/resources/variable.py | Diffblue-benchmarks/pacbot | 4709eb11f87636bc42a52e7a76b740f9d76d156d | [
"Apache-2.0"
] | 1,165 | 2018-10-05T19:07:34.000Z | 2022-03-28T19:34:27.000Z | installer/core/terraform/resources/variable.py | Diffblue-benchmarks/pacbot | 4709eb11f87636bc42a52e7a76b740f9d76d156d | [
"Apache-2.0"
] | 334 | 2018-10-10T14:00:41.000Z | 2022-03-19T16:32:08.000Z | installer/core/terraform/resources/variable.py | Diffblue-benchmarks/pacbot | 4709eb11f87636bc42a52e7a76b740f9d76d156d | [
"Apache-2.0"
] | 268 | 2018-10-05T19:53:25.000Z | 2022-03-31T07:39:47.000Z | from core.terraform.resources import BaseTerraformVariable
class TerraformVariable(BaseTerraformVariable):
"""
Base resource class for Terraform tfvar variable
Attributes:
variable_dict_input (dict/none): Var dict values
available_args (dict): Instance configurations
variable_type... | 31.35 | 98 | 0.6874 | 67 | 627 | 6.268657 | 0.567164 | 0.085714 | 0.080952 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.22488 | 627 | 19 | 99 | 33 | 0.864198 | 0.414673 | 0 | 0 | 0 | 0 | 0.18806 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d2eb169f57649820eef340c3a134f871d837dd00 | 887 | py | Python | bfs.py | mpHarm88/Algorithms-and-Data-Structures-In-Python | a0689e57e0895c375715f39d078704e6faf72f0e | [
"MIT"
] | null | null | null | bfs.py | mpHarm88/Algorithms-and-Data-Structures-In-Python | a0689e57e0895c375715f39d078704e6faf72f0e | [
"MIT"
] | null | null | null | bfs.py | mpHarm88/Algorithms-and-Data-Structures-In-Python | a0689e57e0895c375715f39d078704e6faf72f0e | [
"MIT"
] | null | null | null |
class Node(object):
def __init__(self, name):
self.name = name;
self.adjacencyList = [];
self.visited = False;
self.predecessor = None;
class BreadthFirstSearch(object):
def bfs(self, startNode):
queue = [];
queue.append(startNode);
startNode.visited = True;
# BFS -> queue ... | 21.634146 | 83 | 0.626832 | 104 | 887 | 5.307692 | 0.461538 | 0.137681 | 0.086957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021834 | 0.225479 | 887 | 41 | 84 | 21.634146 | 0.781659 | 0.087937 | 0 | 0 | 0 | 0 | 0.01043 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068966 | false | 0 | 0 | 0 | 0.137931 | 0.034483 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d2ed017d8f6bd12bbaded9891125e05125930fde | 3,932 | py | Python | supervisor/dbus/network/connection.py | peddamat/home-assistant-supervisor-test | 5da55772bcb2db3c6d8432cbc08e2ac9fbf480c4 | [
"Apache-2.0"
] | 1 | 2022-02-08T21:32:33.000Z | 2022-02-08T21:32:33.000Z | supervisor/dbus/network/connection.py | peddamat/home-assistant-supervisor-test | 5da55772bcb2db3c6d8432cbc08e2ac9fbf480c4 | [
"Apache-2.0"
] | 310 | 2020-03-12T16:02:13.000Z | 2022-03-31T06:01:49.000Z | supervisor/dbus/network/connection.py | peddamat/home-assistant-supervisor-test | 5da55772bcb2db3c6d8432cbc08e2ac9fbf480c4 | [
"Apache-2.0"
] | 2 | 2021-09-22T00:13:58.000Z | 2021-09-22T15:06:27.000Z | """Connection object for Network Manager."""
from ipaddress import ip_address, ip_interface
from typing import Optional
from ...const import ATTR_ADDRESS, ATTR_PREFIX
from ...utils.gdbus import DBus
from ..const import (
DBUS_ATTR_ADDRESS_DATA,
DBUS_ATTR_CONNECTION,
DBUS_ATTR_GATEWAY,
DBUS_ATTR_ID,
... | 33.606838 | 88 | 0.630214 | 440 | 3,932 | 5.331818 | 0.152273 | 0.095482 | 0.069054 | 0.084399 | 0.387894 | 0.290708 | 0.248934 | 0.197783 | 0.124467 | 0.091219 | 0 | 0.012752 | 0.282045 | 3,932 | 116 | 89 | 33.896552 | 0.818278 | 0.10529 | 0 | 0.174419 | 0 | 0 | 0.026799 | 0.026799 | 0 | 0 | 0 | 0 | 0 | 1 | 0.093023 | false | 0 | 0.081395 | 0 | 0.267442 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d2efe900f19b7e3838e3eb40b9017e440e296e62 | 4,969 | py | Python | quark/databricks.py | mistsys/quark | 7baef5e18d5b9d12384a92487151337878958f36 | [
"Apache-2.0"
] | 2 | 2019-02-27T20:51:30.000Z | 2021-05-26T02:35:29.000Z | quark/databricks.py | mistsys/quark | 7baef5e18d5b9d12384a92487151337878958f36 | [
"Apache-2.0"
] | null | null | null | quark/databricks.py | mistsys/quark | 7baef5e18d5b9d12384a92487151337878958f36 | [
"Apache-2.0"
] | 1 | 2020-05-30T22:59:16.000Z | 2020-05-30T22:59:16.000Z | from __future__ import print_function, absolute_import
from .beats import Beat
from StringIO import StringIO
import sys
import os
import json
import urllib
import webbrowser
try:
import pycurl
except:
print("Need pycurl dependency to use qubole as the deployment platform. Run pip install pycurl in your virtuale... | 33.126667 | 141 | 0.602737 | 612 | 4,969 | 4.75817 | 0.320261 | 0.03125 | 0.053571 | 0.024038 | 0.169299 | 0.154876 | 0.085165 | 0.075549 | 0.031593 | 0 | 0 | 0.004758 | 0.280942 | 4,969 | 149 | 142 | 33.348993 | 0.810243 | 0.122359 | 0 | 0.238938 | 0 | 0.00885 | 0.0948 | 0.005292 | 0 | 0 | 0 | 0 | 0.00885 | 1 | 0.159292 | false | 0.026549 | 0.079646 | 0.00885 | 0.283186 | 0.159292 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d2efeac4ab430fe4ec37a8045db0d9bc80676c48 | 9,658 | py | Python | appimagebuilder/builder/deploy/apt/venv.py | mssalvatore/appimage-builder | 2ecb7973cedfff9d03a21258419e515c48cafe84 | [
"MIT"
] | null | null | null | appimagebuilder/builder/deploy/apt/venv.py | mssalvatore/appimage-builder | 2ecb7973cedfff9d03a21258419e515c48cafe84 | [
"MIT"
] | null | null | null | appimagebuilder/builder/deploy/apt/venv.py | mssalvatore/appimage-builder | 2ecb7973cedfff9d03a21258419e515c48cafe84 | [
"MIT"
] | null | null | null | # Copyright 2020 Alexis Lopez Zubieta
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation the
# rights to use, copy, modify, merge, ... | 37.003831 | 98 | 0.610685 | 1,160 | 9,658 | 4.825 | 0.2 | 0.027515 | 0.03216 | 0.025728 | 0.297659 | 0.234769 | 0.186529 | 0.182598 | 0.170091 | 0.148472 | 0 | 0.002449 | 0.281114 | 9,658 | 260 | 99 | 37.146154 | 0.803687 | 0.077345 | 0 | 0.09 | 0 | 0.005 | 0.097594 | 0.021363 | 0 | 0 | 0 | 0 | 0.025 | 1 | 0.085 | false | 0 | 0.045 | 0 | 0.18 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d2f6c77eeb49683e8ab27570e5b6c4f101091a5b | 2,195 | py | Python | tests/system/action/test_general.py | FinnStutzenstein/openslides-backend | fffc152f79d3446591e07a6913d9fdf30b46f577 | [
"MIT"
] | null | null | null | tests/system/action/test_general.py | FinnStutzenstein/openslides-backend | fffc152f79d3446591e07a6913d9fdf30b46f577 | [
"MIT"
] | null | null | null | tests/system/action/test_general.py | FinnStutzenstein/openslides-backend | fffc152f79d3446591e07a6913d9fdf30b46f577 | [
"MIT"
] | null | null | null | from .base import BaseActionTestCase
class GeneralActionWSGITester(BaseActionTestCase):
"""
Tests the action WSGI application in general.
"""
def test_request_wrong_method(self) -> None:
response = self.client.get("/")
self.assert_status_code(response, 405)
def test_request_wrong... | 35.403226 | 79 | 0.625968 | 238 | 2,195 | 5.542017 | 0.327731 | 0.037149 | 0.084913 | 0.106141 | 0.501137 | 0.438969 | 0.322214 | 0.296437 | 0.134951 | 0 | 0 | 0.020122 | 0.252847 | 2,195 | 61 | 80 | 35.983607 | 0.784146 | 0.020501 | 0 | 0.265306 | 0 | 0 | 0.188379 | 0.052015 | 0 | 0 | 0 | 0 | 0.285714 | 1 | 0.142857 | false | 0 | 0.020408 | 0 | 0.183673 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d2f71173ca42ab7fa57a0943b698ed9189ef93d3 | 2,897 | py | Python | src/thead/cls/amsart.py | jakub-oprsal/thead | df175adf6ad0b3b16ec0703a31e7020327df4c92 | [
"MIT"
] | null | null | null | src/thead/cls/amsart.py | jakub-oprsal/thead | df175adf6ad0b3b16ec0703a31e7020327df4c92 | [
"MIT"
] | null | null | null | src/thead/cls/amsart.py | jakub-oprsal/thead | df175adf6ad0b3b16ec0703a31e7020327df4c92 | [
"MIT"
] | null | null | null | from .common import *
HEADER = r'''\usepackage{tikz}
\definecolor{purple}{cmyk}{0.55,1,0,0.15}
\definecolor{darkblue}{cmyk}{1,0.58,0,0.21}
\usepackage[colorlinks,
linkcolor=black,
urlcolor=darkblue,
citecolor=purple]{hyperref}
\urlstyle{same}
\newtheorem{theorem}{Theorem}[section]
\newtheorem{lemma}[theorem]{L... | 27.074766 | 75 | 0.643079 | 324 | 2,897 | 5.660494 | 0.324074 | 0.04253 | 0.024537 | 0.035987 | 0.067067 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006929 | 0.202969 | 2,897 | 106 | 76 | 27.330189 | 0.787354 | 0.006213 | 0 | 0 | 0 | 0 | 0.348975 | 0.204727 | 0 | 0 | 0 | 0 | 0 | 1 | 0.075 | false | 0 | 0.0125 | 0.0125 | 0.1625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d2f90e2105f715bfa385ede947f0041c8746e8c3 | 6,133 | py | Python | in_progress/GiRaFFEfood_NRPy/GiRaFFEfood_NRPy_Aligned_Rotator.py | fedelopezar/nrpytutorial | 753acd954be4a2f99639c9f9fd5e623689fc7493 | [
"BSD-2-Clause"
] | 1 | 2021-12-13T05:51:18.000Z | 2021-12-13T05:51:18.000Z | in_progress/GiRaFFEfood_NRPy/GiRaFFEfood_NRPy_Aligned_Rotator.py | fedelopezar/nrpytutorial | 753acd954be4a2f99639c9f9fd5e623689fc7493 | [
"BSD-2-Clause"
] | null | null | null | in_progress/GiRaFFEfood_NRPy/GiRaFFEfood_NRPy_Aligned_Rotator.py | fedelopezar/nrpytutorial | 753acd954be4a2f99639c9f9fd5e623689fc7493 | [
"BSD-2-Clause"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
# <a id='top'></a>
#
#
# # $\texttt{GiRaFFEfood}$: Initial data for $\texttt{GiRaFFE}$
#
# ## Aligned Rotator
#
# $$\label{top}$$
#
# This module provides another initial data option for $\texttt{GiRaFFE}$. This is a flat-spacetime test with initial data $$A_{\phi} = \frac{\mu \va... | 43.807143 | 334 | 0.633458 | 940 | 6,133 | 4.015957 | 0.279787 | 0.063046 | 0.021457 | 0.033377 | 0.33404 | 0.321325 | 0.284238 | 0.213775 | 0.18755 | 0.18755 | 0 | 0.020584 | 0.223708 | 6,133 | 139 | 335 | 44.122302 | 0.772317 | 0.616501 | 0 | 0.114286 | 0 | 0 | 0.047153 | 0.022242 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028571 | false | 0 | 0.142857 | 0 | 0.171429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d2fa22173570793bad17191d495756a260b18a45 | 803 | py | Python | deploys/call_httpx.py | vic9527/ViClassifier | fd6c4730e880f35a9429277a6025219315e067cc | [
"MIT"
] | 1 | 2021-11-03T05:05:34.000Z | 2021-11-03T05:05:34.000Z | deploys/call_httpx.py | vic9527/viclassifier | fd6c4730e880f35a9429277a6025219315e067cc | [
"MIT"
] | null | null | null | deploys/call_httpx.py | vic9527/viclassifier | fd6c4730e880f35a9429277a6025219315e067cc | [
"MIT"
] | null | null | null | """
比requests更强大python库,让你的爬虫效率提高一倍
https://mp.weixin.qq.com/s/jqGx-4t4ytDDnXxDkzbPqw
HTTPX 基础教程
https://zhuanlan.zhihu.com/p/103824900
"""
def interface(url, data):
import httpx
head = {"Content-Type": "application/json; charset=UTF-8"}
return httpx.request('POST', url, json=data, headers=head)
if __... | 27.689655 | 62 | 0.651308 | 96 | 803 | 5.302083 | 0.572917 | 0.041257 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039755 | 0.185554 | 803 | 28 | 63 | 28.678571 | 0.738532 | 0.43213 | 0 | 0 | 0 | 0 | 0.236902 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.1 | 0 | 0.3 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d2fb4e383d869720b16333431cb622b5be807b1f | 9,034 | py | Python | src/rgt/THOR/THOR.py | mguo123/pan_omics | e1cacd543635b398fb08c0b31d08fa6b7c389658 | [
"MIT"
] | null | null | null | src/rgt/THOR/THOR.py | mguo123/pan_omics | e1cacd543635b398fb08c0b31d08fa6b7c389658 | [
"MIT"
] | null | null | null | src/rgt/THOR/THOR.py | mguo123/pan_omics | e1cacd543635b398fb08c0b31d08fa6b7c389658 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
THOR detects differential peaks in multiple ChIP-seq profiles associated
with two distinct biological conditions.
Copyright (C) 2014-2016 Manuel Allhoff (allhoff@aices.rwth-aachen.de)
This program is free software: you can redistribute it and/or modify
it under the te... | 55.765432 | 132 | 0.649878 | 1,133 | 9,034 | 4.939982 | 0.255075 | 0.035019 | 0.025728 | 0.025013 | 0.443809 | 0.392174 | 0.342148 | 0.321601 | 0.304449 | 0.251206 | 0 | 0.006124 | 0.258911 | 9,034 | 161 | 133 | 56.111801 | 0.829873 | 0.17257 | 0 | 0.063158 | 0 | 0.052632 | 0.049456 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.042105 | false | 0.031579 | 0.094737 | 0 | 0.147368 | 0.052632 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d2fb7b436323415834f7a74459e3f1d624c2d737 | 5,864 | py | Python | web/api/classroom.py | bbougon/crm-pilates | 47de4bad3d48208f9b499139fcddb7f8955b2509 | [
"MIT"
] | null | null | null | web/api/classroom.py | bbougon/crm-pilates | 47de4bad3d48208f9b499139fcddb7f8955b2509 | [
"MIT"
] | 2 | 2021-05-26T20:47:29.000Z | 2021-07-11T23:18:55.000Z | web/api/classroom.py | bbougon/crm-pilates | 47de4bad3d48208f9b499139fcddb7f8955b2509 | [
"MIT"
] | 1 | 2021-06-30T15:20:54.000Z | 2021-06-30T15:20:54.000Z | from http import HTTPStatus
from typing import Tuple
from uuid import UUID
from fastapi import status, APIRouter, Response, Depends, HTTPException
from command.command_handler import Status
from domain.classroom.classroom_creation_command_handler import ClassroomCreated
from domain.classroom.classroom_type import Cla... | 45.8125 | 120 | 0.603342 | 529 | 5,864 | 6.548204 | 0.26087 | 0.063799 | 0.025982 | 0.040416 | 0.247113 | 0.247113 | 0.230658 | 0.230658 | 0.189665 | 0.174365 | 0 | 0.006253 | 0.318213 | 5,864 | 127 | 121 | 46.173228 | 0.86018 | 0 | 0 | 0.262712 | 0 | 0 | 0.159106 | 0.004604 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025424 | false | 0 | 0.127119 | 0 | 0.169492 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d2fd57ba506b050706da4ce9ab6b0a547ce3b622 | 806 | py | Python | 第12章/program/Requester/Launcher.py | kingname/SourceCodeOfBook | ab7275108994dca564905818b678bbd2f771c18e | [
"MIT"
] | 274 | 2018-10-01T11:07:25.000Z | 2022-03-17T13:48:45.000Z | 第12章/program/Requester/Launcher.py | kingname/SourceCodeOfBook | ab7275108994dca564905818b678bbd2f771c18e | [
"MIT"
] | 6 | 2019-02-28T14:18:21.000Z | 2022-03-02T14:57:39.000Z | 第12章/program/Requester/Launcher.py | kingname/SourceCodeOfBook | ab7275108994dca564905818b678bbd2f771c18e | [
"MIT"
] | 110 | 2018-10-16T06:08:37.000Z | 2022-03-16T08:19:29.000Z | import os
scrapy_project_path = '/Users/kingname/book/chapter_12/DeploySpider'
os.chdir(scrapy_project_path) #切换工作区,进入爬虫工程根目录执行命令
os.system('scrapyd-deploy')
import json
import time
import requests
start_url = 'http://45.76.110.210:6800/schedule.json'
start_data = {'project': 'DeploySpider',
'spider':... | 26.866667 | 84 | 0.719603 | 117 | 806 | 4.777778 | 0.42735 | 0.050089 | 0.096601 | 0.039356 | 0.296959 | 0.296959 | 0.200358 | 0.125224 | 0 | 0 | 0 | 0.043115 | 0.10794 | 806 | 29 | 85 | 27.793103 | 0.734353 | 0.271712 | 0 | 0 | 0 | 0 | 0.368512 | 0.076125 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
9600225ca5edde94d999985a5e32bc3c498cea99 | 1,731 | py | Python | ml_snek/datasets/jsnek_dataset.py | joram/ml-snek | e1ed8aa831a4683dfe51a6af0cb25a44c3978903 | [
"MIT"
] | null | null | null | ml_snek/datasets/jsnek_dataset.py | joram/ml-snek | e1ed8aa831a4683dfe51a6af0cb25a44c3978903 | [
"MIT"
] | 13 | 2019-12-25T21:04:49.000Z | 2020-01-04T20:25:05.000Z | ml_snek/datasets/jsnek_dataset.py | joram/ml-snek | e1ed8aa831a4683dfe51a6af0cb25a44c3978903 | [
"MIT"
] | null | null | null | """
jsnek_saved_games_dataset that returns flat (vectorized) data
"""
from .jsnek_base_dataset import JSnekBaseDataset
from .. import utils
class JSnekDataset(JSnekBaseDataset):
"""Represents a board state in the following way:
board_state: `torch.Tensor`
Board state in torch.Tensor format. Board st... | 26.630769 | 82 | 0.622184 | 214 | 1,731 | 4.719626 | 0.313084 | 0.178218 | 0.071287 | 0.106931 | 0.445545 | 0.366337 | 0.366337 | 0.30297 | 0.30297 | 0.30297 | 0 | 0.000823 | 0.298094 | 1,731 | 64 | 83 | 27.046875 | 0.830453 | 0.388793 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0.105263 | 0 | 0.315789 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
96023217ef1c244003018d7cd3aa5cc748e1d708 | 7,631 | py | Python | examples/stl10/main_info.py | hehaodele/align_uniform | 898b9fed960316d4cab6f8b6080490125fc362cd | [
"MIT"
] | null | null | null | examples/stl10/main_info.py | hehaodele/align_uniform | 898b9fed960316d4cab6f8b6080490125fc362cd | [
"MIT"
] | null | null | null | examples/stl10/main_info.py | hehaodele/align_uniform | 898b9fed960316d4cab6f8b6080490125fc362cd | [
"MIT"
] | null | null | null | import os
import time
import argparse
import torchvision
import torch
import torch.nn as nn
from util import AverageMeter, TwoAugUnsupervisedDataset
from encoder import SmallAlexNet
from align_uniform import align_loss, uniform_loss
import json
def parse_option():
parser = argparse.ArgumentParser('STL-10 Repres... | 43.357955 | 129 | 0.657974 | 1,082 | 7,631 | 4.411275 | 0.216266 | 0.033941 | 0.064111 | 0.011314 | 0.153782 | 0.080872 | 0.061596 | 0.046931 | 0.033941 | 0.016342 | 0 | 0.035009 | 0.210195 | 7,631 | 175 | 130 | 43.605714 | 0.756927 | 0 | 0 | 0.02963 | 0 | 0.02963 | 0.177303 | 0.053728 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02963 | false | 0 | 0.081481 | 0.007407 | 0.133333 | 0.02963 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
96037b162a17a26e6138061ce184f323626f7486 | 5,305 | py | Python | ptf/tests/linerate/qos_metrics.py | dariusgrassi/upf-epc | aef4648db118d6e1bdb23a07e4774177bd58fc50 | [
"Apache-2.0"
] | null | null | null | ptf/tests/linerate/qos_metrics.py | dariusgrassi/upf-epc | aef4648db118d6e1bdb23a07e4774177bd58fc50 | [
"Apache-2.0"
] | 13 | 2021-12-15T18:39:52.000Z | 2022-03-31T00:08:21.000Z | ptf/tests/linerate/qos_metrics.py | dariusgrassi/upf-epc | aef4648db118d6e1bdb23a07e4774177bd58fc50 | [
"Apache-2.0"
] | null | null | null | # SPDX-License-Identifier: Apache-2.0
# Copyright(c) 2021 Open Networking Foundation
import time
from ipaddress import IPv4Address
from pprint import pprint
from trex_test import TrexTest
from grpc_test import *
from trex_stl_lib.api import (
STLVM,
STLPktBuilder,
STLStream,
STLTXCont,
)
import ptf.t... | 30.314286 | 96 | 0.535344 | 603 | 5,305 | 4.600332 | 0.429519 | 0.021629 | 0.025234 | 0.014059 | 0.112112 | 0.053713 | 0.042177 | 0 | 0 | 0 | 0 | 0.05644 | 0.372102 | 5,305 | 174 | 97 | 30.488506 | 0.776343 | 0.140999 | 0 | 0.076923 | 0 | 0.023077 | 0.122756 | 0 | 0 | 0 | 0.003767 | 0.005747 | 0.030769 | 1 | 0.007692 | false | 0 | 0.053846 | 0 | 0.076923 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
9604a31aa1a2fd0161bb919247c6389804233e2e | 6,209 | py | Python | archives_app/documents_serializers.py | DITGO/2021.1-PC-GO1-Archives | d9f28bb29dbe96331b6e2d0beb7ca37875d61300 | [
"MIT"
] | 1 | 2021-08-22T13:39:56.000Z | 2021-08-22T13:39:56.000Z | archives_app/documents_serializers.py | DITGO/2021.1-PC-GO1-Archives | d9f28bb29dbe96331b6e2d0beb7ca37875d61300 | [
"MIT"
] | 36 | 2021-09-01T19:12:17.000Z | 2022-03-18T23:43:13.000Z | archives_app/documents_serializers.py | DITGO/2021.1-PC-GO1-Archives | d9f28bb29dbe96331b6e2d0beb7ca37875d61300 | [
"MIT"
] | 5 | 2021-09-10T21:01:07.000Z | 2021-09-17T16:35:21.000Z | from rest_framework import serializers
from archives_app.documents_models import (FrequencyRelation, BoxArchiving,
AdministrativeProcess, OriginBox,
FrequencySheet, DocumentTypes)
class FrequencySupport(serializers.ModelSerializer):... | 29.995169 | 82 | 0.573522 | 576 | 6,209 | 5.854167 | 0.151042 | 0.068505 | 0.134935 | 0.042705 | 0.455516 | 0.314947 | 0.243772 | 0.223903 | 0.169632 | 0.169632 | 0 | 0 | 0.350781 | 6,209 | 206 | 83 | 30.140777 | 0.836517 | 0 | 0 | 0.450292 | 0 | 0 | 0.165727 | 0.011435 | 0 | 0 | 0 | 0 | 0 | 1 | 0.070175 | false | 0 | 0.011696 | 0 | 0.374269 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
960632beca7334764b877e64f50cf461743b9b2b | 7,132 | py | Python | src/fparser/common/tests/test_base_classes.py | sturmianseq/fparser | bf3cba3f31a72671d4d4a93b6ef4f9832006219f | [
"BSD-3-Clause"
] | 33 | 2017-08-18T16:31:27.000Z | 2022-03-28T09:43:50.000Z | src/fparser/common/tests/test_base_classes.py | sturmianseq/fparser | bf3cba3f31a72671d4d4a93b6ef4f9832006219f | [
"BSD-3-Clause"
] | 319 | 2017-01-12T14:22:07.000Z | 2022-03-23T20:53:25.000Z | src/fparser/common/tests/test_base_classes.py | sturmianseq/fparser | bf3cba3f31a72671d4d4a93b6ef4f9832006219f | [
"BSD-3-Clause"
] | 17 | 2017-10-13T07:12:28.000Z | 2022-02-11T14:42:18.000Z | # -*- coding: utf-8 -*-
##############################################################################
# Copyright (c) 2017 Science and Technology Facilities Council
#
# All rights reserved.
#
# Modifications made as part of the fparser project are distributed
# under the following license:
#
# Redistribution and use i... | 35.839196 | 79 | 0.599411 | 812 | 7,132 | 5.205665 | 0.344828 | 0.061509 | 0.032174 | 0.045422 | 0.399101 | 0.328602 | 0.320322 | 0.249823 | 0.23137 | 0.221907 | 0 | 0.007607 | 0.262759 | 7,132 | 198 | 80 | 36.020202 | 0.79631 | 0.319125 | 0 | 0.424242 | 0 | 0 | 0.19917 | 0.023052 | 0 | 0 | 0 | 0 | 0.070707 | 1 | 0.070707 | false | 0 | 0.070707 | 0 | 0.30303 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
96072e15a870bb0da5695f16be671c56e832f75e | 10,397 | py | Python | ppython/input_handler.py | paberr/ppython | 0c59d503cbd1ca619ad51b627614ae2dd9549c38 | [
"MIT"
] | 1 | 2016-06-15T17:21:22.000Z | 2016-06-15T17:21:22.000Z | ppython/input_handler.py | paberr/ppython | 0c59d503cbd1ca619ad51b627614ae2dd9549c38 | [
"MIT"
] | null | null | null | ppython/input_handler.py | paberr/ppython | 0c59d503cbd1ca619ad51b627614ae2dd9549c38 | [
"MIT"
] | null | null | null | import curtsies.events as ev
import sys
DELIMITERS = ' .'
WHITESPACE = ' '
def print_console(txt, npadding=0, newline=False, flush=True):
"""
Prints txt without newline, cursor positioned at the end.
:param txt: The text to print
:param length: The txt will be padded with spaces to fit this length
... | 28.1 | 101 | 0.541406 | 1,203 | 10,397 | 4.472984 | 0.17207 | 0.064672 | 0.028619 | 0.023416 | 0.278387 | 0.23044 | 0.198476 | 0.178406 | 0.158892 | 0.128786 | 0 | 0.004616 | 0.354044 | 10,397 | 369 | 102 | 28.176152 | 0.796605 | 0.210061 | 0 | 0.347418 | 0 | 0 | 0.024691 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.140845 | false | 0.00939 | 0.00939 | 0 | 0.220657 | 0.014085 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
960742a391af9a30c0acaaa433fd60815de5da1f | 1,601 | py | Python | pycon_graphql/events/tests/test_models.py | CarlosMart626/graphql-workshop-pycon.co2019 | 466e56052efcfc7455336a0ac5c6637c68fcb3b9 | [
"MIT"
] | 1 | 2019-02-10T12:35:14.000Z | 2019-02-10T12:35:14.000Z | pycon_graphql/events/tests/test_models.py | CarlosMart626/graphql-workshop-pycon.co2019 | 466e56052efcfc7455336a0ac5c6637c68fcb3b9 | [
"MIT"
] | null | null | null | pycon_graphql/events/tests/test_models.py | CarlosMart626/graphql-workshop-pycon.co2019 | 466e56052efcfc7455336a0ac5c6637c68fcb3b9 | [
"MIT"
] | 1 | 2019-02-10T15:02:30.000Z | 2019-02-10T15:02:30.000Z | from django.core.exceptions import ValidationError
from django.utils import timezone
from django.test import TestCase
from events.models import Event, Invitee
from users.tests.factories import UserFactory
from users.models import get_sentinel_user
class EventModelTestCase(TestCase):
def setUp(self):
self.... | 36.386364 | 83 | 0.67208 | 192 | 1,601 | 5.40625 | 0.4375 | 0.05395 | 0.087669 | 0.054913 | 0.087669 | 0.065511 | 0.065511 | 0.065511 | 0 | 0 | 0 | 0.033252 | 0.229856 | 1,601 | 43 | 84 | 37.232558 | 0.808597 | 0 | 0 | 0.054054 | 0 | 0 | 0.081824 | 0 | 0 | 0 | 0 | 0 | 0.135135 | 1 | 0.108108 | false | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
96085c19f88d75b4448b45a1368f150dc76f3edb | 2,615 | py | Python | python/test/utils/test_sliced_data_iterator.py | kodavatimahendra/nnabla | 72009f670af075f17ffca9c809b07d48cca30bd9 | [
"Apache-2.0"
] | null | null | null | python/test/utils/test_sliced_data_iterator.py | kodavatimahendra/nnabla | 72009f670af075f17ffca9c809b07d48cca30bd9 | [
"Apache-2.0"
] | null | null | null | python/test/utils/test_sliced_data_iterator.py | kodavatimahendra/nnabla | 72009f670af075f17ffca9c809b07d48cca30bd9 | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2017 Sony Corporation. 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 applicabl... | 34.866667 | 94 | 0.66348 | 372 | 2,615 | 4.478495 | 0.38172 | 0.054022 | 0.039616 | 0.019208 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01422 | 0.247036 | 2,615 | 74 | 95 | 35.337838 | 0.831894 | 0.221415 | 0 | 0 | 0 | 0 | 0.016815 | 0 | 0 | 0 | 0 | 0 | 0.021277 | 1 | 0.06383 | false | 0 | 0.148936 | 0.042553 | 0.234043 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
96090a33ab17b3ef5237b33e54e263f6d813f39f | 819 | py | Python | python/leetcode/646.py | ParkinWu/leetcode | b31312bdefbb2be795f3459e1a76fbc927cab052 | [
"MIT"
] | null | null | null | python/leetcode/646.py | ParkinWu/leetcode | b31312bdefbb2be795f3459e1a76fbc927cab052 | [
"MIT"
] | null | null | null | python/leetcode/646.py | ParkinWu/leetcode | b31312bdefbb2be795f3459e1a76fbc927cab052 | [
"MIT"
] | null | null | null | # 给出 n 个数对。 在每一个数对中,第一个数字总是比第二个数字小。
#
# 现在,我们定义一种跟随关系,当且仅当 b < c 时,数对(c, d) 才可以跟在 (a, b) 后面。我们用这种形式来构造一个数对链。
#
# 给定一个对数集合,找出能够形成的最长数对链的长度。你不需要用到所有的数对,你可以以任何顺序选择其中的一些数对来构造。
#
# 示例 :
#
# 输入: [[1,2], [2,3], [3,4]]
# 输出: 2
# 解释: 最长的数对链是 [1,2] -> [3,4]
# 注意:
#
# 给出数对的个数在 [1, 1000] 范围内。
#
# 来源:力扣(LeetCode)
# 链接:https://leetc... | 22.75 | 70 | 0.57265 | 117 | 819 | 3.940171 | 0.649573 | 0.013015 | 0.013015 | 0.017354 | 0.02603 | 0.02603 | 0 | 0 | 0 | 0 | 0 | 0.047308 | 0.251526 | 819 | 36 | 71 | 22.75 | 0.704731 | 0.450549 | 0 | 0 | 0 | 0 | 0.018519 | 0 | 0 | 0 | 0 | 0 | 0.071429 | 1 | 0.071429 | false | 0 | 0.071429 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
960b4705f7f9212fc6fe401b9f516bcb627b27a2 | 19,044 | py | Python | FactorTestMain.py | WeiYouyi/FactorTest | fc23e23252614ce4ed8973416f7fbb2d0dbb5ccc | [
"MIT"
] | null | null | null | FactorTestMain.py | WeiYouyi/FactorTest | fc23e23252614ce4ed8973416f7fbb2d0dbb5ccc | [
"MIT"
] | null | null | null | FactorTestMain.py | WeiYouyi/FactorTest | fc23e23252614ce4ed8973416f7fbb2d0dbb5ccc | [
"MIT"
] | null | null | null | from FactorTest.FactorTestPara import *
from FactorTest.FactorTestBox import *
class FactorTest():
def __init__(self):
self.startdate=20000101
self.enddate=21000101
self.factorlist=[]
self.FactorDataBase={'v':pd.DataFrame(columns=['time','code'])}
self.filterStock... | 45.342857 | 313 | 0.56548 | 2,072 | 19,044 | 5.132722 | 0.148166 | 0.052656 | 0.025012 | 0.014669 | 0.544335 | 0.503338 | 0.45811 | 0.430748 | 0.395393 | 0.395393 | 0 | 0.015121 | 0.281138 | 19,044 | 419 | 314 | 45.451074 | 0.761724 | 0.063695 | 0 | 0.541284 | 0 | 0 | 0.040005 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055046 | false | 0 | 0.006116 | 0.006116 | 0.091743 | 0.058104 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
960b6014f14f9123b0ec09ae60429c45aaf956f5 | 3,094 | py | Python | src/qm/terachem/terachem.py | hkimaf/unixmd | 616634c720d0589fd600e3268afab9da957e18bb | [
"MIT"
] | null | null | null | src/qm/terachem/terachem.py | hkimaf/unixmd | 616634c720d0589fd600e3268afab9da957e18bb | [
"MIT"
] | null | null | null | src/qm/terachem/terachem.py | hkimaf/unixmd | 616634c720d0589fd600e3268afab9da957e18bb | [
"MIT"
] | null | null | null | from __future__ import division
from qm.qm_calculator import QM_calculator
from misc import call_name
import os
class TeraChem(QM_calculator):
""" Class for common parts of TeraChem
:param string basis_set: Basis set information
:param string functional: Exchange-correlation functional information... | 43.577465 | 108 | 0.61894 | 395 | 3,094 | 4.635443 | 0.23038 | 0.043692 | 0.034407 | 0.0426 | 0.286729 | 0.286729 | 0.262698 | 0.232114 | 0.232114 | 0.205898 | 0 | 0.00133 | 0.270847 | 3,094 | 70 | 109 | 44.2 | 0.810284 | 0.166128 | 0 | 0.244444 | 0 | 0 | 0.344896 | 0.07177 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022222 | false | 0 | 0.088889 | 0 | 0.133333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
960c00e5d06118cad7de3e170d517ce0e7416494 | 11,668 | py | Python | tests/unit/modules/test_reg_win.py | l2ol33rt/salt | ff68bbd9f4bda992a3e039822fb32f141e94347c | [
"Apache-2.0"
] | null | null | null | tests/unit/modules/test_reg_win.py | l2ol33rt/salt | ff68bbd9f4bda992a3e039822fb32f141e94347c | [
"Apache-2.0"
] | null | null | null | tests/unit/modules/test_reg_win.py | l2ol33rt/salt | ff68bbd9f4bda992a3e039822fb32f141e94347c | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
'''
:synopsis: Unit Tests for Windows Registry Module 'module.reg'
:platform: Windows
:maturity: develop
:codeauthor: Damon Atkins <https://github.com/damon-atkins>
versionadded:: 2016.11.0
'''
# Import Python future libs
from __future__ import absolute_import
from __future__... | 38.508251 | 110 | 0.573706 | 1,288 | 11,668 | 4.975932 | 0.195652 | 0.025277 | 0.044937 | 0.054923 | 0.658449 | 0.626619 | 0.588859 | 0.580122 | 0.568263 | 0.541738 | 0 | 0.009186 | 0.346932 | 11,668 | 302 | 111 | 38.635762 | 0.83189 | 0.189236 | 0 | 0.610329 | 0 | 0 | 0.132109 | 0.03113 | 0 | 0 | 0 | 0.003311 | 0.051643 | 1 | 0.051643 | false | 0 | 0.046948 | 0 | 0.103286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
960d016ae24c4293c672a990c11ba81afe431984 | 29,912 | py | Python | modes/import_corpus.py | freingruber/JavaScript-Raider | d1c1fff2fcfc60f210b93dbe063216fa1a83c1d0 | [
"Apache-2.0"
] | 91 | 2022-01-24T07:32:34.000Z | 2022-03-31T23:37:15.000Z | modes/import_corpus.py | zeusguy/JavaScript-Raider | d1c1fff2fcfc60f210b93dbe063216fa1a83c1d0 | [
"Apache-2.0"
] | null | null | null | modes/import_corpus.py | zeusguy/JavaScript-Raider | d1c1fff2fcfc60f210b93dbe063216fa1a83c1d0 | [
"Apache-2.0"
] | 11 | 2022-01-24T14:21:12.000Z | 2022-03-31T23:37:23.000Z | # Copyright 2022 @ReneFreingruber
#
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing... | 46.7375 | 233 | 0.688587 | 3,761 | 29,912 | 5.28184 | 0.197288 | 0.049333 | 0.071583 | 0.086383 | 0.371256 | 0.238208 | 0.153083 | 0.140851 | 0.131639 | 0.116235 | 0 | 0.005647 | 0.212557 | 29,912 | 639 | 234 | 46.810642 | 0.837735 | 0.316595 | 0 | 0.225974 | 0 | 0.002597 | 0.179367 | 0.040693 | 0 | 0 | 0 | 0.001565 | 0.246753 | 1 | 0.018182 | false | 0 | 0.075325 | 0 | 0.12987 | 0.007792 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
960d83d2c94c5959a98a0bd8469e0e2f1a880ff6 | 5,590 | py | Python | crazyflie_demo/scripts/mapping/mapper.py | wydmynd/crazyflie_tom | 0d1cc63dcd0f055d78da82515729ce2098e086cf | [
"MIT"
] | null | null | null | crazyflie_demo/scripts/mapping/mapper.py | wydmynd/crazyflie_tom | 0d1cc63dcd0f055d78da82515729ce2098e086cf | [
"MIT"
] | null | null | null | crazyflie_demo/scripts/mapping/mapper.py | wydmynd/crazyflie_tom | 0d1cc63dcd0f055d78da82515729ce2098e086cf | [
"MIT"
] | null | null | null | #!/usr/bin/env python
""" Simple occupancy-grid-based mapping without localization.
Subscribed topics:
/scan
Published topics:
/map
/map_metadata
Author: Nathan Sprague
Version: 2/13/14
"""
import rospy
from nav_msgs.msg import OccupancyGrid, MapMetaData
from geometry_msgs.msg import Pose, Point, Quaternion
from ... | 33.878788 | 75 | 0.581038 | 722 | 5,590 | 4.391967 | 0.328255 | 0.02649 | 0.017345 | 0.017029 | 0.057395 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014173 | 0.343649 | 5,590 | 164 | 76 | 34.085366 | 0.850095 | 0.506798 | 0 | 0.036364 | 0 | 0 | 0.032086 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.109091 | false | 0.036364 | 0.090909 | 0 | 0.254545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
960e05f94b044cbb96eace708beb765aa68c9708 | 1,553 | py | Python | openslides_backend/services/media/adapter.py | FinnStutzenstein/openslides-backend | fffc152f79d3446591e07a6913d9fdf30b46f577 | [
"MIT"
] | null | null | null | openslides_backend/services/media/adapter.py | FinnStutzenstein/openslides-backend | fffc152f79d3446591e07a6913d9fdf30b46f577 | [
"MIT"
] | null | null | null | openslides_backend/services/media/adapter.py | FinnStutzenstein/openslides-backend | fffc152f79d3446591e07a6913d9fdf30b46f577 | [
"MIT"
] | null | null | null | import requests
from ...shared.exceptions import MediaServiceException
from ...shared.interfaces.logging import LoggingModule
from .interface import MediaService
class MediaServiceAdapter(MediaService):
"""
Adapter to connect to media service.
"""
def __init__(self, media_url: str, logging: LoggingM... | 37.878049 | 79 | 0.647778 | 174 | 1,553 | 5.666667 | 0.333333 | 0.05071 | 0.060852 | 0.039554 | 0.299189 | 0.299189 | 0.236308 | 0.208925 | 0.208925 | 0.208925 | 0 | 0.002545 | 0.240824 | 1,553 | 40 | 80 | 38.825 | 0.833757 | 0.023181 | 0 | 0.206897 | 0 | 0 | 0.148568 | 0.015323 | 0 | 0 | 0 | 0 | 0 | 1 | 0.137931 | false | 0 | 0.137931 | 0 | 0.310345 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
96106fecaab4ad8d3cfef08e2a652f7ab8fec921 | 422 | py | Python | blaze/compute/tests/test_pmap.py | jdmcbr/blaze | 79515a8f0d25a0ff7f87a4cfbed615858241c832 | [
"BSD-3-Clause"
] | 1 | 2015-05-17T23:17:12.000Z | 2015-05-17T23:17:12.000Z | blaze/compute/tests/test_pmap.py | jreback/blaze | 85c39335cac4ef7f2921a7f621bc13525880fc44 | [
"BSD-3-Clause"
] | null | null | null | blaze/compute/tests/test_pmap.py | jreback/blaze | 85c39335cac4ef7f2921a7f621bc13525880fc44 | [
"BSD-3-Clause"
] | null | null | null | from blaze import compute, resource, symbol, discover
from blaze.utils import example
flag = [False]
def mymap(func, *args):
flag[0] = True
return map(func, *args)
def test_map_called_on_resource_star():
r = resource(example('accounts_*.csv'))
s = symbol('s', discover(r))
flag[0] = False
a ... | 21.1 | 53 | 0.637441 | 63 | 422 | 4.174603 | 0.492063 | 0.057034 | 0.098859 | 0.106464 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009063 | 0.21564 | 422 | 19 | 54 | 22.210526 | 0.785498 | 0 | 0 | 0 | 0 | 0 | 0.035545 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.357143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
9610da1cf47afbf95b11be72f8e2780125e49449 | 27,544 | py | Python | functions/asmm_xml.py | EUFAR/asmm-eufar | 69ede7a24f757392e63f04091e86c50ab129016f | [
"BSD-3-Clause"
] | null | null | null | functions/asmm_xml.py | EUFAR/asmm-eufar | 69ede7a24f757392e63f04091e86c50ab129016f | [
"BSD-3-Clause"
] | 2 | 2015-06-12T09:28:29.000Z | 2015-06-12T09:34:16.000Z | functions/asmm_xml.py | eufarn7sp/asmm-eufar | 69ede7a24f757392e63f04091e86c50ab129016f | [
"BSD-3-Clause"
] | null | null | null | import datetime
import xml.dom.minidom
import logging
from PyQt5 import QtCore, QtWidgets
from functions.button_functions import add_read
NAMESPACE_URI = 'http://www.eufar.net/ASMM'
def create_asmm_xml(self, out_file_name):
logging.debug('asmm_xml.py - create_asmm_xml - out_file_name ' + out_file_name)
doc =... | 46.37037 | 138 | 0.647255 | 2,886 | 27,544 | 5.9158 | 0.097713 | 0.0451 | 0.048732 | 0.018977 | 0.503426 | 0.411234 | 0.365958 | 0.261407 | 0.155157 | 0.12347 | 0 | 0.003991 | 0.199499 | 27,544 | 594 | 139 | 46.37037 | 0.77033 | 0.017536 | 0 | 0.243056 | 0 | 0 | 0.098949 | 0.004196 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027778 | false | 0.002315 | 0.011574 | 0.002315 | 0.053241 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
9613fedd3e0d7142ca8e288d57dc930f5c14893f | 7,252 | py | Python | enso/contrib/minimessages.py | blackdaemon/enso-launcher-continued | 346f82811e77caf73560619cdeb16afabfbf1fce | [
"BSD-3-Clause"
] | 7 | 2015-09-19T20:57:32.000Z | 2020-12-31T16:34:42.000Z | enso/contrib/minimessages.py | blackdaemon/enso-launcher-continued | 346f82811e77caf73560619cdeb16afabfbf1fce | [
"BSD-3-Clause"
] | 21 | 2015-11-03T23:15:25.000Z | 2018-10-11T21:57:45.000Z | enso/contrib/minimessages.py | blackdaemon/enso-launcher-continued | 346f82811e77caf73560619cdeb16afabfbf1fce | [
"BSD-3-Clause"
] | 4 | 2015-09-15T17:18:00.000Z | 2021-06-16T07:06:06.000Z | # Author : Pavel Vitis "blackdaemon"
# Email : blackdaemon@seznam.cz
#
# Copyright (c) 2010, Pavel Vitis <blackdaemon@seznam.cz>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# 1. Redistri... | 34.533333 | 90 | 0.59818 | 734 | 7,252 | 5.861035 | 0.435967 | 0.016736 | 0.017434 | 0.015342 | 0.110181 | 0.069735 | 0.069735 | 0.069735 | 0.069735 | 0.069735 | 0 | 0.003535 | 0.219939 | 7,252 | 209 | 91 | 34.698565 | 0.756938 | 0.376034 | 0 | 0.173077 | 0 | 0 | 0.243803 | 0.006823 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.076923 | 0 | 0.288462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
9616192a13cde5beffe85342bdb0bcbe725c8e0a | 3,597 | py | Python | article_curation/test_article_curation.py | mrkarezina/graph-recommendation-api | 8ed3895f7816b095ec27f3c1d972bf5b8e163b34 | [
"MIT"
] | null | null | null | article_curation/test_article_curation.py | mrkarezina/graph-recommendation-api | 8ed3895f7816b095ec27f3c1d972bf5b8e163b34 | [
"MIT"
] | null | null | null | article_curation/test_article_curation.py | mrkarezina/graph-recommendation-api | 8ed3895f7816b095ec27f3c1d972bf5b8e163b34 | [
"MIT"
] | null | null | null | import unittest
from unittest.mock import Mock
import json
from processor import scrape_article
import main
class ArticleCurationTestCase(unittest.TestCase):
def test_article_fetch(self):
response = scrape_article(
url='https://www.cnn.com/2019/03/25/us/yale-rescinds-student-admissions-scand... | 34.586538 | 186 | 0.633584 | 448 | 3,597 | 4.9375 | 0.308036 | 0.0217 | 0.063291 | 0.031646 | 0.480109 | 0.480109 | 0.458409 | 0.432188 | 0.432188 | 0.432188 | 0 | 0.02853 | 0.239922 | 3,597 | 103 | 187 | 34.92233 | 0.780541 | 0.246872 | 0 | 0.519231 | 0 | 0.057692 | 0.235006 | 0 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.076923 | false | 0 | 0.096154 | 0 | 0.192308 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
961a0eab590ae86fe03daebff4911d080dc4f38a | 3,829 | py | Python | pipelines/controllers/datasets.py | platiagro/pipeline-generator | d84b9512c39970c469154eaed56f08780ebf21eb | [
"Apache-2.0"
] | 1 | 2020-05-19T14:57:55.000Z | 2020-05-19T14:57:55.000Z | pipelines/controllers/datasets.py | platiagro/pipelines | d84b9512c39970c469154eaed56f08780ebf21eb | [
"Apache-2.0"
] | 93 | 2020-04-25T21:10:49.000Z | 2020-12-15T18:25:49.000Z | pipelines/controllers/datasets.py | platiagro/pipelines | d84b9512c39970c469154eaed56f08780ebf21eb | [
"Apache-2.0"
] | 6 | 2019-09-05T12:37:59.000Z | 2020-08-08T00:08:25.000Z | # -*- coding: utf-8 -*-
import platiagro
import pandas as pd
from werkzeug.exceptions import NotFound
from pipelines.database import db_session
from pipelines.models import Operator
from pipelines.models.utils import raise_if_experiment_does_not_exist
def get_dataset_name(experiment_id, operator_id,):
"""Retrie... | 32.176471 | 91 | 0.58527 | 426 | 3,829 | 5.105634 | 0.241784 | 0.045977 | 0.022069 | 0.01931 | 0.297931 | 0.297931 | 0.223448 | 0.150805 | 0.150805 | 0.070805 | 0 | 0.001943 | 0.328023 | 3,829 | 118 | 92 | 32.449153 | 0.843373 | 0.174458 | 0 | 0.333333 | 0 | 0 | 0.073819 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0 | 0.076923 | 0 | 0.205128 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
961b41ac7e12348d2cd9bb21a06c9a3f33d3b4af | 4,545 | py | Python | tests/test_message.py | jfkinslow/flask-mailing | dda99214b783b60fabc7dfad209fff4438eaf61c | [
"MIT"
] | null | null | null | tests/test_message.py | jfkinslow/flask-mailing | dda99214b783b60fabc7dfad209fff4438eaf61c | [
"MIT"
] | null | null | null | tests/test_message.py | jfkinslow/flask-mailing | dda99214b783b60fabc7dfad209fff4438eaf61c | [
"MIT"
] | null | null | null | import pytest
from flask_mailing.schemas import Message, MultipartSubtypeEnum
from flask_mailing.msg import MailMsg
import os
CONTENT = "file test content"
def test_initialize():
message = Message(
subject="test subject",
recipients=["uzezio22@gmail.com"],
body="test",
subtype="pl... | 24.175532 | 105 | 0.59824 | 501 | 4,545 | 5.315369 | 0.169661 | 0.09463 | 0.078858 | 0.093879 | 0.67668 | 0.587308 | 0.48742 | 0.410815 | 0.383778 | 0.346977 | 0 | 0.008953 | 0.262706 | 4,545 | 188 | 106 | 24.175532 | 0.785736 | 0 | 0 | 0.566176 | 0 | 0 | 0.177739 | 0.019798 | 0 | 0 | 0 | 0 | 0.169118 | 1 | 0.102941 | false | 0 | 0.029412 | 0 | 0.132353 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
961ceec2cadcdefd7771e879e51fe43976210c30 | 46,670 | py | Python | scripts/mgear/rigbits/eye_rigger.py | stormstudios/rigbits | 37ce738952a3cd31ba8a18b8989f5ea491d03bf0 | [
"MIT"
] | 1 | 2020-08-11T01:17:19.000Z | 2020-08-11T01:17:19.000Z | scripts/mgear/rigbits/eye_rigger.py | stormstudios/rigbits | 37ce738952a3cd31ba8a18b8989f5ea491d03bf0 | [
"MIT"
] | null | null | null | scripts/mgear/rigbits/eye_rigger.py | stormstudios/rigbits | 37ce738952a3cd31ba8a18b8989f5ea491d03bf0 | [
"MIT"
] | null | null | null | """Rigbits eye rigger tool"""
import json
import traceback
from functools import partial
import mgear.core.pyqt as gqt
import pymel.core as pm
from maya.app.general.mayaMixin import MayaQWidgetDockableMixin
from mgear.core import meshNavigation, curve, applyop, node, primitive, icon
from mgear.core import transform, ... | 38.698176 | 79 | 0.541526 | 4,376 | 46,670 | 5.644881 | 0.139625 | 0.02854 | 0.036151 | 0.012145 | 0.357987 | 0.257186 | 0.195085 | 0.179378 | 0.151445 | 0.137276 | 0 | 0.011521 | 0.354618 | 46,670 | 1,205 | 80 | 38.73029 | 0.808599 | 0.059931 | 0 | 0.317204 | 0 | 0 | 0.060218 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.016129 | false | 0.004301 | 0.011828 | 0 | 0.044086 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
961d4ae687b3642af37cc358422318fe31255362 | 3,260 | py | Python | Python/expert/interact_with_linux/solution.py | fpichl/ProgrammingTasks | da494022455dd77de1c99a6c6e4962616e9764e6 | [
"Unlicense"
] | 2 | 2018-10-18T16:35:56.000Z | 2019-03-07T06:16:18.000Z | Python/expert/interact_with_linux/solution.py | fpichl/ProgrammingTasks | da494022455dd77de1c99a6c6e4962616e9764e6 | [
"Unlicense"
] | 2 | 2019-11-13T09:25:54.000Z | 2021-08-19T08:23:32.000Z | Python/expert/interact_with_linux/solution.py | fpichl/ProgrammingTasks | da494022455dd77de1c99a6c6e4962616e9764e6 | [
"Unlicense"
] | 3 | 2019-05-22T12:20:05.000Z | 2019-08-30T12:57:56.000Z | #!/usr/bin/env python3
import os
import shutil
import sys
import pathlib
import logging
# I will NEVER EVER use subproccess again
# At least not for something like Popen
try:
from sh import wget
except Exception:
print('[!] Just install sh right now!(pip install --user sh)')
sys.exit(0)
# Dumb Python2 sup... | 33.958333 | 91 | 0.674233 | 515 | 3,260 | 4.149515 | 0.351456 | 0.022929 | 0.035096 | 0.033692 | 0.083294 | 0.029949 | 0.029949 | 0.029949 | 0 | 0 | 0 | 0.006772 | 0.184663 | 3,260 | 95 | 92 | 34.315789 | 0.797216 | 0.238344 | 0 | 0.1875 | 0 | 0 | 0.299149 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.015625 | 0.09375 | 0 | 0.09375 | 0.234375 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
9623258b0aadd8546b69b628ca22ab142e622094 | 1,642 | py | Python | pmfp/entrypoint/grpc/build_/build_pb_go.py | Python-Tools/pmfp | 832273890eec08e84f9c68d03f3316b2c8139133 | [
"MIT"
] | 4 | 2017-09-15T03:38:56.000Z | 2019-12-16T02:03:14.000Z | pmfp/entrypoint/grpc/build_/build_pb_go.py | Python-Tools/pmfp | 832273890eec08e84f9c68d03f3316b2c8139133 | [
"MIT"
] | 1 | 2021-04-27T10:51:42.000Z | 2021-04-27T10:51:42.000Z | pmfp/entrypoint/grpc/build_/build_pb_go.py | Python-Tools/pmfp | 832273890eec08e84f9c68d03f3316b2c8139133 | [
"MIT"
] | null | null | null | """编译go语言模块."""
import warnings
from typing import List, Optional
from pathlib import Path
from pmfp.utils.run_command_utils import run
def _build_grpc(includes: str, flag: str, to: str, target: str, cwd: Path) -> None:
command = f"protoc {includes} {flag} --go_out={to} --go-grpc_out={to} {target}"
try:
... | 32.84 | 108 | 0.626066 | 208 | 1,642 | 4.793269 | 0.370192 | 0.049147 | 0.04012 | 0.04012 | 0.058175 | 0.058175 | 0.058175 | 0 | 0 | 0 | 0 | 0 | 0.23447 | 1,642 | 49 | 109 | 33.510204 | 0.793158 | 0.178441 | 0 | 0 | 0 | 0.032258 | 0.282975 | 0.138037 | 0.032258 | 0 | 0 | 0 | 0 | 1 | 0.064516 | false | 0 | 0.129032 | 0 | 0.193548 | 0.032258 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
9624816b19d6ea779fa1433613690a1826c3af03 | 4,007 | py | Python | app/api/v1_0/users.py | daichi-yoshikawa/flask-boilerplate | 2a136eb713a698955dc78ce07364ac333806e6da | [
"MIT"
] | 1 | 2021-01-04T21:25:24.000Z | 2021-01-04T21:25:24.000Z | app/api/v1_0/users.py | daichi-yoshikawa/flask-boilerplate | 2a136eb713a698955dc78ce07364ac333806e6da | [
"MIT"
] | null | null | null | app/api/v1_0/users.py | daichi-yoshikawa/flask-boilerplate | 2a136eb713a698955dc78ce07364ac333806e6da | [
"MIT"
] | null | null | null | import json
import logging
from flask import jsonify, make_response, request
from flask_jwt_extended import jwt_required
from flask_restful import Resource
from http import HTTPStatus
from marshmallow import ValidationError, Schema
from werkzeug.security import generate_password_hash
from app.models import db
from ap... | 30.356061 | 82 | 0.660344 | 503 | 4,007 | 5.135189 | 0.234592 | 0.058072 | 0.086721 | 0.054201 | 0.413086 | 0.348432 | 0.277197 | 0.243128 | 0.224545 | 0.224545 | 0 | 0.000635 | 0.214125 | 4,007 | 131 | 83 | 30.587786 | 0.819625 | 0.043674 | 0 | 0.340206 | 0 | 0 | 0.085556 | 0.011619 | 0 | 0 | 0 | 0 | 0 | 1 | 0.020619 | false | 0.041237 | 0.123711 | 0 | 0.226804 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
962533cca6da11f2ce0eaecf148aa3437a906a76 | 14,183 | py | Python | src/imagine/goal_sampler.py | jordyantunes/Imagine | 783cedaa53635b21e18ef41ab1524d56e368d120 | [
"MIT"
] | 20 | 2020-11-06T10:54:08.000Z | 2022-02-24T15:23:31.000Z | src/imagine/goal_sampler.py | jordyantunes/Imagine | 783cedaa53635b21e18ef41ab1524d56e368d120 | [
"MIT"
] | null | null | null | src/imagine/goal_sampler.py | jordyantunes/Imagine | 783cedaa53635b21e18ef41ab1524d56e368d120 | [
"MIT"
] | 4 | 2020-11-17T17:00:02.000Z | 2021-07-08T22:51:14.000Z | import numpy as np
from mpi4py import MPI
from src.imagine.goal_generator.simple_sentence_generator import SentenceGeneratorHeuristic
from src import logger
class GoalSampler:
def __init__(self,
policy_language_model,
reward_language_model,
goal_dim,
... | 47.434783 | 140 | 0.585419 | 1,593 | 14,183 | 4.903327 | 0.13371 | 0.057355 | 0.066829 | 0.01946 | 0.401357 | 0.271284 | 0.212777 | 0.194597 | 0.166432 | 0.146204 | 0 | 0.008671 | 0.325108 | 14,183 | 298 | 141 | 47.59396 | 0.807355 | 0.045124 | 0 | 0.206478 | 0 | 0 | 0.049674 | 0.001851 | 0 | 0 | 0 | 0 | 0.004049 | 1 | 0.044534 | false | 0 | 0.016194 | 0 | 0.080972 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
96275facff37f1002cea2272aef725bd9db2358a | 2,358 | py | Python | openpype/tools/settings/settings/widgets/window.py | dangerstudios/OpenPype | 10ddcc4699137888616eec57cd7fac9648189714 | [
"MIT"
] | null | null | null | openpype/tools/settings/settings/widgets/window.py | dangerstudios/OpenPype | 10ddcc4699137888616eec57cd7fac9648189714 | [
"MIT"
] | null | null | null | openpype/tools/settings/settings/widgets/window.py | dangerstudios/OpenPype | 10ddcc4699137888616eec57cd7fac9648189714 | [
"MIT"
] | null | null | null | from Qt import QtWidgets, QtGui
from .categories import (
CategoryState,
SystemWidget,
ProjectWidget
)
from .widgets import ShadowWidget
from .. import style
class MainWidget(QtWidgets.QWidget):
widget_width = 1000
widget_height = 600
def __init__(self, user_role, parent=None):
super(... | 29.111111 | 72 | 0.656064 | 265 | 2,358 | 5.539623 | 0.335849 | 0.0797 | 0.061308 | 0.02861 | 0.111717 | 0.050409 | 0.050409 | 0.050409 | 0.050409 | 0 | 0 | 0.006924 | 0.265055 | 2,358 | 80 | 73 | 29.475 | 0.840162 | 0.020356 | 0 | 0.033898 | 0 | 0 | 0.021664 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.067797 | false | 0 | 0.067797 | 0 | 0.20339 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
824894a056e2da4cc1ec1c9dd0d07d94594ced73 | 6,093 | py | Python | azkaban_zip_uploader/tests/lambda_handler_tests.py | uk-gov-mirror/dwp.aws-azkaban | fa69ddf6e18fccba1fb96f6dd7a234b9441e96da | [
"0BSD"
] | null | null | null | azkaban_zip_uploader/tests/lambda_handler_tests.py | uk-gov-mirror/dwp.aws-azkaban | fa69ddf6e18fccba1fb96f6dd7a234b9441e96da | [
"0BSD"
] | null | null | null | azkaban_zip_uploader/tests/lambda_handler_tests.py | uk-gov-mirror/dwp.aws-azkaban | fa69ddf6e18fccba1fb96f6dd7a234b9441e96da | [
"0BSD"
] | null | null | null | import lambda_handler
from unittest import TestCase
from mock import call, patch, Mock
from datetime import datetime
import boto3
import json
from botocore.stub import Stubber
import urllib3
mock_s3_client = boto3.client('s3')
s3_stubber = Stubber(mock_s3_client)
list_objects_response = {
'IsTruncated': False,
... | 35.841176 | 129 | 0.678976 | 729 | 6,093 | 5.348423 | 0.198903 | 0.055399 | 0.042319 | 0.032316 | 0.632213 | 0.623493 | 0.617338 | 0.598102 | 0.598102 | 0.563221 | 0 | 0.025662 | 0.200558 | 6,093 | 169 | 130 | 36.053254 | 0.77479 | 0 | 0 | 0.435714 | 0 | 0.007143 | 0.251149 | 0.044813 | 0 | 0 | 0 | 0 | 0.107143 | 1 | 0.05 | false | 0.007143 | 0.057143 | 0 | 0.114286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8249af75d4def2ae40ae7a6a262676d0c39c2b63 | 2,189 | py | Python | cripts/usernames/username.py | lakiw/cripts | 43f62891a3724e1ec60629887d97c421fb302163 | [
"MIT"
] | 2 | 2017-04-06T12:26:11.000Z | 2018-11-05T19:17:15.000Z | cripts/usernames/username.py | lakiw/cripts | 43f62891a3724e1ec60629887d97c421fb302163 | [
"MIT"
] | 9 | 2016-09-28T10:19:10.000Z | 2017-02-24T17:58:43.000Z | cripts/usernames/username.py | lakiw/cripts | 43f62891a3724e1ec60629887d97c421fb302163 | [
"MIT"
] | null | null | null | import uuid
from mongoengine import Document, StringField, ListField, UUIDField
from django.conf import settings
from cripts.core.cripts_mongoengine import CriptsBaseAttributes, CriptsSourceDocument
from cripts.core.cripts_mongoengine import CriptsActionsDocument
class UserName(CriptsBaseAttributes, CriptsSourceDoc... | 39.8 | 145 | 0.516674 | 177 | 2,189 | 6.248588 | 0.485876 | 0.05425 | 0.025316 | 0.036166 | 0.066908 | 0.066908 | 0 | 0 | 0 | 0 | 0 | 0.001481 | 0.38328 | 2,189 | 54 | 146 | 40.537037 | 0.817778 | 0.006852 | 0 | 0 | 0 | 0.02381 | 0.31557 | 0.045876 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.119048 | 0 | 0.261905 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
824c8df0f0e68c3c21ba270b931275c591b881bd | 9,957 | py | Python | internal-export-file/export-report-pdf/src/export-report-pdf.py | aakloul/connectors | 171bdc3441b9196ee7aef3f1f9524d8594da6425 | [
"Apache-2.0"
] | null | null | null | internal-export-file/export-report-pdf/src/export-report-pdf.py | aakloul/connectors | 171bdc3441b9196ee7aef3f1f9524d8594da6425 | [
"Apache-2.0"
] | null | null | null | internal-export-file/export-report-pdf/src/export-report-pdf.py | aakloul/connectors | 171bdc3441b9196ee7aef3f1f9524d8594da6425 | [
"Apache-2.0"
] | null | null | null | import yaml
import os
import time
import datetime
from pycti.utils.constants import StixCyberObservableTypes
from weasyprint import HTML
from pycti import OpenCTIConnectorHelper, get_config_variable
from jinja2 import Environment, FileSystemLoader
class ExportReportPdf:
def __init__(self):
# Instantiate t... | 40.149194 | 141 | 0.610425 | 1,104 | 9,957 | 5.203804 | 0.212862 | 0.059182 | 0.065622 | 0.045953 | 0.30705 | 0.133333 | 0.104439 | 0.043516 | 0.043516 | 0.017406 | 0 | 0.00299 | 0.294567 | 9,957 | 247 | 142 | 40.311741 | 0.81492 | 0.075525 | 0 | 0.060914 | 0 | 0 | 0.206848 | 0.062021 | 0 | 0 | 0 | 0.004049 | 0 | 1 | 0.025381 | false | 0 | 0.040609 | 0 | 0.081218 | 0.010152 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
824f8edece08e9acdf645fa301526e669393eaed | 1,711 | py | Python | frames.py | mppc12/special_subject_tea | 945c10ac5a4f0f2fec2fbd6abeb398074801250f | [
"MIT"
] | null | null | null | frames.py | mppc12/special_subject_tea | 945c10ac5a4f0f2fec2fbd6abeb398074801250f | [
"MIT"
] | null | null | null | frames.py | mppc12/special_subject_tea | 945c10ac5a4f0f2fec2fbd6abeb398074801250f | [
"MIT"
] | null | null | null | import pandas as pd
from group import Group
class Frames:
def __init__(self, frame=None):
self.cleanups = Cleanup()
self.groups = Group()
class Cleanup:
def __init__(self, frame=None):
self.frame = frame
def __call__(self, frame):
self.frame =... | 30.017544 | 81 | 0.499123 | 189 | 1,711 | 4.428571 | 0.52381 | 0.139785 | 0.117085 | 0.082437 | 0.119474 | 0.057348 | 0 | 0 | 0 | 0 | 0 | 0.106477 | 0.341321 | 1,711 | 56 | 82 | 30.553571 | 0.636202 | 0 | 0 | 0.219512 | 0 | 0 | 0.182698 | 0.029038 | 0 | 0 | 0 | 0 | 0 | 1 | 0.195122 | false | 0 | 0.04878 | 0 | 0.439024 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
82500b40709a627c2f0699d9319a5f6bbab93bb0 | 20,594 | py | Python | msm/mycroft_skills_manager.py | forslund/mycroft-skills-manager | 825e910a555e1882999647d226a56734a7b75ea4 | [
"Apache-2.0"
] | null | null | null | msm/mycroft_skills_manager.py | forslund/mycroft-skills-manager | 825e910a555e1882999647d226a56734a7b75ea4 | [
"Apache-2.0"
] | null | null | null | msm/mycroft_skills_manager.py | forslund/mycroft-skills-manager | 825e910a555e1882999647d226a56734a7b75ea4 | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2018 Mycroft AI, Inc.
#
# This file is part of Mycroft Skills Manager
# (see https://github.com/MatthewScholefield/mycroft-light).
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional inf... | 37.240506 | 79 | 0.609838 | 2,502 | 20,594 | 4.78697 | 0.168665 | 0.070969 | 0.068131 | 0.051766 | 0.233447 | 0.165901 | 0.112967 | 0.088252 | 0.043584 | 0.020873 | 0 | 0.003167 | 0.31009 | 20,594 | 552 | 80 | 37.307971 | 0.839809 | 0.196465 | 0 | 0.261538 | 0 | 0 | 0.048836 | 0 | 0 | 0 | 0 | 0.001812 | 0 | 1 | 0.089744 | false | 0 | 0.038462 | 0 | 0.187179 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
825208daaf95b00b8d7fda9692bec10b366dcc4a | 1,624 | py | Python | maskrcnn_benchmark/data/datasets/concat_dataset.py | dukebw/maskrcnn-benchmark | f6710844f8cc6b6ce5345fcdc996f05ec04c3df7 | [
"MIT"
] | null | null | null | maskrcnn_benchmark/data/datasets/concat_dataset.py | dukebw/maskrcnn-benchmark | f6710844f8cc6b6ce5345fcdc996f05ec04c3df7 | [
"MIT"
] | null | null | null | maskrcnn_benchmark/data/datasets/concat_dataset.py | dukebw/maskrcnn-benchmark | f6710844f8cc6b6ce5345fcdc996f05ec04c3df7 | [
"MIT"
] | null | null | null | # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
import bisect
import numpy as np
from torch.utils.data.dataset import ConcatDataset as _ConcatDataset
class ConcatDataset(_ConcatDataset):
"""
Same as torch.utils.data.dataset.ConcatDataset, but exposes an extra
method for querying t... | 32.48 | 92 | 0.639163 | 203 | 1,624 | 4.857143 | 0.325123 | 0.121704 | 0.096349 | 0.077079 | 0.228195 | 0.198783 | 0.137931 | 0.137931 | 0.137931 | 0.137931 | 0 | 0.005983 | 0.279557 | 1,624 | 49 | 93 | 33.142857 | 0.836752 | 0.112069 | 0 | 0.21875 | 0 | 0 | 0.039381 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.09375 | 0 | 0.34375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8254c27453fc702429a4cf3b2f9b5c4318d236f1 | 10,452 | py | Python | tests/bridge/test_bridge.py | shuklaayush/badger-system | 1274eadbd0b0f3a02efbf40702719ce1d0a96c44 | [
"MIT"
] | 99 | 2020-12-02T08:40:48.000Z | 2022-03-15T05:21:06.000Z | tests/bridge/test_bridge.py | shuklaayush/badger-system | 1274eadbd0b0f3a02efbf40702719ce1d0a96c44 | [
"MIT"
] | 115 | 2020-12-15T07:15:39.000Z | 2022-03-28T22:21:03.000Z | tests/bridge/test_bridge.py | shuklaayush/badger-system | 1274eadbd0b0f3a02efbf40702719ce1d0a96c44 | [
"MIT"
] | 56 | 2020-12-11T06:50:04.000Z | 2022-02-21T09:17:38.000Z | import pytest
from brownie import (
accounts,
interface,
MockVault,
BadgerBridgeAdapter,
CurveSwapStrategy,
CurveTokenWrapper,
)
from helpers.constants import AddressZero
from helpers.registry import registry
from config.badger_config import badger_config
from scripts.systems.badger_system impo... | 32.560748 | 99 | 0.604191 | 1,046 | 10,452 | 5.938815 | 0.195029 | 0.035576 | 0.028332 | 0.035415 | 0.470541 | 0.442531 | 0.424984 | 0.411301 | 0.381037 | 0.381037 | 0 | 0.03811 | 0.29956 | 10,452 | 320 | 100 | 32.6625 | 0.810408 | 0.148201 | 0 | 0.481928 | 0 | 0 | 0.084706 | 0.03316 | 0 | 0 | 0.03316 | 0.003125 | 0.048193 | 1 | 0.036145 | false | 0 | 0.032129 | 0 | 0.068273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
825c203e1359d9feaff1e4d74ceac39a9987f062 | 4,945 | py | Python | tests/test_obj.py | runapp/M2Crypto | bc3b54758fe73dce86304663084b40fa5d6973c0 | [
"MIT"
] | 58 | 2015-04-20T01:17:37.000Z | 2022-03-31T10:55:13.000Z | tests/test_obj.py | runapp/M2Crypto | bc3b54758fe73dce86304663084b40fa5d6973c0 | [
"MIT"
] | 7 | 2015-07-08T21:59:37.000Z | 2021-04-18T12:27:41.000Z | tests/test_obj.py | runapp/M2Crypto | bc3b54758fe73dce86304663084b40fa5d6973c0 | [
"MIT"
] | 29 | 2015-02-23T17:46:31.000Z | 2022-03-15T09:57:46.000Z | #!/usr/bin/env python
"""Unit tests for M2Crypto.m2 obj_* functions.
"""
from M2Crypto import ASN1, BIO, Rand, X509, m2, six
from tests import unittest
"""
These functions must be cleaned up and moved to some python module
Taken from CA managment code
"""
def x509_name2list(name):
for i in range(0, name.entry_c... | 35.070922 | 81 | 0.591304 | 653 | 4,945 | 4.272588 | 0.32925 | 0.045878 | 0.042652 | 0.050179 | 0.138351 | 0.086738 | 0.059498 | 0.059498 | 0.035842 | 0.035842 | 0 | 0.071897 | 0.291203 | 4,945 | 140 | 82 | 35.321429 | 0.724108 | 0.089383 | 0 | 0.020202 | 0 | 0 | 0.116534 | 0 | 0 | 0 | 0 | 0.007143 | 0.151515 | 1 | 0.111111 | false | 0.010101 | 0.030303 | 0 | 0.181818 | 0.010101 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
82602d4942f676f159704b220ea884a45a9e0b4a | 11,212 | py | Python | coreos-ostree-importer/coreos_ostree_importer.py | dustymabe/fedora-coreos-releng-automation | 654a3505f3cc0795fa192c7503858e6fc95a9093 | [
"MIT"
] | null | null | null | coreos-ostree-importer/coreos_ostree_importer.py | dustymabe/fedora-coreos-releng-automation | 654a3505f3cc0795fa192c7503858e6fc95a9093 | [
"MIT"
] | null | null | null | coreos-ostree-importer/coreos_ostree_importer.py | dustymabe/fedora-coreos-releng-automation | 654a3505f3cc0795fa192c7503858e6fc95a9093 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
import boto3
import botocore
import fedora_messaging
import fedora_messaging.api
import hashlib
import json
import logging
import os
import subprocess
import sys
import tarfile
import tempfile
import traceback
# Set local logging
logger = logging.getLogger(__name__)
logger.setLevel(logging.DEBUG)
... | 37.249169 | 125 | 0.646539 | 1,407 | 11,212 | 5.034115 | 0.258706 | 0.021177 | 0.014118 | 0.019766 | 0.175914 | 0.114782 | 0.08358 | 0.055909 | 0.028237 | 0 | 0 | 0.022895 | 0.236443 | 11,212 | 300 | 126 | 37.373333 | 0.804462 | 0.202016 | 0 | 0.100962 | 0 | 0.004808 | 0.241713 | 0.058434 | 0 | 0 | 0 | 0 | 0.019231 | 1 | 0.072115 | false | 0.004808 | 0.086538 | 0 | 0.211538 | 0.009615 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8261781129ea227c5b055b630da103ca621c0fbe | 1,837 | py | Python | deepscm/datasets/medical/ukbb.py | mobarakol/deepscm | ffa5f0208c98b1f31e300f28c07c7d51090eda4a | [
"MIT"
] | null | null | null | deepscm/datasets/medical/ukbb.py | mobarakol/deepscm | ffa5f0208c98b1f31e300f28c07c7d51090eda4a | [
"MIT"
] | null | null | null | deepscm/datasets/medical/ukbb.py | mobarakol/deepscm | ffa5f0208c98b1f31e300f28c07c7d51090eda4a | [
"MIT"
] | null | null | null | from torch.utils.data.dataset import Dataset
import numpy as np
import pandas as pd
import os
import nibabel as nib
from nilearn.image import resample_img
import torch
class UKBBDataset(Dataset):
def __init__(self, csv_path, base_path='/vol/biobank/12579/brain/rigid_to_mni/images', crop_type=None, crop_size=(64, 6... | 41.75 | 169 | 0.645073 | 279 | 1,837 | 4.003584 | 0.340502 | 0.03581 | 0.032229 | 0.026858 | 0.225604 | 0.225604 | 0.225604 | 0.182632 | 0.182632 | 0.182632 | 0 | 0.021678 | 0.221557 | 1,837 | 43 | 170 | 42.72093 | 0.759441 | 0.018508 | 0 | 0.153846 | 0 | 0 | 0.054444 | 0.045 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.179487 | 0.025641 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
82629e49973e0be1f008350e2ac5d3d75aff0200 | 4,493 | py | Python | external/mmdetection/detection_tasks/extension/utils/pipelines.py | bes-dev/training_extensions | 7b016e3bd02ae7c74d60fd5a0ae0912a42ef87cb | [
"Apache-2.0"
] | 44 | 2018-10-27T15:28:19.000Z | 2019-02-26T12:50:39.000Z | external/mmdetection/detection_tasks/extension/utils/pipelines.py | bes-dev/training_extensions | 7b016e3bd02ae7c74d60fd5a0ae0912a42ef87cb | [
"Apache-2.0"
] | 31 | 2018-11-09T20:33:47.000Z | 2019-02-28T09:58:22.000Z | external/mmdetection/detection_tasks/extension/utils/pipelines.py | bes-dev/training_extensions | 7b016e3bd02ae7c74d60fd5a0ae0912a42ef87cb | [
"Apache-2.0"
] | 27 | 2018-11-05T21:59:34.000Z | 2019-02-28T14:28:50.000Z | # Copyright (C) 2021 Intel Corporation
#
# 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 wri... | 37.132231 | 136 | 0.665702 | 600 | 4,493 | 4.801667 | 0.296667 | 0.029157 | 0.038875 | 0.021867 | 0.281847 | 0.131899 | 0.131899 | 0.115932 | 0.115932 | 0.083304 | 0 | 0.011374 | 0.236813 | 4,493 | 120 | 137 | 37.441667 | 0.828813 | 0.310038 | 0 | 0.202899 | 0 | 0 | 0.110817 | 0 | 0 | 0 | 0 | 0 | 0.028986 | 1 | 0.101449 | false | 0 | 0.057971 | 0 | 0.275362 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
826343a77ca38151d0a290d5ea759c030e820e04 | 846 | py | Python | Leetcode/Competition/180_1.py | ZR-Huang/AlgorithmPractices | 226cecde136531341ce23cdf88529345be1912fc | [
"BSD-3-Clause"
] | 1 | 2019-11-26T11:52:25.000Z | 2019-11-26T11:52:25.000Z | Leetcode/Competition/180_1.py | ZR-Huang/AlgorithmPractices | 226cecde136531341ce23cdf88529345be1912fc | [
"BSD-3-Clause"
] | null | null | null | Leetcode/Competition/180_1.py | ZR-Huang/AlgorithmPractices | 226cecde136531341ce23cdf88529345be1912fc | [
"BSD-3-Clause"
] | null | null | null | from typing import List
class Solution:
def luckyNumbers (self, matrix: List[List[int]]) -> List[int]:
m = len(matrix)
n = len(matrix[0])
ans = []
for i in range(m):
row_min_index = 0
row_min = 10**5+1
for j in range(n):
if matrix[i... | 33.84 | 68 | 0.478723 | 120 | 846 | 3.258333 | 0.408333 | 0.122762 | 0.084399 | 0.056266 | 0.071611 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 0.369976 | 846 | 25 | 69 | 33.84 | 0.65666 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0.041667 | 0 | 0.166667 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
826680004e25570292d08da9b3737a70f6cd33e6 | 29,337 | py | Python | test_net_with_srgan.py | jasonlai777/Faster-R-CNN | b5c0c18a9b5faabd4b6ef23346aff85104df7356 | [
"MIT"
] | null | null | null | test_net_with_srgan.py | jasonlai777/Faster-R-CNN | b5c0c18a9b5faabd4b6ef23346aff85104df7356 | [
"MIT"
] | null | null | null | test_net_with_srgan.py | jasonlai777/Faster-R-CNN | b5c0c18a9b5faabd4b6ef23346aff85104df7356 | [
"MIT"
] | null | null | null | # --------------------------------------------------------
# Pytorch Multi-GPU Faster R-CNN
# Licensed under The MIT License [see LICENSE for details]
# Written by Jiasen Lu, Jianwei Yang, based on code from Ross Girshick
# --------------------------------------------------------
from __future__ import absolute_import
... | 39.325737 | 115 | 0.590449 | 4,179 | 29,337 | 3.950945 | 0.132328 | 0.016958 | 0.028829 | 0.009085 | 0.429714 | 0.398038 | 0.360245 | 0.330446 | 0.311853 | 0.293986 | 0 | 0.037853 | 0.258888 | 29,337 | 745 | 116 | 39.378523 | 0.721553 | 0.08733 | 0 | 0.329879 | 0 | 0.005181 | 0.120072 | 0.017223 | 0 | 0 | 0 | 0 | 0 | 1 | 0.008636 | false | 0 | 0.058722 | 0 | 0.075993 | 0.044905 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
826808ff1bd0ba43f535ae2091908373eab637e4 | 1,322 | py | Python | build/cls/tp/slices.py | amunoz1/mines | 106f852fe4e64ee132d74290c1a57ea716312376 | [
"MIT"
] | 1 | 2016-07-19T08:50:54.000Z | 2016-07-19T08:50:54.000Z | src/tp/slices.py | amunoz1/mines | 106f852fe4e64ee132d74290c1a57ea716312376 | [
"MIT"
] | null | null | null | src/tp/slices.py | amunoz1/mines | 106f852fe4e64ee132d74290c1a57ea716312376 | [
"MIT"
] | null | null | null | """
Makes subdirectories with slices of seismic time or depth images.
For example, the directory with name "s3_84" contains a constant-i3
slice, where i3 = 84.
"""
from tputils import *
#setupForSubset("subz_401_4_600")
setupForSubset("subt_251_4_500")
seismicDir = getSeismicDir()
#####################################... | 28.12766 | 77 | 0.618759 | 160 | 1,322 | 5.05 | 0.5375 | 0.011139 | 0.024752 | 0.032178 | 0.331683 | 0.212871 | 0.212871 | 0.212871 | 0.121287 | 0.121287 | 0 | 0.040834 | 0.129349 | 1,322 | 46 | 78 | 28.73913 | 0.661164 | 0.153555 | 0 | 0.3125 | 0 | 0 | 0.048117 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.03125 | 0 | 0.15625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
826871d70c21ce76b15c27edf3c9b2a76149c4a5 | 4,442 | py | Python | lldb/examples/summaries/cocoa/NSException.py | bytesnake/Enzyme | 247606c279920d476645d2e319e574bf8be10fc9 | [
"Apache-2.0"
] | 427 | 2018-05-29T14:21:02.000Z | 2022-03-16T03:17:54.000Z | SymbolExtractorAndRenamer/lldb/examples/summaries/cocoa/NSException.py | PolideaPlayground/SiriusObfuscator | b0e590d8130e97856afe578869b83a209e2b19be | [
"Apache-2.0"
] | 25 | 2018-07-23T08:34:15.000Z | 2021-11-05T07:13:36.000Z | SymbolExtractorAndRenamer/lldb/examples/summaries/cocoa/NSException.py | PolideaPlayground/SiriusObfuscator | b0e590d8130e97856afe578869b83a209e2b19be | [
"Apache-2.0"
] | 52 | 2018-07-19T19:57:32.000Z | 2022-03-11T16:05:38.000Z | """
LLDB AppKit formatters
part of The LLVM Compiler Infrastructure
This file is distributed under the University of Illinois Open Source
License. See LICENSE.TXT for details.
"""
# summary provider for class NSException
import lldb.runtime.objc.objc_runtime
import lldb.formatters.metrics
import CFString
import lldb
i... | 32.903704 | 94 | 0.670419 | 476 | 4,442 | 6.069328 | 0.233193 | 0.062998 | 0.076151 | 0.089997 | 0.357909 | 0.308757 | 0.273797 | 0.22603 | 0.192454 | 0.152302 | 0 | 0.000294 | 0.235254 | 4,442 | 134 | 95 | 33.149254 | 0.850162 | 0.047726 | 0 | 0.31068 | 0 | 0 | 0.080767 | 0.009237 | 0 | 0 | 0 | 0 | 0 | 1 | 0.126214 | false | 0.019417 | 0.048544 | 0 | 0.291262 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
8268e3ff708fceac06d057f89101a1b211a8db3a | 364 | py | Python | pacman-arch/test/pacman/tests/upgrade084.py | Maxython/pacman-for-termux | 3b208eb9274cbfc7a27fca673ea8a58f09ebad47 | [
"MIT"
] | 23 | 2021-05-21T19:11:06.000Z | 2022-03-31T18:14:20.000Z | source/pacman-6.0.1/test/pacman/tests/upgrade084.py | Scottx86-64/dotfiles-1 | 51004b1e2b032664cce6b553d2052757c286087d | [
"Unlicense"
] | 11 | 2021-05-21T12:08:44.000Z | 2021-12-21T08:30:08.000Z | source/pacman-6.0.1/test/pacman/tests/upgrade084.py | Scottx86-64/dotfiles-1 | 51004b1e2b032664cce6b553d2052757c286087d | [
"Unlicense"
] | 1 | 2021-09-26T08:44:40.000Z | 2021-09-26T08:44:40.000Z | self.description = "Install a package ('any' architecture)"
p = pmpkg("dummy")
p.files = ["bin/dummy",
"usr/man/man1/dummy.1"]
p.arch = 'any'
self.addpkg(p)
self.option["Architecture"] = ['auto']
self.args = "-U %s" % p.filename()
self.addrule("PACMAN_RETCODE=0")
self.addrule("PKG_EXIST=dummy")
for f in ... | 21.411765 | 59 | 0.648352 | 56 | 364 | 4.160714 | 0.607143 | 0.141631 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009615 | 0.142857 | 364 | 16 | 60 | 22.75 | 0.737179 | 0 | 0 | 0 | 0 | 0 | 0.384615 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
826924435f780ad15c0f8fe2ba2c459917504e1d | 7,995 | py | Python | Examples And Benchmarks/HTTP over Raw Connection/SERVERS/http_server__http_tools.py | FI-Mihej/FI-ASockIOCore | 82ee94e94f692511afee5aeb0d75bb7366eb9b96 | [
"Apache-2.0"
] | null | null | null | Examples And Benchmarks/HTTP over Raw Connection/SERVERS/http_server__http_tools.py | FI-Mihej/FI-ASockIOCore | 82ee94e94f692511afee5aeb0d75bb7366eb9b96 | [
"Apache-2.0"
] | null | null | null | Examples And Benchmarks/HTTP over Raw Connection/SERVERS/http_server__http_tools.py | FI-Mihej/FI-ASockIOCore | 82ee94e94f692511afee5aeb0d75bb7366eb9b96 | [
"Apache-2.0"
] | null | null | null | from simple_network.tcp_app_server import *
import httptools
"""
Module Docstring
Docstrings: http://www.python.org/dev/peps/pep-0257/
"""
__author__ = 'ButenkoMS <gtalk@butenkoms.space>'
# ======================================================================
# ===================GLOBAL SETTINGS FOR ALL TESTS=====... | 34.313305 | 115 | 0.635897 | 929 | 7,995 | 5.043057 | 0.260495 | 0.054002 | 0.028815 | 0.022412 | 0.208965 | 0.131483 | 0.076201 | 0.045464 | 0.037567 | 0 | 0 | 0.004858 | 0.227642 | 7,995 | 232 | 116 | 34.461207 | 0.753846 | 0.202877 | 0 | 0.109375 | 0 | 0 | 0.070058 | 0.007358 | 0 | 0 | 0 | 0 | 0 | 1 | 0.09375 | false | 0 | 0.015625 | 0.007813 | 0.179688 | 0.023438 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
826a0a34399ac3cae5194033717af23bcc5eca24 | 1,066 | py | Python | bamboomba_description/launch/robot_state_publisher.launch.py | RIF-Robotics/bamboomba | 3fd725be9b0fdf33d3e46c37d20d8cbecea7d15d | [
"BSD-3-Clause"
] | null | null | null | bamboomba_description/launch/robot_state_publisher.launch.py | RIF-Robotics/bamboomba | 3fd725be9b0fdf33d3e46c37d20d8cbecea7d15d | [
"BSD-3-Clause"
] | null | null | null | bamboomba_description/launch/robot_state_publisher.launch.py | RIF-Robotics/bamboomba | 3fd725be9b0fdf33d3e46c37d20d8cbecea7d15d | [
"BSD-3-Clause"
] | null | null | null | from os import path
from launch import LaunchDescription
from ament_index_python.packages import get_package_share_directory
from launch_ros.actions import Node
from launch.actions import DeclareLaunchArgument
from launch.substitutions import Command, LaunchConfiguration
def generate_launch_description():
use_sim_... | 35.533333 | 83 | 0.674484 | 107 | 1,066 | 6.401869 | 0.439252 | 0.043796 | 0.072993 | 0.070073 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.241088 | 1,066 | 29 | 84 | 36.758621 | 0.846724 | 0 | 0 | 0 | 0 | 0 | 0.193246 | 0.078799 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0.25 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
826b06577ba553bf4320966964956912f51ba613 | 1,211 | py | Python | tests/test__event.py | alpha-health-ai/pyformance | 3dcf6556a070e89c783f30ddfff03c986e7a5582 | [
"Apache-2.0"
] | 4 | 2019-11-13T11:11:43.000Z | 2021-06-20T11:01:27.000Z | tests/test__event.py | alpha-health-ai/pyformance | 3dcf6556a070e89c783f30ddfff03c986e7a5582 | [
"Apache-2.0"
] | 5 | 2019-01-14T14:59:44.000Z | 2020-12-13T17:04:27.000Z | tests/test__event.py | alpha-health-ai/pyformance | 3dcf6556a070e89c783f30ddfff03c986e7a5582 | [
"Apache-2.0"
] | 6 | 2019-04-17T21:07:40.000Z | 2022-01-18T16:11:51.000Z | from pyformance.meters import Event, EventPoint
from tests import TimedTestCase
class EventTestCase(TimedTestCase):
def setUp(self):
super(EventTestCase, self).setUp()
self.event = Event(
clock=TimedTestCase.clock,
key="test_event",
tags={"name", "value"}
... | 26.911111 | 87 | 0.620974 | 143 | 1,211 | 5.097902 | 0.363636 | 0.111111 | 0.041152 | 0.061728 | 0.333333 | 0.310014 | 0.222222 | 0.222222 | 0.222222 | 0.222222 | 0 | 0.006742 | 0.26507 | 1,211 | 44 | 88 | 27.522727 | 0.81236 | 0.063584 | 0 | 0.322581 | 0 | 0 | 0.030035 | 0 | 0 | 0 | 0 | 0 | 0.129032 | 1 | 0.16129 | false | 0 | 0.064516 | 0 | 0.258065 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
826c1e777daa6347910fda6447c0f31e1cd72324 | 4,894 | py | Python | problem_#43_30032019.py | vivek28111992/DailyCoding | db58c069ef393f6a93fe86913660860134cb97a0 | [
"MIT"
] | null | null | null | problem_#43_30032019.py | vivek28111992/DailyCoding | db58c069ef393f6a93fe86913660860134cb97a0 | [
"MIT"
] | null | null | null | problem_#43_30032019.py | vivek28111992/DailyCoding | db58c069ef393f6a93fe86913660860134cb97a0 | [
"MIT"
] | null | null | null | """
Good morning! Here's your coding interview problem for today.
This problem was asked by Amazon.
Implement a stack that has the following methods:
push(val), which pushes an element onto the stack
pop(), which pops off and returns the topmost element of the stack. If there are no elements in the stack, then it sh... | 31.574194 | 152 | 0.603801 | 659 | 4,894 | 4.342944 | 0.200303 | 0.066038 | 0.046122 | 0.02935 | 0.573026 | 0.503843 | 0.450035 | 0.402865 | 0.379106 | 0.379106 | 0 | 0.002069 | 0.308745 | 4,894 | 154 | 153 | 31.779221 | 0.843926 | 0.266244 | 0 | 0.560748 | 0 | 0 | 0.053782 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.084112 | false | 0 | 0 | 0.009346 | 0.17757 | 0.046729 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
826c762278c3cdf3123d44a03bc4ba2f8e259b59 | 1,161 | py | Python | scrapy/contrib/linkextractors/lxmlhtml.py | emschorsch/scrapy | acb7bad1ff4037b4a613ac94e2d3357bf92bdb8f | [
"BSD-3-Clause"
] | 1 | 2015-09-03T18:30:10.000Z | 2015-09-03T18:30:10.000Z | scrapy/contrib/linkextractors/lxmlhtml.py | emschorsch/scrapy | acb7bad1ff4037b4a613ac94e2d3357bf92bdb8f | [
"BSD-3-Clause"
] | 2 | 2021-12-13T20:51:32.000Z | 2022-02-11T03:47:35.000Z | scrapy/contrib/linkextractors/lxmlhtml.py | emschorsch/scrapy | acb7bad1ff4037b4a613ac94e2d3357bf92bdb8f | [
"BSD-3-Clause"
] | 1 | 2017-11-09T20:33:59.000Z | 2017-11-09T20:33:59.000Z | """
Link extractor based on lxml.html
"""
import lxml.html
from scrapy.link import Link
from scrapy.utils.python import unique as unique_list
class LxmlParserLinkExtractor(object):
def __init__(self, tag="a", attr="href", process=None, unique=False):
self.scan_tag = tag if callable(tag) else lambda t: t ... | 31.378378 | 73 | 0.639966 | 160 | 1,161 | 4.5 | 0.325 | 0.044444 | 0.030556 | 0.055556 | 0.088889 | 0.088889 | 0 | 0 | 0 | 0 | 0 | 0 | 0.259259 | 1,161 | 36 | 74 | 32.25 | 0.837209 | 0.028424 | 0 | 0 | 0 | 0 | 0.004472 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.130435 | false | 0 | 0.130435 | 0.043478 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |