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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4699a0bfa6dd1ddc3a1e8897780df54022543382 | 8,541 | py | Python | DATA/prediction/direction/pred_script.py | korcsmarosgroup/ARN2DataBase | 8931cec0387e5c8b599df40d652ac5fdb5c49a8f | [
"MIT"
] | null | null | null | DATA/prediction/direction/pred_script.py | korcsmarosgroup/ARN2DataBase | 8931cec0387e5c8b599df40d652ac5fdb5c49a8f | [
"MIT"
] | null | null | null | DATA/prediction/direction/pred_script.py | korcsmarosgroup/ARN2DataBase | 8931cec0387e5c8b599df40d652ac5fdb5c49a8f | [
"MIT"
] | null | null | null | """
Direction prediction based on learning dataset from reactome
PPI direction calculated from domain interaction directions
"""
# Imports
import sqlite3, csv, os
import pandas as pd
import logging
import pickle
# # Initiating logger
# logger = logging.getLogger()
# handler = logging.FileHandler('../../workflow/SLK3.l... | 45.673797 | 125 | 0.550872 | 1,020 | 8,541 | 4.388235 | 0.22451 | 0.039321 | 0.053619 | 0.032172 | 0.228776 | 0.166443 | 0.117962 | 0.093834 | 0.08311 | 0.08311 | 0 | 0.008895 | 0.34188 | 8,541 | 186 | 126 | 45.919355 | 0.787404 | 0.210163 | 0 | 0.135135 | 0 | 0 | 0.139055 | 0.061902 | 0 | 0 | 0 | 0.005376 | 0 | 1 | 0.027027 | false | 0 | 0.036036 | 0 | 0.072072 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4699a1827567dd51a8a50f85f10e57138d48a545 | 1,398 | py | Python | src/main.py | vcodrins/json_to_folder | 3e07259b1c5757587a5235b2412441d87607597f | [
"MIT"
] | null | null | null | src/main.py | vcodrins/json_to_folder | 3e07259b1c5757587a5235b2412441d87607597f | [
"MIT"
] | null | null | null | src/main.py | vcodrins/json_to_folder | 3e07259b1c5757587a5235b2412441d87607597f | [
"MIT"
] | null | null | null | import json
import os.path
import sys
from exceptions import *
from create_folder_structure import create_folder_structure
def main():
try:
if len(sys.argv) != 3:
raise InvalidArgumentCount
if not os.path.exists(sys.argv[2]):
raise InvalidFilePath
if not os.path.exi... | 26.884615 | 96 | 0.556509 | 144 | 1,398 | 5.333333 | 0.423611 | 0.045573 | 0.082031 | 0.028646 | 0.109375 | 0.0625 | 0.0625 | 0 | 0 | 0 | 0 | 0.005574 | 0.358369 | 1,398 | 51 | 97 | 27.411765 | 0.850613 | 0 | 0 | 0.222222 | 0 | 0 | 0.417024 | 0.020029 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022222 | false | 0 | 0.111111 | 0 | 0.133333 | 0.088889 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
469ba49461fc882de80bb1d478b0aec8c3c11361 | 3,952 | py | Python | src/SecurityDecorator.py | JanCwik/SoftwarePraktikum | d4a2b196f21a5379188cb78b31c59d69f739964f | [
"RSA-MD"
] | 7 | 2020-05-18T14:20:17.000Z | 2020-07-27T17:37:38.000Z | src/SecurityDecorator.py | JanCwik/SoftwarePraktikum | d4a2b196f21a5379188cb78b31c59d69f739964f | [
"RSA-MD"
] | null | null | null | src/SecurityDecorator.py | JanCwik/SoftwarePraktikum | d4a2b196f21a5379188cb78b31c59d69f739964f | [
"RSA-MD"
] | 2 | 2020-05-18T14:20:22.000Z | 2020-07-27T17:37:05.000Z | from flask import request
from google.auth.transport import requests
import google.oauth2.id_token
from server.ApplikationsAdministration import ApplikationsAdministration
#Benutzer.py, BenutzerMapper + BenutzerMethoden in ApplikationsAdministration
def secured(function):
"""Decorator zur Google Firebase-basiert... | 45.953488 | 97 | 0.603492 | 420 | 3,952 | 5.6 | 0.495238 | 0.017857 | 0.030612 | 0.049745 | 0.043367 | 0.043367 | 0.043367 | 0 | 0 | 0 | 0 | 0.005008 | 0.343117 | 3,952 | 85 | 98 | 46.494118 | 0.901002 | 0.361589 | 0 | 0.108108 | 0 | 0 | 0.01985 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.054054 | false | 0 | 0.108108 | 0 | 0.297297 | 0.027027 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
469d299beef21a4f12403e1476091e6f816d16ea | 1,676 | py | Python | dqn_plus/notebooks/code/train_ram.py | hadleyhzy34/reinforcement_learning | 14371756c2ff8225dc800d146452b7956875410c | [
"MIT"
] | null | null | null | dqn_plus/notebooks/code/train_ram.py | hadleyhzy34/reinforcement_learning | 14371756c2ff8225dc800d146452b7956875410c | [
"MIT"
] | null | null | null | dqn_plus/notebooks/code/train_ram.py | hadleyhzy34/reinforcement_learning | 14371756c2ff8225dc800d146452b7956875410c | [
"MIT"
] | null | null | null | import numpy as np
import gym
from utils import *
from agent import *
from config import *
def train(env, agent, num_episode, eps_init, eps_decay, eps_min, max_t):
rewards_log = []
average_log = []
eps = eps_init
for i in range(1, 1 + num_episode):
episodic_reward = 0
done = False
... | 33.52 | 150 | 0.613365 | 233 | 1,676 | 4.158798 | 0.386266 | 0.06192 | 0.034056 | 0.043344 | 0.072239 | 0.072239 | 0.072239 | 0.072239 | 0.072239 | 0.072239 | 0 | 0.016155 | 0.261337 | 1,676 | 50 | 151 | 33.52 | 0.766559 | 0 | 0 | 0 | 0 | 0 | 0.053071 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025641 | false | 0 | 0.128205 | 0 | 0.179487 | 0.051282 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
469f233747542475f293cc21f8824a73074353c6 | 7,176 | py | Python | ginga/util/dp.py | kyraikeda/ginga | e0ce979de4a87e12ba7a90eec0517a0be05d14bc | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 76 | 2015-01-05T14:46:14.000Z | 2022-03-23T04:10:54.000Z | ginga/util/dp.py | kyraikeda/ginga | e0ce979de4a87e12ba7a90eec0517a0be05d14bc | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 858 | 2015-01-17T01:55:12.000Z | 2022-03-08T20:20:31.000Z | ginga/util/dp.py | kyraikeda/ginga | e0ce979de4a87e12ba7a90eec0517a0be05d14bc | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 60 | 2015-01-14T21:59:07.000Z | 2022-02-13T03:38:49.000Z | #
# dp.py -- Data pipeline and reduction routines
#
# This is open-source software licensed under a BSD license.
# Please see the file LICENSE.txt for details.
#
import numpy as np
from collections import OrderedDict
from ginga import AstroImage, colors
from ginga.RGBImage import RGBImage
from ginga.util import wcs
... | 27.181818 | 72 | 0.593924 | 982 | 7,176 | 4.196538 | 0.247454 | 0.015288 | 0.01092 | 0.010677 | 0.324921 | 0.320068 | 0.289736 | 0.25916 | 0.216452 | 0.216452 | 0 | 0.027582 | 0.287625 | 7,176 | 263 | 73 | 27.285171 | 0.77856 | 0.206522 | 0 | 0.204082 | 0 | 0 | 0.038924 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.07483 | false | 0 | 0.034014 | 0 | 0.183673 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
469f5e5ed924f088a814fc16a98e14d55994cdf9 | 3,294 | py | Python | jigsaw/datasets/datasets.py | alexvishnevskiy/jigsaw | 7fc2c4cd3700a54e9c5cbc02870bf4057b0a9fe3 | [
"MIT"
] | null | null | null | jigsaw/datasets/datasets.py | alexvishnevskiy/jigsaw | 7fc2c4cd3700a54e9c5cbc02870bf4057b0a9fe3 | [
"MIT"
] | null | null | null | jigsaw/datasets/datasets.py | alexvishnevskiy/jigsaw | 7fc2c4cd3700a54e9c5cbc02870bf4057b0a9fe3 | [
"MIT"
] | null | null | null | from torch.utils.data import Dataset
from ..utils.optimal_lenght import find_optimal_lenght
class PairedDataset(Dataset):
def __init__(
self,
df,
cfg,
tokenizer,
more_toxic_col='more_toxic',
less_toxic_col='less_toxic'
):
self.df = df
se... | 31.673077 | 70 | 0.532483 | 352 | 3,294 | 4.585227 | 0.144886 | 0.105948 | 0.042131 | 0.037175 | 0.538414 | 0.408302 | 0.358736 | 0.16109 | 0.109046 | 0.109046 | 0 | 0.0005 | 0.392532 | 3,294 | 104 | 71 | 31.673077 | 0.806097 | 0 | 0 | 0.306818 | 0 | 0 | 0.062215 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068182 | false | 0 | 0.022727 | 0.022727 | 0.170455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
46a4d57f3c07a504c88eba6e3644cc933118a8c3 | 1,798 | py | Python | src/figcli/test/cli/action.py | figtools/figgy-cli | 88f4ccb8221ef9734f95b2637acfacc6e00983e7 | [
"Apache-2.0"
] | 36 | 2020-07-21T21:22:02.000Z | 2021-10-20T06:55:47.000Z | src/figcli/test/cli/action.py | figtools/figgy-cli | 88f4ccb8221ef9734f95b2637acfacc6e00983e7 | [
"Apache-2.0"
] | 2 | 2020-10-29T12:49:15.000Z | 2021-04-29T01:12:05.000Z | src/figcli/test/cli/action.py | figtools/figgy-cli | 88f4ccb8221ef9734f95b2637acfacc6e00983e7 | [
"Apache-2.0"
] | null | null | null | from typing import Union, List
import pexpect
from figcli.utils.utils import Utils
import sys
class FiggyAction:
"""
Actions prevent cyclic dependencies, and are designed for leveraging FiggyCli for cleanup steps when running inside
of tests.
"""
def __init__(self, command, extra_args=""):
... | 34.576923 | 119 | 0.60178 | 229 | 1,798 | 4.615721 | 0.349345 | 0.042573 | 0.037843 | 0.041627 | 0.07474 | 0.07474 | 0.060549 | 0.060549 | 0.041627 | 0 | 0 | 0.003602 | 0.228031 | 1,798 | 52 | 120 | 34.576923 | 0.757925 | 0.069522 | 0 | 0.054054 | 0 | 0.027027 | 0.198912 | 0.111245 | 0 | 0 | 0 | 0 | 0 | 1 | 0.189189 | false | 0 | 0.108108 | 0.027027 | 0.432432 | 0.189189 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
46a58d19b627254c0cc57fea12f1310b8d2e7c37 | 7,453 | py | Python | qc/slips.py | mfkiwl/UREGA-qc | 989e6b59d4fa5259ce48daa6165bdab4e020ba49 | [
"MIT"
] | null | null | null | qc/slips.py | mfkiwl/UREGA-qc | 989e6b59d4fa5259ce48daa6165bdab4e020ba49 | [
"MIT"
] | null | null | null | qc/slips.py | mfkiwl/UREGA-qc | 989e6b59d4fa5259ce48daa6165bdab4e020ba49 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
@author: Lars Stenseng.
@mail: lars@stenseng.net
"""
# from qc.__version__ import __version__
import georinex as gr
import numpy as np
from matplotlib.pyplot import figure, show
import matplotlib.pyplot as plt
obs = gr.load(
'tests/test_data/Rinex3/KLSQ00GRL_R_... | 25.611684 | 79 | 0.570643 | 1,084 | 7,453 | 3.847786 | 0.226937 | 0.026852 | 0.01007 | 0.018461 | 0.626708 | 0.621194 | 0.621194 | 0.579717 | 0.579717 | 0.579717 | 0 | 0.078488 | 0.254663 | 7,453 | 290 | 80 | 25.7 | 0.672367 | 0.307527 | 0 | 0.666667 | 0 | 0 | 0.103612 | 0.01259 | 0 | 0 | 0 | 0 | 0 | 1 | 0.020833 | false | 0.006944 | 0.027778 | 0 | 0.055556 | 0.027778 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
46a68217514e2d9ae5f9e06cbba236282798ed2c | 8,610 | py | Python | tests/test_utils.py | jga/goldfinchsong | 638e166948944a7f027d03bcf8f7c14dc2f4b6f2 | [
"MIT"
] | null | null | null | tests/test_utils.py | jga/goldfinchsong | 638e166948944a7f027d03bcf8f7c14dc2f4b6f2 | [
"MIT"
] | null | null | null | tests/test_utils.py | jga/goldfinchsong | 638e166948944a7f027d03bcf8f7c14dc2f4b6f2 | [
"MIT"
] | null | null | null | from collections import OrderedDict
from datetime import datetime, timezone
import unittest
from os.path import join
from tinydb import TinyDB, storages
from goldfinchsong import utils
IMAGE_NAMES = ['goldfinch1.jpg', 'goldfinch2.jpg', 'goldfinch3.jpg',
'goldfinch4.jpg', 'goldfinch5.jpg']
TEST_TEXT1 = ... | 40.046512 | 121 | 0.616609 | 997 | 8,610 | 5.117352 | 0.210632 | 0.082321 | 0.049392 | 0.061152 | 0.569581 | 0.503528 | 0.409447 | 0.373971 | 0.337123 | 0.27009 | 0 | 0.021575 | 0.27863 | 8,610 | 214 | 122 | 40.233645 | 0.799871 | 0.009988 | 0 | 0.340426 | 0 | 0 | 0.23365 | 0.013385 | 0 | 0 | 0 | 0 | 0.170213 | 1 | 0.069149 | false | 0 | 0.069149 | 0 | 0.148936 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
46a6977e7b919a1d64a9944a2e191bffb62c293c | 2,868 | py | Python | lingvo/tasks/image/input_generator.py | allenwang28/lingvo | 26d3d6672d3f46d8f281c2aa9f57166ef6296738 | [
"Apache-2.0"
] | 2,611 | 2018-10-16T20:14:10.000Z | 2022-03-31T14:48:41.000Z | lingvo/tasks/image/input_generator.py | allenwang28/lingvo | 26d3d6672d3f46d8f281c2aa9f57166ef6296738 | [
"Apache-2.0"
] | 249 | 2018-10-27T06:02:29.000Z | 2022-03-30T18:00:39.000Z | lingvo/tasks/image/input_generator.py | allenwang28/lingvo | 26d3d6672d3f46d8f281c2aa9f57166ef6296738 | [
"Apache-2.0"
] | 436 | 2018-10-25T05:31:45.000Z | 2022-03-31T07:26:03.000Z | # Lint as: python3
# Copyright 2018 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless ... | 27.84466 | 80 | 0.639121 | 378 | 2,868 | 4.708995 | 0.42328 | 0.033708 | 0.033708 | 0.038764 | 0.117978 | 0.117978 | 0.095506 | 0.095506 | 0.095506 | 0.095506 | 0 | 0.028138 | 0.219317 | 2,868 | 102 | 81 | 28.117647 | 0.76686 | 0.299163 | 0 | 0.229508 | 0 | 0 | 0.028645 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.114754 | false | 0 | 0.065574 | 0 | 0.344262 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
46ab99e6eb8d1fdb04330410131bcc8d1d609369 | 19,623 | py | Python | copy_annotations/conflict.py | abhinav-kumar-thakur/TabularCellTypeClassification | 844029ee59867c41acfa75c8ce12db6713c9960c | [
"MIT"
] | 19 | 2019-06-06T18:23:29.000Z | 2022-01-06T15:30:20.000Z | copy_annotations/conflict.py | abhinav-kumar-thakur/TabularCellTypeClassification | 844029ee59867c41acfa75c8ce12db6713c9960c | [
"MIT"
] | 524 | 2019-07-01T19:18:39.000Z | 2022-02-13T19:33:02.000Z | copy_annotations/conflict.py | abhinav-kumar-thakur/TabularCellTypeClassification | 844029ee59867c41acfa75c8ce12db6713c9960c | [
"MIT"
] | 18 | 2019-06-06T18:23:07.000Z | 2021-07-15T06:01:17.000Z | import contextlib
import os
import tempfile
import warnings
from enum import Enum
import mip
class IISFinderAlgorithm(Enum):
DELETION_FILTER = 1
ADDITIVE_ALGORITHM = 2
class SubRelaxationInfeasible(Exception):
pass
class NonRelaxableModel(Exception):
pass
class ConflictFinder:
"""This class... | 42.109442 | 169 | 0.587983 | 2,288 | 19,623 | 4.857517 | 0.145979 | 0.033111 | 0.013856 | 0.015836 | 0.355857 | 0.298992 | 0.244197 | 0.235289 | 0.184002 | 0.15575 | 0 | 0.003994 | 0.336493 | 19,623 | 466 | 170 | 42.109442 | 0.849616 | 0.240636 | 0 | 0.338558 | 0 | 0 | 0.065804 | 0.00512 | 0 | 0 | 0 | 0.004292 | 0.00627 | 1 | 0.037618 | false | 0.00627 | 0.018809 | 0 | 0.106583 | 0.021944 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
46ad0929668e5c287bd02c9734950a08fc91328e | 3,919 | py | Python | Dietscheduler/lib/menu_converter.py | floromaer/DietScheduler | 48403f13dbcaa7981f252361819f06435a75333b | [
"MIT"
] | null | null | null | Dietscheduler/lib/menu_converter.py | floromaer/DietScheduler | 48403f13dbcaa7981f252361819f06435a75333b | [
"MIT"
] | null | null | null | Dietscheduler/lib/menu_converter.py | floromaer/DietScheduler | 48403f13dbcaa7981f252361819f06435a75333b | [
"MIT"
] | null | null | null | import re
import xlsxwriter
def parse_menu_to_excel(filename,menu_dict,days_dict,results,goal_dict,food_database,reversed_ingredient_dict,grocery_dict):
# making a temporary dict to map dates and columns in excel:
temp_dates_dict = {}
i=0
for key in days_dict.keys():
temp_dates_dict[day... | 48.382716 | 446 | 0.63307 | 552 | 3,919 | 4.288043 | 0.193841 | 0.050697 | 0.042248 | 0.043093 | 0.328264 | 0.291508 | 0.233207 | 0.135615 | 0.049007 | 0.049007 | 0 | 0.023779 | 0.216637 | 3,919 | 80 | 447 | 48.9875 | 0.747231 | 0.063281 | 0 | 0.275362 | 0 | 0.014493 | 0.134358 | 0.055307 | 0 | 0 | 0 | 0 | 0 | 1 | 0.014493 | false | 0 | 0.028986 | 0 | 0.043478 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
46ad5a9032022b2051fa16df11181281b5f9eae8 | 1,256 | py | Python | example_problems/tutorial/graph_connectivity/services/esempi/check_one_sol_server.py | romeorizzi/TAlight | 2217f8790820d8ec7ab076c836b2d182877d8ee8 | [
"MIT"
] | 3 | 2021-01-08T09:56:46.000Z | 2021-03-02T20:47:29.000Z | example_problems/tutorial/graph_connectivity/services/esempi/check_one_sol_server.py | romeorizzi/TAlight | 2217f8790820d8ec7ab076c836b2d182877d8ee8 | [
"MIT"
] | 1 | 2021-01-23T06:50:31.000Z | 2021-03-17T15:35:18.000Z | example_problems/tutorial/graph_connectivity/services/esempi/check_one_sol_server.py | romeorizzi/TAlight | 2217f8790820d8ec7ab076c836b2d182877d8ee8 | [
"MIT"
] | 4 | 2021-01-06T12:10:23.000Z | 2021-03-16T22:16:07.000Z | #!/usr/bin/env python3
from sys import stderr, exit
from TALinputs import TALinput
from multilanguage import Env, Lang, TALcolors
from parentheses_lib import recognize
# METADATA OF THIS TAL_SERVICE:
problem="parentheses"
service="check_one_sol_server"
args_list = [
('input_formula',str),
('n',s... | 29.904762 | 162 | 0.65207 | 177 | 1,256 | 4.525424 | 0.446328 | 0.059925 | 0.05618 | 0.05618 | 0.213483 | 0.163546 | 0.122347 | 0.122347 | 0.122347 | 0.122347 | 0 | 0.002962 | 0.193471 | 1,256 | 41 | 163 | 30.634146 | 0.787759 | 0.062102 | 0 | 0.0625 | 0 | 0 | 0.292145 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03125 | false | 0 | 0.125 | 0 | 0.15625 | 0.09375 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
46af2004cde5fbac1f953e967f4311dafcb8c8e2 | 8,154 | py | Python | env/enviroment.py | Dorebom/robot_pybullet | 21e95864da28eb5553266513b1a1a735901395b6 | [
"MIT"
] | null | null | null | env/enviroment.py | Dorebom/robot_pybullet | 21e95864da28eb5553266513b1a1a735901395b6 | [
"MIT"
] | null | null | null | env/enviroment.py | Dorebom/robot_pybullet | 21e95864da28eb5553266513b1a1a735901395b6 | [
"MIT"
] | null | null | null | from copy import deepcopy
import numpy as np
import pybullet as p
import gym
from gym import spaces
from env.robot import Manipulator
from env.work import Work
class Env():
def __init__(self, reward,
step_max_pos = 0.002,
step_max_orn = 0.02,
initial_pos_noise = 0.0... | 38.828571 | 101 | 0.589159 | 1,146 | 8,154 | 3.814136 | 0.116928 | 0.026539 | 0.030885 | 0.030199 | 0.506063 | 0.431023 | 0.329444 | 0.243194 | 0.182109 | 0.138183 | 0 | 0.032252 | 0.311749 | 8,154 | 210 | 102 | 38.828571 | 0.746614 | 0.029065 | 0 | 0.161074 | 0 | 0 | 0.016859 | 0.00817 | 0 | 0 | 0 | 0 | 0 | 1 | 0.067114 | false | 0 | 0.04698 | 0.006711 | 0.181208 | 0.013423 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
46b07861f72e984eb2546daa1dab51801dd00b0a | 1,820 | py | Python | Thread/Threading.py | zxg110/PythonGrammer | 7d07648c62e3d49123688c33d09fe4bb369cf852 | [
"Apache-2.0"
] | null | null | null | Thread/Threading.py | zxg110/PythonGrammer | 7d07648c62e3d49123688c33d09fe4bb369cf852 | [
"Apache-2.0"
] | null | null | null | Thread/Threading.py | zxg110/PythonGrammer | 7d07648c62e3d49123688c33d09fe4bb369cf852 | [
"Apache-2.0"
] | null | null | null | import _thread
import time
import threading
#
# def print_time(threadName,delay):
# count = 0;
# while count < 5:
# time.sleep(delay)
# count += 1;
# print("%s: %s" % (threadName, time.ctime(time.time())))
#
# try:
# _thread.start_new(print_time,("Thread-1",2,))
# _thread.start_n... | 26 | 73 | 0.666484 | 205 | 1,820 | 5.814634 | 0.429268 | 0.037752 | 0.020134 | 0.036913 | 0.151007 | 0.105705 | 0.057047 | 0.057047 | 0 | 0 | 0 | 0.016151 | 0.183516 | 1,820 | 69 | 74 | 26.376812 | 0.786003 | 0.547253 | 0 | 0 | 0 | 0 | 0.046954 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.115385 | false | 0 | 0.115385 | 0 | 0.269231 | 0.230769 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
46b234a2d05a51f6fb5809df7fa1df618dfd4547 | 2,153 | py | Python | cluster_faces.py | sandhyalaxmiK/faces_clustering | e2da7e057ce5ec749e0c631f450e262f046b8e1d | [
"MIT"
] | null | null | null | cluster_faces.py | sandhyalaxmiK/faces_clustering | e2da7e057ce5ec749e0c631f450e262f046b8e1d | [
"MIT"
] | null | null | null | cluster_faces.py | sandhyalaxmiK/faces_clustering | e2da7e057ce5ec749e0c631f450e262f046b8e1d | [
"MIT"
] | null | null | null | import face_recognition
import sys,os
import re,cv2
def sorted_alphanumeric(data):
convert = lambda text: int(text) if text.isdigit() else text.lower()
alphanum_key = lambda key: [ convert(c) for c in re.split('([0-9]+)', key) ]
return sorted(data, key=alphanum_key)
input_dir_path=sys.argv[1]
output_dir_p... | 39.87037 | 142 | 0.75987 | 349 | 2,153 | 4.369628 | 0.200573 | 0.105574 | 0.161967 | 0.052459 | 0.53377 | 0.401311 | 0.316066 | 0.15082 | 0.072131 | 0.072131 | 0 | 0.017338 | 0.089178 | 2,153 | 53 | 143 | 40.622642 | 0.760326 | 0 | 0 | 0.0625 | 0 | 0 | 0.039944 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.020833 | false | 0 | 0.0625 | 0 | 0.104167 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
46b6263389154f262f0911cbbda3dfc8ad613ae7 | 3,014 | py | Python | setup.py | conan-hdk/xlwings | 44395c4d18b46f76249279b7d0965e640291499c | [
"BSD-3-Clause"
] | null | null | null | setup.py | conan-hdk/xlwings | 44395c4d18b46f76249279b7d0965e640291499c | [
"BSD-3-Clause"
] | null | null | null | setup.py | conan-hdk/xlwings | 44395c4d18b46f76249279b7d0965e640291499c | [
"BSD-3-Clause"
] | null | null | null | import os
import sys
import re
import glob
from setuptools import setup, find_packages
# long_description: Take from README file
with open(os.path.join(os.path.dirname(__file__), 'README.rst')) as f:
readme = f.read()
# Version Number
with open(os.path.join(os.path.dirname(__file__), 'xlwings', '__init__.py')) as... | 42.450704 | 214 | 0.651626 | 362 | 3,014 | 5.303867 | 0.494475 | 0.069271 | 0.091146 | 0.08125 | 0.036458 | 0.036458 | 0.036458 | 0.036458 | 0.036458 | 0 | 0 | 0.017458 | 0.182814 | 3,014 | 70 | 215 | 43.057143 | 0.762079 | 0.053749 | 0 | 0.04918 | 0 | 0.016393 | 0.469617 | 0.05339 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.081967 | 0 | 0.081967 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
46b6eaa6075021f6bee39458eda6a940c6b7c8b2 | 2,044 | py | Python | secedgar/tests/test_cli.py | abbadata/sec-edgar | f801d2137a988c928449bf64b44a85c01e80fd3a | [
"Apache-2.0"
] | null | null | null | secedgar/tests/test_cli.py | abbadata/sec-edgar | f801d2137a988c928449bf64b44a85c01e80fd3a | [
"Apache-2.0"
] | null | null | null | secedgar/tests/test_cli.py | abbadata/sec-edgar | f801d2137a988c928449bf64b44a85c01e80fd3a | [
"Apache-2.0"
] | null | null | null | import pytest
from click.testing import CliRunner
from secedgar.cli import daily, filing
from secedgar.utils.exceptions import FilingTypeError
def run_cli_command(cli, user_input, directory, catch_exceptions=False):
runner = CliRunner()
user_input = user_input + " --directory {}".format(directory)
return ... | 34.066667 | 90 | 0.672211 | 248 | 2,044 | 5.282258 | 0.326613 | 0.103053 | 0.09084 | 0.138931 | 0.433588 | 0.39084 | 0.351145 | 0.105344 | 0.105344 | 0.105344 | 0 | 0.012878 | 0.240215 | 2,044 | 59 | 91 | 34.644068 | 0.83065 | 0.068493 | 0 | 0.106383 | 0 | 0 | 0.141728 | 0.030558 | 0 | 0 | 0 | 0 | 0.021277 | 1 | 0.106383 | false | 0.021277 | 0.085106 | 0 | 0.255319 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
46b74e2cb30b2d76500271ee27ada8ec4c26cdc1 | 2,013 | py | Python | hydro.py | garethcmurphy/hydrosolve | ef150a6adcab1e835b4b907c5fed2dd58cd4ba08 | [
"MIT"
] | null | null | null | hydro.py | garethcmurphy/hydrosolve | ef150a6adcab1e835b4b907c5fed2dd58cd4ba08 | [
"MIT"
] | null | null | null | hydro.py | garethcmurphy/hydrosolve | ef150a6adcab1e835b4b907c5fed2dd58cd4ba08 | [
"MIT"
] | null | null | null | import os
import numpy as np
import matplotlib.pyplot as plt
from matplotlib import gridspec
nstep=200
nx=400
nv=3
u=np.zeros((nx,nv))
prim=np.zeros((nx,nv))
gam=5./3.
dx=1./nx
dt=1e-3
time=0
x=np.linspace(0,1,num=nx)
def ptou(pri):
u=np.zeros((nx,nv))
rho=pri[:,0]
v=pri[:,1]
prs=pri[:,2]
mom=rho*v
... | 18.638889 | 42 | 0.516642 | 390 | 2,013 | 2.651282 | 0.210256 | 0.034816 | 0.075435 | 0.087041 | 0.324952 | 0.277563 | 0.235977 | 0.235977 | 0.235977 | 0.235977 | 0 | 0.072787 | 0.242424 | 2,013 | 107 | 43 | 18.813084 | 0.605246 | 0 | 0 | 0.268041 | 0 | 0 | 0.005961 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041237 | false | 0 | 0.041237 | 0 | 0.082474 | 0.020619 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d3b125d2c7eabb30628cc33826a64ef3ed9c92f4 | 22,179 | py | Python | tests/test_pluralize.py | weixu365/pluralizer-py | 793b2a8ff1320f701e70810038e0902c610aa5b0 | [
"MIT"
] | 4 | 2020-05-10T12:02:57.000Z | 2022-02-02T11:20:02.000Z | tests/test_pluralize.py | weixu365/pluralizer-py | 793b2a8ff1320f701e70810038e0902c610aa5b0 | [
"MIT"
] | 30 | 2020-05-10T10:07:00.000Z | 2022-03-26T18:22:43.000Z | tests/test_pluralize.py | weixu365/pluralizer-py | 793b2a8ff1320f701e70810038e0902c610aa5b0 | [
"MIT"
] | null | null | null |
import unittest
from pluralizer import Pluralizer
import re
# Standard singular/plural matches.
#
# @type {Array}
BASIC_TESTS = [
# Uncountables.
['firmware', 'firmware'],
['fish', 'fish'],
['media', 'media'],
['moose', 'moose'],
['police', 'police'],
['sheep', 'sheep'],
['series', 's... | 28.039191 | 83 | 0.515803 | 1,798 | 22,179 | 6.314794 | 0.746385 | 0.026422 | 0.044037 | 0.029945 | 0.135283 | 0.105337 | 0.091422 | 0.083407 | 0.066937 | 0.055135 | 0 | 0.001673 | 0.21854 | 22,179 | 790 | 84 | 28.074684 | 0.653416 | 0.01303 | 0 | 0.056075 | 0 | 0 | 0.408881 | 0.00096 | 0 | 0 | 0 | 0 | 0.032043 | 1 | 0.020027 | false | 0.00267 | 0.004005 | 0 | 0.025367 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d3b1ab341873d6a614ea74d34b804a1a2793bea2 | 5,478 | py | Python | integration_tests/test_suites/k8s-integration-test-suite/test_utils.py | ericct/dagster | dd2c9f05751e1bae212a30dbc54381167a14f6c5 | [
"Apache-2.0"
] | null | null | null | integration_tests/test_suites/k8s-integration-test-suite/test_utils.py | ericct/dagster | dd2c9f05751e1bae212a30dbc54381167a14f6c5 | [
"Apache-2.0"
] | null | null | null | integration_tests/test_suites/k8s-integration-test-suite/test_utils.py | ericct/dagster | dd2c9f05751e1bae212a30dbc54381167a14f6c5 | [
"Apache-2.0"
] | null | null | null | import time
import kubernetes
import pytest
from dagster_k8s.client import DagsterK8sError, WaitForPodState
from dagster_k8s.utils import retrieve_pod_logs, wait_for_job_success, wait_for_pod
from dagster_k8s_test_infra.helm import get_helm_test_namespace
def construct_pod_spec(name, cmd):
return kubernetes.clie... | 41.18797 | 100 | 0.61245 | 579 | 5,478 | 5.61658 | 0.267703 | 0.094096 | 0.074416 | 0.069188 | 0.680812 | 0.648524 | 0.571033 | 0.490467 | 0.387454 | 0.283518 | 0 | 0.013783 | 0.284775 | 5,478 | 132 | 101 | 41.5 | 0.816233 | 0.173786 | 0 | 0.329787 | 0 | 0 | 0.112467 | 0 | 0 | 0 | 0 | 0 | 0.021277 | 1 | 0.053191 | false | 0.021277 | 0.06383 | 0.031915 | 0.148936 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d3b26049eb155f0068830e3349db9d53a2b93029 | 2,088 | py | Python | uitester/ui/case_manager/tag_names_line_edit.py | IfengAutomation/uitester | 6f9c78c86965b05efea875d38dbd9587386977fa | [
"Apache-2.0"
] | 4 | 2016-07-12T09:01:52.000Z | 2016-12-07T03:11:02.000Z | uitester/ui/case_manager/tag_names_line_edit.py | IfengAutomation/uitester | 6f9c78c86965b05efea875d38dbd9587386977fa | [
"Apache-2.0"
] | null | null | null | uitester/ui/case_manager/tag_names_line_edit.py | IfengAutomation/uitester | 6f9c78c86965b05efea875d38dbd9587386977fa | [
"Apache-2.0"
] | 3 | 2016-11-29T02:13:17.000Z | 2019-10-16T06:25:20.000Z | from PyQt5.QtCore import Qt, QStringListModel
from PyQt5.QtWidgets import QLineEdit, QCompleter
class TagNamesLineEdit(QLineEdit):
def __init__(self, parent=None):
super(QLineEdit, self).__init__(parent)
self.cmp = None
self.is_completer = True
def setCompleter(self, completer):
... | 34.229508 | 84 | 0.631226 | 237 | 2,088 | 5.35865 | 0.308017 | 0.071654 | 0.047244 | 0.028346 | 0.094488 | 0.094488 | 0.094488 | 0.094488 | 0.094488 | 0.094488 | 0 | 0.00646 | 0.258621 | 2,088 | 60 | 85 | 34.8 | 0.813953 | 0 | 0 | 0.16 | 0 | 0 | 0.001437 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.14 | false | 0.02 | 0.04 | 0.02 | 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 |
d3b2a1b997cbe83aa232f13b17539c3d7b815053 | 434 | py | Python | tasks.py | epu-ntua/QualiChain-mediator | 1d0f848d60861665d95ad0359914add361551763 | [
"MIT"
] | 2 | 2020-03-09T11:10:15.000Z | 2020-03-11T06:11:58.000Z | tasks.py | epu-ntua/QualiChain-mediator | 1d0f848d60861665d95ad0359914add361551763 | [
"MIT"
] | 2 | 2021-03-31T19:43:58.000Z | 2021-12-13T20:34:57.000Z | tasks.py | epu-ntua/QualiChain-mediator | 1d0f848d60861665d95ad0359914add361551763 | [
"MIT"
] | 2 | 2020-03-12T11:14:20.000Z | 2020-07-07T06:17:45.000Z | from celery import Celery
from clients.dobie_client import send_data_to_dobie
app = Celery('qualichain_mediator')
app.config_from_object('settings', namespace='CELERY_')
@app.task()
def consume_messages_async(message):
"""
This task is used to received job posting text and feed DOBIE component
"""
e... | 25.529412 | 75 | 0.767281 | 59 | 434 | 5.372881 | 0.644068 | 0.141956 | 0.063091 | 0.094637 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.152074 | 434 | 16 | 76 | 27.125 | 0.861413 | 0.163594 | 0 | 0 | 0 | 0 | 0.097983 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 0 | 0.444444 | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d3b3426ac37ef57bd78d3b9aa39a2ef7e95619d6 | 1,174 | py | Python | ingest/ambit_geo.py | brianhouse/okavango | 4006940ddead3f31eea701efb9b9dcdc7b19402e | [
"MIT"
] | 2 | 2015-01-25T06:20:03.000Z | 2015-02-15T23:54:41.000Z | ingest/ambit_geo.py | brianhouse/okavango_15 | 4006940ddead3f31eea701efb9b9dcdc7b19402e | [
"MIT"
] | null | null | null | ingest/ambit_geo.py | brianhouse/okavango_15 | 4006940ddead3f31eea701efb9b9dcdc7b19402e | [
"MIT"
] | 3 | 2017-11-14T21:18:23.000Z | 2021-06-20T21:08:31.000Z | import json, math
from ingest import ingest_json_body
from housepy import config, log, strings, util
def parse(request):
log.info("ambit_geo.parse")
sample = ingest_json_body(request)
if sample is None:
return sample, "Could not parse"
data = {}
for key, value in sample.items():
if... | 32.611111 | 87 | 0.537479 | 131 | 1,174 | 4.755725 | 0.427481 | 0.032103 | 0.0626 | 0.070626 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.336457 | 1,174 | 36 | 88 | 32.611111 | 0.799743 | 0.027257 | 0 | 0.15625 | 0 | 0 | 0.145486 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03125 | false | 0 | 0.09375 | 0 | 0.1875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d3b4e36f678d36e360884bedfd448ece0a34ced3 | 1,895 | py | Python | leetcode.com/python/314_Binary_Tree_Vertical_Order_Traversal.py | mamane19/coding-interview-gym | 20ae1a048eddbc9a32c819cf61258e2b57572f05 | [
"MIT"
] | 713 | 2019-11-19T16:11:25.000Z | 2022-03-31T02:27:52.000Z | leetcode.com/python/314_Binary_Tree_Vertical_Order_Traversal.py | arunsank/coding-interview-gym | 8131e3a82795707e144fe55d765b6c15bdb97306 | [
"MIT"
] | 7 | 2020-01-16T17:07:18.000Z | 2021-11-15T18:24:39.000Z | leetcode.com/python/314_Binary_Tree_Vertical_Order_Traversal.py | arunsank/coding-interview-gym | 8131e3a82795707e144fe55d765b6c15bdb97306 | [
"MIT"
] | 393 | 2019-11-18T17:55:45.000Z | 2022-03-28T20:26:32.000Z | # Definition for a binary tree node.
# class TreeNode(object):
# def __init__(self, val=0, left=None, right=None):
# self.val = val
# self.left = left
# self.right = right
from collections import deque
from collections import defaultdict
class Solution(object):
def verticalOrder(self, ... | 31.583333 | 109 | 0.582058 | 193 | 1,895 | 5.694301 | 0.316062 | 0.054595 | 0.076433 | 0.047316 | 0.163785 | 0.163785 | 0.163785 | 0.163785 | 0.163785 | 0.163785 | 0 | 0.006875 | 0.309235 | 1,895 | 60 | 110 | 31.583333 | 0.832697 | 0.17467 | 0 | 0.540541 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.054054 | false | 0 | 0.108108 | 0 | 0.324324 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d3b8efd54656a0b32ac0c5b886fd7d4ce09f8a83 | 1,266 | py | Python | python/convert_to_readwise.py | t27/highlights-convert | a6c6696ece4fabbbb56e420cb23c0466710e1345 | [
"MIT"
] | null | null | null | python/convert_to_readwise.py | t27/highlights-convert | a6c6696ece4fabbbb56e420cb23c0466710e1345 | [
"MIT"
] | null | null | null | python/convert_to_readwise.py | t27/highlights-convert | a6c6696ece4fabbbb56e420cb23c0466710e1345 | [
"MIT"
] | 1 | 2021-06-29T20:40:06.000Z | 2021-06-29T20:40:06.000Z | import pandas as pd
import json
import glob
columns = ["Highlight","Title","Author","URL","Note","Location"]
# for sample of the input json look at any json in the root of the `results` folder
def convert_to_readwise_df(json_files):
"""Convert the internal json format to a readwise compatible dataframe
Args:... | 32.461538 | 83 | 0.590837 | 158 | 1,266 | 4.582278 | 0.411392 | 0.074586 | 0.055249 | 0.052486 | 0.077348 | 0.077348 | 0 | 0 | 0 | 0 | 0 | 0 | 0.290679 | 1,266 | 38 | 84 | 33.315789 | 0.806236 | 0.220379 | 0 | 0 | 0 | 0 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0 | 0.12 | 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 |
d3bc12f8ef0d8afa0eabbca33671def2b9e2dfc8 | 4,293 | py | Python | styrobot/cogs/help.py | ThatRedKite/styrobot | c6c449aec99cb59c4695f739d59efe2def0e0064 | [
"MIT"
] | 1 | 2021-08-02T23:19:31.000Z | 2021-08-02T23:19:31.000Z | styrobot/cogs/help.py | ThatRedKite/styrobot | c6c449aec99cb59c4695f739d59efe2def0e0064 | [
"MIT"
] | null | null | null | styrobot/cogs/help.py | ThatRedKite/styrobot | c6c449aec99cb59c4695f739d59efe2def0e0064 | [
"MIT"
] | 1 | 2021-07-28T02:26:54.000Z | 2021-07-28T02:26:54.000Z | import discord
from discord.ext import commands
from styrobot.util.contrib import info
import random
class BetterHelpCommand(commands.HelpCommand):
async def send_embed(self, embed):
embed.colour = discord.Colour.random()
await self.get_destination().send(embed=embed)
def blank_line(self, emb... | 44.257732 | 109 | 0.610063 | 575 | 4,293 | 4.415652 | 0.213913 | 0.056715 | 0.085073 | 0.087042 | 0.314297 | 0.263883 | 0.152422 | 0.109098 | 0.068531 | 0.068531 | 0 | 0.004673 | 0.252271 | 4,293 | 96 | 110 | 44.71875 | 0.785358 | 0.007221 | 0 | 0.108434 | 0 | 0 | 0.088263 | 0.013146 | 0 | 0 | 0 | 0 | 0 | 1 | 0.048193 | false | 0 | 0.048193 | 0 | 0.13253 | 0.024096 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d3bcd85e84067fe1c97d2fef2c0994e569b7ca18 | 1,527 | py | Python | misc/Queue_hello.py | benhunter/py-stuff | a04f94851370e08a65792a53a6207f3146eb130b | [
"MIT"
] | 3 | 2017-05-22T03:14:21.000Z | 2019-05-24T11:44:15.000Z | misc/Queue_hello.py | benhunter/py-stuff | a04f94851370e08a65792a53a6207f3146eb130b | [
"MIT"
] | null | null | null | misc/Queue_hello.py | benhunter/py-stuff | a04f94851370e08a65792a53a6207f3146eb130b | [
"MIT"
] | null | null | null | # Testing with threading and queue modules for Thread-based parallelism
import threading, queue, time
# The worker thread gets jobs off the queue. When the queue is empty, it
# assumes there will be no more work and exits.
# (Realistically workers will run until terminated.)
def worker():
print('Running worker'... | 26.327586 | 90 | 0.629339 | 223 | 1,527 | 4.295964 | 0.452915 | 0.037578 | 0.018789 | 0.034447 | 0.123173 | 0.123173 | 0.037578 | 0.037578 | 0 | 0 | 0 | 0.014965 | 0.256058 | 1,527 | 58 | 91 | 26.327586 | 0.828345 | 0.374591 | 0 | 0.117647 | 0 | 0 | 0.122471 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.029412 | 0 | 0.088235 | 0.264706 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d3bfd6a64622fae1b5dc880f345c000e85f77a5b | 1,080 | py | Python | src/utility/count_pages.py | WikiCommunityHealth/wikimedia-revert | b584044d8b6a61a79d98656db356bf1f74d23ee0 | [
"MIT"
] | null | null | null | src/utility/count_pages.py | WikiCommunityHealth/wikimedia-revert | b584044d8b6a61a79d98656db356bf1f74d23ee0 | [
"MIT"
] | null | null | null | src/utility/count_pages.py | WikiCommunityHealth/wikimedia-revert | b584044d8b6a61a79d98656db356bf1f74d23ee0 | [
"MIT"
] | null | null | null | # count numbers of pages from the Mediawiki history dumps
import bz2
import subprocess
import os
from datetime import datetime
inizio = datetime.now()
dataset_folder = '/home/gandelli/dev/data/it/'
totali = set()
revisioni = set()
revert = set()
ns0 = set()
for year in range(2001, 2021):
dump_in = bz2.open(da... | 23.478261 | 74 | 0.566667 | 139 | 1,080 | 4.366906 | 0.489209 | 0.052718 | 0.044481 | 0.074135 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.041078 | 0.278704 | 1,080 | 46 | 75 | 23.478261 | 0.738126 | 0.050926 | 0 | 0 | 0 | 0 | 0.121094 | 0.026367 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0.15625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d3c078904bb9cd81a5346502975e431e6b94a34e | 6,395 | py | Python | livescore/LivescoreCommon.py | TechplexEngineer/frc-livescore | dedf68218a1a8e2f8a463ded835ea2a7d4b51b78 | [
"MIT"
] | null | null | null | livescore/LivescoreCommon.py | TechplexEngineer/frc-livescore | dedf68218a1a8e2f8a463ded835ea2a7d4b51b78 | [
"MIT"
] | null | null | null | livescore/LivescoreCommon.py | TechplexEngineer/frc-livescore | dedf68218a1a8e2f8a463ded835ea2a7d4b51b78 | [
"MIT"
] | null | null | null | import colorsys
import cv2
from PIL import Image
import pkg_resources
from .LivescoreBase import LivescoreBase
from .details import Alliance, OngoingMatchDetails
class LivescoreCommon(LivescoreBase):
def __init__(self, game_year, **kwargs):
super(LivescoreCommon, self).__init__(game_year, **kwargs)
... | 39.475309 | 124 | 0.603597 | 821 | 6,395 | 4.419001 | 0.169306 | 0.048512 | 0.024256 | 0.031422 | 0.26075 | 0.148842 | 0.06946 | 0.06946 | 0.06946 | 0.062845 | 0 | 0.065595 | 0.289601 | 6,395 | 161 | 125 | 39.720497 | 0.732996 | 0.043315 | 0 | 0.192 | 0 | 0 | 0.009171 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.048 | false | 0 | 0.048 | 0 | 0.168 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d3c44721938c2e001d9a0ea64b9e887be6780370 | 1,293 | py | Python | scrape_tvz.py | awordforthat/rhymes | b7d47b48a9b641e4736ed04058a183afc0a83b04 | [
"MIT"
] | null | null | null | scrape_tvz.py | awordforthat/rhymes | b7d47b48a9b641e4736ed04058a183afc0a83b04 | [
"MIT"
] | null | null | null | scrape_tvz.py | awordforthat/rhymes | b7d47b48a9b641e4736ed04058a183afc0a83b04 | [
"MIT"
] | 1 | 2021-02-16T03:06:38.000Z | 2021-02-16T03:06:38.000Z | # scrapes Townes van Zandt lyrics
# sample code so I don't have to remember all of this stuff
# the next time I want to source some verses
from bs4 import BeautifulSoup as soup
import requests
import string
punctuation_trans_table = str.maketrans("", "", string.punctuation)
def strip_punctuation(s):
return s.tr... | 28.108696 | 67 | 0.657386 | 198 | 1,293 | 4.161616 | 0.515152 | 0.009709 | 0.033981 | 0.043689 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001957 | 0.20959 | 1,293 | 45 | 68 | 28.733333 | 0.804305 | 0.180201 | 0 | 0 | 0 | 0 | 0.098189 | 0.021926 | 0 | 0 | 0 | 0 | 0 | 1 | 0.103448 | false | 0 | 0.103448 | 0.034483 | 0.275862 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d3c6c4df7fb938e9c1ce540f827eb9b023f7dd26 | 7,895 | py | Python | tests/scanner/scanners/ke_version_scanner_test.py | pombredanne/forseti-security | 68a9a88243460065e00b6c131b3d9abd0331fb37 | [
"Apache-2.0"
] | 1 | 2018-03-26T08:15:21.000Z | 2018-03-26T08:15:21.000Z | tests/scanner/scanners/ke_version_scanner_test.py | pombredanne/forseti-security | 68a9a88243460065e00b6c131b3d9abd0331fb37 | [
"Apache-2.0"
] | null | null | null | tests/scanner/scanners/ke_version_scanner_test.py | pombredanne/forseti-security | 68a9a88243460065e00b6c131b3d9abd0331fb37 | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 The Forseti Security Authors. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by ap... | 41.119792 | 76 | 0.500823 | 794 | 7,895 | 4.797229 | 0.232997 | 0.032554 | 0.012602 | 0.022053 | 0.461276 | 0.364663 | 0.34786 | 0.282489 | 0.244684 | 0.162772 | 0 | 0.038774 | 0.376061 | 7,895 | 191 | 77 | 41.335079 | 0.73447 | 0.087524 | 0 | 0.296774 | 0 | 0.012903 | 0.301406 | 0.067521 | 0 | 0 | 0 | 0 | 0.006452 | 1 | 0.032258 | false | 0 | 0.045161 | 0.012903 | 0.109677 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d3c71f0ccce66077dfdcd88c05a9aa625f2426c0 | 1,147 | py | Python | metrics/utils.py | edwardyehuang/iSeg | 256b0f7fdb6e854fe026fa8df41d9a4a55db34d5 | [
"MIT"
] | 4 | 2021-12-13T09:49:26.000Z | 2022-02-19T11:16:50.000Z | metrics/utils.py | edwardyehuang/iSeg | 256b0f7fdb6e854fe026fa8df41d9a4a55db34d5 | [
"MIT"
] | 1 | 2021-07-28T10:40:56.000Z | 2021-08-09T07:14:06.000Z | metrics/utils.py | edwardyehuang/iSeg | 256b0f7fdb6e854fe026fa8df41d9a4a55db34d5 | [
"MIT"
] | null | null | null | # ================================================================
# MIT License
# Copyright (c) 2021 edwardyehuang (https://github.com/edwardyehuang)
# ================================================================
import tensorflow as tf
from iseg.metrics.seg_metric_wrapper import SegMetricWrapper
from iseg.metri... | 26.068182 | 118 | 0.569311 | 121 | 1,147 | 5.066116 | 0.380165 | 0.078303 | 0.078303 | 0.058728 | 0.153344 | 0.153344 | 0 | 0 | 0 | 0 | 0 | 0.004587 | 0.239756 | 1,147 | 43 | 119 | 26.674419 | 0.698395 | 0.182214 | 0 | 0 | 0 | 0 | 0.004287 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0.041667 | 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 |
d3c82c2d822564092119880c7f993bd3fd1d721b | 5,720 | py | Python | vim.d/vimfiles/bundle/taghighlight/plugin/TagHighlight/module/languages.py | lougxing/gbox | f28402d97cacd22b5e564003af72c4022908cb4d | [
"MIT"
] | null | null | null | vim.d/vimfiles/bundle/taghighlight/plugin/TagHighlight/module/languages.py | lougxing/gbox | f28402d97cacd22b5e564003af72c4022908cb4d | [
"MIT"
] | 13 | 2020-01-28T22:30:33.000Z | 2022-03-02T14:57:16.000Z | vim.d/vimfiles/bundle/taghighlight/plugin/TagHighlight/module/languages.py | lougxing/gbox | f28402d97cacd22b5e564003af72c4022908cb4d | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# Tag Highlighter:
# Author: A. S. Budden <abudden _at_ gmail _dot_ com>
# Copyright: Copyright (C) 2009-2013 A. S. Budden
# Permission is hereby granted to use and distribute this code,
# with or without modifications, provided that this copyright
# notice is c... | 38.648649 | 110 | 0.544755 | 597 | 5,720 | 5.140704 | 0.309883 | 0.074291 | 0.018247 | 0.016618 | 0.071033 | 0.048224 | 0.024764 | 0.024764 | 0.024764 | 0 | 0 | 0.005362 | 0.347902 | 5,720 | 147 | 111 | 38.911565 | 0.817426 | 0.194231 | 0 | 0.084112 | 0 | 0 | 0.082261 | 0.009383 | 0 | 0 | 0 | 0 | 0 | 1 | 0.084112 | false | 0 | 0.084112 | 0.028037 | 0.280374 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d3c84323f9dc3dcd909b2c9adb14b8efc078f1c5 | 6,099 | py | Python | archive/bayes_sensor.py | robmarkcole/HASS-data-science | 7edd07a1519682683b42d140d6268a87d91522ec | [
"MIT"
] | 11 | 2018-01-21T02:37:02.000Z | 2022-01-20T03:32:40.000Z | archive/bayes_sensor.py | robmarkcole/HASS-data-science | 7edd07a1519682683b42d140d6268a87d91522ec | [
"MIT"
] | null | null | null | archive/bayes_sensor.py | robmarkcole/HASS-data-science | 7edd07a1519682683b42d140d6268a87d91522ec | [
"MIT"
] | 8 | 2017-12-19T14:05:33.000Z | 2021-12-08T09:54:06.000Z | """
Bayes sensor code split out from
https://github.com/home-assistant/home-assistant/blob/dev/homeassistant/components/binary_sensor/bayesian.py
This module is used to explore the sensor.
"""
from collections import OrderedDict
from const import *
def update_probability(prior, prob_true, prob_false):
"""Update ... | 33.510989 | 108 | 0.643384 | 692 | 6,099 | 5.421965 | 0.223988 | 0.063433 | 0.017324 | 0.024787 | 0.224414 | 0.183902 | 0.183902 | 0.116738 | 0.03145 | 0 | 0 | 0.000672 | 0.267913 | 6,099 | 181 | 109 | 33.696133 | 0.839642 | 0.237252 | 0 | 0.188679 | 0 | 0 | 0.035793 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.160377 | false | 0 | 0.018868 | 0 | 0.301887 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d3c8f408394af973ef52e2eab96bcf7c6c3f5ac5 | 27,212 | py | Python | CoarseNet/MinutiaeNet_utils.py | khaihp98/minutiae | afb7feff33ef86a673f899006aded486964f18dc | [
"MIT"
] | null | null | null | CoarseNet/MinutiaeNet_utils.py | khaihp98/minutiae | afb7feff33ef86a673f899006aded486964f18dc | [
"MIT"
] | null | null | null | CoarseNet/MinutiaeNet_utils.py | khaihp98/minutiae | afb7feff33ef86a673f899006aded486964f18dc | [
"MIT"
] | null | null | null | import os
import glob
import shutil
import logging
import matplotlib.pyplot as plt
import numpy as np
from scipy import ndimage, misc, signal, spatial
from skimage.filters import gaussian, gabor_kernel
import cv2
import math
def mkdir(path):
if not os.path.exists(path):
os.makedirs(path)
def re_mkdir(p... | 32.785542 | 118 | 0.561921 | 4,177 | 27,212 | 3.523582 | 0.113239 | 0.020179 | 0.006523 | 0.011211 | 0.404335 | 0.320424 | 0.280473 | 0.266069 | 0.23597 | 0.215315 | 0 | 0.037862 | 0.283698 | 27,212 | 829 | 119 | 32.82509 | 0.717217 | 0.036748 | 0 | 0.255521 | 0 | 0 | 0.012039 | 0 | 0 | 0 | 0 | 0 | 0.006309 | 1 | 0.061514 | false | 0.014196 | 0.015773 | 0.003155 | 0.137224 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d3c9f4c940421bb8e75ec41e434f5dfd39d574c9 | 1,687 | py | Python | Android.py | ChakradharG/Sudoku-Core | 5963db235cecec4cc6682380c30b7af10a3c4d11 | [
"MIT"
] | null | null | null | Android.py | ChakradharG/Sudoku-Core | 5963db235cecec4cc6682380c30b7af10a3c4d11 | [
"MIT"
] | 1 | 2022-02-10T07:19:40.000Z | 2022-02-10T07:19:40.000Z | Android.py | ChakradharG/Sudoku-Solver | 5963db235cecec4cc6682380c30b7af10a3c4d11 | [
"MIT"
] | null | null | null | import os
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2' #To suppress warnings thrown by tensorflow
from time import sleep
import numpy as np
from cv2 import cv2
import pyautogui as pg
import Sudoku_Core as SC
import OCR
s = 513//9 #Size of board//9
fs = 25 #Size of the final image
def getBoard():
pg.click(266, 740)
sl... | 24.449275 | 109 | 0.653231 | 289 | 1,687 | 3.737024 | 0.487889 | 0.025926 | 0.018519 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065154 | 0.190279 | 1,687 | 68 | 110 | 24.808824 | 0.725476 | 0.166568 | 0 | 0.041667 | 0 | 0 | 0.063082 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.145833 | 0 | 0.25 | 0.041667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d3cc0f069903b9e861ac782e53bdcec6efa743dd | 3,332 | py | Python | challenge/utils/cancellation_code.py | AlonViz/IML.HUJI | 107f7c20b8bd64d41452e4a5b66abe843af7eb18 | [
"MIT"
] | null | null | null | challenge/utils/cancellation_code.py | AlonViz/IML.HUJI | 107f7c20b8bd64d41452e4a5b66abe843af7eb18 | [
"MIT"
] | null | null | null | challenge/utils/cancellation_code.py | AlonViz/IML.HUJI | 107f7c20b8bd64d41452e4a5b66abe843af7eb18 | [
"MIT"
] | null | null | null | import re
def process_cancellation_code(code):
regex_days_before = "^(([0-9]+)D)(([0-9]+)N|([0-9]+)P)"
regex_no_show = "(([0-9]+)P|([0-9]+)N)"
options = re.split("_", code)
final = []
for option in options:
days_match = re.match(regex_days_before, option)
if days_match:
... | 40.634146 | 117 | 0.680972 | 482 | 3,332 | 4.491701 | 0.195021 | 0.118245 | 0.032333 | 0.030023 | 0.398152 | 0.347806 | 0.181524 | 0.133949 | 0.079446 | 0.079446 | 0 | 0.0196 | 0.219088 | 3,332 | 81 | 118 | 41.135802 | 0.812452 | 0.120348 | 0 | 0.163636 | 0 | 0 | 0.019097 | 0.01875 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.018182 | 0 | 0.236364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d3cd8f9eafbfda626f2013905a1df1f02a7ae23e | 1,163 | py | Python | acronym/scoring.py | sigma67/acronym | b197d12aa843fbf0e74efb67361f74b8157cc3e1 | [
"MIT"
] | 340 | 2018-03-30T21:00:54.000Z | 2022-03-25T20:05:45.000Z | acronym/scoring.py | sigma67/acronym | b197d12aa843fbf0e74efb67361f74b8157cc3e1 | [
"MIT"
] | 12 | 2018-03-30T15:48:05.000Z | 2020-07-16T08:27:02.000Z | acronym/scoring.py | sigma67/acronym | b197d12aa843fbf0e74efb67361f74b8157cc3e1 | [
"MIT"
] | 29 | 2018-03-30T16:55:34.000Z | 2022-02-25T03:20:26.000Z | import re
regex = re.compile('[^a-zA-Z]')
def score_word(word, corpus=None):
word = regex.sub('', word) # leave only alpha
score = 0
consec_bonus = 2
for i, letter in enumerate(word):
if letter.islower():
continue
if i > 0 and word[i-1].upper():
score += conse... | 31.432432 | 97 | 0.575236 | 165 | 1,163 | 4.012121 | 0.406061 | 0.048338 | 0.039275 | 0.057402 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026316 | 0.313844 | 1,163 | 36 | 98 | 32.305556 | 0.803258 | 0.321582 | 0 | 0 | 0 | 0 | 0.013351 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.045455 | 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 |
d3ce5432cde433f90fde37eb3f5e56f8a23b111c | 7,698 | py | Python | appendix/auc_accuracy/train_nn_metric.py | rit-git/tagging | b075ce1553492be7088026b67f525a529bf03770 | [
"Apache-2.0"
] | 7 | 2020-11-21T03:45:34.000Z | 2022-03-25T00:40:20.000Z | appendix/auc_accuracy/train_nn_metric.py | rit-git/tagging | b075ce1553492be7088026b67f525a529bf03770 | [
"Apache-2.0"
] | null | null | null | appendix/auc_accuracy/train_nn_metric.py | rit-git/tagging | b075ce1553492be7088026b67f525a529bf03770 | [
"Apache-2.0"
] | 5 | 2020-09-21T15:07:21.000Z | 2021-06-02T20:25:36.000Z | import argparse
import os
import torch
import torch.nn as nn
from torchtext.data import TabularDataset, BucketIterator
from torchtext.data import Field
from torchtext.vocab import Vectors, GloVe
from tqdm import tqdm, trange
import sys
import os
sys.path.insert(0, "../../pyfunctor")
sys.path.insert(0, "../../model")
f... | 34.990909 | 99 | 0.587685 | 920 | 7,698 | 4.743478 | 0.222826 | 0.020623 | 0.038955 | 0.012832 | 0.211274 | 0.183547 | 0.156508 | 0.140926 | 0.123511 | 0.103346 | 0 | 0.01445 | 0.298779 | 7,698 | 219 | 100 | 35.150685 | 0.793998 | 0.031437 | 0 | 0.163743 | 0 | 0 | 0.076396 | 0 | 0 | 0 | 0 | 0 | 0.005848 | 1 | 0.011696 | false | 0 | 0.099415 | 0 | 0.122807 | 0.035088 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d3ce6f7210df816909e214cda327fef650ba334a | 1,566 | py | Python | setup.py | teamproserve/pinkopy | 48842ac26aff90728482f7cac2977f56d5fc579f | [
"MIT"
] | null | null | null | setup.py | teamproserve/pinkopy | 48842ac26aff90728482f7cac2977f56d5fc579f | [
"MIT"
] | null | null | null | setup.py | teamproserve/pinkopy | 48842ac26aff90728482f7cac2977f56d5fc579f | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from setuptools import setup, find_packages
import sys
try:
import pypandoc
readme = pypandoc.convert('README.md', 'rst')
except(IOError, ImportError):
with open('README.md') as f:
readme = f.read()
install_requires = [
'cachetools>=1.1.5',
'requests>=2.7.0',
'xm... | 27.964286 | 81 | 0.621328 | 174 | 1,566 | 5.522989 | 0.545977 | 0.079084 | 0.104058 | 0.108221 | 0.074922 | 0.074922 | 0 | 0 | 0 | 0 | 0 | 0.022259 | 0.225415 | 1,566 | 55 | 82 | 28.472727 | 0.769992 | 0.012771 | 0 | 0 | 0 | 0.020408 | 0.483495 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.081633 | 0 | 0.081633 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d3cf16476f10f947ae96e115903c726cd418feaf | 24,050 | py | Python | scss/extension/core.py | xen0n/pyScss | 86712d21fe7c3abdd7e593973fb35010422f1a41 | [
"MIT"
] | null | null | null | scss/extension/core.py | xen0n/pyScss | 86712d21fe7c3abdd7e593973fb35010422f1a41 | [
"MIT"
] | null | null | null | scss/extension/core.py | xen0n/pyScss | 86712d21fe7c3abdd7e593973fb35010422f1a41 | [
"MIT"
] | null | null | null | """Extension for built-in Sass functionality."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
from itertools import product
import math
import os.path
from pathlib import PurePosixPath
from six.moves import xrange
... | 27.052868 | 80 | 0.614012 | 3,314 | 24,050 | 4.359384 | 0.160229 | 0.048591 | 0.056482 | 0.011213 | 0.319859 | 0.280473 | 0.23645 | 0.213124 | 0.205233 | 0.18779 | 0 | 0.015437 | 0.251185 | 24,050 | 888 | 81 | 27.083333 | 0.786773 | 0.235925 | 0 | 0.349727 | 0 | 0 | 0.029911 | 0.001597 | 0 | 0 | 0 | 0.002252 | 0 | 1 | 0.131148 | false | 0.003643 | 0.025501 | 0.041894 | 0.324226 | 0.001821 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d3d143abd1287d1ebf9fec072e925b1f0bce15d1 | 21,407 | py | Python | capsule_em/experiment.py | jrmendeshurb/google-research | f9fa8cdd2fb77975b524371fd29df008b9dc6cf4 | [
"Apache-2.0"
] | 6 | 2019-12-16T04:23:57.000Z | 2021-12-09T14:17:14.000Z | capsule_em/experiment.py | jrmendeshurb/google-research | f9fa8cdd2fb77975b524371fd29df008b9dc6cf4 | [
"Apache-2.0"
] | 13 | 2020-01-28T22:19:53.000Z | 2022-02-10T00:39:26.000Z | capsule_em/experiment.py | ZachT1711/google-research | 662e6837a3efa0c40b11cb4122447c4b028d2115 | [
"Apache-2.0"
] | 1 | 2020-03-05T09:24:01.000Z | 2020-03-05T09:24:01.000Z | # coding=utf-8
# Copyright 2019 The Google Research 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 applicab... | 40.390566 | 95 | 0.633998 | 2,826 | 21,407 | 4.610403 | 0.156051 | 0.025328 | 0.049889 | 0.078594 | 0.52813 | 0.457671 | 0.404406 | 0.335789 | 0.308773 | 0.265331 | 0 | 0.017339 | 0.242958 | 21,407 | 529 | 96 | 40.466919 | 0.786622 | 0.08231 | 0 | 0.317073 | 0 | 0 | 0.189306 | 0.011414 | 0 | 0 | 0 | 0 | 0 | 1 | 0.015521 | false | 0 | 0.028825 | 0 | 0.050998 | 0.039911 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d3d4d6dda5b57fc2a5aa6672a9cd0393e4d62ee6 | 6,199 | py | Python | _Framework/Layer.py | isfopo/MacroPushScript | 46c440aa3f6325d8767e88252c5520d76a9fa634 | [
"MIT"
] | null | null | null | _Framework/Layer.py | isfopo/MacroPushScript | 46c440aa3f6325d8767e88252c5520d76a9fa634 | [
"MIT"
] | null | null | null | _Framework/Layer.py | isfopo/MacroPushScript | 46c440aa3f6325d8767e88252c5520d76a9fa634 | [
"MIT"
] | null | null | null | #Embedded file name: /Users/versonator/Jenkins/live/output/Live/mac_64_static/Release/python-bundle/MIDI Remote Scripts/_Framework/Layer.py
u"""
Module implementing a way to resource-based access to controls in an
unified interface dynamic.
"""
from __future__ import absolute_import, print_function, unicode_literals
fr... | 33.874317 | 139 | 0.658816 | 757 | 6,199 | 5.21004 | 0.265522 | 0.035497 | 0.021298 | 0.018256 | 0.131339 | 0.102941 | 0.066937 | 0.066937 | 0.066937 | 0.066937 | 0 | 0.000656 | 0.261978 | 6,199 | 182 | 140 | 34.06044 | 0.861421 | 0.247943 | 0 | 0.201754 | 0 | 0 | 0.030553 | 0 | 0 | 0 | 0 | 0 | 0.052632 | 1 | 0.140351 | false | 0.026316 | 0.078947 | 0.017544 | 0.377193 | 0.008772 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d3d6cda09c480bcbc5eba0a289993557df421803 | 1,529 | py | Python | src/retrieve_exons_sequence_genomes.py | naturalis/brassicaceae-hybseq-pipeline | b71462d308b8a4adbc370691bf085d44666914d7 | [
"MIT"
] | 5 | 2020-04-22T12:08:07.000Z | 2021-09-03T01:56:44.000Z | src/retrieve_exons_sequence_genomes.py | naturalis/brassicaceae-hybseq-pipeline | b71462d308b8a4adbc370691bf085d44666914d7 | [
"MIT"
] | 1 | 2020-09-16T11:29:15.000Z | 2020-09-16T11:29:15.000Z | src/retrieve_exons_sequence_genomes.py | naturalis/brassicaceae-hybseq-pipeline | b71462d308b8a4adbc370691bf085d44666914d7 | [
"MIT"
] | 1 | 2020-09-16T14:05:08.000Z | 2020-09-16T14:05:08.000Z | # retrieve_exons_sequence_genomes.py
# This script is to retrieve exons from sequenced genomes which are also present in the reference genome (A. thaliana).
# To identify the contigs from the sequenced genomes, each contig has to be retrieved from A. thaliana first.
# Then, for each sequence query of A. thaliana, the q... | 41.324324 | 119 | 0.743623 | 251 | 1,529 | 4.318725 | 0.426295 | 0.055351 | 0.073801 | 0.071956 | 0.281365 | 0.175277 | 0.175277 | 0.119926 | 0.119926 | 0.119926 | 0 | 0.006187 | 0.154349 | 1,529 | 36 | 120 | 42.472222 | 0.832173 | 0.380641 | 0 | 0 | 0 | 0.1 | 0.325507 | 0.191035 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.1 | 0 | 0.1 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d3d9c66d64ebac5543f8099d6066695442fe0072 | 11,392 | py | Python | pytorch/plane.py | NunoEdgarGFlowHub/autoregressive-energy-machines | eb5517a513cf4e99db674fa41170f018e212f1e2 | [
"MIT"
] | 83 | 2019-04-12T10:23:23.000Z | 2022-03-30T12:40:43.000Z | pytorch/plane.py | sten2lu/autoregressive-energy-machines | eb5517a513cf4e99db674fa41170f018e212f1e2 | [
"MIT"
] | null | null | null | pytorch/plane.py | sten2lu/autoregressive-energy-machines | eb5517a513cf4e99db674fa41170f018e212f1e2 | [
"MIT"
] | 11 | 2019-04-12T11:26:00.000Z | 2020-05-12T01:14:21.000Z | import argparse
import json
import numpy as np
import os
import torch
import data_
import models
import utils
from matplotlib import cm, pyplot as plt
from tensorboardX import SummaryWriter
from torch import optim
from torch.utils import data
from tqdm import tqdm
from utils import io
parser = argparse.ArgumentPars... | 39.147766 | 98 | 0.675298 | 1,484 | 11,392 | 4.930593 | 0.191375 | 0.03936 | 0.074347 | 0.01722 | 0.374334 | 0.280579 | 0.169058 | 0.127511 | 0.096624 | 0.085964 | 0 | 0.012709 | 0.212605 | 11,392 | 290 | 99 | 39.282759 | 0.80301 | 0.030372 | 0 | 0.06867 | 0 | 0 | 0.200762 | 0.036016 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.060086 | 0 | 0.060086 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d3d9fd962e6f2a91b7a5a73a99c81d54531258d8 | 2,266 | py | Python | music/music.py | spacerunaway/world_recoder | fcafe0d910511cfd043735cf451564febb558e40 | [
"MIT"
] | null | null | null | music/music.py | spacerunaway/world_recoder | fcafe0d910511cfd043735cf451564febb558e40 | [
"MIT"
] | null | null | null | music/music.py | spacerunaway/world_recoder | fcafe0d910511cfd043735cf451564febb558e40 | [
"MIT"
] | null | null | null | import sys
sys.path.append('../utils')
from utils import *
from doubly_linkedlist import *
def link_chords(chordprogression):
"""
Chord progression is a sequences of chords.
A valid linked_chords can be one of the following:
1: the chord name(str) in CHORD dict
2: the key(type Key)
and a music ... | 29.815789 | 98 | 0.573698 | 314 | 2,266 | 4.025478 | 0.292994 | 0.018987 | 0.025316 | 0.023734 | 0.115506 | 0.115506 | 0.099684 | 0.063291 | 0.046677 | 0.031646 | 0 | 0.01722 | 0.282436 | 2,266 | 75 | 99 | 30.213333 | 0.760148 | 0.362754 | 0 | 0.093023 | 0 | 0 | 0.006006 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.162791 | false | 0 | 0.069767 | 0 | 0.372093 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d3dcc92c42ee28b5565e1b1bdf3f0bd8727161d9 | 5,087 | py | Python | main.py | code-aifarmer/Python-EXE-maker | 4b7436353c9a0d46b52543304209b057dcac51c1 | [
"MIT"
] | 2 | 2021-01-26T10:19:15.000Z | 2021-06-27T03:38:00.000Z | main.py | code-aifarmer/Python-EXE-maker | 4b7436353c9a0d46b52543304209b057dcac51c1 | [
"MIT"
] | null | null | null | main.py | code-aifarmer/Python-EXE-maker | 4b7436353c9a0d46b52543304209b057dcac51c1 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import PySimpleGUI as sg
import cv2
import subprocess
import shutil
import os
import sys
# Demonstrates a number of PySimpleGUI features including:
# Default element size
# auto_size_buttons
# Button
# Dictionary return values
# update of elements in form (Text, Input)
def runCommand(cmd... | 38.832061 | 120 | 0.569294 | 603 | 5,087 | 4.693201 | 0.356551 | 0.039576 | 0.015901 | 0.025442 | 0.071378 | 0.071378 | 0.050177 | 0.030389 | 0.030389 | 0.030389 | 0 | 0.016823 | 0.287203 | 5,087 | 130 | 121 | 39.130769 | 0.763651 | 0.136819 | 0 | 0.106383 | 0 | 0 | 0.169418 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021277 | false | 0.010638 | 0.06383 | 0 | 0.095745 | 0.06383 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d3ddd574dde8899b673c876fe79246ef6fe9f23e | 938 | py | Python | data/objects/sample.py | predictive-analytics-lab/tiny-comparison-framework | 8ae482a2e69aa5affe94bcd7982e53ad69228d43 | [
"Apache-2.0"
] | null | null | null | data/objects/sample.py | predictive-analytics-lab/tiny-comparison-framework | 8ae482a2e69aa5affe94bcd7982e53ad69228d43 | [
"Apache-2.0"
] | null | null | null | data/objects/sample.py | predictive-analytics-lab/tiny-comparison-framework | 8ae482a2e69aa5affe94bcd7982e53ad69228d43 | [
"Apache-2.0"
] | null | null | null | from data.objects.data import Data
class Sample(Data):
"""
A way to sample from a dataset for testing purposes.
"""
def __init__(self, data, num = 100):
self.data = data
self.dataset_name = data.get_dataset_name()
self.class_attr = data.get_class_attribute()
self.positiv... | 42.636364 | 80 | 0.711087 | 122 | 938 | 5.106557 | 0.344262 | 0.089888 | 0.038523 | 0.048154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003995 | 0.19936 | 938 | 21 | 81 | 44.666667 | 0.825566 | 0.067164 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.0625 | 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 |
d3e0c86fec4a82ec7ab6e46d19afaf6635bc9e88 | 1,125 | py | Python | pycom_lopy4_LoRaBattMonitor/transmitter/main.py | AidanTek/Fab-Cre8_IoT | 3d358a484aea2e2a50d6dbef443e9a2757ef9ab8 | [
"MIT"
] | null | null | null | pycom_lopy4_LoRaBattMonitor/transmitter/main.py | AidanTek/Fab-Cre8_IoT | 3d358a484aea2e2a50d6dbef443e9a2757ef9ab8 | [
"MIT"
] | null | null | null | pycom_lopy4_LoRaBattMonitor/transmitter/main.py | AidanTek/Fab-Cre8_IoT | 3d358a484aea2e2a50d6dbef443e9a2757ef9ab8 | [
"MIT"
] | null | null | null | from machine import Pin, ADC
from network import LoRa
import socket
from utime import sleep
# Use a pin for a 'config' mode
configPin = Pin('P21', Pin.IN, Pin.PULL_UP)
# Create an ADC object
adc = ADC()
# vbatt pin:
vbatt = adc.channel(attn=1, pin='P16')
def battConversion():
adcVoltage = vbatt()
voltage = ... | 20.454545 | 59 | 0.686222 | 160 | 1,125 | 4.80625 | 0.49375 | 0.042913 | 0.028609 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048726 | 0.197333 | 1,125 | 54 | 60 | 20.833333 | 0.802879 | 0.2 | 0 | 0.096774 | 0 | 0 | 0.124719 | 0 | 0 | 0 | 0.026966 | 0 | 0 | 1 | 0.032258 | false | 0 | 0.129032 | 0 | 0.193548 | 0.193548 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d3e103df05be9ac935fd9148b0ac418dab33e33f | 7,209 | py | Python | scrapi/harvesters/lwbin.py | wearpants/scrapi | b1619a1212d9fc7e1f2247336fc2e4a3d453a4bb | [
"Apache-2.0"
] | 34 | 2015-10-06T20:08:43.000Z | 2022-03-16T12:46:24.000Z | scrapi/harvesters/lwbin.py | jgw4sq/twilio | 796e97dc6a8fdb8983fd736b328ad907bb1ff73e | [
"Apache-2.0"
] | 100 | 2015-09-10T19:57:32.000Z | 2016-06-22T03:09:51.000Z | scrapi/harvesters/lwbin.py | jgw4sq/twilio | 796e97dc6a8fdb8983fd736b328ad907bb1ff73e | [
"Apache-2.0"
] | 32 | 2015-09-09T21:28:54.000Z | 2019-05-09T03:18:02.000Z | """
A Lake Winnipeg Basin Information Network (BIN) harvester for the SHARE project
Example API request: http://130.179.67.140/api/3/action/package_search?q= (problematic)
http://130.179.67.140/api/3/action/current_package_list_with_resources (currently using)
It oddly returns 5 more datasets than all searchable ones ... | 36.226131 | 148 | 0.615758 | 851 | 7,209 | 5.106933 | 0.350176 | 0.009664 | 0.013806 | 0.016567 | 0.110907 | 0.067879 | 0.056374 | 0.056374 | 0.050621 | 0.025771 | 0 | 0.014866 | 0.262866 | 7,209 | 198 | 149 | 36.409091 | 0.802973 | 0.278541 | 0 | 0.104 | 0 | 0 | 0.192127 | 0.008617 | 0 | 0 | 0 | 0 | 0 | 1 | 0.064 | false | 0 | 0.064 | 0.008 | 0.264 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d3e3af31f72741b010fae28e3067fb84c2fb37ac | 1,028 | py | Python | tools/linear_algebra/preconditioners/Jacobi.py | mathischeap/mifem | 3242e253fb01ca205a76568eaac7bbdb99e3f059 | [
"MIT"
] | 1 | 2020-10-14T12:48:35.000Z | 2020-10-14T12:48:35.000Z | tools/linear_algebra/preconditioners/Jacobi.py | mathischeap/mifem | 3242e253fb01ca205a76568eaac7bbdb99e3f059 | [
"MIT"
] | null | null | null | tools/linear_algebra/preconditioners/Jacobi.py | mathischeap/mifem | 3242e253fb01ca205a76568eaac7bbdb99e3f059 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Jacobian preconditioner.
"""
from root.config.main import *
from scipy import sparse as spspa
from tools.linear_algebra.preconditioners.base import Preconditioner
class JacobiPreconditioner(Preconditioner):
""""""
def __init__(self, A):
""""""
super(JacobiPreconditio... | 25.073171 | 68 | 0.592412 | 121 | 1,028 | 4.752066 | 0.454545 | 0.052174 | 0.052174 | 0.055652 | 0.121739 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006766 | 0.281128 | 1,028 | 41 | 69 | 25.073171 | 0.771313 | 0.04572 | 0 | 0.148148 | 0 | 0 | 0.018692 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0.037037 | 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 |
d3e869c2c7fff869303aff8cf0f763aad3c88462 | 7,767 | py | Python | response_model/python/population_subunits/coarse/analysis/few_cells_tf_analyse_all.py | googlearchive/rgc-models | 0dea94bbd54f591d82d95169e33d40bb55b6be94 | [
"Apache-2.0"
] | 1 | 2018-09-18T16:47:09.000Z | 2018-09-18T16:47:09.000Z | response_model/python/population_subunits/coarse/analysis/few_cells_tf_analyse_all.py | google/rgc-models | 0dea94bbd54f591d82d95169e33d40bb55b6be94 | [
"Apache-2.0"
] | null | null | null | response_model/python/population_subunits/coarse/analysis/few_cells_tf_analyse_all.py | google/rgc-models | 0dea94bbd54f591d82d95169e33d40bb55b6be94 | [
"Apache-2.0"
] | 1 | 2022-01-12T12:44:17.000Z | 2022-01-12T12:44:17.000Z | # Copyright 2018 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 38.450495 | 143 | 0.624179 | 1,155 | 7,767 | 4.013853 | 0.250216 | 0.010354 | 0.00906 | 0.00604 | 0.204918 | 0.16113 | 0.140423 | 0.140423 | 0.11497 | 0.089085 | 0 | 0.056911 | 0.224025 | 7,767 | 201 | 144 | 38.641791 | 0.712295 | 0.19467 | 0 | 0.075188 | 0 | 0 | 0.122646 | 0.009979 | 0 | 0 | 0 | 0 | 0 | 1 | 0.007519 | false | 0 | 0.112782 | 0 | 0.120301 | 0.105263 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d3e9aaa50f57573a484dd6d782bbd14b01bbbceb | 2,074 | py | Python | wagtail/admin/views/pages/unpublish.py | brownaa/wagtail | c97bc56c6822eb1b6589d5c33e07f71acfc48845 | [
"BSD-3-Clause"
] | 8,851 | 2016-12-09T19:01:45.000Z | 2022-03-31T04:45:06.000Z | wagtail/admin/views/pages/unpublish.py | brownaa/wagtail | c97bc56c6822eb1b6589d5c33e07f71acfc48845 | [
"BSD-3-Clause"
] | 5,197 | 2016-12-09T19:24:37.000Z | 2022-03-31T22:17:55.000Z | wagtail/admin/views/pages/unpublish.py | brownaa/wagtail | c97bc56c6822eb1b6589d5c33e07f71acfc48845 | [
"BSD-3-Clause"
] | 2,548 | 2016-12-09T18:16:55.000Z | 2022-03-31T21:34:38.000Z | from django.core.exceptions import PermissionDenied
from django.shortcuts import get_object_or_404, redirect
from django.template.response import TemplateResponse
from django.urls import reverse
from django.utils.translation import gettext as _
from wagtail.admin import messages
from wagtail.admin.views.pages.utils im... | 37.709091 | 112 | 0.696721 | 248 | 2,074 | 5.580645 | 0.318548 | 0.030347 | 0.039017 | 0.020231 | 0.166185 | 0.166185 | 0.099711 | 0.099711 | 0.099711 | 0.099711 | 0 | 0.004248 | 0.2054 | 2,074 | 54 | 113 | 38.407407 | 0.835558 | 0 | 0 | 0.146341 | 0 | 0 | 0.108968 | 0.051109 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02439 | false | 0 | 0.219512 | 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 |
d3e9c1e71145908db6a37bf71e7072535569119d | 14,783 | py | Python | bcipy/display/rsvp/display.py | mberkanbicer/BciPy | c18878ad6fc4d1f69e2091b8f029f3b9ab9a923a | [
"MIT"
] | 32 | 2020-11-13T17:53:25.000Z | 2022-03-24T21:12:31.000Z | bcipy/display/rsvp/display.py | mberkanbicer/BciPy | c18878ad6fc4d1f69e2091b8f029f3b9ab9a923a | [
"MIT"
] | 20 | 2020-12-02T17:40:42.000Z | 2022-03-16T16:38:05.000Z | bcipy/display/rsvp/display.py | mberkanbicer/BciPy | c18878ad6fc4d1f69e2091b8f029f3b9ab9a923a | [
"MIT"
] | 10 | 2020-12-16T02:32:37.000Z | 2022-03-23T16:31:59.000Z | import logging
import os.path as path
from typing import List, Optional, Tuple
from psychopy import core, visual
from bcipy.acquisition.marker_writer import NullMarkerWriter, MarkerWriter
from bcipy.helpers.task import SPACE_CHAR
from bcipy.helpers.stimuli import resize_image
from bcipy.helpers.system_utils import ge... | 37.330808 | 102 | 0.558412 | 1,679 | 14,783 | 4.737344 | 0.162001 | 0.035957 | 0.022882 | 0.015841 | 0.205557 | 0.163188 | 0.093915 | 0.065753 | 0.054941 | 0.043626 | 0 | 0.007319 | 0.353041 | 14,783 | 395 | 103 | 37.425316 | 0.824341 | 0.232767 | 0 | 0.204348 | 0 | 0 | 0.032563 | 0.008721 | 0 | 0 | 0 | 0.002532 | 0 | 1 | 0.03913 | false | 0.004348 | 0.03913 | 0 | 0.1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d3eb09e186d2266dd713792bddd6301d09f60a0f | 6,372 | py | Python | data.py | zhaoyun630/R-NET-in-Keras | 425ed06ff5322cd5187b8e321865ab0459ec3825 | [
"MIT"
] | 207 | 2017-07-12T18:14:38.000Z | 2021-08-01T20:25:44.000Z | data.py | zhaoyun630/R-NET-in-Keras | 425ed06ff5322cd5187b8e321865ab0459ec3825 | [
"MIT"
] | 31 | 2017-08-20T08:30:48.000Z | 2021-03-03T17:47:46.000Z | data.py | zhaoyun630/R-NET-in-Keras | 425ed06ff5322cd5187b8e321865ab0459ec3825 | [
"MIT"
] | 102 | 2017-07-28T11:19:49.000Z | 2021-08-01T20:26:31.000Z | from __future__ import absolute_import
from __future__ import print_function
from __future__ import division
import numpy as np
import cPickle as pickle
from keras import backend as K
from keras.utils import np_utils
from keras.preprocessing import sequence
from random import shuffle
import itertools
def load_datas... | 31.701493 | 97 | 0.557439 | 770 | 6,372 | 4.448052 | 0.188312 | 0.021022 | 0.045547 | 0.037372 | 0.280584 | 0.224526 | 0.187445 | 0.160876 | 0.120876 | 0.120876 | 0 | 0.013081 | 0.352166 | 6,372 | 200 | 98 | 31.86 | 0.816618 | 0.080195 | 0 | 0.215827 | 0 | 0 | 0.003764 | 0 | 0 | 0 | 0 | 0 | 0.014388 | 1 | 0.071942 | false | 0 | 0.071942 | 0.021583 | 0.251799 | 0.014388 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d3ec165a9fa9c3cf83a87cdf6db9f7df86904452 | 1,528 | py | Python | src/app.py | UBC-MDS/dsci_532_group19 | 9814f8f3bc2cf95c5855becf2d92265b8a97893d | [
"MIT"
] | null | null | null | src/app.py | UBC-MDS/dsci_532_group19 | 9814f8f3bc2cf95c5855becf2d92265b8a97893d | [
"MIT"
] | 27 | 2022-02-15T01:08:06.000Z | 2022-03-18T23:49:45.000Z | src/app.py | UBC-MDS/dsci_532_group19 | 9814f8f3bc2cf95c5855becf2d92265b8a97893d | [
"MIT"
] | 2 | 2022-02-17T06:11:41.000Z | 2022-03-02T03:24:54.000Z | import dash
from dash import html
from dash import dcc
import dash_bootstrap_components as dbc
from dash.dependencies import Input, Output
from .layout import *
from .plot import *
# from layout import *
# from plot import *
app = dash.Dash(
__name__, external_stylesheets=[dbc.themes.BOOTSTRAP, "/css/button.css"... | 20.931507 | 76 | 0.655759 | 190 | 1,528 | 5.1 | 0.357895 | 0.049536 | 0.087719 | 0.094943 | 0.370485 | 0.296182 | 0.201238 | 0.201238 | 0.201238 | 0.152735 | 0 | 0.002417 | 0.187827 | 1,528 | 72 | 77 | 21.222222 | 0.778405 | 0.031414 | 0 | 0.150943 | 0 | 0 | 0.197154 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.09434 | false | 0 | 0.132075 | 0.075472 | 0.320755 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d3ed6b32008718ad48f1726c2f8858cca85dfe86 | 3,035 | py | Python | jaeger-cli/rpc.py | shwsun/jaeger-cli | cf8bb7a00184220c206ccd7468b89ce4ab5a706e | [
"Apache-2.0"
] | null | null | null | jaeger-cli/rpc.py | shwsun/jaeger-cli | cf8bb7a00184220c206ccd7468b89ce4ab5a706e | [
"Apache-2.0"
] | null | null | null | jaeger-cli/rpc.py | shwsun/jaeger-cli | cf8bb7a00184220c206ccd7468b89ce4ab5a706e | [
"Apache-2.0"
] | null | null | null | # Copyright 2018 MassOpenCloud.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agr... | 27.590909 | 80 | 0.725206 | 386 | 3,035 | 5.544041 | 0.419689 | 0.028037 | 0.035514 | 0.041122 | 0.12243 | 0.057944 | 0.057944 | 0.057944 | 0.057944 | 0.057944 | 0 | 0.00408 | 0.192422 | 3,035 | 109 | 81 | 27.844037 | 0.869033 | 0.36112 | 0 | 0.065574 | 0 | 0 | 0.186936 | 0.068508 | 0 | 0 | 0 | 0 | 0 | 1 | 0.081967 | false | 0.016393 | 0.213115 | 0.032787 | 0.42623 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d3ededa11ab3bf342dc8f952cbe323bf1951fb20 | 3,296 | py | Python | data_structure/tree/test_binarytree.py | lp1225/my_algorithm | c5995fd6ec8692a4f25280097b5c7f1459481b40 | [
"MIT"
] | 1 | 2019-07-03T16:23:09.000Z | 2019-07-03T16:23:09.000Z | data_structure/tree/test_binarytree.py | lp1225/my_algorithm | c5995fd6ec8692a4f25280097b5c7f1459481b40 | [
"MIT"
] | null | null | null | data_structure/tree/test_binarytree.py | lp1225/my_algorithm | c5995fd6ec8692a4f25280097b5c7f1459481b40 | [
"MIT"
] | null | null | null | # 搜索二叉树
from queue import Queue
class Node(object):
"""节点"""
def __init__(self, data):
self.data = data
self.node_left = None
self.node_right = None
class BinaryTree(object):
def __init__(self):
self.root = None
def insert(tree, node):
"""插入节点"""
if tree.... | 22.575342 | 58 | 0.531553 | 417 | 3,296 | 4.023981 | 0.170264 | 0.147795 | 0.092968 | 0.047676 | 0.159714 | 0.058403 | 0 | 0 | 0 | 0 | 0 | 0.006478 | 0.344357 | 3,296 | 145 | 59 | 22.731034 | 0.770014 | 0.096784 | 0 | 0.292929 | 0 | 0 | 0.002769 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.121212 | false | 0 | 0.010101 | 0 | 0.252525 | 0.060606 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d3eed0d68517bbf2b89eb59f3fef60d4cac6c141 | 703 | py | Python | Python-desenvolvimento/ex036.py | MarcosMaciel-MMRS/Desenvolvimento-python | 2b2fc54788da3ca110d495b9e80a494f2b31fb09 | [
"MIT"
] | null | null | null | Python-desenvolvimento/ex036.py | MarcosMaciel-MMRS/Desenvolvimento-python | 2b2fc54788da3ca110d495b9e80a494f2b31fb09 | [
"MIT"
] | null | null | null | Python-desenvolvimento/ex036.py | MarcosMaciel-MMRS/Desenvolvimento-python | 2b2fc54788da3ca110d495b9e80a494f2b31fb09 | [
"MIT"
] | null | null | null | #empréstimos bancários. pegue o valor da casa, o salario da pessoa e em quanto tempo ela quer pagar.
#se as parcelas ficarem acima de 30% do salario, negue o imprestimo.
casa = float(input('Informe o valor da casa: R$'))
salario = float(input('informe seu salario: R$'))
tempo = int(input('Em quanto tempo planeja ... | 58.583333 | 117 | 0.709815 | 113 | 703 | 4.415929 | 0.548673 | 0.024048 | 0.032064 | 0.048096 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018933 | 0.173542 | 703 | 11 | 118 | 63.909091 | 0.839931 | 0.344239 | 0 | 0 | 0 | 0.111111 | 0.536913 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d3f12db2d9a12b691dfde83d5ec0f772b55deb37 | 1,708 | py | Python | scripts/test_maths.py | paulscottrobson/Basic65816 | 167c25b1bbc2680f55acdf4bff771750acfe907c | [
"MIT"
] | null | null | null | scripts/test_maths.py | paulscottrobson/Basic65816 | 167c25b1bbc2680f55acdf4bff771750acfe907c | [
"MIT"
] | 4 | 2019-06-18T14:45:35.000Z | 2019-06-22T17:18:22.000Z | scripts/test_maths.py | paulscottrobson/Basic65816 | 167c25b1bbc2680f55acdf4bff771750acfe907c | [
"MIT"
] | 1 | 2021-03-18T04:31:44.000Z | 2021-03-18T04:31:44.000Z | # *******************************************************************************************
# *******************************************************************************************
#
# Name : test_maths.py
# Purpose : Create lots of variables/arrays and arithmetic/bitwise.
# Date : 10th June 2019
# Author... | 26.6875 | 93 | 0.466042 | 193 | 1,708 | 4.07772 | 0.466321 | 0.022872 | 0.040661 | 0.060991 | 0.124524 | 0.124524 | 0.124524 | 0.124524 | 0.124524 | 0.124524 | 0 | 0.036338 | 0.162178 | 1,708 | 63 | 94 | 27.111111 | 0.513627 | 0.308548 | 0 | 0.065217 | 0 | 0 | 0.087329 | 0 | 0 | 0 | 0.010274 | 0 | 0.043478 | 1 | 0.021739 | false | 0 | 0.043478 | 0 | 0.23913 | 0.021739 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d3f5e1c2b805610da261a12d23a2c36165256863 | 4,086 | py | Python | examples/transformer/model.py | namin/dm-haiku | 7ddb4776761a7220031c6b323fa6f797bb02f75c | [
"Apache-2.0"
] | null | null | null | examples/transformer/model.py | namin/dm-haiku | 7ddb4776761a7220031c6b323fa6f797bb02f75c | [
"Apache-2.0"
] | null | null | null | examples/transformer/model.py | namin/dm-haiku | 7ddb4776761a7220031c6b323fa6f797bb02f75c | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 DeepMind Technologies Limited. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by ... | 32.428571 | 80 | 0.634606 | 578 | 4,086 | 4.288927 | 0.3391 | 0.048407 | 0.029044 | 0.011295 | 0.14522 | 0.091166 | 0.078257 | 0.078257 | 0.078257 | 0.019363 | 0 | 0.007085 | 0.240088 | 4,086 | 125 | 81 | 32.688 | 0.791304 | 0.286588 | 0 | 0.082192 | 0 | 0 | 0.025704 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.082192 | false | 0 | 0.068493 | 0 | 0.246575 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d3f792b947cbc2077ccc06bcee6654417c6fd2ce | 7,827 | py | Python | face.py | shwang95/Intelligence-Surveillance-System | f7107096b447e929c36808c341ff91b0b5f49010 | [
"MIT"
] | 1 | 2018-04-01T18:25:44.000Z | 2018-04-01T18:25:44.000Z | face.py | shwang95/Intelligence-Surveillance-System | f7107096b447e929c36808c341ff91b0b5f49010 | [
"MIT"
] | null | null | null | face.py | shwang95/Intelligence-Surveillance-System | f7107096b447e929c36808c341ff91b0b5f49010 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import boto3
import cv2
import numpy
import os
import base64
import gspread
from email.mime.base import MIMEBase
from email.mime.image import MIMEImage
from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText
from httplib2 import Http
from time import localtime, strftim... | 33.592275 | 80 | 0.536093 | 812 | 7,827 | 5.084975 | 0.337438 | 0.024219 | 0.012594 | 0.013563 | 0.09179 | 0.055219 | 0.040203 | 0.024703 | 0 | 0 | 0 | 0.011871 | 0.365019 | 7,827 | 232 | 81 | 33.737069 | 0.818913 | 0.119331 | 0 | 0.117284 | 0 | 0 | 0.104834 | 0.007543 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04321 | false | 0 | 0.111111 | 0 | 0.185185 | 0.049383 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d3f7c63f805726000751c5b956986db551d0d877 | 8,480 | py | Python | unpythonic/syntax/autoref.py | aisha-w/unpythonic | 0f63abf6ac7efb7304b676d0e1ebce0ef4040438 | [
"BSD-2-Clause"
] | null | null | null | unpythonic/syntax/autoref.py | aisha-w/unpythonic | 0f63abf6ac7efb7304b676d0e1ebce0ef4040438 | [
"BSD-2-Clause"
] | null | null | null | unpythonic/syntax/autoref.py | aisha-w/unpythonic | 0f63abf6ac7efb7304b676d0e1ebce0ef4040438 | [
"BSD-2-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""Implicitly reference attributes of an object."""
from ast import Name, Assign, Load, Call, Lambda, With, Str, arg, \
Attribute, Subscript, Store, Del
from macropy.core.quotes import macros, q, u, name, ast_literal
from macropy.core.hquotes import macros, hq
from macropy.core... | 51.393939 | 122 | 0.604481 | 1,247 | 8,480 | 4.012029 | 0.231756 | 0.010794 | 0.029982 | 0.028783 | 0.275435 | 0.197681 | 0.170698 | 0.137318 | 0.137318 | 0.136718 | 0 | 0.023982 | 0.252594 | 8,480 | 164 | 123 | 51.707317 | 0.765383 | 0.482665 | 0 | 0.094118 | 0 | 0 | 0.055556 | 0 | 0 | 0 | 0 | 0 | 0.035294 | 1 | 0.117647 | false | 0 | 0.094118 | 0.035294 | 0.341176 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d3fd7d52c6c44f8af7fa618793093cc47061e14f | 17,358 | py | Python | python/redmonster/tools/plot_fits.py | timahutchinson/redmonster | 73adfb20213b89e43b950eb6a7f6525f3d11cec4 | [
"CNRI-Python"
] | 5 | 2017-03-22T21:29:40.000Z | 2022-03-24T16:02:21.000Z | python/redmonster/tools/plot_fits.py | timahutchinson/redmonster | 73adfb20213b89e43b950eb6a7f6525f3d11cec4 | [
"CNRI-Python"
] | 4 | 2016-06-24T10:50:23.000Z | 2016-11-09T19:48:00.000Z | python/redmonster/tools/plot_fits.py | timahutchinson/redmonster | 73adfb20213b89e43b950eb6a7f6525f3d11cec4 | [
"CNRI-Python"
] | 6 | 2016-06-21T16:52:34.000Z | 2020-03-12T05:24:14.000Z | # GUI used for quickly plotting BOSS spectra. Also allows overplotting of best-fit template as
# determined by redmonster pipeline. Sort of a redmonster version of plotspec.pro, though currently
# with less bells and whistles.
#
# Tim Hutchinson, University of Utah, April 2014
# Signifcantly updated by TH, October 20... | 47.04065 | 100 | 0.44625 | 1,880 | 17,358 | 4.07234 | 0.158511 | 0.039969 | 0.028866 | 0.019592 | 0.539446 | 0.503527 | 0.490465 | 0.454415 | 0.446708 | 0.442529 | 0 | 0.038663 | 0.417387 | 17,358 | 368 | 101 | 47.168478 | 0.718382 | 0.02604 | 0 | 0.373529 | 0 | 0 | 0.074359 | 0.035877 | 0 | 0 | 0 | 0 | 0 | 1 | 0.020588 | false | 0 | 0.038235 | 0 | 0.064706 | 0.002941 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d3fe4ecd726c46ffcb95a62b678fd7cd36fc2ddd | 565 | py | Python | QueueReconstruction.py | yashpatel0369/PythonDataStructures | 4839150c9eb4882e975859084d6b3787c72ce5f3 | [
"MIT"
] | null | null | null | QueueReconstruction.py | yashpatel0369/PythonDataStructures | 4839150c9eb4882e975859084d6b3787c72ce5f3 | [
"MIT"
] | null | null | null | QueueReconstruction.py | yashpatel0369/PythonDataStructures | 4839150c9eb4882e975859084d6b3787c72ce5f3 | [
"MIT"
] | 1 | 2020-10-01T03:53:22.000Z | 2020-10-01T03:53:22.000Z | # An algorithm to reconstruct the queue.
# Suppose you have a random list of people standing in a queue.
# Each person is described by a pair of integers (h,k), where h is the height of the person and k is the number of people in front of this person who have a height greater than or equal to h.
class Solution:
de... | 43.461538 | 191 | 0.644248 | 93 | 565 | 3.913978 | 0.569892 | 0.027473 | 0.06044 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007246 | 0.267257 | 565 | 12 | 192 | 47.083333 | 0.871981 | 0.513274 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
d3ffbfb469a902f14133370371345f427175f9fd | 9,046 | py | Python | tests/unit/test_HashlistsByAlgLoaderThread.py | AntonKuzminRussia/hbs-cli | a4109adeb7f4fe3b1d85b29f90c3f2329a8c4153 | [
"MIT"
] | 5 | 2016-07-13T18:21:57.000Z | 2018-03-15T21:35:30.000Z | tests/unit/test_HashlistsByAlgLoaderThread.py | AntonKuzminRussia/hbs-cli | a4109adeb7f4fe3b1d85b29f90c3f2329a8c4153 | [
"MIT"
] | null | null | null | tests/unit/test_HashlistsByAlgLoaderThread.py | AntonKuzminRussia/hbs-cli | a4109adeb7f4fe3b1d85b29f90c3f2329a8c4153 | [
"MIT"
] | 2 | 2016-12-04T01:06:03.000Z | 2018-09-01T17:44:14.000Z | # -*- coding: utf-8 -*-
"""
This is part of HashBruteStation software
Docs EN: http://hack4sec.pro/wiki/index.php/Hash_Brute_Station_en
Docs RU: http://hack4sec.pro/wiki/index.php/Hash_Brute_Station
License: MIT
Copyright (c) Anton Kuzmin <http://anton-kuzmin.ru> (ru) <http://anton-kuzmin.pro> (en)
Integration tests f... | 38.330508 | 116 | 0.64371 | 1,296 | 9,046 | 4.128086 | 0.109568 | 0.064112 | 0.055514 | 0.04486 | 0.782804 | 0.69757 | 0.666542 | 0.624112 | 0.539252 | 0.40785 | 0 | 0.025467 | 0.21866 | 9,046 | 235 | 117 | 38.493617 | 0.731466 | 0.125028 | 0 | 0.319728 | 0 | 0 | 0.10876 | 0 | 0 | 0 | 0 | 0 | 0.210884 | 1 | 0.122449 | false | 0 | 0.047619 | 0 | 0.197279 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
31003c512b10b0b0ca56e1c7ca80af3e0e177a3f | 2,662 | py | Python | simple_ddl_parser/tokens.py | burakuyar/simple-ddl-parser | f5714e0947a7cb48c202a91969b6e6d0d9a64d24 | [
"MIT"
] | 46 | 2021-03-07T02:21:29.000Z | 2022-03-24T12:45:03.000Z | simple_ddl_parser/tokens.py | burakuyar/simple-ddl-parser | f5714e0947a7cb48c202a91969b6e6d0d9a64d24 | [
"MIT"
] | 53 | 2021-03-08T08:50:00.000Z | 2022-03-29T06:11:13.000Z | simple_ddl_parser/tokens.py | burakuyar/simple-ddl-parser | f5714e0947a7cb48c202a91969b6e6d0d9a64d24 | [
"MIT"
] | 12 | 2021-06-21T16:14:17.000Z | 2022-03-25T13:52:35.000Z | # statements that used at the start of defenition or in statements without columns
defenition_statements = {
"DROP": "DROP",
"CREATE": "CREATE",
"TABLE": "TABLE",
"DATABASE": "DATABASE",
"SCHEMA": "SCHEMA",
"ALTER": "ALTER",
"TYPE": "TYPE",
"DOMAIN": "DOMAIN",
"REPLACE": "REPLACE",
... | 22.752137 | 82 | 0.545079 | 237 | 2,662 | 6.021097 | 0.455696 | 0.044849 | 0.025228 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.236289 | 2,662 | 116 | 83 | 22.948276 | 0.701918 | 0.03982 | 0 | 0.038095 | 0 | 0 | 0.388235 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
3100684d54c98a60b6eb64626957c2c118c7564c | 7,715 | py | Python | rmexp/worker.py | junjuew/scalable-edge-native-applications | 1ace9ce71bef267880049633160e7cb74c57bddb | [
"Apache-2.0"
] | 1 | 2021-05-12T12:49:15.000Z | 2021-05-12T12:49:15.000Z | rmexp/worker.py | junjuew/scalable-edge-native-applications | 1ace9ce71bef267880049633160e7cb74c57bddb | [
"Apache-2.0"
] | null | null | null | rmexp/worker.py | junjuew/scalable-edge-native-applications | 1ace9ce71bef267880049633160e7cb74c57bddb | [
"Apache-2.0"
] | 1 | 2021-11-21T08:12:19.000Z | 2021-11-21T08:12:19.000Z | from __future__ import absolute_import, division, print_function
import json
import logging
import os
import time
import importlib
import multiprocessing
import cv2
import fire
import logzero
from logzero import logger
import numpy as np
from rmexp import config, cvutils, dbutils, gabriel_pb2, client
from rmexp.sche... | 31.748971 | 125 | 0.564485 | 910 | 7,715 | 4.585714 | 0.261538 | 0.021088 | 0.009585 | 0.015097 | 0.156482 | 0.129883 | 0.088186 | 0.071891 | 0.032111 | 0.032111 | 0 | 0.012018 | 0.331303 | 7,715 | 242 | 126 | 31.880165 | 0.79686 | 0.135839 | 0 | 0.211111 | 0 | 0 | 0.054396 | 0.003504 | 0 | 0 | 0 | 0 | 0.005556 | 1 | 0.044444 | false | 0 | 0.088889 | 0 | 0.15 | 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 |
3101d908081b56ffdf8894a573c86a99a80dea01 | 1,650 | py | Python | kmp.py | mutux/kmp | 9fa87296a79716a22344314d1a19f53833df5b41 | [
"MIT"
] | 3 | 2017-09-23T09:59:23.000Z | 2022-02-25T16:59:05.000Z | kmp.py | mutux/kmp | 9fa87296a79716a22344314d1a19f53833df5b41 | [
"MIT"
] | null | null | null | kmp.py | mutux/kmp | 9fa87296a79716a22344314d1a19f53833df5b41 | [
"MIT"
] | 2 | 2019-04-24T04:30:39.000Z | 2019-12-03T14:05:33.000Z | def kmp(P, T):
# Compute the start position (number of chars) of the longest suffix that matches a prefix,
# and store them into list K, the first element of K is set to be -1, the second
#
K = [] # K[t] store the value that when mismatch happens at t, should move Pattern P K[t] characters ahead
t ... | 55 | 145 | 0.621212 | 287 | 1,650 | 3.543554 | 0.337979 | 0.007866 | 0.044248 | 0.017699 | 0.019666 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01519 | 0.281818 | 1,650 | 29 | 146 | 56.896552 | 0.843038 | 0.641818 | 0 | 0.190476 | 0 | 0 | 0.114983 | 0.059233 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0 | 0 | 0.047619 | 0.095238 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
310343fbd38310545ea02277eee138c31da84d40 | 292 | py | Python | scripts/words_gen.py | andybui01/Bloom | 20cc1bbb03f84c6f96a191f92e596013c9ac2da9 | [
"MIT"
] | null | null | null | scripts/words_gen.py | andybui01/Bloom | 20cc1bbb03f84c6f96a191f92e596013c9ac2da9 | [
"MIT"
] | null | null | null | scripts/words_gen.py | andybui01/Bloom | 20cc1bbb03f84c6f96a191f92e596013c9ac2da9 | [
"MIT"
] | null | null | null | import random
import sys
# usage: python3 words_gen.py > list.txt
N = int(sys.argv[1]) # how many words should be in the resulting list
with open("scripts/words.txt", "r") as f:
words = f.readlines()
for i in range(N):
print(words[random.randint(0, 466550 - 1)].rstrip())
| 22.461538 | 69 | 0.657534 | 49 | 292 | 3.897959 | 0.734694 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042918 | 0.202055 | 292 | 12 | 70 | 24.333333 | 0.776824 | 0.291096 | 0 | 0 | 0 | 0 | 0.088235 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 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 |
31042f7232eebc872883e4144e0716776054ead0 | 14,601 | py | Python | rmgpy/kinetics/chebyshevTest.py | pm15ma/RMG-Py | ca2f663c711ec45012afc911138716aaf0049296 | [
"MIT"
] | 1 | 2020-10-14T12:01:47.000Z | 2020-10-14T12:01:47.000Z | rmgpy/kinetics/chebyshevTest.py | pm15ma/RMG-Py | ca2f663c711ec45012afc911138716aaf0049296 | [
"MIT"
] | null | null | null | rmgpy/kinetics/chebyshevTest.py | pm15ma/RMG-Py | ca2f663c711ec45012afc911138716aaf0049296 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
###############################################################################
# #
# RMG - Reaction Mechanism Generator #
# ... | 43.455357 | 120 | 0.562496 | 1,729 | 14,601 | 4.689416 | 0.198381 | 0.088185 | 0.049334 | 0.055254 | 0.608165 | 0.570794 | 0.538727 | 0.513814 | 0.457079 | 0.444869 | 0 | 0.058515 | 0.295391 | 14,601 | 335 | 121 | 43.585075 | 0.729588 | 0.228546 | 0 | 0.516588 | 0 | 0 | 0.026622 | 0 | 0 | 0 | 0 | 0 | 0.21327 | 1 | 0.07109 | false | 0 | 0.028436 | 0 | 0.104265 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
31048c01335723cf99267bce9b58d406c5d4fced | 3,230 | py | Python | SceneDistribution_Blender/Source/__init__.py | FilmakademieRnd/v-p-e-t | d7dd8efb6d4aa03784e1bb4f941d2bcef919f28b | [
"MIT"
] | 62 | 2016-10-12T17:29:37.000Z | 2022-02-27T01:24:48.000Z | SceneDistribution_Blender/Source/__init__.py | FilmakademieRnd/v-p-e-t | d7dd8efb6d4aa03784e1bb4f941d2bcef919f28b | [
"MIT"
] | 75 | 2017-01-05T12:02:43.000Z | 2021-04-06T19:07:50.000Z | SceneDistribution_Blender/Source/__init__.py | FilmakademieRnd/v-p-e-t | d7dd8efb6d4aa03784e1bb4f941d2bcef919f28b | [
"MIT"
] | 16 | 2016-10-12T17:29:42.000Z | 2021-12-01T17:27:33.000Z | """
-----------------------------------------------------------------------------
This source file is part of VPET - Virtual Production Editing Tools
http://vpet.research.animationsinstitut.de/
http://github.com/FilmakademieRnd/VPET
Copyright (c) 2021 Filmakademie Baden-Wuerttemberg, Animationsinstitut R&D Lab
This p... | 37.55814 | 96 | 0.71517 | 404 | 3,230 | 5.64604 | 0.45297 | 0.013152 | 0.042087 | 0.024551 | 0.076282 | 0.050855 | 0.030688 | 0.030688 | 0.030688 | 0.030688 | 0 | 0.011177 | 0.16904 | 3,230 | 86 | 97 | 37.55814 | 0.838674 | 0.56904 | 0 | 0.190476 | 0 | 0 | 0.150109 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.285714 | 0 | 0.333333 | 0.119048 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
310520cb4491a27df4f8da00ca88e83d5b43b0ea | 3,453 | py | Python | defences/CIFAR10/standard_training.py | calinbiberea/imperial-individual-project | 86f224f183b8348d21b4c7a4aed408cd1ca41df1 | [
"MIT"
] | null | null | null | defences/CIFAR10/standard_training.py | calinbiberea/imperial-individual-project | 86f224f183b8348d21b4c7a4aed408cd1ca41df1 | [
"MIT"
] | null | null | null | defences/CIFAR10/standard_training.py | calinbiberea/imperial-individual-project | 86f224f183b8348d21b4c7a4aed408cd1ca41df1 | [
"MIT"
] | null | null | null | # Unlike the other datasets, CIFAR-10 uses ResNet and suffers from
# a variety of problems, including exploding gradients
import torch
import torch.nn as nn
from tqdm.notebook import tnrange, tqdm
# For loading model sanely
import os.path
import sys
# This here actually adds the path
sys.path.append("../../")
import ... | 30.026087 | 87 | 0.645815 | 424 | 3,453 | 5.113208 | 0.42217 | 0.071956 | 0.03321 | 0.024908 | 0.083026 | 0.083026 | 0.051661 | 0.051661 | 0.051661 | 0 | 0 | 0.016773 | 0.274833 | 3,453 | 115 | 88 | 30.026087 | 0.849042 | 0.247611 | 0 | 0.078125 | 0 | 0 | 0.079612 | 0.015146 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03125 | false | 0 | 0.09375 | 0 | 0.140625 | 0.09375 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
31052f39ded0bd3a3116064ecf6b648965c83185 | 4,510 | py | Python | src/romt/manifest.py | hehaoqian/romt | 02d5d3f10f22883e277a319e19c199e349b1c8e5 | [
"MIT"
] | 29 | 2020-05-09T17:06:06.000Z | 2022-03-30T16:18:01.000Z | src/romt/manifest.py | hehaoqian/romt | 02d5d3f10f22883e277a319e19c199e349b1c8e5 | [
"MIT"
] | 12 | 2020-05-23T13:10:51.000Z | 2022-03-27T21:48:18.000Z | src/romt/manifest.py | hehaoqian/romt | 02d5d3f10f22883e277a319e19c199e349b1c8e5 | [
"MIT"
] | 9 | 2020-10-15T17:07:13.000Z | 2022-03-13T18:47:25.000Z | #!/usr/bin/env python3
# coding=utf-8
import copy
from pathlib import Path
from typing import (
Any,
Generator,
Iterable,
List,
MutableMapping,
Optional,
)
import toml
from romt import error
def target_matches_any(target: str, expected_targets: Iterable[str]) -> bool:
if target == "*":
... | 30.268456 | 79 | 0.595787 | 531 | 4,510 | 4.905838 | 0.216573 | 0.033781 | 0.026871 | 0.018426 | 0.206526 | 0.176583 | 0.155854 | 0.131286 | 0.099808 | 0.099808 | 0 | 0.027761 | 0.281153 | 4,510 | 148 | 80 | 30.472973 | 0.775756 | 0.094235 | 0 | 0.144144 | 0 | 0 | 0.054094 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.189189 | false | 0 | 0.045045 | 0.081081 | 0.414414 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
31079504b1f3b5dee16171b9a8d5ac6fd490a1d8 | 1,327 | py | Python | plextraktsync/commands/unmatched.py | RoyXiang/PlexTraktSync | 3f8d42448a3ba335d547e317dc8ca40c9ef6313e | [
"MIT"
] | null | null | null | plextraktsync/commands/unmatched.py | RoyXiang/PlexTraktSync | 3f8d42448a3ba335d547e317dc8ca40c9ef6313e | [
"MIT"
] | null | null | null | plextraktsync/commands/unmatched.py | RoyXiang/PlexTraktSync | 3f8d42448a3ba335d547e317dc8ca40c9ef6313e | [
"MIT"
] | null | null | null | import click
from plextraktsync.commands.login import ensure_login
from plextraktsync.factory import factory
from plextraktsync.walker import WalkConfig, Walker
def unmatched(no_progress_bar: bool, local: bool):
config = factory.run_config().update(progressbar=not no_progress_bar)
ensure_login()
plex = f... | 28.847826 | 84 | 0.602864 | 172 | 1,327 | 4.552326 | 0.418605 | 0.045977 | 0.02682 | 0.033206 | 0.066411 | 0.066411 | 0.066411 | 0 | 0 | 0 | 0 | 0.003135 | 0.278824 | 1,327 | 45 | 85 | 29.488889 | 0.815047 | 0 | 0 | 0.105263 | 0 | 0 | 0.120573 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.026316 | false | 0 | 0.105263 | 0 | 0.157895 | 0.210526 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
31084212e6f6b3216d28d48c58d75e7c0f29d92d | 1,940 | py | Python | montepython/likelihoods/covfefe/__init__.py | Maquiner/Monte_Python_2CCL | 900d362def8f0b3607645f911b2fac0f102d6700 | [
"MIT"
] | 1 | 2018-04-29T06:48:35.000Z | 2018-04-29T06:48:35.000Z | montepython/likelihoods/covfefe/__init__.py | Maquiner/Monte_Python_2CCL | 900d362def8f0b3607645f911b2fac0f102d6700 | [
"MIT"
] | null | null | null | montepython/likelihoods/covfefe/__init__.py | Maquiner/Monte_Python_2CCL | 900d362def8f0b3607645f911b2fac0f102d6700 | [
"MIT"
] | 2 | 2019-10-11T09:46:35.000Z | 2019-12-05T14:55:04.000Z | import os
import numpy as np
from montepython.likelihood_class import Likelihood
import montepython.io_mp as io_mp
import warnings
import ccl_tools as tools
import pyccl as ccl
class covfefe(Likelihood):
# initialization routine
def __init__(self, path, data, command_line):
Likelihood.__init__(sel... | 29.393939 | 99 | 0.615464 | 286 | 1,940 | 3.996504 | 0.27972 | 0.062992 | 0.041995 | 0.062992 | 0.31671 | 0.250219 | 0.202975 | 0.202975 | 0.174103 | 0.174103 | 0 | 0.012952 | 0.243814 | 1,940 | 65 | 100 | 29.846154 | 0.76619 | 0.078866 | 0 | 0 | 0 | 0 | 0.0574 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.054054 | false | 0 | 0.189189 | 0 | 0.297297 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
3109cfe9dfb7d000bea9fd6f0dead3f4122daff9 | 1,156 | py | Python | tests/integration/web3/conftest.py | cducrest/eth-tester-rpc | f34dcce2b4110010e3b54531a5cd8add4df43beb | [
"MIT"
] | 3 | 2018-08-09T08:33:30.000Z | 2021-10-06T15:05:57.000Z | tests/integration/web3/conftest.py | cducrest/eth-tester-rpc | f34dcce2b4110010e3b54531a5cd8add4df43beb | [
"MIT"
] | 11 | 2018-09-15T18:58:24.000Z | 2020-11-30T17:00:46.000Z | tests/integration/web3/conftest.py | cducrest/eth-tester-rpc | f34dcce2b4110010e3b54531a5cd8add4df43beb | [
"MIT"
] | 3 | 2018-09-24T13:47:23.000Z | 2020-11-25T16:39:08.000Z | from eth_utils import (
to_bytes,
)
from eth_utils.toolz import (
identity,
)
import pytest
from web3._utils.module_testing.emitter_contract import (
CONTRACT_EMITTER_ABI,
CONTRACT_EMITTER_CODE,
)
from web3._utils.module_testing.math_contract import (
MATH_ABI,
MATH_BYTECODE,
)
from web3._utils.... | 25.130435 | 98 | 0.772491 | 147 | 1,156 | 5.741497 | 0.22449 | 0.159953 | 0.135071 | 0.113744 | 0.422986 | 0.298578 | 0.298578 | 0.298578 | 0.184834 | 0 | 0 | 0.009045 | 0.139273 | 1,156 | 45 | 99 | 25.688889 | 0.839196 | 0 | 0 | 0.162162 | 0 | 0 | 0.020761 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.108108 | false | 0 | 0.162162 | 0.027027 | 0.378378 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
310c2ef28341d61c8889cc1642f625b5908d2dd0 | 24,120 | py | Python | idc/settings.py | fedorov/IDC-WebApp | a2e2ef492d6d227c1b617e0da2a77a710e5415a6 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | idc/settings.py | fedorov/IDC-WebApp | a2e2ef492d6d227c1b617e0da2a77a710e5415a6 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | idc/settings.py | fedorov/IDC-WebApp | a2e2ef492d6d227c1b617e0da2a77a710e5415a6 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | ###
# Copyright 2015-2020, Institute for Systems Biology
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable la... | 37.628705 | 165 | 0.651368 | 2,871 | 24,120 | 5.259491 | 0.244514 | 0.050066 | 0.06596 | 0.013245 | 0.185099 | 0.137483 | 0.087682 | 0.075762 | 0.057881 | 0.036291 | 0 | 0.005785 | 0.183043 | 24,120 | 640 | 166 | 37.6875 | 0.760518 | 0.227985 | 0 | 0.103093 | 0 | 0.002577 | 0.365466 | 0.176387 | 0 | 0 | 0 | 0.001563 | 0 | 1 | 0.007732 | false | 0.028351 | 0.028351 | 0.005155 | 0.043814 | 0.023196 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
310f1e6f71fa93dea9a16a0f58d9908f5ecbe8c1 | 15,870 | py | Python | pylabnet/hardware/counter/swabian_instruments/qudi/slow_ctr.py | wi11dey/pylabnet | a6e3362f727c45aaa60e61496e858ae92e85574d | [
"MIT"
] | 10 | 2020-01-07T23:28:49.000Z | 2022-02-02T19:09:17.000Z | pylabnet/hardware/counter/swabian_instruments/qudi/slow_ctr.py | wi11dey/pylabnet | a6e3362f727c45aaa60e61496e858ae92e85574d | [
"MIT"
] | 249 | 2019-12-28T19:38:49.000Z | 2022-03-28T16:45:32.000Z | pylabnet/hardware/counter/swabian_instruments/qudi/slow_ctr.py | wi11dey/pylabnet | a6e3362f727c45aaa60e61496e858ae92e85574d | [
"MIT"
] | 5 | 2020-11-17T19:45:10.000Z | 2022-01-04T18:07:04.000Z | """ pylabnet measurement and service classes for Swabian Instruments TimeTagger
which implements qudi's SlowCounter interface.
This file contains pylabnet wrapper and service classes to allow qudi to
access Swabian Instruments TT through pylabnet network as SlowCounter.
Steps:
- instantiate TimeTagger
- instantiate p... | 36.65127 | 120 | 0.60189 | 1,836 | 15,870 | 5.044662 | 0.1939 | 0.028504 | 0.014252 | 0.00691 | 0.454653 | 0.398834 | 0.350788 | 0.347657 | 0.340099 | 0.333837 | 0 | 0.005378 | 0.332199 | 15,870 | 432 | 121 | 36.736111 | 0.86856 | 0.587335 | 0 | 0.310924 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.12605 | false | 0.008403 | 0.042017 | 0 | 0.378151 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
310f4d83fe0811735557a3547fef59abd4752a52 | 174,167 | py | Python | dev0s/classes/defaults/files.py | vandenberghinc/dev0s | 1c9629e2a81ad111fd3e74929aaeb05c97be0276 | [
"MIT"
] | 1 | 2021-03-09T20:14:29.000Z | 2021-03-09T20:14:29.000Z | dev0s/classes/defaults/files.py | vandenberghinc/dev0s | 1c9629e2a81ad111fd3e74929aaeb05c97be0276 | [
"MIT"
] | null | null | null | dev0s/classes/defaults/files.py | vandenberghinc/dev0s | 1c9629e2a81ad111fd3e74929aaeb05c97be0276 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Must still be recoded with some cleaner code.
"""
# imports.
from dev0s.classes.config import *
from dev0s.classes import utils
from dev0s.classes.defaults.color import color, symbol
from dev0s.classes import console
from dev0s.classes.defaults.exceptions import Excep... | 33.532345 | 366 | 0.647849 | 23,158 | 174,167 | 4.699758 | 0.039554 | 0.017944 | 0.010364 | 0.018854 | 0.647767 | 0.592262 | 0.54724 | 0.515192 | 0.473589 | 0.448138 | 0 | 0.00647 | 0.210137 | 174,167 | 5,193 | 367 | 33.538802 | 0.78463 | 0.119925 | 0 | 0.527967 | 0 | 0.003405 | 0.115017 | 0.015416 | 0.000243 | 0 | 0 | 0 | 0 | 1 | 0.109436 | false | 0 | 0.001946 | 0.032831 | 0.247082 | 0.002918 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
31106007c9cf6a0a237a91ff54fe5bef674f40ab | 619 | py | Python | object_torus.py | KeerthanBhat/pygame-Search-the-Key | f3488c164c1dfca0ae85d3af8ad6bfc612676dc3 | [
"MIT"
] | null | null | null | object_torus.py | KeerthanBhat/pygame-Search-the-Key | f3488c164c1dfca0ae85d3af8ad6bfc612676dc3 | [
"MIT"
] | null | null | null | object_torus.py | KeerthanBhat/pygame-Search-the-Key | f3488c164c1dfca0ae85d3af8ad6bfc612676dc3 | [
"MIT"
] | 2 | 2019-10-19T15:55:14.000Z | 2019-10-28T18:05:15.000Z | import pygame
from pygame.locals import *
from OpenGL.GL import *
from OpenGL.GLU import *
from OpenGL.GLUT import *
def main():
pygame.init()
glutInit()
display = (800,600)
pygame.display.set_mode(display, DOUBLEBUF|OPENGL)
gluPerspective(45, (display[0]/display[1]), 0.1, 50.0)
glTranslatef(0.0, 0.0, -5)
w... | 19.967742 | 55 | 0.686591 | 101 | 619 | 4.138614 | 0.475248 | 0.028708 | 0.114833 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.078846 | 0.159935 | 619 | 31 | 56 | 19.967742 | 0.725 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0.208333 | 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 |
3110dcee53cb41b5b07143e76922f9343f0ed9c4 | 2,794 | py | Python | samples/snippets/translate_v3_batch_translate_text_with_glossary_and_model.py | renovate-bot/python-translate | 1ab82aa12ecd4bbb0195e4c39ca476b944cdddbc | [
"Apache-2.0"
] | 70 | 2020-03-03T04:02:23.000Z | 2022-03-29T20:09:22.000Z | samples/snippets/translate_v3_batch_translate_text_with_glossary_and_model.py | renovate-bot/python-translate | 1ab82aa12ecd4bbb0195e4c39ca476b944cdddbc | [
"Apache-2.0"
] | 130 | 2020-01-31T20:17:09.000Z | 2022-03-24T17:01:21.000Z | samples/snippets/translate_v3_batch_translate_text_with_glossary_and_model.py | renovate-bot/python-translate | 1ab82aa12ecd4bbb0195e4c39ca476b944cdddbc | [
"Apache-2.0"
] | 47 | 2020-01-31T21:25:59.000Z | 2022-03-31T20:52:21.000Z | # Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | 35.820513 | 83 | 0.710451 | 349 | 2,794 | 5.444126 | 0.401146 | 0.031579 | 0.047368 | 0.046316 | 0.113158 | 0.113158 | 0.095789 | 0.051579 | 0.051579 | 0 | 0 | 0.005722 | 0.186829 | 2,794 | 77 | 84 | 36.285714 | 0.830546 | 0.342878 | 0 | 0 | 0 | 0 | 0.268184 | 0.099389 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02381 | false | 0 | 0.02381 | 0 | 0.047619 | 0.071429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
3110e66487f691f9c1b42704fe374f3e4fc85644 | 4,044 | py | Python | movo_common/movo_third_party/executive_smach/smach_ros/test/concurrence.py | zkytony/kinova-movo | 37d7454b2dc589d44133f3913f567b9cc321a66d | [
"BSD-3-Clause"
] | 2 | 2019-12-07T20:45:15.000Z | 2019-12-25T01:21:32.000Z | movo_common/movo_third_party/executive_smach/smach_ros/test/concurrence.py | ALAN-NUS/kinova_movo | 05a0451f5c563359ae0ffe3280e1df85caec9e55 | [
"BSD-3-Clause"
] | null | null | null | movo_common/movo_third_party/executive_smach/smach_ros/test/concurrence.py | ALAN-NUS/kinova_movo | 05a0451f5c563359ae0ffe3280e1df85caec9e55 | [
"BSD-3-Clause"
] | 1 | 2020-01-21T11:05:24.000Z | 2020-01-21T11:05:24.000Z | #!/usr/bin/env python
import roslib; roslib.load_manifest('smach_ros')
import rospy
import rostest
import unittest
from actionlib import *
from actionlib.msg import *
from smach import *
from smach_ros import *
from smach_msgs.msg import *
# Static goals
g1 = TestGoal(1) # This goal should succeed
g2 = TestGoal(2... | 30.870229 | 84 | 0.562067 | 454 | 4,044 | 4.889868 | 0.242291 | 0.072072 | 0.043243 | 0.064865 | 0.574775 | 0.561712 | 0.513063 | 0.468018 | 0.468018 | 0.468018 | 0 | 0.003898 | 0.302176 | 4,044 | 130 | 85 | 31.107692 | 0.782778 | 0.106825 | 0 | 0.510204 | 0 | 0 | 0.113694 | 0 | 0 | 0 | 0 | 0 | 0.204082 | 1 | 0.091837 | false | 0 | 0.091837 | 0 | 0.244898 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
31139b4fff3a18ffb360806368a4eb20f571136a | 10,221 | py | Python | ai.py | s18mbbustorff/AI_Hanabi_Assignment | 651699bdd77f10e72b49cdb2c62faeca585bdfa3 | [
"CNRI-Python"
] | null | null | null | ai.py | s18mbbustorff/AI_Hanabi_Assignment | 651699bdd77f10e72b49cdb2c62faeca585bdfa3 | [
"CNRI-Python"
] | null | null | null | ai.py | s18mbbustorff/AI_Hanabi_Assignment | 651699bdd77f10e72b49cdb2c62faeca585bdfa3 | [
"CNRI-Python"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue Mar 9 12:27:15 2021
@author: kuba
"""
import copy
import numpy as np
w = {"H0": {"H0":0.2,"H1": 0.2, "P0": 0.5, "P1": 0.1},
"H1": {"H0":0.2,"H1": 0.2, "P0": 0.1, "P1": 0.5},
"P0": {"H0":0.3,"H1": 0.3, "P0": 0.2, "P1": 0.2},
"P1": {"H0... | 36.503571 | 203 | 0.551609 | 1,310 | 10,221 | 4.248092 | 0.164886 | 0.007547 | 0.017251 | 0.018329 | 0.473854 | 0.450854 | 0.433423 | 0.427673 | 0.366397 | 0.334412 | 0 | 0.032296 | 0.330496 | 10,221 | 280 | 204 | 36.503571 | 0.780944 | 0.149203 | 0 | 0.318841 | 0 | 0 | 0.008597 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.072464 | false | 0 | 0.014493 | 0.007246 | 0.195652 | 0.007246 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
31156273ccc04dff6529eec50612ae1c8d644cbc | 10,811 | py | Python | dstf/core.py | anthonydugois/dstf | a08bfc8927910e104234e4189113c40029cf96c0 | [
"MIT"
] | null | null | null | dstf/core.py | anthonydugois/dstf | a08bfc8927910e104234e4189113c40029cf96c0 | [
"MIT"
] | null | null | null | dstf/core.py | anthonydugois/dstf | a08bfc8927910e104234e4189113c40029cf96c0 | [
"MIT"
] | null | null | null | from abc import ABCMeta, abstractmethod
from collections import OrderedDict
from math import inf
from typing import Iterator, Any, List, Dict, Type, Optional
EPSILON = 1e-4
class Error(Exception):
pass
class ConstraintError(Error):
pass
class Constraint(metaclass=ABCMeta):
@abstractmethod
def isv... | 30.367978 | 107 | 0.590232 | 1,313 | 10,811 | 4.715918 | 0.086824 | 0.034884 | 0.027132 | 0.03553 | 0.473676 | 0.372901 | 0.313469 | 0.270187 | 0.246932 | 0.240633 | 0 | 0.002488 | 0.29359 | 10,811 | 355 | 108 | 30.453521 | 0.808302 | 0.014337 | 0 | 0.333333 | 0 | 0 | 0.048648 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.184739 | false | 0.02008 | 0.016064 | 0.052209 | 0.445783 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
311598ad6b841ab60db61f4fd1280dc1532a3bf1 | 2,789 | py | Python | 2018/2018_06a.py | davidxiao93/Advent-of-Code | 29503100ae4eb46b048fc3ab68ff0181c6f00ee5 | [
"MIT"
] | null | null | null | 2018/2018_06a.py | davidxiao93/Advent-of-Code | 29503100ae4eb46b048fc3ab68ff0181c6f00ee5 | [
"MIT"
] | null | null | null | 2018/2018_06a.py | davidxiao93/Advent-of-Code | 29503100ae4eb46b048fc3ab68ff0181c6f00ee5 | [
"MIT"
] | null | null | null | input = """154, 159
172, 84
235, 204
181, 122
161, 337
305, 104
128, 298
176, 328
146, 71
210, 87
341, 195
50, 96
225, 151
86, 171
239, 68
79, 50
191, 284
200, 122
282, 240
224, 282
327, 74
158, 289
331, 244
154, 327
317, 110
272, 179
173, 175
187, 104
44, 194
202, 332
249, 197
244, 225
52, 127
299, 198
123, 198
349, 7... | 20.357664 | 87 | 0.61635 | 490 | 2,789 | 3.381633 | 0.367347 | 0.048884 | 0.021726 | 0.027158 | 0.171998 | 0.136995 | 0.053108 | 0 | 0 | 0 | 0 | 0.146829 | 0.26497 | 2,789 | 136 | 88 | 20.507353 | 0.661463 | 0.110075 | 0 | 0.018182 | 0 | 0 | 0.180567 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.018182 | false | 0 | 0.009091 | 0.009091 | 0.045455 | 0.018182 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
3118987786d875c02803a2f89249abb09e8ea633 | 6,500 | py | Python | cloudify_aws/ec2/resources/dhcp.py | marrowne/cloudify-aws-plugin | e75506f29048c666aeed20ade8a5a8cdfb6f2adf | [
"Apache-2.0"
] | null | null | null | cloudify_aws/ec2/resources/dhcp.py | marrowne/cloudify-aws-plugin | e75506f29048c666aeed20ade8a5a8cdfb6f2adf | [
"Apache-2.0"
] | null | null | null | cloudify_aws/ec2/resources/dhcp.py | marrowne/cloudify-aws-plugin | e75506f29048c666aeed20ade8a5a8cdfb6f2adf | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2018 Cloudify Platform Ltd. All rights reserved
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by ap... | 34.210526 | 77 | 0.667077 | 811 | 6,500 | 5.144266 | 0.204686 | 0.023969 | 0.036673 | 0.027325 | 0.432886 | 0.420182 | 0.372244 | 0.323346 | 0.323346 | 0.308485 | 0 | 0.006645 | 0.236 | 6,500 | 189 | 78 | 34.391534 | 0.833468 | 0.216462 | 0 | 0.4 | 0 | 0 | 0.065822 | 0.009812 | 0 | 0 | 0 | 0 | 0 | 1 | 0.104762 | false | 0.009524 | 0.038095 | 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 |
311bd4a62d810173917c5fcccdb8b5d1d7bc7a2e | 4,038 | py | Python | tests/testing_support/sample_applications.py | douglasfarinelli/newrelic-python-agent | 429edc07c29f318b7d233f4a70367634ad2b9ae4 | [
"Apache-2.0"
] | 1 | 2020-08-27T21:36:14.000Z | 2020-08-27T21:36:14.000Z | tests/testing_support/sample_applications.py | douglasfarinelli/newrelic-python-agent | 429edc07c29f318b7d233f4a70367634ad2b9ae4 | [
"Apache-2.0"
] | null | null | null | tests/testing_support/sample_applications.py | douglasfarinelli/newrelic-python-agent | 429edc07c29f318b7d233f4a70367634ad2b9ae4 | [
"Apache-2.0"
] | null | null | null | # Copyright 2010 New Relic, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writ... | 30.360902 | 80 | 0.636701 | 506 | 4,038 | 4.911067 | 0.41502 | 0.041851 | 0.038229 | 0.037022 | 0.121529 | 0.111871 | 0.062777 | 0.035412 | 0 | 0 | 0 | 0.016244 | 0.237741 | 4,038 | 132 | 81 | 30.590909 | 0.791098 | 0.184993 | 0 | 0.141176 | 0 | 0.011765 | 0.178221 | 0.017791 | 0 | 0 | 0 | 0 | 0 | 1 | 0.070588 | false | 0 | 0.082353 | 0.011765 | 0.211765 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
311bd8e2e5361bb4ec7f13dfdb4e6813c5dab95c | 14,767 | py | Python | spydrnet_tmr/transformation/replication/nmr.py | byuccl/spydrnet-tmr | ca9f026db70be96d57aa3604447abecb68670c56 | [
"BSD-3-Clause"
] | null | null | null | spydrnet_tmr/transformation/replication/nmr.py | byuccl/spydrnet-tmr | ca9f026db70be96d57aa3604447abecb68670c56 | [
"BSD-3-Clause"
] | 6 | 2021-08-13T18:39:59.000Z | 2022-03-04T22:20:44.000Z | spydrnet_tmr/transformation/replication/nmr.py | byuccl/spydrnet-tmr | ca9f026db70be96d57aa3604447abecb68670c56 | [
"BSD-3-Clause"
] | null | null | null | from spydrnet.ir import Port, Instance, InnerPin
from spydrnet_tmr.transformation.util import add_suffix_to_name
IN = Port.Direction.IN
OUT = Port.Direction.OUT
INOUT = Port.Direction.INOUT
def apply_nmr(ports_and_instances_to_replicate, degree, name_suffix='NMR', rename_original=True):
"""
Replicate the sele... | 44.212575 | 115 | 0.556511 | 1,600 | 14,767 | 4.821875 | 0.0975 | 0.039922 | 0.031108 | 0.012443 | 0.469216 | 0.404537 | 0.352041 | 0.309527 | 0.223979 | 0.164744 | 0 | 0.001195 | 0.376515 | 14,767 | 333 | 116 | 44.345345 | 0.836755 | 0.036162 | 0 | 0.293706 | 0 | 0 | 0.003595 | 0 | 0 | 0 | 0 | 0.003003 | 0 | 1 | 0.066434 | false | 0 | 0.006993 | 0 | 0.097902 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
311f1ca9e1d1619bad521ce3c12b38ab4bf5a569 | 1,088 | py | Python | pyspark/example/spark_core/4.7_spark_prog.py | chiliangpi/hellobi | e773c493d87bc84e7ae9f297232f0c267baaf184 | [
"Apache-2.0"
] | 53 | 2017-09-01T04:43:38.000Z | 2021-11-30T14:59:39.000Z | pyspark/example/spark_core/4.7_spark_prog.py | chiliangpi/hellobi | e773c493d87bc84e7ae9f297232f0c267baaf184 | [
"Apache-2.0"
] | null | null | null | pyspark/example/spark_core/4.7_spark_prog.py | chiliangpi/hellobi | e773c493d87bc84e7ae9f297232f0c267baaf184 | [
"Apache-2.0"
] | 43 | 2017-12-27T02:11:48.000Z | 2021-09-12T09:04:31.000Z | import os
import numpy as np
import sys
import logging
LOG_PATH = os.environ['log']
spark_home = os.environ['SPARK_HOME']
sys.path.insert(0, os.path.join(spark_home, 'python'))
sys.path.insert(0, os.path.join(spark_home, 'python/lib/py4j-0.10.4-src.zip'))
from pyspark.sql import SparkSession
spark = SparkSession.bui... | 29.405405 | 78 | 0.625 | 142 | 1,088 | 4.647887 | 0.556338 | 0.054545 | 0.039394 | 0.042424 | 0.118182 | 0.118182 | 0.118182 | 0.118182 | 0.118182 | 0.118182 | 0 | 0.012443 | 0.1875 | 1,088 | 36 | 79 | 30.222222 | 0.734163 | 0.011029 | 0 | 0 | 0 | 0 | 0.186977 | 0.049302 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0 | 0.172414 | 0 | 0.206897 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
31214aa0773f4d81be3dd4aff0c91ccb664626ac | 1,436 | py | Python | infra_macros/fbcode_macros/tests/shell_test.py | xw285cornell/buckit | 678d97618c1324288770ba423a1ecc0ce06ead0f | [
"BSD-3-Clause"
] | null | null | null | infra_macros/fbcode_macros/tests/shell_test.py | xw285cornell/buckit | 678d97618c1324288770ba423a1ecc0ce06ead0f | [
"BSD-3-Clause"
] | null | null | null | infra_macros/fbcode_macros/tests/shell_test.py | xw285cornell/buckit | 678d97618c1324288770ba423a1ecc0ce06ead0f | [
"BSD-3-Clause"
] | null | null | null | # Copyright 2016-present, Facebook, Inc.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. An additional grant
# of patent rights can be found in the PATENTS file in the same directory.
from __future__ import absol... | 35.02439 | 92 | 0.616295 | 193 | 1,436 | 4.487047 | 0.549223 | 0.023095 | 0.023095 | 0.032333 | 0.039261 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004625 | 0.247214 | 1,436 | 40 | 93 | 35.9 | 0.796485 | 0.193593 | 0 | 0.12 | 0 | 0 | 0.183402 | 0.036885 | 0 | 0 | 0 | 0 | 0.08 | 1 | 0.04 | false | 0 | 0.12 | 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 |
3124e4502bdcf98a842434a1911bac0c10e7cab6 | 5,482 | py | Python | tests/unit/core/SubdomainTest.py | edgargmartinez/OpenPNM | c68745993b3e9895f53938164a9cf6305500748e | [
"MIT"
] | 3 | 2019-07-17T01:35:09.000Z | 2021-05-08T02:03:35.000Z | tests/unit/core/SubdomainTest.py | ChahatAggarwal/OpenPNM | b3873d35270b0acaad019264368d0055c677d159 | [
"MIT"
] | null | null | null | tests/unit/core/SubdomainTest.py | ChahatAggarwal/OpenPNM | b3873d35270b0acaad019264368d0055c677d159 | [
"MIT"
] | null | null | null | import openpnm as op
import scipy as sp
import pytest
class SubdomainTest:
def setup_class(self):
ws = op.Workspace()
ws.settings['local_data'] = True
self.net = op.network.Cubic(shape=[3, 3, 3])
self.geo = op.geometry.GenericGeometry(network=self.net,
... | 39.724638 | 79 | 0.572419 | 724 | 5,482 | 4.227901 | 0.198895 | 0.073505 | 0.049004 | 0.081673 | 0.617445 | 0.502777 | 0.448546 | 0.399869 | 0.380268 | 0.345639 | 0 | 0.041107 | 0.294418 | 5,482 | 137 | 80 | 40.014599 | 0.750259 | 0.052171 | 0 | 0.285714 | 0 | 0 | 0.066332 | 0 | 0 | 0 | 0 | 0 | 0.223214 | 1 | 0.053571 | false | 0 | 0.026786 | 0 | 0.089286 | 0.008929 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
31253c2d60769e0b2c0da32d81b683d12aa6619e | 8,024 | py | Python | loci/io.py | SLIPO-EU/loci | 1b92b9a582c4d062b55176aad41cf305260f8f87 | [
"Apache-2.0"
] | 3 | 2020-04-20T11:38:48.000Z | 2022-01-04T14:56:15.000Z | loci/io.py | SLIPO-EU/loci | 1b92b9a582c4d062b55176aad41cf305260f8f87 | [
"Apache-2.0"
] | null | null | null | loci/io.py | SLIPO-EU/loci | 1b92b9a582c4d062b55176aad41cf305260f8f87 | [
"Apache-2.0"
] | 1 | 2021-07-05T13:52:40.000Z | 2021-07-05T13:52:40.000Z | import pandas as pd
from shapely.geometry import Point
import geopandas as gpd
import math
import osmnx
import requests
from io import BytesIO
from zipfile import ZipFile
def read_poi_csv(input_file, col_id='id', col_name='name', col_lon='lon', col_lat='lat', col_kwds='kwds', col_sep=';',
kwds_sep=',... | 35.039301 | 119 | 0.636964 | 1,118 | 8,024 | 4.399821 | 0.169946 | 0.031104 | 0.016467 | 0.018296 | 0.579183 | 0.522667 | 0.477739 | 0.462492 | 0.413905 | 0.399268 | 0 | 0.009233 | 0.244143 | 8,024 | 228 | 120 | 35.192982 | 0.801814 | 0.307328 | 0 | 0.453782 | 0 | 0 | 0.069724 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.084034 | 0 | 0.218487 | 0.042017 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
31256e5c7977352e63d64f5b9580f52cc98fe3c5 | 11,938 | py | Python | src/roles/wolf.py | timson622222/lykos | cdaae22b2f69fe907c5ac93d14c4d2d78e23eb1a | [
"BSD-2-Clause"
] | null | null | null | src/roles/wolf.py | timson622222/lykos | cdaae22b2f69fe907c5ac93d14c4d2d78e23eb1a | [
"BSD-2-Clause"
] | null | null | null | src/roles/wolf.py | timson622222/lykos | cdaae22b2f69fe907c5ac93d14c4d2d78e23eb1a | [
"BSD-2-Clause"
] | null | null | null | import re
import random
from collections import defaultdict
import src.settings as var
from src.utilities import *
from src import debuglog, errlog, plog
from src.decorators import cmd, event_listener
from src.messages import messages
from src.events import Event
KILLS = {} # type: Dict[str, List[str]]
@cmd("kill", ... | 39.269737 | 200 | 0.590467 | 1,579 | 11,938 | 4.355288 | 0.207093 | 0.015268 | 0.020939 | 0.02472 | 0.267559 | 0.191653 | 0.169696 | 0.108478 | 0.096845 | 0.074451 | 0 | 0.00758 | 0.292763 | 11,938 | 303 | 201 | 39.39934 | 0.806941 | 0.143826 | 0 | 0.231707 | 0 | 0.004065 | 0.10111 | 0.009433 | 0 | 0 | 0 | 0.0033 | 0 | 1 | 0.04878 | false | 0 | 0.036585 | 0 | 0.126016 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
31268631bfa9305773df79c3ef1137b982360dd1 | 2,878 | py | Python | BOG.py | punyajoy/biosbias | bedca0b8605e3e99d2a2b56c78a5b98c9839a77b | [
"MIT"
] | null | null | null | BOG.py | punyajoy/biosbias | bedca0b8605e3e99d2a2b56c78a5b98c9839a77b | [
"MIT"
] | null | null | null | BOG.py | punyajoy/biosbias | bedca0b8605e3e99d2a2b56c78a5b98c9839a77b | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Fri Feb 28 13:52:20 2020
@author: midas
"""
import os
import glob
import pandas as pd
import numpy as np
all_filenames=['Data/Train.csv', 'Data/Test.csv']
combined_csv = pd.concat([pd.read_csv(f) for f in all_filenames ])
combined_csv.to_csv( "combined_csv... | 24.184874 | 95 | 0.683113 | 414 | 2,878 | 4.572464 | 0.297101 | 0.029054 | 0.014263 | 0.014791 | 0.358162 | 0.303222 | 0.303222 | 0.272583 | 0.272583 | 0.272583 | 0 | 0.02972 | 0.16991 | 2,878 | 118 | 96 | 24.389831 | 0.762662 | 0.059416 | 0 | 0.2 | 0 | 0 | 0.123835 | 0.008152 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.171429 | 0 | 0.171429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
31274ba4d0ae0b5f6147828e52210073924bc1c5 | 12,388 | py | Python | src/ploomber/jupyter/manager.py | idomic/ploomber | 89b5e544b0540cf2cbb6bcd09946537198115d17 | [
"Apache-2.0"
] | null | null | null | src/ploomber/jupyter/manager.py | idomic/ploomber | 89b5e544b0540cf2cbb6bcd09946537198115d17 | [
"Apache-2.0"
] | null | null | null | src/ploomber/jupyter/manager.py | idomic/ploomber | 89b5e544b0540cf2cbb6bcd09946537198115d17 | [
"Apache-2.0"
] | null | null | null | """
Module for the jupyter extension
"""
import sys
import datetime
import os
import contextlib
from pprint import pprint
from pathlib import Path
from jupytext.contentsmanager import TextFileContentsManager
from ploomber.sources.notebooksource import (_cleanup_rendered_nb, inject_cell)
from ploomber.spec.dagspec imp... | 40.220779 | 109 | 0.56813 | 1,377 | 12,388 | 5.010167 | 0.251997 | 0.016234 | 0.023917 | 0.024786 | 0.126975 | 0.074793 | 0.038266 | 0.02899 | 0.019423 | 0.019423 | 0 | 0.009067 | 0.350097 | 12,388 | 307 | 110 | 40.351792 | 0.847845 | 0.213352 | 0 | 0.189474 | 0 | 0 | 0.178601 | 0.023415 | 0 | 0 | 0 | 0.006515 | 0 | 1 | 0.063158 | false | 0 | 0.063158 | 0 | 0.2 | 0.010526 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
312a1142332c9f2c1bc137f8c71e0ab19ca1463f | 2,792 | py | Python | tests/visualization/data_sources/test_satellite.py | openclimatefix/nowcasting_utils | 7a45e9d24ce29693d96fd9c75a34ca1d205b64bc | [
"MIT"
] | 2 | 2021-12-20T15:56:40.000Z | 2022-02-09T07:31:27.000Z | tests/visualization/data_sources/test_satellite.py | openclimatefix/nowcasting_utils | 7a45e9d24ce29693d96fd9c75a34ca1d205b64bc | [
"MIT"
] | 37 | 2021-09-08T14:36:00.000Z | 2022-02-16T20:05:24.000Z | tests/visualization/data_sources/test_satellite.py | openclimatefix/nowcasting_utils | 7a45e9d24ce29693d96fd9c75a34ca1d205b64bc | [
"MIT"
] | null | null | null | """ Tests to plot satellite data """
import os
import plotly.graph_objects as go
from nowcasting_dataset.data_sources.fake.batch import satellite_fake
from nowcasting_dataset.geospatial import osgb_to_lat_lon
from nowcasting_utils.visualization.data_sources.plot_satellite import (
make_animation_all_channels,
... | 29.389474 | 92 | 0.716691 | 368 | 2,792 | 5.141304 | 0.209239 | 0.07611 | 0.054968 | 0.084567 | 0.654334 | 0.600423 | 0.535412 | 0.502643 | 0.502643 | 0.370507 | 0 | 0.005637 | 0.174069 | 2,792 | 94 | 93 | 29.702128 | 0.814831 | 0.074857 | 0 | 0.393443 | 0 | 0 | 0.037965 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.065574 | false | 0 | 0.098361 | 0 | 0.163934 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
312d87f76ce3d3d748ca0ec5f49e7654fc2b52fb | 11,520 | py | Python | selenium_driver_updater/_phantomJS.py | Svinokur/selenium_driver_updater | f773d5c4dc064e512c92cf58016843007ba3e6e3 | [
"MIT"
] | 8 | 2021-04-18T17:50:00.000Z | 2022-01-01T18:01:34.000Z | selenium_driver_updater/_phantomJS.py | Svinokur/selenium_driver_updater | f773d5c4dc064e512c92cf58016843007ba3e6e3 | [
"MIT"
] | 1 | 2021-11-02T22:05:36.000Z | 2021-11-03T07:58:00.000Z | selenium_driver_updater/_phantomJS.py | Svinokur/selenium_driver_updater | f773d5c4dc064e512c92cf58016843007ba3e6e3 | [
"MIT"
] | 1 | 2021-08-04T12:45:30.000Z | 2021-08-04T12:45:30.000Z | #pylint: disable=logging-fstring-interpolation
#Standart library imports
import shutil
import os
import time
from typing import Tuple
from pathlib import Path
import re
from shutil import copyfile
import wget
# Local imports
from selenium_driver_updater.util.logger import logger
from selenium_driver_updater.util.excep... | 33.198847 | 158 | 0.642795 | 1,360 | 11,520 | 5.149265 | 0.153676 | 0.066829 | 0.017136 | 0.015422 | 0.421676 | 0.293874 | 0.237755 | 0.166786 | 0.134228 | 0.108239 | 0 | 0.002616 | 0.270052 | 11,520 | 346 | 159 | 33.294798 | 0.830182 | 0.150087 | 0 | 0.17341 | 0 | 0 | 0.136546 | 0.010122 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052023 | false | 0 | 0.063584 | 0 | 0.179191 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
312ecd011c5a15ca58383960f9caea10321bad18 | 1,779 | py | Python | src/ychaos/settings.py | vanderh0ff/ychaos | 5148c889912b744ee73907e4dd30c9ddb851aeb3 | [
"Apache-2.0"
] | 8 | 2021-07-21T15:37:48.000Z | 2022-03-03T14:43:09.000Z | src/ychaos/settings.py | vanderh0ff/ychaos | 5148c889912b744ee73907e4dd30c9ddb851aeb3 | [
"Apache-2.0"
] | 102 | 2021-07-20T16:08:29.000Z | 2022-03-25T07:28:37.000Z | src/ychaos/settings.py | vanderh0ff/ychaos | 5148c889912b744ee73907e4dd30c9ddb851aeb3 | [
"Apache-2.0"
] | 8 | 2021-07-20T13:37:46.000Z | 2022-02-18T01:44:52.000Z | # Copyright 2021, Yahoo
# Licensed under the terms of the Apache 2.0 license. See the LICENSE file in the project root for terms
from pathlib import Path
from typing import Optional, Union
from pydantic import BaseModel
class ApplicationSettings(BaseModel):
"""
Defines the Global Settings that are consiste... | 25.782609 | 105 | 0.681282 | 200 | 1,779 | 5.88 | 0.45 | 0.02551 | 0.043367 | 0.035714 | 0.054422 | 0.054422 | 0 | 0 | 0 | 0 | 0 | 0.004458 | 0.243395 | 1,779 | 68 | 106 | 26.161765 | 0.869242 | 0.268128 | 0 | 0.085714 | 0 | 0 | 0.083669 | 0 | 0 | 0 | 0 | 0 | 0.028571 | 1 | 0.114286 | false | 0 | 0.114286 | 0.028571 | 0.657143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |