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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0587d07321592ddb102cc4ed98640454fd0d67f7 | 4,589 | py | Python | RockPaperScissors.py | andreimaftei28/projects-on-JetBrainAcademy | 8c2b8ab7bab5757db94e9f0b6d55c33852f64ee1 | [
"MIT"
] | null | null | null | RockPaperScissors.py | andreimaftei28/projects-on-JetBrainAcademy | 8c2b8ab7bab5757db94e9f0b6d55c33852f64ee1 | [
"MIT"
] | null | null | null | RockPaperScissors.py | andreimaftei28/projects-on-JetBrainAcademy | 8c2b8ab7bab5757db94e9f0b6d55c33852f64ee1 | [
"MIT"
] | 3 | 2020-12-19T13:48:06.000Z | 2021-08-12T18:36:33.000Z | """Rock Paper Scisssors game using OOP"""
import random
from tempfile import mkstemp
from shutil import move, copymode
from os import fdopen, remove
class RockPaperScissors:
"""initializing the 'global' atributtes"""
def __init__(self):
self.defeat = {"scissors": "rock", "paper" : "scissors"... | 33.014388 | 123 | 0.504249 | 507 | 4,589 | 4.491124 | 0.319527 | 0.043478 | 0.022398 | 0.022398 | 0.153711 | 0.119455 | 0.089592 | 0.066755 | 0.066755 | 0.066755 | 0 | 0.007431 | 0.38418 | 4,589 | 138 | 124 | 33.253623 | 0.798301 | 0.134234 | 0 | 0.21875 | 0 | 0 | 0.127648 | 0.019068 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052083 | false | 0 | 0.041667 | 0 | 0.114583 | 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 |
0589b9d3ea2a64dcded6b8ab04bba1a44e732a41 | 2,813 | py | Python | src/cbc_binary_toolkit/schemas.py | carbonblack/cbc-binary-toolkit | 92c90b80e3c3e0b5c2473ef2086d2ce2fb651db4 | [
"MIT"
] | 8 | 2020-05-12T18:08:52.000Z | 2021-12-27T06:11:00.000Z | src/cbc_binary_toolkit/schemas.py | carbonblack/cbc-binary-toolkit | 92c90b80e3c3e0b5c2473ef2086d2ce2fb651db4 | [
"MIT"
] | 4 | 2020-05-13T16:07:49.000Z | 2020-06-30T18:47:14.000Z | src/cbc_binary_toolkit/schemas.py | carbonblack/cbc-binary-toolkit | 92c90b80e3c3e0b5c2473ef2086d2ce2fb651db4 | [
"MIT"
] | 3 | 2020-05-16T19:57:57.000Z | 2020-11-01T08:43:31.000Z | # -*- coding: utf-8 -*-
# *******************************************************
# Copyright (c) VMware, Inc. 2020-2021. All Rights Reserved.
# SPDX-License-Identifier: MIT
# *******************************************************
# *
# * DISCLAIMER. THIS PROGRAM IS PROVIDED TO YOU "AS IS" WITHOUT
# * WARRANTIES OR C... | 31.606742 | 93 | 0.542126 | 328 | 2,813 | 4.582317 | 0.375 | 0.071856 | 0.083832 | 0.045243 | 0.290086 | 0.256154 | 0.234864 | 0.209581 | 0.209581 | 0.209581 | 0 | 0.014861 | 0.258443 | 2,813 | 88 | 94 | 31.965909 | 0.705657 | 0.218983 | 0 | 0.132353 | 0 | 0 | 0.205963 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.014706 | 0 | 0.014706 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
058a7c137ede0bf5c3a55a3ce41c3dfb2936df30 | 2,079 | py | Python | src/views/list.py | AllForJan/prizma-backend | fe866e74fa01e900cc7eab624bb5716a4bae056d | [
"MIT"
] | 2 | 2018-04-08T22:18:11.000Z | 2018-04-26T08:12:46.000Z | src/views/list.py | AllForJan/prizma-backend | fe866e74fa01e900cc7eab624bb5716a4bae056d | [
"MIT"
] | null | null | null | src/views/list.py | AllForJan/prizma-backend | fe866e74fa01e900cc7eab624bb5716a4bae056d | [
"MIT"
] | 2 | 2018-04-08T22:18:13.000Z | 2018-04-08T22:18:18.000Z | from elasticsearch import Elasticsearch
from flask import request, jsonify
from flask_restful import Resource
from db.manager import get_conn
import settings
conn = get_conn()
def append_range_filter(f, key, _from, to):
d = {}
if _from or to:
d['range'] = {}
d['range'][key] = {}
if _fro... | 25.353659 | 89 | 0.457431 | 223 | 2,079 | 4.089686 | 0.340807 | 0.060307 | 0.076754 | 0.059211 | 0.192982 | 0.192982 | 0.192982 | 0.192982 | 0.192982 | 0.192982 | 0 | 0.00316 | 0.391053 | 2,079 | 81 | 90 | 25.666667 | 0.71722 | 0.012987 | 0 | 0.166667 | 0 | 0 | 0.100537 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033333 | false | 0 | 0.083333 | 0 | 0.183333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
058f090a9e7707433a3105b87e3e591439fed2ac | 8,377 | py | Python | code/train/train_model.py | 96jhwei/Genetic-U-Net | 25116f01afcf8ed4386cd0fc258da15e1c982cb5 | [
"MIT"
] | 14 | 2021-09-09T11:22:17.000Z | 2022-03-14T10:06:36.000Z | code/train/train_model.py | 96jhwei/Genetic-U-Net | 25116f01afcf8ed4386cd0fc258da15e1c982cb5 | [
"MIT"
] | 1 | 2021-11-24T10:30:36.000Z | 2021-11-24T10:30:36.000Z | code/train/train_model.py | 96jhwei/Genetic-U-Net | 25116f01afcf8ed4386cd0fc258da15e1c982cb5 | [
"MIT"
] | 5 | 2021-11-02T09:29:49.000Z | 2022-03-25T09:44:25.000Z | import numpy
from torch.utils.data import DataLoader
from tqdm import tqdm
from loss.FocalLoss import FocalLossForSigmoid
import torch
from metrics.calculate_metrics import calculate_metrics
import shutil
from metrics.average_meter import AverageMeter
import torch.multiprocessing
from torch.nn.utils.clip_gra... | 45.037634 | 133 | 0.493613 | 808 | 8,377 | 4.863861 | 0.209158 | 0.040967 | 0.02799 | 0.018321 | 0.183715 | 0.132061 | 0.132061 | 0.106616 | 0.084224 | 0.084224 | 0 | 0.01127 | 0.406828 | 8,377 | 185 | 134 | 45.281081 | 0.779634 | 0 | 0 | 0.1125 | 0 | 0 | 0.083374 | 0.022705 | 0 | 0 | 0 | 0 | 0 | 1 | 0.00625 | false | 0 | 0.125 | 0 | 0.15 | 0.05625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
059016200f557d7398f34c3a96008e7fee9686c3 | 961 | py | Python | dataset/check_for_duplicates.py | mathildor/TF-SegNet | dff209c8174b5e8fa77b4c2644298f6903a09445 | [
"MIT"
] | 98 | 2017-11-06T15:55:22.000Z | 2022-03-22T11:29:47.000Z | dataset/check_for_duplicates.py | yingz9/TF-SegNet | dff209c8174b5e8fa77b4c2644298f6903a09445 | [
"MIT"
] | 8 | 2017-11-15T06:05:41.000Z | 2019-06-19T06:53:03.000Z | dataset/check_for_duplicates.py | yingz9/TF-SegNet | dff209c8174b5e8fa77b4c2644298f6903a09445 | [
"MIT"
] | 34 | 2017-11-06T03:05:54.000Z | 2022-01-25T16:00:09.000Z |
import os
from PIL import Image
import numpy
from PIL import ImageChops
""" TESTED:
No duplicates in:
- within validation images first part (stopped because of training - took to much time)
"""
image_path="../../IR_images/combined_dataset/val_images/images"
# image_path="../../IR_images/combined_data... | 26.694444 | 95 | 0.648283 | 131 | 961 | 4.519084 | 0.389313 | 0.152027 | 0.084459 | 0.057432 | 0.385135 | 0.385135 | 0.385135 | 0.385135 | 0.283784 | 0 | 0 | 0.021798 | 0.236212 | 961 | 35 | 96 | 27.457143 | 0.784741 | 0.223725 | 0 | 0 | 0 | 0 | 0.105 | 0.083333 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0.214286 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
059038232d1c85e48c2eed487377d93d1ad944f4 | 1,983 | py | Python | _posts/import.py | suepeng/suepeng.github.io | 844e0063e0604a77886aad5eaea588c4df2792a9 | [
"MIT"
] | null | null | null | _posts/import.py | suepeng/suepeng.github.io | 844e0063e0604a77886aad5eaea588c4df2792a9 | [
"MIT"
] | null | null | null | _posts/import.py | suepeng/suepeng.github.io | 844e0063e0604a77886aad5eaea588c4df2792a9 | [
"MIT"
] | null | null | null | import os, glob
from dateutil import parser
from bs4 import BeautifulSoup
ext = lambda line, cap: line.replace("\s", "").replace(cap, "").strip()
def write_post(doc):
meta = {
'title' : ext(doc[0], "TITLE:"),
'date' : parser.parse(ext(doc[2], "DATE:")).strftime("%Y-%m-%d"),
'tag' : ext... | 31.983871 | 86 | 0.474534 | 248 | 1,983 | 3.745968 | 0.358871 | 0.064586 | 0.04521 | 0.043057 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007092 | 0.288956 | 1,983 | 61 | 87 | 32.508197 | 0.651773 | 0.050429 | 0 | 0.083333 | 0 | 0 | 0.224533 | 0.029867 | 0 | 0 | 0 | 0 | 0 | 1 | 0.020833 | false | 0 | 0.0625 | 0 | 0.104167 | 0.041667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
059744913f1e643dc9fe5a6332d2aff7847d00ed | 3,342 | py | Python | Project/checking_test2.py | mihdenis85/psycho_test | 51bbe82043427d48e80ff36197815212c5c2a14c | [
"MIT"
] | null | null | null | Project/checking_test2.py | mihdenis85/psycho_test | 51bbe82043427d48e80ff36197815212c5c2a14c | [
"MIT"
] | null | null | null | Project/checking_test2.py | mihdenis85/psycho_test | 51bbe82043427d48e80ff36197815212c5c2a14c | [
"MIT"
] | null | null | null | def specialization(a, spec, jobs):
if a>=0 and a<=2:
return(spec + ': интерес к данной профессиональной сфере не выражен')
elif a>=3 and a<=6:
return(spec + ': профессиональная направленность и интерес выражены в средней степени. ' + 'Возможно вам будут интересны такие профессии будущего, как ' + j... | 27.85 | 339 | 0.578995 | 470 | 3,342 | 4.114894 | 0.340426 | 0.08273 | 0.041365 | 0.072389 | 0.271975 | 0.239917 | 0.239917 | 0.239917 | 0.235781 | 0.235781 | 0 | 0.060144 | 0.293537 | 3,342 | 120 | 340 | 27.85 | 0.759 | 0 | 0 | 0.672269 | 0 | 0.02521 | 0.399641 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.016807 | false | 0 | 0 | 0 | 0.02521 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
05975def902880bc29f1fd9e4b623039913f810f | 4,003 | py | Python | src/upload/upload.py | alliance-genome/agr_ferret | e2ccef16308b1a8a6f1b2a3dde6e29e0530da721 | [
"MIT"
] | 2 | 2020-07-22T14:25:00.000Z | 2021-09-20T18:29:08.000Z | src/upload/upload.py | alliance-genome/agr_ferret | e2ccef16308b1a8a6f1b2a3dde6e29e0530da721 | [
"MIT"
] | 6 | 2019-09-24T14:09:42.000Z | 2021-06-07T15:27:55.000Z | src/upload/upload.py | alliance-genome/agr_ferret | e2ccef16308b1a8a6f1b2a3dde6e29e0530da721 | [
"MIT"
] | 3 | 2020-12-19T08:57:51.000Z | 2020-12-19T08:58:09.000Z | # Functions for use in downloading files.
import logging, os, requests, json, hashlib, urllib
from requests_toolbelt.utils import dump
from retry import retry
logger = logging.getLogger(__name__)
def create_md5(worker, filename, save_path):
# Generate md5
logger.info('{}: Generating md5 hash for {}.'.format... | 51.320513 | 131 | 0.673995 | 526 | 4,003 | 4.937262 | 0.241445 | 0.087794 | 0.048518 | 0.059299 | 0.433577 | 0.401232 | 0.367347 | 0.367347 | 0.342703 | 0.313439 | 0 | 0.012515 | 0.181614 | 4,003 | 77 | 132 | 51.987013 | 0.78022 | 0.048214 | 0 | 0.236364 | 0 | 0 | 0.239222 | 0.017876 | 0 | 0 | 0 | 0 | 0 | 1 | 0.054545 | false | 0 | 0.054545 | 0 | 0.127273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
05995048419b1dbd1bd29b14c238cf37023f8b47 | 2,740 | py | Python | lib/strider/virt/vagrantbox.py | jcftang/strider | 432a68eb1303541b6d955bd6ecf7439d1f9b0d48 | [
"Apache-2.0"
] | 16 | 2016-02-10T13:06:50.000Z | 2021-02-28T06:21:16.000Z | lib/strider/virt/vagrantbox.py | jcftang/strider | 432a68eb1303541b6d955bd6ecf7439d1f9b0d48 | [
"Apache-2.0"
] | 4 | 2016-02-20T16:33:40.000Z | 2016-05-28T10:46:06.000Z | lib/strider/virt/vagrantbox.py | jcftang/strider | 432a68eb1303541b6d955bd6ecf7439d1f9b0d48 | [
"Apache-2.0"
] | 1 | 2016-09-01T11:06:56.000Z | 2016-09-01T11:06:56.000Z | import vagrant
import os
from subprocess import CalledProcessError
from strider.common.instance_data import InstanceData, SshData
import strider.common.logger
class Vagrantbox(object):
def __init__(self,
name=None,
ssh=None,
basebox=None,
bake_na... | 31.860465 | 75 | 0.550365 | 277 | 2,740 | 5.32491 | 0.310469 | 0.047458 | 0.064407 | 0.084068 | 0.146441 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.362044 | 2,740 | 85 | 76 | 32.235294 | 0.843822 | 0 | 0 | 0.16 | 0 | 0 | 0.135766 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08 | false | 0 | 0.066667 | 0 | 0.213333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
552672dd092eb5fb84094dd67c6ad2cf6eb3df04 | 4,739 | py | Python | python/aces/lutFormats/tests/UnitTestsLutFormats.py | aforsythe/clf | 47ba8bee31bd13e4f23632c7b0a38293be31c019 | [
"AMPAS"
] | 43 | 2015-07-09T23:13:41.000Z | 2022-02-04T15:45:42.000Z | python/aces/lutFormats/tests/UnitTestsLutFormats.py | aforsythe/clf | 47ba8bee31bd13e4f23632c7b0a38293be31c019 | [
"AMPAS"
] | 1 | 2019-09-18T14:30:39.000Z | 2019-09-18T14:30:39.000Z | python/aces/lutFormats/tests/UnitTestsLutFormats.py | aforsythe/clf | 47ba8bee31bd13e4f23632c7b0a38293be31c019 | [
"AMPAS"
] | 9 | 2015-07-10T15:26:55.000Z | 2020-08-20T11:52:47.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
The Academy / ASC Common LUT Format Sample Implementations are provided by the
Academy under the following terms and conditions:
Copyright © 2015 Academy of Motion Picture Arts and Sciences ("A.M.P.A.S.").
Portions contributed by others as indicated. All rights reserv... | 40.853448 | 84 | 0.779067 | 687 | 4,739 | 5.256186 | 0.423581 | 0.049848 | 0.053171 | 0.064248 | 0.211299 | 0.15702 | 0.091941 | 0.078649 | 0.043755 | 0.043755 | 0 | 0.015222 | 0.140536 | 4,739 | 115 | 85 | 41.208696 | 0.871102 | 0.606246 | 0 | 0 | 0 | 0 | 0.265225 | 0.068298 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.081081 | 0 | 0.081081 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
552683d69b93369ce9f2b67f499349c272254782 | 10,177 | py | Python | edexOsgi/com.raytheon.edex.plugin.gfe/utility/common_static/base/gfe/textproducts/templates/product/Hazard_CFW_MultiPil.py | srcarter3/awips2 | 37f31f5e88516b9fd576eaa49d43bfb762e1d174 | [
"Apache-2.0"
] | null | null | null | edexOsgi/com.raytheon.edex.plugin.gfe/utility/common_static/base/gfe/textproducts/templates/product/Hazard_CFW_MultiPil.py | srcarter3/awips2 | 37f31f5e88516b9fd576eaa49d43bfb762e1d174 | [
"Apache-2.0"
] | null | null | null | edexOsgi/com.raytheon.edex.plugin.gfe/utility/common_static/base/gfe/textproducts/templates/product/Hazard_CFW_MultiPil.py | srcarter3/awips2 | 37f31f5e88516b9fd576eaa49d43bfb762e1d174 | [
"Apache-2.0"
] | 1 | 2021-10-30T00:03:05.000Z | 2021-10-30T00:03:05.000Z | ##
# This software was developed and / or modified by Raytheon Company,
# pursuant to Contract DG133W-05-CQ-1067 with the US Government.
#
# U.S. EXPORT CONTROLLED TECHNICAL DATA
# This software product contains export-restricted data whose
# export/transfer/disclosure is restricted by U.S. law. Dissemination
# to non... | 40.384921 | 105 | 0.584455 | 1,008 | 10,177 | 5.872024 | 0.385913 | 0.012164 | 0.011488 | 0.014192 | 0.049333 | 0.020949 | 0.013178 | 0.013178 | 0 | 0 | 0 | 0.00913 | 0.289673 | 10,177 | 251 | 106 | 40.545817 | 0.809656 | 0.34578 | 0 | 0.065041 | 0 | 0 | 0.218253 | 0.05476 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04878 | false | 0 | 0.01626 | 0.01626 | 0.121951 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
552924a7e504599cbe9d1cfc08f6a123e6773a8c | 880 | py | Python | setup.py | hubmapconsortium/python-sdk | 17eaec434f1f65190a6e53d0055fe382841222de | [
"MIT"
] | null | null | null | setup.py | hubmapconsortium/python-sdk | 17eaec434f1f65190a6e53d0055fe382841222de | [
"MIT"
] | 8 | 2021-11-09T13:35:48.000Z | 2022-03-04T15:56:52.000Z | setup.py | hubmapconsortium/python-sdk | 17eaec434f1f65190a6e53d0055fe382841222de | [
"MIT"
] | null | null | null | from setuptools import setup, find_packages
with open("README.md", "r") as fh:
long_description = fh.read()
setup(
name="hubmap-sdk",
version="1.0.1",
author="Hubmap",
author_email="api-developers@hubmapconsortium.org",
description="Python Client Libary to use HuBMAP web services",
long_de... | 25.142857 | 66 | 0.606818 | 102 | 880 | 5.107843 | 0.705882 | 0.115163 | 0.072937 | 0.115163 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042105 | 0.244318 | 880 | 34 | 67 | 25.882353 | 0.741353 | 0 | 0 | 0.096774 | 0 | 0 | 0.38339 | 0.039818 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.032258 | 0 | 0.032258 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5529c5dbc7514236bc8611211cfb848e2618a841 | 2,615 | py | Python | bayarea_urbansim/data_regeneration/export_to_h5.py | ual/DOE-repo-deliverable | 4bafdd9a702a9a6466dd32ae62f440644d735d3c | [
"BSD-3-Clause"
] | null | null | null | bayarea_urbansim/data_regeneration/export_to_h5.py | ual/DOE-repo-deliverable | 4bafdd9a702a9a6466dd32ae62f440644d735d3c | [
"BSD-3-Clause"
] | null | null | null | bayarea_urbansim/data_regeneration/export_to_h5.py | ual/DOE-repo-deliverable | 4bafdd9a702a9a6466dd32ae62f440644d735d3c | [
"BSD-3-Clause"
] | null | null | null | import pandas as pd
from spandex import TableLoader
import pandas.io.sql as sql
loader = TableLoader()
def db_to_df(query):
"""Executes SQL query and returns DataFrame."""
conn = loader.database._connection
return sql.read_frame(query, conn)
## Export to HDF5- get path to output file
h5_path = loader.ge... | 39.029851 | 97 | 0.757553 | 385 | 2,615 | 4.935065 | 0.280519 | 0.078947 | 0.143684 | 0.157368 | 0.476842 | 0.312632 | 0.312632 | 0.312632 | 0.106316 | 0.106316 | 0 | 0.021048 | 0.109751 | 2,615 | 67 | 98 | 39.029851 | 0.795103 | 0.169025 | 0 | 0.04 | 0 | 0 | 0.143918 | 0.030176 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02 | false | 0 | 0.06 | 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 |
552b355ab9a4608d3f4dc4d7df2c3b24e79e210d | 7,060 | py | Python | minder_utils/visualisation/feature_engineering.py | alexcapstick/minder_utils | 3bb9380b7796b5dd5b995ce1839ea6a94321021d | [
"MIT"
] | null | null | null | minder_utils/visualisation/feature_engineering.py | alexcapstick/minder_utils | 3bb9380b7796b5dd5b995ce1839ea6a94321021d | [
"MIT"
] | null | null | null | minder_utils/visualisation/feature_engineering.py | alexcapstick/minder_utils | 3bb9380b7796b5dd5b995ce1839ea6a94321021d | [
"MIT"
] | 1 | 2022-03-16T11:10:43.000Z | 2022-03-16T11:10:43.000Z | import matplotlib.pyplot as plt
import matplotlib.dates as mdates
import seaborn as sns
import pandas as pd
from minder_utils.formatting.label import label_by_week, label_dataframe
from minder_utils.feature_engineering import Feature_engineer
from minder_utils.feature_engineering.calculation import *
from minder_utils.... | 28.699187 | 125 | 0.657507 | 973 | 7,060 | 4.538541 | 0.18705 | 0.02038 | 0.014946 | 0.02038 | 0.525362 | 0.397871 | 0.340353 | 0.328804 | 0.304348 | 0.26721 | 0 | 0.009331 | 0.210623 | 7,060 | 245 | 126 | 28.816327 | 0.783061 | 0.069688 | 0 | 0.347518 | 0 | 0 | 0.079168 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.070922 | false | 0 | 0.06383 | 0 | 0.184397 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
552c410668701cd1585658195d593e1b5751e350 | 442 | py | Python | code-everyday-challenge/n159_cyclically_rotate.py | ved93/deliberate-practice-challenges | 2fccdbb9d2baaa16f888055c081a8d04804c0045 | [
"MIT"
] | null | null | null | code-everyday-challenge/n159_cyclically_rotate.py | ved93/deliberate-practice-challenges | 2fccdbb9d2baaa16f888055c081a8d04804c0045 | [
"MIT"
] | null | null | null | code-everyday-challenge/n159_cyclically_rotate.py | ved93/deliberate-practice-challenges | 2fccdbb9d2baaa16f888055c081a8d04804c0045 | [
"MIT"
] | null | null | null |
# https://practice.geeksforgeeks.org/problems/cyclically-rotate-an-array-by-one2614/1
# Given an array, rotate the array by one position in clock-wise direction.
# Input:
# N = 5
# A[] = {1, 2, 3, 4, 5}
# Output:
# 5 1 2 3 4
def rotate_cycle(a):
n = len(a)
tmp = a[-1]
for i in range(1,n):
a[-i] ... | 17.68 | 85 | 0.567873 | 79 | 442 | 3.050633 | 0.518987 | 0.024896 | 0.037344 | 0.049793 | 0.049793 | 0.049793 | 0 | 0 | 0 | 0 | 0 | 0.076453 | 0.260181 | 442 | 25 | 86 | 17.68 | 0.66055 | 0.475113 | 0 | 0 | 0 | 0 | 0.035714 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0 | 0 | 0.2 | 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 |
552d7c8af23d30920337cc95fa4d7065705c0c5f | 10,800 | py | Python | adamw_optimizer.py | pwldj/Bio_XLNet_CRF | 536053e9d74abdb2ee56000a8a779ffc1c0dd0fc | [
"Apache-2.0"
] | null | null | null | adamw_optimizer.py | pwldj/Bio_XLNet_CRF | 536053e9d74abdb2ee56000a8a779ffc1c0dd0fc | [
"Apache-2.0"
] | 2 | 2022-03-07T07:27:13.000Z | 2022-03-07T07:27:15.000Z | adamw_optimizer.py | pwldj/MTL-BioNER | 3fb336f517346daeec6a716fa6a657a421754bdb | [
"Apache-2.0"
] | 1 | 2021-05-05T08:42:53.000Z | 2021-05-05T08:42:53.000Z | # Copyright 2015 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | 44.444444 | 85 | 0.64463 | 1,542 | 10,800 | 4.148508 | 0.141375 | 0.055026 | 0.034391 | 0.05315 | 0.518212 | 0.434579 | 0.404877 | 0.39159 | 0.372049 | 0.372049 | 0 | 0.017616 | 0.253611 | 10,800 | 242 | 86 | 44.628099 | 0.775958 | 0.144167 | 0 | 0.362069 | 0 | 0 | 0.01789 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068966 | false | 0 | 0.068966 | 0.011494 | 0.206897 | 0.005747 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
552fdd4ea7856ad8f238ffba4056d7b666e1d19e | 1,559 | py | Python | backend/breach/helpers/injector.py | Cancelll/rupture | cd87481717b39de2654659b7ff436500e28a0600 | [
"MIT"
] | 184 | 2016-03-31T04:19:42.000Z | 2021-11-26T21:37:12.000Z | backend/breach/helpers/injector.py | Cancelll/rupture | cd87481717b39de2654659b7ff436500e28a0600 | [
"MIT"
] | 212 | 2016-03-31T04:32:06.000Z | 2017-02-26T09:34:47.000Z | backend/breach/helpers/injector.py | Cancelll/rupture | cd87481717b39de2654659b7ff436500e28a0600 | [
"MIT"
] | 38 | 2016-03-31T09:09:44.000Z | 2021-11-26T21:37:13.000Z | from backend.settings import BASE_DIR
import os
import subprocess
import stat
rupture_dir = os.path.abspath(os.path.join(BASE_DIR, os.pardir))
client_dir = os.path.join(rupture_dir, 'client')
def inject(victim):
_create_client(victim)
_create_injection(victim)
_run_injection(victim)
def _create_clien... | 25.557377 | 84 | 0.645285 | 201 | 1,559 | 4.830846 | 0.288557 | 0.049434 | 0.072091 | 0.065911 | 0.313079 | 0.234809 | 0.140062 | 0.088568 | 0 | 0 | 0 | 0.000837 | 0.233483 | 1,559 | 60 | 85 | 25.983333 | 0.811715 | 0 | 0 | 0.25 | 0 | 0 | 0.042335 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.090909 | 0 | 0.204545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5530fb74fc5655f0d169fed9774ccb03f4699d79 | 952 | py | Python | wagtail_client/utils.py | girleffect/core-integration-demo | c37a0d5183d16bec6245a41e12dd90691ffa7138 | [
"BSD-3-Clause"
] | null | null | null | wagtail_client/utils.py | girleffect/core-integration-demo | c37a0d5183d16bec6245a41e12dd90691ffa7138 | [
"BSD-3-Clause"
] | 19 | 2018-02-06T08:56:24.000Z | 2018-09-11T08:05:24.000Z | wagtail_client/utils.py | girleffect/core-integration-demo | c37a0d5183d16bec6245a41e12dd90691ffa7138 | [
"BSD-3-Clause"
] | 2 | 2018-05-25T09:44:03.000Z | 2021-08-18T12:07:47.000Z | from urllib.parse import urlencode
from django.conf import settings
from django.contrib.sites.shortcuts import get_current_site
def provider_logout_url(request):
"""
This function is used to construct a logout URL that can be used to log the user out of
the Identity Provider (Authentication Service).
... | 34 | 91 | 0.722689 | 133 | 952 | 4.984962 | 0.541353 | 0.042232 | 0.042232 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.20063 | 952 | 27 | 92 | 35.259259 | 0.871222 | 0.277311 | 0 | 0 | 0 | 0 | 0.174507 | 0.036419 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.214286 | 0 | 0.357143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
553261313f73826b4fd76c66eae4be0cde9803af | 978 | py | Python | connectToProteusFromMongo.py | erentts/Ignite-Greenhouse | 328730399328936332b5c6f3f8dcd18bf56369b9 | [
"MIT"
] | 4 | 2021-02-22T21:19:28.000Z | 2021-05-03T14:19:18.000Z | connectToProteusFromMongo.py | erentts/Ignite-Greenhouse | 328730399328936332b5c6f3f8dcd18bf56369b9 | [
"MIT"
] | null | null | null | connectToProteusFromMongo.py | erentts/Ignite-Greenhouse | 328730399328936332b5c6f3f8dcd18bf56369b9 | [
"MIT"
] | null | null | null | import pymongo
import dns
import serial
from pymongo import MongoClient
import struct
cluster = MongoClient("")
serialPort = serial.Serial(port= "COM1", baudrate=9600 ,bytesize =8 , timeout =None, parity='N',stopbits=1)
db=cluster["<greenHouse>"]
collection = db["greenhouses"]
while serialPort.readline():
resul... | 31.548387 | 145 | 0.702454 | 105 | 978 | 6.47619 | 0.561905 | 0.079412 | 0.083824 | 0.097059 | 0.120588 | 0.120588 | 0.120588 | 0 | 0 | 0 | 0 | 0.012225 | 0.163599 | 978 | 30 | 146 | 32.6 | 0.819071 | 0.07771 | 0 | 0 | 0 | 0 | 0.164994 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.263158 | 0 | 0.263158 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5539d275ebd36d43b5d44642306d4d9d488a83a3 | 961 | py | Python | s3_file_uploads/serializers.py | dabapps/django-s3-file-uploads | 17ed6b4e02bd43bc925af987ff5bf971a82da434 | [
"BSD-3-Clause"
] | 5 | 2019-05-27T03:51:30.000Z | 2021-03-19T11:24:09.000Z | s3_file_uploads/serializers.py | dabapps/django-s3-file-uploads | 17ed6b4e02bd43bc925af987ff5bf971a82da434 | [
"BSD-3-Clause"
] | 7 | 2019-12-04T22:38:13.000Z | 2021-06-10T17:50:06.000Z | s3_file_uploads/serializers.py | dabapps/django-s3-file-uploads | 17ed6b4e02bd43bc925af987ff5bf971a82da434 | [
"BSD-3-Clause"
] | null | null | null | from rest_framework import serializers
from s3_file_uploads.constants import ACCESS_CONTROL_TYPES, PRIVATE
from s3_file_uploads.models import UploadedFile
class UploadedFileSerializer(serializers.ModelSerializer):
file_name = serializers.CharField(source='file.name', read_only=True)
file = serializers.URLFie... | 27.457143 | 80 | 0.597294 | 88 | 961 | 6.272727 | 0.511364 | 0.057971 | 0.036232 | 0.061594 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003017 | 0.310094 | 961 | 34 | 81 | 28.264706 | 0.829563 | 0 | 0 | 0.275862 | 0 | 0 | 0.131113 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.103448 | 0 | 0.310345 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
553a35ee3c9965503e444537543d6f056c2747c7 | 1,873 | py | Python | vbts_webadmin/views/subscribers.py | pcarivbts/vbts-webadmin | 0616eca6492daa3ebc26b442e8dbebda7ac06d51 | [
"BSD-3-Clause"
] | null | null | null | vbts_webadmin/views/subscribers.py | pcarivbts/vbts-webadmin | 0616eca6492daa3ebc26b442e8dbebda7ac06d51 | [
"BSD-3-Clause"
] | 3 | 2020-06-05T18:34:16.000Z | 2021-06-10T20:31:18.000Z | vbts_webadmin/views/subscribers.py | pcarivbts/vbts-webadmin | 0616eca6492daa3ebc26b442e8dbebda7ac06d51 | [
"BSD-3-Clause"
] | 2 | 2018-07-04T00:54:50.000Z | 2022-01-28T16:52:10.000Z | """
Copyright (c) 2015-present, Philippine-California Advanced Research Institutes-
The Village Base Station Project (PCARI-VBTS). All rights reserved.
This source code is licensed under the BSD-style license found in the
LICENSE file in the root directory of this source tree.
"""
from django.contrib import messages ... | 33.446429 | 79 | 0.705286 | 224 | 1,873 | 5.808036 | 0.441964 | 0.061491 | 0.032283 | 0.053036 | 0.066872 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005384 | 0.20662 | 1,873 | 55 | 80 | 34.054545 | 0.870121 | 0.146289 | 0 | 0.051282 | 0 | 0 | 0.070396 | 0.013199 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025641 | false | 0 | 0.25641 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
553e5975ce3bca9dd2037d832b61d89b76e372a6 | 16,307 | py | Python | examples/vq_rnn_fruit_joint/vq_fruit_joint.py | kastnerkyle/tfbldr | 58ad1437d500924acd15d1c6eec4a864f57e9c7c | [
"BSD-3-Clause"
] | 4 | 2018-05-15T22:35:00.000Z | 2019-02-22T01:40:49.000Z | examples/vq_rnn_fruit_joint/vq_fruit_joint.py | kastnerkyle/tfbldr | 58ad1437d500924acd15d1c6eec4a864f57e9c7c | [
"BSD-3-Clause"
] | null | null | null | examples/vq_rnn_fruit_joint/vq_fruit_joint.py | kastnerkyle/tfbldr | 58ad1437d500924acd15d1c6eec4a864f57e9c7c | [
"BSD-3-Clause"
] | 2 | 2018-06-09T15:08:44.000Z | 2018-11-20T10:13:48.000Z | from tfbldr.nodes import Conv2d
from tfbldr.nodes import ConvTranspose2d
from tfbldr.nodes import VqEmbedding
from tfbldr.nodes import BatchNorm2d
from tfbldr.nodes import Linear
from tfbldr.nodes import ReLU
from tfbldr.nodes import Sigmoid
from tfbldr.nodes import Tanh
from tfbldr.nodes import OneHot
from tfbldr.node... | 38.189696 | 124 | 0.592506 | 2,493 | 16,307 | 3.560369 | 0.124749 | 0.048333 | 0.030644 | 0.039658 | 0.458427 | 0.403673 | 0.350721 | 0.319739 | 0.30836 | 0.268927 | 0 | 0.044752 | 0.286073 | 16,307 | 426 | 125 | 38.279343 | 0.71766 | 0.050714 | 0 | 0.229651 | 0 | 0 | 0.03218 | 0 | 0 | 0 | 0 | 0 | 0.005814 | 1 | 0.023256 | false | 0 | 0.078488 | 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 |
553eb4733f79df133de3656ed4a77eb050d859d2 | 311 | py | Python | scripts/poorscrum/poorscrum_tools.py | r09491/poorscrum | cdbbc0db03fde842f546093f46e70d03a105bbbd | [
"MIT"
] | null | null | null | scripts/poorscrum/poorscrum_tools.py | r09491/poorscrum | cdbbc0db03fde842f546093f46e70d03a105bbbd | [
"MIT"
] | 7 | 2021-03-18T22:37:46.000Z | 2022-03-11T23:41:39.000Z | scripts/poorscrum/poorscrum_tools.py | r09491/poorscrum | cdbbc0db03fde842f546093f46e70d03a105bbbd | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
def fibonacci(n):
if n == 0:
return 0
elif n == 1:
return 1
else:
return fibonacci(n-1) + fibonacci(n-2)
def story_points(start):
for i in range(10):
result = fibonacci(i)
if result >= start:
break
return result
| 17.277778 | 46 | 0.508039 | 42 | 311 | 3.738095 | 0.547619 | 0.191083 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045918 | 0.369775 | 311 | 17 | 47 | 18.294118 | 0.755102 | 0.067524 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0 | 0 | 0.461538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
554005d26d7a3413df01a385a87bf09337208562 | 6,162 | py | Python | cata/teachers/ensembles/both_rotation_ensemble.py | seblee97/student_teacher_catastrophic | 9baaaf2850025ba9cf33d61c42386bc4c3b2dad2 | [
"MIT"
] | 2 | 2021-09-13T01:44:09.000Z | 2021-12-11T11:56:49.000Z | cata/teachers/ensembles/both_rotation_ensemble.py | seblee97/student_teacher_catastrophic | 9baaaf2850025ba9cf33d61c42386bc4c3b2dad2 | [
"MIT"
] | 8 | 2020-11-13T18:37:30.000Z | 2022-02-15T15:11:51.000Z | cata/teachers/ensembles/both_rotation_ensemble.py | seblee97/student_teacher_catastrophic | 9baaaf2850025ba9cf33d61c42386bc4c3b2dad2 | [
"MIT"
] | null | null | null | from typing import List
from typing import Union
import numpy as np
import torch
from cata.teachers.ensembles import base_teacher_ensemble
from cata.utils import custom_functions
class BothRotationTeacherEnsemble(base_teacher_ensemble.BaseTeacherEnsemble):
"""Teacher ensemble (primarily for mean-field limit regi... | 35.413793 | 89 | 0.636806 | 676 | 6,162 | 5.492604 | 0.213018 | 0.038783 | 0.026932 | 0.022623 | 0.244008 | 0.157824 | 0.123081 | 0.110154 | 0.083221 | 0.060329 | 0 | 0.011935 | 0.292924 | 6,162 | 173 | 90 | 35.618497 | 0.840257 | 0.140214 | 0 | 0.075 | 0 | 0 | 0.037286 | 0 | 0 | 0 | 0 | 0 | 0.025 | 1 | 0.05 | false | 0 | 0.05 | 0 | 0.15 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5542014f27e11156c75907e597b9852418147144 | 7,176 | py | Python | scripts/admin/admin.py | starmarek/organize-me | 710e7acd86e887b7e4379fde18e1f375846ea59e | [
"MIT"
] | null | null | null | scripts/admin/admin.py | starmarek/organize-me | 710e7acd86e887b7e4379fde18e1f375846ea59e | [
"MIT"
] | null | null | null | scripts/admin/admin.py | starmarek/organize-me | 710e7acd86e887b7e4379fde18e1f375846ea59e | [
"MIT"
] | null | null | null | import json
import logging
import os
import shlex
import subprocess
from pathlib import Path
from types import SimpleNamespace
import coloredlogs
import fire
from .adminFiles import (
DockerComposeFile,
DotenvFile,
GitlabCIFile,
JsonFile,
PackageJsonFile,
Pipfile,
RuntimeTxtFile,
YarnR... | 32.324324 | 148 | 0.67879 | 904 | 7,176 | 5.130531 | 0.202434 | 0.030185 | 0.042691 | 0.034498 | 0.355326 | 0.318025 | 0.256361 | 0.186934 | 0.184994 | 0.154593 | 0 | 0.000175 | 0.20262 | 7,176 | 221 | 149 | 32.470588 | 0.810381 | 0 | 0 | 0.170732 | 0 | 0.006098 | 0.213907 | 0.01937 | 0 | 0 | 0 | 0 | 0.02439 | 1 | 0.121951 | false | 0.006098 | 0.060976 | 0 | 0.189024 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5543d0392b1a991c4c0bc9b77494d93272ec2802 | 743 | py | Python | tests/components/pages/ts.py | T4rk1n/dazzler | 69c49422dc19c910445ab265b1d3481041de8f43 | [
"MIT"
] | 15 | 2019-12-19T11:57:30.000Z | 2021-11-15T23:34:41.000Z | tests/components/pages/ts.py | T4rk1n/dazzler | 69c49422dc19c910445ab265b1d3481041de8f43 | [
"MIT"
] | 196 | 2019-09-21T15:10:14.000Z | 2022-03-31T11:07:48.000Z | tests/components/pages/ts.py | T4rk1n/dazzler | 69c49422dc19c910445ab265b1d3481041de8f43 | [
"MIT"
] | 7 | 2019-10-30T19:38:15.000Z | 2021-12-01T04:54:16.000Z | from dazzler.system import Page
from dazzler.components import core
from tests.components import ts_components as tsc
page = Page(
__name__,
core.Container([
tsc.TypedComponent(
'override',
children=core.Container('foobar'),
num=2,
text='foobar',
... | 27.518519 | 64 | 0.51144 | 78 | 743 | 4.74359 | 0.628205 | 0.059459 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026639 | 0.343203 | 743 | 26 | 65 | 28.576923 | 0.731557 | 0 | 0 | 0 | 0 | 0 | 0.142665 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.12 | 0 | 0.12 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
55454283c60ef0107317118c446ed4395d8f58a5 | 4,464 | py | Python | src/gistsgetter/app.py | pmfrank/gistsgetter | a19f59604ebf1cb13c641d25c4461b4347bba58a | [
"MIT"
] | null | null | null | src/gistsgetter/app.py | pmfrank/gistsgetter | a19f59604ebf1cb13c641d25c4461b4347bba58a | [
"MIT"
] | null | null | null | src/gistsgetter/app.py | pmfrank/gistsgetter | a19f59604ebf1cb13c641d25c4461b4347bba58a | [
"MIT"
] | null | null | null | """
An application dedicated to creating, editing, and deleting Gists in GitHub
"""
from __future__ import absolute_import
import toga
import pyperclip
from toga.style import Pack
from toga.style.pack import COLUMN, ROW
from .common.Search import search
from functools import partial
class GistsGetter(toga.App):
d... | 38.817391 | 132 | 0.622536 | 573 | 4,464 | 4.720768 | 0.242583 | 0.053235 | 0.065065 | 0.056562 | 0.24695 | 0.190018 | 0.126063 | 0.088355 | 0.088355 | 0.073937 | 0 | 0.010632 | 0.262545 | 4,464 | 114 | 133 | 39.157895 | 0.811057 | 0.111783 | 0 | 0.097561 | 0 | 0 | 0.054504 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060976 | false | 0.02439 | 0.085366 | 0.012195 | 0.207317 | 0.02439 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5549b2fc2c6d6a256c772a1fa6b1cb0ba16583fe | 7,401 | py | Python | src/qcar/src/qcar/q_essential.py | bchampp/scylla | 6ec27877cc03c200a874cd0eb25a36c866471250 | [
"MIT"
] | null | null | null | src/qcar/src/qcar/q_essential.py | bchampp/scylla | 6ec27877cc03c200a874cd0eb25a36c866471250 | [
"MIT"
] | null | null | null | src/qcar/src/qcar/q_essential.py | bchampp/scylla | 6ec27877cc03c200a874cd0eb25a36c866471250 | [
"MIT"
] | null | null | null | from quanser.hardware import HIL, HILError, PWMMode
from quanser.multimedia import Video3D, VideoCapture, Video3DStreamType, MediaError, ImageFormat, ImageDataType
from quanser.devices import RPLIDAR, RangingMeasurements, RangingMeasurementMode, DeviceError, RangingDistance
from .q_misc import Utilities
import numpy as... | 37.190955 | 211 | 0.740576 | 1,026 | 7,401 | 5.154971 | 0.190058 | 0.032142 | 0.031197 | 0.030251 | 0.587068 | 0.551333 | 0.485536 | 0.463036 | 0.426168 | 0.418227 | 0 | 0.01822 | 0.154574 | 7,401 | 199 | 212 | 37.190955 | 0.827074 | 0.284961 | 0 | 0.616541 | 0 | 0.007519 | 0.03 | 0.0175 | 0 | 0 | 0 | 0 | 0 | 1 | 0.082707 | false | 0.037594 | 0.052632 | 0 | 0.172932 | 0.090226 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
554a7b61e03b3173856a7a579bde9d2c36a7f575 | 1,689 | py | Python | ex071.py | cristianoandrad/ExerciciosPythonCursoEmVideo | 362603436b71c8ef8386d7a9ab3c5fed0b8d63f7 | [
"MIT"
] | null | null | null | ex071.py | cristianoandrad/ExerciciosPythonCursoEmVideo | 362603436b71c8ef8386d7a9ab3c5fed0b8d63f7 | [
"MIT"
] | null | null | null | ex071.py | cristianoandrad/ExerciciosPythonCursoEmVideo | 362603436b71c8ef8386d7a9ab3c5fed0b8d63f7 | [
"MIT"
] | null | null | null | '''Crie um programa que simule o funcionamento de um caixa eletrônico. No início, pergunte ao usuário qual será o valor a ser sacado (número inteiro) e o programa vai informar quantas cédulas de cada valor serão entregues. OBS:
considere que o caixa possui cédulas de R$50, R$20, R$10 e R$1.'''
'''print('--' * 15)
pri... | 27.241935 | 227 | 0.587922 | 282 | 1,689 | 3.521277 | 0.297872 | 0.054381 | 0.04431 | 0.052367 | 0.2286 | 0.151057 | 0.151057 | 0.151057 | 0.151057 | 0.151057 | 0 | 0.119462 | 0.251628 | 1,689 | 61 | 228 | 27.688525 | 0.666139 | 0.170515 | 0 | 0.181818 | 0 | 0 | 0.190196 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.181818 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
554c5ff1d984eee7cf69842945a06a7b43f122ff | 919 | py | Python | common.py | hoostus/prime-harvesting | 6606b94ea7859fbf217dbea4ace856e3fa4d154e | [
"BlueOak-1.0.0",
"Apache-2.0"
] | 23 | 2016-09-07T06:13:37.000Z | 2022-02-17T23:49:03.000Z | common.py | hoostus/prime-harvesting | 6606b94ea7859fbf217dbea4ace856e3fa4d154e | [
"BlueOak-1.0.0",
"Apache-2.0"
] | null | null | null | common.py | hoostus/prime-harvesting | 6606b94ea7859fbf217dbea4ace856e3fa4d154e | [
"BlueOak-1.0.0",
"Apache-2.0"
] | 12 | 2016-06-30T17:27:39.000Z | 2021-12-12T07:54:27.000Z | import itertools
import math
import simulate
import harvesting
import plot
from decimal import setcontext, ExtendedContext
# Don't raise exception when we divide by zero
#setcontext(ExtendedContext)
#getcontext().prec = 5
def compare_prime_vs_rebalancing(series, years=30, title=''):
(r1, r2) = itertools.tee(serie... | 31.689655 | 93 | 0.677911 | 124 | 919 | 4.927419 | 0.5 | 0.081833 | 0.032733 | 0.042553 | 0.134206 | 0.052373 | 0 | 0 | 0 | 0 | 0 | 0.063624 | 0.213275 | 919 | 28 | 94 | 32.821429 | 0.781466 | 0.100109 | 0 | 0 | 0 | 0 | 0.063183 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.3 | 0 | 0.35 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
554ef62e12daf1b4dd0a910c08086098d9a39602 | 769 | py | Python | tests/hdx/scraper/test_utils.py | mcarans/hdx-python-scraper | ce17c672591979d4601bd125a38b86ea81a9f3c4 | [
"MIT"
] | null | null | null | tests/hdx/scraper/test_utils.py | mcarans/hdx-python-scraper | ce17c672591979d4601bd125a38b86ea81a9f3c4 | [
"MIT"
] | null | null | null | tests/hdx/scraper/test_utils.py | mcarans/hdx-python-scraper | ce17c672591979d4601bd125a38b86ea81a9f3c4 | [
"MIT"
] | null | null | null | from datetime import datetime
from hdx.data.dataset import Dataset
from hdx.scraper.utilities import (
get_isodate_from_dataset_date,
string_params_to_dict,
)
class TestUtils:
def test_string_params_to_dict(self):
result = string_params_to_dict("a: 123, b: 345")
assert result == {"a": "1... | 29.576923 | 86 | 0.629389 | 103 | 769 | 4.436893 | 0.339806 | 0.09628 | 0.122538 | 0.157549 | 0.47046 | 0.306346 | 0.227571 | 0.227571 | 0.227571 | 0.227571 | 0 | 0.113597 | 0.244473 | 769 | 25 | 87 | 30.76 | 0.672978 | 0 | 0 | 0.2 | 0 | 0.05 | 0.149545 | 0.062419 | 0 | 0 | 0 | 0 | 0.15 | 1 | 0.1 | false | 0 | 0.15 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
554fb560fa2735d2073c8f53fb708577f43575e0 | 3,796 | py | Python | store/models.py | Dokeey/Buy-Sell | 9d70eb8649d79962657cc4be896e437908de537b | [
"MIT"
] | 7 | 2019-03-25T14:43:41.000Z | 2021-09-16T01:44:41.000Z | store/models.py | Dokeey/Buy-Sell | 9d70eb8649d79962657cc4be896e437908de537b | [
"MIT"
] | 80 | 2019-03-25T09:25:00.000Z | 2020-02-09T01:01:09.000Z | store/models.py | Dokeey/Buy-Sell | 9d70eb8649d79962657cc4be896e437908de537b | [
"MIT"
] | 4 | 2019-03-25T13:58:07.000Z | 2021-11-26T09:12:32.000Z | from random import randrange
from django.conf import settings
from django.contrib.contenttypes.fields import GenericRelation
from django.db import models
from hitcount.models import HitCountMixin, HitCount
from imagekit.models import ProcessedImageField
from pilkit.processors import ResizeToFill
from django_cleanup im... | 36.5 | 133 | 0.692308 | 469 | 3,796 | 5.420043 | 0.30064 | 0.11251 | 0.049567 | 0.049567 | 0.425256 | 0.391424 | 0.363493 | 0.363493 | 0.363493 | 0.363493 | 0 | 0.00944 | 0.190727 | 3,796 | 104 | 134 | 36.5 | 0.809896 | 0.003952 | 0 | 0.285714 | 0 | 0 | 0.067989 | 0.012698 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.130952 | 0.035714 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5555b6c3e07de5a90e04d4e0ebe99f3c40e0594c | 1,587 | py | Python | experts/siamdw.py | songheony/AAA-journal | 4306fac0afe567269b8d2f1cbef2a1c398fdde82 | [
"MIT"
] | 9 | 2020-07-07T09:03:07.000Z | 2021-04-22T03:38:49.000Z | experts/siamdw.py | songheony/AAA-journal | 4306fac0afe567269b8d2f1cbef2a1c398fdde82 | [
"MIT"
] | null | null | null | experts/siamdw.py | songheony/AAA-journal | 4306fac0afe567269b8d2f1cbef2a1c398fdde82 | [
"MIT"
] | 1 | 2021-07-31T19:26:52.000Z | 2021-07-31T19:26:52.000Z | import sys
import numpy as np
import cv2
from easydict import EasyDict as edict
from base_tracker import BaseTracker
import path_config
sys.path.append("external/SiamDW/lib")
from tracker.siamrpn import SiamRPN
import models.models as models
from utils.utils import load_pretrain
class SiamDW(BaseTracker):
def __... | 34.5 | 85 | 0.628859 | 221 | 1,587 | 4.366516 | 0.325792 | 0.050777 | 0.022798 | 0.039378 | 0.157513 | 0.157513 | 0.157513 | 0.157513 | 0.157513 | 0.157513 | 0 | 0.02995 | 0.242596 | 1,587 | 45 | 86 | 35.266667 | 0.772879 | 0 | 0 | 0.15 | 0 | 0 | 0.044108 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.075 | false | 0 | 0.225 | 0 | 0.35 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
555695e92a72c35957e937841df7b620e7484601 | 3,346 | py | Python | serpent/machine_learning/reinforcement_learning/rainbow_dqn/dqn.py | DylanSpicker/SerpentAI | c48c4b072e0d1084a52eac569ad1c7fa02ac7348 | [
"MIT"
] | null | null | null | serpent/machine_learning/reinforcement_learning/rainbow_dqn/dqn.py | DylanSpicker/SerpentAI | c48c4b072e0d1084a52eac569ad1c7fa02ac7348 | [
"MIT"
] | null | null | null | serpent/machine_learning/reinforcement_learning/rainbow_dqn/dqn.py | DylanSpicker/SerpentAI | c48c4b072e0d1084a52eac569ad1c7fa02ac7348 | [
"MIT"
] | null | null | null | import math
import torch
class DQN(torch.nn.Module):
def __init__(self, action_space, history=4, hidden_size=512, noisy_std=0.1, quantile=True):
super().__init__()
self.atoms = 200 if quantile else 51
self.action_space = action_space
self.quantile = quantile
self.conv1 =... | 35.978495 | 162 | 0.661686 | 495 | 3,346 | 4.212121 | 0.187879 | 0.057074 | 0.065228 | 0.060432 | 0.42542 | 0.402878 | 0.344844 | 0.251319 | 0.17554 | 0.141007 | 0 | 0.021723 | 0.21578 | 3,346 | 92 | 163 | 36.369565 | 0.772866 | 0 | 0 | 0.0625 | 0 | 0 | 0.008368 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.03125 | 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 |
55572056018bf803954acf22ae96913928e3246d | 1,479 | py | Python | src/modules/base/url_helper.py | yakii9/artificial-programmer | a6c1a5a47155ee4d24be729a0fa8c86ca40f85d1 | [
"MIT"
] | 1 | 2018-10-21T22:46:27.000Z | 2018-10-21T22:46:27.000Z | src/modules/base/url_helper.py | yakii9/artificial-programmer | a6c1a5a47155ee4d24be729a0fa8c86ca40f85d1 | [
"MIT"
] | 1 | 2018-10-29T04:34:13.000Z | 2018-11-01T14:32:23.000Z | src/modules/base/url_helper.py | yakii9/artificial-programmer | a6c1a5a47155ee4d24be729a0fa8c86ca40f85d1 | [
"MIT"
] | 1 | 2018-10-21T22:46:48.000Z | 2018-10-21T22:46:48.000Z | import urllib.request
from html.parser import HTMLParser
from urllib import parse
from modules.base.handle_timeout import timeout
class ElementsFinder(HTMLParser):
def __init__(self, base_url, page_url):
super().__init__()
self.base_url = base_url
self.page_url = page_url
self.lin... | 25.067797 | 98 | 0.577417 | 176 | 1,479 | 4.676136 | 0.426136 | 0.034022 | 0.040097 | 0.058323 | 0.046173 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003027 | 0.329953 | 1,479 | 58 | 99 | 25.5 | 0.827447 | 0.088573 | 0 | 0.25 | 0 | 0 | 0.005204 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0.045455 | 0.090909 | 0.022727 | 0.454545 | 0.022727 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5557b931f8213b68a545c1e272d7bfa56dc0f55f | 7,460 | py | Python | trainer/trainer.py | iprapas/dl-continuous-deployment | bcee578a8ae3aa74e4ede00d125cb456f6a3010e | [
"MIT"
] | null | null | null | trainer/trainer.py | iprapas/dl-continuous-deployment | bcee578a8ae3aa74e4ede00d125cb456f6a3010e | [
"MIT"
] | null | null | null | trainer/trainer.py | iprapas/dl-continuous-deployment | bcee578a8ae3aa74e4ede00d125cb456f6a3010e | [
"MIT"
] | null | null | null | import numpy as np
import torch
from torchvision.utils import make_grid
from base import BaseTrainer
from utils import inf_loop, MetricTracker, confusion_matrix_image
import copy
import sys
import time
from model.metric import Accuracy, TopkAccuracy
def get_top_k(x, ratio):
"""it will sample the top 1-ratio of th... | 38.061224 | 112 | 0.604826 | 922 | 7,460 | 4.684382 | 0.199566 | 0.043992 | 0.02709 | 0.026395 | 0.441769 | 0.376013 | 0.318592 | 0.318592 | 0.293355 | 0.282241 | 0 | 0.005999 | 0.284987 | 7,460 | 195 | 113 | 38.25641 | 0.803712 | 0.187802 | 0 | 0.192 | 0 | 0 | 0.024551 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.056 | false | 0 | 0.072 | 0 | 0.184 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
555e8fe1a5ae17b4fbc51d4ad0090a37d1dc68ba | 3,520 | py | Python | pycba/utils.py | mayermelhem/pycba | 8f6a0da12629bac2ad1c6c8e113357f96931ef17 | [
"Apache-2.0"
] | 10 | 2022-02-07T01:16:02.000Z | 2022-03-12T07:56:43.000Z | pycba/utils.py | mayermelhem/pycba | 8f6a0da12629bac2ad1c6c8e113357f96931ef17 | [
"Apache-2.0"
] | 5 | 2022-02-08T07:42:53.000Z | 2022-03-31T21:33:42.000Z | pycba/utils.py | mayermelhem/pycba | 8f6a0da12629bac2ad1c6c8e113357f96931ef17 | [
"Apache-2.0"
] | 1 | 2022-02-12T04:33:38.000Z | 2022-02-12T04:33:38.000Z | """
PyCBA - Utility functions for interacting with PyCBA
"""
import re
import numpy as np
from typing import Tuple
def parse_beam_string(
beam_string: str,
) -> Tuple[np.ndarray, np.ndarray, np.ndarray, np.ndarray]:
"""
This function parses a beam descriptor string and returns CBA input vectors.
The ... | 34.174757 | 86 | 0.605682 | 503 | 3,520 | 4.200795 | 0.353877 | 0.052059 | 0.031235 | 0.051112 | 0.064363 | 0.064363 | 0.038807 | 0.038807 | 0.038807 | 0 | 0 | 0.02253 | 0.28125 | 3,520 | 102 | 87 | 34.509804 | 0.812648 | 0.546023 | 0 | 0.054054 | 0 | 0 | 0.132343 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027027 | false | 0 | 0.081081 | 0 | 0.135135 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
555f6946d9a27cac92dae44e27d4220ecfaf6269 | 10,363 | py | Python | models/dcase2020_fuss_baseline/evaluate_lib.py | marciopuga/sound-separation | 0b23ae22123b041b9538295f32a92151cb77bff9 | [
"Apache-2.0"
] | 412 | 2020-03-03T05:55:53.000Z | 2022-03-29T20:49:11.000Z | models/dcase2020_fuss_baseline/evaluate_lib.py | marciopuga/sound-separation | 0b23ae22123b041b9538295f32a92151cb77bff9 | [
"Apache-2.0"
] | 12 | 2020-04-09T17:47:01.000Z | 2022-03-22T06:07:04.000Z | models/dcase2020_fuss_baseline/evaluate_lib.py | marciopuga/sound-separation | 0b23ae22123b041b9538295f32a92151cb77bff9 | [
"Apache-2.0"
] | 89 | 2020-03-06T08:26:44.000Z | 2022-03-31T11:36:23.000Z | # Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | 41.618474 | 80 | 0.666795 | 1,365 | 10,363 | 4.770696 | 0.212454 | 0.031787 | 0.045147 | 0.030713 | 0.323864 | 0.288084 | 0.24309 | 0.195485 | 0.179361 | 0.179361 | 0 | 0.011509 | 0.228602 | 10,363 | 248 | 81 | 41.78629 | 0.803102 | 0.154009 | 0 | 0.284153 | 0 | 0.005464 | 0.122817 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027322 | false | 0 | 0.043716 | 0 | 0.092896 | 0.043716 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
55652d01d18ec68adf27b069baae8bf7ed3db2f4 | 1,705 | py | Python | python/domain/compliance/model/measure.py | ICTU/document-as-code | e65fddb94513e7c2f54f248b4ce69e9e10ce42f5 | [
"Apache-2.0"
] | 2 | 2021-01-09T17:00:51.000Z | 2021-02-19T09:35:26.000Z | python/domain/compliance/model/measure.py | ICTU/document-as-code | e65fddb94513e7c2f54f248b4ce69e9e10ce42f5 | [
"Apache-2.0"
] | null | null | null | python/domain/compliance/model/measure.py | ICTU/document-as-code | e65fddb94513e7c2f54f248b4ce69e9e10ce42f5 | [
"Apache-2.0"
] | 1 | 2020-02-24T15:50:05.000Z | 2020-02-24T15:50:05.000Z | """
BIO measure - defines and describes a measure for BIO compliance
"""
from domain.base import Base
class Measure(Base):
""" Measures that help to in BIO compliance. """
_explain = None
_not_applicable = None
def __init__(self, identifier, description, identifiers, url=None, done=False):
... | 26.640625 | 112 | 0.652199 | 190 | 1,705 | 5.510526 | 0.268421 | 0.161414 | 0.045845 | 0.045845 | 0.034384 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.262757 | 1,705 | 63 | 113 | 27.063492 | 0.832936 | 0.111437 | 0 | 0.175 | 0 | 0 | 0.097659 | 0.04214 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.025 | 0.075 | 0.425 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
556657f3480d4123e6f0535b01c6ed2f5345122d | 615 | py | Python | week_06/readibility.py | fentybit/cs50 | a6089e8ba47d0a8990cac3e0b5b28c5f2ba9f9c3 | [
"CNRI-Python"
] | null | null | null | week_06/readibility.py | fentybit/cs50 | a6089e8ba47d0a8990cac3e0b5b28c5f2ba9f9c3 | [
"CNRI-Python"
] | null | null | null | week_06/readibility.py | fentybit/cs50 | a6089e8ba47d0a8990cac3e0b5b28c5f2ba9f9c3 | [
"CNRI-Python"
] | null | null | null | from cs50 import get_string
text = get_string("Text: ")
text_length = len(text)
letters = 0
sentences = 0
words = 1
for i in range(text_length):
if text[i].isalpha():
letters += 1
for i in range(text_length):
if ord(text[i]) == 46 or ord(text[i]) == 33 or ord(text[i]) == 63:
sentences += 1
f... | 20.5 | 70 | 0.588618 | 103 | 615 | 3.456311 | 0.38835 | 0.070225 | 0.089888 | 0.058989 | 0.247191 | 0.247191 | 0.247191 | 0.247191 | 0.179775 | 0.179775 | 0 | 0.08658 | 0.24878 | 615 | 30 | 71 | 20.5 | 0.683983 | 0 | 0 | 0.125 | 0 | 0 | 0.068182 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.041667 | 0 | 0.041667 | 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 |
55686a8be609e908e7580542f40aa36255c8c155 | 12,532 | py | Python | functions.py | flyingmat/pyfactorizer | 6e607408bc21d04b09ecabfc6a579ad4058965f5 | [
"MIT"
] | null | null | null | functions.py | flyingmat/pyfactorizer | 6e607408bc21d04b09ecabfc6a579ad4058965f5 | [
"MIT"
] | null | null | null | functions.py | flyingmat/pyfactorizer | 6e607408bc21d04b09ecabfc6a579ad4058965f5 | [
"MIT"
] | null | null | null | from math import floor
remove_spaces = lambda inlst: [i for i in inlst if i != ' ']
def sf2i(inp):
if float(inp).is_integer():
return str(int(inp))
else:
return str(inp)
def fix_signs(inlst):
i = 0
while i < len(inlst):
if inlst[i] in '+-': # first sign is detected
... | 39.040498 | 151 | 0.514682 | 1,866 | 12,532 | 3.383708 | 0.136656 | 0.009978 | 0.01663 | 0.006969 | 0.207159 | 0.127336 | 0.111182 | 0.071904 | 0.04878 | 0.014888 | 0 | 0.053719 | 0.343441 | 12,532 | 320 | 152 | 39.1625 | 0.713661 | 0.129828 | 0 | 0.189189 | 0 | 0 | 0.006349 | 0 | 0.003378 | 0 | 0 | 0 | 0 | 1 | 0.077703 | false | 0 | 0.003378 | 0.006757 | 0.155405 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
556d8216ffbaa6f7a0d0816c6b1ba9baa984c1a1 | 381 | py | Python | Problems/14.py | Maurya232Abhishek/Python-repository-for-basics | 3dcec5c529a0847df07c9dcc1424675754ce6376 | [
"MIT"
] | 2 | 2021-07-14T11:01:58.000Z | 2021-07-14T11:02:01.000Z | Problems/14.py | Maurya232Abhishek/Python-repository-for-basics | 3dcec5c529a0847df07c9dcc1424675754ce6376 | [
"MIT"
] | null | null | null | Problems/14.py | Maurya232Abhishek/Python-repository-for-basics | 3dcec5c529a0847df07c9dcc1424675754ce6376 | [
"MIT"
] | null | null | null | def isPerCube(n):
x = n**(1/3)
x= x+0.5
x = int(x)
if x**3==n:
return True
return False
""" x = 2
while True:
y = n / (x * x)
if (x == y):
print(x)
if x == int(x):
return True
else:
return False
... | 19.05 | 28 | 0.351706 | 53 | 381 | 2.528302 | 0.339623 | 0.044776 | 0.089552 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036458 | 0.496063 | 381 | 20 | 29 | 19.05 | 0.661458 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.375 | 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 |
556f083296f917021fc8c5ac171cde72ce1bed3a | 1,690 | py | Python | backend/health/health_check.py | threefoldtech/zeroCI | 851def4cbaebba681641ecb24c731de56277d6ed | [
"Apache-2.0"
] | null | null | null | backend/health/health_check.py | threefoldtech/zeroCI | 851def4cbaebba681641ecb24c731de56277d6ed | [
"Apache-2.0"
] | 52 | 2019-11-14T09:39:04.000Z | 2021-03-16T10:15:55.000Z | backend/health/health_check.py | AhmedHanafy725/0-CI | ce73044eea2c15bcbb161a1d6f23e75e4f8d53a0 | [
"Apache-2.0"
] | 1 | 2019-10-30T09:51:25.000Z | 2019-10-30T09:51:25.000Z | import sys
sys.path.append("/sandbox/code/github/threefoldtech/zeroCI/backend")
from redis import Redis
from health_recover import Recover
from utils.utils import Utils
recover = Recover()
class Health(Utils):
def get_process_pid(self, name):
cmd = f"ps -aux | grep -v grep | grep '{name}' | awk '{{pri... | 25.606061 | 76 | 0.562722 | 205 | 1,690 | 4.468293 | 0.336585 | 0.065502 | 0.085153 | 0.092795 | 0.151747 | 0.074236 | 0.074236 | 0.074236 | 0 | 0 | 0 | 0.006975 | 0.321302 | 1,690 | 65 | 77 | 26 | 0.79163 | 0.084615 | 0 | 0.133333 | 0 | 0 | 0.13909 | 0.032301 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.088889 | 0 | 0.244444 | 0.022222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5570f5a350941f5510b456b02cd8353c974ae345 | 13,284 | py | Python | vesper/command/recording_importer.py | RichardLitt/Vesper | 5360844f42a06942e7684121c650b08cf8616285 | [
"MIT"
] | null | null | null | vesper/command/recording_importer.py | RichardLitt/Vesper | 5360844f42a06942e7684121c650b08cf8616285 | [
"MIT"
] | null | null | null | vesper/command/recording_importer.py | RichardLitt/Vesper | 5360844f42a06942e7684121c650b08cf8616285 | [
"MIT"
] | null | null | null | """Module containing class `RecordingImporter`."""
from pathlib import Path
import itertools
import logging
import os
from django.db import transaction
from vesper.command.command import CommandExecutionError
from vesper.django.app.models import (
DeviceConnection, Job, Recording, RecordingChannel, RecordingFil... | 32.479218 | 77 | 0.564664 | 1,410 | 13,284 | 5.052482 | 0.18227 | 0.042673 | 0.016844 | 0.013476 | 0.165076 | 0.085345 | 0.044076 | 0.036216 | 0.036216 | 0.022179 | 0 | 0.001188 | 0.366531 | 13,284 | 408 | 78 | 32.558824 | 0.845395 | 0.101551 | 0 | 0.189076 | 0 | 0 | 0.074987 | 0.001773 | 0 | 0 | 0 | 0 | 0 | 1 | 0.088235 | false | 0 | 0.096639 | 0 | 0.273109 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5576c4dbc04cfe8f5be4007143719bb7a25f5574 | 2,033 | py | Python | Quotebot/utils.py | musawakiliML/Whatsapp-Bots | 29fe6c645010ddedac1424b22c842b3e61511644 | [
"MIT"
] | null | null | null | Quotebot/utils.py | musawakiliML/Whatsapp-Bots | 29fe6c645010ddedac1424b22c842b3e61511644 | [
"MIT"
] | null | null | null | Quotebot/utils.py | musawakiliML/Whatsapp-Bots | 29fe6c645010ddedac1424b22c842b3e61511644 | [
"MIT"
] | null | null | null | import requests
def random_quote(type=''):
'''A function to get random quotes'''
if type == "today":
response_quote = requests.get("https://zenquotes.io/api/today/ff5e73b15a05ca51951b758bd7943ce803d71772")
if response_quote.status_code == 200:
quote_data = response_quote.json()
... | 31.765625 | 113 | 0.624693 | 246 | 2,033 | 4.963415 | 0.223577 | 0.085176 | 0.078624 | 0.075348 | 0.550369 | 0.529894 | 0.457002 | 0.457002 | 0.386568 | 0.386568 | 0 | 0.044342 | 0.256763 | 2,033 | 64 | 114 | 31.765625 | 0.763733 | 0.028037 | 0 | 0.413043 | 0 | 0 | 0.272635 | 0.066633 | 0 | 0 | 0 | 0 | 0 | 1 | 0.065217 | false | 0 | 0.021739 | 0 | 0.326087 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
557a41cb5f2fe81007b03e1796d482334c493ead | 3,401 | py | Python | src/day16.py | dcbriccetti/advent-of-code-2021-python | 65958fb256234cf882714d3c3306cdbf60bcc0ae | [
"Unlicense"
] | 4 | 2021-12-10T22:47:56.000Z | 2021-12-26T21:35:58.000Z | src/day16.py | dcbriccetti/advent-of-code-2021-python | 65958fb256234cf882714d3c3306cdbf60bcc0ae | [
"Unlicense"
] | null | null | null | src/day16.py | dcbriccetti/advent-of-code-2021-python | 65958fb256234cf882714d3c3306cdbf60bcc0ae | [
"Unlicense"
] | null | null | null | from math import prod
from pathlib import Path
class BitStream:
'Deliver integers from a stream of bits created from a hexadecimal string'
bit_str: str
pos: int
def __init__(self, hex_nibbles_str: str) -> None:
def binary_nibble_str(hex_nibble_str: str) -> str:
'Convert, for examp... | 36.180851 | 100 | 0.586004 | 456 | 3,401 | 4.129386 | 0.265351 | 0.033457 | 0.025491 | 0.020712 | 0.121083 | 0.090813 | 0.062135 | 0.036644 | 0.036644 | 0.036644 | 0 | 0.017759 | 0.304616 | 3,401 | 93 | 101 | 36.569892 | 0.77759 | 0.104381 | 0 | 0 | 0 | 0.013333 | 0.15509 | 0.013772 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.026667 | 0 | 0.36 | 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 |
557ac6c635a14924685b462c2a901a11408e15a1 | 6,328 | py | Python | Santander-spyder.py | Herikc2/Santander-Customer-Satisfaction | c868538ab06c252b2f9e51bac384b0f6e48efd70 | [
"MIT"
] | null | null | null | Santander-spyder.py | Herikc2/Santander-Customer-Satisfaction | c868538ab06c252b2f9e51bac384b0f6e48efd70 | [
"MIT"
] | null | null | null | Santander-spyder.py | Herikc2/Santander-Customer-Satisfaction | c868538ab06c252b2f9e51bac384b0f6e48efd70 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Wed Mar 3 17:13:15 2021
Database: https://www.kaggle.com/c/santander-customer-satisfaction
@author: Herikc Brecher
"""
# Import from libraries
from sklearn.model_selection import KFold
from sklearn.model_selection import cross_val_score
from sklearn.model_selection i... | 30.423077 | 140 | 0.733881 | 838 | 6,328 | 5.361575 | 0.317422 | 0.030269 | 0.024928 | 0.022702 | 0.1785 | 0.101714 | 0.090585 | 0.090585 | 0.090585 | 0.090585 | 0 | 0.013039 | 0.163717 | 6,328 | 207 | 141 | 30.570048 | 0.835979 | 0.175727 | 0 | 0.084034 | 0 | 0 | 0.069616 | 0.01321 | 0 | 0 | 0 | 0 | 0 | 1 | 0.008403 | false | 0 | 0.151261 | 0 | 0.159664 | 0.07563 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
557b0f82fa2e590f23c344cfc48bb3aef2ee423d | 4,502 | py | Python | Memorization Tool/task/tool.py | soukalli/jetbrain-accademy | fc486d439b4b54a58956e1186eb69c56b85f85f1 | [
"MIT"
] | null | null | null | Memorization Tool/task/tool.py | soukalli/jetbrain-accademy | fc486d439b4b54a58956e1186eb69c56b85f85f1 | [
"MIT"
] | null | null | null | Memorization Tool/task/tool.py | soukalli/jetbrain-accademy | fc486d439b4b54a58956e1186eb69c56b85f85f1 | [
"MIT"
] | null | null | null | # write your code here
from sqlalchemy import create_engine
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy import Column, String, Integer
from sqlalchemy.orm import sessionmaker
engine = create_engine('sqlite:///flashcard.db?check_same_thread=False')
Base = declarative_base()
Session = sessio... | 28.675159 | 72 | 0.589294 | 517 | 4,502 | 4.976789 | 0.201161 | 0.066071 | 0.070735 | 0.025262 | 0.212204 | 0.188885 | 0.188885 | 0.153906 | 0.111932 | 0.070735 | 0 | 0.00934 | 0.286539 | 4,502 | 156 | 73 | 28.858974 | 0.791719 | 0.004442 | 0 | 0.314961 | 0 | 0 | 0.144866 | 0.010268 | 0 | 0 | 0 | 0.00641 | 0 | 1 | 0.07874 | false | 0 | 0.031496 | 0 | 0.15748 | 0.228346 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
557b20fb22a3ac884a03a5ffa7db1db58d06ea7c | 9,862 | py | Python | src/compass/utils/geo_metadata.py | vbrancat/COMPASS | 285412ac2fc474e789e255dae16eba4485017c07 | [
"Apache-2.0"
] | 11 | 2021-11-24T07:24:11.000Z | 2022-03-23T16:40:13.000Z | src/compass/utils/geo_metadata.py | vbrancat/COMPASS | 285412ac2fc474e789e255dae16eba4485017c07 | [
"Apache-2.0"
] | 6 | 2021-12-15T16:45:58.000Z | 2022-03-24T23:36:16.000Z | src/compass/utils/geo_metadata.py | LiangJYu/COMPASS | 459f5d6cf05c2b7c9013f0d862bfef22af280fa6 | [
"Apache-2.0"
] | 4 | 2021-12-07T19:45:26.000Z | 2022-02-28T23:05:37.000Z | from dataclasses import dataclass
from datetime import datetime
import json
from types import SimpleNamespace
import isce3
from isce3.core import LUT2d, Poly1d, Orbit
from isce3.product import GeoGridParameters
import numpy as np
from ruamel.yaml import YAML
from shapely.geometry import Point, Polygon
from compass.ut... | 37.930769 | 95 | 0.58548 | 1,164 | 9,862 | 4.690722 | 0.190722 | 0.042491 | 0.012821 | 0.007692 | 0.139927 | 0.078388 | 0.056044 | 0.047253 | 0.047253 | 0.047253 | 0 | 0.008589 | 0.303488 | 9,862 | 259 | 96 | 38.07722 | 0.786286 | 0.088623 | 0 | 0.135417 | 0 | 0 | 0.124135 | 0.022353 | 0 | 0 | 0 | 0 | 0 | 1 | 0.036458 | false | 0.015625 | 0.067708 | 0.005208 | 0.291667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
557fbf2a8059c9beebbcd0bd1552ded759c8e7f0 | 2,227 | py | Python | tests/test_db.py | andreasgrv/methinks | 5c65fdb84e35b8082ee35963431a352e06f4af44 | [
"BSD-3-Clause"
] | null | null | null | tests/test_db.py | andreasgrv/methinks | 5c65fdb84e35b8082ee35963431a352e06f4af44 | [
"BSD-3-Clause"
] | null | null | null | tests/test_db.py | andreasgrv/methinks | 5c65fdb84e35b8082ee35963431a352e06f4af44 | [
"BSD-3-Clause"
] | null | null | null | import datetime
from methinks.db import Entry
import pytest
from server.app import create_app
from server.app import db as _db
from sqlalchemy import event
from sqlalchemy.orm import sessionmaker
@pytest.fixture(scope="session")
def app(request):
"""
Returns session-wide application.
"""
return create... | 26.831325 | 93 | 0.64661 | 279 | 2,227 | 5.060932 | 0.430108 | 0.046034 | 0.03966 | 0.036119 | 0.25 | 0.15085 | 0.15085 | 0.15085 | 0.15085 | 0.15085 | 0 | 0.001186 | 0.242479 | 2,227 | 82 | 94 | 27.158537 | 0.835803 | 0.22317 | 0 | 0.326531 | 0 | 0 | 0.04353 | 0.012522 | 0 | 0 | 0 | 0 | 0.020408 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.306122 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5581ae54a36323a4a46f3383645e34f4c26755e1 | 2,891 | py | Python | bin/simple_log_server.py | kr0nt4b/ctrl_my_home | fd86b479d78f94aaa5d6cc92f0f49399aaef0733 | [
"Apache-2.0"
] | null | null | null | bin/simple_log_server.py | kr0nt4b/ctrl_my_home | fd86b479d78f94aaa5d6cc92f0f49399aaef0733 | [
"Apache-2.0"
] | null | null | null | bin/simple_log_server.py | kr0nt4b/ctrl_my_home | fd86b479d78f94aaa5d6cc92f0f49399aaef0733 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python2
"""
Simple socket server using threads
"""
import socket
import sys
from thread import *
import os
import logging
HOST = '' # Symbolic name meaning all available interfaces
PORT = 9998 # Arbitrary non-privileged port
LOG_FORMAT = '%(asctime)-15s %(message)s'
SMART_LOG = '/var/log/smart/smart... | 28.91 | 95 | 0.590107 | 353 | 2,891 | 4.736544 | 0.419263 | 0.059809 | 0.058612 | 0.035885 | 0.02512 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010015 | 0.309236 | 2,891 | 99 | 96 | 29.20202 | 0.827241 | 0.215496 | 0 | 0.1 | 0 | 0 | 0.099911 | 0.012489 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.083333 | 0 | 0.183333 | 0.016667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5581eb881f3ca5ddfe7fd5be0a7447ea5b604281 | 1,348 | py | Python | utils/calc_drh.py | leogoesger/func-flow | c81f73998df9b02c04c19a6beae463121d5a8898 | [
"MIT"
] | 11 | 2018-04-14T00:34:34.000Z | 2021-05-04T17:23:50.000Z | utils/calc_drh.py | Yesicaleon/func-flow | c81f73998df9b02c04c19a6beae463121d5a8898 | [
"MIT"
] | 15 | 2019-04-02T03:35:22.000Z | 2022-02-12T13:17:11.000Z | utils/calc_drh.py | Yesicaleon/func-flow | c81f73998df9b02c04c19a6beae463121d5a8898 | [
"MIT"
] | 9 | 2018-12-01T19:46:11.000Z | 2022-03-31T17:18:15.000Z | import numpy as np
from utils.helpers import *
percentiles = [10, 25, 50, 75, 90]
percentile_keys = ["ten", "twenty_five", "fifty", "seventy_five", "ninty"]
def calc_drh(flow_matrix):
"""Dimensionless Hydrograph Plotter"""
average_annual_flow = calculate_average_each_column(flow_matrix)
number_of_rows = ... | 39.647059 | 116 | 0.647626 | 163 | 1,348 | 5.07362 | 0.374233 | 0.084643 | 0.101572 | 0.116082 | 0.333736 | 0.14994 | 0.14994 | 0.14994 | 0.14994 | 0.14994 | 0 | 0.014368 | 0.225519 | 1,348 | 33 | 117 | 40.848485 | 0.777778 | 0.023739 | 0 | 0.083333 | 0 | 0 | 0.038065 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0.083333 | 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 |
558930319f7b3b786028343bb2be22080c9650c4 | 14,091 | py | Python | src/icaltool/icaltool.py | randomchars42/icaltool | acf482f08bb4eb7bc000c0b2591c6d76ec8fcaac | [
"Unlicense"
] | null | null | null | src/icaltool/icaltool.py | randomchars42/icaltool | acf482f08bb4eb7bc000c0b2591c6d76ec8fcaac | [
"Unlicense"
] | null | null | null | src/icaltool/icaltool.py | randomchars42/icaltool | acf482f08bb4eb7bc000c0b2591c6d76ec8fcaac | [
"Unlicense"
] | null | null | null | #!/usr/bin/env python3
import csv
import logging
import logging.config
import re
import argparse
import json
import sys
from .log import log
from . import datatypes
logger = logging.getLogger(__name__)
default_column_mapping = {
'DTSTART': 0,
'DTEND': 1,
'DTSTAMP': 2,
'UID': 3,
'CREATED': 4,
... | 33.630072 | 83 | 0.544461 | 1,477 | 14,091 | 5.065674 | 0.240352 | 0.029939 | 0.022721 | 0.011227 | 0.277332 | 0.219861 | 0.177626 | 0.116279 | 0.116279 | 0.090617 | 0 | 0.013544 | 0.339791 | 14,091 | 418 | 84 | 33.710526 | 0.790713 | 0.122631 | 0 | 0.225914 | 0 | 0 | 0.194612 | 0.001791 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043189 | false | 0 | 0.0299 | 0 | 0.099668 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
558cbd4a7ce3e41aaed8e2b86ecb2cf3f058fd07 | 20,998 | py | Python | script.py | kenneth2001/Virus | e7d0b650d9d7a4eaab9bd87b3695b791e1f105b1 | [
"MIT"
] | null | null | null | script.py | kenneth2001/Virus | e7d0b650d9d7a4eaab9bd87b3695b791e1f105b1 | [
"MIT"
] | null | null | null | script.py | kenneth2001/Virus | e7d0b650d9d7a4eaab9bd87b3695b791e1f105b1 | [
"MIT"
] | null | null | null | import asyncio
import requests
from bs4 import BeautifulSoup
from datetime import date, datetime
import discord
import numpy as np
from urllib.error import HTTPError
import yt_dlp as youtube_dl
from discord.ext import commands
import os
from pytz import timezone
from yt_dlp.utils import DownloadError, ExtractorError
fr... | 37.563506 | 194 | 0.595247 | 2,744 | 20,998 | 4.469023 | 0.172376 | 0.039958 | 0.042078 | 0.036696 | 0.385795 | 0.328468 | 0.271956 | 0.234364 | 0.200114 | 0.156405 | 0 | 0.013435 | 0.266263 | 20,998 | 558 | 195 | 37.630824 | 0.782437 | 0.045147 | 0 | 0.29638 | 0 | 0.002262 | 0.251256 | 0.001055 | 0.002262 | 0 | 0 | 0 | 0 | 1 | 0.020362 | false | 0.002262 | 0.045249 | 0.00905 | 0.106335 | 0.036199 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
558d879413f6f88e3c45e2ca06534a675e1043f9 | 480 | py | Python | solutions/1281-subtract-the-product-and-sum-of-digits-of-an-integer.py | lk-hang/leetcode | 4c8735463bdcb9f48666e03a39eb03ee9f625cec | [
"MIT"
] | null | null | null | solutions/1281-subtract-the-product-and-sum-of-digits-of-an-integer.py | lk-hang/leetcode | 4c8735463bdcb9f48666e03a39eb03ee9f625cec | [
"MIT"
] | null | null | null | solutions/1281-subtract-the-product-and-sum-of-digits-of-an-integer.py | lk-hang/leetcode | 4c8735463bdcb9f48666e03a39eb03ee9f625cec | [
"MIT"
] | null | null | null | """
Given an integer number n, return the difference between the product of its digits and the sum of its digits.
"""
class Solution:
def subtractProductAndSum(self, n: int) -> int:
if n < 10:
return 0
running_prod = 1
running_sum = 0
while n > 0:
re... | 25.263158 | 109 | 0.522917 | 59 | 480 | 4.152542 | 0.491525 | 0.036735 | 0.089796 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035336 | 0.410417 | 480 | 19 | 110 | 25.263158 | 0.830389 | 0.227083 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | 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 |
558e58ba058923b58851710da67bc2d4ad87a57f | 1,031 | py | Python | VideoIndexerDemo/VideoIndexer/application.py | microsoft/ai4accessibility | 4c13d006f285e31f01d1bc71a55c20e9234713a5 | [
"MIT"
] | 2 | 2021-07-11T06:03:43.000Z | 2021-10-09T23:37:21.000Z | VideoIndexerDemo/VideoIndexer/application.py | microsoft/ai4accessibility | 4c13d006f285e31f01d1bc71a55c20e9234713a5 | [
"MIT"
] | 6 | 2021-09-08T03:07:13.000Z | 2022-03-12T00:57:07.000Z | VideoIndexerDemo/VideoIndexer/application.py | microsoft/ai4accessibility | 4c13d006f285e31f01d1bc71a55c20e9234713a5 | [
"MIT"
] | 3 | 2021-02-14T18:51:31.000Z | 2021-02-14T18:51:41.000Z | # Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
from dotenv import load_dotenv
load_dotenv()
import os
import json
import requests
from concurrent.futures import ThreadPoolExecutor
from flask import Flask, flash, request, redirect, url_for, session
from video_captioning.main import upload_vid... | 29.457143 | 83 | 0.747818 | 143 | 1,031 | 5.167832 | 0.454545 | 0.054127 | 0.044655 | 0.052774 | 0.258457 | 0.200271 | 0.11908 | 0.11908 | 0.11908 | 0.11908 | 0 | 0.014412 | 0.125121 | 1,031 | 35 | 84 | 29.457143 | 0.804878 | 0.065955 | 0 | 0.192308 | 0 | 0 | 0.097815 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.115385 | false | 0 | 0.269231 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
559154d893c3d43225a58bc587edd3aa01dea828 | 5,154 | py | Python | code/tests/unit/api/test_enrich.py | CiscoSecurity/tr-05-serverless-cybercrime-tracker | 28fcfaa220025c9e8523633a4a9a04f319656756 | [
"MIT"
] | 3 | 2020-04-28T08:53:14.000Z | 2020-12-17T14:25:32.000Z | code/tests/unit/api/test_enrich.py | CiscoSecurity/tr-05-serverless-cybercrime-tracker | 28fcfaa220025c9e8523633a4a9a04f319656756 | [
"MIT"
] | 2 | 2020-03-06T15:00:22.000Z | 2020-06-26T11:21:52.000Z | code/tests/unit/api/test_enrich.py | CiscoSecurity/tr-05-serverless-cybercrime-tracker | 28fcfaa220025c9e8523633a4a9a04f319656756 | [
"MIT"
] | null | null | null | from http import HTTPStatus
from requests.exceptions import SSLError
from pytest import fixture
from unittest import mock
from tests.unit.mock_for_tests import (
CYBERCRIME_RESPONSE_MOCK,
EXPECTED_DELIBERATE_RESPONSE,
EXPECTED_OBSERVE_RESPONSE,
EXPECTED_RESPONSE_500_ERROR,
EXPECTED_RESPONSE_404_ER... | 29.451429 | 76 | 0.695188 | 608 | 5,154 | 5.587171 | 0.161184 | 0.065057 | 0.064763 | 0.040624 | 0.669709 | 0.607006 | 0.577568 | 0.554018 | 0.527524 | 0.527524 | 0 | 0.013546 | 0.197905 | 5,154 | 174 | 77 | 29.62069 | 0.808176 | 0 | 0 | 0.408333 | 0 | 0 | 0.089639 | 0.013388 | 0 | 0 | 0 | 0 | 0.175 | 1 | 0.108333 | false | 0 | 0.041667 | 0.033333 | 0.191667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5593fe3d21ad82b5382d08854df0a8f99eec0ed9 | 1,900 | py | Python | src/ensae_teaching_cs/tests/american_cities.py | Jerome-maker/ensae_teaching_cs | 43ea044361ee60c00c85aea354a7b25c21c0fd07 | [
"MIT"
] | 73 | 2015-05-12T13:12:11.000Z | 2021-12-21T11:44:29.000Z | src/ensae_teaching_cs/tests/american_cities.py | Jerome-maker/ensae_teaching_cs | 43ea044361ee60c00c85aea354a7b25c21c0fd07 | [
"MIT"
] | 90 | 2015-06-23T11:11:35.000Z | 2021-03-31T22:09:15.000Z | src/ensae_teaching_cs/tests/american_cities.py | Jerome-maker/ensae_teaching_cs | 43ea044361ee60c00c85aea354a7b25c21c0fd07 | [
"MIT"
] | 65 | 2015-01-13T08:23:55.000Z | 2022-02-11T22:42:07.000Z | """
@file
@brief Function to test others functionalities
"""
import os
import pandas
from pyquickhelper.loghelper import fLOG
from ..faq.faq_matplotlib import graph_cities
from ..special import tsp_kruskal_algorithm, distance_haversine
def american_cities(df_or_filename, nb_cities=-1, img=None, fLOG=fLOG):
"""
... | 29.6875 | 91 | 0.596316 | 250 | 1,900 | 4.428 | 0.424 | 0.025294 | 0.054201 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024982 | 0.283684 | 1,900 | 63 | 92 | 30.15873 | 0.788391 | 0.178947 | 0 | 0 | 0 | 0 | 0.046834 | 0 | 0 | 0 | 0 | 0 | 0.05 | 1 | 0.05 | false | 0 | 0.15 | 0.025 | 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 |
5594b24c92581e7c3ba26f490dea8b770f2cf8fd | 2,049 | py | Python | tools/ntp_spoofer.py | dschoonwinkel/pypacker | 58c833f40207db746b0b2995ca3835a533e0258e | [
"BSD-3-Clause"
] | null | null | null | tools/ntp_spoofer.py | dschoonwinkel/pypacker | 58c833f40207db746b0b2995ca3835a533e0258e | [
"BSD-3-Clause"
] | null | null | null | tools/ntp_spoofer.py | dschoonwinkel/pypacker | 58c833f40207db746b0b2995ca3835a533e0258e | [
"BSD-3-Clause"
] | null | null | null | """Simple NTP spoofing tool."""
from pypacker.layer12.ethernet import Ethernet
from pypacker.layer3 import ip
from pypacker.layer4.udp import UDP
from pypacker.layer567 import ntp
from pypacker import psocket
# interface to listen on
IFACE = "wlan0"
# source address which commits a NTP request and we send a wrong ans... | 32.52381 | 91 | 0.736945 | 342 | 2,049 | 4.230994 | 0.315789 | 0.074637 | 0.072564 | 0.087077 | 0.269523 | 0.209399 | 0.144437 | 0.115411 | 0.115411 | 0.093988 | 0 | 0.037017 | 0.116642 | 2,049 | 62 | 92 | 33.048387 | 0.762431 | 0.170327 | 0 | 0 | 0 | 0 | 0.063551 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.217391 | 0 | 0.217391 | 0.086957 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5594c3feafec578628223eff5ebd91b66138d3a5 | 7,524 | py | Python | motsfinder/exprs/test_basics.py | daniel-dpk/distorted-motsfinder-public | 8c2eec174c755c55b26b568243e58c2956a35257 | [
"MIT"
] | 4 | 2019-08-26T09:50:26.000Z | 2022-03-02T16:11:17.000Z | motsfinder/exprs/test_basics.py | daniel-dpk/distorted-motsfinder-public | 8c2eec174c755c55b26b568243e58c2956a35257 | [
"MIT"
] | 5 | 2021-03-31T19:55:34.000Z | 2021-04-01T08:29:53.000Z | motsfinder/exprs/test_basics.py | daniel-dpk/distorted-motsfinder-public | 8c2eec174c755c55b26b568243e58c2956a35257 | [
"MIT"
] | 1 | 2019-09-18T14:15:33.000Z | 2019-09-18T14:15:33.000Z | #!/usr/bin/env python3
from __future__ import print_function
from builtins import range, map
import unittest
import sys
import pickle
import numpy as np
from mpmath import mp
from testutils import DpkTestCase
from .numexpr import NumericExpression
from .numexpr import isclose
from .basics import OffsetExpression, D... | 34.356164 | 91 | 0.591042 | 1,049 | 7,524 | 4.102955 | 0.1449 | 0.055762 | 0.03973 | 0.013941 | 0.335967 | 0.293448 | 0.254647 | 0.218634 | 0.165195 | 0.118727 | 0 | 0.045504 | 0.263955 | 7,524 | 218 | 92 | 34.513761 | 0.731672 | 0.011164 | 0 | 0.175824 | 0 | 0.010989 | 0.029851 | 0 | 0 | 0 | 0 | 0 | 0.28022 | 1 | 0.153846 | false | 0 | 0.065934 | 0.043956 | 0.313187 | 0.005495 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
559516145d3a91e65f7eba170cf38f3e8329840b | 468 | py | Python | python/Data Structures and Algorithms in Python Book/oop/fibonacciprogression.py | gauravssnl/Data-Structures-and-Algorithms | 1c335c72ce514d4f95090241bbd6edf01a1141a8 | [
"MIT"
] | 7 | 2020-05-10T09:57:23.000Z | 2021-03-27T11:55:07.000Z | python/Data Structures and Algorithms in Python Book/oop/fibonacciprogression.py | gauravssnl/Data-Structures-and-Algorithms | 1c335c72ce514d4f95090241bbd6edf01a1141a8 | [
"MIT"
] | null | null | null | python/Data Structures and Algorithms in Python Book/oop/fibonacciprogression.py | gauravssnl/Data-Structures-and-Algorithms | 1c335c72ce514d4f95090241bbd6edf01a1141a8 | [
"MIT"
] | 3 | 2021-03-27T03:42:57.000Z | 2021-08-09T12:03:41.000Z | from progression import Progression
class FibonacciProgression(Progression):
def __init__(self, first=0, second=1):
super().__init__(start=first)
self._previous = second - first
def _advance(self):
self._previous, self._current = self._current, self._previous + self._current
... | 29.25 | 85 | 0.713675 | 50 | 468 | 6.16 | 0.5 | 0.116883 | 0.103896 | 0.149351 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015831 | 0.190171 | 468 | 15 | 86 | 31.2 | 0.796834 | 0 | 0 | 0 | 0 | 0 | 0.017094 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.1 | 0 | 0.4 | 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 |
55966e42aa982766be05f8a6dbd86f8df5f992eb | 18,587 | py | Python | openamundsen/modules/snow/multilayermodel.py | openamundsen/openamundsen | 2ac09eb34b0c72c84c421a0dac08d114a05b7b1c | [
"MIT"
] | 3 | 2021-05-28T06:46:36.000Z | 2021-06-14T13:39:25.000Z | openamundsen/modules/snow/multilayermodel.py | openamundsen/openamundsen | 2ac09eb34b0c72c84c421a0dac08d114a05b7b1c | [
"MIT"
] | 22 | 2021-04-28T12:31:58.000Z | 2022-03-09T18:29:12.000Z | openamundsen/modules/snow/multilayermodel.py | openamundsen/openamundsen | 2ac09eb34b0c72c84c421a0dac08d114a05b7b1c | [
"MIT"
] | 1 | 2021-06-01T12:48:54.000Z | 2021-06-01T12:48:54.000Z | import numpy as np
from numba import njit, prange
from openamundsen import constants, constants as c, heatconduction
from openamundsen.snowmodel import SnowModel
from . import snow
class MultilayerSnowModel(SnowModel):
def __init__(self, model):
self.model = model
s = model.state.snow
num... | 30.470492 | 161 | 0.559907 | 2,487 | 18,587 | 4.008042 | 0.086047 | 0.019663 | 0.075843 | 0.042636 | 0.632624 | 0.55327 | 0.514346 | 0.45325 | 0.408106 | 0.375201 | 0 | 0.026072 | 0.327272 | 18,587 | 609 | 162 | 30.520525 | 0.770713 | 0.285845 | 0 | 0.431548 | 0 | 0 | 0.026039 | 0.002691 | 0 | 0 | 0 | 0.001642 | 0 | 1 | 0.050595 | false | 0 | 0.014881 | 0 | 0.068452 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5598bbdfc235215336c94064608a0db8ff763655 | 3,961 | py | Python | bpmn/urls.py | VSSantana/SFDjango-BPMN | e5a3fb8da9282fd88f72a85a4b34d89d38391e36 | [
"MIT"
] | 1 | 2021-09-21T00:02:10.000Z | 2021-09-21T00:02:10.000Z | bpmn/urls.py | VSSantana/SFDjango-BPMN | e5a3fb8da9282fd88f72a85a4b34d89d38391e36 | [
"MIT"
] | 5 | 2021-09-22T13:54:06.000Z | 2021-09-22T14:05:56.000Z | bpmn/urls.py | marcelobbfonseca/SFDjango-BPMN | 50565763414f52d9e84004494cf550c6fe2358fa | [
"MIT"
] | 1 | 2021-09-18T01:22:25.000Z | 2021-09-18T01:22:25.000Z | from django.urls import path
from django.contrib.auth.views import LoginView
from .views.activity_view import *
from .views.activity_type_view import *
from .views.event_view import *
from .views.flow_view import *
from .views.lane_view import *
from .views.pool_view import *
from .views.process_type_view import *
from... | 73.351852 | 127 | 0.757637 | 519 | 3,961 | 5.406551 | 0.142582 | 0.083393 | 0.135424 | 0.048111 | 0.122238 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.081293 | 3,961 | 53 | 128 | 74.735849 | 0.771091 | 0 | 0 | 0 | 0 | 0 | 0.423378 | 0.256501 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.211538 | 0 | 0.211538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
559adf86675fc57065409a6e9ac6154669c807e5 | 3,404 | py | Python | edwin/__init__.py | AlanSwenson/edwin | 94f62a4db6cc5123224607f92a1f552be072c708 | [
"MIT"
] | null | null | null | edwin/__init__.py | AlanSwenson/edwin | 94f62a4db6cc5123224607f92a1f552be072c708 | [
"MIT"
] | 8 | 2019-03-13T13:39:00.000Z | 2019-04-02T14:58:21.000Z | edwin/__init__.py | AlanSwenson/edwin | 94f62a4db6cc5123224607f92a1f552be072c708 | [
"MIT"
] | null | null | null | import eventlet
eventlet.monkey_patch()
import time
from datetime import datetime, timedelta, timezone
import pytz
from email.utils import parsedate_tz
import json
from flask import Flask, request, render_template
from threading import Thread
from tweepy import OAuthHandler, API, Stream, Cursor
from flask_socketio i... | 30.392857 | 84 | 0.574031 | 357 | 3,404 | 5.268908 | 0.40056 | 0.038278 | 0.042531 | 0.035088 | 0.079213 | 0.026582 | 0.026582 | 0 | 0 | 0 | 0 | 0.013632 | 0.331962 | 3,404 | 112 | 85 | 30.392857 | 0.813544 | 0.046122 | 0 | 0.047619 | 0 | 0 | 0.102129 | 0.015427 | 0 | 0 | 0 | 0 | 0 | 1 | 0.059524 | false | 0 | 0.142857 | 0 | 0.238095 | 0.02381 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
559ae7307b62942efd1983a817dbb736879880c0 | 2,255 | py | Python | troop/admin.py | packmas13/registration | bfb42c5479d59494b59e7c656cb04826e110e8d2 | [
"MIT"
] | 1 | 2020-08-12T09:51:42.000Z | 2020-08-12T09:51:42.000Z | troop/admin.py | packmas13/registration | bfb42c5479d59494b59e7c656cb04826e110e8d2 | [
"MIT"
] | 46 | 2020-01-24T16:51:41.000Z | 2022-03-29T16:03:12.000Z | troop/admin.py | packmas13/registration | bfb42c5479d59494b59e7c656cb04826e110e8d2 | [
"MIT"
] | 1 | 2020-01-28T21:25:06.000Z | 2020-01-28T21:25:06.000Z | from django import forms
from django.contrib import admin
from .models import Attendance, Diet, Participant, Troop
from payment.admin import DiscountInline, PaymentInline
class AttendanceInline(admin.TabularInline):
model = Participant.attendance.through
readonly_fields = ("participant",)
can_delete = F... | 21.47619 | 75 | 0.632373 | 217 | 2,255 | 6.391705 | 0.336406 | 0.039654 | 0.063446 | 0.049027 | 0.261716 | 0.225667 | 0.180966 | 0.180966 | 0.180966 | 0.180966 | 0 | 0 | 0.267849 | 2,255 | 104 | 76 | 21.682692 | 0.840097 | 0 | 0 | 0.365854 | 0 | 0 | 0.082927 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04878 | false | 0 | 0.04878 | 0.036585 | 0.47561 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
559b8b906411edd79ce8b01d4b0d9cdea4c7292c | 829 | py | Python | demo_snippets/11_Datenvisualisierung/main.py | fabod/pro2 | 69b1015fa789ef05bf9b514d94b231f76bdf5e29 | [
"MIT"
] | 2 | 2020-03-03T14:57:40.000Z | 2020-03-20T10:59:47.000Z | demo_snippets/11_Datenvisualisierung/main.py | fabod/pro2 | 69b1015fa789ef05bf9b514d94b231f76bdf5e29 | [
"MIT"
] | null | null | null | demo_snippets/11_Datenvisualisierung/main.py | fabod/pro2 | 69b1015fa789ef05bf9b514d94b231f76bdf5e29 | [
"MIT"
] | null | null | null | from flask import Flask
from flask import render_template
import plotly.express as px
from plotly.offline import plot
app = Flask("Datenvisualisierung")
def data():
data = px.data.gapminder()
data_ch = data[data.country == 'Switzerland']
return data_ch
def viz():
data_ch = data()
fig = px.ba... | 18.422222 | 53 | 0.587455 | 105 | 829 | 4.47619 | 0.533333 | 0.051064 | 0.06383 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01157 | 0.270205 | 829 | 44 | 54 | 18.840909 | 0.765289 | 0.043426 | 0 | 0 | 0 | 0 | 0.150442 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.133333 | 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 |
559c155e6e0b7efb591c20bbc5e5237149bd61eb | 2,940 | py | Python | data_analysis/get_model_statistics.py | fluTN/influenza | 40cbede52bc4e95d52369eebe4a50ad4b71369d1 | [
"MIT"
] | 1 | 2020-10-29T09:56:31.000Z | 2020-10-29T09:56:31.000Z | data_analysis/get_model_statistics.py | fluTN/influenza | 40cbede52bc4e95d52369eebe4a50ad4b71369d1 | [
"MIT"
] | null | null | null | data_analysis/get_model_statistics.py | fluTN/influenza | 40cbede52bc4e95d52369eebe4a50ad4b71369d1 | [
"MIT"
] | 1 | 2022-01-22T11:34:29.000Z | 2022-01-22T11:34:29.000Z | # -*- coding: utf-8 -*-
"""Script which can be used to compare the features obtained of two different influenza models
Usage:
get_model_statistics.py <model> [--country=<country_name>] [--no-future] [--basedir=<directory>] [--start-year=<start_year>] [--end-year=<end_year>] [--save] [--no-graph]
<baseline> ... | 33.409091 | 172 | 0.644558 | 399 | 2,940 | 4.62406 | 0.358396 | 0.026558 | 0.019512 | 0.017344 | 0.0271 | 0.0271 | 0 | 0 | 0 | 0 | 0 | 0.013779 | 0.185374 | 2,940 | 87 | 173 | 33.793103 | 0.756576 | 0.197619 | 0 | 0.09434 | 0 | 0 | 0.196505 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.018868 | false | 0 | 0.169811 | 0 | 0.207547 | 0.207547 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
559f3ab5a294666e58af2d7a21dc2e34d7f16b41 | 21,887 | py | Python | sisu/summarizer.py | balouf/sisu | 07541e6a02e545372452b33f7df056331397001f | [
"BSD-3-Clause"
] | null | null | null | sisu/summarizer.py | balouf/sisu | 07541e6a02e545372452b33f7df056331397001f | [
"BSD-3-Clause"
] | null | null | null | sisu/summarizer.py | balouf/sisu | 07541e6a02e545372452b33f7df056331397001f | [
"BSD-3-Clause"
] | null | null | null | from scipy.sparse import vstack
from sklearn.metrics.pairwise import cosine_similarity
import numpy as np
from sisu.preprocessing.tokenizer import is_relevant_sentence, make_sentences, sanitize_text
from gismo.gismo import Gismo, covering_order
from gismo.common import auto_k
from gismo.parameters import Parameters
fr... | 46.077895 | 161 | 0.646 | 2,836 | 21,887 | 4.892454 | 0.184767 | 0.018739 | 0.01427 | 0.016865 | 0.388685 | 0.355243 | 0.333766 | 0.323387 | 0.31618 | 0.308036 | 0 | 0.012698 | 0.255174 | 21,887 | 474 | 162 | 46.175105 | 0.838425 | 0.558596 | 0 | 0.067568 | 0 | 0 | 0.080032 | 0.010139 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074324 | false | 0 | 0.067568 | 0.006757 | 0.209459 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
559fa91e2cb3fcb7a60d3f0698d9ba9ef4cfe606 | 4,482 | py | Python | automr/bridge.py | hebrewsnabla/pyAutoMR | 8e81ed7fd780abd94f8b51e48ee4b980a868c204 | [
"Apache-2.0"
] | 5 | 2021-06-03T07:49:02.000Z | 2022-02-21T11:35:20.000Z | automr/bridge.py | hebrewsnabla/pyAutoMR | 8e81ed7fd780abd94f8b51e48ee4b980a868c204 | [
"Apache-2.0"
] | 2 | 2022-01-20T08:33:59.000Z | 2022-03-26T12:21:15.000Z | automr/bridge.py | hebrewsnabla/pyAutoMR | 8e81ed7fd780abd94f8b51e48ee4b980a868c204 | [
"Apache-2.0"
] | 1 | 2022-02-21T11:35:34.000Z | 2022-02-21T11:35:34.000Z | import numpy as np
import os
from automr import dump_mat
from functools import partial, reduce
print = partial(print, flush=True)
einsum = partial(np.einsum, optimize=True)
def print_mol(mol):
print(mol._basis)
print(mol.atom)
print(mol._atom)
print(mol.aoslice_by_atom())
print(mol.ao_labels())
#if... | 35.015625 | 86 | 0.51071 | 669 | 4,482 | 3.312407 | 0.234679 | 0.100181 | 0.088448 | 0.022563 | 0.38222 | 0.259477 | 0.222473 | 0.222473 | 0.219314 | 0.219314 | 0 | 0.032612 | 0.309014 | 4,482 | 128 | 87 | 35.015625 | 0.682919 | 0.055556 | 0 | 0.065217 | 0 | 0 | 0.172684 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.043478 | 0 | 0.097826 | 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 |
55a1b6b516c4d12eb63cdf47d747201063521f8c | 487 | py | Python | Example/playstore.py | goodop/api-imjustgood.com | 6406b531c4393fa8a4ace3c206d23895da915caf | [
"MIT"
] | 4 | 2021-01-01T10:20:13.000Z | 2021-11-08T09:32:54.000Z | Example/playstore.py | goodop/api-imjustgood.com | 6406b531c4393fa8a4ace3c206d23895da915caf | [
"MIT"
] | null | null | null | Example/playstore.py | goodop/api-imjustgood.com | 6406b531c4393fa8a4ace3c206d23895da915caf | [
"MIT"
] | 25 | 2021-01-09T18:22:32.000Z | 2021-05-29T07:42:06.000Z | from justgood import imjustgood
media = imjustgood("YOUR_APIKEY_HERE")
query = "gojek" # example query
data = media.playstore(query)
# Get attributes
number = 0
result = "Playstore :"
for a in data["result"]:
number += 1
result += "\n\n{}. {}".format(number, a["title"])
result += "\nDeveloper : {}".format... | 24.35 | 55 | 0.63655 | 59 | 487 | 5.220339 | 0.576271 | 0.068182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004938 | 0.168378 | 487 | 19 | 56 | 25.631579 | 0.755556 | 0.092402 | 0 | 0 | 0 | 0 | 0.273973 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.071429 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
55a63e41c61dfc7f2803753c38bd275ef075fcb4 | 10,272 | py | Python | codes/3_derive_elementary_effects.py | aviolinist/EEE | 032e2029815229875048cc92dd7da24ff3f71e93 | [
"MIT"
] | 6 | 2019-09-27T15:38:37.000Z | 2021-02-03T13:58:01.000Z | codes/3_derive_elementary_effects.py | aviolinist/EEE | 032e2029815229875048cc92dd7da24ff3f71e93 | [
"MIT"
] | null | null | null | codes/3_derive_elementary_effects.py | aviolinist/EEE | 032e2029815229875048cc92dd7da24ff3f71e93 | [
"MIT"
] | 5 | 2019-09-27T15:38:52.000Z | 2022-03-22T17:24:37.000Z | #!/usr/bin/env python
from __future__ import print_function
# Copyright 2019 Juliane Mai - juliane.mai(at)uwaterloo.ca
#
# License
# This file is part of the EEE code library for "Computationally inexpensive identification
# of noninformative model parameters by sequential screening: Efficient Elementary Effects (EEE)... | 43.897436 | 405 | 0.633178 | 1,336 | 10,272 | 4.760479 | 0.255988 | 0.034591 | 0.031447 | 0.017925 | 0.343553 | 0.30739 | 0.245283 | 0.207233 | 0.207233 | 0.198113 | 0 | 0.020887 | 0.207652 | 10,272 | 233 | 406 | 44.085837 | 0.760536 | 0.292445 | 0 | 0.125 | 0 | 0.05 | 0.287762 | 0.045078 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.066667 | 0 | 0.066667 | 0.016667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
55a8a143755092a98ad8640901e8dbdb8d58845f | 9,439 | py | Python | install/app_store/tk-framework-desktopserver/v1.3.1/python/tk_framework_desktopserver/command.py | JoanAzpeitia/lp_sg | e0ee79555e419dd2ae3a5f31e5515b3f40b22a62 | [
"MIT"
] | null | null | null | install/app_store/tk-framework-desktopserver/v1.3.1/python/tk_framework_desktopserver/command.py | JoanAzpeitia/lp_sg | e0ee79555e419dd2ae3a5f31e5515b3f40b22a62 | [
"MIT"
] | null | null | null | install/app_store/tk-framework-desktopserver/v1.3.1/python/tk_framework_desktopserver/command.py | JoanAzpeitia/lp_sg | e0ee79555e419dd2ae3a5f31e5515b3f40b22a62 | [
"MIT"
] | 1 | 2020-02-15T10:42:56.000Z | 2020-02-15T10:42:56.000Z | # Copyright (c) 2013 Shotgun Software Inc.
#
# CONFIDENTIAL AND PROPRIETARY
#
# This work is provided "AS IS" and subject to the Shotgun Pipeline Toolkit
# Source Code License included in this distribution package. See LICENSE.
# By accessing, using, copying or modifying this work you indicate your
# agreement to the S... | 36.727626 | 123 | 0.604831 | 1,186 | 9,439 | 4.721754 | 0.306914 | 0.025536 | 0.018214 | 0.023571 | 0.19875 | 0.149821 | 0.13875 | 0.133393 | 0.096071 | 0.096071 | 0 | 0.005035 | 0.32673 | 9,439 | 256 | 124 | 36.871094 | 0.876161 | 0.469753 | 0 | 0.304348 | 0 | 0 | 0.027441 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052174 | false | 0.017391 | 0.069565 | 0 | 0.173913 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
55ae9ba4b65519bc33be7de8562a205f27c9a655 | 745 | py | Python | brilws/cli/briltag_insertdata.py | xiezhen/brilws | e3652dd4506dff9d713184ff623b59bc11fbe2c7 | [
"MIT"
] | 1 | 2017-03-23T16:26:06.000Z | 2017-03-23T16:26:06.000Z | brilws/cli/briltag_insertdata.py | xiezhen/brilws | e3652dd4506dff9d713184ff623b59bc11fbe2c7 | [
"MIT"
] | 1 | 2017-03-24T15:02:20.000Z | 2017-10-02T13:43:26.000Z | brilws/cli/briltag_insertdata.py | xiezhen/brilws | e3652dd4506dff9d713184ff623b59bc11fbe2c7 | [
"MIT"
] | 1 | 2019-12-06T09:23:01.000Z | 2019-12-06T09:23:01.000Z | """
Usage:
briltag insertdata [options]
Options:
-h --help Show this screen.
-c CONNECT Service name [default: onlinew]
-p AUTHPATH Authentication file
--name TAGNAME Name of the data tag
--comments COMMENTS Comments on the t... | 25.689655 | 93 | 0.625503 | 88 | 745 | 5.147727 | 0.625 | 0.07064 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.271141 | 745 | 28 | 94 | 26.607143 | 0.834254 | 0.421477 | 0 | 0 | 0 | 0 | 0.067308 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.272727 | 0 | 0.454545 | 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 |
55b3f38a36b36ad5c48a9910aaae79865f7775ae | 17,152 | py | Python | techniques/volumerec.py | lleonart1984/rendezvous | f8f5e73fa1ede7c33d8cf08548bce1475a0cc8da | [
"MIT"
] | null | null | null | techniques/volumerec.py | lleonart1984/rendezvous | f8f5e73fa1ede7c33d8cf08548bce1475a0cc8da | [
"MIT"
] | null | null | null | techniques/volumerec.py | lleonart1984/rendezvous | f8f5e73fa1ede7c33d8cf08548bce1475a0cc8da | [
"MIT"
] | null | null | null | from rendering.manager import *
from rendering.scenes import *
from rendering.training import *
import random
import glm
import os
import numpy as np
import math
__VOLUME_RECONSTRUCTION_SHADERS__ = os.path.dirname(__file__)+"/shaders/VR"
compile_shader_sources(__VOLUME_RECONSTRUCTION_SHADERS__)
class RayGenerator(R... | 45.983914 | 136 | 0.65007 | 2,028 | 17,152 | 5.193787 | 0.08925 | 0.037216 | 0.061521 | 0.071774 | 0.743093 | 0.670179 | 0.640748 | 0.605241 | 0.564606 | 0.528719 | 0 | 0.017657 | 0.257055 | 17,152 | 373 | 137 | 45.983914 | 0.808915 | 0.016091 | 0 | 0.490741 | 0 | 0 | 0.009252 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.089506 | false | 0 | 0.024691 | 0 | 0.148148 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
55b6264d004418dd7f3a7bb277c12e4c208f7910 | 868 | py | Python | basics/merge_sort.py | zi-NaN/algorithm_exercise | 817916a62774145fe6387b715f76c5badbf99197 | [
"MIT"
] | null | null | null | basics/merge_sort.py | zi-NaN/algorithm_exercise | 817916a62774145fe6387b715f76c5badbf99197 | [
"MIT"
] | null | null | null | basics/merge_sort.py | zi-NaN/algorithm_exercise | 817916a62774145fe6387b715f76c5badbf99197 | [
"MIT"
] | 1 | 2018-11-21T05:14:07.000Z | 2018-11-21T05:14:07.000Z |
def _merge_sort(arr:'list'):
if len(arr) <= 1:
return arr
begin = 0
end = len(arr)-1
middle = (begin+end)//2
first = _merge_sort(arr[begin:middle+1])
second = _merge_sort(arr[middle+1:end+1])
# merge
ptr1 = begin
ptr2 = middle+1
ptr = 0
while(ptr1<middle... | 24.111111 | 48 | 0.483871 | 117 | 868 | 3.452991 | 0.230769 | 0.138614 | 0.108911 | 0.126238 | 0.292079 | 0.292079 | 0.292079 | 0.292079 | 0.158416 | 0.158416 | 0 | 0.080882 | 0.373272 | 868 | 36 | 49 | 24.111111 | 0.661765 | 0.032258 | 0 | 0.433333 | 0 | 0 | 0.014981 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033333 | false | 0 | 0 | 0 | 0.1 | 0.033333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
55b7410f25633189b2b806b878e6eeb2f52c7ecc | 679 | py | Python | Data_Science/Python-Estatistica/stats-ex8.py | maledicente/cursos | 00ace48da7e48b04485e4ca97b3ca9ba5f33a283 | [
"MIT"
] | 1 | 2021-05-03T22:59:38.000Z | 2021-05-03T22:59:38.000Z | Data_Science/Python-Estatistica/stats-ex8.py | maledicente/cursos | 00ace48da7e48b04485e4ca97b3ca9ba5f33a283 | [
"MIT"
] | null | null | null | Data_Science/Python-Estatistica/stats-ex8.py | maledicente/cursos | 00ace48da7e48b04485e4ca97b3ca9ba5f33a283 | [
"MIT"
] | null | null | null | import numpy as np
import matplotlib.pyplot as plt
from scipy.optimize import curve_fit
def cinematica(t,s0,v0,a):
s = s0 + v0*t +(a*t*t/2.0)
return s
t = np.linspace(0, 5, 500)
s0 = 0.5
v0 = 2.0
a = 1.5
s_noise = 0.5 * np.random.normal(size=t.size)
s = cinematica(t,s0,v0,a)
sdata = s + s_noise
coefs, pcov = ... | 20.575758 | 64 | 0.673049 | 123 | 679 | 3.682927 | 0.447154 | 0.09713 | 0.057395 | 0.066225 | 0.07064 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044369 | 0.136966 | 679 | 33 | 65 | 20.575758 | 0.728669 | 0 | 0 | 0 | 0 | 0 | 0.172059 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0.125 | 0 | 0.208333 | 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 |
55b93809c23b2f231b7acf1f7f0608d40af2f69c | 1,828 | py | Python | run.py | Gandor26/covid-open | 50dcb773160edc16b107785a6bb32ae6f82fc9a7 | [
"MIT"
] | 12 | 2020-10-29T20:52:26.000Z | 2021-11-10T14:11:59.000Z | run.py | Gandor26/covid-open | 50dcb773160edc16b107785a6bb32ae6f82fc9a7 | [
"MIT"
] | 1 | 2021-02-16T09:48:39.000Z | 2021-03-20T04:21:54.000Z | run.py | Gandor26/covid-open | 50dcb773160edc16b107785a6bb32ae6f82fc9a7 | [
"MIT"
] | 1 | 2020-12-05T15:51:43.000Z | 2020-12-05T15:51:43.000Z | from typing import Optional, Dict
from pathlib import Path
from copy import deepcopy
from tqdm import tqdm
import torch as pt
from torch import Tensor, nn
from torch.optim import Adam
def train(
train_data: Dict[str, Tensor],
valid_data: Dict[str, Tensor],
model: nn.Module,
optimizer: Adam,
model... | 29.967213 | 64 | 0.565646 | 228 | 1,828 | 4.307018 | 0.328947 | 0.05499 | 0.033605 | 0.051935 | 0.114053 | 0.114053 | 0.114053 | 0 | 0 | 0 | 0 | 0.009031 | 0.333698 | 1,828 | 61 | 65 | 29.967213 | 0.797209 | 0 | 0 | 0.175439 | 0 | 0 | 0.015309 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035088 | false | 0 | 0.122807 | 0 | 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 |
55bb1301f3cfe948295e5ac6f60a5f73e88c2c17 | 975 | py | Python | python/StatsUtil.py | cbaldassano/Parcellating-connectivity | a98142a6b0dc10e9cb6f6e603cb5334996d018ec | [
"Unlicense"
] | 2 | 2020-08-17T21:06:28.000Z | 2021-05-10T14:37:16.000Z | python/StatsUtil.py | cbaldassano/Parcellating-connectivity | a98142a6b0dc10e9cb6f6e603cb5334996d018ec | [
"Unlicense"
] | null | null | null | python/StatsUtil.py | cbaldassano/Parcellating-connectivity | a98142a6b0dc10e9cb6f6e603cb5334996d018ec | [
"Unlicense"
] | 3 | 2018-07-06T17:08:47.000Z | 2019-10-09T18:58:31.000Z | import numpy as np
# Compute normalized mutual information between two parcellations z1 and z2
def NMI(z1, z2):
N = len(z1)
assert N == len(z2)
p1 = np.bincount(z1)/N
p1[p1 == 0] = 1
H1 = (-p1*np.log(p1)).sum()
p2 = np.bincount(z2)/N
p2[p2 == 0] = 1
H2 = (-p2*np.log(p2)).sum()
joint = np.histogram2d(z1,z2,... | 24.375 | 75 | 0.610256 | 177 | 975 | 3.288136 | 0.40113 | 0.051546 | 0.034364 | 0.058419 | 0.079038 | 0.079038 | 0 | 0 | 0 | 0 | 0 | 0.066581 | 0.198974 | 975 | 40 | 76 | 24.375 | 0.678617 | 0.167179 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037037 | 1 | 0.074074 | false | 0 | 0.037037 | 0 | 0.185185 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
55c01bcc5785d0af3f6437a91b853450fda2bb63 | 2,531 | py | Python | gdesk/panels/imgview/quantiles.py | thocoo/gamma-desk | 9cb63a65fe23e30e155b3beca862f369b7fa1b7e | [
"Apache-2.0"
] | null | null | null | gdesk/panels/imgview/quantiles.py | thocoo/gamma-desk | 9cb63a65fe23e30e155b3beca862f369b7fa1b7e | [
"Apache-2.0"
] | 8 | 2021-04-09T11:31:43.000Z | 2021-06-09T09:07:18.000Z | gdesk/panels/imgview/quantiles.py | thocoo/gamma-desk | 9cb63a65fe23e30e155b3beca862f369b7fa1b7e | [
"Apache-2.0"
] | null | null | null | import numpy as np
from .fasthist import hist2d
stdquant = np.ndarray(13)
stdquant[0] = (0.0000316712418331200) #-4 sdev
stdquant[1] = (0.0013498980316301000) #-3 sdev
stdquant[2] = (0.0227501319481792000) #-2 sdev
stdquant[3] = (0.05)
stdquant[4] = (0.1586552539314570000) #-1 sdev or lsdev
stdquant[5] = (0.25) ... | 34.671233 | 83 | 0.590281 | 317 | 2,531 | 4.662461 | 0.277603 | 0.028417 | 0.067659 | 0.077808 | 0.44452 | 0.397835 | 0.397835 | 0.2977 | 0.175913 | 0.175913 | 0 | 0.1322 | 0.279731 | 2,531 | 73 | 84 | 34.671233 | 0.678552 | 0.086922 | 0 | 0.392857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.053571 | false | 0 | 0.035714 | 0 | 0.196429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e94dc72d516776aab0f1e035f052d60121476db1 | 1,981 | py | Python | create_h5ad.py | xmuyulab/DAISM-XMBD | 916e18a1f111789a1c0bd3c1209d5a73813f3d3a | [
"MIT"
] | 2 | 2021-11-05T00:43:16.000Z | 2021-12-14T08:39:29.000Z | create_h5ad.py | biosyy/DAISM-XMBD | a76f976db8c33ef33f78533a5a2be50a85148e79 | [
"MIT"
] | 2 | 2021-01-14T19:40:46.000Z | 2021-01-14T19:41:14.000Z | create_h5ad.py | biosyy/DAISM-XMBD | a76f976db8c33ef33f78533a5a2be50a85148e79 | [
"MIT"
] | 1 | 2021-08-30T15:11:45.000Z | 2021-08-30T15:11:45.000Z | ##############################
## cread purified h5ad file ##
##############################
# input: annotation table and the whole expression profile
# output: purified h5ad file
import os
import pandas as pd
import anndata
import argparse
import gc
import numpy as np
parser = argparse.ArgumentParser(description='... | 34.155172 | 135 | 0.649167 | 265 | 1,981 | 4.732075 | 0.373585 | 0.031898 | 0.054226 | 0.033493 | 0.044657 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008679 | 0.185765 | 1,981 | 58 | 136 | 34.155172 | 0.768754 | 0.055023 | 0 | 0 | 0 | 0 | 0.19103 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.026316 | false | 0 | 0.157895 | 0 | 0.184211 | 0.052632 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e94e1af31de28cb3ee32e1feeddbef4991bf43d4 | 1,424 | py | Python | FM_Tuning.py | RomanGutin/GEMSEC | cb2c26d4747cbd3d4c048787ca41665ef0e64155 | [
"MIT"
] | null | null | null | FM_Tuning.py | RomanGutin/GEMSEC | cb2c26d4747cbd3d4c048787ca41665ef0e64155 | [
"MIT"
] | null | null | null | FM_Tuning.py | RomanGutin/GEMSEC | cb2c26d4747cbd3d4c048787ca41665ef0e64155 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Thu Nov 29 13:56:44 2018
@author: RomanGutin
"""
import pandas as pd
import numpy as np
#Frequency Tuning Loop
amino_letter = ['A','R','D','N','C','E','Q','G','H','I','L','K','M','F','P','S','T','W','Y','V']
length_scores =[4,8,6,6,5,7,7,4,7,5,6,8,7,8,5,5,5,9,8,5]
FM_df = pd.Dat... | 30.297872 | 96 | 0.656601 | 256 | 1,424 | 3.472656 | 0.441406 | 0.035996 | 0.053993 | 0.038245 | 0.07649 | 0.044994 | 0 | 0 | 0 | 0 | 0 | 0.034305 | 0.18118 | 1,424 | 47 | 97 | 30.297872 | 0.72813 | 0.213483 | 0 | 0 | 0 | 0 | 0.059621 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.074074 | 0 | 0.074074 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e94e9483c973c25abe2c71d5816ab7d9b774441e | 692 | py | Python | unified_api/brokers/kafka/consumer.py | campos537/deep-fashion-system | 1de31dd6260cc967e1832cff63ae7e537a3a4e9d | [
"Unlicense"
] | 1 | 2021-04-06T00:43:26.000Z | 2021-04-06T00:43:26.000Z | unified_api/brokers/kafka/consumer.py | campos537/deep-fashion-system | 1de31dd6260cc967e1832cff63ae7e537a3a4e9d | [
"Unlicense"
] | null | null | null | unified_api/brokers/kafka/consumer.py | campos537/deep-fashion-system | 1de31dd6260cc967e1832cff63ae7e537a3a4e9d | [
"Unlicense"
] | null | null | null | from kafka import KafkaConsumer
class Consumer:
def __init__(self, config):
bootstrap_server = config.get(
"bootstrap_server") + ":" + config.get("port")
self.consumer = KafkaConsumer(config.get(
"subscription_id_2"), bootstrap_servers=bootstrap_server, api_version=(0, 10), ... | 34.6 | 109 | 0.601156 | 77 | 692 | 5.181818 | 0.558442 | 0.120301 | 0.105263 | 0.120301 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012245 | 0.291908 | 692 | 19 | 110 | 36.421053 | 0.802041 | 0 | 0 | 0 | 0 | 0 | 0.072254 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1875 | false | 0 | 0.0625 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e94ef8f2fd09f77bca0e59bab465fb16e55c0ca1 | 2,159 | py | Python | utils.py | mino2401200231/File-convertor | 6fb438dc5f37bf0efd78e18e4848b4cdb0331343 | [
"MIT"
] | null | null | null | utils.py | mino2401200231/File-convertor | 6fb438dc5f37bf0efd78e18e4848b4cdb0331343 | [
"MIT"
] | null | null | null | utils.py | mino2401200231/File-convertor | 6fb438dc5f37bf0efd78e18e4848b4cdb0331343 | [
"MIT"
] | 2 | 2021-08-12T06:37:52.000Z | 2021-09-05T13:03:36.000Z | # utilities
import os
from re import sub
import uuid
import subprocess
# Image To Pdf
import img2pdf
# PDF To Images
from pdf2image import convert_from_path
# PDF To Word
from pdf2docx import parse
_BASE_DIR = os.getcwd()
_BASE_DIR_FILE = os.path.join(_BASE_DIR, "files")
def process_image_to_pdf(files, pdf_name... | 26.329268 | 117 | 0.656322 | 304 | 2,159 | 4.355263 | 0.253289 | 0.068731 | 0.09139 | 0.095166 | 0.282477 | 0.269637 | 0.190332 | 0.169184 | 0.145015 | 0.090634 | 0 | 0.008526 | 0.239463 | 2,159 | 82 | 118 | 26.329268 | 0.797808 | 0.022233 | 0 | 0.34375 | 0 | 0 | 0.043189 | 0.014713 | 0 | 0 | 0 | 0 | 0 | 1 | 0.09375 | false | 0.046875 | 0.125 | 0 | 0.328125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e950fb1913401e7e3634e1210cfe24f9fddcf950 | 2,026 | py | Python | screens/tasks/tasks.py | athrn/kognitivo | 15822338778213c09ea654ec4e06a300129f9478 | [
"Apache-2.0"
] | 80 | 2017-11-13T21:58:55.000Z | 2022-01-03T20:10:42.000Z | screens/tasks/tasks.py | athrn/kognitivo | 15822338778213c09ea654ec4e06a300129f9478 | [
"Apache-2.0"
] | null | null | null | screens/tasks/tasks.py | athrn/kognitivo | 15822338778213c09ea654ec4e06a300129f9478 | [
"Apache-2.0"
] | 21 | 2017-11-14T09:47:41.000Z | 2021-11-23T06:44:31.000Z | from kivy.uix.screenmanager import Screen
from kivy.properties import StringProperty, ObjectProperty, NumericProperty, ListProperty, BooleanProperty
from kivy.app import App
from kivy.logger import Logger
from library_widgets import TrackingScreenMixin
from utils import import_kv
import_kv(__file__)
class TasksScr... | 35.54386 | 106 | 0.673248 | 230 | 2,026 | 5.691304 | 0.352174 | 0.10084 | 0.114591 | 0.036669 | 0.02903 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003197 | 0.228036 | 2,026 | 56 | 107 | 36.178571 | 0.83376 | 0 | 0 | 0.044444 | 0 | 0 | 0.058243 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.088889 | false | 0 | 0.177778 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e954754c8db1dbc45662c97eec7de33aed7d3e19 | 1,240 | py | Python | imclassify/train_model.py | AdamSpannbauer/imclassify | 27c24576ef6a2ed344cad7f568f7e4cdfe6ea0bd | [
"MIT"
] | null | null | null | imclassify/train_model.py | AdamSpannbauer/imclassify | 27c24576ef6a2ed344cad7f568f7e4cdfe6ea0bd | [
"MIT"
] | null | null | null | imclassify/train_model.py | AdamSpannbauer/imclassify | 27c24576ef6a2ed344cad7f568f7e4cdfe6ea0bd | [
"MIT"
] | null | null | null | """Train logistic regression model on hdf5 features for classification
Modified from:
https://gurus.pyimagesearch.com/topic/transfer-learning-example-dogs-and-cats/
"""
import pickle
from sklearn.linear_model import LogisticRegression
from sklearn.metrics import classification_report
def train_model(h5py_db, mod... | 37.575758 | 90 | 0.704839 | 167 | 1,240 | 5.08982 | 0.473054 | 0.056471 | 0.042353 | 0.032941 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016732 | 0.180645 | 1,240 | 32 | 91 | 38.75 | 0.819882 | 0.43871 | 0 | 0 | 0 | 0 | 0.088989 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.230769 | 0 | 0.307692 | 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 |
e955b53af943d2f078f97e589977586caea5ae03 | 1,760 | py | Python | Test/final/V5_baseline_CC_ref/aggregate.py | WangWenhao0716/ISC-Track1-Submission | 3484142c0550262c90fc229e5e0ba719c58c592d | [
"MIT"
] | 46 | 2021-10-31T08:02:51.000Z | 2022-03-11T08:42:30.000Z | Test/final/V5_baseline_CC_ref/aggregate.py | WangWenhao0716/ISC-Track1-Submission | 3484142c0550262c90fc229e5e0ba719c58c592d | [
"MIT"
] | 3 | 2021-11-18T09:35:45.000Z | 2022-03-31T01:20:34.000Z | Test/final/V5_baseline_CC_ref/aggregate.py | WangWenhao0716/ISC-Track1-Submission | 3484142c0550262c90fc229e5e0ba719c58c592d | [
"MIT"
] | 8 | 2021-12-01T08:02:08.000Z | 2022-02-26T13:29:36.000Z | import pandas as pd
v_4 = pd.read_csv('50/predictions_dev_queries_50k_normalized_exp.csv')
temp = list(v_4['query_id'])
v_4['query_id'] = list(v_4['reference_id'])
v_4['reference_id'] = temp
v_5 = pd.read_csv('ibn/predictions_dev_queries_50k_normalized_exp.csv')
temp = list(v_5['query_id'])
v_5['query_id'] = list(v_5... | 31.428571 | 74 | 0.710795 | 360 | 1,760 | 3.088889 | 0.161111 | 0.030576 | 0.043165 | 0.04946 | 0.557554 | 0.519784 | 0.519784 | 0.236511 | 0.132194 | 0.132194 | 0 | 0.075567 | 0.097727 | 1,760 | 55 | 75 | 32 | 0.624685 | 0 | 0 | 0.044444 | 0 | 0 | 0.255114 | 0.098864 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.022222 | 0 | 0.022222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e9569e3a4e8763ed40f2c7965c464907cae6ec57 | 744 | py | Python | tutorial/flask-api-mongo/app/services/mail_service.py | carrenolg/python | 7c1f0013d911177ce3bc2c5ea58b8e6e562b7282 | [
"Apache-2.0"
] | null | null | null | tutorial/flask-api-mongo/app/services/mail_service.py | carrenolg/python | 7c1f0013d911177ce3bc2c5ea58b8e6e562b7282 | [
"Apache-2.0"
] | null | null | null | tutorial/flask-api-mongo/app/services/mail_service.py | carrenolg/python | 7c1f0013d911177ce3bc2c5ea58b8e6e562b7282 | [
"Apache-2.0"
] | null | null | null | from threading import Thread
from flask_mail import Mail, Message
from resources.errors import InternalServerError
mail = Mail(app=None)
app = None
def initialize_mail_service(appiclation):
global mail
global app
mail = Mail(app=appiclation)
app = appiclation
def send_async_email(app, msg, mail):
... | 25.655172 | 66 | 0.711022 | 94 | 744 | 5.489362 | 0.414894 | 0.089147 | 0.042636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.201613 | 744 | 28 | 67 | 26.571429 | 0.868687 | 0 | 0 | 0 | 0 | 0 | 0.033602 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | 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 |
e9570255d9896891bde513fb7630bb22b041b8d0 | 18,541 | py | Python | vxsandbox/resources/tests/test_http.py | praekeltfoundation/vumi-sandbox | 1e2dfca8325ce98e52fe32a072749fe4cf7f448d | [
"BSD-3-Clause"
] | 1 | 2021-05-26T08:38:28.000Z | 2021-05-26T08:38:28.000Z | vxsandbox/resources/tests/test_http.py | praekelt/vumi-sandbox | 1e2dfca8325ce98e52fe32a072749fe4cf7f448d | [
"BSD-3-Clause"
] | 24 | 2015-03-04T08:33:12.000Z | 2016-08-18T07:57:12.000Z | vxsandbox/resources/tests/test_http.py | praekeltfoundation/vumi-sandbox | 1e2dfca8325ce98e52fe32a072749fe4cf7f448d | [
"BSD-3-Clause"
] | null | null | null | import base64
import json
from OpenSSL.SSL import (
VERIFY_PEER, VERIFY_FAIL_IF_NO_PEER_CERT, VERIFY_NONE,
SSLv3_METHOD, SSLv23_METHOD, TLSv1_METHOD)
from twisted.web.http_headers import Headers
from twisted.internet.defer import inlineCallbacks, fail, succeed
from vxsandbox.resources.http import (
HttpC... | 42.138636 | 79 | 0.644356 | 2,092 | 18,541 | 5.476577 | 0.118069 | 0.085537 | 0.038579 | 0.031422 | 0.680981 | 0.626167 | 0.607052 | 0.585668 | 0.552675 | 0.541067 | 0 | 0.004762 | 0.252521 | 18,541 | 439 | 80 | 42.234624 | 0.821921 | 0.073782 | 0 | 0.514368 | 0 | 0 | 0.102887 | 0.001575 | 0 | 0 | 0 | 0 | 0.278736 | 1 | 0.112069 | false | 0 | 0.020115 | 0.002874 | 0.16954 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e95a4fa6b39694c0762d544398c6a91dc4eb000f | 722 | py | Python | soundDB/__init__.py | gjoseph92/soundDB2 | 4d9cc93cc596a5089233f17b0b8be252f73e1224 | [
"CC0-1.0"
] | 3 | 2017-05-16T19:37:32.000Z | 2020-03-29T21:54:33.000Z | soundDB/__init__.py | gjoseph92/soundDB2 | 4d9cc93cc596a5089233f17b0b8be252f73e1224 | [
"CC0-1.0"
] | 19 | 2016-12-02T20:47:24.000Z | 2021-10-05T19:01:01.000Z | soundDB/__init__.py | gjoseph92/soundDB2 | 4d9cc93cc596a5089233f17b0b8be252f73e1224 | [
"CC0-1.0"
] | 2 | 2017-05-10T23:01:06.000Z | 2019-12-27T19:49:29.000Z | from .accessor import Accessor
from . import parsers
import inspect
def populateAccessors():
"""
Find all filetype-specific Accessor subclasses in the parsers file (i.e. NVSPL, SRCID, etc.) and instantiate them.
This way, one instance of each Accessor is added to the soundDB namespace under the name of th... | 34.380952 | 118 | 0.756233 | 89 | 722 | 6.134831 | 0.617978 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.17313 | 722 | 20 | 119 | 36.1 | 0.914573 | 0.315789 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.3 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e95c5e6fc88c9d5b12bafc54c0d0afb1690c36cf | 556 | py | Python | tests/testLoadMapFromString.py | skowronskij/OGCServer | 3fd11438180944ffa43e315c6390e89437a28f4e | [
"BSD-3-Clause"
] | 90 | 2015-04-30T22:13:14.000Z | 2022-02-16T17:30:11.000Z | tests/testLoadMapFromString.py | skowronskij/OGCServer | 3fd11438180944ffa43e315c6390e89437a28f4e | [
"BSD-3-Clause"
] | 6 | 2019-09-09T06:07:27.000Z | 2020-06-17T09:52:49.000Z | tests/testLoadMapFromString.py | skowronskij/OGCServer | 3fd11438180944ffa43e315c6390e89437a28f4e | [
"BSD-3-Clause"
] | 28 | 2015-05-12T09:08:17.000Z | 2021-07-02T11:53:29.000Z | import nose
import os
from ogcserver.WMS import BaseWMSFactory
def test_wms_capabilities():
base_path, tail = os.path.split(__file__)
file_path = os.path.join(base_path, 'mapfile_encoding.xml')
wms = BaseWMSFactory()
with open(file_path) as f:
settings = f.read()
wms.loadXML(xmlstring=setti... | 27.8 | 63 | 0.676259 | 74 | 556 | 4.918919 | 0.554054 | 0.065934 | 0.043956 | 0.131868 | 0.175824 | 0.175824 | 0 | 0 | 0 | 0 | 0 | 0.004608 | 0.219424 | 556 | 19 | 64 | 29.263158 | 0.834101 | 0 | 0 | 0 | 0 | 0 | 0.129496 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.1875 | 0 | 0.3125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e95f809c079ce79cbabf21b0bd9fca926c8f6149 | 864 | py | Python | setup.py | mikemalinowski/insomnia | ea637e5eba608eacd1731239f7ddf6bb91aacc9e | [
"MIT"
] | 2 | 2019-02-28T09:58:55.000Z | 2020-03-06T05:03:34.000Z | setup.py | mikemalinowski/insomnia | ea637e5eba608eacd1731239f7ddf6bb91aacc9e | [
"MIT"
] | null | null | null | setup.py | mikemalinowski/insomnia | ea637e5eba608eacd1731239f7ddf6bb91aacc9e | [
"MIT"
] | null | null | null | import setuptools
try:
with open('README.md', 'r') as fh:
long_description = fh.read()
except:
long_description = ''
setuptools.setup(
name='blackout',
version='1.0.4',
author='Mike Malinowski',
author_email='mike@twisted.space',
description='A python package making it... | 28.8 | 99 | 0.635417 | 92 | 864 | 5.836957 | 0.728261 | 0.139665 | 0.070764 | 0.111732 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004566 | 0.239583 | 864 | 29 | 100 | 29.793103 | 0.812785 | 0 | 0 | 0 | 0 | 0 | 0.440719 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.037037 | 0 | 0.037037 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e96093e48bfaf833c59e3c55fbafb9b3d90f3407 | 710 | py | Python | src/hypermd/html/html.py | Riib11/HyperMD | d6921b701635356236b00d0a8794ab68d733ad59 | [
"MIT"
] | null | null | null | src/hypermd/html/html.py | Riib11/HyperMD | d6921b701635356236b00d0a8794ab68d733ad59 | [
"MIT"
] | null | null | null | src/hypermd/html/html.py | Riib11/HyperMD | d6921b701635356236b00d0a8794ab68d733ad59 | [
"MIT"
] | null | null | null | class Element:
def __init__(self, name, single):
self.name = name
self.single = single
self.attrs = {}
self.content = ""
def set_attr(self, k, v): self.attrs[k] = v
def get_attr(self, v): return self.attrs[k]
def tohtml(self):
attrs = (" " + " ".join([ "%s=\"%s\... | 29.583333 | 53 | 0.453521 | 89 | 710 | 3.460674 | 0.303371 | 0.175325 | 0.058442 | 0.097403 | 0.103896 | 0.103896 | 0 | 0 | 0 | 0 | 0 | 0.002278 | 0.38169 | 710 | 24 | 54 | 29.583333 | 0.699317 | 0 | 0 | 0.181818 | 0 | 0 | 0.032349 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0 | 0.045455 | 0.409091 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e960b0fabb4246bd94bb826b4cf1e4c34f2696b5 | 2,590 | py | Python | vk_music/__main__.py | w1r2p1/vk_music | 066fa623f87a6351846011c477cff2aad2943bc5 | [
"MIT"
] | 7 | 2015-01-26T08:46:12.000Z | 2020-08-29T13:07:07.000Z | vk_music/__main__.py | w1r2p1/vk_music | 066fa623f87a6351846011c477cff2aad2943bc5 | [
"MIT"
] | 3 | 2015-04-29T20:34:53.000Z | 2015-07-08T08:43:47.000Z | vk_music/__main__.py | sashasimkin/vk_music | 3814909ffd914103e80734e51b01dddb458b1bfe | [
"MIT"
] | 4 | 2016-04-24T14:09:48.000Z | 2019-11-23T14:50:46.000Z | #!/usr/bin/python
# -*- coding: utf-8 -*-
from __future__ import print_function
import os
import argparse
from subprocess import call
from .vk_music import VkMusic
from .exceptions import AlreadyRunningError
from .defaults import SafeFsStorage
def main():
parser = argparse.ArgumentParser()
parser.add_argumen... | 39.846154 | 116 | 0.622008 | 329 | 2,590 | 4.802432 | 0.449848 | 0.056962 | 0.107595 | 0.017722 | 0.034177 | 0.034177 | 0 | 0 | 0 | 0 | 0 | 0.011886 | 0.252896 | 2,590 | 64 | 117 | 40.46875 | 0.804651 | 0.088803 | 0 | 0.061224 | 0 | 0 | 0.247129 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.020408 | false | 0.020408 | 0.142857 | 0 | 0.163265 | 0.040816 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e962ef78829cd251169298d5da18fd8a33cb94ba | 950 | py | Python | misc/convert.py | Fusion-Goettingen/ExtendedTargetTrackingToolbox | 945ede661e9258a8f1ca8abc00e25727fedf3ac7 | [
"MIT"
] | 40 | 2018-07-30T13:07:23.000Z | 2021-08-30T05:53:29.000Z | misc/convert.py | GitRooky/ExtendedTargetTrackingToolbox | 945ede661e9258a8f1ca8abc00e25727fedf3ac7 | [
"MIT"
] | null | null | null | misc/convert.py | GitRooky/ExtendedTargetTrackingToolbox | 945ede661e9258a8f1ca8abc00e25727fedf3ac7 | [
"MIT"
] | 21 | 2018-10-03T11:50:00.000Z | 2022-01-11T06:41:24.000Z | __author__ = "Jens Honer"
__copyright__ = "Copyright 2018, Jens Honer Tracking Toolbox"
__email__ = "-"
__license__ = "mit"
__version__ = "1.0"
__status__ = "Prototype"
import numpy as np
_bbox_sign_factors = np.asarray(
[
[1.0, 1.0],
[0.0, 1.0],
[-1.0, 1.0],
[... | 27.142857 | 93 | 0.548421 | 138 | 950 | 3.391304 | 0.427536 | 0.055556 | 0.070513 | 0.068376 | 0.194444 | 0.153846 | 0.068376 | 0.068376 | 0.068376 | 0.068376 | 0 | 0.062409 | 0.274737 | 950 | 34 | 94 | 27.941176 | 0.616836 | 0 | 0 | 0 | 0 | 0 | 0.116842 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0 | 0.037037 | 0 | 0.111111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e9667bd424694f5af16378d0dfcd7bc9fa58a7a6 | 3,356 | py | Python | src/base/local_dataset.py | wenyushi451/Deep-SAD-PyTorch | 168d31f538a50fb029739206994ea5517d907853 | [
"MIT"
] | null | null | null | src/base/local_dataset.py | wenyushi451/Deep-SAD-PyTorch | 168d31f538a50fb029739206994ea5517d907853 | [
"MIT"
] | null | null | null | src/base/local_dataset.py | wenyushi451/Deep-SAD-PyTorch | 168d31f538a50fb029739206994ea5517d907853 | [
"MIT"
] | null | null | null | from torch.utils.data import Dataset
from torchvision.transforms import transforms
from sklearn.model_selection import train_test_split
import os
import glob
import torch
import numpy as np
from PIL import Image
import pdb
class LocalDataset(Dataset):
def __init__(
self,
root: str,
datase... | 35.326316 | 111 | 0.56615 | 425 | 3,356 | 4.249412 | 0.244706 | 0.016611 | 0.011074 | 0.015504 | 0.355482 | 0.183832 | 0.119601 | 0.048726 | 0.048726 | 0.048726 | 0 | 0.020318 | 0.325387 | 3,356 | 94 | 112 | 35.702128 | 0.777385 | 0.152563 | 0 | 0.044776 | 0 | 0 | 0.005745 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.044776 | false | 0 | 0.134328 | 0.014925 | 0.223881 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e96b4f43c95a1b4ce5857c21e88b3785232408aa | 9,142 | py | Python | main.py | Lmy0217/Flight | faf5045712c4d28e0ca3df408308a5e3b9bf8038 | [
"MIT"
] | 2 | 2019-03-31T01:42:29.000Z | 2019-05-16T06:31:50.000Z | main.py | Lmy0217/Flight | faf5045712c4d28e0ca3df408308a5e3b9bf8038 | [
"MIT"
] | 1 | 2019-03-31T01:45:25.000Z | 2019-04-17T05:46:35.000Z | main.py | Lmy0217/Flight | faf5045712c4d28e0ca3df408308a5e3b9bf8038 | [
"MIT"
] | 1 | 2019-03-31T01:42:34.000Z | 2019-03-31T01:42:34.000Z | #coding=utf-8
import tkinter as tk
from tkinter import ttk
from tkinter import scrolledtext
from tkinter import messagebox as mBox
from tkinter import filedialog
import matplotlib
matplotlib.use('TkAgg')
from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg
import matplotlib.pyplot as plt
import datetime
i... | 27.371257 | 161 | 0.669438 | 1,311 | 9,142 | 4.617086 | 0.194508 | 0.051214 | 0.032711 | 0.041632 | 0.45845 | 0.415827 | 0.376673 | 0.317694 | 0.317694 | 0.282835 | 0 | 0.028774 | 0.152264 | 9,142 | 333 | 162 | 27.453453 | 0.752258 | 0.025487 | 0 | 0.191919 | 0 | 0.005051 | 0.092334 | 0.00248 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.065657 | 0 | 0.121212 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e96debb65a28b71e00c0a2a49cd0ca34ceacdd69 | 449 | py | Python | api/compat.py | fancystats/api | 298ae6d71fa37f649bbd61ad000767242f49a698 | [
"MIT"
] | 1 | 2015-03-20T20:35:22.000Z | 2015-03-20T20:35:22.000Z | api/compat.py | fancystats/api | 298ae6d71fa37f649bbd61ad000767242f49a698 | [
"MIT"
] | null | null | null | api/compat.py | fancystats/api | 298ae6d71fa37f649bbd61ad000767242f49a698 | [
"MIT"
] | null | null | null | """
Python 2/3 Compatibility
========================
Not sure we need to support anything but Python 2.7 at this point , but copied
this module over from flask-peewee for the time being.
"""
import sys
PY2 = sys.version_info[0] == 2
if PY2:
text_type = unicode
string_types = (str, unicode)
unichr = u... | 17.96 | 78 | 0.639198 | 64 | 449 | 4.40625 | 0.6875 | 0.049645 | 0.099291 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023324 | 0.23608 | 449 | 24 | 79 | 18.708333 | 0.798834 | 0.4098 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 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 |
e97022aba46b50c4fc79f34b4e0641ec360d25a6 | 3,254 | bzl | Python | infra-sk/karma_test/index.bzl | bodymovin/skia-buildbot | 1570e4e48ecb330750264d4ae6a875b5e49a37fe | [
"BSD-3-Clause"
] | null | null | null | infra-sk/karma_test/index.bzl | bodymovin/skia-buildbot | 1570e4e48ecb330750264d4ae6a875b5e49a37fe | [
"BSD-3-Clause"
] | null | null | null | infra-sk/karma_test/index.bzl | bodymovin/skia-buildbot | 1570e4e48ecb330750264d4ae6a875b5e49a37fe | [
"BSD-3-Clause"
] | null | null | null | """This module defines the karma_test rule."""
load("@infra-sk_npm//@bazel/typescript:index.bzl", "ts_library")
load("@infra-sk_npm//@bazel/rollup:index.bzl", "rollup_bundle")
load("@infra-sk_npm//karma:index.bzl", _generated_karma_test = "karma_test")
def karma_test(name, srcs, deps, entry_point = None):
"""Runs... | 36.977273 | 100 | 0.609711 | 440 | 3,254 | 4.388636 | 0.35 | 0.068876 | 0.082859 | 0.054376 | 0.101502 | 0.027965 | 0.027965 | 0 | 0 | 0 | 0 | 0.001279 | 0.279348 | 3,254 | 87 | 101 | 37.402299 | 0.822175 | 0.374309 | 0 | 0.092593 | 0 | 0 | 0.433231 | 0.307849 | 0 | 0 | 0 | 0 | 0 | 1 | 0.018519 | false | 0 | 0 | 0 | 0.018519 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e970a8957b84490bbe0b79a62e25d6fddc55f490 | 5,894 | py | Python | stats/ClassicAnalyzerStats.py | arndff/fpl-rivals-tracker | 311b932ab7c07b03c1676e5a971df13e652a1b7b | [
"Apache-2.0"
] | 4 | 2019-02-06T10:42:50.000Z | 2021-02-17T21:09:26.000Z | stats/ClassicAnalyzerStats.py | arndff/fpl-rivals-tracker | 311b932ab7c07b03c1676e5a971df13e652a1b7b | [
"Apache-2.0"
] | null | null | null | stats/ClassicAnalyzerStats.py | arndff/fpl-rivals-tracker | 311b932ab7c07b03c1676e5a971df13e652a1b7b | [
"Apache-2.0"
] | 1 | 2021-02-17T21:09:27.000Z | 2021-02-17T21:09:27.000Z | from fileutils.fileutils import save_output_to_file, select_option_from_menu
class ClassicAnalyzerStats:
def __init__(self, data, current_event, output_file_name):
self.__data = data
self.__current_event = current_event
self.__output_file_name = output_file_name
self.__output = []... | 33.68 | 120 | 0.588904 | 685 | 5,894 | 4.670073 | 0.191241 | 0.053142 | 0.06502 | 0.017505 | 0.20944 | 0.11316 | 0.0794 | 0.0794 | 0.059394 | 0.038762 | 0 | 0.009575 | 0.308958 | 5,894 | 174 | 121 | 33.873563 | 0.775841 | 0 | 0 | 0.165414 | 0 | 0 | 0.090092 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.112782 | false | 0 | 0.007519 | 0 | 0.135338 | 0.150376 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
e9736a918f48d6f382688f91eb8391428a99f968 | 2,893 | py | Python | sarpy/io/product/base.py | spacefan/sarpy | 2791af86b568c8a8560275aee426a4718d5a4606 | [
"MIT"
] | 119 | 2018-07-12T22:08:17.000Z | 2022-03-24T12:11:39.000Z | sarpy/io/product/base.py | spacefan/sarpy | 2791af86b568c8a8560275aee426a4718d5a4606 | [
"MIT"
] | 72 | 2018-03-29T15:57:37.000Z | 2022-03-10T01:46:21.000Z | sarpy/io/product/base.py | spacefan/sarpy | 2791af86b568c8a8560275aee426a4718d5a4606 | [
"MIT"
] | 54 | 2018-03-27T19:57:20.000Z | 2022-03-09T20:53:11.000Z | """
Base common features for product readers
"""
__classification__ = "UNCLASSIFIED"
__author__ = "Thomas McCullough"
from typing import Sequence, List, Tuple, Union
from sarpy.io.general.base import AbstractReader
from sarpy.io.product.sidd1_elements.SIDD import SIDDType as SIDDType1
from sarpy.io.product.sidd2_el... | 31.445652 | 98 | 0.59281 | 324 | 2,893 | 5.089506 | 0.243827 | 0.082474 | 0.065494 | 0.05094 | 0.351728 | 0.180716 | 0.114008 | 0.053366 | 0.053366 | 0.053366 | 0 | 0.011651 | 0.317663 | 2,893 | 91 | 99 | 31.791209 | 0.823708 | 0.248531 | 0 | 0.270833 | 0 | 0 | 0.104187 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.104167 | 0 | 0.3125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |