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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e6266840cb7ce270f6afeec9709e2ac1a2d1d286 | 1,426 | py | Python | scripts/sequence/replace_selenocystein.py | mahajrod/MAVR | 4db74dff7376a2ffe4426db720b241de9198f329 | [
"MIT"
] | 10 | 2015-04-28T14:15:04.000Z | 2021-03-15T00:07:38.000Z | scripts/sequence/replace_selenocystein.py | mahajrod/MAVR | 4db74dff7376a2ffe4426db720b241de9198f329 | [
"MIT"
] | null | null | null | scripts/sequence/replace_selenocystein.py | mahajrod/MAVR | 4db74dff7376a2ffe4426db720b241de9198f329 | [
"MIT"
] | 6 | 2017-03-16T22:38:41.000Z | 2021-08-11T00:22:52.000Z | #!/usr/bin/env python
__author__ = 'Sergei F. Kliver'
import argparse
import os
from copy import deepcopy
from Bio import SeqIO
from Bio.Seq import Seq
parser = argparse.ArgumentParser()
parser.add_argument("-i", "--input_file", action="store", dest="input_file",
help="Input file with sequences... | 33.952381 | 125 | 0.691445 | 196 | 1,426 | 4.795918 | 0.377551 | 0.076596 | 0.07234 | 0.065957 | 0.13617 | 0.13617 | 0 | 0 | 0 | 0 | 0 | 0 | 0.173212 | 1,426 | 41 | 126 | 34.780488 | 0.797286 | 0.014025 | 0 | 0 | 0 | 0 | 0.228245 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0 | 0.185185 | 0 | 0.222222 | 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 |
e626e6e7f40b567d4b7615f9b578110b40aa795b | 438 | py | Python | Aulas Gustavo Guanabara/Aula018.1.py | RobertoRanulfo/Phyton | d7ba1aaffac2f3d78e46fc96b480b6a62d6dfe01 | [
"MIT"
] | null | null | null | Aulas Gustavo Guanabara/Aula018.1.py | RobertoRanulfo/Phyton | d7ba1aaffac2f3d78e46fc96b480b6a62d6dfe01 | [
"MIT"
] | null | null | null | Aulas Gustavo Guanabara/Aula018.1.py | RobertoRanulfo/Phyton | d7ba1aaffac2f3d78e46fc96b480b6a62d6dfe01 | [
"MIT"
] | null | null | null | teste = list()
teste.append('Gustavo')
teste.append(40)
galera = []
galera.append(teste) #neste caso estamos criando uma ligação entre as duas listas
teste[0] = 'Maria'
teste[1] = 22
galera.append(teste)
print(teste)
print(galera) # No caso os elementos não se acumularam porque não foi feita uma cópia dos elementos da ... | 39.818182 | 112 | 0.730594 | 72 | 438 | 4.444444 | 0.694444 | 0.06875 | 0.10625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01676 | 0.182648 | 438 | 11 | 112 | 39.818182 | 0.877095 | 0.568493 | 0 | 0.2 | 0 | 0 | 0.064171 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e628182131b1688593a8c2682f0d77aa16ecd697 | 1,287 | py | Python | camcommander/watcher.py | tparker-usgs/camcommander | 0e508a1b24cc99496745652e52118000470d7e32 | [
"CC0-1.0"
] | null | null | null | camcommander/watcher.py | tparker-usgs/camcommander | 0e508a1b24cc99496745652e52118000470d7e32 | [
"CC0-1.0"
] | null | null | null | camcommander/watcher.py | tparker-usgs/camcommander | 0e508a1b24cc99496745652e52118000470d7e32 | [
"CC0-1.0"
] | null | null | null | #!/usr/bin/env python3
#
# I waive copyright and related rights in the this work worldwide
# through the CC0 1.0 Universal public domain dedication.
# https://creativecommons.org/publicdomain/zero/1.0/legalcode
#
# Author(s):
# Tom Parker <tparker@usgs.gov>
""" watch for new webcam images."""
import zmq
import to... | 26.8125 | 79 | 0.655012 | 164 | 1,287 | 5.054878 | 0.554878 | 0.062726 | 0.068758 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006012 | 0.224553 | 1,287 | 47 | 80 | 27.382979 | 0.824649 | 0.212121 | 0 | 0.076923 | 0 | 0 | 0.113 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0.038462 | 0.076923 | 0 | 0.346154 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e629f1eb273463da4f3c8be6f4e44ca1b639ae9f | 1,866 | py | Python | Filter/kalman_filter.py | KNakane/filter | 43ece9771003b63b477499dab2eb8d69e5bfdabe | [
"MIT"
] | null | null | null | Filter/kalman_filter.py | KNakane/filter | 43ece9771003b63b477499dab2eb8d69e5bfdabe | [
"MIT"
] | null | null | null | Filter/kalman_filter.py | KNakane/filter | 43ece9771003b63b477499dab2eb8d69e5bfdabe | [
"MIT"
] | null | null | null | import numpy as np
import matplotlib.pyplot as plt
from tqdm import tqdm
class KalmanFilter():
def __init__(self, data, dim=1):
self.data = data.values
self.timelength = len(self.data)
# 潜在変数
self.x = np.zeros((self.timelength+1, dim))
self.x_filter = np.zeros((self.timelen... | 33.927273 | 113 | 0.559486 | 293 | 1,866 | 3.491468 | 0.259386 | 0.02737 | 0.064516 | 0.086022 | 0.408602 | 0.343109 | 0.27175 | 0.043011 | 0 | 0 | 0 | 0.030325 | 0.275456 | 1,866 | 54 | 114 | 34.555556 | 0.726331 | 0.096999 | 0 | 0.058824 | 0 | 0 | 0.024492 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.088235 | false | 0 | 0.088235 | 0 | 0.264706 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
e62b0481e9ee04d621f3915eddb5dfd2397e270a | 4,394 | py | Python | mwarp1d/ui/figures/artists/draggable_points.py | 0todd0000/mwarp1d | 7b40a47e6c112a8da5a1b67aff890fc77fe83d71 | [
"MIT"
] | null | null | null | mwarp1d/ui/figures/artists/draggable_points.py | 0todd0000/mwarp1d | 7b40a47e6c112a8da5a1b67aff890fc77fe83d71 | [
"MIT"
] | 6 | 2019-11-25T08:15:05.000Z | 2020-02-07T13:05:59.000Z | mwarp1d/ui/figures/artists/draggable_points.py | 0todd0000/mwarp1d | 7b40a47e6c112a8da5a1b67aff890fc77fe83d71 | [
"MIT"
] | 2 | 2019-11-28T02:58:14.000Z | 2019-12-18T11:45:33.000Z |
from PyQt5 import QtWidgets, QtCore
from math import floor
import numpy as np
from . _base import _SelectableArtist2D
class _DraggablePoints(_SelectableArtist2D):
dragged = QtCore.pyqtSignal(object, int, int, float)
dragging_stopped = QtCore.pyqtSignal()
point_added = QtCore.pyqtSigna... | 24.824859 | 134 | 0.649067 | 671 | 4,394 | 4.081967 | 0.178838 | 0.029208 | 0.023366 | 0.028478 | 0.263235 | 0.224535 | 0.173421 | 0.138372 | 0.125228 | 0.115371 | 0 | 0.021108 | 0.223714 | 4,394 | 176 | 135 | 24.965909 | 0.781882 | 0.030269 | 0 | 0.191667 | 0 | 0 | 0.010353 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.033333 | 0.033333 | 0.441667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
e62bee983944925691e81c42d718cf0680c6b087 | 7,370 | py | Python | convert/tartan_air_to_benchmark.py | AaltoML/vio_benchmark | cb2277026f824f88f3bc131057ebc687cb19d648 | [
"Apache-2.0"
] | 32 | 2021-04-23T15:07:04.000Z | 2022-03-30T08:04:28.000Z | convert/tartan_air_to_benchmark.py | AaltoML/vio_benchmark | cb2277026f824f88f3bc131057ebc687cb19d648 | [
"Apache-2.0"
] | 3 | 2021-02-10T18:54:06.000Z | 2022-03-12T16:58:19.000Z | convert/tartan_air_to_benchmark.py | AaltoML/vio_benchmark | cb2277026f824f88f3bc131057ebc687cb19d648 | [
"Apache-2.0"
] | 4 | 2021-02-08T11:11:09.000Z | 2022-03-15T12:45:05.000Z | #!/usr/bin/env python
#
# Download and convert TartanAir data <https://theairlab.org/tartanair-dataset/>.
#
# NOTE The whole dataset is several terabytes, so be sure to tune the `LEVELS` and
# `DATASETS` variables before running.
#
# It is recommended to install "AzCopy", an official tool for Azure, to get tolerable
# ... | 31.767241 | 142 | 0.53867 | 874 | 7,370 | 4.5 | 0.37643 | 0.008645 | 0.007628 | 0.006102 | 0.128909 | 0.116196 | 0.067379 | 0.06687 | 0.006102 | 0 | 0 | 0.023571 | 0.309227 | 7,370 | 231 | 143 | 31.904762 | 0.748969 | 0.183039 | 0 | 0.091429 | 0 | 0 | 0.178935 | 0.019529 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0 | 0.045714 | 0.005714 | 0.097143 | 0.011429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
e630f7f1230425fb80852a1c185d9c2e86b9dabb | 4,985 | py | Python | midas2/common/bowtie2.py | czbiohub/microbiome-igg | fd4bc62bee15e53587a947ca32bf3c5b9e8022e6 | [
"MIT"
] | null | null | null | midas2/common/bowtie2.py | czbiohub/microbiome-igg | fd4bc62bee15e53587a947ca32bf3c5b9e8022e6 | [
"MIT"
] | 6 | 2022-03-14T19:37:52.000Z | 2022-03-14T19:51:47.000Z | midas2/common/bowtie2.py | czbiohub/microbiome-igg | fd4bc62bee15e53587a947ca32bf3c5b9e8022e6 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import os
import numpy as np
from midas2.common.utils import tsprint, command, split, OutputStream
def bowtie2_index_exists(bt2_db_dir, bt2_db_name):
bt2_db_suffixes = ["1.bt2", "2.bt2", "3.bt2", "4.bt2", "rev.1.bt2", "rev.2.bt2"]
if all(os.path.exists(f"{bt2_db_dir}/{bt2_db_name}.{ext}... | 38.643411 | 154 | 0.649549 | 760 | 4,985 | 4.030263 | 0.217105 | 0.07509 | 0.047013 | 0.053869 | 0.307868 | 0.265426 | 0.237023 | 0.179563 | 0.166503 | 0.109696 | 0 | 0.029184 | 0.22327 | 4,985 | 128 | 155 | 38.945313 | 0.76188 | 0.082648 | 0 | 0.282609 | 0 | 0.021739 | 0.324752 | 0.080088 | 0 | 0 | 0 | 0 | 0 | 1 | 0.065217 | false | 0 | 0.032609 | 0 | 0.23913 | 0.119565 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
e6314fc5be266fa2fd430fad718dac793df709ff | 3,541 | py | Python | src/race/src/my_lane_detection/findpoint.py | young43/ISCC_2020 | 2a7187410bceca901bd87b753a91fd35b73ca036 | [
"MIT"
] | 3 | 2020-11-13T04:59:27.000Z | 2021-04-02T06:36:03.000Z | src/race/src/my_lane_detection/findpoint.py | yongbeomkwak/ISCC_2021 | 7e7e5a8a14b9ed88e1cfbe2ee585fe24e4701015 | [
"MIT"
] | null | null | null | src/race/src/my_lane_detection/findpoint.py | yongbeomkwak/ISCC_2021 | 7e7e5a8a14b9ed88e1cfbe2ee585fe24e4701015 | [
"MIT"
] | 5 | 2020-09-13T09:06:16.000Z | 2021-06-19T02:31:23.000Z | import numpy as np
import cv2
class FindPoint:
def __init__(self,img):
self.window_height = 10
self.nwindows = 15
self.margin = 20
self.minpix = 70
self.center = img.shape[1]/2
def findpoint(self, img):
out_img = np.dstack((img, img, img))
h, w = img.sha... | 40.238636 | 119 | 0.475572 | 465 | 3,541 | 3.335484 | 0.148387 | 0.045132 | 0.054159 | 0.069633 | 0.702772 | 0.598324 | 0.578981 | 0.509349 | 0.509349 | 0.469375 | 0 | 0.076526 | 0.398475 | 3,541 | 87 | 120 | 40.701149 | 0.651643 | 0.022592 | 0 | 0.444444 | 0 | 0 | 0.001447 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027778 | false | 0 | 0.027778 | 0 | 0.083333 | 0.013889 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
e6315a99e2517f5c7110b8dd1b8d7574b184b340 | 6,198 | py | Python | backend/ibutsu_server/tasks/db.py | john-dupuy/ibutsu-server | ae380fc7a72a4898075291bac8fdb86952bfd06a | [
"MIT"
] | null | null | null | backend/ibutsu_server/tasks/db.py | john-dupuy/ibutsu-server | ae380fc7a72a4898075291bac8fdb86952bfd06a | [
"MIT"
] | null | null | null | backend/ibutsu_server/tasks/db.py | john-dupuy/ibutsu-server | ae380fc7a72a4898075291bac8fdb86952bfd06a | [
"MIT"
] | null | null | null | import time
from datetime import datetime
from datetime import timedelta
from bson import ObjectId
from bson.errors import InvalidId
from dynaconf import settings
from ibutsu_server.mongo import mongo
from ibutsu_server.tasks.queues import task
from ibutsu_server.tasks.results import add_result_start_time
from ibutsu_... | 35.016949 | 99 | 0.62262 | 805 | 6,198 | 4.637267 | 0.21118 | 0.019287 | 0.012858 | 0.013394 | 0.361907 | 0.325475 | 0.302706 | 0.290383 | 0.266274 | 0.230378 | 0 | 0.007606 | 0.2788 | 6,198 | 176 | 100 | 35.215909 | 0.827517 | 0.203453 | 0 | 0.385246 | 0 | 0 | 0.085001 | 0.016092 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057377 | false | 0.04918 | 0.122951 | 0 | 0.229508 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
e6338656305747e7dd588f6558bdad231c542786 | 830 | py | Python | Estudos/namedtuple.py | Gbrvi/Python | 02f0125c990f06ccb5cd705b4bf6ec5ecb6d1eab | [
"MIT"
] | null | null | null | Estudos/namedtuple.py | Gbrvi/Python | 02f0125c990f06ccb5cd705b4bf6ec5ecb6d1eab | [
"MIT"
] | null | null | null | Estudos/namedtuple.py | Gbrvi/Python | 02f0125c990f06ccb5cd705b4bf6ec5ecb6d1eab | [
"MIT"
] | null | null | null | from collections import namedtuple
# É tipo um dicionario, é mais lento, mas é imutável!
#Jogador é a classe | #Atributos da classe
J = namedtuple('Jogador', ['nome', 'time', 'camisa', 'numero'])
j = J('Abel Hernadez', 'Flu', 99, 100) #Adicionando valores
j2 = J('Fred', 'Fluminense', 9, 157) ... | 31.923077 | 91 | 0.591566 | 110 | 830 | 4.454545 | 0.663636 | 0.016327 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025335 | 0.191566 | 830 | 26 | 92 | 31.923077 | 0.704918 | 0.477108 | 0 | 0 | 0 | 0 | 0.239402 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.1 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e6342f9f6fc2f8be229cda6971a2b29ca77c7c7c | 1,330 | py | Python | src/decker/format/command.py | douglasfarinelli/pydev | 9d43d485b102e5b44ee28894278ae496c3cec024 | [
"MIT"
] | 21 | 2020-12-11T17:59:50.000Z | 2022-03-12T02:22:09.000Z | src/decker/format/command.py | douglasfarinelli/decker | 9d43d485b102e5b44ee28894278ae496c3cec024 | [
"MIT"
] | null | null | null | src/decker/format/command.py | douglasfarinelli/decker | 9d43d485b102e5b44ee28894278ae496c3cec024 | [
"MIT"
] | 2 | 2021-07-31T00:05:25.000Z | 2021-11-04T12:09:26.000Z | import sys
from typing import List
import click
from decker.conf import Config
from decker.utils import print_done
from .pool import FormatterBackendPool
from .services import run_format
@click.option(
'-b',
'--backend',
type=click.Choice([backend.id for backend in FormatterBackendPool.all()]),
mul... | 19 | 80 | 0.635338 | 162 | 1,330 | 5.12963 | 0.506173 | 0.048135 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003972 | 0.242857 | 1,330 | 69 | 81 | 19.275362 | 0.821251 | 0.016541 | 0 | 0.051724 | 0 | 0 | 0.140867 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.017241 | false | 0.017241 | 0.12069 | 0 | 0.137931 | 0.034483 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e63506be46724ae2661303db422a81cac16e9cfd | 709 | py | Python | seeds.py | hazzillrodriguez/Flaskdesk | 16123f4d63c686a3332f3f91eda9bb3a8e2a3ed5 | [
"MIT"
] | null | null | null | seeds.py | hazzillrodriguez/Flaskdesk | 16123f4d63c686a3332f3f91eda9bb3a8e2a3ed5 | [
"MIT"
] | null | null | null | seeds.py | hazzillrodriguez/Flaskdesk | 16123f4d63c686a3332f3f91eda9bb3a8e2a3ed5 | [
"MIT"
] | null | null | null | from app import app, db
from app.models import Category, Priority, Status
from sqlalchemy.exc import SQLAlchemyError
category = 'Uncategorized'
priorities = ['Low', 'Medium', 'High', 'Urgent']
statuses = ['Open', 'Resolved', 'Pending', 'Closed']
def db_commit():
try:
db.session.commit()
print('Category, prioriti... | 28.36 | 63 | 0.734838 | 90 | 709 | 5.755556 | 0.488889 | 0.086873 | 0.069498 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.132581 | 709 | 25 | 64 | 28.36 | 0.842276 | 0 | 0 | 0.090909 | 0 | 0 | 0.153521 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.136364 | 0 | 0.272727 | 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 |
e63871f321b5d3bb45b965cb63b221c456ac757e | 2,527 | py | Python | eval/plot.py | yhlleo/TriangleGAN | 5bab76561e75145c2645a93e23d22abd3f66f329 | [
"BSD-3-Clause"
] | 32 | 2019-07-15T11:11:57.000Z | 2022-01-09T11:03:00.000Z | eval/plot.py | yhlleo/TriangleGAN | 5bab76561e75145c2645a93e23d22abd3f66f329 | [
"BSD-3-Clause"
] | null | null | null | eval/plot.py | yhlleo/TriangleGAN | 5bab76561e75145c2645a93e23d22abd3f66f329 | [
"BSD-3-Clause"
] | 4 | 2019-07-17T09:00:14.000Z | 2021-11-16T21:20:25.000Z | # plot prd scores
import os
import json
from matplotlib import pyplot as plt
import argparse
parser = argparse.ArgumentParser()
parser.add_argument("json_files", nargs="*")
parser.add_argument("--output_fig", type=str, default='prd.png')
args = parser.parse_args()
def load_jsons(file_paths):
scores, labels = [], []... | 37.716418 | 79 | 0.693708 | 385 | 2,527 | 4.402597 | 0.358442 | 0.097345 | 0.106195 | 0.040118 | 0.128024 | 0.037758 | 0 | 0 | 0 | 0 | 0 | 0.013386 | 0.20182 | 2,527 | 67 | 80 | 37.716418 | 0.826971 | 0.324891 | 0 | 0 | 0 | 0 | 0.107057 | 0.013158 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.095238 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e63ab07fc8212736ff3ef91cca7ad9e31b8c2243 | 2,218 | py | Python | data_output.py | adebraine/Time-Series-RNN | 2e5ef0a222d84e15ed09141724fa437492c1466e | [
"MIT"
] | null | null | null | data_output.py | adebraine/Time-Series-RNN | 2e5ef0a222d84e15ed09141724fa437492c1466e | [
"MIT"
] | null | null | null | data_output.py | adebraine/Time-Series-RNN | 2e5ef0a222d84e15ed09141724fa437492c1466e | [
"MIT"
] | null | null | null | import numpy as np
import matplotlib.pyplot as plt
import keras
def evaluate_model(model, split_sets):
training_error = model.evaluate(split_sets['X_train'], split_sets['y_train'], verbose=0)
print('training error = ' + str(training_error))
testing_error = model.evaluate(split_sets['X_test'], split_sets[... | 35.206349 | 92 | 0.595131 | 274 | 2,218 | 4.671533 | 0.248175 | 0.070313 | 0.0625 | 0.078125 | 0.691406 | 0.691406 | 0.633594 | 0.633594 | 0.538281 | 0.538281 | 0 | 0.009877 | 0.269612 | 2,218 | 62 | 93 | 35.774194 | 0.780247 | 0.098287 | 0 | 0.512821 | 0 | 0 | 0.126131 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.051282 | false | 0 | 0.076923 | 0 | 0.128205 | 0.051282 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e63b0d4192a6f56afdb4ff053aeafe21f3a6cf89 | 1,837 | py | Python | vector_auto_regression.py | hotpxl/nebuchadnezzar | b26e0f19b9fdfeb8baa094e0f5ee2526cefb6409 | [
"MIT"
] | 2 | 2015-05-20T18:02:40.000Z | 2016-08-07T18:57:27.000Z | vector_auto_regression.py | hotpxl/nebuchadnezzar | b26e0f19b9fdfeb8baa094e0f5ee2526cefb6409 | [
"MIT"
] | null | null | null | vector_auto_regression.py | hotpxl/nebuchadnezzar | b26e0f19b9fdfeb8baa094e0f5ee2526cefb6409 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3.4
import stats.data
import stats.plot
import stats.preprocess
import pandas
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.dates
import datetime
from statsmodels.tsa.api import VAR, DynamicVAR
sse_indices = stats.data.sse_indices()
for i in sse_indices:
d = stats.data.g... | 37.489796 | 132 | 0.625476 | 253 | 1,837 | 4.462451 | 0.438735 | 0.044287 | 0.03543 | 0.044287 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014503 | 0.211758 | 1,837 | 48 | 133 | 38.270833 | 0.765193 | 0.140991 | 0 | 0 | 0 | 0 | 0.054777 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.243243 | 0 | 0.243243 | 0.027027 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
e63cd901a3e8b73ecbb160ecf9c349073434a2bf | 2,086 | py | Python | ArticleClassifierTF/src/data_models/weights/theme_weights.py | joduss/ArticleClassifier | 38c0e168cdd74214b7f591c7cfc7b93fc496e46b | [
"Unlicense"
] | null | null | null | ArticleClassifierTF/src/data_models/weights/theme_weights.py | joduss/ArticleClassifier | 38c0e168cdd74214b7f591c7cfc7b93fc496e46b | [
"Unlicense"
] | null | null | null | ArticleClassifierTF/src/data_models/weights/theme_weights.py | joduss/ArticleClassifier | 38c0e168cdd74214b7f591c7cfc7b93fc496e46b | [
"Unlicense"
] | null | null | null | from typing import Dict, List
from classifier.preprocessing.article_theme_tokenizer import ArticleThemeTokenizer
from data_models.ThemeStat import ThemeStat
class ThemeWeights:
theme_stats: List[ThemeStat]
theme_tokenizer: ArticleThemeTokenizer
def __init__(self, theme_stats: List[ThemeStat], theme_tok... | 32.59375 | 93 | 0.650527 | 264 | 2,086 | 4.912879 | 0.242424 | 0.069391 | 0.053971 | 0.037008 | 0.311488 | 0.277564 | 0.277564 | 0.188126 | 0.188126 | 0.188126 | 0 | 0.01025 | 0.251678 | 2,086 | 64 | 94 | 32.59375 | 0.820628 | 0.109779 | 0 | 0.121212 | 0 | 0 | 0.027192 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.121212 | false | 0 | 0.090909 | 0 | 0.393939 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
e63cf8d084bbaa33179f664b68770d2a61c1830b | 2,688 | py | Python | installation_text.py | bryanrtboy/videoselector | 6867c14ebb3f9ac563a2aa5533806ec4872a53e9 | [
"MIT"
] | 1 | 2017-12-10T12:42:09.000Z | 2017-12-10T12:42:09.000Z | installation_text.py | bryanrtboy/videoselector | 6867c14ebb3f9ac563a2aa5533806ec4872a53e9 | [
"MIT"
] | null | null | null | installation_text.py | bryanrtboy/videoselector | 6867c14ebb3f9ac563a2aa5533806ec4872a53e9 | [
"MIT"
] | null | null | null | #!/usr/bin/python
from pssh import SSHClient, ParallelSSHClient, utils
import datetime
import time
import random
import sys
output = []
hosts = ['client0', 'client1', 'client2','client3', 'client4']
client = ParallelSSHClient(hosts)
values = ["bear","cake","fork","pipe","gun"]
def open_movies(my_values, delay):
c... | 29.217391 | 111 | 0.679315 | 394 | 2,688 | 4.525381 | 0.393401 | 0.028043 | 0.042625 | 0.033651 | 0.171621 | 0.040381 | 0.040381 | 0.040381 | 0 | 0 | 0 | 0.008178 | 0.181176 | 2,688 | 91 | 112 | 29.538462 | 0.801908 | 0.124256 | 0 | 0.188406 | 0 | 0.014493 | 0.247656 | 0.04902 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057971 | false | 0 | 0.072464 | 0 | 0.144928 | 0.130435 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
e63d83d29b28004d4dc6e59ec720b1e34cdc3bc7 | 3,744 | py | Python | poi/cache.py | jchluo/poi | 6892d3e219ee2b841053a41d308887a5e6b60017 | [
"Apache-2.0"
] | 10 | 2016-01-11T09:24:38.000Z | 2021-07-20T06:40:15.000Z | poi/cache.py | jchluo/poi | 6892d3e219ee2b841053a41d308887a5e6b60017 | [
"Apache-2.0"
] | 1 | 2018-04-10T04:48:18.000Z | 2018-04-10T04:48:18.000Z | poi/cache.py | jchluo/poi | 6892d3e219ee2b841053a41d308887a5e6b60017 | [
"Apache-2.0"
] | 8 | 2016-01-11T09:24:56.000Z | 2020-04-23T08:25:53.000Z | # -*- coding: utf-8 -*-
"""Cache Recommender.
dump : run topN predict item for each user, and
dump them to file like object(disk file or memory).
load : recover from file like object, return CacheRecommender.
Note that this recommender just a tiny version of the original one,
which can... | 27.328467 | 75 | 0.576656 | 501 | 3,744 | 4.175649 | 0.311377 | 0.01912 | 0.020076 | 0.015296 | 0.068834 | 0.068834 | 0.043021 | 0.043021 | 0 | 0 | 0 | 0.013248 | 0.294338 | 3,744 | 136 | 76 | 27.529412 | 0.778577 | 0.344017 | 0 | 0.060606 | 0 | 0 | 0.075288 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.106061 | false | 0 | 0.090909 | 0.030303 | 0.287879 | 0.030303 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
e63da7efdb0e189e1a9e15a53af922678e7b6e0e | 2,335 | py | Python | p2p/protocol.py | teotoplak/trinity | 6c67b5debfb94f74d0162c70f92ae3d13918b174 | [
"MIT"
] | null | null | null | p2p/protocol.py | teotoplak/trinity | 6c67b5debfb94f74d0162c70f92ae3d13918b174 | [
"MIT"
] | null | null | null | p2p/protocol.py | teotoplak/trinity | 6c67b5debfb94f74d0162c70f92ae3d13918b174 | [
"MIT"
] | null | null | null | import logging
from typing import (
Any,
Sequence,
Tuple,
Type,
)
from eth_utils.toolz import accumulate
from p2p.abc import (
CommandAPI,
ProtocolAPI,
TransportAPI,
)
from p2p.constants import P2P_PROTOCOL_COMMAND_LENGTH
from p2p.typing import Capability
class BaseProtocol(ProtocolAPI):... | 31.986301 | 93 | 0.677088 | 289 | 2,335 | 5.207612 | 0.304498 | 0.083721 | 0.043189 | 0.047841 | 0.075083 | 0.037209 | 0.037209 | 0 | 0 | 0 | 0 | 0.00564 | 0.240685 | 2,335 | 72 | 94 | 32.430556 | 0.843204 | 0.151606 | 0 | 0.037736 | 0 | 0 | 0.014849 | 0.010753 | 0 | 0 | 0 | 0 | 0 | 1 | 0.132075 | false | 0 | 0.113208 | 0.075472 | 0.377358 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
e63f1e8cde7eb9bc19101fd61c76b84d56a931e5 | 6,314 | py | Python | soocii_services_lib/tokens.py | jonascheng/services-lib | 5345be2ddeab8bbdbeccbc2bcbecf3202163d0bc | [
"Apache-2.0"
] | null | null | null | soocii_services_lib/tokens.py | jonascheng/services-lib | 5345be2ddeab8bbdbeccbc2bcbecf3202163d0bc | [
"Apache-2.0"
] | 5 | 2017-11-23T08:24:09.000Z | 2018-12-25T04:42:48.000Z | soocii_services_lib/tokens.py | jonascheng/services-lib | 5345be2ddeab8bbdbeccbc2bcbecf3202163d0bc | [
"Apache-2.0"
] | 3 | 2017-06-28T07:54:40.000Z | 2018-12-25T04:44:42.000Z | import binascii
import json
import time
import jsonschema
from .crypter import AESCipher
from .exceptions import AccessTokenValidationError, RefreshTokenValidationError, TokenExpiredError, TokenSchemaError
class BaseToken(dict):
_schema = {}
def is_valid(self, age=None, raise_exception=False):
try... | 28.062222 | 116 | 0.464365 | 531 | 6,314 | 5.354049 | 0.246704 | 0.028139 | 0.035174 | 0.025325 | 0.125572 | 0.125572 | 0.079142 | 0.044319 | 0 | 0 | 0 | 0.005472 | 0.421128 | 6,314 | 224 | 117 | 28.1875 | 0.772367 | 0.02835 | 0 | 0.20904 | 0 | 0 | 0.119763 | 0.007229 | 0 | 0 | 0 | 0 | 0 | 1 | 0.067797 | false | 0 | 0.033898 | 0.016949 | 0.282486 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
e648ade42231ae7382e8ffb8232ee7fd02bab1ce | 6,060 | py | Python | software/camera-imu/tools/imu_driver_alt.py | MomsFriendlyRobotCompany/mjolnir | 76f53e8e650ba1051b5f14e94ff2a9a283158da4 | [
"MIT"
] | 1 | 2020-08-17T04:36:14.000Z | 2020-08-17T04:36:14.000Z | software/camera-imu/tools/imu_driver_alt.py | MomsFriendlyRobotCompany/mjolnir | 76f53e8e650ba1051b5f14e94ff2a9a283158da4 | [
"MIT"
] | null | null | null | software/camera-imu/tools/imu_driver_alt.py | MomsFriendlyRobotCompany/mjolnir | 76f53e8e650ba1051b5f14e94ff2a9a283158da4 | [
"MIT"
] | 1 | 2021-04-06T08:26:03.000Z | 2021-04-06T08:26:03.000Z |
from serial import Serial
import struct
from math import log10, sin, cos, acos, atan2, asin, pi, sqrt
import time
from collections import namedtuple
from colorama import Fore
# agmpt_t = namedtuple("agmpt_t", "accel gyro mag pressure temperature timestamp")
# ImageIMU = namedtuple("ImageIMU","image accel gyro tempera... | 25.897436 | 87 | 0.518317 | 724 | 6,060 | 4.308011 | 0.290055 | 0.019237 | 0.034626 | 0.028855 | 0.126643 | 0.110292 | 0.073421 | 0.030779 | 0 | 0 | 0 | 0.039786 | 0.35297 | 6,060 | 233 | 88 | 26.008584 | 0.755675 | 0.179703 | 0 | 0.184932 | 0 | 0 | 0.067708 | 0.010208 | 0 | 0 | 0.005 | 0 | 0 | 1 | 0.082192 | false | 0 | 0.041096 | 0.020548 | 0.39726 | 0.041096 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
e64b61756e2c5141a88d05ce00a52ea06f0af2cf | 1,718 | py | Python | main.py | hwangseonu/pokeka | 39e56c59dfc85a0c73232ac9105766ef060aa90e | [
"MIT"
] | 1 | 2021-06-01T05:26:48.000Z | 2021-06-01T05:26:48.000Z | main.py | hwangseonu/pokeka | 39e56c59dfc85a0c73232ac9105766ef060aa90e | [
"MIT"
] | null | null | null | main.py | hwangseonu/pokeka | 39e56c59dfc85a0c73232ac9105766ef060aa90e | [
"MIT"
] | null | null | null | import base64
import svgwrite
import svgwrite.container
import svgwrite.shapes
import svgwrite.image
import bs4
import os
from urllib.request import urlopen
from selenium import webdriver
index = 0
code = input('덱 코드를 입력하세요.> ')
os.mkdir(code)
url = 'https://pokemoncard.co.kr/recipe/search?code=' + code
driver = we... | 24.542857 | 81 | 0.610594 | 251 | 1,718 | 4.103586 | 0.422311 | 0.046602 | 0.032039 | 0.021359 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044106 | 0.234575 | 1,718 | 69 | 82 | 24.898551 | 0.739164 | 0 | 0 | 0 | 0 | 0 | 0.115832 | 0.026775 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.173077 | 0 | 0.173077 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
e64d3c1360f948a0e4e91a1e5bc77802db0ff7e0 | 2,148 | py | Python | synthesis/paramGen/testcase2.py | hyunynim/DIST-Renderer | 4717ee8cea77f4f413b61f380a893c6800d0bde5 | [
"MIT"
] | 176 | 2020-06-11T19:16:33.000Z | 2022-03-29T01:38:28.000Z | synthesis/paramGen/testcase2.py | hyunynim/DIST-Renderer | 4717ee8cea77f4f413b61f380a893c6800d0bde5 | [
"MIT"
] | 6 | 2020-06-26T05:26:56.000Z | 2021-11-10T07:31:21.000Z | synthesis/paramGen/testcase2.py | hyunynim/DIST-Renderer | 4717ee8cea77f4f413b61f380a893c6800d0bde5 | [
"MIT"
] | 23 | 2020-06-11T21:43:03.000Z | 2022-02-18T00:16:16.000Z | '''
2019-08-07 00:01
Method:
20 x 5 grid over (camera x lighting)
'''
VIEW_NUM, LIGHTING_NUM = 20, 5
import os, sys
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
from src.param_decomposer import AllParams
def generate_params(shape_list, randomizer):
nowpath = os.path.dirname(os.path... | 39.777778 | 103 | 0.640596 | 272 | 2,148 | 4.8125 | 0.297794 | 0.045837 | 0.039725 | 0.034377 | 0.132162 | 0.122231 | 0.122231 | 0.076394 | 0.076394 | 0.076394 | 0 | 0.023183 | 0.256983 | 2,148 | 53 | 104 | 40.528302 | 0.796992 | 0.107542 | 0 | 0 | 0 | 0 | 0.025237 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.026316 | false | 0 | 0.078947 | 0 | 0.131579 | 0.026316 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
e64ec15e4f7b983862625b28f909feef4c9e7bb4 | 3,894 | py | Python | pygacal/camera/__init__.py | ereide/pyga-camcal | fd25748ddb11c5b05ef24a2deca2689e0d899875 | [
"MIT"
] | 5 | 2018-05-22T09:11:31.000Z | 2022-03-11T02:32:01.000Z | pygacal/camera/__init__.py | ereide/pyga-camcal | fd25748ddb11c5b05ef24a2deca2689e0d899875 | [
"MIT"
] | null | null | null | pygacal/camera/__init__.py | ereide/pyga-camcal | fd25748ddb11c5b05ef24a2deca2689e0d899875 | [
"MIT"
] | null | null | null |
from clifford import g3c
import numpy as np
import scipy.optimize as opt
from pygacal.rotation.costfunction import restrictedImageCostFunction, restrictedMultiViewImageCostFunction
from pygacal.rotation import minimizeError
from pygacal.rotation.mapping import BivectorLineImageMapping, BivectorLineMapping, LineProper... | 34.460177 | 159 | 0.612994 | 511 | 3,894 | 4.455969 | 0.223092 | 0.059289 | 0.068511 | 0.024594 | 0.164251 | 0.151076 | 0.110672 | 0.083443 | 0.059728 | 0.059728 | 0 | 0.013432 | 0.273498 | 3,894 | 112 | 160 | 34.767857 | 0.791446 | 0.004623 | 0 | 0.103896 | 0 | 0 | 0.03125 | 0 | 0 | 0 | 0 | 0 | 0.025974 | 1 | 0.090909 | false | 0 | 0.090909 | 0 | 0.233766 | 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 |
e6543ff7671521504ac838b1689dbe9bfbccaca2 | 4,704 | py | Python | sprout/runner.py | tjduigna/sprout | d8762ce7e6f04bb082b8ca1e65f73d8900338d9d | [
"Apache-2.0"
] | null | null | null | sprout/runner.py | tjduigna/sprout | d8762ce7e6f04bb082b8ca1e65f73d8900338d9d | [
"Apache-2.0"
] | null | null | null | sprout/runner.py | tjduigna/sprout | d8762ce7e6f04bb082b8ca1e65f73d8900338d9d | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright 2019, Sprout Development Team
# Distributed under the terms of the Apache License 2.0
import os
import asyncio
import asyncpg
from tortoise import Tortoise
import sprout
class Runner(sprout.Log):
"""An object-oriented interface
to the sprout utilities.
Args:
... | 32.895105 | 67 | 0.577594 | 612 | 4,704 | 4.326797 | 0.214052 | 0.055514 | 0.018882 | 0.018127 | 0.305891 | 0.200151 | 0.174094 | 0.138218 | 0.058912 | 0.058912 | 0 | 0.002135 | 0.302934 | 4,704 | 142 | 68 | 33.126761 | 0.805428 | 0.104379 | 0 | 0.179245 | 0 | 0 | 0.118074 | 0.032906 | 0 | 0 | 0 | 0 | 0 | 1 | 0.075472 | false | 0.028302 | 0.04717 | 0 | 0.226415 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
e654e957c98bffeffb8209db916fbae89bbb1792 | 2,726 | py | Python | sangam_poem_csv.py | naturalstupid/sangam_tamil_bot | 2b8117504f10ce4b4bdc2fa8160951374c9d1516 | [
"MIT"
] | null | null | null | sangam_poem_csv.py | naturalstupid/sangam_tamil_bot | 2b8117504f10ce4b4bdc2fa8160951374c9d1516 | [
"MIT"
] | null | null | null | sangam_poem_csv.py | naturalstupid/sangam_tamil_bot | 2b8117504f10ce4b4bdc2fa8160951374c9d1516 | [
"MIT"
] | null | null | null | import string
import regex
import pandas as pd
from pandas.tests.io.parser import index_col
sangam_text_folder = "./sangam_tamil_text/"
sangam_poem_folder = "./sangam_tamil_poems/"
sangam_csv_folder = "./sangam_tamil_csv/"
data_files = ['agananuru','purananuru','ainkurunuru','kalithokai', 'kurunthokai', 'natrinai', 'p... | 69.897436 | 128 | 0.655906 | 527 | 2,726 | 3.548387 | 0.275142 | 0.041711 | 0.01123 | 0.038503 | 0.228342 | 0.163636 | 0.122995 | 0.122995 | 0.078075 | 0.06738 | 0 | 0.001676 | 0.124725 | 2,726 | 39 | 129 | 69.897436 | 0.724644 | 0.015407 | 0 | 0 | 0 | 0 | 0.454139 | 0.017151 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.102564 | 0 | 0.102564 | 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 |
e65bcafb9495c37c2cdeefdfa42cd99132b78632 | 6,256 | py | Python | flask_opa.py | hirosh7/flask-opa | a090083ce62944d1085a6923572ed9c68f0dbfa3 | [
"MIT"
] | 34 | 2018-10-16T03:12:44.000Z | 2022-02-21T09:53:13.000Z | flask_opa.py | hirosh7/flask-opa | a090083ce62944d1085a6923572ed9c68f0dbfa3 | [
"MIT"
] | 12 | 2018-10-17T00:41:27.000Z | 2021-03-16T12:58:33.000Z | flask_opa.py | hirosh7/flask-opa | a090083ce62944d1085a6923572ed9c68f0dbfa3 | [
"MIT"
] | 8 | 2019-05-28T19:54:41.000Z | 2022-02-23T13:19:33.000Z | """
Flask Extension for OPA
"""
import requests
from flask.app import Flask
__version__ = "1.0.0"
class OPAException(Exception):
"""Exception evaluating a request in OPA"""
def __init__(self, message):
super().__init__(message)
class OPAUnexpectedException(OPAException):
"""Unexpected error ev... | 30.076923 | 78 | 0.605499 | 733 | 6,256 | 4.845839 | 0.155525 | 0.073198 | 0.030405 | 0.043919 | 0.323198 | 0.273086 | 0.221284 | 0.159628 | 0.134291 | 0.109797 | 0 | 0.002516 | 0.301151 | 6,256 | 207 | 79 | 30.222222 | 0.809927 | 0.038203 | 0 | 0.237179 | 0 | 0 | 0.040676 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.185897 | false | 0 | 0.012821 | 0.076923 | 0.352564 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
e65e9051029543698ac667d8972b05b6ac01763f | 8,920 | py | Python | model.py | Schrodinger1926/Project-3 | 88f8a1411a712a8ba62036e400ebce9e6df8e40f | [
"MIT"
] | null | null | null | model.py | Schrodinger1926/Project-3 | 88f8a1411a712a8ba62036e400ebce9e6df8e40f | [
"MIT"
] | null | null | null | model.py | Schrodinger1926/Project-3 | 88f8a1411a712a8ba62036e400ebce9e6df8e40f | [
"MIT"
] | null | null | null | import sys
import os
import csv
from random import shuffle
import cv2
import numpy as np
import matplotlib.pyplot as plt
import sklearn
from sklearn.model_selection import train_test_split
from keras.models import Sequential
from keras.layers import Flatten,\
Dense,\
... | 27.875 | 118 | 0.638453 | 1,143 | 8,920 | 4.877515 | 0.246719 | 0.060269 | 0.034978 | 0.034439 | 0.456682 | 0.379193 | 0.33435 | 0.322152 | 0.3087 | 0.255247 | 0 | 0.028661 | 0.245067 | 8,920 | 319 | 119 | 27.962382 | 0.799228 | 0.33509 | 0 | 0.262774 | 0 | 0 | 0.059085 | 0.004627 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043796 | false | 0 | 0.080292 | 0 | 0.175182 | 0.021898 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
e65f8dcc762ad6c2b71e1c9a7964a20b18c50603 | 3,807 | py | Python | enlarge_form/enlarge_form.py | lester-lees/extra_addons_sz | cddaf972cf4ea64c553bcff0006eb006a115d5ee | [
"Apache-2.0"
] | null | null | null | enlarge_form/enlarge_form.py | lester-lees/extra_addons_sz | cddaf972cf4ea64c553bcff0006eb006a115d5ee | [
"Apache-2.0"
] | null | null | null | enlarge_form/enlarge_form.py | lester-lees/extra_addons_sz | cddaf972cf4ea64c553bcff0006eb006a115d5ee | [
"Apache-2.0"
] | null | null | null | #! -*- encoding: utf-8 -*-
from openerp import addons
from openerp.osv import fields, osv, orm
from openerp import tools
from openerp.tools.translate import _
class ir_ui_view(orm.Model):
_inherit = 'ir.ui.view'
_columns={
'enlarge_form' : fields.boolean('Use full width of the screen?' ,help='Set to... | 34.297297 | 186 | 0.504334 | 412 | 3,807 | 4.495146 | 0.291262 | 0.035097 | 0.025918 | 0.024298 | 0.273218 | 0.215983 | 0.191145 | 0.191145 | 0.154428 | 0.113391 | 0 | 0.002118 | 0.379827 | 3,807 | 110 | 187 | 34.609091 | 0.782296 | 0.115314 | 0 | 0.205882 | 0 | 0.029412 | 0.152083 | 0.029167 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.058824 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
e666c5e9e0189a92959abe01ef942dcddf54c96d | 16,028 | py | Python | build/build.py | lukas-ke/faint-graphics-editor | 33eb9e6a3f2216fb2cf6ef9709a14f3d20b78fbf | [
"Apache-2.0"
] | 10 | 2016-12-28T22:06:31.000Z | 2021-05-24T13:42:30.000Z | build/build.py | lukas-ke/faint-graphics-editor | 33eb9e6a3f2216fb2cf6ef9709a14f3d20b78fbf | [
"Apache-2.0"
] | 4 | 2015-10-09T23:55:10.000Z | 2020-04-04T08:09:22.000Z | build/build.py | lukas-ke/faint-graphics-editor | 33eb9e6a3f2216fb2cf6ef9709a14f3d20b78fbf | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Copyright 2014 Lukas Kemmer
#
# 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 require... | 31.12233 | 109 | 0.630334 | 2,057 | 16,028 | 4.633933 | 0.140496 | 0.030214 | 0.011016 | 0.019618 | 0.374738 | 0.297524 | 0.260596 | 0.222409 | 0.203105 | 0.165653 | 0 | 0.003969 | 0.261106 | 16,028 | 514 | 110 | 31.182879 | 0.800895 | 0.061205 | 0 | 0.292621 | 0 | 0.002545 | 0.126159 | 0.012869 | 0 | 0 | 0 | 0.001946 | 0 | 1 | 0.081425 | false | 0 | 0.02799 | 0.017812 | 0.170483 | 0.045802 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
e6671dd4f2c0b71c8a3b385713a43ac751148356 | 2,119 | py | Python | printAlternatively.py | kamwithak/competitiveProgramming | ab4433568081900212a8a987d7bf8cb78d2698d1 | [
"MIT"
] | null | null | null | printAlternatively.py | kamwithak/competitiveProgramming | ab4433568081900212a8a987d7bf8cb78d2698d1 | [
"MIT"
] | 1 | 2020-07-19T15:40:25.000Z | 2020-07-19T15:40:25.000Z | printAlternatively.py | kamwithak/competitiveProgramming | ab4433568081900212a8a987d7bf8cb78d2698d1 | [
"MIT"
] | null | null | null | class Solution():
def __init__(self, A, B):
self.A = A
self.B = B
def printAlternativelySameSize(self):
"""
Assumes that len(self.A) == len(self.B) != 0
Alternatively print each element in the two Lists
"""
if (len(self.A) != len(self.B)):
raise Exception("the two lists must be of same ... | 21.40404 | 77 | 0.547428 | 312 | 2,119 | 3.685897 | 0.208333 | 0.085217 | 0.041739 | 0.028696 | 0.578261 | 0.536522 | 0.411304 | 0.337391 | 0.264348 | 0.264348 | 0 | 0.025367 | 0.293063 | 2,119 | 98 | 78 | 21.622449 | 0.742323 | 0.079755 | 0 | 0.546875 | 0 | 0 | 0.034483 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.078125 | false | 0 | 0 | 0 | 0.109375 | 0.234375 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e66883315cccecf4d95a549214dcc1704e5e4e46 | 429 | py | Python | tests/test_exp.py | SiddeshSambasivam/MatterIx | e9d3bc54c4f5793cc1262c89c7cb9d5a9dd99139 | [
"MIT"
] | 9 | 2020-07-25T12:00:30.000Z | 2021-07-07T09:30:57.000Z | tests/test_exp.py | SiddeshSambasivam/MatterIx | e9d3bc54c4f5793cc1262c89c7cb9d5a9dd99139 | [
"MIT"
] | null | null | null | tests/test_exp.py | SiddeshSambasivam/MatterIx | e9d3bc54c4f5793cc1262c89c7cb9d5a9dd99139 | [
"MIT"
] | null | null | null | import unittest
from matterix import Tensor
import numpy as np
class TestTensorExponents(unittest.TestCase):
def test_simple_exp(self):
an = np.random.randint(0, 10, (10, 10))
at = Tensor(an, requires_grad=True)
result = at * at
result.backward(gradient=Tensor.ones_like(result))
... | 25.235294 | 58 | 0.638695 | 57 | 429 | 4.736842 | 0.578947 | 0.02963 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030303 | 0.230769 | 429 | 16 | 59 | 26.8125 | 0.787879 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 1 | 0.090909 | false | 0 | 0.272727 | 0 | 0.454545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e6692d7fe75e939ec528720c041175b24637e974 | 1,722 | py | Python | src/tests/test_task_2_4.py | Python-course/Python-course | 59de0ef9928aeaa5dd185ceaafa334eb8e719217 | [
"MIT"
] | null | null | null | src/tests/test_task_2_4.py | Python-course/Python-course | 59de0ef9928aeaa5dd185ceaafa334eb8e719217 | [
"MIT"
] | null | null | null | src/tests/test_task_2_4.py | Python-course/Python-course | 59de0ef9928aeaa5dd185ceaafa334eb8e719217 | [
"MIT"
] | null | null | null | """
Тесты для задания 2.4.
"""
from unittest import TestCase, main
from fractions import Fraction
from tasks import task_2_4
class TestFractionFromString(TestCase):
def test_fraction_from_string__CorrectArguments__ShouldReturnCorrectResult(self):
"""
Проверяет работу с корректными данными.
... | 28.7 | 103 | 0.577236 | 190 | 1,722 | 5.005263 | 0.3 | 0.016824 | 0.025237 | 0.0347 | 0.466877 | 0.395373 | 0.359621 | 0.359621 | 0.359621 | 0.304942 | 0 | 0.052245 | 0.288618 | 1,722 | 59 | 104 | 29.186441 | 0.724082 | 0.097561 | 0 | 0.0625 | 0 | 0 | 0.081923 | 0.022343 | 0 | 0 | 0 | 0 | 0.09375 | 1 | 0.09375 | false | 0 | 0.09375 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e6693d31028174fac6a03f7991d1cc9f5830e4f5 | 1,007 | py | Python | aioweb_auth/helpers.py | kreopt/aioweb_auth | e6a982296b52fc2068dd09afb0827dab527ef9b7 | [
"MIT"
] | null | null | null | aioweb_auth/helpers.py | kreopt/aioweb_auth | e6a982296b52fc2068dd09afb0827dab527ef9b7 | [
"MIT"
] | null | null | null | aioweb_auth/helpers.py | kreopt/aioweb_auth | e6a982296b52fc2068dd09afb0827dab527ef9b7 | [
"MIT"
] | null | null | null | from aiohttp import web
from aiohttp_security import authorized_userid
from aioweb.conf import settings
async def redirect_authenticated(request):
user_id = await authorized_userid(request)
if user_id and not request.is_ajax():
redirect_url = request.query.get('redirect_to')
if not redirect_ur... | 34.724138 | 70 | 0.725919 | 126 | 1,007 | 5.587302 | 0.380952 | 0.120739 | 0.055398 | 0.059659 | 0.076705 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1857 | 1,007 | 28 | 71 | 35.964286 | 0.858537 | 0 | 0 | 0.090909 | 0 | 0 | 0.049652 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.136364 | 0 | 0.318182 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c6fd9ed01bdcac2a90cc2cff054eefd30d07deb0 | 3,901 | py | Python | functions/aou/tests/upload_test_files.py | broadinstitute/wfl | 1e5691100330a9afa0270fb4bab0a7d0a7d3bdc2 | [
"BSD-3-Clause"
] | 15 | 2020-03-04T17:30:25.000Z | 2022-03-09T14:57:26.000Z | functions/aou/tests/upload_test_files.py | broadinstitute/wfl | 1e5691100330a9afa0270fb4bab0a7d0a7d3bdc2 | [
"BSD-3-Clause"
] | 184 | 2020-03-06T20:55:15.000Z | 2022-03-15T18:24:57.000Z | functions/aou/tests/upload_test_files.py | broadinstitute/wfl | 1e5691100330a9afa0270fb4bab0a7d0a7d3bdc2 | [
"BSD-3-Clause"
] | 2 | 2020-07-08T19:16:26.000Z | 2020-07-10T18:47:30.000Z | """ Helper script that copies all of the files for an arrays sample into the dev aou input bucket. This will trigger
the submit_aou_workload cloud function for each file. When all files have been uploaded, it will launch an arrays
workflow via the workflow launcher (but only if a workflow with that chipwell barcode & a... | 47.573171 | 141 | 0.681364 | 512 | 3,901 | 4.982422 | 0.316406 | 0.070561 | 0.070561 | 0.075265 | 0.383379 | 0.332811 | 0.288514 | 0.288514 | 0.288514 | 0.27401 | 0 | 0.046909 | 0.174827 | 3,901 | 81 | 142 | 48.160494 | 0.745573 | 0.10382 | 0 | 0.059701 | 0 | 0.119403 | 0.505734 | 0.348624 | 0 | 0 | 0 | 0 | 0 | 1 | 0.044776 | false | 0 | 0.089552 | 0.029851 | 0.164179 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
c6fe87b224a7fdc40686930d3055375689c20f4c | 2,019 | py | Python | warp_gui.py | maciejczechowski/CarND-Advanced-Lane-Lines | 058a17a2ac1e0ee4c1e8fa2fc5222cb7d2eaa230 | [
"MIT"
] | null | null | null | warp_gui.py | maciejczechowski/CarND-Advanced-Lane-Lines | 058a17a2ac1e0ee4c1e8fa2fc5222cb7d2eaa230 | [
"MIT"
] | null | null | null | warp_gui.py | maciejczechowski/CarND-Advanced-Lane-Lines | 058a17a2ac1e0ee4c1e8fa2fc5222cb7d2eaa230 | [
"MIT"
] | null | null | null | import numpy as np
import cv2
from src import lane_finder as lf
from src import parameters
import argparse
class WarpFinder:
def __init__(self, image, horizon = 400, x1 = 500):
self.image1 = image
self._horizon = horizon
self._x1 = x1
def onChangeHorizon(pos):
self._ho... | 25.884615 | 103 | 0.602278 | 245 | 2,019 | 4.82449 | 0.4 | 0.037225 | 0.021997 | 0.025381 | 0.07445 | 0.07445 | 0.07445 | 0 | 0 | 0 | 0 | 0.041812 | 0.289252 | 2,019 | 77 | 104 | 26.220779 | 0.781882 | 0.101535 | 0 | 0.069767 | 0 | 0 | 0.077012 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.116279 | false | 0 | 0.116279 | 0 | 0.255814 | 0.023256 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
05007036c73f4b4b153318ac832ce22662ff0e07 | 2,041 | py | Python | election_data/uc_santa_barbara/2017/src_data/parser/ElectionBallotParser.py | dkupsh/stvote | dbe906681a171c5654341b93dc0fb5b0208cfd33 | [
"MIT"
] | null | null | null | election_data/uc_santa_barbara/2017/src_data/parser/ElectionBallotParser.py | dkupsh/stvote | dbe906681a171c5654341b93dc0fb5b0208cfd33 | [
"MIT"
] | null | null | null | election_data/uc_santa_barbara/2017/src_data/parser/ElectionBallotParser.py | dkupsh/stvote | dbe906681a171c5654341b93dc0fb5b0208cfd33 | [
"MIT"
] | null | null | null | ###############
# Ballot Parser for UC Berkeley Results
#
# This ballot parser has been tailored to the ballot
# system used by UCB. If you use another software
# to define ballots, ensure the data returned by the
# ballot parser returns data in the following fashion:
#
# [
# {
# "ballot_id": "unique_ballot_i... | 26.166667 | 82 | 0.526213 | 218 | 2,041 | 4.724771 | 0.366972 | 0.087379 | 0.100971 | 0.066019 | 0.221359 | 0.170874 | 0.170874 | 0.170874 | 0.170874 | 0.170874 | 0 | 0.005966 | 0.342969 | 2,041 | 77 | 83 | 26.506494 | 0.762118 | 0.641352 | 0 | 0 | 0 | 0 | 0.075969 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.142857 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
05018611063b1ec5bb0bc5adba5e6965095d97d4 | 5,971 | py | Python | deco/__init__.py | patdex/deco | 83141719b3b68fb1e99b43384a25288aea5c3e8c | [
"MIT"
] | null | null | null | deco/__init__.py | patdex/deco | 83141719b3b68fb1e99b43384a25288aea5c3e8c | [
"MIT"
] | null | null | null | deco/__init__.py | patdex/deco | 83141719b3b68fb1e99b43384a25288aea5c3e8c | [
"MIT"
] | null | null | null | import collections
import inspect
import time
import re
# module config:
disable_tracing = False
indent = True
# indentation for log output
_log_indent = dict()
def indent_str(cnt, end=False):
"""
indent string
:param cnt: indentation count
:param end: close actual indentation?
:return:
""... | 26.420354 | 117 | 0.601574 | 722 | 5,971 | 4.66759 | 0.18144 | 0.023739 | 0.052226 | 0.01543 | 0.339763 | 0.225519 | 0.135905 | 0.106825 | 0.081899 | 0.081899 | 0 | 0.006177 | 0.295093 | 5,971 | 225 | 118 | 26.537778 | 0.794488 | 0.192598 | 0 | 0.288288 | 0 | 0 | 0.028002 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.144144 | false | 0.018018 | 0.036036 | 0 | 0.36036 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
05067ca48cd1bf1cfe7a6e17e6b2e4d00c579d5b | 3,780 | py | Python | app/mysql2json.py | ToHanwei/CORD | 09f75b136431222ec945b2ddd6798ae805ec332e | [
"MIT"
] | null | null | null | app/mysql2json.py | ToHanwei/CORD | 09f75b136431222ec945b2ddd6798ae805ec332e | [
"MIT"
] | null | null | null | app/mysql2json.py | ToHanwei/CORD | 09f75b136431222ec945b2ddd6798ae805ec332e | [
"MIT"
] | null | null | null | #!coding:utf-8
import json
import pymysql
import pandas as pd
class ReadJson():
def __init__(self, host, user, passwd, db, table, sort=None, _filter=None):
self.host =host
self.user =user
self.passwd = passwd
self.db = db
self.table = table
self.sort = sort
... | 30.983607 | 100 | 0.552381 | 434 | 3,780 | 4.656682 | 0.218894 | 0.05146 | 0.029688 | 0.037605 | 0.399307 | 0.376051 | 0.35329 | 0.325581 | 0.325581 | 0.325581 | 0 | 0.00237 | 0.330159 | 3,780 | 121 | 101 | 31.239669 | 0.795814 | 0.057672 | 0 | 0.348315 | 0 | 0 | 0.053689 | 0 | 0.022472 | 0 | 0 | 0 | 0 | 1 | 0.078652 | false | 0.033708 | 0.033708 | 0 | 0.168539 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0506e61a9ace0c2d5bc6f23b2cc7e615718656a8 | 3,583 | py | Python | dict2xml.py | lucasicf/dict2xml | 7421414c71e1d95a4d60e84f942379edb4df2df5 | [
"BSD-3-Clause"
] | 12 | 2015-07-12T20:07:10.000Z | 2022-02-10T05:16:14.000Z | dict2xml.py | lucasicf/dict2xml | 7421414c71e1d95a4d60e84f942379edb4df2df5 | [
"BSD-3-Clause"
] | null | null | null | dict2xml.py | lucasicf/dict2xml | 7421414c71e1d95a4d60e84f942379edb4df2df5 | [
"BSD-3-Clause"
] | 7 | 2015-05-21T09:39:52.000Z | 2021-02-28T22:01:15.000Z | # -*- coding: utf-8 -*-
from xml.dom import minidom
import re
# Thrown on any dictionary error
class Dict2XMLException(Exception):
pass
def _dict_sort_key(key_value):
key = key_value[0]
match = re.match('(\d+)__.*', key)
return match and int(match.groups()[0]) or key
_iter_dict_sorted = lambda dic: ... | 34.786408 | 88 | 0.6542 | 426 | 3,583 | 5.361502 | 0.295775 | 0.077058 | 0.028021 | 0.02627 | 0.180823 | 0.140981 | 0.055166 | 0.055166 | 0 | 0 | 0 | 0.009314 | 0.250907 | 3,583 | 102 | 89 | 35.127451 | 0.841654 | 0.075077 | 0 | 0.094595 | 0 | 0 | 0.10348 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.067568 | false | 0.027027 | 0.027027 | 0 | 0.148649 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
05071a1ee7761ffc57199c77291dcea3601a853d | 1,247 | py | Python | 06_rotation_transformation.py | Mathanraj-Sharma/OpenCV_Sample_Codes | a20710fa05d7817b9c4c78acc64b852b0cde7583 | [
"Apache-2.0"
] | 1 | 2019-11-23T06:52:58.000Z | 2019-11-23T06:52:58.000Z | 06_rotation_transformation.py | Mathanraj-Sharma/OpenCV_Sample_Codes | a20710fa05d7817b9c4c78acc64b852b0cde7583 | [
"Apache-2.0"
] | null | null | null | 06_rotation_transformation.py | Mathanraj-Sharma/OpenCV_Sample_Codes | a20710fa05d7817b9c4c78acc64b852b0cde7583 | [
"Apache-2.0"
] | 1 | 2019-11-23T11:18:37.000Z | 2019-11-23T11:18:37.000Z | import cv2
import argparse
import numpy as np
ap = argparse.ArgumentParser()
ap.add_argument('-i', required = True, help = 'Enter the path of Image')
args = vars(ap.parse_args())
image = cv2.imread(args['i'])
def wheel(image, center):
i = 1
while (True):
if i > 359:
cv2.imshow('Wheel', image)
cv2.waitKey(... | 22.267857 | 75 | 0.690457 | 194 | 1,247 | 4.35567 | 0.391753 | 0.099408 | 0.071006 | 0.030769 | 0.068639 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040976 | 0.178027 | 1,247 | 56 | 76 | 22.267857 | 0.783415 | 0.238172 | 0 | 0.125 | 0 | 0 | 0.075693 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.09375 | 0 | 0.1875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
0507429bfe72a62ce8131002bc3538a2af143672 | 3,972 | py | Python | feichangzun/directGetFlightData.py | Octoberr/weizhuangIP | d37e82df35d0b8b84bfa38f3a487fd81ab969070 | [
"Apache-2.0"
] | null | null | null | feichangzun/directGetFlightData.py | Octoberr/weizhuangIP | d37e82df35d0b8b84bfa38f3a487fd81ab969070 | [
"Apache-2.0"
] | null | null | null | feichangzun/directGetFlightData.py | Octoberr/weizhuangIP | d37e82df35d0b8b84bfa38f3a487fd81ab969070 | [
"Apache-2.0"
] | null | null | null | import getflightdata
import requests
from bs4 import BeautifulSoup
import random
import json
import pymongo
import datetime
from Utils.config import config
# import config
mongoConf = config['mongo']
feichangzun = 'http://www.variflight.com/flight/fnum/'
feichangzunhouzui = '.html?AE71649A58c77&fdate='
def get_h... | 34.842105 | 108 | 0.629909 | 447 | 3,972 | 5.52349 | 0.331096 | 0.136087 | 0.051843 | 0.027542 | 0.348319 | 0.348319 | 0.348319 | 0.348319 | 0.348319 | 0.348319 | 0 | 0.023477 | 0.206445 | 3,972 | 113 | 109 | 35.150442 | 0.759835 | 0.039275 | 0 | 0.311111 | 0 | 0.022222 | 0.207304 | 0.023384 | 0 | 0 | 0 | 0 | 0 | 1 | 0.044444 | false | 0 | 0.088889 | 0 | 0.188889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0507ce8c6b29b5cd6c3e947a8e5f6cea05343e0b | 2,402 | py | Python | face/face-30sec.py | eric-erki/ai-smarthome | ca7316ebe72b0ad26f0b59e3186426633807cac8 | [
"BSD-2-Clause"
] | 28 | 2018-08-09T13:10:34.000Z | 2022-01-07T13:39:31.000Z | face/face-30sec.py | eric-erki/ai-smarthome | ca7316ebe72b0ad26f0b59e3186426633807cac8 | [
"BSD-2-Clause"
] | 4 | 2018-08-09T13:18:12.000Z | 2021-04-06T19:04:54.000Z | face/face-30sec.py | eric-erki/ai-smarthome | ca7316ebe72b0ad26f0b59e3186426633807cac8 | [
"BSD-2-Clause"
] | 15 | 2018-12-17T09:17:28.000Z | 2021-03-02T11:25:05.000Z | import numpy as np
import cv2
import face_recognition
import time
# Load a sample picture and learn how to recognize it.
me_image = face_recognition.load_image_file("known/joakim.png")
me_face_encoding = face_recognition.face_encodings(me_image)[0]
known_face_encodings = [
me_face_encoding,
]
known_face_names = [... | 32.459459 | 89 | 0.651957 | 332 | 2,402 | 4.521084 | 0.343373 | 0.08994 | 0.095936 | 0.037308 | 0.13058 | 0.085276 | 0 | 0 | 0 | 0 | 0 | 0.023064 | 0.241882 | 2,402 | 73 | 90 | 32.90411 | 0.801208 | 0.130724 | 0 | 0 | 0 | 0 | 0.083654 | 0 | 0 | 0 | 0.001923 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.071429 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
050a2b44b8dd6b46945c916a81b519efe47b76fb | 2,473 | py | Python | solutions/dropbox/compare_functions.py | roman-kachanovsky/checkio | 3134cbc04ed56e92006d1e2f09d7365e900953db | [
"BSD-3-Clause"
] | 1 | 2017-02-07T19:50:52.000Z | 2017-02-07T19:50:52.000Z | solutions/dropbox/compare_functions.py | roman-kachanovsky/checkio-python | 3134cbc04ed56e92006d1e2f09d7365e900953db | [
"BSD-3-Clause"
] | null | null | null | solutions/dropbox/compare_functions.py | roman-kachanovsky/checkio-python | 3134cbc04ed56e92006d1e2f09d7365e900953db | [
"BSD-3-Clause"
] | null | null | null | """ --- Compare Functions --- Simple
Two functions f and g are provided as inputs to checkio.
The first function f is the primary function and the second
function g is the backup. Use your coding skills to return
a third function h which returns the same output as f unless
f raises an exception or returns None. In thi... | 32.973333 | 78 | 0.595633 | 368 | 2,473 | 3.894022 | 0.277174 | 0.016748 | 0.013957 | 0.020935 | 0.054431 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.327537 | 2,473 | 74 | 79 | 33.418919 | 0.861696 | 0.51112 | 0 | 0.162162 | 0 | 0 | 0.055 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.108108 | false | 0 | 0 | 0 | 0.27027 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
050b0bea353171a3c51a6088825350acb0d9291f | 3,402 | py | Python | yawndb/sync.py | selectel/python-yawndb | 6d1c7d4b16a5cb5ef96496a22a3afb0bae7f2bb6 | [
"MIT"
] | null | null | null | yawndb/sync.py | selectel/python-yawndb | 6d1c7d4b16a5cb5ef96496a22a3afb0bae7f2bb6 | [
"MIT"
] | null | null | null | yawndb/sync.py | selectel/python-yawndb | 6d1c7d4b16a5cb5ef96496a22a3afb0bae7f2bb6 | [
"MIT"
] | null | null | null | """
yawndb.sync
~~~~~~~~~~~
Sync YAWNDB transport. Use standart socket object methods.
"""
import time
import json
import socket
import urllib2
import logging
from collections import deque
from yawndb._base import _YAWNDBBase
_logger = logging.getLogger(__name__)
class YAWNDB(_YAWNDBBase):
"""Syn... | 29.076923 | 79 | 0.546149 | 419 | 3,402 | 4.24105 | 0.295943 | 0.06753 | 0.033765 | 0.025324 | 0.261114 | 0.204277 | 0.155881 | 0.115926 | 0.043894 | 0.043894 | 0 | 0.013753 | 0.337449 | 3,402 | 116 | 80 | 29.327586 | 0.774623 | 0.116402 | 0 | 0.352941 | 0 | 0.011765 | 0.059302 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0.011765 | 0.082353 | 0 | 0.317647 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
050b23d1c21cc11db93c4c94dba0b845a1f1693e | 1,209 | py | Python | setup.py | ofek/depq | 370e3ad503d3e9cedc3c49dc64add393ba945764 | [
"MIT"
] | 1 | 2019-02-12T13:17:56.000Z | 2019-02-12T13:17:56.000Z | setup.py | ofek/depq | 370e3ad503d3e9cedc3c49dc64add393ba945764 | [
"MIT"
] | 4 | 2016-12-10T20:17:38.000Z | 2017-06-16T19:02:47.000Z | setup.py | ofek/depq | 370e3ad503d3e9cedc3c49dc64add393ba945764 | [
"MIT"
] | 5 | 2016-12-10T20:13:42.000Z | 2020-09-28T09:02:10.000Z | from setuptools import setup, find_packages
with open('README.rst', 'r') as infile:
read_me = infile.read()
setup(
packages=find_packages(),
name='depq',
version='1.5.5',
description='Double-ended priority queue',
long_description=read_me,
author='Ofek Lev',
author_email='ofekmeister@... | 28.116279 | 71 | 0.612076 | 124 | 1,209 | 5.903226 | 0.604839 | 0.053279 | 0.102459 | 0.065574 | 0.087432 | 0.087432 | 0 | 0 | 0 | 0 | 0 | 0.010977 | 0.246485 | 1,209 | 42 | 72 | 28.785714 | 0.792536 | 0 | 0 | 0.054054 | 0 | 0 | 0.503722 | 0.034739 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.027027 | 0 | 0.027027 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
050bc5ae6e8eba8aac368023fb49c3014cb5ef03 | 880 | py | Python | tests/exact_tests/contour_tests/strategies.py | lycantropos/rene | c73c616f3e360b994e92c950a3616a8ccb1136b9 | [
"MIT"
] | null | null | null | tests/exact_tests/contour_tests/strategies.py | lycantropos/rene | c73c616f3e360b994e92c950a3616a8ccb1136b9 | [
"MIT"
] | null | null | null | tests/exact_tests/contour_tests/strategies.py | lycantropos/rene | c73c616f3e360b994e92c950a3616a8ccb1136b9 | [
"MIT"
] | null | null | null | from hypothesis import strategies
from rithm import Fraction
from rene import MIN_CONTOUR_VERTICES_COUNT
from rene.exact import (Contour,
Point)
integers = strategies.integers()
non_zero_integers = integers.filter(bool)
scalars = (integers | strategies.fractions()
| strategies.build... | 36.666667 | 73 | 0.664773 | 90 | 880 | 6.255556 | 0.388889 | 0.053286 | 0.095915 | 0.122558 | 0.262877 | 0.166963 | 0.166963 | 0 | 0 | 0 | 0 | 0.00155 | 0.267045 | 880 | 23 | 74 | 38.26087 | 0.871318 | 0 | 0 | 0.095238 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.190476 | 0 | 0.190476 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
05108d99ff3259ead7d1205123464ffd5c4850a2 | 5,504 | py | Python | app.py | makerdao-data/gov-tracker | 52b7588e5c200b0af5b64a2891b276cbcc149ff1 | [
"Apache-2.0"
] | null | null | null | app.py | makerdao-data/gov-tracker | 52b7588e5c200b0af5b64a2891b276cbcc149ff1 | [
"Apache-2.0"
] | null | null | null | app.py | makerdao-data/gov-tracker | 52b7588e5c200b0af5b64a2891b276cbcc149ff1 | [
"Apache-2.0"
] | null | null | null | # Copyright 2021 DAI Foundation
#
# 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,... | 28.518135 | 117 | 0.677871 | 748 | 5,504 | 4.794118 | 0.270053 | 0.031233 | 0.026771 | 0.031233 | 0.226157 | 0.208589 | 0.187953 | 0.118238 | 0.090351 | 0.0686 | 0 | 0.003112 | 0.182776 | 5,504 | 192 | 118 | 28.666667 | 0.794131 | 0.178234 | 0 | 0.146552 | 0 | 0 | 0.129061 | 0.026925 | 0 | 0 | 0 | 0 | 0 | 1 | 0.12931 | false | 0 | 0.155172 | 0.051724 | 0.396552 | 0.008621 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
051130482cb3691a34b0be84581c86dd2a4ce54f | 3,280 | py | Python | open_spiel/python/mst/run_mst.py | BrandonKates/open_spiel | f820abe9bdfdbc4bd45c2e933439393d4ad3622a | [
"Apache-2.0"
] | null | null | null | open_spiel/python/mst/run_mst.py | BrandonKates/open_spiel | f820abe9bdfdbc4bd45c2e933439393d4ad3622a | [
"Apache-2.0"
] | null | null | null | open_spiel/python/mst/run_mst.py | BrandonKates/open_spiel | f820abe9bdfdbc4bd45c2e933439393d4ad3622a | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 DeepMind Technologies Ltd. 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 appl... | 34.166667 | 129 | 0.695122 | 468 | 3,280 | 4.713675 | 0.350427 | 0.021759 | 0.031278 | 0.039891 | 0.085675 | 0.062103 | 0.062103 | 0.062103 | 0.062103 | 0.062103 | 0 | 0.014829 | 0.198171 | 3,280 | 95 | 130 | 34.526316 | 0.823954 | 0.264329 | 0 | 0.071429 | 0 | 0.017857 | 0.128978 | 0.020519 | 0 | 0 | 0 | 0 | 0 | 1 | 0.017857 | false | 0 | 0.160714 | 0 | 0.178571 | 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 |
0511cceb2ee442a4c70aeab49d84be0233b7fcac | 10,952 | py | Python | classify.py | clulab/incivility | 82d8e8164b81e9f4d5737520f2cbf308d3fcd033 | [
"Apache-2.0"
] | 1 | 2020-09-18T12:05:13.000Z | 2020-09-18T12:05:13.000Z | classify.py | clulab/incivility | 82d8e8164b81e9f4d5737520f2cbf308d3fcd033 | [
"Apache-2.0"
] | null | null | null | classify.py | clulab/incivility | 82d8e8164b81e9f4d5737520f2cbf308d3fcd033 | [
"Apache-2.0"
] | null | null | null | import argparse
import os
import subprocess
from typing import List, Sequence, Text
import textwrap
import numpy as np
import pandas as pd
import sklearn
import tensorflow as tf
import tensorflow_addons as tfa
import transformers
import data
import models
import ga
def train(model_path: Text,
train_data_p... | 38.975089 | 137 | 0.603543 | 1,321 | 10,952 | 4.738077 | 0.207419 | 0.038824 | 0.070618 | 0.042179 | 0.37498 | 0.316984 | 0.269212 | 0.221601 | 0.203866 | 0.184215 | 0 | 0.007553 | 0.286797 | 10,952 | 280 | 138 | 39.114286 | 0.793752 | 0.044375 | 0 | 0.188596 | 0 | 0.008772 | 0.200957 | 0.05177 | 0 | 0 | 0 | 0 | 0 | 1 | 0.017544 | false | 0 | 0.061404 | 0.004386 | 0.083333 | 0.039474 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
051260c977d73217e66d8ef66398ae1931f7b899 | 814 | py | Python | p2/src/prove.py | ruimgf/AIDS | 72bc808ef5e21113f635f34581d18c0dc2c8c7da | [
"MIT"
] | null | null | null | p2/src/prove.py | ruimgf/AIDS | 72bc808ef5e21113f635f34581d18c0dc2c8c7da | [
"MIT"
] | null | null | null | p2/src/prove.py | ruimgf/AIDS | 72bc808ef5e21113f635f34581d18c0dc2c8c7da | [
"MIT"
] | null | null | null | import sys
from kb import *
#receives a list of setences if it is in test mode
def main(lista=None):
sentences = []
if lista is None:
with sys.stdin as f : #open stdin as a file
lines = f.readlines()
for line in lines: # convert each line to a python object
lin... | 25.4375 | 69 | 0.5086 | 100 | 814 | 4.05 | 0.51 | 0.111111 | 0.088889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.405405 | 814 | 31 | 70 | 26.258065 | 0.836777 | 0.130221 | 0 | 0.08 | 0 | 0 | 0.011348 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0 | 0.08 | 0 | 0.16 | 0.08 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0514df3dee36ec46f44f8239441b8f0b35d0374b | 758 | py | Python | stub_extractor/util.py | srittau/stub-extractor | f161c10a2f041a74040a04e00e0b0d33cb94a0fe | [
"MIT"
] | null | null | null | stub_extractor/util.py | srittau/stub-extractor | f161c10a2f041a74040a04e00e0b0d33cb94a0fe | [
"MIT"
] | null | null | null | stub_extractor/util.py | srittau/stub-extractor | f161c10a2f041a74040a04e00e0b0d33cb94a0fe | [
"MIT"
] | null | null | null | from typing import Iterator, List, Optional, Sequence, Tuple, TypeVar
_T1 = TypeVar("_T1")
_T2 = TypeVar("_T2")
def rzip_longest(
seq1: Sequence[_T1], seq2: Sequence[_T2]
) -> Iterator[Tuple[_T1, Optional[_T2]]]:
"""Make an iterator over tuples, with elements from the input sequences.
If the second sequ... | 30.32 | 76 | 0.647757 | 114 | 758 | 4.157895 | 0.491228 | 0.044304 | 0.059072 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045075 | 0.209763 | 758 | 24 | 77 | 31.583333 | 0.746244 | 0.353562 | 0 | 0 | 0 | 0 | 0.077754 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.083333 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
05167a6a94f7c83fc6497eed1db4333dd9bd4308 | 12,980 | py | Python | weibospider.py | Chiang97912/WeiboSpider | 2c426d2dfa8c6d418b66bd54002c292194872c88 | [
"MIT"
] | null | null | null | weibospider.py | Chiang97912/WeiboSpider | 2c426d2dfa8c6d418b66bd54002c292194872c88 | [
"MIT"
] | null | null | null | weibospider.py | Chiang97912/WeiboSpider | 2c426d2dfa8c6d418b66bd54002c292194872c88 | [
"MIT"
] | 1 | 2021-05-07T06:35:22.000Z | 2021-05-07T06:35:22.000Z | # -*- coding: UTF-8 -*-
import os
import json
import time
import rsa
import base64
import urllib
import binascii
import traceback
import requests
import pandas as pd
from lxml import etree
from datetime import datetime
class NoResultException(Exception):
def __init__(self):
super().__init__()
def __... | 39.938462 | 170 | 0.469106 | 1,397 | 12,980 | 4.256263 | 0.248389 | 0.017154 | 0.011773 | 0.022873 | 0.235789 | 0.214598 | 0.207198 | 0.17928 | 0.168517 | 0.162294 | 0 | 0.026612 | 0.377581 | 12,980 | 324 | 171 | 40.061728 | 0.70937 | 0.01849 | 0 | 0.185965 | 0 | 0.049123 | 0.200945 | 0.077323 | 0 | 0 | 0 | 0 | 0 | 1 | 0.042105 | false | 0.010526 | 0.042105 | 0.003509 | 0.108772 | 0.021053 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0516e5d4fd543c80d6f16ba01f4a7586b969a893 | 3,783 | py | Python | spoty/commands/get_second_group.py | dy-sh/spoty | 431a392707c8754da713871e0e7747bcc4417274 | [
"MIT"
] | 2 | 2022-02-01T16:49:32.000Z | 2022-03-02T18:30:31.000Z | spoty/commands/get_second_group.py | dy-sh/spoty | 431a392707c8754da713871e0e7747bcc4417274 | [
"MIT"
] | null | null | null | spoty/commands/get_second_group.py | dy-sh/spoty | 431a392707c8754da713871e0e7747bcc4417274 | [
"MIT"
] | null | null | null | from spoty.commands.first_list_commands import \
count_command, \
export_command, \
print_command
from spoty.commands.second_list_commands import \
filter_second_group, \
find_duplicates_second_command,\
find_deezer_second_group, \
find_spotify_second_group
from spoty.commands import get_gro... | 50.44 | 187 | 0.641819 | 469 | 3,783 | 4.991471 | 0.234542 | 0.077745 | 0.061512 | 0.056813 | 0.664246 | 0.58223 | 0.41777 | 0.390431 | 0.390431 | 0.359675 | 0 | 0.004334 | 0.268041 | 3,783 | 75 | 188 | 50.44 | 0.841098 | 0.018504 | 0 | 0.272727 | 0 | 0.090909 | 0.341437 | 0.041869 | 0 | 0 | 0 | 0 | 0 | 1 | 0.015152 | false | 0.015152 | 0.075758 | 0 | 0.090909 | 0.030303 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
05195432ec2c13cb2bd586385c70cb0f3fcc21ab | 19,804 | py | Python | jenkins_job_wrecker/modules/triggers.py | romanek-adam/jenkins-job-wrecker | db9379d852afe8b621c7688d34fd057d916de8f2 | [
"MIT"
] | 1 | 2020-06-05T06:36:50.000Z | 2020-06-05T06:36:50.000Z | jenkins_job_wrecker/modules/triggers.py | romanek-adam/jenkins-job-wrecker | db9379d852afe8b621c7688d34fd057d916de8f2 | [
"MIT"
] | 15 | 2020-05-18T07:37:06.000Z | 2020-08-24T09:16:08.000Z | jenkins_job_wrecker/modules/triggers.py | romanek-adam/jenkins-job-wrecker | db9379d852afe8b621c7688d34fd057d916de8f2 | [
"MIT"
] | null | null | null | # encoding=utf8
import jenkins_job_wrecker.modules.base
from jenkins_job_wrecker.helpers import get_bool, Mapper
class Triggers(jenkins_job_wrecker.modules.base.Base):
component = 'triggers'
def gen_yml(self, yml_parent, data):
triggers = []
for child in data:
object_name = child... | 51.572917 | 119 | 0.569683 | 1,821 | 19,804 | 6.075783 | 0.183965 | 0.036876 | 0.035792 | 0.022777 | 0.36325 | 0.262292 | 0.199837 | 0.109635 | 0.063539 | 0.038503 | 0 | 0.00178 | 0.319127 | 19,804 | 383 | 120 | 51.707572 | 0.818748 | 0.017067 | 0 | 0.147727 | 0 | 0 | 0.264549 | 0.132583 | 0 | 0 | 0 | 0.002611 | 0 | 1 | 0.028409 | false | 0.022727 | 0.005682 | 0 | 0.048295 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
051d3484ddd9be778a5ba470d36fedfb5de63393 | 4,097 | py | Python | tools/clean-parallel.py | ZJaume/clean | 0c3c6bab8bf173687ec0bba6908097ef7bc38db2 | [
"MIT"
] | 1 | 2021-06-02T03:08:32.000Z | 2021-06-02T03:08:32.000Z | tools/clean-parallel.py | ZJaume/clean | 0c3c6bab8bf173687ec0bba6908097ef7bc38db2 | [
"MIT"
] | 1 | 2021-05-30T22:55:44.000Z | 2021-06-02T08:47:56.000Z | tools/clean-parallel.py | ZJaume/clean | 0c3c6bab8bf173687ec0bba6908097ef7bc38db2 | [
"MIT"
] | 2 | 2021-06-01T19:07:43.000Z | 2021-06-03T11:03:04.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
import re
import regex
import argparse
# The variables below need to be adjusted for a language pair and dataset.
# To add a new language, define the list of alpha characters in the dict below.
MIN_LENGTH = 1 # minimum number of words in a sentence
MAX_L... | 32.515873 | 96 | 0.640469 | 531 | 4,097 | 4.79661 | 0.340866 | 0.017275 | 0.009423 | 0.01492 | 0.018846 | 0.018846 | 0 | 0 | 0 | 0 | 0 | 0.008313 | 0.207225 | 4,097 | 125 | 97 | 32.776 | 0.775862 | 0.10886 | 0 | 0.021277 | 0 | 0 | 0.291323 | 0.18726 | 0 | 0 | 0 | 0 | 0 | 1 | 0.031915 | false | 0 | 0.042553 | 0 | 0.191489 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0520b1fd12c6c807e99e2585c0ad990c4a9c1185 | 3,001 | py | Python | undercrawler/crazy_form_submitter.py | abael/ScrapyGenericCrawler | 9d210fb862a7fddd58c548847d8f5c2d72eae5c1 | [
"MIT"
] | 88 | 2016-04-07T18:41:19.000Z | 2022-01-03T12:18:44.000Z | undercrawler/crazy_form_submitter.py | shekar9160/generic_scraper | e5104dca5a5d9fe4b9ddd085c7b0935a712ea74d | [
"MIT"
] | 61 | 2016-04-06T18:31:45.000Z | 2021-07-15T12:10:23.000Z | undercrawler/crazy_form_submitter.py | shekar9160/generic_scraper | e5104dca5a5d9fe4b9ddd085c7b0935a712ea74d | [
"MIT"
] | 31 | 2016-04-14T07:49:49.000Z | 2021-08-08T17:07:36.000Z | import logging
import random
import string
from scrapy.http.request.form import _get_inputs as get_form_data
logger = logging.getLogger(__name__)
SEARCH_TERMS = list(string.ascii_lowercase) + list('123456789 *%.?')
def search_form_requests(url, form, meta,
search_terms=None, extra_search_terms=None):
... | 40.554054 | 78 | 0.638121 | 372 | 3,001 | 4.857527 | 0.284946 | 0.091312 | 0.053127 | 0.033204 | 0.186497 | 0.133924 | 0.133924 | 0.097399 | 0.097399 | 0.05534 | 0 | 0.009246 | 0.27924 | 3,001 | 73 | 79 | 41.109589 | 0.826167 | 0.072309 | 0 | 0 | 0 | 0 | 0.068017 | 0 | 0 | 0 | 0 | 0 | 0.017544 | 1 | 0.052632 | false | 0 | 0.070175 | 0.017544 | 0.175439 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0524ab92ab97c6f8922dd3dd0c03bf3b79b8a0ee | 921 | py | Python | libs/libssh2/libssh2.py | simont77/craft-blueprints-kde | 3c0a40923c7c8e0341ad08afde22f86bb1517ddf | [
"BSD-2-Clause"
] | null | null | null | libs/libssh2/libssh2.py | simont77/craft-blueprints-kde | 3c0a40923c7c8e0341ad08afde22f86bb1517ddf | [
"BSD-2-Clause"
] | 1 | 2020-01-10T01:06:16.000Z | 2020-01-10T01:06:16.000Z | libs/libssh2/libssh2.py | simont77/craft-blueprints-kde | 3c0a40923c7c8e0341ad08afde22f86bb1517ddf | [
"BSD-2-Clause"
] | 2 | 2020-01-02T18:22:12.000Z | 2020-08-05T13:39:21.000Z | # -*- coding: utf-8 -*-
import info
class subinfo(info.infoclass):
def setTargets( self ):
self.svnTargets['master'] = 'https://github.com/libssh2/libssh2.git||libssh2-1.8.0'
self.targets['1.8.0'] = "https://www.libssh2.org/download/libssh2-1.8.0.tar.gz"
self.targetInstSrc['1.8.0'] = "libss... | 38.375 | 108 | 0.667752 | 108 | 921 | 5.601852 | 0.546296 | 0.016529 | 0.024793 | 0.049587 | 0.046281 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03534 | 0.170467 | 921 | 23 | 109 | 40.043478 | 0.756545 | 0.022801 | 0 | 0 | 0 | 0.058824 | 0.326644 | 0.101449 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0 | 0.117647 | 0 | 0.411765 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
05273ebf4b8d4eb6302f146e1b519e163f850d92 | 5,289 | py | Python | tooling/maven.py | AntonisGkortzis/Vulnerabilities-in-Reused-Software | 16b2087cb595b48446dadda8cae75dad6ef1433b | [
"MIT"
] | 3 | 2020-11-24T20:30:59.000Z | 2021-05-26T02:33:53.000Z | tooling/maven.py | AntonisGkortzis/Vulnerabilities-in-Reused-Software | 16b2087cb595b48446dadda8cae75dad6ef1433b | [
"MIT"
] | null | null | null | tooling/maven.py | AntonisGkortzis/Vulnerabilities-in-Reused-Software | 16b2087cb595b48446dadda8cae75dad6ef1433b | [
"MIT"
] | null | null | null | import os
import re
import logging
import zipfile
logger = logging.getLogger(__name__)
class MvnArtifact:
"""
Class representing a fully defined maven artifact
(e.g., <groupId>:<artifactId>:<type>:<version>[:<dep_type>])
"""
__elem_re = re.compile(r'^(.+?):(.+?):(.+?):(.+?)((:)(.+))?$')
def __... | 33.687898 | 156 | 0.560219 | 701 | 5,289 | 4.00428 | 0.203994 | 0.011756 | 0.015675 | 0.008906 | 0.191664 | 0.145351 | 0.089063 | 0.089063 | 0.089063 | 0.089063 | 0 | 0.010455 | 0.276612 | 5,289 | 156 | 157 | 33.903846 | 0.72321 | 0.027037 | 0 | 0.126126 | 0 | 0.018018 | 0.13466 | 0.080991 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153153 | false | 0 | 0.036036 | 0.009009 | 0.351351 | 0.027027 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0527ccd6baf873620f163e0b3ed2a44bfa92eff6 | 1,812 | py | Python | ptsites/sites/hares.py | kbnq/flexget_qbittorrent_mod | e52d9726b80aab94cf3d9ee6c382b6721b757d3b | [
"MIT"
] | null | null | null | ptsites/sites/hares.py | kbnq/flexget_qbittorrent_mod | e52d9726b80aab94cf3d9ee6c382b6721b757d3b | [
"MIT"
] | null | null | null | ptsites/sites/hares.py | kbnq/flexget_qbittorrent_mod | e52d9726b80aab94cf3d9ee6c382b6721b757d3b | [
"MIT"
] | null | null | null | from ..schema.nexusphp import Attendance
from ..schema.site_base import Work, SignState
from ..utils.net_utils import NetUtils
class MainClass(Attendance):
URL = 'https://club.hares.top/'
USER_CLASSES = {
'downloaded': [8796093022208],
'share_ratio': [5.5],
'days': [364]
}
def... | 29.225806 | 82 | 0.400662 | 148 | 1,812 | 4.790541 | 0.655405 | 0.028209 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024218 | 0.453091 | 1,812 | 61 | 83 | 29.704918 | 0.691221 | 0 | 0 | 0 | 0 | 0 | 0.197572 | 0.024283 | 0 | 0 | 0 | 0 | 0 | 1 | 0.053571 | false | 0 | 0.053571 | 0.017857 | 0.232143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
05299930cfe175dfdd505fa507a88544ad0e95c1 | 716 | py | Python | tests/garage/sampler/test_rl2_worker.py | blacksph3re/garage | b4abe07f0fa9bac2cb70e4a3e315c2e7e5b08507 | [
"MIT"
] | 1,500 | 2018-06-11T20:36:24.000Z | 2022-03-31T08:29:01.000Z | tests/garage/sampler/test_rl2_worker.py | blacksph3re/garage | b4abe07f0fa9bac2cb70e4a3e315c2e7e5b08507 | [
"MIT"
] | 2,111 | 2018-06-11T04:10:29.000Z | 2022-03-26T14:41:32.000Z | tests/garage/sampler/test_rl2_worker.py | blacksph3re/garage | b4abe07f0fa9bac2cb70e4a3e315c2e7e5b08507 | [
"MIT"
] | 309 | 2018-07-24T11:18:48.000Z | 2022-03-30T16:19:48.000Z | from garage.envs import GymEnv
from garage.tf.algos.rl2 import RL2Worker
from tests.fixtures import TfGraphTestCase
from tests.fixtures.envs.dummy import DummyBoxEnv
from tests.fixtures.policies import DummyPolicy
class TestRL2Worker(TfGraphTestCase):
def test_rl2_worker(self):
env = GymEnv(DummyBoxEnv(... | 32.545455 | 50 | 0.655028 | 83 | 716 | 5.506024 | 0.566265 | 0.059081 | 0.111597 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030476 | 0.26676 | 716 | 21 | 51 | 34.095238 | 0.84 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058824 | 1 | 0.058824 | false | 0 | 0.294118 | 0 | 0.411765 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
052a76693b3fb6c307548d396e0accbc369737c8 | 660 | py | Python | dependencies/src/4Suite-XML-1.0.2/test/Xml/Xslt/Borrowed/uo_20001208.py | aleasims/Peach | bb56841e943d719d5101fee0a503ed34308eda04 | [
"MIT"
] | null | null | null | dependencies/src/4Suite-XML-1.0.2/test/Xml/Xslt/Borrowed/uo_20001208.py | aleasims/Peach | bb56841e943d719d5101fee0a503ed34308eda04 | [
"MIT"
] | null | null | null | dependencies/src/4Suite-XML-1.0.2/test/Xml/Xslt/Borrowed/uo_20001208.py | aleasims/Peach | bb56841e943d719d5101fee0a503ed34308eda04 | [
"MIT"
] | 1 | 2020-07-26T03:57:45.000Z | 2020-07-26T03:57:45.000Z | #Uche Ogbuji exercises format-number on Brad Marshall's behalf
from Xml.Xslt import test_harness
sheet_1 = """\
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:template match = "/">
<xsl:value-of select='format-number(10000000000.75 + 10000000000.50, "##.##"... | 24.444444 | 84 | 0.671212 | 89 | 660 | 4.865169 | 0.573034 | 0.101617 | 0.04157 | 0.115473 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.098214 | 0.151515 | 660 | 26 | 85 | 25.384615 | 0.675 | 0.093939 | 0 | 0 | 0 | 0.125 | 0.518456 | 0.060403 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.0625 | 0 | 0.1875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
052bebc9ce249268deadd50cd183873b6f1a799a | 2,697 | py | Python | tests/test_connection.py | daniel-herrero/fastapi-mailman | a174d0ec777d3330dc5464f71fafa7829db07bf1 | [
"MIT"
] | 6 | 2021-10-08T10:20:37.000Z | 2022-03-30T08:56:10.000Z | tests/test_connection.py | daniel-herrero/fastapi-mailman | a174d0ec777d3330dc5464f71fafa7829db07bf1 | [
"MIT"
] | 2 | 2021-11-11T11:44:29.000Z | 2022-03-08T06:54:54.000Z | tests/test_connection.py | daniel-herrero/fastapi-mailman | a174d0ec777d3330dc5464f71fafa7829db07bf1 | [
"MIT"
] | 1 | 2022-03-04T14:43:22.000Z | 2022-03-04T14:43:22.000Z | import typing as t
import pytest as pt
from fastapi_mailman import BadHeaderError, EmailMessage
if t.TYPE_CHECKING:
from fastapi_mailman import Mail
@pt.mark.anyio
async def test_send_message(mail: "Mail"):
mail.backend = "locmem"
msg = EmailMessage(
subject="testing",
to=["to@example.c... | 28.389474 | 102 | 0.629218 | 355 | 2,697 | 4.63662 | 0.180282 | 0.055286 | 0.063183 | 0.068044 | 0.699271 | 0.6452 | 0.631227 | 0.614824 | 0.565006 | 0.540705 | 0 | 0.007353 | 0.243604 | 2,697 | 94 | 103 | 28.691489 | 0.79951 | 0 | 0 | 0.578947 | 0 | 0 | 0.090471 | 0 | 0 | 0 | 0 | 0 | 0.197368 | 1 | 0 | false | 0 | 0.052632 | 0 | 0.052632 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
052c8a3287a40e2446164e87ba133bbda46f1779 | 294 | py | Python | Workshops/enBuyukSayi.py | brkyydnmz/Python | 8cde0421edda6ac5b7fd30e8f20ad7cb6e1708b0 | [
"MIT"
] | null | null | null | Workshops/enBuyukSayi.py | brkyydnmz/Python | 8cde0421edda6ac5b7fd30e8f20ad7cb6e1708b0 | [
"MIT"
] | null | null | null | Workshops/enBuyukSayi.py | brkyydnmz/Python | 8cde0421edda6ac5b7fd30e8f20ad7cb6e1708b0 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
sayi1 = int(input("1. Sayı:"))
sayi2 = int(input("2. Sayı:"))
sayi3 = int(input("3. Sayı:"))
if (sayi1>=sayi2) and (sayi1>=sayi3):
enBuyuk = sayi1
elif(sayi2>=sayi1) and (sayi2>=sayi3):
enBuyuk = sayi2
else:
enBuyuk = sayi3
print("En Büyük Sayı:",enBuyuk) | 21 | 38 | 0.608844 | 42 | 294 | 4.261905 | 0.47619 | 0.134078 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.074074 | 0.173469 | 294 | 14 | 39 | 21 | 0.662551 | 0.071429 | 0 | 0 | 0 | 0 | 0.139706 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
052d317538142bae7b508c18b4e71450d9b3e276 | 399 | py | Python | 08/seven-segment_part1.py | ReinprechtStefan/AdventOfCode2021 | a2750c5fbcc7fc927d710f4db6926d015a2fb673 | [
"Apache-2.0"
] | null | null | null | 08/seven-segment_part1.py | ReinprechtStefan/AdventOfCode2021 | a2750c5fbcc7fc927d710f4db6926d015a2fb673 | [
"Apache-2.0"
] | null | null | null | 08/seven-segment_part1.py | ReinprechtStefan/AdventOfCode2021 | a2750c5fbcc7fc927d710f4db6926d015a2fb673 | [
"Apache-2.0"
] | null | null | null | with open('input.txt') as f:
lines = f.readlines()
counter = 0
for line in lines:
right_part = line.split(" | ")[1]
for segment in right_part.strip().split(" "):
#print(segment, len(segment))
if len(segment) in [2,3,4,7]:
counter += 1
#e... | 22.166667 | 53 | 0.491228 | 49 | 399 | 3.959184 | 0.571429 | 0.154639 | 0.175258 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027451 | 0.360902 | 399 | 17 | 54 | 23.470588 | 0.733333 | 0.170426 | 0 | 0 | 0 | 0 | 0.039634 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
052ffb78d4e1a7b366b635d756b5d2bbba48de18 | 7,605 | py | Python | main/gui.py | MBmasher/weighted-object | eaaf25338240873b7c4197097b2bb73be256b702 | [
"MIT"
] | null | null | null | main/gui.py | MBmasher/weighted-object | eaaf25338240873b7c4197097b2bb73be256b702 | [
"MIT"
] | null | null | null | main/gui.py | MBmasher/weighted-object | eaaf25338240873b7c4197097b2bb73be256b702 | [
"MIT"
] | null | null | null | import Tkinter
import weighted_objects
import tkFileDialog
import time
import ttk
import numpy
import sys
while True:
# Ask user for file dialog.
Tkinter.Tk().withdraw()
osu_file_path = tkFileDialog.askopenfilename(title="Select an osu file", filetypes=(("osu files", "*.osu"),))
# Calcula... | 39.201031 | 118 | 0.598028 | 984 | 7,605 | 4.426829 | 0.214431 | 0.085399 | 0.080808 | 0.068871 | 0.399679 | 0.297062 | 0.205923 | 0.115932 | 0.091139 | 0.033747 | 0 | 0.041096 | 0.289678 | 7,605 | 193 | 119 | 39.404145 | 0.765272 | 0.139645 | 0 | 0.049587 | 0 | 0 | 0.094229 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.049587 | false | 0 | 0.057851 | 0 | 0.107438 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
05343aca0c5c82c59e3358b3b9d65dce1ef6b0de | 806 | py | Python | pyzfscmds/check.py | johnramsden/pyzfscmds | b5d430ffd0454bc6b09e256aeea67164714d9809 | [
"BSD-3-Clause"
] | 9 | 2018-07-08T20:01:33.000Z | 2022-03-29T11:31:51.000Z | pyzfscmds/check.py | johnramsden/pyzfscmds | b5d430ffd0454bc6b09e256aeea67164714d9809 | [
"BSD-3-Clause"
] | 1 | 2019-07-10T12:16:53.000Z | 2019-07-10T12:16:53.000Z | pyzfscmds/check.py | johnramsden/pyzfscmds | b5d430ffd0454bc6b09e256aeea67164714d9809 | [
"BSD-3-Clause"
] | 5 | 2018-06-04T02:33:43.000Z | 2020-05-25T22:48:58.000Z | """
Startup checks
"""
import subprocess
import pyzfscmds.system.agnostic as zfssys
def is_root_on_zfs():
"""Check if running root on ZFS"""
system = zfssys.check_valid_system()
if system is None:
raise RuntimeError(f"System is not yet supported by pyzfscmds\n")
root_dataset = None
if z... | 23.705882 | 77 | 0.66005 | 101 | 806 | 5.128713 | 0.504951 | 0.084942 | 0.034749 | 0.088803 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.243176 | 806 | 33 | 78 | 24.424242 | 0.84918 | 0.05335 | 0 | 0.105263 | 0 | 0 | 0.141333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0.105263 | 0 | 0.368421 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0536d3d2cb26fae2a4bb43f1a3c0258c006ca24c | 2,015 | py | Python | dist.py | dladustn95/Dialogue_generator | 004fa49e3140e6c7ceb14448604c8aa45966f70d | [
"MIT"
] | 4 | 2020-09-03T03:39:53.000Z | 2021-08-25T03:53:41.000Z | dist.py | dladustn95/Dialogue_generator | 004fa49e3140e6c7ceb14448604c8aa45966f70d | [
"MIT"
] | null | null | null | dist.py | dladustn95/Dialogue_generator | 004fa49e3140e6c7ceb14448604c8aa45966f70d | [
"MIT"
] | 1 | 2020-09-04T07:04:50.000Z | 2020-09-04T07:04:50.000Z | import sys
def distinct_1(path):
inFile = open(path, mode="r", encoding="utf8")
char_set = set()
all_unigram_count = 0
for line in inFile.readlines():
line = line.strip().split(" ")
for word in line:
char_set.add(word)
all_unigram_count += len(line)
distinct_unig... | 34.152542 | 79 | 0.655583 | 279 | 2,015 | 4.444444 | 0.143369 | 0.159677 | 0.112903 | 0.070968 | 0.737097 | 0.602419 | 0.545968 | 0.545968 | 0.446774 | 0.4 | 0 | 0.015843 | 0.216873 | 2,015 | 59 | 80 | 34.152542 | 0.769962 | 0 | 0 | 0.423077 | 0 | 0 | 0.074405 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057692 | false | 0 | 0.019231 | 0 | 0.134615 | 0.173077 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0537e1ab85799850e99a5e3c6bb0f22f481e1ab8 | 5,036 | py | Python | Scripts/plot_PolarVortexStrength_PDFs.py | zmlabe/StratoVari | c5549f54482a2b05e89bded3e3b0b3c9faa686f3 | [
"MIT"
] | 4 | 2019-11-23T19:44:21.000Z | 2020-02-20T16:54:45.000Z | Scripts/plot_PolarVortexStrength_PDFs.py | zmlabe/StratoVari | c5549f54482a2b05e89bded3e3b0b3c9faa686f3 | [
"MIT"
] | null | null | null | Scripts/plot_PolarVortexStrength_PDFs.py | zmlabe/StratoVari | c5549f54482a2b05e89bded3e3b0b3c9faa686f3 | [
"MIT"
] | 2 | 2019-06-21T19:27:55.000Z | 2021-02-12T19:13:22.000Z | """
Calculate PDFs for polar vortex response
Notes
-----
Author : Zachary Labe
Date : 25 June 2019
"""
### Import modules
import numpy as np
import matplotlib.pyplot as plt
import datetime
import read_MonthlyData as MO
import calc_Utilities as UT
import cmocean
import scipy.stats as sts
### Define director... | 34.027027 | 79 | 0.53475 | 642 | 5,036 | 4.158879 | 0.370717 | 0.053933 | 0.017978 | 0.022472 | 0.233333 | 0.138577 | 0.138577 | 0.138577 | 0.126592 | 0.126592 | 0 | 0.026763 | 0.146743 | 5,036 | 147 | 80 | 34.258503 | 0.594601 | 0.112788 | 0 | 0.141304 | 0 | 0 | 0.116022 | 0.015746 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076087 | 0 | 0.076087 | 0.054348 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
053869e3d79166cc0d895c117eef19a63bd977af | 906 | py | Python | test/test_airtunnel/operators/test_sql_helpers.py | joerg-schneider/airflow-bootstrap | bbed0a2d5addd0dd6221b75c06982f47e0d837d4 | [
"MIT"
] | 23 | 2019-09-30T15:22:58.000Z | 2021-04-09T10:53:23.000Z | test/test_airtunnel/operators/test_sql_helpers.py | joerg-schneider/airflow-bootstrap | bbed0a2d5addd0dd6221b75c06982f47e0d837d4 | [
"MIT"
] | 1 | 2019-11-24T18:37:56.000Z | 2019-11-24T18:37:56.000Z | test/test_airtunnel/operators/test_sql_helpers.py | joerg-schneider/airflow-bootstrap | bbed0a2d5addd0dd6221b75c06982f47e0d837d4 | [
"MIT"
] | 4 | 2020-01-14T03:31:34.000Z | 2021-05-07T21:34:22.000Z | import pytest
from airtunnel.operators.sql import sql_helpers
TEST_SCRIPT = "ddl/test_schema/test_table.sql"
@pytest.mark.parametrize(
argnames=("sql_path",),
argvalues=((TEST_SCRIPT,), ("/" + TEST_SCRIPT,), ((TEST_SCRIPT,),)),
)
def test_load_sql_script(sql_path: str):
# load with a single relative pat... | 26.647059 | 74 | 0.728477 | 129 | 906 | 4.682171 | 0.372093 | 0.134106 | 0.139073 | 0.125828 | 0.319536 | 0.139073 | 0.139073 | 0.139073 | 0.139073 | 0 | 0 | 0.005202 | 0.151214 | 906 | 33 | 75 | 27.454545 | 0.780234 | 0.03532 | 0 | 0 | 0 | 0 | 0.082569 | 0.034404 | 0 | 0 | 0 | 0 | 0.045455 | 1 | 0.181818 | false | 0 | 0.090909 | 0 | 0.272727 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
053914ae8ca6bed144522d26cba1f2a52c6014f5 | 2,582 | py | Python | EE475/Ch6P13.py | PhoeniXuzoo/NU-Projects | a217ad46e6876ceffb3dec1d6e52f775674b2e8b | [
"MIT"
] | null | null | null | EE475/Ch6P13.py | PhoeniXuzoo/NU-Projects | a217ad46e6876ceffb3dec1d6e52f775674b2e8b | [
"MIT"
] | null | null | null | EE475/Ch6P13.py | PhoeniXuzoo/NU-Projects | a217ad46e6876ceffb3dec1d6e52f775674b2e8b | [
"MIT"
] | null | null | null | import numpy as np
import matplotlib.pyplot as plt
## softmax: 0.1 600
## perceptron: 0.05 550
def readData(csvname):
data = np.loadtxt(csvname, delimiter=',')
x = data[:-1, :]
y = data[-1:, :]
return x, y
def softmaxCostFunc(x, y, w):
cost = np.sum(np.log(1 + np.exp(-y*np.transpose(np.dot(np.t... | 29.011236 | 82 | 0.573199 | 390 | 2,582 | 3.769231 | 0.210256 | 0.016327 | 0.020408 | 0.052381 | 0.359184 | 0.338776 | 0.326531 | 0.253061 | 0.253061 | 0.212245 | 0 | 0.034712 | 0.241286 | 2,582 | 88 | 83 | 29.340909 | 0.715671 | 0.01433 | 0 | 0.272727 | 0 | 0 | 0.058268 | 0.008661 | 0 | 0 | 0 | 0 | 0 | 1 | 0.075758 | false | 0 | 0.030303 | 0 | 0.181818 | 0.030303 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
05399638e32621d9f8eab1ecc185a769af934b80 | 416 | py | Python | square.py | Formalhalt/Phyton-Calculators | 25f686e45a8333e9a141568c8f695350bde36bc6 | [
"CC0-1.0"
] | null | null | null | square.py | Formalhalt/Phyton-Calculators | 25f686e45a8333e9a141568c8f695350bde36bc6 | [
"CC0-1.0"
] | null | null | null | square.py | Formalhalt/Phyton-Calculators | 25f686e45a8333e9a141568c8f695350bde36bc6 | [
"CC0-1.0"
] | null | null | null |
height = float(input("Enter height of the square: "))
width = float(input("Enter width of the Square: "))
perimeter = (2 * height) + (2 * width)
area = height * height
print("The perimeter of the square is", perimeter)
print("The area of the square is", area)
close = input("Press X to exit")
#... | 23.111111 | 96 | 0.663462 | 65 | 416 | 4.246154 | 0.446154 | 0.09058 | 0.15942 | 0.094203 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00627 | 0.233173 | 416 | 17 | 97 | 24.470588 | 0.858934 | 0.223558 | 0 | 0 | 0 | 0 | 0.415282 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 |
0541032df78b9eac36f755de81be4a580d936532 | 5,223 | py | Python | src/AoC_2015/d24_sleigh_balance_subset_sum/sleigh_balance.py | derailed-dash/Advent-of-Code | 12378baf33ef4a59958e84eb60e795b6530c22ba | [
"MIT"
] | 9 | 2021-12-31T20:13:03.000Z | 2022-03-05T07:05:06.000Z | src/AoC_2015/d24_sleigh_balance_subset_sum/sleigh_balance.py | derailed-dash/Advent-of-Code | 12378baf33ef4a59958e84eb60e795b6530c22ba | [
"MIT"
] | 1 | 2022-01-25T08:35:04.000Z | 2022-01-29T00:07:00.000Z | src/AoC_2015/d24_sleigh_balance_subset_sum/sleigh_balance.py | derailed-dash/Advent-of-Code | 12378baf33ef4a59958e84eb60e795b6530c22ba | [
"MIT"
] | null | null | null | """
Author: Darren
Date: 02/05/2021
Solving https://adventofcode.com/2015/day/24
We require three bags of equal weight.
Bag 1 in the passenger compartment, needs to have fewest packages.
Bags 2 and 3 to either side.
Solution:
Use subset sum function to work out which combinations of packages adds up to... | 34.589404 | 103 | 0.681409 | 728 | 5,223 | 4.736264 | 0.296703 | 0.039443 | 0.020882 | 0.020882 | 0.180104 | 0.146172 | 0.11891 | 0.082367 | 0.059745 | 0.059745 | 0 | 0.008569 | 0.240283 | 5,223 | 150 | 104 | 34.82 | 0.860383 | 0.406663 | 0 | 0.098361 | 0 | 0 | 0.16522 | 0.05741 | 0 | 0 | 0 | 0 | 0 | 1 | 0.081967 | false | 0 | 0.098361 | 0.016393 | 0.245902 | 0.016393 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0541425822ca873cc1104abcaddefbf0b86d3c05 | 8,946 | py | Python | artap/algorithm_bayesopt.py | tamasorosz/artap | e8df160bfc9c378c3fc96b0b86e92d75d89cf26b | [
"MIT"
] | 5 | 2021-06-13T17:04:37.000Z | 2022-03-04T17:16:06.000Z | artap/algorithm_bayesopt.py | tamasorosz/artap | e8df160bfc9c378c3fc96b0b86e92d75d89cf26b | [
"MIT"
] | null | null | null | artap/algorithm_bayesopt.py | tamasorosz/artap | e8df160bfc9c378c3fc96b0b86e92d75d89cf26b | [
"MIT"
] | 8 | 2021-03-11T18:23:47.000Z | 2022-02-22T11:13:23.000Z | from .problem import Problem
from .algorithm import Algorithm
from .config import artap_root
import time
import numpy as np
import os
import sys
sys.path.append(artap_root + os.sep + "lib" + os.sep)
import bayesopt
from multiprocessing import Process, Pipe, Queue, Manager
# from multiprocessing.managers import Base... | 31.611307 | 127 | 0.59099 | 1,064 | 8,946 | 4.81109 | 0.198308 | 0.041024 | 0.042196 | 0.034382 | 0.43993 | 0.383473 | 0.368236 | 0.352999 | 0.352999 | 0.316273 | 0 | 0.006405 | 0.284485 | 8,946 | 283 | 128 | 31.611307 | 0.793314 | 0.110999 | 0 | 0.331395 | 0 | 0 | 0.143709 | 0.002914 | 0 | 0 | 0 | 0 | 0 | 1 | 0.116279 | false | 0.005814 | 0.052326 | 0.023256 | 0.238372 | 0.069767 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0552a237d536bb49e4a74fe8039eabfd37370524 | 1,596 | py | Python | main.py | WillyHHsu/rest | 1adba475579cb2c0f9b8690b7f822c02b483146a | [
"MIT"
] | null | null | null | main.py | WillyHHsu/rest | 1adba475579cb2c0f9b8690b7f822c02b483146a | [
"MIT"
] | null | null | null | main.py | WillyHHsu/rest | 1adba475579cb2c0f9b8690b7f822c02b483146a | [
"MIT"
] | null | null | null | import os
from fastapi import FastAPI
from fastapi_sqlalchemy import DBSessionMiddleware
from fastapi_sqlalchemy import db
from dotenv import load_dotenv
from sqlalchemy import schema
from db import models as db_model
from schemas import models as schema
load_dotenv()
POSTGRES_USER = os.getenv('POSTGRES_USER')
POSTG... | 29.555556 | 107 | 0.759398 | 211 | 1,596 | 5.545024 | 0.303318 | 0.082051 | 0.068376 | 0.041026 | 0.135897 | 0.066667 | 0.066667 | 0.066667 | 0 | 0 | 0 | 0.002869 | 0.126566 | 1,596 | 53 | 108 | 30.113208 | 0.836442 | 0 | 0 | 0 | 0 | 0 | 0.226817 | 0.102757 | 0 | 0 | 0 | 0 | 0 | 1 | 0.097561 | false | 0.04878 | 0.195122 | 0.04878 | 0.390244 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
05546175c9355e358802def95353b9059d638d79 | 866 | py | Python | src/compas_blender/utilities/data.py | KEERTHANAUDAY/compas | 4d1101cf302f95a4472a01a1265cc64eaec6aa4a | [
"MIT"
] | null | null | null | src/compas_blender/utilities/data.py | KEERTHANAUDAY/compas | 4d1101cf302f95a4472a01a1265cc64eaec6aa4a | [
"MIT"
] | null | null | null | src/compas_blender/utilities/data.py | KEERTHANAUDAY/compas | 4d1101cf302f95a4472a01a1265cc64eaec6aa4a | [
"MIT"
] | null | null | null | import bpy
__all__ = [
"delete_all_data",
]
def delete_all_data():
"""Delete all collections, mesh and curve objects, meshes, curves, materials."""
for collection in bpy.data.collections:
bpy.data.collections.remove(collection)
for obj in bpy.data.objects:
if obj.type == 'MESH':
... | 27.0625 | 84 | 0.51963 | 93 | 866 | 4.666667 | 0.27957 | 0.177419 | 0.103687 | 0.092166 | 0.105991 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.202079 | 866 | 31 | 85 | 27.935484 | 0.628075 | 0.274827 | 0 | 0.1 | 0 | 0 | 0.051613 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0.05 | 0.05 | 0 | 0.1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
055668b6a61ba32a80522c93f3aa4dbcf035bb7b | 2,335 | py | Python | teams_to_tsv.py | FSU-ACM-OSSG/Contest-Server | f9aabd9742a6aa78cbefc685fd2760a1f83d7721 | [
"MIT"
] | 8 | 2019-01-13T21:57:53.000Z | 2021-11-29T12:32:48.000Z | teams_to_tsv.py | FSU-ACM-OSSG/Contest-Server | f9aabd9742a6aa78cbefc685fd2760a1f83d7721 | [
"MIT"
] | 73 | 2018-02-13T00:58:39.000Z | 2022-02-10T11:59:53.000Z | teams_to_tsv.py | FSU-ACM-OSSG/Contest-Server | f9aabd9742a6aa78cbefc685fd2760a1f83d7721 | [
"MIT"
] | 4 | 2018-02-08T18:56:54.000Z | 2019-02-13T19:01:53.000Z | ##############
# team_to_tsv script
# Creates two tsv files for importing into domjudge
# Team info gets stored inside teams.tsv in the following format
# <team_id(int)> <external_id> <category_id> <team_name>
# Account info gets stored inside acccounts.tsv in the following format
# team <team-name> <use... | 36.484375 | 77 | 0.614561 | 330 | 2,335 | 4.272727 | 0.4 | 0.056738 | 0.059574 | 0.028369 | 0.177305 | 0.177305 | 0.116312 | 0.116312 | 0.116312 | 0.066667 | 0 | 0.013411 | 0.265525 | 2,335 | 63 | 78 | 37.063492 | 0.808746 | 0.525054 | 0 | 0.142857 | 0 | 0 | 0.099057 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.035714 | 0.035714 | 0 | 0.035714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
055a29385d9e76d3a424d3a90ed95bbdc4015019 | 4,906 | py | Python | cleverapi/clever_api.py | oncecreated/cleverapi | 39b41860604a909d3e5262c1c795c0741570a653 | [
"MIT"
] | 13 | 2018-06-30T14:16:42.000Z | 2020-03-04T20:23:47.000Z | cleverapi/clever_api.py | oncecreated/cleverapi | 39b41860604a909d3e5262c1c795c0741570a653 | [
"MIT"
] | 11 | 2018-09-09T09:54:27.000Z | 2019-04-15T13:40:19.000Z | cleverapi/clever_api.py | oncecreated/cleverapi | 39b41860604a909d3e5262c1c795c0741570a653 | [
"MIT"
] | 14 | 2018-07-24T17:38:56.000Z | 2020-03-04T20:24:12.000Z | import hashlib
import json
import uuid
import requests
import aiohttp
from .exceptions import ApiResponseError
from .action import Action
class BaseCleverApi():
def __init__(self, access_token, version="5.73"):
self.access_token = access_token
self.api_version = version
self.device_id = ... | 28.858824 | 91 | 0.584183 | 580 | 4,906 | 4.75 | 0.244828 | 0.047187 | 0.07078 | 0.054446 | 0.422505 | 0.324138 | 0.311434 | 0.291833 | 0.272958 | 0.22069 | 0 | 0.013691 | 0.285365 | 4,906 | 169 | 92 | 29.029586 | 0.772105 | 0 | 0 | 0.319672 | 0 | 0 | 0.148797 | 0.043416 | 0 | 0 | 0 | 0 | 0 | 1 | 0.155738 | false | 0 | 0.057377 | 0.040984 | 0.377049 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
055ac96948dda92e22c15b66cc5f914681a2cae3 | 5,350 | py | Python | blagging/views.py | androiddrew/blag-fork | 249144c9a017581a6c5e387f5d86f33421d82ae3 | [
"MIT"
] | null | null | null | blagging/views.py | androiddrew/blag-fork | 249144c9a017581a6c5e387f5d86f33421d82ae3 | [
"MIT"
] | 7 | 2017-01-03T15:34:30.000Z | 2017-07-13T15:27:08.000Z | blagging/views.py | androiddrew/blag-fork | 249144c9a017581a6c5e387f5d86f33421d82ae3 | [
"MIT"
] | null | null | null | from datetime import datetime as dt
from flask import render_template, redirect, request, url_for, abort
from flask_login import login_user, logout_user, login_required, current_user, login_url
from . import app, db, login_manager
from .models import Post, Tag, Author, tags as Post_Tag
from .forms import LoginForm, Pos... | 33.647799 | 119 | 0.65271 | 715 | 5,350 | 4.688112 | 0.197203 | 0.054296 | 0.071599 | 0.027446 | 0.318914 | 0.246718 | 0.170048 | 0.170048 | 0.148568 | 0.148568 | 0 | 0.010576 | 0.204673 | 5,350 | 158 | 120 | 33.860759 | 0.777203 | 0.049159 | 0 | 0.181034 | 0 | 0 | 0.082687 | 0.009541 | 0 | 0 | 0 | 0 | 0 | 1 | 0.155172 | false | 0.008621 | 0.051724 | 0.034483 | 0.387931 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
055cc455230997c5276c879e8d734a4e3c932b7e | 1,652 | py | Python | g13gui/g13/manager_tests.py | jtgans/g13gui | aa07ee91b0fd89eb8d9991291e11ca3a97ca11cc | [
"MIT"
] | 3 | 2021-10-16T01:28:24.000Z | 2021-12-07T21:49:54.000Z | g13gui/g13/manager_tests.py | jtgans/g13gui | aa07ee91b0fd89eb8d9991291e11ca3a97ca11cc | [
"MIT"
] | 12 | 2021-05-09T16:57:18.000Z | 2021-06-16T19:20:57.000Z | g13gui/g13/manager_tests.py | jtgans/g13gui | aa07ee91b0fd89eb8d9991291e11ca3a97ca11cc | [
"MIT"
] | null | null | null | #!/usr/bin/python
import unittest
import time
import usb.util
from g13gui.observer.observer import ObserverTestCase
from g13gui.model.prefs import Preferences
from g13gui.g13.manager import DeviceManager
from g13gui.g13.manager import LCD_BUFFER_SIZE
class DeviceManagerTests(ObserverTestCase):
def setUp(self):
... | 24.656716 | 65 | 0.598668 | 218 | 1,652 | 4.472477 | 0.270642 | 0.082051 | 0.055385 | 0.101538 | 0.427692 | 0.374359 | 0.286154 | 0.286154 | 0.286154 | 0.286154 | 0 | 0.054608 | 0.290557 | 1,652 | 66 | 66 | 25.030303 | 0.777304 | 0.009685 | 0 | 0.195652 | 0 | 0 | 0.004893 | 0 | 0 | 0 | 0.004893 | 0 | 0.021739 | 1 | 0.108696 | false | 0 | 0.152174 | 0 | 0.282609 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
055df8a4d5bc728dd507e18c15a01996fcd7eeb9 | 754 | py | Python | mpikat/utils/unix_socket.py | ewanbarr/mpikat | 1c9a7376f9e79dfeec5a151d8f483d6fdf3e7cc9 | [
"MIT"
] | 2 | 2018-11-12T12:17:27.000Z | 2019-02-08T15:44:14.000Z | mpikat/utils/unix_socket.py | ewanbarr/mpikat | 1c9a7376f9e79dfeec5a151d8f483d6fdf3e7cc9 | [
"MIT"
] | 3 | 2018-08-03T12:05:20.000Z | 2018-08-03T12:13:53.000Z | mpikat/utils/unix_socket.py | ewanbarr/mpikat | 1c9a7376f9e79dfeec5a151d8f483d6fdf3e7cc9 | [
"MIT"
] | 4 | 2019-01-21T16:31:34.000Z | 2019-12-03T09:27:15.000Z | import socket
import logging
log = logging.getLogger('mpikat.utils.unix_socket')
class UDSClient(object):
def __init__(self, socket_name):
self._socket_name = socket_name
self._sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
try:
self._sock.connect(self._socket_name)
... | 26.928571 | 78 | 0.635279 | 93 | 754 | 4.913978 | 0.419355 | 0.122538 | 0.122538 | 0.078775 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012456 | 0.254642 | 754 | 27 | 79 | 27.925926 | 0.800712 | 0 | 0 | 0.095238 | 0 | 0 | 0.092838 | 0.03183 | 0 | 0 | 0 | 0 | 0 | 1 | 0.190476 | false | 0 | 0.095238 | 0 | 0.380952 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0560aa251cb9f57348aa3861ec51b4ed5e27e782 | 1,021 | py | Python | mlearn/static/py/funcs.py | achandir/django-machine-learning-beta | 9604953addee0c1bea90d308b4248a69d332f5a8 | [
"BSD-3-Clause"
] | null | null | null | mlearn/static/py/funcs.py | achandir/django-machine-learning-beta | 9604953addee0c1bea90d308b4248a69d332f5a8 | [
"BSD-3-Clause"
] | null | null | null | mlearn/static/py/funcs.py | achandir/django-machine-learning-beta | 9604953addee0c1bea90d308b4248a69d332f5a8 | [
"BSD-3-Clause"
] | null | null | null | from django.core.files.storage import FileSystemStorage
from django.conf import settings
import os
class OverwriteStorage(FileSystemStorage):
def get_available_name(self, name, max_length=None):
"""
Returns a filename that's free on the target storage system, and
available for new... | 30.029412 | 84 | 0.539667 | 112 | 1,021 | 4.830357 | 0.616071 | 0.036969 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.369246 | 1,021 | 33 | 85 | 30.939394 | 0.840062 | 0.233105 | 0 | 0 | 0 | 0 | 0.010072 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0.047619 | 0.142857 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
056594b9b59d36dfeef52d15b7455e3dcb8e0bf9 | 1,362 | py | Python | federateme.py | elitest/federateme.py | 887d27ddae814d7ed03fd7c993493d927d2492d5 | [
"Unlicense"
] | null | null | null | federateme.py | elitest/federateme.py | 887d27ddae814d7ed03fd7c993493d927d2492d5 | [
"Unlicense"
] | null | null | null | federateme.py | elitest/federateme.py | 887d27ddae814d7ed03fd7c993493d927d2492d5 | [
"Unlicense"
] | 1 | 2021-04-13T20:02:14.000Z | 2021-04-13T20:02:14.000Z | #!/usr/bin/env python3
import boto.utils, json, requests
def detect_ec2():
try:
r = requests.get('http://169.254.169.254/latest/meta-data/ami-id')
print(r)
# probably should check for something in the response here.
return True
except:
return False
def gen_link():
... | 41.272727 | 175 | 0.642438 | 162 | 1,362 | 5.339506 | 0.537037 | 0.09711 | 0.041619 | 0.069364 | 0.388439 | 0.388439 | 0.388439 | 0.388439 | 0.388439 | 0.277457 | 0 | 0.023297 | 0.180617 | 1,362 | 32 | 176 | 42.5625 | 0.751792 | 0.058003 | 0 | 0 | 0 | 0 | 0.440281 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.045455 | 0 | 0.272727 | 0.136364 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
056746e5dbf852638494e8c736e9cb3208ccd43b | 1,964 | py | Python | recycler.py | LAION-AI/crawlingathome | 43a477777fb403046d67224747cde1dac9f2094a | [
"MIT"
] | 11 | 2021-06-02T03:46:52.000Z | 2021-09-11T22:19:12.000Z | recycler.py | LAION-AI/crawlingathome | 43a477777fb403046d67224747cde1dac9f2094a | [
"MIT"
] | 9 | 2021-06-14T07:46:20.000Z | 2021-08-28T22:50:46.000Z | recycler.py | LAION-AI/crawlingathome | 43a477777fb403046d67224747cde1dac9f2094a | [
"MIT"
] | 7 | 2021-06-01T11:59:36.000Z | 2022-03-20T13:44:18.000Z | import numpy as np
from requests import session
from .core import CPUClient, GPUClient, HybridClient
from .temp import TempCPUWorker
from .errors import *
# Dump a client's attributes into a dictionary so that it can be used remotely.
def dump(c):
try:
return {
"_type": c.type,
"u... | 35.709091 | 118 | 0.614562 | 282 | 1,964 | 4.159574 | 0.280142 | 0.047741 | 0.051151 | 0.043478 | 0.098039 | 0.098039 | 0 | 0 | 0 | 0 | 0 | 0.007591 | 0.26222 | 1,964 | 54 | 119 | 36.37037 | 0.801932 | 0.098778 | 0 | 0 | 0 | 0 | 0.106395 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.044444 | false | 0 | 0.111111 | 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 |
0567803d049b2b08966e5134ef97c6b64fdfc130 | 1,921 | py | Python | config.py | uncharted-distil/distil-auto-ml | 244661942cff11617c81830d7f58a9f9b5c9499d | [
"Apache-2.0"
] | 2 | 2019-06-20T23:32:10.000Z | 2021-01-24T22:32:07.000Z | config.py | uncharted-distil/distil-auto-ml | 244661942cff11617c81830d7f58a9f9b5c9499d | [
"Apache-2.0"
] | 157 | 2019-04-09T18:40:42.000Z | 2021-05-06T13:44:33.000Z | config.py | uncharted-distil/distil-auto-ml | 244661942cff11617c81830d7f58a9f9b5c9499d | [
"Apache-2.0"
] | 1 | 2019-07-12T22:17:46.000Z | 2019-07-12T22:17:46.000Z | import os
DB_LOCATION = os.getenv("DB_URI", "test.db")
# Debug flag to output more verbose logging
# - defaults to False
DEBUG = os.getenv("DEBUG", False)
# Configurable output directory for saving machine learning model pickles
# - defaults to ../output
OUTPUT_DIR = os.getenv("OUTPUT_DIR", "output")
# Port to make... | 34.303571 | 85 | 0.753774 | 278 | 1,921 | 5.07554 | 0.464029 | 0.096386 | 0.038979 | 0.031184 | 0.024096 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015634 | 0.134305 | 1,921 | 55 | 86 | 34.927273 | 0.832832 | 0.476835 | 0 | 0 | 0 | 0 | 0.296146 | 0.046653 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.052632 | 0 | 0.052632 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0569e6f550e0e8fb6bd11e2714deff2f7f71997f | 2,274 | py | Python | common/settings.py | hehanlin/jobbole | 46d5fa26cfa1ebd5c6c3621f615ffecbb4152fa9 | [
"BSD-3-Clause"
] | 2 | 2018-01-18T09:16:16.000Z | 2022-02-12T08:59:23.000Z | common/settings.py | hehanlin/jobbole | 46d5fa26cfa1ebd5c6c3621f615ffecbb4152fa9 | [
"BSD-3-Clause"
] | null | null | null | common/settings.py | hehanlin/jobbole | 46d5fa26cfa1ebd5c6c3621f615ffecbb4152fa9 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
import os
os_env = os.environ
class Config(object):
COMMON_PATH = os.path.abspath(os.path.dirname(__file__)) # This directory
PROJECT_ROOT = os.path.abspath(os.path.join(COMMON_PATH, os.pardir))
DATABASE_URL = "postgresql://he:he@localhost:5432/jobbole"
class CeleryConfig(obje... | 30.72973 | 100 | 0.554969 | 226 | 2,274 | 5.40708 | 0.5 | 0.045008 | 0.036825 | 0.02455 | 0.297872 | 0.266776 | 0.266776 | 0 | 0 | 0 | 0 | 0.038841 | 0.286719 | 2,274 | 73 | 101 | 31.150685 | 0.71455 | 0.08883 | 0 | 0.238095 | 0 | 0.015873 | 0.369238 | 0.113052 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.031746 | 0 | 0.238095 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
056ef751fabceeae1db74a620559c093e5b86dfa | 10,935 | py | Python | load-testing/locustfile.py | MaksimAniskov/aws-global-odoo | 0f225a2f4ede3215264fd3d3912fa7b4e87d4a8f | [
"MIT"
] | null | null | null | load-testing/locustfile.py | MaksimAniskov/aws-global-odoo | 0f225a2f4ede3215264fd3d3912fa7b4e87d4a8f | [
"MIT"
] | 1 | 2022-01-26T08:58:34.000Z | 2022-01-26T08:58:34.000Z | load-testing/locustfile.py | MaksimAniskov/aws-global-odoo | 0f225a2f4ede3215264fd3d3912fa7b4e87d4a8f | [
"MIT"
] | null | null | null | from locust import HttpUser, task, between
import re
import random
import json
import os
class OdooUser:
if os.environ.get('HOST'):
host = os.environ.get('HOST')
wait_time = between(20, 40)
def on_start(self):
response = self.client.get("/web/login")
assert response.status_code =... | 34.714286 | 102 | 0.438317 | 921 | 10,935 | 4.990228 | 0.205212 | 0.036554 | 0.031332 | 0.02785 | 0.396649 | 0.321149 | 0.304395 | 0.271758 | 0.256963 | 0.248695 | 0 | 0.016062 | 0.424966 | 10,935 | 314 | 103 | 34.824841 | 0.714854 | 0.007407 | 0 | 0.340351 | 0 | 0 | 0.227629 | 0.053636 | 0 | 0 | 0 | 0.003185 | 0.031579 | 1 | 0.017544 | false | 0.003509 | 0.021053 | 0 | 0.059649 | 0.003509 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
05702fee1b4a5bd092fcebf23643ddbeb574cdf2 | 939 | py | Python | code/model/testSpeedPolar.py | PBarde/IBoatPIE | dd8038f981940b732be979b49e9b14102c3d4cca | [
"MIT"
] | 1 | 2018-02-22T15:38:01.000Z | 2018-02-22T15:38:01.000Z | code/model/testSpeedPolar.py | PBarde/IBoatPIE | dd8038f981940b732be979b49e9b14102c3d4cca | [
"MIT"
] | null | null | null | code/model/testSpeedPolar.py | PBarde/IBoatPIE | dd8038f981940b732be979b49e9b14102c3d4cca | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue Jun 13 18:03:27 2017
@author: paul
"""
from SimulatorTLKT import Boat
from SimulatorTLKT import FIT_VELOCITY
import numpy as np
import matplotlib
import matplotlib.pyplot as plt
from math import pi
matplotlib.rcParams.update({'font.size': 22})
pOfS=... | 25.378378 | 85 | 0.690096 | 154 | 939 | 4.155844 | 0.590909 | 0.009375 | 0.071875 | 0.025 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045623 | 0.136315 | 939 | 36 | 86 | 26.083333 | 0.743527 | 0.246006 | 0 | 0 | 0 | 0 | 0.110632 | 0.063218 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
05705dae303e8a7ae7b9765283158fc78c1a5987 | 3,387 | py | Python | src/mcxlib/usage_examples.py | carlashley/meecxprofile | 1fe776b3f23dd9b224d87dd155cc1681cf13fb5e | [
"Apache-2.0"
] | 2 | 2021-09-10T12:52:43.000Z | 2021-09-10T15:38:29.000Z | src/mcxlib/usage_examples.py | carlashley/meecxprofile | 1fe776b3f23dd9b224d87dd155cc1681cf13fb5e | [
"Apache-2.0"
] | null | null | null | src/mcxlib/usage_examples.py | carlashley/meecxprofile | 1fe776b3f23dd9b224d87dd155cc1681cf13fb5e | [
"Apache-2.0"
] | null | null | null | from pprint import pformat
ds_obj_mcx_note = ('The MCX data returned back from \'dscl\' is a string nested in the attribute queried.\n'
'Settings can be filtered by using key filters.\n'
'Multiple values can be filtered for specific domains by comma seperating the values\n'
... | 91.540541 | 138 | 0.437851 | 281 | 3,387 | 5.096085 | 0.330961 | 0.089385 | 0.061453 | 0.03352 | 0.282821 | 0.243017 | 0.166201 | 0.120112 | 0 | 0 | 0 | 0 | 0.472394 | 3,387 | 36 | 139 | 94.083333 | 0.801343 | 0 | 0 | 0.0625 | 0 | 0 | 0.379392 | 0.10127 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.03125 | 0 | 0.03125 | 0.03125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
0571570e4ea6cc0ac98e3e348473a3292c2d2151 | 797 | py | Python | program_param.py | duszek123/Example_Project | 72e65ce5f31774c250cf388dbfb0a6d2a6b3ffeb | [
"MIT"
] | null | null | null | program_param.py | duszek123/Example_Project | 72e65ce5f31774c250cf388dbfb0a6d2a6b3ffeb | [
"MIT"
] | null | null | null | program_param.py | duszek123/Example_Project | 72e65ce5f31774c250cf388dbfb0a6d2a6b3ffeb | [
"MIT"
] | null | null | null | import torch
import cv2
#data dir with train i validation picture
data_dir = '/home/pawel/Pulpit/picture_data'
#source video stream
camera_source = '/dev/video2'
#flag, false, not used
save = False
#input picture size (px)
input_size = (224,224)
size_pict = input_size[0]
#part of the data from the database intended f... | 24.151515 | 71 | 0.756587 | 130 | 797 | 4.515385 | 0.569231 | 0.074957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022255 | 0.154329 | 797 | 32 | 72 | 24.90625 | 0.848665 | 0.378921 | 0 | 0 | 0 | 0 | 0.161826 | 0.064315 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
0572b494de8de54123140e45c9c69a2ed0fbad3b | 501 | py | Python | models/fields/__init__.py | hengwei-chan/3D_SBDD | eda6d51aaf01ef25581a46920a25161678fab76d | [
"MIT"
] | 67 | 2021-12-02T05:53:44.000Z | 2022-03-31T07:21:26.000Z | models/fields/__init__.py | hengwei-chan/3D_SBDD | eda6d51aaf01ef25581a46920a25161678fab76d | [
"MIT"
] | 13 | 2021-12-05T14:23:46.000Z | 2022-03-25T21:07:20.000Z | models/fields/__init__.py | hengwei-chan/3D_SBDD | eda6d51aaf01ef25581a46920a25161678fab76d | [
"MIT"
] | 16 | 2022-01-11T11:48:24.000Z | 2022-03-27T19:20:58.000Z | from .classifier import SpatialClassifier
def get_field(config, num_classes, num_indicators, in_channels):
if config.name == 'classifier':
return SpatialClassifier(
num_classes = num_classes,
num_indicators = num_indicators,
in_channels = in_channels,
num_fi... | 31.3125 | 68 | 0.628743 | 51 | 501 | 5.941176 | 0.490196 | 0.09901 | 0.128713 | 0.151815 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.293413 | 501 | 15 | 69 | 33.4 | 0.855932 | 0 | 0 | 0 | 0 | 0 | 0.053892 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.076923 | 0 | 0.230769 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
0572d30a3c1b204b7741919022f74dedf09c6c6c | 1,693 | py | Python | get_data/__init__.py | BrunoASNascimento/inmet_api | ec663543b1f6a77900166df2e6bf64d1f26f910d | [
"MIT"
] | null | null | null | get_data/__init__.py | BrunoASNascimento/inmet_api | ec663543b1f6a77900166df2e6bf64d1f26f910d | [
"MIT"
] | null | null | null | get_data/__init__.py | BrunoASNascimento/inmet_api | ec663543b1f6a77900166df2e6bf64d1f26f910d | [
"MIT"
] | null | null | null | from datetime import datetime, timedelta
import requests
import pandas as pd
def cleaner_data(data):
columns = ['ESTACAO', 'LATITUDE', 'LONGITUDE', 'ALTITUDE', 'ANO', 'MES', 'DIA', 'HORA', 'TEMP', 'TMAX', 'TMIN', 'UR', 'URMAX', 'URMIN',
'TD', 'TDMAX', 'TDMIN', 'PRESSAONNM', 'PRESSAONNM_MAX', 'PRESS... | 32.557692 | 151 | 0.559362 | 200 | 1,693 | 4.605 | 0.46 | 0.021716 | 0.032573 | 0.02823 | 0.247557 | 0.247557 | 0.247557 | 0.247557 | 0.247557 | 0.247557 | 0 | 0.008026 | 0.264028 | 1,693 | 51 | 152 | 33.196078 | 0.73114 | 0.012995 | 0 | 0 | 0 | 0 | 0.244005 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0.026316 | 0.078947 | 0 | 0.157895 | 0.078947 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
057648a66341634f2bd91398e33248914e65d08f | 435 | py | Python | src/pynorare/cli_util.py | concepticon/pynorare | 3cf5ea2d1597c5acc84963f781ff49d96b4d7e02 | [
"MIT"
] | null | null | null | src/pynorare/cli_util.py | concepticon/pynorare | 3cf5ea2d1597c5acc84963f781ff49d96b4d7e02 | [
"MIT"
] | 5 | 2020-07-20T11:05:07.000Z | 2022-03-11T15:51:52.000Z | src/pynorare/cli_util.py | concepticon/pynorare | 3cf5ea2d1597c5acc84963f781ff49d96b4d7e02 | [
"MIT"
] | null | null | null | from pyconcepticon import Concepticon
from pynorare.dataset import get_dataset_cls
def add_datasets(parser):
parser.add_argument(
'dataset',
nargs='+',
help='select your dataset',
type=str)
def iter_datasets(args):
for dsid in args.dataset:
cls = get_dataset_cls(args... | 24.166667 | 81 | 0.691954 | 55 | 435 | 5.345455 | 0.545455 | 0.102041 | 0.088435 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.206897 | 435 | 17 | 82 | 25.588235 | 0.852174 | 0 | 0 | 0 | 0 | 0 | 0.062069 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
057dcb0e3d38cc7460f6b046f1c4949c4d391cb9 | 2,478 | py | Python | sktime/transformations/hierarchical/tests/test_aggregate.py | biologioholic/sktime | 9d0391a04b11d22bd783b452f01aa5b4529b41a2 | [
"BSD-3-Clause"
] | 1 | 2021-12-22T02:45:39.000Z | 2021-12-22T02:45:39.000Z | sktime/transformations/hierarchical/tests/test_aggregate.py | biologioholic/sktime | 9d0391a04b11d22bd783b452f01aa5b4529b41a2 | [
"BSD-3-Clause"
] | null | null | null | sktime/transformations/hierarchical/tests/test_aggregate.py | biologioholic/sktime | 9d0391a04b11d22bd783b452f01aa5b4529b41a2 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python3 -u
# -*- coding: utf-8 -*-
"""Tests for hierarchical aggregator."""
# copyright: sktime developers, BSD-3-Clause License (see LICENSE file)
__author__ = ["ciaran-g"]
import pytest
from sktime.transformations.hierarchical.aggregate import Aggregator
from sktime.utils._testing.hierarchical impor... | 33.486486 | 80 | 0.717514 | 341 | 2,478 | 5.014663 | 0.343109 | 0.023392 | 0.088889 | 0.050877 | 0.222807 | 0.162573 | 0.111111 | 0.074854 | 0.074854 | 0.074854 | 0 | 0.013561 | 0.196529 | 2,478 | 73 | 81 | 33.945205 | 0.845304 | 0.305892 | 0 | 0.205128 | 0 | 0 | 0.208283 | 0.012605 | 0 | 0 | 0 | 0 | 0.128205 | 1 | 0.051282 | false | 0 | 0.076923 | 0 | 0.128205 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
057e82bc7eee8bfd854f64e90c47dfe5089a763d | 563 | py | Python | doni/tests/unit/api/test_availability_window.py | ChameleonCloud/doni | e280a0fddf4ee7d2abb69ceed49a9728e88cf99b | [
"Apache-2.0"
] | null | null | null | doni/tests/unit/api/test_availability_window.py | ChameleonCloud/doni | e280a0fddf4ee7d2abb69ceed49a9728e88cf99b | [
"Apache-2.0"
] | 49 | 2021-03-16T14:58:18.000Z | 2022-03-14T22:06:36.000Z | doni/tests/unit/api/test_availability_window.py | ChameleonCloud/doni | e280a0fddf4ee7d2abb69ceed49a9728e88cf99b | [
"Apache-2.0"
] | null | null | null | from flask.testing import FlaskClient
from doni.tests.unit import utils
def test_list_availability_windows(
mocker, user_auth_headers, client: "FlaskClient", database: "utils.DBFixtures"
):
mock_authorize = mocker.patch("doni.api.availability_window.authorize")
hw = database.add_hardware()
res = clie... | 29.631579 | 82 | 0.708703 | 68 | 563 | 5.661765 | 0.617647 | 0.041558 | 0.077922 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008584 | 0.172291 | 563 | 18 | 83 | 31.277778 | 0.817597 | 0 | 0 | 0 | 0 | 0 | 0.225577 | 0.134991 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.066667 | false | 0 | 0.133333 | 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 |
057fec44c986714a8f02d47b39f9f891463a6252 | 848 | py | Python | peuler_012_better.py | bayramcicek/mini-programs | 3f876e3274b7beeb5e7413ac9c5275813d9f0d2d | [
"Unlicense"
] | null | null | null | peuler_012_better.py | bayramcicek/mini-programs | 3f876e3274b7beeb5e7413ac9c5275813d9f0d2d | [
"Unlicense"
] | null | null | null | peuler_012_better.py | bayramcicek/mini-programs | 3f876e3274b7beeb5e7413ac9c5275813d9f0d2d | [
"Unlicense"
] | null | null | null | #!/usr/bin/python3
import math
class Solution:
@staticmethod
def number_of_factor(self):
count = 0
if self == 1:
return 1
for i in range(1, math.ceil(math.sqrt(self))):
if self % i == 0:
count += 2
if math.ceil(math.sqrt(self)) == math.... | 20.190476 | 69 | 0.5625 | 122 | 848 | 3.770492 | 0.344262 | 0.076087 | 0.078261 | 0.047826 | 0.13913 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033784 | 0.301887 | 848 | 41 | 70 | 20.682927 | 0.743243 | 0.21934 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.043478 | 0 | 0.217391 | 0.043478 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
05803580ad5cf536a86b26fbe2b79573b774b99b | 9,253 | py | Python | swyft/plot/plot.py | undark-lab/swyft | 50aa524e2f3a2b3d1354543178ff72bc7f055a35 | [
"MIT"
] | 104 | 2020-11-26T09:46:03.000Z | 2022-03-18T06:22:03.000Z | swyft/plot/plot.py | cweniger/swyft | 2c0ed514622a37e8ec4e406b99a8327ecafb7ab4 | [
"MIT"
] | 83 | 2021-03-02T15:54:26.000Z | 2022-03-10T08:09:05.000Z | swyft/plot/plot.py | undark-lab/swyft | 50aa524e2f3a2b3d1354543178ff72bc7f055a35 | [
"MIT"
] | 10 | 2021-02-04T14:27:36.000Z | 2022-03-31T17:39:34.000Z | import numpy as np
import pylab as plt
from scipy.integrate import simps
def grid_interpolate_samples(x, y, bins=1000, return_norm=False):
idx = np.argsort(x)
x, y = x[idx], y[idx]
x_grid = np.linspace(x[0], x[-1], bins)
y_grid = np.interp(x_grid, x, y)
norm = simps(y_grid, x_grid)
y_grid_norm... | 29.848387 | 88 | 0.514428 | 1,232 | 9,253 | 3.770292 | 0.196429 | 0.019376 | 0.013563 | 0.020667 | 0.391173 | 0.345748 | 0.295156 | 0.257912 | 0.213563 | 0.185145 | 0 | 0.025182 | 0.347671 | 9,253 | 309 | 89 | 29.944984 | 0.744367 | 0.152167 | 0 | 0.328947 | 0 | 0 | 0.018922 | 0 | 0 | 0 | 0 | 0.003236 | 0 | 1 | 0.026316 | false | 0.004386 | 0.013158 | 0 | 0.074561 | 0.004386 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
05819bbe1c0902e6600dadc33453e92046d7a1ff | 3,038 | py | Python | control-gastos/python/main.py | manuelduarte077/Ejercicios-con-Python-NodeJS | d7b26fdeeb1640272847274b99b2f607145d58a4 | [
"MIT"
] | 1 | 2021-07-13T18:43:59.000Z | 2021-07-13T18:43:59.000Z | control-gastos/python/main.py | manuelduarte077/Ejercicios-con-Python-NodeJS | d7b26fdeeb1640272847274b99b2f607145d58a4 | [
"MIT"
] | null | null | null | control-gastos/python/main.py | manuelduarte077/Ejercicios-con-Python-NodeJS | d7b26fdeeb1640272847274b99b2f607145d58a4 | [
"MIT"
] | null | null | null | import os
from tabulate import tabulate
import requests
def iniciar():
os.system('cls')
while True:
print('Seleccione una opción: ')
print('\t1. Registrar movimiento')
print('\t2. Ver todos los movimientos')
print('\t3. Buscar un movimiento')
print('\t4. Modificar un mo... | 31 | 79 | 0.600066 | 347 | 3,038 | 5.201729 | 0.26513 | 0.07313 | 0.046537 | 0.055402 | 0.515235 | 0.470914 | 0.40554 | 0.40554 | 0.263712 | 0.193906 | 0 | 0.016949 | 0.262014 | 3,038 | 97 | 80 | 31.319588 | 0.788136 | 0 | 0 | 0.289157 | 0 | 0 | 0.301185 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.072289 | false | 0 | 0.036145 | 0 | 0.108434 | 0.156627 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
05826df3789ad47bc005b4bcd34765514c7e2fd2 | 409 | py | Python | examples/idioms/programs/016.1530-depth-first-traversing-of-a-binary-tree.py | laowantong/paroxython | 4626798a60eeaa765dbfab9e63e04030c9fcb1d0 | [
"MIT"
] | 31 | 2020-05-02T13:34:26.000Z | 2021-06-06T17:25:52.000Z | examples/idioms/programs/016.1530-depth-first-traversing-of-a-binary-tree.py | laowantong/paroxython | 4626798a60eeaa765dbfab9e63e04030c9fcb1d0 | [
"MIT"
] | 108 | 2019-11-18T19:41:52.000Z | 2022-03-18T13:58:17.000Z | examples/idioms/programs/016.1530-depth-first-traversing-of-a-binary-tree.py | laowantong/paroxython | 4626798a60eeaa765dbfab9e63e04030c9fcb1d0 | [
"MIT"
] | 4 | 2020-05-19T08:57:44.000Z | 2020-09-21T08:53:46.000Z | """Depth-first traversing of a binary tree.
Call a function _f on every node of binary tree _bt, in depth-first infix order
Source: programming-idioms.org
"""
# Implementation author: TinyFawks
# Created on 2016-02-18T08:50:27.130406Z
# Last modified on 2016-02-18T09:16:52.625429Z
# Version 2
# Recursive DFS.
def... | 18.590909 | 79 | 0.694377 | 67 | 409 | 4.208955 | 0.716418 | 0.053191 | 0.056738 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125767 | 0.202934 | 409 | 21 | 80 | 19.47619 | 0.739264 | 0.723716 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
05830297f5e87cadfedcaa83499c7c9b2affb118 | 3,746 | py | Python | ServeRest-APITesting-Python/Tests/test_cart.py | barbosamp/automacao-api-rest-jornada-learning | 9ceb57bc6f4d845c35a149d760775c10c3a38614 | [
"MIT"
] | 2 | 2020-11-20T18:40:32.000Z | 2021-04-20T23:13:13.000Z | ServeRest-APITesting-Python/Tests/test_cart.py | barbosamp/automacao-api-rest-jornada-learning | 9ceb57bc6f4d845c35a149d760775c10c3a38614 | [
"MIT"
] | 1 | 2020-10-22T16:16:40.000Z | 2020-10-22T16:16:40.000Z | ServeRest-APITesting-Python/Tests/test_cart.py | kpedron/automacao-api-rest-jornada-learning | 50ceaf9f43b03383cc65e92460b6b9a398a88e02 | [
"MIT"
] | 2 | 2020-10-16T02:37:20.000Z | 2020-10-31T13:54:46.000Z | import unittest
import requests
import json
import pytest
BASE_URL = "https://api.serverest.dev"
class Products(unittest.TestCase):
def setUp(self):
# Do authentication
# Cart endpoint requires authentication
full_url = BASE_URL + "/login"
body = {
"email": "fulano@qa... | 32.017094 | 108 | 0.591564 | 406 | 3,746 | 5.317734 | 0.278325 | 0.045391 | 0.095878 | 0.045391 | 0.609541 | 0.579435 | 0.566929 | 0.53358 | 0.51598 | 0.432145 | 0 | 0.012901 | 0.317138 | 3,746 | 116 | 109 | 32.293103 | 0.831118 | 0.12173 | 0 | 0.351351 | 0 | 0 | 0.200672 | 0.007941 | 0 | 0 | 0 | 0 | 0.121622 | 1 | 0.081081 | false | 0.013514 | 0.054054 | 0 | 0.148649 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |