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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
56c4a181e46ff75702be3d6706e5216784d4e18d | 12,870 | py | Python | umpleonline/chatbot/processresponse.py | YounesB-McGill/Comp550-Project | bbc9cf91e295a26fd1e8f2ba8371f737a449a47a | [
"MIT"
] | null | null | null | umpleonline/chatbot/processresponse.py | YounesB-McGill/Comp550-Project | bbc9cf91e295a26fd1e8f2ba8371f737a449a47a | [
"MIT"
] | 6 | 2020-07-19T01:29:06.000Z | 2021-05-10T21:21:27.000Z | umpleonline/chatbot/processresponse.py | YounesB-McGill/Comp550-Project | bbc9cf91e295a26fd1e8f2ba8371f737a449a47a | [
"MIT"
] | null | null | null | #!/usr/bin/python3
import re
from typing import List
import numpy as np
from keras.models import load_model
from action import (add_class_json, add_attribute, create_association, create_inheritance, create_composition,
return_error_to_user)
from data import ADD_WORDS, CONTAINS_WORDS, HAVE_WORDS, ISA_WORDS
from mo... | 37.304348 | 115 | 0.671484 | 1,788 | 12,870 | 4.530201 | 0.134228 | 0.071975 | 0.031235 | 0.036914 | 0.611852 | 0.539012 | 0.475062 | 0.422469 | 0.37037 | 0.333827 | 0 | 0.008782 | 0.247941 | 12,870 | 344 | 116 | 37.412791 | 0.828081 | 0.083683 | 0 | 0.505882 | 0 | 0.003922 | 0.095396 | 0 | 0 | 0 | 0 | 0.002907 | 0 | 1 | 0.062745 | false | 0 | 0.035294 | 0.011765 | 0.313725 | 0.015686 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
56c81124f1aaadd1eefd7577b6f9a4ae2b4cf780 | 2,890 | py | Python | quantum_machine_learning/qml_100_GeneratingFourierState_solution.py | zemarchezi/QHack2022 | e388a546027168c3f1d48ad2e7ecf831425bb2dc | [
"CC0-1.0"
] | null | null | null | quantum_machine_learning/qml_100_GeneratingFourierState_solution.py | zemarchezi/QHack2022 | e388a546027168c3f1d48ad2e7ecf831425bb2dc | [
"CC0-1.0"
] | null | null | null | quantum_machine_learning/qml_100_GeneratingFourierState_solution.py | zemarchezi/QHack2022 | e388a546027168c3f1d48ad2e7ecf831425bb2dc | [
"CC0-1.0"
] | 5 | 2022-03-16T00:02:24.000Z | 2022-03-23T20:12:23.000Z | #! /usr/bin/python3
import sys
from pennylane import numpy as np
import pennylane as qml
def generating_fourier_state(n_qubits, m):
"""Function which, given the number of qubits and an integer m, returns the circuit and the angles that generate the state
QFT|m> following the above template.
Args:
... | 32.111111 | 126 | 0.63045 | 428 | 2,890 | 4.182243 | 0.376168 | 0.050838 | 0.035754 | 0.031844 | 0.141899 | 0.122905 | 0.089385 | 0.055866 | 0.055866 | 0.055866 | 0 | 0.013634 | 0.264014 | 2,890 | 89 | 127 | 32.47191 | 0.827927 | 0.420761 | 0 | 0.1 | 0 | 0 | 0.04471 | 0.02204 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.075 | 0 | 0.275 | 0.025 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
56cb8fcd45f5672fe2b1eb0a6363664189af573d | 2,004 | py | Python | Class08.py | Kiran1178/Python201901 | 8f387c9ed451a8b0cf5c20e9d8f6ae53cafaf0df | [
"MIT"
] | null | null | null | Class08.py | Kiran1178/Python201901 | 8f387c9ed451a8b0cf5c20e9d8f6ae53cafaf0df | [
"MIT"
] | null | null | null | Class08.py | Kiran1178/Python201901 | 8f387c9ed451a8b0cf5c20e9d8f6ae53cafaf0df | [
"MIT"
] | null | null | null | # # # ####
# import_os.path as os_path
from os import path, makedirs
# #########################
# 1) Python Absoulute path
# ########################
#
# current absolute path
# file_path = r"c:\repos\Library"
# current_file_path = path.abspath(__file__)
# print(current_file_path)
# print(path.dirname(current_fil... | 21.094737 | 73 | 0.683633 | 290 | 2,004 | 4.403448 | 0.231034 | 0.131558 | 0.075176 | 0.09397 | 0.440094 | 0.287392 | 0.247455 | 0.247455 | 0.216132 | 0.216132 | 0 | 0.006501 | 0.155689 | 2,004 | 94 | 74 | 21.319149 | 0.748227 | 0.428643 | 0 | 0.115385 | 0 | 0 | 0.201149 | 0.020115 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0 | 0.076923 | 0 | 0.115385 | 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 |
56ccf9b464e87b0ee37675d5598960af66f6aaee | 996 | py | Python | explicalib/calibration/evaluation/diagrams/binary/binary_calibration_error_curve.py | euranova/estimating_eces | 9bfa81dd7a39ebe069c5b11b8e7a9bf9017e9350 | [
"MIT"
] | 2 | 2021-11-30T18:44:11.000Z | 2021-11-30T18:44:19.000Z | explicalib/calibration/evaluation/diagrams/binary/binary_calibration_error_curve.py | euranova/estimating_eces | 9bfa81dd7a39ebe069c5b11b8e7a9bf9017e9350 | [
"MIT"
] | null | null | null | explicalib/calibration/evaluation/diagrams/binary/binary_calibration_error_curve.py | euranova/estimating_eces | 9bfa81dd7a39ebe069c5b11b8e7a9bf9017e9350 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
@author: nicolas.posocco
"""
from .binary_reliability_curve import binary_reliability_curve
def binary_calibration_error_curve(model=None, X=None, Y=None,
kernel=None, bandwidth=None,
positive_scores=None,
... | 39.84 | 113 | 0.5251 | 84 | 996 | 5.845238 | 0.333333 | 0.171079 | 0.13442 | 0.152749 | 0.181263 | 0.126273 | 0 | 0 | 0 | 0 | 0 | 0.001698 | 0.408635 | 996 | 24 | 114 | 41.5 | 0.831919 | 0.047189 | 0 | 0 | 0 | 0 | 0.012752 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.071429 | 0 | 0.214286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
56cefc1f7836af65100b50a748c1af6718286e94 | 8,714 | py | Python | bayesmark/np_util.py | goncaloperes/bayesmark | 8c420e935718f0d6867153b781e58943ecaf2338 | [
"Apache-2.0"
] | 102 | 2019-09-27T02:38:52.000Z | 2022-03-12T13:31:11.000Z | bayesmark/np_util.py | goncaloperes/bayesmark | 8c420e935718f0d6867153b781e58943ecaf2338 | [
"Apache-2.0"
] | 17 | 2019-10-07T18:20:21.000Z | 2022-01-03T08:19:16.000Z | bayesmark/np_util.py | goncaloperes/bayesmark | 8c420e935718f0d6867153b781e58943ecaf2338 | [
"Apache-2.0"
] | 34 | 2019-09-27T02:38:31.000Z | 2022-02-09T21:32:25.000Z | # Copyright (c) 2019 Uber Technologies, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed... | 33.13308 | 119 | 0.638398 | 1,334 | 8,714 | 4.113193 | 0.248876 | 0.052852 | 0.068343 | 0.084199 | 0.299617 | 0.223619 | 0.20175 | 0.172408 | 0.163295 | 0.144341 | 0 | 0.011651 | 0.241565 | 8,714 | 262 | 120 | 33.259542 | 0.818581 | 0.64689 | 0 | 0.057971 | 0 | 0 | 0.037442 | 0 | 0 | 0 | 0 | 0 | 0.275362 | 1 | 0.130435 | false | 0 | 0.014493 | 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 |
56d37c682b8fa36e0cc92147b67a5132d916883c | 1,332 | py | Python | Leetcode/74_search-a-2d-matrix.py | diekaltesonne/Contexts | 064f61e84896852d6579675e2423537ee5bf8331 | [
"MIT"
] | null | null | null | Leetcode/74_search-a-2d-matrix.py | diekaltesonne/Contexts | 064f61e84896852d6579675e2423537ee5bf8331 | [
"MIT"
] | null | null | null | Leetcode/74_search-a-2d-matrix.py | diekaltesonne/Contexts | 064f61e84896852d6579675e2423537ee5bf8331 | [
"MIT"
] | null | null | null | class Solution:
def _search(self,l,r,x):
if r >= l:
mid = l + (r - l) // 2
# If element is present at the middle itself
if self.nums[mid][-1] >= x and self.nums[mid][0] <=x:
return self._search_small(0,len(self.nums[mid])-1,x,mid)
elif self.num... | 36 | 73 | 0.482733 | 185 | 1,332 | 3.410811 | 0.227027 | 0.114105 | 0.152139 | 0.057052 | 0.538827 | 0.431062 | 0.383518 | 0.383518 | 0.383518 | 0.383518 | 0 | 0.018797 | 0.400901 | 1,332 | 37 | 74 | 36 | 0.77193 | 0.146396 | 0 | 0.392857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.107143 | false | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
56d7e1352e0a41bda99357c7991be824ba742bcd | 6,484 | py | Python | fingerprint/client/util.py | ghoshishan/comp-sec | f1bec8fc68814bc421337069e58a67447baf2a89 | [
"MIT"
] | null | null | null | fingerprint/client/util.py | ghoshishan/comp-sec | f1bec8fc68814bc421337069e58a67447baf2a89 | [
"MIT"
] | null | null | null | fingerprint/client/util.py | ghoshishan/comp-sec | f1bec8fc68814bc421337069e58a67447baf2a89 | [
"MIT"
] | null | null | null | import json
import base64
import random
import logging
from Crypto.Cipher import AES
from Crypto.Protocol.KDF import PBKDF2
from phe import paillier, EncryptedNumber, PaillierPublicKey
import client.dbhandler as dbhandler
from client.exceptions import WrongPin, UnknownUser
logger = logging.getLogger('client')
# for... | 33.947644 | 116 | 0.715299 | 849 | 6,484 | 5.287397 | 0.249706 | 0.073513 | 0.024504 | 0.015594 | 0.258409 | 0.253063 | 0.175095 | 0.146581 | 0.146581 | 0.121631 | 0 | 0.015516 | 0.204812 | 6,484 | 190 | 117 | 34.126316 | 0.85512 | 0.313849 | 0 | 0.151515 | 0 | 0.010101 | 0.07867 | 0.023434 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.090909 | 0 | 0.292929 | 0.232323 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
56dc55fee9c5b749a9b50ac4f9d5e574bceb9dda | 6,622 | py | Python | kemeny.py | cai-michael/kemenyapprox | 802e22c58f8649dcc8ddf888603f8c19ae32621c | [
"Apache-2.0"
] | null | null | null | kemeny.py | cai-michael/kemenyapprox | 802e22c58f8649dcc8ddf888603f8c19ae32621c | [
"Apache-2.0"
] | null | null | null | kemeny.py | cai-michael/kemenyapprox | 802e22c58f8649dcc8ddf888603f8c19ae32621c | [
"Apache-2.0"
] | null | null | null | """
Implements the Kemeny Rule and various heuristics
"""
import time
import datetime
from itertools import combinations, permutations
from multiprocessing import Pool
import functools
from collections import defaultdict
from matrix import generate_zeros_matrix, matrix_multiplication
NUM_WORKERS = 2
STATIONARY_DISTRI... | 36.384615 | 99 | 0.706131 | 864 | 6,622 | 5.21875 | 0.196759 | 0.04613 | 0.021734 | 0.021069 | 0.357951 | 0.334664 | 0.306055 | 0.283211 | 0.26059 | 0.26059 | 0 | 0.012195 | 0.219873 | 6,622 | 181 | 100 | 36.585635 | 0.860627 | 0.228179 | 0 | 0.257732 | 0 | 0 | 0.05749 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.061856 | false | 0 | 0.072165 | 0 | 0.175258 | 0.082474 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
56dc67205242f7ff839dde303a1973e4737ed5cb | 1,331 | py | Python | utilities/write_spatial_file.py | markfoleyie/gisp_2021 | 6077b0980d775fefeb46983e70a1f03faa1220ec | [
"MIT"
] | 1 | 2022-01-28T13:39:42.000Z | 2022-01-28T13:39:42.000Z | utilities/write_spatial_file.py | markfoleyie/gisp_2021 | 6077b0980d775fefeb46983e70a1f03faa1220ec | [
"MIT"
] | null | null | null | utilities/write_spatial_file.py | markfoleyie/gisp_2021 | 6077b0980d775fefeb46983e70a1f03faa1220ec | [
"MIT"
] | null | null | null | try:
import fiona
from fiona.crs import from_epsg
import utilities.fiona_supported_drivers as fsd
import os
except Exception as e:
print(f"{e}")
quit(1)
def write_spatial(file=None, directory=None, data=None, **meta):
try:
if not data:
raise ValueError(f"No data to writ... | 32.463415 | 89 | 0.561232 | 171 | 1,331 | 4.327485 | 0.356725 | 0.121622 | 0.12973 | 0.056757 | 0.210811 | 0.210811 | 0.210811 | 0.081081 | 0.081081 | 0 | 0 | 0.00216 | 0.304282 | 1,331 | 40 | 90 | 33.275 | 0.796976 | 0 | 0 | 0.228571 | 0 | 0 | 0.18858 | 0.033058 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028571 | false | 0 | 0.114286 | 0 | 0.142857 | 0.057143 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
56dfe03b101cc2f8e7b14651f15e361abb52dfc4 | 3,536 | py | Python | src/pytest_qatouch/plugin.py | MohamedRaslan/pytest-qatouch | 8d6ddd414d2ee836da1ebb9bee64a7672ed7e04f | [
"MIT"
] | null | null | null | src/pytest_qatouch/plugin.py | MohamedRaslan/pytest-qatouch | 8d6ddd414d2ee836da1ebb9bee64a7672ed7e04f | [
"MIT"
] | 6 | 2021-06-26T20:11:10.000Z | 2022-02-21T19:41:50.000Z | src/pytest_qatouch/plugin.py | MohamedRaslan/pytest-qatouch | 8d6ddd414d2ee836da1ebb9bee64a7672ed7e04f | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import pytest
from .utils import QATOUCH_MARK, MissingQatouchData, ExpectedIntegerValue
from .qatouch import QatouchTestResult
__QATOUCH_TEST_RSESULT = None
___Enable_PLUGIN = None
def pytest_addoption(parser):
group = parser.getgroup("QaTouch")
def add_option(option, dest, help, de... | 30.747826 | 119 | 0.63914 | 414 | 3,536 | 5.169082 | 0.270531 | 0.046262 | 0.075701 | 0.051402 | 0.092056 | 0.068692 | 0 | 0 | 0 | 0 | 0 | 0.000376 | 0.248586 | 3,536 | 114 | 120 | 31.017544 | 0.805043 | 0.005939 | 0 | 0.177778 | 0 | 0.011111 | 0.218332 | 0.020211 | 0 | 0 | 0 | 0 | 0 | 1 | 0.077778 | false | 0.011111 | 0.033333 | 0 | 0.122222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
56e136e9f8cd4fb32fc3b35b6dbfa5fc8c91cf9e | 6,596 | py | Python | sheetmaker/language_strings.py | cosme12/cheet-sheet-maker | 7bbb4f4dd310127d9ca57a9365dc2bfb6bce91da | [
"MIT"
] | 112 | 2017-02-08T20:42:14.000Z | 2022-03-04T01:50:32.000Z | sheetmaker/language_strings.py | cosme12/cheet-sheet-maker | 7bbb4f4dd310127d9ca57a9365dc2bfb6bce91da | [
"MIT"
] | 20 | 2017-02-09T11:22:08.000Z | 2018-06-22T19:04:23.000Z | sheetmaker/language_strings.py | cosme12/cheet-sheet-maker | 7bbb4f4dd310127d9ca57a9365dc2bfb6bce91da | [
"MIT"
] | 30 | 2017-02-09T13:05:52.000Z | 2022-01-30T05:59:09.000Z | """Language selector handler
Todo:
* Use internacionalization
* Add more languages
"""
english = {
"INTRO_MESSAGE" : "Welcome to CheatSheet Maker",
"MAIN_MENU_OPTIONS" : { 1: "Create sheet",
2: "Export (NOT CODED YET)",
3: "Help (NOT CODED YET)"... | 52.349206 | 133 | 0.516828 | 693 | 6,596 | 4.78355 | 0.326118 | 0.039819 | 0.021116 | 0.027149 | 0.238612 | 0.118552 | 0.082051 | 0.082051 | 0.035596 | 0 | 0 | 0.0252 | 0.374318 | 6,596 | 126 | 134 | 52.349206 | 0.778047 | 0.013341 | 0 | 0 | 0 | 0.033898 | 0.586371 | 0.045224 | 0 | 0 | 0 | 0.007937 | 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 |
56e46bb7818acd0c03702e88afa0e940878c4a01 | 2,989 | py | Python | Hourglass_network/train.py | Ali-Sahili/Background-Subtraction-Unsupervised-Learning | 445b2cf8736a4a28cff2b074a32afe8fe6986d53 | [
"MIT"
] | 5 | 2021-05-17T06:52:28.000Z | 2022-02-20T15:35:51.000Z | Hourglass_network/train.py | WN1695173791/Background-Subtraction-Unsupervised-Learning | 445b2cf8736a4a28cff2b074a32afe8fe6986d53 | [
"MIT"
] | null | null | null | Hourglass_network/train.py | WN1695173791/Background-Subtraction-Unsupervised-Learning | 445b2cf8736a4a28cff2b074a32afe8fe6986d53 | [
"MIT"
] | 1 | 2021-05-17T06:52:33.000Z | 2021-05-17T06:52:33.000Z | import torch
from torch import nn
import torchvision.utils as vutils
import numpy as np
from focal_loss import FocalLoss
from Param import *
from utils import weights_init
from net import PoseNet
from PIL import ImageFile
ImageFile.LOAD_TRUNCATED_IMAGES = True
def fit(data, mask, Net, optimizer, criterion, max_no... | 27.675926 | 159 | 0.613249 | 408 | 2,989 | 4.330882 | 0.367647 | 0.040747 | 0.01528 | 0.014714 | 0.054329 | 0.027165 | 0 | 0 | 0 | 0 | 0 | 0.01924 | 0.269655 | 2,989 | 107 | 160 | 27.934579 | 0.790197 | 0.082302 | 0 | 0 | 0 | 0 | 0.024908 | 0.007692 | 0 | 0 | 0 | 0 | 0.017544 | 1 | 0.035088 | false | 0 | 0.157895 | 0 | 0.22807 | 0.122807 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
56e51968e0b294a8b19d2f549c0b644ea69e8277 | 6,308 | py | Python | main.py | abditag2/DCGAN-tensorflow | 432b0d91bd8252c48869c205b86701993eb37618 | [
"MIT"
] | 4 | 2019-04-30T08:46:13.000Z | 2020-09-08T07:18:23.000Z | main.py | abditag2/DCGAN-tensorflow | 432b0d91bd8252c48869c205b86701993eb37618 | [
"MIT"
] | null | null | null | main.py | abditag2/DCGAN-tensorflow | 432b0d91bd8252c48869c205b86701993eb37618 | [
"MIT"
] | 1 | 2019-10-24T12:24:23.000Z | 2019-10-24T12:24:23.000Z | import io
import os
import os.path
from os import listdir
from os.path import isfile, join
import numpy as np
import tensorflow as tf
from PIL import Image
import horovod.tensorflow as hvd
from model import DCGAN
from utils import pp, visualize, show_all_variables
flags = tf.app.flags
flags.DEFINE_integer("epoch", ... | 40.696774 | 138 | 0.708307 | 939 | 6,308 | 4.497338 | 0.200213 | 0.05991 | 0.051148 | 0.017049 | 0.354487 | 0.292209 | 0.267582 | 0.267582 | 0.267582 | 0.250059 | 0 | 0.012668 | 0.186588 | 6,308 | 154 | 139 | 40.961039 | 0.810368 | 0.067058 | 0 | 0.330645 | 0 | 0.008065 | 0.231489 | 0.003745 | 0 | 0 | 0 | 0 | 0 | 1 | 0.008065 | false | 0 | 0.08871 | 0 | 0.096774 | 0.008065 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
56e55db3074073781e32a309aaad46301011098d | 2,768 | py | Python | Packs/Okta/Integrations/OktaEventCollector/OktaEventCollector_test.py | jrauen/content | 81a92be1cbb053a5f26a6f325eff3afc0ca840e0 | [
"MIT"
] | null | null | null | Packs/Okta/Integrations/OktaEventCollector/OktaEventCollector_test.py | jrauen/content | 81a92be1cbb053a5f26a6f325eff3afc0ca840e0 | [
"MIT"
] | 40 | 2022-03-03T07:34:00.000Z | 2022-03-31T07:38:35.000Z | Packs/Okta/Integrations/OktaEventCollector/OktaEventCollector_test.py | jrauen/content | 81a92be1cbb053a5f26a6f325eff3afc0ca840e0 | [
"MIT"
] | null | null | null | from OktaEventCollector import ReqParams, Client, Request, GetEvents, Method
import pytest
req_params = ReqParams(since='', sortOrder='ASCENDING', limit='5')
request = Request(method=Method.GET, url='https://testurl.com', headers={}, params=req_params)
client = Client(request)
get_events = GetEvents(client)
id1 = {'uu... | 42.584615 | 109 | 0.58526 | 355 | 2,768 | 4.459155 | 0.247887 | 0.032849 | 0.041693 | 0.045483 | 0.50537 | 0.396083 | 0.384713 | 0.360708 | 0.30638 | 0.30638 | 0 | 0.19627 | 0.186416 | 2,768 | 64 | 110 | 43.25 | 0.506661 | 0 | 0 | 0.173077 | 0 | 0 | 0.311777 | 0.194364 | 0 | 0 | 0 | 0 | 0.096154 | 1 | 0.115385 | false | 0 | 0.038462 | 0.019231 | 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 |
56e5c536074d74d31f4d24ac8e326a346c1ae65e | 2,563 | py | Python | test/models/test_deepset.py | NetKet/netket | 96758e814fc3128e6821564d6cc2852bac40ecf2 | [
"Apache-2.0"
] | null | null | null | test/models/test_deepset.py | NetKet/netket | 96758e814fc3128e6821564d6cc2852bac40ecf2 | [
"Apache-2.0"
] | null | null | null | test/models/test_deepset.py | NetKet/netket | 96758e814fc3128e6821564d6cc2852bac40ecf2 | [
"Apache-2.0"
] | null | null | null | # Copyright 2021 The NetKet Authors - All rights reserved.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law... | 29.125 | 87 | 0.616075 | 373 | 2,563 | 4.171582 | 0.340483 | 0.03856 | 0.020566 | 0.071979 | 0.446015 | 0.423522 | 0.423522 | 0.405527 | 0.338689 | 0.308483 | 0 | 0.042465 | 0.246586 | 2,563 | 87 | 88 | 29.45977 | 0.763335 | 0.225127 | 0 | 0.564516 | 0 | 0 | 0.026329 | 0 | 0 | 0 | 0 | 0 | 0.032258 | 1 | 0.032258 | false | 0 | 0.064516 | 0 | 0.096774 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
56e77e033d14f603000e73fa84271bc6b5607ec9 | 3,987 | py | Python | exp/hou_ximg.py | schaban/crosscore_dev | 1eae118a485cb1de1d54d2da01ff0b32966205ef | [
"MIT"
] | 5 | 2022-01-26T03:25:00.000Z | 2022-03-06T03:27:13.000Z | exp/hou_ximg.py | schaban/crosscore_dev | 1eae118a485cb1de1d54d2da01ff0b32966205ef | [
"MIT"
] | null | null | null | exp/hou_ximg.py | schaban/crosscore_dev | 1eae118a485cb1de1d54d2da01ff0b32966205ef | [
"MIT"
] | null | null | null | # Author: Sergey Chaban <sergey.chaban@gmail.com>
import sys
import hou
import os
import imp
import re
import inspect
from math import *
from array import array
import xcore
import xhou
try: xrange
except: xrange = range
def writeBits(bw, bits, nbits):
nbytes = xcore.ceilDiv(nbits, 8)
wk = bits... | 25.234177 | 81 | 0.616002 | 589 | 3,987 | 4.149406 | 0.264856 | 0.032733 | 0.028642 | 0.01473 | 0.094926 | 0.075286 | 0.075286 | 0.075286 | 0.075286 | 0.04419 | 0 | 0.037841 | 0.237773 | 3,987 | 157 | 82 | 25.394904 | 0.766371 | 0.037121 | 0 | 0.135714 | 0 | 0 | 0.006552 | 0 | 0 | 0 | 0.003276 | 0 | 0 | 1 | 0.078571 | false | 0 | 0.071429 | 0 | 0.178571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
56e9fd79e108a7ca6eae3fd77971936796edbc9e | 9,698 | py | Python | macadam/conf/constant_params.py | yongzhuo/Macadam | 794a29c760ce25264388c3a85a6b118733afb023 | [
"MIT"
] | 290 | 2020-06-04T17:01:30.000Z | 2022-03-29T13:10:18.000Z | macadam/conf/constant_params.py | furtherthanfar/Macadam | 794a29c760ce25264388c3a85a6b118733afb023 | [
"MIT"
] | 7 | 2020-06-05T02:30:51.000Z | 2022-03-17T01:05:42.000Z | macadam/conf/constant_params.py | furtherthanfar/Macadam | 794a29c760ce25264388c3a85a6b118733afb023 | [
"MIT"
] | 35 | 2020-06-11T07:32:17.000Z | 2022-03-09T06:08:03.000Z | # !/usr/bin/python
# -*- coding: utf-8 -*-
# @time : 2020/4/26 20:25
# @author : Mo
# @function: constant of token-symbol and hyper-parameters-default
from macadam.conf.path_config import path_model_dir
from typing import Dict
import os
EMBEDDING_TYPE = ["ROBERTA","ELECTRA","RANDOM","ALBERT",
... | 51.312169 | 137 | 0.576614 | 1,106 | 9,698 | 4.84358 | 0.302893 | 0.091469 | 0.039201 | 0.043681 | 0.198619 | 0.067575 | 0.045175 | 0.032854 | 0.032854 | 0.032854 | 0 | 0.022783 | 0.289441 | 9,698 | 188 | 138 | 51.585106 | 0.754607 | 0.26026 | 0 | 0 | 0 | 0 | 0.181078 | 0.010862 | 0 | 0 | 0 | 0 | 0 | 1 | 0.014493 | false | 0 | 0.021739 | 0 | 0.050725 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
56ea4043e94445a1fa0825bf267b5e1fb99e0df2 | 786 | py | Python | tests/test_model/test_backbone/test_mobilenetv3_backbone.py | ZJCV/PyCls | 1ef59301646b6134f2ffcc009b4fd76550fa4089 | [
"Apache-2.0"
] | 110 | 2021-02-04T14:32:57.000Z | 2022-03-30T01:51:56.000Z | tests/test_model/test_backbone/test_mobilenetv3_backbone.py | likyoo/ZCls | 568621aca3a8b090c93345f0858d52c5757f2f0e | [
"Apache-2.0"
] | 8 | 2021-04-11T02:46:57.000Z | 2021-12-14T19:30:58.000Z | tests/test_model/test_backbone/test_mobilenetv3_backbone.py | likyoo/ZCls | 568621aca3a8b090c93345f0858d52c5757f2f0e | [
"Apache-2.0"
] | 20 | 2021-02-07T14:17:07.000Z | 2022-03-22T05:20:40.000Z | # -*- coding: utf-8 -*-
"""
@date: 2020/12/30 下午9:36
@file: test_mobilenetv3_backbone.py
@author: zj
@description:
"""
import torch
from zcls.model.backbones.mobilenet.mobilenetv3_backbone import MobileNetV3Backbone
def test_mobilenet_v3_backbone():
data = torch.randn(1, 3, 224, 224)
model = MobileNetV3Ba... | 20.684211 | 83 | 0.655216 | 93 | 786 | 5.258065 | 0.645161 | 0.055215 | 0.06135 | 0.09407 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.069421 | 0.23028 | 786 | 37 | 84 | 21.243243 | 0.738843 | 0.139949 | 0 | 0 | 0 | 0 | 0.052395 | 0.040419 | 0 | 0 | 0 | 0 | 0.045455 | 1 | 0.045455 | false | 0 | 0.090909 | 0 | 0.136364 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
56eb32a92cc867cd71aa0914a66e1907fb58aeae | 4,348 | py | Python | analog_sim/spice/ngspice.py | yrrapt/spice_interface | 2a66bd2672b5154920457676bbaaef8ddd694640 | [
"Apache-2.0"
] | 5 | 2021-04-29T21:38:17.000Z | 2021-07-07T04:03:45.000Z | analog_sim/spice/ngspice.py | yrrapt/spice_interface | 2a66bd2672b5154920457676bbaaef8ddd694640 | [
"Apache-2.0"
] | null | null | null | analog_sim/spice/ngspice.py | yrrapt/spice_interface | 2a66bd2672b5154920457676bbaaef8ddd694640 | [
"Apache-2.0"
] | 1 | 2021-11-30T01:12:21.000Z | 2021-11-30T01:12:21.000Z | import os, re, subprocess
import numpy as np
from spyci import spyci
from PySpice.Spice.NgSpice.Shared import NgSpiceShared
from analog_sim.spice.generic import GenericSpiceInterface
class NgSpiceInterface(GenericSpiceInterface):
'''
'''
def __init__(self, verbose=True, netlist_path=None, pdk_path=None... | 30.194444 | 100 | 0.527599 | 458 | 4,348 | 4.862445 | 0.336245 | 0.044454 | 0.025595 | 0.018859 | 0.049394 | 0.029636 | 0 | 0 | 0 | 0 | 0 | 0.009912 | 0.373505 | 4,348 | 144 | 101 | 30.194444 | 0.807636 | 0.169273 | 0 | 0.151515 | 0 | 0 | 0.087709 | 0.00792 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.075758 | 0 | 0.242424 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
56ee5b13733521aa2c6d7583b5c0eff94fcf5da5 | 728 | py | Python | producer/kwebmon_producer/json_schemas.py | nicolalamacchia/kwebmon | 13d8720314e9faff99b34dd5cb6c10d1cf45d786 | [
"MIT"
] | null | null | null | producer/kwebmon_producer/json_schemas.py | nicolalamacchia/kwebmon | 13d8720314e9faff99b34dd5cb6c10d1cf45d786 | [
"MIT"
] | 4 | 2021-04-28T03:19:37.000Z | 2021-04-28T13:10:27.000Z | producer/kwebmon_producer/json_schemas.py | nicolalamacchia/kwebmon | 13d8720314e9faff99b34dd5cb6c10d1cf45d786 | [
"MIT"
] | null | null | null | SITES_JSON_SCHEMA = {
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"sites": {"type": "array"},
"items": {"$ref": "#/$defs/site"}
},
"$defs": {
"site": {
"type": "object",
"required": ["url"],
"prop... | 28 | 76 | 0.362637 | 49 | 728 | 5.346939 | 0.591837 | 0.076336 | 0.160305 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005141 | 0.465659 | 728 | 25 | 77 | 29.12 | 0.66838 | 0 | 0 | 0.24 | 0 | 0 | 0.376374 | 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 |
56ee8b1c1d8d6917b939b39a1094ae81309532e0 | 4,404 | py | Python | willie/modules/whois.py | ezoSresyeK/willie | 5782628d15996d0cc901bb4ee27d89e9c7ad94ae | [
"EFL-2.0"
] | null | null | null | willie/modules/whois.py | ezoSresyeK/willie | 5782628d15996d0cc901bb4ee27d89e9c7ad94ae | [
"EFL-2.0"
] | null | null | null | willie/modules/whois.py | ezoSresyeK/willie | 5782628d15996d0cc901bb4ee27d89e9c7ad94ae | [
"EFL-2.0"
] | null | null | null | """
whois.py - Willie Whois module
Copyright 2014, Ellis Percival (Flyte) willie@failcode.co.uk
Licensed under the Eiffel Forum License 2.
http://willie.dftba.net
A module to enable Willie to perform WHOIS lookups on nicknames.
This can either be to have Willie perform lookups on behalf of
other people, or can be imp... | 24.331492 | 73 | 0.60604 | 607 | 4,404 | 4.313015 | 0.285008 | 0.055004 | 0.080214 | 0.061879 | 0.326585 | 0.274637 | 0.239878 | 0.190222 | 0.165011 | 0.116883 | 0 | 0.009381 | 0.273842 | 4,404 | 180 | 74 | 24.466667 | 0.809256 | 0.268847 | 0 | 0.336538 | 0 | 0.009615 | 0.077273 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.134615 | false | 0.048077 | 0.028846 | 0.019231 | 0.240385 | 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 |
56ef8a75099969f876b3cdd3157b7f50324c1ed5 | 1,188 | py | Python | setup.py | satyrius/cmsplugin-scripts | bffcaefa36377b0baeedc6a0006b2c3ce5a50a98 | [
"MIT"
] | null | null | null | setup.py | satyrius/cmsplugin-scripts | bffcaefa36377b0baeedc6a0006b2c3ce5a50a98 | [
"MIT"
] | null | null | null | setup.py | satyrius/cmsplugin-scripts | bffcaefa36377b0baeedc6a0006b2c3ce5a50a98 | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
from cmsplugin_scripts import __version__
CLASSIFIERS = [
'Development Status :: 3 - Alpha',
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: O... | 29.7 | 73 | 0.661616 | 125 | 1,188 | 6.144 | 0.672 | 0.0625 | 0.0625 | 0.078125 | 0.088542 | 0.088542 | 0 | 0 | 0 | 0 | 0 | 0.005236 | 0.196128 | 1,188 | 39 | 74 | 30.461538 | 0.798953 | 0 | 0 | 0 | 0 | 0 | 0.521044 | 0.01936 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.057143 | 0 | 0.057143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
56f43352bfe59575a440aa446f6337c18f283182 | 1,747 | py | Python | 03LinkedList/143ReorderList.py | zhaoxinlu/leetcode-algorithms | f5e1c94c99628e7fb04ba158f686a55a8093e933 | [
"MIT"
] | null | null | null | 03LinkedList/143ReorderList.py | zhaoxinlu/leetcode-algorithms | f5e1c94c99628e7fb04ba158f686a55a8093e933 | [
"MIT"
] | null | null | null | 03LinkedList/143ReorderList.py | zhaoxinlu/leetcode-algorithms | f5e1c94c99628e7fb04ba158f686a55a8093e933 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Editor: Zhao Xinlu
School: BUPT
Date: 2018-04-11
算法思想:链表重排序
"""
# Definition for singly-linked list.
class ListNode(object):
def __init__(self, x):
self.val = x
self.next = None
class Solution(object):
def reorderList(self, head):
"""
:type head: List... | 21.048193 | 74 | 0.507728 | 201 | 1,747 | 4.393035 | 0.313433 | 0.04077 | 0.030578 | 0.024915 | 0.091733 | 0.06342 | 0.06342 | 0.06342 | 0 | 0 | 0 | 0.035957 | 0.41099 | 1,747 | 83 | 75 | 21.048193 | 0.822157 | 0.117344 | 0 | 0.188679 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.09434 | false | 0 | 0 | 0 | 0.283019 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
56f4fe4a463dd38569b76ab12f231c84b957ff91 | 2,409 | py | Python | libraries/colors/colors_example1.py | est/nodebox-gl | f1909a7a4ebc55c8ba254f92e25acb26e8cf1f1d | [
"BSD-3-Clause"
] | 1 | 2015-09-29T14:22:49.000Z | 2015-09-29T14:22:49.000Z | libraries/colors/colors_example1.py | est/nodebox-gl | f1909a7a4ebc55c8ba254f92e25acb26e8cf1f1d | [
"BSD-3-Clause"
] | 1 | 2015-09-29T14:23:35.000Z | 2015-09-30T02:33:13.000Z | libraries/colors/colors_example1.py | est/nodebox-gl | f1909a7a4ebc55c8ba254f92e25acb26e8cf1f1d | [
"BSD-3-Clause"
] | null | null | null | # ANALOG COLORS
# Import the library
try:
# This is the statement you normally use.
colors = ximport("colors")
except ImportError:
# But since these examples are "inside" the library
# we may need to try something different when
# the library is not located in /Application Support
colors = ximp... | 28.341176 | 68 | 0.628892 | 380 | 2,409 | 3.976316 | 0.473684 | 0.023163 | 0.031767 | 0.023825 | 0.023825 | 0 | 0 | 0 | 0 | 0 | 0 | 0.077445 | 0.26567 | 2,409 | 85 | 69 | 28.341176 | 0.77671 | 0.457866 | 0 | 0 | 0 | 0 | 0.014583 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.085714 | 0 | 0.085714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
56f7e6b34768a05254458c5974b6b68155a3ea9f | 4,704 | py | Python | tests/db/ops/test_import_convert_str.py | simonsobs/acondbs | 6ca11c2889d827ecdb2b54d0cf3b94b8cdd281e6 | [
"MIT"
] | null | null | null | tests/db/ops/test_import_convert_str.py | simonsobs/acondbs | 6ca11c2889d827ecdb2b54d0cf3b94b8cdd281e6 | [
"MIT"
] | 24 | 2020-04-02T19:29:07.000Z | 2022-03-08T03:05:43.000Z | tests/db/ops/test_import_convert_str.py | simonsobs/acondbs | 6ca11c2889d827ecdb2b54d0cf3b94b8cdd281e6 | [
"MIT"
] | 1 | 2020-04-08T15:48:28.000Z | 2020-04-08T15:48:28.000Z | import csv
from io import StringIO
import datetime
from sqlalchemy import MetaData
from flask_sqlalchemy import SQLAlchemy
from sqlalchemy_utils import EncryptedType
import pytest
from acondbs import create_app
from acondbs.db.ops import convert_data_type_for_insert
##_____________________________________________... | 25.427027 | 75 | 0.625638 | 568 | 4,704 | 4.551056 | 0.27993 | 0.030948 | 0.034816 | 0.046035 | 0.240232 | 0.212379 | 0.133849 | 0.133849 | 0.111412 | 0.068859 | 0 | 0.013726 | 0.25659 | 4,704 | 184 | 76 | 25.565217 | 0.724049 | 0.144345 | 0 | 0.3125 | 0 | 0 | 0.032516 | 0 | 0 | 0 | 0 | 0 | 0.023438 | 1 | 0.039063 | false | 0 | 0.085938 | 0 | 0.226563 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
56f8f1bd78977f320adb7ac5e330627101781a73 | 3,041 | py | Python | pythonFiles/PCA.py | SANDEEPREDDY56712/OELP_6thSem | 0904c5b47eb57b8399844ca5f3cd9dded6361c5a | [
"MIT"
] | null | null | null | pythonFiles/PCA.py | SANDEEPREDDY56712/OELP_6thSem | 0904c5b47eb57b8399844ca5f3cd9dded6361c5a | [
"MIT"
] | null | null | null | pythonFiles/PCA.py | SANDEEPREDDY56712/OELP_6thSem | 0904c5b47eb57b8399844ca5f3cd9dded6361c5a | [
"MIT"
] | 1 | 2021-07-30T17:24:10.000Z | 2021-07-30T17:24:10.000Z | import pandas as pd
from sklearn.decomposition import PCA
import DataPreprocessing as dp
import sys
import numpy as np
import matplotlib.pyplot as plt
from sklearn.preprocessing import StandardScaler
from sklearn.cluster import KMeans
from scipy.stats import pearsonr
##################################################... | 32.698925 | 122 | 0.545215 | 340 | 3,041 | 4.670588 | 0.361765 | 0.055416 | 0.013224 | 0.018892 | 0.104534 | 0.076826 | 0.076826 | 0.076826 | 0.076826 | 0.034005 | 0 | 0.011523 | 0.086814 | 3,041 | 92 | 123 | 33.054348 | 0.560317 | 0.059849 | 0 | 0.105263 | 0 | 0 | 0.098266 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.070175 | false | 0 | 0.157895 | 0.017544 | 0.245614 | 0.140351 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
56ff69de5c0b77597019e7ce269a5c5386a35249 | 1,519 | py | Python | uocsecrets/forum/urls.py | jeff-zqiu/uocweb | bb6e99a7ab01c9634f8b8446127c4bd1c0701388 | [
"MIT"
] | 1 | 2018-09-24T13:32:06.000Z | 2018-09-24T13:32:06.000Z | uocsecrets/forum/urls.py | jeff-zqiu/uocweb | bb6e99a7ab01c9634f8b8446127c4bd1c0701388 | [
"MIT"
] | null | null | null | uocsecrets/forum/urls.py | jeff-zqiu/uocweb | bb6e99a7ab01c9634f8b8446127c4bd1c0701388 | [
"MIT"
] | null | null | null | from django.urls import path, include
from . import views
from django.views.generic import TemplateView
app_name = 'forum'
urlpatterns = [
# /forum/
path('about/', TemplateView.as_view(template_name='forum/about.html'),name='about'),
path('', views.IndexView.as_view(), name = 'index'),
path('top/', ... | 41.054054 | 97 | 0.631995 | 199 | 1,519 | 4.663317 | 0.256281 | 0.096983 | 0.140086 | 0.084052 | 0.331897 | 0.116379 | 0 | 0 | 0 | 0 | 0 | 0 | 0.150757 | 1,519 | 37 | 98 | 41.054054 | 0.71938 | 0.050691 | 0 | 0 | 0 | 0 | 0.253306 | 0.091162 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.130435 | 0 | 0.130435 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
71008fe29a8062c4d781fffdb3dbd9227f9e7c32 | 12,085 | py | Python | leer/core/primitives/block.py | WTRMQDev/leer | c77c6c1d31e6d99996f471bf4c45b8af70f44fa7 | [
"MIT"
] | 5 | 2018-11-10T03:33:37.000Z | 2019-08-23T07:02:32.000Z | leer/core/primitives/block.py | WTRMQDev/leer | c77c6c1d31e6d99996f471bf4c45b8af70f44fa7 | [
"MIT"
] | 2 | 2018-11-22T11:10:49.000Z | 2018-12-15T14:44:03.000Z | leer/core/primitives/block.py | WTRMQDev/leer | c77c6c1d31e6d99996f471bf4c45b8af70f44fa7 | [
"MIT"
] | 2 | 2018-10-30T13:43:54.000Z | 2018-11-13T06:30:56.000Z | from leer.core.primitives.header import Header, PoPoW, VoteData
from leer.core.storage.txos_storage import TXOsStorage
from leer.core.chains.headers_manager import HeadersManager
from leer.core.storage.excesses_storage import ExcessesStorage
from leer.core.storage.headers_storage import HeadersStorage
from leer.core.pr... | 46.841085 | 289 | 0.725528 | 1,645 | 12,085 | 5.122796 | 0.179331 | 0.059808 | 0.032277 | 0.021597 | 0.349116 | 0.265456 | 0.237332 | 0.229263 | 0.212412 | 0.202445 | 0 | 0.004999 | 0.188912 | 12,085 | 257 | 290 | 47.023346 | 0.854724 | 0.244435 | 0 | 0.353659 | 0 | 0.012195 | 0.035452 | 0 | 0 | 0 | 0 | 0.007782 | 0.036585 | 1 | 0.115854 | false | 0.006098 | 0.079268 | 0.02439 | 0.304878 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7101adf147765864029e975e6ef3b5f8d4d932f9 | 1,465 | py | Python | Loan-Approval-Analysis/code.py | acharya221b/ga-learner-dsmp-repo | 9b493aff25cf861fa8b757d7f2e926e1dcbe6061 | [
"MIT"
] | null | null | null | Loan-Approval-Analysis/code.py | acharya221b/ga-learner-dsmp-repo | 9b493aff25cf861fa8b757d7f2e926e1dcbe6061 | [
"MIT"
] | null | null | null | Loan-Approval-Analysis/code.py | acharya221b/ga-learner-dsmp-repo | 9b493aff25cf861fa8b757d7f2e926e1dcbe6061 | [
"MIT"
] | null | null | null | # --------------
# Import packages
import numpy as np
import pandas as pd
from scipy.stats import mode
bank=pd.read_csv(path)
categorical_var=bank.select_dtypes(include='object')
print(categorical_var)
numerical_var=bank.select_dtypes(include='number')
print(numerical_var)
# code starts here
# code ends here
#... | 18.08642 | 112 | 0.703072 | 211 | 1,465 | 4.663507 | 0.364929 | 0.060976 | 0.085366 | 0.081301 | 0.247967 | 0.144309 | 0.091463 | 0 | 0 | 0 | 0 | 0.015094 | 0.095563 | 1,465 | 80 | 113 | 18.3125 | 0.727547 | 0.202048 | 0 | 0.074074 | 0 | 0 | 0.148213 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7103030bd95a829786ccbdd3fa84915b9d8496a9 | 1,568 | py | Python | test/test_mega.py | adacker10/showdown | 8ceb1ff46d5c33ec3055928d6ad293224446f63c | [
"MIT"
] | 8 | 2019-02-02T01:15:57.000Z | 2021-12-23T04:43:46.000Z | test/test_mega.py | adacker10/showdown | 8ceb1ff46d5c33ec3055928d6ad293224446f63c | [
"MIT"
] | null | null | null | test/test_mega.py | adacker10/showdown | 8ceb1ff46d5c33ec3055928d6ad293224446f63c | [
"MIT"
] | 6 | 2020-09-11T13:15:05.000Z | 2022-03-18T15:46:35.000Z | import unittest
from sim.battle import Battle
from data import dex
class TestMega(unittest.TestCase):
def test_pidgeot(self):
battle = Battle(debug=False, rng=False)
battle.join(0, [{'species': 'pidgeot',
'item': 'pidgeotite',
'moves': ['tackle', '... | 34.844444 | 65 | 0.53699 | 166 | 1,568 | 5.024096 | 0.295181 | 0.047962 | 0.071942 | 0.076739 | 0.465228 | 0.417266 | 0.417266 | 0.318945 | 0.318945 | 0.318945 | 0 | 0.020314 | 0.309311 | 1,568 | 44 | 66 | 35.636364 | 0.749769 | 0 | 0 | 0.222222 | 0 | 0 | 0.124362 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 1 | 0.083333 | false | 0 | 0.083333 | 0 | 0.194444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7105dbc3e130b4596cac492082bc99f3266720ff | 3,872 | py | Python | tests/test_pybrain.py | carlosf/rep | 365917a1d582c7d784e26f80808eeed18f655cb3 | [
"Apache-2.0"
] | null | null | null | tests/test_pybrain.py | carlosf/rep | 365917a1d582c7d784e26f80808eeed18f655cb3 | [
"Apache-2.0"
] | null | null | null | tests/test_pybrain.py | carlosf/rep | 365917a1d582c7d784e26f80808eeed18f655cb3 | [
"Apache-2.0"
] | null | null | null | # Copyright 2014-2015 Yandex LLC and contributors <https://yandex.com/>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# <http://www.apache.org/licenses/LICENSE-2.0>
#
# Unless required by... | 37.592233 | 143 | 0.737345 | 460 | 3,872 | 5.982609 | 0.341304 | 0.022892 | 0.040698 | 0.055233 | 0.331032 | 0.24564 | 0.139898 | 0.079942 | 0 | 0 | 0 | 0.019512 | 0.152893 | 3,872 | 102 | 144 | 37.960784 | 0.819512 | 0.167355 | 0 | 0.163934 | 0 | 0 | 0.081073 | 0.00686 | 0 | 0 | 0 | 0 | 0.016393 | 1 | 0.163934 | false | 0.016393 | 0.131148 | 0 | 0.295082 | 0.032787 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
7113e4f6820f3436a0a547fe628d3433163dbab4 | 2,756 | py | Python | single_preprocessing.py | OpenVessel/RedTinSaintBernard-for-BraTS2021-challenge | dafe6f33ff6269869377d01a014ab1528b0f1c1d | [
"MIT"
] | null | null | null | single_preprocessing.py | OpenVessel/RedTinSaintBernard-for-BraTS2021-challenge | dafe6f33ff6269869377d01a014ab1528b0f1c1d | [
"MIT"
] | null | null | null | single_preprocessing.py | OpenVessel/RedTinSaintBernard-for-BraTS2021-challenge | dafe6f33ff6269869377d01a014ab1528b0f1c1d | [
"MIT"
] | null | null | null | import os
import pandas as pd
from brats_toolkit.preprocessor import Preprocessor
# instantiate
prep = Preprocessor()
## convert mapping info
## survial
name_mapping = r"E:\Datasets\BraTS challenge\MICCAI_BraTS2020_TrainingData\name_mapping.csv"
survival_info = r"E:\Datasets\BraTS challenge\MICCAI_BraTS2020_TrainingD... | 38.816901 | 171 | 0.759071 | 382 | 2,756 | 5.159686 | 0.324607 | 0.076104 | 0.091324 | 0.105023 | 0.307966 | 0.295789 | 0.295789 | 0.295789 | 0.218163 | 0.218163 | 0 | 0.047557 | 0.16074 | 2,756 | 70 | 172 | 39.371429 | 0.804583 | 0.445573 | 0 | 0 | 0 | 0 | 0.176353 | 0.122912 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.083333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7116b439a184e893f7256cd540dd3d4a730960fe | 4,263 | py | Python | infer/lib/capture/make.py | vaginessa/infer | 553d39eb7d7663fb8762d368feb3b824416f37a1 | [
"BSD-3-Clause"
] | null | null | null | infer/lib/capture/make.py | vaginessa/infer | 553d39eb7d7663fb8762d368feb3b824416f37a1 | [
"BSD-3-Clause"
] | null | null | null | infer/lib/capture/make.py | vaginessa/infer | 553d39eb7d7663fb8762d368feb3b824416f37a1 | [
"BSD-3-Clause"
] | null | null | null | import argparse
import os
import subprocess
import traceback
MODULE_NAME = 'make/cc/clang/gcc'
MODULE_DESCRIPTION = '''Run analysis of code built with commands like:
make [target]
clang [compiler_options] <filename>
gcc [compiler_options] <filename>
cc [compiler_options] <filename>
Analysis examples:
infer -- make al... | 32.295455 | 77 | 0.630776 | 536 | 4,263 | 4.787313 | 0.311567 | 0.04053 | 0.031177 | 0.031177 | 0.122369 | 0.085737 | 0.065472 | 0.065472 | 0.065472 | 0 | 0 | 0.001575 | 0.255454 | 4,263 | 131 | 78 | 32.541985 | 0.806868 | 0.066151 | 0 | 0.12844 | 0 | 0 | 0.262932 | 0.023215 | 0 | 0 | 0 | 0 | 0 | 1 | 0.06422 | false | 0 | 0.036697 | 0.009174 | 0.155963 | 0.009174 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
7116ca2e4f0dcb2bd507fa78836458daf8085478 | 2,315 | py | Python | projects/Doodle/Alexander/code/train/utils.py | liaopeiyuan/ml-arsenal-public | f8938ce3cb58b35fc7cc20d096c39a85ec9780b2 | [
"Apache-2.0"
] | 280 | 2018-10-21T01:07:18.000Z | 2021-12-30T11:29:48.000Z | projects/Doodle/YourVenn_code/code/train/utils.py | liaopeiyuan/ml-arsenal-public | f8938ce3cb58b35fc7cc20d096c39a85ec9780b2 | [
"Apache-2.0"
] | 3 | 2018-11-13T08:04:48.000Z | 2020-04-17T09:20:03.000Z | projects/Doodle/YourVenn_code/code/train/utils.py | liaopeiyuan/ml-arsenal-public | f8938ce3cb58b35fc7cc20d096c39a85ec9780b2 | [
"Apache-2.0"
] | 59 | 2018-10-21T04:38:23.000Z | 2021-03-29T07:58:47.000Z | from common import *
from torch.autograd import Variable
def to_var(x, volatile=False):
if torch.cuda.is_available():
x = x.cuda()
return Variable(x, volatile=volatile)
def softmax_cross_entropy_criterion(logit, truth, is_average=True):
loss = F.cross_entropy(logit, truth, reduce=is_avera... | 30.866667 | 84 | 0.570626 | 290 | 2,315 | 4.472414 | 0.282759 | 0.049345 | 0.069391 | 0.049345 | 0.197379 | 0.134156 | 0.134156 | 0.134156 | 0.134156 | 0.134156 | 0 | 0.024662 | 0.264363 | 2,315 | 75 | 85 | 30.866667 | 0.736935 | 0.056587 | 0 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018519 | 1 | 0.074074 | false | 0 | 0.037037 | 0 | 0.203704 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
71184f8e2f9e3b802d08210e84b8fd4a03eb2e43 | 1,281 | py | Python | day14/a.py | Cefqrn/advent-of-code-2021 | 1979f3cff981cfe1a5d59d39ec02f104b0e27abd | [
"MIT"
] | null | null | null | day14/a.py | Cefqrn/advent-of-code-2021 | 1979f3cff981cfe1a5d59d39ec02f104b0e27abd | [
"MIT"
] | null | null | null | day14/a.py | Cefqrn/advent-of-code-2021 | 1979f3cff981cfe1a5d59d39ec02f104b0e27abd | [
"MIT"
] | null | null | null | import os
from collections import defaultdict
with open(os.path.join(os.path.dirname(__file__), "input")) as f:
data = f.read().split('\n\n')
template, rules = data
rules = [x.split(' -> ') for x in rules.splitlines()]
rules = dict(rules)
pair_counts = defaultdict(int)
for i, pair in enumerate(zip(tem... | 30.5 | 69 | 0.613583 | 200 | 1,281 | 3.845 | 0.255 | 0.130039 | 0.062419 | 0.072822 | 0.543563 | 0.543563 | 0.543563 | 0.543563 | 0.543563 | 0.543563 | 0 | 0.020305 | 0.231069 | 1,281 | 42 | 70 | 30.5 | 0.760406 | 0 | 0 | 0.545455 | 0 | 0 | 0.01014 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.060606 | 0 | 0.060606 | 0.060606 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
71187322e743030c13b6dd0566757709045bdff7 | 3,793 | py | Python | app/arguments.py | calio/taski | c06346d7e3600f41b1347c6d9f73616f17b226e4 | [
"MIT"
] | null | null | null | app/arguments.py | calio/taski | c06346d7e3600f41b1347c6d9f73616f17b226e4 | [
"MIT"
] | 1 | 2021-06-01T22:24:59.000Z | 2021-06-01T22:24:59.000Z | app/arguments.py | calio/taski | c06346d7e3600f41b1347c6d9f73616f17b226e4 | [
"MIT"
] | null | null | null |
# -*- coding: utf-8 -*-
import os
import sys
import six
import argparse
import app
import app.taski as taski
def check_positive_int(val):
"""Make sure input argument is an positive integer"""
ival = int(val)
if ival <= 0:
raise argparse.ArgumentTypeError("%s is not a positive integer" % val)
... | 36.471154 | 102 | 0.631163 | 469 | 3,793 | 4.940299 | 0.315565 | 0.062149 | 0.110056 | 0.064739 | 0.259819 | 0.132931 | 0.132931 | 0.132931 | 0.132931 | 0.101856 | 0 | 0.014458 | 0.234115 | 3,793 | 103 | 103 | 36.825243 | 0.782444 | 0.075402 | 0 | 0.085714 | 0 | 0 | 0.233822 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.042857 | false | 0 | 0.085714 | 0 | 0.185714 | 0.014286 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
711c0839688b9f5dedcef052e9032977bfdb8fbd | 13,158 | py | Python | nlp_uncertainty_ssl/models/emotion_classifier.py | apmoore1/nlp-uncertainty-ssl | 4531ffce61557b4d4a71b97698479a30f65efaec | [
"Apache-2.0"
] | null | null | null | nlp_uncertainty_ssl/models/emotion_classifier.py | apmoore1/nlp-uncertainty-ssl | 4531ffce61557b4d4a71b97698479a30f65efaec | [
"Apache-2.0"
] | null | null | null | nlp_uncertainty_ssl/models/emotion_classifier.py | apmoore1/nlp-uncertainty-ssl | 4531ffce61557b4d4a71b97698479a30f65efaec | [
"Apache-2.0"
] | null | null | null | from typing import Dict, Optional, List, Any
from allennlp.common.checks import check_dimensions_match, ConfigurationError
from allennlp.data import Vocabulary
from allennlp.modules import Seq2VecEncoder, TimeDistributed, TextFieldEmbedder, Seq2SeqEncoder
from allennlp.modules import FeedForward
from allennlp.modules.... | 48.197802 | 104 | 0.636039 | 1,521 | 13,158 | 5.340565 | 0.21236 | 0.028438 | 0.018835 | 0.015758 | 0.13234 | 0.0943 | 0.064139 | 0.01625 | 0.00911 | 0 | 0 | 0.004749 | 0.27983 | 13,158 | 273 | 105 | 48.197802 | 0.852469 | 0.351649 | 0 | 0.07947 | 0 | 0 | 0.034865 | 0.006042 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033113 | false | 0 | 0.119205 | 0 | 0.178808 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
711d1b4f75a4256d5a0cf38d84457010bf2940ef | 3,225 | py | Python | medcople.py | tks1998/statistical-function-and-algorithm-ML- | 2b287524690e05087da400d879c2f901e148a5e3 | [
"MIT"
] | null | null | null | medcople.py | tks1998/statistical-function-and-algorithm-ML- | 2b287524690e05087da400d879c2f901e148a5e3 | [
"MIT"
] | 1 | 2020-12-07T19:29:21.000Z | 2020-12-28T02:29:19.000Z | medcople.py | tks1998/statistical-function-and-algorithm-ML- | 2b287524690e05087da400d879c2f901e148a5e3 | [
"MIT"
] | null | null | null | import numpy as np
import math
from statistics import median
from scipy.stats import skew
import weightedstats as ws
from statsmodels.stats.stattools import medcouple
class Med_couple:
def __init__(self,data):
self.data = np.sort(data,axis = None)[::-1] # sorted decreasing
self.med = np.medi... | 27.801724 | 83 | 0.52124 | 471 | 3,225 | 3.471338 | 0.227176 | 0.039755 | 0.029358 | 0.040367 | 0.185321 | 0.13211 | 0.102752 | 0.088073 | 0.088073 | 0.088073 | 0 | 0.019066 | 0.349457 | 3,225 | 116 | 84 | 27.801724 | 0.760248 | 0.077209 | 0 | 0.063291 | 0 | 0 | 0.002695 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.075949 | false | 0 | 0.075949 | 0 | 0.253165 | 0.012658 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
711f7d7edce90878e1c7f4456d59b5282f3d8837 | 3,644 | py | Python | shitty_tools/evil.py | njatkinson/shitty_tools | 78c56eba331728d610d12c17fa5b34120fe31f03 | [
"WTFPL"
] | null | null | null | shitty_tools/evil.py | njatkinson/shitty_tools | 78c56eba331728d610d12c17fa5b34120fe31f03 | [
"WTFPL"
] | null | null | null | shitty_tools/evil.py | njatkinson/shitty_tools | 78c56eba331728d610d12c17fa5b34120fe31f03 | [
"WTFPL"
] | null | null | null | from sqlalchemy.orm import relationship
from sqlalchemy import and_
def create_attribute_associator(entity_id_col, eav_cls, eav_entity_id_col, eav_attr_col, eav_value_col):
'''
Returns a class method that allows one to associate attributes in an Entity-Attribute-Value table
with a sqlalchemy class and the... | 46.126582 | 114 | 0.63831 | 440 | 3,644 | 4.809091 | 0.265909 | 0.041588 | 0.031191 | 0.026465 | 0.213611 | 0.167297 | 0.139887 | 0.039698 | 0.039698 | 0 | 0 | 0.003257 | 0.241767 | 3,644 | 79 | 115 | 46.126582 | 0.762577 | 0.585071 | 0 | 0.066667 | 0 | 0 | 0.020194 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.066667 | 0 | 0.266667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
712033ec7a6e7fd4c8901d3c8d26af890c676809 | 2,168 | py | Python | backend/models/roboschool_fc.py | AroMorin/DNNOP | 271e65811fe7cadcffc8155049e256fa78c0c5c6 | [
"MIT"
] | 6 | 2020-01-14T00:01:34.000Z | 2021-12-28T14:31:05.000Z | backend/models/roboschool_fc.py | AroMorin/DNNOP | 271e65811fe7cadcffc8155049e256fa78c0c5c6 | [
"MIT"
] | null | null | null | backend/models/roboschool_fc.py | AroMorin/DNNOP | 271e65811fe7cadcffc8155049e256fa78c0c5c6 | [
"MIT"
] | 1 | 2020-09-06T10:44:29.000Z | 2020-09-06T10:44:29.000Z | """A script that defines a simple FC model for function solving"""
import torch.nn as nn
import numpy as np
import torch
class Net(nn.Module):
def __init__(self, model_params):
super(Net, self).__init__()
model_params = self.ingest_params_lvl1(model_params)
ins = model_params['in features']... | 30.971429 | 74 | 0.535055 | 297 | 2,168 | 3.808081 | 0.377104 | 0.04863 | 0.05305 | 0.023873 | 0.066313 | 0.066313 | 0.066313 | 0.066313 | 0.066313 | 0.066313 | 0 | 0.035392 | 0.335332 | 2,168 | 69 | 75 | 31.42029 | 0.74948 | 0.153598 | 0 | 0.113208 | 0 | 0 | 0.030769 | 0 | 0 | 0 | 0 | 0 | 0.018868 | 1 | 0.113208 | false | 0 | 0.056604 | 0 | 0.245283 | 0.018868 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7120c63dc1de2d2819806215bfba1cf552bbc4da | 666 | py | Python | recipes/Python/576838_Recursivemethod/recipe-576838.py | tdiprima/code | 61a74f5f93da087d27c70b2efe779ac6bd2a3b4f | [
"MIT"
] | 2,023 | 2017-07-29T09:34:46.000Z | 2022-03-24T08:00:45.000Z | recipes/Python/576838_Recursivemethod/recipe-576838.py | unhacker/code | 73b09edc1b9850c557a79296655f140ce5e853db | [
"MIT"
] | 32 | 2017-09-02T17:20:08.000Z | 2022-02-11T17:49:37.000Z | recipes/Python/576838_Recursivemethod/recipe-576838.py | unhacker/code | 73b09edc1b9850c557a79296655f140ce5e853db | [
"MIT"
] | 780 | 2017-07-28T19:23:28.000Z | 2022-03-25T20:39:41.000Z | def recursive(func):
func.func_globals[func.__name__] = func
return func
class Test:
def method(self, x = False):
if x:
print(x)
else:
self.method("I'm method")
@staticmethod
def smethod(x = False):
if x:
print(x)
else:
... | 20.8125 | 70 | 0.540541 | 82 | 666 | 4.329268 | 0.329268 | 0.028169 | 0.067606 | 0.076056 | 0.31831 | 0.31831 | 0.160563 | 0 | 0 | 0 | 0 | 0 | 0.34985 | 666 | 31 | 71 | 21.483871 | 0.819861 | 0.127628 | 0 | 0.423077 | 0 | 0 | 0.081456 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0 | 0 | 0.230769 | 0.115385 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7125865039e4808ac309b57d84350350e5e69e6d | 4,858 | py | Python | tests/gitlab_test_utils.py | jarda-wien/gitlabber | e3e53b183233be6b08c47a8ce1264415dc7af6e4 | [
"MIT"
] | 344 | 2020-04-28T16:59:02.000Z | 2022-03-30T08:50:58.000Z | tests/gitlab_test_utils.py | jarda-wien/gitlabber | e3e53b183233be6b08c47a8ce1264415dc7af6e4 | [
"MIT"
] | 86 | 2020-04-28T13:21:37.000Z | 2022-03-31T12:51:29.000Z | tests/gitlab_test_utils.py | jarda-wien/gitlabber | e3e53b183233be6b08c47a8ce1264415dc7af6e4 | [
"MIT"
] | 64 | 2020-04-29T11:53:14.000Z | 2022-03-23T09:41:05.000Z | import pytest
import json
from unittest import mock
from gitlabber import gitlab_tree
URL = "http://gitlab.my.com/"
TOKEN = "MOCK_TOKEN"
GROUP_URL = "http://gitlab.my.com/group"
GROUP_NAME = "group"
SUBGROUP_URL = "http://gitlab.my.com/group/subgroup"
SUBGROUP_NAME = "subgroup"
PROJECT_URL = "http://gitlab.my.com/gr... | 36.253731 | 120 | 0.711404 | 640 | 4,858 | 5.140625 | 0.125 | 0.039514 | 0.025532 | 0.022796 | 0.426444 | 0.361094 | 0.306383 | 0.206383 | 0.130091 | 0.130091 | 0 | 0.006332 | 0.18732 | 4,858 | 133 | 121 | 36.526316 | 0.827001 | 0.003088 | 0 | 0.113208 | 0 | 0 | 0.077257 | 0.017971 | 0 | 0 | 0 | 0 | 0.179245 | 1 | 0.113208 | false | 0 | 0.037736 | 0 | 0.245283 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7126a909c8eb6e0615ba8dbc55706b97b9c85813 | 33,512 | py | Python | mindquantum/simulator/simulator.py | Takishima/mindquantum | e90dfe474b759023d7ae18281b9a87cb8d223d04 | [
"Apache-2.0"
] | null | null | null | mindquantum/simulator/simulator.py | Takishima/mindquantum | e90dfe474b759023d7ae18281b9a87cb8d223d04 | [
"Apache-2.0"
] | null | null | null | mindquantum/simulator/simulator.py | Takishima/mindquantum | e90dfe474b759023d7ae18281b9a87cb8d223d04 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright 2021 Huawei Technologies Co., Ltd
#
# 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 app... | 42.153459 | 120 | 0.586894 | 4,088 | 33,512 | 4.7182 | 0.106164 | 0.020686 | 0.021153 | 0.00674 | 0.366497 | 0.282922 | 0.217389 | 0.177105 | 0.141228 | 0.111209 | 0 | 0.024353 | 0.302787 | 33,512 | 794 | 121 | 42.206549 | 0.786946 | 0.397529 | 0 | 0.227273 | 0 | 0.002674 | 0.127635 | 0.0088 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064171 | false | 0 | 0.026738 | 0 | 0.144385 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7126b8e0e2a112a169fa2ccb17434fdbeb6afcc6 | 10,853 | py | Python | seasonedParser/core.py | KevinMidboe/seasonMover | 380c4a02f48679c0204ecf1a5807718b93f2ff19 | [
"MIT"
] | null | null | null | seasonedParser/core.py | KevinMidboe/seasonMover | 380c4a02f48679c0204ecf1a5807718b93f2ff19 | [
"MIT"
] | 9 | 2017-09-29T11:35:37.000Z | 2020-02-19T09:34:15.000Z | seasonedParser/core.py | KevinMidboe/seasonedParser | 380c4a02f48679c0204ecf1a5807718b93f2ff19 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3.6
# -*- coding: utf-8 -*-
# @Author: KevinMidboe
# @Date: 2017-08-25 23:22:27
# @Last Modified by: KevinMidboe
# @Last Modified time: 2019-02-02 01:04:25
from guessit import guessit
from babelfish import Language, LanguageReverseError
import hashlib
import os, errno
import shutil
import re
i... | 32.887879 | 152 | 0.602322 | 1,278 | 10,853 | 5.046948 | 0.21831 | 0.026047 | 0.012403 | 0.011938 | 0.228682 | 0.167597 | 0.11969 | 0.11969 | 0.114419 | 0.093643 | 0 | 0.008741 | 0.28324 | 10,853 | 329 | 153 | 32.987842 | 0.820414 | 0.152861 | 0 | 0.206897 | 0 | 0.004926 | 0.095385 | 0 | 0 | 0 | 0 | 0.00304 | 0 | 1 | 0.059113 | false | 0.004926 | 0.078818 | 0.004926 | 0.187192 | 0.014778 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7127698ab3d52c9f1add1c5b008972b4228385d7 | 1,266 | py | Python | networking_vsphere/utils/db.py | huadream/networking-vsphere | 8669a78d4d2eb4620610fe7e4548cac7fbfa9e6a | [
"Apache-2.0"
] | null | null | null | networking_vsphere/utils/db.py | huadream/networking-vsphere | 8669a78d4d2eb4620610fe7e4548cac7fbfa9e6a | [
"Apache-2.0"
] | null | null | null | networking_vsphere/utils/db.py | huadream/networking-vsphere | 8669a78d4d2eb4620610fe7e4548cac7fbfa9e6a | [
"Apache-2.0"
] | null | null | null | # Copyright 2016 Mirantis, Inc.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by a... | 37.235294 | 78 | 0.71169 | 185 | 1,266 | 4.745946 | 0.540541 | 0.068337 | 0.059226 | 0.036446 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009045 | 0.21406 | 1,266 | 33 | 79 | 38.363636 | 0.873367 | 0.49684 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.214286 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
712c4c6a5b75135845d649016c8d2919cb39542c | 6,613 | py | Python | api/app/main.py | JexPY/filemanager-fastapi | da830fe6d9a3d515e0d04e6e690ff366225ec251 | [
"MIT"
] | 24 | 2020-09-15T11:59:55.000Z | 2022-03-13T19:58:02.000Z | api/app/main.py | JexPY/filemanager-fastapi | da830fe6d9a3d515e0d04e6e690ff366225ec251 | [
"MIT"
] | null | null | null | api/app/main.py | JexPY/filemanager-fastapi | da830fe6d9a3d515e0d04e6e690ff366225ec251 | [
"MIT"
] | 5 | 2020-10-11T08:41:29.000Z | 2022-03-10T07:23:55.000Z | from fastapi import FastAPI, File, UploadFile, BackgroundTasks, Depends, HTTPException,status,Query
from fastapi.responses import FileResponse
from fastapi.middleware.cors import CORSMiddleware
from fastapi.security import HTTPBearer,OAuth2AuthorizationCodeBearer,HTTPBasicCredentials
from fastapi.staticfiles import Sta... | 37.573864 | 152 | 0.692122 | 804 | 6,613 | 5.508706 | 0.210199 | 0.034545 | 0.04606 | 0.088508 | 0.575977 | 0.504629 | 0.415218 | 0.299616 | 0.299616 | 0.282682 | 0 | 0.004846 | 0.188719 | 6,613 | 176 | 153 | 37.573864 | 0.82069 | 0.027068 | 0 | 0.425676 | 0 | 0 | 0.200902 | 0.020837 | 0 | 0 | 0 | 0 | 0 | 1 | 0.006757 | false | 0.02027 | 0.101351 | 0 | 0.168919 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
712c549f586b26511dd3c9bf33e7238504d23130 | 3,570 | py | Python | src/modules/Load.py | aaanh/duplicated_accelcamp | 7d4b60ace023bede907f8ed367ba492731a1951d | [
"FTL",
"CNRI-Python",
"RSA-MD"
] | null | null | null | src/modules/Load.py | aaanh/duplicated_accelcamp | 7d4b60ace023bede907f8ed367ba492731a1951d | [
"FTL",
"CNRI-Python",
"RSA-MD"
] | 2 | 2021-05-21T16:31:41.000Z | 2021-08-25T16:05:48.000Z | src/modules/Load.py | aaanh/duplicated_accelcamp | 7d4b60ace023bede907f8ed367ba492731a1951d | [
"FTL",
"CNRI-Python",
"RSA-MD"
] | null | null | null | from modules.LoadAccel import *
from modules.LoadOmega import *
import os
from tkinter import *
defaultdir = "../data"
def LoadDataSet(dirpath=None):
if(dirpath==None):
root = Tk()
root.withdraw()
dirpath = filedialog.askdirectory(parent=root,initialdir=defaultdir,title=... | 35.346535 | 123 | 0.519048 | 394 | 3,570 | 4.614213 | 0.258883 | 0.036304 | 0.046205 | 0.046755 | 0.325633 | 0.235424 | 0.235424 | 0.235424 | 0.194719 | 0.130913 | 0 | 0.003594 | 0.298599 | 3,570 | 100 | 124 | 35.7 | 0.722444 | 0.04958 | 0 | 0.202532 | 0 | 0 | 0.159976 | 0.023418 | 0 | 0 | 0 | 0 | 0 | 1 | 0.050633 | false | 0 | 0.050633 | 0.012658 | 0.151899 | 0.177215 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
712ffc09478a5f0361603a065889b6ec9109be8d | 1,300 | py | Python | restfulpy/tests/test_jwt_cli.py | mehdishirazi/restfulpy | 244a53a8ea4692a37b4db82b6cb5ef83c27f0b53 | [
"MIT"
] | null | null | null | restfulpy/tests/test_jwt_cli.py | mehdishirazi/restfulpy | 244a53a8ea4692a37b4db82b6cb5ef83c27f0b53 | [
"MIT"
] | null | null | null | restfulpy/tests/test_jwt_cli.py | mehdishirazi/restfulpy | 244a53a8ea4692a37b4db82b6cb5ef83c27f0b53 | [
"MIT"
] | null | null | null | import json
import pytest
from bddcli import Given, given, when, stdout, stderr, Application
from itsdangerous import TimedJSONWebSignatureSerializer
from itsdangerous.exc import SignatureExpired
from nanohttp import settings
from restfulpy import Application as RestfulpyApplication
foo = RestfulpyApplication(name=... | 24.528302 | 66 | 0.646923 | 144 | 1,300 | 5.701389 | 0.354167 | 0.043849 | 0.062119 | 0.065773 | 0.154689 | 0.154689 | 0.124239 | 0.124239 | 0.124239 | 0.124239 | 0 | 0.004995 | 0.23 | 1,300 | 52 | 67 | 25 | 0.815185 | 0.043077 | 0 | 0.176471 | 0 | 0 | 0.079839 | 0.029839 | 0 | 0 | 0 | 0 | 0.147059 | 1 | 0.058824 | false | 0 | 0.205882 | 0.029412 | 0.294118 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
71313701f0c786d0a59625fef35a307d370ccdba | 913 | py | Python | Challenges/16/tree_max/tree_max.py | makkahwi/data-structures-and-algorithms | 06551786258bb7dabb9b0ab07c0f80ff78abca41 | [
"MIT"
] | null | null | null | Challenges/16/tree_max/tree_max.py | makkahwi/data-structures-and-algorithms | 06551786258bb7dabb9b0ab07c0f80ff78abca41 | [
"MIT"
] | null | null | null | Challenges/16/tree_max/tree_max.py | makkahwi/data-structures-and-algorithms | 06551786258bb7dabb9b0ab07c0f80ff78abca41 | [
"MIT"
] | null | null | null | class BinaryNode:
def __init__(self, value):
self.value = value
self.left = None
self.right = None
class BinaryTree:
def __init__(self):
self.root = None
def tree_max(self):
"""
To find the maximum node value
Input:
None
Output:
... | 18.26 | 64 | 0.511501 | 98 | 913 | 4.591837 | 0.336735 | 0.124444 | 0.048889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.405257 | 913 | 49 | 65 | 18.632653 | 0.828729 | 0.079956 | 0 | 0 | 0 | 0 | 0.022959 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0.038462 | 0 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
713280b49e1a2690e858ead874212334f33b4458 | 6,928 | py | Python | sahyun_bot/elastic_settings.py | TheGoodlike13/sahyun-bot | 8ebc3d4e58a0acf9bde3c9ea8339145abcc53fcb | [
"MIT"
] | 1 | 2022-02-21T18:55:34.000Z | 2022-02-21T18:55:34.000Z | sahyun_bot/elastic_settings.py | TheGoodlike13/sahyun-bot | 8ebc3d4e58a0acf9bde3c9ea8339145abcc53fcb | [
"MIT"
] | null | null | null | sahyun_bot/elastic_settings.py | TheGoodlike13/sahyun-bot | 8ebc3d4e58a0acf9bde3c9ea8339145abcc53fcb | [
"MIT"
] | null | null | null | """
Initializes settings for elastic.py.
To make the index dynamic (which also allows to switch it out for tests), the value must be explicitly initialized
by some other module. If this does not happen, and somebody attempts to load elastic.py, 'ready_or_die' will get
executed which will shut down the application, thu... | 32.990476 | 116 | 0.69948 | 887 | 6,928 | 5.21646 | 0.270575 | 0.028744 | 0.033067 | 0.009726 | 0.194943 | 0.132267 | 0.132267 | 0.123406 | 0.123406 | 0.082343 | 0 | 0.001088 | 0.203811 | 6,928 | 209 | 117 | 33.148325 | 0.837745 | 0.15026 | 0 | 0.192857 | 0 | 0 | 0.103693 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.114286 | false | 0 | 0.078571 | 0.028571 | 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 |
713385c102d9118616dbff568943593032126378 | 13,816 | py | Python | ipec/ga/population.py | wwwbbb8510/ippso | fa20d23cd8edba5908e65a0ab0ab990d7ce3d5d5 | [
"MIT"
] | 9 | 2018-05-10T01:04:34.000Z | 2019-06-28T07:47:37.000Z | ipec/ga/population.py | wwwbbb8510/ippso | fa20d23cd8edba5908e65a0ab0ab990d7ce3d5d5 | [
"MIT"
] | null | null | null | ipec/ga/population.py | wwwbbb8510/ippso | fa20d23cd8edba5908e65a0ab0ab990d7ce3d5d5 | [
"MIT"
] | 2 | 2020-10-12T03:54:30.000Z | 2021-09-08T14:10:21.000Z | import copy
import logging
import numpy as np
from ipec.cnn.evaluator import Evaluator, CNNEvaluator, initialise_cnn_evaluator
from ipec.cnn.layers import ConvLayer
from ipec.cnn.layers import DisabledLayer
from ipec.cnn.layers import FullyConnectedLayer
from ipec.cnn.layers import PoolingLayer
from ipec.ip.decoder i... | 43.040498 | 191 | 0.652287 | 1,653 | 13,816 | 5.22686 | 0.120992 | 0.024306 | 0.019097 | 0.037269 | 0.434954 | 0.331713 | 0.28669 | 0.270486 | 0.253819 | 0.25081 | 0 | 0.008796 | 0.267661 | 13,816 | 320 | 192 | 43.175 | 0.845128 | 0.256659 | 0 | 0.094118 | 0 | 0.005882 | 0.067189 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064706 | false | 0 | 0.058824 | 0 | 0.188235 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
71347fdcbbf1d234dd6e12f39abe3f11e92be5a5 | 2,030 | py | Python | migrations/versions/8a480de4de4c_adjusts_for_seed_development.py | eubr-bigsea/limonero | 54851b73bb1e4f5626b3d38ea7eeb50f3ed2e3c5 | [
"Apache-2.0"
] | 1 | 2018-01-01T20:35:43.000Z | 2018-01-01T20:35:43.000Z | migrations/versions/8a480de4de4c_adjusts_for_seed_development.py | eubr-bigsea/limonero | 54851b73bb1e4f5626b3d38ea7eeb50f3ed2e3c5 | [
"Apache-2.0"
] | 37 | 2017-02-24T17:07:25.000Z | 2021-09-02T14:49:19.000Z | migrations/versions/8a480de4de4c_adjusts_for_seed_development.py | eubr-bigsea/limonero | 54851b73bb1e4f5626b3d38ea7eeb50f3ed2e3c5 | [
"Apache-2.0"
] | 2 | 2019-11-05T13:45:45.000Z | 2020-11-13T22:02:37.000Z | """Adjusts for Seed development
Revision ID: 8a480de4de4c
Revises: 7addb7587b1a
Create Date: 2021-07-13 17:16:20.807567
"""
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import mysql
from limonero.migration_utils import (is_mysql, is_psql, upgrade_actions,
downgrade_actions, get_psq... | 32.222222 | 77 | 0.576355 | 203 | 2,030 | 5.53202 | 0.384236 | 0.05699 | 0.078362 | 0.092609 | 0.555655 | 0.534283 | 0.534283 | 0.534283 | 0.534283 | 0.534283 | 0 | 0.033684 | 0.29803 | 2,030 | 62 | 78 | 32.741935 | 0.754386 | 0.088177 | 0 | 0.468085 | 0 | 0 | 0.415259 | 0.059946 | 0 | 0 | 0 | 0 | 0 | 1 | 0.042553 | false | 0 | 0.085106 | 0 | 0.12766 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7139484e64db6cee198f70d7bc368fac65431c29 | 1,313 | py | Python | Problems/199.py | kvedula/leetcode | 8576b1ef466529b9e0d337af78fc833acb686a3c | [
"MIT"
] | null | null | null | Problems/199.py | kvedula/leetcode | 8576b1ef466529b9e0d337af78fc833acb686a3c | [
"MIT"
] | null | null | null | Problems/199.py | kvedula/leetcode | 8576b1ef466529b9e0d337af78fc833acb686a3c | [
"MIT"
] | null | null | null | # Kamesh Vedula
# Problem: Binary Tree Right Side View
# Definition for a binary tree node.
# class TreeNode:
# def __init__(self, val=0, left=None, right=None):
# self.val = val
# self.left = left
# self.right = right
def rightSideView(self, root: TreeNode) -> List[int]:
if root is N... | 22.254237 | 55 | 0.450876 | 139 | 1,313 | 4.230216 | 0.330935 | 0.071429 | 0.07483 | 0.071429 | 0.414966 | 0.414966 | 0.414966 | 0.343537 | 0.343537 | 0.221088 | 0 | 0.00545 | 0.440975 | 1,313 | 58 | 56 | 22.637931 | 0.79564 | 0.549886 | 0 | 0 | 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 |
713a3074599a837fcc6b69f08f73d38cb5ca45a1 | 182 | py | Python | curso2.py | ralabarta/educationar_python_repo | f89ddb0bb19b039459e42472e0f52f31c69a3853 | [
"MIT"
] | null | null | null | curso2.py | ralabarta/educationar_python_repo | f89ddb0bb19b039459e42472e0f52f31c69a3853 | [
"MIT"
] | null | null | null | curso2.py | ralabarta/educationar_python_repo | f89ddb0bb19b039459e42472e0f52f31c69a3853 | [
"MIT"
] | null | null | null | import statistics
datos = [2,4,6,8]
datos2 = [2, 2, 3, 5, 8, 9]
mean_r = statistics.mean(datos)
median_r = statistics.median(datos2)
print(mean_r)
print(median_r)
| 13 | 37 | 0.637363 | 30 | 182 | 3.733333 | 0.5 | 0.089286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.084507 | 0.21978 | 182 | 13 | 38 | 14 | 0.704225 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0.285714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
713f16f6c1f8f19f1fc82172faed9240a38e2015 | 1,632 | py | Python | examples/custom-validator.py | RyanSquared/gigaspoon | c5bf31fbffa1c7ec8e0c91ef7ae79040d553151a | [
"MIT"
] | 1 | 2018-02-06T16:15:44.000Z | 2018-02-06T16:15:44.000Z | examples/custom-validator.py | RyanSquared/gigaspoon | c5bf31fbffa1c7ec8e0c91ef7ae79040d553151a | [
"MIT"
] | 1 | 2019-10-15T13:57:09.000Z | 2019-10-15T16:08:42.000Z | examples/custom-validator.py | RyanSquared/gigaspoon | c5bf31fbffa1c7ec8e0c91ef7ae79040d553151a | [
"MIT"
] | null | null | null | import os
import flask
import gigaspoon as gs
app = flask.Flask(__name__)
app.secret_key = os.urandom(24)
class CustomSelect(gs.v.Validator):
def __init__(self, name, options):
self.name = name
self._options = set(options)
def __repr__(self):
return "%r %r" % (type(self), self._opti... | 23.652174 | 56 | 0.610907 | 206 | 1,632 | 4.640777 | 0.427184 | 0.046025 | 0.029289 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003937 | 0.221814 | 1,632 | 68 | 57 | 24 | 0.748819 | 0.02451 | 0 | 0.038462 | 0 | 0 | 0.358491 | 0.061635 | 0 | 0 | 0 | 0 | 0 | 1 | 0.115385 | false | 0 | 0.057692 | 0.057692 | 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 |
714198dc8f030861acfb87346bb996cc656b4494 | 2,244 | py | Python | gdk/jetson/tracker.py | dbadrian/gdk_dlrc17 | 7aebed740dc4a09f3549674b0cfeb22bdb392ac6 | [
"MIT"
] | 1 | 2019-03-29T12:36:55.000Z | 2019-03-29T12:36:55.000Z | gdk/jetson/tracker.py | dbadrian/gdk_dlrc17 | 7aebed740dc4a09f3549674b0cfeb22bdb392ac6 | [
"MIT"
] | null | null | null | gdk/jetson/tracker.py | dbadrian/gdk_dlrc17 | 7aebed740dc4a09f3549674b0cfeb22bdb392ac6 | [
"MIT"
] | null | null | null | import time
import sys
import logging
# Import PS-Drone
import cv2
import numpy as np
import gdk.config as config
logger = logging.getLogger(__name__)
class CheckerBoardTracker():
def __init__(self):
self.tracking = False
def update(self, frame):
self.tracking, self.corners = self.__get_cor... | 34.523077 | 130 | 0.657754 | 312 | 2,244 | 4.435897 | 0.25 | 0.058526 | 0.104046 | 0.052023 | 0.264451 | 0.182081 | 0.083815 | 0 | 0 | 0 | 0 | 0.031142 | 0.227273 | 2,244 | 64 | 131 | 35.0625 | 0.767013 | 0.030749 | 0 | 0.066667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.155556 | false | 0 | 0.133333 | 0.044444 | 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 |
7143d82db45d18175969ef941dd86101829ae9a5 | 15,402 | py | Python | Tryp_T.py | johnheap/VAPPER-Galaxy | 4ce903b3b44755198e59368057863a5eb62ff6c6 | [
"Apache-2.0"
] | null | null | null | Tryp_T.py | johnheap/VAPPER-Galaxy | 4ce903b3b44755198e59368057863a5eb62ff6c6 | [
"Apache-2.0"
] | null | null | null | Tryp_T.py | johnheap/VAPPER-Galaxy | 4ce903b3b44755198e59368057863a5eb62ff6c6 | [
"Apache-2.0"
] | null | null | null | """
* Copyright 2018 University of Liverpool
* Author: John Heap, Computational Biology Facility, UoL
* Based on original scripts of Sara Silva Pereira, Institute of Infection and Global Health, UoL
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in complianc... | 44.514451 | 195 | 0.617907 | 1,965 | 15,402 | 4.775573 | 0.280407 | 0.019608 | 0.012894 | 0.017263 | 0.28101 | 0.253197 | 0.231671 | 0.211317 | 0.192349 | 0.145247 | 0 | 0.072558 | 0.224192 | 15,402 | 345 | 196 | 44.643478 | 0.712779 | 0.243085 | 0 | 0.22807 | 0 | 0.026316 | 0.23681 | 0.057343 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04386 | false | 0 | 0.030702 | 0 | 0.092105 | 0.013158 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
7144cdbf12d2350acabc972907aa336bd9391ec1 | 442 | py | Python | scale/node/migrations/0003_node_is_paused_errors.py | kaydoh/scale | 1b6a3b879ffe83e10d3b9d9074835a4c3bf476ee | [
"Apache-2.0"
] | 121 | 2015-11-18T18:15:33.000Z | 2022-03-10T01:55:00.000Z | scale/node/migrations/0003_node_is_paused_errors.py | kaydoh/scale | 1b6a3b879ffe83e10d3b9d9074835a4c3bf476ee | [
"Apache-2.0"
] | 1,415 | 2015-12-23T23:36:04.000Z | 2022-01-07T14:10:09.000Z | scale/node/migrations/0003_node_is_paused_errors.py | kaydoh/scale | 1b6a3b879ffe83e10d3b9d9074835a4c3bf476ee | [
"Apache-2.0"
] | 66 | 2015-12-03T20:38:56.000Z | 2020-07-27T15:28:11.000Z | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('node', '0002_node_pause_reason'),
]
operations = [
migrations.AddField(
model_name='node',
name='is_... | 21.047619 | 53 | 0.606335 | 42 | 442 | 6.095238 | 0.761905 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015773 | 0.282805 | 442 | 20 | 54 | 22.1 | 0.791798 | 0.047511 | 0 | 0 | 0 | 0 | 0.109785 | 0.052506 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 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 |
852e97bba32d24a91db45aae8147ee20bfee4935 | 3,482 | py | Python | LineDetect/videoLineDet.py | RonellBr/LaneDetection | 349e5c75bee39c3006fcf206565915fe7493e796 | [
"MIT"
] | null | null | null | LineDetect/videoLineDet.py | RonellBr/LaneDetection | 349e5c75bee39c3006fcf206565915fe7493e796 | [
"MIT"
] | null | null | null | LineDetect/videoLineDet.py | RonellBr/LaneDetection | 349e5c75bee39c3006fcf206565915fe7493e796 | [
"MIT"
] | null | null | null | ################################################################
# Author: Ronell Bresler
# Module: VideoLineDetect.py
#
#
# References:
# https://www.analyticsvidhya.com/blog/2020/05/tutorial-real-time-lane-detection-opencv/
# https://towardsdatascience.com/tutorial-build-a-lane-detector-679fd8953132
# https:/... | 31.654545 | 138 | 0.553418 | 371 | 3,482 | 5.02965 | 0.420485 | 0.034298 | 0.068596 | 0.07717 | 0.028939 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037937 | 0.220276 | 3,482 | 110 | 139 | 31.654545 | 0.649355 | 0.178059 | 0 | 0 | 0 | 0 | 0.014404 | 0 | 0 | 0 | 0.001746 | 0 | 0 | 1 | 0.116667 | false | 0 | 0.05 | 0 | 0.266667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
85320c46304d80fec430c5914f3f698f8524a178 | 3,407 | py | Python | code/app.py | annotation/app-uruk | aee4ed0c3fd574251f8b4eb9169705e8ac26bf95 | [
"MIT"
] | null | null | null | code/app.py | annotation/app-uruk | aee4ed0c3fd574251f8b4eb9169705e8ac26bf95 | [
"MIT"
] | null | null | null | code/app.py | annotation/app-uruk | aee4ed0c3fd574251f8b4eb9169705e8ac26bf95 | [
"MIT"
] | null | null | null | import types
from tf.advanced.helpers import dh
from tf.advanced.find import loadModule
from tf.advanced.app import App
def transform_prime(app, n, p):
return ("'" * int(p)) if p else ""
def transform_ctype(app, n, t):
if t == "uncertain":
return "?"
elif t == "properName":
return "="
... | 28.872881 | 87 | 0.561785 | 361 | 3,407 | 5.249307 | 0.301939 | 0.029551 | 0.022164 | 0.031662 | 0.134037 | 0.134037 | 0.134037 | 0.134037 | 0.081266 | 0.081266 | 0 | 0.001729 | 0.321104 | 3,407 | 117 | 88 | 29.119658 | 0.817553 | 0.004109 | 0 | 0.223404 | 0 | 0 | 0.039811 | 0.007078 | 0 | 0 | 0 | 0 | 0 | 1 | 0.106383 | false | 0 | 0.042553 | 0.053191 | 0.276596 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
85322edb1455b94f135f0f46c6eb2897360629a3 | 12,632 | py | Python | shunt/hmap/hmap.py | velezj/project-manager | 92e28e5718ca1302f6da0cf8b3d4a3bb5a1a8a72 | [
"MIT"
] | null | null | null | shunt/hmap/hmap.py | velezj/project-manager | 92e28e5718ca1302f6da0cf8b3d4a3bb5a1a8a72 | [
"MIT"
] | null | null | null | shunt/hmap/hmap.py | velezj/project-manager | 92e28e5718ca1302f6da0cf8b3d4a3bb5a1a8a72 | [
"MIT"
] | null | null | null | import logging
logger = logging.getLogger( __name__ )
import copy
import tempfile
import os
import jinja2
import yaml
##
# Interface functions for Hiearchichal Maps (hmaps)
# which are jsut dictionaries-of-dictionaries :)
TEMPLATE_HANDLEBAR_START = "{{"
TEMPLATE_HANDLEBAR_END = "}}"
JINJA_VARIABLE_KEY = "_"
##===... | 36.827988 | 116 | 0.443002 | 1,207 | 12,632 | 4.506214 | 0.22121 | 0.014709 | 0.011951 | 0.012502 | 0.072256 | 0.055709 | 0.031807 | 0.013238 | 0.013238 | 0.013238 | 0 | 0.001776 | 0.197831 | 12,632 | 342 | 117 | 36.935673 | 0.534985 | 0.518445 | 0 | 0.06338 | 0 | 0 | 0.046575 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105634 | false | 0 | 0.042254 | 0.007042 | 0.323944 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8533f45f79e26e6d7713f555d363262a5ebdca2b | 2,496 | py | Python | kur/sources/jsonl.py | greedyuser/kur | ba6588ebfa5dec66d1e462c180618cc115fd38ef | [
"Apache-2.0"
] | 867 | 2016-12-05T20:24:23.000Z | 2022-02-18T09:07:14.000Z | kur/sources/jsonl.py | greedyuser/kur | ba6588ebfa5dec66d1e462c180618cc115fd38ef | [
"Apache-2.0"
] | 90 | 2017-01-14T22:46:23.000Z | 2021-02-09T13:32:27.000Z | kur/sources/jsonl.py | greedyuser/kur | ba6588ebfa5dec66d1e462c180618cc115fd38ef | [
"Apache-2.0"
] | 135 | 2017-01-18T19:21:20.000Z | 2022-01-24T16:57:59.000Z | import linecache
import numpy
import json
from ..sources import ChunkSource
###############################################################################
class JSONLSource(ChunkSource):
""" Data source for tensors stored in JSONL format
"""
#############################################################... | 35.15493 | 93 | 0.455529 | 236 | 2,496 | 4.716102 | 0.415254 | 0.053908 | 0.050314 | 0.044924 | 0.062893 | 0.062893 | 0 | 0 | 0 | 0 | 0 | 0.002693 | 0.25601 | 2,496 | 70 | 94 | 35.657143 | 0.596661 | 0.204728 | 0 | 0 | 0 | 0 | 0.078287 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0 | 0.125 | 0 | 0.4375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8539ad589810749d569e8c96666ae5bd84a052e5 | 2,571 | py | Python | nb2blog.py | rowanc1/nb2blog | 1c625a2727124898c4f3d9c9742feb268c554ebd | [
"MIT"
] | null | null | null | nb2blog.py | rowanc1/nb2blog | 1c625a2727124898c4f3d9c9742feb268c554ebd | [
"MIT"
] | null | null | null | nb2blog.py | rowanc1/nb2blog | 1c625a2727124898c4f3d9c9742feb268c554ebd | [
"MIT"
] | null | null | null | #!/usr/local/bin/python
import requests, argparse, p3c, os, json, subprocess, keyring
def main():
parser = argparse.ArgumentParser(description='Upload a notebook to a gist and 3point/SimPEG blog.')
parser.add_argument('notebook', type=str, help='The file name of the notebook.')
parser.add_argument('-m', t... | 34.743243 | 127 | 0.596266 | 336 | 2,571 | 4.5 | 0.392857 | 0.079365 | 0.037698 | 0.018519 | 0.085979 | 0.026455 | 0 | 0 | 0 | 0 | 0 | 0.005053 | 0.230261 | 2,571 | 73 | 128 | 35.219178 | 0.758969 | 0.064566 | 0 | 0.132075 | 0 | 0.018868 | 0.315285 | 0.011245 | 0 | 0 | 0 | 0 | 0 | 1 | 0.018868 | false | 0.037736 | 0.037736 | 0 | 0.056604 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
853bd8589a69bf83feb568fd0e023ea150961b83 | 11,382 | py | Python | src/data_scraping.py | othmanefc/ttfl_fantasy | 6b5d4316553a5d01114218fcfbe26588de499ead | [
"CC0-1.0"
] | null | null | null | src/data_scraping.py | othmanefc/ttfl_fantasy | 6b5d4316553a5d01114218fcfbe26588de499ead | [
"CC0-1.0"
] | 6 | 2020-01-28T23:09:28.000Z | 2022-02-10T00:28:14.000Z | src/data_scraping.py | othmanefc/ttfl_fantasy | 6b5d4316553a5d01114218fcfbe26588de499ead | [
"CC0-1.0"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
from typing import List, Dict, Any, Union, Optional, Callable, Sequence
from bs4 import BeautifulSoup, Comment, element
import pandas as pd
import re
from urllib.request import urlopen
import os
import datetime
from tqdm import tqdm as tqdm_notebook
import time
from src.c... | 41.540146 | 79 | 0.511949 | 1,283 | 11,382 | 4.381138 | 0.176929 | 0.029354 | 0.032023 | 0.027041 | 0.349582 | 0.273617 | 0.232877 | 0.178082 | 0.097136 | 0.097136 | 0 | 0.008689 | 0.352838 | 11,382 | 273 | 80 | 41.692308 | 0.754412 | 0.025391 | 0 | 0.160494 | 0 | 0.004115 | 0.092541 | 0.014702 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0 | 0.041152 | 0 | 0.123457 | 0.00823 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
853d84e2e9e82207867461c37d8d12080faf1569 | 766 | py | Python | src/DataGenerator.py | nikhil-garg/CartPoleSimulation | fd778327af5fe764248b68db53a456a77e903656 | [
"MIT"
] | null | null | null | src/DataGenerator.py | nikhil-garg/CartPoleSimulation | fd778327af5fe764248b68db53a456a77e903656 | [
"MIT"
] | null | null | null | src/DataGenerator.py | nikhil-garg/CartPoleSimulation | fd778327af5fe764248b68db53a456a77e903656 | [
"MIT"
] | null | null | null | from src.CartClass import *
from src.utilis import *
from src.utilis import *
from tqdm import tqdm
csv = 'data_rnn'
number_of_experiments = 10
length_of_experiment = 1e3
dt_main_simulation = dt_main_simulation_globals
track_relative_complexity = 0.5 # randomly placed points/s
track_complexity = int(dt_main_simulati... | 30.64 | 131 | 0.678851 | 97 | 766 | 5.061856 | 0.463918 | 0.04888 | 0.130346 | 0.077393 | 0.09776 | 0.09776 | 0 | 0 | 0 | 0 | 0 | 0.015901 | 0.261097 | 766 | 25 | 132 | 30.64 | 0.85159 | 0.082245 | 0 | 0.095238 | 0 | 0 | 0.011412 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.190476 | 0 | 0.190476 | 0.047619 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
854189ca67276f7eea81393038f259f4f1505403 | 4,970 | py | Python | trojsten/events/migrations/0001_initial.py | MvonK/web | b701a6ea8fb6f0bdfb720e66d0a430db13db8bff | [
"MIT"
] | 5 | 2018-04-22T22:44:02.000Z | 2021-04-26T20:44:44.000Z | trojsten/events/migrations/0001_initial.py | MvonK/web | b701a6ea8fb6f0bdfb720e66d0a430db13db8bff | [
"MIT"
] | 250 | 2018-04-24T12:04:11.000Z | 2022-03-09T06:56:47.000Z | trojsten/events/migrations/0001_initial.py | MvonK/web | b701a6ea8fb6f0bdfb720e66d0a430db13db8bff | [
"MIT"
] | 8 | 2019-04-28T11:33:03.000Z | 2022-02-26T13:30:36.000Z | # -*- coding: utf-8 -*-
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = []
operations = [
migrations.CreateModel(
name="Event",
fields=[
(
"id",
models.AutoField(
... | 37.368421 | 123 | 0.423742 | 370 | 4,970 | 5.521622 | 0.313514 | 0.161527 | 0.073421 | 0.067548 | 0.503182 | 0.45815 | 0.418013 | 0.399413 | 0.399413 | 0.399413 | 0 | 0.022148 | 0.45493 | 4,970 | 132 | 124 | 37.651515 | 0.732004 | 0.004225 | 0 | 0.574803 | 0 | 0.015748 | 0.175864 | 0.004245 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.007874 | 0 | 0.031496 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
85440bc2c3a337f01c193e1d5db700e9605da53f | 1,128 | py | Python | lion - white.py | Abdumajidhu/Image-Enhancement-therough-Image-Processing-Techniques | 126690319297a5ed7df99ff47797980cc525ecf3 | [
"MIT"
] | 1 | 2019-10-27T13:03:05.000Z | 2019-10-27T13:03:05.000Z | lion - white.py | Abdumajidhu/Image-Enhancement-therough-Image-Processing-Techniques | 126690319297a5ed7df99ff47797980cc525ecf3 | [
"MIT"
] | null | null | null | lion - white.py | Abdumajidhu/Image-Enhancement-therough-Image-Processing-Techniques | 126690319297a5ed7df99ff47797980cc525ecf3 | [
"MIT"
] | 1 | 2021-12-17T06:01:52.000Z | 2021-12-17T06:01:52.000Z | # import opencv
import numpy as np
import cv2
# Read image
src = cv2.imread("exercise_images/lion.jpg",0)
# Set threshold and maxValue
thresh = 25
thresh3 = 255
thresh4 = 205
thresh5 = 105
thresh2 = 155
maxValue = 255
# Basic threshold example
th, dst = cv2.threshold(src, thresh, maxValue, cv2.T... | 28.923077 | 70 | 0.711879 | 171 | 1,128 | 4.660819 | 0.333333 | 0.067754 | 0.094103 | 0.144291 | 0.368883 | 0.132999 | 0.097867 | 0.097867 | 0.097867 | 0 | 0 | 0.071875 | 0.148936 | 1,128 | 38 | 71 | 29.684211 | 0.758333 | 0.161348 | 0 | 0 | 0 | 0 | 0.137931 | 0.026696 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.08 | 0 | 0.08 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8545d557cf7ae6b6369e7d408bec5095c2c77b1b | 2,167 | py | Python | examples/mxnet/export.py | mitaki28/onnx-chainer | 845aa6c168d912ce044183c6dff6f21ce498d17c | [
"MIT"
] | null | null | null | examples/mxnet/export.py | mitaki28/onnx-chainer | 845aa6c168d912ce044183c6dff6f21ce498d17c | [
"MIT"
] | 1 | 2018-09-21T08:11:43.000Z | 2018-09-21T08:11:43.000Z | examples/mxnet/export.py | mitaki28/onnx-chainer | 845aa6c168d912ce044183c6dff6f21ce498d17c | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import collections
import numpy as np
import chainer
import chainer.functions as F
import chainercv.links as C
import mxnet
import onnx_chainer
def save_as_onnx_then_import_from_mxnet(model, fn):
# Prepare an input tensor
x = np.random.rand(1, 3, 224, 224).asty... | 28.893333 | 87 | 0.693124 | 320 | 2,167 | 4.484375 | 0.43125 | 0.027875 | 0.020906 | 0.029268 | 0.07108 | 0.07108 | 0.07108 | 0.07108 | 0 | 0 | 0 | 0.01687 | 0.206737 | 2,167 | 74 | 88 | 29.283784 | 0.817917 | 0.20766 | 0 | 0 | 0 | 0 | 0.036994 | 0 | 0 | 0 | 0 | 0 | 0.05 | 1 | 0.05 | false | 0 | 0.275 | 0 | 0.325 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8545f8abe40c339f00fc63341382c5d42092fb16 | 982 | py | Python | Otherfiles/notebook_check.py | lewiuberg/pycm | 50fe8f55e073d438fadd0e27cc02090cd8361501 | [
"MIT"
] | 1,266 | 2018-01-22T20:54:00.000Z | 2022-03-31T12:41:53.000Z | Otherfiles/notebook_check.py | lewiuberg/pycm | 50fe8f55e073d438fadd0e27cc02090cd8361501 | [
"MIT"
] | 375 | 2018-02-19T16:06:24.000Z | 2022-03-17T16:27:48.000Z | Otherfiles/notebook_check.py | lewiuberg/pycm | 50fe8f55e073d438fadd0e27cc02090cd8361501 | [
"MIT"
] | 110 | 2018-01-22T23:38:59.000Z | 2022-03-23T10:08:30.000Z | # -*- coding: utf-8 -*-
"""Notebook-check script."""
import os
import nbformat
from nbconvert.preprocessors import ExecutePreprocessor
from art import tprint
NOTEBOOKS_LIST = [
"Document",
"Example1",
"Example2",
"Example3",
"Example4",
"Example5",
"Example6",
"Example7",
"Example8"... | 28.882353 | 69 | 0.607943 | 109 | 982 | 5.366972 | 0.59633 | 0.020513 | 0.041026 | 0.071795 | 0.051282 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026212 | 0.223014 | 982 | 33 | 70 | 29.757576 | 0.740498 | 0.045825 | 0 | 0 | 0 | 0 | 0.201933 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0.178571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8546f1c8d609306bdae939b66f98fe07f0ef570a | 2,315 | py | Python | src/eventsHandler/on_message/moderation/mute/revoke_mute.py | gastbob40/discord_brawl_bot | 90ee7ef6492b5e4272a8baa42fd97f8369b07864 | [
"MIT"
] | null | null | null | src/eventsHandler/on_message/moderation/mute/revoke_mute.py | gastbob40/discord_brawl_bot | 90ee7ef6492b5e4272a8baa42fd97f8369b07864 | [
"MIT"
] | null | null | null | src/eventsHandler/on_message/moderation/mute/revoke_mute.py | gastbob40/discord_brawl_bot | 90ee7ef6492b5e4272a8baa42fd97f8369b07864 | [
"MIT"
] | null | null | null | from typing import List
import discord
import yaml
from src.models.models import Mute, session
from src.utils.embeds_manager import EmbedsManager
from src.utils.permissions_manager import PermissionsManager
async def revoke_mute(client: discord.Client, message: discord.Message, args: List[str]):
with open('run/c... | 30.866667 | 89 | 0.597408 | 267 | 2,315 | 5.086142 | 0.400749 | 0.064801 | 0.097938 | 0.118557 | 0.309278 | 0.309278 | 0.279087 | 0.244477 | 0.244477 | 0.16053 | 0 | 0.003729 | 0.304968 | 2,315 | 74 | 90 | 31.283784 | 0.839652 | 0.005184 | 0 | 0.216667 | 0 | 0 | 0.145589 | 0.019557 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
854863e9c50296993f6a388b3257fb1d9813ee80 | 1,398 | py | Python | QUANTAXIS_Test/QAAnalysis_Test/QASignal_hull_MA_Test.py | PenghuiCheng/QUANTAXIS | b8d81ed592d7008151dc0bbbd5d1030e8af73067 | [
"MIT"
] | 1 | 2020-01-31T05:23:21.000Z | 2020-01-31T05:23:21.000Z | QUANTAXIS_Test/QAAnalysis_Test/QASignal_hull_MA_Test.py | PenghuiCheng/QUANTAXIS | b8d81ed592d7008151dc0bbbd5d1030e8af73067 | [
"MIT"
] | null | null | null | QUANTAXIS_Test/QAAnalysis_Test/QASignal_hull_MA_Test.py | PenghuiCheng/QUANTAXIS | b8d81ed592d7008151dc0bbbd5d1030e8af73067 | [
"MIT"
] | null | null | null | import QUANTAXIS as QA
from numpy import *
from scipy.signal import savgol_filter
import numpy as np
import matplotlib.pyplot as plt
from QUANTAXIS.QAIndicator.talib_numpy import *
import mpl_finance as mpf
import matplotlib.dates as mdates
def smooth_demo():
data2 = QA.QA_fetch_crypto_asset_day_adv(['huobi'],
... | 33.285714 | 180 | 0.679542 | 222 | 1,398 | 4.148649 | 0.486486 | 0.039088 | 0.06949 | 0.058632 | 0.045603 | 0 | 0 | 0 | 0 | 0 | 0 | 0.073024 | 0.167382 | 1,398 | 41 | 181 | 34.097561 | 0.718213 | 0.045064 | 0 | 0 | 0 | 0 | 0.12003 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03125 | false | 0 | 0.25 | 0 | 0.28125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8548e030cb94201bb3f56fd501049ba22c2f09df | 1,626 | py | Python | Src/Server/handlers.py | HamishHamiltonSmith/TKNET-Remote-file-transfer | 2fc394281463482c5e6039cead9dc052cc09eb94 | [
"Apache-2.0"
] | 1 | 2021-12-04T16:57:19.000Z | 2021-12-04T16:57:19.000Z | Src/Server/handlers.py | HamishHamiltonSmith/TKNET-Remote-file-transfer | 2fc394281463482c5e6039cead9dc052cc09eb94 | [
"Apache-2.0"
] | null | null | null | Src/Server/handlers.py | HamishHamiltonSmith/TKNET-Remote-file-transfer | 2fc394281463482c5e6039cead9dc052cc09eb94 | [
"Apache-2.0"
] | null | null | null | import time
import os
from datetime import datetime
import breakpoint
def log(msg):
curr_date = datetime.now()
l = open('/usr/share/Tknet/Server/tknet.log','a')
l.write(f'\n[{curr_date}]: {msg}')
l.close()
def file_transfer_handle(c,x,d_name,address):
c.send('FILEMODE'.encode())
c.send(f'DIRAD... | 31.269231 | 80 | 0.590406 | 246 | 1,626 | 3.861789 | 0.292683 | 0.057895 | 0.037895 | 0.067368 | 0.492632 | 0.468421 | 0.313684 | 0.254737 | 0.254737 | 0.204211 | 0 | 0.01489 | 0.215252 | 1,626 | 52 | 81 | 31.269231 | 0.729624 | 0.01353 | 0 | 0.333333 | 0 | 0 | 0.365337 | 0.034289 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.088889 | 0 | 0.155556 | 0.022222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
85495a86fbc5eda9a5807aaf00f10f29d51d67f3 | 5,297 | py | Python | SequenceModel/seq_model.py | BhaveshJP25/RSNA | 48d85faf82651b1ae4fdcd829ce2d4978a858d3f | [
"MIT"
] | null | null | null | SequenceModel/seq_model.py | BhaveshJP25/RSNA | 48d85faf82651b1ae4fdcd829ce2d4978a858d3f | [
"MIT"
] | null | null | null | SequenceModel/seq_model.py | BhaveshJP25/RSNA | 48d85faf82651b1ae4fdcd829ce2d4978a858d3f | [
"MIT"
] | null | null | null | import torch
import torch.nn as nn
import torch.nn.functional as F
import torch.optim as optim
class SequenceModel(nn.Module):
def __init__(self, model_num, feature_dim, feature_num,
lstm_layers, hidden, drop_out, Add_position):
super(SequenceModel, self).__init__()
self.feature_n... | 47.720721 | 150 | 0.473853 | 627 | 5,297 | 3.827751 | 0.122807 | 0.014167 | 0.033333 | 0.0625 | 0.51875 | 0.455 | 0.39125 | 0.370417 | 0.33375 | 0.33375 | 0 | 0.061334 | 0.332075 | 5,297 | 111 | 151 | 47.720721 | 0.617015 | 0.01869 | 0 | 0.15 | 0 | 0 | 0.001667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025 | false | 0 | 0.05 | 0 | 0.1 | 0.0125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
854b394bb67bd9f05c7137d19f721026d26e8cfb | 1,107 | py | Python | eventrack/settings/prod.py | FedorSelitsky/eventrack | 54869ab0eaba56d266a3d9c0c56c601039905255 | [
"MIT"
] | 5 | 2017-12-14T09:04:42.000Z | 2018-06-01T20:09:02.000Z | eventrack/settings/prod.py | FedorSelitsky/eventrack | 54869ab0eaba56d266a3d9c0c56c601039905255 | [
"MIT"
] | 11 | 2017-11-08T10:35:08.000Z | 2018-10-11T19:37:36.000Z | eventrack/settings/prod.py | FedorSelitsky/eventrack | 54869ab0eaba56d266a3d9c0c56c601039905255 | [
"MIT"
] | null | null | null | import dj_database_url
from .base import * # NOQA
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = False
# SECURITY WARNING: keep the secret key used in production secret!
if 'CFG_SECRET_KEY' in os.environ:
SECRET_KEY = os.environ['CFG_SECRET_KEY']
if 'CFG_ALLOWED_HOSTS' in os.environ... | 27 | 94 | 0.750678 | 146 | 1,107 | 5.520548 | 0.410959 | 0.044665 | 0.081886 | 0.093052 | 0.182382 | 0.182382 | 0.08933 | 0 | 0 | 0 | 0 | 0 | 0.117435 | 1,107 | 40 | 95 | 27.675 | 0.824974 | 0.383921 | 0 | 0 | 0 | 0 | 0.338806 | 0.152239 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.117647 | 0 | 0.117647 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
854bf3a30cf643b88428f0e25a363a7a8a2a0940 | 6,708 | py | Python | pysparnn/cluster_selection.py | kchaliki/pysparnn | 426b9e660fdd8c32bb6af4a7f833fb34a3d070ef | [
"BSD-3-Clause"
] | null | null | null | pysparnn/cluster_selection.py | kchaliki/pysparnn | 426b9e660fdd8c32bb6af4a7f833fb34a3d070ef | [
"BSD-3-Clause"
] | null | null | null | pysparnn/cluster_selection.py | kchaliki/pysparnn | 426b9e660fdd8c32bb6af4a7f833fb34a3d070ef | [
"BSD-3-Clause"
] | null | null | null | import random as _random
import numpy as _np
import collections as _collections
from abc import ABC, abstractmethod
from sklearn.cluster import DBSCAN
def _k_best(tuple_list, k):
"""For a list of tuples [(distance, value), ...] - Get the k-best tuples by
distance.
Args:
tuple_list: List of tupl... | 42.726115 | 100 | 0.672481 | 875 | 6,708 | 4.948571 | 0.232 | 0.066744 | 0.032333 | 0.024942 | 0.591917 | 0.573672 | 0.573672 | 0.573672 | 0.549192 | 0.549192 | 0 | 0.012288 | 0.259988 | 6,708 | 156 | 101 | 43 | 0.859992 | 0.405933 | 0 | 0.560606 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00641 | 0 | 1 | 0.090909 | false | 0.015152 | 0.075758 | 0 | 0.257576 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
854cf8601e7b178c75e75d9ca11f1ae6300bc673 | 1,254 | py | Python | setup.py | wildthingz/pyAMD | 13f5691de9a7fc488859113bc934090857ac0f06 | [
"MIT"
] | null | null | null | setup.py | wildthingz/pyAMD | 13f5691de9a7fc488859113bc934090857ac0f06 | [
"MIT"
] | null | null | null | setup.py | wildthingz/pyAMD | 13f5691de9a7fc488859113bc934090857ac0f06 | [
"MIT"
] | null | null | null | from os import path
from setuptools import setup, find_packages
here = path.abspath(path.dirname(__file__))
with open(path.join(here, 'README.md')) as f:
long_description = f.read()
setup(name = 'pyAMD',
version = '0.1.0',
description = 'A tool to find the optimal mesh density for visualising macrosegregation -- ... | 35.828571 | 121 | 0.674641 | 142 | 1,254 | 5.894366 | 0.661972 | 0.0908 | 0.119474 | 0.062127 | 0.064516 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01173 | 0.184211 | 1,254 | 34 | 122 | 36.882353 | 0.806452 | 0 | 0 | 0 | 0 | 0 | 0.590112 | 0.047049 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.066667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
854d5eaf6ade4462203d501132678e102772680e | 2,407 | py | Python | nablapps/blog/models.py | pettaroni/nablaweb | 5e610698a276884b9cd779a718dfdee641713636 | [
"MIT"
] | null | null | null | nablapps/blog/models.py | pettaroni/nablaweb | 5e610698a276884b9cd779a718dfdee641713636 | [
"MIT"
] | null | null | null | nablapps/blog/models.py | pettaroni/nablaweb | 5e610698a276884b9cd779a718dfdee641713636 | [
"MIT"
] | null | null | null | """
Models for blog app
"""
from datetime import date
from django.db import models
from django.urls import reverse
from django.utils.text import slugify
from nablapps.core.models import TimeStamped
class Blog(models.Model):
"""
Represents a blog which can have multiple blog entries/posts.
"""
name = ... | 23.598039 | 87 | 0.605318 | 281 | 2,407 | 5.046263 | 0.3879 | 0.077574 | 0.025388 | 0.03385 | 0.293371 | 0.293371 | 0.293371 | 0.187588 | 0.132581 | 0.132581 | 0 | 0.006981 | 0.285833 | 2,407 | 101 | 88 | 23.831683 | 0.817917 | 0.102617 | 0 | 0.295775 | 0 | 0 | 0.095216 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.084507 | false | 0 | 0.070423 | 0.028169 | 0.408451 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
854e2f2fb882ebf0df9421c2942719fbe330679b | 1,654 | py | Python | Bhaskara.py | RafaelaBF/Bhaskara | 027b5b91cbc632fd82a0c6f7904d3cef026bdc85 | [
"MIT"
] | null | null | null | Bhaskara.py | RafaelaBF/Bhaskara | 027b5b91cbc632fd82a0c6f7904d3cef026bdc85 | [
"MIT"
] | null | null | null | Bhaskara.py | RafaelaBF/Bhaskara | 027b5b91cbc632fd82a0c6f7904d3cef026bdc85 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
@author: Rafaela BF
Faça um programa que resolva Bhaskara por meio de uma equação completa do segundo grau.
"""
eq = input("Entre com a equação: ")
aux =[""]*3
i = eq.find("²", 0)
aux[0] = eq[0:(i+1)]
j = eq.find("x", i)
aux[1] = eq[(i+1):(j+1)]
aux[2] = eq[(j+1):len(eq)]
i = 0
j = 0
#... | 17.784946 | 87 | 0.479444 | 307 | 1,654 | 2.583062 | 0.214984 | 0.110971 | 0.031526 | 0.030265 | 0.274905 | 0.274905 | 0.239596 | 0.239596 | 0.221942 | 0.221942 | 0 | 0.087059 | 0.229141 | 1,654 | 93 | 88 | 17.784946 | 0.534902 | 0.116082 | 0 | 0.333333 | 0 | 0.055556 | 0.254319 | 0.042847 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
854e8ce73be0938ffa4976e6cdc514a985349435 | 2,107 | py | Python | 01_demo/weight_decay_test.py | wwww666/Tensorflow2.0 | 4df3a3784482bb8db7943ffb402b5822d5111ab9 | [
"Apache-2.0"
] | 2 | 2020-04-24T10:20:18.000Z | 2021-02-25T03:53:07.000Z | 01_demo/weight_decay_test.py | wwww666/Tensorflow2.0 | 4df3a3784482bb8db7943ffb402b5822d5111ab9 | [
"Apache-2.0"
] | null | null | null | 01_demo/weight_decay_test.py | wwww666/Tensorflow2.0 | 4df3a3784482bb8db7943ffb402b5822d5111ab9 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# @Time : 2020/4/20 11:46
# @Author : wwwzk
# @FileName: weight_decay_test.py
'''
L2范数正则化权重衰减
'''
import tensorflow as tf
from tensorflow.keras import layers,optimizers,models,initializers
import numpy as np
import matplotlib.pyplot as plt
import tensorflow.keras as ks
from liner... | 32.921875 | 117 | 0.656858 | 329 | 2,107 | 4.012158 | 0.346505 | 0.010606 | 0.031818 | 0.034091 | 0.093939 | 0.069697 | 0.040909 | 0 | 0 | 0 | 0 | 0.031915 | 0.196963 | 2,107 | 63 | 118 | 33.444444 | 0.748227 | 0.076412 | 0 | 0 | 0 | 0 | 0.017167 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.166667 | 0.02381 | 0.285714 | 0.02381 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8550fe05eaac9342db606a4bddf7afe6170d5e33 | 3,835 | py | Python | bittensor/dataloaders/dataloader.py | parall4x/bittensor | abacb0b0f1b078d3103f516aff1328f049f9dc34 | [
"MIT"
] | null | null | null | bittensor/dataloaders/dataloader.py | parall4x/bittensor | abacb0b0f1b078d3103f516aff1328f049f9dc34 | [
"MIT"
] | null | null | null | bittensor/dataloaders/dataloader.py | parall4x/bittensor | abacb0b0f1b078d3103f516aff1328f049f9dc34 | [
"MIT"
] | null | null | null | import argparse
import bittensor
import requests
import random
from munch import Munch
from requests.adapters import HTTPAdapter
from requests.packages.urllib3.util.retry import Retry
class BittensorDataLoader():
def __init__(self):
# IPFS hash of the genesis dataset
# TODO (shibshib): Find a pr... | 35.183486 | 144 | 0.629726 | 441 | 3,835 | 5.369615 | 0.401361 | 0.008446 | 0.010135 | 0.014358 | 0.021959 | 0.021959 | 0.021959 | 0 | 0 | 0 | 0 | 0.016937 | 0.291786 | 3,835 | 109 | 145 | 35.183486 | 0.854934 | 0.329074 | 0 | 0.116667 | 0 | 0 | 0.123254 | 0.040263 | 0 | 0 | 0 | 0.009174 | 0 | 1 | 0.133333 | false | 0.05 | 0.116667 | 0 | 0.316667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
85535f7564894f7aff285a016fb2d947fb9c1a70 | 3,300 | py | Python | pyinspect/__init__.py | dhruvmanila/pyinspect | ce90df243e5e5ee100f13de4329c111454b8c891 | [
"MIT"
] | 87 | 2020-09-30T10:18:26.000Z | 2022-03-10T08:56:04.000Z | pyinspect/__init__.py | dhruvmanila/pyinspect | ce90df243e5e5ee100f13de4329c111454b8c891 | [
"MIT"
] | 16 | 2020-09-30T10:57:17.000Z | 2022-01-16T02:10:45.000Z | pyinspect/__init__.py | dhruvmanila/pyinspect | ce90df243e5e5ee100f13de4329c111454b8c891 | [
"MIT"
] | 5 | 2020-11-20T07:39:26.000Z | 2022-01-13T04:54:51.000Z | # nopycln: file
from pyinspect.exceptions import install_traceback
from pyinspect.show import showme, what
from pyinspect.find import search
from pyinspect.answers import get_answers, ask
from pyinspect.panels import ok, warn, error, message, Report, NestedPanel
from pyinspect._rich import console
from pyinspect.classe... | 28.695652 | 177 | 0.655758 | 416 | 3,300 | 5.048077 | 0.430288 | 0.055714 | 0.016667 | 0.028571 | 0.039048 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00349 | 0.218485 | 3,300 | 114 | 178 | 28.947368 | 0.810779 | 0.043636 | 0 | 0.047619 | 0 | 0.047619 | 0.410845 | 0.033812 | 0 | 0 | 0 | 0 | 0 | 1 | 0.011905 | false | 0 | 0.130952 | 0 | 0.142857 | 0.035714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8555997972d2b27f982f14b4c869a0e8df897de6 | 2,714 | py | Python | mycnn/data/voc_segment.py | jacky10001/tf2-mycnn | 6a631ee71b2a91fc4e6e7a43f8f9179260a1d7fa | [
"MIT"
] | null | null | null | mycnn/data/voc_segment.py | jacky10001/tf2-mycnn | 6a631ee71b2a91fc4e6e7a43f8f9179260a1d7fa | [
"MIT"
] | 20 | 2022-01-24T15:28:48.000Z | 2022-02-13T14:56:25.000Z | mycnn/data/voc_segment.py | jacky10001/tf2-mycnn | 6a631ee71b2a91fc4e6e7a43f8f9179260a1d7fa | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import os
import numpy as np
from skimage import io
import matplotlib.pyplot as plt
from PIL import Image
def make_voc_segment_dataset(voc_directory: str, save_directory: str):
flag = False
## Set some directory
JPEGImages_dir = os.path.join(voc_directory, "JPEGImages")
Segmen... | 39.333333 | 109 | 0.657701 | 369 | 2,714 | 4.631436 | 0.276423 | 0.077238 | 0.081919 | 0.052662 | 0.293739 | 0.217086 | 0.068461 | 0.068461 | 0.068461 | 0.068461 | 0 | 0.004787 | 0.230287 | 2,714 | 69 | 110 | 39.333333 | 0.813308 | 0.02874 | 0 | 0.075472 | 0 | 0 | 0.111153 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.018868 | false | 0 | 0.09434 | 0 | 0.113208 | 0.09434 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
855b4e01e5b934e421e4c9ebea7a438fae9617b9 | 1,187 | py | Python | python/eks-simple-fargate/eks_simple_fargate/eks_simple_fargate_stack.py | kloia/aws-cdk-samples | 69cb2bb45aab23e08d19d5ace24915893fe92360 | [
"MIT"
] | null | null | null | python/eks-simple-fargate/eks_simple_fargate/eks_simple_fargate_stack.py | kloia/aws-cdk-samples | 69cb2bb45aab23e08d19d5ace24915893fe92360 | [
"MIT"
] | null | null | null | python/eks-simple-fargate/eks_simple_fargate/eks_simple_fargate_stack.py | kloia/aws-cdk-samples | 69cb2bb45aab23e08d19d5ace24915893fe92360 | [
"MIT"
] | null | null | null | from aws_cdk import core, aws_eks
from .eks_base import EKSBase
from .alb_ingress import ALBIngressController
class EksSimpleFargateStack(core.Stack):
def __init__(self, scope: core.Construct, construct_id: str,
eks_version=aws_eks.KubernetesVersion.V1_19, cluster_name=None,
capacity_details='small', ... | 39.566667 | 94 | 0.705139 | 135 | 1,187 | 5.851852 | 0.362963 | 0.063291 | 0.035443 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003209 | 0.2123 | 1,187 | 29 | 95 | 40.931034 | 0.841711 | 0.035383 | 0 | 0 | 0 | 0 | 0.077865 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.136364 | 0 | 0.227273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
855ca1ff8948c123a855f128a9073dceff93dd69 | 8,196 | py | Python | g2client/g2disp.py | naojsoft/g2client | e49d0f3cacccdb569897f17d37c8c2e8f01c66cb | [
"BSD-3-Clause"
] | null | null | null | g2client/g2disp.py | naojsoft/g2client | e49d0f3cacccdb569897f17d37c8c2e8f01c66cb | [
"BSD-3-Clause"
] | null | null | null | g2client/g2disp.py | naojsoft/g2client | e49d0f3cacccdb569897f17d37c8c2e8f01c66cb | [
"BSD-3-Clause"
] | null | null | null | #
# Gen2 observation workstation client -- command line version
#
"""
Gen2 observation workstation client -- command line version
"""
import sys, time, os
import threading
import binascii
from g2base import ssdlog, myproc
from g2base.remoteObjects import remoteObjects as ro
from g2base.remoteObjects import Monitor
fr... | 34.15 | 86 | 0.556857 | 875 | 8,196 | 5.12 | 0.276571 | 0.037946 | 0.030357 | 0.011607 | 0.198214 | 0.121875 | 0.097321 | 0.075 | 0.065179 | 0.052232 | 0 | 0.006447 | 0.337604 | 8,196 | 239 | 87 | 34.292887 | 0.818751 | 0.09651 | 0 | 0.186747 | 0 | 0 | 0.126018 | 0 | 0 | 0 | 0 | 0.004184 | 0 | 1 | 0.084337 | false | 0.048193 | 0.042169 | 0.006024 | 0.180723 | 0.012048 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
855e126f49dc147682a8ddcf7d8b3444b2c3acd5 | 8,575 | py | Python | src/pyte_prism/__init__.py | fkshom/pyte-prism | 00e464b5f23f205d2913bc776f97cc248006c559 | [
"MIT"
] | null | null | null | src/pyte_prism/__init__.py | fkshom/pyte-prism | 00e464b5f23f205d2913bc776f97cc248006c559 | [
"MIT"
] | 1 | 2020-12-07T16:18:16.000Z | 2020-12-07T16:18:16.000Z | src/pyte_prism/__init__.py | fkshom/pyte-prism | 00e464b5f23f205d2913bc776f97cc248006c559 | [
"MIT"
] | 1 | 2021-06-21T05:00:15.000Z | 2021-06-21T05:00:15.000Z | import time
import re
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.common.exceptions import TimeoutException, NoSuchElementException
from uritemplate impor... | 32.116105 | 107 | 0.694927 | 1,161 | 8,575 | 4.849268 | 0.126615 | 0.035524 | 0.017584 | 0.02238 | 0.630728 | 0.594316 | 0.536057 | 0.508171 | 0.480284 | 0.450444 | 0 | 0.002476 | 0.1993 | 8,575 | 266 | 108 | 32.236842 | 0.817507 | 0.014577 | 0 | 0.497758 | 0 | 0 | 0.083935 | 0.014443 | 0 | 0 | 0 | 0 | 0.004484 | 1 | 0.183857 | false | 0.004484 | 0.040359 | 0.017937 | 0.439462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
855ea6f04c921ad42df72e3376925fdd9e5314d7 | 2,432 | py | Python | scripts/update_camera_info.py | mikelgarciafonseca/lidar_camera_calibration | 529dc69abd0faed293b9ca2238b7c6b25c66cb9e | [
"BSD-3-Clause"
] | 291 | 2019-04-08T15:02:09.000Z | 2022-03-29T07:43:53.000Z | scripts/update_camera_info.py | CXT-666/lidar_camera_calibration | 688397c500967a42b2aca82d6c11393dd73aaa9c | [
"BSD-3-Clause"
] | 45 | 2019-08-22T10:15:10.000Z | 2022-03-23T05:11:36.000Z | scripts/update_camera_info.py | CXT-666/lidar_camera_calibration | 688397c500967a42b2aca82d6c11393dd73aaa9c | [
"BSD-3-Clause"
] | 77 | 2019-04-17T05:25:11.000Z | 2022-03-20T04:39:13.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
Author : Heethesh Vhavle
Email : heethesh@cmu.edu
Version : 1.0.1
Date : Jan 18, 2019
Description:
Script to update the camera calibration data into the ROSBAG file
Ensure that this file has executable permissions
Example Usage:
$ rosrun lidar_camera_calibratio... | 26.725275 | 83 | 0.675576 | 326 | 2,432 | 4.861963 | 0.404908 | 0.050473 | 0.035962 | 0.026498 | 0.040379 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008943 | 0.218339 | 2,432 | 90 | 84 | 27.022222 | 0.824829 | 0.287829 | 0 | 0 | 0 | 0 | 0.13493 | 0.043224 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022727 | false | 0 | 0.159091 | 0 | 0.204545 | 0.022727 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
855efe602850a47790a27ec939c0a1e729cd7710 | 733 | py | Python | lim/random/glmm.py | glimix/glimix | 22c9b94732918bce31f64cb33ce368ea85ead478 | [
"MIT"
] | 2 | 2016-12-16T14:14:59.000Z | 2017-01-31T16:50:08.000Z | lim/random/glmm.py | glimix/glimix | 22c9b94732918bce31f64cb33ce368ea85ead478 | [
"MIT"
] | null | null | null | lim/random/glmm.py | glimix/glimix | 22c9b94732918bce31f64cb33ce368ea85ead478 | [
"MIT"
] | 2 | 2017-02-13T14:34:37.000Z | 2017-02-15T14:27:32.000Z | from __future__ import division
from numpy.random import RandomState
from numpy_sugar.linalg import sum2diag
from numpy_sugar import epsilon
from numpy_sugar.random import multivariate_normal
class GLMMSampler(object):
def __init__(self, lik, mean, cov):
self._lik = lik
self._mean = mean
... | 27.148148 | 51 | 0.667121 | 97 | 733 | 4.793814 | 0.360825 | 0.11828 | 0.090323 | 0.090323 | 0.107527 | 0.107527 | 0 | 0 | 0 | 0 | 0 | 0.005357 | 0.236016 | 733 | 26 | 52 | 28.192308 | 0.825 | 0 | 0 | 0 | 0 | 0 | 0.016371 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0.263158 | 0 | 0.473684 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
855fc87a5ce5bd24bab6ab108fbb29dc4e299ceb | 607 | py | Python | dags/simple_dag_backfill.py | rodrigoarenas456/airflow-course | 8ffda59b8ac4cfa18b4cd614bc0f75ee18324b28 | [
"MIT"
] | null | null | null | dags/simple_dag_backfill.py | rodrigoarenas456/airflow-course | 8ffda59b8ac4cfa18b4cd614bc0f75ee18324b28 | [
"MIT"
] | 8 | 2021-09-08T21:24:25.000Z | 2022-03-29T22:28:47.000Z | dags/simple_dag_backfill.py | rodrigoarenas456/airflow-course | 8ffda59b8ac4cfa18b4cd614bc0f75ee18324b28 | [
"MIT"
] | 1 | 2021-09-06T12:18:39.000Z | 2021-09-06T12:18:39.000Z | import datetime as dt
from airflow import DAG
from airflow.operators.bash_operator import BashOperator
"""
if catchup=False, then it will not run for past dates that didn't got executed
"""
default_args = {
'owner': 'airflow',
'start_date': dt.datetime(2020, 7, 1),
'concurrency': 1,
'retries': 0
}
w... | 26.391304 | 78 | 0.691928 | 84 | 607 | 4.809524 | 0.595238 | 0.081683 | 0.089109 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016129 | 0.182867 | 607 | 22 | 79 | 27.590909 | 0.798387 | 0 | 0 | 0 | 0 | 0 | 0.18618 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
856089efc2c334ffeab6724cf280b643ff6f434c | 1,706 | py | Python | google/home/graph/v1/home-graph-v1-py/google/home/graph_v1/types/__init__.py | googleapis/googleapis-gen | d84824c78563d59b0e58d5664bfaa430e9ad7e7a | [
"Apache-2.0"
] | 7 | 2021-02-21T10:39:41.000Z | 2021-12-07T07:31:28.000Z | google/home/graph/v1/home-graph-v1-py/google/home/graph_v1/types/__init__.py | googleapis/googleapis-gen | d84824c78563d59b0e58d5664bfaa430e9ad7e7a | [
"Apache-2.0"
] | 6 | 2021-02-02T23:46:11.000Z | 2021-11-15T01:46:02.000Z | google/home/graph/v1/home-graph-v1-py/google/home/graph_v1/types/__init__.py | googleapis/googleapis-gen | d84824c78563d59b0e58d5664bfaa430e9ad7e7a | [
"Apache-2.0"
] | 4 | 2021-01-28T23:25:45.000Z | 2021-08-30T01:55:16.000Z | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | 27.079365 | 74 | 0.732708 | 140 | 1,706 | 8.9 | 0.642857 | 0.048154 | 0.020867 | 0.025682 | 0.537721 | 0.537721 | 0.537721 | 0.537721 | 0.537721 | 0.537721 | 0 | 0.006494 | 0.187573 | 1,706 | 62 | 75 | 27.516129 | 0.892496 | 0.333529 | 0 | 0 | 0 | 0 | 0.338983 | 0.17752 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.043478 | 0 | 0.043478 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8560b0e4b09c5f913481d0494af7a7cde6e95874 | 2,348 | py | Python | states/sense_profile_state.py | rbenamotz/LEMPA | eab84e2494aac0d1461582c7f83405cb4ab7c16e | [
"MIT"
] | 83 | 2020-08-11T21:03:21.000Z | 2022-02-27T17:52:31.000Z | states/sense_profile_state.py | rbenamotz/LEMPA | eab84e2494aac0d1461582c7f83405cb4ab7c16e | [
"MIT"
] | 7 | 2020-09-06T17:10:04.000Z | 2021-05-25T11:53:18.000Z | states/sense_profile_state.py | rbenamotz/LEMPA | eab84e2494aac0d1461582c7f83405cb4ab7c16e | [
"MIT"
] | 6 | 2020-09-05T23:42:01.000Z | 2021-06-21T04:09:03.000Z | import sys
import time
import RPi.GPIO as GPIO
from application import Application, COMMAND_LINE_PARAM_PROFILE_ID
from profiles import profile_by_id, profile_by_jumper
from . import State
from hardware import PINS_PROFILES
class SensingProfileState(State):
def __load_profile__(self, profile_id, first=True):
... | 34.529412 | 81 | 0.579216 | 296 | 2,348 | 4.331081 | 0.280405 | 0.076443 | 0.040562 | 0.053822 | 0.069423 | 0.049922 | 0.049922 | 0 | 0 | 0 | 0 | 0.006285 | 0.322402 | 2,348 | 67 | 82 | 35.044776 | 0.799497 | 0 | 0 | 0.066667 | 0 | 0 | 0.074106 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.116667 | 0 | 0.333333 | 0.016667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8561517142c3b7bdb23c921efcc982af0f356670 | 2,741 | py | Python | handlers/registration.py | StGrail/AlleyCat-bot | 3681627138e088bef2eea6867eb0b9a11d183e38 | [
"MIT"
] | null | null | null | handlers/registration.py | StGrail/AlleyCat-bot | 3681627138e088bef2eea6867eb0b9a11d183e38 | [
"MIT"
] | 1 | 2021-03-16T17:39:14.000Z | 2021-03-17T07:31:26.000Z | handlers/registration.py | StGrail/AlleyCat-bot | 3681627138e088bef2eea6867eb0b9a11d183e38 | [
"MIT"
] | null | null | null | from aiogram.dispatcher import FSMContext
from aiogram.types import CallbackQuery
from FSM.Registation_states import Registration_form
from constants.text_messages import RULES, START_INFO
from keyboards.inline_kb import bicycle_type, gender, apply_registration, check_reg_answer
from utils.loader import dp, db
# наж... | 37.040541 | 94 | 0.747537 | 384 | 2,741 | 5.153646 | 0.315104 | 0.050025 | 0.045478 | 0.0667 | 0.398686 | 0.350682 | 0.2476 | 0.15715 | 0.15715 | 0.15715 | 0 | 0.002586 | 0.153594 | 2,741 | 73 | 95 | 37.547945 | 0.849569 | 0.082087 | 0 | 0.188679 | 0 | 0 | 0.117225 | 0.010766 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.113208 | 0 | 0.113208 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
856482c3cbf03c7b7af2b44e3422a0b6758b9099 | 3,446 | py | Python | python/grouped_iterator.py | kadepettie/mike_tools | 467698a835c04383d97c18055cb200ea6cdbc9b0 | [
"Unlicense"
] | 2 | 2016-01-14T02:04:37.000Z | 2018-03-16T09:38:10.000Z | python/grouped_iterator.py | kadepettie/mike_tools | 467698a835c04383d97c18055cb200ea6cdbc9b0 | [
"Unlicense"
] | null | null | null | python/grouped_iterator.py | kadepettie/mike_tools | 467698a835c04383d97c18055cb200ea6cdbc9b0 | [
"Unlicense"
] | 1 | 2018-07-20T20:31:39.000Z | 2018-07-20T20:31:39.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Iterate through a pre-sorted text file and return lines as a group.
============================================================================
AUTHOR: Michael D Dacre, mike.dacre@gmail.com
ORGANIZATION: Stanford University
LICENSE: MIT License, prop... | 34.46 | 79 | 0.53047 | 402 | 3,446 | 4.542289 | 0.375622 | 0.032859 | 0.011501 | 0.024096 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017033 | 0.352583 | 3,446 | 99 | 80 | 34.808081 | 0.801434 | 0.412652 | 0 | 0.224138 | 0 | 0 | 0.046956 | 0 | 0 | 0 | 0 | 0 | 0.017241 | 1 | 0.034483 | false | 0 | 0.051724 | 0 | 0.172414 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8565f946b86cb9e0c19ac6a1ce1fc8a3f4778e60 | 3,772 | py | Python | announcer/email_decorators/ticket.py | dokipen/trac-announcer-plugin | 7ef4123a7508c5395c8008fa2a8478b1888b4f63 | [
"BSD-3-Clause"
] | null | null | null | announcer/email_decorators/ticket.py | dokipen/trac-announcer-plugin | 7ef4123a7508c5395c8008fa2a8478b1888b4f63 | [
"BSD-3-Clause"
] | 1 | 2018-06-11T14:48:06.000Z | 2018-06-11T14:48:06.000Z | announcer/email_decorators/ticket.py | dokipen/trac-announcer-plugin | 7ef4123a7508c5395c8008fa2a8478b1888b4f63 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
#
# Copyright (c) 2009, Robert Corsaro
#
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright
# ... | 44.376471 | 79 | 0.661188 | 434 | 3,772 | 5.693548 | 0.440092 | 0.024282 | 0.029138 | 0.018616 | 0.15945 | 0.140024 | 0.107649 | 0.107649 | 0.107649 | 0.107649 | 0 | 0.001739 | 0.23754 | 3,772 | 84 | 80 | 44.904762 | 0.857441 | 0.429215 | 0 | 0.2 | 0 | 0 | 0.125956 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.15 | 0 | 0.325 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8566ce5f7a94d07cf4e8e35937a2d2bccb26654d | 5,155 | py | Python | ccwt_client/strategy/multi_symbols.py | nigelliyang/ccwt_client | 4efb8f2c790145b5f547e350d24413bb8b1bd9ed | [
"Apache-2.0"
] | null | null | null | ccwt_client/strategy/multi_symbols.py | nigelliyang/ccwt_client | 4efb8f2c790145b5f547e350d24413bb8b1bd9ed | [
"Apache-2.0"
] | null | null | null | ccwt_client/strategy/multi_symbols.py | nigelliyang/ccwt_client | 4efb8f2c790145b5f547e350d24413bb8b1bd9ed | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from pyalgotrade import strategy
from pyalgotrade import plotter
from pyalgotrade.broker.backtesting import Broker
from pyalgotrade.broker.backtesting import TradePercentage
from pyalgotrade.broker.slippage import VolumeShareSlippage
from pyalgotrade.bar import Frequency
... | 40.273438 | 135 | 0.644811 | 511 | 5,155 | 6.424658 | 0.356164 | 0.041121 | 0.021931 | 0.031678 | 0.146817 | 0.073713 | 0.073713 | 0.050564 | 0.050564 | 0.050564 | 0 | 0.013074 | 0.243259 | 5,155 | 128 | 136 | 40.273438 | 0.828506 | 0.102813 | 0 | 0.126761 | 0 | 0 | 0.099046 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.056338 | false | 0 | 0.140845 | 0.014085 | 0.267606 | 0.028169 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8569aa3b086b166d6250ee9399cc1fd457cec787 | 470 | py | Python | sme_material_apps/utils/html_to_pdf_response.py | luizhpriotto/piloto_apresentacao | c968025db819633ee4cd75df5357ab6a4ab7d9af | [
"MIT"
] | null | null | null | sme_material_apps/utils/html_to_pdf_response.py | luizhpriotto/piloto_apresentacao | c968025db819633ee4cd75df5357ab6a4ab7d9af | [
"MIT"
] | null | null | null | sme_material_apps/utils/html_to_pdf_response.py | luizhpriotto/piloto_apresentacao | c968025db819633ee4cd75df5357ab6a4ab7d9af | [
"MIT"
] | 1 | 2020-02-01T12:10:42.000Z | 2020-02-01T12:10:42.000Z | from django.http import HttpResponse
from django_weasyprint.utils import django_url_fetcher
from weasyprint import HTML
def html_to_pdf_response(html_string, pdf_filename):
pdf_file = HTML(
string=html_string,
url_fetcher=django_url_fetcher,
base_url='file://abobrinha').write_pdf()
res... | 33.571429 | 69 | 0.755319 | 60 | 470 | 5.616667 | 0.433333 | 0.089021 | 0.094955 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153191 | 470 | 13 | 70 | 36.153846 | 0.846734 | 0 | 0 | 0 | 0 | 0 | 0.159574 | 0.053191 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.272727 | 0 | 0.454545 | 0.181818 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
856b70394ea2a27e4b33e3b939eda069451e5cfe | 2,149 | py | Python | elektronn3/data/transforms/random.py | riegerfr/elektronn3 | a1fab65914d8975e6d869a5711a84d4553935bd5 | [
"MIT"
] | 124 | 2017-12-11T03:38:43.000Z | 2022-03-25T03:10:32.000Z | elektronn3/data/transforms/random.py | riegerfr/elektronn3 | a1fab65914d8975e6d869a5711a84d4553935bd5 | [
"MIT"
] | 34 | 2018-03-27T17:11:28.000Z | 2020-07-19T20:52:14.000Z | elektronn3/data/transforms/random.py | riegerfr/elektronn3 | a1fab65914d8975e6d869a5711a84d4553935bd5 | [
"MIT"
] | 28 | 2018-04-16T04:11:54.000Z | 2022-03-25T03:23:30.000Z | """Random number generators for random augmentation parametrization"""
from typing import Optional, Tuple
import numpy as np
import scipy.stats
class RandomSampler:
"""Samples random variables from a ``scipy.stats`` distribution."""
def __init__(
self,
rv: scipy.stats.rv_continuous,
... | 29.438356 | 79 | 0.580735 | 251 | 2,149 | 4.836653 | 0.374502 | 0.049423 | 0.036244 | 0.046952 | 0.257825 | 0.257825 | 0.257825 | 0.233937 | 0.233937 | 0.196046 | 0 | 0.006588 | 0.293625 | 2,149 | 72 | 80 | 29.847222 | 0.793149 | 0.239646 | 0 | 0.479167 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.104167 | false | 0 | 0.0625 | 0 | 0.270833 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
856d5f7ffc3bcce6913018e4ef646a6e008b5e19 | 831 | py | Python | client_server_socket/server_socket.py | KiwiShow/PythonWeb | a489bc2ab16f06f7cc4524bab6b45b2653bfb1bd | [
"MIT"
] | 7 | 2018-02-24T13:41:21.000Z | 2022-02-06T04:59:13.000Z | client_server_socket/server_socket.py | KiwiShow/PythonWeb | a489bc2ab16f06f7cc4524bab6b45b2653bfb1bd | [
"MIT"
] | 6 | 2018-02-25T11:50:42.000Z | 2021-12-13T19:55:13.000Z | client_server_socket/server_socket.py | KiwiShow/PythonWeb | a489bc2ab16f06f7cc4524bab6b45b2653bfb1bd | [
"MIT"
] | 1 | 2018-03-01T02:43:15.000Z | 2018-03-01T02:43:15.000Z | import socket
# 1. create socket
# 2. bind
# 3. listen
# 4. accept
# 5. recv
# 6. send
# 7. close -> 3
# 运行这个程序后, 浏览器打开 localhost:2000 就能访问了
# 一般浏览器默认2个连接GET / HTTP/1.1 和 GET /favicon.ico HTTP/1.1
s = socket.socket()
host = ''
port = 2000
s.bind((host, port))
while True:
s.listen(5)
print('before accept')
... | 21.307692 | 89 | 0.610108 | 124 | 831 | 4.08871 | 0.580645 | 0.029586 | 0.035503 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.061905 | 0.241877 | 831 | 38 | 90 | 21.868421 | 0.742857 | 0.262335 | 0 | 0.095238 | 0 | 0.047619 | 0.209651 | 0.044925 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.047619 | 0 | 0.047619 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
856dd362c9beb3c3c6cbb93ff094ed39d0df4ed7 | 8,515 | py | Python | metalsmith/_nics.py | openstack/metalsmith | 880d9e47d3fe3f8d6cb83311b0fde3173f92beb4 | [
"Apache-2.0"
] | 8 | 2018-06-27T11:19:31.000Z | 2020-06-17T08:05:11.000Z | metalsmith/_nics.py | openstack/metalsmith | 880d9e47d3fe3f8d6cb83311b0fde3173f92beb4 | [
"Apache-2.0"
] | null | null | null | metalsmith/_nics.py | openstack/metalsmith | 880d9e47d3fe3f8d6cb83311b0fde3173f92beb4 | [
"Apache-2.0"
] | null | null | null | # Copyright 2018 Red Hat, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,... | 39.239631 | 79 | 0.570053 | 1,001 | 8,515 | 4.703297 | 0.190809 | 0.015293 | 0.042481 | 0.01593 | 0.423959 | 0.368309 | 0.347494 | 0.300127 | 0.265293 | 0.228972 | 0 | 0.003777 | 0.316031 | 8,515 | 216 | 80 | 39.421296 | 0.804602 | 0.215737 | 0 | 0.248175 | 0 | 0 | 0.153716 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058394 | false | 0 | 0.036496 | 0 | 0.131387 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
85740ce3a03beaf2eb89116783a5b5dcaacc3a51 | 2,753 | py | Python | customforms/blocks.py | SquarehostLtd/django-wagtail-customforms | a317fc421faae6fb1f9155bf03eb2930523c46d2 | [
"BSD-3-Clause"
] | 1 | 2018-02-28T09:06:39.000Z | 2018-02-28T09:06:39.000Z | customforms/blocks.py | SquarehostLtd/django-wagtail-customforms | a317fc421faae6fb1f9155bf03eb2930523c46d2 | [
"BSD-3-Clause"
] | 1 | 2020-11-03T10:50:51.000Z | 2020-11-03T10:50:51.000Z | customforms/blocks.py | SquarehostLtd/django-wagtail-customforms | a317fc421faae6fb1f9155bf03eb2930523c46d2 | [
"BSD-3-Clause"
] | 1 | 2020-01-22T23:05:50.000Z | 2020-01-22T23:05:50.000Z | from django.contrib import messages
from django.http import HttpResponseRedirect
from django.utils.functional import cached_property
from django.utils.html import format_html
from django.utils.safestring import mark_safe
from django.template.loader import render_to_string
from wagtail.core.blocks import ChooserBlock
... | 37.202703 | 115 | 0.674174 | 337 | 2,753 | 5.376855 | 0.329377 | 0.033113 | 0.024834 | 0.02649 | 0.148455 | 0.076159 | 0.04415 | 0.04415 | 0.04415 | 0 | 0 | 0 | 0.243008 | 2,753 | 73 | 116 | 37.712329 | 0.869482 | 0.112968 | 0 | 0.134615 | 0 | 0 | 0.075385 | 0.011662 | 0 | 0 | 0 | 0 | 0 | 1 | 0.096154 | false | 0 | 0.173077 | 0.038462 | 0.442308 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
857606e28a85102079da6fd107aaf732413bd215 | 2,286 | py | Python | views/index/students.py | woyanh/bysj-master | d2ba7fbba7145b04e05ad3e7e14fa70018a6ce4c | [
"MIT"
] | null | null | null | views/index/students.py | woyanh/bysj-master | d2ba7fbba7145b04e05ad3e7e14fa70018a6ce4c | [
"MIT"
] | null | null | null | views/index/students.py | woyanh/bysj-master | d2ba7fbba7145b04e05ad3e7e14fa70018a6ce4c | [
"MIT"
] | null | null | null | from flask import Blueprint,render_template,flash,redirect,url_for,send_from_directory,current_app
from flask_login import current_user
from models import Student,Course
from forms.students import UploadAvatarForm,CropAvatarForm
from extensions import avatars,db
from utils import flash_errors
index_stu_bp... | 33.617647 | 99 | 0.682415 | 308 | 2,286 | 4.818182 | 0.266234 | 0.053908 | 0.053908 | 0.070755 | 0.342318 | 0.206199 | 0.206199 | 0.206199 | 0.206199 | 0.061995 | 0 | 0.001623 | 0.191601 | 2,286 | 67 | 100 | 34.119403 | 0.801407 | 0.020122 | 0 | 0.185185 | 0 | 0 | 0.116076 | 0.020728 | 0 | 0 | 0 | 0 | 0 | 1 | 0.12963 | false | 0 | 0.111111 | 0.055556 | 0.37037 | 0.037037 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |