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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
313142ab6ce549a139115eb0b45ced16e5e3b5d9 | 1,671 | py | Python | examples_ltnw/binary_classifier.py | gilbeckers/logictensornetworks | c4cc3628db91030230c78d3b964c26304a3b452b | [
"MIT"
] | null | null | null | examples_ltnw/binary_classifier.py | gilbeckers/logictensornetworks | c4cc3628db91030230c78d3b964c26304a3b452b | [
"MIT"
] | null | null | null | examples_ltnw/binary_classifier.py | gilbeckers/logictensornetworks | c4cc3628db91030230c78d3b964c26304a3b452b | [
"MIT"
] | 1 | 2019-05-19T01:28:04.000Z | 2019-05-19T01:28:04.000Z | # -*- coding: utf-8 -*-
import logging; logging.basicConfig(level=logging.INFO)
import numpy as np
import matplotlib.pyplot as plt
import logictensornetworks_wrapper as ltnw
nr_samples=500
data=np.random.uniform([0,0],[1.,1.],(nr_samples,2)).astype(np.float32)
data_A=data[np.where(np.sum(np.square(data-[.5,.5]),axi... | 27.85 | 71 | 0.689408 | 307 | 1,671 | 3.635179 | 0.2443 | 0.044803 | 0.043011 | 0.044803 | 0.515233 | 0.479391 | 0.458781 | 0.399642 | 0.399642 | 0.345878 | 0 | 0.043506 | 0.064632 | 1,671 | 59 | 72 | 28.322034 | 0.670505 | 0.012567 | 0 | 0.159091 | 0 | 0 | 0.157767 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 0.045455 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
313299b92381faa8b71fda04a1042894c5a9f593 | 2,937 | py | Python | customer/views.py | lautarianoo/django_shop | 9bc575df8b7af5452bd15cc3cf4fb375be6384bd | [
"MIT"
] | null | null | null | customer/views.py | lautarianoo/django_shop | 9bc575df8b7af5452bd15cc3cf4fb375be6384bd | [
"MIT"
] | null | null | null | customer/views.py | lautarianoo/django_shop | 9bc575df8b7af5452bd15cc3cf4fb375be6384bd | [
"MIT"
] | null | null | null | from django.contrib.auth import authenticate, login
from django.shortcuts import render, redirect
from cart.models import Cart
from django.views import View
from .forms import LoginForm, RegistrationForm, CreateCompanyForm
from customer.models import Customer, ShippingAddress
from src.utils.mixins import CustomerMixin
... | 41.957143 | 86 | 0.640449 | 321 | 2,937 | 5.788162 | 0.218069 | 0.047363 | 0.048439 | 0.067815 | 0.456943 | 0.456943 | 0.442949 | 0.420344 | 0.310011 | 0.310011 | 0 | 0.000453 | 0.248212 | 2,937 | 69 | 87 | 42.565217 | 0.841033 | 0 | 0 | 0.383333 | 0 | 0 | 0.088185 | 0.032005 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0.05 | 0.133333 | 0 | 0.483333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
3132c447ee024e396e1324d642bb304d3461295b | 1,771 | py | Python | kickstarter/app.py | Annapurnaj91/kickstarter3 | 372b2fd53b0b2b35dad210a7d6d54baff1a16204 | [
"MIT"
] | null | null | null | kickstarter/app.py | Annapurnaj91/kickstarter3 | 372b2fd53b0b2b35dad210a7d6d54baff1a16204 | [
"MIT"
] | null | null | null | kickstarter/app.py | Annapurnaj91/kickstarter3 | 372b2fd53b0b2b35dad210a7d6d54baff1a16204 | [
"MIT"
] | null | null | null | from flask import Flask, render_template, request
# from .recommendation import *
# import pickle
import pandas as pd
import numpy as np
# import keras
# from keras.models import load_model
import pickle
def create_app():
# initializes our app
APP = Flask(__name__)
@APP.route('/')
def form():
... | 29.032787 | 73 | 0.59345 | 194 | 1,771 | 5.283505 | 0.319588 | 0.070244 | 0.054634 | 0.089756 | 0.170732 | 0.170732 | 0 | 0 | 0 | 0 | 0 | 0.004724 | 0.282891 | 1,771 | 61 | 74 | 29.032787 | 0.802362 | 0.216262 | 0 | 0 | 0 | 0 | 0.091837 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.129032 | false | 0 | 0.129032 | 0.032258 | 0.387097 | 0.064516 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
3133622434c8873a4080869ebe2b301b8b8641a5 | 2,765 | py | Python | src/plotman/plot_util.py | rafaelsteil/plotman | b7b4d97a12b60c31f66e18764ff60469930e3b37 | [
"Apache-2.0"
] | null | null | null | src/plotman/plot_util.py | rafaelsteil/plotman | b7b4d97a12b60c31f66e18764ff60469930e3b37 | [
"Apache-2.0"
] | null | null | null | src/plotman/plot_util.py | rafaelsteil/plotman | b7b4d97a12b60c31f66e18764ff60469930e3b37 | [
"Apache-2.0"
] | null | null | null | import math
import os
import re
import shutil
from plotman import job
GB = 1_000_000_000
def df_b(d):
'Return free space for directory (in bytes)'
usage = shutil.disk_usage(d)
return usage.free
def get_k32_plotsize():
return 108 * GB
def is_valid_plot_dst(d, sched_cfg, all_jobs):
if sched_cfg.s... | 30.384615 | 79 | 0.609403 | 405 | 2,765 | 3.995062 | 0.375309 | 0.024722 | 0.034611 | 0.024722 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033433 | 0.275226 | 2,765 | 90 | 80 | 30.722222 | 0.773952 | 0.201447 | 0 | 0.028986 | 0 | 0 | 0.094332 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.144928 | false | 0 | 0.072464 | 0.014493 | 0.434783 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
3134461b8aadf2c623046676e642ba5bc115a4e1 | 4,091 | py | Python | vespene/workers/registration.py | Conan-Kudo/vespene | 9e9977523f45586e1326ccd77d8cc0cb10591a07 | [
"Apache-2.0"
] | 680 | 2018-10-29T12:12:10.000Z | 2019-04-27T09:52:58.000Z | vespene/workers/registration.py | Conan-Kudo/vespene | 9e9977523f45586e1326ccd77d8cc0cb10591a07 | [
"Apache-2.0"
] | 110 | 2018-10-29T12:33:34.000Z | 2019-02-14T02:31:43.000Z | vespene/workers/registration.py | Conan-Kudo/vespene | 9e9977523f45586e1326ccd77d8cc0cb10591a07 | [
"Apache-2.0"
] | 92 | 2018-10-29T12:21:12.000Z | 2019-06-08T11:08:08.000Z | # Copyright 2018, Michael DeHaan LLC
# License: Apache License Version 2.0
# -------------------------------------------------------------------------
# registration.py - updates the database to say who is building something
# and what the current settings are, which is used by the file serving
# code to see if i... | 32.728 | 124 | 0.620142 | 483 | 4,091 | 5.055901 | 0.322981 | 0.055692 | 0.052416 | 0.027027 | 0.217035 | 0.142506 | 0.064701 | 0 | 0 | 0 | 0 | 0.011542 | 0.237595 | 4,091 | 124 | 125 | 32.991935 | 0.771401 | 0.251528 | 0 | 0.05 | 0 | 0 | 0.02911 | 0.023817 | 0 | 0 | 0 | 0 | 0 | 1 | 0.15 | false | 0 | 0.1125 | 0.05 | 0.4375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
3136541ef58415903ff6578bb2e900d003116de0 | 1,065 | py | Python | 10 Days of Statistics/Day 5 - Normal Distribution I.py | sohammanjrekar/HackerRank | 1f5010133a1ac1e765e855a086053c97d9e958be | [
"MIT"
] | null | null | null | 10 Days of Statistics/Day 5 - Normal Distribution I.py | sohammanjrekar/HackerRank | 1f5010133a1ac1e765e855a086053c97d9e958be | [
"MIT"
] | null | null | null | 10 Days of Statistics/Day 5 - Normal Distribution I.py | sohammanjrekar/HackerRank | 1f5010133a1ac1e765e855a086053c97d9e958be | [
"MIT"
] | null | null | null | """
Day 5: Normal Distribution I
In certain plant, the time taken to assemble a car is a random variable, X having a normal distribution
with a mean of 20 hours and a standard deviation of 2 hours. What is the probability that a car can be
assembled at this plant in:
1. Less han 19.5 hours?
2. Between 20 and ... | 27.307692 | 104 | 0.638498 | 172 | 1,065 | 3.906977 | 0.395349 | 0.072917 | 0.013393 | 0.03125 | 0.372024 | 0.235119 | 0.172619 | 0 | 0 | 0 | 0 | 0.057831 | 0.220657 | 1,065 | 39 | 105 | 27.307692 | 0.751807 | 0.358685 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.066667 | 0 | 0.2 | 0.133333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
31383059d386bdab69fab697d6aece922f099277 | 1,236 | py | Python | tests/unit/records/format_hints.py | cwegrzyn/records-mover | e3b71d6c09d99d0bcd6a956b9d09d20f8abe98d2 | [
"Apache-2.0"
] | 36 | 2020-03-17T11:56:51.000Z | 2022-01-19T16:03:32.000Z | tests/unit/records/format_hints.py | cwegrzyn/records-mover | e3b71d6c09d99d0bcd6a956b9d09d20f8abe98d2 | [
"Apache-2.0"
] | 60 | 2020-03-02T23:13:29.000Z | 2021-05-19T15:05:42.000Z | tests/unit/records/format_hints.py | cwegrzyn/records-mover | e3b71d6c09d99d0bcd6a956b9d09d20f8abe98d2 | [
"Apache-2.0"
] | 4 | 2020-08-11T13:17:37.000Z | 2021-11-05T21:11:52.000Z | bluelabs_format_hints = {
'field-delimiter': ',',
'record-terminator': "\n",
'compression': 'GZIP',
'quoting': None,
'quotechar': '"',
'doublequote': False,
'escape': '\\',
'encoding': 'UTF8',
'dateformat': 'YYYY-MM-DD',
'timeonlyformat': 'HH24:MI:SS',
'datetimeformattz': 'YY... | 25.75 | 48 | 0.572006 | 130 | 1,236 | 5.392308 | 0.3 | 0.051355 | 0.068474 | 0.10699 | 0.691869 | 0.537803 | 0.42796 | 0.42796 | 0.42796 | 0.330956 | 0 | 0.021385 | 0.205502 | 1,236 | 47 | 49 | 26.297872 | 0.692464 | 0 | 0 | 0.6 | 0 | 0 | 0.535599 | 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 |
313a0495ccbff8beabc442ab70ce74da829e195f | 1,829 | py | Python | CONST.py | Bobobert/DQN-Vanilla | a793021692b58f9b8249819302cb2cd08ad57edb | [
"MIT"
] | null | null | null | CONST.py | Bobobert/DQN-Vanilla | a793021692b58f9b8249819302cb2cd08ad57edb | [
"MIT"
] | null | null | null | CONST.py | Bobobert/DQN-Vanilla | a793021692b58f9b8249819302cb2cd08ad57edb | [
"MIT"
] | null | null | null | # FROM THE OP PAPER-ISH
MINI_BATCH_SIZE = 32
MEMORY_SIZE = 10**6
BUFFER_SIZE = 100
LHIST = 4
GAMMA = 0.99
UPDATE_FREQ_ONlINE = 4
UPDATE_TARGET = 2500 # This was 10**4 but is measured in actor steps, so it's divided update_freq_online
TEST_FREQ = 5*10**4 # Measure in updates
TEST_STEPS = 10**4
LEARNING_RATE = 0.00025
G_... | 29.5 | 104 | 0.640241 | 261 | 1,829 | 4.287356 | 0.708812 | 0.017873 | 0.018767 | 0.017873 | 0.007149 | 0.007149 | 0.007149 | 0 | 0 | 0 | 0 | 0.078652 | 0.172772 | 1,829 | 62 | 105 | 29.5 | 0.660939 | 0.083652 | 0 | 0 | 0 | 0 | 0.387193 | 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 |
313a4f7ab87e42cd98ccf9595c3af6b5e740cfb1 | 6,031 | py | Python | milieu/paper/methods/milieu.py | seyuboglu/milieu | dfcd23ecb4449e6fa5debf8ed371fbc5d5c22e8e | [
"Apache-2.0"
] | 1 | 2020-07-15T18:52:29.000Z | 2020-07-15T18:52:29.000Z | milieu/paper/methods/milieu.py | seyuboglu/milieu | dfcd23ecb4449e6fa5debf8ed371fbc5d5c22e8e | [
"Apache-2.0"
] | null | null | null | milieu/paper/methods/milieu.py | seyuboglu/milieu | dfcd23ecb4449e6fa5debf8ed371fbc5d5c22e8e | [
"Apache-2.0"
] | null | null | null |
import os
import json
import logging
from collections import defaultdict
import numpy as np
import networkx as nx
import torch
from torch.utils.data import DataLoader
from torch.optim import Adam
from tqdm import tqdm
from milieu.util.util import place_on_cpu, place_on_gpu
from milieu.paper.methods.method import D... | 37.459627 | 92 | 0.521472 | 627 | 6,031 | 4.830941 | 0.245614 | 0.075933 | 0.034665 | 0.027732 | 0.249587 | 0.243975 | 0.221195 | 0.182238 | 0.182238 | 0.145923 | 0 | 0.00133 | 0.376554 | 6,031 | 160 | 93 | 37.69375 | 0.804255 | 0.032665 | 0 | 0.243902 | 0 | 0 | 0.064751 | 0 | 0 | 0 | 0 | 0 | 0.01626 | 1 | 0.04065 | false | 0 | 0.097561 | 0 | 0.162602 | 0.00813 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
313cc87d19724030ef67c4661d1e5a9c641aaae1 | 5,185 | py | Python | scripts/telegram_bot.py | luigi311/ArBluna | bc65cb1be30339c83699f06f520ed8cb00048abf | [
"MIT"
] | 18 | 2021-08-21T05:42:40.000Z | 2022-03-16T21:00:56.000Z | scripts/telegram_bot.py | luigi311/ArBluna | bc65cb1be30339c83699f06f520ed8cb00048abf | [
"MIT"
] | 4 | 2021-08-21T06:05:04.000Z | 2021-12-07T02:23:05.000Z | scripts/telegram_bot.py | luigi311/ArBluna | bc65cb1be30339c83699f06f520ed8cb00048abf | [
"MIT"
] | 5 | 2021-08-24T08:29:51.000Z | 2022-03-04T17:14:49.000Z | import os
import distutils.util
from telegram import Update
from telegram.ext import Updater, CommandHandler, Filters, CallbackContext
from dotenv import load_dotenv
from scripts.get_info import get_ratio
from scripts.terra import get_balances, execute_swap
load_dotenv(override=True)
notify_telegram = bool(distutil... | 34.798658 | 291 | 0.652652 | 628 | 5,185 | 5.157643 | 0.164013 | 0.037048 | 0.047546 | 0.094474 | 0.621488 | 0.621488 | 0.549861 | 0.493671 | 0.470207 | 0.395801 | 0 | 0.002067 | 0.253423 | 5,185 | 148 | 292 | 35.033784 | 0.834668 | 0.084089 | 0 | 0.28972 | 0 | 0.009346 | 0.142402 | 0.012752 | 0 | 0 | 0 | 0 | 0 | 1 | 0.084112 | false | 0 | 0.065421 | 0 | 0.149533 | 0.009346 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
313ce62aeca2701889c38df68499f25c82820cc8 | 3,179 | py | Python | envs/mujoco/utils/download_meshes.py | hzm2016/assistive-gym-robosuite | 5c529f4444cc386383618bfa584341740a8468f9 | [
"MIT"
] | 1 | 2021-11-22T07:45:28.000Z | 2021-11-22T07:45:28.000Z | envs/mujoco/utils/download_meshes.py | hzm2016/assistive-gym-robosuite | 5c529f4444cc386383618bfa584341740a8468f9 | [
"MIT"
] | null | null | null | envs/mujoco/utils/download_meshes.py | hzm2016/assistive-gym-robosuite | 5c529f4444cc386383618bfa584341740a8468f9 | [
"MIT"
] | null | null | null | import os
import zipfile
import requests
def check_and_download(name, google_id, files=None, force_download=False):
"""
Checks if the meshes folder exists in the xml directory
If not it will ask the user if they want to download them
to be able to proceed
Parameters
----------
name: string
the file or direc... | 30.27619 | 121 | 0.709343 | 474 | 3,179 | 4.597046 | 0.341772 | 0.044057 | 0.027536 | 0.020193 | 0.134006 | 0.074346 | 0.074346 | 0.045893 | 0.045893 | 0.045893 | 0 | 0.010329 | 0.177729 | 3,179 | 104 | 122 | 30.567308 | 0.823259 | 0.232148 | 0 | 0.117647 | 0 | 0 | 0.182413 | 0.039673 | 0 | 0 | 0 | 0 | 0 | 1 | 0.073529 | false | 0 | 0.044118 | 0 | 0.147059 | 0.088235 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
313da56284119f917128f140877f55d791f270c7 | 2,188 | py | Python | wagtail/users/models.py | originell/wagtail | d2b02dff00edbd24bfaf971ae0a0d1fa71ea5df4 | [
"BSD-3-Clause"
] | null | null | null | wagtail/users/models.py | originell/wagtail | d2b02dff00edbd24bfaf971ae0a0d1fa71ea5df4 | [
"BSD-3-Clause"
] | null | null | null | wagtail/users/models.py | originell/wagtail | d2b02dff00edbd24bfaf971ae0a0d1fa71ea5df4 | [
"BSD-3-Clause"
] | null | null | null | import os
import uuid
from django.conf import settings
from django.db import models
from django.utils.translation import ugettext_lazy as _
def upload_avatar_to(instance, filename):
filename, ext = os.path.splitext(filename)
return os.path.join(
'avatar_images',
'avatar_{uuid}_{filename}{ext}... | 28.415584 | 94 | 0.675503 | 249 | 2,188 | 5.658635 | 0.365462 | 0.062456 | 0.053229 | 0.080908 | 0.226402 | 0.136977 | 0.136977 | 0.136977 | 0.097942 | 0.097942 | 0 | 0.003569 | 0.231718 | 2,188 | 76 | 95 | 28.789474 | 0.834622 | 0 | 0 | 0.083333 | 0 | 0 | 0.194241 | 0.013254 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.083333 | 0.066667 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
313e16f482043a4d9b63143c96c69a32c7de5ed4 | 4,898 | py | Python | PRESUBMIT.py | oneumyvakin/catapult | 69d05ea70e77998c86149ac78044470e3ca364ad | [
"BSD-3-Clause"
] | null | null | null | PRESUBMIT.py | oneumyvakin/catapult | 69d05ea70e77998c86149ac78044470e3ca364ad | [
"BSD-3-Clause"
] | null | null | null | PRESUBMIT.py | oneumyvakin/catapult | 69d05ea70e77998c86149ac78044470e3ca364ad | [
"BSD-3-Clause"
] | null | null | null | # Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Top-level presubmit script for catapult.
See https://www.chromium.org/developers/how-tos/depottools/presubmit-scripts
for more details about the presubmi... | 37.676923 | 80 | 0.638424 | 622 | 4,898 | 4.821543 | 0.33119 | 0.056019 | 0.060687 | 0.073691 | 0.311104 | 0.2014 | 0.180727 | 0.16939 | 0.16939 | 0.152718 | 0 | 0.004637 | 0.207432 | 4,898 | 129 | 81 | 37.968992 | 0.767903 | 0.14312 | 0 | 0.061224 | 0 | 0 | 0.307656 | 0.147847 | 0 | 0 | 0 | 0.007752 | 0 | 1 | 0.040816 | false | 0 | 0.061224 | 0.020408 | 0.163265 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
313f2defc3a370222bbd7525f5b1756e0fdd639e | 1,454 | py | Python | exam_at_home/2/boolean_expression.py | jamie-jjd/110_spring_IDS | 7f15c0c73b9d663373b791b9ddcc836957dcc3d2 | [
"MIT"
] | 2 | 2022-02-21T10:37:22.000Z | 2022-03-02T01:43:30.000Z | exam_at_home/2/boolean_expression.py | jamie-jjd/110_spring_IDS | 7f15c0c73b9d663373b791b9ddcc836957dcc3d2 | [
"MIT"
] | null | null | null | exam_at_home/2/boolean_expression.py | jamie-jjd/110_spring_IDS | 7f15c0c73b9d663373b791b9ddcc836957dcc3d2 | [
"MIT"
] | 3 | 2022-02-21T05:06:19.000Z | 2022-03-27T07:58:11.000Z | # author: jamie
# email: jinjiedeng.jjd@gmail.com
def Priority (c):
if c == '&': return 3
elif c == '|': return 2
elif c == '^': return 1
elif c == '(': return 0
def InfixToPostfix (infix, postfix):
stack = []
for c in infix:
if c == '(':
stack.append('(')
elif c =... | 29.673469 | 68 | 0.462861 | 171 | 1,454 | 3.883041 | 0.269006 | 0.060241 | 0.072289 | 0.09488 | 0.218373 | 0.197289 | 0.197289 | 0.100904 | 0.100904 | 0.100904 | 0 | 0.009615 | 0.356259 | 1,454 | 49 | 69 | 29.673469 | 0.699786 | 0.030949 | 0 | 0.159091 | 0 | 0 | 0.020611 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068182 | false | 0 | 0 | 0 | 0.090909 | 0.022727 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
31416eaefbae7d0e56e7b72dee697c6ec5ef4bc8 | 1,015 | py | Python | ciclo.py | BeltetonJosue96/Ejercicio3Python | 2ee1584be1b1f1a096d9793a581013b1303feec4 | [
"CC0-1.0"
] | null | null | null | ciclo.py | BeltetonJosue96/Ejercicio3Python | 2ee1584be1b1f1a096d9793a581013b1303feec4 | [
"CC0-1.0"
] | null | null | null | ciclo.py | BeltetonJosue96/Ejercicio3Python | 2ee1584be1b1f1a096d9793a581013b1303feec4 | [
"CC0-1.0"
] | null | null | null | class Ciclo:
def __init__(self):
self.cicloNew = ()
self.respu = ()
self.a = ()
self.b = ()
self.c = ()
def nuevoCiclo(self):
cicloNew = []
print(" ")
print("Formulario de ingreso de ciclos")
print("-----------------------------------")
... | 31.71875 | 90 | 0.429557 | 102 | 1,015 | 4.254902 | 0.45098 | 0.092166 | 0.050691 | 0.078341 | 0.124424 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005997 | 0.342857 | 1,015 | 32 | 91 | 31.71875 | 0.641679 | 0 | 0 | 0.233333 | 0 | 0 | 0.274606 | 0.068898 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0 | 0 | 0.133333 | 0.4 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
3143940a1c35677273eb448afe16a887f6eec384 | 4,997 | py | Python | timeglass.py | mountwebs/timeglass | 2f527e190cb90199cdd3a29ea7625e1f561fe01c | [
"MIT"
] | 110 | 2020-05-07T12:00:28.000Z | 2022-03-05T17:52:13.000Z | timeglass.py | mountwebs/timeglass | 2f527e190cb90199cdd3a29ea7625e1f561fe01c | [
"MIT"
] | 4 | 2020-05-07T12:01:21.000Z | 2021-01-01T14:23:59.000Z | timeglass.py | mountwebs/timeglass | 2f527e190cb90199cdd3a29ea7625e1f561fe01c | [
"MIT"
] | 6 | 2020-05-07T16:16:53.000Z | 2021-11-10T02:42:00.000Z | import rumps
import sys
import icon_manager
from datetime import timedelta
import timekeeper
import os
# pyinstaller --onefile -w --add-data "Icons/:Icons" --icon="Icons/timeglass.png" --clean timeglass.spec
# rumps.debug_mode(True)
class TimerApp(rumps.App):
def __init__(self, initial_seconds):
super(Ti... | 33.092715 | 132 | 0.553932 | 566 | 4,997 | 4.734982 | 0.229682 | 0.03806 | 0.029851 | 0.033582 | 0.235821 | 0.127612 | 0.127612 | 0.092537 | 0.044776 | 0 | 0 | 0.006284 | 0.331199 | 4,997 | 150 | 133 | 33.313333 | 0.795631 | 0.025815 | 0 | 0.29771 | 0 | 0 | 0.069285 | 0.004729 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083969 | false | 0 | 0.045802 | 0 | 0.160305 | 0.030534 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
31449da74730870d929a003f3070a25b350f24be | 1,869 | py | Python | utils/logger.py | huangxd-/BTC-ISMIR19 | cc2df75de9aba9af1c240a243ca167b1a8b07f7b | [
"MIT"
] | 82 | 2019-07-04T06:12:15.000Z | 2022-03-07T06:47:42.000Z | utils/logger.py | sungbohsun/b19 | 8d376c4284bd843664d81e3602d6e3e106d23cd4 | [
"MIT"
] | 4 | 2020-01-28T01:47:24.000Z | 2021-05-21T16:45:39.000Z | utils/logger.py | sungbohsun/b19 | 8d376c4284bd843664d81e3602d6e3e106d23cd4 | [
"MIT"
] | 13 | 2019-10-12T04:34:38.000Z | 2022-01-03T02:13:31.000Z | import logging
import os
import sys
import time
project_name = os.getcwd().split('/')[-1]
_logger = logging.getLogger(project_name)
_logger.addHandler(logging.StreamHandler())
def _log_prefix():
# Returns (filename, line number) for the stack frame.
def _get_file_line():
# pylint: disable=protected... | 25.60274 | 85 | 0.594971 | 237 | 1,869 | 4.468354 | 0.350211 | 0.0661 | 0.122757 | 0.089707 | 0.197356 | 0.167139 | 0.167139 | 0.135977 | 0 | 0 | 0 | 0.017304 | 0.257892 | 1,869 | 72 | 86 | 25.958333 | 0.746215 | 0.11236 | 0 | 0.044444 | 0 | 0 | 0.037644 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.177778 | false | 0 | 0.088889 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
3144e6270af5c5cebfce71812937eeb79f014048 | 882 | py | Python | setup.py | VNOpenAI/OpenControl | 0087408c57bc77f34f524b28f8c4363b116700bb | [
"MIT"
] | 5 | 2021-07-05T18:03:45.000Z | 2021-07-16T09:31:02.000Z | setup.py | VNOpenAI/OpenControl | 0087408c57bc77f34f524b28f8c4363b116700bb | [
"MIT"
] | null | null | null | setup.py | VNOpenAI/OpenControl | 0087408c57bc77f34f524b28f8c4363b116700bb | [
"MIT"
] | null | null | null | import setuptools
ver = {}
with open('OpenControl/_version.py') as fd:
exec(fd.read(), ver)
version = ver.get('__version__')
with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()
setuptools.setup(
name="OpenControl",
version=version,
author="VNOpenAI",
author_e... | 29.4 | 72 | 0.659864 | 100 | 882 | 5.67 | 0.67 | 0.10582 | 0.067019 | 0.10582 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00838 | 0.188209 | 882 | 30 | 73 | 29.4 | 0.78352 | 0 | 0 | 0 | 0 | 0 | 0.388448 | 0.026048 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.037037 | 0 | 0.037037 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
3146dc4305a3e628e2c3b3c5cb8a0e5989294e0f | 8,919 | py | Python | tests/ui/test_pvc_ui.py | MeridianExplorer/ocs-ci | a33d5116128b88f176f5eff68a3ef805125cdba1 | [
"MIT"
] | null | null | null | tests/ui/test_pvc_ui.py | MeridianExplorer/ocs-ci | a33d5116128b88f176f5eff68a3ef805125cdba1 | [
"MIT"
] | null | null | null | tests/ui/test_pvc_ui.py | MeridianExplorer/ocs-ci | a33d5116128b88f176f5eff68a3ef805125cdba1 | [
"MIT"
] | null | null | null | import logging
import pytest
from ocs_ci.framework.testlib import tier1, skipif_ui_not_support, ui
from ocs_ci.ocs.ui.pvc_ui import PvcUI
from ocs_ci.framework.testlib import skipif_ocs_version
from ocs_ci.framework.pytest_customization.marks import green_squad
from ocs_ci.ocs.resources.pvc import get_all_pvc_objs, ge... | 31.40493 | 92 | 0.595582 | 1,101 | 8,919 | 4.508629 | 0.155313 | 0.040894 | 0.033239 | 0.039484 | 0.514504 | 0.417002 | 0.336422 | 0.258461 | 0.25282 | 0.190169 | 0 | 0.006094 | 0.319206 | 8,919 | 283 | 93 | 31.515901 | 0.81143 | 0.056396 | 0 | 0.440367 | 0 | 0 | 0.163008 | 0.038263 | 0 | 0 | 0 | 0 | 0.03211 | 1 | 0.009174 | false | 0 | 0.059633 | 0 | 0.073395 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
3146f37afae0ee7bf1ffcaaddfa9a23cd4051a59 | 1,955 | py | Python | feature_generation/datasets/CSCW.py | s0lvang/ideal-pancake | f7a55f622b02b03a987d74cfdff1c51288bfb657 | [
"MIT"
] | 6 | 2020-09-22T06:54:51.000Z | 2021-03-25T05:38:05.000Z | feature_generation/datasets/CSCW.py | s0lvang/ideal-pancake | f7a55f622b02b03a987d74cfdff1c51288bfb657 | [
"MIT"
] | 12 | 2020-09-21T13:20:49.000Z | 2021-04-07T08:01:12.000Z | feature_generation/datasets/CSCW.py | s0lvang/ideal-pancake | f7a55f622b02b03a987d74cfdff1c51288bfb657 | [
"MIT"
] | null | null | null | import pandas as pd
from feature_generation.datasets.Timeseries import Timeseries
from os.path import basename
class CSCW(Timeseries):
def __init__(self):
super().__init__("cscw")
self.column_name_mapping = {
"id": self.column_names["subject_id"],
"Fixation Start [ms]": sel... | 39.897959 | 78 | 0.636317 | 228 | 1,955 | 5.135965 | 0.328947 | 0.085397 | 0.102477 | 0.043553 | 0.148591 | 0.064902 | 0 | 0 | 0 | 0 | 0 | 0.00409 | 0.249616 | 1,955 | 48 | 79 | 40.729167 | 0.794138 | 0 | 0 | 0.046512 | 0 | 0 | 0.102302 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.093023 | false | 0 | 0.069767 | 0.023256 | 0.255814 | 0.023256 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
314716be771983df86f570f640cfc57d97707513 | 16,103 | py | Python | reactics-smt/rs/reaction_system_with_concentrations.py | arturmeski/reactics | a565b5bf5ec671ccad4bbdab38ad264b9d8369cc | [
"MIT"
] | 2 | 2019-03-04T08:51:00.000Z | 2019-11-04T10:42:13.000Z | reactics-smt/rs/reaction_system_with_concentrations.py | arturmeski/reactics | a565b5bf5ec671ccad4bbdab38ad264b9d8369cc | [
"MIT"
] | null | null | null | reactics-smt/rs/reaction_system_with_concentrations.py | arturmeski/reactics | a565b5bf5ec671ccad4bbdab38ad264b9d8369cc | [
"MIT"
] | null | null | null | from sys import exit
from colour import *
from rs.reaction_system import ReactionSystem
class ReactionSystemWithConcentrations(ReactionSystem):
def __init__(self):
self.reactions = []
self.meta_reactions = dict()
self.permanent_entities = dict()
self.background_set = []
... | 37.103687 | 145 | 0.541949 | 1,871 | 16,103 | 4.404062 | 0.112239 | 0.022087 | 0.041019 | 0.035073 | 0.516384 | 0.436893 | 0.353155 | 0.314442 | 0.295995 | 0.284102 | 0 | 0.005208 | 0.368006 | 16,103 | 433 | 146 | 37.189376 | 0.804461 | 0.048376 | 0 | 0.373041 | 0 | 0 | 0.057167 | 0.001375 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0.003135 | 0.009404 | 0.003135 | 0.163009 | 0.040752 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
3147807fd05cce08c68a76d2267bf8400ec93917 | 9,241 | py | Python | src/models/cnn_train.py | zh272/AIGOGO | 0255cf8c4776358b73ee6b1792325a151a0cfa78 | [
"BSD-3-Clause"
] | null | null | null | src/models/cnn_train.py | zh272/AIGOGO | 0255cf8c4776358b73ee6b1792325a151a0cfa78 | [
"BSD-3-Clause"
] | null | null | null | src/models/cnn_train.py | zh272/AIGOGO | 0255cf8c4776358b73ee6b1792325a151a0cfa78 | [
"BSD-3-Clause"
] | null | null | null | import os
import time
import fire
import torch
import random
import numpy as np
import pandas as pd
import torch.nn.functional as F
## to detach from monitor
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
from trainer import Trainer
from model import ConvNet1D
from helpers imp... | 37.872951 | 136 | 0.634455 | 1,244 | 9,241 | 4.445338 | 0.200161 | 0.018445 | 0.029837 | 0.01736 | 0.310488 | 0.258047 | 0.194756 | 0.16094 | 0.118264 | 0.088969 | 0 | 0.015988 | 0.235148 | 9,241 | 244 | 137 | 37.872951 | 0.766412 | 0.081918 | 0 | 0.069364 | 0 | 0 | 0.127696 | 0.009314 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028902 | false | 0 | 0.092486 | 0 | 0.127168 | 0.023121 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
31489fbab4ef2b5a4414a0a8b4a377eb59e53266 | 730 | py | Python | tests/fetchers/test_hvdcLineCktOwnersFetcher.py | rohit98077/mis_outages_ingest | 1f563962ea8f93ed1825a7e07bde231b67240bcb | [
"MIT"
] | null | null | null | tests/fetchers/test_hvdcLineCktOwnersFetcher.py | rohit98077/mis_outages_ingest | 1f563962ea8f93ed1825a7e07bde231b67240bcb | [
"MIT"
] | 5 | 2020-09-19T08:52:48.000Z | 2021-06-02T03:29:38.000Z | tests/fetchers/test_hvdcLineCktOwnersFetcher.py | rohit98077/mis_outages_ingest | 1f563962ea8f93ed1825a7e07bde231b67240bcb | [
"MIT"
] | 2 | 2020-09-19T08:45:47.000Z | 2020-11-07T12:00:24.000Z | import unittest
from src.fetchers.hvdcLineCktOwnersFetcher import getOwnersForHvdcLineCktIds
import datetime as dt
from src.appConfig import getConfig
class TestHvdcLineCktOwnersFetcher(unittest.TestCase):
appConfig: dict = {}
def setUp(self):
self.appConfig = getConfig()
def test_run(self) -> N... | 31.73913 | 82 | 0.680822 | 70 | 730 | 7.085714 | 0.614286 | 0.028226 | 0.068548 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017794 | 0.230137 | 730 | 22 | 83 | 33.181818 | 0.864769 | 0.113699 | 0 | 0 | 0 | 0 | 0.108974 | 0.041667 | 0 | 0 | 0 | 0 | 0.066667 | 1 | 0.133333 | false | 0 | 0.266667 | 0 | 0.533333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
314a37a6a50187301c229c5c2b0248cf18eb14ce | 5,995 | py | Python | py/locationdb/geonames.py | acorg/locationdb | f3a70e254c3b81e12b8ddbbd02bb4baf7b1395b7 | [
"MIT"
] | null | null | null | py/locationdb/geonames.py | acorg/locationdb | f3a70e254c3b81e12b8ddbbd02bb4baf7b1395b7 | [
"MIT"
] | null | null | null | py/locationdb/geonames.py | acorg/locationdb | f3a70e254c3b81e12b8ddbbd02bb4baf7b1395b7 | [
"MIT"
] | null | null | null | # -*- Python -*-
# license
# license.
# ======================================================================
"""Looks name up in the [geonames database](http://www.geonames.org/).
[GeoNames Search Webservice API](http://www.geonames.org/export/geonames-search.html)
"""
import sys, os, urllib.request, json, time
fro... | 37.006173 | 177 | 0.481568 | 611 | 5,995 | 4.571195 | 0.258592 | 0.051557 | 0.039384 | 0.022914 | 0.265664 | 0.155388 | 0.139635 | 0.108127 | 0.099535 | 0.059434 | 0 | 0.008016 | 0.250876 | 5,995 | 161 | 178 | 37.236025 | 0.613894 | 0.212844 | 0 | 0.209091 | 0 | 0 | 0.163714 | 0.005336 | 0 | 0 | 0 | 0 | 0 | 1 | 0.118182 | false | 0 | 0.036364 | 0.018182 | 0.290909 | 0.036364 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
314b449f6ae2a854d067dfd6393a546317c348b5 | 2,921 | py | Python | Array/271EncodeDecodeStrings.py | john-the-dev/leetcode | f1038a5357c841a0d3c8aca1ae1a7d0387f77545 | [
"Apache-2.0"
] | null | null | null | Array/271EncodeDecodeStrings.py | john-the-dev/leetcode | f1038a5357c841a0d3c8aca1ae1a7d0387f77545 | [
"Apache-2.0"
] | null | null | null | Array/271EncodeDecodeStrings.py | john-the-dev/leetcode | f1038a5357c841a0d3c8aca1ae1a7d0387f77545 | [
"Apache-2.0"
] | null | null | null | # 271. Encode and Decode Strings
'''
Design an algorithm to encode a list of strings to a string. The encoded string is then sent over the network and is decoded back to the original list of strings.
Machine 1 (sender) has the function:
string encode(vector<string> strs) {
// ... your code
return encoded_string;
... | 30.113402 | 162 | 0.624444 | 432 | 2,921 | 4.215278 | 0.31713 | 0.032949 | 0.041186 | 0.048325 | 0.158155 | 0.158155 | 0.120813 | 0.120813 | 0.120813 | 0.093355 | 0 | 0.016811 | 0.246491 | 2,921 | 96 | 163 | 30.427083 | 0.810541 | 0.442999 | 0 | 0.311111 | 0 | 0 | 0.037938 | 0 | 0 | 0 | 0 | 0 | 0.088889 | 1 | 0.088889 | false | 0 | 0.022222 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
3150323baad4c964b663614ac688ae658dd6c3a5 | 1,129 | py | Python | tools/mo/openvino/tools/mo/front/caffe/proposal_ext.py | ryanloney/openvino-1 | 4e0a740eb3ee31062ba0df88fcf438564f67edb7 | [
"Apache-2.0"
] | 1,127 | 2018-10-15T14:36:58.000Z | 2020-04-20T09:29:44.000Z | tools/mo/openvino/tools/mo/front/caffe/proposal_ext.py | ryanloney/openvino-1 | 4e0a740eb3ee31062ba0df88fcf438564f67edb7 | [
"Apache-2.0"
] | 439 | 2018-10-20T04:40:35.000Z | 2020-04-19T05:56:25.000Z | tools/mo/openvino/tools/mo/front/caffe/proposal_ext.py | ryanloney/openvino-1 | 4e0a740eb3ee31062ba0df88fcf438564f67edb7 | [
"Apache-2.0"
] | 414 | 2018-10-17T05:53:46.000Z | 2020-04-16T17:29:53.000Z | # Copyright (C) 2018-2022 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
from openvino.tools.mo.front.common.partial_infer.utils import mo_array
from openvino.tools.mo.ops.proposal import ProposalOp
from openvino.tools.mo.front.caffe.collect_attributes import merge_attrs
from openvino.tools.mo.front.extractor... | 34.212121 | 72 | 0.681134 | 141 | 1,129 | 5.22695 | 0.468085 | 0.065129 | 0.092266 | 0.103121 | 0.097693 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011494 | 0.229407 | 1,129 | 32 | 73 | 35.28125 | 0.835632 | 0.098317 | 0 | 0 | 0 | 0 | 0.079882 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0.166667 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
315100585ad8fffd2754fc98108600f71764e4fa | 3,271 | py | Python | utils/datasets.py | LukasStruppek/Plug-and-Play-Attacks | f433f97531a5fb3e6f82965ecdde504e0eb1c4ab | [
"MIT"
] | null | null | null | utils/datasets.py | LukasStruppek/Plug-and-Play-Attacks | f433f97531a5fb3e6f82965ecdde504e0eb1c4ab | [
"MIT"
] | null | null | null | utils/datasets.py | LukasStruppek/Plug-and-Play-Attacks | f433f97531a5fb3e6f82965ecdde504e0eb1c4ab | [
"MIT"
] | 1 | 2022-02-09T07:06:09.000Z | 2022-02-09T07:06:09.000Z | import pickle
import pandas as pd
import torch
import torch.nn as nn
import torchvision.transforms as T
from torch.utils import data
from torch.utils.data import random_split
from torch.utils.data.dataloader import DataLoader
from torch.utils.data.dataset import Dataset
from datasets.celeba import CelebA1000
from dat... | 33.040404 | 78 | 0.697035 | 457 | 3,271 | 4.728665 | 0.212254 | 0.024988 | 0.03702 | 0.007404 | 0.368348 | 0.320222 | 0.303563 | 0.251735 | 0.251735 | 0.251735 | 0 | 0.010773 | 0.205442 | 3,271 | 98 | 79 | 33.377551 | 0.8207 | 0 | 0 | 0.24 | 0 | 0 | 0.125038 | 0.068481 | 0 | 0 | 0 | 0 | 0 | 1 | 0.133333 | false | 0 | 0.16 | 0 | 0.453333 | 0.013333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
31517240d14ea2064075bc5b5b6dfd061de1cb2d | 8,594 | py | Python | applications/MappingApplication/test_examples/Fluid_SubModelling/MainKratos.py | AndreaVoltan/MyKratos7.0 | e977752722e8ef1b606f25618c4bf8fd04c434cc | [
"BSD-4-Clause"
] | 2 | 2020-04-30T19:13:08.000Z | 2021-04-14T19:40:47.000Z | applications/MappingApplication/test_examples/Fluid_SubModelling/MainKratos.py | AndreaVoltan/MyKratos7.0 | e977752722e8ef1b606f25618c4bf8fd04c434cc | [
"BSD-4-Clause"
] | 1 | 2020-04-30T19:19:09.000Z | 2020-05-02T14:22:36.000Z | applications/MappingApplication/test_examples/Fluid_SubModelling/MainKratos.py | AndreaVoltan/MyKratos7.0 | e977752722e8ef1b606f25618c4bf8fd04c434cc | [
"BSD-4-Clause"
] | 1 | 2020-06-12T08:51:24.000Z | 2020-06-12T08:51:24.000Z | from __future__ import print_function, absolute_import, division #makes KratosMultiphysics backward compatible with python 2.6 and 2.7
from KratosMultiphysics import *
from KratosMultiphysics.IncompressibleFluidApplication import *
from KratosMultiphysics.FluidDynamicsApplication import *
from KratosMultiphysics.Exter... | 40.729858 | 155 | 0.728764 | 942 | 8,594 | 6.29724 | 0.193206 | 0.03793 | 0.041639 | 0.037761 | 0.449764 | 0.400202 | 0.339346 | 0.292481 | 0.207519 | 0.188638 | 0 | 0.001943 | 0.161624 | 8,594 | 210 | 156 | 40.92381 | 0.821374 | 0.129509 | 0 | 0.256198 | 0 | 0 | 0.110832 | 0.035411 | 0 | 0 | 0 | 0.004762 | 0 | 1 | 0 | false | 0 | 0.107438 | 0 | 0.107438 | 0.024793 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
3152a37b3680f114e554c550f939501a4b8c1547 | 4,475 | py | Python | src/ga4gh/vrs/extras/vcf_annotation.py | reece/vmc-python | 579e73063a6927f2a2734fa47b7efc7416ca2a25 | [
"Apache-2.0"
] | 1 | 2017-01-10T18:47:54.000Z | 2017-01-10T18:47:54.000Z | src/ga4gh/vrs/extras/vcf_annotation.py | reece/vmc-python | 579e73063a6927f2a2734fa47b7efc7416ca2a25 | [
"Apache-2.0"
] | null | null | null | src/ga4gh/vrs/extras/vcf_annotation.py | reece/vmc-python | 579e73063a6927f2a2734fa47b7efc7416ca2a25 | [
"Apache-2.0"
] | null | null | null | """
Annotate VCF files with VRS
Input Format: VCF
Output Format: VCF
The user should pass arguments for the VCF input, VCF output, &
the vrs object file name.
ex. python3 src/ga4gh/vrs/extras/vcf_annotation.py input.vcf.gz --out
./output.vcf.gz --vrs-file ./vrs_objects.pkl
"""
import argparse
import sys
import pick... | 36.382114 | 104 | 0.666592 | 631 | 4,475 | 4.567353 | 0.277338 | 0.034351 | 0.029146 | 0.018737 | 0.115892 | 0.049965 | 0.041638 | 0 | 0 | 0 | 0 | 0.009321 | 0.232849 | 4,475 | 122 | 105 | 36.680328 | 0.830178 | 0.336983 | 0 | 0 | 0 | 0.015873 | 0.151526 | 0.070018 | 0 | 0 | 0 | 0 | 0 | 1 | 0.063492 | false | 0 | 0.126984 | 0 | 0.238095 | 0.047619 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
3153b18dc5b355a77d44d559ba2a0ad4652444b2 | 11,438 | py | Python | ci/infra/testrunner/utils/utils.py | butsoleg/skuba | 1a363d4f3ca8fc33bfb0284043da26fe879c31a3 | [
"Apache-2.0"
] | null | null | null | ci/infra/testrunner/utils/utils.py | butsoleg/skuba | 1a363d4f3ca8fc33bfb0284043da26fe879c31a3 | [
"Apache-2.0"
] | null | null | null | ci/infra/testrunner/utils/utils.py | butsoleg/skuba | 1a363d4f3ca8fc33bfb0284043da26fe879c31a3 | [
"Apache-2.0"
] | null | null | null | import glob
import hashlib
import logging
import os
import shutil
import subprocess
from functools import wraps
from tempfile import gettempdir
from threading import Thread
import requests
from timeout_decorator import timeout
from utils.constants import Constant
from utils.format import Format
logger = logging.getL... | 37.016181 | 128 | 0.573439 | 1,419 | 11,438 | 4.516561 | 0.24172 | 0.023873 | 0.026525 | 0.021844 | 0.2225 | 0.154158 | 0.147605 | 0.119363 | 0.088469 | 0.082852 | 0 | 0.006469 | 0.32427 | 11,438 | 308 | 129 | 37.136364 | 0.822746 | 0.204057 | 0 | 0.228972 | 0 | 0.014019 | 0.142694 | 0.023155 | 0 | 0 | 0 | 0.006494 | 0 | 1 | 0.079439 | false | 0.018692 | 0.060748 | 0 | 0.191589 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
3154dea931b787a54d8711fa79545f3f1aea8641 | 1,076 | py | Python | nonebot/command/argfilter/controllers.py | EVAyo/nonebot | 2780ea4e8a1b6bb961f95a86e7e6b3983badf75f | [
"MIT"
] | 676 | 2018-12-28T09:53:51.000Z | 2020-04-10T16:28:57.000Z | nonebot/command/argfilter/controllers.py | EVAyo/nonebot | 2780ea4e8a1b6bb961f95a86e7e6b3983badf75f | [
"MIT"
] | 133 | 2018-12-27T16:01:35.000Z | 2020-04-11T04:49:01.000Z | nonebot/command/argfilter/controllers.py | EVAyo/nonebot | 2780ea4e8a1b6bb961f95a86e7e6b3983badf75f | [
"MIT"
] | 164 | 2019-01-02T07:40:33.000Z | 2020-04-11T06:54:30.000Z | """
提供几种常用的控制器。
这些验证器通常需要提供一些参数进行一次调用,返回的结果才是真正的验证器,其中的技巧在于通过闭包使要控制的对象能够被内部函数访问。
版本: 1.3.0+
"""
import re
from nonebot import CommandSession
from nonebot.helpers import render_expression
def handle_cancellation(session: CommandSession):
"""
在用户发送 `算了`、`不用了`、`取消吧`、`停` 之类的话的时候,结束当前传入的命令会话(调用 `session.finish(... | 20.692308 | 115 | 0.621747 | 125 | 1,076 | 5.224 | 0.584 | 0.033691 | 0.070444 | 0.027565 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006211 | 0.251859 | 1,076 | 51 | 116 | 21.098039 | 0.804969 | 0.267658 | 0 | 0.086957 | 0 | 0 | 0.087766 | 0.027926 | 0 | 0 | 0 | 0 | 0 | 1 | 0.130435 | false | 0 | 0.130435 | 0 | 0.478261 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
31580ef618e975209c707f821f01726f7b8d5bf6 | 21,726 | py | Python | hnn_core/dipole.py | chenghuzi/hnn-core | b974fed4317b9b03ec732850829d9c17841c6ee2 | [
"BSD-3-Clause"
] | null | null | null | hnn_core/dipole.py | chenghuzi/hnn-core | b974fed4317b9b03ec732850829d9c17841c6ee2 | [
"BSD-3-Clause"
] | null | null | null | hnn_core/dipole.py | chenghuzi/hnn-core | b974fed4317b9b03ec732850829d9c17841c6ee2 | [
"BSD-3-Clause"
] | null | null | null | """Class to handle the dipoles."""
# Authors: Mainak Jas <mjas@mgh.harvard.edu>
# Sam Neymotin <samnemo@gmail.com>
import warnings
import numpy as np
from copy import deepcopy
from .viz import plot_dipole, plot_psd, plot_tfr_morlet
def simulate_dipole(net, tstop, dt=0.025, n_trials=None, record_vsoma=Fals... | 36.270451 | 79 | 0.589708 | 2,827 | 21,726 | 4.445348 | 0.20375 | 0.012732 | 0.011459 | 0.008117 | 0.263786 | 0.221533 | 0.183178 | 0.158192 | 0.142596 | 0.109891 | 0 | 0.015271 | 0.318835 | 21,726 | 598 | 80 | 36.331104 | 0.833908 | 0.496686 | 0 | 0.06701 | 0 | 0 | 0.106552 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.082474 | false | 0 | 0.041237 | 0 | 0.185567 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
315848ad3b388abc47c5004cde951c763a8f0cc9 | 9,728 | py | Python | openstates/openstates-master/openstates/ga/bills.py | Jgorsick/Advocacy_Angular | 8906af3ba729b2303880f319d52bce0d6595764c | [
"CC-BY-4.0"
] | null | null | null | openstates/openstates-master/openstates/ga/bills.py | Jgorsick/Advocacy_Angular | 8906af3ba729b2303880f319d52bce0d6595764c | [
"CC-BY-4.0"
] | null | null | null | openstates/openstates-master/openstates/ga/bills.py | Jgorsick/Advocacy_Angular | 8906af3ba729b2303880f319d52bce0d6595764c | [
"CC-BY-4.0"
] | null | null | null | from billy.scrape.bills import BillScraper, Bill
from billy.scrape.votes import Vote
from collections import defaultdict
from .util import get_client, get_url, backoff
# Methods (7):
# GetLegislationDetail(xs:int LegislationId, )
#
# GetLegislationDetailByDescription(ns2:DocumentType Docu... | 36.298507 | 82 | 0.42722 | 767 | 9,728 | 5.315515 | 0.328553 | 0.026981 | 0.00883 | 0.006868 | 0.080942 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004559 | 0.436266 | 9,728 | 267 | 83 | 36.434457 | 0.738877 | 0.081517 | 0 | 0.046083 | 0 | 0.004608 | 0.187065 | 0.008197 | 0 | 0 | 0 | 0 | 0 | 1 | 0.009217 | false | 0.041475 | 0.018433 | 0 | 0.073733 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
31586b0e8440ac0fb7f47895645a135f6339d512 | 15,014 | py | Python | data/external/repositories_2to3/267667/kaggle-heart-master/generate_roi_pkl.py | Keesiu/meta-kaggle | 87de739aba2399fd31072ee81b391f9b7a63f540 | [
"MIT"
] | null | null | null | data/external/repositories_2to3/267667/kaggle-heart-master/generate_roi_pkl.py | Keesiu/meta-kaggle | 87de739aba2399fd31072ee81b391f9b7a63f540 | [
"MIT"
] | null | null | null | data/external/repositories_2to3/267667/kaggle-heart-master/generate_roi_pkl.py | Keesiu/meta-kaggle | 87de739aba2399fd31072ee81b391f9b7a63f540 | [
"MIT"
] | 1 | 2019-12-04T08:23:33.000Z | 2019-12-04T08:23:33.000Z | import argparse
import numpy as np
import glob
import re
from log import print_to_file
from scipy.fftpack import fftn, ifftn
from skimage.feature import peak_local_max, canny
from skimage.transform import hough_circle
import pickle as pickle
from paths import TRAIN_DATA_PATH, LOGS_PATH, PKL_TRAIN_DATA_PATH, PK... | 39.719577 | 128 | 0.566405 | 1,867 | 15,014 | 4.340653 | 0.158008 | 0.016288 | 0.017769 | 0.018263 | 0.29541 | 0.277764 | 0.248643 | 0.186575 | 0.155602 | 0.155602 | 0 | 0.031068 | 0.301119 | 15,014 | 377 | 129 | 39.824934 | 0.741256 | 0.06747 | 0 | 0.192857 | 0 | 0 | 0.080383 | 0.011873 | 0 | 0 | 0 | 0 | 0 | 1 | 0.042857 | false | 0.003571 | 0.039286 | 0.003571 | 0.121429 | 0.028571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
315a3b06d331b60c879edde3bb3f8225ff91970d | 2,280 | py | Python | app/api/v2/models/product.py | danuluma/dannstore | e5b59f08542c1cacdac60e380b5c2945195ba64a | [
"MIT"
] | null | null | null | app/api/v2/models/product.py | danuluma/dannstore | e5b59f08542c1cacdac60e380b5c2945195ba64a | [
"MIT"
] | 21 | 2018-10-16T09:29:03.000Z | 2022-03-11T23:31:35.000Z | app/api/v2/models/product.py | danuluma/dannstore | e5b59f08542c1cacdac60e380b5c2945195ba64a | [
"MIT"
] | null | null | null | import os
import sys
LOCALPATH = os.path.dirname(os.path.abspath(__file__))
sys.path.insert(0, LOCALPATH + '/../../../../')
from app.api.v2.db import Db
def format_book(book):
"""Formats the results to a dictionary"""
book = {
"id": book[0],
"title": book[1],
"description": book[2],... | 29.230769 | 251 | 0.542105 | 300 | 2,280 | 3.993333 | 0.3 | 0.035058 | 0.040067 | 0.033389 | 0.116861 | 0.040067 | 0.040067 | 0 | 0 | 0 | 0 | 0.02252 | 0.279386 | 2,280 | 77 | 252 | 29.61039 | 0.706634 | 0.089912 | 0 | 0.08 | 0 | 0.04 | 0.334808 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.14 | false | 0 | 0.06 | 0 | 0.32 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
315b4dedab79caa0f06b6a0165468d87637edc35 | 13,809 | py | Python | pbq/pbq.py | amirdor/pbq | 7e83a461c10d1d7284ccfb0ad278285be57d859d | [
"MIT"
] | null | null | null | pbq/pbq.py | amirdor/pbq | 7e83a461c10d1d7284ccfb0ad278285be57d859d | [
"MIT"
] | null | null | null | pbq/pbq.py | amirdor/pbq | 7e83a461c10d1d7284ccfb0ad278285be57d859d | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Main module."""
import os
from google.cloud import bigquery
from pbq.query import Query
from google.cloud import bigquery_storage_v1beta1
from google.cloud.exceptions import NotFound
from google.api_core.exceptions import BadRequest
import pandas as pd
import datetime
class PBQ(object):
... | 33.194712 | 119 | 0.608444 | 1,666 | 13,809 | 4.90036 | 0.136255 | 0.022048 | 0.0256 | 0.017638 | 0.531235 | 0.479789 | 0.463008 | 0.386085 | 0.380941 | 0.359628 | 0 | 0.002606 | 0.305308 | 13,809 | 415 | 120 | 33.274699 | 0.848431 | 0.375697 | 0 | 0.304636 | 0 | 0 | 0.072739 | 0.008112 | 0 | 0 | 0 | 0 | 0 | 1 | 0.07947 | false | 0 | 0.05298 | 0 | 0.18543 | 0.02649 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
315b6ac655327cef9390472518effc0e9ec5a90d | 14,829 | py | Python | appvalidator/specprocessor.py | mstriemer/app-validator | ceaa373965192e3e08e7b38476cca09d44b345e7 | [
"BSD-3-Clause"
] | 20 | 2015-01-16T21:35:27.000Z | 2021-11-11T00:22:43.000Z | appvalidator/specprocessor.py | mstriemer/app-validator | ceaa373965192e3e08e7b38476cca09d44b345e7 | [
"BSD-3-Clause"
] | 14 | 2015-01-15T21:26:33.000Z | 2016-01-18T16:47:15.000Z | appvalidator/specprocessor.py | mstriemer/app-validator | ceaa373965192e3e08e7b38476cca09d44b345e7 | [
"BSD-3-Clause"
] | 14 | 2015-02-14T22:42:40.000Z | 2021-11-11T00:22:33.000Z | import re
import types
from functools import partial
LITERAL_TYPE = types.StringTypes + (int, float, long, bool, )
class Spec(object):
"""
This object, when overridden with an object that implements a file format
specification, will perform validation on a given parsed version of the
format input.
... | 43.872781 | 80 | 0.534763 | 1,701 | 14,829 | 4.496767 | 0.160494 | 0.045758 | 0.028239 | 0.020918 | 0.276115 | 0.217676 | 0.153876 | 0.129821 | 0.105373 | 0.084194 | 0 | 0 | 0.378717 | 14,829 | 337 | 81 | 44.002967 | 0.83024 | 0.211005 | 0 | 0.190476 | 0 | 0 | 0.172516 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0.02381 | 0.014286 | 0.004762 | 0.133333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
315c5ece992cd3a2685eecad7131fd0199252e5a | 16,739 | py | Python | rotkehlchen/api/server.py | rotkehlchenio/rotkehlchen | 98f49cd3ed26c641fec03b78eff9fe1872385fbf | [
"BSD-3-Clause"
] | 137 | 2018-03-05T11:53:29.000Z | 2019-11-03T16:38:42.000Z | rotkehlchen/api/server.py | rotkehlchenio/rotkehlchen | 98f49cd3ed26c641fec03b78eff9fe1872385fbf | [
"BSD-3-Clause"
] | 385 | 2018-03-08T12:43:41.000Z | 2019-11-10T09:15:36.000Z | rotkehlchen/api/server.py | rotkehlchenio/rotkehlchen | 98f49cd3ed26c641fec03b78eff9fe1872385fbf | [
"BSD-3-Clause"
] | 59 | 2018-03-08T10:08:27.000Z | 2019-10-26T11:30:44.000Z | import json
import logging
from http import HTTPStatus
from typing import Any, Dict, List, Optional, Tuple, Type, Union
import werkzeug
from flask import Blueprint, Flask, Response, abort, jsonify
from flask.views import MethodView
from flask_cors import CORS
from gevent.pywsgi import WSGIServer
from geventwebsocket i... | 38.837587 | 98 | 0.714798 | 1,356 | 16,739 | 8.696165 | 0.315634 | 0.045115 | 0.058769 | 0.009837 | 0.059447 | 0.01925 | 0.01289 | 0 | 0 | 0 | 0 | 0.004578 | 0.177848 | 16,739 | 430 | 99 | 38.927907 | 0.852274 | 0.035187 | 0 | 0.080808 | 0 | 0 | 0.219974 | 0.160822 | 0 | 0 | 0 | 0 | 0 | 1 | 0.020202 | false | 0.005051 | 0.058081 | 0 | 0.088384 | 0.025253 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
315dcc7fa72c3932ae805d3e9b9008f00630dab8 | 15,428 | py | Python | generator/framework/analyser/analyser.py | sinsay/ds_generator | 9365e22e8730418caf29b8ed6ada1f30f936a297 | [
"Apache-2.0"
] | null | null | null | generator/framework/analyser/analyser.py | sinsay/ds_generator | 9365e22e8730418caf29b8ed6ada1f30f936a297 | [
"Apache-2.0"
] | null | null | null | generator/framework/analyser/analyser.py | sinsay/ds_generator | 9365e22e8730418caf29b8ed6ada1f30f936a297 | [
"Apache-2.0"
] | null | null | null | import inspect
import re
import types
from collections import namedtuple
from typing import List, Union, Dict
from flask_restplus import fields
from ...common import MetaData, Entry, Arg, ArgSource, RpcType,\
type_def, rpc_doc_args_key, rpc_doc_resp_key, rpc_impl_rename
from ...common.web.namespace import get_nam... | 29.899225 | 118 | 0.598004 | 1,918 | 15,428 | 4.564651 | 0.153285 | 0.019189 | 0.019303 | 0.008224 | 0.135922 | 0.091947 | 0.058938 | 0.028098 | 0.028098 | 0.028098 | 0 | 0.000646 | 0.297641 | 15,428 | 515 | 119 | 29.957282 | 0.807309 | 0.103772 | 0 | 0.144578 | 0 | 0 | 0.057183 | 0.005192 | 0 | 0 | 0 | 0.001942 | 0 | 1 | 0.042169 | false | 0.006024 | 0.024096 | 0.006024 | 0.126506 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
315e0a58614b3057e6b0218dbfb71a1a5db2f377 | 5,306 | py | Python | bot/helper/mirror_utils/download_utils/telegram_downloader.py | vincreator/Eunha | 85a702a5b5f30ccea1798122c261d4ff07fe0c0c | [
"Apache-2.0"
] | null | null | null | bot/helper/mirror_utils/download_utils/telegram_downloader.py | vincreator/Eunha | 85a702a5b5f30ccea1798122c261d4ff07fe0c0c | [
"Apache-2.0"
] | null | null | null | bot/helper/mirror_utils/download_utils/telegram_downloader.py | vincreator/Eunha | 85a702a5b5f30ccea1798122c261d4ff07fe0c0c | [
"Apache-2.0"
] | null | null | null | import logging
import random
from time import time
from threading import RLock, Lock, Thread
from bot import LOGGER, download_dict, download_dict_lock, app, STOP_DUPLICATE, STORAGE_THRESHOLD
from bot.helper.ext_utils.bot_utils import get_readable_file_size
from ..status_utils.telegram_download_status import TelegramD... | 40.503817 | 104 | 0.604222 | 571 | 5,306 | 5.311734 | 0.281961 | 0.059347 | 0.017145 | 0.019782 | 0.116386 | 0.024398 | 0.024398 | 0 | 0 | 0 | 0 | 0.002218 | 0.320204 | 5,306 | 130 | 105 | 40.815385 | 0.838647 | 0.012062 | 0 | 0.147826 | 0 | 0 | 0.082634 | 0.009733 | 0 | 0 | 0 | 0 | 0 | 1 | 0.078261 | false | 0.017391 | 0.086957 | 0 | 0.217391 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
316518dbc6fa99ee74801a883d9600ed91d0c3e7 | 1,101 | py | Python | scrim/globals.py | danbradham/scrim | 982a5db1db6e4ef40267f15642af2c7ea0e803ae | [
"MIT"
] | 4 | 2018-06-21T20:14:11.000Z | 2021-04-28T20:34:43.000Z | scrim/globals.py | danbradham/scrim | 982a5db1db6e4ef40267f15642af2c7ea0e803ae | [
"MIT"
] | null | null | null | scrim/globals.py | danbradham/scrim | 982a5db1db6e4ef40267f15642af2c7ea0e803ae | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
'''
=============
scrim.globals
=============
Defines variables passed into the python script via Environment Variables by
scrim scripts. If SCRIM_SHELL is None, then the python script was not executed
by a scrim script.
SHELLS (list): list of available shells
SCRIM_SHELL (str): Parent ... | 32.382353 | 78 | 0.710263 | 160 | 1,101 | 4.66875 | 0.375 | 0.103079 | 0.080321 | 0.113788 | 0.056225 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001081 | 0.159855 | 1,101 | 33 | 79 | 33.363636 | 0.806486 | 0.540418 | 0 | 0 | 0 | 0 | 0.303213 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 0 | 0.125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
31679637922287de633bd72c77660e49f2f5bfb1 | 2,693 | py | Python | virtual/lib/python3.6/site-packages/isbnlib/_goob.py | david12-wq/PITCHE_APP | 258e88a91a3f77fc316ece49edee6aa11eaaf2e0 | [
"MIT"
] | null | null | null | virtual/lib/python3.6/site-packages/isbnlib/_goob.py | david12-wq/PITCHE_APP | 258e88a91a3f77fc316ece49edee6aa11eaaf2e0 | [
"MIT"
] | null | null | null | virtual/lib/python3.6/site-packages/isbnlib/_goob.py | david12-wq/PITCHE_APP | 258e88a91a3f77fc316ece49edee6aa11eaaf2e0 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Query the Google Books (JSON API v1) service for metadata."""
import logging
from .dev import stdmeta
from .dev._bouth23 import u
from .dev._exceptions import ISBNNotConsistentError, RecordMappingError
from .dev.webquery import query as wquery
UA = 'isbnlib (gzip)'
SERVICE_URL = (
'htt... | 37.402778 | 79 | 0.625325 | 314 | 2,693 | 5.318471 | 0.353503 | 0.02994 | 0.038922 | 0.022754 | 0.109581 | 0.05509 | 0.05509 | 0.05509 | 0.05509 | 0.05509 | 0 | 0.010135 | 0.230598 | 2,693 | 71 | 80 | 37.929577 | 0.795849 | 0.213517 | 0 | 0.163265 | 0 | 0 | 0.225636 | 0.06529 | 0 | 0 | 0 | 0 | 0 | 1 | 0.061224 | false | 0 | 0.102041 | 0 | 0.265306 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
3169daa74af1845e0439f54da803485adef48067 | 11,534 | py | Python | jinahub/indexers/storage/PostgreSQLStorage/tests/test_postgres_dbms.py | Taekyoon/executors | 567f12c4193bb7be814f84540ea31585cd35b344 | [
"Apache-2.0"
] | 29 | 2021-07-26T07:16:38.000Z | 2022-03-27T15:10:34.000Z | jinahub/indexers/storage/PostgreSQLStorage/tests/test_postgres_dbms.py | Taekyoon/executors | 567f12c4193bb7be814f84540ea31585cd35b344 | [
"Apache-2.0"
] | 176 | 2021-07-23T08:30:21.000Z | 2022-03-14T12:29:06.000Z | jinahub/indexers/storage/PostgreSQLStorage/tests/test_postgres_dbms.py | Taekyoon/executors | 567f12c4193bb7be814f84540ea31585cd35b344 | [
"Apache-2.0"
] | 16 | 2021-07-26T20:55:40.000Z | 2022-03-18T15:32:17.000Z | import os
import time
from pathlib import Path
import numpy as np
import pytest
from jina import Document, DocumentArray, Executor, Flow
from jina.logging.profile import TimeContext
from jina_commons.indexers.dump import import_metas, import_vectors
from ..postgres_indexer import PostgreSQLStorage
from ..postgreshand... | 32.398876 | 86 | 0.660135 | 1,477 | 11,534 | 4.891672 | 0.163846 | 0.080969 | 0.024913 | 0.033218 | 0.462699 | 0.409135 | 0.358201 | 0.341315 | 0.291903 | 0.28083 | 0 | 0.013312 | 0.23149 | 11,534 | 355 | 87 | 32.490141 | 0.801782 | 0.026444 | 0 | 0.289855 | 0 | 0 | 0.075223 | 0.004189 | 0 | 0 | 0 | 0 | 0.130435 | 1 | 0.054348 | false | 0 | 0.047101 | 0 | 0.105072 | 0.003623 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
316b197711d08876516f43059dd4d069e90c4efc | 9,605 | py | Python | scenarios/sync_sheets_and_groups.py | Ragnaruk/api_integration | a91b955ff09830a29829f9b820355045e724f83e | [
"MIT"
] | null | null | null | scenarios/sync_sheets_and_groups.py | Ragnaruk/api_integration | a91b955ff09830a29829f9b820355045e724f83e | [
"MIT"
] | null | null | null | scenarios/sync_sheets_and_groups.py | Ragnaruk/api_integration | a91b955ff09830a29829f9b820355045e724f83e | [
"MIT"
] | null | null | null | import pickle
from time import sleep
import googleapiclient.errors
from transliterate import translit
from logs.logging import get_logger
from api_google.google_api_sheets import get_sheets_service, get_multiple_ranges
from api_google.google_api_directory import get_directory_service, get_users_for_domain, \
get_... | 38.42 | 100 | 0.504112 | 997 | 9,605 | 4.607823 | 0.158475 | 0.050283 | 0.031345 | 0.041794 | 0.393992 | 0.320418 | 0.254027 | 0.141924 | 0.141924 | 0.104049 | 0 | 0.005817 | 0.391463 | 9,605 | 249 | 101 | 38.574297 | 0.780154 | 0.46861 | 0 | 0.063492 | 0 | 0 | 0.055488 | 0.00891 | 0 | 0 | 0 | 0.004016 | 0 | 1 | 0.015873 | false | 0 | 0.142857 | 0 | 0.15873 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
316d44c48b3f5f89c962c9581225af2c135bfd22 | 15,800 | py | Python | PythonAPI/util/check_lidar_bb.py | inverted-ai/carla | 4233fe931073fdd47ee72cc841c4de15aba68386 | [
"MIT"
] | null | null | null | PythonAPI/util/check_lidar_bb.py | inverted-ai/carla | 4233fe931073fdd47ee72cc841c4de15aba68386 | [
"MIT"
] | null | null | null | PythonAPI/util/check_lidar_bb.py | inverted-ai/carla | 4233fe931073fdd47ee72cc841c4de15aba68386 | [
"MIT"
] | 1 | 2020-03-09T20:34:51.000Z | 2020-03-09T20:34:51.000Z | #!/usr/bin/env python
# Copyright (c) 2020 Computer Vision Center (CVC) at the Universitat Autonoma de
# Barcelona (UAB).
#
# This work is licensed under the terms of the MIT license.
# For a copy, see <https://opensource.org/licenses/MIT>.
"""
Lidar/BB check for CARLA
This script obtains the LiDAR's point cloud cor... | 42.473118 | 131 | 0.641582 | 2,250 | 15,800 | 4.351111 | 0.178667 | 0.038509 | 0.047395 | 0.060674 | 0.318693 | 0.273544 | 0.24239 | 0.211747 | 0.120225 | 0.100102 | 0 | 0.032593 | 0.231013 | 15,800 | 371 | 132 | 42.587601 | 0.773169 | 0.205823 | 0 | 0.104603 | 0 | 0.008368 | 0.078794 | 0.008559 | 0 | 0 | 0 | 0 | 0 | 1 | 0.079498 | false | 0.004184 | 0.029289 | 0 | 0.150628 | 0.07113 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
316eeacabbf87d7b1bf94354ea4d069d44ec787b | 1,797 | py | Python | claim.py | bukovyn/claim | 506bee564368e991c316e728e211d81cf7cba870 | [
"MIT"
] | null | null | null | claim.py | bukovyn/claim | 506bee564368e991c316e728e211d81cf7cba870 | [
"MIT"
] | null | null | null | claim.py | bukovyn/claim | 506bee564368e991c316e728e211d81cf7cba870 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
""" Text files created on DOS/Windows machines have different line endings than
files created on Unix/Linux. DOS uses carriage return and new line ("\r\n")
as a line ending, while Unix uses just new line ("\n"). The purpose of this
script is to have a quick, on the go, shell friendly... | 26.820896 | 88 | 0.608236 | 228 | 1,797 | 4.741228 | 0.504386 | 0.030527 | 0.025902 | 0.037003 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003072 | 0.275459 | 1,797 | 66 | 89 | 27.227273 | 0.827189 | 0.391208 | 0 | 0 | 0 | 0 | 0.135509 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.103448 | false | 0 | 0.068966 | 0 | 0.206897 | 0.034483 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
31705467ec2a06cfd21ab38f7b5f8cfa554d22cc | 1,066 | py | Python | Learning-Python/Jumble-Solver/jumble_solver.py | oliverkeen/Sandbox | 40e2a9239a81ebaeff6e7b34ed8329c6796d71f5 | [
"MIT"
] | null | null | null | Learning-Python/Jumble-Solver/jumble_solver.py | oliverkeen/Sandbox | 40e2a9239a81ebaeff6e7b34ed8329c6796d71f5 | [
"MIT"
] | null | null | null | Learning-Python/Jumble-Solver/jumble_solver.py | oliverkeen/Sandbox | 40e2a9239a81ebaeff6e7b34ed8329c6796d71f5 | [
"MIT"
] | null | null | null | # Oliver Keen
# Software Engineering 001
# jumble_solver.py
# 2/17/2021
# Assignment:
# Consider the game "Jumble"
# https://www.sandiegouniontribune.com/sd-jumble-daily-htmlstory.html
# Create a Python program to find the individual words in Jumble puzzles such
# that INJURE prints after entering the following: solve... | 28.810811 | 78 | 0.673546 | 134 | 1,066 | 5.343284 | 0.641791 | 0.01676 | 0.022346 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012531 | 0.251407 | 1,066 | 36 | 79 | 29.611111 | 0.884712 | 0.49531 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.1875 | 0 | 0.25 | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
317065682fd309f044a68646decdf80a32e30ac3 | 19,137 | py | Python | msm/skill_entry.py | luca-vercelli/mycroft-skills-manager | e8ac06132ca5d5fe8a56efdd28ee3968958d3323 | [
"Apache-2.0"
] | null | null | null | msm/skill_entry.py | luca-vercelli/mycroft-skills-manager | e8ac06132ca5d5fe8a56efdd28ee3968958d3323 | [
"Apache-2.0"
] | null | null | null | msm/skill_entry.py | luca-vercelli/mycroft-skills-manager | e8ac06132ca5d5fe8a56efdd28ee3968958d3323 | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2018 Mycroft AI, Inc.
#
# This file is part of Mycroft Skills Manager
# (see https://github.com/MycroftAI/mycroft-skills-manager).
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional inf... | 34.234347 | 87 | 0.576684 | 2,252 | 19,137 | 4.764654 | 0.206039 | 0.017894 | 0.012302 | 0.005965 | 0.092917 | 0.06123 | 0.037745 | 0.033085 | 0.025349 | 0.01398 | 0 | 0.002391 | 0.322569 | 19,137 | 558 | 88 | 34.295699 | 0.825285 | 0.119089 | 0 | 0.194379 | 0 | 0 | 0.081311 | 0.003034 | 0 | 0 | 0 | 0.001792 | 0 | 1 | 0.081967 | false | 0.004684 | 0.051522 | 0.023419 | 0.234192 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
3171f6a5227dcae1608234024716446ac61ead63 | 4,588 | py | Python | AIJ Filter Collection/AIJ_Night_Filters.py | kjkoeller/BSU-Code | 0b4016d0e3f823c9f8fe224a09a80c1421eedfdb | [
"MIT"
] | 1 | 2022-03-12T01:04:15.000Z | 2022-03-12T01:04:15.000Z | AIJ Filter Collection/AIJ_Night_Filters.py | kjkoeller/BSU-Code | 0b4016d0e3f823c9f8fe224a09a80c1421eedfdb | [
"MIT"
] | null | null | null | AIJ Filter Collection/AIJ_Night_Filters.py | kjkoeller/BSU-Code | 0b4016d0e3f823c9f8fe224a09a80c1421eedfdb | [
"MIT"
] | null | null | null | """
Created: November 11, 2020
Author: Kyle Koeller
Python Version 3.9
This program is meant to make the process of collecting the different filters from AIJ excel spreadsheets faster.
The user enters however many nights they have and the program goes through and checks those text files for the
different columns for,H... | 37.300813 | 114 | 0.623147 | 669 | 4,588 | 4.201794 | 0.345291 | 0.014941 | 0.014941 | 0.013874 | 0.076841 | 0.046247 | 0.046247 | 0.046247 | 0.046247 | 0.046247 | 0 | 0.013488 | 0.305144 | 4,588 | 122 | 115 | 37.606557 | 0.868256 | 0.366609 | 0 | 0.263889 | 0 | 0 | 0.304729 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027778 | false | 0 | 0.027778 | 0 | 0.055556 | 0.194444 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
3174581bfbf5c193b24ab07d26b208bd2900562c | 1,073 | py | Python | util/textbox_utils.py | yannl35133/sslib | 4c58487989aa06490a90cbcd0aa4c760937a9278 | [
"MIT"
] | null | null | null | util/textbox_utils.py | yannl35133/sslib | 4c58487989aa06490a90cbcd0aa4c760937a9278 | [
"MIT"
] | null | null | null | util/textbox_utils.py | yannl35133/sslib | 4c58487989aa06490a90cbcd0aa4c760937a9278 | [
"MIT"
] | null | null | null | CHARACTERS_PER_LINE = 39
def break_lines(text):
chars_in_line = 1
final_text = ''
skip = False
for char in text:
if chars_in_line >= CHARACTERS_PER_LINE:
if char == ' ':
# we happen to be on a space, se we can just break here
final_text += '\n'
... | 33.53125 | 111 | 0.538677 | 144 | 1,073 | 3.784722 | 0.472222 | 0.148624 | 0.080734 | 0.044037 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013235 | 0.366263 | 1,073 | 31 | 112 | 34.612903 | 0.788235 | 0.091333 | 0 | 0.08 | 0 | 0 | 0.12963 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0 | 0 | 0 | 0.08 | 0.12 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
31759cd8846fcd05727a01352dd32131306245ac | 8,957 | py | Python | tensorflow/load_mnist.py | stone-zeng/ising | f71ebdba0b91d1912620fe2af8fd211aa6075846 | [
"MIT"
] | 1 | 2019-12-06T13:57:43.000Z | 2019-12-06T13:57:43.000Z | tensorflow/load_mnist.py | stone-zeng/ising | f71ebdba0b91d1912620fe2af8fd211aa6075846 | [
"MIT"
] | 1 | 2019-08-01T15:56:28.000Z | 2019-08-01T15:56:28.000Z | tensorflow/load_mnist.py | stone-zeng/ising | f71ebdba0b91d1912620fe2af8fd211aa6075846 | [
"MIT"
] | 2 | 2020-07-21T15:25:13.000Z | 2021-07-18T18:39:59.000Z | """Loading MNIST dataset.
"""
import struct
import numpy as np
class MNIST:
"""
Loading MNIST dataset.
In the directory of MNIST dataset, there should be the following files:
- Training set:
- train-images-idx3-ubyte
- train-labels-idx1-ubyte
- Test set:
... | 35.543651 | 97 | 0.577984 | 1,148 | 8,957 | 4.29007 | 0.186411 | 0.029239 | 0.023756 | 0.024365 | 0.305584 | 0.233299 | 0.170558 | 0.136041 | 0.070051 | 0.070051 | 0 | 0.028227 | 0.323657 | 8,957 | 251 | 98 | 35.685259 | 0.784747 | 0.294407 | 0 | 0.122449 | 0 | 0 | 0.053 | 0.020667 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0 | 0.027211 | 0 | 0.217687 | 0.040816 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
3175e1912bfa26c6bcd08777e69b55a9f3b60c38 | 823 | py | Python | Scripts/Miscellaneous/Fake_news_web/app.py | valterm/Python_and_the_Web | a51b97870576dde8e8b7e78144e3b7ef8edebeac | [
"MIT"
] | 1 | 2020-10-19T16:08:47.000Z | 2020-10-19T16:08:47.000Z | Scripts/Miscellaneous/Fake_news_web/app.py | valterm/Python_and_the_Web | a51b97870576dde8e8b7e78144e3b7ef8edebeac | [
"MIT"
] | null | null | null | Scripts/Miscellaneous/Fake_news_web/app.py | valterm/Python_and_the_Web | a51b97870576dde8e8b7e78144e3b7ef8edebeac | [
"MIT"
] | null | null | null | from flask import Flask, request, render_template
from sklearn.externals import joblib
from feature import *
pipeline = joblib.load('pipeline.sav')
app = Flask(__name__)
@app.route('/')
def home():
return render_template('index.html')
@app.route('/api',methods=['POST'])
def get_delay():
result=request.fo... | 24.939394 | 126 | 0.668287 | 111 | 823 | 4.72973 | 0.531532 | 0.051429 | 0.060952 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012968 | 0.156744 | 823 | 32 | 127 | 25.71875 | 0.743516 | 0.034022 | 0 | 0 | 0 | 0.045455 | 0.224464 | 0.070618 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0.136364 | 0.045455 | 0.318182 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
3176815070b07c8d8d7495f2cec6b2d4034159cf | 534 | py | Python | 1019.next-greater-node-in-linked-list.py | elfgzp/leetCode | 964c6574d310a9a6c486bf638487fd2f72b83b3f | [
"MIT"
] | 3 | 2019-04-12T06:22:56.000Z | 2019-05-04T04:25:01.000Z | 1019.next-greater-node-in-linked-list.py | elfgzp/Leetcode | 964c6574d310a9a6c486bf638487fd2f72b83b3f | [
"MIT"
] | null | null | null | 1019.next-greater-node-in-linked-list.py | elfgzp/Leetcode | 964c6574d310a9a6c486bf638487fd2f72b83b3f | [
"MIT"
] | null | null | null | # Definition for singly-linked list.
# class ListNode:
# def __init__(self, x):
# self.val = x
# self.next = None
class Solution:
def nextLargerNodes(self, head: ListNode) -> List[int]:
nums = []
while head:
nums.append(head.val)
head = head.next
... | 23.217391 | 59 | 0.5 | 63 | 534 | 4.174603 | 0.52381 | 0.038023 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006024 | 0.378277 | 534 | 22 | 60 | 24.272727 | 0.786145 | 0.230337 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0 | 0 | 0.230769 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
31772010bf6f4955a22aabae06749a3423e3904b | 1,315 | py | Python | evaluator_package/Parsing_tools.py | MONICA-Project/GOST-tools | 08f0b5bc47e5ab683c6dffe90e8cfdff4305eab4 | [
"BSD-2-Clause"
] | null | null | null | evaluator_package/Parsing_tools.py | MONICA-Project/GOST-tools | 08f0b5bc47e5ab683c6dffe90e8cfdff4305eab4 | [
"BSD-2-Clause"
] | null | null | null | evaluator_package/Parsing_tools.py | MONICA-Project/GOST-tools | 08f0b5bc47e5ab683c6dffe90e8cfdff4305eab4 | [
"BSD-2-Clause"
] | null | null | null | def is_field(token):
"""Checks if the token is a valid ogc type field
"""
return token in ["name", "description", "encodingType", "location", "properties", "metadata",
"definition", "phenomenonTime", "resultTime", "observedArea", "result", "id", "@iot.id",
"resultQ... | 38.676471 | 109 | 0.543726 | 136 | 1,315 | 5.161765 | 0.470588 | 0.11396 | 0.07265 | 0.071225 | 0.179487 | 0.076923 | 0 | 0 | 0 | 0 | 0 | 0.005531 | 0.312548 | 1,315 | 33 | 110 | 39.848485 | 0.771018 | 0.171103 | 0 | 0.090909 | 0 | 0 | 0.153052 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0 | 0 | 0.136364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
31776c8bf86532d4f839128681a9e6532c17cb04 | 1,830 | py | Python | salt/runners/mine.py | byteskeptical/salt | 637fe0b04f38b2274191b005d73b3c6707d7f400 | [
"Apache-2.0"
] | 12 | 2015-01-21T00:18:25.000Z | 2021-07-11T07:35:26.000Z | salt/runners/mine.py | byteskeptical/salt | 637fe0b04f38b2274191b005d73b3c6707d7f400 | [
"Apache-2.0"
] | 86 | 2017-01-27T11:54:46.000Z | 2020-05-20T06:25:26.000Z | salt/runners/mine.py | byteskeptical/salt | 637fe0b04f38b2274191b005d73b3c6707d7f400 | [
"Apache-2.0"
] | 12 | 2015-01-05T09:50:42.000Z | 2019-08-19T01:43:40.000Z | # -*- coding: utf-8 -*-
'''
A runner to access data from the salt mine
'''
from __future__ import absolute_import, print_function, unicode_literals
# Import Python Libs
import logging
# Import salt libs
import salt.utils.minions
log = logging.getLevelName(__name__)
def get(tgt, fun, tgt_type='glob'):
'''
G... | 26.142857 | 74 | 0.60765 | 227 | 1,830 | 4.757709 | 0.449339 | 0.04537 | 0.030556 | 0.022222 | 0.127778 | 0.062963 | 0.062963 | 0.062963 | 0 | 0 | 0 | 0.005516 | 0.306557 | 1,830 | 69 | 75 | 26.521739 | 0.845548 | 0.566667 | 0 | 0.117647 | 0 | 0 | 0.046617 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.176471 | 0 | 0.411765 | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
3179df3995795589d0d2f77e4b98c9ca2097dc0f | 6,431 | py | Python | helpers/HurstEstimationNumerics.py | Baozhen-Li/SurfaceTopography | 37c70a4020c74dc56a4509969e760259ba93ec61 | [
"MIT"
] | null | null | null | helpers/HurstEstimationNumerics.py | Baozhen-Li/SurfaceTopography | 37c70a4020c74dc56a4509969e760259ba93ec61 | [
"MIT"
] | null | null | null | helpers/HurstEstimationNumerics.py | Baozhen-Li/SurfaceTopography | 37c70a4020c74dc56a4509969e760259ba93ec61 | [
"MIT"
] | null | null | null | #
# Copyright 2018, 2020 Lars Pastewka
# 2019-2020 Antoine Sanner
# 2015-2016 Till Junge
#
# ### MIT license
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without rest... | 30.770335 | 127 | 0.605038 | 1,111 | 6,431 | 3.351935 | 0.218722 | 0.024168 | 0.005639 | 0.011278 | 0.429377 | 0.377551 | 0.326799 | 0.280881 | 0.233888 | 0.202739 | 0 | 0.037244 | 0.219251 | 6,431 | 208 | 128 | 30.918269 | 0.704441 | 0.211165 | 0 | 0.443662 | 0 | 0 | 0.053039 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.077465 | false | 0 | 0.035211 | 0.035211 | 0.169014 | 0.028169 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
317a0b761a00f16ebd6df1752f32454650a3de35 | 2,668 | py | Python | test/serverless_mock_test.py | zhangyuan/serverless-mock-python | f1a1b84fcade2d090501914b4a1f6b4fdbbccfb4 | [
"MIT"
] | 5 | 2017-03-03T10:36:51.000Z | 2019-01-14T05:12:29.000Z | test/serverless_mock_test.py | zhangyuan/serverless-mock-python | f1a1b84fcade2d090501914b4a1f6b4fdbbccfb4 | [
"MIT"
] | 1 | 2017-03-30T07:18:57.000Z | 2017-03-30T07:18:57.000Z | test/serverless_mock_test.py | zhangyuan/serverless-mock-python | f1a1b84fcade2d090501914b4a1f6b4fdbbccfb4 | [
"MIT"
] | null | null | null | import threading
import requests
import json
import os
from nose.tools import *
from server import Httpd
app_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), "app")
class TestServerlessMock(object):
def test_ok(self):
ok_(True)
def setUp(self):
self.httpd = Httpd(app_path, 0)... | 31.388235 | 129 | 0.635682 | 346 | 2,668 | 4.679191 | 0.234104 | 0.033972 | 0.086473 | 0.070414 | 0.655343 | 0.641754 | 0.604077 | 0.604077 | 0.533663 | 0.479926 | 0 | 0.026769 | 0.215892 | 2,668 | 84 | 130 | 31.761905 | 0.747132 | 0 | 0 | 0.35 | 0 | 0 | 0.157421 | 0.040855 | 0 | 0 | 0 | 0 | 0 | 1 | 0.183333 | false | 0 | 0.1 | 0.016667 | 0.316667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
317c49fa981bf39fb8fbc6c8497db1b320c837f1 | 29,766 | py | Python | geoscilabs/dcip/DCWidgetPlate2_5D.py | lheagy/geosci-labs | a946feb0f2576821a232355d539bc71a5f5b0d0c | [
"MIT"
] | 1 | 2019-01-04T10:06:44.000Z | 2019-01-04T10:06:44.000Z | geoscilabs/dcip/DCWidgetPlate2_5D.py | victortocantins/geosci-labs | 0963c5766477e59af6625954036f580481cfaf82 | [
"MIT"
] | 1 | 2018-12-30T20:09:25.000Z | 2018-12-30T20:09:25.000Z | geoscilabs/dcip/DCWidgetPlate2_5D.py | victortocantins/geosci-labs | 0963c5766477e59af6625954036f580481cfaf82 | [
"MIT"
] | null | null | null | from __future__ import print_function
from __future__ import absolute_import
from __future__ import unicode_literals
import numpy as np
from scipy.constants import epsilon_0
from scipy.ndimage.measurements import center_of_mass
from ipywidgets import IntSlider, FloatSlider, FloatText, ToggleButtons
import matplotli... | 33 | 112 | 0.543876 | 3,662 | 29,766 | 4.36237 | 0.127253 | 0.010329 | 0.020282 | 0.022535 | 0.571205 | 0.516495 | 0.482692 | 0.420094 | 0.378404 | 0.365571 | 0 | 0.041607 | 0.294296 | 29,766 | 901 | 113 | 33.036626 | 0.71889 | 0.148088 | 0 | 0.375566 | 0 | 0 | 0.058516 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.013575 | false | 0 | 0.028658 | 0 | 0.054299 | 0.001508 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
3180304baa69ab409e5d9574d22f4fd3b34b2b27 | 17,714 | py | Python | P13pt/spectrumfitter/spectrumfitter.py | green-mercury/P13pt | 38c4f079ec071b5b2651415d7bcb03be7a8a1dab | [
"MIT"
] | 3 | 2019-08-27T16:32:29.000Z | 2019-09-28T06:56:14.000Z | P13pt/spectrumfitter/spectrumfitter.py | DamienFruleux/P13pt | a2cd74e97b8b2e5fb518886237575ae769229e49 | [
"MIT"
] | 4 | 2018-10-29T22:06:54.000Z | 2019-02-28T12:39:03.000Z | P13pt/spectrumfitter/spectrumfitter.py | DamienFruleux/P13pt | a2cd74e97b8b2e5fb518886237575ae769229e49 | [
"MIT"
] | 1 | 2019-02-13T13:29:18.000Z | 2019-02-13T13:29:18.000Z | #!/usr/bin/python
import sys
import os
import shutil
from glob import glob
from PyQt5.QtCore import (Qt, qInstallMessageHandler, QtInfoMsg, QtCriticalMsg, QtDebugMsg,
QtWarningMsg, QtFatalMsg, QSettings, pyqtSlot, QStandardPaths, QUrl)
from PyQt5.QtGui import QIcon, QDesktopServices
from PyQt... | 44.732323 | 122 | 0.628429 | 2,065 | 17,714 | 5.22954 | 0.176271 | 0.02528 | 0.020372 | 0.021669 | 0.317344 | 0.252153 | 0.217242 | 0.203815 | 0.172794 | 0.161682 | 0 | 0.002775 | 0.267641 | 17,714 | 395 | 123 | 44.84557 | 0.829646 | 0.073501 | 0 | 0.238411 | 0 | 0 | 0.06661 | 0 | 0 | 0 | 0 | 0.002532 | 0 | 1 | 0.062914 | false | 0 | 0.043046 | 0 | 0.129139 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
318175319ce5b1d0f129d6cf4fa9618b04da1e8b | 5,622 | py | Python | tests/testresourcemap.py | rayvnekieron/regionator | ed32f43c315465402b7e18c9f374e22dd89db64e | [
"Apache-2.0"
] | null | null | null | tests/testresourcemap.py | rayvnekieron/regionator | ed32f43c315465402b7e18c9f374e22dd89db64e | [
"Apache-2.0"
] | null | null | null | tests/testresourcemap.py | rayvnekieron/regionator | ed32f43c315465402b7e18c9f374e22dd89db64e | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
"""
Copyright (C) 2006 Google 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 agree... | 37.986486 | 79 | 0.714692 | 681 | 5,622 | 5.776799 | 0.277533 | 0.032537 | 0.028978 | 0.026436 | 0.278597 | 0.228266 | 0.21759 | 0.149466 | 0.149466 | 0.149466 | 0 | 0.011679 | 0.147101 | 5,622 | 147 | 80 | 38.244898 | 0.808759 | 0.102633 | 0 | 0.150943 | 0 | 0 | 0.243907 | 0.086296 | 0 | 0 | 0 | 0 | 0.207547 | 1 | 0.132075 | false | 0 | 0.037736 | 0 | 0.235849 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
3183eb2e126d90a029e2af49600fc31324d642a8 | 5,811 | py | Python | src/teacher/flake_approx/teacher_env.py | jainraj/CISR_NeurIPS20 | 027957e4a26a36f6501c4f0e5e73cb9d78a53e66 | [
"MIT"
] | 16 | 2020-11-04T14:44:16.000Z | 2022-02-16T08:08:23.000Z | src/teacher/flake_approx/teacher_env.py | jainraj/CISR_NeurIPS20 | 027957e4a26a36f6501c4f0e5e73cb9d78a53e66 | [
"MIT"
] | 2 | 2021-03-23T12:07:53.000Z | 2021-12-22T14:30:59.000Z | src/teacher/flake_approx/teacher_env.py | jainraj/CISR_NeurIPS20 | 027957e4a26a36f6501c4f0e5e73cb9d78a53e66 | [
"MIT"
] | 7 | 2020-11-17T03:20:00.000Z | 2022-03-31T15:53:58.000Z | import numpy as np
from stable_baselines import PPO2
from stable_baselines.common.policies import CnnPolicy
from stable_baselines.a2c.utils import conv, linear, conv_to_fc
from src.envs import CMDP, FrozenLakeEnvCustomMap
from src.envs.frozen_lake.frozen_maps import MAPS
from src.students import LagrangianStudent, i... | 35.432927 | 103 | 0.617794 | 663 | 5,811 | 5.081448 | 0.292609 | 0.014544 | 0.019294 | 0.022262 | 0.154942 | 0.115465 | 0.062333 | 0.045117 | 0.045117 | 0.045117 | 0 | 0.021385 | 0.29186 | 5,811 | 163 | 104 | 35.650307 | 0.797327 | 0.062124 | 0 | 0.051282 | 0 | 0 | 0.037072 | 0 | 0 | 0 | 0 | 0 | 0.008547 | 1 | 0.059829 | false | 0 | 0.102564 | 0.025641 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
31849d43e1ab19f400d94d35a3abbba09fecd8ff | 1,861 | py | Python | scanapi/__init__.py | rajarshig/scanapi | 9e29bf7fa7d8d1996be3c9deeb2675e12aff9418 | [
"MIT"
] | 1 | 2020-06-02T18:08:08.000Z | 2020-06-02T18:08:08.000Z | scanapi/__init__.py | rajarshig/scanapi | 9e29bf7fa7d8d1996be3c9deeb2675e12aff9418 | [
"MIT"
] | null | null | null | scanapi/__init__.py | rajarshig/scanapi | 9e29bf7fa7d8d1996be3c9deeb2675e12aff9418 | [
"MIT"
] | null | null | null | name = "scanapi"
import click
import logging
from scanapi.tree.api_tree import APITree
from scanapi.reporter import Reporter
from scanapi.requests_maker import RequestsMaker
from scanapi.settings import SETTINGS
from scanapi.yaml_loader import load_yaml
@click.command()
@click.option(
"-s",
"--spec-path",
... | 28.630769 | 86 | 0.674369 | 233 | 1,861 | 5.223176 | 0.39485 | 0.065735 | 0.046015 | 0.026294 | 0.054232 | 0.054232 | 0.054232 | 0 | 0 | 0 | 0 | 0 | 0.187534 | 1,861 | 64 | 87 | 29.078125 | 0.804894 | 0.051585 | 0 | 0.169811 | 0 | 0 | 0.199545 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.018868 | false | 0 | 0.132075 | 0 | 0.188679 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
3184b4c5a678ebc4e6558070c2d466802ef6e550 | 1,065 | py | Python | breadth first search/level order successor.py | JoanWu5/Grokking-the-coding-interview | 0ae68fb1c86ff595a82af68f7a6a6fdfe37e97a7 | [
"MIT"
] | null | null | null | breadth first search/level order successor.py | JoanWu5/Grokking-the-coding-interview | 0ae68fb1c86ff595a82af68f7a6a6fdfe37e97a7 | [
"MIT"
] | null | null | null | breadth first search/level order successor.py | JoanWu5/Grokking-the-coding-interview | 0ae68fb1c86ff595a82af68f7a6a6fdfe37e97a7 | [
"MIT"
] | 2 | 2021-11-17T18:52:53.000Z | 2021-12-04T09:26:37.000Z | # Given a binary tree and a node, find the level order successor of the given node in the tree.
# The level order successor is the node that appears right after the given node in the level order traversal.
from collections import deque
class TreeNode:
def __init__(self, value) -> None:
self.value = value... | 26.625 | 109 | 0.661972 | 151 | 1,065 | 4.562914 | 0.331126 | 0.087083 | 0.137881 | 0.100145 | 0.130624 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015113 | 0.25446 | 1,065 | 39 | 110 | 27.307692 | 0.852645 | 0.189671 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.035714 | 0 | 0.214286 | 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 |
3188b47960735f6a2d30024aca9b8fc438dc3613 | 20,651 | py | Python | Lib/gds/burp/config.py | mwielgoszewski/jython-burp-api | 002383f7acc5fb237e3804fe5bd2aa2950a0240d | [
"0BSD"
] | 134 | 2015-01-21T14:22:42.000Z | 2021-09-02T10:52:43.000Z | Lib/gds/burp/config.py | d453d2/burp-jython-console | 3cec3200ede2da0f1cdbf935efc340f073c07ea2 | [
"0BSD"
] | 7 | 2015-01-19T16:54:45.000Z | 2018-10-10T15:10:13.000Z | Lib/gds/burp/config.py | d453d2/burp-jython-console | 3cec3200ede2da0f1cdbf935efc340f073c07ea2 | [
"0BSD"
] | 29 | 2015-02-13T14:08:23.000Z | 2021-12-17T03:17:40.000Z | # -*- coding: utf-8 -*-
#
# Copyright (C) 2005-2009 Edgewall Software
# Copyright (C) 2005-2007 Christopher Lenz <cmlenz@gmx.de>
# All rights reserved.
#
# This software is licensed as described in the file COPYING, which
# you should have received as part of this distribution. The terms
# are also available at http://... | 35.666667 | 79 | 0.619486 | 2,502 | 20,651 | 4.996803 | 0.15028 | 0.023756 | 0.009359 | 0.018237 | 0.366181 | 0.323228 | 0.276676 | 0.238282 | 0.228523 | 0.221245 | 0 | 0.002993 | 0.288218 | 20,651 | 578 | 80 | 35.728374 | 0.847541 | 0.324294 | 0 | 0.269481 | 0 | 0 | 0.025706 | 0.00177 | 0 | 0 | 0 | 0 | 0 | 1 | 0.146104 | false | 0 | 0.019481 | 0.019481 | 0.415584 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
318bb2ce68ce930a154f36901f32368d1debcea3 | 728 | py | Python | pyqubo/package_info.py | caja-matematica/pyqubo | 5e5c9d1a36c756ba8c05eac23bbefe2ac369bce5 | [
"Apache-2.0"
] | 1 | 2018-10-11T08:51:02.000Z | 2018-10-11T08:51:02.000Z | pyqubo/package_info.py | kotarotanahashi/pyqubo | d2983b5f2b9e4ebee495c345326a1b2fd98f1c4f | [
"Apache-2.0"
] | null | null | null | pyqubo/package_info.py | kotarotanahashi/pyqubo | d2983b5f2b9e4ebee495c345326a1b2fd98f1c4f | [
"Apache-2.0"
] | null | null | null | # (major, minor, patch, prerelease)
VERSION = (0, 0, 6, "")
__shortversion__ = '.'.join(map(str, VERSION[:3]))
__version__ = '.'.join(map(str, VERSION[:3])) + "".join(VERSION[3:])
__package_name__ = 'pyqubo'
__contact_names__ = 'Recruit Communications Co., Ltd.'
__contact_emails__ = 'rco_pyqubo@ml.cocorou.jp'
__homep... | 45.5 | 100 | 0.75 | 88 | 728 | 5.636364 | 0.670455 | 0.048387 | 0.040323 | 0.068548 | 0.25 | 0.177419 | 0.177419 | 0 | 0 | 0 | 0 | 0.012195 | 0.098901 | 728 | 15 | 101 | 48.533333 | 0.743902 | 0.04533 | 0 | 0 | 0 | 0 | 0.518038 | 0.034632 | 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 |
318c27aa8cc3118e9c4a2079f233ea65d902fc9c | 19,702 | py | Python | bin/DBImportOperation/etl_operations.py | karlam123/DBImport | ebaf3f909841276d289bfb2f6eec0ecafa8395cf | [
"Apache-2.0"
] | null | null | null | bin/DBImportOperation/etl_operations.py | karlam123/DBImport | ebaf3f909841276d289bfb2f6eec0ecafa8395cf | [
"Apache-2.0"
] | null | null | null | bin/DBImportOperation/etl_operations.py | karlam123/DBImport | ebaf3f909841276d289bfb2f6eec0ecafa8395cf | [
"Apache-2.0"
] | null | null | null | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 40.372951 | 535 | 0.661963 | 2,325 | 19,702 | 5.532903 | 0.143226 | 0.026586 | 0.02954 | 0.030317 | 0.538868 | 0.50824 | 0.435712 | 0.415034 | 0.405084 | 0.376088 | 0 | 0.001185 | 0.186326 | 19,702 | 487 | 536 | 40.455852 | 0.80126 | 0.152929 | 0 | 0.595109 | 0 | 0 | 0.241566 | 0.036563 | 0 | 0 | 0 | 0 | 0 | 1 | 0.013587 | false | 0 | 0.089674 | 0 | 0.105978 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
318f1a187d9d522a7bfc65eda71b220b6ecec2a9 | 2,394 | py | Python | grvx/nodes/ieeg/read.py | UMCU-RIBS/grvx | 0343ffa3a211f28bbffb18d1fb4b2cadc4fda8a8 | [
"MIT"
] | 1 | 2021-11-25T08:12:48.000Z | 2021-11-25T08:12:48.000Z | grvx/nodes/ieeg/read.py | UMCU-RIBS/grvx | 0343ffa3a211f28bbffb18d1fb4b2cadc4fda8a8 | [
"MIT"
] | null | null | null | grvx/nodes/ieeg/read.py | UMCU-RIBS/grvx | 0343ffa3a211f28bbffb18d1fb4b2cadc4fda8a8 | [
"MIT"
] | null | null | null | from logging import getLogger
from numpy import mean, std
from pickle import dump
from wonambi import Dataset
from wonambi.trans import math, concatenate
from bidso import Task, Electrodes
lg = getLogger(__name__)
def read_ieeg_block(filename, electrode_file, conditions, minimalduration, output_dir):
d = Dataset... | 32.351351 | 130 | 0.651211 | 316 | 2,394 | 4.718354 | 0.291139 | 0.036217 | 0.012072 | 0.025486 | 0.273642 | 0.219987 | 0.179745 | 0.179745 | 0.179745 | 0.179745 | 0 | 0.002208 | 0.243108 | 2,394 | 73 | 131 | 32.794521 | 0.82064 | 0.023392 | 0 | 0.327273 | 0 | 0 | 0.03125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.054545 | false | 0 | 0.109091 | 0 | 0.218182 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
3190b0b0bcaf0d8c57b427dc97d503276394c78a | 5,806 | py | Python | bin/zeisel.py | bendemeo/ample | 4ca2688ff2b0e5c8f7dcbc0a1f4ddc8927fac670 | [
"MIT"
] | null | null | null | bin/zeisel.py | bendemeo/ample | 4ca2688ff2b0e5c8f7dcbc0a1f4ddc8927fac670 | [
"MIT"
] | null | null | null | bin/zeisel.py | bendemeo/ample | 4ca2688ff2b0e5c8f7dcbc0a1f4ddc8927fac670 | [
"MIT"
] | null | null | null | import numpy as np
import os
from scanorama import *
from scipy.sparse import vstack
from process import load_names
from experiments import *
from utils import *
NAMESPACE = 'zeisel'
METHOD = 'svd'
DIMRED = 100
data_names = [
'data/mouse_brain/zeisel/amygdala',
'data/mouse_brain/zeisel/cerebellum',
'data... | 35.187879 | 80 | 0.627799 | 725 | 5,806 | 4.813793 | 0.263448 | 0.063037 | 0.072206 | 0.103152 | 0.37192 | 0.34957 | 0.298567 | 0.269914 | 0.246991 | 0.238968 | 0 | 0.021869 | 0.220289 | 5,806 | 164 | 81 | 35.402439 | 0.749061 | 0.228384 | 0 | 0.224138 | 0 | 0 | 0.203907 | 0.174265 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.086207 | 0 | 0.086207 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
3190dd313fa981931d847fb35c25f15a5cf9dce0 | 997 | py | Python | cogitare/monitor/workers/system_usage.py | cogitare-ai/cogitare | fa99b8ef30e2f74e16fb542f2992582d1bd3ac2c | [
"MIT"
] | 90 | 2017-11-25T13:54:48.000Z | 2021-09-04T04:19:52.000Z | cogitare/monitor/workers/system_usage.py | cogitare-ai/cogitare | fa99b8ef30e2f74e16fb542f2992582d1bd3ac2c | [
"MIT"
] | 43 | 2017-09-12T20:40:56.000Z | 2019-08-03T15:37:37.000Z | cogitare/monitor/workers/system_usage.py | cogitare-ai/cogitare | fa99b8ef30e2f74e16fb542f2992582d1bd3ac2c | [
"MIT"
] | 9 | 2018-02-01T22:37:15.000Z | 2018-11-05T13:30:58.000Z | from threading import Thread
import psutil
import time
class SystemUsage(Thread):
def __init__(self, callback, *args, **kwargs):
super(SystemUsage, self).__init__(daemon=True)
self.interval = 1
self.enabled = False
self.callback = callback
self.p = psutil.Process()
... | 30.212121 | 120 | 0.584754 | 131 | 997 | 4.335878 | 0.450382 | 0.035211 | 0.010563 | 0.056338 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020661 | 0.271815 | 997 | 32 | 121 | 31.15625 | 0.761708 | 0 | 0 | 0 | 0 | 0 | 0.09328 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
31947238fdb172e32519876dd493050e5588dc51 | 3,062 | py | Python | tests/test_utils.py | loganthomas/turkey-bowl | 8a02966c3fe06a4dbbcee3f31ed21c2374b77e11 | [
"MIT"
] | null | null | null | tests/test_utils.py | loganthomas/turkey-bowl | 8a02966c3fe06a4dbbcee3f31ed21c2374b77e11 | [
"MIT"
] | 74 | 2020-09-26T00:58:17.000Z | 2022-03-20T13:55:09.000Z | tests/test_utils.py | loganthomas/Thanksgiving_Football | 8a02966c3fe06a4dbbcee3f31ed21c2374b77e11 | [
"MIT"
] | 1 | 2020-09-26T01:09:38.000Z | 2020-09-26T01:09:38.000Z | """
Unit tests for utils.py
"""
# Standard libraries
import json
from pathlib import Path
# Third-party libraries
import pytest
# Local libraries
from turkey_bowl import utils
@pytest.mark.freeze_time
@pytest.mark.parametrize(
"frozen_date, expected",
[
("2010-09-09", 2010),
("2011-09-08", 2... | 23.736434 | 82 | 0.653494 | 422 | 3,062 | 4.473934 | 0.239336 | 0.051907 | 0.081568 | 0.060911 | 0.616525 | 0.596398 | 0.560911 | 0.519597 | 0.519597 | 0.497881 | 0 | 0.02874 | 0.227302 | 3,062 | 128 | 83 | 23.921875 | 0.769231 | 0.161659 | 0 | 0.387097 | 0 | 0 | 0.097861 | 0.008716 | 0 | 0 | 0 | 0 | 0.241935 | 1 | 0.096774 | false | 0 | 0.064516 | 0 | 0.16129 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
3196c5c7ef4586ecc4432d29b82edc3f69f92c25 | 1,695 | py | Python | pages/views.py | Total-Conversion/eco4coin | 5a155afe892ebd714547063adfd000a1437eb3a0 | [
"MIT"
] | null | null | null | pages/views.py | Total-Conversion/eco4coin | 5a155afe892ebd714547063adfd000a1437eb3a0 | [
"MIT"
] | null | null | null | pages/views.py | Total-Conversion/eco4coin | 5a155afe892ebd714547063adfd000a1437eb3a0 | [
"MIT"
] | null | null | null | from django.contrib.admin.views.decorators import staff_member_required
from django.views.generic import TemplateView, ListView
import csv
from django.http import HttpResponse
from backend.models import CustomUser
from django.contrib.auth.mixins import LoginRequiredMixin
class HomePageView(TemplateView):
templat... | 30.818182 | 113 | 0.661357 | 191 | 1,695 | 5.680628 | 0.413613 | 0.036866 | 0.031336 | 0.046083 | 0.053456 | 0.053456 | 0 | 0 | 0 | 0 | 0 | 0.002331 | 0.240708 | 1,695 | 54 | 114 | 31.388889 | 0.840715 | 0.037168 | 0 | 0.046512 | 0 | 0 | 0.12454 | 0.028221 | 0 | 0 | 0 | 0 | 0 | 1 | 0.069767 | false | 0 | 0.139535 | 0.023256 | 0.44186 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
31991e3c0b73748d0ef73d80f10a961d8b27dbaf | 4,516 | py | Python | admin/collection_providers/forms.py | rdm-dev12/RDM-osf.io | 14d9a924b8c6bc7d79fd34b87830ffa29acafed1 | [
"Apache-2.0"
] | null | null | null | admin/collection_providers/forms.py | rdm-dev12/RDM-osf.io | 14d9a924b8c6bc7d79fd34b87830ffa29acafed1 | [
"Apache-2.0"
] | 20 | 2020-03-24T16:48:03.000Z | 2022-03-08T22:38:38.000Z | admin/collection_providers/forms.py | rdm-dev12/RDM-osf.io | 14d9a924b8c6bc7d79fd34b87830ffa29acafed1 | [
"Apache-2.0"
] | null | null | null | import bleach
import json
from django import forms
from osf.models import CollectionProvider, CollectionSubmission
from admin.base.utils import get_nodelicense_choices, get_defaultlicense_choices
class CollectionProviderForm(forms.ModelForm):
collected_type_choices = forms.CharField(widget=forms.HiddenInput(), ... | 45.16 | 113 | 0.629318 | 453 | 4,516 | 6 | 0.269316 | 0.072848 | 0.032377 | 0.077263 | 0.61663 | 0.553716 | 0.53716 | 0.49301 | 0.394408 | 0.360559 | 0 | 0 | 0.274801 | 4,516 | 99 | 114 | 45.616162 | 0.829924 | 0.040965 | 0 | 0.292683 | 0 | 0 | 0.144938 | 0.032362 | 0 | 0 | 0 | 0 | 0 | 1 | 0.060976 | false | 0 | 0.060976 | 0 | 0.243902 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
3199bda124122e7024becc95e2646f8bec2ec029 | 930 | py | Python | activity_log/migrations/0004_auto_20170309_0929.py | farezsaputra/BandwidthControllingSystem | 54032f21e6cb94156f57222e88a98a89be310ea9 | [
"MIT"
] | null | null | null | activity_log/migrations/0004_auto_20170309_0929.py | farezsaputra/BandwidthControllingSystem | 54032f21e6cb94156f57222e88a98a89be310ea9 | [
"MIT"
] | 11 | 2021-02-10T02:18:32.000Z | 2022-03-02T09:56:43.000Z | activity_log/migrations/0004_auto_20170309_0929.py | farezsaputra/BandwidthControllingSystem | 54032f21e6cb94156f57222e88a98a89be310ea9 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('activity_log', '0003_activitylog_extra_data'),
]
operations = [
migrations.AlterField(
... | 31 | 114 | 0.631183 | 93 | 930 | 6.086022 | 0.505376 | 0.106007 | 0.132509 | 0.15371 | 0.272085 | 0.272085 | 0.194346 | 0.194346 | 0.194346 | 0 | 0 | 0.011511 | 0.252688 | 930 | 30 | 115 | 31 | 0.802878 | 0.022581 | 0 | 0.375 | 0 | 0 | 0.131057 | 0.029736 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.125 | 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 |
319a6bb562632b817123a3b1b59712d0c048c830 | 1,559 | py | Python | bin/read_oogeso_data.py | oogeso/oogeso | 72c05fd02d62b29fc62f60daf4989370fd80cbe1 | [
"MIT"
] | 2 | 2021-05-19T13:16:20.000Z | 2021-11-05T11:47:11.000Z | bin/read_oogeso_data.py | oogeso/oogeso | 72c05fd02d62b29fc62f60daf4989370fd80cbe1 | [
"MIT"
] | 71 | 2021-06-01T11:03:56.000Z | 2022-03-01T09:38:37.000Z | bin/read_oogeso_data.py | oogeso/oogeso | 72c05fd02d62b29fc62f60daf4989370fd80cbe1 | [
"MIT"
] | null | null | null | import json
import oogeso.io.file_io
# Read in data, validate date et.c. with methods from io
test_data_file = "examples/test case2.yaml"
json_data = oogeso.io.file_io.read_data_from_yaml(test_data_file)
json_formatted_str = json.dumps(json_data, indent=2)
print("Type json formatted str=", type(json_formatted_str))
... | 37.119048 | 82 | 0.77229 | 208 | 1,559 | 5.519231 | 0.274038 | 0.167247 | 0.069686 | 0.087108 | 0.166376 | 0.135017 | 0 | 0 | 0 | 0 | 0 | 0.002821 | 0.090443 | 1,559 | 41 | 83 | 38.02439 | 0.80677 | 0.481719 | 0 | 0 | 0 | 0 | 0.187342 | 0.063291 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.117647 | 0 | 0.117647 | 0.352941 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
319c9744bc015a0408de27695b17d2663e338344 | 2,295 | py | Python | fgivenx/test/test_mass.py | ejhigson/fgivenx | 91089d8c0ce54bae0f72b41eb1da5d6e8d75738d | [
"MIT"
] | 11 | 2017-10-13T11:04:53.000Z | 2021-03-26T15:54:12.000Z | fgivenx/test/test_mass.py | ejhigson/fgivenx | 91089d8c0ce54bae0f72b41eb1da5d6e8d75738d | [
"MIT"
] | 16 | 2018-08-01T09:25:08.000Z | 2022-03-04T12:29:52.000Z | fgivenx/test/test_mass.py | ejhigson/fgivenx | 91089d8c0ce54bae0f72b41eb1da5d6e8d75738d | [
"MIT"
] | 12 | 2018-02-04T20:34:01.000Z | 2021-12-10T10:58:20.000Z | import numpy
import pytest
import os
from shutil import rmtree
from numpy.testing import assert_allclose
import scipy.stats
import scipy.integrate
import scipy.special
from fgivenx.mass import PMF, compute_pmf
def gaussian_pmf(y, mu=0, sigma=1):
return scipy.special.erfc(numpy.abs(y-mu)/numpy.sqrt(2)/sigma)
def... | 27 | 78 | 0.620915 | 362 | 2,295 | 3.828729 | 0.270718 | 0.079365 | 0.064935 | 0.046176 | 0.286436 | 0.238817 | 0.169553 | 0.131313 | 0.040404 | 0.040404 | 0 | 0.044068 | 0.228758 | 2,295 | 84 | 79 | 27.321429 | 0.738983 | 0.03573 | 0 | 0.196721 | 0 | 0 | 0.022192 | 0 | 0 | 0 | 0 | 0 | 0.163934 | 1 | 0.065574 | false | 0 | 0.147541 | 0.016393 | 0.229508 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
319dcd031d072f86f2934fd6b6ad4796d0a0d399 | 5,141 | py | Python | homeassistant/components/vera/config_flow.py | liangleslie/core | cc807b4d597daaaadc92df4a93c6e30da4f570c6 | [
"Apache-2.0"
] | 2 | 2020-01-03T17:06:33.000Z | 2020-01-13T18:57:32.000Z | homeassistant/components/vera/config_flow.py | liangleslie/core | cc807b4d597daaaadc92df4a93c6e30da4f570c6 | [
"Apache-2.0"
] | 1,016 | 2019-06-18T21:27:47.000Z | 2020-03-06T11:09:58.000Z | homeassistant/components/vera/config_flow.py | liangleslie/core | cc807b4d597daaaadc92df4a93c6e30da4f570c6 | [
"Apache-2.0"
] | null | null | null | """Config flow for Vera."""
from __future__ import annotations
from collections.abc import Mapping
import logging
import re
from typing import Any
import pyvera as pv
from requests.exceptions import RequestException
import voluptuous as vol
from homeassistant import config_entries
from homeassistant.config_entries i... | 32.13125 | 88 | 0.62731 | 617 | 5,141 | 4.969206 | 0.249595 | 0.026093 | 0.031963 | 0.015656 | 0.16047 | 0.127854 | 0.073712 | 0.018265 | 0 | 0 | 0 | 0.001071 | 0.273488 | 5,141 | 159 | 89 | 32.333333 | 0.819813 | 0.096479 | 0 | 0.093458 | 0 | 0 | 0.017536 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.074766 | false | 0 | 0.149533 | 0 | 0.373832 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
319dd84050e699e6ce05aef24f59d85fafabbb42 | 3,368 | py | Python | bin/setup_spectrum.py | MFSJMenger/pysurf | 99c6a94d4cb5046f16a0961b907061d989ffb6dc | [
"Apache-2.0"
] | 7 | 2020-10-28T13:46:08.000Z | 2021-05-27T06:41:56.000Z | bin/setup_spectrum.py | MFSJMenger/pysurf | 99c6a94d4cb5046f16a0961b907061d989ffb6dc | [
"Apache-2.0"
] | 2 | 2020-10-27T19:15:12.000Z | 2020-10-27T19:15:25.000Z | bin/setup_spectrum.py | MFSJMenger/pysurf | 99c6a94d4cb5046f16a0961b907061d989ffb6dc | [
"Apache-2.0"
] | 2 | 2021-04-15T05:54:30.000Z | 2022-02-08T00:10:10.000Z | import os
from shutil import copy2 as copy
#
from pysurf.logger import get_logger
from pysurf.sampling import Sampling
from pysurf.setup import SetupBase
from pysurf.utils import exists_and_isfile
from pysurf.spp import SurfacePointProvider
from colt import Colt
from sp_calc import SinglePointCalculation
class Setu... | 34.367347 | 138 | 0.645487 | 386 | 3,368 | 5.494819 | 0.318653 | 0.016973 | 0.025931 | 0.016973 | 0.150872 | 0.132013 | 0.071664 | 0.04149 | 0.04149 | 0 | 0 | 0.000798 | 0.255938 | 3,368 | 97 | 139 | 34.721649 | 0.845571 | 0.061461 | 0 | 0.072464 | 0 | 0 | 0.357417 | 0.014386 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.130435 | 0.014493 | 0.246377 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
31a2f51b82dfe59d7e0a0af9b9f3cdff2f955130 | 9,179 | py | Python | site_scons/site_tools/mplabx_nbproject/__init__.py | kbhomes/ps2plus | 63467133367082ec06c88e5c0fd623373709717e | [
"MIT"
] | null | null | null | site_scons/site_tools/mplabx_nbproject/__init__.py | kbhomes/ps2plus | 63467133367082ec06c88e5c0fd623373709717e | [
"MIT"
] | null | null | null | site_scons/site_tools/mplabx_nbproject/__init__.py | kbhomes/ps2plus | 63467133367082ec06c88e5c0fd623373709717e | [
"MIT"
] | null | null | null | from pprint import pprint
import SCons.Builder
from SCons.Script import *
import json
import os
import copy
import collections
import xml.etree.ElementTree as ET
from mplabx import MPLABXProperties
MAKEFILE_TEXT = '''
MKDIR=mkdir
CP=cp
CCADMIN=CCadmin
RANLIB=ranlib
build: .build-post
.build-pre:
.build-post: .build-i... | 35.996078 | 130 | 0.706613 | 1,097 | 9,179 | 5.677302 | 0.194166 | 0.020231 | 0.022479 | 0.011561 | 0.186095 | 0.091201 | 0.068722 | 0.040462 | 0.026654 | 0 | 0 | 0.001735 | 0.18368 | 9,179 | 255 | 131 | 35.996078 | 0.829441 | 0.077895 | 0 | 0.042105 | 0 | 0 | 0.214777 | 0.063567 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047368 | false | 0 | 0.047368 | 0.010526 | 0.126316 | 0.005263 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
31acd399985d83122352ad6b8e7282bfbeb0a214 | 1,754 | py | Python | libs/external_libs/docutils-0.4/test/test_transforms/test_peps.py | google-code-export/django-hotclub | d783a5bbcc06816289565f3eae6d99461188ca4a | [
"MIT"
] | 3 | 2015-12-25T14:45:36.000Z | 2016-11-28T09:58:03.000Z | libs/external_libs/docutils-0.4/test/test_transforms/test_peps.py | indro/t2c | 56482ad4aed150f29353e054db2c97b567243bf8 | [
"MIT"
] | null | null | null | libs/external_libs/docutils-0.4/test/test_transforms/test_peps.py | indro/t2c | 56482ad4aed150f29353e054db2c97b567243bf8 | [
"MIT"
] | null | null | null | #! /usr/bin/env python
# Author: David Goodger
# Contact: goodger@users.sourceforge.net
# Revision: $Revision: 3915 $
# Date: $Date: 2005-10-02 03:06:42 +0200 (Sun, 02 Oct 2005) $
# Copyright: This module has been placed in the public domain.
"""
Tests for docutils.transforms.peps.
"""
from __init__ import DocutilsT... | 25.42029 | 78 | 0.646522 | 203 | 1,754 | 5.497537 | 0.472906 | 0.043011 | 0.082437 | 0.089606 | 0.340502 | 0.284946 | 0.12724 | 0.12724 | 0.12724 | 0.12724 | 0 | 0.025455 | 0.216078 | 1,754 | 68 | 79 | 25.794118 | 0.786182 | 0.152223 | 0 | 0.24 | 0 | 0 | 0.361573 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0 | 0.16 | 0 | 0.24 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
31ae9dcd46623a64820f48a76a6115e399610104 | 1,583 | py | Python | api/generate.py | almeida-matheus/playlist-reader | c09393395a7a28d104a2bad28e3af4a8c23f8adf | [
"MIT"
] | null | null | null | api/generate.py | almeida-matheus/playlist-reader | c09393395a7a28d104a2bad28e3af4a8c23f8adf | [
"MIT"
] | null | null | null | api/generate.py | almeida-matheus/playlist-reader | c09393395a7a28d104a2bad28e3af4a8c23f8adf | [
"MIT"
] | null | null | null | import re
from bs4 import BeautifulSoup # beautifulsoup4
import requests # requests
HEADER = {
"User-Agent": 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36'
}
def catch_info(base,pattern,str_add=''):
'''base text, pattern to search, s... | 37.690476 | 141 | 0.651927 | 209 | 1,583 | 4.794258 | 0.473684 | 0.035928 | 0.02994 | 0.05988 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03035 | 0.18825 | 1,583 | 42 | 142 | 37.690476 | 0.749416 | 0.112445 | 0 | 0 | 0 | 0.033333 | 0.247851 | 0.073782 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.1 | 0 | 0.266667 | 0.033333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
31ae9eb018cffff3e9fe4e96c1a466a559766558 | 1,118 | py | Python | homeassistant/components/deconz/const.py | hoverduck/core | 9fa23f6479e9cf8aed3fa6d2980ddc98dae06e7b | [
"Apache-2.0"
] | 1 | 2020-01-08T21:47:59.000Z | 2020-01-08T21:47:59.000Z | homeassistant/components/deconz/const.py | hoverduck/core | 9fa23f6479e9cf8aed3fa6d2980ddc98dae06e7b | [
"Apache-2.0"
] | 39 | 2020-08-31T14:55:47.000Z | 2022-03-31T06:02:16.000Z | homeassistant/components/deconz/const.py | stodev-com-br/home-assistant | 944d7b9d7e59ad878ae9f75b80f4cd418bad8296 | [
"Apache-2.0"
] | null | null | null | """Constants for the deCONZ component."""
import logging
LOGGER = logging.getLogger(__package__)
DOMAIN = "deconz"
CONF_BRIDGE_ID = "bridgeid"
CONF_GROUP_ID_BASE = "group_id_base"
DEFAULT_PORT = 80
DEFAULT_ALLOW_CLIP_SENSOR = False
DEFAULT_ALLOW_DECONZ_GROUPS = True
DEFAULT_ALLOW_NEW_DEVICES = True
CONF_ALLOW_CLIP... | 21.5 | 72 | 0.739714 | 147 | 1,118 | 5.238095 | 0.462585 | 0.046753 | 0.058442 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002092 | 0.144902 | 1,118 | 51 | 73 | 21.921569 | 0.803347 | 0.031306 | 0 | 0 | 0 | 0 | 0.294336 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.025641 | 0 | 0.025641 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
31b24a17c488a7eb71036a8c8f97645c1213787a | 24,392 | py | Python | plugin.audio.podcasts/addon.py | stobb3s/kodi-addon-podcast | de834d10031e372996ec34b2cd989a6d105168a8 | [
"MIT"
] | null | null | null | plugin.audio.podcasts/addon.py | stobb3s/kodi-addon-podcast | de834d10031e372996ec34b2cd989a6d105168a8 | [
"MIT"
] | null | null | null | plugin.audio.podcasts/addon.py | stobb3s/kodi-addon-podcast | de834d10031e372996ec34b2cd989a6d105168a8 | [
"MIT"
] | null | null | null | from datetime import datetime
import base64
import os
import re
import requests
import sys
import urllib.parse
import xmltodict
import xbmc
import xbmcgui
import xbmcplugin
import xbmcaddon
import xbmcvfs
__PLUGIN_ID__ = "plugin.audio.podcasts"
# see https://forum.kodi.tv/showthread.php?tid=112916
_MONTHS = ["Jan", ... | 32.17942 | 142 | 0.508158 | 2,429 | 24,392 | 4.929189 | 0.146562 | 0.082519 | 0.008269 | 0.009187 | 0.353295 | 0.291155 | 0.238036 | 0.192015 | 0.134386 | 0.094463 | 0 | 0.022055 | 0.37172 | 24,392 | 757 | 143 | 32.221929 | 0.759217 | 0.027222 | 0 | 0.271218 | 0 | 0.00369 | 0.099375 | 0.016795 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057196 | false | 0.005535 | 0.035055 | 0.001845 | 0.173432 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
31b296cff20ef1265ad6524a7cf4ad27623881bc | 2,832 | py | Python | .venv/Lib/site-packages/lemoncheesecake/reporting/savingstrategy.py | yadavdeepa365/HUDL_PYTHON | e1d5d264e3748f0add18258496f5a850e16b7ee6 | [
"MIT"
] | 34 | 2017-06-12T18:50:36.000Z | 2021-11-29T01:59:07.000Z | .venv/Lib/site-packages/lemoncheesecake/reporting/savingstrategy.py | yadavdeepa365/HUDL_PYTHON | e1d5d264e3748f0add18258496f5a850e16b7ee6 | [
"MIT"
] | 25 | 2017-12-07T13:35:29.000Z | 2022-03-10T01:27:58.000Z | .venv/Lib/site-packages/lemoncheesecake/reporting/savingstrategy.py | yadavdeepa365/HUDL_PYTHON | e1d5d264e3748f0add18258496f5a850e16b7ee6 | [
"MIT"
] | 4 | 2019-05-05T03:19:00.000Z | 2021-10-06T13:12:05.000Z | import re
import time
from lemoncheesecake.events import TestSessionSetupEndEvent, TestSessionTeardownEndEvent, \
TestEndEvent, SuiteSetupEndEvent, SuiteTeardownEndEvent, SuiteEndEvent, SteppedEvent
from lemoncheesecake.reporting.report import ReportLocation
DEFAULT_REPORT_SAVING_STRATEGY = "at_each_failed_test"
... | 31.120879 | 112 | 0.715042 | 348 | 2,832 | 5.488506 | 0.307471 | 0.050262 | 0.04712 | 0.033508 | 0.265969 | 0.067539 | 0.026178 | 0 | 0 | 0 | 0 | 0.001791 | 0.211158 | 2,832 | 90 | 113 | 31.466667 | 0.853178 | 0.084393 | 0 | 0.096774 | 0 | 0 | 0.067672 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.129032 | false | 0.016129 | 0.064516 | 0.048387 | 0.451613 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
31b5fadfad64338920b6d7434a87ab13e7d9dd53 | 1,222 | py | Python | src/the_tale/the_tale/common/bbcode/renderer.py | al-arz/the-tale | 542770257eb6ebd56a5ac44ea1ef93ff4ab19eb5 | [
"BSD-3-Clause"
] | 85 | 2017-11-21T12:22:02.000Z | 2022-03-27T23:07:17.000Z | src/the_tale/the_tale/common/bbcode/renderer.py | al-arz/the-tale | 542770257eb6ebd56a5ac44ea1ef93ff4ab19eb5 | [
"BSD-3-Clause"
] | 545 | 2017-11-04T14:15:04.000Z | 2022-03-27T14:19:27.000Z | src/the_tale/the_tale/common/bbcode/renderer.py | al-arz/the-tale | 542770257eb6ebd56a5ac44ea1ef93ff4ab19eb5 | [
"BSD-3-Clause"
] | 45 | 2017-11-11T12:36:30.000Z | 2022-02-25T06:10:44.000Z |
import smart_imports
smart_imports.all()
class Renderer:
__slots__ = ('tags', '_renderer')
def __init__(self, tags):
self.tags = tags
self._renderer = postmarkup.create(include=[],
use_pygments=False,
ann... | 31.333333 | 144 | 0.561375 | 140 | 1,222 | 4.728571 | 0.492857 | 0.036254 | 0.048338 | 0.05136 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00117 | 0.300327 | 1,222 | 38 | 145 | 32.157895 | 0.773099 | 0 | 0 | 0 | 0 | 0.038462 | 0.235053 | 0.05733 | 0 | 0 | 0 | 0 | 0 | 1 | 0.115385 | false | 0 | 0.076923 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
31b8b818299558855ad3e395eb84d71adc230d9a | 6,860 | py | Python | tests/python/unittest/test_meta_schedule_custom_rule_winograd_cpu.py | psrivas2/relax | 4329af78eb1dc4c4ff8a61d3bf39aa4034e9cb2a | [
"Apache-2.0"
] | 11 | 2021-11-02T00:49:16.000Z | 2021-11-19T02:17:00.000Z | tests/python/unittest/test_meta_schedule_custom_rule_winograd_cpu.py | psrivas2/relax | 4329af78eb1dc4c4ff8a61d3bf39aa4034e9cb2a | [
"Apache-2.0"
] | 16 | 2021-11-02T00:17:12.000Z | 2021-11-21T20:47:52.000Z | tests/python/unittest/test_meta_schedule_custom_rule_winograd_cpu.py | psrivas2/relax | 4329af78eb1dc4c4ff8a61d3bf39aa4034e9cb2a | [
"Apache-2.0"
] | 4 | 2021-11-05T18:17:23.000Z | 2021-11-11T06:22:00.000Z | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 32.358491 | 85 | 0.559329 | 891 | 6,860 | 4.156004 | 0.30303 | 0.026735 | 0.038887 | 0.048609 | 0.183095 | 0.111261 | 0.079935 | 0.016743 | 0 | 0 | 0 | 0.094846 | 0.326822 | 6,860 | 211 | 86 | 32.511848 | 0.707016 | 0.134694 | 0 | 0.105882 | 0 | 0 | 0.024374 | 0.005078 | 0 | 0 | 0 | 0 | 0.005882 | 1 | 0.041176 | false | 0 | 0.035294 | 0 | 0.082353 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
31b9c954ad4a3b83232dea2da9aa347a1d45c611 | 1,208 | py | Python | scripts/seqrun_processing/sync_seqrun_data_from_remote.py | imperial-genomics-facility/data-management-python | 7b867d8d4562a49173d0b823bdc4bf374a3688f0 | [
"Apache-2.0"
] | 7 | 2018-05-08T07:28:08.000Z | 2022-02-21T14:56:49.000Z | scripts/seqrun_processing/sync_seqrun_data_from_remote.py | imperial-genomics-facility/data-management-python | 7b867d8d4562a49173d0b823bdc4bf374a3688f0 | [
"Apache-2.0"
] | 15 | 2021-08-19T12:32:20.000Z | 2022-02-09T19:52:51.000Z | scripts/seqrun_processing/sync_seqrun_data_from_remote.py | imperial-genomics-facility/data-management-python | 7b867d8d4562a49173d0b823bdc4bf374a3688f0 | [
"Apache-2.0"
] | 2 | 2017-05-12T15:20:10.000Z | 2020-05-07T16:25:11.000Z | #!/usr/bin/env python
import argparse
from igf_data.task_tracking.igf_slack import IGF_slack
from igf_data.process.data_transfer.sync_seqrun_data_on_remote import Sync_seqrun_data_from_remote
parser = argparse.ArgumentParser()
parser.add_argument('-r','--remote_server', required=True, help='Remote server address')
par... | 43.142857 | 105 | 0.78394 | 174 | 1,208 | 5.149425 | 0.413793 | 0.050223 | 0.094866 | 0.046875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000917 | 0.096854 | 1,208 | 27 | 106 | 44.740741 | 0.820348 | 0.022351 | 0 | 0 | 0 | 0 | 0.257216 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.136364 | 0 | 0.136364 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
31bd00426914dc97a2be62873f494b2813748a77 | 1,432 | py | Python | 0188.Best Time to Buy and Sell Stock IV/solution.py | zhlinh/leetcode | 6dfa0a4df9ec07b2c746a13c8257780880ea04af | [
"Apache-2.0"
] | null | null | null | 0188.Best Time to Buy and Sell Stock IV/solution.py | zhlinh/leetcode | 6dfa0a4df9ec07b2c746a13c8257780880ea04af | [
"Apache-2.0"
] | null | null | null | 0188.Best Time to Buy and Sell Stock IV/solution.py | zhlinh/leetcode | 6dfa0a4df9ec07b2c746a13c8257780880ea04af | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
*****************************************
Author: zhlinh
Email: zhlinhng@gmail.com
Version: 0.0.1
Created Time: 2016-03-23
Last_modify: 2016-03-23
******************************************
'''
'''
Say you have an array for which the ith el... | 26.518519 | 79 | 0.515363 | 201 | 1,432 | 3.666667 | 0.507463 | 0.018996 | 0.024423 | 0.029851 | 0.040706 | 0 | 0 | 0 | 0 | 0 | 0 | 0.039674 | 0.313547 | 1,432 | 53 | 80 | 27.018868 | 0.710071 | 0.21648 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0 | 0 | 0.35 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
31beb5620648da5af3d9f0847e1c1d7a84954a2a | 451 | py | Python | Python/List/37.drop.py | angelmpalomares/ModelAndLanguagesForBioInformatics | 0b981bfcdc2a58ad72da3513e783ef75e53c205c | [
"MIT"
] | null | null | null | Python/List/37.drop.py | angelmpalomares/ModelAndLanguagesForBioInformatics | 0b981bfcdc2a58ad72da3513e783ef75e53c205c | [
"MIT"
] | 1 | 2021-06-08T07:44:38.000Z | 2021-06-08T07:53:10.000Z | Python/List/37.drop.py | angelmpalomares/ModelAndLanguagesForBioInformatics | 0b981bfcdc2a58ad72da3513e783ef75e53c205c | [
"MIT"
] | 2 | 2021-04-11T10:13:57.000Z | 2021-06-07T23:20:31.000Z | def drop(i_list: list,n:int) -> list:
"""
Drop at multiple of n from the list
:param n: Drop from the list i_list every N element
:param i_list: The source list
:return: The returned list
"""
assert(n>0)
_shallow_list = []
k=1
for element in i_list:
if k % n != 0:
... | 25.055556 | 55 | 0.585366 | 73 | 451 | 3.369863 | 0.465753 | 0.081301 | 0.089431 | 0.105691 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031546 | 0.297118 | 451 | 18 | 56 | 25.055556 | 0.74448 | 0.321508 | 0 | 0 | 0 | 0 | 0.028674 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 1 | 0.090909 | false | 0 | 0 | 0 | 0.181818 | 0.090909 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
31bebc7c278939b7860a6be8a6a8aa404c030728 | 7,929 | py | Python | cil/balanced_experience_replay.py | itaicaspi-intel/advanced-coach | 2f1d15a8c75d9e3c1742fc553daad5e52f4d5188 | [
"Apache-2.0"
] | 1 | 2019-02-18T05:57:42.000Z | 2019-02-18T05:57:42.000Z | cil/balanced_experience_replay.py | itaicaspi-intel/advanced-coach | 2f1d15a8c75d9e3c1742fc553daad5e52f4d5188 | [
"Apache-2.0"
] | null | null | null | cil/balanced_experience_replay.py | itaicaspi-intel/advanced-coach | 2f1d15a8c75d9e3c1742fc553daad5e52f4d5188 | [
"Apache-2.0"
] | null | null | null | #
# Copyright (c) 2017 Intel Corporation
#
# 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... | 46.098837 | 119 | 0.67436 | 1,021 | 7,929 | 5.044074 | 0.231146 | 0.021748 | 0.029903 | 0.023301 | 0.29165 | 0.241748 | 0.160583 | 0.131262 | 0.082718 | 0.065243 | 0 | 0.004772 | 0.259932 | 7,929 | 171 | 120 | 46.368421 | 0.87287 | 0.237483 | 0 | 0.173913 | 0 | 0 | 0.173676 | 0.009678 | 0 | 0 | 0 | 0 | 0 | 1 | 0.097826 | false | 0 | 0.097826 | 0.01087 | 0.23913 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
31c2501833007cbf35b7052dce9d35c5762beec9 | 271 | py | Python | tools/schedprof/schedprof/mutex.py | ivochkin/dfk | 9d38cc657c18e065e2249865244eba9067b49b2a | [
"MIT"
] | 1 | 2016-05-23T16:18:41.000Z | 2016-05-23T16:18:41.000Z | tools/schedprof/schedprof/mutex.py | ivochkin/dfk | 9d38cc657c18e065e2249865244eba9067b49b2a | [
"MIT"
] | null | null | null | tools/schedprof/schedprof/mutex.py | ivochkin/dfk | 9d38cc657c18e065e2249865244eba9067b49b2a | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from schedprof.enumerated_instance import EnumeratedInstance
class Mutex(EnumeratedInstance):
def __init__(self):
super(Mutex, self).__init__(Mutex)
self.acquired_by = None
self.wait_queue = []
| 22.583333 | 60 | 0.678967 | 31 | 271 | 5.580645 | 0.774194 | 0.104046 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004608 | 0.199262 | 271 | 11 | 61 | 24.636364 | 0.792627 | 0.154982 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
31c2954ee75af37e6605445fd453d42700c71a8e | 1,606 | py | Python | openpype/hosts/houdini/plugins/publish/increment_current_file.py | jonclothcat/OpenPype | d1208cbebc0a7f378de0062ccd653295c6399195 | [
"MIT"
] | 87 | 2021-05-07T08:40:46.000Z | 2022-03-19T00:36:25.000Z | openpype/hosts/houdini/plugins/publish/increment_current_file.py | jonclothcat/OpenPype | d1208cbebc0a7f378de0062ccd653295c6399195 | [
"MIT"
] | 1,019 | 2021-04-26T06:22:56.000Z | 2022-03-31T16:30:43.000Z | openpype/hosts/houdini/plugins/publish/increment_current_file.py | jonclothcat/OpenPype | d1208cbebc0a7f378de0062ccd653295c6399195 | [
"MIT"
] | 33 | 2021-04-29T12:35:54.000Z | 2022-03-25T14:48:42.000Z | import pyblish.api
import avalon.api
from openpype.api import version_up
from openpype.action import get_errored_plugins_from_data
class IncrementCurrentFile(pyblish.api.InstancePlugin):
"""Increment the current file.
Saves the current scene with an increased version number.
"""
label = "Increment... | 30.884615 | 67 | 0.643213 | 177 | 1,606 | 5.644068 | 0.548023 | 0.077077 | 0.034034 | 0.042042 | 0.05005 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004318 | 0.278954 | 1,606 | 51 | 68 | 31.490196 | 0.858377 | 0.155044 | 0 | 0.058824 | 0 | 0 | 0.172646 | 0.020927 | 0 | 0 | 0 | 0 | 0.029412 | 1 | 0.029412 | false | 0 | 0.117647 | 0 | 0.352941 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
31c40d9158227b21f8cb192d674e54997bf631fc | 2,586 | py | Python | 968 Binary Tree Cameras.py | krishna13052001/LeetCode | cd6ec626bea61f0bd9e8493622074f9e69a7a1c3 | [
"MIT"
] | 872 | 2015-06-15T12:02:41.000Z | 2022-03-30T08:44:35.000Z | 968 Binary Tree Cameras.py | nadeemshaikh-github/LeetCode | 3fb14aeea62a960442e47dfde9f964c7ffce32be | [
"MIT"
] | 8 | 2015-06-21T15:11:59.000Z | 2022-02-01T11:22:34.000Z | 968 Binary Tree Cameras.py | nadeemshaikh-github/LeetCode | 3fb14aeea62a960442e47dfde9f964c7ffce32be | [
"MIT"
] | 328 | 2015-06-28T03:10:35.000Z | 2022-03-29T11:05:28.000Z | #!/usr/bin/python3
"""
Given a binary tree, we install cameras on the nodes of the tree.
Each camera at a node can monitor its parent, itself, and its immediate children.
Calculate the minimum number of cameras needed to monitor all nodes of the tree.
Example 1:
Input: [0,0,null,0,0]
Output: 1
Explanation: One c... | 23.944444 | 81 | 0.587394 | 361 | 2,586 | 4.174515 | 0.31856 | 0.109489 | 0.05574 | 0.02787 | 0.369608 | 0.309224 | 0.273391 | 0.184472 | 0.142004 | 0.142004 | 0 | 0.013683 | 0.321732 | 2,586 | 107 | 82 | 24.168224 | 0.845496 | 0.376257 | 0 | 0.413043 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.152174 | false | 0 | 0 | 0 | 0.326087 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
31c5aa8dd90d83d5636e20aed612d574a8d8b309 | 308 | py | Python | examples/get_tiktoks_by_sound.py | twitter-79/TikTok-Api | 366fd2b157dfa66586aa6edc91c50ccf1cf00785 | [
"MIT"
] | 2,095 | 2019-05-26T17:07:02.000Z | 2022-03-31T11:42:32.000Z | examples/get_tiktoks_by_sound.py | twitter-79/TikTok-Api | 366fd2b157dfa66586aa6edc91c50ccf1cf00785 | [
"MIT"
] | 633 | 2019-06-11T06:42:03.000Z | 2022-03-31T11:43:42.000Z | examples/get_tiktoks_by_sound.py | twitter-79/TikTok-Api | 366fd2b157dfa66586aa6edc91c50ccf1cf00785 | [
"MIT"
] | 630 | 2019-09-30T18:11:58.000Z | 2022-03-30T16:23:01.000Z | from TikTokApi import TikTokApi
api = TikTokApi.get_instance()
count = 30
# You can find this from a tiktok getting method in another way or find songs from the discoverMusic method.
sound_id = "6601861313180207878"
tiktoks = api.by_sound(sound_id, count=count)
for tiktok in tiktoks:
print(tiktok)
| 22 | 108 | 0.772727 | 46 | 308 | 5.086957 | 0.652174 | 0.059829 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.081712 | 0.165584 | 308 | 13 | 109 | 23.692308 | 0.828794 | 0.344156 | 0 | 0 | 0 | 0 | 0.095 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
31c5c0e1d9a4cbb4ae462748e1bb8e68224eb9d2 | 4,464 | py | Python | code/SimPleAC_pof_paperplots.py | 1ozturkbe/robustSPpaper | d90f01945f96c5bd45f3518665e52d920820e4d7 | [
"MIT"
] | null | null | null | code/SimPleAC_pof_paperplots.py | 1ozturkbe/robustSPpaper | d90f01945f96c5bd45f3518665e52d920820e4d7 | [
"MIT"
] | 7 | 2018-06-25T14:51:29.000Z | 2019-06-26T18:20:12.000Z | code/SimPleAC_pof_paperplots.py | 1ozturkbe/robustSPpaper | d90f01945f96c5bd45f3518665e52d920820e4d7 | [
"MIT"
] | null | null | null | from builtins import str
from builtins import range
from robust.simulations.simulate import filter_gamma_result_dict
from SimPleAC_save import load_obj
import pickle as pickle
import numpy as np
import matplotlib.pyplot as plt
from SimPleAC_pof_simulate import pof_parameters
if __name__ == "__main__":
# Retrieving... | 49.054945 | 124 | 0.641801 | 537 | 4,464 | 5.134078 | 0.324022 | 0.035546 | 0.030831 | 0.038085 | 0.23395 | 0.18716 | 0.18716 | 0.163946 | 0.110265 | 0.110265 | 0 | 0.023864 | 0.220878 | 4,464 | 90 | 125 | 49.6 | 0.768833 | 0.050179 | 0 | 0 | 0 | 0 | 0.155209 | 0.033546 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.101266 | 0 | 0.101266 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
31c9193304e5d2e005f4e4e2afb188aa62cfb25b | 2,218 | py | Python | tests/test_db_exam_psd.py | awenhaowenchao/bee | cac7522f8994aa3067c6e0a1bb3613de5c577129 | [
"MIT"
] | 4 | 2019-11-12T05:01:42.000Z | 2022-02-23T01:52:11.000Z | tests/test_db_exam_psd.py | awenhaowenchao/bee | cac7522f8994aa3067c6e0a1bb3613de5c577129 | [
"MIT"
] | 6 | 2021-03-19T08:13:39.000Z | 2022-03-02T15:00:19.000Z | tests/test_db_exam_psd.py | awenhaowenchao/bee | cac7522f8994aa3067c6e0a1bb3613de5c577129 | [
"MIT"
] | null | null | null | from datetime import datetime
from bee import Psd, CX, On, T
from bee import Model, IntegerField, StringField, DateTimeField, Equal, W, C
db_exam = Psd.open("exam")
# 1) sing table count search, SELECT COUNT(*) AS COUNT FROM t_teacher
with db_exam.connection() as conn:
teacher_count = db_exam.Select(*CX("COUNT(*)... | 31.239437 | 126 | 0.654193 | 344 | 2,218 | 4.09593 | 0.235465 | 0.068133 | 0.068133 | 0.099361 | 0.506742 | 0.476934 | 0.369056 | 0.28318 | 0.28318 | 0.252661 | 0 | 0.012749 | 0.186655 | 2,218 | 70 | 127 | 31.685714 | 0.768293 | 0.287647 | 0 | 0.358974 | 0 | 0 | 0.11467 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.025641 | 0.076923 | 0 | 0.179487 | 0.179487 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
31cb176f4032d56f3c4634406ddd887dbecb2fe6 | 19,781 | py | Python | slybot/slybot/plugins/scrapely_annotations/builder.py | coolkunal64/ht | b7c52d5604dd75ea4086a6ff92eaa2db85bb145c | [
"BSD-3-Clause"
] | null | null | null | slybot/slybot/plugins/scrapely_annotations/builder.py | coolkunal64/ht | b7c52d5604dd75ea4086a6ff92eaa2db85bb145c | [
"BSD-3-Clause"
] | null | null | null | slybot/slybot/plugins/scrapely_annotations/builder.py | coolkunal64/ht | b7c52d5604dd75ea4086a6ff92eaa2db85bb145c | [
"BSD-3-Clause"
] | null | null | null | import json
from scrapy import Selector
from scrapy.utils.spider import arg_to_iter
from scrapely.htmlpage import parse_html, HtmlTag, HtmlDataFragment
from collections import defaultdict
from itertools import tee, count, groupby
from operator import itemgetter
from slybot.utils import (serialize_tag, add_tagids, re... | 41.210417 | 79 | 0.553258 | 2,038 | 19,781 | 5.174681 | 0.126104 | 0.039446 | 0.01062 | 0.013086 | 0.194671 | 0.151716 | 0.106012 | 0.076996 | 0.051109 | 0.041153 | 0 | 0.003902 | 0.352207 | 19,781 | 479 | 80 | 41.296451 | 0.819104 | 0.073606 | 0 | 0.181122 | 0 | 0 | 0.067665 | 0.001436 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045918 | false | 0.005102 | 0.022959 | 0.005102 | 0.130102 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
31ce1f02b533697e41ca279b2476dd124fe63eb7 | 9,840 | py | Python | scripts/slave/recipes/mojo.py | bopopescu/chromium-build | f8e42c70146c1b668421ee6358dc550a955770a3 | [
"BSD-3-Clause"
] | null | null | null | scripts/slave/recipes/mojo.py | bopopescu/chromium-build | f8e42c70146c1b668421ee6358dc550a955770a3 | [
"BSD-3-Clause"
] | null | null | null | scripts/slave/recipes/mojo.py | bopopescu/chromium-build | f8e42c70146c1b668421ee6358dc550a955770a3 | [
"BSD-3-Clause"
] | 1 | 2020-07-22T09:16:32.000Z | 2020-07-22T09:16:32.000Z | # Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
DEPS = [
'adb',
'depot_tools/bot_update',
'depot_tools/gclient',
'goma',
'recipe_engine/context',
'recipe_engine/json',
'recipe_engine/path',
... | 32.582781 | 80 | 0.613821 | 1,160 | 9,840 | 5.02069 | 0.24569 | 0.051339 | 0.020604 | 0.019574 | 0.244505 | 0.152988 | 0.097184 | 0.05649 | 0.032452 | 0.032452 | 0 | 0.01002 | 0.249492 | 9,840 | 301 | 81 | 32.69103 | 0.778605 | 0.081707 | 0 | 0.159184 | 0 | 0 | 0.294476 | 0.048358 | 0 | 0 | 0 | 0.003322 | 0 | 1 | 0.032653 | false | 0 | 0 | 0 | 0.044898 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
31d0500f716a9df50359013b1a61c1658f74b81f | 3,101 | py | Python | lib/navigation/AreaFighting.py | sadnecc/pb | 3142764e350f92034eb671cfc3d1dae42dea0f0a | [
"MIT"
] | null | null | null | lib/navigation/AreaFighting.py | sadnecc/pb | 3142764e350f92034eb671cfc3d1dae42dea0f0a | [
"MIT"
] | null | null | null | lib/navigation/AreaFighting.py | sadnecc/pb | 3142764e350f92034eb671cfc3d1dae42dea0f0a | [
"MIT"
] | 1 | 2021-05-30T11:15:02.000Z | 2021-05-30T11:15:02.000Z | # -*- coding:utf8 -*-
import random
import time
from lib.navigation.PathFinding import Pathfinding
from lib.control.Control import Control
from lib.unit.Player import Player
from lib.struct.CoordiPoint import CoordiPoint
# 区域打怪
class AreaFighting(Pathfinding):
# area_pos: 区域4角坐标。顺序为:左上,右上,左下,右下
def __init__(se... | 43.676056 | 137 | 0.525637 | 428 | 3,101 | 3.691589 | 0.233645 | 0.035443 | 0.011392 | 0.027848 | 0.136709 | 0.13038 | 0.087342 | 0.051899 | 0.021519 | 0.021519 | 0 | 0.015331 | 0.263786 | 3,101 | 70 | 138 | 44.3 | 0.676741 | 0.145759 | 0 | 0.039216 | 0 | 0 | 0.120441 | 0.06155 | 0 | 0 | 0 | 0 | 0 | 1 | 0.078431 | false | 0 | 0.137255 | 0 | 0.313725 | 0.098039 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
31d16107e52098b68243258cade721f1a3c378e4 | 3,002 | py | Python | examples/cochrane-simplification/log_regression/bow_newsela_lm_tokens.py | AshOlogn/transformers | c4b8c360d4aa78642f4a815ddd2ba9c9fa304c8d | [
"Apache-2.0"
] | null | null | null | examples/cochrane-simplification/log_regression/bow_newsela_lm_tokens.py | AshOlogn/transformers | c4b8c360d4aa78642f4a815ddd2ba9c9fa304c8d | [
"Apache-2.0"
] | null | null | null | examples/cochrane-simplification/log_regression/bow_newsela_lm_tokens.py | AshOlogn/transformers | c4b8c360d4aa78642f4a815ddd2ba9c9fa304c8d | [
"Apache-2.0"
] | null | null | null | import json
import os
from os.path import join
from random import shuffle
import numpy as np
from sklearn.feature_extraction.text import CountVectorizer, TfidfVectorizer
from sklearn.preprocessing import MinMaxScaler, normalize
from sklearn.linear_model import LogisticRegression
from sklearn.model_selection import cros... | 31.93617 | 110 | 0.672552 | 429 | 3,002 | 4.5338 | 0.319347 | 0.021594 | 0.037018 | 0.02365 | 0.153213 | 0.135733 | 0.084319 | 0.084319 | 0.045244 | 0.045244 | 0 | 0.01519 | 0.210526 | 3,002 | 93 | 111 | 32.27957 | 0.805485 | 0.083944 | 0 | 0.065574 | 0 | 0 | 0.071819 | 0.048852 | 0 | 0 | 0 | 0 | 0 | 1 | 0.081967 | false | 0 | 0.180328 | 0 | 0.311475 | 0.016393 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
31d2496126215c595f14a661c15b593c05970c11 | 3,081 | py | Python | TCU/usageexample/automationexample.py | p--q/TCU | 51e2569cdc7553344f2ce279107a39677c3b106e | [
"BSD-3-Clause"
] | null | null | null | TCU/usageexample/automationexample.py | p--q/TCU | 51e2569cdc7553344f2ce279107a39677c3b106e | [
"BSD-3-Clause"
] | null | null | null | TCU/usageexample/automationexample.py | p--q/TCU | 51e2569cdc7553344f2ce279107a39677c3b106e | [
"BSD-3-Clause"
] | null | null | null | #!/opt/libreoffice5.4/program/python
# -*- coding: utf-8 -*-
import unohelper # オートメーションには必須(必須なのはuno)。
def macro():
ctx = XSCRIPTCONTEXT.getComponentContext() # コンポーネントコンテクストの取得。
smgr = ctx.getServiceManager() # サービスマネージャーの取得。
tcu = smgr.createInstanceWithContext("pq.Tcu", ctx) # サービス名か実装名でインスタンス化。
print("\n"... | 50.508197 | 162 | 0.73937 | 291 | 3,081 | 7.773196 | 0.505155 | 0.02122 | 0.035367 | 0.012378 | 0.025641 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00265 | 0.142486 | 3,081 | 61 | 163 | 50.508197 | 0.85352 | 0.268419 | 0 | 0.070175 | 0 | 0 | 0.167791 | 0.090418 | 0 | 0 | 0 | 0 | 0 | 1 | 0.175439 | false | 0 | 0.105263 | 0.052632 | 0.438596 | 0.070175 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |