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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
431170ce8605ebd442db760dffe2ee0772b36d0d | 1,243 | py | Python | smartexcel/tests/data/data_models/dummy.py | pierrealixt/SmartExcel | 19c5b7e6110db3d42965228ea2ae44a65489ac71 | [
"MIT"
] | null | null | null | smartexcel/tests/data/data_models/dummy.py | pierrealixt/SmartExcel | 19c5b7e6110db3d42965228ea2ae44a65489ac71 | [
"MIT"
] | null | null | null | smartexcel/tests/data/data_models/dummy.py | pierrealixt/SmartExcel | 19c5b7e6110db3d42965228ea2ae44a65489ac71 | [
"MIT"
] | null | null | null | class Dummy():
def __init__(self, data):
self.name = data['name']
self.age = data['age']
self.city = data['city']
class DummyData():
def __init__(self):
self.results = [
Dummy({
'name': 'PA',
'age': 29,
'city': 'Paris'... | 23.018519 | 55 | 0.457763 | 121 | 1,243 | 4.528926 | 0.305785 | 0.072993 | 0.131387 | 0.175182 | 0.175182 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010855 | 0.40708 | 1,243 | 53 | 56 | 23.45283 | 0.7327 | 0 | 0 | 0.116279 | 0 | 0 | 0.096541 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.209302 | false | 0 | 0 | 0.162791 | 0.418605 | 0 | 0 | 0 | 0 | null | 0 | 0 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
432d72d5f01ae5a38ba02b41cf1e7cf13ab1b0ea | 1,107 | py | Python | oecp/executor/null.py | openeuler-mirror/oecp | 967ed6b9e53f2da5f795f49bb5b5fc0423372863 | [
"MulanPSL-1.0"
] | null | null | null | oecp/executor/null.py | openeuler-mirror/oecp | 967ed6b9e53f2da5f795f49bb5b5fc0423372863 | [
"MulanPSL-1.0"
] | null | null | null | oecp/executor/null.py | openeuler-mirror/oecp | 967ed6b9e53f2da5f795f49bb5b5fc0423372863 | [
"MulanPSL-1.0"
] | null | null | null | # -*- encoding=utf-8 -*-
"""
# **********************************************************************************
# Copyright (c) Huawei Technologies Co., Ltd. 2020-2020. All rights reserved.
# [oecp] is licensed under the Mulan PSL v1.
# You can use this software according to the terms and conditions of the Mulan PSL ... | 38.172414 | 98 | 0.588076 | 141 | 1,107 | 4.503546 | 0.631206 | 0.050394 | 0.062992 | 0.061417 | 0.100787 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014254 | 0.176152 | 1,107 | 28 | 99 | 39.535714 | 0.682018 | 0.66757 | 0 | 0 | 0 | 0 | 0.016667 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 0.111111 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
43407a7f6606421fcf31d207a893b9e1c5a7f5c3 | 567 | py | Python | Day5/overlap_result.py | d4yvie/advent_of_code_2021 | bb74b9dc7b23c5ba338dcd8d2e698c7ea4e34c59 | [
"Apache-2.0"
] | null | null | null | Day5/overlap_result.py | d4yvie/advent_of_code_2021 | bb74b9dc7b23c5ba338dcd8d2e698c7ea4e34c59 | [
"Apache-2.0"
] | null | null | null | Day5/overlap_result.py | d4yvie/advent_of_code_2021 | bb74b9dc7b23c5ba338dcd8d2e698c7ea4e34c59 | [
"Apache-2.0"
] | null | null | null | class OverlapResult:
def __init__(self, overlap_map: dict[tuple[float, float], int]):
self._overlap_map = overlap_map
self._overlaps = overlap_map_to_overlaps(overlap_map)
@property
def overlaps(self) -> int:
return self._overlaps
@property
def overlap_map(self) -> dict[tu... | 31.5 | 99 | 0.698413 | 75 | 567 | 4.96 | 0.306667 | 0.268817 | 0.112903 | 0.153226 | 0.365591 | 0.306452 | 0.172043 | 0 | 0 | 0 | 0 | 0.002169 | 0.186949 | 567 | 17 | 100 | 33.352941 | 0.804772 | 0 | 0 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.25 | 0.666667 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
4a2ca921ee39571f1f1e9f4e267400d5739cf49c | 1,474 | py | Python | synchrobot/chat_user.py | Esenin/telegram_vk_pipe_bot | db92fe062a121beebbc386975660d5a76f1b396c | [
"MIT"
] | 2 | 2016-09-20T19:41:40.000Z | 2016-10-05T12:49:18.000Z | synchrobot/chat_user.py | Esenin/telegram_vk_pipe_bot | db92fe062a121beebbc386975660d5a76f1b396c | [
"MIT"
] | null | null | null | synchrobot/chat_user.py | Esenin/telegram_vk_pipe_bot | db92fe062a121beebbc386975660d5a76f1b396c | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Author: Ivan Senin
import calendar
import time
import datetime as dt
import json
class User(object):
def __init__(self, id, name, last_seen, want_time, muted, username="", additional_keys="{}"):
super(User, self).__init__()
self.id = id
self.name = name
self.username = username
se... | 26.321429 | 102 | 0.708955 | 233 | 1,474 | 4.193133 | 0.266094 | 0.09826 | 0.061412 | 0.0348 | 0.038895 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006405 | 0.152646 | 1,474 | 55 | 103 | 26.8 | 0.775821 | 0.027137 | 0 | 0.102564 | 0 | 0.025641 | 0.065734 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25641 | false | 0 | 0.102564 | 0.102564 | 0.512821 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
4a48ec3aeae99c16ed4de0cce8fcde590af1ac0c | 3,434 | py | Python | scipy/weave/base_spec.py | lesserwhirls/scipy-cwt | ee673656d879d9356892621e23ed0ced3d358621 | [
"BSD-3-Clause"
] | 8 | 2015-10-07T00:37:32.000Z | 2022-01-21T17:02:33.000Z | scipy/weave/base_spec.py | lesserwhirls/scipy-cwt | ee673656d879d9356892621e23ed0ced3d358621 | [
"BSD-3-Clause"
] | null | null | null | scipy/weave/base_spec.py | lesserwhirls/scipy-cwt | ee673656d879d9356892621e23ed0ced3d358621 | [
"BSD-3-Clause"
] | 8 | 2015-05-09T14:23:57.000Z | 2018-11-15T05:56:00.000Z | class base_converter(object):
"""
Properties:
headers -- list of strings that name the header files needed by this
object.
include_dirs -- list of directories where the header files can be found.
libraries -- list of libraries needed to link to when compiling
... | 35.040816 | 80 | 0.609785 | 436 | 3,434 | 4.662844 | 0.293578 | 0.093458 | 0.051156 | 0.074766 | 0.230202 | 0.199213 | 0.151008 | 0.048205 | 0.048205 | 0.048205 | 0 | 0.001259 | 0.306348 | 3,434 | 97 | 81 | 35.402062 | 0.852225 | 0.335469 | 0 | 0.111111 | 0 | 0 | 0.049622 | 0.019376 | 0 | 0 | 0 | 0 | 0 | 1 | 0.396825 | false | 0.015873 | 0.031746 | 0.31746 | 0.84127 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
4a681f9f92ee718dd3a1a15638701370f778139a | 169 | py | Python | ditto/core/__init__.py | Kvoti/ditto | eb4efb241e54bf679222d14afeb71d9d5441c122 | [
"BSD-3-Clause"
] | null | null | null | ditto/core/__init__.py | Kvoti/ditto | eb4efb241e54bf679222d14afeb71d9d5441c122 | [
"BSD-3-Clause"
] | 9 | 2015-11-10T15:17:22.000Z | 2015-11-12T11:07:02.000Z | ditto/core/__init__.py | Kvoti/ditto | eb4efb241e54bf679222d14afeb71d9d5441c122 | [
"BSD-3-Clause"
] | null | null | null | from . import forms
from . import views
ADMIN_ROLE = "Administrator"
MEMBER_ROLE = "Member"
GUEST_ROLE = "Guest"
DEFAULT_ROLES = [ADMIN_ROLE, MEMBER_ROLE, GUEST_ROLE]
| 18.777778 | 53 | 0.763314 | 23 | 169 | 5.304348 | 0.478261 | 0.163934 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142012 | 169 | 8 | 54 | 21.125 | 0.841379 | 0 | 0 | 0 | 0 | 0 | 0.142012 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
4a7152ca8736c0b2b62e12278fe928d5690e8c0b | 461 | py | Python | OOP/Exercises/First_steps_in_OOP_Exercises/8_pokemon/project/pokemon.py | tankishev/Python | 60e511fc901f136b88c681f77f209fe2f8c46447 | [
"MIT"
] | 2 | 2022-03-04T11:39:03.000Z | 2022-03-13T07:13:23.000Z | OOP/Exercises/First_steps_in_OOP_Exercises/8_pokemon/project/pokemon.py | tankishev/Python | 60e511fc901f136b88c681f77f209fe2f8c46447 | [
"MIT"
] | null | null | null | OOP/Exercises/First_steps_in_OOP_Exercises/8_pokemon/project/pokemon.py | tankishev/Python | 60e511fc901f136b88c681f77f209fe2f8c46447 | [
"MIT"
] | null | null | null | # The Pokemon class should receive a name (string) and health (int) upon initialization.
# It should also have a method called pokemon_details that returns the information about the pokemon:
# "{pokemon_name} with health {pokemon_health}"
class Pokemon:
def __init__(self, name: str, health: int) -> None:
... | 35.461538 | 101 | 0.70282 | 64 | 461 | 4.9375 | 0.484375 | 0.075949 | 0.088608 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.206074 | 461 | 12 | 102 | 38.416667 | 0.863388 | 0.503254 | 0 | 0 | 0 | 0 | 0.164444 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.166667 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
4a72355337ea53a1937c776fab78aa381734b4c1 | 193 | py | Python | build/lib/configger/fishes/__init__.py | PaperDevil/pyconfigger | 75c6e3f74e6e70d8ec9565397e2be9ae8815d44e | [
"MIT"
] | 2 | 2021-02-04T14:29:19.000Z | 2021-03-04T12:56:58.000Z | build/lib/configger/fishes/__init__.py | PaperDevil/pyconfigger | 75c6e3f74e6e70d8ec9565397e2be9ae8815d44e | [
"MIT"
] | null | null | null | build/lib/configger/fishes/__init__.py | PaperDevil/pyconfigger | 75c6e3f74e6e70d8ec9565397e2be9ae8815d44e | [
"MIT"
] | 2 | 2020-08-19T21:50:30.000Z | 2020-11-04T03:51:33.000Z | import os
splited_path = os.path.realpath(__file__).split('\\')[:-1]
fish_path = '\\'.join(splited_path)
fish_json_name = "fish.json"
fish_json_path = os.path.join(fish_path, fish_json_name)
| 24.125 | 58 | 0.735751 | 31 | 193 | 4.129032 | 0.387097 | 0.25 | 0.15625 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005682 | 0.088083 | 193 | 7 | 59 | 27.571429 | 0.721591 | 0 | 0 | 0 | 0 | 0 | 0.067358 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 1 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 3 |
4a7b9c4a8cadc7353c88a38e25dd9423d5d9fd02 | 1,224 | py | Python | Python (desafios)/desafio 009.py | EbersonDias/html-css | b05ec122dc7649656bcfce92dc92ded127bbb2cf | [
"MIT"
] | null | null | null | Python (desafios)/desafio 009.py | EbersonDias/html-css | b05ec122dc7649656bcfce92dc92ded127bbb2cf | [
"MIT"
] | null | null | null | Python (desafios)/desafio 009.py | EbersonDias/html-css | b05ec122dc7649656bcfce92dc92ded127bbb2cf | [
"MIT"
] | null | null | null | # Desafio 009
# Faça um programa que leia um numero inteiro qualquer
# e mostre na tela a sua tabuada.
n = int(input('digite um numero. '))
r1 = n * 1
r2 = (n * 2)
r3 = (n * 3)
r4 = (n * 4)
r5 = (n * 5)
r6 = (n * 6)
r7 = (n * 7)
r8 = (n * 8)
r9 = (n * 9)
r10 = (n * 10)
print('A Tabuada de {} é'.format(n))
print ('{} x... | 29.142857 | 54 | 0.476307 | 225 | 1,224 | 2.591111 | 0.231111 | 0.264151 | 0.132075 | 0.245283 | 0.360206 | 0.096055 | 0.096055 | 0.096055 | 0 | 0 | 0 | 0.084608 | 0.198529 | 1,224 | 42 | 55 | 29.142857 | 0.509684 | 0.098039 | 0 | 0.111111 | 0 | 0 | 0.297273 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.666667 | 0 | 0 | 0 | null | 1 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
4a7c2f9da4b8409fc6aa35e9cf22595f9dcc870b | 302 | py | Python | conlo/serializer/json_serializer.py | kira607/config_loader | 024f33d48fee1635dfa9ed286f84bb96f22c134a | [
"MIT"
] | null | null | null | conlo/serializer/json_serializer.py | kira607/config_loader | 024f33d48fee1635dfa9ed286f84bb96f22c134a | [
"MIT"
] | null | null | null | conlo/serializer/json_serializer.py | kira607/config_loader | 024f33d48fee1635dfa9ed286f84bb96f22c134a | [
"MIT"
] | null | null | null | import json
from .base_serializer import BaseSerializer
class JsonSerializer(BaseSerializer):
'''Json serializer.'''
def _serialize(self, data: dict, **kwargs) -> str:
return json.dumps(data)
def _deserialize(self, data: str, **kwargs) -> dict:
return json.loads(data)
| 21.571429 | 56 | 0.675497 | 34 | 302 | 5.911765 | 0.558824 | 0.079602 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.201987 | 302 | 13 | 57 | 23.230769 | 0.834025 | 0.05298 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.285714 | 0.285714 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
4a912235328cee2f8b87e2aaba4351c27f0e4c61 | 2,396 | py | Python | sanitizers/mvj.py | suutari-ai/mvj | c39dbc692afcb3b26366783414c2d5a88a57b25a | [
"MIT"
] | 1 | 2021-01-12T08:14:10.000Z | 2021-01-12T08:14:10.000Z | sanitizers/mvj.py | suutari-ai/mvj | c39dbc692afcb3b26366783414c2d5a88a57b25a | [
"MIT"
] | 249 | 2017-04-18T14:00:13.000Z | 2022-03-30T12:18:03.000Z | sanitizers/mvj.py | suutari-ai/mvj | c39dbc692afcb3b26366783414c2d5a88a57b25a | [
"MIT"
] | 7 | 2017-04-18T08:43:54.000Z | 2021-07-28T07:29:30.000Z | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import random
from random import choice
from string import digits
from faker import Faker
fake = Faker("fi_FI")
def sanitize_address(value):
return fake.address()
def sanitize_address_if_exist(value):
if value:
return sanitize_addres... | 18.866142 | 79 | 0.736227 | 314 | 2,396 | 5.302548 | 0.16242 | 0.171772 | 0.117117 | 0.100901 | 0.489489 | 0.375976 | 0.375976 | 0.217417 | 0.079279 | 0.079279 | 0 | 0.012121 | 0.173623 | 2,396 | 126 | 80 | 19.015873 | 0.828788 | 0.008765 | 0 | 0.2 | 0 | 0 | 0.018963 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.371429 | false | 0 | 0.071429 | 0.2 | 0.814286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
4350f1b77cfb0dfefe4845923da0aa75d35da2ca | 363 | py | Python | src/config.py | john9384/PyblogRestAPI | f8cd42b6ffd5ccc3224d18f71cbea654f05023d0 | [
"MIT"
] | null | null | null | src/config.py | john9384/PyblogRestAPI | f8cd42b6ffd5ccc3224d18f71cbea654f05023d0 | [
"MIT"
] | null | null | null | src/config.py | john9384/PyblogRestAPI | f8cd42b6ffd5ccc3224d18f71cbea654f05023d0 | [
"MIT"
] | null | null | null | import os
from dotenv import load_dotenv
load_dotenv()
class Config:
SECRET_KEY = os.environ.get('SECRET_KEY')
SQLALCHEMY_DATABASE_URI = os.environ.get('DATABASE_URI')
MAIL_SERVER = 'smtp.gmail.com'
MAIL_PORT = 587
MAIL_USE_TLS = True
MAIL_USERNAME = os.environ.get('EMAIL_USERNAME')
MAIL_P... | 25.928571 | 60 | 0.730028 | 52 | 363 | 4.807692 | 0.519231 | 0.144 | 0.192 | 0.136 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009901 | 0.165289 | 363 | 13 | 61 | 27.923077 | 0.815182 | 0 | 0 | 0 | 0 | 0 | 0.176309 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.090909 | 0.181818 | 0 | 0.909091 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 3 |
435f7637a4041b297cabc29fa1091a243b6bc151 | 2,154 | py | Python | noise/extras/meta/protocol/protocol.py | mgp25/noise | 8560849fa4a1d6e938adde27d26572f4da16e422 | [
"MIT"
] | 6 | 2019-05-02T09:40:53.000Z | 2021-05-18T00:18:30.000Z | noise/extras/meta/protocol/protocol.py | mgp25/noise | 8560849fa4a1d6e938adde27d26572f4da16e422 | [
"MIT"
] | null | null | null | noise/extras/meta/protocol/protocol.py | mgp25/noise | 8560849fa4a1d6e938adde27d26572f4da16e422 | [
"MIT"
] | null | null | null | from noise.dh.dh import DH
from noise.cipher.cipher import Cipher
from noise.hash.hash import Hash
from noise.processing.handshakepatterns.handshakepattern import HandshakePattern
from noise.processing.impl.handshakestate import HandshakeState
from noise.processing.impl.symmetricstate import SymmetricState
from noise.... | 27.265823 | 103 | 0.627205 | 223 | 2,154 | 5.955157 | 0.156951 | 0.04744 | 0.052711 | 0.051958 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001297 | 0.284123 | 2,154 | 78 | 104 | 27.615385 | 0.859922 | 0.216806 | 0 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.257143 | false | 0 | 0.2 | 0.142857 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
436697d1038207224e723ad6677937d00c16b249 | 207 | py | Python | apps.py | louxfaure/sudoc_recouv | da3f094a0a9554c0b3911a365d1feea6d2758fec | [
"MIT"
] | 1 | 2022-02-28T13:00:48.000Z | 2022-02-28T13:00:48.000Z | apps.py | louxfaure/sudoc_recouv | da3f094a0a9554c0b3911a365d1feea6d2758fec | [
"MIT"
] | null | null | null | apps.py | louxfaure/sudoc_recouv | da3f094a0a9554c0b3911a365d1feea6d2758fec | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class SudocRecouvConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'sudoc_recouv'
verbose_name = 'Analyses de recouvrement SUDOC'
| 25.875 | 56 | 0.768116 | 24 | 207 | 6.458333 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.154589 | 207 | 7 | 57 | 29.571429 | 0.885714 | 0 | 0 | 0 | 0 | 0 | 0.342995 | 0.140097 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
4386319503aab2a6844b6ef0973d20403a850ff6 | 998 | py | Python | fibo.py | aligoren/pyalgo | 8aa58143d3301f70ed7189ca86ce0c7886f92e8c | [
"MIT"
] | 22 | 2015-05-04T14:16:18.000Z | 2021-05-12T07:21:14.000Z | fibo.py | aligoren/pyalgo | 8aa58143d3301f70ed7189ca86ce0c7886f92e8c | [
"MIT"
] | null | null | null | fibo.py | aligoren/pyalgo | 8aa58143d3301f70ed7189ca86ce0c7886f92e8c | [
"MIT"
] | 12 | 2015-12-26T05:00:24.000Z | 2022-02-28T05:03:13.000Z | def fibo(n):
return n <= 1 or fibo(n-1) + fibo(n-2)
def fibo_main():
for n in range(1,47):
res = fibo(n)
print("%s\t%s" % (n, res))
fibo_main()
# profiling result for 47 numbers
# profile: python -m profile fibo.py
"""
-1273940835 function calls (275 primitive calls) in 18966.707 seconds
Ordered... | 33.266667 | 80 | 0.607214 | 175 | 998 | 3.44 | 0.388571 | 0.119601 | 0.091362 | 0.119601 | 0.275748 | 0.224252 | 0.156146 | 0.156146 | 0.10299 | 0.10299 | 0 | 0.303155 | 0.269539 | 998 | 30 | 81 | 33.266667 | 0.522634 | 0.066132 | 0 | 0 | 0 | 0 | 0.037975 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0 | 0.142857 | 0.428571 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
43a2afd4837130116a518598c3c7bbcceafe7999 | 306 | py | Python | tests/integration/lambdas/lambda_python3.py | jorges119/localstack | a8a78cda6c13b2e42bc46301b23c7143580132fb | [
"Apache-2.0"
] | 31,928 | 2017-07-04T03:06:28.000Z | 2022-03-31T22:33:27.000Z | tests/integration/lambdas/lambda_python3.py | jorges119/localstack | a8a78cda6c13b2e42bc46301b23c7143580132fb | [
"Apache-2.0"
] | 5,216 | 2017-07-04T11:45:41.000Z | 2022-03-31T22:02:14.000Z | tests/integration/lambdas/lambda_python3.py | jorges119/localstack | a8a78cda6c13b2e42bc46301b23c7143580132fb | [
"Apache-2.0"
] | 3,056 | 2017-06-05T13:29:11.000Z | 2022-03-31T20:54:43.000Z | # simple test function that uses python 3 features (e.g., f-strings)
# see https://github.com/localstack/localstack/issues/264
def handler(event, context):
# the following line is Python 3.6+ specific
msg = f"Successfully processed {event}" # noqa This code is Python 3.6+ only
return event
| 34 | 81 | 0.718954 | 47 | 306 | 4.680851 | 0.787234 | 0.095455 | 0.081818 | 0.090909 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031873 | 0.179739 | 306 | 8 | 82 | 38.25 | 0.844622 | 0.653595 | 0 | 0 | 0 | 0 | 0.29703 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.666667 | 0 | 0 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
43a8f0198728c9384389bf87f96be11372c94f28 | 262 | py | Python | tests/performance/bottle/simple_server.py | Varriount/sanic | 55c36e0240dfeb03deccdeb5a53ca7fcfa728bff | [
"MIT"
] | 4,959 | 2018-09-13T08:42:51.000Z | 2021-01-05T07:01:44.000Z | tests/performance/bottle/simple_server.py | Varriount/sanic | 55c36e0240dfeb03deccdeb5a53ca7fcfa728bff | [
"MIT"
] | 864 | 2018-09-13T20:48:04.000Z | 2021-01-05T07:33:30.000Z | tests/performance/bottle/simple_server.py | Varriount/sanic | 55c36e0240dfeb03deccdeb5a53ca7fcfa728bff | [
"MIT"
] | 612 | 2018-09-13T21:10:04.000Z | 2020-12-30T12:16:36.000Z | # Run with: gunicorn --workers=1 --worker-class=meinheld.gmeinheld.MeinheldWorker -b :8000 simple_server:app
import bottle
import ujson
from bottle import route, run
@route("/")
def index():
return ujson.dumps({"test": True})
app = bottle.default_app()
| 18.714286 | 108 | 0.725191 | 36 | 262 | 5.222222 | 0.75 | 0.12766 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022124 | 0.137405 | 262 | 13 | 109 | 20.153846 | 0.809735 | 0.40458 | 0 | 0 | 0 | 0 | 0.032468 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.428571 | 0.142857 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 3 |
43af0965a86312e6e30a4f1113799d3cd2575b0a | 5,079 | py | Python | src/dewloosh/geom/cells/h8.py | dewloosh/dewloosh-geom | 5c97fbab4b68f4748bf4309184b9e0e877f94cd6 | [
"MIT"
] | 2 | 2021-12-11T17:25:51.000Z | 2022-01-06T15:36:27.000Z | src/dewloosh/geom/cells/h8.py | dewloosh/dewloosh-geom | 5c97fbab4b68f4748bf4309184b9e0e877f94cd6 | [
"MIT"
] | null | null | null | src/dewloosh/geom/cells/h8.py | dewloosh/dewloosh-geom | 5c97fbab4b68f4748bf4309184b9e0e877f94cd6 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from dewloosh.geom.polyhedron import HexaHedron
from dewloosh.math.numint import GaussPoints as Gauss
from dewloosh.geom.utils import cells_coords
from numba import njit, prange
import numpy as np
from numpy import ndarray
__cache = True
@njit(nogil=True, cache=__cache)
def monoms_H8(pcoord: n... | 34.317568 | 74 | 0.479425 | 915 | 5,079 | 2.620765 | 0.106011 | 0.266889 | 0.133445 | 0.100083 | 0.541701 | 0.52377 | 0.465388 | 0.456214 | 0.456214 | 0.456214 | 0 | 0.208064 | 0.330971 | 5,079 | 147 | 75 | 34.55102 | 0.497646 | 0.021658 | 0 | 0.175439 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.087719 | false | 0 | 0.052632 | 0.017544 | 0.245614 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
43cb99a95c79677af08d364cd292e9e06fb31368 | 718 | py | Python | util.py | takat0m0/infoGAN | bc3ba0d4e407851e97f49322add98ea2e7e429de | [
"MIT"
] | null | null | null | util.py | takat0m0/infoGAN | bc3ba0d4e407851e97f49322add98ea2e7e429de | [
"MIT"
] | null | null | null | util.py | takat0m0/infoGAN | bc3ba0d4e407851e97f49322add98ea2e7e429de | [
"MIT"
] | null | null | null | #! -*- coding:utf-8 -*-
import os
import sys
import cv2
import numpy as np
def _resizing(img):
#return cv2.resize(img, (256, 256))
return cv2.resize(img, (32, 32))
def _reg(img):
return img/127.5 - 1.0
def _re_reg(img):
return (img + 1.0) * 127.5
def get_figs(target_dir):
ret = []
for file_... | 23.933333 | 64 | 0.639276 | 117 | 718 | 3.74359 | 0.401709 | 0.082192 | 0.077626 | 0.082192 | 0.091324 | 0 | 0 | 0 | 0 | 0 | 0 | 0.054867 | 0.213092 | 718 | 29 | 65 | 24.758621 | 0.720354 | 0.077994 | 0 | 0 | 0 | 0 | 0.009091 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.238095 | false | 0 | 0.190476 | 0.142857 | 0.619048 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
43e0bf1b8f706e0abd42a5ac8a65294eb668c3ab | 183 | py | Python | epages_client/dataobjects/enum_fetch_operator.py | vilkasgroup/epages_client | 10e63d957ee45dc5d4df741064806f724fb1be1f | [
"MIT"
] | 3 | 2018-01-26T13:44:26.000Z | 2020-05-13T13:58:19.000Z | epages_client/dataobjects/enum_fetch_operator.py | vilkasgroup/epages_client | 10e63d957ee45dc5d4df741064806f724fb1be1f | [
"MIT"
] | 53 | 2018-02-05T10:59:22.000Z | 2022-01-01T19:31:08.000Z | epages_client/dataobjects/enum_fetch_operator.py | vilkasgroup/epages_client | 10e63d957ee45dc5d4df741064806f724fb1be1f | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
class FetchOperator(object):
'''Defines values for fetch operators'''
ADD = 1
REMOVE = 2
REPLACE = 3
| 18.3 | 44 | 0.650273 | 22 | 183 | 5.181818 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028571 | 0.234973 | 183 | 9 | 45 | 20.333333 | 0.785714 | 0.311475 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
78e748ebc4d60824e0cdf86518ddf127e1b97b2b | 120 | py | Python | tests/cases/cls.py | div72/py2many | 60277bc13597bd32d078b88a7390715568115fc6 | [
"MIT"
] | 345 | 2021-01-28T17:33:08.000Z | 2022-03-25T16:07:56.000Z | tests/cases/cls.py | mkos11/py2many | be6cfaad5af32c43eb24f182cb20ad63b979d4ef | [
"MIT"
] | 291 | 2021-01-31T13:15:06.000Z | 2022-03-23T21:28:49.000Z | tests/cases/cls.py | mkos11/py2many | be6cfaad5af32c43eb24f182cb20ad63b979d4ef | [
"MIT"
] | 23 | 2021-02-09T17:15:03.000Z | 2022-02-03T05:57:44.000Z | class Foo:
def bar(self):
return "a"
if __name__ == "__main__":
f = Foo()
b = f.bar()
print(b) | 13.333333 | 26 | 0.483333 | 17 | 120 | 2.941176 | 0.764706 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.35 | 120 | 9 | 27 | 13.333333 | 0.641026 | 0 | 0 | 0 | 0 | 0 | 0.07438 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0.142857 | 0.428571 | 0.142857 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
78f5546c49c417508d26fa0f809340459987fc66 | 13,697 | py | Python | paddlehub/module/check_info_pb2.py | MRXLT/PaddleHub | a9cd941bef2ac5a2d81b2f20422a4fbd9a87eb90 | [
"Apache-2.0"
] | 1 | 2019-07-03T13:08:39.000Z | 2019-07-03T13:08:39.000Z | paddlehub/module/check_info_pb2.py | binweiwu/PaddleHub | f92d0edd18057044ef248d7f2c42d8f347b62fbf | [
"Apache-2.0"
] | null | null | null | paddlehub/module/check_info_pb2.py | binweiwu/PaddleHub | f92d0edd18057044ef248d7f2c42d8f347b62fbf | [
"Apache-2.0"
] | null | null | null | #coding:utf-8
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: check_info.proto
import sys
_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode('latin1'))
from google.protobuf.internal import enum_type_wrapper
from google.protobuf import descriptor as _descriptor
from google.protob... | 33.653563 | 1,160 | 0.611083 | 1,501 | 13,697 | 5.31046 | 0.128581 | 0.054196 | 0.081295 | 0.054824 | 0.675825 | 0.624514 | 0.542466 | 0.48965 | 0.472714 | 0.455401 | 0 | 0.043888 | 0.279696 | 13,697 | 406 | 1,161 | 33.736453 | 0.764038 | 0.028473 | 0 | 0.703125 | 1 | 0.002604 | 0.18633 | 0.14956 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.018229 | 0 | 0.018229 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
600499594e77d8bfa05380ea38ed8a59d559483e | 987 | py | Python | utest/test_compareimage.py | michel117/robotframework-doctestlibrary | 305b220b73846bd389c47d74c2e0431c7bfaff94 | [
"Apache-2.0"
] | 1 | 2021-07-03T08:04:44.000Z | 2021-07-03T08:04:44.000Z | utest/test_compareimage.py | michel117/robotframework-doctestlibrary | 305b220b73846bd389c47d74c2e0431c7bfaff94 | [
"Apache-2.0"
] | null | null | null | utest/test_compareimage.py | michel117/robotframework-doctestlibrary | 305b220b73846bd389c47d74c2e0431c7bfaff94 | [
"Apache-2.0"
] | null | null | null | from DocTest.CompareImage import CompareImage
import pytest
from pathlib import Path
import numpy
def test_single_png(testdata_dir):
img = CompareImage(testdata_dir / 'text_big.png')
assert len(img.opencv_images)==1
assert type(img.opencv_images)==list
type(img.opencv_images[0])==numpy.ndarray
def tes... | 25.973684 | 63 | 0.755826 | 135 | 987 | 5.214815 | 0.311111 | 0.203125 | 0.106534 | 0.127841 | 0.505682 | 0.505682 | 0.399148 | 0.305398 | 0.305398 | 0.305398 | 0 | 0.002404 | 0.157042 | 987 | 37 | 64 | 26.675676 | 0.84375 | 0 | 0 | 0.285714 | 0 | 0 | 0.062817 | 0 | 0 | 0 | 0 | 0 | 0.178571 | 1 | 0.321429 | false | 0.178571 | 0.142857 | 0 | 0.464286 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
60072c1b66f06352dd6eb1cdc5675eed8c8c537e | 602 | py | Python | desafiosCursoEmVideo/ex004.py | gomesGabriel/Pythonicos | b491cefbb0479dd83fee267304d0fa30b99786a5 | [
"MIT"
] | 1 | 2019-09-02T12:14:58.000Z | 2019-09-02T12:14:58.000Z | desafiosCursoEmVideo/ex004.py | gomesGabriel/Pythonicos | b491cefbb0479dd83fee267304d0fa30b99786a5 | [
"MIT"
] | null | null | null | desafiosCursoEmVideo/ex004.py | gomesGabriel/Pythonicos | b491cefbb0479dd83fee267304d0fa30b99786a5 | [
"MIT"
] | null | null | null | n = input('Digite algo: ')
print('O tipo primitivo da variável é: ', type(n))
print('O que foi digitado é alfa numérico? ', n.isalnum())
print('O que foi digitado é alfabético? ', n.isalpha())
print('O que foi digitado é um decimal? ', n.isdecimal())
print('O que foi digitado é minúsculo? ', n.islower())
print('O que f... | 50.166667 | 64 | 0.694352 | 98 | 602 | 4.265306 | 0.387755 | 0.143541 | 0.19378 | 0.258373 | 0.447368 | 0.351675 | 0 | 0 | 0 | 0 | 0 | 0 | 0.147841 | 602 | 11 | 65 | 54.727273 | 0.814815 | 0 | 0 | 0 | 0 | 0 | 0.58804 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.909091 | 0 | 0 | 0 | null | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
60140da7c5e11ee07c450ac06ede300441a124ba | 542 | py | Python | cuestionario/formularios.py | LisandroCanteros/Grupo2_COM06_Info2021 | 86ad9e08db4e8935bf397b6e4db0b3d9d72cb320 | [
"MIT"
] | null | null | null | cuestionario/formularios.py | LisandroCanteros/Grupo2_COM06_Info2021 | 86ad9e08db4e8935bf397b6e4db0b3d9d72cb320 | [
"MIT"
] | null | null | null | cuestionario/formularios.py | LisandroCanteros/Grupo2_COM06_Info2021 | 86ad9e08db4e8935bf397b6e4db0b3d9d72cb320 | [
"MIT"
] | 1 | 2021-09-05T23:29:56.000Z | 2021-09-05T23:29:56.000Z | from django.forms import ModelForm
from .models import Cuestionario, Categoria
from preguntas.models import Pregunta, Respuesta
class CuestionarioForm(ModelForm):
class Meta:
model = Cuestionario
fields = '__all__'
class PreguntaForm(ModelForm):
class Meta:
model = Pregunta
fi... | 20.846154 | 48 | 0.673432 | 52 | 542 | 6.711538 | 0.384615 | 0.160458 | 0.206304 | 0.26361 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.258303 | 542 | 25 | 49 | 21.68 | 0.868159 | 0 | 0 | 0.421053 | 0 | 0 | 0.051661 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.157895 | 0 | 0.578947 | 0 | 0 | 0 | 0 | null | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
6015c9596e351a0acc5020ff9d107cce20445519 | 406 | py | Python | blurple/ui/base.py | jeremytiki/blurple.py | c8f65955539cc27be588a06592b1c81c03f59c37 | [
"MIT"
] | 4 | 2021-06-30T19:58:59.000Z | 2021-07-27T13:43:49.000Z | blurple/ui/base.py | jeremytiki/blurple.py | c8f65955539cc27be588a06592b1c81c03f59c37 | [
"MIT"
] | 2 | 2021-07-10T16:08:25.000Z | 2021-07-12T02:15:40.000Z | blurple/ui/base.py | jeremytiki/blurple.py | c8f65955539cc27be588a06592b1c81c03f59c37 | [
"MIT"
] | 3 | 2021-07-08T03:00:40.000Z | 2021-09-08T19:57:50.000Z | from abc import ABC
import discord
class Base(discord.Embed, ABC):
async def send(self, client: discord.abc.Messageable):
""" Send the component as a message in discord.
:param client: The client used, usually a :class:`discord.abc.Messageable`. Must have implemented :func:`.send`
:retur... | 29 | 119 | 0.669951 | 53 | 406 | 5.132075 | 0.54717 | 0.066176 | 0.154412 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.219212 | 406 | 13 | 120 | 31.230769 | 0.858044 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.4 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
6017b0c984f5c9581d7b67c9fd000d7881af64dd | 637 | py | Python | code_trunk/trainer/abc.py | chris4540/DD2430-ds-proj | b876efabe949392b27a7ebd4afb2be623174e287 | [
"MIT"
] | null | null | null | code_trunk/trainer/abc.py | chris4540/DD2430-ds-proj | b876efabe949392b27a7ebd4afb2be623174e287 | [
"MIT"
] | null | null | null | code_trunk/trainer/abc.py | chris4540/DD2430-ds-proj | b876efabe949392b27a7ebd4afb2be623174e287 | [
"MIT"
] | null | null | null | """
Abstract training class
"""
from abc import ABC as AbstractBaseClass
from abc import abstractmethod
class AdstractTrainer(AbstractBaseClass):
@abstractmethod
def run(self):
pass
@abstractmethod
def prepare_data_loaders(self):
"""
For preparing data loaders and save them a... | 19.30303 | 71 | 0.616954 | 63 | 637 | 6.15873 | 0.587302 | 0.175258 | 0.162371 | 0.216495 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.318681 | 637 | 32 | 72 | 19.90625 | 0.894009 | 0.273155 | 0 | 0.533333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.266667 | false | 0.266667 | 0.133333 | 0 | 0.466667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
602c64e6002e7e17025a13776dc2c4562e176aca | 1,593 | py | Python | dianhua/worker/crawler/china_mobile/hunan/base_request_param.py | Svolcano/python_exercise | a50e05891cc7f1fbb40ebcae324b09b6a14473d2 | [
"MIT"
] | 6 | 2015-07-09T08:47:08.000Z | 2020-05-16T10:47:31.000Z | dianhua/worker/crawler/china_mobile/hunan/base_request_param.py | Svolcano/python_exercise | a50e05891cc7f1fbb40ebcae324b09b6a14473d2 | [
"MIT"
] | 7 | 2019-03-27T04:13:12.000Z | 2022-03-02T14:54:56.000Z | dianhua/worker/crawler/china_mobile/hunan/base_request_param.py | Svolcano/python_exercise | a50e05891cc7f1fbb40ebcae324b09b6a14473d2 | [
"MIT"
] | 2 | 2019-06-21T06:46:28.000Z | 2019-12-23T09:31:09.000Z | # -*- coding:utf-8 -*-
"""
@version: v1.0
@author: xuelong.liu
@license: Apache Licence
@contact: xuelong.liu@yulore.com
@software: PyCharm
@file: base_request_param.py
@time: 12/21/16 6:48 PM
"""
class RequestParam(object):
"""
请求相关
"""
# URL
START_URL = "https://www.hn.10086.cn/service/static... | 49.78125 | 183 | 0.756434 | 217 | 1,593 | 5.428571 | 0.37788 | 0.050934 | 0.101868 | 0.122241 | 0.572156 | 0.572156 | 0.563667 | 0.401528 | 0.310696 | 0.251273 | 0 | 0.110041 | 0.087257 | 1,593 | 31 | 184 | 51.387097 | 0.700138 | 0.386692 | 0 | 0 | 0 | 0.333333 | 0.751317 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
602ca05ca5bb93779dbfa2cc096246fe750c69b6 | 823 | py | Python | ionosenterprise/items/backupunit.py | ionos-cloud/ionos-enterprise-sdk-python | 6b601990098ab36289a251406fb093489b647f1d | [
"Apache-2.0"
] | 6 | 2015-04-16T11:43:27.000Z | 2019-04-10T10:47:57.000Z | ionosenterprise/items/backupunit.py | ionos-cloud/ionos-enterprise-sdk-python | 6b601990098ab36289a251406fb093489b647f1d | [
"Apache-2.0"
] | 40 | 2015-05-26T15:24:14.000Z | 2018-12-05T20:17:28.000Z | ionosenterprise/items/backupunit.py | ionos-cloud/ionos-enterprise-sdk-python | 6b601990098ab36289a251406fb093489b647f1d | [
"Apache-2.0"
] | 11 | 2015-04-27T16:40:36.000Z | 2018-12-21T09:35:32.000Z | class BackupUnit(object):
def __init__(self, name, password=None, email=None):
"""
BackupUnit class initializer.
:param name: A name of that resource (only alphanumeric characters are acceptable)"
:type name: ``str``
:param password: The password associated ... | 34.291667 | 96 | 0.569866 | 95 | 823 | 4.852632 | 0.442105 | 0.052061 | 0.073753 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.330498 | 823 | 23 | 97 | 35.782609 | 0.836661 | 0.503038 | 0 | 0 | 0 | 0 | 0.134146 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.5 | 0 | 0.125 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 3 |
605343dd026fb3e41372878d610c32ec85aeb812 | 1,196 | py | Python | tests/unit/combiner/Try.py | wangjeaf/CSSCheckStyle | d1b1ed89c61ca80d65f398ec4a07d73789197b04 | [
"BSD-3-Clause"
] | 21 | 2015-04-27T14:54:45.000Z | 2021-11-08T09:12:08.000Z | tests/unit/combiner/Try.py | wangjeaf/CSSCheckStyle | d1b1ed89c61ca80d65f398ec4a07d73789197b04 | [
"BSD-3-Clause"
] | null | null | null | tests/unit/combiner/Try.py | wangjeaf/CSSCheckStyle | d1b1ed89c61ca80d65f398ec4a07d73789197b04 | [
"BSD-3-Clause"
] | 6 | 2015-03-02T08:08:59.000Z | 2016-03-16T14:52:38.000Z | from helper import *
def doTest():
msg = doCssFileCompress('_test.css')
equal(msg, '@import (url-here);.test,.test2,.test3,.test4,.test5{_width:100px;*height:100px}.test6{display:none;_width:100px;*height:100px}', 'totally compressed')
msg = doCssFileCompress('_test_different_order.css')
equal(msg, '.... | 56.952381 | 172 | 0.723244 | 158 | 1,196 | 5.35443 | 0.265823 | 0.082742 | 0.132388 | 0.148936 | 0.600473 | 0.446809 | 0.446809 | 0.403073 | 0.301418 | 0.248227 | 0 | 0.086351 | 0.099498 | 1,196 | 20 | 173 | 59.8 | 0.699164 | 0 | 0 | 0 | 0 | 0.285714 | 0.689799 | 0.481605 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.142857 | 0 | 0.214286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
60ba59b06c112c09793490d953e6cf3a3ee2e96f | 799 | py | Python | src/interpreter/functions/math/math.py | incrementals/b-star | 325bb51eafd5c5173582bf065b82d10ef9669275 | [
"MIT"
] | 2 | 2021-11-02T04:28:32.000Z | 2021-11-05T14:27:08.000Z | src/interpreter/functions/math/math.py | incrementals/b-star | 325bb51eafd5c5173582bf065b82d10ef9669275 | [
"MIT"
] | null | null | null | src/interpreter/functions/math/math.py | incrementals/b-star | 325bb51eafd5c5173582bf065b82d10ef9669275 | [
"MIT"
] | null | null | null | from src.interpreter.functions.math.add import add
from src.interpreter.functions.math.div import div
from src.interpreter.functions.math.mod import mod
from src.interpreter.functions.math.mul import mul
from src.interpreter.functions.math.pow import pow_func
from src.interpreter.functions.math.sub import sub
def mat... | 31.96 | 56 | 0.667084 | 102 | 799 | 5.196078 | 0.254902 | 0.079245 | 0.203774 | 0.30566 | 0.596226 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.214018 | 799 | 24 | 57 | 33.291667 | 0.843949 | 0 | 0 | 0 | 0 | 0 | 0.030038 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.272727 | 0 | 0.590909 | 0 | 0 | 0 | 0 | null | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
60c83e7959d89b5e5edca7072a51f45a83d6ac45 | 59,840 | py | Python | 3rdparty/pyviso2/src/viso2.py | utiasSTARS/matchable-image-transforms | 2c723872ef82e51dfa32abd3bbcec8410cb7dd2d | [
"MIT"
] | 11 | 2020-07-31T00:39:26.000Z | 2022-02-10T05:46:52.000Z | 3rdparty/pyviso2/src/viso2.py | utiasSTARS/matchable-image-transforms | 2c723872ef82e51dfa32abd3bbcec8410cb7dd2d | [
"MIT"
] | 1 | 2021-02-08T06:14:07.000Z | 2021-02-22T02:33:30.000Z | 3rdparty/pyviso2/src/viso2.py | utiasSTARS/matchable-image-transforms | 2c723872ef82e51dfa32abd3bbcec8410cb7dd2d | [
"MIT"
] | 5 | 2019-12-31T11:03:09.000Z | 2022-01-30T02:16:02.000Z | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 3.0.12
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info as _swig_python_version_info
if _swig_python_version_info >= (2, 7, 0):
def swig_im... | 33.448854 | 155 | 0.670488 | 6,869 | 59,840 | 5.209346 | 0.05008 | 0.052874 | 0.027555 | 0.015426 | 0.705391 | 0.574071 | 0.471928 | 0.411676 | 0.361848 | 0.317777 | 0 | 0.018444 | 0.215358 | 59,840 | 1,788 | 156 | 33.467562 | 0.743659 | 0.171457 | 0 | 0.4004 | 1 | 0 | 0.024579 | 0.001868 | 0 | 0 | 0 | 0 | 0 | 1 | 0.201201 | false | 0.002002 | 0.019019 | 0.006006 | 0.576577 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
60ca5ce5e30551afa068c44f1f37df1dba443df8 | 516 | py | Python | app/config.py | MoShitrit/kubernetes-controller-example | 210a75ddf9c423c55be248ed21f2b6dea160a782 | [
"MIT"
] | null | null | null | app/config.py | MoShitrit/kubernetes-controller-example | 210a75ddf9c423c55be248ed21f2b6dea160a782 | [
"MIT"
] | null | null | null | app/config.py | MoShitrit/kubernetes-controller-example | 210a75ddf9c423c55be248ed21f2b6dea160a782 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
class Config:
api_group = os.environ.get('API_GROUP', 'hello-k8s.s5t.dev')
auth_method = os.environ.get("AUTH_METHOD", "cluster")
examples_plural = os.environ.get('API_PLURAL', 'examples')
examples_version = os.environ.get('API_VERSION', 'v1alpha... | 23.454545 | 64 | 0.649225 | 71 | 516 | 4.464789 | 0.535211 | 0.170347 | 0.227129 | 0.141956 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018692 | 0.170543 | 516 | 21 | 65 | 24.571429 | 0.721963 | 0.081395 | 0 | 0 | 0 | 0 | 0.260593 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0.076923 | 0.076923 | 0 | 0.769231 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 3 |
60cb8e5c27f24f98943d97e9273f6af1c5fa5149 | 328 | py | Python | apps/articles/cms_apps.py | creimers/djangocms-delete-error | f38b8a7a277d98060a2b04d9552f26eff3c1c552 | [
"MIT"
] | null | null | null | apps/articles/cms_apps.py | creimers/djangocms-delete-error | f38b8a7a277d98060a2b04d9552f26eff3c1c552 | [
"MIT"
] | null | null | null | apps/articles/cms_apps.py | creimers/djangocms-delete-error | f38b8a7a277d98060a2b04d9552f26eff3c1c552 | [
"MIT"
] | null | null | null | from cms.app_base import CMSApp
from cms.apphook_pool import apphook_pool
from django.utils.translation import gettext as _
class CategoriesAppHook(CMSApp):
name = _("Categories")
def get_urls(self, page=None, language=None, **kwargs):
return ["apps.articles.urls"]
apphook_pool.register(CategoriesA... | 23.428571 | 59 | 0.759146 | 42 | 328 | 5.761905 | 0.690476 | 0.136364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.146341 | 328 | 13 | 60 | 25.230769 | 0.864286 | 0 | 0 | 0 | 0 | 0 | 0.085366 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.375 | 0.125 | 0.875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 3 |
60e2dac20daea4e1b597e6b7b483a594503cfc03 | 578 | py | Python | authcheck/app/model/exception.py | flyr4nk/secscan-authcheck | d04c6ae3dc1fa7841727d23161c27eebaf92be3c | [
"Apache-2.0"
] | 572 | 2019-08-31T01:09:56.000Z | 2022-03-21T12:24:38.000Z | authcheck/app/model/exception.py | flyr4nk/secscan-authcheck | d04c6ae3dc1fa7841727d23161c27eebaf92be3c | [
"Apache-2.0"
] | 19 | 2019-09-04T09:55:34.000Z | 2021-12-30T09:54:28.000Z | authcheck/app/model/exception.py | flyr4nk/secscan-authcheck | d04c6ae3dc1fa7841727d23161c27eebaf92be3c | [
"Apache-2.0"
] | 142 | 2019-09-04T08:32:39.000Z | 2022-02-26T03:32:41.000Z | class WebException(Exception):
pass
class ParserException(Exception):
"""
解析异常
"""
pass
class ApiException(Exception):
"""
api异常
"""
pass
class WsException(Exception):
"""
轮询异常
"""
pass
class SsoException(Exception):
"""
sso异... | 11.115385 | 35 | 0.491349 | 40 | 578 | 7.1 | 0.475 | 0.221831 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.391003 | 578 | 51 | 36 | 11.333333 | 0.806818 | 0.077855 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.5 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 0 | 0 | 0 | 3 |
60e70e427a588cb1cff3bcadb9c8fed3c8764de3 | 825 | py | Python | src/code/djangotest/migrations/0001_initial.py | jielyu/notebook | d0c0d0306fdb2746195c9d7851af25d0393a311d | [
"MIT"
] | 2 | 2020-06-08T07:29:55.000Z | 2021-05-08T09:34:07.000Z | src/code/djangotest/migrations/0001_initial.py | jielyu/notebook | d0c0d0306fdb2746195c9d7851af25d0393a311d | [
"MIT"
] | null | null | null | src/code/djangotest/migrations/0001_initial.py | jielyu/notebook | d0c0d0306fdb2746195c9d7851af25d0393a311d | [
"MIT"
] | null | null | null | # Generated by Django 2.2.5 on 2019-10-05 23:22
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Password',
fields=[
('id', models.IntegerFi... | 28.448276 | 92 | 0.550303 | 81 | 825 | 5.469136 | 0.617284 | 0.10158 | 0.121896 | 0.162528 | 0.182844 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042781 | 0.32 | 825 | 28 | 93 | 29.464286 | 0.746881 | 0.054545 | 0 | 0 | 1 | 0 | 0.086118 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.095238 | 0.047619 | 0 | 0.238095 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
71567463ea68f026c0c3520620d04799ac10631b | 731 | py | Python | status-uncertain/baseline_model.py | crawftv/CRAwTO | 8c6fdb93ed963cbddfe967b041e8beb578d1e94d | [
"BSD-3-Clause"
] | 1 | 2020-04-03T12:43:27.000Z | 2020-04-03T12:43:27.000Z | status-uncertain/baseline_model.py | crawftv/CRAwTO | 8c6fdb93ed963cbddfe967b041e8beb578d1e94d | [
"BSD-3-Clause"
] | 21 | 2020-02-14T04:29:03.000Z | 2020-07-14T02:19:37.000Z | status-uncertain/baseline_model.py | crawftv/CRAwTO | 8c6fdb93ed963cbddfe967b041e8beb578d1e94d | [
"BSD-3-Clause"
] | 1 | 2019-10-25T01:06:58.000Z | 2019-10-25T01:06:58.000Z | #!/usr/bin/env python3
from sklearn.metrics import r2_score
import numpy as np
class BaselineModel(object):
def get_params(self):
return None
def predict(self, X):
return np.ones_like(X.index.values) * self._y_pred
def score(self, X, y):
y_true = y
y_pred = np.ones_like(y... | 20.305556 | 58 | 0.621067 | 100 | 731 | 4.36 | 0.36 | 0.080275 | 0.103211 | 0.068807 | 0.256881 | 0.16055 | 0.16055 | 0.16055 | 0.16055 | 0.16055 | 0 | 0.005714 | 0.281806 | 731 | 35 | 59 | 20.885714 | 0.824762 | 0.028728 | 0 | 0.16 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.24 | false | 0 | 0.08 | 0.12 | 0.68 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
71643b0981d730fe3a0cca31ee9497698e110f45 | 245 | py | Python | tests/factory_fixtures/dummy_resource.py | whiletrace/dwellinglybackend | e766b3d612b4c92fd337b82498ab8ef68bd95e1f | [
"MIT"
] | 15 | 2020-07-09T20:51:09.000Z | 2021-11-28T21:59:02.000Z | tests/factory_fixtures/dummy_resource.py | codeforpdx/dwellinglybackend | 92fee6d19a68ae00750927b8700eaa7195b57668 | [
"MIT"
] | 148 | 2020-03-28T22:10:30.000Z | 2021-12-19T09:22:59.000Z | tests/factory_fixtures/dummy_resource.py | whiletrace/dwellinglybackend | e766b3d612b4c92fd337b82498ab8ef68bd95e1f | [
"MIT"
] | 30 | 2020-03-12T02:31:27.000Z | 2021-07-29T02:40:36.000Z | from flask import request
from flask_restful import Resource
from utils.gatekeeper import allowed_params
class DummyResource(Resource):
dummy_params = set()
@allowed_params(dummy_params)
def put(self):
return request.json
| 20.416667 | 43 | 0.759184 | 31 | 245 | 5.83871 | 0.612903 | 0.099448 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.183673 | 245 | 11 | 44 | 22.272727 | 0.905 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.375 | 0.125 | 0.875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 3 |
7171ec803ebbc9d578b8e216bcbe447dfe0af3a6 | 27 | py | Python | __init__.py | semccomas/string-method-gmxapi | fb68dce792d35df739225b1048e0816a4a61d45e | [
"MIT"
] | 6 | 2020-10-15T16:43:19.000Z | 2022-01-21T09:09:13.000Z | __init__.py | semccomas/string-method-gmxapi | fb68dce792d35df739225b1048e0816a4a61d45e | [
"MIT"
] | 9 | 2020-07-01T08:36:49.000Z | 2021-06-23T07:15:53.000Z | __init__.py | semccomas/string-method-gmxapi | fb68dce792d35df739225b1048e0816a4a61d45e | [
"MIT"
] | 5 | 2020-07-15T06:08:00.000Z | 2021-07-02T14:24:59.000Z | __all__ = ["stringmethod"]
| 13.5 | 26 | 0.703704 | 2 | 27 | 7.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 27 | 1 | 27 | 27 | 0.625 | 0 | 0 | 0 | 0 | 0 | 0.444444 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7174375d0908f71b2864b3f93d7df2286d52caea | 29 | py | Python | pagetags/configuration/development.py | pmatigakis/pagetags | 5e81d01493548edc2677453819c32de3cf75d159 | [
"MIT"
] | null | null | null | pagetags/configuration/development.py | pmatigakis/pagetags | 5e81d01493548edc2677453819c32de3cf75d159 | [
"MIT"
] | null | null | null | pagetags/configuration/development.py | pmatigakis/pagetags | 5e81d01493548edc2677453819c32de3cf75d159 | [
"MIT"
] | null | null | null | DEBUG = True
TESTING = False
| 9.666667 | 15 | 0.724138 | 4 | 29 | 5.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.206897 | 29 | 2 | 16 | 14.5 | 0.913043 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
71757b823cf5dc703ab76426a5d125f92b1f4a70 | 665 | py | Python | hpcrocket/pyfilesystem/factory.py | SvenMarcus/hpc-rocket | b28917e7afe6e2e839d1ae58f2e21fba6e3eb61c | [
"MIT"
] | 7 | 2022-01-03T13:52:40.000Z | 2022-03-10T16:26:04.000Z | hpcrocket/pyfilesystem/factory.py | SvenMarcus/ssh-slurm-runner | 91ea1a052a0362b5b8676b6e429aa3c890359e73 | [
"MIT"
] | 18 | 2021-04-16T15:53:55.000Z | 2021-09-13T17:38:44.000Z | hpcrocket/pyfilesystem/factory.py | SvenMarcus/hpclaunch | 1a0459167bf5d7b26b1d7e46a1b1d073a4a55650 | [
"MIT"
] | null | null | null | from hpcrocket.core.filesystem import Filesystem, FilesystemFactory
from hpcrocket.core.launchoptions import Options
from hpcrocket.pyfilesystem.localfilesystem import LocalFilesystem
from hpcrocket.pyfilesystem.sshfilesystem import SSHFilesystem
class PyFilesystemFactory(FilesystemFactory):
def __init__(self, o... | 35 | 67 | 0.77594 | 63 | 665 | 8.015873 | 0.365079 | 0.10297 | 0.067327 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.156391 | 665 | 18 | 68 | 36.944444 | 0.900178 | 0 | 0 | 0 | 0 | 0 | 0.001504 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.307692 | 0.076923 | 0.769231 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
719475f300d53be54d446d8d9cab1b9a95946543 | 371 | py | Python | tracking_test.py | HsunGong/Augmented-Advertisement | ae9d0f5796c13e837a1a547d888647aeb61f0b04 | [
"MIT"
] | 5 | 2020-07-10T03:16:24.000Z | 2022-01-14T01:12:23.000Z | tracking_test.py | HsunGong/Augmented-Advertisement | ae9d0f5796c13e837a1a547d888647aeb61f0b04 | [
"MIT"
] | 4 | 2021-08-25T16:13:24.000Z | 2022-02-10T03:34:06.000Z | tracking_test.py | HsunGong/Augmented-Advertisement | ae9d0f5796c13e837a1a547d888647aeb61f0b04 | [
"MIT"
] | 1 | 2021-10-22T02:53:39.000Z | 2021-10-22T02:53:39.000Z | # Copyright (c) Group Three-Forest SJTU. All Rights Reserved.
from tracking.tracking import *
# a = tracking_video_rectangle("video/","1.mp4",[[273,352],[266,616],[412,620],[416,369]])
a = tracking_video_rectangle_tovideo("video/","1.mp4", "1.png", [[273,352],[266,616],[412,620],[416,369]], result = 'result__.a... | 53 | 177 | 0.668464 | 57 | 371 | 4.192982 | 0.649123 | 0.075314 | 0.117155 | 0.192469 | 0.200837 | 0.200837 | 0.200837 | 0.200837 | 0 | 0 | 0 | 0.176829 | 0.115903 | 371 | 6 | 178 | 61.833333 | 0.551829 | 0.401617 | 0 | 0 | 0 | 0 | 0.131455 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 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 | 0 | 0 | 0 | 3 |
719a07f87262fe8ff8cbef8ec2795807ff5db531 | 10,005 | py | Python | tests/models/test_stacking.py | LionelMassoulard/aikit | 98b2abaa3bf47ab46f2fd3c270010293de06dba9 | [
"BSD-2-Clause"
] | null | null | null | tests/models/test_stacking.py | LionelMassoulard/aikit | 98b2abaa3bf47ab46f2fd3c270010293de06dba9 | [
"BSD-2-Clause"
] | null | null | null | tests/models/test_stacking.py | LionelMassoulard/aikit | 98b2abaa3bf47ab46f2fd3c270010293de06dba9 | [
"BSD-2-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
"""
Created on Fri Sep 14 11:49:10 2018
@author: Lionel Massoulard
"""
import pytest
import numpy as np
import pandas as pd
from sklearn.base import is_regressor, is_classifier
from sklearn.exceptions import NotFittedError
from sklearn.model_selection import KFold
from sklearn.ensemble impo... | 29.254386 | 172 | 0.687856 | 1,344 | 10,005 | 4.971726 | 0.111607 | 0.038312 | 0.054475 | 0.050284 | 0.819814 | 0.739898 | 0.699192 | 0.693206 | 0.662227 | 0.646214 | 0 | 0.051172 | 0.181609 | 10,005 | 341 | 173 | 29.340176 | 0.7649 | 0.027786 | 0 | 0.59434 | 0 | 0 | 0.031704 | 0.021204 | 0 | 0 | 0 | 0 | 0.254717 | 1 | 0.056604 | false | 0 | 0.051887 | 0 | 0.108491 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 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 | 3 |
71c0cce85adc329d434c5d37b1c07b2cd22f1f21 | 410 | py | Python | test/torchaudio_unittest/models/emformer/emformer_cpu_test.py | LaudateCorpus1/audio | a007e922d34028270197c0549bf452b79499d039 | [
"BSD-2-Clause"
] | null | null | null | test/torchaudio_unittest/models/emformer/emformer_cpu_test.py | LaudateCorpus1/audio | a007e922d34028270197c0549bf452b79499d039 | [
"BSD-2-Clause"
] | null | null | null | test/torchaudio_unittest/models/emformer/emformer_cpu_test.py | LaudateCorpus1/audio | a007e922d34028270197c0549bf452b79499d039 | [
"BSD-2-Clause"
] | null | null | null | import torch
from torchaudio_unittest.common_utils import PytorchTestCase
from torchaudio_unittest.models.emformer.emformer_test_impl import EmformerTestImpl
class EmformerFloat32CPUTest(EmformerTestImpl, PytorchTestCase):
dtype = torch.float32
device = torch.device("cpu")
class EmformerFloat64CPUTest(Emfor... | 29.285714 | 83 | 0.814634 | 41 | 410 | 8.02439 | 0.512195 | 0.085106 | 0.133739 | 0.24924 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022099 | 0.117073 | 410 | 13 | 84 | 31.538462 | 0.88674 | 0 | 0 | 0.222222 | 0 | 0 | 0.014634 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 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 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
71cdfb38599df10c30320a2593f3e48d3acf2678 | 4,140 | py | Python | Mock/MockRequesterMixin.py | GordiigPinny/ApiRequesters | aeb36c7b7b5237c3a74dae6ced7c6141df729ab5 | [
"MIT"
] | null | null | null | Mock/MockRequesterMixin.py | GordiigPinny/ApiRequesters | aeb36c7b7b5237c3a74dae6ced7c6141df729ab5 | [
"MIT"
] | null | null | null | Mock/MockRequesterMixin.py | GordiigPinny/ApiRequesters | aeb36c7b7b5237c3a74dae6ced7c6141df729ab5 | [
"MIT"
] | null | null | null | import json
import requests
from enum import Enum
from typing import Dict
from ..exceptions import JsonDecodeError, UnexpectedResponse, RequestError, BaseApiRequestError
class MockRequesterMixin:
"""
Набор методов для моков реквестеров
"""
class ERRORS(Enum):
ERROR_TOKEN = 'error'
BAD_... | 34.214876 | 95 | 0.674396 | 546 | 4,140 | 4.840659 | 0.20696 | 0.036322 | 0.068104 | 0.04843 | 0.422247 | 0.374196 | 0.249338 | 0.249338 | 0.218313 | 0.218313 | 0 | 0.015132 | 0.233816 | 4,140 | 120 | 96 | 34.5 | 0.818096 | 0.077536 | 0 | 0.058824 | 0 | 0 | 0.041545 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.223529 | false | 0 | 0.058824 | 0.141176 | 0.517647 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
71cfe2dcb6db7c33d02af00f0428d85a6126a273 | 313 | py | Python | tests/test_parse.py | vkleen/skidl | f09200c978a39c127e292ef71b8ff89c1a3c0f5a | [
"MIT"
] | 700 | 2016-08-16T21:12:50.000Z | 2021-10-10T02:15:18.000Z | tests/test_parse.py | 0dvictor/skidl | 458709a10b28a864d25ae2c2b44c6103d4ddb291 | [
"MIT"
] | 118 | 2016-08-16T20:51:05.000Z | 2021-10-10T08:07:18.000Z | tests/test_parse.py | 0dvictor/skidl | 458709a10b28a864d25ae2c2b44c6103d4ddb291 | [
"MIT"
] | 94 | 2016-08-25T14:02:28.000Z | 2021-09-12T05:17:08.000Z | # -*- coding: utf-8 -*-
# The MIT License (MIT) - Copyright (c) 2016-2021 Dave Vandenbout.
import pytest
from skidl import netlist_to_skidl
from .setup_teardown import get_filename, setup_function, teardown_function
def test_parser_1():
netlist_to_skidl(get_filename("Arduino_Uno_R3_From_Scratch.net"))
| 22.357143 | 75 | 0.773163 | 46 | 313 | 4.934783 | 0.695652 | 0.079295 | 0.123348 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040441 | 0.13099 | 313 | 13 | 76 | 24.076923 | 0.794118 | 0.27476 | 0 | 0 | 0 | 0 | 0.138393 | 0.138393 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | true | 0 | 0.6 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
71dbf8ffa644ff16bfd38b31d3b7d01cb8ab4ea8 | 203 | py | Python | pygall/tests/test_photos.py | bbinet/PyGall | 4d83165e50ca927d664aa6b7b716eb8f484c3cd6 | [
"BSD-3-Clause"
] | 1 | 2021-05-09T16:43:49.000Z | 2021-05-09T16:43:49.000Z | pygall/tests/test_photos.py | bbinet/PyGall | 4d83165e50ca927d664aa6b7b716eb8f484c3cd6 | [
"BSD-3-Clause"
] | null | null | null | pygall/tests/test_photos.py | bbinet/PyGall | 4d83165e50ca927d664aa6b7b716eb8f484c3cd6 | [
"BSD-3-Clause"
] | 3 | 2015-10-04T20:53:04.000Z | 2017-11-20T21:51:21.000Z | from unittest import TestCase
from pyramid import testing
class PhotosTests(TestCase):
def setUp(self):
self.config = testing.setUp()
def tearDown(self):
testing.tearDown()
| 14.5 | 37 | 0.679803 | 23 | 203 | 6 | 0.565217 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.236453 | 203 | 13 | 38 | 15.615385 | 0.890323 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.285714 | 0 | 0.714286 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
71e43b48b96fcad3e7e8029cf7b4f49e58e53fda | 243 | py | Python | output/models/nist_data/list_pkg/decimal/schema_instance/nistschema_sv_iv_list_decimal_pattern_2_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 1 | 2021-08-14T17:59:21.000Z | 2021-08-14T17:59:21.000Z | output/models/nist_data/list_pkg/decimal/schema_instance/nistschema_sv_iv_list_decimal_pattern_2_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 4 | 2020-02-12T21:30:44.000Z | 2020-04-15T20:06:46.000Z | output/models/nist_data/list_pkg/decimal/schema_instance/nistschema_sv_iv_list_decimal_pattern_2_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | null | null | null | from output.models.nist_data.list_pkg.decimal.schema_instance.nistschema_sv_iv_list_decimal_pattern_2_xsd.nistschema_sv_iv_list_decimal_pattern_2 import NistschemaSvIvListDecimalPattern2
__all__ = [
"NistschemaSvIvListDecimalPattern2",
]
| 40.5 | 186 | 0.888889 | 29 | 243 | 6.758621 | 0.655172 | 0.122449 | 0.142857 | 0.183673 | 0.336735 | 0.336735 | 0.336735 | 0 | 0 | 0 | 0 | 0.017467 | 0.057613 | 243 | 5 | 187 | 48.6 | 0.838428 | 0 | 0 | 0 | 0 | 0 | 0.135802 | 0.135802 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 0 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 3 |
e0b92dd95f8f3eb4f67617f41703129b86326aae | 1,823 | py | Python | python/aghast/aghast_generated/Slice.py | HDembinski/aghast | f3d45a6960033f48fb8f6b7e906cb36b9d9d8e95 | [
"BSD-3-Clause"
] | 18 | 2019-04-15T14:39:35.000Z | 2021-12-21T15:01:02.000Z | python/aghast/aghast_generated/Slice.py | HDembinski/aghast | f3d45a6960033f48fb8f6b7e906cb36b9d9d8e95 | [
"BSD-3-Clause"
] | 27 | 2019-04-12T20:24:00.000Z | 2021-12-03T08:51:56.000Z | python/aghast/aghast_generated/Slice.py | diana-hep/stagg | ed97e9abc870e729d300622253aa7e9c870f77ec | [
"BSD-3-Clause"
] | 11 | 2019-04-15T14:41:00.000Z | 2021-11-16T13:28:10.000Z | # automatically generated by the FlatBuffers compiler, do not modify
# namespace: aghast_generated
import flatbuffers
class Slice(object):
__slots__ = ["_tab"]
# Slice
def Init(self, buf, pos):
self._tab = flatbuffers.table.Table(buf, pos)
# Slice
def Start(self):
return self._... | 26.808824 | 79 | 0.641251 | 201 | 1,823 | 5.631841 | 0.273632 | 0.080389 | 0.233216 | 0.090106 | 0.534452 | 0.534452 | 0.534452 | 0.534452 | 0.49735 | 0.452297 | 0 | 0.019245 | 0.258914 | 1,823 | 67 | 80 | 27.208955 | 0.818653 | 0.074602 | 0 | 0.244444 | 1 | 0 | 0.002385 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.177778 | false | 0 | 0.022222 | 0.133333 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 3 |
e0bd2b8b9279c8dd18c9c1094fe6466b3d0d10be | 1,403 | py | Python | scripts/slice.py | priyablue/lidar_navigation | 39cd44a44043fa001c9d797ddea6c19e3376276c | [
"Apache-2.0"
] | 2 | 2017-12-19T16:16:50.000Z | 2018-03-15T12:41:03.000Z | scripts/slice.py | athenian-programming/lidar_navigation | 39cd44a44043fa001c9d797ddea6c19e3376276c | [
"Apache-2.0"
] | null | null | null | scripts/slice.py | athenian-programming/lidar_navigation | 39cd44a44043fa001c9d797ddea6c19e3376276c | [
"Apache-2.0"
] | 1 | 2021-05-08T11:27:10.000Z | 2021-05-08T11:27:10.000Z | import math
from point2d import Point2D
def to_point(rads, dist):
x = math.cos(rads) * dist
y = math.sin(rads) * dist
return Point2D(x, y)
class Slice(object):
def __init__(self, begin, end):
self.__begin = begin
self.__end = end
self.__begin_rad = math.radians(self.__begin... | 28.06 | 101 | 0.655025 | 192 | 1,403 | 4.3125 | 0.255208 | 0.108696 | 0.115942 | 0.065217 | 0.25 | 0.221014 | 0.152174 | 0.07971 | 0 | 0 | 0 | 0.004721 | 0.245189 | 1,403 | 49 | 102 | 28.632653 | 0.777148 | 0.078403 | 0 | 0 | 0 | 0 | 0.022481 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.28125 | false | 0 | 0.0625 | 0.15625 | 0.5625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
e0c5b44a98d273699a00386bb7674bf23a762723 | 227 | py | Python | sandbox/lib/jumpscale/JumpscaleLibs/clients/graphql/GraphQLFactory.py | threefoldtech/threebot_prebuilt | 1f0e1c65c14cef079cd80f73927d7c8318755c48 | [
"Apache-2.0"
] | null | null | null | sandbox/lib/jumpscale/JumpscaleLibs/clients/graphql/GraphQLFactory.py | threefoldtech/threebot_prebuilt | 1f0e1c65c14cef079cd80f73927d7c8318755c48 | [
"Apache-2.0"
] | 117 | 2019-09-01T11:59:19.000Z | 2020-07-14T11:10:08.000Z | sandbox/lib/jumpscale/JumpscaleLibs/clients/graphql/GraphQLFactory.py | threefoldtech/threebot_prebuilt | 1f0e1c65c14cef079cd80f73927d7c8318755c48 | [
"Apache-2.0"
] | 2 | 2020-04-06T15:21:23.000Z | 2020-05-07T04:29:53.000Z | from .GraphQLClient import GraphQLClient
from Jumpscale import j
JSConfigs = j.baseclasses.object_config_collection
class GraphQLFactory(JSConfigs):
__jslocation__ = "j.clients.graphql"
_CHILDCLASS = GraphQLClient
| 18.916667 | 50 | 0.801762 | 23 | 227 | 7.608696 | 0.695652 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.140969 | 227 | 11 | 51 | 20.636364 | 0.897436 | 0 | 0 | 0 | 0 | 0 | 0.07489 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.833333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
e0dd99fc8816a494d26cd7231afd96fb99ec03d8 | 476 | py | Python | invmonInfra/domain/__init__.py | jtom38/invmon-api | 28f163bef47ee5c95bac0f40198e25e44090758f | [
"MIT"
] | null | null | null | invmonInfra/domain/__init__.py | jtom38/invmon-api | 28f163bef47ee5c95bac0f40198e25e44090758f | [
"MIT"
] | 16 | 2021-12-09T06:22:29.000Z | 2022-03-25T06:26:01.000Z | invmonInfra/domain/__init__.py | jtom38/invmon-api | 28f163bef47ee5c95bac0f40198e25e44090758f | [
"MIT"
] | null | null | null | from .dbApiInterface import DbApiTableInterface
from .dbApiTableInterface import DbApiTableInterface
from .cacheInterface import CacheInterface
from .loggerInterface import LoggerInterface
from .envReaderInterface import EnvReaderInterface
from .driverInterface import DriverInterface
from .jobsInterface import JobsInte... | 47.6 | 58 | 0.897059 | 40 | 476 | 10.675 | 0.3 | 0.117096 | 0.135831 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.081933 | 476 | 10 | 59 | 47.6 | 0.977117 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
e0e5f077be0c9058daed1ddc7c50b58ba470d16a | 1,169 | py | Python | Plugins/UnrealEnginePython/Binaries/Win64/Lib/site-packages/tensorflow/python/eager/test.py | JustinACoder/H22-GR3-UnrealAI | 361eb9ef1147f8a2991e5f98c4118cd823184adf | [
"MIT"
] | 6 | 2022-02-04T18:12:24.000Z | 2022-03-21T23:57:12.000Z | Lib/site-packages/tensorflow/python/eager/test.py | shfkdroal/Robot-Learning-in-Mixed-Adversarial-and-Collaborative-Settings | 1fa4cd6a566c8745f455fc3d2273208f21f88ced | [
"bzip2-1.0.6"
] | null | null | null | Lib/site-packages/tensorflow/python/eager/test.py | shfkdroal/Robot-Learning-in-Mixed-Adversarial-and-Collaborative-Settings | 1fa4cd6a566c8745f455fc3d2273208f21f88ced | [
"bzip2-1.0.6"
] | 1 | 2022-02-08T03:53:23.000Z | 2022-02-08T03:53:23.000Z | # Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by... | 38.966667 | 81 | 0.707442 | 157 | 1,169 | 5.140127 | 0.611465 | 0.074349 | 0.05948 | 0.039653 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008172 | 0.162532 | 1,169 | 29 | 82 | 40.310345 | 0.816139 | 0.654405 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034483 | 0 | 1 | 0.111111 | false | 0 | 0.666667 | 0 | 0.777778 | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
e0f5092962647fb17fad330ad7ca8a057c8cedba | 435 | py | Python | CLCC/ex8.py | adstr123/LPTHW | 1a331ef173ffd6122b5c5ed13d8fdcc73ab7ce66 | [
"Zed"
] | null | null | null | CLCC/ex8.py | adstr123/LPTHW | 1a331ef173ffd6122b5c5ed13d8fdcc73ab7ce66 | [
"Zed"
] | null | null | null | CLCC/ex8.py | adstr123/LPTHW | 1a331ef173ffd6122b5c5ed13d8fdcc73ab7ce66 | [
"Zed"
] | null | null | null | # Moving around directories with pushd & popd
# You can save directries to go back to later. These can be built up in a stack.
#pushd i/like/icecream
# current stack: ~temp/i/like/icecream
#pushd i/like
# current stack: ~temp/i/like ~temp/i/like/icecream
#popd
# PS ~temp/i/like
#popd
# PS ~temp/i/like/icecre... | 33.461538 | 109 | 0.728736 | 76 | 435 | 4.171053 | 0.486842 | 0.11041 | 0.141956 | 0.160883 | 0.227129 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.186207 | 435 | 13 | 109 | 33.461538 | 0.89548 | 0.917241 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
460ac56ca325f939e25bdbf44f40c51f97e73226 | 429 | py | Python | choir/evaluation/__init__.py | scwangdyd/large_vocabulary_hoi_detection | db7a4397c3050b1bf9a3f7473edf125e2b1046c4 | [
"MIT"
] | 9 | 2021-11-13T17:14:07.000Z | 2022-03-29T00:27:54.000Z | choir/evaluation/__init__.py | scwangdyd/large_vocabulary_hoi_detection | db7a4397c3050b1bf9a3f7473edf125e2b1046c4 | [
"MIT"
] | 1 | 2022-02-04T16:28:01.000Z | 2022-02-04T16:28:01.000Z | choir/evaluation/__init__.py | scwangdyd/large_vocabulary_hoi_detection | db7a4397c3050b1bf9a3f7473edf125e2b1046c4 | [
"MIT"
] | null | null | null | # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
from .evaluator import DatasetEvaluator, DatasetEvaluators, inference_context, inference_on_dataset
from .testing import print_csv_format, verify_results
from .hico_evaluation import HICOEvaluator
from .swig_evaluation import SWIGEvaluator
# from .d... | 47.666667 | 99 | 0.822844 | 54 | 429 | 6.277778 | 0.740741 | 0.141593 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.109557 | 429 | 8 | 100 | 53.625 | 0.887435 | 0.275058 | 0 | 0 | 0 | 0 | 0.003247 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.8 | 0 | 0.8 | 0.2 | 0 | 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 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
460cac61f3a5248165f741d16e8295c7d5e81b06 | 127,462 | py | Python | angr/engines/pcode/arch/ArchPcode_PowerPC_LE_32_QUICC.py | matthewpruett/angr | bfba2af1ea2eb941001339f47a1264a685c60eec | [
"BSD-2-Clause"
] | 6,132 | 2015-08-06T23:24:47.000Z | 2022-03-31T21:49:34.000Z | angr/engines/pcode/arch/ArchPcode_PowerPC_LE_32_QUICC.py | matthewpruett/angr | bfba2af1ea2eb941001339f47a1264a685c60eec | [
"BSD-2-Clause"
] | 2,272 | 2015-08-10T08:40:07.000Z | 2022-03-31T23:46:44.000Z | angr/engines/pcode/arch/ArchPcode_PowerPC_LE_32_QUICC.py | matthewpruett/angr | bfba2af1ea2eb941001339f47a1264a685c60eec | [
"BSD-2-Clause"
] | 1,155 | 2015-08-06T23:37:39.000Z | 2022-03-31T05:54:11.000Z | ###
### This file was automatically generated
###
from archinfo.arch import register_arch, Endness, Register
from .common import ArchPcode
class ArchPcode_PowerPC_LE_32_QUICC(ArchPcode):
name = 'PowerPC:LE:32:QUICC'
pcode_arch = 'PowerPC:LE:32:QUICC'
description = 'PowerQUICC-III 32-bit little endian fa... | 39.449706 | 85 | 0.545692 | 14,870 | 127,462 | 4.544519 | 0.340417 | 0.001894 | 0.001894 | 0.001184 | 0.001332 | 0 | 0 | 0 | 0 | 0 | 0 | 0.276349 | 0.277651 | 127,462 | 3,230 | 86 | 39.46192 | 0.457609 | 0.00029 | 0 | 0 | 1 | 0 | 0.166323 | 0 | 0 | 0 | 0.150053 | 0 | 0 | 1 | 0 | false | 0 | 0.000621 | 0 | 0.003724 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
46116c9d8947552c6fd85dd9c709b4bd524230cf | 141 | py | Python | kafka-connect-azblob/docs/autoreload.py | cirobarradov/kafka-connect-hdfs-datalab | 7e2b23bdb78b34f9934b8d56618a8035b75f6f54 | [
"Apache-2.0"
] | null | null | null | kafka-connect-azblob/docs/autoreload.py | cirobarradov/kafka-connect-hdfs-datalab | 7e2b23bdb78b34f9934b8d56618a8035b75f6f54 | [
"Apache-2.0"
] | null | null | null | kafka-connect-azblob/docs/autoreload.py | cirobarradov/kafka-connect-hdfs-datalab | 7e2b23bdb78b34f9934b8d56618a8035b75f6f54 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
from livereload import Server, shell
server = Server()
server.watch('*.rst', shell('make html'))
server.serve()
| 20.142857 | 42 | 0.680851 | 19 | 141 | 5.052632 | 0.736842 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148936 | 141 | 6 | 43 | 23.5 | 0.8 | 0.141844 | 0 | 0 | 0 | 0 | 0.122807 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1c9f5e89a220e8427228538802a130ed00ec7baf | 317 | py | Python | zeta_python_sdk/exceptions.py | prettyirrelevant/zeta-python-sdk | 536967259c89d380b8853b1cfd0621c50143b8b9 | [
"Apache-2.0"
] | 2 | 2022-03-02T04:05:07.000Z | 2022-03-10T11:49:37.000Z | zeta_python_sdk/exceptions.py | prettyirrelevant/zeta-python-sdk | 536967259c89d380b8853b1cfd0621c50143b8b9 | [
"Apache-2.0"
] | null | null | null | zeta_python_sdk/exceptions.py | prettyirrelevant/zeta-python-sdk | 536967259c89d380b8853b1cfd0621c50143b8b9 | [
"Apache-2.0"
] | null | null | null | class InvalidSideException(Exception):
"""Invalid side"""
class NotSupportedException(Exception):
"""Not supported by dummy wallet"""
class InvalidProductException(Exception):
"""Invalid product type"""
class OutOfBoundsException(Exception):
"""Attempt to access memory outside buffer bounds"""
| 21.133333 | 56 | 0.73817 | 29 | 317 | 8.068966 | 0.758621 | 0.136752 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148265 | 317 | 14 | 57 | 22.642857 | 0.866667 | 0.347003 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
1ca47a4968ffeca31ec462add05b792e1ab435c2 | 340 | py | Python | answer/a4_type.py | breeze-shared-inc/python_training_01 | 7e918b37adbce062ae279f060bc25cfacda2fb85 | [
"MIT"
] | null | null | null | answer/a4_type.py | breeze-shared-inc/python_training_01 | 7e918b37adbce062ae279f060bc25cfacda2fb85 | [
"MIT"
] | 1 | 2020-05-11T04:59:04.000Z | 2020-05-11T05:29:08.000Z | answer/a4_type.py | bzgwhite/python_training_01 | 7e918b37adbce062ae279f060bc25cfacda2fb85 | [
"MIT"
] | null | null | null | hensu_int = 17 #数字
hensu_float = 1.7 #小数点(浮動小数点)
hensu_str = "HelloWorld" #文字列
hensu_bool = True #真偽
hensu_list = [] #リスト
hensu_tuple = () #タプル
hensu_dict = {} #辞書(ディクト)型
print(type(hensu_int))
print(type(hensu_float))
print(type(hensu_str))
print(type(hensu_bool))
print(type(hensu_list))
print(type(hensu_tuple))
prin... | 21.25 | 29 | 0.732353 | 57 | 340 | 4.122807 | 0.438596 | 0.268085 | 0.417021 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013158 | 0.105882 | 340 | 15 | 30 | 22.666667 | 0.759868 | 0.094118 | 0 | 0 | 0 | 0 | 0.033223 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
1cac1152c0bc42f93be158e0a7b59715a3e05f13 | 198 | py | Python | records/urls.py | Glucemy/Glucemy-back | c9fcf7996b3f13c67697aadd449e3e32afb1fa1b | [
"MIT"
] | null | null | null | records/urls.py | Glucemy/Glucemy-back | c9fcf7996b3f13c67697aadd449e3e32afb1fa1b | [
"MIT"
] | null | null | null | records/urls.py | Glucemy/Glucemy-back | c9fcf7996b3f13c67697aadd449e3e32afb1fa1b | [
"MIT"
] | null | null | null | from rest_framework.routers import DefaultRouter
from records.views import RecordViewSet
router = DefaultRouter()
router.register('', RecordViewSet, basename='records')
urlpatterns = router.urls
| 22 | 54 | 0.813131 | 21 | 198 | 7.619048 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.10101 | 198 | 8 | 55 | 24.75 | 0.898876 | 0 | 0 | 0 | 0 | 0 | 0.035354 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
1cc629a630efb8f26ff269373c402c157da69af1 | 2,283 | py | Python | python3/sparkts/test/test_datetimeindex.py | hedibejaoui/spark-timeseries | 9112dcbbba4e095b5eb46c568e1c72e13e1f251a | [
"Apache-2.0"
] | null | null | null | python3/sparkts/test/test_datetimeindex.py | hedibejaoui/spark-timeseries | 9112dcbbba4e095b5eb46c568e1c72e13e1f251a | [
"Apache-2.0"
] | null | null | null | python3/sparkts/test/test_datetimeindex.py | hedibejaoui/spark-timeseries | 9112dcbbba4e095b5eb46c568e1c72e13e1f251a | [
"Apache-2.0"
] | 1 | 2021-09-05T15:05:53.000Z | 2021-09-05T15:05:53.000Z | from .test_utils import PySparkTestCase
from sparkts.datetimeindex import *
import pandas as pd
class DateTimeIndexTestCase(PySparkTestCase):
def test_frequencies(self):
bd = BusinessDayFrequency(1, 1, self.sc)
self.assertEqual(bd.days(), 1)
hf = HourFrequency(4, self.sc)
s... | 45.66 | 90 | 0.654402 | 315 | 2,283 | 4.612698 | 0.190476 | 0.206469 | 0.13214 | 0.176187 | 0.546456 | 0.524432 | 0.524432 | 0.524432 | 0.524432 | 0.472127 | 0 | 0.095624 | 0.189225 | 2,283 | 49 | 91 | 46.591837 | 0.689357 | 0 | 0 | 0.243902 | 0 | 0 | 0.085013 | 0 | 0 | 0 | 0 | 0 | 0.512195 | 1 | 0.073171 | false | 0 | 0.073171 | 0 | 0.170732 | 0 | 0 | 0 | 0 | null | 1 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1cd9be86a01ac85db863f60ec2922ba01db45a75 | 348 | py | Python | nose2_example/my_package/myapp.py | dolfandringa/PythonProjectStructureDemo | 8bdd72b94d3b830e9e9dce548cca1cdb16601d0d | [
"CC-BY-4.0"
] | 2 | 2017-02-03T00:15:27.000Z | 2017-02-03T02:26:25.000Z | nose2_example/my_package/myapp.py | dolfandringa/unittesting_example | 8bdd72b94d3b830e9e9dce548cca1cdb16601d0d | [
"CC-BY-4.0"
] | null | null | null | nose2_example/my_package/myapp.py | dolfandringa/unittesting_example | 8bdd72b94d3b830e9e9dce548cca1cdb16601d0d | [
"CC-BY-4.0"
] | null | null | null | from .operations import Multiply, Add, Substract
class MyApp(object):
def __init__(self):
self.operations={'multiply': Multiply,
'add': Add,
'substract': Substract}
def do(self, operation, number1, number2):
return self.operations[operation.low... | 29 | 70 | 0.594828 | 34 | 348 | 5.970588 | 0.529412 | 0.108374 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016194 | 0.29023 | 348 | 11 | 71 | 31.636364 | 0.805668 | 0 | 0 | 0 | 0 | 0 | 0.057637 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0.125 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
1cecb4c2f3b6f24c919644faa0e058b12f679c06 | 273 | py | Python | src/flocker/blueprints/red/__init__.py | Muxelmann/home-projects | 85bd06873174b9c5c6276160988c19b460370db8 | [
"MIT"
] | null | null | null | src/flocker/blueprints/red/__init__.py | Muxelmann/home-projects | 85bd06873174b9c5c6276160988c19b460370db8 | [
"MIT"
] | null | null | null | src/flocker/blueprints/red/__init__.py | Muxelmann/home-projects | 85bd06873174b9c5c6276160988c19b460370db8 | [
"MIT"
] | null | null | null | import os
from flask import Blueprint, render_template
def create_bp():
bp_red = Blueprint('red', __name__, url_prefix='/red')
@bp_red.route('/index/')
@bp_red.route('/')
def index():
return render_template('red/index.html')
return bp_red | 22.75 | 58 | 0.652015 | 37 | 273 | 4.486486 | 0.486486 | 0.120482 | 0.120482 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.205128 | 273 | 12 | 59 | 22.75 | 0.764977 | 0 | 0 | 0 | 0 | 0 | 0.105839 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 0.111111 | 0.666667 | 0.222222 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
1cf00fc10b36c1bb5b56b4af86d43c0bd17b8dff | 33,478 | py | Python | ironic/tests/unit/drivers/test_base.py | tzumainn/ironic | 91680bd450a4b2259d153b6a995a9436a5f82694 | [
"Apache-2.0"
] | null | null | null | ironic/tests/unit/drivers/test_base.py | tzumainn/ironic | 91680bd450a4b2259d153b6a995a9436a5f82694 | [
"Apache-2.0"
] | null | null | null | ironic/tests/unit/drivers/test_base.py | tzumainn/ironic | 91680bd450a4b2259d153b6a995a9436a5f82694 | [
"Apache-2.0"
] | null | null | null | # Copyright 2014 Cisco Systems, Inc.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requi... | 42.057789 | 79 | 0.642183 | 3,643 | 33,478 | 5.590722 | 0.08784 | 0.038494 | 0.035744 | 0.025875 | 0.79781 | 0.758629 | 0.716502 | 0.667059 | 0.617764 | 0.563166 | 0 | 0.011727 | 0.258767 | 33,478 | 795 | 80 | 42.110692 | 0.809027 | 0.041789 | 0 | 0.553542 | 0 | 0 | 0.075768 | 0.011172 | 0 | 0 | 0 | 0 | 0.266886 | 1 | 0.140033 | false | 0.059308 | 0.01318 | 0.011532 | 0.202636 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 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 | 3 |
1cf1add35a6f5a301f98fac454ddd82a0c4fd197 | 1,435 | py | Python | deep-rl/lib/python2.7/site-packages/OpenGL/GL/ARB/transform_feedback_instanced.py | ShujaKhalid/deep-rl | 99c6ba6c3095d1bfdab81bd01395ced96bddd611 | [
"MIT"
] | 210 | 2016-04-09T14:26:00.000Z | 2022-03-25T18:36:19.000Z | deep-rl/lib/python2.7/site-packages/OpenGL/GL/ARB/transform_feedback_instanced.py | ShujaKhalid/deep-rl | 99c6ba6c3095d1bfdab81bd01395ced96bddd611 | [
"MIT"
] | 72 | 2016-09-04T09:30:19.000Z | 2022-03-27T17:06:53.000Z | deep-rl/lib/python2.7/site-packages/OpenGL/GL/ARB/transform_feedback_instanced.py | ShujaKhalid/deep-rl | 99c6ba6c3095d1bfdab81bd01395ced96bddd611 | [
"MIT"
] | 64 | 2016-04-09T14:26:49.000Z | 2022-03-21T11:19:47.000Z | '''OpenGL extension ARB.transform_feedback_instanced
This module customises the behaviour of the
OpenGL.raw.GL.ARB.transform_feedback_instanced to provide a more
Python-friendly API
Overview (from the spec)
Multiple instances of geometry may be specified to the GL by calling
functions such as DrawArraysInstance... | 39.861111 | 75 | 0.822997 | 193 | 1,435 | 6.036269 | 0.487047 | 0.116738 | 0.085837 | 0.124464 | 0.240343 | 0.120172 | 0.120172 | 0.085837 | 0.085837 | 0 | 0 | 0 | 0.133798 | 1,435 | 36 | 76 | 39.861111 | 0.937249 | 0.751916 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | true | 0 | 0.777778 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
1cf437df5479619203c624b6e001a3eebc26d12e | 127 | py | Python | src/__init__.py | songchenwen/icloud-drive-docker | 7188dfbcc34e29ddbeeb1324c62ea77bed8f0576 | [
"BSD-3-Clause"
] | null | null | null | src/__init__.py | songchenwen/icloud-drive-docker | 7188dfbcc34e29ddbeeb1324c62ea77bed8f0576 | [
"BSD-3-Clause"
] | null | null | null | src/__init__.py | songchenwen/icloud-drive-docker | 7188dfbcc34e29ddbeeb1324c62ea77bed8f0576 | [
"BSD-3-Clause"
] | null | null | null | __author__ = 'Mandar Patil (mandarons@pm.me)'
import warnings
warnings.filterwarnings('ignore', category=DeprecationWarning)
| 21.166667 | 62 | 0.80315 | 13 | 127 | 7.538462 | 0.923077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.086614 | 127 | 5 | 63 | 25.4 | 0.844828 | 0 | 0 | 0 | 0 | 0 | 0.283465 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
1cf448521f5700d299fc77dc569a86bf7945ac8b | 189 | py | Python | test_basico.py | rafael-torraca/delivery | 298db3c5d74938dc34687e7b65ee72a847e4deeb | [
"MIT"
] | null | null | null | test_basico.py | rafael-torraca/delivery | 298db3c5d74938dc34687e7b65ee72a847e4deeb | [
"MIT"
] | null | null | null | test_basico.py | rafael-torraca/delivery | 298db3c5d74938dc34687e7b65ee72a847e4deeb | [
"MIT"
] | null | null | null |
def test_one_plus_one_is_two():
assert 1 + 1 == 2 #o assert espera que algo seja verdadeiro, se for falso o teste quebrou
def test_negative_1_plus_1_is_3():
assert 1 + 1 == 3
| 17.181818 | 93 | 0.698413 | 36 | 189 | 3.361111 | 0.611111 | 0.115702 | 0.132231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.061644 | 0.227513 | 189 | 10 | 94 | 18.9 | 0.767123 | 0.37037 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0.5 | true | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e81d0332787bf5b5558e04aef3e4c8b78112e963 | 200 | py | Python | services/osparc-gateway-server/tests/integration/_dask_helpers.py | mguidon/osparc-dask-gateway | accd850c15cb3a36cf4421a1d070a4db29843013 | [
"MIT"
] | 1 | 2022-01-25T09:18:59.000Z | 2022-01-25T09:18:59.000Z | services/osparc-gateway-server/tests/integration/_dask_helpers.py | ITISFoundation/osparc-dask-gateway | 13d533de582382fcca3c379df30534ca0e6e145f | [
"MIT"
] | 16 | 2021-12-06T16:16:17.000Z | 2022-03-21T13:26:48.000Z | services/osparc-gateway-server/tests/integration/_dask_helpers.py | sanderegg/osparc-dask-gateway | 13d533de582382fcca3c379df30534ca0e6e145f | [
"MIT"
] | 2 | 2021-11-26T15:56:00.000Z | 2021-12-07T21:27:41.000Z | from typing import NamedTuple
from dask_gateway_server.app import DaskGateway
class DaskGatewayServer(NamedTuple):
address: str
proxy_address: str
password: str
server: DaskGateway
| 18.181818 | 47 | 0.775 | 23 | 200 | 6.608696 | 0.652174 | 0.131579 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.185 | 200 | 10 | 48 | 20 | 0.932515 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.142857 | 0.285714 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 0 | 0 | 0 | 3 |
e820d40fdfc773bb5cbef40f764f0c231d8e4804 | 107 | py | Python | VacationPy/api_keys.py | tylermneher/python-api-challenge | 28c88b4fff13c8b752096b0776a3d4645ad5fddb | [
"ADSL"
] | null | null | null | VacationPy/api_keys.py | tylermneher/python-api-challenge | 28c88b4fff13c8b752096b0776a3d4645ad5fddb | [
"ADSL"
] | null | null | null | VacationPy/api_keys.py | tylermneher/python-api-challenge | 28c88b4fff13c8b752096b0776a3d4645ad5fddb | [
"ADSL"
] | null | null | null | # OpenWeatherMap API Key
weather_api_key = "MyOpenWeatherMapAPIKey"
# Google API Key
g_key = "MyGoogleKey" | 21.4 | 42 | 0.794393 | 13 | 107 | 6.307692 | 0.615385 | 0.219512 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130841 | 107 | 5 | 43 | 21.4 | 0.88172 | 0.345794 | 0 | 0 | 0 | 0 | 0.485294 | 0.323529 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1c16c296d9a00d573be4e9e818881918f7bcc86c | 73 | py | Python | holobot/discord/sdk/models/channel.py | rexor12/holobot | 89b7b416403d13ccfeee117ef942426b08d3651d | [
"MIT"
] | 1 | 2021-05-24T00:17:46.000Z | 2021-05-24T00:17:46.000Z | holobot/discord/sdk/models/channel.py | rexor12/holobot | 89b7b416403d13ccfeee117ef942426b08d3651d | [
"MIT"
] | 41 | 2021-03-24T22:50:09.000Z | 2021-12-17T12:15:13.000Z | holobot/discord/sdk/models/channel.py | rexor12/holobot | 89b7b416403d13ccfeee117ef942426b08d3651d | [
"MIT"
] | null | null | null | from dataclasses import dataclass
@dataclass
class Channel:
id: str
| 12.166667 | 33 | 0.767123 | 9 | 73 | 6.222222 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.191781 | 73 | 5 | 34 | 14.6 | 0.949153 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.25 | 0 | 0.75 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1c234ce8283c844cd60cb5760e7b8e156d4ade05 | 310 | py | Python | tests/helpers/examples/order/tasks.py | nicoddemus/dependencies | 74180e2c6098d8ad03bc53c5703bdf8dc61c3ed9 | [
"BSD-2-Clause"
] | null | null | null | tests/helpers/examples/order/tasks.py | nicoddemus/dependencies | 74180e2c6098d8ad03bc53c5703bdf8dc61c3ed9 | [
"BSD-2-Clause"
] | null | null | null | tests/helpers/examples/order/tasks.py | nicoddemus/dependencies | 74180e2c6098d8ad03bc53c5703bdf8dc61c3ed9 | [
"BSD-2-Clause"
] | null | null | null | from dependencies import Injector
from dependencies import this
from dependencies.contrib.celery import shared_task
from examples.order.commands import ProcessOrder
@shared_task
class ProcessOrderTask(Injector):
name = "process_order"
run = ProcessOrder
bind = True
retry = this.task.retry
| 20.666667 | 51 | 0.783871 | 37 | 310 | 6.486486 | 0.567568 | 0.2 | 0.183333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.164516 | 310 | 14 | 52 | 22.142857 | 0.926641 | 0 | 0 | 0 | 0 | 0 | 0.041935 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.9 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
1c23b751e4593238c12f386d607b9cb57efba768 | 115 | py | Python | 001 - 050/ex032.py | SocrammBR/Desafios-Python-CursoEmVideo | bd2454a24134500343ece91b936c169d3a66f89e | [
"MIT"
] | null | null | null | 001 - 050/ex032.py | SocrammBR/Desafios-Python-CursoEmVideo | bd2454a24134500343ece91b936c169d3a66f89e | [
"MIT"
] | null | null | null | 001 - 050/ex032.py | SocrammBR/Desafios-Python-CursoEmVideo | bd2454a24134500343ece91b936c169d3a66f89e | [
"MIT"
] | null | null | null | ano = int(input('Digite o ano: '))
if (ano%4) == 0:
print ('Ele é bissexto')
else:
print ('Ele não é bissexto') | 23 | 34 | 0.6 | 20 | 115 | 3.45 | 0.7 | 0.231884 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021739 | 0.2 | 115 | 5 | 35 | 23 | 0.728261 | 0 | 0 | 0 | 0 | 0 | 0.396552 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.4 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1c29cd725d84cf362de4c0b82dab4a78ea1506c5 | 128 | py | Python | bench/fibrec.py | codr7/alisp | 05ac47ab2c28683373af4ec80e5a94937390fa6c | [
"MIT"
] | 8 | 2021-09-04T10:18:49.000Z | 2022-01-10T01:05:13.000Z | bench/fibrec.py | codr7/alisp | 05ac47ab2c28683373af4ec80e5a94937390fa6c | [
"MIT"
] | null | null | null | bench/fibrec.py | codr7/alisp | 05ac47ab2c28683373af4ec80e5a94937390fa6c | [
"MIT"
] | 2 | 2021-10-05T11:00:14.000Z | 2021-10-11T05:54:59.000Z | from bench import bench
print(bench(100, '''
def fib(n):
return n if n < 2 else fib(n-1) + fib(n-2)
''', '''
fib(20)
'''))
| 14.222222 | 44 | 0.546875 | 24 | 128 | 2.916667 | 0.583333 | 0.171429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.079208 | 0.210938 | 128 | 8 | 45 | 16 | 0.613861 | 0 | 0 | 0 | 0 | 0 | 0.539063 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.142857 | 0 | 0.285714 | 0.142857 | 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 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1c2ee79c50e5332807a24a1c5c70089c0090c76c | 91 | py | Python | loadCSVdata.py | christostsekouronas/academyposttestanalysis | 913a0c13ad0482927a323b2fb3a97a8e2ca26517 | [
"MIT"
] | null | null | null | loadCSVdata.py | christostsekouronas/academyposttestanalysis | 913a0c13ad0482927a323b2fb3a97a8e2ca26517 | [
"MIT"
] | null | null | null | loadCSVdata.py | christostsekouronas/academyposttestanalysis | 913a0c13ad0482927a323b2fb3a97a8e2ca26517 | [
"MIT"
] | null | null | null | import pandas as pd
def loadTest(filepath):
df = pd.read_csv(filepath)
return df | 13 | 30 | 0.692308 | 14 | 91 | 4.428571 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.230769 | 91 | 7 | 31 | 13 | 0.885714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1c48374373ae16db6dbcfd16316661e717dab9fc | 5,230 | py | Python | tests/input/pdf/test_pdf.py | asweeney86/preview-generator | 354cbac1c131ebbb81cd9cfd9b4bc0c184d10103 | [
"MIT"
] | null | null | null | tests/input/pdf/test_pdf.py | asweeney86/preview-generator | 354cbac1c131ebbb81cd9cfd9b4bc0c184d10103 | [
"MIT"
] | null | null | null | tests/input/pdf/test_pdf.py | asweeney86/preview-generator | 354cbac1c131ebbb81cd9cfd9b4bc0c184d10103 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import os
import re
import shutil
import typing
from PIL import Image
from PyPDF2 import PdfFileReader
import PyPDF2.utils
import pytest
from preview_generator.exception import UnavailablePreviewType
from preview_generator.manager import PreviewManager
from tests import test_utils
CURRENT_DI... | 39.621212 | 100 | 0.759656 | 829 | 5,230 | 4.447527 | 0.130277 | 0.10632 | 0.071603 | 0.081367 | 0.781123 | 0.763222 | 0.757798 | 0.699213 | 0.688636 | 0.686737 | 0 | 0.022978 | 0.151243 | 5,230 | 131 | 101 | 39.923664 | 0.807614 | 0.046463 | 0 | 0.428571 | 0 | 0 | 0.017068 | 0.011044 | 0 | 0 | 0 | 0.007634 | 0.367347 | 1 | 0.102041 | false | 0 | 0.112245 | 0 | 0.214286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 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 | 3 |
1c5536cbf34d028ddd3a2b10367f5360508e1251 | 1,666 | py | Python | bopt/transforms.py | georgedeath/bomean | 0dad35e0d584cf7c46c9a8cb0445f225875cfa86 | [
"MIT"
] | 2 | 2020-05-19T15:48:37.000Z | 2021-08-16T10:41:49.000Z | bopt/transforms.py | georgedeath/bomean | 0dad35e0d584cf7c46c9a8cb0445f225875cfa86 | [
"MIT"
] | null | null | null | bopt/transforms.py | georgedeath/bomean | 0dad35e0d584cf7c46c9a8cb0445f225875cfa86 | [
"MIT"
] | null | null | null | import torch
from scipy.stats import median_absolute_deviation
class Transform_Base(object):
"""
Base class for transformations based on some data.
"""
def __init__(self, Ytr):
self.Ytr = Ytr
# Transform the mean
def scale_mean(self, mu):
return mu
# Reve... | 25.630769 | 76 | 0.617047 | 213 | 1,666 | 4.558685 | 0.215962 | 0.15139 | 0.061792 | 0.098867 | 0.481977 | 0.427394 | 0.427394 | 0.378991 | 0.378991 | 0.096807 | 0 | 0.000845 | 0.289916 | 1,666 | 64 | 77 | 26.03125 | 0.819949 | 0.136255 | 0 | 0.444444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.055556 | 0.25 | 0.722222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
1c7de0aa67e4761191bbc1f1c380a31439d54c36 | 258 | py | Python | CodeHS/Looping/DoubleForLoop.py | Kev-in123/ICS2O7 | 425c59975d4ce6aa0937fd8715b51d04487e4fa9 | [
"MIT"
] | 2 | 2021-08-10T18:16:08.000Z | 2021-09-26T19:49:26.000Z | CodeHS/Looping/DoubleForLoop.py | Kev-in123/ICS2O7 | 425c59975d4ce6aa0937fd8715b51d04487e4fa9 | [
"MIT"
] | null | null | null | CodeHS/Looping/DoubleForLoop.py | Kev-in123/ICS2O7 | 425c59975d4ce6aa0937fd8715b51d04487e4fa9 | [
"MIT"
] | null | null | null | """
This program visualizes nested for loops by printing number 0 through 3
and then 0 through 3 for the nested loop.
"""
for i in range(4):
print("Outer for loop: " + str(i))
for j in range(4):
print(" Inner for loop: " + str(j)) | 28.666667 | 72 | 0.612403 | 43 | 258 | 3.674419 | 0.581395 | 0.101266 | 0.113924 | 0.164557 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032086 | 0.275194 | 258 | 9 | 73 | 28.666667 | 0.812834 | 0.437985 | 0 | 0 | 0 | 0 | 0.276923 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | null | 0 | 0 | 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 | 0 | 0 | 0 | 1 | 0 | 3 |
98c098366590ca27e9adc66a721c84a992752bc9 | 109 | py | Python | blog/be/server/serialization/__init__.py | kamko/lnu_ht19_4ME310_final_project | ccb5d3c659cde0dac49c1bd6c3d46c46e73a111e | [
"MIT"
] | null | null | null | blog/be/server/serialization/__init__.py | kamko/lnu_ht19_4ME310_final_project | ccb5d3c659cde0dac49c1bd6c3d46c46e73a111e | [
"MIT"
] | 2 | 2020-06-07T19:02:54.000Z | 2020-06-07T19:03:02.000Z | blog/be/server/serialization/__init__.py | kamko/lnu_ht19_4ME310_final_project | ccb5d3c659cde0dac49c1bd6c3d46c46e73a111e | [
"MIT"
] | null | null | null | from .marshmallow import ma
from .schemas import ArticleSchema
__all__ = [
'ma',
'ArticleSchema'
]
| 12.111111 | 34 | 0.688073 | 11 | 109 | 6.454545 | 0.636364 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.220183 | 109 | 8 | 35 | 13.625 | 0.835294 | 0 | 0 | 0 | 0 | 0 | 0.137615 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
98c73bdbed560b9a7619895e79b9cc268edc26d3 | 10,352 | py | Python | analyze-ir-signal.py | hnw/analyze-ir-signal | f810c0ced955ec70c5e4c0d3556efa0a6d0d3138 | [
"MIT"
] | null | null | null | analyze-ir-signal.py | hnw/analyze-ir-signal | f810c0ced955ec70c5e4c0d3556efa0a6d0d3138 | [
"MIT"
] | null | null | null | analyze-ir-signal.py | hnw/analyze-ir-signal | f810c0ced955ec70c5e4c0d3556efa0a6d0d3138 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import numpy as np
from sklearn.neighbors import KernelDensity
# Relative tolerance (in percent) for some comparisons on measured data.
TOLERANCE = 25
# Lower tolerance for comparison of measured data
LTOL = 100 - TOLERANCE
# Upper tolerance for comparison of measured data
UTOL = 100 + TOLERANCE... | 57.511111 | 1,100 | 0.681897 | 2,011 | 10,352 | 3.458478 | 0.188463 | 0.01294 | 0.005176 | 0.006039 | 0.142487 | 0.110712 | 0.076204 | 0.076204 | 0.076204 | 0.067865 | 0 | 0.478812 | 0.138331 | 10,352 | 179 | 1,101 | 57.832402 | 0.300897 | 0.084042 | 0 | 0.266667 | 0 | 0 | 0.038506 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058333 | false | 0.041667 | 0.016667 | 0.016667 | 0.208333 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
98cd74ddbd3fcee3b46641490c05dc6a010713cd | 2,472 | py | Python | src/messages/text/ruling.py | rkulyn/telegram-dutch-taxbot | f6c2222e5f2b9f96d8e035e9d6f64c67da3a73e1 | [
"MIT"
] | 2 | 2020-02-27T13:15:07.000Z | 2020-09-19T15:19:29.000Z | src/messages/text/ruling.py | rkulyn/telegram-dutch-taxbot | f6c2222e5f2b9f96d8e035e9d6f64c67da3a73e1 | [
"MIT"
] | null | null | null | src/messages/text/ruling.py | rkulyn/telegram-dutch-taxbot | f6c2222e5f2b9f96d8e035e9d6f64c67da3a73e1 | [
"MIT"
] | null | null | null | import telegram
from emoji import emojize
from .base import TextMessageBase
class RulingHelpTextMessage(TextMessageBase):
"""
Ruling help message.
Taken from:
https://www.iamexpat.nl/expat-info/taxation/30-percent-ruling/requirements
"""
def get_text(self):
message = emojize(
... | 44.142857 | 121 | 0.607605 | 323 | 2,472 | 4.529412 | 0.278638 | 0.028708 | 0.109364 | 0.185919 | 0.682843 | 0.682843 | 0.682843 | 0.682843 | 0.682843 | 0.682843 | 0 | 0.038293 | 0.260518 | 2,472 | 55 | 122 | 44.945455 | 0.762035 | 0.064725 | 0 | 0.210526 | 0 | 0 | 0.63592 | 0.010643 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.078947 | 0 | 0.210526 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 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 | 3 |
98efe77eec76324cc9234c09e5f48bc8417b9d98 | 1,198 | py | Python | morepath/__init__.py | hugovk/morepath | 5596f9ce43ee4e5cd73eaa2ab9ef37825f88ae28 | [
"BSD-3-Clause"
] | 314 | 2015-01-01T01:42:52.000Z | 2022-01-07T21:46:15.000Z | morepath/__init__.py | hugovk/morepath | 5596f9ce43ee4e5cd73eaa2ab9ef37825f88ae28 | [
"BSD-3-Clause"
] | 369 | 2015-01-02T19:10:40.000Z | 2021-07-03T04:37:27.000Z | morepath/__init__.py | hugovk/morepath | 5596f9ce43ee4e5cd73eaa2ab9ef37825f88ae28 | [
"BSD-3-Clause"
] | 37 | 2015-01-11T09:22:02.000Z | 2021-07-02T20:48:20.000Z | # flake8: noqa
"""This is the main public API of Morepath.
Additional public APIs can be imported from the :mod:`morepath.error`
and :mod:`morepath.pdbsupport` modules. For custom directive
implementations that interact with core directives for grouping or
subclassing purposes, or that need to use one of the Morepath
... | 37.4375 | 76 | 0.810518 | 172 | 1,198 | 5.523256 | 0.569767 | 0.034737 | 0.025263 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000975 | 0.143573 | 1,198 | 31 | 77 | 38.645161 | 0.924951 | 0.479132 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.647059 | 0 | 0.647059 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
98f2204e0eeff6cafe4a1031fc879a4bec0db151 | 37 | py | Python | src/AuShadha/demographics/email_and_fax/dijit_fields_constants.py | GosthMan/AuShadha | 3ab48825a0dba19bf880b6ac6141ab7a6adf1f3e | [
"PostgreSQL"
] | 46 | 2015-03-04T14:19:47.000Z | 2021-12-09T02:58:46.000Z | src/AuShadha/demographics/email_and_fax/dijit_fields_constants.py | aytida23/AuShadha | 3ab48825a0dba19bf880b6ac6141ab7a6adf1f3e | [
"PostgreSQL"
] | 2 | 2015-06-05T10:29:04.000Z | 2015-12-06T16:54:10.000Z | src/AuShadha/demographics/email_and_fax/dijit_fields_constants.py | aytida23/AuShadha | 3ab48825a0dba19bf880b6ac6141ab7a6adf1f3e | [
"PostgreSQL"
] | 24 | 2015-03-23T01:38:11.000Z | 2022-01-24T16:23:42.000Z | EMAIL_AND_FAX_FORM_CONSTANTS = {
} | 12.333333 | 32 | 0.756757 | 5 | 37 | 4.8 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.162162 | 37 | 3 | 33 | 12.333333 | 0.774194 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
98ffa0f6e3c8edf444c1fa0391cb1792a90df5ec | 1,368 | py | Python | mfc/mfc.py | FuelCellUAV/FC_datalogger | 1b4b4fecb6a842f3ba685115db01a50cca7596c7 | [
"CC0-1.0"
] | null | null | null | mfc/mfc.py | FuelCellUAV/FC_datalogger | 1b4b4fecb6a842f3ba685115db01a50cca7596c7 | [
"CC0-1.0"
] | null | null | null | mfc/mfc.py | FuelCellUAV/FC_datalogger | 1b4b4fecb6a842f3ba685115db01a50cca7596c7 | [
"CC0-1.0"
] | null | null | null | ##!/usr/bin/env python3
# Mass Flow Controller Arduino driver
# Copyright (C) 2015 Simon Howroyd, Jason James
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 o... | 32.571429 | 101 | 0.638889 | 194 | 1,368 | 4.494845 | 0.613402 | 0.034404 | 0.044725 | 0.065367 | 0.094037 | 0.06422 | 0 | 0 | 0 | 0 | 0 | 0.032319 | 0.230994 | 1,368 | 41 | 102 | 33.365854 | 0.796578 | 0.671053 | 0 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02439 | 0 | 1 | 0.25 | false | 0 | 0.083333 | 0.083333 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
c709a775fc2c2a745cb1ed61a6cbd8778daaee06 | 609 | py | Python | datadog_checks_dev/datadog_checks/dev/tooling/commands/env/__init__.py | vbarbaresi/integrations-core | ab26ab1cd6c28a97c1ad1177093a93659658c7aa | [
"BSD-3-Clause"
] | 1 | 2021-01-28T01:45:37.000Z | 2021-01-28T01:45:37.000Z | datadog_checks_dev/datadog_checks/dev/tooling/commands/env/__init__.py | vbarbaresi/integrations-core | ab26ab1cd6c28a97c1ad1177093a93659658c7aa | [
"BSD-3-Clause"
] | 3 | 2021-01-27T04:56:40.000Z | 2021-02-26T06:29:22.000Z | datadog_checks_dev/datadog_checks/dev/tooling/commands/env/__init__.py | vbarbaresi/integrations-core | ab26ab1cd6c28a97c1ad1177093a93659658c7aa | [
"BSD-3-Clause"
] | 1 | 2021-04-07T16:58:27.000Z | 2021-04-07T16:58:27.000Z | # (C) Datadog, Inc. 2018-present
# All rights reserved
# Licensed under a 3-clause BSD style license (see LICENSE)
import click
from ..console import CONTEXT_SETTINGS
from .check import check_run
from .ls import ls
from .prune import prune
from .reload import reload_env
from .shell import shell
from .start import star... | 23.423077 | 81 | 0.771757 | 93 | 609 | 4.935484 | 0.483871 | 0.098039 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009671 | 0.151067 | 609 | 25 | 82 | 24.36 | 0.878143 | 0.17734 | 0 | 0 | 0 | 0 | 0.038229 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0.0625 | 0.625 | 0 | 0.6875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
c716271a9b4b9b525bfcb14f8c07170e7179b37f | 134 | py | Python | tests/encode.py | EddieBreeg/C_b64 | d49b155d1ae889c2ab779f54e6215f9d5e1031e6 | [
"MIT"
] | null | null | null | tests/encode.py | EddieBreeg/C_b64 | d49b155d1ae889c2ab779f54e6215f9d5e1031e6 | [
"MIT"
] | null | null | null | tests/encode.py | EddieBreeg/C_b64 | d49b155d1ae889c2ab779f54e6215f9d5e1031e6 | [
"MIT"
] | null | null | null | from sys import argv
from base64 import b64encode
with open("data", 'rb') as fIn:
b = fIn.read()
print(b64encode(b).decode()) | 22.333333 | 32 | 0.671642 | 21 | 134 | 4.285714 | 0.761905 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.055046 | 0.186567 | 134 | 6 | 32 | 22.333333 | 0.770642 | 0 | 0 | 0 | 0 | 0 | 0.044444 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0.2 | 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 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
c72294488588ee770a6039927fb6209367d51df5 | 225 | py | Python | mat2py/core/datastoreio.py | mat2py/mat2py | 2776fbe9ca4ad2aaa3eac6aa79d17747a9ec24a8 | [
"MIT"
] | null | null | null | mat2py/core/datastoreio.py | mat2py/mat2py | 2776fbe9ca4ad2aaa3eac6aa79d17747a9ec24a8 | [
"MIT"
] | 37 | 2021-12-23T03:22:20.000Z | 2022-02-16T15:40:47.000Z | mat2py/core/datastoreio.py | mat2py/mat2py | 2776fbe9ca4ad2aaa3eac6aa79d17747a9ec24a8 | [
"MIT"
] | 2 | 2022-01-23T07:59:10.000Z | 2022-02-03T09:15:54.000Z | # type: ignore
__all__ = [
"readDatastoreImage",
"datastore",
]
def readDatastoreImage(*args):
raise NotImplementedError("readDatastoreImage")
def datastore(*args):
raise NotImplementedError("datastore")
| 15 | 51 | 0.711111 | 17 | 225 | 9.176471 | 0.529412 | 0.115385 | 0.358974 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.168889 | 225 | 14 | 52 | 16.071429 | 0.834225 | 0.053333 | 0 | 0 | 0 | 0 | 0.255924 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c74852ff0006431dcf627c07119eece06aae36cb | 160 | py | Python | ResumeAnalyser/apps.py | samyakj2307/recruitai_resume_backend | 52f8eda63d479b28fc19fe2d7149ab9ee9be122f | [
"MIT"
] | null | null | null | ResumeAnalyser/apps.py | samyakj2307/recruitai_resume_backend | 52f8eda63d479b28fc19fe2d7149ab9ee9be122f | [
"MIT"
] | null | null | null | ResumeAnalyser/apps.py | samyakj2307/recruitai_resume_backend | 52f8eda63d479b28fc19fe2d7149ab9ee9be122f | [
"MIT"
] | 1 | 2021-06-03T13:56:53.000Z | 2021-06-03T13:56:53.000Z | from django.apps import AppConfig
class ResumeanalyserConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'ResumeAnalyser'
| 22.857143 | 56 | 0.78125 | 17 | 160 | 7.235294 | 0.882353 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1375 | 160 | 6 | 57 | 26.666667 | 0.891304 | 0 | 0 | 0 | 0 | 0 | 0.26875 | 0.18125 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
c765b8fb3017f33809adece1e8c0d5771ccc24b7 | 356 | py | Python | emrichen/input/__init__.py | jbek7/emrichen | b6b8327e35cb2b9f3da49519110ecc766a9ad741 | [
"MIT"
] | null | null | null | emrichen/input/__init__.py | jbek7/emrichen | b6b8327e35cb2b9f3da49519110ecc766a9ad741 | [
"MIT"
] | null | null | null | emrichen/input/__init__.py | jbek7/emrichen | b6b8327e35cb2b9f3da49519110ecc766a9ad741 | [
"MIT"
] | null | null | null | from typing import TextIO, Union
from .json import load_json
from .yaml import load_yaml
PARSERS = {
'yaml': load_yaml,
'json': load_json,
}
def parse(data: Union[TextIO, str], format: str):
if format in PARSERS:
return PARSERS[format](data)
else:
raise ValueError('No parser for form... | 20.941176 | 79 | 0.676966 | 49 | 356 | 4.836735 | 0.469388 | 0.202532 | 0.227848 | 0.202532 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.213483 | 356 | 16 | 80 | 22.25 | 0.846429 | 0 | 0 | 0 | 0 | 0 | 0.103933 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.25 | 0 | 0.416667 | 0 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c768daaabaf9920391bc3d2ee09b1a53e4d2788c | 24 | py | Python | testtools/__init__.py | afy2103/spambayes-9-10-Frozen | 383db71e3b7b2141975cf66e6d223bb437511776 | [
"PSF-2.0"
] | null | null | null | testtools/__init__.py | afy2103/spambayes-9-10-Frozen | 383db71e3b7b2141975cf66e6d223bb437511776 | [
"PSF-2.0"
] | null | null | null | testtools/__init__.py | afy2103/spambayes-9-10-Frozen | 383db71e3b7b2141975cf66e6d223bb437511776 | [
"PSF-2.0"
] | null | null | null | __author__ = 'AlexYang'
| 12 | 23 | 0.75 | 2 | 24 | 7 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 24 | 1 | 24 | 24 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c7723eb15222900f00b69a2e3a6fb1a9708b8d3e | 871 | py | Python | data/download.py | pyaf/google-ai-open-images-object-detection-track | 3dd19aeeca5eea07de341ade59d1513fda4597ee | [
"MIT"
] | null | null | null | data/download.py | pyaf/google-ai-open-images-object-detection-track | 3dd19aeeca5eea07de341ade59d1513fda4597ee | [
"MIT"
] | null | null | null | data/download.py | pyaf/google-ai-open-images-object-detection-track | 3dd19aeeca5eea07de341ade59d1513fda4597ee | [
"MIT"
] | null | null | null | import os
from subprocess import call
files = ['000002b66c9c498e.jpg', '000002b97e5471a0.jpg', '000002c707c9895e.jpg', '0000048549557964.jpg', '000004f4400f6ec5.jpg', '0000071d71a0a6f6.jpg', '000013ba71c12506.jpg', '000018acd19b4ad3.jpg', '00001bc2c4027449.jpg', '00001bcc92282a38.jpg', '0000201cd362f303.jpg', '0000207... | 67 | 560 | 0.712974 | 87 | 871 | 7.137931 | 0.597701 | 0.028986 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.357143 | 0.115959 | 871 | 12 | 561 | 72.583333 | 0.449351 | 0 | 0 | 0 | 0 | 0 | 0.626866 | 0.037887 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c787795efbca79aae84c0943ac98820495ba5ee9 | 4,057 | py | Python | imagetagger/imagetagger/settings_base.py | jbargu/imagetagger | 216ac5e73902abadc1880321e285e68c55bdfd3d | [
"MIT"
] | 1 | 2019-12-26T09:14:59.000Z | 2019-12-26T09:14:59.000Z | imagetagger/imagetagger/settings_base.py | jbargu/imagetagger | 216ac5e73902abadc1880321e285e68c55bdfd3d | [
"MIT"
] | 4 | 2021-03-19T15:46:34.000Z | 2022-01-13T03:33:04.000Z | imagetagger/imagetagger/settings_base.py | jbargu/imagetagger | 216ac5e73902abadc1880321e285e68c55bdfd3d | [
"MIT"
] | 2 | 2020-09-03T09:22:18.000Z | 2020-09-09T15:13:35.000Z | """
Django settings for imagetagger project.
Generated by 'django-admin startproject' using Django 1.10.3.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.10/ref/settings/
"""
impor... | 26.51634 | 99 | 0.709884 | 443 | 4,057 | 6.379233 | 0.424379 | 0.078202 | 0.042109 | 0.044232 | 0.154636 | 0.137297 | 0.067233 | 0.056617 | 0.029016 | 0 | 0 | 0.008272 | 0.16564 | 4,057 | 152 | 100 | 26.690789 | 0.826588 | 0.233424 | 0 | 0 | 1 | 0 | 0.53465 | 0.414508 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.052083 | 0.020833 | 0 | 0.020833 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
c7a0f4dd6f424ce5b114a5129ff1abc4021aa810 | 1,195 | py | Python | setup.py | Pasha13666/dialog_py | c54a0e06dc0a5f86d9791b8cbd6fcfacb5b644ff | [
"MIT"
] | 1 | 2021-02-17T07:38:01.000Z | 2021-02-17T07:38:01.000Z | setup.py | Pasha13666/dialog_py | c54a0e06dc0a5f86d9791b8cbd6fcfacb5b644ff | [
"MIT"
] | null | null | null | setup.py | Pasha13666/dialog_py | c54a0e06dc0a5f86d9791b8cbd6fcfacb5b644ff | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import os
from setuptools import setup
with open(os.path.join(os.path.dirname(__file__), 'README.rst'), encoding='utf-8') as f:
long_description = f.read()
setup(
name='dialog_py',
version='1.0a1',
description='Python API for cdialog/linux dialog',
long_description=long_de... | 31.447368 | 88 | 0.620921 | 130 | 1,195 | 5.584615 | 0.592308 | 0.209366 | 0.275482 | 0.214876 | 0.07438 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027203 | 0.230962 | 1,195 | 37 | 89 | 32.297297 | 0.762786 | 0.017573 | 0 | 0 | 0 | 0 | 0.518329 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 0.0625 | 0 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c7a18f6b2dc263a28bbb7cb8d8990ce3618a2615 | 8,334 | py | Python | test/test_who.py | rliebz/whoswho | 0c411e418c240fcec6ea0a23d15bd003056c65d0 | [
"MIT"
] | 28 | 2018-02-14T23:14:59.000Z | 2021-07-08T07:24:54.000Z | test/test_who.py | rliebz/whoswho | 0c411e418c240fcec6ea0a23d15bd003056c65d0 | [
"MIT"
] | 1 | 2019-01-21T15:25:49.000Z | 2019-01-23T19:03:06.000Z | test/test_who.py | rliebz/whoswho | 0c411e418c240fcec6ea0a23d15bd003056c65d0 | [
"MIT"
] | 2 | 2018-09-27T05:46:46.000Z | 2020-07-16T05:19:02.000Z | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import unittest
import nose
from nose.tools import *
from whoswho import who, config
from nameparser.config.titles import TITLES as NAMEPARSER_TITLES
class TestMatch(unittest.TestCase):
def setUp(self):
self.name = 'Robert Evan Liebowitz... | 40.852941 | 83 | 0.636069 | 1,067 | 8,334 | 4.821931 | 0.111528 | 0.080855 | 0.096016 | 0.071526 | 0.829738 | 0.761905 | 0.670943 | 0.545773 | 0.351798 | 0.298737 | 0 | 0.015075 | 0.235901 | 8,334 | 203 | 84 | 41.054187 | 0.792871 | 0.039957 | 0 | 0.279221 | 0 | 0 | 0.227101 | 0 | 0 | 0 | 0 | 0.004926 | 0.532468 | 1 | 0.155844 | false | 0 | 0.045455 | 0 | 0.220779 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c7a4ae3d4e412782ea4851134b89f174c5ee6fd3 | 224 | py | Python | public_html/python/Empty_Python_Page.py | Asher-Simcha/help | 23c52c136a885d76aa0e2e024cbf1587091f41a7 | [
"BSD-3-Clause"
] | null | null | null | public_html/python/Empty_Python_Page.py | Asher-Simcha/help | 23c52c136a885d76aa0e2e024cbf1587091f41a7 | [
"BSD-3-Clause"
] | null | null | null | public_html/python/Empty_Python_Page.py | Asher-Simcha/help | 23c52c136a885d76aa0e2e024cbf1587091f41a7 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/pyton
# Title:
# Author:
# Additional Authors:
# Filename:
# Description:
# Version:
# Date:
# Last Modified:
# Location_of_the_Video:
# Meta_data_for_YouTube:
# Web_Site_For_Video:
# Start Your Code Here
#EOF
| 12.444444 | 24 | 0.71875 | 30 | 224 | 5.066667 | 0.933333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.151786 | 224 | 17 | 25 | 13.176471 | 0.8 | 0.861607 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0.058824 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c7c22a9174889ccacec698f1b477ffd20a7822b0 | 1,716 | py | Python | .venv/lib/python3.7/site-packages/jedi/inference/lazy_value.py | ITCRStevenLPZ/Proyecto2-Analisis-de-Algoritmos | 4acdbc423428fb2e0068720add69e7870c87929a | [
"Apache-2.0"
] | 76 | 2020-07-06T14:44:05.000Z | 2022-02-14T15:30:21.000Z | .venv/lib/python3.7/site-packages/jedi/inference/lazy_value.py | ITCRStevenLPZ/Proyecto2-Analisis-de-Algoritmos | 4acdbc423428fb2e0068720add69e7870c87929a | [
"Apache-2.0"
] | 20 | 2021-05-03T18:02:23.000Z | 2022-03-12T12:01:04.000Z | .venv/lib/python3.7/site-packages/jedi/inference/lazy_value.py | ITCRStevenLPZ/Proyecto2-Analisis-de-Algoritmos | 4acdbc423428fb2e0068720add69e7870c87929a | [
"Apache-2.0"
] | 11 | 2020-07-12T16:18:07.000Z | 2022-02-05T16:48:35.000Z | from jedi.inference.base_value import ValueSet, NO_VALUES
from jedi.common import monkeypatch
class AbstractLazyValue(object):
def __init__(self, data, min=1, max=1):
self.data = data
self.min = min
self.max = max
def __repr__(self):
return '<%s: %s>' % (self.__class__.__name_... | 27.677419 | 83 | 0.674825 | 216 | 1,716 | 5.12963 | 0.342593 | 0.050542 | 0.064982 | 0.064982 | 0.070397 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006002 | 0.223193 | 1,716 | 61 | 84 | 28.131148 | 0.825206 | 0.114219 | 0 | 0.157895 | 0 | 0 | 0.015968 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.289474 | false | 0 | 0.052632 | 0.131579 | 0.710526 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
c7e321ea7df7191ba4707163a3bf9a97bdfd5999 | 252 | py | Python | src/onenutil/schemas/__init__.py | LemurPwned/onenote-utils | 07778e6b2433cf28fab2afdbb01a318f284989dc | [
"MIT"
] | null | null | null | src/onenutil/schemas/__init__.py | LemurPwned/onenote-utils | 07778e6b2433cf28fab2afdbb01a318f284989dc | [
"MIT"
] | null | null | null | src/onenutil/schemas/__init__.py | LemurPwned/onenote-utils | 07778e6b2433cf28fab2afdbb01a318f284989dc | [
"MIT"
] | null | null | null | from .results import (ArticleSearchResult, EmbeddingsResult, SearchResult,
TagResult, ZoteroExtractionResult)
__all__ = [
"TagResult", "EmbeddingsResult", "ZoteroExtractionResult", "SearchResult",
"ArticleSearchResult"
]
| 31.5 | 78 | 0.714286 | 14 | 252 | 12.571429 | 0.642857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.190476 | 252 | 7 | 79 | 36 | 0.862745 | 0 | 0 | 0 | 0 | 0 | 0.309524 | 0.087302 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0 | 1 | 0 | 1 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
1be88ec83f0700967a841e75b99ce2ed109f8dfc | 473 | py | Python | src/app/services/metrics_service.py | chrisbpoint/the-app | 960307718c2cef7cdd86d348d380381aafaab10a | [
"MIT"
] | null | null | null | src/app/services/metrics_service.py | chrisbpoint/the-app | 960307718c2cef7cdd86d348d380381aafaab10a | [
"MIT"
] | null | null | null | src/app/services/metrics_service.py | chrisbpoint/the-app | 960307718c2cef7cdd86d348d380381aafaab10a | [
"MIT"
] | null | null | null | class MetricsService:
def __init__(self, adc_data, metrics_data):
self._adc_data = adc_data
self._metrics_data = metrics_data
@property
def metrics_data(self):
return self._metrics_data
def update(self):
self._metrics_data.is_new_data_available = False
if self.... | 29.5625 | 59 | 0.69556 | 63 | 473 | 4.68254 | 0.285714 | 0.298305 | 0.254237 | 0.132203 | 0.298305 | 0.223729 | 0.223729 | 0 | 0 | 0 | 0 | 0 | 0.234672 | 473 | 15 | 60 | 31.533333 | 0.814917 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0.083333 | 0.416667 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
40131096d61db66fe053946df5d75b8d65c51a7a | 556 | py | Python | bell2014/energy/prob_abs_s.py | dmaugis/intrinsic | e223fc8abceb2bf26f9a7752d72afe598ac4e1fd | [
"MIT"
] | 134 | 2015-01-04T04:54:19.000Z | 2021-10-16T07:39:02.000Z | bell2014/energy/prob_abs_s.py | dmaugis/intrinsic | e223fc8abceb2bf26f9a7752d72afe598ac4e1fd | [
"MIT"
] | 10 | 2016-07-30T21:45:11.000Z | 2021-03-03T14:12:50.000Z | bell2014/energy/prob_abs_s.py | dmaugis/intrinsic | e223fc8abceb2bf26f9a7752d72afe598ac4e1fd | [
"MIT"
] | 34 | 2015-01-14T16:39:27.000Z | 2021-10-31T11:29:50.000Z | import numpy as np
class ProbAbsoluteShading(object):
def __init__(self, params):
self.params = params
def cost(self, s_nz):
if self.params.abs_shading_weight:
if self.params.abs_shading_log:
return self.params.abs_shading_weight * \
np.abs(np.l... | 30.888889 | 85 | 0.591727 | 71 | 556 | 4.338028 | 0.338028 | 0.25974 | 0.253247 | 0.38961 | 0.636364 | 0.474026 | 0.474026 | 0.474026 | 0 | 0 | 0 | 0.00266 | 0.323741 | 556 | 17 | 86 | 32.705882 | 0.816489 | 0 | 0 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.071429 | 0 | 0.5 | 0 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
402da872d024b72e61193b2048d5c5fe8a54f2e6 | 6,671 | py | Python | openstack-dashboard/openstack_dashboard/api/proxy.py | foruy/openflow-multiopenstack | 74140b041ac25ed83898ff3998e8dcbed35572bb | [
"Apache-2.0"
] | 1 | 2019-09-11T11:56:19.000Z | 2019-09-11T11:56:19.000Z | openstack-dashboard/openstack_dashboard/api/proxy.py | foruy/openflow-multiopenstack | 74140b041ac25ed83898ff3998e8dcbed35572bb | [
"Apache-2.0"
] | null | null | null | openstack-dashboard/openstack_dashboard/api/proxy.py | foruy/openflow-multiopenstack | 74140b041ac25ed83898ff3998e8dcbed35572bb | [
"Apache-2.0"
] | null | null | null | from django.conf import settings
#from proxyclient.v2 import client as proxy_client
from openstack_dashboard.utils import proxy_client
def proxyclient(request):
management_url = getattr(settings, 'MANAGEMENT_URL')
conn = proxy_client.Client(request.user.username,
request.user.t... | 35.296296 | 86 | 0.746665 | 854 | 6,671 | 5.590164 | 0.122951 | 0.173439 | 0.170926 | 0.048597 | 0.332216 | 0.241935 | 0.133222 | 0.083578 | 0.024298 | 0.024298 | 0 | 0.001417 | 0.1538 | 6,671 | 188 | 87 | 35.484043 | 0.844287 | 0.017089 | 0 | 0.015625 | 0 | 0 | 0.00519 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.367188 | false | 0.03125 | 0.015625 | 0.265625 | 0.664063 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
404cc5bda9dc3a1cc2cecd17725e8022aeed3ad0 | 49,844 | py | Python | pgmpy/tests/test_models/test_SEM.py | predictive-analytics-lab/pgmpy | 6c2a31641adc72793acd130d007190fdb1632271 | [
"MIT"
] | null | null | null | pgmpy/tests/test_models/test_SEM.py | predictive-analytics-lab/pgmpy | 6c2a31641adc72793acd130d007190fdb1632271 | [
"MIT"
] | null | null | null | pgmpy/tests/test_models/test_SEM.py | predictive-analytics-lab/pgmpy | 6c2a31641adc72793acd130d007190fdb1632271 | [
"MIT"
] | null | null | null | import os
import unittest
import numpy as np
import networkx as nx
import numpy.testing as npt
from pgmpy.models import SEM, SEMGraph, SEMAlg
class TestSEM(unittest.TestCase):
def test_from_graph(self):
self.demo = SEM.from_graph(
ebunch=[
("xi1", "x1"),
("xi1... | 41.536667 | 100 | 0.455862 | 6,252 | 49,844 | 3.524792 | 0.036308 | 0.140582 | 0.196715 | 0.243409 | 0.793892 | 0.734447 | 0.67187 | 0.59627 | 0.509779 | 0.451241 | 0 | 0.101486 | 0.351778 | 49,844 | 1,199 | 101 | 41.571309 | 0.580563 | 0.007844 | 0 | 0.477819 | 0 | 0 | 0.091361 | 0 | 0 | 0 | 0 | 0.000834 | 0.224584 | 1 | 0.022181 | false | 0.001848 | 0.005545 | 0 | 0.030499 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.