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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
bb52f288b0e795d00e5f3bf63b427429792a24ad | 9,486 | py | Python | house_load_profiler.py | gianmarco-lorenti/RECOpt | c7916861db033f9d917d05094102194202e3bb09 | [
"MIT"
] | 8 | 2021-03-08T09:30:16.000Z | 2022-02-18T19:40:41.000Z | house_load_profiler.py | gianmarco-lorenti/RECOpt | c7916861db033f9d917d05094102194202e3bb09 | [
"MIT"
] | null | null | null | house_load_profiler.py | gianmarco-lorenti/RECOpt | c7916861db033f9d917d05094102194202e3bb09 | [
"MIT"
] | 1 | 2021-05-24T13:21:36.000Z | 2021-05-24T13:21:36.000Z | # -*- coding: utf-8 -*-
"""
Created on Wed Oct 28 18:37:58 2020
@author: giamm
"""
# from tictoc import tic, toc
import numpy as np
import datareader #routine created to properly read the files needed in the following
from load_profiler import load_profiler as lp
##################################################... | 37.2 | 134 | 0.621969 | 1,267 | 9,486 | 4.479084 | 0.240726 | 0.073656 | 0.033833 | 0.011454 | 0.221322 | 0.170573 | 0.14185 | 0.09304 | 0.065903 | 0.052863 | 0 | 0.012665 | 0.242568 | 9,486 | 255 | 134 | 37.2 | 0.777175 | 0.731499 | 0 | 0 | 0 | 0 | 0.025065 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0 | 0.103448 | 0 | 0.137931 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bb5619127572d5c7abef2ce8289d84bfdb46675d | 6,075 | py | Python | content/model_funcs.py | nathanlyons/sensitivity_analysis_clinic_CSDMS_2019 | ca1ae2cdc5239bae755929f6a92d669a82192813 | [
"MIT"
] | null | null | null | content/model_funcs.py | nathanlyons/sensitivity_analysis_clinic_CSDMS_2019 | ca1ae2cdc5239bae755929f6a92d669a82192813 | [
"MIT"
] | null | null | null | content/model_funcs.py | nathanlyons/sensitivity_analysis_clinic_CSDMS_2019 | ca1ae2cdc5239bae755929f6a92d669a82192813 | [
"MIT"
] | null | null | null | """Model functions sensitivity analysis clinic at CSDMS 2019.
Written by Nathan Lyons, May 2019
"""
from os.path import join
from landlab import RasterModelGrid
from landlab.components import FastscapeEroder, FlowAccumulator, LinearDiffuser
from landlab.io import write_esri_ascii
import numpy as np
import experiment... | 33.196721 | 79 | 0.624691 | 790 | 6,075 | 4.53038 | 0.272152 | 0.06147 | 0.039955 | 0.018441 | 0.18888 | 0.17463 | 0.148645 | 0.111763 | 0.111763 | 0.075999 | 0 | 0.012649 | 0.28428 | 6,075 | 182 | 80 | 33.379121 | 0.810488 | 0.233745 | 0 | 0.042105 | 0 | 0 | 0.085293 | 0.042207 | 0 | 0 | 0 | 0 | 0 | 1 | 0.042105 | false | 0 | 0.063158 | 0 | 0.136842 | 0.021053 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bb565d6a848c25f10f712bae53673495afeccc03 | 4,865 | py | Python | src/preprocessing.py | jimmystique/AudioClassification | 9f9966306068cff7419f6c190752bab4d35b3870 | [
"MIT"
] | null | null | null | src/preprocessing.py | jimmystique/AudioClassification | 9f9966306068cff7419f6c190752bab4d35b3870 | [
"MIT"
] | null | null | null | src/preprocessing.py | jimmystique/AudioClassification | 9f9966306068cff7419f6c190752bab4d35b3870 | [
"MIT"
] | null | null | null | import os
import pandas as pd
import pickle as pkl
import numpy as np
import argparse
import yaml
import librosa
import scipy
from scipy.io import wavfile
import multiprocessing
import time
import datetime
import socket
def resample_wav_data(wav_data, orig_sr, target_sr):
""" Resample wav_data from sampling rate ... | 41.581197 | 182 | 0.763001 | 765 | 4,865 | 4.539869 | 0.227451 | 0.068529 | 0.057587 | 0.020155 | 0.460121 | 0.415203 | 0.406565 | 0.394472 | 0.394472 | 0.366254 | 0 | 0.010638 | 0.111202 | 4,865 | 116 | 183 | 41.939655 | 0.792553 | 0.159096 | 0 | 0.25974 | 0 | 0 | 0.115328 | 0.006856 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064935 | false | 0 | 0.168831 | 0 | 0.25974 | 0.077922 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bb5b9e701abf5095d0390b5cf553b81d80794a1b | 5,113 | py | Python | calaccess_website/views/docs/ccdc.py | california-civic-data-coalition/django-calaccess-downloads | 198f3b5b7fca846d9ce7c84f3a5bfa0ff4d3d3f7 | [
"MIT"
] | 3 | 2016-09-16T16:50:31.000Z | 2021-07-30T23:58:29.000Z | calaccess_website/views/docs/ccdc.py | world-admin/django-calaccess-downloads-website | 205480959358f51f4a7f11275fb8f60bd1091025 | [
"MIT"
] | 193 | 2016-05-27T16:34:10.000Z | 2021-09-24T16:11:04.000Z | calaccess_website/views/docs/ccdc.py | world-admin/django-calaccess-downloads-website | 205480959358f51f4a7f11275fb8f60bd1091025 | [
"MIT"
] | 4 | 2016-06-14T00:41:19.000Z | 2022-01-14T00:29:45.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Views for CCDC file documetnation pages.
"""
# Django tricks
from django.apps import apps
from django.http import Http404
from django.urls import reverse
from calaccess_website.templatetags.calaccess_website_tags import slugify
# Models
from calaccess_processed.models ... | 32.775641 | 113 | 0.656171 | 628 | 5,113 | 5.146497 | 0.297771 | 0.020421 | 0.02599 | 0.02599 | 0.256807 | 0.150681 | 0.142327 | 0.103342 | 0.103342 | 0.103342 | 0 | 0.005474 | 0.249756 | 5,113 | 155 | 114 | 32.987097 | 0.83707 | 0.196558 | 0 | 0.151899 | 0 | 0 | 0.108143 | 0.065612 | 0 | 0 | 0 | 0 | 0 | 1 | 0.151899 | false | 0 | 0.088608 | 0.025316 | 0.468354 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
bb5c8ea17ee9ecb16f8a2b9c72c06dd3eb1f5f67 | 2,536 | py | Python | comment/models/reactions.py | setayeshmbr/coronavirus_blog | 2bb94e905ac7e5401776ac81fd301a90a24f1a9f | [
"MIT"
] | null | null | null | comment/models/reactions.py | setayeshmbr/coronavirus_blog | 2bb94e905ac7e5401776ac81fd301a90a24f1a9f | [
"MIT"
] | null | null | null | comment/models/reactions.py | setayeshmbr/coronavirus_blog | 2bb94e905ac7e5401776ac81fd301a90a24f1a9f | [
"MIT"
] | null | null | null | from enum import IntEnum, unique
from django.contrib.auth import get_user_model
from django.db import models
from django.db.models.signals import post_delete, post_save
from django.dispatch import receiver
from django.utils import timezone
from comment.models import Comment
from comment.managers import ReactionManage... | 32.935065 | 98 | 0.729101 | 294 | 2,536 | 6.112245 | 0.27551 | 0.027824 | 0.023372 | 0.035058 | 0.351697 | 0.351697 | 0.351697 | 0.306066 | 0.306066 | 0.244853 | 0 | 0.002859 | 0.172319 | 2,536 | 76 | 99 | 33.368421 | 0.853263 | 0 | 0 | 0.181818 | 0 | 0 | 0.022082 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.127273 | false | 0 | 0.145455 | 0 | 0.527273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
246de88d2fe441aebedc83fc4f8b906aee07ae8a | 1,394 | py | Python | gorp/test/test_b_option.py | molsonkiko/gorpy | 1dceb8bb530a7c7c558d51cedbbbf1cdc9e6f914 | [
"MIT"
] | null | null | null | gorp/test/test_b_option.py | molsonkiko/gorpy | 1dceb8bb530a7c7c558d51cedbbbf1cdc9e6f914 | [
"MIT"
] | null | null | null | gorp/test/test_b_option.py | molsonkiko/gorpy | 1dceb8bb530a7c7c558d51cedbbbf1cdc9e6f914 | [
"MIT"
] | null | null | null | from gorp.readfiles import *
from gorp.test.test_ku_options import setup_tempdir
import itertools
import unittest
og_dirname = os.getcwd()
def get_combos():
setup_tempdir()
os.chdir(os.path.join(gorpdir, "test", "temp"))
base_query = " -b '[bp]l[uo]t' /."
gorptags = ["-r", "-l", "-h", "-i", "-c", "-o... | 29.041667 | 91 | 0.58967 | 172 | 1,394 | 4.581395 | 0.52907 | 0.057107 | 0.057107 | 0.079949 | 0.063452 | 0.063452 | 0 | 0 | 0 | 0 | 0 | 0.000996 | 0.27977 | 1,394 | 47 | 92 | 29.659574 | 0.783865 | 0 | 0 | 0.05 | 0 | 0 | 0.1033 | 0 | 0 | 0 | 0 | 0 | 0.025 | 1 | 0.05 | false | 0 | 0.1 | 0 | 0.2 | 0.025 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2471c183baaffa838c1d8f4a682290146e29d206 | 8,689 | py | Python | stancode_projects/Break out games/breakoutgraphics.py | itinghuang/iting-projects | 304d41fe8a4b3ae45a01611a8868981f31e72d68 | [
"MIT"
] | null | null | null | stancode_projects/Break out games/breakoutgraphics.py | itinghuang/iting-projects | 304d41fe8a4b3ae45a01611a8868981f31e72d68 | [
"MIT"
] | null | null | null | stancode_projects/Break out games/breakoutgraphics.py | itinghuang/iting-projects | 304d41fe8a4b3ae45a01611a8868981f31e72d68 | [
"MIT"
] | null | null | null | """
stanCode Breakout Project
Adapted from Eric Roberts's Breakout by
Sonja Johnson-Yu, Kylie Jue, Nick Bowman,
and Jerry Liao
YOUR DESCRIPTION HERE
"""
from campy.graphics.gwindow import GWindow
from campy.graphics.gobjects import GOval, GRect, GLabel
from campy.gui.events.mouse import onmouseclicked, onmousemoved
im... | 33.941406 | 142 | 0.589711 | 1,176 | 8,689 | 4.167517 | 0.162415 | 0.071414 | 0.026525 | 0.024485 | 0.332177 | 0.289125 | 0.166293 | 0.117323 | 0.106917 | 0.106917 | 0 | 0.019003 | 0.309587 | 8,689 | 255 | 143 | 34.07451 | 0.797966 | 0.214524 | 0 | 0.173333 | 0 | 0 | 0.015601 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.093333 | false | 0 | 0.026667 | 0.02 | 0.16 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
24740d66448ac9fd6d0157a46216f7339a2b5d04 | 6,035 | py | Python | cosine_similarity.py | caikehe/YELP_DS | c9baa8626a22d6aca2a786e221bff5e184e521d7 | [
"Apache-2.0"
] | null | null | null | cosine_similarity.py | caikehe/YELP_DS | c9baa8626a22d6aca2a786e221bff5e184e521d7 | [
"Apache-2.0"
] | null | null | null | cosine_similarity.py | caikehe/YELP_DS | c9baa8626a22d6aca2a786e221bff5e184e521d7 | [
"Apache-2.0"
] | null | null | null | import io, json, random
import matplotlib.pyplot as plt
from sklearn.metrics.pairwise import pairwise_distances
from matplotlib.backends.backend_pdf import PdfPages
def drawCOSFigure(features, output):
histogram1Star = []
histogram2Star = []
histogram3Star = []
histogram4Star = []
hist... | 34.485714 | 89 | 0.594532 | 804 | 6,035 | 4.38806 | 0.176617 | 0.018141 | 0.018707 | 0.015873 | 0.44076 | 0.427438 | 0.417234 | 0.291667 | 0.291667 | 0.272676 | 0 | 0.087503 | 0.274731 | 6,035 | 174 | 90 | 34.683908 | 0.718529 | 0.001657 | 0 | 0.173611 | 0 | 0 | 0.059097 | 0.045651 | 0 | 0 | 0 | 0 | 0 | 1 | 0.013889 | false | 0 | 0.027778 | 0 | 0.041667 | 0.013889 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
247640d80add47e8ea829bcb77b7fb6e623ffeff | 579 | py | Python | cobu/constants.py | tlancaster6/cobu | 444f249bdec5b009858011002fa0782520891e2b | [
"MIT"
] | null | null | null | cobu/constants.py | tlancaster6/cobu | 444f249bdec5b009858011002fa0782520891e2b | [
"MIT"
] | null | null | null | cobu/constants.py | tlancaster6/cobu | 444f249bdec5b009858011002fa0782520891e2b | [
"MIT"
] | null | null | null | import os
try:
from importlib.metadata import metadata # Python 3.8
except ImportError:
from importlib_metadata import metadata # Python < 3.8
COBU_DIR = os.path.dirname(os.path.abspath(__file__))
BASE_DIR = os.path.dirname(COBU_DIR)
DATA_DIR = os.path.join(BASE_DIR, 'data')
# package metadata
_META = metad... | 27.571429 | 59 | 0.723661 | 82 | 579 | 4.865854 | 0.439024 | 0.06015 | 0.067669 | 0.135338 | 0.215539 | 0.215539 | 0.215539 | 0.215539 | 0 | 0 | 0 | 0.007968 | 0.132988 | 579 | 20 | 60 | 28.95 | 0.786853 | 0.069085 | 0 | 0 | 0 | 0 | 0.142056 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.235294 | 0 | 0.235294 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2479d7af5d28d64ede7ccc8bebd1054c83190763 | 885 | py | Python | params_flow/utils/learn_scheduler.py | kpe/params-flow | 5857dfd67cf15e89803e5987316c81fe6c4cc54d | [
"MIT"
] | 23 | 2019-06-08T17:24:05.000Z | 2022-01-16T17:53:15.000Z | params_flow/utils/learn_scheduler.py | kpe/params-flow | 5857dfd67cf15e89803e5987316c81fe6c4cc54d | [
"MIT"
] | null | null | null | params_flow/utils/learn_scheduler.py | kpe/params-flow | 5857dfd67cf15e89803e5987316c81fe6c4cc54d | [
"MIT"
] | 4 | 2019-09-29T07:25:24.000Z | 2020-11-25T15:02:15.000Z | # coding=utf-8
#
# created by kpe on 10.08.2019 at 12:39 AM
#
from __future__ import division, absolute_import, print_function
import math
from tensorflow import keras
def create_one_cycle_lr_scheduler(max_learn_rate=5e-5,
end_learn_rate=1e-7,
war... | 30.517241 | 100 | 0.640678 | 114 | 885 | 4.605263 | 0.491228 | 0.133333 | 0.152381 | 0.08 | 0.118095 | 0.118095 | 0.118095 | 0 | 0 | 0 | 0 | 0.03645 | 0.287006 | 885 | 28 | 101 | 31.607143 | 0.795563 | 0.059887 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.1875 | 0 | 0.4375 | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
247aaaa9afe8af3944f0215ec29353a612a9ac89 | 445 | py | Python | cegid/apps/main/urls.py | vsoch/tcell | 3c4a19e5c78f1a36a2fe5e0f3229d1d70ef3a2c6 | [
"MIT"
] | null | null | null | cegid/apps/main/urls.py | vsoch/tcell | 3c4a19e5c78f1a36a2fe5e0f3229d1d70ef3a2c6 | [
"MIT"
] | 9 | 2016-08-04T22:56:21.000Z | 2016-08-17T20:55:57.000Z | cegid/apps/main/urls.py | vsoch/tcell | 3c4a19e5c78f1a36a2fe5e0f3229d1d70ef3a2c6 | [
"MIT"
] | 1 | 2016-10-11T04:22:52.000Z | 2016-10-11T04:22:52.000Z | from django.views.generic.base import TemplateView
from django.conf.urls import patterns, url
from .views import index_view, signup_view, about_view, search_view, \
home_view, contact_view
urlpatterns = [
url(r'^$', index_view, name="index"),
url(r'^search$', search_view, name="search"),
url(r'^contact$'... | 34.230769 | 70 | 0.694382 | 64 | 445 | 4.65625 | 0.328125 | 0.067114 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137079 | 445 | 12 | 71 | 37.083333 | 0.776042 | 0 | 0 | 0 | 0 | 0 | 0.132584 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.272727 | 0 | 0.272727 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
247b0f2580310cad3e1f381e524fdce487e2bc44 | 212 | py | Python | students/K33422/Larionova Anastasia/lab 1/task1_client.py | ShubhamKunal/ITMO_ICT_WebDevelopment_2020-2021 | bb91c91a56d21cec2b12ae4cc722eaa652a88420 | [
"MIT"
] | 4 | 2020-09-03T15:41:42.000Z | 2021-12-24T15:28:20.000Z | students/K33422/Larionova Anastasia/lab 1/task1_client.py | ShubhamKunal/ITMO_ICT_WebDevelopment_2020-2021 | bb91c91a56d21cec2b12ae4cc722eaa652a88420 | [
"MIT"
] | 48 | 2020-09-13T20:22:42.000Z | 2021-04-30T11:13:30.000Z | students/K33422/Larionova Anastasia/lab 1/task1_client.py | ShubhamKunal/ITMO_ICT_WebDevelopment_2020-2021 | bb91c91a56d21cec2b12ae4cc722eaa652a88420 | [
"MIT"
] | 69 | 2020-09-06T10:32:37.000Z | 2021-11-28T18:13:17.000Z | import socket
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
sock.connect(('localhost', 7777))
sock.send('Hello, server! :)'.encode('utf-8'))
d = sock.recv(1024)
print(d.decode('utf-8'))
sock.close() | 21.2 | 56 | 0.70283 | 33 | 212 | 4.454545 | 0.636364 | 0.136054 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051546 | 0.084906 | 212 | 10 | 57 | 21.2 | 0.706186 | 0 | 0 | 0 | 0 | 0 | 0.169014 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 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 |
247dc70e6437fecc8408f5935f960b8ac070e582 | 5,589 | py | Python | chapter-4/gridworld.py | epignatelli/Reinforcement-Learning-An-Introduction_exercises | e260cacdb1ec8e51af46da4031054d4c6771322c | [
"MIT"
] | 6 | 2020-12-13T00:34:40.000Z | 2022-03-05T03:58:46.000Z | chapter-4/gridworld.py | epignatelli/Reinforcement-Learning-An-Introduction_exercises | e260cacdb1ec8e51af46da4031054d4c6771322c | [
"MIT"
] | null | null | null | chapter-4/gridworld.py | epignatelli/Reinforcement-Learning-An-Introduction_exercises | e260cacdb1ec8e51af46da4031054d4c6771322c | [
"MIT"
] | 4 | 2021-02-03T06:32:24.000Z | 2021-09-14T22:46:51.000Z | # MIT License
# Copyright (c) 2020 Eduardo Pignatelli
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, me... | 39.359155 | 150 | 0.627661 | 789 | 5,589 | 4.378961 | 0.332066 | 0.052098 | 0.040521 | 0.024602 | 0.141823 | 0.125036 | 0.111722 | 0.097829 | 0.097829 | 0.075832 | 0 | 0.01868 | 0.281625 | 5,589 | 141 | 151 | 39.638298 | 0.841843 | 0.485776 | 0 | 0.121212 | 0 | 0 | 0.011295 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.075758 | 0 | 0.287879 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
247eb44c889ef4965c1c10cc694955ebaa4b8ea6 | 2,571 | py | Python | client.py | esperantomerkato/tuner | b3998f6bcaf8acd1b541e2aa0670e0f0a0a8eb7d | [
"BSD-Source-Code"
] | null | null | null | client.py | esperantomerkato/tuner | b3998f6bcaf8acd1b541e2aa0670e0f0a0a8eb7d | [
"BSD-Source-Code"
] | null | null | null | client.py | esperantomerkato/tuner | b3998f6bcaf8acd1b541e2aa0670e0f0a0a8eb7d | [
"BSD-Source-Code"
] | null | null | null | import asyncio
import json
import websockets
from merkato.merkato_config import get_config
from merkato.parser import parse
from merkato.utils.database_utils import no_merkatos_table_exists, create_merkatos_table, drop_merkatos_table, \
no_exchanges_table_exists, create_exchanges_table, drop_exchanges_table
impor... | 30.975904 | 112 | 0.669 | 312 | 2,571 | 5.269231 | 0.38141 | 0.055353 | 0.041363 | 0.025547 | 0.170316 | 0.124088 | 0.099757 | 0 | 0 | 0 | 0 | 0.004065 | 0.234539 | 2,571 | 83 | 113 | 30.975904 | 0.831301 | 0 | 0 | 0.135593 | 0 | 0 | 0.168802 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.016949 | false | 0 | 0.118644 | 0 | 0.152542 | 0.033898 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
24801d3763c6b4f5d5fdf3b1bc18bbe2654427a3 | 356 | py | Python | application/web/helper.py | satan1a/poopak | 9862f09edc22c030db520e317020b54a36e070ac | [
"curl"
] | 91 | 2019-01-17T13:35:49.000Z | 2022-03-30T21:16:37.000Z | application/web/helper.py | satan1a/poopak | 9862f09edc22c030db520e317020b54a36e070ac | [
"curl"
] | 13 | 2019-01-13T14:35:51.000Z | 2021-04-26T05:13:42.000Z | application/web/helper.py | satan1a/poopak | 9862f09edc22c030db520e317020b54a36e070ac | [
"curl"
] | 33 | 2019-01-17T13:37:22.000Z | 2022-03-25T09:35:54.000Z | import re
def extract_onions(s):
result = []
print(s)
for m in re.finditer(r'(?:https?://)?(?:www)?(\S*?\.onion)\b', s, re.M | re.IGNORECASE):
url = str(m.group(0))
# url = url[len(url) - 22:]
# if "'" in url:
# url = url[url.index("'")+1:]
result.append(url)
... | 20.941176 | 92 | 0.485955 | 50 | 356 | 3.44 | 0.58 | 0.139535 | 0.104651 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016 | 0.297753 | 356 | 16 | 93 | 22.25 | 0.672 | 0.205056 | 0 | 0 | 0 | 0 | 0.134058 | 0.134058 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0 | 0.333333 | 0.222222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
248892eac1e0a2c6110682fef0f6ec29d697f548 | 11,432 | py | Python | main_big.py | giorgosouz/HSI-classification-using-state-of-the-art-models | a925972ffe02c2cd1e5dde2b163e1faa854a4966 | [
"MIT"
] | null | null | null | main_big.py | giorgosouz/HSI-classification-using-state-of-the-art-models | a925972ffe02c2cd1e5dde2b163e1faa854a4966 | [
"MIT"
] | null | null | null | main_big.py | giorgosouz/HSI-classification-using-state-of-the-art-models | a925972ffe02c2cd1e5dde2b163e1faa854a4966 | [
"MIT"
] | null | null | null |
import torch
import torch.utils.data as data
from torchsummary import summary
from datasets import get_dataset, HyperX,sHyperX
from models import get_model, train,test
from utils import sample_gt,get_device,metrics,compute_imf_weights
import visdom
import argparse
import numpy as np
import cv2
from models_liu import t... | 34.33033 | 121 | 0.616253 | 1,374 | 11,432 | 4.973071 | 0.235808 | 0.038636 | 0.027367 | 0.015806 | 0.240743 | 0.219377 | 0.178399 | 0.152642 | 0.152642 | 0.118689 | 0 | 0.011257 | 0.261809 | 11,432 | 332 | 122 | 34.433735 | 0.798436 | 0.200665 | 0 | 0.152542 | 0 | 0 | 0.227675 | 0.005084 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.011299 | 0.062147 | 0 | 0.062147 | 0.028249 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
248941d967a1b7d873ad7da541cea91f968f8222 | 954 | py | Python | plusy/spiders/gov_sbir_news.py | OracleGao/plusy | 756ed8fe932255ffcf7eed2afdc0b83a85a7548e | [
"Apache-2.0"
] | null | null | null | plusy/spiders/gov_sbir_news.py | OracleGao/plusy | 756ed8fe932255ffcf7eed2afdc0b83a85a7548e | [
"Apache-2.0"
] | null | null | null | plusy/spiders/gov_sbir_news.py | OracleGao/plusy | 756ed8fe932255ffcf7eed2afdc0b83a85a7548e | [
"Apache-2.0"
] | null | null | null | import scrapy
class GovSbirNewsSpider(scrapy.Spider):
name = 'gov.sbir.news'
start_urls = ["https://www.sbir.gov/news?page=0"]
def __init__(self):
for page_num in range(1, 23):
self.start_urls.append("https://www.sbir.gov/news?page=%d" % page_num)
def parse(self, response):
... | 39.75 | 107 | 0.5587 | 125 | 954 | 4.144 | 0.384 | 0.069498 | 0.11583 | 0.125483 | 0.162162 | 0.162162 | 0 | 0 | 0 | 0 | 0 | 0.005698 | 0.264151 | 954 | 23 | 108 | 41.478261 | 0.732194 | 0 | 0 | 0 | 0 | 0 | 0.30608 | 0.027254 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0.052632 | 0 | 0.315789 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
248b843beb808fda7506840e01537e62bc25f9dc | 4,697 | py | Python | schedule/forms.py | yourcelf/masterschedule | e585df0e9edcaff5fa4f04f77a9452e3073b5db7 | [
"Unlicense"
] | 1 | 2015-02-11T04:08:36.000Z | 2015-02-11T04:08:36.000Z | schedule/forms.py | yourcelf/masterschedule | e585df0e9edcaff5fa4f04f77a9452e3073b5db7 | [
"Unlicense"
] | null | null | null | schedule/forms.py | yourcelf/masterschedule | e585df0e9edcaff5fa4f04f77a9452e3073b5db7 | [
"Unlicense"
] | null | null | null | from django import forms
from django.forms.models import inlineformset_factory
from django.contrib.auth.models import User
from django.core.exceptions import ValidationError
from schedule.models import *
class PersonForm(forms.ModelForm):
class Meta:
model = Person
fields = ['name']
class Availab... | 36.410853 | 103 | 0.593996 | 487 | 4,697 | 5.607803 | 0.279261 | 0.023068 | 0.030758 | 0.033687 | 0.199927 | 0.127426 | 0 | 0 | 0 | 0 | 0 | 0.000305 | 0.301895 | 4,697 | 128 | 104 | 36.695313 | 0.832571 | 0 | 0 | 0.178571 | 0 | 0.008929 | 0.12178 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.044643 | false | 0 | 0.044643 | 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 |
248f7384cfb08b1240e64c826352c311afba0e91 | 16,088 | py | Python | LinkTap.py | simplextech/udi-linktap-poly | e51180aecf58e0453bfe444acd2b454e6d3df00d | [
"MIT"
] | 2 | 2020-05-23T18:04:04.000Z | 2020-06-22T11:29:03.000Z | LinkTap.py | simplextech/udi-linktap-poly | e51180aecf58e0453bfe444acd2b454e6d3df00d | [
"MIT"
] | 11 | 2020-02-07T02:14:01.000Z | 2021-05-03T21:35:01.000Z | LinkTap.py | simplextech/udi-linktap-poly | e51180aecf58e0453bfe444acd2b454e6d3df00d | [
"MIT"
] | 1 | 2020-08-05T01:36:56.000Z | 2020-08-05T01:36:56.000Z | #!/usr/bin/env python
import sys
import linktap
import time
import logging
try:
import polyinterface
CLOUD = False
except ImportError:
import pgc_interface as polyinterface
CLOUD = True
LOGGER = polyinterface.LOGGER
logging.getLogger('urllib3').setLevel(logging.INFO)
class Controller(polyinterface... | 40.422111 | 122 | 0.518585 | 1,622 | 16,088 | 5.051171 | 0.151048 | 0.032955 | 0.042841 | 0.05639 | 0.534237 | 0.47211 | 0.407055 | 0.363237 | 0.342732 | 0.319053 | 0 | 0.014676 | 0.360455 | 16,088 | 397 | 123 | 40.523929 | 0.781611 | 0.042143 | 0 | 0.445141 | 0 | 0 | 0.11954 | 0.001371 | 0 | 0 | 0 | 0 | 0 | 1 | 0.103448 | false | 0.009404 | 0.021944 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
248f8a8798b422e37a9e5b6af2d4bad26607f584 | 908 | py | Python | src/note_passing.py | fizisist/numerical-methods-pdes | 659045a19d8285f12447bb93401062c5e3666e18 | [
"CC-BY-4.0",
"MIT"
] | 100 | 2016-01-18T21:25:55.000Z | 2022-02-03T02:57:22.000Z | src/note_passing.py | QamarQQ/numerical-methods-pdes | d714a9fd2a94110bd0d7bffefb9043e010c4b7f2 | [
"CC-BY-4.0",
"MIT"
] | 7 | 2016-01-28T04:19:31.000Z | 2022-02-06T22:37:08.000Z | src/note_passing.py | QamarQQ/numerical-methods-pdes | d714a9fd2a94110bd0d7bffefb9043e010c4b7f2 | [
"CC-BY-4.0",
"MIT"
] | 82 | 2016-01-18T23:44:21.000Z | 2022-02-06T04:59:14.000Z | #!/usr/bin/env python
# encoding: utf-8
"""Note passing from Python"""
from __future__ import absolute_import
from __future__ import print_function
from mpi4py import MPI
import numpy
comm = MPI.COMM_WORLD
rank = comm.Get_rank()
size = comm.Get_size()
tag = 42
N = 10
if rank == 0:
data = numpy.arange(N, dtype... | 22.146341 | 56 | 0.656388 | 141 | 908 | 4.134752 | 0.368794 | 0.034305 | 0.054889 | 0.075472 | 0.480274 | 0.480274 | 0.480274 | 0.435678 | 0.435678 | 0.435678 | 0 | 0.026207 | 0.201542 | 908 | 40 | 57 | 22.7 | 0.777931 | 0.123348 | 0 | 0.375 | 0 | 0 | 0.09264 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
24903ea9e622fd8f43c25fe974be2913277bb0c6 | 2,287 | py | Python | metanic/settings/development.py | LimpidTech/melody | a00b99f9b697864a078e2cb886be4d75c10458a9 | [
"BSD-3-Clause"
] | null | null | null | metanic/settings/development.py | LimpidTech/melody | a00b99f9b697864a078e2cb886be4d75c10458a9 | [
"BSD-3-Clause"
] | 1 | 2020-02-11T21:34:24.000Z | 2020-02-11T21:34:24.000Z | metanic/settings/development.py | LimpidTech/melody | a00b99f9b697864a078e2cb886be4d75c10458a9 | [
"BSD-3-Clause"
] | null | null | null | from metanic.settings.defaults import INSTALLED_APPS
from metanic.settings.defaults import MIDDLEWARE
from metanic.settings.defaults import REST_FRAMEWORK
from metanic.settings.defaults import cache_url
from metanic.settings.defaults import env_value
from metanic.settings.defaults import project_path
# We specificall... | 25.131868 | 76 | 0.690861 | 257 | 2,287 | 5.88716 | 0.373541 | 0.0423 | 0.087905 | 0.124917 | 0.216788 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02492 | 0.175339 | 2,287 | 90 | 77 | 25.411111 | 0.777306 | 0.034543 | 0 | 0.109589 | 0 | 0 | 0.366893 | 0.160091 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.09589 | 0 | 0.09589 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
249344d6dc4af56e0d60cf084fb8f52348db6021 | 1,848 | py | Python | sensordisplayProject/sensor/views.py | ylf2002/sensor_display | 660751e461b1afbf0cd6fd97baa3f8bc05698848 | [
"MIT"
] | null | null | null | sensordisplayProject/sensor/views.py | ylf2002/sensor_display | 660751e461b1afbf0cd6fd97baa3f8bc05698848 | [
"MIT"
] | null | null | null | sensordisplayProject/sensor/views.py | ylf2002/sensor_display | 660751e461b1afbf0cd6fd97baa3f8bc05698848 | [
"MIT"
] | null | null | null | from sensor.models import Sensors
from sensor.serializers import TempSerializer
from rest_framework import generics
from django.shortcuts import render
from django.http import JsonResponse
# Create your views here.
class sensors_api(generics.ListCreateAPIView):
queryset = Sensors.objects.all()
ser... | 27.58209 | 117 | 0.487554 | 218 | 1,848 | 4.110092 | 0.311927 | 0.046875 | 0.05692 | 0.055804 | 0.359375 | 0.359375 | 0.359375 | 0.359375 | 0.359375 | 0.359375 | 0 | 0.000888 | 0.390693 | 1,848 | 66 | 118 | 28 | 0.794849 | 0.021104 | 0 | 0.64 | 0 | 0 | 0.032759 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0 | 0.1 | 0 | 0.24 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
2495e93dc6a272797419348823761b57f910f2c3 | 5,798 | py | Python | engagement/clearbit_engager.py | drorgarti/SatoriLab | 6e57bad2c01d6ee8baa97f915abc001bed974785 | [
"MIT"
] | 1 | 2019-06-12T09:02:34.000Z | 2019-06-12T09:02:34.000Z | engagement/clearbit_engager.py | drorgarti/SatoriLab | 6e57bad2c01d6ee8baa97f915abc001bed974785 | [
"MIT"
] | null | null | null | engagement/clearbit_engager.py | drorgarti/SatoriLab | 6e57bad2c01d6ee8baa97f915abc001bed974785 | [
"MIT"
] | null | null | null | from engagement.engager import Engager
from engagement.engagement_exception import EngagementException
from entities.acurerate_attributes import P, C
from utils.acurerate_utils import AcureRateUtils
import clearbit
class ClearbitEngager(Engager):
ACURATE_TRIAL_KEY = "sk_2a34f937f031587cb2bf4f6ee84a3c70" # Acur... | 35.790123 | 115 | 0.625388 | 697 | 5,798 | 4.989957 | 0.177905 | 0.097757 | 0.037378 | 0.031052 | 0.480736 | 0.376078 | 0.253019 | 0.186889 | 0.166187 | 0.166187 | 0 | 0.007601 | 0.273888 | 5,798 | 161 | 116 | 36.012422 | 0.818527 | 0.027768 | 0 | 0.283186 | 0 | 0 | 0.174423 | 0.006217 | 0 | 0 | 0 | 0.006211 | 0 | 1 | 0.097345 | false | 0 | 0.044248 | 0.044248 | 0.247788 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
249661029b750065aec2931215cce553b6efc801 | 666 | py | Python | knapsack/ratio.py | dstlmrk/knapsack | 357c6b06cca4e743c2d3977d718346b97ee4b11a | [
"MIT"
] | null | null | null | knapsack/ratio.py | dstlmrk/knapsack | 357c6b06cca4e743c2d3977d718346b97ee4b11a | [
"MIT"
] | null | null | null | knapsack/ratio.py | dstlmrk/knapsack | 357c6b06cca4e743c2d3977d718346b97ee4b11a | [
"MIT"
] | null | null | null | from knapsack import Knapsack
class Ratio(Knapsack):
"""
Ratio sorts all items by ratio of price and weight and adds
them into bag step by step, if is it possible.
"""
def evaluate(self):
price = 0
capacity = self.capacity
configuration = [0 for i, val in enumerate(self.it... | 27.75 | 65 | 0.584084 | 80 | 666 | 4.8375 | 0.525 | 0.046512 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006834 | 0.340841 | 666 | 23 | 66 | 28.956522 | 0.874715 | 0.159159 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.066667 | 0 | 0.266667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
249ccac49aa2c5391984dfd6fbfac075310032ca | 1,945 | py | Python | scrapers/unhcr.py | OCHA-DAP/hdx-scraper-ukraine-viz | 149a27c7b6dd3ae8807d063554867aea31f77a38 | [
"MIT"
] | 1 | 2022-03-20T21:00:22.000Z | 2022-03-20T21:00:22.000Z | scrapers/unhcr.py | OCHA-DAP/hdx-scraper-ukraine-viz | 149a27c7b6dd3ae8807d063554867aea31f77a38 | [
"MIT"
] | null | null | null | scrapers/unhcr.py | OCHA-DAP/hdx-scraper-ukraine-viz | 149a27c7b6dd3ae8807d063554867aea31f77a38 | [
"MIT"
] | null | null | null | import logging
from hdx.location.country import Country
from hdx.scraper.base_scraper import BaseScraper
logger = logging.getLogger(__name__)
class UNHCR(BaseScraper):
def __init__(self, datasetinfo, today, outputs, countryiso3s):
super().__init__(
"unhcr",
datasetinfo,
... | 34.122807 | 88 | 0.553728 | 175 | 1,945 | 5.971429 | 0.348571 | 0.057416 | 0.038278 | 0.040191 | 0.080383 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009909 | 0.32545 | 1,945 | 56 | 89 | 34.732143 | 0.786585 | 0 | 0 | 0.08 | 0 | 0 | 0.15527 | 0.02365 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0 | 0.06 | 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 |
249d017eb5799d5e056dbd1b6eb003f08d3ffb34 | 1,167 | py | Python | ready_model.py | vitalProjects/curse_project | 5768d7413db86b1d1054f0ff1102acfbea773fc7 | [
"Apache-2.0"
] | 1 | 2021-03-14T21:38:41.000Z | 2021-03-14T21:38:41.000Z | ready_model.py | vitalfect/columnsAgent | 5768d7413db86b1d1054f0ff1102acfbea773fc7 | [
"Apache-2.0"
] | null | null | null | ready_model.py | vitalfect/columnsAgent | 5768d7413db86b1d1054f0ff1102acfbea773fc7 | [
"Apache-2.0"
] | null | null | null | from os.path import join
import torch
import config
from models.attention_model import ZReader as ZReader_attn
from models.fnet_model import ZReader as ZReader_fnet
if __name__ == "__main__":
str_true = "thehighwayroundsacurveandtransitionstondstreetrunningeastwardthroughmorefarmlandasthetrunklineappro" \
... | 46.68 | 119 | 0.700086 | 197 | 1,167 | 4.015228 | 0.649746 | 0.041719 | 0.045512 | 0.050569 | 0.068268 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012195 | 0.227078 | 1,167 | 24 | 120 | 48.625 | 0.864745 | 0 | 0 | 0 | 0 | 0.157895 | 0.461868 | 0.084833 | 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 |
249e34ad03f7c56a8da00f23fe94625ab7a19c26 | 907 | py | Python | meza/__init__.py | SteadBytes/meza | ff1f881fc2a765b383535328456b380e75181b34 | [
"MIT"
] | null | null | null | meza/__init__.py | SteadBytes/meza | ff1f881fc2a765b383535328456b380e75181b34 | [
"MIT"
] | null | null | null | meza/__init__.py | SteadBytes/meza | ff1f881fc2a765b383535328456b380e75181b34 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# vim: sw=4:ts=4:expandtab
"""
meza
~~~~
Provides methods for reading and processing data from tabular formatted files
Attributes:
CURRENCIES [tuple(unicode)]: Currency symbols to remove from decimal
strings.
ENCODING (str): Default file encoding.
DEF... | 25.194444 | 77 | 0.706725 | 124 | 907 | 4.846774 | 0.653226 | 0.074875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030144 | 0.158765 | 907 | 35 | 78 | 25.914286 | 0.754915 | 0.390298 | 0 | 0 | 0 | 0 | 0.267035 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
249e4e189863ccce071f3265d50900ed737a9d1d | 3,590 | py | Python | protein_ligand_contacts/contact_extraction/ifg.py | songlab-cal/contact-geometry | 81cb7e56af7bccaf5b7f6dde52d9f2adbe89e8bd | [
"MIT"
] | 2 | 2021-11-03T21:00:21.000Z | 2021-11-06T21:27:53.000Z | protein_ligand_contacts/contact_extraction/ifg.py | songlab-cal/contact-geometry | 81cb7e56af7bccaf5b7f6dde52d9f2adbe89e8bd | [
"MIT"
] | null | null | null | protein_ligand_contacts/contact_extraction/ifg.py | songlab-cal/contact-geometry | 81cb7e56af7bccaf5b7f6dde52d9f2adbe89e8bd | [
"MIT"
] | null | null | null | from functional_groups import SMARTS_ATOM_MAP
from typing import List, Tuple
import numpy as np
#typedef
xyzcoord = Tuple[float, float, float]
class iFG():
'''
iFG class to store information about ligand atoms that make up an iFG, mapping to amino acid residues,
as well as the protein residues that inter... | 31.769912 | 157 | 0.558496 | 423 | 3,590 | 4.491726 | 0.234043 | 0.036842 | 0.047895 | 0.050526 | 0.479474 | 0.39 | 0.35 | 0.256842 | 0.256842 | 0.218947 | 0 | 0.022699 | 0.32507 | 3,590 | 113 | 158 | 31.769912 | 0.761453 | 0.206128 | 0 | 0.266667 | 0 | 0 | 0.025074 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15 | false | 0 | 0.05 | 0.05 | 0.283333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
249f953c98713e6e5275f3787508693400d14f46 | 1,806 | py | Python | Other code/Rasterization Script/Python_RasterCalculator.py | Ange-lina/BalticOffshorePotential | fd8af87bfe0bc069fe1ec6fd1c9e175ff1a5a1d3 | [
"MIT"
] | 2 | 2020-01-16T17:35:27.000Z | 2020-01-16T17:45:54.000Z | Other code/Rasterization Script/Python_RasterCalculator.py | Ange-lina/BalticOffshorePotential | fd8af87bfe0bc069fe1ec6fd1c9e175ff1a5a1d3 | [
"MIT"
] | null | null | null | Other code/Rasterization Script/Python_RasterCalculator.py | Ange-lina/BalticOffshorePotential | fd8af87bfe0bc069fe1ec6fd1c9e175ff1a5a1d3 | [
"MIT"
] | 2 | 2020-01-17T09:15:26.000Z | 2020-01-17T09:16:47.000Z | # -*- coding: utf-8 -*-
"""
Created on Mon Nov 11 13:35:09 2019
@author: Petronium
"""
# Import system modules
import rasterio
from rasterio.plot import show
fp1 = r'Bathymetry_Clip.tif'
fp2 = r'Shipping_Clip.tif'
fp3 = r'WindMap_Clip.tif'
bathymetry = rasterio.open(fp1)
shipping = rasterio.open(fp2)
windspeed = ra... | 22.860759 | 89 | 0.630676 | 248 | 1,806 | 4.471774 | 0.427419 | 0.040577 | 0.028855 | 0.036069 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030465 | 0.272979 | 1,806 | 78 | 90 | 23.153846 | 0.814166 | 0.318937 | 0 | 0 | 0 | 0 | 0.094523 | 0 | 0 | 0 | 0 | 0 | 0.035714 | 1 | 0.071429 | false | 0 | 0.071429 | 0 | 0.178571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
24a456166df9f6ee81fe216b4721ba7faa8166b8 | 917 | py | Python | setup.py | M3TIOR/pyside2-style-test | 1000a00c44de90b1d9c2f2ae121ab127d1499ecd | [
"MIT"
] | 1 | 2020-08-14T16:21:22.000Z | 2020-08-14T16:21:22.000Z | setup.py | M3TIOR/pyside2-style-test | 1000a00c44de90b1d9c2f2ae121ab127d1499ecd | [
"MIT"
] | 1 | 2020-03-27T00:29:04.000Z | 2020-03-27T05:59:18.000Z | setup.py | M3TIOR/pyside2-style-test | 1000a00c44de90b1d9c2f2ae121ab127d1499ecd | [
"MIT"
] | null | null | null | import setuptools
import pyside2_style_test as testkit
with open("README.md", "r") as fh:
long_description = fh.read()
with open("requirements.txt", "r") as req:
dependencies = req.read()
setuptools.setup(
name="m3-pyside2-style-test",
version=testkit.__version__,
author=testkit.__author__,
auth... | 29.580645 | 70 | 0.708833 | 109 | 917 | 5.743119 | 0.614679 | 0.095847 | 0.127796 | 0.095847 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01297 | 0.159215 | 917 | 30 | 71 | 30.566667 | 0.798962 | 0 | 0 | 0 | 0 | 0 | 0.376227 | 0.098146 | 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 |
24a66bf1696cb9f471526fbe804dd1d34ee16f6b | 1,446 | py | Python | presidio-anonymizer/tests/test_anonymizer_result.py | kubistika/presidio | 4777d1759e9bddc45317d9b2689e6df9f75eec05 | [
"MIT"
] | null | null | null | presidio-anonymizer/tests/test_anonymizer_result.py | kubistika/presidio | 4777d1759e9bddc45317d9b2689e6df9f75eec05 | [
"MIT"
] | null | null | null | presidio-anonymizer/tests/test_anonymizer_result.py | kubistika/presidio | 4777d1759e9bddc45317d9b2689e6df9f75eec05 | [
"MIT"
] | null | null | null | from presidio_anonymizer.entities import AnonymizerResult
from presidio_anonymizer.entities.anonymized_entity import AnonymizedEntity
def test_when_no_params_then_object_initialised_correctly():
res = AnonymizerResult()
assert res.text is None
assert res.items == []
def test_when_correct_params_then_obj... | 26.290909 | 75 | 0.70332 | 197 | 1,446 | 4.807107 | 0.279188 | 0.095037 | 0.081309 | 0.063358 | 0.438226 | 0.291447 | 0.259768 | 0.259768 | 0.139388 | 0.139388 | 0 | 0.015038 | 0.172199 | 1,446 | 54 | 76 | 26.777778 | 0.776107 | 0 | 0 | 0.421053 | 0 | 0 | 0.017289 | 0 | 0 | 0 | 0 | 0 | 0.263158 | 1 | 0.184211 | false | 0 | 0.052632 | 0 | 0.236842 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
24a6ceaa6ad3a63b821c739a4e853b4bfbbe8d5a | 3,637 | py | Python | train.py | rickgroen/cov-weighting | 64c296679cd37e724a03c6dc107606f7048aec96 | [
"MIT"
] | 26 | 2021-01-05T07:10:31.000Z | 2022-03-23T06:31:00.000Z | train.py | rickgroen/cov-weighting | 64c296679cd37e724a03c6dc107606f7048aec96 | [
"MIT"
] | 6 | 2021-04-12T16:27:11.000Z | 2022-02-09T07:00:15.000Z | train.py | rickgroen/cov-weighting | 64c296679cd37e724a03c6dc107606f7048aec96 | [
"MIT"
] | 7 | 2021-03-08T09:28:05.000Z | 2022-02-23T07:39:29.000Z | import time
import torch
# Project imports
from utils import *
from options import TrainOptions
from data_loaders import create_dataloader
from methods import create_method
class Trainer:
"""
Trains any of the model methods in methods/ using any of the losses
in losses/.
Initialize the t... | 32.765766 | 106 | 0.637613 | 484 | 3,637 | 4.609504 | 0.299587 | 0.060511 | 0.019722 | 0.026894 | 0.07082 | 0.023308 | 0 | 0 | 0 | 0 | 0 | 0.002257 | 0.269178 | 3,637 | 110 | 107 | 33.063636 | 0.837096 | 0.254605 | 0 | 0 | 0 | 0 | 0.076604 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.080645 | false | 0 | 0.096774 | 0 | 0.193548 | 0.080645 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
24a6f16182dda0c0b9e74d9f007b1abeaf6547e8 | 1,272 | py | Python | Versuch2/task3.4.py | Tobias-Schoch/SSS | f8b078ca7f6482fc7c89d5f9e784a549459eefb7 | [
"MIT"
] | null | null | null | Versuch2/task3.4.py | Tobias-Schoch/SSS | f8b078ca7f6482fc7c89d5f9e784a549459eefb7 | [
"MIT"
] | null | null | null | Versuch2/task3.4.py | Tobias-Schoch/SSS | f8b078ca7f6482fc7c89d5f9e784a549459eefb7 | [
"MIT"
] | 1 | 2022-01-06T12:47:53.000Z | 2022-01-06T12:47:53.000Z | import numpy as np
import cv2
# -------- Aufgabe3.4 -------- #
# Vector um Grenz- und Breitenwert zu speichern
vec = np.zeros((5, 2))
crop = ["crop1", "crop2", "crop3", "crop4", "crop5"]
# Bild einlesen und in Schwarz - Weiß umwandeln
image = cv2.imread('data/korrigiertes_bild2.png', cv2.IMREAD_GRAYSCALE)
# Grenz- ... | 25.959184 | 71 | 0.63522 | 220 | 1,272 | 3.663636 | 0.427273 | 0.059553 | 0.124069 | 0.14268 | 0.261787 | 0 | 0 | 0 | 0 | 0 | 0 | 0.085279 | 0.225629 | 1,272 | 48 | 72 | 26.5 | 0.732995 | 0.480346 | 0 | 0 | 0 | 0 | 0.108865 | 0.041991 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.083333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
24a9de62a34b58dfc19d30bea2ba3cdb517e09ee | 944 | py | Python | data_structures/Stack/stack/Python/stack.py | CarbonDDR/al-go-rithms | 8e65affbe812931b7dde0e2933eb06c0f44b4130 | [
"CC0-1.0"
] | 1,253 | 2017-06-06T07:19:25.000Z | 2022-03-30T17:07:58.000Z | data_structures/Stack/stack/Python/stack.py | rishabh99-rc/al-go-rithms | 4df20d7ef7598fda4bc89101f9a99aac94cdd794 | [
"CC0-1.0"
] | 554 | 2017-09-29T18:56:01.000Z | 2022-02-21T15:48:13.000Z | data_structures/Stack/stack/Python/stack.py | rishabh99-rc/al-go-rithms | 4df20d7ef7598fda4bc89101f9a99aac94cdd794 | [
"CC0-1.0"
] | 2,226 | 2017-09-29T19:59:59.000Z | 2022-03-25T08:59:55.000Z | '''This code is written MTH Junaidi github: Miranjunaidi on 26th Oct 2019 at 7:15 PM IST'''
#POP function removes the last element of the list
def pop(stack):
del stack[-1]
return stack
#push function adds a new number num to the list at the end.
def push(stack,num):
stack.append(num)
return stack
#pr... | 29.5 | 98 | 0.635593 | 162 | 944 | 3.703704 | 0.469136 | 0.025 | 0.04 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029915 | 0.256356 | 944 | 32 | 99 | 29.5 | 0.824786 | 0.3125 | 0 | 0.08 | 0 | 0.04 | 0.297972 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.12 | false | 0 | 0 | 0 | 0.2 | 0.28 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
24aa16e48945bcc9cda497360276a9d7973aafa9 | 5,165 | py | Python | server.py | Protozzzer/works | 2e4ee1443ff8289eabde3c85024037cefba47ea2 | [
"Unlicense"
] | null | null | null | server.py | Protozzzer/works | 2e4ee1443ff8289eabde3c85024037cefba47ea2 | [
"Unlicense"
] | null | null | null | server.py | Protozzzer/works | 2e4ee1443ff8289eabde3c85024037cefba47ea2 | [
"Unlicense"
] | null | null | null | # -*- coding: cp1251 -*
import socket
import time
import sys
from PyQt5 import QtWidgets
from threading import Thread
from PyQt5 import QtCore
from PyQt5.QtWidgets import (QVBoxLayout, QSplitter, QTextEdit, QWidget)
from PyQt5.QtGui import QTextCursor
import MySQLdb
class Settings_server:
host = socket.gethostbyn... | 38.544776 | 128 | 0.548112 | 575 | 5,165 | 4.810435 | 0.29913 | 0.060738 | 0.052061 | 0.052061 | 0.223789 | 0.206797 | 0.206797 | 0.185105 | 0.167028 | 0.167028 | 0 | 0.037838 | 0.319458 | 5,165 | 133 | 129 | 38.834586 | 0.749075 | 0.004066 | 0 | 0.12069 | 0 | 0.017241 | 0.130688 | 0 | 0.034483 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0.017241 | 0.077586 | 0 | 0.172414 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
24aa7d31a941bbe6faa5d7383cec1739d90b532d | 2,147 | py | Python | lib/ansibledocgen/cli.py | Ymil/ansible-docgen | a69dc8b067861b5a365d6086526d49f3cebfcfc0 | [
"MIT"
] | null | null | null | lib/ansibledocgen/cli.py | Ymil/ansible-docgen | a69dc8b067861b5a365d6086526d49f3cebfcfc0 | [
"MIT"
] | null | null | null | lib/ansibledocgen/cli.py | Ymil/ansible-docgen | a69dc8b067861b5a365d6086526d49f3cebfcfc0 | [
"MIT"
] | null | null | null | """ Command Line Interface Module """
import optparse
import sys
import os
from ansibledocgen.parser.dir import DirParser
from ansibledocgen.formatter.markup import MarkupFormatter
class Cli(object):
""" Command Line Interface for ansible-docgen """
def __init__(self):
""" Setup Arguments and Options... | 37.666667 | 85 | 0.552399 | 217 | 2,147 | 5.396313 | 0.447005 | 0.027327 | 0.038429 | 0.035867 | 0.051238 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00071 | 0.344201 | 2,147 | 56 | 86 | 38.339286 | 0.830966 | 0.146251 | 0 | 0 | 0 | 0 | 0.097561 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.125 | 0 | 0.2 | 0.025 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
24aed837d0532b684b7fafa445f36bb47a201801 | 1,904 | py | Python | missing_strat/inference/decomposition.py | tritas/missing_strat | 79abbcadfc8d2074f05f7e72de4f7d454a847a9c | [
"BSD-3-Clause"
] | null | null | null | missing_strat/inference/decomposition.py | tritas/missing_strat | 79abbcadfc8d2074f05f7e72de4f7d454a847a9c | [
"BSD-3-Clause"
] | null | null | null | missing_strat/inference/decomposition.py | tritas/missing_strat | 79abbcadfc8d2074f05f7e72de4f7d454a847a9c | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Fri Jul 15 16:20:49 2016
@author: Philippe
"""
import numpy as np
from scipy.sparse.linalg import svds
from functools import partial
def em_svd(Y, k=None, tol=1e-3, maxiter=None):
"""
Approximate SVD on data with missing values via expectation-maximization
Paramet... | 27.2 | 76 | 0.601366 | 280 | 1,904 | 4.014286 | 0.442857 | 0.031139 | 0.014235 | 0.030249 | 0.019573 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016357 | 0.293592 | 1,904 | 69 | 77 | 27.594203 | 0.819331 | 0.459034 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | false | 0 | 0.107143 | 0 | 0.178571 | 0.035714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
24b05ec839f0838d72624fea140291ea0a77d8e1 | 500 | py | Python | Resources/books/deep_learning_time_series_forecasting/code/chapter_11/02_average_forecast.py | gdepalma93/bright-athlete-academy | 54ba0cc6633637c1bd6d90120153e04b981244bf | [
"MIT"
] | null | null | null | Resources/books/deep_learning_time_series_forecasting/code/chapter_11/02_average_forecast.py | gdepalma93/bright-athlete-academy | 54ba0cc6633637c1bd6d90120153e04b981244bf | [
"MIT"
] | null | null | null | Resources/books/deep_learning_time_series_forecasting/code/chapter_11/02_average_forecast.py | gdepalma93/bright-athlete-academy | 54ba0cc6633637c1bd6d90120153e04b981244bf | [
"MIT"
] | null | null | null | # example of an average forecast
from numpy import mean
from numpy import median
# one-step average forecast
def average_forecast(history, config):
n, avg_type = config
# mean of last n values
if avg_type is 'mean':
return mean(history[-n:])
# median of last n values
return median(history[-n:])
# define datase... | 26.315789 | 68 | 0.698 | 91 | 500 | 3.791209 | 0.505495 | 0.173913 | 0.086957 | 0.075362 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.078947 | 0.164 | 500 | 19 | 69 | 26.315789 | 0.746411 | 0.274 | 0 | 0 | 0 | 0 | 0.022409 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.181818 | 0 | 0.454545 | 0.181818 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
24b9c10a0c8dd0aa24e9fa4c47c3053ceaf8be37 | 3,610 | py | Python | sumo/tests/netedit/additionalElements/chargingstation/create/test.sikuli/test.py | iltempe/osmosi | c0f54ecdbb7c7b5602d587768617d0dc50f1d75d | [
"MIT"
] | null | null | null | sumo/tests/netedit/additionalElements/chargingstation/create/test.sikuli/test.py | iltempe/osmosi | c0f54ecdbb7c7b5602d587768617d0dc50f1d75d | [
"MIT"
] | null | null | null | sumo/tests/netedit/additionalElements/chargingstation/create/test.sikuli/test.py | iltempe/osmosi | c0f54ecdbb7c7b5602d587768617d0dc50f1d75d | [
"MIT"
] | 2 | 2017-12-14T16:41:59.000Z | 2020-10-16T17:51:27.000Z | #!/usr/bin/env python
"""
@file test.py
@author Pablo Alvarez Lopez
@date 2016-11-25
@version $Id$
python script used by sikulix for testing netedit
SUMO, Simulation of Urban MObility; see http://sumo.dlr.de/
Copyright (C) 2009-2017 DLR/TS, Germany
This file is part of SUMO.
SUMO is free software; you can red... | 26.940299 | 76 | 0.789474 | 439 | 3,610 | 6.487472 | 0.359909 | 0.172051 | 0.073736 | 0.105337 | 0.459621 | 0.352177 | 0.317416 | 0.30302 | 0.295646 | 0.295646 | 0 | 0.035287 | 0.120776 | 3,610 | 133 | 77 | 27.142857 | 0.862004 | 0.477008 | 0 | 0.302326 | 0 | 0 | 0.099837 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.069767 | 0 | 0.069767 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
24babe270e3cb016bf9a05e1484aec6a6bfc25c7 | 360 | py | Python | nlputils/subset.py | shaun-russell/nlp | 5d6a80ce146b4904dc8bc49d8353da85957b74eb | [
"MIT"
] | 1 | 2018-11-19T00:19:11.000Z | 2018-11-19T00:19:11.000Z | nlputils/subset.py | shaun-russell/nlp | 5d6a80ce146b4904dc8bc49d8353da85957b74eb | [
"MIT"
] | null | null | null | nlputils/subset.py | shaun-russell/nlp | 5d6a80ce146b4904dc8bc49d8353da85957b74eb | [
"MIT"
] | null | null | null | ''' Extract a subset of lines from a file. '''
import random
def extract_n(datalist, number, save_header=True):
start = 1 if save_header else 0
subset = []
if save_header:
subset.append(datalist[0])
sample_indices = random.sample(range(start, len(datalist)), number)
for idx in sample_indices:
subset... | 24 | 69 | 0.713889 | 53 | 360 | 4.735849 | 0.566038 | 0.119522 | 0.095618 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010135 | 0.177778 | 360 | 14 | 70 | 25.714286 | 0.837838 | 0.105556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.1 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
24bdbfaa7f1f765ba8654015611f4aa1bebb433a | 2,005 | py | Python | SLClassifier/RepLoader.py | zhangrenyuuchicago/AdvReg4Intpltn | e6ce5a4db8213f0b6e7ba30f3f82375044c8dab0 | [
"MIT"
] | null | null | null | SLClassifier/RepLoader.py | zhangrenyuuchicago/AdvReg4Intpltn | e6ce5a4db8213f0b6e7ba30f3f82375044c8dab0 | [
"MIT"
] | null | null | null | SLClassifier/RepLoader.py | zhangrenyuuchicago/AdvReg4Intpltn | e6ce5a4db8213f0b6e7ba30f3f82375044c8dab0 | [
"MIT"
] | null | null | null | import torch
import torch.utils.data
import numpy as np
import csv
import random
import scvi
import scanpy as sc
import json
from collections import Counter
import json
import os
def convert_num(labels):
if os.path.exists('label2id.json'):
with open('label2id.json', 'r') as j:
label2id = json.... | 26.733333 | 60 | 0.558105 | 259 | 2,005 | 4.169884 | 0.293436 | 0.044444 | 0.027778 | 0.037037 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013473 | 0.333666 | 2,005 | 74 | 61 | 27.094595 | 0.79491 | 0 | 0 | 0.0625 | 0 | 0 | 0.03493 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.09375 | false | 0 | 0.171875 | 0.03125 | 0.359375 | 0.015625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
24bddb341b044ae3fa62fcdfa2048a65f4b08738 | 1,091 | py | Python | MatplotlibView.py | thekoc/ginkgo-sql-gui | f5f2523df42d505ffdc06b3a1b80dba4181c7b83 | [
"Apache-2.0"
] | null | null | null | MatplotlibView.py | thekoc/ginkgo-sql-gui | f5f2523df42d505ffdc06b3a1b80dba4181c7b83 | [
"Apache-2.0"
] | null | null | null | MatplotlibView.py | thekoc/ginkgo-sql-gui | f5f2523df42d505ffdc06b3a1b80dba4181c7b83 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*
import wx
import matplotlib
matplotlib.use("WxAgg")
from matplotlib.backends.backend_wxagg import FigureCanvasWxAgg as FigureCanvas
from matplotlib.backends.backend_wx import NavigationToolbar2Wx
from matplotlib.figure import Figure
class MatplotlibPanel(wx.Panel):
def __init__(self, parent... | 30.305556 | 79 | 0.670027 | 135 | 1,091 | 5.251852 | 0.422222 | 0.050776 | 0.062059 | 0.081805 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01049 | 0.213566 | 1,091 | 35 | 80 | 31.171429 | 0.815851 | 0.018332 | 0 | 0 | 0 | 0 | 0.019645 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068966 | false | 0 | 0.172414 | 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 |
24be2797fcd66e9b0985981bbaefcaaccc754cde | 3,608 | py | Python | examples/export_create_tables.py | danicarrion/carto-python | 631b018f065960baa35473e2087ce598560b9e17 | [
"BSD-3-Clause"
] | 85 | 2016-08-07T16:46:58.000Z | 2022-03-23T01:44:02.000Z | examples/export_create_tables.py | danicarrion/carto-python | 631b018f065960baa35473e2087ce598560b9e17 | [
"BSD-3-Clause"
] | 109 | 2016-08-02T18:40:04.000Z | 2021-08-23T08:08:02.000Z | examples/export_create_tables.py | danicarrion/carto-python | 631b018f065960baa35473e2087ce598560b9e17 | [
"BSD-3-Clause"
] | 29 | 2016-11-29T03:42:47.000Z | 2022-01-23T17:37:11.000Z | import argparse
import os
import re
import warnings
from carto.auth import APIKeyAuthClient
from carto.datasets import DatasetManager
from carto.sql import SQLClient
warnings.filterwarnings('ignore')
# set input arguments
parser = argparse.ArgumentParser(
description='Exports the CREATE TABLE scripts of all the ... | 33.719626 | 97 | 0.624169 | 473 | 3,608 | 4.585624 | 0.331924 | 0.036883 | 0.0355 | 0.029507 | 0.142462 | 0.111572 | 0.06639 | 0.043338 | 0.043338 | 0 | 0 | 0.001496 | 0.259146 | 3,608 | 106 | 98 | 34.037736 | 0.809951 | 0.033259 | 0 | 0 | 0 | 0 | 0.269385 | 0.006031 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.093023 | 0 | 0.093023 | 0.034884 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
24be8697b54674c0e0b86a367e1a14ca3ae70fb3 | 669 | py | Python | peer.py | hmccreanor/voip | c37ae98f53700c5d17bd8af83dbece1702f0bd10 | [
"MIT"
] | null | null | null | peer.py | hmccreanor/voip | c37ae98f53700c5d17bd8af83dbece1702f0bd10 | [
"MIT"
] | null | null | null | peer.py | hmccreanor/voip | c37ae98f53700c5d17bd8af83dbece1702f0bd10 | [
"MIT"
] | null | null | null | import socket
import sys
import threading
import time
import pyaudio
recipient = sys.argv[1]
inPort = int(sys.argv[2])
outPort = int(sys.argv[3])
def poll(sock):
while True:
data, addr = sock.recvfrom(1024)
print(data.decode())
inSock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
outSock = s... | 19.114286 | 61 | 0.675635 | 91 | 669 | 4.923077 | 0.527473 | 0.107143 | 0.044643 | 0.089286 | 0.174107 | 0.174107 | 0.174107 | 0.174107 | 0 | 0 | 0 | 0.012844 | 0.185351 | 669 | 34 | 62 | 19.676471 | 0.809174 | 0 | 0 | 0.08 | 0 | 0 | 0.002994 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0 | 0.2 | 0 | 0.24 | 0.04 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
24bf2e20956de8f312c50f5e50f0efe1c031e2db | 10,450 | py | Python | CorrNet/main.py | hcji/CorrNet | 373c425a3c17ce29ace1e9d9403d8300b3e5d93b | [
"MIT"
] | 2 | 2019-11-28T14:04:19.000Z | 2020-09-01T08:59:25.000Z | CorrNet/main.py | hcji/CorrNet | 373c425a3c17ce29ace1e9d9403d8300b3e5d93b | [
"MIT"
] | null | null | null | CorrNet/main.py | hcji/CorrNet | 373c425a3c17ce29ace1e9d9403d8300b3e5d93b | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Fri Sep 13 09:14:27 2019
@author: hcji
"""
import os
os.environ["CUDA_VISIBLE_DEVICES"] = "-1" # 这一行注释掉就是使用cpu,不注释就是使用gpu
import numpy as np
import keras.backend as K
from keras.models import Model
from keras.layers import Input, Dense, Add, concatenate, Conv1D, MaxPooling1D, ... | 33.928571 | 101 | 0.598852 | 1,439 | 10,450 | 4.116053 | 0.121612 | 0.07091 | 0.04052 | 0.038494 | 0.728516 | 0.68884 | 0.672126 | 0.647138 | 0.604592 | 0.592774 | 0 | 0.025846 | 0.270622 | 10,450 | 308 | 102 | 33.928571 | 0.751246 | 0.031962 | 0 | 0.662162 | 0 | 0 | 0.01764 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.13964 | false | 0 | 0.036036 | 0.018018 | 0.301802 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
24c8220e8ee9158d4486cc7075172e26d11d35e1 | 3,847 | py | Python | discordSuperUtils/Ban.py | adam757521/discordSuperUtils-splitted | 7221cd0461be5311e4c51e93e332bdfaa92ae2b2 | [
"MIT"
] | 2 | 2021-09-09T02:56:38.000Z | 2021-09-09T03:55:49.000Z | discordSuperUtils/Ban.py | Z1R343L/discord-super-utils | c3b8c224ebe59a5acba1b9069c52cce029fdf9c4 | [
"MIT"
] | null | null | null | discordSuperUtils/Ban.py | Z1R343L/discord-super-utils | c3b8c224ebe59a5acba1b9069c52cce029fdf9c4 | [
"MIT"
] | null | null | null | from __future__ import annotations
import asyncio
from datetime import datetime
from typing import (
TYPE_CHECKING,
Union,
Optional
)
import discord
from .Base import DatabaseChecker
from .Punishments import Punisher
if TYPE_CHECKING:
from .Punishments import Punishment
from discord.ext import c... | 34.348214 | 119 | 0.597089 | 445 | 3,847 | 5.020225 | 0.276404 | 0.048344 | 0.016115 | 0.024172 | 0.140555 | 0.091316 | 0.046553 | 0.046553 | 0.046553 | 0 | 0 | 0.001857 | 0.300234 | 3,847 | 111 | 120 | 34.657658 | 0.828009 | 0.023395 | 0 | 0.026316 | 0 | 0 | 0.063483 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.013158 | false | 0 | 0.118421 | 0 | 0.210526 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
24c94333f1c59b0fa2a2847c041b962bdb757ab4 | 2,393 | py | Python | mogp_emulator/demos/kdr_demos.py | EXAUQ/mogp-emulator | 9d5772135498bdf5b95b44b4afb065c2c266f899 | [
"MIT"
] | 21 | 2021-01-20T07:02:12.000Z | 2022-03-30T21:09:04.000Z | mogp_emulator/demos/kdr_demos.py | EXAUQ/mogp-emulator | 9d5772135498bdf5b95b44b4afb065c2c266f899 | [
"MIT"
] | 114 | 2019-04-25T14:53:11.000Z | 2021-01-06T17:07:41.000Z | mogp_emulator/demos/kdr_demos.py | EXAUQ/mogp-emulator | 9d5772135498bdf5b95b44b4afb065c2c266f899 | [
"MIT"
] | 8 | 2021-02-02T08:56:12.000Z | 2022-02-15T10:03:15.000Z | import mogp_emulator
import numpy as np
# simple Dimension Reduction examples
# simulator function -- returns a single "important" dimension from
# at least 4 inputs
def f(x):
return (x[0]-x[1]+2.*x[3])/3.
# Experimental design -- create a design with 5 input parameters
# all uniformly distributed over [0,1].
... | 29.182927 | 83 | 0.654409 | 340 | 2,393 | 4.508824 | 0.352941 | 0.067841 | 0.046967 | 0.017613 | 0.307241 | 0.294194 | 0.265493 | 0.255708 | 0.255708 | 0.255708 | 0 | 0.012821 | 0.185123 | 2,393 | 81 | 84 | 29.54321 | 0.773333 | 0.361889 | 0 | 0.307692 | 0 | 0 | 0.172388 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0 | 0.076923 | 0.038462 | 0.153846 | 0.192308 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
24ce5f9fcb194a70d3a391932da2b7673b304ad3 | 3,969 | py | Python | 2_vae_denoiser_data_gen.py | Ladvien/denoising_vae | c61433a41ba69ca305ab1a7b526f8560a70bad4e | [
"MIT"
] | null | null | null | 2_vae_denoiser_data_gen.py | Ladvien/denoising_vae | c61433a41ba69ca305ab1a7b526f8560a70bad4e | [
"MIT"
] | null | null | null | 2_vae_denoiser_data_gen.py | Ladvien/denoising_vae | c61433a41ba69ca305ab1a7b526f8560a70bad4e | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Nov 11 17:27:59 2020
@author: ladvien
"""
import sys
import os
import cv2
import numpy as np
from random import randint
import matplotlib.pyplot as plt
image_tools_path = "/home/ladvien/deep_arcane/"
sys.path.append(image_tools_path)
from image_ut... | 26.111842 | 106 | 0.581759 | 541 | 3,969 | 4.066543 | 0.295749 | 0.040909 | 0.025455 | 0.017727 | 0.285455 | 0.151818 | 0.123636 | 0.07 | 0.07 | 0.07 | 0 | 0.031553 | 0.297304 | 3,969 | 151 | 107 | 26.284768 | 0.757261 | 0.046107 | 0 | 0.104167 | 0 | 0 | 0.061878 | 0.029056 | 0 | 0 | 0 | 0 | 0 | 1 | 0.010417 | false | 0 | 0.072917 | 0 | 0.125 | 0.020833 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
24dd3da7f5133aac9176f92bd1db427450396bd2 | 1,509 | py | Python | sweat/io/generic.py | GoldenCheetah/sweatpy | eed6b34ff75c16fcbad878caded8ee4d18dea589 | [
"MIT"
] | 58 | 2018-03-10T08:26:10.000Z | 2022-03-20T11:23:50.000Z | sweat/io/generic.py | GoldenCheetah/sweatpy | eed6b34ff75c16fcbad878caded8ee4d18dea589 | [
"MIT"
] | 19 | 2018-03-10T13:09:49.000Z | 2022-03-18T10:31:19.000Z | sweat/io/generic.py | GoldenCheetah/sweatpy | eed6b34ff75c16fcbad878caded8ee4d18dea589 | [
"MIT"
] | 20 | 2018-03-09T19:16:15.000Z | 2022-03-08T00:21:38.000Z | from pathlib import Path
from typing import Generator, Union
import pandas as pd
from .fit import read_fit
from .gpx import read_gpx
from .tcx import read_tcx
def read_file(fpath: Union[str, Path], *args, **kwargs) -> pd.DataFrame:
"""This method tries to recognize the file type of the fpath argument by reading... | 26.946429 | 122 | 0.656064 | 211 | 1,509 | 4.616114 | 0.388626 | 0.032854 | 0.049281 | 0.030801 | 0.075975 | 0.075975 | 0.075975 | 0.075975 | 0.075975 | 0 | 0 | 0 | 0.259112 | 1,509 | 55 | 123 | 27.436364 | 0.871199 | 0.386349 | 0 | 0 | 0 | 0 | 0.103687 | 0 | 0 | 0 | 0 | 0 | 0.038462 | 1 | 0.076923 | false | 0 | 0.230769 | 0 | 0.346154 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
24de9ab8b2a618abe1a2446b71c946a46ce2cf44 | 5,542 | py | Python | python/import_gnomad_vep.py | mkanai/slalom-paper | 3d96b1778bdb3d91ac7bf70667460a88c2db530a | [
"MIT"
] | null | null | null | python/import_gnomad_vep.py | mkanai/slalom-paper | 3d96b1778bdb3d91ac7bf70667460a88c2db530a | [
"MIT"
] | null | null | null | python/import_gnomad_vep.py | mkanai/slalom-paper | 3d96b1778bdb3d91ac7bf70667460a88c2db530a | [
"MIT"
] | null | null | null | import argparse
import hail as hl
from gnomad.utils.vep import (
process_consequences,
filter_vep_to_canonical_transcripts,
get_most_severe_consequence_for_summary,
CSQ_CODING_HIGH_IMPACT,
CSQ_CODING_MEDIUM_IMPACT,
CSQ_CODING_LOW_IMPACT,
CSQ_NON_CODING,
)
from hail.genetics import reference... | 41.358209 | 136 | 0.690184 | 720 | 5,542 | 4.9625 | 0.227778 | 0.054576 | 0.025189 | 0.032746 | 0.366639 | 0.326336 | 0.29555 | 0.252729 | 0.141058 | 0.111951 | 0 | 0.015432 | 0.181523 | 5,542 | 133 | 137 | 41.669173 | 0.772266 | 0.003428 | 0 | 0.070796 | 0 | 0.00885 | 0.209745 | 0.127694 | 0 | 0 | 0 | 0 | 0 | 1 | 0.017699 | false | 0 | 0.061947 | 0 | 0.088496 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
24dfeb32f732cda7cc1bd5475ac2eba78563c4bb | 1,196 | py | Python | tests/tools.py | tkonopka/crossmap | 237e4319a77281490c4e037918977230fea43d7e | [
"MIT"
] | 1 | 2021-08-12T11:40:10.000Z | 2021-08-12T11:40:10.000Z | tests/tools.py | tkonopka/crossmap | 237e4319a77281490c4e037918977230fea43d7e | [
"MIT"
] | null | null | null | tests/tools.py | tkonopka/crossmap | 237e4319a77281490c4e037918977230fea43d7e | [
"MIT"
] | null | null | null | """
Helper functions used within the test suite
"""
import glob
from contextlib import suppress
from os import environ, remove, rmdir
from os.path import join, exists
from pymongo import MongoClient
def remove_file(files):
"""remove a single file if it exists."""
for f in files:
if exists(f):
... | 27.813953 | 78 | 0.686455 | 163 | 1,196 | 4.895706 | 0.380368 | 0.06015 | 0.075188 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008502 | 0.213211 | 1,196 | 42 | 79 | 28.47619 | 0.839532 | 0.142977 | 0 | 0 | 0 | 0 | 0.071928 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.12 | false | 0.04 | 0.2 | 0 | 0.32 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
24e2ecbea1b137afbbe27a88d7fa408842091b46 | 1,131 | py | Python | examples/scripts/flatten.py | bcdev/nc2zarr | 4ba4829d78c4bda593515685729d32baa83cabc2 | [
"MIT"
] | 5 | 2021-01-08T14:16:31.000Z | 2021-09-13T04:56:40.000Z | examples/scripts/flatten.py | bcdev/nc2zarr | 4ba4829d78c4bda593515685729d32baa83cabc2 | [
"MIT"
] | 42 | 2021-01-06T11:01:12.000Z | 2022-03-04T15:46:15.000Z | examples/scripts/flatten.py | bcdev/nc2zarr | 4ba4829d78c4bda593515685729d32baa83cabc2 | [
"MIT"
] | 2 | 2020-12-28T08:51:27.000Z | 2021-08-13T12:46:04.000Z | #!/usr/bin/env python3
"""Rechunk a Zarr with chunks of size 1 in time, full size in lat/lon.
If s3fs is installed, "s3://..." arguments can be used and credentials
will be read from standard environment variables or files (see s3fs docs).
The output dataset will have the same data as the input dataset, rechunked
so... | 29.763158 | 74 | 0.709991 | 180 | 1,131 | 4.311111 | 0.455556 | 0.03866 | 0.018041 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.0076 | 0.185676 | 1,131 | 37 | 75 | 30.567568 | 0.834962 | 0.42794 | 0 | 0 | 0 | 0 | 0.110938 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.105263 | false | 0 | 0.105263 | 0 | 0.210526 | 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 |
24e403742d04ac820900a705be239f8e41ce14fb | 4,724 | py | Python | algorythmic_heights/scc/scc.py | localmonkey/rosalind | dceab11d4938c1325075988be091abd3a5d25824 | [
"MIT"
] | null | null | null | algorythmic_heights/scc/scc.py | localmonkey/rosalind | dceab11d4938c1325075988be091abd3a5d25824 | [
"MIT"
] | null | null | null | algorythmic_heights/scc/scc.py | localmonkey/rosalind | dceab11d4938c1325075988be091abd3a5d25824 | [
"MIT"
] | null | null | null | #import numpy as np
class MyGrph:
def __init__(self, V_quant, E_quant):
self.V = V_quant
self.E = E_quant
self.edges_list = [[]] * (self.V)
self.reverse_edges_list = [[]] * (self.V)
def build_graph(self, f):
for i in range(0, self.E):
vertex1, vertex2 = map... | 34.481752 | 103 | 0.491956 | 579 | 4,724 | 3.7962 | 0.141623 | 0.125114 | 0.059145 | 0.038217 | 0.621929 | 0.545041 | 0.49818 | 0.49818 | 0.454504 | 0.419017 | 0 | 0.01513 | 0.412362 | 4,724 | 136 | 104 | 34.735294 | 0.776657 | 0.051228 | 0 | 0.504425 | 0 | 0 | 0.009003 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.070796 | false | 0 | 0 | 0 | 0.150442 | 0.00885 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
24e941de480f9fd93454090b5da0fb71dc8afdca | 1,193 | py | Python | allgemein/test_tastatur.py | kanopus1958/Python | 795d0e7c3479032a71e1c1246391772619e1e6ef | [
"MIT"
] | null | null | null | allgemein/test_tastatur.py | kanopus1958/Python | 795d0e7c3479032a71e1c1246391772619e1e6ef | [
"MIT"
] | null | null | null | allgemein/test_tastatur.py | kanopus1958/Python | 795d0e7c3479032a71e1c1246391772619e1e6ef | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# Programm : test_tastatur.py
# Version : 1.01
# SW-Stand : 17.02.2022
# Autor : Kanopus1958
# Beschreibung : Tastur Beispiel in Python
from rwm_steuerung import color as c
from rwm_mod01 import show_header
import platform
import sys
G_OS = ('Raspbian', 'Debian')
G_HEADER_1... | 24.854167 | 71 | 0.61777 | 147 | 1,193 | 4.802721 | 0.585034 | 0.03966 | 0.022663 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028571 | 0.266555 | 1,193 | 47 | 72 | 25.382979 | 0.778286 | 0.189438 | 0 | 0 | 0 | 0 | 0.167015 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.2 | 0 | 0.266667 | 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 |
24f18b66c7006add174b6858a066253782ef852a | 941 | py | Python | service.py | DropB1t/ClickerPy | a5142e1afcc27d6e557627dbbf75d8f224213431 | [
"MIT"
] | 1 | 2020-09-14T09:35:21.000Z | 2020-09-14T09:35:21.000Z | service.py | DropB1t/ClickerPy | a5142e1afcc27d6e557627dbbf75d8f224213431 | [
"MIT"
] | null | null | null | service.py | DropB1t/ClickerPy | a5142e1afcc27d6e557627dbbf75d8f224213431 | [
"MIT"
] | null | null | null | import socket
import struct
# Funzione send_names chiede al utente tramite l'input il suo nome da inviare al server
def send_name():
while True:
name = input('Please enter your nickname (maximum 20 characters) --> ')
if len(name) > 0 and len(name) < 21:
return name.encode('utf-8')
def connect():
ip = inpu... | 28.515152 | 87 | 0.669501 | 131 | 941 | 4.687023 | 0.572519 | 0.078176 | 0.058632 | 0.065147 | 0.110749 | 0.110749 | 0.110749 | 0 | 0 | 0 | 0 | 0.02834 | 0.21254 | 941 | 33 | 88 | 28.515152 | 0.80027 | 0.090329 | 0 | 0 | 0 | 0 | 0.149708 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.08 | false | 0 | 0.08 | 0 | 0.24 | 0.04 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
24f20d156732daf62fc69467ac140f84f352da1e | 3,586 | py | Python | backend/otpvalidation/views.py | beehyv/workforcehealthtracker | ab0f921938e1ee50158c9d2c72a66c534d435eee | [
"Apache-2.0"
] | 2 | 2020-05-10T05:20:04.000Z | 2020-05-21T15:29:55.000Z | backend/otpvalidation/views.py | beehyv/workforcehealthtracker | ab0f921938e1ee50158c9d2c72a66c534d435eee | [
"Apache-2.0"
] | null | null | null | backend/otpvalidation/views.py | beehyv/workforcehealthtracker | ab0f921938e1ee50158c9d2c72a66c534d435eee | [
"Apache-2.0"
] | 2 | 2020-05-13T18:21:37.000Z | 2020-05-21T15:29:58.000Z | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); y... | 37.747368 | 93 | 0.706637 | 443 | 3,586 | 5.604966 | 0.334086 | 0.053162 | 0.048329 | 0.053162 | 0.458317 | 0.414418 | 0.414418 | 0.398711 | 0.398711 | 0.358437 | 0 | 0.005236 | 0.20106 | 3,586 | 95 | 94 | 37.747368 | 0.861431 | 0.255438 | 0 | 0.52459 | 0 | 0 | 0.042296 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04918 | false | 0 | 0.098361 | 0 | 0.229508 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
24f22fdaa93b5ce8be07b713b821e2b5f86f6a5c | 12,386 | py | Python | tagnet.py | dbxinj/ynet | 01dcf26246f673ee0168b8143596ef7994c24418 | [
"Apache-2.0"
] | null | null | null | tagnet.py | dbxinj/ynet | 01dcf26246f673ee0168b8143596ef7994c24418 | [
"Apache-2.0"
] | null | null | null | tagnet.py | dbxinj/ynet | 01dcf26246f673ee0168b8143596ef7994c24418 | [
"Apache-2.0"
] | null | null | null | import ynet
from util import *
from singa.layer import Conv2D, Activation, MaxPooling2D, AvgPooling2D, Flatten, Slice, LRN
from singa import initializer
from singa import layer
from singa import loss
from singa import tensor
import cPickle as pickle
import logging
import os
import numpy as np
from numpy.core.umath_te... | 43.612676 | 182 | 0.631842 | 1,819 | 12,386 | 4.08851 | 0.120946 | 0.133118 | 0.109722 | 0.096813 | 0.638026 | 0.607503 | 0.544306 | 0.529111 | 0.498992 | 0.46188 | 0 | 0.035825 | 0.217988 | 12,386 | 283 | 183 | 43.766784 | 0.731984 | 0.013483 | 0 | 0.30131 | 0 | 0 | 0.061164 | 0 | 0 | 0 | 0 | 0 | 0.021834 | 1 | 0.117904 | false | 0 | 0.065502 | 0.021834 | 0.31441 | 0.004367 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
24f51f706d59ef12ae7c9778bb46f43394712322 | 1,362 | py | Python | server/api/processing/models/dim_reduction/umap.py | JBris/dolphin_segmentation | b1d22293720c15038d9c521aed8e7b258d8409aa | [
"MIT"
] | 1 | 2021-05-09T05:40:53.000Z | 2021-05-09T05:40:53.000Z | server/api/processing/models/dim_reduction/umap.py | JBris/dolphin_segmentation | b1d22293720c15038d9c521aed8e7b258d8409aa | [
"MIT"
] | null | null | null | server/api/processing/models/dim_reduction/umap.py | JBris/dolphin_segmentation | b1d22293720c15038d9c521aed8e7b258d8409aa | [
"MIT"
] | null | null | null | import cv2
import numpy as np
from joblib import load as model_load
from api.services.file_select import FileTask
def preprocess_images(image_files, img_size):
images = []
for file in image_files:
img = cv2.imread(file)
img = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
img = cv2.resize(img... | 33.219512 | 94 | 0.687225 | 180 | 1,362 | 5.094444 | 0.372222 | 0.053435 | 0.032715 | 0.030534 | 0.21374 | 0.21374 | 0.21374 | 0.100327 | 0.100327 | 0.100327 | 0 | 0.02112 | 0.200441 | 1,362 | 40 | 95 | 34.05 | 0.820937 | 0.06094 | 0 | 0.129032 | 0 | 0 | 0.099057 | 0.064465 | 0 | 0 | 0 | 0 | 0 | 1 | 0.129032 | false | 0 | 0.129032 | 0 | 0.419355 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
24f660253a038a05146b9855744f65f5a06fa0cb | 6,099 | py | Python | SupportVectorMachine/support_vector_machine.py | DragonYong/Sep-Dragon | 674df34a992b449669116c5322596ffc19a21030 | [
"MIT"
] | null | null | null | SupportVectorMachine/support_vector_machine.py | DragonYong/Sep-Dragon | 674df34a992b449669116c5322596ffc19a21030 | [
"MIT"
] | 1 | 2020-09-10T04:05:06.000Z | 2020-09-10T04:05:06.000Z | SupportVectorMachine/support_vector_machine.py | DragonYong/Sep-Dragon | 674df34a992b449669116c5322596ffc19a21030 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# @Time : 2020/9/9-22:50
# @Author : TuringEmmy
# @Email : yonglonggeng@163.com
# @WeChat : csy_lgy
# @File : support_vector_machine.py
# @Project : Sep-Dragon
# *************************************************
import numpy as np
import pandas as pd
from sklearn.datasets import ... | 30.959391 | 110 | 0.490572 | 881 | 6,099 | 3.271283 | 0.204313 | 0.078071 | 0.034351 | 0.041638 | 0.31263 | 0.259195 | 0.199861 | 0.152672 | 0.125607 | 0.075642 | 0 | 0.045733 | 0.358255 | 6,099 | 196 | 111 | 31.117347 | 0.690598 | 0.104279 | 0 | 0.102941 | 0 | 0 | 0.016756 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095588 | false | 0 | 0.029412 | 0.007353 | 0.257353 | 0.014706 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
24f6f3452f96ca5836016613b2d46de60f6bab90 | 2,668 | py | Python | plaidml2/exec/__init__.py | winnerineast/plaidml | 7a7191507f04f0853fed34cfd471ef76aa6d489f | [
"Apache-2.0"
] | 1 | 2019-09-23T05:50:50.000Z | 2019-09-23T05:50:50.000Z | plaidml2/exec/__init__.py | kounkounsito/plaidml | 615cfce9dac7a5786a8895feadfd2aa13680d6de | [
"Apache-2.0"
] | null | null | null | plaidml2/exec/__init__.py | kounkounsito/plaidml | 615cfce9dac7a5786a8895feadfd2aa13680d6de | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Intel Corporation.
import numpy as np
import plaidml2 as plaidml
import plaidml2.settings as plaidml_settings
from plaidml2.ffi import ForeignObject, decode_str, ffi, ffi_call, lib
def __init():
ffi_call(lib.plaidml_exec_init)
ffi.init_once(__init, 'plaidml_exec_init')
def list_devices():
... | 33.772152 | 92 | 0.662294 | 364 | 2,668 | 4.585165 | 0.236264 | 0.026363 | 0.047933 | 0.0713 | 0.23547 | 0.219293 | 0.165368 | 0.081486 | 0 | 0 | 0 | 0.00441 | 0.235008 | 2,668 | 78 | 93 | 34.205128 | 0.813327 | 0.056222 | 0 | 0 | 0 | 0 | 0.037788 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.148148 | false | 0 | 0.074074 | 0.037037 | 0.37037 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
24f791043bd9796713489db2bdf00e09dbb2fd36 | 3,831 | py | Python | luna_transformer/model.py | sooftware/luna-transformer | fc06b453478dcfd9b7979b70af1b4f4507597891 | [
"MIT"
] | 26 | 2021-07-29T18:05:39.000Z | 2022-02-04T20:03:13.000Z | luna_transformer/model.py | sooftware/luna-transformer | fc06b453478dcfd9b7979b70af1b4f4507597891 | [
"MIT"
] | null | null | null | luna_transformer/model.py | sooftware/luna-transformer | fc06b453478dcfd9b7979b70af1b4f4507597891 | [
"MIT"
] | 1 | 2021-07-31T07:30:02.000Z | 2021-07-31T07:30:02.000Z | # MIT License
#
# Copyright (c) 2021 Soohwan Kim
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, ... | 40.755319 | 113 | 0.708431 | 495 | 3,831 | 5.292929 | 0.377778 | 0.027481 | 0.019084 | 0.032061 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01136 | 0.218742 | 3,831 | 93 | 114 | 41.193548 | 0.864016 | 0.327591 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.038462 | false | 0 | 0.115385 | 0 | 0.192308 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
24f9bb21ea848732645dd95fdfaf8ef61a4a7e4b | 6,726 | py | Python | nfbackend/testboard_utils.py | neuralfoo/neuralfoo | d40388cd506d612ceee9ae10d92985c794249c65 | [
"MIT"
] | 2 | 2022-01-06T08:18:29.000Z | 2022-01-06T08:19:09.000Z | nfbackend/testboard_utils.py | neuralfoo/neuralfoo | d40388cd506d612ceee9ae10d92985c794249c65 | [
"MIT"
] | null | null | null | nfbackend/testboard_utils.py | neuralfoo/neuralfoo | d40388cd506d612ceee9ae10d92985c794249c65 | [
"MIT"
] | null | null | null | import dbops
from loguru import logger
import traceback
from bson.objectid import ObjectId
import utils
import global_vars as g
import fs_utils
def create_testboard(data,userID,organizationID):
try:
if dbops.check_if_exists("testboards","apiName",data["apiName"]):
message = "Testboard name... | 26.376471 | 113 | 0.610616 | 714 | 6,726 | 5.556022 | 0.196078 | 0.026468 | 0.03025 | 0.0242 | 0.306781 | 0.274515 | 0.156289 | 0.156289 | 0.076128 | 0.076128 | 0 | 0.001449 | 0.281742 | 6,726 | 254 | 114 | 26.480315 | 0.819706 | 0 | 0 | 0.202614 | 0 | 0 | 0.158945 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.045752 | 0 | 0.248366 | 0.026144 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
24ffa281701166331532a6d684f818550c073997 | 4,696 | py | Python | language/serene/text_matcher.py | Xtuden-com/language | 70c0328968d5ffa1201c6fdecde45bbc4fec19fc | [
"Apache-2.0"
] | 1,199 | 2018-10-16T01:30:18.000Z | 2022-03-31T21:05:24.000Z | language/serene/text_matcher.py | Xtuden-com/language | 70c0328968d5ffa1201c6fdecde45bbc4fec19fc | [
"Apache-2.0"
] | 116 | 2018-10-18T03:31:46.000Z | 2022-03-24T13:40:50.000Z | language/serene/text_matcher.py | Xtuden-com/language | 70c0328968d5ffa1201c6fdecde45bbc4fec19fc | [
"Apache-2.0"
] | 303 | 2018-10-22T12:35:12.000Z | 2022-03-27T17:38:17.000Z | # coding=utf-8
# Copyright 2018 The Google AI Language Team Authors.
#
# 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 ... | 32.611111 | 106 | 0.688671 | 666 | 4,696 | 4.713213 | 0.318318 | 0.034406 | 0.0223 | 0.014017 | 0.447276 | 0.396305 | 0.353616 | 0.327493 | 0.327493 | 0.327493 | 0 | 0.006834 | 0.221039 | 4,696 | 143 | 107 | 32.839161 | 0.851285 | 0.409072 | 0 | 0.3 | 0 | 0 | 0.075637 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.085714 | false | 0 | 0.128571 | 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 |
70000a0effbae8943e38a948112d24880ec73970 | 1,099 | py | Python | setup.py | hulusibaysal/EksiGundem | 6b0130a89c0c42b365dea847027ff3e13c4c4240 | [
"MIT"
] | null | null | null | setup.py | hulusibaysal/EksiGundem | 6b0130a89c0c42b365dea847027ff3e13c4c4240 | [
"MIT"
] | null | null | null | setup.py | hulusibaysal/EksiGundem | 6b0130a89c0c42b365dea847027ff3e13c4c4240 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from pathlib import Path
from setuptools import setup
CURRENT_DIR = Path(__file__).parent
def get_long_description():
readme_md = CURRENT_DIR / "README.md"
with open(readme_md, encoding="utf8") as ld_file:
return ld_file.read()
setup(
name="eksi",... | 26.804878 | 67 | 0.658781 | 128 | 1,099 | 5.445313 | 0.695313 | 0.086083 | 0.05165 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012277 | 0.184713 | 1,099 | 40 | 68 | 27.475 | 0.765625 | 0.038217 | 0 | 0 | 0 | 0 | 0.323223 | 0.024645 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032258 | false | 0 | 0.064516 | 0 | 0.129032 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
7001e2e5450d227861c09e67f69e32ff38986c9e | 4,596 | py | Python | asci_art.py | JonathanFromm/HackerspaceTemplatePackage | b0bd5e77cd36417901b064e82812d365c55ff421 | [
"MIT"
] | null | null | null | asci_art.py | JonathanFromm/HackerspaceTemplatePackage | b0bd5e77cd36417901b064e82812d365c55ff421 | [
"MIT"
] | null | null | null | asci_art.py | JonathanFromm/HackerspaceTemplatePackage | b0bd5e77cd36417901b064e82812d365c55ff421 | [
"MIT"
] | null | null | null | class bcolors:
HEADER = '\033[95m'
OKBLUE = '\033[94m'
OKGREEN = '\033[92m'
WARNING = '\033[93m'
FAIL = '\033[91m'
ENDC = '\033[0m'
BOLD = '\033[1m'
UNDERLINE = '\033[4m'
def happy_face():
print(' ')
print(bcolors.OKGREEN+' ^ ^ '+bcolors.ENDC)
print(bcolor... | 35.353846 | 130 | 0.572454 | 543 | 4,596 | 4.554328 | 0.163904 | 0.122928 | 0.05095 | 0.092196 | 0.627578 | 0.561262 | 0.450061 | 0.352608 | 0.313385 | 0.261221 | 0 | 0.025865 | 0.301784 | 4,596 | 129 | 131 | 35.627907 | 0.74478 | 0.01349 | 0 | 0.27619 | 0 | 0 | 0.13526 | 0.012798 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0 | 0 | 0.171429 | 0.190476 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
70031ea92c28e396deb633661ccd21348ccd84ec | 795 | py | Python | paths.py | ShuaiW/kaggle-heart | 022997f27add953c74af2b371c67d9d86cbdccc3 | [
"MIT"
] | 182 | 2016-03-15T01:51:29.000Z | 2021-04-21T09:49:05.000Z | paths.py | weidezhang/kaggle-heart | 022997f27add953c74af2b371c67d9d86cbdccc3 | [
"MIT"
] | 1 | 2018-06-22T16:46:12.000Z | 2018-06-22T21:08:09.000Z | paths.py | weidezhang/kaggle-heart | 022997f27add953c74af2b371c67d9d86cbdccc3 | [
"MIT"
] | 61 | 2016-03-15T00:58:28.000Z | 2020-03-06T22:00:41.000Z | """Module for reading the SETTINGS.json file.
"""
import json
import os
with open(os.path.dirname(os.path.realpath(__file__)) + '/SETTINGS.json') as data_file:
PATHS = json.load(data_file)
TRAIN_DATA_PATH = PATHS["TRAIN_DATA_PATH"]
TEST_DATA_PATH = PATHS["VALIDATE_DATA_PATH"]
PKL_TRAIN_DATA_PATH = PATHS["PKL_TRA... | 34.565217 | 87 | 0.8 | 117 | 795 | 4.974359 | 0.290598 | 0.154639 | 0.089347 | 0.061856 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083019 | 795 | 22 | 88 | 36.136364 | 0.798354 | 0.05283 | 0 | 0 | 0 | 0 | 0.312332 | 0.096515 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.117647 | 0 | 0.117647 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
700529f087345e2c10ecc73eaeb6cb41b5f20690 | 433 | py | Python | debug/debug08.py | adamlukomski/pykron | 5e4c4b840af2cf574dab8417a97b7f0fc4080878 | [
"BSD-2-Clause"
] | null | null | null | debug/debug08.py | adamlukomski/pykron | 5e4c4b840af2cf574dab8417a97b7f0fc4080878 | [
"BSD-2-Clause"
] | null | null | null | debug/debug08.py | adamlukomski/pykron | 5e4c4b840af2cf574dab8417a97b7f0fc4080878 | [
"BSD-2-Clause"
] | null | null | null |
# what not to do - use empty function
# race conditions may cause it not to finish right away
# but the timeout will catch it
# UPDATE: solved in d9c4fad
import sys
sys.path.append('..')
from pykron.core import Pykron, PykronLogger
import time
app = Pykron()
@app.AsyncRequest(timeout=0.5)
def fun4():
return ... | 16.037037 | 55 | 0.727483 | 64 | 433 | 4.890625 | 0.765625 | 0.031949 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019391 | 0.166282 | 433 | 26 | 56 | 16.653846 | 0.847645 | 0.334873 | 0 | 0 | 0 | 0 | 0.028369 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.25 | 0.083333 | 0.416667 | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
7005d5f528431853e55b70e8b2c13f2e752e74a6 | 8,563 | py | Python | (sandbox,tobemerged)/pythongis/vector/(old)/geom_safe.py | karimbahgat/pythongis | 1042ea14de4e2aafd55de4e01d86b7d379d55999 | [
"MIT"
] | 4 | 2015-12-05T14:31:55.000Z | 2018-02-09T05:54:36.000Z | (sandbox,tobemerged)/pythongis/vector/(old)/geom_safe.py | karimbahgat/pythongis | 1042ea14de4e2aafd55de4e01d86b7d379d55999 | [
"MIT"
] | null | null | null | (sandbox,tobemerged)/pythongis/vector/(old)/geom_safe.py | karimbahgat/pythongis | 1042ea14de4e2aafd55de4e01d86b7d379d55999 | [
"MIT"
] | 1 | 2018-10-24T01:08:11.000Z | 2018-10-24T01:08:11.000Z | import sys, os, itertools, operator
import datetime
import shapely
from shapely.geometry import asShape as geoj2geom
from shapely.geometry import mapping as geom2geoj
import rtree
from . import loader
class Feature:
def __init__(self, table, row, geometry):
"geometry must be a geojson dictionary o... | 30.045614 | 185 | 0.564288 | 957 | 8,563 | 4.99373 | 0.254963 | 0.031387 | 0.012555 | 0.013601 | 0.263026 | 0.216782 | 0.207993 | 0.201716 | 0.171584 | 0.156518 | 0 | 0.000868 | 0.327105 | 8,563 | 284 | 186 | 30.151408 | 0.828532 | 0.152633 | 0 | 0.281437 | 0 | 0 | 0.031399 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.155689 | false | 0.023952 | 0.041916 | 0.011976 | 0.287425 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
70069527a46c915cd2978c2c7d78d1acde10b272 | 1,970 | py | Python | 2021/five/day10.py | BenningtonComputing/adventofcode | f162163862e122ac15495e14d138601379fab382 | [
"MIT"
] | null | null | null | 2021/five/day10.py | BenningtonComputing/adventofcode | f162163862e122ac15495e14d138601379fab382 | [
"MIT"
] | null | null | null | 2021/five/day10.py | BenningtonComputing/adventofcode | f162163862e122ac15495e14d138601379fab382 | [
"MIT"
] | 1 | 2021-12-27T09:31:30.000Z | 2021-12-27T09:31:30.000Z | #!/usr/bin/env python3
"""
day10-2021.py - my solution to day 10 of advent of code 2021.
the link to the problem is:
https://adventofcode.com/2021/day/10
use by running `./aoc-day10-2021.py [input]`
this code was originally posted here:
... | 21.648352 | 81 | 0.57868 | 268 | 1,970 | 4.208955 | 0.399254 | 0.042553 | 0.015957 | 0.033688 | 0.079787 | 0.044326 | 0 | 0 | 0 | 0 | 0 | 0.056211 | 0.268528 | 1,970 | 90 | 82 | 21.888889 | 0.726579 | 0.230457 | 0 | 0.142857 | 0 | 0 | 0.053892 | 0.01996 | 0 | 0 | 0 | 0 | 0 | 1 | 0.079365 | false | 0 | 0.015873 | 0.015873 | 0.206349 | 0.031746 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
7006ed71317775974197d8422ff224edfdfa01ac | 9,264 | py | Python | nxsdk_modules_ncl/epl/src/computeResults.py | biagiom/models | 79489a3c429b3027dd420840bbccfee5e8c9a879 | [
"BSD-3-Clause"
] | 54 | 2020-03-04T17:37:17.000Z | 2022-02-22T13:16:10.000Z | nxsdk_modules_ncl/epl/src/computeResults.py | biagiom/models | 79489a3c429b3027dd420840bbccfee5e8c9a879 | [
"BSD-3-Clause"
] | 9 | 2020-08-26T13:17:54.000Z | 2021-11-09T09:02:00.000Z | nxsdk_modules_ncl/epl/src/computeResults.py | biagiom/models | 79489a3c429b3027dd420840bbccfee5e8c9a879 | [
"BSD-3-Clause"
] | 26 | 2020-03-18T17:09:34.000Z | 2021-11-22T16:23:14.000Z | # Copyright(c) 2019-2020 Intel Corporation All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# * Redistributions of source code must retain the above copyright
# notice, this list of condition... | 35.358779 | 95 | 0.619603 | 1,010 | 9,264 | 5.662376 | 0.29703 | 0.009792 | 0.014688 | 0.023081 | 0.129218 | 0.099668 | 0.087952 | 0.060675 | 0.043364 | 0.043364 | 0 | 0.023196 | 0.287997 | 9,264 | 261 | 96 | 35.494253 | 0.843845 | 0.304512 | 0 | 0.201149 | 0 | 0 | 0.027922 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.051724 | false | 0.017241 | 0.022989 | 0 | 0.126437 | 0.022989 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
70093c19345ca7b163a2cb4f6904b25e16e97891 | 983 | py | Python | Spider.py | yxg995995/yxg | 7865cb8bd6fca4d59278365afdb96529a7757386 | [
"MIT"
] | null | null | null | Spider.py | yxg995995/yxg | 7865cb8bd6fca4d59278365afdb96529a7757386 | [
"MIT"
] | null | null | null | Spider.py | yxg995995/yxg | 7865cb8bd6fca4d59278365afdb96529a7757386 | [
"MIT"
] | null | null | null | import requests
import json
from DataBase import *
def getdaydata():#爬取股票每天的价格并插入到数据库保存
durl='''http://quotes.money.163.com/service/chddata.html?code=1000001&start=20200106&end=20210106&
fields=TCLOSE;HIGH;LOW;TOPEN;LCLOSE;CHG;PCHG;TURNOVER;VOTURNOVER;VATURNOVER;TCAP;MCAP'''
r=requests.get(durl)
... | 39.32 | 102 | 0.641913 | 144 | 983 | 4.305556 | 0.597222 | 0.048387 | 0.058065 | 0.106452 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.071934 | 0.137335 | 983 | 25 | 103 | 39.32 | 0.659198 | 0.087487 | 0 | 0 | 0 | 0.136364 | 0.332961 | 0.094972 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.136364 | 0 | 0.227273 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
700adc4ff1b09523fb554fd02562d6b99ea12187 | 3,941 | py | Python | testLogReader/testingUtils.py | simcesplatform/LogReader | eadeb7061df6fccdd0c7845284ab1a85df1bc20c | [
"MIT"
] | null | null | null | testLogReader/testingUtils.py | simcesplatform/LogReader | eadeb7061df6fccdd0c7845284ab1a85df1bc20c | [
"MIT"
] | null | null | null | testLogReader/testingUtils.py | simcesplatform/LogReader | eadeb7061df6fccdd0c7845284ab1a85df1bc20c | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright 2021 Tampere University and VTT Technical Research Centre of Finland
# This software was developed as a part of the ProCemPlus project: https://www.senecc.fi/projects/procemplus
# This source code is licensed under the MIT license. See LICENSE in the repository root directory.
# Auth... | 41.484211 | 119 | 0.689165 | 503 | 3,941 | 5.39165 | 0.383698 | 0.020649 | 0.029499 | 0.016593 | 0.076696 | 0.044985 | 0.044985 | 0.044985 | 0.044985 | 0.044985 | 0 | 0.002297 | 0.226592 | 3,941 | 95 | 120 | 41.484211 | 0.887467 | 0.40269 | 0 | 0 | 0 | 0 | 0.145635 | 0.020353 | 0 | 0 | 0 | 0 | 0.097561 | 1 | 0.146341 | false | 0 | 0.170732 | 0 | 0.365854 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
700c2f0c5f5d02e18dff51805b19cfdc82f63425 | 4,111 | py | Python | sqlparse/__init__.py | Yelp/sqlparse | a29c8c1fb827863c6b57d8811ed3b69e982a3877 | [
"BSD-3-Clause"
] | 4 | 2015-03-16T17:08:44.000Z | 2017-02-21T22:33:18.000Z | sqlparse/__init__.py | Yelp/sqlparse | a29c8c1fb827863c6b57d8811ed3b69e982a3877 | [
"BSD-3-Clause"
] | 3 | 2015-09-30T23:53:08.000Z | 2016-05-27T18:37:02.000Z | sqlparse/__init__.py | Yelp/sqlparse | a29c8c1fb827863c6b57d8811ed3b69e982a3877 | [
"BSD-3-Clause"
] | 7 | 2015-03-16T20:55:44.000Z | 2020-06-18T18:17:51.000Z | # Copyright (C) 2008 Andi Albrecht, albrecht.andi@gmail.com
#
# This module is part of python-sqlparse and is released under
# the BSD License: http://www.opensource.org/licenses/bsd-license.php.
"""Parse SQL statements."""
__version__ = '0.1.14'
# Setup namespace
from sqlparse import engine
from sqlparse import f... | 31.868217 | 78 | 0.711992 | 520 | 4,111 | 5.548077 | 0.3 | 0.037435 | 0.031196 | 0.022184 | 0.267938 | 0.188908 | 0.131023 | 0.131023 | 0.131023 | 0.131023 | 0 | 0.005128 | 0.193627 | 4,111 | 128 | 79 | 32.117188 | 0.865158 | 0.363658 | 0 | 0.1 | 0 | 0 | 0.063377 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.15 | 0 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
700f946fb5baca6452e61d3f1e007eb88ce90d87 | 1,543 | py | Python | ghost/urls.py | Microcore/Quantic | 727234a5e9e58217eb8235b6d0f27fe1b95f5f83 | [
"MIT"
] | null | null | null | ghost/urls.py | Microcore/Quantic | 727234a5e9e58217eb8235b6d0f27fe1b95f5f83 | [
"MIT"
] | 7 | 2015-04-25T05:04:46.000Z | 2015-04-26T08:24:36.000Z | ghost/urls.py | Microcore/Quantic | 727234a5e9e58217eb8235b6d0f27fe1b95f5f83 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from django.conf.urls import patterns, include, url
# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()
urlpatterns = patterns('',
# Login view
url(r'^$', 'ghost.views.index_view'),
url(r'^login/$', 'ghost.views.lo... | 37.634146 | 65 | 0.62022 | 197 | 1,543 | 4.80203 | 0.314721 | 0.067653 | 0.084567 | 0.038055 | 0.046512 | 0.046512 | 0 | 0 | 0 | 0 | 0 | 0.00081 | 0.200259 | 1,543 | 40 | 66 | 38.575 | 0.765802 | 0.289047 | 0 | 0 | 0 | 0 | 0.564127 | 0.382835 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.052632 | 0 | 0.052632 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
700ff1e444ff7f1930953d197f9dc705fff91e95 | 2,094 | py | Python | train_val_split.py | chintak/face_detection | 8370977f084fd66a9ddcc549a1b4ea8b030d23ac | [
"Apache-2.0"
] | 4 | 2016-05-04T11:27:24.000Z | 2018-10-20T15:50:57.000Z | train_val_split.py | chintak/face_detection | 8370977f084fd66a9ddcc549a1b4ea8b030d23ac | [
"Apache-2.0"
] | null | null | null | train_val_split.py | chintak/face_detection | 8370977f084fd66a9ddcc549a1b4ea8b030d23ac | [
"Apache-2.0"
] | null | null | null | import os
import pandas as pd
from pandas import read_csv
import glob
from joblib import Parallel, delayed
import numpy as np
import argparse
def read_facescrub_img_list(folder, actor_label_txt, actress_label_txt, accept_pattern='*.jpg'):
full_names = glob.glob(os.path.join(folder, accept_pattern))
only_names... | 38.777778 | 100 | 0.688634 | 317 | 2,094 | 4.280757 | 0.343849 | 0.058954 | 0.041268 | 0.029477 | 0.116433 | 0.025055 | 0 | 0 | 0 | 0 | 0 | 0.008681 | 0.174785 | 2,094 | 53 | 101 | 39.509434 | 0.77662 | 0 | 0 | 0 | 0 | 0 | 0.124642 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.044444 | false | 0 | 0.155556 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
701176938ee12ffb5b5372fd1b648cf68178d256 | 508 | py | Python | Ignatov_Mikhail_dz_9/exercise_2.py | HellFrozenRain/GB_Homework_Python_1 | b0baea6b7efecc6bd649618d0aeba93be57a389a | [
"MIT"
] | null | null | null | Ignatov_Mikhail_dz_9/exercise_2.py | HellFrozenRain/GB_Homework_Python_1 | b0baea6b7efecc6bd649618d0aeba93be57a389a | [
"MIT"
] | null | null | null | Ignatov_Mikhail_dz_9/exercise_2.py | HellFrozenRain/GB_Homework_Python_1 | b0baea6b7efecc6bd649618d0aeba93be57a389a | [
"MIT"
] | null | null | null | class Road:
m = 25
def __init__(self, length: int, width:int):
self._length = length
self._width = width
def calculatiion(self, s: int):
print(f' road length: {self._length} m')
print(f' road width: {self._width} m')
print(f' road thikness: {s} cm')
result = ... | 33.866667 | 91 | 0.612205 | 73 | 508 | 4.123288 | 0.438356 | 0.13289 | 0.099668 | 0.07309 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034667 | 0.261811 | 508 | 15 | 92 | 33.866667 | 0.768 | 0 | 0 | 0 | 0 | 0 | 0.300589 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0 | 0 | 0.384615 | 0.307692 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
70181f30e72e0f68764f53dfd0b38a713dacd8ea | 651 | py | Python | chapter 4 - quicksort/binary-search-recursive.py | kingisaac95/grokking-algorithms | 32cca84f8b6577deb83fa77e1d9dec754b59b776 | [
"Apache-2.0"
] | null | null | null | chapter 4 - quicksort/binary-search-recursive.py | kingisaac95/grokking-algorithms | 32cca84f8b6577deb83fa77e1d9dec754b59b776 | [
"Apache-2.0"
] | null | null | null | chapter 4 - quicksort/binary-search-recursive.py | kingisaac95/grokking-algorithms | 32cca84f8b6577deb83fa77e1d9dec754b59b776 | [
"Apache-2.0"
] | null | null | null | # find position of `target` in subarray nums[left…right]
def binary_search(list, left, right, target):
# base case
if left > right:
return -1
mid = (left + right) // 2
if list[mid] == target:
return mid
elif list[mid] > target:
# move right pointer to the item before mid
... | 26.04 | 58 | 0.623656 | 101 | 651 | 3.960396 | 0.376238 | 0.15 | 0.12 | 0.1 | 0.285 | 0.16 | 0.16 | 0 | 0 | 0 | 0 | 0.02714 | 0.264209 | 651 | 24 | 59 | 27.125 | 0.80167 | 0.22427 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0 | 0 | 0.333333 | 0.133333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
70190c25c52cf54777c3b3dbdf96f6a2c2775501 | 4,206 | py | Python | scripts/roberta_experiment/roberta_classification_simple.py | sarnthil/emotion-classification-roles | 1fdd3a8cbdac5ab2ad9598a101b763882df78280 | [
"MIT"
] | 1 | 2022-02-17T14:16:20.000Z | 2022-02-17T14:16:20.000Z | scripts/roberta_experiment/roberta_classification_simple.py | sarnthil/emotion-classification-roles | 1fdd3a8cbdac5ab2ad9598a101b763882df78280 | [
"MIT"
] | null | null | null | scripts/roberta_experiment/roberta_classification_simple.py | sarnthil/emotion-classification-roles | 1fdd3a8cbdac5ab2ad9598a101b763882df78280 | [
"MIT"
] | null | null | null | import logging
import random
from pathlib import Path
from datetime import datetime, timezone
import click
import datasets as nlp
import torch
import numpy as np
import pandas as pd
from simpletransformers.classification import ClassificationModel
from sklearn.metrics import f1_score, accuracy_score, recall_score, pre... | 31.62406 | 194 | 0.697813 | 524 | 4,206 | 5.354962 | 0.324427 | 0.047042 | 0.036351 | 0.04918 | 0.138275 | 0.138275 | 0.107627 | 0.097648 | 0 | 0 | 0 | 0.006454 | 0.189491 | 4,206 | 132 | 195 | 31.863636 | 0.816662 | 0.014979 | 0 | 0 | 0 | 0 | 0.121044 | 0.050495 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.161616 | 0.070707 | 0.333333 | 0.010101 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
701cc13b80e73e6036a93390352d580fb8410617 | 2,552 | py | Python | libraries/numbers.py | yoratoni/Euler-Python | 8272eed12162a9bdc33302554bb1af30e56a3e8b | [
"MIT"
] | null | null | null | libraries/numbers.py | yoratoni/Euler-Python | 8272eed12162a9bdc33302554bb1af30e56a3e8b | [
"MIT"
] | null | null | null | libraries/numbers.py | yoratoni/Euler-Python | 8272eed12162a9bdc33302554bb1af30e56a3e8b | [
"MIT"
] | null | null | null | from math import floor, ceil, sqrt, log2
from libraries import Digits
class Numbers:
@staticmethod
def is_perfect_square(n: int) -> bool:
'''Returns True if "n" is a perfect square.
Explanations:
https://www.quora.com/What-is-the-quickest-way-to-determine-if-a-number-is-a-perf... | 23.412844 | 99 | 0.487461 | 309 | 2,552 | 3.977346 | 0.28479 | 0.014646 | 0.026037 | 0.039056 | 0.379984 | 0.234337 | 0.138324 | 0.138324 | 0.092758 | 0.092758 | 0 | 0.020027 | 0.413009 | 2,552 | 108 | 100 | 23.62963 | 0.800401 | 0.362853 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.138889 | false | 0 | 0.055556 | 0 | 0.416667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
701f2a15136d5b62583702284b584bce2f46610e | 7,131 | py | Python | s4/clarity/utils/artifact_ancestry.py | AvroNelson/s4-clarity-lib | af6f2ec77cdb7f942f5ea3990a61950aa2a1b3a4 | [
"MIT"
] | 11 | 2019-04-11T16:29:36.000Z | 2022-01-31T18:32:27.000Z | s4/clarity/utils/artifact_ancestry.py | AvroNelson/s4-clarity-lib | af6f2ec77cdb7f942f5ea3990a61950aa2a1b3a4 | [
"MIT"
] | 9 | 2019-04-13T17:08:39.000Z | 2021-12-07T23:31:01.000Z | s4/clarity/utils/artifact_ancestry.py | AvroNelson/s4-clarity-lib | af6f2ec77cdb7f942f5ea3990a61950aa2a1b3a4 | [
"MIT"
] | 10 | 2019-04-13T14:29:43.000Z | 2021-04-01T01:35:51.000Z | # Copyright 2017 Semaphore Solutions, Inc.
# ---------------------------------------------------------------------------
from collections import defaultdict
def get_parent_artifacts(lims, artifacts):
"""
Helper method to get the parent artifacts keyed to the supplied artifacts
:param LIMS lims:
:par... | 47.225166 | 130 | 0.715468 | 924 | 7,131 | 5.22619 | 0.188312 | 0.082005 | 0.043487 | 0.057983 | 0.349762 | 0.266308 | 0.136467 | 0.086146 | 0.065024 | 0.019052 | 0 | 0.002152 | 0.218202 | 7,131 | 150 | 131 | 47.54 | 0.864036 | 0.36741 | 0 | 0.057971 | 0 | 0.014493 | 0.050322 | 0.008272 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057971 | false | 0 | 0.014493 | 0 | 0.130435 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
701f6cd529e5e7fa4f16f7edc5345178425ab490 | 6,829 | py | Python | App/softwares_env/softwares/houdini_wizard/plugin.py | Wizard-collab/wizard | c2ec623fe011626716493c232b895fb0513f68ff | [
"MIT"
] | null | null | null | App/softwares_env/softwares/houdini_wizard/plugin.py | Wizard-collab/wizard | c2ec623fe011626716493c232b895fb0513f68ff | [
"MIT"
] | null | null | null | App/softwares_env/softwares/houdini_wizard/plugin.py | Wizard-collab/wizard | c2ec623fe011626716493c232b895fb0513f68ff | [
"MIT"
] | null | null | null | import hou
from wizard.prefs.main import prefs
from wizard.vars import defaults
from wizard.tools import log
from wizard.asset import main as asset_core
from softwares.houdini_wizard.tools import *
from wizard.tools import utility as utils
import os
import traceback
import shutil
from wizard.project import wall
from wi... | 37.729282 | 126 | 0.634793 | 836 | 6,829 | 4.863636 | 0.16866 | 0.045253 | 0.041318 | 0.04427 | 0.517462 | 0.44786 | 0.315298 | 0.315298 | 0.275947 | 0.206099 | 0 | 0.007463 | 0.254356 | 6,829 | 180 | 127 | 37.938889 | 0.791045 | 0 | 0 | 0.276119 | 0 | 0 | 0.075571 | 0.00703 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052239 | false | 0 | 0.097015 | 0 | 0.149254 | 0.007463 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
7022affd5d60868600ba08f00c4b7658c014b223 | 3,749 | py | Python | experiments/overalltests/report.py | WojciechMula/parsing-int-series | f0a45c8b1251018e52dac9ebf1d98e8dfb705755 | [
"BSD-2-Clause"
] | 19 | 2018-04-20T06:51:42.000Z | 2022-02-24T02:12:00.000Z | experiments/overalltests/report.py | WojciechMula/parsing-int-series | f0a45c8b1251018e52dac9ebf1d98e8dfb705755 | [
"BSD-2-Clause"
] | 2 | 2018-04-20T09:53:37.000Z | 2018-04-27T19:01:16.000Z | experiments/overalltests/report.py | WojciechMula/parsing-int-series | f0a45c8b1251018e52dac9ebf1d98e8dfb705755 | [
"BSD-2-Clause"
] | 3 | 2019-02-25T19:26:51.000Z | 2020-11-04T00:50:42.000Z | import sys
import os.path
if __name__ == '__main__' and __package__ is None:
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))
from table import Table
from loader import load
from utils import groupby
from report_writer import RestWriter
from prettyprint import *
class Report(objec... | 27.566176 | 106 | 0.523873 | 410 | 3,749 | 4.614634 | 0.3 | 0.05074 | 0.029598 | 0.013742 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014994 | 0.359563 | 3,749 | 135 | 107 | 27.77037 | 0.773011 | 0.029341 | 0 | 0.081633 | 0 | 0 | 0.047318 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.071429 | 0.010204 | 0.204082 | 0.010204 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
7026d3905231076109cce84e7fcd5feb02e48371 | 5,376 | py | Python | sr/robot3/astoria.py | srobo/sr-robot3 | af88d44d681c4f730c2196eaab8c7cbaf4e39d98 | [
"MIT"
] | 4 | 2020-08-31T15:33:09.000Z | 2022-01-22T18:50:20.000Z | sr/robot3/astoria.py | srobo/sr-robot3 | af88d44d681c4f730c2196eaab8c7cbaf4e39d98 | [
"MIT"
] | 22 | 2020-07-02T20:59:09.000Z | 2022-02-23T20:47:17.000Z | sr/robot3/astoria.py | srobo/sr-robot3 | af88d44d681c4f730c2196eaab8c7cbaf4e39d98 | [
"MIT"
] | null | null | null | """Integration with Astoria."""
import asyncio
import logging
from json import JSONDecodeError, loads
from pathlib import Path
from typing import Match, NamedTuple, Optional
from astoria.common.broadcast_event import StartButtonBroadcastEvent
from astoria.common.consumer import StateConsumer
from astoria.common.messa... | 35.84 | 89 | 0.638393 | 580 | 5,376 | 5.746552 | 0.265517 | 0.013501 | 0.018902 | 0.028803 | 0.341134 | 0.268827 | 0.268827 | 0.246625 | 0.246625 | 0.192619 | 0 | 0.002048 | 0.273438 | 5,376 | 149 | 90 | 36.080537 | 0.851254 | 0.0984 | 0 | 0.356436 | 0 | 0 | 0.073618 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.059406 | false | 0.009901 | 0.09901 | 0 | 0.237624 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
702871323b08cb3d0bde41f82365acd11a63fda1 | 715 | py | Python | util/FeatureExtractor.py | GaoZiqiang/Multiview-ObjectDetection | 41d28bc15622b4d3a863ba4c8b53b06f6b3b1568 | [
"MIT"
] | 370 | 2018-05-22T06:46:35.000Z | 2022-03-18T07:20:21.000Z | util/FeatureExtractor.py | GaoZiqiang/Multiview-ObjectDetection | 41d28bc15622b4d3a863ba4c8b53b06f6b3b1568 | [
"MIT"
] | 51 | 2018-06-21T02:04:07.000Z | 2022-03-22T08:25:03.000Z | util/FeatureExtractor.py | GaoZiqiang/Multiview-ObjectDetection | 41d28bc15622b4d3a863ba4c8b53b06f6b3b1568 | [
"MIT"
] | 107 | 2018-06-04T21:03:04.000Z | 2022-03-26T13:38:29.000Z | import torch.nn as nn
from IPython import embed
class FeatureExtractor(nn.Module):
def __init__(self,submodule,extracted_layers):
super(FeatureExtractor,self).__init__()
self.submodule = submodule
self.extracted_layers = extracted_layers
def forward(self, x):
outputs = []
... | 35.75 | 69 | 0.586014 | 84 | 715 | 4.77381 | 0.440476 | 0.149626 | 0.084788 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004149 | 0.325874 | 715 | 20 | 70 | 35.75 | 0.827801 | 0 | 0 | 0 | 0 | 0 | 0.018156 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 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 |
702be8919da263b06d997a50b76d2360b8199c9d | 3,004 | py | Python | BioClients/lincs/Client.py | jeremyjyang/BioClients | b78ab2b948c79616fed080112e31d383346bec58 | [
"CC0-1.0"
] | 10 | 2020-05-26T07:29:14.000Z | 2021-12-06T21:33:40.000Z | BioClients/lincs/Client.py | jeremyjyang/BioClients | b78ab2b948c79616fed080112e31d383346bec58 | [
"CC0-1.0"
] | 1 | 2021-10-05T12:25:30.000Z | 2021-10-05T17:05:56.000Z | BioClients/lincs/Client.py | jeremyjyang/BioClients | b78ab2b948c79616fed080112e31d383346bec58 | [
"CC0-1.0"
] | 2 | 2021-03-16T03:20:24.000Z | 2021-08-08T20:17:10.000Z | #!/usr/bin/env python3
"""
LINCS REST API client
New (2019) iLINCS:
http://www.ilincs.org/ilincs/APIinfo
http://www.ilincs.org/ilincs/APIdocumentation
(http://lincsportal.ccs.miami.edu/dcic/api/ DEPRECATED?)
"""
###
import sys,os,argparse,re,time,json,logging
#
from .. import lincs
#
##################################... | 34.528736 | 116 | 0.689414 | 413 | 3,004 | 4.861985 | 0.375303 | 0.053785 | 0.101594 | 0.044821 | 0.11255 | 0.090637 | 0.090637 | 0.033865 | 0.033865 | 0 | 0 | 0.020068 | 0.120839 | 3,004 | 86 | 117 | 34.930233 | 0.74025 | 0.067577 | 0 | 0 | 0 | 0 | 0.322509 | 0.033579 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.032787 | 0 | 0.032787 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
702ffbf7e8d1d0ad0ebb44737dc759a0391e4cba | 13,693 | py | Python | datagrid_gtk3/utils/transformations.py | nowsecure/datagrid-gtk3 | 28083a4b9b4e2e0c7fbe2755d8464d2b02163086 | [
"MIT"
] | 17 | 2015-07-02T20:02:42.000Z | 2021-05-06T06:08:13.000Z | datagrid_gtk3/utils/transformations.py | esosaja/datagrid-gtk3 | 28083a4b9b4e2e0c7fbe2755d8464d2b02163086 | [
"MIT"
] | 32 | 2015-04-27T16:49:10.000Z | 2015-08-25T16:07:29.000Z | datagrid_gtk3/utils/transformations.py | esosaja/datagrid-gtk3 | 28083a4b9b4e2e0c7fbe2755d8464d2b02163086 | [
"MIT"
] | 8 | 2015-04-28T10:45:03.000Z | 2016-10-06T08:22:39.000Z | """Data transformation utils."""
import datetime
import logging
import HTMLParser
from decimal import Decimal
import dateutil.parser
from gi.repository import Gtk
from datagrid_gtk3.utils import imageutils
from datagrid_gtk3.utils import dateutils
from datagrid_gtk3.utils import stringutils
logger = logging.getLog... | 30.028509 | 79 | 0.682027 | 1,780 | 13,693 | 5.152247 | 0.176404 | 0.016792 | 0.01472 | 0.022898 | 0.449133 | 0.411733 | 0.379784 | 0.37684 | 0.37008 | 0.37008 | 0 | 0.014388 | 0.238662 | 13,693 | 455 | 80 | 30.094505 | 0.865324 | 0.470459 | 0 | 0.277778 | 0 | 0 | 0.092221 | 0.009572 | 0 | 0 | 0 | 0.002198 | 0.022222 | 1 | 0.122222 | false | 0.011111 | 0.05 | 0 | 0.383333 | 0.005556 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
70308c9bdc16492685bb5f8a040a5a606edea463 | 3,974 | py | Python | src/models/kmeans.py | stevieg3/when-do-reading-comprehension-models-learn | 22d348bb9b340ee84ecd135670890c1b1fe0db18 | [
"MIT"
] | null | null | null | src/models/kmeans.py | stevieg3/when-do-reading-comprehension-models-learn | 22d348bb9b340ee84ecd135670890c1b1fe0db18 | [
"MIT"
] | null | null | null | src/models/kmeans.py | stevieg3/when-do-reading-comprehension-models-learn | 22d348bb9b340ee84ecd135670890c1b1fe0db18 | [
"MIT"
] | null | null | null | import argparse
import logging
import pandas as pd
import numpy as np
from tslearn.clustering import TimeSeriesKMeans
from tqdm import tqdm
logging.basicConfig(format="%(asctime)s - %(message)s", level=logging.INFO)
SEEDS = [27, 28, 29]
MODELS = ['dbert', 'dbidaf', 'droberta', 'squad']
DEV_DATA_SIZES = {
'dber... | 28.797101 | 118 | 0.682436 | 583 | 3,974 | 4.319039 | 0.248714 | 0.075457 | 0.128276 | 0.128276 | 0.264893 | 0.21525 | 0.098491 | 0.045274 | 0 | 0 | 0 | 0.012203 | 0.195773 | 3,974 | 137 | 119 | 29.007299 | 0.775657 | 0.065425 | 0 | 0.021505 | 0 | 0 | 0.101221 | 0.024152 | 0 | 0 | 0 | 0 | 0.032258 | 1 | 0.043011 | false | 0 | 0.064516 | 0 | 0.139785 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
7031785a0dfa5b63b843961bc1f7373b3543b899 | 8,301 | py | Python | scripts/analyze_leaderboard.py | VIDA-NYU/alphad3m | db40193a448300d87442c451f9da17fa5cb845fd | [
"Apache-2.0"
] | null | null | null | scripts/analyze_leaderboard.py | VIDA-NYU/alphad3m | db40193a448300d87442c451f9da17fa5cb845fd | [
"Apache-2.0"
] | null | null | null | scripts/analyze_leaderboard.py | VIDA-NYU/alphad3m | db40193a448300d87442c451f9da17fa5cb845fd | [
"Apache-2.0"
] | null | null | null | import os
import re
import logging
import pandas as pd
from bs4 import BeautifulSoup
from os.path import join, exists, dirname
from prettytable import PrettyTable
logger = logging.getLogger(__name__)
ALL_TA2S = {'NYU-TA2', 'CMU-TA2', 'UCB-TA2', 'Uncharted-TA2', 'SRI-TA2', 'Texas A&M-TA2', 'D3M ENSEMBLE-TA2', 'NEW-NYU... | 38.077982 | 124 | 0.654499 | 1,042 | 8,301 | 4.980806 | 0.200576 | 0.060116 | 0.056647 | 0.077071 | 0.228324 | 0.108863 | 0.060501 | 0 | 0 | 0 | 0 | 0.011421 | 0.229972 | 8,301 | 217 | 125 | 38.253456 | 0.800532 | 0.028551 | 0 | 0.062857 | 0 | 0 | 0.161951 | 0.040953 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034286 | false | 0 | 0.04 | 0 | 0.102857 | 0.011429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
7031e7b7a07729e1593c15fa18b6a42894035c58 | 522 | py | Python | ArmstrongN.py | JHONATAN9A/Algritmo_num_narcisistas | b40cff2588b41efecf180e932cd7a104974d72c7 | [
"MIT"
] | null | null | null | ArmstrongN.py | JHONATAN9A/Algritmo_num_narcisistas | b40cff2588b41efecf180e932cd7a104974d72c7 | [
"MIT"
] | null | null | null | ArmstrongN.py | JHONATAN9A/Algritmo_num_narcisistas | b40cff2588b41efecf180e932cd7a104974d72c7 | [
"MIT"
] | null | null | null | def proceso(num, suma=0):
numero = []
for i in str(num):
exp = int(i) ** len(str(num))
numero.append(exp)
if len(numero) == len(str(num)):
total = sum(numero)
return num, total
numero.clear()
entrada = input()
datos = []
for i in range(int(entrada)):
entrada2 ... | 18 | 37 | 0.557471 | 68 | 522 | 4.279412 | 0.455882 | 0.061856 | 0.041237 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024457 | 0.295019 | 522 | 28 | 38 | 18.642857 | 0.766304 | 0 | 0 | 0 | 0 | 0 | 0.044807 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0 | 0 | 0.1 | 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 |
7032edb61921b45f1c8f0a54a32060e1a5dc7971 | 683 | py | Python | core/urls.py | mburst/burstolio | aa3c89986b600a2c444ed6a39d07e8f2013e1b7e | [
"BSD-2-Clause"
] | 2 | 2015-10-21T09:00:21.000Z | 2017-01-19T09:53:05.000Z | core/urls.py | mburst/burstolio | aa3c89986b600a2c444ed6a39d07e8f2013e1b7e | [
"BSD-2-Clause"
] | 6 | 2021-04-08T18:22:12.000Z | 2022-02-10T10:50:11.000Z | core/urls.py | mburst/burstolio | aa3c89986b600a2c444ed6a39d07e8f2013e1b7e | [
"BSD-2-Clause"
] | 1 | 2015-08-18T05:20:59.000Z | 2015-08-18T05:20:59.000Z | from django.conf.urls import url
from django.views.generic import TemplateView
from core import views
from core.feeds import rss_feed, atom_feed
app_name = 'core'
urlpatterns = [
url(r'^$', views.blog, name='home'),
url(r'^blog/$', views.blog, name='blog'),
url(r'^blog/(?P<slug>.*)/$', views.entry, name=... | 35.947368 | 80 | 0.66325 | 96 | 683 | 4.625 | 0.354167 | 0.081081 | 0.058559 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125915 | 683 | 19 | 81 | 35.947368 | 0.743719 | 0 | 0 | 0 | 0 | 0 | 0.238304 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
7032f2619f5d9022162264acdbe5700a7785cd5d | 1,110 | py | Python | clib/printenv.py | 7exe/lostia-professional-dev | 148b86286abf7bd89f7ff96ba83b5b629442ebd8 | [
"MIT"
] | null | null | null | clib/printenv.py | 7exe/lostia-professional-dev | 148b86286abf7bd89f7ff96ba83b5b629442ebd8 | [
"MIT"
] | null | null | null | clib/printenv.py | 7exe/lostia-professional-dev | 148b86286abf7bd89f7ff96ba83b5b629442ebd8 | [
"MIT"
] | null | null | null | import command
import sys
count = 0
newEnvVarName = []
newEnvVarValue = []
for I in command.env_var_name:
newEnvVarName.append(I.replace("\n",""))
for I in command.env_var_value:
newEnvVarValue.append(I.replace("\n",""))
endPrint = False
for I in command.env_var_name:
if(command.new_arg_parser("-0") or command.... | 28.461538 | 99 | 0.587387 | 155 | 1,110 | 4.103226 | 0.258065 | 0.100629 | 0.122642 | 0.113208 | 0.399371 | 0.358491 | 0.328616 | 0.256289 | 0.256289 | 0.256289 | 0 | 0.015081 | 0.223423 | 1,110 | 38 | 100 | 29.210526 | 0.722738 | 0 | 0 | 0.277778 | 0 | 0 | 0.025225 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.055556 | 0 | 0.055556 | 0.138889 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
7036904272e13a83b49efc934453218e894c4ca2 | 3,050 | py | Python | scripts/artifacts/textnowCallLogs.py | JamieSharpe/ALEAPP | acb06736d772d75c9dc0fd58b9f2a1726e795fb4 | [
"MIT"
] | null | null | null | scripts/artifacts/textnowCallLogs.py | JamieSharpe/ALEAPP | acb06736d772d75c9dc0fd58b9f2a1726e795fb4 | [
"MIT"
] | null | null | null | scripts/artifacts/textnowCallLogs.py | JamieSharpe/ALEAPP | acb06736d772d75c9dc0fd58b9f2a1726e795fb4 | [
"MIT"
] | null | null | null | import datetime
from scripts.ilapfuncs import timeline, open_sqlite_db_readonly
from scripts.plugin_base import ArtefactPlugin
from scripts.ilapfuncs import logfunc, tsv
from scripts import artifact_report
class TextNowCallLogsPlugin(ArtefactPlugin):
"""
"""
def __init__(self):
super().__init__(... | 37.195122 | 150 | 0.543934 | 324 | 3,050 | 4.898148 | 0.41358 | 0.041588 | 0.024575 | 0.032766 | 0.061752 | 0.017643 | 0.017643 | 0 | 0 | 0 | 0 | 0.011874 | 0.364918 | 3,050 | 81 | 151 | 37.654321 | 0.807434 | 0.038361 | 0 | 0.033898 | 0 | 0 | 0.232008 | 0.019534 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033898 | false | 0 | 0.084746 | 0 | 0.152542 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
703b0d817daf3c22ee84731783d61b246681b5da | 13,307 | py | Python | db_adapter/curw_obs/timeseries/timeseries.py | CUrW-SL/curw_db_adapter | 9d9ef24f42080910e0bd251bc7f001b0a4b0ab31 | [
"MIT"
] | 2 | 2019-04-26T07:50:33.000Z | 2019-09-28T20:15:33.000Z | db_adapter/curw_obs/timeseries/timeseries.py | CUrW-SL/curw_db_adapter | 9d9ef24f42080910e0bd251bc7f001b0a4b0ab31 | [
"MIT"
] | 1 | 2019-04-03T09:30:38.000Z | 2019-04-20T18:11:59.000Z | db_adapter/curw_obs/timeseries/timeseries.py | shadhini/curw_db_adapter | 4db8e1ea8794ffbd0dce29ac954a13315e83d843 | [
"MIT"
] | null | null | null | import pandas as pd
import hashlib
import json
import traceback
from pymysql import IntegrityError
from datetime import datetime, timedelta
from db_adapter.logger import logger
from db_adapter.exceptions import DatabaseAdapterError, DuplicateEntryError
from db_adapter.curw_obs.station import StationEnum
from db_adapte... | 39.841317 | 128 | 0.559931 | 1,466 | 13,307 | 4.893588 | 0.122101 | 0.028297 | 0.005854 | 0.033733 | 0.689992 | 0.658907 | 0.617508 | 0.605241 | 0.561751 | 0.543212 | 0 | 0.007956 | 0.338844 | 13,307 | 333 | 129 | 39.960961 | 0.807456 | 0.344931 | 0 | 0.511494 | 0 | 0.011494 | 0.129397 | 0.0028 | 0 | 0 | 0 | 0 | 0 | 1 | 0.051724 | false | 0 | 0.057471 | 0 | 0.166667 | 0.04023 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
703d952afd1d46ba74ddbc33b7e1cb8c8c05aa16 | 1,148 | py | Python | apps/sales/urls.py | jorgesaw/kstore | 4ec6612eeeb96edb7b7bd374fd0520733c58451c | [
"MIT"
] | null | null | null | apps/sales/urls.py | jorgesaw/kstore | 4ec6612eeeb96edb7b7bd374fd0520733c58451c | [
"MIT"
] | 5 | 2021-03-19T10:16:00.000Z | 2022-02-10T09:16:32.000Z | apps/sales/urls.py | jorgesaw/kstore | 4ec6612eeeb96edb7b7bd374fd0520733c58451c | [
"MIT"
] | null | null | null | """Sales app URLs."""
# Django
from django.urls import path, include
# Views
from .views import customers as customers_views
from .views import sales as sales_views
urlpatterns = [
path('customers/', customers_views.CustomerFilterListViev.as_view(), name='customers'),
path('customers/create/', ... | 45.92 | 110 | 0.708188 | 140 | 1,148 | 5.65 | 0.221429 | 0.075853 | 0.126422 | 0.091024 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.115854 | 1,148 | 24 | 111 | 47.833333 | 0.77931 | 0.025261 | 0 | 0 | 0 | 0 | 0.257353 | 0.088235 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
703da8b7398940bbb0b6d9ff84c7efd2ef81c2cf | 671 | py | Python | python3/learn-python/Loops and Iterations - For-While Loops.py | Nahid-Hassan/code-snippets | 24bd4b81564887822a0801a696001fcbeb6a7a75 | [
"MIT"
] | 2 | 2020-09-29T04:09:41.000Z | 2020-10-18T13:33:36.000Z | python3/learn-python/Loops and Iterations - For-While Loops.py | Nahid-Hassan/code-snippets | 24bd4b81564887822a0801a696001fcbeb6a7a75 | [
"MIT"
] | null | null | null | python3/learn-python/Loops and Iterations - For-While Loops.py | Nahid-Hassan/code-snippets | 24bd4b81564887822a0801a696001fcbeb6a7a75 | [
"MIT"
] | 1 | 2021-12-26T04:55:55.000Z | 2021-12-26T04:55:55.000Z | ############### for ###################
nums = [1, 2, 3, 4, 5]
# simple loop
for num in nums:
print(num)
# break keyword
for num in nums:
if num == 3:
print("found")
break
print(num)
# continue keyword
for num in nums:
if num == 3:
print("found")
continue
print(num... | 14.586957 | 39 | 0.463487 | 96 | 671 | 3.239583 | 0.302083 | 0.07717 | 0.102894 | 0.154341 | 0.385852 | 0.22508 | 0.22508 | 0.22508 | 0.22508 | 0.22508 | 0 | 0.03956 | 0.321908 | 671 | 45 | 40 | 14.911111 | 0.643956 | 0.19076 | 0 | 0.576923 | 0 | 0 | 0.028078 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.346154 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
703eb8f1a89f48d0c52579466960933c96dd59e6 | 7,830 | py | Python | python_scripts/extract.py | Sessa93/continuous-auth-service | c4131521a7960ab709c0eeaf43686ddea9bd8ba2 | [
"MIT"
] | 9 | 2018-09-17T07:33:05.000Z | 2022-02-13T12:41:03.000Z | python_scripts/extract.py | mykola-nec/keystroke- | e045bbbae1205629a4cc4bd369c0a0b5dd6fd93f | [
"MIT"
] | 1 | 2018-10-24T05:32:08.000Z | 2018-10-24T05:32:08.000Z | python_scripts/extract.py | mykola-nec/keystroke- | e045bbbae1205629a4cc4bd369c0a0b5dd6fd93f | [
"MIT"
] | 3 | 2018-10-20T14:37:23.000Z | 2021-04-19T13:45:00.000Z | # pylint: disable = C0111, C0103, C0411, C0301, W0102, C0330, W0603
"""This module is used to extract the key_holds times and digraph
up_down times from the raw events of the subjects."""
import read_write
import numpy as np
import operator
import time
import general_purpose
import sys
import py_node_communication a... | 40.569948 | 147 | 0.627075 | 1,077 | 7,830 | 4.252553 | 0.196843 | 0.037336 | 0.034061 | 0.031223 | 0.351747 | 0.265721 | 0.198908 | 0.139083 | 0.069869 | 0.069869 | 0 | 0.019652 | 0.265645 | 7,830 | 192 | 148 | 40.78125 | 0.77687 | 0.241635 | 0 | 0.263566 | 0 | 0 | 0.131399 | 0.005461 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03876 | false | 0 | 0.054264 | 0 | 0.139535 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
7041318399ceaa12c9af5eb0808df75d0fc60902 | 37,836 | py | Python | src/borg/repository.py | musoke/borg | 808379921c4a679bb597db42b4412840d66f4fb1 | [
"BSD-3-Clause"
] | null | null | null | src/borg/repository.py | musoke/borg | 808379921c4a679bb597db42b4412840d66f4fb1 | [
"BSD-3-Clause"
] | null | null | null | src/borg/repository.py | musoke/borg | 808379921c4a679bb597db42b4412840d66f4fb1 | [
"BSD-3-Clause"
] | null | null | null | import errno
import os
import shutil
import struct
from binascii import unhexlify
from collections import defaultdict
from configparser import ConfigParser
from datetime import datetime
from functools import partial
from itertools import islice
from zlib import crc32
import msgpack
import logging
logger = logging.get... | 42.086763 | 130 | 0.597341 | 4,644 | 37,836 | 4.727821 | 0.124677 | 0.044999 | 0.01002 | 0.010202 | 0.33262 | 0.267672 | 0.213427 | 0.176171 | 0.143378 | 0.108308 | 0 | 0.005245 | 0.309599 | 37,836 | 898 | 131 | 42.13363 | 0.835273 | 0.143012 | 0 | 0.335219 | 0 | 0 | 0.063641 | 0 | 0 | 0 | 0.00156 | 0 | 0.014144 | 1 | 0.083451 | false | 0.005658 | 0.031117 | 0.007072 | 0.188119 | 0.001414 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
704239be8a576b9afe64abe3d128ac6481c4c3c9 | 848 | py | Python | care/facility/api/serializers/uccbedrequest.py | tncwr/care | 97731bfa8371332d898d82152e9cd85bbedea8c5 | [
"MIT"
] | null | null | null | care/facility/api/serializers/uccbedrequest.py | tncwr/care | 97731bfa8371332d898d82152e9cd85bbedea8c5 | [
"MIT"
] | null | null | null | care/facility/api/serializers/uccbedrequest.py | tncwr/care | 97731bfa8371332d898d82152e9cd85bbedea8c5 | [
"MIT"
] | null | null | null | from django.db.models import F
from rest_framework import serializers
from care.facility.models.uccbedrequest import UCCBedRequest
from care.users.api.serializers.user import UserBaseMinimumSerializer
from config.serializers import ChoiceField
from care.facility.api.serializers import TIMESTAMP_FIELDS
class UCCBed... | 26.5 | 85 | 0.693396 | 85 | 848 | 6.752941 | 0.541176 | 0.041812 | 0.055749 | 0.062718 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.238208 | 848 | 31 | 86 | 27.354839 | 0.888545 | 0.075472 | 0 | 0 | 0 | 0 | 0.054917 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.285714 | 0 | 0.47619 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
70465e9867bb2b388f94f65d7c4303d55318d2bb | 1,126 | py | Python | mtorch/core/data/data_loaders/vision/cifar10.py | NullConvergence/torch_temp | 29a0d7190f0be6124f51bd85b8320cd8b3cef29a | [
"MIT"
] | 3 | 2019-08-08T13:23:50.000Z | 2019-08-15T15:29:36.000Z | mtorch/core/data/data_loaders/vision/cifar10.py | NullConvergence/torch-template | 29a0d7190f0be6124f51bd85b8320cd8b3cef29a | [
"MIT"
] | 10 | 2019-09-20T21:25:22.000Z | 2019-10-16T10:52:04.000Z | mtorch/core/data/data_loaders/vision/cifar10.py | NullConvergence/mtorch | 29a0d7190f0be6124f51bd85b8320cd8b3cef29a | [
"MIT"
] | 2 | 2019-08-08T13:23:52.000Z | 2019-08-08T19:46:55.000Z | from torchvision import datasets, transforms
from core.data.data_loaders.base import BaseDataLoader
class CIFAR10Loader(BaseDataLoader):
""" CIFAR10 data loading + transformations """
def __init__(self, data_dir,
batch_size=128,
training=True,
validation_spl... | 36.322581 | 79 | 0.601243 | 113 | 1,126 | 5.752212 | 0.530973 | 0.043077 | 0.050769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01627 | 0.290409 | 1,126 | 30 | 80 | 37.533333 | 0.797247 | 0.033748 | 0 | 0 | 0 | 0 | 0.099074 | 0.02037 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0 | 0.086957 | 0.043478 | 0.217391 | 0.043478 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
7046602c016348dec7c023f79d562d05998a1063 | 1,751 | py | Python | rtutil/content_data.py | yaakiyu/rt-bot | f68bca95c516e08c31ecc846524dcea4c8ba1503 | [
"BSD-4-Clause"
] | null | null | null | rtutil/content_data.py | yaakiyu/rt-bot | f68bca95c516e08c31ecc846524dcea4c8ba1503 | [
"BSD-4-Clause"
] | null | null | null | rtutil/content_data.py | yaakiyu/rt-bot | f68bca95c516e08c31ecc846524dcea4c8ba1503 | [
"BSD-4-Clause"
] | null | null | null | # RT Util - Content Data
from typing import TypedDict, Any
from textwrap import shorten
from discord import Embed
from orjson import loads
from .utils import is_json
__all__ = (
"ContentData", "disable_content_json", "enable_content_json",
"convert_content_json", "to_text"
)
class ContentData(TypedDict... | 29.677966 | 95 | 0.683038 | 210 | 1,751 | 5.52381 | 0.295238 | 0.075862 | 0.087931 | 0.044828 | 0.231034 | 0.167241 | 0.167241 | 0.117241 | 0.117241 | 0.117241 | 0 | 0.002095 | 0.182182 | 1,751 | 59 | 96 | 29.677966 | 0.807961 | 0.100514 | 0 | 0.119048 | 0 | 0 | 0.211227 | 0.085648 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0 | 0.119048 | 0 | 0.404762 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |