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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
fc807cc925ac7f44f1a008e0fed384f213e58b2c | 45,543 | py | Python | database.py | cflewis/aspect-oriented-commentator | 341eefe7111116a8a938a33b930da5a85f1320e8 | [
"AFL-3.0"
] | 1 | 2016-05-08T23:45:59.000Z | 2016-05-08T23:45:59.000Z | database.py | cflewis/aspect-oriented-commentator | 341eefe7111116a8a938a33b930da5a85f1320e8 | [
"AFL-3.0"
] | null | null | null | database.py | cflewis/aspect-oriented-commentator | 341eefe7111116a8a938a33b930da5a85f1320e8 | [
"AFL-3.0"
] | null | null | null | #!/usr/bin/env python
# encoding: utf-8
"""
database.py
Created by Chris Lewis on 2008-11-03.
Copyright (c) 2008 Chris Lewis. All rights reserved.
"""
import sys
import os
import unittest
import sqlite3
import MySQLdb
import time
from springpython.aop import *
from commentator import *
#class Storage(object):
# d... | 113.8575 | 152 | 0.635729 | 7,576 | 45,543 | 3.557946 | 0.05491 | 0.105361 | 0.092154 | 0.193137 | 0.906251 | 0.779225 | 0.773994 | 0.767687 | 0.767687 | 0.767687 | 0 | 0.124253 | 0.118547 | 45,543 | 399 | 153 | 114.142857 | 0.547205 | 0.002437 | 0 | 0.033058 | 0 | 0.76584 | 0.947017 | 0.632073 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.002755 | 0.022039 | null | null | 0.00551 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 12 |
fc810069ece4da3b66fe19aa3eb400884b249b78 | 2,970 | py | Python | ex008.py | maurocesarj/Aulas-Senac-Python | 422dcde9c4bfc899d79706df8949dae582dd6ad4 | [
"MIT"
] | null | null | null | ex008.py | maurocesarj/Aulas-Senac-Python | 422dcde9c4bfc899d79706df8949dae582dd6ad4 | [
"MIT"
] | null | null | null | ex008.py | maurocesarj/Aulas-Senac-Python | 422dcde9c4bfc899d79706df8949dae582dd6ad4 | [
"MIT"
] | null | null | null | print('-=-= iniciando calculadora -=-=')
op = int(input(' 1. SOMAR / 2. SUBTRAIR / 3. DIVIDIR / 4. MULTIPLICAR / 5. SAIR: '))
cont = 1
if op == 5:
print('Programa encerrado')
else:
# Soma
if op == 1:
print('Modo SOMA')
num1 = int(input(f'Digite o primeiro número: '))
num2 = int(input(f... | 42.428571 | 86 | 0.512121 | 347 | 2,970 | 4.383285 | 0.135447 | 0.110454 | 0.094675 | 0.157791 | 0.842867 | 0.842867 | 0.842867 | 0.842867 | 0.842867 | 0.729783 | 0 | 0.03888 | 0.350505 | 2,970 | 70 | 87 | 42.428571 | 0.749611 | 0.012121 | 0 | 0.80303 | 0 | 0 | 0.35802 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.212121 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
fca86294d6c8654cd0ddb0f9af8aedfe3977df2a | 4,122 | py | Python | Python/phonenumbers/data/region_MX.py | skykisl/uberbruns2 | 26933efce04dba700d93cc75c7b74e069fb02d26 | [
"Unlicense"
] | 5 | 2015-04-27T20:10:56.000Z | 2018-06-14T18:19:09.000Z | python/phonenumbers/data/region_MX.py | vemel/python-phonenumbers | 595c322bf12106a3b95e3f202e948a7c6b6c15b8 | [
"Apache-2.0"
] | 2 | 2017-06-08T16:11:13.000Z | 2018-05-07T11:50:13.000Z | python/phonenumbers/data/region_MX.py | vemel/python-phonenumbers | 595c322bf12106a3b95e3f202e948a7c6b6c15b8 | [
"Apache-2.0"
] | 6 | 2015-02-19T11:11:04.000Z | 2022-03-15T19:38:31.000Z | """Auto-generated file, do not edit by hand. MX metadata"""
from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata
PHONE_METADATA_MX = PhoneMetadata(id='MX', country_code=52, international_prefix='0[09]',
general_desc=PhoneNumberDesc(national_number_pattern='[1-9]\\d{9,10}', possible_number_patte... | 142.137931 | 552 | 0.657448 | 755 | 4,122 | 3.42649 | 0.161589 | 0.130653 | 0.081175 | 0.180905 | 0.745651 | 0.70777 | 0.70777 | 0.70777 | 0.70777 | 0.512563 | 0 | 0.176727 | 0.055556 | 4,122 | 28 | 553 | 147.214286 | 0.487799 | 0.012858 | 0 | 0 | 1 | 0.230769 | 0.394044 | 0.3111 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.038462 | 0 | 0.038462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
5d8667de4a3057039d34d5a7b8ee13cd51277e3a | 11,864 | py | Python | utils/h36motion.py | 705062791/Progressively-Generating-Better-Initial-Guesses-Towards-Next-Stages-forHigh-Quality-Human-Motion-Pre | 0b9c95a7871dfab4663b84ae15b97087c2513188 | [
"MIT"
] | 2 | 2022-03-09T06:18:58.000Z | 2022-03-13T10:48:01.000Z | utils/h36motion.py | 705062791/Progressively-Generating-Better-Initial-Guesses-Towards-Next-Stages-forHigh-Quality-Human-Motion-Pre | 0b9c95a7871dfab4663b84ae15b97087c2513188 | [
"MIT"
] | null | null | null | utils/h36motion.py | 705062791/Progressively-Generating-Better-Initial-Guesses-Towards-Next-Stages-forHigh-Quality-Human-Motion-Pre | 0b9c95a7871dfab4663b84ae15b97087c2513188 | [
"MIT"
] | null | null | null | from torch.utils.data import Dataset
import numpy as np
from h5py import File
import scipy.io as sio
from utils import data_utils
from matplotlib import pyplot as plt
import torch
class Datasets(Dataset):
def __init__(self, opt, actions=None, split=0):
"""
:param path_to_data:
:param actio... | 48.823045 | 117 | 0.513318 | 1,496 | 11,864 | 3.824198 | 0.15508 | 0.044048 | 0.041951 | 0.023073 | 0.970809 | 0.970809 | 0.970809 | 0.970809 | 0.970809 | 0.970809 | 0 | 0.082546 | 0.366908 | 11,864 | 242 | 118 | 49.024793 | 0.679137 | 0.135199 | 0 | 0.945455 | 0 | 0 | 0.065213 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.036364 | false | 0 | 0.042424 | 0.012121 | 0.115152 | 0.036364 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
f8e6be148ab77c946d5266348c2f5820d36df3df | 2,326 | py | Python | tests/test_xs_Al_float.py | ornlneutronimaging/braggedgemodeling | 6bf49b008cae5707f3c950e4a4d574211f201976 | [
"MIT"
] | 1 | 2019-03-27T13:38:24.000Z | 2019-03-27T13:38:24.000Z | tests/test_xs_Al_float.py | ornlneutronimaging/braggedgemodeling | 6bf49b008cae5707f3c950e4a4d574211f201976 | [
"MIT"
] | 32 | 2018-02-15T18:03:34.000Z | 2022-02-09T14:59:55.000Z | tests/test_xs_Al_float.py | ornlneutronimaging/braggedgemodeling | 6bf49b008cae5707f3c950e4a4d574211f201976 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# Jiao Lin <jiao.lin@gmail.com>
import os, numpy as np
from bem import xscalc, diffraction
from bem import xtaloriprobmodel as xopm
from bem.matter import fccAl
thisdir = os.path.dirname(__file__)
def test1():
lambdas = np.arange(0.05, 5.5, 0.005)
T = 300
# if max_diffraction_index ... | 32.305556 | 89 | 0.671109 | 406 | 2,326 | 3.583744 | 0.204434 | 0.123711 | 0.14433 | 0.182818 | 0.740893 | 0.702406 | 0.702406 | 0.702406 | 0.702406 | 0.702406 | 0 | 0.023656 | 0.200344 | 2,326 | 71 | 90 | 32.760563 | 0.758602 | 0.062769 | 0 | 0.719298 | 0 | 0 | 0.003676 | 0 | 0 | 0 | 0 | 0 | 0.245614 | 1 | 0.052632 | false | 0 | 0.070175 | 0 | 0.175439 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
f8f81011d22d4199a4714c62df839a3d1c7e4074 | 658 | py | Python | tests/learnergy/visual/test_convergence.py | recogna-lab/recogners | 711295f53b47c76246d57df24b75d18bc7ec62e8 | [
"MIT"
] | 1 | 2019-07-04T19:36:42.000Z | 2019-07-04T19:36:42.000Z | tests/learnergy/visual/test_convergence.py | recogna-lab/recogners | 711295f53b47c76246d57df24b75d18bc7ec62e8 | [
"MIT"
] | null | null | null | tests/learnergy/visual/test_convergence.py | recogna-lab/recogners | 711295f53b47c76246d57df24b75d18bc7ec62e8 | [
"MIT"
] | 1 | 2019-12-09T16:18:51.000Z | 2019-12-09T16:18:51.000Z | from learnergy.visual import convergence
def test_convergence_plot():
new_model = {"mse": [1, 2, 3], "pl": [1.5, 2, 2.5], "time": [0.1, 0.2, 0.3]}
try:
convergence.plot(new_model["mse"], new_model["pl"], new_model["time"], labels=1)
except:
convergence.plot(
new_model["mse"],
... | 28.608696 | 88 | 0.530395 | 86 | 658 | 3.883721 | 0.267442 | 0.311377 | 0.269461 | 0.344311 | 0.778443 | 0.700599 | 0.700599 | 0.700599 | 0.700599 | 0.700599 | 0 | 0.03125 | 0.270517 | 658 | 22 | 89 | 29.909091 | 0.664583 | 0 | 0 | 0.333333 | 0 | 0 | 0.098784 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.055556 | 0 | 0.111111 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
5d1f705fa11584c216d27baaac7efac7baa86e52 | 75,670 | py | Python | airflow/providers/google/cloud/hooks/vertex_ai/auto_ml.py | arezamoosavi/airflow | c3c81c3144386d1de535c1c5e777270e727bb69e | [
"Apache-2.0"
] | 2 | 2016-08-23T14:22:15.000Z | 2017-09-28T19:45:26.000Z | airflow/providers/google/cloud/hooks/vertex_ai/auto_ml.py | arezamoosavi/airflow | c3c81c3144386d1de535c1c5e777270e727bb69e | [
"Apache-2.0"
] | 4 | 2019-01-24T11:01:17.000Z | 2022-02-28T04:28:07.000Z | airflow/providers/google/cloud/hooks/vertex_ai/auto_ml.py | arezamoosavi/airflow | c3c81c3144386d1de535c1c5e777270e727bb69e | [
"Apache-2.0"
] | 6 | 2018-04-09T07:46:05.000Z | 2019-07-16T00:13:15.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... | 60.198886 | 133 | 0.691833 | 9,699 | 75,670 | 5.245077 | 0.075059 | 0.011834 | 0.023392 | 0.028896 | 0.836393 | 0.813041 | 0.806967 | 0.796588 | 0.792597 | 0.786956 | 0 | 0.003869 | 0.255465 | 75,670 | 1,256 | 134 | 60.246815 | 0.899093 | 0.610189 | 0 | 0.741197 | 0 | 0 | 0.018396 | 0.007752 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033451 | false | 0 | 0.015845 | 0 | 0.080986 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
53a778849d0043c3d52e474d23fa4e439e8dc8e2 | 42,430 | py | Python | isi_sdk_9_0_0/isi_sdk_9_0_0/api/ipmi_api.py | mohitjain97/isilon_sdk_python | a371f438f542568edb8cda35e929e6b300b1177c | [
"Unlicense"
] | 24 | 2018-06-22T14:13:23.000Z | 2022-03-23T01:21:26.000Z | isi_sdk_9_0_0/isi_sdk_9_0_0/api/ipmi_api.py | mohitjain97/isilon_sdk_python | a371f438f542568edb8cda35e929e6b300b1177c | [
"Unlicense"
] | 46 | 2018-04-30T13:28:22.000Z | 2022-03-21T21:11:07.000Z | isi_sdk_9_0_0/isi_sdk_9_0_0/api/ipmi_api.py | mohitjain97/isilon_sdk_python | a371f438f542568edb8cda35e929e6b300b1177c | [
"Unlicense"
] | 29 | 2018-06-19T00:14:04.000Z | 2022-02-08T17:51:19.000Z | # coding: utf-8
"""
Isilon SDK
Isilon SDK - Language bindings for the OneFS API # noqa: E501
OpenAPI spec version: 10
Contact: sdk@isilon.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import re # noqa: F401
# python 2 and pyt... | 38.855311 | 133 | 0.61737 | 4,792 | 42,430 | 5.181135 | 0.03798 | 0.053166 | 0.024811 | 0.031899 | 0.966449 | 0.958676 | 0.945384 | 0.938175 | 0.928991 | 0.91429 | 0 | 0.017668 | 0.295687 | 42,430 | 1,091 | 134 | 38.890926 | 0.813144 | 0.325524 | 0 | 0.783877 | 1 | 0 | 0.186586 | 0.049345 | 0 | 0 | 0 | 0 | 0 | 1 | 0.039451 | false | 0 | 0.006861 | 0 | 0.104631 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
54e953446ece9f6c5972ca602ad93f66f5b2cb46 | 1,162 | py | Python | methods/black_scholes.py | o1i/hull | 2f2c37fbcb8571e992031ba1b5ff23bf85023d44 | [
"MIT"
] | null | null | null | methods/black_scholes.py | o1i/hull | 2f2c37fbcb8571e992031ba1b5ff23bf85023d44 | [
"MIT"
] | null | null | null | methods/black_scholes.py | o1i/hull | 2f2c37fbcb8571e992031ba1b5ff23bf85023d44 | [
"MIT"
] | null | null | null | import math
from scipy.stats import norm
def put_eur_bs(s: float, k: float, r: float, sig: float, t: float) -> float:
"""
Price of a european put option according to the Black-Scholes-Merton model.
Source: Chapter 15
:param s: Price of the underlying at time 0
:param k: Strike
:param r: Risk ... | 34.176471 | 88 | 0.604131 | 191 | 1,162 | 3.65445 | 0.272251 | 0.040115 | 0.063037 | 0.068768 | 0.922636 | 0.922636 | 0.922636 | 0.922636 | 0.922636 | 0.922636 | 0 | 0.018433 | 0.253012 | 1,162 | 33 | 89 | 35.212121 | 0.785714 | 0.461274 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
54ee917ac978a4c97046566c8c39af862ec94cbd | 56,480 | py | Python | tests/test_quota.py | RCOSDP/osf.io | e7d08f9786868471ffba5320e5cf44a900a2b56b | [
"Apache-2.0"
] | null | null | null | tests/test_quota.py | RCOSDP/osf.io | e7d08f9786868471ffba5320e5cf44a900a2b56b | [
"Apache-2.0"
] | null | null | null | tests/test_quota.py | RCOSDP/osf.io | e7d08f9786868471ffba5320e5cf44a900a2b56b | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
import datetime
import mock
from nose.tools import * # noqa (PEP8 asserts)
import pytest
from addons.osfstorage.models import OsfStorageFileNode
from api.base import settings as api_settings
from framework.auth import signing
from tests.base import OsfTestCase
from osf.models import (
File... | 36.651525 | 171 | 0.549309 | 5,584 | 56,480 | 5.290115 | 0.048173 | 0.030873 | 0.044685 | 0.032769 | 0.905552 | 0.887847 | 0.866385 | 0.862356 | 0.851354 | 0.841909 | 0 | 0.017951 | 0.344086 | 56,480 | 1,540 | 172 | 36.675325 | 0.779436 | 0.003169 | 0 | 0.725748 | 0 | 0 | 0.09458 | 0.015526 | 0 | 0 | 0 | 0 | 0.07221 | 1 | 0.047411 | false | 0 | 0.008753 | 0 | 0.061999 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
071aa000e99aad1a70d05aa2c7c64c12e0c0d75a | 1,174 | py | Python | Backend/src/reports/tests.py | Valle1806/EnergyCorp | aba09105eedcb7dc694b201e50953e19e4e2936b | [
"MIT"
] | 1 | 2021-01-21T08:30:57.000Z | 2021-01-21T08:30:57.000Z | Backend/src/reports/tests.py | ChristianTaborda/Energycorp | 2447b5af211501450177b0b60852dcb31d6ca12d | [
"MIT"
] | null | null | null | Backend/src/reports/tests.py | ChristianTaborda/Energycorp | 2447b5af211501450177b0b60852dcb31d6ca12d | [
"MIT"
] | null | null | null | from django.test import TestCase
# Create your tests here.
"""
COMENT
COMENT
COMENT
COMENT
COMENT
COMENT
COMENT
COMENT
COMENT
COMENT
COMENT
COMENT
COMENT
COMENT
COMENT
COMENT
COMENT
COMENT
COMENT
COMENT
COMENT
COMENT
COMENT
COMENT
COMENT
COMENT
COMENT
COMENT
COMENT
COMENT
COMENT
COMENT
COMENT
COMENT
COMENT
COME... | 6.051546 | 32 | 0.821976 | 162 | 1,174 | 5.95679 | 0.061728 | 1.890155 | 2.81658 | 3.73057 | 0.951295 | 0.951295 | 0.951295 | 0.951295 | 0.951295 | 0.951295 | 0 | 0 | 0.170358 | 1,174 | 194 | 33 | 6.051546 | 0.99076 | 0.019591 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 12 |
07248dd26e933bfe6039ad16bd28c6b6916376c6 | 50,606 | py | Python | src/test_vectors.py | de-centralized-systems/sssmp | 8e2d143b8eb1c354c077f0667a774325fe55d262 | [
"CC-BY-4.0"
] | null | null | null | src/test_vectors.py | de-centralized-systems/sssmp | 8e2d143b8eb1c354c077f0667a774325fe55d262 | [
"CC-BY-4.0"
] | null | null | null | src/test_vectors.py | de-centralized-systems/sssmp | 8e2d143b8eb1c354c077f0667a774325fe55d262 | [
"CC-BY-4.0"
] | 1 | 2021-05-07T09:29:48.000Z | 2021-05-07T09:29:48.000Z | # fmt: off
TEST_VECTORS = [
{
"s": bytes.fromhex("243f6a8885a308d313198a2e03707344"),
"n": 1,
"t": 1,
"c": [
bytes.fromhex("243f6a8885a308d313198a2e03707344"),
],
"shares": [
(1, bytes.fromhex("243f6a8885a308d313198a2e03707344")),
],
... | 44.784071 | 99 | 0.64603 | 2,379 | 50,606 | 13.741908 | 0.065574 | 0.192708 | 0.029824 | 0.043589 | 0.907256 | 0.897926 | 0.897926 | 0.810137 | 0.772513 | 0.772513 | 0 | 0.465578 | 0.23679 | 50,606 | 1,129 | 100 | 44.823738 | 0.380861 | 0.000158 | 0 | 0.816327 | 0 | 0 | 0.512886 | 0.498063 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 11 |
073bf7c68487ccfe049150cac5ba9e659b7333ba | 38,096 | py | Python | hospital/migrations/0006_auto_20211129_1757.py | romsha28/hospital_python | 1bb86266223df5084321917169156aaec1c5e318 | [
"Apache-2.0"
] | null | null | null | hospital/migrations/0006_auto_20211129_1757.py | romsha28/hospital_python | 1bb86266223df5084321917169156aaec1c5e318 | [
"Apache-2.0"
] | 1 | 2021-10-18T08:56:11.000Z | 2021-10-18T08:56:11.000Z | hospital/migrations/0006_auto_20211129_1757.py | romsha28/hospital_python | 1bb86266223df5084321917169156aaec1c5e318 | [
"Apache-2.0"
] | null | null | null | # Generated by Django 3.2.8 on 2021-11-29 12:27
from django.db import migrations, models
import phonenumber_field.modelfields
class Migration(migrations.Migration):
dependencies = [
('hospital', '0005_alter_appointments_patient_id'),
]
operations = [
migrations.AlterField(
m... | 35.939623 | 117 | 0.560453 | 3,411 | 38,096 | 6.128994 | 0.044269 | 0.090405 | 0.249928 | 0.289917 | 0.971348 | 0.970248 | 0.963695 | 0.962068 | 0.938534 | 0.929877 | 0 | 0.008799 | 0.32279 | 38,096 | 1,059 | 118 | 35.97356 | 0.801543 | 0.001181 | 0 | 0.94302 | 1 | 0 | 0.126337 | 0.002024 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.001899 | 0 | 0.004748 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 10 |
4ad4a22f31a992de5f9dcb0367d551b11f26c07d | 7,873 | py | Python | tests/test_probabilities.py | alercebroker/ztf-api-apf | 916f02009a07e43d6ed26bdb1e2b0ec7f41321f1 | [
"Apache-2.0"
] | null | null | null | tests/test_probabilities.py | alercebroker/ztf-api-apf | 916f02009a07e43d6ed26bdb1e2b0ec7f41321f1 | [
"Apache-2.0"
] | null | null | null | tests/test_probabilities.py | alercebroker/ztf-api-apf | 916f02009a07e43d6ed26bdb1e2b0ec7f41321f1 | [
"Apache-2.0"
] | null | null | null | from api.resources.probabilities.probabilities import Probabilities
from db_plugins.db.sql.models import Probability, Taxonomy
taxonomy = [
Taxonomy(
classifier_name="lc_classifier",
classes=[
"SNIa",
"SNIbc",
"SNII",
"SLSN",
"QSO",
... | 39.169154 | 79 | 0.638257 | 767 | 7,873 | 6.202086 | 0.09648 | 0.226613 | 0.357368 | 0.344335 | 0.887324 | 0.819424 | 0.796721 | 0.796721 | 0.785789 | 0.783057 | 0 | 0.001335 | 0.238664 | 7,873 | 200 | 80 | 39.365 | 0.792292 | 0 | 0 | 0.748691 | 0 | 0 | 0.237267 | 0.079385 | 0 | 0 | 0 | 0 | 0.026178 | 1 | 0.015707 | false | 0 | 0.010471 | 0 | 0.026178 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 10 |
ab0592ec650115a828de5f164f69779c6cdcdada | 63,910 | py | Python | nnunet/network_architecture/generic_MedT.py | Magnety/nnUNet | f07e6fdf191377550c57bcdc8859798486f60443 | [
"Apache-2.0"
] | null | null | null | nnunet/network_architecture/generic_MedT.py | Magnety/nnUNet | f07e6fdf191377550c57bcdc8859798486f60443 | [
"Apache-2.0"
] | null | null | null | nnunet/network_architecture/generic_MedT.py | Magnety/nnUNet | f07e6fdf191377550c57bcdc8859798486f60443 | [
"Apache-2.0"
] | null | null | null | from torch.nn import CrossEntropyLoss, Dropout, Softmax, Linear, Conv3d, LayerNorm
import math
import torch.nn as nn
import torch.nn.functional as F
import torch.utils.data
import torch
import numpy as np
import copy
import ml_collections
from nnunet.network_architecture.initialization import InitWeights_He
from nnunet... | 46.111111 | 127 | 0.578345 | 8,782 | 63,910 | 3.98941 | 0.044978 | 0.041673 | 0.020836 | 0.022321 | 0.9289 | 0.917197 | 0.907493 | 0.891023 | 0.874468 | 0.862623 | 0 | 0.044061 | 0.294023 | 63,910 | 1,386 | 128 | 46.111111 | 0.732441 | 0.132311 | 0 | 0.821616 | 0 | 0 | 0.017161 | 0.001532 | 0 | 0 | 0 | 0 | 0.003148 | 1 | 0.03043 | false | 0 | 0.012592 | 0 | 0.118573 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
ab4a561c3abb8a22465b9d6e25b867437e3f97ec | 158 | py | Python | code/archs/segmentation/__init__.py | haasj22/Recycling_Segmentation | 0420baf4c2ac2bd18b03791e123fb4b0ad7869b1 | [
"MIT"
] | 1 | 2021-03-26T00:10:17.000Z | 2021-03-26T00:10:17.000Z | code/archs/segmentation/__init__.py | haasj22/Recycling_Segmentation | 0420baf4c2ac2bd18b03791e123fb4b0ad7869b1 | [
"MIT"
] | null | null | null | code/archs/segmentation/__init__.py | haasj22/Recycling_Segmentation | 0420baf4c2ac2bd18b03791e123fb4b0ad7869b1 | [
"MIT"
] | null | null | null | from IIC.code.archs.segmentation.baselines import *
from IIC.code.archs.segmentation.net10a import *
from IIC.code.archs.segmentation.net10a_twohead import *
| 39.5 | 56 | 0.829114 | 22 | 158 | 5.909091 | 0.409091 | 0.161538 | 0.253846 | 0.369231 | 0.830769 | 0.615385 | 0.615385 | 0 | 0 | 0 | 0 | 0.027397 | 0.075949 | 158 | 3 | 57 | 52.666667 | 0.863014 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 8 |
db44a54bb26157747522ae9ef4e659d7f414bb68 | 20 | py | Python | LuoguCodes/P3541.py | Anguei/OI-Codes | 0ef271e9af0619d4c236e314cd6d8708d356536a | [
"MIT"
] | null | null | null | LuoguCodes/P3541.py | Anguei/OI-Codes | 0ef271e9af0619d4c236e314cd6d8708d356536a | [
"MIT"
] | null | null | null | LuoguCodes/P3541.py | Anguei/OI-Codes | 0ef271e9af0619d4c236e314cd6d8708d356536a | [
"MIT"
] | null | null | null | print "756396726\n1" | 20 | 20 | 0.8 | 3 | 20 | 5.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.526316 | 0.05 | 20 | 1 | 20 | 20 | 0.315789 | 0 | 0 | 0 | 0 | 0 | 0.571429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 1 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 7 |
db4f390adef9cecbab2b2bd5946ed5a1f69f8807 | 2,479 | py | Python | tests/test_fakeap.py | kmillerusaf/profiler | 3fc19ef36ba0fe95fd9c0c7e775e5d1e5c26d253 | [
"BSD-3-Clause"
] | 3 | 2020-04-11T14:50:10.000Z | 2020-12-31T00:21:28.000Z | tests/test_fakeap.py | kmillerusaf/profiler | 3fc19ef36ba0fe95fd9c0c7e775e5d1e5c26d253 | [
"BSD-3-Clause"
] | 32 | 2020-05-05T15:37:38.000Z | 2021-03-05T05:24:11.000Z | tests/test_fakeap.py | kmillerusaf/profiler | 3fc19ef36ba0fe95fd9c0c7e775e5d1e5c26d253 | [
"BSD-3-Clause"
] | 7 | 2020-06-12T00:49:38.000Z | 2020-12-31T00:21:30.000Z | # -*- coding: utf-8 -*-
import pytest
import multiprocessing as mp
from profiler import fakeap
class TestFakeAP:
@pytest.mark.parametrize(
"seq,expected",
[(mp.Value("i", 1), 2), (mp.Value("i", 1969), 1970), (mp.Value("i", 4096), 1)],
)
def test_next_sequence_number(self, seq, expected):... | 75.121212 | 849 | 0.664784 | 486 | 2,479 | 3.355967 | 0.236626 | 0.389945 | 0.424893 | 0.478234 | 0.673207 | 0.673207 | 0.649908 | 0.624157 | 0.624157 | 0.624157 | 0 | 0.285192 | 0.117386 | 2,479 | 33 | 850 | 75.121212 | 0.460238 | 0.025817 | 0 | 0 | 0 | 0.083333 | 0.696517 | 0.658375 | 0 | 0 | 0 | 0 | 0.083333 | 1 | 0.083333 | false | 0 | 0.125 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
db666e733eab6f4fd4d23a2a1f502f21e0988ff5 | 71 | py | Python | archive_verify/redis_client.py | Molmed/snpseq-archive-verify | 0e9fb9558108138187ab453cfedc7309d2a6cf13 | [
"MIT"
] | null | null | null | archive_verify/redis_client.py | Molmed/snpseq-archive-verify | 0e9fb9558108138187ab453cfedc7309d2a6cf13 | [
"MIT"
] | 1 | 2018-09-17T15:04:33.000Z | 2018-09-21T14:05:54.000Z | archive_verify/redis_client.py | Molmed/snpseq-archive-verify | 0e9fb9558108138187ab453cfedc7309d2a6cf13 | [
"MIT"
] | 5 | 2018-01-17T20:32:47.000Z | 2018-08-30T14:48:44.000Z | from redis import Redis
def get_redis_instance():
return Redis()
| 11.833333 | 25 | 0.732394 | 10 | 71 | 5 | 0.7 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.197183 | 71 | 5 | 26 | 14.2 | 0.877193 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | true | 0 | 0.333333 | 0.333333 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 7 |
db704f380b6db26580a5e5cd060a86283335c124 | 9,162 | py | Python | bin/gpio-pingroup-input-examples.py | ralph-mcardell/dibase-rpi-python | 724c18d1f3c6745b3dddf582ea2272ed4e2df8ac | [
"BSD-3-Clause"
] | null | null | null | bin/gpio-pingroup-input-examples.py | ralph-mcardell/dibase-rpi-python | 724c18d1f3c6745b3dddf582ea2272ed4e2df8ac | [
"BSD-3-Clause"
] | null | null | null | bin/gpio-pingroup-input-examples.py | ralph-mcardell/dibase-rpi-python | 724c18d1f3c6745b3dddf582ea2272ed4e2df8ac | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/python
'''
Example uses of the dibase.rpi.gpio package modules.
Shows examples of using multiple pin IO objects to input from GPIO pins.
Developed by R.E. McArdell / Dibase Limited.
Copyright (c) 2012 Dibase Limited
License: dual: GPL or BSD.
'''
import time
import sys
if __name__ == '... | 43.837321 | 106 | 0.627156 | 1,180 | 9,162 | 4.559322 | 0.113559 | 0.074349 | 0.066915 | 0.070632 | 0.90948 | 0.903532 | 0.887175 | 0.877323 | 0.84145 | 0.771747 | 0 | 0.02445 | 0.29022 | 9,162 | 208 | 107 | 44.048077 | 0.80286 | 0.047151 | 0 | 0.741573 | 0 | 0 | 0.20414 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.022472 | null | null | 0.202247 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
db71f48624d1b9f529aa05c213f033c4c1640396 | 223 | py | Python | test_hello_package.py | raja073/hello-package | 37d43948fb44cd9d99dd7903b396525fb5f4a86b | [
"MIT"
] | null | null | null | test_hello_package.py | raja073/hello-package | 37d43948fb44cd9d99dd7903b396525fb5f4a86b | [
"MIT"
] | null | null | null | test_hello_package.py | raja073/hello-package | 37d43948fb44cd9d99dd7903b396525fb5f4a86b | [
"MIT"
] | null | null | null |
from hello_package import hello_package
def test_hello_package_no_params():
assert hello_package() == "Hello, Package!"
def test_hello_package_with_params():
assert hello_package("Dinkan") == "Hello, Dinkan"
| 17.153846 | 53 | 0.748879 | 29 | 223 | 5.344828 | 0.37931 | 0.541935 | 0.193548 | 0.245161 | 0.4 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0 | 0.147982 | 223 | 12 | 54 | 18.583333 | 0.815789 | 0 | 0 | 0 | 0 | 0 | 0.154545 | 0 | 0 | 0 | 0 | 0 | 0.4 | 1 | 0.4 | true | 0 | 0.2 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 7 |
db94c87d2ecc6b6a29f266b1c678c56fe6ba1cd3 | 6,038 | py | Python | landlab/components/erosion_deposition/tests/test_erodep_steady_state.py | vaga3461/landlab | a52de95e6895c93a7a0b7c9fcc05114e53d5bda6 | [
"MIT"
] | null | null | null | landlab/components/erosion_deposition/tests/test_erodep_steady_state.py | vaga3461/landlab | a52de95e6895c93a7a0b7c9fcc05114e53d5bda6 | [
"MIT"
] | null | null | null | landlab/components/erosion_deposition/tests/test_erodep_steady_state.py | vaga3461/landlab | a52de95e6895c93a7a0b7c9fcc05114e53d5bda6 | [
"MIT"
] | null | null | null | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
Created on Thu Jul 27 14:23:25 2017
@author: gtucker
"""
import numpy as np
from numpy.testing import assert_equal
from landlab import RasterModelGrid
from landlab.components import ErosionDeposition, FlowAccumulator
def test_erodep_slope_area_small_vs():
"""T... | 28.347418 | 83 | 0.602021 | 1,002 | 6,038 | 3.46008 | 0.142715 | 0.040381 | 0.028843 | 0.051918 | 0.854918 | 0.818864 | 0.807038 | 0.781367 | 0.774445 | 0.774445 | 0 | 0.080248 | 0.252898 | 6,038 | 212 | 84 | 28.481132 | 0.688317 | 0.220768 | 0 | 0.728682 | 0 | 0 | 0.092241 | 0.058621 | 0 | 0 | 0 | 0 | 0.085271 | 1 | 0.03876 | false | 0 | 0.031008 | 0 | 0.069767 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
dba4cff7cbb70da167c683a63c0533519e7e4eb5 | 323 | py | Python | Validation/HcalHits/python/SimHitsValidationSequence_cff.py | pasmuss/cmssw | 566f40c323beef46134485a45ea53349f59ae534 | [
"Apache-2.0"
] | null | null | null | Validation/HcalHits/python/SimHitsValidationSequence_cff.py | pasmuss/cmssw | 566f40c323beef46134485a45ea53349f59ae534 | [
"Apache-2.0"
] | null | null | null | Validation/HcalHits/python/SimHitsValidationSequence_cff.py | pasmuss/cmssw | 566f40c323beef46134485a45ea53349f59ae534 | [
"Apache-2.0"
] | null | null | null | import FWCore.ParameterSet.Config as cms
from Validation.HcalHits.SimHitsValidationHcal_cfi import *
import Validation.HcalHits.SimHitsValidationHcal_cfi
AllSimHitsValidation = Validation.HcalHits.SimHitsValidationHcal_cfi.simHitsValidationHcal.clone()
hcalSimHitsValidationSequence = cms.Sequence(AllSimHitsValidatio... | 35.888889 | 98 | 0.885449 | 28 | 323 | 10.107143 | 0.535714 | 0.190813 | 0.413428 | 0.44523 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058824 | 323 | 8 | 99 | 40.375 | 0.930921 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.6 | 0 | 0.6 | 0 | 1 | 0 | 1 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
dbb0a354440a4a5a0c82034933b6754263fd511d | 148 | py | Python | test/__init__.py | coatk1/oboyo | 8df1acfbb250ffd15203b9d83d2d4b26efd3d0f0 | [
"MIT"
] | null | null | null | test/__init__.py | coatk1/oboyo | 8df1acfbb250ffd15203b9d83d2d4b26efd3d0f0 | [
"MIT"
] | null | null | null | test/__init__.py | coatk1/oboyo | 8df1acfbb250ffd15203b9d83d2d4b26efd3d0f0 | [
"MIT"
] | null | null | null | #from geo.calc import Calc
#from geo.calc import Distance
#from geo.geosp import Wt
#from geo.geosp import Gh
#from geo.files.csv_file import check
| 24.666667 | 37 | 0.790541 | 27 | 148 | 4.296296 | 0.444444 | 0.301724 | 0.189655 | 0.293103 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.135135 | 148 | 5 | 38 | 29.6 | 0.90625 | 0.932432 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
dbd960eae87bf15eb1b434be84e18f6b7c92aac9 | 60 | py | Python | devilry/devilry_message/models/__init__.py | aless80/devilry-django | 416c262e75170d5662542f15e2d7fecf5ab84730 | [
"BSD-3-Clause"
] | 29 | 2015-01-18T22:56:23.000Z | 2020-11-10T21:28:27.000Z | devilry/devilry_message/models/__init__.py | aless80/devilry-django | 416c262e75170d5662542f15e2d7fecf5ab84730 | [
"BSD-3-Clause"
] | 786 | 2015-01-06T16:10:18.000Z | 2022-03-16T11:10:50.000Z | devilry/devilry_message/models/__init__.py | aless80/devilry-django | 416c262e75170d5662542f15e2d7fecf5ab84730 | [
"BSD-3-Clause"
] | 15 | 2015-04-06T06:18:43.000Z | 2021-02-24T12:28:30.000Z | from .base import Message
from .base import MessageReceiver
| 20 | 33 | 0.833333 | 8 | 60 | 6.25 | 0.625 | 0.32 | 0.56 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.133333 | 60 | 2 | 34 | 30 | 0.961538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
916f48848d0fa03f46aca02d215bb8a18d6748a1 | 172 | py | Python | src/run.py | codedesk/flask-gae-boilerplate | 0af770555acc3fc43d8b75bdce2b1dc3fff29ae3 | [
"CNRI-Python"
] | null | null | null | src/run.py | codedesk/flask-gae-boilerplate | 0af770555acc3fc43d8b75bdce2b1dc3fff29ae3 | [
"CNRI-Python"
] | null | null | null | src/run.py | codedesk/flask-gae-boilerplate | 0af770555acc3fc43d8b75bdce2b1dc3fff29ae3 | [
"CNRI-Python"
] | null | null | null | import os
import sys
sys.path.insert(1, os.path.join(os.path.abspath('.'), 'lib'))
sys.path.insert(1, os.path.join(os.path.abspath('.'), 'application'))
import application
| 28.666667 | 69 | 0.709302 | 28 | 172 | 4.357143 | 0.357143 | 0.196721 | 0.213115 | 0.229508 | 0.606557 | 0.606557 | 0.606557 | 0.606557 | 0.606557 | 0.606557 | 0 | 0.0125 | 0.069767 | 172 | 5 | 70 | 34.4 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0.093023 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.6 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 8 |
917e620085411914958ed371e568adc9f6d69c78 | 11,212 | py | Python | 01_conv_network.py | metataro/DirectFeedbackAlignment | 7e2cbc3f001ac2290a15440628bb2b97d4ec52ab | [
"MIT"
] | 5 | 2020-04-30T11:36:46.000Z | 2021-09-09T06:08:34.000Z | 01_conv_network.py | metataro/DirectFeedbackAlignment | 7e2cbc3f001ac2290a15440628bb2b97d4ec52ab | [
"MIT"
] | null | null | null | 01_conv_network.py | metataro/DirectFeedbackAlignment | 7e2cbc3f001ac2290a15440628bb2b97d4ec52ab | [
"MIT"
] | 1 | 2021-01-07T03:10:32.000Z | 2021-01-07T03:10:32.000Z | from multiprocessing import freeze_support
import matplotlib.pyplot as plt
import numpy as np
import scipy.interpolate
import scipy.ndimage.filters
import dataset.cifar10_dataset
from network import activation, weight_initializer
from network.layers.conv_to_fully_connected import ConvToFullyConnected
from network.la... | 42.957854 | 131 | 0.634231 | 1,443 | 11,212 | 4.746362 | 0.123354 | 0.033728 | 0.021025 | 0.026281 | 0.816032 | 0.797635 | 0.762447 | 0.733246 | 0.722587 | 0.692364 | 0 | 0.039543 | 0.165448 | 11,212 | 260 | 132 | 43.123077 | 0.692423 | 0.242776 | 0 | 0.492063 | 0 | 0 | 0.215652 | 0.039063 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.063492 | 0.111111 | 0 | 0.111111 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 7 |
91aa57b660ed6f7f1260a8e6ea7d464f797acd70 | 2,636 | py | Python | directdm/dm_eft.py | DirectDM/directdm-py | 9e940703bc4e5b2266ce2c93c27abee755c0cbaf | [
"MIT"
] | 5 | 2017-09-09T16:22:00.000Z | 2021-11-17T07:31:11.000Z | directdm/dm_eft.py | DirectDM/directdm-py | 9e940703bc4e5b2266ce2c93c27abee755c0cbaf | [
"MIT"
] | 2 | 2018-04-17T16:43:27.000Z | 2018-04-19T12:34:54.000Z | directdm/dm_eft.py | DirectDM/directdm-py | 9e940703bc4e5b2266ce2c93c27abee755c0cbaf | [
"MIT"
] | 2 | 2018-05-10T17:39:57.000Z | 2018-09-19T16:40:07.000Z | #!/usr/bin/env python3
import sys
import warnings
from directdm.num.num_input import Num_input
from directdm import wilson_coefficients as wc
#--------------------------#
# Define the default input #
#--------------------------#
default_input = Num_input().input_parameters
#--------------------------------------... | 29.617978 | 83 | 0.597496 | 340 | 2,636 | 4.308824 | 0.170588 | 0.065529 | 0.106485 | 0.092833 | 0.800683 | 0.798635 | 0.798635 | 0.798635 | 0.76041 | 0.76041 | 0 | 0.007239 | 0.266313 | 2,636 | 88 | 84 | 29.954545 | 0.750259 | 0.256449 | 0 | 0.714286 | 0 | 0 | 0.002086 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.081633 | false | 0.081633 | 0.081633 | 0 | 0.244898 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 8 |
91c376824625f49cc2bd8af9ed8eaf738a29dd79 | 87 | py | Python | build/lib/browsers_detector/__init__.py | Emire1/TemplateMatchResearch | 57f30d291b3af61ff4483fd34c5922e849f3eac6 | [
"MIT"
] | null | null | null | build/lib/browsers_detector/__init__.py | Emire1/TemplateMatchResearch | 57f30d291b3af61ff4483fd34c5922e849f3eac6 | [
"MIT"
] | null | null | null | build/lib/browsers_detector/__init__.py | Emire1/TemplateMatchResearch | 57f30d291b3af61ff4483fd34c5922e849f3eac6 | [
"MIT"
] | 1 | 2021-05-14T06:23:33.000Z | 2021-05-14T06:23:33.000Z | from browsers_detector.browsers_detector import *
from browsers_detector.data import *
| 29 | 49 | 0.862069 | 11 | 87 | 6.545455 | 0.454545 | 0.666667 | 0.555556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.091954 | 87 | 2 | 50 | 43.5 | 0.911392 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
37e4123f26465bb96983966faa3be89a2d996764 | 48,885 | py | Python | app/hackney_law_data_client/apis/related_link_api.py | tombull/hackneylawclassifier | 54cea27f77ec37317ca60a678805a528a1fc5a88 | [
"MIT"
] | null | null | null | app/hackney_law_data_client/apis/related_link_api.py | tombull/hackneylawclassifier | 54cea27f77ec37317ca60a678805a528a1fc5a88 | [
"MIT"
] | null | null | null | app/hackney_law_data_client/apis/related_link_api.py | tombull/hackneylawclassifier | 54cea27f77ec37317ca60a678805a528a1fc5a88 | [
"MIT"
] | null | null | null | # coding: utf-8
"""
RelatedLinkApi.py
Copyright 2016 SmartBear Software
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 requir... | 42.398092 | 197 | 0.562586 | 5,024 | 48,885 | 5.315685 | 0.054538 | 0.035498 | 0.028645 | 0.01846 | 0.910994 | 0.893282 | 0.880327 | 0.87265 | 0.86752 | 0.860556 | 0 | 0.000344 | 0.346098 | 48,885 | 1,152 | 198 | 42.434896 | 0.835106 | 0.312652 | 0 | 0.847896 | 0 | 0 | 0.184173 | 0.035838 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022654 | false | 0 | 0.009709 | 0 | 0.055016 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
534a52e47a1136810a84cb9c83462c7154221e61 | 4,623 | py | Python | tests/test_data/test_builder.py | HXZhong1997/mmclassification | 8144844007158b866abaab4e1111a80dd9703352 | [
"Apache-2.0"
] | 1 | 2022-03-07T13:55:57.000Z | 2022-03-07T13:55:57.000Z | tests/test_data/test_builder.py | HXZhong1997/mmclassification | 8144844007158b866abaab4e1111a80dd9703352 | [
"Apache-2.0"
] | 5 | 2022-03-02T02:58:56.000Z | 2022-03-23T05:51:53.000Z | tests/test_data/test_builder.py | HXZhong1997/mmclassification | 8144844007158b866abaab4e1111a80dd9703352 | [
"Apache-2.0"
] | 1 | 2022-01-04T03:19:50.000Z | 2022-01-04T03:19:50.000Z | from unittest.mock import patch
import torch
from mmcv.utils import digit_version
from mmcls.datasets import build_dataloader
class TestDataloaderBuilder():
@classmethod
def setup_class(cls):
cls.data = list(range(20))
cls.samples_per_gpu = 5
cls.workers_per_gpu = 1
@patch('mmc... | 37.893443 | 79 | 0.627515 | 578 | 4,623 | 4.797578 | 0.147059 | 0.043274 | 0.046881 | 0.100613 | 0.888929 | 0.888929 | 0.888929 | 0.888929 | 0.855031 | 0.836639 | 0 | 0.026995 | 0.262816 | 4,623 | 121 | 80 | 38.206612 | 0.786678 | 0.056673 | 0 | 0.730337 | 0 | 0 | 0.051724 | 0.024828 | 0 | 0 | 0 | 0 | 0.235955 | 1 | 0.044944 | false | 0 | 0.044944 | 0 | 0.101124 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
534de52877260f8d5f8de13a54a861a02fcdec27 | 1,646 | py | Python | naive_tokenizers/bert_tokenizer_test.py | naivenlp/naive-tokenizers | 811e1eb7452e85a42e4646204a02f28e626c73f6 | [
"Apache-2.0"
] | 1 | 2020-07-02T11:33:35.000Z | 2020-07-02T11:33:35.000Z | naive_tokenizers/bert_tokenizer_test.py | naivenlp/naive-tokenizers | 811e1eb7452e85a42e4646204a02f28e626c73f6 | [
"Apache-2.0"
] | 1 | 2020-06-10T03:56:43.000Z | 2020-06-21T11:43:57.000Z | naive_tokenizers/bert_tokenizer_test.py | naivenlp/naive-tokenizers | 811e1eb7452e85a42e4646204a02f28e626c73f6 | [
"Apache-2.0"
] | null | null | null | import unittest
from .bert_tokenizer import BertTokenizer
class BertTokenizerTest(unittest.TestCase):
def testBertTokenizer(self):
tokenizer = BertTokenizer(
vocab_file='testdata/vocab_chinese.txt',
bos_token='<S>',
eos_token='<T>')
self.assertEqual(0, tokeni... | 36.577778 | 109 | 0.675577 | 196 | 1,646 | 5.44898 | 0.214286 | 0.308989 | 0.302434 | 0.087079 | 0.828652 | 0.828652 | 0.828652 | 0.828652 | 0.828652 | 0.828652 | 0 | 0.050614 | 0.207776 | 1,646 | 44 | 110 | 37.409091 | 0.768405 | 0 | 0 | 0.628571 | 0 | 0 | 0.066221 | 0.047388 | 0 | 0 | 0 | 0 | 0.628571 | 1 | 0.028571 | false | 0 | 0.057143 | 0 | 0.114286 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
5359cfde2a3d12ba9c98a461696b34298efd2eb0 | 20,232 | py | Python | src/Python/Unittests/test_delete_face.py | rzoller/OpenMesh | f84bca0b26c61eab5f9335b2191962ca8545c5f6 | [
"BSD-3-Clause"
] | 19 | 2020-08-13T05:15:09.000Z | 2022-03-31T14:51:29.000Z | src/Python/Unittests/test_delete_face.py | ccopsey/OpenMesh | 93e6e626c3f282bf4275521c33cd8da1ca559c7d | [
"BSD-3-Clause"
] | 2 | 2020-09-08T07:03:04.000Z | 2021-08-04T05:43:27.000Z | src/Python/Unittests/test_delete_face.py | ccopsey/OpenMesh | 93e6e626c3f282bf4275521c33cd8da1ca559c7d | [
"BSD-3-Clause"
] | 10 | 2020-08-06T02:37:46.000Z | 2021-07-01T09:12:06.000Z | import unittest
import openmesh
class DeleteFaceTriangleMesh(unittest.TestCase):
def test_delete_half_triangle_mesh_cube_no_edge_status(self):
self.mesh = openmesh.TriMesh()
self.vhandle = []
# Add some vertices
self.vhandle.append(self.mesh.add_vertex(openmesh.Vec3d(-1, -... | 38.101695 | 79 | 0.524516 | 2,197 | 20,232 | 4.635867 | 0.04142 | 0.226215 | 0.212077 | 0.259205 | 0.980167 | 0.980167 | 0.976927 | 0.967305 | 0.967305 | 0.964948 | 0 | 0.025029 | 0.283165 | 20,232 | 530 | 80 | 38.173585 | 0.677239 | 0.149911 | 0 | 0.959752 | 0 | 0 | 0.000468 | 0 | 0 | 0 | 0 | 0 | 0.157895 | 1 | 0.012384 | false | 0 | 0.006192 | 0 | 0.021672 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 10 |
72c0fd79aaf7d68245a9f483d160cb444b44902b | 101 | py | Python | reki_data_tool/postprocess/station/winter/meso1km/config.py | perillaroc/reki-data-tool | 047424a2f8a1f0e16684bffaeded4044366f63c0 | [
"MIT"
] | null | null | null | reki_data_tool/postprocess/station/winter/meso1km/config.py | perillaroc/reki-data-tool | 047424a2f8a1f0e16684bffaeded4044366f63c0 | [
"MIT"
] | null | null | null | reki_data_tool/postprocess/station/winter/meso1km/config.py | perillaroc/reki-data-tool | 047424a2f8a1f0e16684bffaeded4044366f63c0 | [
"MIT"
] | null | null | null | OUTPUT_DIRECTORY = "/g11/wangdp/project/work/data/playground/operation/winter/meso1km/station/output" | 101 | 101 | 0.841584 | 13 | 101 | 6.461538 | 0.923077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030303 | 0.019802 | 101 | 1 | 101 | 101 | 0.818182 | 0 | 0 | 0 | 0 | 1 | 0.784314 | 0.784314 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
72db410ea189cc74c03c5b92c16848a506305d71 | 198 | py | Python | barcode/models/__init__.py | progistack/odoo-progistack | c0aded728e4c85b913effabad1fbdb8ff81a8174 | [
"MIT"
] | null | null | null | barcode/models/__init__.py | progistack/odoo-progistack | c0aded728e4c85b913effabad1fbdb8ff81a8174 | [
"MIT"
] | null | null | null | barcode/models/__init__.py | progistack/odoo-progistack | c0aded728e4c85b913effabad1fbdb8ff81a8174 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from . import models
from . import barcode
from . import stock_location
from . import barcode_location
from . import product_template_sequence
from . import product_barcode
| 22 | 39 | 0.772727 | 26 | 198 | 5.692308 | 0.461538 | 0.405405 | 0.22973 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005952 | 0.151515 | 198 | 8 | 40 | 24.75 | 0.875 | 0.106061 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
f41d7f64ea5d8e1175797c6636720f8e822e2e1e | 7,854 | py | Python | tests/locals/vm_selection/test_algorithms.py | beloglazov/openstack-neat | a5a853ae2affb0cdc582e3ab641737f5ebd3d0a7 | [
"Apache-2.0"
] | 34 | 2015-01-04T08:02:37.000Z | 2022-02-19T14:43:47.000Z | tests/locals/vm_selection/test_algorithms.py | MisterPup/OpenStack-Neat-Ceilometer | 4e6685ea1a9deb75d1186e60097a357251eaed8d | [
"Apache-2.0"
] | 3 | 2015-01-23T07:45:15.000Z | 2019-07-03T11:16:27.000Z | tests/locals/vm_selection/test_algorithms.py | MisterPup/OpenStack-Neat-Ceilometer | 4e6685ea1a9deb75d1186e60097a357251eaed8d | [
"Apache-2.0"
] | 22 | 2015-01-14T17:54:46.000Z | 2021-08-09T06:09:17.000Z | # Copyright 2012 Anton Beloglazov
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writ... | 38.126214 | 81 | 0.55755 | 1,093 | 7,854 | 3.743824 | 0.118024 | 0.061584 | 0.039101 | 0.050831 | 0.829912 | 0.821359 | 0.814516 | 0.800098 | 0.782991 | 0.765152 | 0 | 0.048785 | 0.308378 | 7,854 | 205 | 82 | 38.312195 | 0.704529 | 0.07041 | 0 | 0.836158 | 0 | 0 | 0.011253 | 0 | 0 | 0 | 0 | 0 | 0.056497 | 1 | 0.056497 | false | 0 | 0.022599 | 0 | 0.084746 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
be9cb309b2b8e42be2d52399ef799c8d641b937d | 110 | py | Python | examples/example_built_interpolator.py | DuraMAT/pvarc | bdcd87165eae530b953cfa26afb7e09e80dc52a3 | [
"BSD-3-Clause"
] | 1 | 2020-10-08T21:09:02.000Z | 2020-10-08T21:09:02.000Z | examples/example_built_interpolator.py | DuraMAT/pvarc | bdcd87165eae530b953cfa26afb7e09e80dc52a3 | [
"BSD-3-Clause"
] | 4 | 2020-12-23T22:57:46.000Z | 2020-12-23T23:13:09.000Z | examples/example_built_interpolator.py | DuraMAT/pvarc | bdcd87165eae530b953cfa26afb7e09e80dc52a3 | [
"BSD-3-Clause"
] | null | null | null | from pvarc import build_arc_reflection_model_interpolator_data
build_arc_reflection_model_interpolator_data() | 36.666667 | 62 | 0.936364 | 15 | 110 | 6.2 | 0.6 | 0.172043 | 0.387097 | 0.494624 | 0.83871 | 0.83871 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045455 | 110 | 3 | 63 | 36.666667 | 0.885714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 8 |
fe4670c3ca31fd97bfa8b5d529288c1da198c559 | 68,618 | py | Python | benchmarks/SimResults/combinations_spec_pinned/cmp_sjengpovrayomnetppmilc/power.py | TugberkArkose/MLScheduler | e493b6cbf7b9d29a2c9300d7dd6f0c2f102e4061 | [
"Unlicense"
] | null | null | null | benchmarks/SimResults/combinations_spec_pinned/cmp_sjengpovrayomnetppmilc/power.py | TugberkArkose/MLScheduler | e493b6cbf7b9d29a2c9300d7dd6f0c2f102e4061 | [
"Unlicense"
] | null | null | null | benchmarks/SimResults/combinations_spec_pinned/cmp_sjengpovrayomnetppmilc/power.py | TugberkArkose/MLScheduler | e493b6cbf7b9d29a2c9300d7dd6f0c2f102e4061 | [
"Unlicense"
] | null | null | null | power = {'BUSES': {'Area': 1.33155,
'Bus/Area': 1.33155,
'Bus/Gate Leakage': 0.00662954,
'Bus/Peak Dynamic': 0.0,
'Bus/Runtime Dynamic': 0.0,
'Bus/Subthreshold Leakage': 0.0691322,
'Bus/Subthreshold Leakage with power gating': 0.0259246,
'Gate... | 75.074398 | 124 | 0.682095 | 8,084 | 68,618 | 5.78377 | 0.067046 | 0.123535 | 0.112927 | 0.093421 | 0.939302 | 0.931431 | 0.917978 | 0.887758 | 0.86267 | 0.841988 | 0 | 0.132019 | 0.2243 | 68,618 | 914 | 125 | 75.074398 | 0.746407 | 0 | 0 | 0.642232 | 0 | 0 | 0.657325 | 0.048092 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
fe51fe582c04c4f4e3a06284c5f178b8b2223b14 | 240,271 | py | Python | awspricingfull.py | chrswt/awspricingfull | cc59aa3d42a1a9c38556d26adb5d48920317bf93 | [
"MIT"
] | null | null | null | awspricingfull.py | chrswt/awspricingfull | cc59aa3d42a1a9c38556d26adb5d48920317bf93 | [
"MIT"
] | null | null | null | awspricingfull.py | chrswt/awspricingfull | cc59aa3d42a1a9c38556d26adb5d48920317bf93 | [
"MIT"
] | 1 | 2018-09-18T20:39:37.000Z | 2018-09-18T20:39:37.000Z | #!/usr/bin/python
#
# Copyright (c) 2015 Ilia Semenov (ilya.v.semenov@gmail.com)
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the righ... | 53.488646 | 145 | 0.376075 | 18,456 | 240,271 | 4.685739 | 0.028825 | 0.011494 | 0.015333 | 0.0179 | 0.92855 | 0.904938 | 0.85562 | 0.826353 | 0.781926 | 0.754625 | 0 | 0.006991 | 0.533277 | 240,271 | 4,491 | 146 | 53.500557 | 0.764188 | 0.124093 | 0 | 0.75512 | 0 | 0.016919 | 0.159688 | 0.045632 | 0 | 0 | 0 | 0 | 0 | 1 | 0.008608 | false | 0 | 0.005046 | 0 | 0.061443 | 0.029979 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
fe560a060a303b0f57ef94c27c11a11bb5fa56e1 | 59 | py | Python | lectures/code/tuples_packing.py | naskoch/python_course | 84adfd3f8d48ca3ad5837f7acc59d2fa051e95d3 | [
"MIT"
] | 4 | 2015-08-10T17:46:55.000Z | 2020-04-18T21:09:03.000Z | lectures/code/tuples_packing.py | naskoch/python_course | 84adfd3f8d48ca3ad5837f7acc59d2fa051e95d3 | [
"MIT"
] | null | null | null | lectures/code/tuples_packing.py | naskoch/python_course | 84adfd3f8d48ca3ad5837f7acc59d2fa051e95d3 | [
"MIT"
] | 2 | 2019-04-24T03:31:02.000Z | 2019-05-13T07:36:06.000Z | t = 1, 2, 3
x, y, z = t
print t # (1, 2, 3)
print y # 2
| 9.833333 | 20 | 0.40678 | 16 | 59 | 1.5 | 0.5 | 0.166667 | 0.25 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.194444 | 0.389831 | 59 | 5 | 21 | 11.8 | 0.472222 | 0.186441 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.5 | 1 | 0 | 1 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 8 |
fe89e6bc8a5e3e39451201dbb0ab6a1746f9fb83 | 263 | py | Python | pca/utils/tests/imports/test_get_dotted_path.py | pcah/python-clean-architecture | 20630d0b3b4c00f6503a26cc98c45df12bc31b3b | [
"MIT"
] | 278 | 2019-01-10T07:57:29.000Z | 2022-03-31T22:47:13.000Z | pca/utils/tests/imports/test_get_dotted_path.py | asuzukosi/python-clean-architecture | 20630d0b3b4c00f6503a26cc98c45df12bc31b3b | [
"MIT"
] | 80 | 2018-11-17T23:44:39.000Z | 2021-12-15T18:29:04.000Z | pca/utils/tests/imports/test_get_dotted_path.py | lhaze/dharma | 20630d0b3b4c00f6503a26cc98c45df12bc31b3b | [
"MIT"
] | 29 | 2018-11-19T20:11:13.000Z | 2022-03-02T06:27:34.000Z | from pca.utils.imports import get_dotted_path
def test_get_dotted_path():
assert get_dotted_path(get_dotted_path) == "pca.utils.imports.get_dotted_path"
assert get_dotted_path(str) == "builtins.str"
assert get_dotted_path(print) == "builtins.print"
| 32.875 | 82 | 0.771863 | 40 | 263 | 4.7 | 0.35 | 0.335106 | 0.484043 | 0.303191 | 0.340426 | 0.340426 | 0.340426 | 0 | 0 | 0 | 0 | 0 | 0.121673 | 263 | 7 | 83 | 37.571429 | 0.813853 | 0 | 0 | 0 | 0 | 0 | 0.224335 | 0.125475 | 0 | 0 | 0 | 0 | 0.6 | 1 | 0.2 | true | 0 | 0.4 | 0 | 0.6 | 0.2 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 7 |
fe9125fa062118b857187d58b9d337af71e149e2 | 4,381 | py | Python | tests/client/test_cookies.py | laggardkernel/httpx | e05a5372eb6172287458b37447c30f650047e1b8 | [
"BSD-3-Clause"
] | 1 | 2021-04-13T15:55:56.000Z | 2021-04-13T15:55:56.000Z | tests/client/test_cookies.py | laggardkernel/httpx | e05a5372eb6172287458b37447c30f650047e1b8 | [
"BSD-3-Clause"
] | null | null | null | tests/client/test_cookies.py | laggardkernel/httpx | e05a5372eb6172287458b37447c30f650047e1b8 | [
"BSD-3-Clause"
] | 1 | 2020-06-30T17:38:47.000Z | 2020-06-30T17:38:47.000Z | from http.cookiejar import Cookie, CookieJar
import httpx
def get_and_set_cookies(request: httpx.Request) -> httpx.Response:
if request.url.path == "/echo_cookies":
data = {"cookies": request.headers.get("cookie")}
return httpx.Response(200, json=data)
elif request.url.path == "/set_cookie":
... | 30.006849 | 88 | 0.654417 | 508 | 4,381 | 5.5 | 0.147638 | 0.080172 | 0.077309 | 0.098783 | 0.838583 | 0.809234 | 0.798139 | 0.776664 | 0.761274 | 0.747674 | 0 | 0.011581 | 0.211596 | 4,381 | 145 | 89 | 30.213793 | 0.797336 | 0.073271 | 0 | 0.747475 | 0 | 0 | 0.177504 | 0.039166 | 0 | 0 | 0 | 0 | 0.181818 | 1 | 0.070707 | false | 0 | 0.020202 | 0 | 0.111111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
fea970fe6a438bbe040226f1b6917c73da487b9e | 84,519 | py | Python | libs/python/qumranica/api/artefact_api.py | Scripta-Qumranica-Electronica/SQE_API_Connectors | aaa9b9eb8709d4257c32ea57321a179c6b1e041a | [
"MIT"
] | null | null | null | libs/python/qumranica/api/artefact_api.py | Scripta-Qumranica-Electronica/SQE_API_Connectors | aaa9b9eb8709d4257c32ea57321a179c6b1e041a | [
"MIT"
] | null | null | null | libs/python/qumranica/api/artefact_api.py | Scripta-Qumranica-Electronica/SQE_API_Connectors | aaa9b9eb8709d4257c32ea57321a179c6b1e041a | [
"MIT"
] | null | null | null | # coding: utf-8
"""
SQE API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
The version of the OpenAPI document: v1
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
import re # noqa: F4... | 52.011692 | 630 | 0.626711 | 9,832 | 84,519 | 5.098251 | 0.030818 | 0.050453 | 0.057814 | 0.037525 | 0.979591 | 0.977916 | 0.977916 | 0.977856 | 0.977038 | 0.97632 | 0 | 0.014029 | 0.305044 | 84,519 | 1,624 | 631 | 52.043719 | 0.839369 | 0.453578 | 0 | 0.764411 | 1 | 0 | 0.225939 | 0.087398 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033835 | false | 0 | 0.006266 | 0 | 0.073935 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
228021d0951c8b8e7085b3b756ecc0f4b546535b | 22,065 | py | Python | graphgym/contrib/layer/attconv.py | tigerneil/GraphGym | 77f1e7acb4d08b6647b2cf1d147d86b736ac25e2 | [
"MIT"
] | 7 | 2021-03-23T08:10:25.000Z | 2022-01-10T05:51:38.000Z | graphgym/contrib/layer/attconv.py | batermj/GraphGym | 05f749900ef07029a127dc36e74e43f4d0eb1a06 | [
"MIT"
] | null | null | null | graphgym/contrib/layer/attconv.py | batermj/GraphGym | 05f749900ef07029a127dc36e74e43f4d0eb1a06 | [
"MIT"
] | 2 | 2020-11-23T21:42:59.000Z | 2021-03-10T11:43:27.000Z | import torch
import torch.nn as nn
from torch.nn import Parameter
import torch.nn.functional as F
from torch_scatter import scatter_add
from torch_geometric.nn.conv import MessagePassing
from torch_geometric.utils import add_remaining_self_loops, softmax
from torch_geometric.nn.inits import glorot, zeros
from graphgym... | 40.560662 | 80 | 0.591978 | 2,810 | 22,065 | 4.385053 | 0.059431 | 0.05551 | 0.031651 | 0.023373 | 0.898961 | 0.896445 | 0.885084 | 0.867229 | 0.866418 | 0.866418 | 0 | 0.008234 | 0.311987 | 22,065 | 543 | 81 | 40.635359 | 0.803439 | 0.016225 | 0 | 0.87067 | 0 | 0 | 0.035052 | 0 | 0 | 0 | 0 | 0.001842 | 0 | 1 | 0.083141 | false | 0.011547 | 0.023095 | 0.009238 | 0.180139 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
2296c77c1f6973b62f2ad39ff8e5401ea047bf3d | 85 | py | Python | cell_localization/flow/__init__.py | ver228/cell_localization | 9739afc7a54f730056945c0a6380896747235099 | [
"MIT"
] | 1 | 2021-08-10T08:24:23.000Z | 2021-08-10T08:24:23.000Z | cell_localization/flow/__init__.py | ver228/cell_localization | 9739afc7a54f730056945c0a6380896747235099 | [
"MIT"
] | null | null | null | cell_localization/flow/__init__.py | ver228/cell_localization | 9739afc7a54f730056945c0a6380896747235099 | [
"MIT"
] | null | null | null | from .flow_coords import *
from .flow_masks import *
from .flow_segmentation import * | 28.333333 | 32 | 0.8 | 12 | 85 | 5.416667 | 0.5 | 0.369231 | 0.430769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.129412 | 85 | 3 | 32 | 28.333333 | 0.878378 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
229c2bd1d4be22f31cc6d141740d6c62bbd32ef3 | 6,683 | py | Python | loldib/getratings/models/NA/na_kindred/na_kindred_mid.py | koliupy/loldib | c9ab94deb07213cdc42b5a7c26467cdafaf81b7f | [
"Apache-2.0"
] | null | null | null | loldib/getratings/models/NA/na_kindred/na_kindred_mid.py | koliupy/loldib | c9ab94deb07213cdc42b5a7c26467cdafaf81b7f | [
"Apache-2.0"
] | null | null | null | loldib/getratings/models/NA/na_kindred/na_kindred_mid.py | koliupy/loldib | c9ab94deb07213cdc42b5a7c26467cdafaf81b7f | [
"Apache-2.0"
] | null | null | null | from getratings.models.ratings import Ratings
class NA_Kindred_Mid_Aatrox(Ratings):
pass
class NA_Kindred_Mid_Ahri(Ratings):
pass
class NA_Kindred_Mid_Akali(Ratings):
pass
class NA_Kindred_Mid_Alistar(Ratings):
pass
class NA_Kindred_Mid_Amumu(Ratings):
pass
class NA_Kindred_Mid_Anivia(Rating... | 16.026379 | 46 | 0.77151 | 972 | 6,683 | 4.878601 | 0.151235 | 0.203712 | 0.407423 | 0.494728 | 0.808941 | 0.808941 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166243 | 6,683 | 416 | 47 | 16.064904 | 0.851041 | 0 | 0 | 0.498195 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.498195 | 0.00361 | 0 | 0.501805 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 8 |
fe10f8e54ccbd193995588d898cdba8112cc7f09 | 15,366 | py | Python | hailo_model_zoo/core/postprocessing/face_detection_postprocessing.py | markgrobman/hailo_model_zoo | 2ea72272ed2debd7f6bee7c4a65bd41de57ec9cf | [
"MIT"
] | 2 | 2021-07-20T15:09:51.000Z | 2021-11-17T11:05:02.000Z | hailo_model_zoo/core/postprocessing/face_detection_postprocessing.py | markgrobman/hailo_model_zoo | 2ea72272ed2debd7f6bee7c4a65bd41de57ec9cf | [
"MIT"
] | null | null | null | hailo_model_zoo/core/postprocessing/face_detection_postprocessing.py | markgrobman/hailo_model_zoo | 2ea72272ed2debd7f6bee7c4a65bd41de57ec9cf | [
"MIT"
] | null | null | null | from itertools import product
import numpy as np
import tensorflow as tf
from object_detection.core.post_processing import batch_multiclass_non_max_suppression
class FaceDetectionPostProc(object):
# The following params are corresponding to those used for training the model
LABEL_OFFSET = 1
NUM_CLASSES =... | 55.876364 | 120 | 0.626643 | 1,810 | 15,366 | 4.976243 | 0.105525 | 0.023093 | 0.035528 | 0.022649 | 0.864439 | 0.845898 | 0.843899 | 0.810925 | 0.810925 | 0.803375 | 0 | 0.022743 | 0.270337 | 15,366 | 274 | 121 | 56.080292 | 0.780592 | 0.023168 | 0 | 0.718182 | 0 | 0 | 0.040328 | 0 | 0 | 0 | 0 | 0 | 0.009091 | 1 | 0.059091 | false | 0 | 0.018182 | 0.009091 | 0.163636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
4aa73436eecf2e8f0772839f3f1f0b2b62316c9c | 97 | py | Python | 6 kyu/Sum of many ints.py | mwk0408/codewars_solutions | 9b4f502b5f159e68024d494e19a96a226acad5e5 | [
"MIT"
] | 6 | 2020-09-03T09:32:25.000Z | 2020-12-07T04:10:01.000Z | 6 kyu/Sum of many ints.py | mwk0408/codewars_solutions | 9b4f502b5f159e68024d494e19a96a226acad5e5 | [
"MIT"
] | 1 | 2021-12-13T15:30:21.000Z | 2021-12-13T15:30:21.000Z | 6 kyu/Sum of many ints.py | mwk0408/codewars_solutions | 9b4f502b5f159e68024d494e19a96a226acad5e5 | [
"MIT"
] | null | null | null | def f(n, m):
if n<m:
return n*(n+1)/2
return (n//m)*(m*(m-1)/2)+(n%m)*((n%m)+1)/2 | 24.25 | 47 | 0.391753 | 25 | 97 | 1.52 | 0.32 | 0.263158 | 0.157895 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.082192 | 0.247423 | 97 | 4 | 47 | 24.25 | 0.438356 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.75 | 0 | 1 | 0 | 1 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 7 |
43b43d1f2a8921f0dad5ccf9c5dfb8d157d5c3b6 | 2,560 | py | Python | tests/test_haystack_about.py | flzara/shaystack | 6bf815f25f3a5d64494ec1c4a34a7b23ea0ad4ce | [
"BSD-2-Clause"
] | 9 | 2021-04-30T13:04:31.000Z | 2022-01-11T14:11:53.000Z | tests/test_haystack_about.py | flzara/shaystack | 6bf815f25f3a5d64494ec1c4a34a7b23ea0ad4ce | [
"BSD-2-Clause"
] | 7 | 2021-03-19T07:31:22.000Z | 2021-03-26T12:31:45.000Z | tests/test_haystack_about.py | flzara/shaystack | 6bf815f25f3a5d64494ec1c4a34a7b23ea0ad4ce | [
"BSD-2-Clause"
] | 5 | 2021-04-29T11:51:04.000Z | 2022-02-22T21:10:19.000Z | from unittest.mock import patch
import shaystack
from shaystack import Grid
from shaystack.ops import HaystackHttpRequest
from shaystack.providers import ping
@patch('shaystack.providers.haystack_interface.no_cache')
@patch.object(ping.Provider, 'about')
def test_about_with_zinc(mock, no_cache) -> None:
# GIVEN
... | 29.767442 | 65 | 0.701563 | 311 | 2,560 | 5.572347 | 0.205788 | 0.048471 | 0.038084 | 0.053664 | 0.814772 | 0.814772 | 0.814772 | 0.814772 | 0.814772 | 0.814772 | 0 | 0.004757 | 0.178906 | 2,560 | 85 | 66 | 30.117647 | 0.819696 | 0.053906 | 0 | 0.708333 | 0 | 0 | 0.187713 | 0.09087 | 0 | 0 | 0 | 0 | 0.25 | 1 | 0.0625 | false | 0 | 0.104167 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
43d739258789bb5484797081bea11e7ebc8fb906 | 2,401 | py | Python | fasttext_train.py | littletiger0712/nlp_adversarial_examples | aef4066a6a8d028ba4ae91a50700b8c937c08a14 | [
"MIT"
] | 2 | 2020-04-20T04:14:43.000Z | 2020-09-18T02:51:43.000Z | fasttext_train.py | littletiger0712/nlp_adversarial_examples | aef4066a6a8d028ba4ae91a50700b8c937c08a14 | [
"MIT"
] | null | null | null | fasttext_train.py | littletiger0712/nlp_adversarial_examples | aef4066a6a8d028ba4ae91a50700b8c937c08a14 | [
"MIT"
] | null | null | null | import fasttext
import pickle
import numpy as np
max_len = 250
MAX_VOCAB_SIZE = 50000
# from keras.preprocessing.sequence import pad_sequences
# with open(('aux_files/dataset_%d.pkl' %MAX_VOCAB_SIZE), 'rb') as f:
# dataset = pickle.load(f)
# train_x = pad_sequences(dataset.train_seqs2, maxlen=max_len, padding=... | 92.346154 | 787 | 0.702207 | 640 | 2,401 | 2.571875 | 0.16875 | 0.442284 | 0.659781 | 0.874848 | 0.76367 | 0.76367 | 0.746051 | 0.746051 | 0.746051 | 0.746051 | 0 | 0.576206 | 0.240317 | 2,401 | 26 | 787 | 92.346154 | 0.326206 | 0.573095 | 0 | 0 | 0 | 0.125 | 0.811881 | 0.063366 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0.25 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 12 |
43dd08798f71fc1e8a0d3c36bdeb6c94d03cd85b | 12,328 | py | Python | mars/dataframe/merge/tests/test_merge.py | hxri/mars | f7864f00911883b94800b63856f0e57648d3d9b4 | [
"Apache-2.0"
] | 1 | 2021-09-03T18:52:06.000Z | 2021-09-03T18:52:06.000Z | mars/dataframe/merge/tests/test_merge.py | hxri/mars | f7864f00911883b94800b63856f0e57648d3d9b4 | [
"Apache-2.0"
] | null | null | null | mars/dataframe/merge/tests/test_merge.py | hxri/mars | f7864f00911883b94800b63856f0e57648d3d9b4 | [
"Apache-2.0"
] | null | null | null | # Copyright 1999-2021 Alibaba Group Holding Ltd.
#
# 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 a... | 40.686469 | 104 | 0.605451 | 1,721 | 12,328 | 4.23649 | 0.110401 | 0.034289 | 0.028803 | 0.025648 | 0.804691 | 0.795776 | 0.760938 | 0.735427 | 0.73145 | 0.706899 | 0 | 0.044786 | 0.233858 | 12,328 | 302 | 105 | 40.821192 | 0.727157 | 0.05086 | 0 | 0.630435 | 0 | 0 | 0.051438 | 0 | 0 | 0 | 0 | 0 | 0.434783 | 1 | 0.026087 | false | 0 | 0.034783 | 0 | 0.06087 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
78f1907a4198aea9ab39a65e80d1c03972f4f316 | 334,570 | py | Python | decision_tree_classifier.py | vdnew/Loan-Prediction | c5412551162a67ec1c37763ec5486ed7e2807883 | [
"MIT"
] | null | null | null | decision_tree_classifier.py | vdnew/Loan-Prediction | c5412551162a67ec1c37763ec5486ed7e2807883 | [
"MIT"
] | null | null | null | decision_tree_classifier.py | vdnew/Loan-Prediction | c5412551162a67ec1c37763ec5486ed7e2807883 | [
"MIT"
] | null | null | null | {
"nbformat": 4,
"nbformat_minor": 0,
"metadata": {
"colab": {
"name": "Decision_Tree_Classifier.ipynb",
"provenance": [],
"authorship_tag": "ABX9TyOqPdVAAXzl4lXr4JfWfMvw",
"include_colab_link": true
},
"kernelspec": {
"name": "python3",
"display_name": "Python 3"
... | 92.524889 | 108,434 | 0.720543 | 18,426 | 334,570 | 13.046945 | 0.372571 | 0.01354 | 0.021048 | 0.00896 | 0.130801 | 0.126783 | 0.123322 | 0.119192 | 0.115693 | 0.114362 | 0 | 0.140742 | 0.187333 | 334,570 | 3,616 | 108,435 | 92.524889 | 0.743437 | 0 | 0 | 0.737555 | 0 | 0.003319 | 0.826127 | 0.649079 | 0 | 1 | 0.000167 | 0 | 0 | 1 | 0 | true | 0 | 0.002212 | 0 | 0.002212 | 0.000277 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | null | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
601d34b71af4ba5fd8a7f666c68b7b1604113d02 | 86 | py | Python | d3flux-master/d3flux/__init__.py | man-shu/metquest-front | 8955c450e0029506b13d1e3de092eea3f0371242 | [
"MIT"
] | 22 | 2016-10-14T13:37:21.000Z | 2022-01-08T23:19:42.000Z | d3flux/__init__.py | Melclic/d3flux | 6b7bcbfc31e1529d7725b9512cc8b7defff09bd1 | [
"MIT"
] | 12 | 2017-01-25T20:33:51.000Z | 2021-09-23T07:48:04.000Z | d3flux/__init__.py | Melclic/d3flux | 6b7bcbfc31e1529d7725b9512cc8b7defff09bd1 | [
"MIT"
] | 10 | 2017-08-22T16:26:32.000Z | 2022-01-08T23:44:35.000Z | from d3flux.core.flux_layouts import flux_map
from d3flux.core.display_tools import *
| 28.666667 | 45 | 0.848837 | 14 | 86 | 5 | 0.642857 | 0.285714 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025641 | 0.093023 | 86 | 2 | 46 | 43 | 0.871795 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
60720dcc0dc1879db3754e76a9c1c6634454b33d | 3,169 | py | Python | msi_perkeyrgb/protocol_data/msi_keymaps.py | bwu62/msi-perkeyrgb | b1faac8a7fab6d0d8be7803214e0066ea9467516 | [
"MIT"
] | null | null | null | msi_perkeyrgb/protocol_data/msi_keymaps.py | bwu62/msi-perkeyrgb | b1faac8a7fab6d0d8be7803214e0066ea9467516 | [
"MIT"
] | null | null | null | msi_perkeyrgb/protocol_data/msi_keymaps.py | bwu62/msi-perkeyrgb | b1faac8a7fab6d0d8be7803214e0066ea9467516 | [
"MIT"
] | null | null | null | AVAILABLE_MSI_KEYMAPS = [
(['GE63', 'GE73', 'GE75', 'GS63', 'GS73', 'GS75', 'GX63', 'GT63', 'GL63', 'GL73'],
{9: 41,
10: 30,
11: 31,
12: 32,
13: 33,
14: 34,
15: 35,
16: 36,
17: 37,
18: 38,
19: 39,
20: 45,
21: 46,
22: 42,
23: 4... | 14.877934 | 86 | 0.29189 | 426 | 3,169 | 2.166667 | 0.321596 | 0.017335 | 0.026002 | 0.015168 | 0.92091 | 0.92091 | 0.92091 | 0.92091 | 0.877573 | 0.877573 | 0 | 0.632565 | 0.562007 | 3,169 | 212 | 87 | 14.948113 | 0.032421 | 0 | 0 | 0.961905 | 0 | 0 | 0.015147 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 10 |
6088c3221ea4df304a8ac85a93aa5852cb3cfd6e | 70,961 | py | Python | projects/src/main/python/CodeJam/Y13R5P1/Nin/generated_py_927c1322bbea4c60806f8b22e0f01acd.py | DynamicCodeSearch/CodeSeer | ee985ece7691691585952eb88565f0e08bdc9113 | [
"MIT"
] | 5 | 2020-04-05T18:04:13.000Z | 2021-04-13T20:34:19.000Z | projects/src/main/python/CodeJam/Y13R5P1/Nin/generated_py_927c1322bbea4c60806f8b22e0f01acd.py | DynamicCodeSearch/CodeSeer | ee985ece7691691585952eb88565f0e08bdc9113 | [
"MIT"
] | 1 | 2020-04-29T21:42:26.000Z | 2020-05-01T23:45:45.000Z | projects/src/main/python/CodeJam/Y13R5P1/Nin/generated_py_927c1322bbea4c60806f8b22e0f01acd.py | DynamicCodeSearch/CodeSeer | ee985ece7691691585952eb88565f0e08bdc9113 | [
"MIT"
] | 3 | 2020-01-27T16:02:14.000Z | 2021-02-08T13:25:15.000Z | import sys
sys.path.append('/home/george2/Raise/ProgramRepair/CodeSeer/projects/src/main/python')
from CodeJam.Y13R5P1.Nin.a import *
def func_0eee475358f4402ea618a3ddeb05bdb4(loss, my, X):
ans = -loss
outcome = min([(my[i] + X[i]) for i in range(37)])
return ans
def func_6c8a039a305e43e1a9c527ff14d53856... | 26.647015 | 86 | 0.450881 | 11,455 | 70,961 | 2.747272 | 0.021912 | 0.051764 | 0.068764 | 0.044805 | 0.80054 | 0.800127 | 0.800127 | 0.800127 | 0.800127 | 0.799809 | 0 | 0.115372 | 0.384507 | 70,961 | 2,662 | 87 | 26.657025 | 0.605161 | 0 | 0 | 0.916994 | 0 | 0 | 0.013007 | 0.00706 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.000874 | null | null | 0.011359 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
7160dfa7c65527f16c82e9e1df56f257e3dc6515 | 2,370 | py | Python | alembic/versions/8cdbfc9dc6d3_rename_tweet_removed_for_clarity.py | jonathanzong/dmca | 70157cff983310e5951024aa80e99e7a5404d758 | [
"MIT"
] | 2 | 2022-02-16T22:50:06.000Z | 2022-02-21T19:38:02.000Z | alembic/versions/8cdbfc9dc6d3_rename_tweet_removed_for_clarity.py | jonathanzong/dmca | 70157cff983310e5951024aa80e99e7a5404d758 | [
"MIT"
] | 2 | 2022-02-01T05:48:07.000Z | 2022-02-01T05:49:29.000Z | alembic/versions/8cdbfc9dc6d3_rename_tweet_removed_for_clarity.py | jonathanzong/bartleby | 70157cff983310e5951024aa80e99e7a5404d758 | [
"MIT"
] | null | null | null | """Rename tweet_removed for clarity
Revision ID: 8cdbfc9dc6d3
Revises: 29b5c90d0fc3
Create Date: 2017-12-17 18:26:28.774252
"""
# revision identifiers, used by Alembic.
revision = '8cdbfc9dc6d3'
down_revision = '29b5c90d0fc3'
branch_labels = None
depends_on = None
from alembic import op
import sqlalchemy as sa
from... | 33.380282 | 140 | 0.721941 | 291 | 2,370 | 5.649485 | 0.233677 | 0.118613 | 0.124088 | 0.182482 | 0.768856 | 0.768856 | 0.768856 | 0.768856 | 0.768856 | 0.768856 | 0 | 0.022102 | 0.140928 | 2,370 | 70 | 141 | 33.857143 | 0.785363 | 0.262447 | 0 | 0.413793 | 0 | 0 | 0.281741 | 0.152358 | 0 | 0 | 0 | 0 | 0 | 1 | 0.275862 | false | 0 | 0.103448 | 0 | 0.37931 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
71a4387b2a71a63ef594a703cd43d915feb4c8dc | 3,016 | py | Python | Lib/pagebot/elements/textconditions.py | bghryct/PageBot | 394150c0fd399f02faec28f4576046882f4d7d39 | [
"MIT"
] | 68 | 2018-10-22T22:42:58.000Z | 2022-03-19T11:07:31.000Z | Lib/pagebot/elements/textconditions.py | TypeNetwork/PageBot | 394150c0fd399f02faec28f4576046882f4d7d39 | [
"MIT"
] | 97 | 2017-07-10T23:49:30.000Z | 2018-10-03T08:17:55.000Z | Lib/pagebot/elements/textconditions.py | TypeNetwork/PageBot | 394150c0fd399f02faec28f4576046882f4d7d39 | [
"MIT"
] | 9 | 2017-07-11T09:59:00.000Z | 2018-09-12T11:59:30.000Z | #!/usr/bin/env python3
# -*- coding: UTF-8 -*-
# -----------------------------------------------------------------------------
#
# P A G E B O T
#
# Copyright (c) 2016+ Buro Petr van Blokland + Claudia Mens
# www.pagebot.io
# Licensed under MIT conditions
#
# Supporting DrawBot, www.drawbot.com
# ... | 30.464646 | 79 | 0.612401 | 356 | 3,016 | 5.16573 | 0.22191 | 0.122349 | 0.146819 | 0.212072 | 0.74062 | 0.74062 | 0.74062 | 0.74062 | 0.74062 | 0.74062 | 0 | 0.01011 | 0.278515 | 3,016 | 98 | 80 | 30.77551 | 0.835018 | 0.630305 | 0 | 0.428571 | 0 | 0 | 0.007484 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.428571 | false | 0.428571 | 0.057143 | 0 | 0.514286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 9 |
71b2e4d8754f667462ccedef68f6c3b289936207 | 132 | py | Python | tests/test044.py | takipsizad/pyjs | 54db0ba6747aca744f9f3c3e985a17e913dfb951 | [
"ECL-2.0",
"Apache-2.0"
] | 739 | 2015-01-01T02:05:11.000Z | 2022-03-30T15:26:16.000Z | tests/test044.py | takipsizad/pyjs | 54db0ba6747aca744f9f3c3e985a17e913dfb951 | [
"ECL-2.0",
"Apache-2.0"
] | 33 | 2015-03-25T23:17:04.000Z | 2021-08-19T08:25:22.000Z | tests/test044.py | takipsizad/pyjs | 54db0ba6747aca744f9f3c3e985a17e913dfb951 | [
"ECL-2.0",
"Apache-2.0"
] | 167 | 2015-01-01T22:27:47.000Z | 2022-03-17T13:29:19.000Z | def test():
x = -y
x = y + z
x = y - z
x = y * z
x = y / z
x = y % z
x = ~y
x = y & z
x = y | z
| 12 | 13 | 0.242424 | 27 | 132 | 1.185185 | 0.185185 | 0.5625 | 0.65625 | 0.75 | 0.78125 | 0.78125 | 0.78125 | 0.78125 | 0.53125 | 0.53125 | 0 | 0 | 0.598485 | 132 | 10 | 14 | 13.2 | 0.603774 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0 | 0 | 0.1 | 0 | 1 | 0 | 1 | null | 1 | 1 | 1 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
71d54927755967fcf9fa5027a3d24ba86fd445aa | 184 | py | Python | tests/transformer/operators/test_unary_operators.py | rahulbahal7/restricted-python | c39cffe71dfc30630e946977735303d3a65b0383 | [
"ZPL-2.1"
] | 236 | 2015-01-03T17:14:53.000Z | 2022-03-01T15:52:46.000Z | tests/transformer/operators/test_unary_operators.py | rahulbahal7/restricted-python | c39cffe71dfc30630e946977735303d3a65b0383 | [
"ZPL-2.1"
] | 149 | 2016-10-24T06:56:44.000Z | 2022-02-24T08:09:10.000Z | tests/transformer/operators/test_unary_operators.py | rahulbahal7/restricted-python | c39cffe71dfc30630e946977735303d3a65b0383 | [
"ZPL-2.1"
] | 30 | 2015-04-03T05:38:13.000Z | 2021-11-10T05:13:38.000Z | from tests.helper import restricted_eval
def test_UAdd():
assert restricted_eval('+a', {'a': 42}) == 42
def test_USub():
assert restricted_eval('-a', {'a': 2411}) == -2411
| 18.4 | 54 | 0.641304 | 26 | 184 | 4.346154 | 0.538462 | 0.371681 | 0.353982 | 0.371681 | 0.389381 | 0 | 0 | 0 | 0 | 0 | 0 | 0.078947 | 0.173913 | 184 | 9 | 55 | 20.444444 | 0.664474 | 0 | 0 | 0 | 0 | 0 | 0.032609 | 0 | 0 | 0 | 0 | 0 | 0.4 | 1 | 0.4 | true | 0 | 0.2 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 8 |
e085bde55a57b3be7aa8b52b7eadc6176ff3bd14 | 195 | py | Python | toss/accounts/admin.py | toss-app/toss-backend | 66765bb350cb165340163ce34186dfc69d38dc02 | [
"Apache-2.0"
] | null | null | null | toss/accounts/admin.py | toss-app/toss-backend | 66765bb350cb165340163ce34186dfc69d38dc02 | [
"Apache-2.0"
] | 1 | 2016-10-22T21:32:35.000Z | 2016-10-22T21:32:35.000Z | toss/accounts/admin.py | toss-app/toss-backend | 66765bb350cb165340163ce34186dfc69d38dc02 | [
"Apache-2.0"
] | null | null | null | from .models import Account
from django.contrib.auth.admin import UserAdmin
from django.contrib import admin
class AccountAdmin(UserAdmin):
pass
admin.site.register(Account, AccountAdmin)
| 19.5 | 47 | 0.810256 | 25 | 195 | 6.32 | 0.56 | 0.126582 | 0.21519 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.123077 | 195 | 9 | 48 | 21.666667 | 0.923977 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.166667 | 0.5 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 7 |
e088a40acaac64d56b2845f13df625936e4211e9 | 16,426 | py | Python | Python_OCR_JE/venv/Lib/site-packages/numpy/typing/tests/data/reveal/arithmetic.py | JE-Chen/je_old_repo | a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5 | [
"MIT"
] | null | null | null | Python_OCR_JE/venv/Lib/site-packages/numpy/typing/tests/data/reveal/arithmetic.py | JE-Chen/je_old_repo | a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5 | [
"MIT"
] | null | null | null | Python_OCR_JE/venv/Lib/site-packages/numpy/typing/tests/data/reveal/arithmetic.py | JE-Chen/je_old_repo | a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5 | [
"MIT"
] | 1 | 2021-04-26T22:41:56.000Z | 2021-04-26T22:41:56.000Z | import numpy as np
c16 = np.complex128()
f8 = np.float64()
i8 = np.int64()
u8 = np.uint64()
c8 = np.complex64()
f4 = np.float32()
i4 = np.int32()
u4 = np.uint32()
dt = np.datetime64(0, "D")
td = np.timedelta64(0, "D")
b_ = np.bool_()
b = bool()
c = complex()
f = float()
i = int()
AR = np.arr... | 56.253425 | 96 | 0.726166 | 2,433 | 16,426 | 4.690506 | 0.02425 | 0.22748 | 0.246758 | 0.252541 | 0.966001 | 0.96346 | 0.939099 | 0.92394 | 0.907466 | 0.801612 | 0 | 0.059339 | 0.123828 | 16,426 | 291 | 97 | 56.446735 | 0.733602 | 0.626507 | 0 | 0.152 | 0 | 0 | 0.000357 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.004 | 0 | 0.004 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
e0c7c7ede1f7ec2e3ef570565f3fc23c32063d8b | 17,588 | py | Python | qa327_test/Frontend/test_R6.py | lucidorangee/CISC-327-Course-Project | b86fe58e809f10a90134cbe33202c9e68a46d13b | [
"MIT"
] | null | null | null | qa327_test/Frontend/test_R6.py | lucidorangee/CISC-327-Course-Project | b86fe58e809f10a90134cbe33202c9e68a46d13b | [
"MIT"
] | null | null | null | qa327_test/Frontend/test_R6.py | lucidorangee/CISC-327-Course-Project | b86fe58e809f10a90134cbe33202c9e68a46d13b | [
"MIT"
] | null | null | null | import pytest
from seleniumbase import BaseCase
from qa327_test.conftest import base_url
from unittest.mock import patch
from qa327.models import db, User, TicketInfo
from werkzeug.security import generate_password_hash, check_password_hash
"""
This file defines unit tests for the frontend homepage.
The tests will on... | 37.742489 | 133 | 0.623607 | 2,298 | 17,588 | 4.645344 | 0.09356 | 0.035972 | 0.040468 | 0.050585 | 0.890867 | 0.883279 | 0.881405 | 0.873724 | 0.863607 | 0.852178 | 0 | 0.023469 | 0.263532 | 17,588 | 465 | 134 | 37.823656 | 0.800664 | 0.260689 | 0 | 0.789474 | 0 | 0 | 0.301828 | 0.048706 | 0 | 0 | 0 | 0.004301 | 0.118421 | 1 | 0.052632 | false | 0.065789 | 0.026316 | 0 | 0.096491 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 8 |
1ca4e37de2c9936340f6f120a25751989a58c08b | 76 | py | Python | ahgp/inference/__init__.py | Francois-Aubet/AHGP | 3ecdd01d138f013ae8da196fbf3a71632aa2cd88 | [
"MIT"
] | 19 | 2020-12-09T22:18:23.000Z | 2021-12-18T10:06:18.000Z | ahgp/inference/__init__.py | Francois-Aubet/AHGP | 3ecdd01d138f013ae8da196fbf3a71632aa2cd88 | [
"MIT"
] | null | null | null | ahgp/inference/__init__.py | Francois-Aubet/AHGP | 3ecdd01d138f013ae8da196fbf3a71632aa2cd88 | [
"MIT"
] | 3 | 2020-12-14T04:13:43.000Z | 2021-05-17T05:38:28.000Z | from ahgp.inference.hyperparam import *
from ahgp.inference.predict import * | 38 | 39 | 0.828947 | 10 | 76 | 6.3 | 0.6 | 0.253968 | 0.539683 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.092105 | 76 | 2 | 40 | 38 | 0.913043 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
1cf4a5fa90a378d9171f5ca4e41f568ecb0b5392 | 10,474 | py | Python | src/larksuiteoapi/service/drive_permission/v1/api.py | keeperlibofan/oapi-sdk-python | 5743dd34eb0bfc30693e9b6e6f5cf35ac82edb26 | [
"Apache-2.0"
] | null | null | null | src/larksuiteoapi/service/drive_permission/v1/api.py | keeperlibofan/oapi-sdk-python | 5743dd34eb0bfc30693e9b6e6f5cf35ac82edb26 | [
"Apache-2.0"
] | null | null | null | src/larksuiteoapi/service/drive_permission/v1/api.py | keeperlibofan/oapi-sdk-python | 5743dd34eb0bfc30693e9b6e6f5cf35ac82edb26 | [
"Apache-2.0"
] | null | null | null | # -*- coding: UTF-8 -*-
# Code generated by lark suite oapi sdk gen
from typing import *
from ....api import Request, Response, set_timeout, set_tenant_key, set_user_access_token, set_path_params, \
set_query_params, set_response_stream, set_is_response_stream, FormData, FormDataFile
from ....config import Config... | 34.006494 | 118 | 0.64684 | 1,211 | 10,474 | 5.327828 | 0.078448 | 0.155146 | 0.08602 | 0.052077 | 0.764414 | 0.764414 | 0.764414 | 0.723187 | 0.723187 | 0.723187 | 0 | 0.000128 | 0.254249 | 10,474 | 307 | 119 | 34.117264 | 0.825887 | 0.159633 | 0 | 0.751351 | 1 | 0 | 0.027511 | 0.024315 | 0 | 0 | 0 | 0 | 0 | 1 | 0.12973 | false | 0 | 0.027027 | 0 | 0.286486 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
1c0586a6a884f119e6c3cf985d623d0ffa8961c6 | 2,470 | py | Python | Days/Day 8 - I Heard You Like Registers/Part 1.py | jamesjiang52/Advent-of-Code-2017 | 94c85696e1335d7b5b00717a0e5f31c3653ba394 | [
"MIT"
] | null | null | null | Days/Day 8 - I Heard You Like Registers/Part 1.py | jamesjiang52/Advent-of-Code-2017 | 94c85696e1335d7b5b00717a0e5f31c3653ba394 | [
"MIT"
] | null | null | null | Days/Day 8 - I Heard You Like Registers/Part 1.py | jamesjiang52/Advent-of-Code-2017 | 94c85696e1335d7b5b00717a0e5f31c3653ba394 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Fri Dec 8 00:06:18 2017
@author: James Jiang
"""
all_lines = [line.rstrip('\n') for line in open('Data.txt')]
instructions = []
for line in all_lines:
strings = line.split()
instructions.append(strings)
values_dict = {}
for i in range(len(instructions)):
valu... | 38 | 74 | 0.548583 | 308 | 2,470 | 4.314935 | 0.13961 | 0.479308 | 0.331076 | 0.328819 | 0.804364 | 0.779533 | 0.740406 | 0.740406 | 0.740406 | 0.740406 | 0 | 0.034896 | 0.25749 | 2,470 | 64 | 75 | 38.59375 | 0.689749 | 0.032389 | 0 | 0.52 | 0 | 0 | 0.01596 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.02 | 0 | 0 | 0 | null | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
1c43614701fd1d9f4f8204066b3f979895e61bb2 | 140 | py | Python | mcc_f1/__init__.py | arthurcgusmao/py-mcc-f1 | d1b7cb856fbf03faad6a9eeeaea08da049c603c0 | [
"MIT"
] | 7 | 2020-10-26T21:33:40.000Z | 2022-02-14T10:56:06.000Z | mcc_f1/__init__.py | arthurcgusmao/py-mcc-f1 | d1b7cb856fbf03faad6a9eeeaea08da049c603c0 | [
"MIT"
] | 1 | 2022-02-13T19:17:15.000Z | 2022-02-13T19:17:15.000Z | mcc_f1/__init__.py | arthurcgusmao/py-mcc-f1 | d1b7cb856fbf03faad6a9eeeaea08da049c603c0 | [
"MIT"
] | 1 | 2022-02-14T10:56:08.000Z | 2022-02-14T10:56:08.000Z | from .mcc_f1_curve import mcc_f1_curve
from ._plot.mcc_f1_curve import plot_mcc_f1_curve
from ._plot.mcc_f1_curve import MCCF1CurveDisplay
| 28 | 49 | 0.871429 | 25 | 140 | 4.36 | 0.28 | 0.229358 | 0.458716 | 0.440367 | 0.623853 | 0.623853 | 0.623853 | 0.623853 | 0.623853 | 0 | 0 | 0.047244 | 0.092857 | 140 | 4 | 50 | 35 | 0.811024 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 8 |
1c53b14905ef8ee394cdba3f0dcbd00a2771fa98 | 3,538 | py | Python | tests/test_shift.py | ryutok/mpl_axes_aligner | bc956ffbdaad0dc6fefc1aaa98f5bc6b55e8ea8a | [
"MIT"
] | 6 | 2018-11-18T21:39:56.000Z | 2022-01-28T12:58:18.000Z | tests/test_shift.py | ryutok/mpl_axes_aligner | bc956ffbdaad0dc6fefc1aaa98f5bc6b55e8ea8a | [
"MIT"
] | 2 | 2018-11-07T05:08:12.000Z | 2021-09-10T19:40:12.000Z | tests/test_shift.py | ryutok/mpl_axes_aligner | bc956ffbdaad0dc6fefc1aaa98f5bc6b55e8ea8a | [
"MIT"
] | 2 | 2018-11-19T11:18:51.000Z | 2019-12-23T16:13:41.000Z | import pytest
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
from mpl_axes_aligner import shift
fig = plt.figure()
def test_expand_range_simple():
org = 0.0
ival = 0.0
fval = 2.0
pos = 0.5
ival, fval = shift._expand_range(org, pos, ival, fval)
assert round(ival, 15) ... | 21.975155 | 58 | 0.607123 | 591 | 3,538 | 3.49577 | 0.098139 | 0.019361 | 0.024201 | 0.029042 | 0.877541 | 0.820426 | 0.816554 | 0.789448 | 0.769119 | 0.74879 | 0 | 0.076063 | 0.241945 | 3,538 | 160 | 59 | 22.1125 | 0.694258 | 0 | 0 | 0.730159 | 0 | 0 | 0.005936 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 1 | 0.126984 | false | 0 | 0.031746 | 0 | 0.15873 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
c744c1393eb92226591a5c68575f595f355a1221 | 4,171 | py | Python | setup.py | RiskAmerica/api-client-python | 468c554a0440bef5086828631e25d99d41e28571 | [
"MIT"
] | null | null | null | setup.py | RiskAmerica/api-client-python | 468c554a0440bef5086828631e25d99d41e28571 | [
"MIT"
] | null | null | null | setup.py | RiskAmerica/api-client-python | 468c554a0440bef5086828631e25d99d41e28571 | [
"MIT"
] | 1 | 2021-04-14T15:52:03.000Z | 2021-04-14T15:52:03.000Z | # coding: utf-8
"""
APIs RISKAMERICA
A continuación les presentamos la documentación las **APIs** **de** **RiskAmerica**, el cual es un servicio pagado ofrecido por RiskAmerica que se contrata por separado a nuestras otras ofertas de software. Algunas consideraciones que debe tener al momento de usar las API... | 104.275 | 1,703 | 0.750899 | 635 | 4,171 | 4.92126 | 0.303937 | 0.03168 | 0.04032 | 0.0336 | 0.85248 | 0.85248 | 0.85248 | 0.84032 | 0.84032 | 0.84032 | 0 | 0.013191 | 0.145768 | 4,171 | 39 | 1,704 | 106.948718 | 0.863879 | 0.471829 | 0 | 0 | 0 | 0.055556 | 0.8381 | 0.013376 | 0 | 0 | 0 | 0.025641 | 0 | 1 | 0 | false | 0 | 0.055556 | 0 | 0.055556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 10 |
c7816df33897d86c2fa1f85629c607bc19730052 | 2,290 | py | Python | ELIT-main/logo.py | Zusyaku/Termux-And-Lali-Linux-V2 | b1a1b0841d22d4bf2cc7932b72716d55f070871e | [
"Apache-2.0"
] | 2 | 2021-11-17T03:35:03.000Z | 2021-12-08T06:00:31.000Z | ELIT-main/logo.py | Zusyaku/Termux-And-Lali-Linux-V2 | b1a1b0841d22d4bf2cc7932b72716d55f070871e | [
"Apache-2.0"
] | null | null | null | ELIT-main/logo.py | Zusyaku/Termux-And-Lali-Linux-V2 | b1a1b0841d22d4bf2cc7932b72716d55f070871e | [
"Apache-2.0"
] | 2 | 2021-11-05T18:07:48.000Z | 2022-02-24T21:25:07.000Z | zmbflogo="""
____ __ ____ ______\n / __/ / / / _//_ __/\n / _/ / /__ _/ / / / \n /___/ /____//___/ /_/ \n
"""
loginlogo = """
_ _ \n | | (_) \n | | ___ __ _ _ _ __ \n | | / _ \ / _` | | '_ \ \n | |___| (_) |... | 61.891892 | 298 | 0.258952 | 50 | 2,290 | 2.64 | 0.2 | 0.484848 | 0.522727 | 0.424242 | 0.204545 | 0.05303 | 0 | 0 | 0 | 0 | 0 | 0 | 0.50393 | 2,290 | 36 | 299 | 63.611111 | 0.116197 | 0 | 0 | 0.333333 | 0 | 0.333333 | 0.91441 | 0.029694 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.074074 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 8 |
c78d9e6dc15b8babcc381f95c1ecdf345d9ef3f5 | 20,880 | py | Python | rescript/tests/test_derep.py | thermokarst-forks/RESCRIPt | 39f608e6f817688a7201e42ae7bbe9eb247ab8aa | [
"BSD-3-Clause"
] | null | null | null | rescript/tests/test_derep.py | thermokarst-forks/RESCRIPt | 39f608e6f817688a7201e42ae7bbe9eb247ab8aa | [
"BSD-3-Clause"
] | null | null | null | rescript/tests/test_derep.py | thermokarst-forks/RESCRIPt | 39f608e6f817688a7201e42ae7bbe9eb247ab8aa | [
"BSD-3-Clause"
] | null | null | null | # ----------------------------------------------------------------------------
# Copyright (c) 2020, QIIME 2 development team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file LICENSE, distributed with this software.
# -----------------------------------------------------... | 60.874636 | 79 | 0.62318 | 2,279 | 20,880 | 5.188679 | 0.103554 | 0.047188 | 0.052431 | 0.104863 | 0.850233 | 0.842368 | 0.836786 | 0.816068 | 0.810825 | 0.810825 | 0 | 0.006763 | 0.270594 | 20,880 | 342 | 80 | 61.052632 | 0.769665 | 0.077443 | 0 | 0.765734 | 0 | 0 | 0.371328 | 0.00832 | 0 | 0 | 0 | 0 | 0.118881 | 1 | 0.052448 | false | 0 | 0.038462 | 0 | 0.101399 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
c7a99786775a96e6007fdd55aaa7b91eda9a2ff7 | 14,815 | py | Python | tests/const.py | pejotes/Home-Assistant-Mail-And-Packages | 73b4ae364c5f5126e8a5b7faf73c341d0dd209e2 | [
"MIT"
] | 301 | 2019-05-23T20:36:39.000Z | 2022-03-28T15:51:25.000Z | tests/const.py | pejotes/Home-Assistant-Mail-And-Packages | 73b4ae364c5f5126e8a5b7faf73c341d0dd209e2 | [
"MIT"
] | 388 | 2019-06-02T04:39:06.000Z | 2022-03-31T02:44:46.000Z | tests/const.py | pejotes/Home-Assistant-Mail-And-Packages | 73b4ae364c5f5126e8a5b7faf73c341d0dd209e2 | [
"MIT"
] | 52 | 2019-06-24T21:01:36.000Z | 2022-03-25T19:02:04.000Z | """ Constants for tests. """
FAKE_CONFIG_DATA_BAD = {
"folder": '"INBOX"',
"generate_mp4": "false",
"gif_duration": 5,
"host": None,
"image_name": "mail_today.gif",
"image_path": "/config/www/mail_and_packages/",
"image_security": False,
"imap_timeout": 30,
"password": "suchfakemuch... | 26.887477 | 72 | 0.580223 | 1,350 | 14,815 | 5.982222 | 0.071852 | 0.031204 | 0.019316 | 0.026746 | 0.912333 | 0.909733 | 0.905275 | 0.905275 | 0.90317 | 0.897845 | 0 | 0.018836 | 0.276139 | 14,815 | 550 | 73 | 26.936364 | 0.734241 | 0.00135 | 0 | 0.888476 | 1 | 0 | 0.551904 | 0.028403 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.020446 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
c7bed19d4c8ab922edc907dcee5d3306793f212c | 100 | py | Python | tabula/__init__.py | kirkholloway/tabula-py | afe4554c8ec818f3f5f70037d0aabab7522af7ab | [
"MIT"
] | null | null | null | tabula/__init__.py | kirkholloway/tabula-py | afe4554c8ec818f3f5f70037d0aabab7522af7ab | [
"MIT"
] | null | null | null | tabula/__init__.py | kirkholloway/tabula-py | afe4554c8ec818f3f5f70037d0aabab7522af7ab | [
"MIT"
] | null | null | null | from .wrapper import read_pdf_table
from .wrapper import read_pdf
from .wrapper import convert_into
| 25 | 35 | 0.85 | 16 | 100 | 5.0625 | 0.5 | 0.407407 | 0.62963 | 0.518519 | 0.592593 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12 | 100 | 3 | 36 | 33.333333 | 0.920455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 7 |
1be91d445414f90c10121e411b7d915049e0960c | 9,782 | py | Python | facebook_api.py | sjtichenor/midway-ford | 43bf8770f2edd483d7c27dede8b9ac1fb8f10152 | [
"MIT"
] | null | null | null | facebook_api.py | sjtichenor/midway-ford | 43bf8770f2edd483d7c27dede8b9ac1fb8f10152 | [
"MIT"
] | null | null | null | facebook_api.py | sjtichenor/midway-ford | 43bf8770f2edd483d7c27dede8b9ac1fb8f10152 | [
"MIT"
] | null | null | null | from pprint import pprint
import locale
import requests
import hashlib
import sqlite3
from datetime import datetime
import ds_scrape
import db_master
locale.setlocale(locale.LC_ALL, 'en_US')
# Convert date_string in format of '2018/01/15' to seconds from epoch string
def date_to_timestamp(date_string):
date_obje... | 30.858044 | 301 | 0.5688 | 1,075 | 9,782 | 4.976744 | 0.183256 | 0.060561 | 0.039252 | 0.027477 | 0.806916 | 0.770654 | 0.768785 | 0.76243 | 0.76243 | 0.755514 | 0 | 0.053738 | 0.309446 | 9,782 | 316 | 302 | 30.955696 | 0.738268 | 0.051012 | 0 | 0.713004 | 0 | 0.008969 | 0.286825 | 0.066415 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03139 | false | 0 | 0.035874 | 0 | 0.080717 | 0.06278 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
40012bf765580fa072940dad7de8491c16faeeec | 3,760 | py | Python | tools/TWM_ROUTES_ANALYZER/analize.py | uahservtel/uah-gist-mutraff-bastra | b5a4eab4763e1cf9d914c4af8a77426391e71e31 | [
"Xnet",
"Linux-OpenIB",
"X11"
] | 3 | 2019-11-20T15:22:27.000Z | 2021-06-13T07:52:14.000Z | tools/TWM_ROUTES_ANALYZER_GRID/analize.py | uahservtel/uah-gist-mutraff-bastra | b5a4eab4763e1cf9d914c4af8a77426391e71e31 | [
"Xnet",
"Linux-OpenIB",
"X11"
] | null | null | null | tools/TWM_ROUTES_ANALYZER_GRID/analize.py | uahservtel/uah-gist-mutraff-bastra | b5a4eab4763e1cf9d914c4af8a77426391e71e31 | [
"Xnet",
"Linux-OpenIB",
"X11"
] | null | null | null | old_routes={}
old_routes[63]="22726045 180049719 180049722 125233795#0 125233795#1 22725997#4 23957429#0 23957429#1 23957428#2 23957428#3 23957428#4 23957447 23904701#1 23904701#2 23904701#3 23904701#4 77806028#0 77806028#1 77806028#2 77806028#3 77806026#3 77806026#4 77806016#0 77806016#1 77806016#2 77806016#3 77806016... | 208.888889 | 1,571 | 0.792021 | 618 | 3,760 | 4.79288 | 0.16343 | 0.024308 | 0.020257 | 0.020257 | 0.717758 | 0.690749 | 0.677245 | 0.677245 | 0.677245 | 0.677245 | 0 | 0.737368 | 0.094681 | 3,760 | 17 | 1,572 | 221.176471 | 0.132785 | 0.031915 | 0 | 0 | 0 | 0.166667 | 0.882563 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.083333 | 0.416667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 7 |
4003b8bdd6380416559723e1f6e65f6919082cde | 5,201 | py | Python | e2cnn/group/groups/factory.py | steven-lang/e2cnn | 48f49760766ec958b52d0dd7b02483886dfa2096 | [
"BSD-3-Clause"
] | 356 | 2019-11-22T10:37:22.000Z | 2022-03-25T14:42:45.000Z | e2cnn/group/groups/factory.py | steven-lang/e2cnn | 48f49760766ec958b52d0dd7b02483886dfa2096 | [
"BSD-3-Clause"
] | 52 | 2020-01-20T16:51:36.000Z | 2022-03-31T21:40:19.000Z | e2cnn/group/groups/factory.py | steven-lang/e2cnn | 48f49760766ec958b52d0dd7b02483886dfa2096 | [
"BSD-3-Clause"
] | 48 | 2019-12-11T09:29:30.000Z | 2022-03-18T17:51:55.000Z |
from .cyclicgroup import CyclicGroup
from .dihedralgroup import DihedralGroup
from .so2group import SO2
from .o2group import O2
__all__ = [
"cyclic_group",
"dihedral_group",
"so2_group",
"o2_group",
"trivial_group",
]
def trivial_group():
r"""
Builds the trivial group :math:`C_1` wh... | 40.317829 | 120 | 0.722938 | 752 | 5,201 | 4.957447 | 0.155585 | 0.040236 | 0.021459 | 0.042918 | 0.835032 | 0.832886 | 0.823766 | 0.821084 | 0.821084 | 0.781384 | 0 | 0.009517 | 0.212075 | 5,201 | 128 | 121 | 40.632813 | 0.900195 | 0.810037 | 0 | 0 | 0 | 0 | 0.087092 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.192308 | false | 0 | 0.153846 | 0 | 0.538462 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 8 |
40319551da4d87caf3bfc408a38edf2e70423cc9 | 316 | py | Python | aetherling/helpers/nameCleanup.py | David-Durst/aetherling | 91bcf0579608ccbf7d42a7bddf90ccd4257d6571 | [
"MIT"
] | 10 | 2018-04-03T01:51:16.000Z | 2022-02-07T04:27:26.000Z | aetherling/helpers/nameCleanup.py | David-Durst/aetherling | 91bcf0579608ccbf7d42a7bddf90ccd4257d6571 | [
"MIT"
] | 19 | 2018-05-20T00:43:31.000Z | 2021-03-18T20:36:52.000Z | aetherling/helpers/nameCleanup.py | David-Durst/aetherling | 91bcf0579608ccbf7d42a7bddf90ccd4257d6571 | [
"MIT"
] | 1 | 2018-07-11T23:36:43.000Z | 2018-07-11T23:36:43.000Z | import re
def cleanName(name: str):
return name.replace("(", "_").replace(")", "_").replace(",", "_").replace(" ", "").replace(":", "_").replace("-","_")\
.replace("[", "_").replace("]","_").replace("=","_").replace(">", "_").replace("<", "_")
def undup_(name: str):
return re.sub('__+', '_', name)
| 39.5 | 122 | 0.5 | 27 | 316 | 5.333333 | 0.37037 | 0.972222 | 1.3125 | 1.555556 | 0.534722 | 0.534722 | 0.534722 | 0.534722 | 0.534722 | 0.534722 | 0 | 0 | 0.129747 | 316 | 7 | 123 | 45.142857 | 0.523636 | 0 | 0 | 0 | 0 | 0 | 0.079114 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.166667 | 0.333333 | 0.833333 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 8 |
405dc0074ed90751b61d449303e044305af28d7a | 131,530 | py | Python | oblib/tests/test_json_clips.py | SunSpecOrangeButton/pyoblib | 5d91e4f94ac7939cd9a8df753313de07b420e722 | [
"Apache-2.0"
] | 9 | 2019-04-02T20:55:37.000Z | 2022-03-11T05:32:38.000Z | oblib/tests/test_json_clips.py | SunSpecOrangeButton/pyoblib | 5d91e4f94ac7939cd9a8df753313de07b420e722 | [
"Apache-2.0"
] | 139 | 2018-11-08T22:23:20.000Z | 2021-01-07T22:45:02.000Z | oblib/tests/test_json_clips.py | SunSpecOrangeButton/pyoblib | 5d91e4f94ac7939cd9a8df753313de07b420e722 | [
"Apache-2.0"
] | 18 | 2018-11-20T21:42:03.000Z | 2020-11-30T20:17:00.000Z | # Copyright 2019 SunSpec Alliance
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing,... | 34.306208 | 145 | 0.519638 | 11,559 | 131,530 | 5.884073 | 0.04888 | 0.033817 | 0.053283 | 0.088805 | 0.942247 | 0.941262 | 0.93272 | 0.930867 | 0.922516 | 0.920913 | 0 | 0.154905 | 0.305314 | 131,530 | 3,834 | 146 | 34.306208 | 0.589458 | 0.120163 | 0 | 0.784859 | 0 | 0.077199 | 0.887047 | 0.39366 | 0 | 0 | 0 | 0.000261 | 0 | 1 | 0.000299 | false | 0 | 0.001496 | 0 | 0.002095 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
dc02b73383776bfe8d8f1b3ae2413aea2eaec02e | 13,796 | py | Python | plotly_study/graph_objs/layout/scene/camera/__init__.py | lucasiscovici/plotly_py | 42ab769febb45fbbe0a3c677dc4306a4f59cea36 | [
"MIT"
] | null | null | null | plotly_study/graph_objs/layout/scene/camera/__init__.py | lucasiscovici/plotly_py | 42ab769febb45fbbe0a3c677dc4306a4f59cea36 | [
"MIT"
] | null | null | null | plotly_study/graph_objs/layout/scene/camera/__init__.py | lucasiscovici/plotly_py | 42ab769febb45fbbe0a3c677dc4306a4f59cea36 | [
"MIT"
] | null | null | null | from plotly_study.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType
import copy as _copy
class Up(_BaseLayoutHierarchyType):
# x
# -
@property
def x(self):
"""
The 'x' property is a number and may be specified as:
- An int or float
Returns
... | 24.118881 | 90 | 0.502392 | 1,485 | 13,796 | 4.527273 | 0.087542 | 0.032723 | 0.050573 | 0.035698 | 0.877436 | 0.848133 | 0.816451 | 0.816451 | 0.807824 | 0.793991 | 0 | 0.000333 | 0.34684 | 13,796 | 571 | 91 | 24.161121 | 0.745755 | 0.317411 | 0 | 0.764706 | 0 | 0 | 0.073148 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.156863 | false | 0 | 0.058824 | 0.039216 | 0.323529 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
dc0e14d9feb631fb6b93a1941b7b7ae9a9518371 | 12,937 | py | Python | Passing/coordinates_generator.py | FootBrawlers/Passing_Algo | 5341168dc12f7c4cb254a0a4901de7c3766cc823 | [
"MIT"
] | 1 | 2020-01-16T13:19:19.000Z | 2020-01-16T13:19:19.000Z | Passing/coordinates_generator.py | FootBrawlers/Passing_Algo | 5341168dc12f7c4cb254a0a4901de7c3766cc823 | [
"MIT"
] | null | null | null | Passing/coordinates_generator.py | FootBrawlers/Passing_Algo | 5341168dc12f7c4cb254a0a4901de7c3766cc823 | [
"MIT"
] | 1 | 2020-01-09T21:04:30.000Z | 2020-01-09T21:04:30.000Z | # this script generates a file "input_coords_all.txt which contains the input coordinates."
import pygame
from pygame.locals import *
from sys import exit
from random import *
pygame.init()
# screen = pygame.display.set_mode((1280, 960), 0, 32)
# DIMENSIONS
screen = pygame.display.set_mode((0, 0), pygame.RESIZABLE)... | 38.84985 | 118 | 0.535982 | 1,669 | 12,937 | 3.913721 | 0.099461 | 0.041641 | 0.041641 | 0.053889 | 0.860686 | 0.823637 | 0.806797 | 0.78812 | 0.779547 | 0.775873 | 0 | 0.036669 | 0.346525 | 12,937 | 333 | 119 | 38.84985 | 0.735983 | 0.051558 | 0 | 0.683128 | 1 | 0 | 0.008662 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.00823 | false | 0 | 0.016461 | 0 | 0.032922 | 0.020576 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
dc1161f48961a7d0c44172cc0cf7e14b4268303b | 2,217 | py | Python | data/migrations/0006_auto_20211222_0844.py | neversay4ever/herb | 2309129607b3b09428d3930af5f3f5a76c4689e1 | [
"MIT"
] | null | null | null | data/migrations/0006_auto_20211222_0844.py | neversay4ever/herb | 2309129607b3b09428d3930af5f3f5a76c4689e1 | [
"MIT"
] | null | null | null | data/migrations/0006_auto_20211222_0844.py | neversay4ever/herb | 2309129607b3b09428d3930af5f3f5a76c4689e1 | [
"MIT"
] | null | null | null | # Generated by Django 3.2.10 on 2021-12-22 00:44
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('data', '0005_auto_20211221_2155'),
]
operations = [
migrations.AddField(
model_name='cog',
name='herb_id',
... | 32.602941 | 85 | 0.56608 | 227 | 2,217 | 5.317181 | 0.22467 | 0.134217 | 0.1715 | 0.201326 | 0.827672 | 0.827672 | 0.827672 | 0.827672 | 0.827672 | 0.827672 | 0 | 0.056766 | 0.316644 | 2,217 | 67 | 86 | 33.089552 | 0.739934 | 0.020749 | 0 | 0.737705 | 1 | 0 | 0.073306 | 0.010604 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.016393 | 0 | 0.065574 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
905e4900116698dae2a7724185f6a8d31a4fe679 | 30 | py | Python | src/face_lib/__init__.py | a-akram-98/face_lib | 1ffffe8130690428ec0ec7144aac41cc9df49dda | [
"MIT"
] | 28 | 2021-10-15T22:01:52.000Z | 2022-03-25T07:57:21.000Z | src/face_lib/__init__.py | a-akram-98/face_lib | 1ffffe8130690428ec0ec7144aac41cc9df49dda | [
"MIT"
] | 4 | 2021-10-18T07:25:34.000Z | 2021-10-30T09:19:00.000Z | src/face_lib/__init__.py | a-akram-98/face_lib | 1ffffe8130690428ec0ec7144aac41cc9df49dda | [
"MIT"
] | 3 | 2021-10-16T03:06:30.000Z | 2021-12-11T09:21:14.000Z | from .face_lib import face_lib | 30 | 30 | 0.866667 | 6 | 30 | 4 | 0.666667 | 0.583333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1 | 30 | 1 | 30 | 30 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
90626cac5d2165ed2467f23cbf4fb2b2fe8b4bf2 | 1,443 | py | Python | Platform Software/desktop/apps/EoT_Python_Desktop/Examples/EoT_Test_Image_Algebra.py | EyesOfThings/Software | 8932c2bf78c729c285853e51c8875a863496b561 | [
"MIT"
] | 38 | 2016-06-08T19:47:43.000Z | 2021-07-02T15:14:13.000Z | Platform Software/desktop/apps/EoT_Python_Desktop/Examples/EoT_Test_Image_Algebra.py | MAVProxyUser/Software | 8932c2bf78c729c285853e51c8875a863496b561 | [
"MIT"
] | 3 | 2017-07-24T03:41:53.000Z | 2021-02-23T16:48:05.000Z | Platform Software/desktop/apps/EoT_Python_Desktop/Examples/EoT_Test_Image_Algebra.py | MAVProxyUser/Software | 8932c2bf78c729c285853e51c8875a863496b561 | [
"MIT"
] | 18 | 2016-02-18T08:34:17.000Z | 2021-07-11T17:57:28.000Z | from eot import Image
image1 = Image(2,2, Image.CCV_8U | Image.CCV_C1)
image2 = Image(2,2, Image.CCV_8U | Image.CCV_C1)
image1.set_pixel(0,0,1)
image1.set_pixel(0,1,2)
image1.set_pixel(1,0,3)
image1.set_pixel(1,1,4)
image2.set_pixel(0,0,1)
image2.set_pixel(0,1,2)
image2.set_pixel(1,0,3)
image2.set_pixel(1,1,4)
print... | 21.537313 | 49 | 0.742897 | 290 | 1,443 | 3.541379 | 0.103448 | 0.214216 | 0.311587 | 0.231743 | 0.787731 | 0.787731 | 0.775073 | 0.775073 | 0.775073 | 0.675755 | 0 | 0.110693 | 0.079695 | 1,443 | 66 | 50 | 21.863636 | 0.662651 | 0 | 0 | 0.654545 | 0 | 0 | 0.025659 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.018182 | 0 | 0.018182 | 0.127273 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
907d1ba4790dbbfccfbc20e2e95e8ea3d1b80887 | 8,958 | py | Python | Bot/sqlite_view.py | MaexMaex/python_discord_bot | 8bbccbcfb6b6ae3d1ad670df03ff3c41feb65a59 | [
"MIT"
] | null | null | null | Bot/sqlite_view.py | MaexMaex/python_discord_bot | 8bbccbcfb6b6ae3d1ad670df03ff3c41feb65a59 | [
"MIT"
] | 10 | 2018-04-05T06:16:15.000Z | 2020-02-09T08:33:13.000Z | Bot/sqlite_view.py | MaexMaex/python_discord_bot | 8bbccbcfb6b6ae3d1ad670df03ff3c41feb65a59 | [
"MIT"
] | null | null | null | import sqlite3
from sqlite_models import User, Bttn, TelegramBttn, TelegramUser
class DBView:
def __init__(self, dbname="bttn.sqlite"):
self.dbname = dbname
self.conn = sqlite3.connect(dbname, check_same_thread=False)
self.c = self.conn.cursor()
def is_not_drinking(self, discord_id):... | 40.718182 | 179 | 0.586068 | 1,138 | 8,958 | 4.441125 | 0.086116 | 0.106846 | 0.073605 | 0.09814 | 0.86387 | 0.832608 | 0.819351 | 0.815394 | 0.79165 | 0.74812 | 0 | 0.001297 | 0.311342 | 8,958 | 219 | 180 | 40.90411 | 0.817961 | 0.099129 | 0 | 0.512987 | 0 | 0.006494 | 0.314513 | 0.006218 | 0 | 0 | 0 | 0 | 0 | 1 | 0.207792 | false | 0 | 0.012987 | 0 | 0.337662 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
29079eff5e554fbe39c85b2186adcfebbd15349b | 255 | py | Python | utils/__init__.py | jfc43/robust-ood-detection | fbeb63017f44b16b2911e61a1f7b7982a2621ee5 | [
"Apache-2.0"
] | 55 | 2020-03-24T00:57:25.000Z | 2022-03-26T16:06:59.000Z | utils/__init__.py | jfc43/robust-ood-detection | fbeb63017f44b16b2911e61a1f7b7982a2621ee5 | [
"Apache-2.0"
] | 4 | 2020-04-24T23:36:17.000Z | 2021-10-15T00:39:51.000Z | utils/__init__.py | jfc43/robust-ood-detection | fbeb63017f44b16b2911e61a1f7b7982a2621ee5 | [
"Apache-2.0"
] | 5 | 2020-04-27T07:42:19.000Z | 2022-03-23T16:14:28.000Z | from __future__ import absolute_import
from .pgd_attack import *
from .tinyimages_80mn_loader import *
from .lib import *
from .confidence_pgd_attack import *
from .mahalanobis_pgd_attack import *
from .mahalanobis_lib import *
from .cal_metric import *
| 25.5 | 38 | 0.815686 | 35 | 255 | 5.542857 | 0.4 | 0.360825 | 0.231959 | 0.293814 | 0.309278 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009009 | 0.129412 | 255 | 9 | 39 | 28.333333 | 0.864865 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
29705814c9d232ac9c76897bd0191c283aa76d9e | 3,426 | py | Python | tests/test_update.py | luerhard/pymemdb | 1cccd75c6918daf31babdef9cc8f94c3cee8bea6 | [
"MIT"
] | 1 | 2020-09-01T20:07:05.000Z | 2020-09-01T20:07:05.000Z | tests/test_update.py | luerhard/pymemdb | 1cccd75c6918daf31babdef9cc8f94c3cee8bea6 | [
"MIT"
] | 6 | 2020-03-02T07:32:16.000Z | 2020-06-24T12:01:29.000Z | tests/test_update.py | luerhard/pymemdb | 1cccd75c6918daf31babdef9cc8f94c3cee8bea6 | [
"MIT"
] | null | null | null | from pymemdb import Table
def test_update_single():
t = Table()
row1 = dict(vorname="rainer", nachname="greiff")
row2 = dict(vorname="rainer", nachname="greiff")
row3 = dict(vorname="rainer", nachname="erhard")
for row in [row1, row2, row3]:
t.insert(row)
row_vals_before = set(t["vo... | 31.145455 | 73 | 0.640689 | 429 | 3,426 | 5.034965 | 0.125874 | 0.132407 | 0.173148 | 0.25463 | 0.898148 | 0.85787 | 0.855556 | 0.851389 | 0.851389 | 0.844907 | 0 | 0.036971 | 0.178926 | 3,426 | 109 | 74 | 31.431193 | 0.730892 | 0 | 0 | 0.684932 | 0 | 0 | 0.173964 | 0 | 0 | 0 | 0 | 0 | 0.164384 | 1 | 0.082192 | false | 0 | 0.013699 | 0 | 0.09589 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
3139aad39ce6f720a93b58df614fae23713da302 | 29,176 | py | Python | test/unit/mysql_class/slaverep_updslvstatus.py | mjpernot/mysql-lib | aabc0c3b3120c0ec5344dc460092d830e796d43c | [
"MIT"
] | null | null | null | test/unit/mysql_class/slaverep_updslvstatus.py | mjpernot/mysql-lib | aabc0c3b3120c0ec5344dc460092d830e796d43c | [
"MIT"
] | null | null | null | test/unit/mysql_class/slaverep_updslvstatus.py | mjpernot/mysql-lib | aabc0c3b3120c0ec5344dc460092d830e796d43c | [
"MIT"
] | null | null | null | #!/usr/bin/python
# Classification (U)
"""Program: slaverep_updslvstatus.py
Description: Unit testing of SlaveRep.upd_slv_status in mysql_class.py.
Usage:
test/unit/mysql_class/slaverep_updslvstatus.py
Arguments:
"""
# Libraries and Global Variables
# Standard
import sys
import os
if sys.v... | 33.305936 | 79 | 0.648615 | 3,567 | 29,176 | 4.944772 | 0.069526 | 0.069736 | 0.076993 | 0.10449 | 0.838871 | 0.821578 | 0.809559 | 0.800544 | 0.800544 | 0.795895 | 0 | 0.007618 | 0.244139 | 29,176 | 875 | 80 | 33.344 | 0.792182 | 0.111804 | 0 | 0.735521 | 0 | 0 | 0.235355 | 0.135619 | 0 | 0 | 0 | 0 | 0.044402 | 1 | 0.046332 | false | 0.046332 | 0.015444 | 0 | 0.063707 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
318490e9dc6cc602d194459f3c67175270c7f895 | 155 | py | Python | src/compas_rcf/utils/__init__.py | FatimAmiri/compas_rcf | 6922036dbb033a83b9ff1cc8c016f865f6ee8e34 | [
"MIT"
] | null | null | null | src/compas_rcf/utils/__init__.py | FatimAmiri/compas_rcf | 6922036dbb033a83b9ff1cc8c016f865f6ee8e34 | [
"MIT"
] | null | null | null | src/compas_rcf/utils/__init__.py | FatimAmiri/compas_rcf | 6922036dbb033a83b9ff1cc8c016f865f6ee8e34 | [
"MIT"
] | null | null | null | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from .util_funcs import * # noqa: F401,F403
| 25.833333 | 44 | 0.832258 | 21 | 155 | 5.428571 | 0.571429 | 0.263158 | 0.421053 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044776 | 0.135484 | 155 | 5 | 45 | 31 | 0.80597 | 0.096774 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0.25 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
31d52c900ed077c155e0189e753a807512df1aca | 17,151 | py | Python | devilry/devilry_group/tests/test_download/test_feedbackfeed_bulkfiledownload.py | devilry/devilry-django | 9ae28e462dfa4cfee966ebacbca04ade9627e715 | [
"BSD-3-Clause"
] | 29 | 2015-01-18T22:56:23.000Z | 2020-11-10T21:28:27.000Z | devilry/devilry_group/tests/test_download/test_feedbackfeed_bulkfiledownload.py | devilry/devilry-django | 9ae28e462dfa4cfee966ebacbca04ade9627e715 | [
"BSD-3-Clause"
] | 786 | 2015-01-06T16:10:18.000Z | 2022-03-16T11:10:50.000Z | devilry/devilry_group/tests/test_download/test_feedbackfeed_bulkfiledownload.py | devilry/devilry-django | 9ae28e462dfa4cfee966ebacbca04ade9627e715 | [
"BSD-3-Clause"
] | 15 | 2015-04-06T06:18:43.000Z | 2021-02-24T12:28:30.000Z | import datetime
import shutil
from io import BytesIO
from zipfile import ZipFile
from django import test
from django.core.files.base import ContentFile
from django.utils import timezone
from model_bakery import baker
from devilry.devilry_comment.models import Comment
from devilry.devilry_dbcache.customsql import Assi... | 58.938144 | 118 | 0.614833 | 1,441 | 17,151 | 7.020125 | 0.092991 | 0.046263 | 0.052195 | 0.043594 | 0.879696 | 0.86556 | 0.850237 | 0.838869 | 0.82325 | 0.818209 | 0 | 0.034445 | 0.305988 | 17,151 | 290 | 119 | 59.141379 | 0.815425 | 0.002449 | 0 | 0.770115 | 0 | 0 | 0.156486 | 0.096159 | 0 | 0 | 0 | 0 | 0.045977 | 1 | 0.045977 | false | 0 | 0.045977 | 0.007663 | 0.111111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
734941ade580c0807ec85a4258dd9d7bf87df6e5 | 141 | py | Python | rswarp/utilities/conductor_plot.py | tanxicccc/rswarp | 3cead0d4e96c73caaae15e4376ac4637dc34c5dc | [
"Apache-2.0"
] | 4 | 2016-07-08T04:39:49.000Z | 2017-11-03T18:00:38.000Z | rswarp/utilities/conductor_plot.py | tanxicccc/rswarp | 3cead0d4e96c73caaae15e4376ac4637dc34c5dc | [
"Apache-2.0"
] | 18 | 2016-10-31T20:13:29.000Z | 2020-12-21T16:29:23.000Z | rswarp/utilities/conductor_plot.py | tanxicccc/rswarp | 3cead0d4e96c73caaae15e4376ac4637dc34c5dc | [
"Apache-2.0"
] | 8 | 2017-02-09T22:23:52.000Z | 2021-12-10T15:50:32.000Z | # Maintain backwards compatibility after move to rswarp.diagnostics.ConductorPlot
from rswarp.diagnostics.ConductorPlot import PlotConductors | 70.5 | 81 | 0.886525 | 15 | 141 | 8.333333 | 0.8 | 0.272 | 0.48 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.078014 | 141 | 2 | 82 | 70.5 | 0.961538 | 0.560284 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
b404124e20300527775033aedb15760dd661cc3c | 88 | py | Python | gcpds/filters/spatial/Ear_Reference.py | UN-GCPDS/python-gcpds.filters | 3e3776a8ac22aa2b53e0ec24895829a437c44a20 | [
"BSD-2-Clause"
] | 1 | 2021-03-09T23:52:15.000Z | 2021-03-09T23:52:15.000Z | gcpds/filters/spatial/Ear_Reference.py | UN-GCPDS/python-gcpds.filters | 3e3776a8ac22aa2b53e0ec24895829a437c44a20 | [
"BSD-2-Clause"
] | null | null | null | gcpds/filters/spatial/Ear_Reference.py | UN-GCPDS/python-gcpds.filters | 3e3776a8ac22aa2b53e0ec24895829a437c44a20 | [
"BSD-2-Clause"
] | 1 | 2021-03-09T23:51:39.000Z | 2021-03-09T23:51:39.000Z | # Standard ear-reference
import numpy as np
def ear_reference(data):
return data
| 11 | 24 | 0.738636 | 13 | 88 | 4.923077 | 0.769231 | 0.375 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.204545 | 88 | 7 | 25 | 12.571429 | 0.914286 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.333333 | 0.333333 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 7 |
b438c6779040f1d3c35656cb2666aca209dd847a | 674,162 | py | Python | test.py | Jeremip11/precog | b3558da74c9f8057b5313968b451614363cdb273 | [
"0BSD"
] | null | null | null | test.py | Jeremip11/precog | b3558da74c9f8057b5313968b451614363cdb273 | [
"0BSD"
] | null | null | null | test.py | Jeremip11/precog | b3558da74c9f8057b5313968b451614363cdb273 | [
"0BSD"
] | 1 | 2018-07-17T18:29:38.000Z | 2018-07-17T18:29:38.000Z | # coding: utf-8
import doctest
import unittest
import tempfile
import importlib
from os.path import basename
from urllib import urlencode
from urlparse import urlparse, parse_qsl
from httmock import HTTMock, response
from mock import patch, Mock
from shutil import rmtree
from time import sleep
import hmac, hashlib
impo... | 824.158924 | 152,746 | 0.685154 | 99,221 | 674,162 | 4.568065 | 0.020459 | 0.057964 | 0.096804 | 0.124462 | 0.958116 | 0.95365 | 0.948935 | 0.943964 | 0.938336 | 0.929008 | 0 | 0.051014 | 0.102926 | 674,162 | 817 | 152,747 | 825.167687 | 0.698419 | 0.000823 | 0 | 0.328283 | 0 | 0.143098 | 0.957406 | 0.234897 | 0 | 0 | 0 | 0 | 0.203704 | 1 | 0.069024 | false | 0.016835 | 0.030303 | 0 | 0.218855 | 0.006734 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 9 |
b459ead29a9adf37efec64008828ec8b7819586a | 50 | py | Python | instance/config.py | cnyakundi/nyaksnewsapp | dbbcac632c06c256d9bbd25e8b12b8b43be09caf | [
"MIT"
] | null | null | null | instance/config.py | cnyakundi/nyaksnewsapp | dbbcac632c06c256d9bbd25e8b12b8b43be09caf | [
"MIT"
] | null | null | null | instance/config.py | cnyakundi/nyaksnewsapp | dbbcac632c06c256d9bbd25e8b12b8b43be09caf | [
"MIT"
] | null | null | null | NEWS_API_KEY = '4494fa2524ad4803aecf28930d1448a3'
| 25 | 49 | 0.88 | 4 | 50 | 10.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.468085 | 0.06 | 50 | 1 | 50 | 50 | 0.425532 | 0 | 0 | 0 | 0 | 0 | 0.64 | 0.64 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
b47d6ab5843ca38e8bafbe1ee6a6ff6622c0c114 | 170 | py | Python | tests/basics/int_bytes_notimpl.py | kaffir/circuitpython | 0930f7a7972dc006c079102e292babb1ae02aa1a | [
"MIT"
] | 5 | 2017-07-17T23:28:09.000Z | 2020-06-16T17:28:47.000Z | tests/basics/int_bytes_notimpl.py | kaffir/circuitpython | 0930f7a7972dc006c079102e292babb1ae02aa1a | [
"MIT"
] | null | null | null | tests/basics/int_bytes_notimpl.py | kaffir/circuitpython | 0930f7a7972dc006c079102e292babb1ae02aa1a | [
"MIT"
] | null | null | null | try:
print((10).to_bytes(1, "big"))
except Exception as e:
print(type(e))
try:
print(int.from_bytes(b"\0", "big"))
except Exception as e:
print(type(e))
| 17 | 39 | 0.611765 | 29 | 170 | 3.517241 | 0.551724 | 0.156863 | 0.352941 | 0.392157 | 0.607843 | 0.607843 | 0.607843 | 0.607843 | 0 | 0 | 0 | 0.029197 | 0.194118 | 170 | 9 | 40 | 18.888889 | 0.715328 | 0 | 0 | 0.75 | 0 | 0 | 0.047059 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 7 |
b4873a2a58588434ecb96b1dd08b59755916eb20 | 132 | py | Python | rio_tiler_pds/cbers/__init__.py | cogeotiff/rio-tiler-pds | 52482c80baf7fd26cf06cd2af2961cca396b20e0 | [
"BSD-3-Clause"
] | 30 | 2020-07-21T23:32:14.000Z | 2022-02-21T23:35:35.000Z | rio_tiler_pds/cbers/__init__.py | cogeotiff/rio-tiler-pds | 52482c80baf7fd26cf06cd2af2961cca396b20e0 | [
"BSD-3-Clause"
] | 36 | 2020-07-21T20:48:51.000Z | 2021-10-06T08:15:00.000Z | rio_tiler_pds/cbers/__init__.py | cogeotiff/rio-tiler-pds | 52482c80baf7fd26cf06cd2af2961cca396b20e0 | [
"BSD-3-Clause"
] | 4 | 2020-07-23T06:19:30.000Z | 2021-11-18T03:27:04.000Z | """rio-tiler-pds.cbers"""
from rio_tiler_pds.cbers import aws # noqa
from rio_tiler_pds.cbers.utils import sceneid_parser # noqa
| 26.4 | 60 | 0.772727 | 22 | 132 | 4.409091 | 0.5 | 0.247423 | 0.340206 | 0.494845 | 0.412371 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121212 | 132 | 4 | 61 | 33 | 0.836207 | 0.227273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 8 |
b48bc69b34e262b14de7090bd7fc27cd1afaffe3 | 205 | py | Python | __init__.py | hraoyama/dataprocessor | 86fab2fac692c314b18bb3fcd5fb335117425fc4 | [
"MIT"
] | null | null | null | __init__.py | hraoyama/dataprocessor | 86fab2fac692c314b18bb3fcd5fb335117425fc4 | [
"MIT"
] | null | null | null | __init__.py | hraoyama/dataprocessor | 86fab2fac692c314b18bb3fcd5fb335117425fc4 | [
"MIT"
] | null | null | null | from dataprocessor.data_processor import DataProcessor
from dataprocessor.feed_filter import TimeFreqFilter
from dataprocessor.feed_filter import TimeIndexing
from dataprocessor.constants import TimePeriod | 51.25 | 54 | 0.907317 | 23 | 205 | 7.956522 | 0.478261 | 0.371585 | 0.229508 | 0.295082 | 0.360656 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.073171 | 205 | 4 | 55 | 51.25 | 0.963158 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 7 |
c30a59f79e1fa0514946fcc47eb877a46f323af9 | 611 | py | Python | gabriel10/examples/ruler/__main__.py | turbobert/gabriel10 | 2abf3e927e76f800fad4ca6738c6874cc7ff9f66 | [
"MIT"
] | null | null | null | gabriel10/examples/ruler/__main__.py | turbobert/gabriel10 | 2abf3e927e76f800fad4ca6738c6874cc7ff9f66 | [
"MIT"
] | null | null | null | gabriel10/examples/ruler/__main__.py | turbobert/gabriel10 | 2abf3e927e76f800fad4ca6738c6874cc7ff9f66 | [
"MIT"
] | null | null | null | from gabriel10 import Document7396
doc = Document7293()
for r in range(1, 73):
if r % 10 == 0:
doc.page(1).text(r, 1, "(73x96) |10-------|20-------|30-------|40-------|50-------|60-------|70-------|80-------| %02d" % r)
else:
if r % 2 == 0:
doc.page(1).text(r, 1, "%02d -5-7-9|1-3-... | 40.733333 | 145 | 0.456628 | 150 | 611 | 1.853333 | 0.24 | 0.129496 | 0.194245 | 0.230216 | 0.482014 | 0.482014 | 0.482014 | 0.381295 | 0.381295 | 0.381295 | 0 | 0.291417 | 0.180033 | 611 | 14 | 146 | 43.642857 | 0.263473 | 0 | 0 | 0.181818 | 0 | 0.272727 | 0.510638 | 0.454992 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 0 | 0 | 0 | 1 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
c32b1dd7aaf3a82edbdcb8e2281904b923f07748 | 15,676 | py | Python | defaults.py | val-iisc/OAAT | d947708e549305645fcb9977c89426908f99e2ca | [
"MIT"
] | null | null | null | defaults.py | val-iisc/OAAT | d947708e549305645fcb9977c89426908f99e2ca | [
"MIT"
] | null | null | null | defaults.py | val-iisc/OAAT | d947708e549305645fcb9977c89426908f99e2ca | [
"MIT"
] | 2 | 2021-11-08T08:48:39.000Z | 2022-02-15T05:24:28.000Z | ''' Default hyperparamters for CIFAR10_RN18, CIFAR100_PRN18, CIFAR10_WRN, CIFAR100_WRN and SVHN_PRN18 '''
import argparse
def use_default(default_arg):
parser = argparse.ArgumentParser(description='PyTorch OAAT Adversarial Training')
if default_arg == "CIFAR10_RN18":
parser.add_argument('--arch', type=s... | 73.252336 | 309 | 0.635813 | 2,083 | 15,676 | 4.68843 | 0.103697 | 0.102294 | 0.193221 | 0.040958 | 0.8547 | 0.842515 | 0.814151 | 0.810055 | 0.810055 | 0.809851 | 0 | 0.037028 | 0.228183 | 15,676 | 213 | 310 | 73.596244 | 0.770146 | 0.006188 | 0 | 0.748744 | 0 | 0.030151 | 0.401002 | 0.006358 | 0 | 0 | 0 | 0 | 0 | 1 | 0.005025 | false | 0.005025 | 0.005025 | 0 | 0.015075 | 0.005025 | 0 | 0 | 0 | null | 0 | 1 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
c371e6617a9041f96377af9eeb02b83b94cd8daa | 5,471 | py | Python | seg/lib/models/nets/fcnet.py | Frank-Abagnal/HRFormer | d7d362770de8648f8e0a379a71cee25f42954503 | [
"MIT"
] | 254 | 2021-08-13T10:05:22.000Z | 2022-03-25T09:21:45.000Z | seg/lib/models/nets/fcnet.py | Sense-X/HRFormer | 1245b88b5824fbd8cdb358b5ee909a4e537a2ef5 | [
"MIT"
] | 17 | 2021-09-08T01:40:49.000Z | 2022-03-23T10:53:47.000Z | seg/lib/models/nets/fcnet.py | Sense-X/HRFormer | 1245b88b5824fbd8cdb358b5ee909a4e537a2ef5 | [
"MIT"
] | 48 | 2021-08-13T14:06:58.000Z | 2022-03-30T02:41:26.000Z | ##+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
## Created by: RainbowSecret
## Microsoft Research
## yuyua@microsoft.com
## Copyright (c) 2018
##
## This source code is licensed under the MIT-style license found in the
## LICENSE file in the root directory of this source tree
##++++... | 37.472603 | 87 | 0.50265 | 600 | 5,471 | 4.42 | 0.181667 | 0.081448 | 0.079186 | 0.099548 | 0.832202 | 0.832202 | 0.821644 | 0.821644 | 0.821644 | 0.805053 | 0 | 0.05772 | 0.357156 | 5,471 | 145 | 88 | 37.731034 | 0.696332 | 0.071833 | 0 | 0.754098 | 0 | 0 | 0.060655 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032787 | false | 0 | 0.057377 | 0 | 0.122951 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 7 |
6f1992d4f5eff7a9a5d4e72d3827bc8ff4c6a3ad | 200 | py | Python | cougar/graphs/__init__.py | Swall0w/cougar | 9161b2b1d0c256f4bb952ec190351684f28ec1b7 | [
"MIT"
] | 1 | 2019-11-23T12:20:50.000Z | 2019-11-23T12:20:50.000Z | cougar/graphs/__init__.py | Swall0w/cougar | 9161b2b1d0c256f4bb952ec190351684f28ec1b7 | [
"MIT"
] | 1 | 2022-01-13T01:41:34.000Z | 2022-01-13T01:41:34.000Z | cougar/graphs/__init__.py | Swall0w/cougar | 9161b2b1d0c256f4bb952ec190351684f28ec1b7 | [
"MIT"
] | null | null | null | from cougar.graphs import loss
from cougar.graphs import modules
from cougar.graphs import models
from cougar.graphs import backbone
__all__ = ['loss', 'modules', 'backbone', 'models',
]
| 22.222222 | 51 | 0.725 | 25 | 200 | 5.64 | 0.36 | 0.283688 | 0.453901 | 0.624113 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.18 | 200 | 8 | 52 | 25 | 0.859756 | 0 | 0 | 0 | 0 | 0 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 7 |
6f1f19de7037b2f90f2155eee5eb1232eb9659d5 | 5,854 | py | Python | appi2c/ext/device/device_forms.py | andrequeiroz2/appi2c | 82e0a6e48ae69f301173c6d8c5990ee083c95da3 | [
"MIT"
] | 9 | 2020-12-28T14:37:11.000Z | 2021-02-01T10:16:19.000Z | appi2c/ext/device/device_forms.py | andrequeiroz2/appi2c | 82e0a6e48ae69f301173c6d8c5990ee083c95da3 | [
"MIT"
] | 2 | 2021-01-04T11:57:10.000Z | 2021-01-28T22:06:38.000Z | appi2c/ext/device/device_forms.py | andrequeiroz2/appi2c | 82e0a6e48ae69f301173c6d8c5990ee083c95da3 | [
"MIT"
] | 1 | 2021-01-28T21:37:19.000Z | 2021-01-28T21:37:19.000Z | from appi2c.ext.device.device_models import Device
from flask_wtf import FlaskForm
from wtforms import (StringField,
SubmitField,
SelectField,
IntegerField)
from wtforms.validators import InputRequired, Length, ValidationError
from wtforms_sqlalchemy.fields... | 53.218182 | 137 | 0.700205 | 707 | 5,854 | 5.663366 | 0.148515 | 0.120629 | 0.02997 | 0.02997 | 0.834915 | 0.812937 | 0.796953 | 0.796953 | 0.796953 | 0.795704 | 0 | 0.018949 | 0.161599 | 5,854 | 109 | 138 | 53.706422 | 0.796862 | 0 | 0 | 0.651685 | 0 | 0 | 0.121968 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.078652 | false | 0.011236 | 0.089888 | 0 | 0.662921 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 7 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.