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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6f555a6e4796ee57ca3d7feb61ea74bad5670e4b | 120 | py | Python | src/core/prismriver/dashboard/urls.py | sdaityari/e-cidadania | 2fc7f312145e7cd674033f3d765ff9ff8d4fb23c | [
"Apache-2.0"
] | 40 | 2015-03-26T20:46:16.000Z | 2022-02-28T09:15:30.000Z | src/core/prismriver/dashboard/urls.py | zixtor/e-cidadania | 2fc7f312145e7cd674033f3d765ff9ff8d4fb23c | [
"Apache-2.0"
] | 1 | 2017-07-29T09:44:12.000Z | 2017-08-08T16:27:22.000Z | src/core/prismriver/dashboard/urls.py | zixtor/e-cidadania | 2fc7f312145e7cd674033f3d765ff9ff8d4fb23c | [
"Apache-2.0"
] | 19 | 2015-01-13T20:40:49.000Z | 2021-11-02T03:53:39.000Z | from django.conf.urls.defaults import *
urlpatterns = patterns('', url(r'^$', 'prismriver.dashboard.views.dashboard'))
| 30 | 78 | 0.733333 | 14 | 120 | 6.285714 | 0.928571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.083333 | 120 | 3 | 79 | 40 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0.316667 | 0.3 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 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 |
6f7203a1a4da32a4ad5955db4bea9d209ca6673e | 324 | py | Python | cube_builder/models/__init__.py | betonr/cube-builder | d1bc445e7c1ef927ef59b33060dae1e62be5e91b | [
"MIT"
] | null | null | null | cube_builder/models/__init__.py | betonr/cube-builder | d1bc445e7c1ef927ef59b33060dae1e62be5e91b | [
"MIT"
] | null | null | null | cube_builder/models/__init__.py | betonr/cube-builder | d1bc445e7c1ef927ef59b33060dae1e62be5e91b | [
"MIT"
] | null | null | null | #
# This file is part of Python Module for Cube Builder.
# Copyright (C) 2019-2020 INPE.
#
# Cube Builder is free software; you can redistribute it and/or modify it
# under the terms of the MIT License; see LICENSE file for more details.
#
"""Define Cube Builder SQLAlchemy models module."""
from .activity import Acti... | 29.454545 | 73 | 0.75 | 51 | 324 | 4.764706 | 0.745098 | 0.135802 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029963 | 0.175926 | 324 | 11 | 74 | 29.454545 | 0.88015 | 0.839506 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
6f76d11b457dc047654a0a333e13f195621ad94e | 126 | py | Python | exerc014.py | LucasBischof/Praticando_Python | ab14e347228e19ec4ef1ad743e3a469979619f74 | [
"MIT"
] | null | null | null | exerc014.py | LucasBischof/Praticando_Python | ab14e347228e19ec4ef1ad743e3a469979619f74 | [
"MIT"
] | null | null | null | exerc014.py | LucasBischof/Praticando_Python | ab14e347228e19ec4ef1ad743e3a469979619f74 | [
"MIT"
] | null | null | null | c = float(input('Informa a temperatura em C°:'))
f = (c*9/5)+32
print('A temperatura de C°{} corresponde a °F{}'.format(c,f))
| 31.5 | 61 | 0.634921 | 27 | 126 | 3.074074 | 0.592593 | 0.289157 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036697 | 0.134921 | 126 | 3 | 62 | 42 | 0.697248 | 0 | 0 | 0 | 0 | 0 | 0.539683 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 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 |
488ff62aa24445fb738ca36b86e80cb031853e57 | 15,191 | py | Python | utils/importPartData.py | igemsoftware/HFUT-China_2015 | 5db86858963d29188ec1a8fdedaf7a98f4528cf4 | [
"Apache-2.0"
] | null | null | null | utils/importPartData.py | igemsoftware/HFUT-China_2015 | 5db86858963d29188ec1a8fdedaf7a98f4528cf4 | [
"Apache-2.0"
] | 3 | 2015-09-21T21:50:45.000Z | 2015-09-22T15:42:28.000Z | utils/importPartData.py | igemsoftware/HFUT-China_2015 | 5db86858963d29188ec1a8fdedaf7a98f4528cf4 | [
"Apache-2.0"
] | 2 | 2020-03-28T01:33:51.000Z | 2021-07-18T13:56:27.000Z | import os
import django
import sys
import xml.sax
import datetime
import re
import chardet
from chardet.universaldetector import UniversalDetector
pro_dir = os.getcwd()
sys.path.append(pro_dir)
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "BioDesigner.settings")
from design.models import parts
file... | 51.320946 | 102 | 0.560068 | 1,512 | 15,191 | 5.486772 | 0.099206 | 0.114754 | 0.18298 | 0.16972 | 0.584378 | 0.522541 | 0.51567 | 0.491201 | 0.416345 | 0.171167 | 0 | 0.002475 | 0.335001 | 15,191 | 296 | 103 | 51.320946 | 0.818749 | 0.130604 | 0 | 0.325991 | 0 | 0 | 0.083081 | 0.001711 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.008811 | 0.039648 | null | null | 0.013216 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
489f06b307884f10cbd3de56c1d2976bdcd1995e | 1,165 | py | Python | AST/__init__.py | CorentinGoet/miniC-Compiler | 8631b1ce47e9de1c3a3255d7c0a941242ad48292 | [
"MIT"
] | null | null | null | AST/__init__.py | CorentinGoet/miniC-Compiler | 8631b1ce47e9de1c3a3255d7c0a941242ad48292 | [
"MIT"
] | null | null | null | AST/__init__.py | CorentinGoet/miniC-Compiler | 8631b1ce47e9de1c3a3255d7c0a941242ad48292 | [
"MIT"
] | null | null | null | """
@author Corentin Goetghebeur (github.com/CorentinGoet)
This package is part of the mini-C Compiler project available on GitHub: https://github.com/CorentinGoet/miniC-Compiler.
It contains the classes for the Abstract Syntax Tree for the compiler.
"""
from AST.addition import Addition
from AST.assignment import Ass... | 35.30303 | 120 | 0.833476 | 172 | 1,165 | 5.645349 | 0.360465 | 0.187436 | 0.043254 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12103 | 1,165 | 32 | 121 | 36.40625 | 0.948242 | 0.211159 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 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 |
48c35eea361c3b81af67f5735303a41f0d728c42 | 144 | py | Python | done/open.py | UMP-45/Python_Study | 75126a432230b226f27f2a7434d848bd0ce5696e | [
"Unlicense"
] | 1 | 2022-03-29T09:20:19.000Z | 2022-03-29T09:20:19.000Z | done/open.py | UMP-45/Python_Study | 75126a432230b226f27f2a7434d848bd0ce5696e | [
"Unlicense"
] | null | null | null | done/open.py | UMP-45/Python_Study | 75126a432230b226f27f2a7434d848bd0ce5696e | [
"Unlicense"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
with open('D:\\source_code\\py\\one.py') as f:
read_data = f.read()
print(read_data)
f.closed
| 18 | 46 | 0.631944 | 26 | 144 | 3.384615 | 0.769231 | 0.113636 | 0.204545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016 | 0.131944 | 144 | 7 | 47 | 20.571429 | 0.688 | 0.298611 | 0 | 0 | 0 | 0 | 0.272727 | 0.272727 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
48dd5219658aab28e494ee0d76bd61045b2454b8 | 1,228 | py | Python | tests/packages/test_file_dependency.py | nayyarv/poetry | 07e71abb32050514c2d2269709480c48fd7827b2 | [
"MIT"
] | null | null | null | tests/packages/test_file_dependency.py | nayyarv/poetry | 07e71abb32050514c2d2269709480c48fd7827b2 | [
"MIT"
] | null | null | null | tests/packages/test_file_dependency.py | nayyarv/poetry | 07e71abb32050514c2d2269709480c48fd7827b2 | [
"MIT"
] | null | null | null | import pytest
from poetry.packages import FileDependency
from poetry.utils._compat import Path
DIST_PATH = Path(__file__).parent.parent / "fixtures" / "distributions"
def test_file_dependency_wheel():
dependency = FileDependency(DIST_PATH / "demo-0.1.0-py2.py3-none-any.whl")
assert dependency.is_file()
... | 28.55814 | 78 | 0.703583 | 161 | 1,228 | 5.173913 | 0.298137 | 0.192077 | 0.052821 | 0.10084 | 0.733493 | 0.727491 | 0.727491 | 0.612245 | 0.518607 | 0.518607 | 0 | 0.032008 | 0.160423 | 1,228 | 42 | 79 | 29.238095 | 0.775946 | 0 | 0 | 0.571429 | 0 | 0 | 0.135179 | 0.025244 | 0 | 0 | 0 | 0 | 0.428571 | 1 | 0.142857 | false | 0 | 0.107143 | 0 | 0.25 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
48f23479e2c022583d5b039e43310584b710f29f | 2,192 | py | Python | bokeh/sampledata/degrees.py | teresafds/bokeh | 95b2a74ff463cfabdf9e3390951fa380166e6691 | [
"BSD-3-Clause"
] | null | null | null | bokeh/sampledata/degrees.py | teresafds/bokeh | 95b2a74ff463cfabdf9e3390951fa380166e6691 | [
"BSD-3-Clause"
] | null | null | null | bokeh/sampledata/degrees.py | teresafds/bokeh | 95b2a74ff463cfabdf9e3390951fa380166e6691 | [
"BSD-3-Clause"
] | null | null | null | #-----------------------------------------------------------------------------
# Copyright (c) 2012 - 2022, Anaconda, Inc., and Bokeh Contributors.
# All rights reserved.
#
# The full license is in the file LICENSE.txt, distributed with this software.
#-------------------------------------------------------------------... | 34.25 | 84 | 0.313412 | 122 | 2,192 | 5.508197 | 0.696721 | 0.026786 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00442 | 0.071168 | 2,192 | 63 | 85 | 34.793651 | 0.325639 | 0.862226 | 0 | 0 | 0 | 0 | 0.18797 | 0.146617 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
48ff4e1f574ae43edea65657be9c0b647a3e06e9 | 546 | py | Python | formsFunc.py | ycmunoz/biologia-computacional | 03c97db9213aaff083003a592f4dd6acd1c28d53 | [
"Unlicense"
] | 1 | 2019-11-17T23:34:50.000Z | 2019-11-17T23:34:50.000Z | formsFunc.py | ycmunoz/biologia-computacional | 03c97db9213aaff083003a592f4dd6acd1c28d53 | [
"Unlicense"
] | null | null | null | formsFunc.py | ycmunoz/biologia-computacional | 03c97db9213aaff083003a592f4dd6acd1c28d53 | [
"Unlicense"
] | null | null | null | from wtforms import Form
from wtforms.validators import DataRequired, Length, NumberRange, Optional
from flask_wtf import FlaskForm
from wtforms import StringField, BooleanField, RadioField, SelectField, FieldList
class protein_form(FlaskForm):
specie_list = SelectField('Specie List')
protein_list = SelectField('Pro... | 34.125 | 81 | 0.802198 | 67 | 546 | 6.38806 | 0.343284 | 0.140187 | 0.133178 | 0.161215 | 0.308411 | 0.308411 | 0.308411 | 0 | 0 | 0 | 0 | 0 | 0.111722 | 546 | 16 | 82 | 34.125 | 0.882474 | 0 | 0 | 0.230769 | 0 | 0 | 0.113346 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.307692 | 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 |
5b018ba9168b99c6089864b50b1f97689f85a2e6 | 908 | py | Python | backend/api/models/freight_car_model.py | ferdn4ndo/infotrem | 4728c5fe8385dcc0a1c75068429fa20e2afbf6f2 | [
"MIT"
] | null | null | null | backend/api/models/freight_car_model.py | ferdn4ndo/infotrem | 4728c5fe8385dcc0a1c75068429fa20e2afbf6f2 | [
"MIT"
] | 1 | 2020-06-21T18:38:14.000Z | 2020-06-21T21:57:09.000Z | backend/api/models/freight_car_model.py | ferdn4ndo/infotrem | 4728c5fe8385dcc0a1c75068429fa20e2afbf6f2 | [
"MIT"
] | null | null | null | from django.contrib import admin
from django.db import models
from django.utils.translation import gettext_lazy as _
from .generic_audited_model import GenericAuditedModel
from .freight_car_gross_weight_type_model import FreightCarGrossWeightType
from .freight_car_type_model import FreightCarType
from .rolling_stock_m... | 32.428571 | 95 | 0.798458 | 111 | 908 | 6.306306 | 0.45045 | 0.062857 | 0.064286 | 0.062857 | 0.082857 | 0.082857 | 0.082857 | 0 | 0 | 0 | 0 | 0 | 0.137665 | 908 | 27 | 96 | 33.62963 | 0.893997 | 0 | 0 | 0 | 0 | 0 | 0.068282 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.052632 | 0.368421 | 0 | 0.631579 | 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 |
5b1732729a2b1ab3e65d46fea00271c093a41f7a | 444 | py | Python | hw/my-classifiers/knn_runner.py | petrroll/npfl104 | 241646b02e91c14ac885dd6cc981b5bb63d4561c | [
"MIT"
] | null | null | null | hw/my-classifiers/knn_runner.py | petrroll/npfl104 | 241646b02e91c14ac885dd6cc981b5bb63d4561c | [
"MIT"
] | null | null | null | hw/my-classifiers/knn_runner.py | petrroll/npfl104 | 241646b02e91c14ac885dd6cc981b5bb63d4561c | [
"MIT"
] | null | null | null | from models.knn import KNN
from dta_loader import load_adult, load_synth_sep, load_synth_noise
from validation_runner import run
import time
a_train, a_test = load_synth_noise()
print("Artif noise:\t", run(a_train, a_test, 'target', KNN(k=3)))
a_train, a_test = load_synth_sep()
print("Artif sep:\t", run(a_train, a_te... | 31.714286 | 67 | 0.738739 | 84 | 444 | 3.619048 | 0.321429 | 0.118421 | 0.138158 | 0.217105 | 0.434211 | 0.434211 | 0.351974 | 0.351974 | 0.351974 | 0.269737 | 0 | 0.010127 | 0.11036 | 444 | 13 | 68 | 34.153846 | 0.759494 | 0 | 0 | 0 | 0 | 0 | 0.117117 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.4 | 0 | 0.4 | 0.3 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
5b1ad8c7e132210c2a031c799de61dd59a47f0e7 | 171 | py | Python | test_app/factories.py | LaVita-GmbH/celery-message-consumer | cbead6a9cb8774caa883e6338083e073e09427ad | [
"Apache-2.0"
] | 40 | 2018-06-06T05:16:01.000Z | 2022-03-29T11:21:31.000Z | test_app/factories.py | LaVita-GmbH/celery-message-consumer | cbead6a9cb8774caa883e6338083e073e09427ad | [
"Apache-2.0"
] | 9 | 2018-10-03T05:40:45.000Z | 2021-10-01T07:49:41.000Z | test_app/factories.py | LaVita-GmbH/celery-message-consumer | cbead6a9cb8774caa883e6338083e073e09427ad | [
"Apache-2.0"
] | 15 | 2018-01-26T15:20:37.000Z | 2022-03-01T13:38:53.000Z | import factory
class UserFactory(factory.DjangoModelFactory):
class Meta:
model = 'test_app.User'
username = factory.Sequence(lambda n: 'user_%s' % n)
| 17.1 | 56 | 0.684211 | 20 | 171 | 5.75 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.210526 | 171 | 9 | 57 | 19 | 0.851852 | 0 | 0 | 0 | 0 | 0 | 0.116959 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.8 | 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 |
5b1e909c5baa8ff988193fd17012ee4b93018f41 | 141 | py | Python | calibrade/constants.py | russelldj/CalibrADE | 224f9833611d857d8992e8de970dd439d5728eba | [
"MIT"
] | null | null | null | calibrade/constants.py | russelldj/CalibrADE | 224f9833611d857d8992e8de970dd439d5728eba | [
"MIT"
] | 1 | 2021-11-22T21:48:45.000Z | 2021-11-22T21:48:45.000Z | calibrade/constants.py | russelldj/CalibrADE | 224f9833611d857d8992e8de970dd439d5728eba | [
"MIT"
] | null | null | null | import os
# Absolute path to the data
DATA_FOLDER = os.path.abspath(os.path.join(os.path.dirname(__file__), "../data"))
SQUARE_SIZE = 0.03
| 20.142857 | 81 | 0.723404 | 24 | 141 | 4 | 0.666667 | 0.1875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024194 | 0.120567 | 141 | 6 | 82 | 23.5 | 0.75 | 0.177305 | 0 | 0 | 0 | 0 | 0.061947 | 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 |
d2943605b9ff209a5949c418fb3335d4eb73ecf1 | 2,728 | py | Python | infobip/api/model/omni/send/OmniSimpleRequest.py | ubidreams/infobip-api-python-client | 3e585bf00565627bd7da46a2c8f10b860faaeb8b | [
"Apache-2.0"
] | null | null | null | infobip/api/model/omni/send/OmniSimpleRequest.py | ubidreams/infobip-api-python-client | 3e585bf00565627bd7da46a2c8f10b860faaeb8b | [
"Apache-2.0"
] | null | null | null | infobip/api/model/omni/send/OmniSimpleRequest.py | ubidreams/infobip-api-python-client | 3e585bf00565627bd7da46a2c8f10b860faaeb8b | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""This is a generated class and is not intended for modification!
"""
from datetime import datetime
from infobip.util.models import DefaultObject, serializable
from infobip.api.model.omni.Destination import Destination
class OmniSimpleRequest(DefaultObject):
@property
@serializable(... | 25.980952 | 66 | 0.618402 | 306 | 2,728 | 5.323529 | 0.166667 | 0.103131 | 0.058932 | 0.078576 | 0.544506 | 0.338858 | 0.235727 | 0.235727 | 0.235727 | 0.130141 | 0 | 0.000505 | 0.27346 | 2,728 | 105 | 67 | 25.980952 | 0.821393 | 0.156892 | 0 | 0.185185 | 1 | 0 | 0.08624 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.277778 | false | 0 | 0.055556 | 0 | 0.537037 | 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 |
d29732e943fd07c9a54ff629c367c660be1f1580 | 955 | py | Python | utils/ListDeque.py | bigfishkun/palgt3 | bd4bd9f639fb00a47132a97dd3390fc34400add0 | [
"Apache-2.0"
] | null | null | null | utils/ListDeque.py | bigfishkun/palgt3 | bd4bd9f639fb00a47132a97dd3390fc34400add0 | [
"Apache-2.0"
] | null | null | null | utils/ListDeque.py | bigfishkun/palgt3 | bd4bd9f639fb00a47132a97dd3390fc34400add0 | [
"Apache-2.0"
] | null | null | null | class ListDeque(object):
def __init__(self, maxLen):
assert maxLen > 0, "Invalid maximum length"
self.__values = []
self.__maxLen = maxLen
def getMaxLen(self):
return self.__maxLen
def append(self, value):
self.__values.append(value)
# Check bounds
... | 23.875 | 51 | 0.580105 | 109 | 955 | 4.66055 | 0.302752 | 0.216535 | 0.082677 | 0.086614 | 0.185039 | 0.185039 | 0.185039 | 0.185039 | 0.185039 | 0 | 0 | 0.00607 | 0.309948 | 955 | 40 | 52 | 23.875 | 0.764795 | 0.048168 | 0 | 0.16 | 0 | 0 | 0.050114 | 0 | 0 | 0 | 0 | 0 | 0.08 | 1 | 0.36 | false | 0 | 0 | 0.16 | 0.6 | 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 |
d2aad51212e2a891c368b4526ab596cc6335a457 | 183 | py | Python | ABC/017/a_1.py | fumiyanll23/AtCoder | 362ca9fcacb5415c1458bc8dee5326ba2cc70b65 | [
"MIT"
] | null | null | null | ABC/017/a_1.py | fumiyanll23/AtCoder | 362ca9fcacb5415c1458bc8dee5326ba2cc70b65 | [
"MIT"
] | null | null | null | ABC/017/a_1.py | fumiyanll23/AtCoder | 362ca9fcacb5415c1458bc8dee5326ba2cc70b65 | [
"MIT"
] | null | null | null | def main():
# input
# compute
# output
print(int(sum([s*e/10 for s,e in [[*map(int, input().split())] for _ in range(3)]])))
if __name__ == '__main__':
main()
| 15.25 | 89 | 0.530055 | 27 | 183 | 3.259259 | 0.703704 | 0.045455 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022059 | 0.256831 | 183 | 11 | 90 | 16.636364 | 0.625 | 0.10929 | 0 | 0 | 0 | 0 | 0.050314 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | true | 0 | 0 | 0 | 0.25 | 0.25 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d2ae7dc21e903ebca4f5e591e9ad5ab62febf0b6 | 397 | py | Python | app/core/transaction/repository.py | temojudo/BitcoinWallet | 5a7fda9d5051d0e448e385856ed6a23cf60324c0 | [
"MIT"
] | null | null | null | app/core/transaction/repository.py | temojudo/BitcoinWallet | 5a7fda9d5051d0e448e385856ed6a23cf60324c0 | [
"MIT"
] | null | null | null | app/core/transaction/repository.py | temojudo/BitcoinWallet | 5a7fda9d5051d0e448e385856ed6a23cf60324c0 | [
"MIT"
] | null | null | null | from typing import List, Protocol
from app.core.transaction.dto import Statistics
from app.core.transaction.transaction import Transaction
class ITransactionRepository(Protocol):
def save(self, transaction: Transaction) -> Transaction:
pass
def fetch_by_api_key(self, api_key: str) -> List[Transactio... | 24.8125 | 66 | 0.732997 | 47 | 397 | 6.085106 | 0.468085 | 0.230769 | 0.076923 | 0.153846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.188917 | 397 | 15 | 67 | 26.466667 | 0.888199 | 0 | 0 | 0.3 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0.3 | 0.3 | 0 | 0.7 | 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 |
d2d51b611cdb8ab2af0883673f220b80d3aaecd0 | 471 | py | Python | archon/exceptions.py | changgonKim/archon | 3bcbf00cb24f88a826d57c81d90da172519ac458 | [
"BSD-3-Clause"
] | null | null | null | archon/exceptions.py | changgonKim/archon | 3bcbf00cb24f88a826d57c81d90da172519ac458 | [
"BSD-3-Clause"
] | null | null | null | archon/exceptions.py | changgonKim/archon | 3bcbf00cb24f88a826d57c81d90da172519ac458 | [
"BSD-3-Clause"
] | null | null | null | # !usr/bin/env python
# -*- coding: utf-8 -*-
#
# Licensed under a 3-clause BSD license.
#
# @Author: Brian Cherinka
# @Date: 2017-12-05 12:01:21
# @Last modified by: Brian Cherinka
# @Last Modified time: 2017-12-05 12:19:32
class ArchonError(Exception):
"""A custom core Archon exception"""
class ArchonWarn... | 19.625 | 52 | 0.675159 | 62 | 471 | 5.129032 | 0.709677 | 0.081761 | 0.050314 | 0.062893 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.07772 | 0.180467 | 471 | 23 | 53 | 20.478261 | 0.746114 | 0.624204 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.25 | 0 | 0 | 0.75 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
d2d65b340524ec0d9173f9e6162f83ab13536c50 | 333 | py | Python | Products/GroupServer/Scripts/get/sectionId.py | groupserver/Products.GroupServer | ad2fc63145c13340eb2a9804401b34b2d6c8afe7 | [
"ZPL-2.1"
] | null | null | null | Products/GroupServer/Scripts/get/sectionId.py | groupserver/Products.GroupServer | ad2fc63145c13340eb2a9804401b34b2d6c8afe7 | [
"ZPL-2.1"
] | null | null | null | Products/GroupServer/Scripts/get/sectionId.py | groupserver/Products.GroupServer | ad2fc63145c13340eb2a9804401b34b2d6c8afe7 | [
"ZPL-2.1"
] | null | null | null | ## Script (Python) "sectionId"
##bind container=container
##bind context=context
##bind namespace=
##bind script=script
##bind subpath=traverse_subpath
##parameters=
##title=
##
from Products.XWFCore.XWFUtils import deprecated
deprecated(context, script, "Use something sane instead.")
return getattr(context, 'section_i... | 23.785714 | 58 | 0.765766 | 39 | 333 | 6.487179 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.096096 | 333 | 13 | 59 | 25.615385 | 0.840532 | 0.45045 | 0 | 0 | 0 | 0 | 0.251534 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 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 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
d2e2f5ad4fa931c2883339fb201d178ca155d471 | 250 | py | Python | cloudvision/__init__.py | barryCrunch/cloudvision-python | bafb55a57743141ef419ce8b6f3adda31a18ca42 | [
"Apache-2.0"
] | 8 | 2020-10-22T13:19:00.000Z | 2021-12-16T02:16:47.000Z | cloudvision/__init__.py | barryCrunch/cloudvision-python | bafb55a57743141ef419ce8b6f3adda31a18ca42 | [
"Apache-2.0"
] | 6 | 2020-12-16T11:31:03.000Z | 2021-11-19T10:00:37.000Z | cloudvision/__init__.py | barryCrunch/cloudvision-python | bafb55a57743141ef419ce8b6f3adda31a18ca42 | [
"Apache-2.0"
] | 7 | 2020-12-04T01:30:34.000Z | 2021-11-11T21:40:12.000Z | # Copyright (c) 2020 Arista Networks, Inc.
# Use of this source code is governed by the Apache License 2.0
# that can be found in the COPYING file.
__path__ = __import__('pkgutil').extend_path(__path__, __name__) # type: ignore # mypy issue #1422
| 41.666667 | 100 | 0.74 | 39 | 250 | 4.307692 | 0.923077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048309 | 0.172 | 250 | 5 | 101 | 50 | 0.763285 | 0.688 | 0 | 0 | 0 | 0 | 0.098592 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 1 | 0 | 1 | 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 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
d2f0682466e995a3503cddf0e3aa9126552ccaff | 1,347 | py | Python | src/backend/common/cache/noop_cache.py | bovlb/the-blue-alliance | 29389649d96fe060688f218d463e642dcebfd6cc | [
"MIT"
] | null | null | null | src/backend/common/cache/noop_cache.py | bovlb/the-blue-alliance | 29389649d96fe060688f218d463e642dcebfd6cc | [
"MIT"
] | null | null | null | src/backend/common/cache/noop_cache.py | bovlb/the-blue-alliance | 29389649d96fe060688f218d463e642dcebfd6cc | [
"MIT"
] | null | null | null | from typing import Any, Dict, List, Optional
from backend.common.cache.cache_if import CacheIf, CacheStats
class NoopCache(CacheIf):
"""
A noop implementation of the memcache interface, where all writes succeed and all reads miss
"""
miss_count: int
def __init__(self) -> None:
self.miss... | 24.053571 | 96 | 0.585746 | 168 | 1,347 | 4.613095 | 0.363095 | 0.077419 | 0.100645 | 0.065806 | 0.331613 | 0.167742 | 0.092903 | 0.092903 | 0 | 0 | 0 | 0.003202 | 0.30438 | 1,347 | 55 | 97 | 24.490909 | 0.823906 | 0.0683 | 0 | 0.263158 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.263158 | false | 0 | 0.052632 | 0.184211 | 0.605263 | 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 |
d2f7bb323a766a742f0336960a4ac5778a161da6 | 258 | py | Python | Projects/Halma Game/Stable/testerPieces.py | cholazzzb/A-Study-of-AI | b069d536eb344a363d1b042086926d026afc0360 | [
"MIT"
] | null | null | null | Projects/Halma Game/Stable/testerPieces.py | cholazzzb/A-Study-of-AI | b069d536eb344a363d1b042086926d026afc0360 | [
"MIT"
] | null | null | null | Projects/Halma Game/Stable/testerPieces.py | cholazzzb/A-Study-of-AI | b069d536eb344a363d1b042086926d026afc0360 | [
"MIT"
] | null | null | null | from HalmaPlayer03A import HalmaPlayer03
player = HalmaPlayer03("HalmiezzzT")
player.setNomor(3)
# PASS THE TEST
# for i in range (13):
# print(player.Pieces[i].name)
# print(player.Pieces[i].position)
# print(player.Pieces[i].pieceDirections)
| 23.454545 | 45 | 0.72093 | 33 | 258 | 5.636364 | 0.636364 | 0.177419 | 0.274194 | 0.290323 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040909 | 0.147287 | 258 | 10 | 46 | 25.8 | 0.804545 | 0.573643 | 0 | 0 | 0 | 0 | 0.096154 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
960249666d875648ef2569c1a2c5da0d4d4a7989 | 183 | py | Python | restart/TokenyjcL/__init__.py | yujiecong/yjcL | 6d6dc4ad3611cb34c07192a1a3038a1ac3f67d6c | [
"MIT"
] | null | null | null | restart/TokenyjcL/__init__.py | yujiecong/yjcL | 6d6dc4ad3611cb34c07192a1a3038a1ac3f67d6c | [
"MIT"
] | null | null | null | restart/TokenyjcL/__init__.py | yujiecong/yjcL | 6d6dc4ad3611cb34c07192a1a3038a1ac3f67d6c | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
'''
@IDE :PyCharm
@Project :yjcL
@USER :yanyin
@File :__init__.py.py
@Author :yujiecong
@Date :2021/8/31 15:39
'''
| 16.636364 | 27 | 0.557377 | 25 | 183 | 3.92 | 0.92 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.086331 | 0.240437 | 183 | 10 | 28 | 18.3 | 0.618705 | 0.934426 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
96273cdb50a816005570ac9195892c33f80d062d | 3,977 | py | Python | app/models.py | debbyne/pitches | dbd565d7897da6d717a9ab7495c4973539fa39f8 | [
"Unlicense"
] | null | null | null | app/models.py | debbyne/pitches | dbd565d7897da6d717a9ab7495c4973539fa39f8 | [
"Unlicense"
] | null | null | null | app/models.py | debbyne/pitches | dbd565d7897da6d717a9ab7495c4973539fa39f8 | [
"Unlicense"
] | null | null | null | from . import db
from flask_login import UserMixin
from . import login_manager
from sqlalchemy import desc
from werkzeug.security import generate_password_hash,check_password_hash
from datetime import datetime
@login_manager.user_loader
def load_user(user_id):
return User.query.get(int(user_id))
class User(UserMi... | 33.141667 | 112 | 0.677395 | 525 | 3,977 | 4.954286 | 0.192381 | 0.073818 | 0.092272 | 0.05075 | 0.348328 | 0.25298 | 0.25298 | 0.241061 | 0.157632 | 0.157632 | 0 | 0.005915 | 0.192356 | 3,977 | 119 | 113 | 33.420168 | 0.803861 | 0.094292 | 0 | 0.204819 | 1 | 0 | 0.068207 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.168675 | false | 0.108434 | 0.072289 | 0.048193 | 0.722892 | 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 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
8260cc7d45c02d1a0fd0dddfe534214646bd4caf | 1,025 | py | Python | spikeforest/forestview/analysis_views/testview.py | mhhennig/spikeforest | 5b4507ead724af3de0be5d48a3b23aaedb0be170 | [
"Apache-2.0"
] | 1 | 2021-09-23T01:07:19.000Z | 2021-09-23T01:07:19.000Z | spikeforest/forestview/analysis_views/testview.py | mhhennig/spikeforest | 5b4507ead724af3de0be5d48a3b23aaedb0be170 | [
"Apache-2.0"
] | null | null | null | spikeforest/forestview/analysis_views/testview.py | mhhennig/spikeforest | 5b4507ead724af3de0be5d48a3b23aaedb0be170 | [
"Apache-2.0"
] | 1 | 2021-09-23T01:07:21.000Z | 2021-09-23T01:07:21.000Z | import vdomr as vd
class TestView(vd.Component):
def __init__(self, context, opts=None, prepare_result=None):
vd.Component.__init__(self)
self._context = context
self._opts = opts
self._size = (100, 100)
self._widget = TestWidget(context)
@staticmethod
def prepareV... | 22.282609 | 64 | 0.610732 | 123 | 1,025 | 4.853659 | 0.341463 | 0.107203 | 0.070352 | 0.060302 | 0.435511 | 0.435511 | 0.338358 | 0.244556 | 0 | 0 | 0 | 0.016575 | 0.293659 | 1,025 | 45 | 65 | 22.777778 | 0.808011 | 0.06439 | 0 | 0.516129 | 0 | 0 | 0.035565 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.322581 | false | 0.032258 | 0.032258 | 0.16129 | 0.580645 | 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 |
827133b4741f2df69cf2e15b5e45e573ac3faf34 | 309 | py | Python | blog/hashing.py | paccy-ops/blog-fast-api | e8720fc03d893b5dc557b3a2b3cabaed625bbfa7 | [
"MIT"
] | null | null | null | blog/hashing.py | paccy-ops/blog-fast-api | e8720fc03d893b5dc557b3a2b3cabaed625bbfa7 | [
"MIT"
] | null | null | null | blog/hashing.py | paccy-ops/blog-fast-api | e8720fc03d893b5dc557b3a2b3cabaed625bbfa7 | [
"MIT"
] | null | null | null | from passlib.context import CryptContext
pwd_context = CryptContext(schemes=["bcrypt"], deprecated="auto")
class Hash:
def __init__(self, password):
self.password = password
def hash_bcrypt(self):
hashed_password = pwd_context.hash(self.password)
return hashed_password
| 19.3125 | 65 | 0.708738 | 35 | 309 | 6 | 0.514286 | 0.171429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.200647 | 309 | 15 | 66 | 20.6 | 0.850202 | 0 | 0 | 0 | 0 | 0 | 0.032573 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.625 | 0.125 | 0 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
8278aec03057ac75c1f2c21df6de8ef88bb9ac54 | 3,439 | py | Python | db_email_backend/tests/backend_tests.py | sociossports/django-db-email-backend | 5c92802013722c6b0fbe3c54df84757ae4540459 | [
"MIT"
] | null | null | null | db_email_backend/tests/backend_tests.py | sociossports/django-db-email-backend | 5c92802013722c6b0fbe3c54df84757ae4540459 | [
"MIT"
] | null | null | null | db_email_backend/tests/backend_tests.py | sociossports/django-db-email-backend | 5c92802013722c6b0fbe3c54df84757ae4540459 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.test import TestCase
from django.test.utils import override_settings
from django.core.mail import send_mail, EmailMessage, EmailMultiAlternatives
import django
from db_email_backend.models import Email, EmailAlternative, EmailAttachment
@ov... | 39.528736 | 85 | 0.645827 | 406 | 3,439 | 5.401478 | 0.20936 | 0.253078 | 0.282718 | 0.030096 | 0.615595 | 0.615595 | 0.581851 | 0.564979 | 0.530324 | 0.485636 | 0 | 0.005547 | 0.213725 | 3,439 | 86 | 86 | 39.988372 | 0.805473 | 0.006106 | 0 | 0.590909 | 0 | 0 | 0.171353 | 0.018453 | 0 | 0 | 0 | 0 | 0.560606 | 1 | 0.045455 | false | 0 | 0.090909 | 0 | 0.151515 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
827ec7028463e5cf8056bedd75615144ab40a283 | 447 | py | Python | blog/feeds.py | ali-abbaszade/mysite | 9ef1b1211bd827c178f279e69ddbf4c229c539fa | [
"MIT"
] | null | null | null | blog/feeds.py | ali-abbaszade/mysite | 9ef1b1211bd827c178f279e69ddbf4c229c539fa | [
"MIT"
] | null | null | null | blog/feeds.py | ali-abbaszade/mysite | 9ef1b1211bd827c178f279e69ddbf4c229c539fa | [
"MIT"
] | null | null | null | from django.contrib.syndication.views import Feed
from django.urls import reverse
from .models import Post
class LatestEntriesFeed(Feed):
title = "Latest posts"
link = "/rss/feed"
description = "Best travel blog"
def items(self):
return Post.objects.filter(status=True)
def ite... | 23.526316 | 50 | 0.662192 | 55 | 447 | 5.345455 | 0.6 | 0.068027 | 0.095238 | 0.122449 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008929 | 0.248322 | 447 | 18 | 51 | 24.833333 | 0.866071 | 0 | 0 | 0 | 0 | 0 | 0.086449 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.230769 | 0.230769 | 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 |
8282e903caad21c36950b999d2f8563f679a0137 | 195 | py | Python | tests/sample2.py | DanLipsitt/flameprof | 290382758bcc7642cf53c87b4151ea332d003a48 | [
"MIT"
] | 136 | 2017-09-17T13:10:19.000Z | 2022-03-31T23:08:43.000Z | tests/sample2.py | DanLipsitt/flameprof | 290382758bcc7642cf53c87b4151ea332d003a48 | [
"MIT"
] | 9 | 2019-01-10T07:42:01.000Z | 2021-09-07T11:51:26.000Z | tests/sample2.py | DanLipsitt/flameprof | 290382758bcc7642cf53c87b4151ea332d003a48 | [
"MIT"
] | 14 | 2019-05-08T17:04:09.000Z | 2022-03-30T10:55:35.000Z | import time
def f1(n):
time.sleep(0.1)
if n:
f2(n-1)
def f2(n):
time.sleep(0.1)
if n:
f1(n-1)
def main():
f1(10)
if __name__ == '__main__':
main()
| 8.863636 | 26 | 0.466667 | 34 | 195 | 2.441176 | 0.382353 | 0.072289 | 0.240964 | 0.26506 | 0.361446 | 0.361446 | 0.361446 | 0 | 0 | 0 | 0 | 0.104 | 0.358974 | 195 | 21 | 27 | 9.285714 | 0.56 | 0 | 0 | 0.307692 | 0 | 0 | 0.041026 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.076923 | 0 | 0.307692 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
82901975dea566bf01a2ad848e4680bbe99ef0ea | 394 | py | Python | examples/directions/custom/entities/cleaning_functions.py | sv-github/greenkey-discovery-sdk | 75ea9e2c2ab1f1381c4727f43015b6867ba39239 | [
"Apache-2.0"
] | null | null | null | examples/directions/custom/entities/cleaning_functions.py | sv-github/greenkey-discovery-sdk | 75ea9e2c2ab1f1381c4727f43015b6867ba39239 | [
"Apache-2.0"
] | null | null | null | examples/directions/custom/entities/cleaning_functions.py | sv-github/greenkey-discovery-sdk | 75ea9e2c2ab1f1381c4727f43015b6867ba39239 | [
"Apache-2.0"
] | null | null | null | # cleaning functions expect to take a 'spacer' as an argument, which is why we list
# them as arguments in the following functions even though we overwrite "spacer" in the function body
def capitalize(wordList, spacer):
""" Generally, capitalize all words for discover """
return spacer.join(word.capitalize() for w... | 56.285714 | 117 | 0.771574 | 57 | 394 | 5.333333 | 0.684211 | 0.032895 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.152284 | 394 | 6 | 118 | 65.666667 | 0.91018 | 0.57868 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0 | 1 | 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 |
8298c4cc8934844a8fa032e0bc9ae8ddb5868a0a | 2,050 | py | Python | tests/test_notification.py | Files-com/files-sdk-python | 84cedc9be099cd9e4db6249ef7a9d60595487090 | [
"MIT"
] | 14 | 2020-08-05T15:48:06.000Z | 2021-08-18T13:13:39.000Z | tests/test_notification.py | Files-com/files-sdk-python | 84cedc9be099cd9e4db6249ef7a9d60595487090 | [
"MIT"
] | 4 | 2020-10-30T14:49:25.000Z | 2021-09-29T17:11:53.000Z | tests/test_notification.py | Files-com/files-sdk-python | 84cedc9be099cd9e4db6249ef7a9d60595487090 | [
"MIT"
] | null | null | null | import unittest
import inspect
import files_sdk
from tests.base import TestBase
from files_sdk.models import Notification
from files_sdk import notification
class NotificationTest(TestBase):
pass
# Instance Methods
@unittest.skipUnless(TestBase.mock_server_path_exists("PATCH", "/notifications/{id}"), "Moc... | 31.538462 | 119 | 0.640976 | 226 | 2,050 | 5.637168 | 0.207965 | 0.043956 | 0.142857 | 0.164835 | 0.726845 | 0.726845 | 0.726845 | 0.648352 | 0.49843 | 0.33438 | 0 | 0.02579 | 0.243415 | 2,050 | 65 | 120 | 31.538462 | 0.795616 | 0.022927 | 0 | 0.471698 | 0 | 0 | 0.1705 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.150943 | false | 0.037736 | 0.113208 | 0 | 0.283019 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
82ad16bb9ddac1cc346773225cba97fbbf11bedb | 73 | py | Python | emailverifier/__init__.py | whois-api-llc/python-email-verifier | 159d8837a293430c0115995950c7d970a9ea282d | [
"MIT"
] | null | null | null | emailverifier/__init__.py | whois-api-llc/python-email-verifier | 159d8837a293430c0115995950c7d970a9ea282d | [
"MIT"
] | null | null | null | emailverifier/__init__.py | whois-api-llc/python-email-verifier | 159d8837a293430c0115995950c7d970a9ea282d | [
"MIT"
] | 2 | 2020-03-18T12:46:50.000Z | 2020-12-02T11:56:31.000Z | from .client import Client
__all__ = ['Client', 'exceptions', 'models']
| 18.25 | 44 | 0.69863 | 8 | 73 | 5.875 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.136986 | 73 | 3 | 45 | 24.333333 | 0.746032 | 0 | 0 | 0 | 0 | 0 | 0.30137 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 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 |
82c3dcf7f0913d84502f8858e2d31b40819623e4 | 91 | py | Python | rest_registration/__init__.py | alexiscarrara/django-rest-registration | 46570e831a2ab9007ef1794f154c44f385125604 | [
"MIT"
] | null | null | null | rest_registration/__init__.py | alexiscarrara/django-rest-registration | 46570e831a2ab9007ef1794f154c44f385125604 | [
"MIT"
] | null | null | null | rest_registration/__init__.py | alexiscarrara/django-rest-registration | 46570e831a2ab9007ef1794f154c44f385125604 | [
"MIT"
] | null | null | null | __version__ = "0.4.2"
default_app_config = 'rest_registration.apps.RestRegistrationConfig'
| 30.333333 | 68 | 0.824176 | 11 | 91 | 6.181818 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.035294 | 0.065934 | 91 | 2 | 69 | 45.5 | 0.764706 | 0 | 0 | 0 | 0 | 0 | 0.549451 | 0.494505 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
82c89d1f35ce8daa14233f1f7ddeb9de839883b3 | 86 | py | Python | Advance/6.Requets.py | AMZEnterprise/Python_Course_Jadi | 4c1b3512ae0292f897d3ae2aa6449be6a5adb514 | [
"MIT"
] | null | null | null | Advance/6.Requets.py | AMZEnterprise/Python_Course_Jadi | 4c1b3512ae0292f897d3ae2aa6449be6a5adb514 | [
"MIT"
] | null | null | null | Advance/6.Requets.py | AMZEnterprise/Python_Course_Jadi | 4c1b3512ae0292f897d3ae2aa6449be6a5adb514 | [
"MIT"
] | null | null | null | import requests
r = requests.get('https://www.python.org')
print(r)
print(r.content) | 14.333333 | 42 | 0.72093 | 14 | 86 | 4.428571 | 0.714286 | 0.193548 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.093023 | 86 | 6 | 43 | 14.333333 | 0.794872 | 0 | 0 | 0 | 0 | 0 | 0.252874 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.5 | 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 | 0 | 1 | 0 | 3 |
82d22868ec5e4cce12f0219d065a5dcd0a10851a | 2,035 | py | Python | sonnet/python/custom_getters/stop_gradient.py | Mesitis/luminoth | 8c334a7f7a105e7a6f79085dbc521d9cc4151786 | [
"BSD-3-Clause"
] | null | null | null | sonnet/python/custom_getters/stop_gradient.py | Mesitis/luminoth | 8c334a7f7a105e7a6f79085dbc521d9cc4151786 | [
"BSD-3-Clause"
] | null | null | null | sonnet/python/custom_getters/stop_gradient.py | Mesitis/luminoth | 8c334a7f7a105e7a6f79085dbc521d9cc4151786 | [
"BSD-3-Clause"
] | null | null | null | # Copyright 2017 The Sonnet 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 applicable l... | 36.339286 | 81 | 0.699754 | 279 | 2,035 | 5 | 0.458781 | 0.060215 | 0.034409 | 0.022939 | 0.157706 | 0.117563 | 0.117563 | 0.117563 | 0.055914 | 0 | 0 | 0.00489 | 0.196069 | 2,035 | 55 | 82 | 37 | 0.8478 | 0.823096 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.666667 | 0 | 1 | 0.166667 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
7d5e40c05c92545a1843cfd0293d8f62f82eb047 | 347 | py | Python | bspider/parser/base_pipeline.py | littlebai3618/bspider | ff4d003cd0825247db4efe62db95f9245c0a303c | [
"BSD-3-Clause"
] | 3 | 2020-06-19T03:52:29.000Z | 2021-05-21T05:50:46.000Z | bspider/parser/base_pipeline.py | littlebai3618/bspider | ff4d003cd0825247db4efe62db95f9245c0a303c | [
"BSD-3-Clause"
] | 2 | 2021-03-31T19:39:03.000Z | 2021-05-12T02:10:26.000Z | bspider/parser/base_pipeline.py | littlebai3618/bspider | ff4d003cd0825247db4efe62db95f9245c0a303c | [
"BSD-3-Clause"
] | null | null | null | from bspider.core.custom_module import BaseCustomModule
class BasePipeline(BaseCustomModule):
def process_item(self, item):
"""
对item进行处理,各个pipeline重写
注意按照scrapy的风格
可以yield返回也可以return
返回类型为自订定义的类型,会传递给后面的pipeline,返回None将会丢弃这个item
:param item:
:return:
... | 21.6875 | 55 | 0.651297 | 27 | 347 | 8.296296 | 0.814815 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.285303 | 347 | 15 | 56 | 23.133333 | 0.903226 | 0.354467 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
7d73708eb5c7920ca9bf99b1c73dd48f61fb45b7 | 197 | py | Python | yunionclient/api/accessgroups.py | yunionyun/python_yunionsdk | 40a567b80f6fb3ebc72d8cc6313b334a201b2f00 | [
"Apache-2.0"
] | 3 | 2021-09-22T11:34:08.000Z | 2022-03-13T04:55:17.000Z | yunionclient/api/accessgroups.py | yunionyun/python_yunionsdk | 40a567b80f6fb3ebc72d8cc6313b334a201b2f00 | [
"Apache-2.0"
] | 13 | 2019-06-06T08:25:41.000Z | 2021-07-16T07:26:10.000Z | yunionclient/api/accessgroups.py | yunionyun/python_yunionsdk | 40a567b80f6fb3ebc72d8cc6313b334a201b2f00 | [
"Apache-2.0"
] | 7 | 2019-03-31T05:43:36.000Z | 2021-03-04T09:59:05.000Z | from yunionclient.common import base
class AccessGroupManager(base.StandaloneManager):
keyword = "access_group"
keyword_plural = "access_groups"
_columns = []
_admin_columns = []
| 24.625 | 49 | 0.730964 | 19 | 197 | 7.263158 | 0.789474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.182741 | 197 | 7 | 50 | 28.142857 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0.126904 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 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 |
7d7f79c0788a6a4fda8b4793401a81f8aace6376 | 1,051 | py | Python | tests/math_expression/test_extract.py | jingyuexing/py-emmet | e3b1ecb875e0067fc9ef4f4479c7a8d4646aaa11 | [
"MIT"
] | 29 | 2019-11-12T16:15:15.000Z | 2022-02-06T10:51:25.000Z | tests/math_expression/test_extract.py | jingyuexing/py-emmet | e3b1ecb875e0067fc9ef4f4479c7a8d4646aaa11 | [
"MIT"
] | 3 | 2020-04-25T11:02:53.000Z | 2021-11-25T10:39:09.000Z | tests/math_expression/test_extract.py | jingyuexing/py-emmet | e3b1ecb875e0067fc9ef4f4479c7a8d4646aaa11 | [
"MIT"
] | 7 | 2020-04-25T09:42:54.000Z | 2021-02-16T20:29:41.000Z | import unittest
import sys
sys.path.append('../../')
from emmet.math_expression import extract
class TestMathExtract(unittest.TestCase):
def test_basic(self):
self.assertEqual(extract('1'), (0, 1))
self.assertEqual(extract('10'), (0, 2))
self.assertEqual(extract('123'), (0, 3))
se... | 36.241379 | 68 | 0.562322 | 141 | 1,051 | 4.163121 | 0.283688 | 0.383305 | 0.562181 | 0.156729 | 0.614991 | 0.446337 | 0.350937 | 0.255537 | 0.163543 | 0 | 0 | 0.096107 | 0.217888 | 1,051 | 28 | 69 | 37.535714 | 0.618005 | 0.012369 | 0 | 0 | 0 | 0 | 0.122587 | 0 | 0 | 0 | 0 | 0 | 0.681818 | 1 | 0.090909 | false | 0 | 0.136364 | 0 | 0.272727 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7d9ae522513b8f6cac3a797bfc84caa6dc9104f2 | 471 | py | Python | datasets/dataloader.py | yhung119/show-and-tell-image-captioning | 6eace30dc30e3bc4bd384790b1eaf1f94d890288 | [
"MIT"
] | 10 | 2018-11-23T12:30:30.000Z | 2020-11-29T02:42:28.000Z | datasets/dataloader.py | yhung119/show-and-tell-image-captioning | 6eace30dc30e3bc4bd384790b1eaf1f94d890288 | [
"MIT"
] | 2 | 2020-02-25T14:16:07.000Z | 2020-04-17T08:10:00.000Z | datasets/dataloader.py | yhung119/show-and-tell-image-captioning | 6eace30dc30e3bc4bd384790b1eaf1f94d890288 | [
"MIT"
] | 5 | 2019-05-21T06:54:18.000Z | 2020-02-02T10:32:37.000Z | import os
import torch
from . import mscoco, flickr8k, flickr30k, pascal
def get_data_loader(dataset="mscoco"):
"""
return the given dataset loader
Params:
dataset: [default: mscoco | flickr30k | flickr8k | pascal | sbu]
"""
data_loader = getattr(eval(dataset), "get_data_loader") #flicker30k.get_data_loader
r... | 21.409091 | 84 | 0.732484 | 62 | 471 | 5.403226 | 0.387097 | 0.149254 | 0.116418 | 0.131343 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02 | 0.150743 | 471 | 21 | 85 | 22.428571 | 0.8175 | 0.354565 | 0 | 0 | 0 | 0 | 0.124138 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.333333 | 0 | 0.777778 | 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 |
7dad38ae8a1b7de4747173e0c8366191450c8167 | 263 | py | Python | tests/lib/config.py | noredistribution/ansible-cvp | e59fa9cfd1de83d1e5f83740a0f2423dfe13303d | [
"Apache-2.0"
] | null | null | null | tests/lib/config.py | noredistribution/ansible-cvp | e59fa9cfd1de83d1e5f83740a0f2423dfe13303d | [
"Apache-2.0"
] | null | null | null | tests/lib/config.py | noredistribution/ansible-cvp | e59fa9cfd1de83d1e5f83740a0f2423dfe13303d | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python
# coding: utf-8 -*-
"""
config.py - Declares the credential of the specified server
"""
import os
username = os.getenv('ARISTA_AVD_CV_USER', '')
password = os.getenv('ARISTA_AVD_CV_TOKEN', '')
server = os.getenv('ARISTA_AVD_CV_SERVER', '')
| 23.909091 | 63 | 0.692015 | 38 | 263 | 4.552632 | 0.631579 | 0.138728 | 0.242775 | 0.294798 | 0.32948 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004386 | 0.13308 | 263 | 10 | 64 | 26.3 | 0.754386 | 0.357414 | 0 | 0 | 0 | 0 | 0.365385 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.25 | 0.25 | 0 | 0.25 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
7dcf6a86b3f30885e63f6cab9009a4ef11fe3706 | 91 | py | Python | URI1963.py | rashidulhasanhridoy/URI-Online-Judge-Problem-Solve-with-Python-3 | c7db434e2e6e40c2ca3bd56db0d04cf79f69de12 | [
"Apache-2.0"
] | 2 | 2020-07-21T18:01:37.000Z | 2021-11-29T01:08:14.000Z | URI1963.py | rashidulhasanhridoy/URI-Online-Judge-Problem-Solve-with-Python-3 | c7db434e2e6e40c2ca3bd56db0d04cf79f69de12 | [
"Apache-2.0"
] | null | null | null | URI1963.py | rashidulhasanhridoy/URI-Online-Judge-Problem-Solve-with-Python-3 | c7db434e2e6e40c2ca3bd56db0d04cf79f69de12 | [
"Apache-2.0"
] | null | null | null | X, Y = map(float, input().split())
M = ((Y - X) / X) * 100
print('%0.2f' %M, '%', sep = '') | 30.333333 | 34 | 0.428571 | 16 | 91 | 2.4375 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.069444 | 0.208791 | 91 | 3 | 35 | 30.333333 | 0.472222 | 0 | 0 | 0 | 0 | 0 | 0.065217 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
7dd31edbd41eeece998e56d47719f3ad9f7f5757 | 188 | py | Python | prime_number/autre.py | nouretienne/repo-U3S1D1 | fcaf3415119c2d9541af8c47ad0f983b0d23ace1 | [
"MIT"
] | null | null | null | prime_number/autre.py | nouretienne/repo-U3S1D1 | fcaf3415119c2d9541af8c47ad0f983b0d23ace1 | [
"MIT"
] | null | null | null | prime_number/autre.py | nouretienne/repo-U3S1D1 | fcaf3415119c2d9541af8c47ad0f983b0d23ace1 | [
"MIT"
] | null | null | null |
def agrandir(n):
return n*100
if __name__ == "__main__":
x = 5
print(agrandir(5))
y = int(input("donnez nous un numero, par exemple 5:"))
print (agrandir(y)) | 13.428571 | 59 | 0.574468 | 27 | 188 | 3.703704 | 0.740741 | 0.12 | 0.28 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.044444 | 0.281915 | 188 | 14 | 60 | 13.428571 | 0.696296 | 0 | 0 | 0 | 0 | 0 | 0.240642 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0.142857 | 0.285714 | 0.285714 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
7ddcfa3a79415630bb7f0b969e1fc4fd48692a17 | 55 | py | Python | horovod/__init__.py | joequant/horovod | 0133870ef2fd92d268ccb1f4799e8d8d5b17771e | [
"Apache-2.0"
] | null | null | null | horovod/__init__.py | joequant/horovod | 0133870ef2fd92d268ccb1f4799e8d8d5b17771e | [
"Apache-2.0"
] | null | null | null | horovod/__init__.py | joequant/horovod | 0133870ef2fd92d268ccb1f4799e8d8d5b17771e | [
"Apache-2.0"
] | null | null | null | from horovod.runner import run
__version__ = '0.20.2'
| 13.75 | 30 | 0.745455 | 9 | 55 | 4.111111 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.085106 | 0.145455 | 55 | 3 | 31 | 18.333333 | 0.702128 | 0 | 0 | 0 | 0 | 0 | 0.109091 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 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 |
7ddf6f5d30cce8d25e12eef9ec9a2e2e14cdec80 | 1,027 | py | Python | server/bot.py | rawatrohan123/TCP-UDP-Centralized-Client-Server-Network | 7b17db55a2cc80246ab847df9b39a249fbd58dfc | [
"FTL"
] | null | null | null | server/bot.py | rawatrohan123/TCP-UDP-Centralized-Client-Server-Network | 7b17db55a2cc80246ab847df9b39a249fbd58dfc | [
"FTL"
] | null | null | null | server/bot.py | rawatrohan123/TCP-UDP-Centralized-Client-Server-Network | 7b17db55a2cc80246ab847df9b39a249fbd58dfc | [
"FTL"
] | null | null | null | from hashlib import sha1
class Bot():
def __init__(self, name, client_id):
self.name = name
self.client_id = client_id
self.token = self.create_token(client_id, name)
self.permissions = 0
self.users = []
def create_token(self, client_id, name):
token_name = str... | 25.04878 | 55 | 0.607595 | 125 | 1,027 | 4.832 | 0.416 | 0.07947 | 0.094371 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014184 | 0.313535 | 1,027 | 41 | 56 | 25.04878 | 0.842553 | 0.10224 | 0 | 0.172414 | 0 | 0 | 0.015217 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.275862 | false | 0 | 0.034483 | 0.103448 | 0.551724 | 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 |
7df04fc89971cbeacfc8f34b055eeec938307a26 | 7,220 | py | Python | pilot/user/generic/common.py | brinick/pilot2 | edc70d39840c44ef6515fc16e0aaeeb091c05c51 | [
"Apache-2.0"
] | null | null | null | pilot/user/generic/common.py | brinick/pilot2 | edc70d39840c44ef6515fc16e0aaeeb091c05c51 | [
"Apache-2.0"
] | 3 | 2021-08-11T14:37:20.000Z | 2021-11-08T12:14:41.000Z | pilot/user/generic/common.py | brinick/pilot2 | edc70d39840c44ef6515fc16e0aaeeb091c05c51 | [
"Apache-2.0"
] | 1 | 2021-08-10T13:40:52.000Z | 2021-08-10T13:40:52.000Z | #!/usr/bin/env python
# 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
#
# Authors:
# - Paul Nilsson, paul.nilsson@cern.ch, 2017-2020
import os
from... | 27.876448 | 122 | 0.693906 | 992 | 7,220 | 4.96371 | 0.269153 | 0.021933 | 0.017872 | 0.02762 | 0.130788 | 0.098294 | 0.058083 | 0.039399 | 0 | 0 | 0 | 0.004815 | 0.223407 | 7,220 | 258 | 123 | 27.984496 | 0.873373 | 0.627147 | 0 | 0.229508 | 0 | 0 | 0.05 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.262295 | false | 0.098361 | 0.131148 | 0 | 0.57377 | 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 | 0 | 1 | 0 | 0 | 3 |
81492ef947a4e15be526b3f9abb79b3c34be5166 | 3,185 | py | Python | core/evaluation/labels.py | nicolay-r/attitudes-extraction-ds | 49a82843e6adbca35321aaaa08d05532e953a0fc | [
"MIT"
] | 3 | 2019-11-05T19:42:55.000Z | 2021-02-25T12:14:17.000Z | core/evaluation/labels.py | nicolay-r/attitudes-extraction-ds | 49a82843e6adbca35321aaaa08d05532e953a0fc | [
"MIT"
] | 1 | 2021-03-30T07:41:22.000Z | 2021-03-30T07:41:22.000Z | core/evaluation/labels.py | nicolay-r/attitudes-extraction-ds | 49a82843e6adbca35321aaaa08d05532e953a0fc | [
"MIT"
] | 1 | 2019-08-18T18:33:11.000Z | 2019-08-18T18:33:11.000Z |
class Label:
@staticmethod
def from_str(value):
for l in Label._get_supported_labels():
if l.to_str() == value:
return l
raise Exception("Label by value '{}' doesn't supported".format(value))
@staticmethod
def from_int(value):
assert(isinstance(val... | 23.419118 | 87 | 0.596232 | 388 | 3,185 | 4.670103 | 0.149485 | 0.041391 | 0.029801 | 0.033113 | 0.558499 | 0.461921 | 0.381347 | 0.338852 | 0.262693 | 0.262693 | 0 | 0.004433 | 0.29168 | 3,185 | 135 | 88 | 23.592593 | 0.798759 | 0 | 0 | 0.46875 | 0 | 0 | 0.066939 | 0 | 0 | 0 | 0 | 0 | 0.072917 | 1 | 0.291667 | false | 0 | 0 | 0.166667 | 0.59375 | 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 |
81503feec7095f47d41b850bf985eb9ee4ab8016 | 1,346 | py | Python | src/tests/system/t374.py | ArtemovSA/PyMite | a22fbae773b285ccf4993905a46dd396cb762f69 | [
"OLDAP-2.6",
"Python-2.0"
] | 51 | 2015-03-24T07:53:03.000Z | 2021-08-06T12:55:53.000Z | src/tests/system/t374.py | ArtemovSA/PyMite | a22fbae773b285ccf4993905a46dd396cb762f69 | [
"OLDAP-2.6",
"Python-2.0"
] | null | null | null | src/tests/system/t374.py | ArtemovSA/PyMite | a22fbae773b285ccf4993905a46dd396cb762f69 | [
"OLDAP-2.6",
"Python-2.0"
] | 15 | 2015-04-09T14:17:27.000Z | 2022-01-26T02:42:47.000Z | # This file is Copyright 2010 Dean Hall.
#
# This file is part of the Python-on-a-Chip program.
# Python-on-a-Chip is free software: you can redistribute it and/or modify
# it under the terms of the GNU LESSER GENERAL PUBLIC LICENSE Version 2.1.
#
# Python-on-a-Chip is distributed in the hope that it will be useful,
# ... | 23.206897 | 76 | 0.659733 | 217 | 1,346 | 3.907834 | 0.506912 | 0.028302 | 0.03184 | 0.045991 | 0.221698 | 0.186321 | 0.186321 | 0.186321 | 0.186321 | 0.101415 | 0 | 0.021443 | 0.237741 | 1,346 | 57 | 77 | 23.614035 | 0.805068 | 0.817979 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.125 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
8172c6713c5426d74570c70e7147a132ddbc35d1 | 2,443 | py | Python | testemunhoweb/consulta/agenda.py | danielcamilo13/testemunhoWEB | 46825e31123058fa6ee21e4e71e9e0bedde32bb4 | [
"bzip2-1.0.6"
] | 1 | 2019-12-03T01:37:13.000Z | 2019-12-03T01:37:13.000Z | testemunhoweb/consulta/agenda.py | danielcamilo13/testemunhoWEB | 46825e31123058fa6ee21e4e71e9e0bedde32bb4 | [
"bzip2-1.0.6"
] | 11 | 2020-06-06T01:28:35.000Z | 2022-03-12T00:16:34.000Z | testemunhoweb/consulta/agenda.py | danielcamilo13/testemunhoWEB | 46825e31123058fa6ee21e4e71e9e0bedde32bb4 | [
"bzip2-1.0.6"
] | null | null | null | from django.shortcuts import render
from django.http import HttpResponseRedirect,HttpResponse
from django_ical.views import ICalFeed
from cadastro.models import designacao
from calendario.models import calendario
class EventFeed(ICalFeed):
"""
A simple event calender
"""
product_id = '-//example.com//... | 26.846154 | 70 | 0.636922 | 295 | 2,443 | 5.145763 | 0.291525 | 0.055336 | 0.073781 | 0.059289 | 0.606061 | 0.583663 | 0.499341 | 0.45191 | 0.26087 | 0.200264 | 0 | 0 | 0.255424 | 2,443 | 90 | 71 | 27.144444 | 0.834524 | 0.009415 | 0 | 0 | 0 | 0 | 0.128764 | 0.028037 | 0 | 0 | 0 | 0 | 0 | 1 | 0.307692 | false | 0 | 0.192308 | 0.269231 | 0.961538 | 0.038462 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
818194d135ee36d074b58dd07e4b8041f4f73c92 | 250 | py | Python | replicat/tests/conftest.py | vaultah/replicat | 7d533066dcff88fa1f1dfc565cfe1afec965dde8 | [
"MIT"
] | null | null | null | replicat/tests/conftest.py | vaultah/replicat | 7d533066dcff88fa1f1dfc565cfe1afec965dde8 | [
"MIT"
] | 1 | 2022-02-09T01:39:06.000Z | 2022-02-09T01:39:06.000Z | replicat/tests/conftest.py | vaultah/replicat | 7d533066dcff88fa1f1dfc565cfe1afec965dde8 | [
"MIT"
] | null | null | null | from types import SimpleNamespace
import pytest
from replicat.backends import local
@pytest.fixture
def local_backend(tmpdir):
return local.Client(tmpdir)
@pytest.fixture
def args():
return SimpleNamespace(concurrent=5, progress=False)
| 15.625 | 56 | 0.784 | 31 | 250 | 6.290323 | 0.612903 | 0.133333 | 0.164103 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004651 | 0.14 | 250 | 15 | 57 | 16.666667 | 0.902326 | 0 | 0 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.333333 | 0.222222 | 0.777778 | 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 | 1 | 0 | 0 | 0 | 3 |
818a5e0e9866468a919e745df28720df2d4d5c80 | 100 | py | Python | mysite/greenhouse/apps.py | martinloland/greenhouse | 53ac2f99f20ea0e3b2fd694d6aca317cce7cfea7 | [
"MIT"
] | 1 | 2020-02-11T20:44:53.000Z | 2020-02-11T20:44:53.000Z | mysite/greenhouse/apps.py | martinloland/greenhouse | 53ac2f99f20ea0e3b2fd694d6aca317cce7cfea7 | [
"MIT"
] | null | null | null | mysite/greenhouse/apps.py | martinloland/greenhouse | 53ac2f99f20ea0e3b2fd694d6aca317cce7cfea7 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class GreenhouseConfig(AppConfig):
name = 'greenhouse'
| 16.666667 | 35 | 0.73 | 10 | 100 | 7.3 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 100 | 5 | 36 | 20 | 0.9125 | 0 | 0 | 0 | 0 | 0 | 0.105263 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
8195a51cd9c97c6ad5fda3a04cd8a0e2f15e7121 | 7,790 | py | Python | hds_821pr/hex.py | ragingcomputer/hds_821pr | 06ab823f0f9fd1c3347f25aed46a89ada37ef38e | [
"MIT"
] | 7 | 2018-12-12T13:11:54.000Z | 2020-10-03T18:36:45.000Z | hds_821pr/hex.py | ragingcomputer/hds_821pr | 06ab823f0f9fd1c3347f25aed46a89ada37ef38e | [
"MIT"
] | null | null | null | hds_821pr/hex.py | ragingcomputer/hds_821pr | 06ab823f0f9fd1c3347f25aed46a89ada37ef38e | [
"MIT"
] | 2 | 2020-01-11T22:17:51.000Z | 2020-06-10T06:30:35.000Z | import serial # pylint: disable=import-error
import time
import logging
_LOGGER = logging.getLogger(__name__)
class Hex(object):
def __init__(self, port):
self.port = port
self.ser = serial.Serial(port,
baudrate=115200,
bytesize=... | 39.145729 | 101 | 0.555584 | 939 | 7,790 | 4.444089 | 0.134185 | 0.266475 | 0.32207 | 0.325905 | 0.469446 | 0.365205 | 0.335011 | 0.312485 | 0.210879 | 0.150731 | 0 | 0.19102 | 0.325289 | 7,790 | 198 | 102 | 39.343434 | 0.60293 | 0.010141 | 0 | 0.241379 | 0 | 0 | 0.048391 | 0 | 0 | 0 | 0.170343 | 0 | 0 | 1 | 0.109195 | false | 0 | 0.017241 | 0 | 0.241379 | 0.022989 | 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 |
81b3414b355d2c0441861a436cd45c7a2aa5a66e | 392 | py | Python | lecture08/exercise08-A/template.py | nd-cse-34872-su21/cse-34872-su21-examples | 0294bb0964b502bbb8541054977988c4a3b49dab | [
"MIT"
] | 2 | 2020-06-01T16:46:39.000Z | 2020-12-01T21:50:12.000Z | lecture08/02_climbing_stairs/template.py | nd-cse-34872-su20/cse-34872-su20-examples | 683039c19b2e2bd0c3c28713b73e46a9deaa227c | [
"MIT"
] | null | null | null | lecture08/02_climbing_stairs/template.py | nd-cse-34872-su20/cse-34872-su20-examples | 683039c19b2e2bd0c3c28713b73e46a9deaa227c | [
"MIT"
] | 6 | 2020-06-03T23:56:26.000Z | 2020-08-26T15:05:17.000Z | #!/usr/bin/env python3
import sys
# Functions
def count_steps(n, cache={}):
# TODO: Determine number of distinct ways to climb n steps using only
# increments of 1 or 2 steps at a time.
return 0
def main():
for n in map(int, sys.stdin):
print(count_steps(n))
# Main Executio
if __name__ == ... | 17.818182 | 73 | 0.65051 | 65 | 392 | 3.769231 | 0.784615 | 0.081633 | 0.089796 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023411 | 0.237245 | 392 | 21 | 74 | 18.666667 | 0.795987 | 0.502551 | 0 | 0 | 0 | 0 | 0.042328 | 0 | 0 | 0 | 0 | 0.047619 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0.125 | 0.5 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 3 |
81b6557f71d0b4b4eab5bbc6b79888a80d70d62c | 622 | py | Python | datahub/sql/apis/schemas/responses/gcp/create_dataset_response.py | Chronicles-of-AI/osiris | c71b1324ed270caa3724c0a8c58c4883b28dc19c | [
"Apache-2.0"
] | 3 | 2021-08-03T08:13:40.000Z | 2022-02-23T04:27:30.000Z | datahub/sql/apis/schemas/responses/gcp/create_dataset_response.py | Chronicles-of-AI/osiris | c71b1324ed270caa3724c0a8c58c4883b28dc19c | [
"Apache-2.0"
] | null | null | null | datahub/sql/apis/schemas/responses/gcp/create_dataset_response.py | Chronicles-of-AI/osiris | c71b1324ed270caa3724c0a8c58c4883b28dc19c | [
"Apache-2.0"
] | null | null | null | from typing import List
from pydantic import BaseModel
class CreateTextClassificationDataset(BaseModel):
project_id: str
display_name: str
region: str
multi_label: bool = False
class CreateNERDataset(BaseModel):
project_id: str
display_name: str
region: str
class CreateImageClassificat... | 18.294118 | 50 | 0.741158 | 69 | 622 | 6.507246 | 0.333333 | 0.055679 | 0.160356 | 0.187082 | 0.521158 | 0.521158 | 0.521158 | 0.521158 | 0.521158 | 0.521158 | 0 | 0 | 0.205788 | 622 | 33 | 51 | 18.848485 | 0.908907 | 0 | 0 | 0.608696 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.086957 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
81c9a1e8c8b6242a065bcbed7260729cb41c2158 | 1,869 | py | Python | CodeGenerator.py | ideaworld/Monkey | 4867598bddb142a82adb7460e35fb5836be2e219 | [
"MIT"
] | 1 | 2017-08-01T03:30:08.000Z | 2017-08-01T03:30:08.000Z | CodeGenerator.py | ideaworld/Monkey | 4867598bddb142a82adb7460e35fb5836be2e219 | [
"MIT"
] | null | null | null | CodeGenerator.py | ideaworld/Monkey | 4867598bddb142a82adb7460e35fb5836be2e219 | [
"MIT"
] | null | null | null | def Prefer(value="PhantomJS"):
return True, "driver = webdriver.%s()\n" % value
def Patient(value=0):
return True, ""
def Visit(value=""):
if len(value) > 0:
return True, "driver.get('%s')\n" % value
else:
return False, "Wrong URL"
def Blind(value=True):
return True, ""
def judge... | 27.485294 | 82 | 0.590155 | 258 | 1,869 | 4.112403 | 0.217054 | 0.113101 | 0.075401 | 0.06409 | 0.324222 | 0.302545 | 0.215834 | 0.131008 | 0.131008 | 0.131008 | 0 | 0.003551 | 0.246656 | 1,869 | 68 | 83 | 27.485294 | 0.75 | 0 | 0 | 0.303571 | 0 | 0 | 0.206952 | 0.082353 | 0 | 0 | 0 | 0 | 0.035714 | 1 | 0.232143 | false | 0 | 0 | 0.125 | 0.571429 | 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 |
81ce9289a032a5fb59aa285867978ee14fb43836 | 2,229 | py | Python | dicetables/dicerecord.py | eric-s-s/share-with-z | 60a4c9788085ba55c6214114447e1c16bc49f7ce | [
"MIT"
] | 5 | 2016-07-29T18:28:04.000Z | 2019-06-17T19:49:11.000Z | dicetables/dicerecord.py | eric-s-s/dice-tables | 60a4c9788085ba55c6214114447e1c16bc49f7ce | [
"MIT"
] | 16 | 2015-11-12T02:13:30.000Z | 2020-12-05T21:35:00.000Z | dicetables/dicerecord.py | eric-s-s/dice-tables | 60a4c9788085ba55c6214114447e1c16bc49f7ce | [
"MIT"
] | null | null | null | """
An immutable record of dice added to and removed from DiceTable
"""
from typing import Dict
from dicetables.eventsbases.eventerrors import DiceRecordError
from dicetables.eventsbases.protodie import ProtoDie
class RecordVerifier(object):
@staticmethod
def check_types(die_input):
if any(not isinst... | 31.842857 | 120 | 0.660834 | 284 | 2,229 | 4.985915 | 0.260563 | 0.042373 | 0.039548 | 0.021186 | 0.20339 | 0.125706 | 0.125706 | 0.125706 | 0.125706 | 0.125706 | 0 | 0.001755 | 0.233288 | 2,229 | 69 | 121 | 32.304348 | 0.826799 | 0.028264 | 0 | 0.183673 | 0 | 0 | 0.090825 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.265306 | false | 0 | 0.061224 | 0.122449 | 0.571429 | 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 |
c49cadec119efa87e6c3c5ad5946f6586ebe1866 | 47 | py | Python | my_services/version.py | padamstx/my-python-sdk | 771989c8b2b9a320344a876398a2b5e95cf21603 | [
"Apache-2.0"
] | null | null | null | my_services/version.py | padamstx/my-python-sdk | 771989c8b2b9a320344a876398a2b5e95cf21603 | [
"Apache-2.0"
] | null | null | null | my_services/version.py | padamstx/my-python-sdk | 771989c8b2b9a320344a876398a2b5e95cf21603 | [
"Apache-2.0"
] | 2 | 2019-11-02T08:03:09.000Z | 2020-06-29T14:52:15.000Z | """
Version of mysdk
"""
__version__ = '0.0.1'
| 9.4 | 21 | 0.595745 | 7 | 47 | 3.428571 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 0.170213 | 47 | 4 | 22 | 11.75 | 0.538462 | 0.340426 | 0 | 0 | 0 | 0 | 0.217391 | 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 |
c4ac06b5d1de5ba69b0f3867bb41cf9e2372a108 | 10,763 | py | Python | backend/api/tests/test_models.py | 12xiaoni/text-label | 7456c5e73d32bcfc81a02be7e0d748f162934d35 | [
"MIT"
] | null | null | null | backend/api/tests/test_models.py | 12xiaoni/text-label | 7456c5e73d32bcfc81a02be7e0d748f162934d35 | [
"MIT"
] | null | null | null | backend/api/tests/test_models.py | 12xiaoni/text-label | 7456c5e73d32bcfc81a02be7e0d748f162934d35 | [
"MIT"
] | null | null | null | from django.core.exceptions import ValidationError
from django.db.utils import IntegrityError
from django.test import TestCase
from model_mommy import mommy
from ..models import (SEQUENCE_LABELING, Category, CategoryType, ExampleState,
Span, SpanType, TextLabel, generate_random_hex_color)
from .a... | 44.659751 | 118 | 0.668587 | 1,310 | 10,763 | 5.306107 | 0.10687 | 0.05956 | 0.046037 | 0.046037 | 0.783772 | 0.745648 | 0.713566 | 0.698029 | 0.628974 | 0.619623 | 0 | 0.015031 | 0.214996 | 10,763 | 240 | 119 | 44.845833 | 0.80767 | 0 | 0 | 0.431579 | 0 | 0 | 0.043482 | 0 | 0 | 0 | 0 | 0 | 0.105263 | 1 | 0.163158 | false | 0 | 0.031579 | 0 | 0.242105 | 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 |
c4b917cac2cdfe06e09cabe8626faa1be76d3037 | 283 | py | Python | socialmeter/classif/radius_neighbors.py | areteCocoa/SocialMeter | 11b1de2402c55ad7b5281ddda870516603e784f3 | [
"Apache-2.0",
"MIT"
] | 1 | 2017-10-19T15:25:00.000Z | 2017-10-19T15:25:00.000Z | socialmeter/classif/radius_neighbors.py | areteCocoa/SocialMeter | 11b1de2402c55ad7b5281ddda870516603e784f3 | [
"Apache-2.0",
"MIT"
] | null | null | null | socialmeter/classif/radius_neighbors.py | areteCocoa/SocialMeter | 11b1de2402c55ad7b5281ddda870516603e784f3 | [
"Apache-2.0",
"MIT"
] | null | null | null | # radius_neighbors.py
from .base import SKLearnClassifierModule
from sklearn.neighbors import RadiusNeighborsClassifier
class RadiusNeighborsModule(SKLearnClassifierModule):
def __init__(self):
super().__init__()
self.classifier = RadiusNeighborsClassifier()
| 23.583333 | 55 | 0.784452 | 23 | 283 | 9.26087 | 0.695652 | 0.075117 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.14841 | 283 | 11 | 56 | 25.727273 | 0.883817 | 0.067138 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.666667 | 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 |
c4beebe2acd5f5ef217e3582cbc1a99f20e1b984 | 181 | py | Python | Modulo_4/semana 2/miercoles/servicioweb/tablero/urls.py | AutodidactaMx/cocid_python | 11628f465ff362807a692c79ede26bf30dd8e26a | [
"MIT"
] | null | null | null | Modulo_4/semana 2/miercoles/servicioweb/tablero/urls.py | AutodidactaMx/cocid_python | 11628f465ff362807a692c79ede26bf30dd8e26a | [
"MIT"
] | null | null | null | Modulo_4/semana 2/miercoles/servicioweb/tablero/urls.py | AutodidactaMx/cocid_python | 11628f465ff362807a692c79ede26bf30dd8e26a | [
"MIT"
] | 1 | 2022-03-04T00:57:18.000Z | 2022-03-04T00:57:18.000Z | from django.urls import path
from . import views
urlpatterns = [
path('ventas', views.mostrar_formulario),
path('estilos', views.estilo_form),
]
| 20.111111 | 53 | 0.607735 | 19 | 181 | 5.684211 | 0.684211 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.287293 | 181 | 8 | 54 | 22.625 | 0.837209 | 0 | 0 | 0 | 0 | 0 | 0.071823 | 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 |
c4e08a24fb347aca34caf976b310c09f82e1d139 | 171 | py | Python | solution/lc319.py | sth4nothing/pyleetcode | 70ac2dc55b0cbcd243b38103a96dd796538a3c05 | [
"MIT"
] | null | null | null | solution/lc319.py | sth4nothing/pyleetcode | 70ac2dc55b0cbcd243b38103a96dd796538a3c05 | [
"MIT"
] | null | null | null | solution/lc319.py | sth4nothing/pyleetcode | 70ac2dc55b0cbcd243b38103a96dd796538a3c05 | [
"MIT"
] | null | null | null | class Solution(object):
def bulbSwitch(self, n):
"""
:type n: int
:rtype: int
"""
import math
return int(math.sqrt(n))
| 19 | 32 | 0.473684 | 19 | 171 | 4.263158 | 0.736842 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.397661 | 171 | 8 | 33 | 21.375 | 0.786408 | 0.140351 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
c4e61087ac565b5318ea31353b89b476dc5d3eb7 | 1,809 | py | Python | credential.py | grooviq/password | e271622371bc1c718d7814e09a6bf354de7912fd | [
"MIT",
"Unlicense"
] | null | null | null | credential.py | grooviq/password | e271622371bc1c718d7814e09a6bf354de7912fd | [
"MIT",
"Unlicense"
] | null | null | null | credential.py | grooviq/password | e271622371bc1c718d7814e09a6bf354de7912fd | [
"MIT",
"Unlicense"
] | null | null | null | import random
class Credential:
"""
class that generates new prompt requirements of user credentials
"""
def __init__(self, accountName, email, username, password):
self.accountName = accountName
self.email = email
self.username = username
self.password = password
... | 25.842857 | 77 | 0.557214 | 184 | 1,809 | 5.358696 | 0.402174 | 0.064909 | 0.033469 | 0.024341 | 0.109533 | 0.109533 | 0.109533 | 0.109533 | 0.109533 | 0.109533 | 0 | 0.009557 | 0.363737 | 1,809 | 70 | 78 | 25.842857 | 0.847089 | 0.229961 | 0 | 0.235294 | 1 | 0 | 0.001668 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.205882 | false | 0.147059 | 0.029412 | 0 | 0.441176 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
c4f2a2cedaae5126e954955010cb7d6730b35317 | 151 | py | Python | boa_test/example/MethodTest.py | EdgeDLT/neo-boa | d238ffb4264ff62b35066159c7ead7115f3bf78c | [
"MIT"
] | 79 | 2017-10-22T03:35:06.000Z | 2021-12-02T10:28:06.000Z | boa_test/example/MethodTest.py | EdgeDLT/neo-boa | d238ffb4264ff62b35066159c7ead7115f3bf78c | [
"MIT"
] | 122 | 2017-10-19T12:34:08.000Z | 2020-08-20T12:38:17.000Z | boa_test/example/MethodTest.py | EdgeDLT/neo-boa | d238ffb4264ff62b35066159c7ead7115f3bf78c | [
"MIT"
] | 76 | 2017-10-19T05:09:55.000Z | 2020-12-08T12:03:59.000Z | # tested
def Main(b1, b2):
q = 4
c2 = add_things(b1, b2)
return q + c2
def add_things(a, b):
result = a + b
return result
| 8.388889 | 27 | 0.523179 | 25 | 151 | 3.08 | 0.56 | 0.103896 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.072917 | 0.364238 | 151 | 17 | 28 | 8.882353 | 0.729167 | 0.039735 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0 | 0 | 0.571429 | 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 |
c4fd433bde3e49878bc41c23fca756f44cbc6241 | 234 | py | Python | Wrapping/Python/vtk/common.py | SCS-B3C/VTK5.6 | d4afb224f638c1f7e847b0cd3195ea8a977bb602 | [
"BSD-3-Clause"
] | 2 | 2015-07-11T13:30:23.000Z | 2017-12-19T05:23:38.000Z | Wrapping/Python/vtk/common.py | garyc618/GitTagBug | 0b1cdbf5a6f6b9b23fa03ff1d9f4a84953831864 | [
"BSD-3-Clause"
] | null | null | null | Wrapping/Python/vtk/common.py | garyc618/GitTagBug | 0b1cdbf5a6f6b9b23fa03ff1d9f4a84953831864 | [
"BSD-3-Clause"
] | 3 | 2015-05-14T21:18:53.000Z | 2022-03-07T02:53:45.000Z | """ This module loads all the classes from the VTK Common library into its
namespace. This is a required module."""
import os
if os.name == 'posix':
from libvtkCommonPython import *
else:
from vtkCommonPython import *
| 21.272727 | 74 | 0.709402 | 32 | 234 | 5.1875 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.217949 | 234 | 10 | 75 | 23.4 | 0.907104 | 0.465812 | 0 | 0 | 0 | 0 | 0.042373 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.6 | 0 | 0.6 | 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 |
f22885d6ee7a28b73140f6c92a12ed3a63deab4d | 464 | py | Python | wrappers/python/puccini/go.py | amarchese96/puccini | 1c674dc429a27c35ef0dd1d8b86545160593dcf2 | [
"Apache-2.0"
] | 78 | 2018-06-12T01:13:44.000Z | 2022-03-23T06:38:15.000Z | wrappers/python/puccini/go.py | amarchese96/puccini | 1c674dc429a27c35ef0dd1d8b86545160593dcf2 | [
"Apache-2.0"
] | 79 | 2018-06-26T14:40:44.000Z | 2022-03-08T09:46:04.000Z | wrappers/python/puccini/go.py | amarchese96/puccini | 1c674dc429a27c35ef0dd1d8b86545160593dcf2 | [
"Apache-2.0"
] | 28 | 2018-06-25T13:38:09.000Z | 2022-03-28T14:36:47.000Z |
import ctypes
# See: https://medium.com/learning-the-go-programming-language/calling-go-functions-from-other-languages-4c7d8bcc69bf
class GoString(ctypes.Structure):
_fields_ = (('p', ctypes.c_char_p), ('n', ctypes.c_longlong))
def __init__(self, s):
self.p = str.encode(s)
self.n = len(s)
... | 24.421053 | 117 | 0.665948 | 72 | 464 | 4.041667 | 0.527778 | 0.072165 | 0.061856 | 0.082474 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013055 | 0.174569 | 464 | 18 | 118 | 25.777778 | 0.746736 | 0.247845 | 0 | 0 | 0 | 0 | 0.00578 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0.1 | 0.2 | 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 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
1ef23a1f65e9c41208a3a18958a6ba14a7ec4a65 | 270 | py | Python | cli/sgh_new.py | SorenTech/secure-GitHub | c1b1a369f25dc746b87d9dbeec69d519da5eb96f | [
"MIT"
] | 3 | 2021-04-15T17:07:18.000Z | 2021-06-12T08:56:39.000Z | cli/sgh_new.py | SorenTech/secure-GitHub | c1b1a369f25dc746b87d9dbeec69d519da5eb96f | [
"MIT"
] | null | null | null | cli/sgh_new.py | SorenTech/secure-GitHub | c1b1a369f25dc746b87d9dbeec69d519da5eb96f | [
"MIT"
] | null | null | null | # Command for creating new repos, contributors, codeowners, or keys (GPG and/or SSH)
# Parses argument to determine which item we are creating, then runs relevant API and/or local scripts from the library
# Reports back status to base sgh command for output to the user
| 67.5 | 119 | 0.788889 | 45 | 270 | 4.733333 | 0.8 | 0.093897 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.17037 | 270 | 3 | 120 | 90 | 0.950893 | 0.974074 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
480abb78c4fe23976927bed1f39f2c4b41cfac40 | 259 | py | Python | src/typeDefs/section_1_9/section_1_9.py | dheerajgupta0001/wrldc_mis_monthly_report_generator | dd5ae6f28ec6bf8e6532820fd71dd63f8b223f0b | [
"MIT"
] | null | null | null | src/typeDefs/section_1_9/section_1_9.py | dheerajgupta0001/wrldc_mis_monthly_report_generator | dd5ae6f28ec6bf8e6532820fd71dd63f8b223f0b | [
"MIT"
] | null | null | null | src/typeDefs/section_1_9/section_1_9.py | dheerajgupta0001/wrldc_mis_monthly_report_generator | dd5ae6f28ec6bf8e6532820fd71dd63f8b223f0b | [
"MIT"
] | null | null | null | from typing import TypedDict, List
import datetime as dt
class IScheduleDrawalDetails(TypedDict):
entity: str
schedule: float
drawal: float
difference: float
class ISection_1_9(TypedDict):
schedule_drawal: List[IScheduleDrawalDetails]
| 18.5 | 49 | 0.764479 | 29 | 259 | 6.724138 | 0.655172 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009434 | 0.181467 | 259 | 13 | 50 | 19.923077 | 0.910377 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.222222 | 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 |
4827ab1d2c58e2dfeb8ca08075972ba2414f4daf | 219 | py | Python | extrader/trader_msg_resolver.py | jiafeiyan/xops | fba70cc5282a040ae5f2f1266b86e12dd54edd65 | [
"Apache-2.0"
] | 1 | 2018-01-22T06:38:06.000Z | 2018-01-22T06:38:06.000Z | extrader/trader_msg_resolver.py | jiafeiyan/my_python_util | fba70cc5282a040ae5f2f1266b86e12dd54edd65 | [
"Apache-2.0"
] | null | null | null | extrader/trader_msg_resolver.py | jiafeiyan/my_python_util | fba70cc5282a040ae5f2f1266b86e12dd54edd65 | [
"Apache-2.0"
] | null | null | null | #-*- coding: UTF-8 -*-
from xmq import xmq_msg_resolver
class TraderMsgResolver(xmq_msg_resolver):
def __init__(self, handler):
xmq_msg_resolver.__init__(self)
self.handler = handler
| 18.25 | 43 | 0.6621 | 26 | 219 | 5.038462 | 0.538462 | 0.137405 | 0.320611 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006024 | 0.242009 | 219 | 11 | 44 | 19.909091 | 0.783133 | 0.09589 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.2 | 0 | 0.6 | 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 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
484e84a9d1bea419c8da48638a9a23f1bb276d7d | 77 | py | Python | pystratis/api/federation/requestmodels/__init__.py | TjadenFroyda/pyStratis | 9cc7620d7506637f8a2b84003d931eceb36ac5f2 | [
"MIT"
] | 8 | 2021-06-30T20:44:22.000Z | 2021-12-07T14:42:22.000Z | pystratis/api/federation/requestmodels/__init__.py | TjadenFroyda/pyStratis | 9cc7620d7506637f8a2b84003d931eceb36ac5f2 | [
"MIT"
] | 2 | 2021-07-01T11:50:18.000Z | 2022-01-25T18:39:49.000Z | pystratis/api/federation/requestmodels/__init__.py | TjadenFroyda/pyStratis | 9cc7620d7506637f8a2b84003d931eceb36ac5f2 | [
"MIT"
] | 4 | 2021-07-01T04:36:42.000Z | 2021-09-17T10:54:19.000Z | from .atheightrequest import AtHeightRequest
__all__ = ['AtHeightRequest']
| 15.4 | 44 | 0.805195 | 6 | 77 | 9.666667 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.116883 | 77 | 4 | 45 | 19.25 | 0.852941 | 0 | 0 | 0 | 0 | 0 | 0.194805 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 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 |
484f02cb375ba4b92b5cd77b9b94637b3ef7a522 | 161 | py | Python | hcatalog/src/test/e2e/templeton/inpdir/xmlreducer.py | WANdisco/hive | b87aca2d88dac079ea91378ecb8bf009eee4af66 | [
"Apache-2.0"
] | null | null | null | hcatalog/src/test/e2e/templeton/inpdir/xmlreducer.py | WANdisco/hive | b87aca2d88dac079ea91378ecb8bf009eee4af66 | [
"Apache-2.0"
] | null | null | null | hcatalog/src/test/e2e/templeton/inpdir/xmlreducer.py | WANdisco/hive | b87aca2d88dac079ea91378ecb8bf009eee4af66 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
import sys
for line in sys.stdin:
line = line.strip()
title, page = line.split('\t', 1)
print '%s\t%s' % ( title, page )
| 17.888889 | 40 | 0.565217 | 26 | 161 | 3.5 | 0.692308 | 0.197802 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008333 | 0.254658 | 161 | 8 | 41 | 20.125 | 0.75 | 0.124224 | 0 | 0 | 0 | 0 | 0.057143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.2 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
484f304dec974ba0d1c91053cd0027cd22fd620d | 1,576 | py | Python | demo_hospital.py | JJMinton/porter-routing | bddf9b9000716b5ef4ed46da04a03f118dd21344 | [
"MIT"
] | 1 | 2019-06-16T15:59:26.000Z | 2019-06-16T15:59:26.000Z | demo_hospital.py | JJMinton/porter-routing | bddf9b9000716b5ef4ed46da04a03f118dd21344 | [
"MIT"
] | null | null | null | demo_hospital.py | JJMinton/porter-routing | bddf9b9000716b5ef4ed46da04a03f118dd21344 | [
"MIT"
] | 3 | 2019-06-19T16:19:16.000Z | 2019-11-27T22:14:03.000Z | from datetime import datetime, timedelta
from simulator.hospital import Hospital
current_time = datetime.now()
demo1 = Hospital(
['lab', 'ward1', 'ward2'],
[
[0, 20, 14],
[20, 0, 6],
[14, 6, 0],
]
)
demo1.add_porter("Joe", 1, demo1.lab)
demo1.add_sample("KGD12", 1, demo1.locatio... | 36.651163 | 88 | 0.615482 | 232 | 1,576 | 4.103448 | 0.306034 | 0.092437 | 0.147059 | 0.198529 | 0.271008 | 0.238445 | 0.189076 | 0.189076 | 0 | 0 | 0 | 0.252756 | 0.194162 | 1,576 | 42 | 89 | 37.52381 | 0.49685 | 0 | 0 | 0 | 0 | 0 | 0.065397 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.057143 | 0 | 0.057143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 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 |
485573065252862183086e972f6f31bffb618f67 | 409 | bzl | Python | third_party/org_jetbrains.bzl | wix/exodus | dfb0c9713b07a8b6a49b548b7b543021e748d80b | [
"MIT"
] | 186 | 2019-06-05T01:02:53.000Z | 2022-03-31T10:44:19.000Z | third_party/org_jetbrains.bzl | wix/exodus | dfb0c9713b07a8b6a49b548b7b543021e748d80b | [
"MIT"
] | 25 | 2019-06-04T23:18:55.000Z | 2021-09-22T03:44:25.000Z | third_party/org_jetbrains.bzl | wix/exodus | dfb0c9713b07a8b6a49b548b7b543021e748d80b | [
"MIT"
] | 17 | 2019-06-04T18:45:19.000Z | 2022-01-20T09:40:04.000Z | load("//:import_external.bzl", import_external = "safe_wix_scala_maven_import_external")
def dependencies():
import_external(
name = "org_jetbrains_annotations",
artifact = "org.jetbrains:annotations:13.0",
artifact_sha256 = "ace2a10dc8e2d5fd34925ecac03e4988b2c0f851650c94b8cef49ba1bd111478",
... | 37.181818 | 91 | 0.787286 | 32 | 409 | 9.6875 | 0.65625 | 0.180645 | 0.148387 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.247911 | 0.122249 | 409 | 10 | 92 | 40.9 | 0.615599 | 0 | 0 | 0 | 0 | 0 | 0.589242 | 0.589242 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | true | 0 | 0.25 | 0 | 0.375 | 0 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
486d12adf118412baf8c0809cb030a0ee3a829b5 | 196 | py | Python | minigest/contabilita/apps.py | ctrlmaniac/minigest | 2bfceb57e41c872e4112e24d0e6991164846888b | [
"MIT"
] | null | null | null | minigest/contabilita/apps.py | ctrlmaniac/minigest | 2bfceb57e41c872e4112e24d0e6991164846888b | [
"MIT"
] | 1 | 2021-09-22T19:10:20.000Z | 2021-09-22T19:10:20.000Z | minigest/contabilita/apps.py | ctrlmaniac/minigest | 2bfceb57e41c872e4112e24d0e6991164846888b | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class ContabilitaConfig(AppConfig):
default_auto_field = "django.db.models.BigAutoField"
name = "minigest.contabilita"
verbose_name = "Contabilità"
| 24.5 | 56 | 0.765306 | 21 | 196 | 7 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.147959 | 196 | 7 | 57 | 28 | 0.88024 | 0 | 0 | 0 | 0 | 0 | 0.306122 | 0.147959 | 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 |
4880ed3302f04459740e745da41aaa03462b7b02 | 10,976 | py | Python | cs308_2014_TU01_Localization/Code/PC/localization.py | eyantra/cs308_2014 | c40126ec0e2a6b02a75243dcc5c7e910f96b564a | [
"MIT"
] | null | null | null | cs308_2014_TU01_Localization/Code/PC/localization.py | eyantra/cs308_2014 | c40126ec0e2a6b02a75243dcc5c7e910f96b564a | [
"MIT"
] | 1 | 2020-04-29T23:02:31.000Z | 2020-04-29T23:02:31.000Z | cs308_2014_TU01_Localization/Code/PC/localization.py | eyantra/cs308_2014 | c40126ec0e2a6b02a75243dcc5c7e910f96b564a | [
"MIT"
] | 3 | 2015-08-23T11:23:06.000Z | 2018-02-22T10:30:11.000Z | import numpy as np
from sklearn.lda import LDA
from sklearn.qda import QDA
from sklearn.naive_bayes import GaussianNB
from math import sqrt
from math import pow
import serial
import time
# =================================================================DATA===================================================... | 52.516746 | 2,703 | 0.536443 | 1,773 | 10,976 | 3.241399 | 0.165257 | 0.024883 | 0.02088 | 0.011136 | 0.086306 | 0.063511 | 0.040369 | 0.025753 | 0.01566 | 0.01566 | 0 | 0.178806 | 0.169461 | 10,976 | 208 | 2,704 | 52.769231 | 0.451624 | 0.205813 | 0 | 0.178808 | 0 | 0 | 0.091274 | 0.019365 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.05298 | null | null | 0.15894 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4882f6e454c3a938e22e7f3cbecd78d6f24a4443 | 11,803 | py | Python | item/Items.py | uuk0/mcpython-4 | 1ece49257b3067027cc43b452a2fc44908d3514c | [
"MIT"
] | 2 | 2019-08-21T08:23:45.000Z | 2019-09-25T13:20:28.000Z | item/Items.py | uuk0/mcpython-4 | 1ece49257b3067027cc43b452a2fc44908d3514c | [
"MIT"
] | 11 | 2019-08-21T08:46:01.000Z | 2021-09-08T01:18:04.000Z | item/Items.py | uuk0/mcpython-4 | 1ece49257b3067027cc43b452a2fc44908d3514c | [
"MIT"
] | 5 | 2019-08-30T08:19:57.000Z | 2019-10-26T03:31:16.000Z | """mcpython - a minecraft clone written in python licenced under MIT-licence
authors: uuk, xkcdjerry
original game by forgleman licenced under MIT-licence
minecraft by Mojang
blocks based on 1.14.4.jar of minecraft, downloaded on 20th of July, 2019"""
import factory.ItemFactory
import globals as G
import random
from ... | 78.165563 | 125 | 0.761755 | 1,220 | 11,803 | 7.252459 | 0.164754 | 0.209539 | 0.334313 | 0.41094 | 0.61641 | 0.38698 | 0.012206 | 0 | 0 | 0 | 0 | 0.007327 | 0.086503 | 11,803 | 150 | 126 | 78.686667 | 0.8133 | 0.02296 | 0 | 0.03937 | 0 | 0 | 0.185336 | 0.097961 | 0 | 0 | 0 | 0.006667 | 0 | 1 | 0.015748 | false | 0 | 0.03937 | 0 | 0.062992 | 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 |
6f9b752be39cf0aa24da4f53ad464bcd70c64aca | 104 | py | Python | lab2(p1)-bounus.py | inbar21-meet/meet2019y1lab2 | 708b8fa53a59fc3612578e0d4140bdf5a71a671d | [
"MIT"
] | null | null | null | lab2(p1)-bounus.py | inbar21-meet/meet2019y1lab2 | 708b8fa53a59fc3612578e0d4140bdf5a71a671d | [
"MIT"
] | null | null | null | lab2(p1)-bounus.py | inbar21-meet/meet2019y1lab2 | 708b8fa53a59fc3612578e0d4140bdf5a71a671d | [
"MIT"
] | null | null | null |
# coding: utf-8
# In[2]:
import turtle
# In[4]:
turtle.circle(60)
# In[5]:
turtle.mainloop
| 4.952381 | 17 | 0.567308 | 16 | 104 | 3.6875 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 0.25 | 104 | 20 | 18 | 5.2 | 0.679487 | 0.326923 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
6fa44a7a18f4e24427aa56afd4dcc0c2a670344d | 143 | py | Python | config.py | BerkayAydin/Coronavirus-Prediction-Tool | 8ef91734a36259cc282dc517be4e28b084878963 | [
"MIT"
] | null | null | null | config.py | BerkayAydin/Coronavirus-Prediction-Tool | 8ef91734a36259cc282dc517be4e28b084878963 | [
"MIT"
] | 1 | 2020-03-01T12:48:21.000Z | 2020-03-01T12:48:21.000Z | config.py | BerkayAydin/Coronavirus-Prediction-Tool | 8ef91734a36259cc282dc517be4e28b084878963 | [
"MIT"
] | null | null | null | import os
basedir = os.path.abspath(os.path.dirname(__file__))
class Config(object):
CSRF_ENABLED = True
TEMPLATES_AUTO_RELOAD = True
| 20.428571 | 52 | 0.748252 | 20 | 143 | 5 | 0.8 | 0.12 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 143 | 6 | 53 | 23.833333 | 0.826446 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.8 | 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 |
6fd7919c1310ce81929d951f62d1f1131b83f068 | 164 | py | Python | finder/apps.py | rc4594/Dbms | 57a160fd4339a884b1ce4ef75fe8489f6ff30fa2 | [
"MIT"
] | null | null | null | finder/apps.py | rc4594/Dbms | 57a160fd4339a884b1ce4ef75fe8489f6ff30fa2 | [
"MIT"
] | null | null | null | finder/apps.py | rc4594/Dbms | 57a160fd4339a884b1ce4ef75fe8489f6ff30fa2 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.apps import AppConfig
class RoomiesearchConfig(AppConfig):
name = 'roomiesearch'
| 18.222222 | 39 | 0.75 | 18 | 164 | 6.555556 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007194 | 0.152439 | 164 | 8 | 40 | 20.5 | 0.841727 | 0.128049 | 0 | 0 | 0 | 0 | 0.085106 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
6fdbaab6f2818af80fea30352d5bdc88b8b07c47 | 13,013 | py | Python | datasets.py | aarashfeizi/a-PyTorch-Tutorial-to-Object-Detection | a9e1f3092d4b8c094bff5cd0897e0e3c1e0bc9c2 | [
"MIT"
] | null | null | null | datasets.py | aarashfeizi/a-PyTorch-Tutorial-to-Object-Detection | a9e1f3092d4b8c094bff5cd0897e0e3c1e0bc9c2 | [
"MIT"
] | null | null | null | datasets.py | aarashfeizi/a-PyTorch-Tutorial-to-Object-Detection | a9e1f3092d4b8c094bff5cd0897e0e3c1e0bc9c2 | [
"MIT"
] | null | null | null | import pandas as pd
import torch
from torch.utils.data import Dataset
import json
import os
from PIL import Image
from utils import transform
import numpy as np
class PascalVOCDataset(Dataset):
"""
A PyTorch Dataset class to be used in a PyTorch DataLoader to create batches.
"""
def __init__(self, dat... | 36.864023 | 125 | 0.592408 | 1,692 | 13,013 | 4.394799 | 0.099291 | 0.072485 | 0.02582 | 0.021786 | 0.776493 | 0.760758 | 0.706697 | 0.693249 | 0.666756 | 0.64766 | 0 | 0.007409 | 0.30508 | 13,013 | 352 | 126 | 36.96875 | 0.814884 | 0.267194 | 0 | 0.47619 | 0 | 0 | 0.017232 | 0 | 0 | 0 | 0 | 0 | 0.058201 | 1 | 0.079365 | false | 0 | 0.042328 | 0.021164 | 0.201058 | 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 |
6ff6e77ef7b753483c5e6107af1e167173a4c94f | 5,389 | py | Python | src/zycelium/ansiformat/palette.py | zycelium/python-ansiformat | 671f25002d61cef520c9f81ce6c9cd37fecaa4e0 | [
"BSD-3-Clause"
] | null | null | null | src/zycelium/ansiformat/palette.py | zycelium/python-ansiformat | 671f25002d61cef520c9f81ce6c9cd37fecaa4e0 | [
"BSD-3-Clause"
] | null | null | null | src/zycelium/ansiformat/palette.py | zycelium/python-ansiformat | 671f25002d61cef520c9f81ce6c9cd37fecaa4e0 | [
"BSD-3-Clause"
] | null | null | null | class AnsiPalette(object):
@property
def versitile_16(self):
"""
https://lospec.com/palette-list/versitle-16
"""
return [
"#0c0b0f",
"#af3f52",
"#5f3959",
"#2e2937",
"#905c9a",
"#d78d42",
"#93593b... | 21.556 | 55 | 0.311189 | 291 | 5,389 | 5.742268 | 0.704467 | 0.059246 | 0.08079 | 0.096948 | 0.156194 | 0.156194 | 0 | 0 | 0 | 0 | 0 | 0.281481 | 0.52403 | 5,389 | 249 | 56 | 21.64257 | 0.369981 | 0.071999 | 0 | 0.102804 | 0 | 0 | 0.258502 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.042056 | false | 0 | 0 | 0 | 0.088785 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 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 |
82f4f682c52db4fb182c10a9e4ecc39a2bbf65b4 | 134 | py | Python | robots/test/strategies/run_tests/tests/test_sharing/test_share2/t1.py | memristor/mep2 | bc5cddacba3d740f791f3454b8cb51bda83ce202 | [
"MIT"
] | 5 | 2018-11-27T15:15:00.000Z | 2022-02-10T21:44:13.000Z | robots/test/strategies/run_tests/tests/test_sharing/test_share2/t1.py | memristor/mep2 | bc5cddacba3d740f791f3454b8cb51bda83ce202 | [
"MIT"
] | 2 | 2018-10-20T15:48:40.000Z | 2018-11-20T05:11:33.000Z | robots/test/strategies/run_tests/tests/test_sharing/test_share2/t1.py | memristor/mep2 | bc5cddacba3d740f791f3454b8cb51bda83ce202 | [
"MIT"
] | 1 | 2020-02-07T12:44:47.000Z | 2020-02-07T12:44:47.000Z | weight=1
a=_State('a', name='var1', shared=True)
def run():
sleep(5)
send_msg('hehe')
sleep(10)
a.val = 5
sleep(10)
a.val = 8
| 12.181818 | 39 | 0.604478 | 26 | 134 | 3.038462 | 0.692308 | 0.177215 | 0.202532 | 0.278481 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.081818 | 0.179104 | 134 | 10 | 40 | 13.4 | 0.636364 | 0 | 0 | 0.222222 | 0 | 0 | 0.067164 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0 | 0 | 0.111111 | 0 | 1 | 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 | 0 | 0 | 3 |
82fea963009a3fa53e061fc923eb92ec1e35b35f | 1,405 | py | Python | src/TheLanguage/Parser/Names/NameParserInfo.py | davidbrownell/DavidBrownell_TheLanguage | 07170b448a0ebd7fa2325c9ccd4cefdb3cf7eb98 | [
"BSL-1.0"
] | null | null | null | src/TheLanguage/Parser/Names/NameParserInfo.py | davidbrownell/DavidBrownell_TheLanguage | 07170b448a0ebd7fa2325c9ccd4cefdb3cf7eb98 | [
"BSL-1.0"
] | null | null | null | src/TheLanguage/Parser/Names/NameParserInfo.py | davidbrownell/DavidBrownell_TheLanguage | 07170b448a0ebd7fa2325c9ccd4cefdb3cf7eb98 | [
"BSL-1.0"
] | 1 | 2021-06-18T18:58:57.000Z | 2021-06-18T18:58:57.000Z | # ----------------------------------------------------------------------
# |
# | NameParserInfo.py
# |
# | David Brownell <db@DavidBrownell.com>
# | 2021-09-30 13:00:15
# |
# ----------------------------------------------------------------------
# |
# | Copyright David Brownell 2021
# | Distributed u... | 33.452381 | 79 | 0.474021 | 105 | 1,405 | 6.228571 | 0.647619 | 0.009174 | 0.027523 | 0.036697 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020391 | 0.162278 | 1,405 | 41 | 80 | 34.268293 | 0.535259 | 0.575801 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.083333 | 0.583333 | 0 | 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 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
d21c9c60b57391f1b1f2d7229ffc6a4dd974cdb2 | 504 | py | Python | setup.py | devbis/aiorzd | 0169c2ec7e1e8d947348917e21f3adaafa9f3ed5 | [
"MIT"
] | 3 | 2017-03-05T05:21:07.000Z | 2021-07-25T08:25:17.000Z | setup.py | devbis/aiorzd | 0169c2ec7e1e8d947348917e21f3adaafa9f3ed5 | [
"MIT"
] | null | null | null | setup.py | devbis/aiorzd | 0169c2ec7e1e8d947348917e21f3adaafa9f3ed5 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
from distutils.core import setup
setup(
name='aiorzd',
version='0.3',
description='Async client for rzd.ru',
author='Ivan Belokobylskiy',
author_email='belokobylskij@gmail.com',
url='https://github.com/devbis/aiorzd/',
py_modules=['aiorzd'],
classifiers=[
... | 25.2 | 54 | 0.609127 | 56 | 504 | 5.446429 | 0.732143 | 0.186885 | 0.245902 | 0.255738 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017949 | 0.22619 | 504 | 19 | 55 | 26.526316 | 0.764103 | 0.039683 | 0 | 0 | 0 | 0 | 0.511387 | 0.047619 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.0625 | 0 | 0.0625 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d234404d1e59043ea45f3161fda422654a485301 | 1,279 | py | Python | start.py | unkcpz/aiidalab-widgets-base | 49238455148414cc72b7d5ddc8fc6e1df3b11ad0 | [
"MIT"
] | null | null | null | start.py | unkcpz/aiidalab-widgets-base | 49238455148414cc72b7d5ddc8fc6e1df3b11ad0 | [
"MIT"
] | null | null | null | start.py | unkcpz/aiidalab-widgets-base | 49238455148414cc72b7d5ddc8fc6e1df3b11ad0 | [
"MIT"
] | null | null | null | """Start page appearance."""
import ipywidgets as ipw
TEMPLATE = """
<table>
<tr>
<th style="text-align:center">Basic data objects.</th>
<th style="width:70px" rowspan=2></th>
<th style="text-align:center">Codes and computers.</th>
<th style="width:70px" rowspan=2></th>
<th style="text-align:center">Processe... | 34.567568 | 107 | 0.666145 | 188 | 1,279 | 4.452128 | 0.319149 | 0.02509 | 0.058542 | 0.117085 | 0.433692 | 0.314217 | 0.232975 | 0.232975 | 0.200717 | 0.200717 | 0 | 0.005319 | 0.118061 | 1,279 | 36 | 108 | 35.527778 | 0.736702 | 0.020328 | 0 | 0.344828 | 0 | 0.241379 | 0.834804 | 0.40818 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0 | 0.034483 | 0 | 0.103448 | 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 |
d240e48044b3cced9ce37a463feef1b54e6ec02b | 94 | py | Python | forecast/utils/view_field_definition.py | uktrade/fadmin2 | 0f774400fb816c9ca30e30b25ae542135966e185 | [
"MIT"
] | 3 | 2020-01-05T16:46:42.000Z | 2021-08-02T08:08:39.000Z | forecast/utils/view_field_definition.py | uktrade/fadmin2 | 0f774400fb816c9ca30e30b25ae542135966e185 | [
"MIT"
] | 30 | 2019-11-28T15:16:35.000Z | 2021-08-16T14:49:58.000Z | forecast/utils/view_field_definition.py | uktrade/fadmin2 | 0f774400fb816c9ca30e30b25ae542135966e185 | [
"MIT"
] | null | null | null | outturn_variance_field = "Outturn_variance"
outturn_field = "Outturn"
budget_field = "Budget"
| 23.5 | 43 | 0.808511 | 11 | 94 | 6.454545 | 0.363636 | 0.422535 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.095745 | 94 | 3 | 44 | 31.333333 | 0.835294 | 0 | 0 | 0 | 0 | 0 | 0.308511 | 0 | 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 |
d27ebf3a9ab9dff175999e24770a0f1257de9409 | 902 | py | Python | orders/migrations/0030_auto_20200601_0147.py | M4yankChoudhary/Pizza | 8cb8e3d9dc61216cc0af1f3e482cf509a643e2df | [
"MIT"
] | 1 | 2021-04-03T09:39:12.000Z | 2021-04-03T09:39:12.000Z | orders/migrations/0030_auto_20200601_0147.py | M4yankChoudhary/Pizza | 8cb8e3d9dc61216cc0af1f3e482cf509a643e2df | [
"MIT"
] | null | null | null | orders/migrations/0030_auto_20200601_0147.py | M4yankChoudhary/Pizza | 8cb8e3d9dc61216cc0af1f3e482cf509a643e2df | [
"MIT"
] | null | null | null | # Generated by Django 3.0.6 on 2020-06-01 01:47
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('orders', '0029_pizzabase_image'),
]
operations = [
migrations.AddField(
model_name='dinnerplattername',
name='dp_ima... | 26.529412 | 61 | 0.556541 | 88 | 902 | 5.545455 | 0.443182 | 0.147541 | 0.188525 | 0.221311 | 0.510246 | 0.510246 | 0.510246 | 0.510246 | 0.42418 | 0.42418 | 0 | 0.030844 | 0.317073 | 902 | 33 | 62 | 27.333333 | 0.761364 | 0.049889 | 0 | 0.444444 | 1 | 0 | 0.115789 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.037037 | 0 | 0.148148 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
963964fa5e5d265fff5b885ef7fe86f2f9e13423 | 151 | py | Python | video_info/apps.py | Michaelzhouisnotwhite/motion-detection-dashboard-restfulapi | 772064e9d2a53855488ad66b34abc2fd9edb1f7c | [
"MIT"
] | null | null | null | video_info/apps.py | Michaelzhouisnotwhite/motion-detection-dashboard-restfulapi | 772064e9d2a53855488ad66b34abc2fd9edb1f7c | [
"MIT"
] | null | null | null | video_info/apps.py | Michaelzhouisnotwhite/motion-detection-dashboard-restfulapi | 772064e9d2a53855488ad66b34abc2fd9edb1f7c | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class VideoInfoConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'video_info'
| 21.571429 | 56 | 0.768212 | 18 | 151 | 6.277778 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.145695 | 151 | 6 | 57 | 25.166667 | 0.875969 | 0 | 0 | 0 | 0 | 0 | 0.258278 | 0.192053 | 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 |
963a402b736cd5606946678d8d14d384f518214e | 320 | py | Python | avdb/views.py | iqqmuT/tsari | 343ef5cf08ee24bdb710e94c0b6fb334264e5677 | [
"MIT"
] | null | null | null | avdb/views.py | iqqmuT/tsari | 343ef5cf08ee24bdb710e94c0b6fb334264e5677 | [
"MIT"
] | 2 | 2020-02-11T22:09:10.000Z | 2020-06-05T18:02:28.000Z | avdb/views.py | iqqmuT/tsari | 343ef5cf08ee24bdb710e94c0b6fb334264e5677 | [
"MIT"
] | null | null | null | from django.shortcuts import render
from .models import Location
def start(request):
"""Starts session."""
locations = Location.objects.all()
return render(request, 'avdb/start.html', {
'locations': locations,
})
def table_test(request):
return render(request, 'avdb/table_test.html', {})
| 22.857143 | 54 | 0.678125 | 37 | 320 | 5.810811 | 0.540541 | 0.111628 | 0.176744 | 0.213953 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.184375 | 320 | 13 | 55 | 24.615385 | 0.823755 | 0.046875 | 0 | 0 | 0 | 0 | 0.147157 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 0.111111 | 0.666667 | 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 |
963d90cc5b554f39cc407e452268e99efb866bf6 | 283 | py | Python | dedupe/variables/latlong.py | eig-2017/dedupe | 7f90bcbbf345534b8692df726e9ba2479856bba1 | [
"MIT"
] | null | null | null | dedupe/variables/latlong.py | eig-2017/dedupe | 7f90bcbbf345534b8692df726e9ba2479856bba1 | [
"MIT"
] | null | null | null | dedupe/variables/latlong.py | eig-2017/dedupe | 7f90bcbbf345534b8692df726e9ba2479856bba1 | [
"MIT"
] | null | null | null | from .base import FieldType
from dedupe import predicates
from haversine import haversine
class LatLongType(FieldType) :
type = "LatLong"
_predicate_functions = [predicates.latLongGridPredicate]
@staticmethod
def comparator(x, y) :
return haversine(x, y)
| 20.214286 | 60 | 0.731449 | 30 | 283 | 6.833333 | 0.666667 | 0.019512 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.201413 | 283 | 13 | 61 | 21.769231 | 0.90708 | 0 | 0 | 0 | 0 | 0 | 0.024823 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.333333 | 0.111111 | 0.888889 | 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 |
965f1b93dc5f31dbbd6554d08de02c35e214a7ad | 269 | py | Python | utils.py | howl-anderson/tools_for_corpus_of_people_daily | 8178d9a62c356f83723d42ced60f8269eed84861 | [
"Apache-2.0"
] | 243 | 2018-09-12T01:05:03.000Z | 2022-03-30T11:25:59.000Z | utils.py | nkkkyyy/tools_for_corpus_of_people_daily | 8178d9a62c356f83723d42ced60f8269eed84861 | [
"Apache-2.0"
] | 3 | 2018-10-18T10:13:07.000Z | 2020-09-10T06:34:40.000Z | utils.py | nkkkyyy/tools_for_corpus_of_people_daily | 8178d9a62c356f83723d42ced60f8269eed84861 | [
"Apache-2.0"
] | 56 | 2018-09-11T12:56:20.000Z | 2021-11-09T04:02:00.000Z | import os
def create_if_dir_not_exists(path_dir):
if os.path.exists(path_dir):
if not os.path.isdir(path_dir):
raise ValueError("path: {} exits, but is not a directory!".format(path_dir))
else:
os.makedirs(path_dir, exist_ok=True)
| 26.9 | 88 | 0.665428 | 43 | 269 | 3.930233 | 0.534884 | 0.207101 | 0.153846 | 0.177515 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.219331 | 269 | 9 | 89 | 29.888889 | 0.804762 | 0 | 0 | 0 | 0 | 0 | 0.144981 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.285714 | 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 |
966183d0b1016daa9e546928789ad80d7ba4481f | 1,531 | py | Python | generated-libraries/python/netapp/test/test_zapi_ro_view_5_info.py | radekg/netapp-ontap-lib-get | 6445ebb071ec147ea82a486fbe9f094c56c5c40d | [
"MIT"
] | 2 | 2017-03-28T15:31:26.000Z | 2018-08-16T22:15:18.000Z | generated-libraries/python/netapp/test/test_zapi_ro_view_5_info.py | radekg/netapp-ontap-lib-get | 6445ebb071ec147ea82a486fbe9f094c56c5c40d | [
"MIT"
] | null | null | null | generated-libraries/python/netapp/test/test_zapi_ro_view_5_info.py | radekg/netapp-ontap-lib-get | 6445ebb071ec147ea82a486fbe9f094c56c5c40d | [
"MIT"
] | null | null | null | from netapp.netapp_object import NetAppObject
class TestZapiRoView5Info(NetAppObject):
"""
Contains information about the view data.
When returned as part of the output, all elements of this typedef
are reported, unless limited by a set of desired attributes
specified by the caller.
<p>
Whe... | 31.244898 | 81 | 0.641411 | 196 | 1,531 | 4.959184 | 0.55102 | 0.018519 | 0.018519 | 0.022634 | 0.05144 | 0.05144 | 0.05144 | 0 | 0 | 0 | 0 | 0.011029 | 0.289353 | 1,531 | 48 | 82 | 31.895833 | 0.882353 | 0.498367 | 0 | 0.086957 | 0 | 0 | 0.104634 | 0.035874 | 0 | 0 | 0 | 0 | 0 | 1 | 0.217391 | false | 0 | 0.043478 | 0.130435 | 0.521739 | 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 |
968669031412b827dc595d40d29a8934ea5601be | 306 | py | Python | pytype/tools/merge_pyi/test_data/redefine.pep484.py | adamcataldo/pytype | 7163e85880b52d53d58044e53157e2a21988308e | [
"Apache-2.0"
] | 15 | 2016-05-31T18:47:09.000Z | 2020-04-06T22:31:58.000Z | pytype/tools/merge_pyi/test_data/redefine.pep484.py | adamcataldo/pytype | 7163e85880b52d53d58044e53157e2a21988308e | [
"Apache-2.0"
] | 2 | 2016-06-09T20:06:57.000Z | 2017-08-07T04:09:43.000Z | pytype/tools/merge_pyi/test_data/redefine.pep484.py | adamcataldo/pytype | 7163e85880b52d53d58044e53157e2a21988308e | [
"Apache-2.0"
] | 10 | 2016-05-25T20:50:24.000Z | 2021-10-12T03:25:18.000Z | # Copyright (c) 2016 Google Inc. (under http://www.apache.org/licenses/LICENSE-2.0)
def f1(x) -> Union[int, str]:
return 1
def f1(x) -> Union[int, str]:
return 'foo'
def f2(x) -> None:
pass
def f2(x,y):
pass
def f3(x: int) -> int:
return 1+x
def f3(x: int) -> int:
return 'asd'+x
| 19.125 | 83 | 0.581699 | 56 | 306 | 3.178571 | 0.517857 | 0.05618 | 0.067416 | 0.123596 | 0.460674 | 0.460674 | 0.258427 | 0 | 0 | 0 | 0 | 0.059322 | 0.228758 | 306 | 15 | 84 | 20.4 | 0.694915 | 0.264706 | 0 | 0.5 | 0 | 0 | 0.026906 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0.166667 | 0 | 0.333333 | 0.833333 | 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 |
969eca4ac1ee671cf314d1fcdc6c8111e5b4b8d1 | 119 | py | Python | curseradio/__init__.py | shamilbi/curseradio | 4851356693d6200b153024e986c0b5c267a36e83 | [
"MIT"
] | null | null | null | curseradio/__init__.py | shamilbi/curseradio | 4851356693d6200b153024e986c0b5c267a36e83 | [
"MIT"
] | null | null | null | curseradio/__init__.py | shamilbi/curseradio | 4851356693d6200b153024e986c0b5c267a36e83 | [
"MIT"
] | null | null | null | __author__ = "Gordon Ball <gordon@chronitis.net>"
__version__ = "0.4.3"
from curseradio.curseradio import OPMLBrowser
| 23.8 | 49 | 0.781513 | 15 | 119 | 5.666667 | 0.866667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.028302 | 0.109244 | 119 | 4 | 50 | 29.75 | 0.773585 | 0 | 0 | 0 | 0 | 0 | 0.327731 | 0.184874 | 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 |
96a2a546cd61837a3aea39f139cb634499f4cb78 | 259 | py | Python | config/wasgi.py | yunmanger1/p101 | e44fed8df20d8707f3446fb6487efa6ee277716f | [
"MIT"
] | null | null | null | config/wasgi.py | yunmanger1/p101 | e44fed8df20d8707f3446fb6487efa6ee277716f | [
"MIT"
] | null | null | null | config/wasgi.py | yunmanger1/p101 | e44fed8df20d8707f3446fb6487efa6ee277716f | [
"MIT"
] | null | null | null | import os
from asgiref.wsgi import WsgiToAsgiAdapter
from channels.asgi import get_channel_layer
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "config.settings.production")
channel_layer = get_channel_layer()
application = WsgiToAsgiAdapter(channel_layer)
| 32.375 | 77 | 0.853282 | 32 | 259 | 6.65625 | 0.59375 | 0.225352 | 0.140845 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.073359 | 259 | 7 | 78 | 37 | 0.8875 | 0 | 0 | 0 | 0 | 0 | 0.185328 | 0.185328 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
96b4cb93c0097935894bd4fbf1f6025380d54c8a | 7,558 | py | Python | notes/Python/discover/discover.py | hartoyob/discover | b20c5e7a9cd8d9003b519c81165a937924d70136 | [
"MIT"
] | null | null | null | notes/Python/discover/discover.py | hartoyob/discover | b20c5e7a9cd8d9003b519c81165a937924d70136 | [
"MIT"
] | null | null | null | notes/Python/discover/discover.py | hartoyob/discover | b20c5e7a9cd8d9003b519c81165a937924d70136 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
#
# By Lee Baird
# Feel free to contact me via chat or email with any feedback or suggestions that you may have:
# leebaird@gmail.com
#
# I'm in the process of totally rewriting this script in Python specifically for Kali.
# I'm brand new to Python, so please bare with me.
#
# Special thanks to th... | 28.520755 | 163 | 0.370204 | 568 | 7,558 | 4.765845 | 0.389085 | 0.073883 | 0.039897 | 0.029922 | 0.116365 | 0.077946 | 0.05652 | 0 | 0 | 0 | 0 | 0.019404 | 0.249934 | 7,558 | 264 | 164 | 28.628788 | 0.458105 | 0.06245 | 0 | 0.349727 | 0 | 0 | 0.268671 | 0.063679 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.032787 | null | null | 0.404372 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
73949a211ca0476a1776aa2d950c68520880d8dc | 1,828 | py | Python | 14_big_image_binary.py | Sanduoo/OpenCV-Python | 8356782f65918a5193b0d2d2618d0bcb32e831d2 | [
"Apache-2.0"
] | null | null | null | 14_big_image_binary.py | Sanduoo/OpenCV-Python | 8356782f65918a5193b0d2d2618d0bcb32e831d2 | [
"Apache-2.0"
] | null | null | null | 14_big_image_binary.py | Sanduoo/OpenCV-Python | 8356782f65918a5193b0d2d2618d0bcb32e831d2 | [
"Apache-2.0"
] | null | null | null | import cv2 as cv
import numpy as np
from matplotlib import pyplot as plt
#超大图像二值化(分割)
def big_image_binary(image):
print(image.shape)
cw = 256
ch = 256
h,w = image.shape[:2]
gray = cv.cvtColor(image,cv.COLOR_BGR2GRAY)
for row in range(0,h,ch):
for col in range(0,w,cw):
roi ... | 28.5625 | 105 | 0.597374 | 300 | 1,828 | 3.56 | 0.23 | 0.04588 | 0.065543 | 0.078652 | 0.718165 | 0.718165 | 0.718165 | 0.699438 | 0.680712 | 0.678839 | 0 | 0.049853 | 0.253829 | 1,828 | 63 | 106 | 29.015873 | 0.733138 | 0.006018 | 0 | 0.666667 | 0 | 0 | 0.040771 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.058824 | 0 | 0.117647 | 0.098039 | 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 |
739b1f39639b2a5475aa91b59df3666b3b0bb500 | 282 | py | Python | rlberry/types.py | rlberry-py/rlberry | b4a8dcf17da69fc49a4d2d8b8d1a93e6cb054078 | [
"MIT"
] | 86 | 2020-11-20T21:02:27.000Z | 2022-03-07T14:57:40.000Z | rlberry/types.py | rlberry-py/rlberry | b4a8dcf17da69fc49a4d2d8b8d1a93e6cb054078 | [
"MIT"
] | 103 | 2020-11-17T12:31:21.000Z | 2022-03-28T13:46:16.000Z | rlberry/types.py | rlberry-py/rlberry | b4a8dcf17da69fc49a4d2d8b8d1a93e6cb054078 | [
"MIT"
] | 20 | 2020-11-23T01:47:50.000Z | 2022-03-25T07:45:24.000Z | import gym
from typing import Any, Callable, Mapping, Tuple, Union
from rlberry.seeding import Seeder
# either a gym.Env or a tuple containing (constructor, kwargs) to build the env
Env = Union[gym.Env, Tuple[Callable[..., gym.Env], Mapping[str, Any]]]
#
Seed = Union[Seeder, int] | 31.333333 | 79 | 0.737589 | 44 | 282 | 4.727273 | 0.568182 | 0.086538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.14539 | 282 | 9 | 80 | 31.333333 | 0.863071 | 0.27305 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.6 | 0 | 0.6 | 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 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
73a053af2fea2c8dab0c922ce20ff2636bee289b | 460 | py | Python | mpi/depreciated/p_ex00.py | timkphd/examples | 04c162ec890a1c9ba83498b275fbdc81a4704062 | [
"Unlicense"
] | 5 | 2020-11-01T00:29:22.000Z | 2022-01-24T19:09:47.000Z | mpi/depreciated/p_ex00.py | timkphd/examples | 04c162ec890a1c9ba83498b275fbdc81a4704062 | [
"Unlicense"
] | 1 | 2022-02-09T01:59:47.000Z | 2022-02-09T01:59:47.000Z | mpi/depreciated/p_ex00.py | timkphd/examples | 04c162ec890a1c9ba83498b275fbdc81a4704062 | [
"Unlicense"
] | null | null | null | #!/usr/bin/env python
import numpy
from numpy import *
import mpi
from mpi import *
import sys
#print "before",len(sys.argv),sys.argv
sys.argv = mpi.mpi_init(len(sys.argv),sys.argv)
print "after ",len(sys.argv),sys.argv
myid=mpi.mpi_comm_rank(mpi.MPI_COMM_WORLD)
numprocs=mpi.mpi_comm_size(mpi.MPI_COMM_WORLD)
print ... | 19.166667 | 48 | 0.756522 | 80 | 460 | 4.225 | 0.3625 | 0.14497 | 0.118343 | 0.16568 | 0.150888 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.11087 | 460 | 23 | 49 | 20 | 0.826406 | 0.186957 | 0 | 0 | 0 | 0 | 0.149457 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.384615 | null | null | 0.307692 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
73acd5041aa520f1bda655d636274da0bef7dbb9 | 257 | py | Python | infrastructure/recognition/__init__.py | Trapov/osu-recognition | 703822f6700896f6d3e36b9fa005609f113fef73 | [
"MIT"
] | null | null | null | infrastructure/recognition/__init__.py | Trapov/osu-recognition | 703822f6700896f6d3e36b9fa005609f113fef73 | [
"MIT"
] | 2 | 2020-09-24T19:01:18.000Z | 2020-09-24T19:31:55.000Z | infrastructure/recognition/__init__.py | Trapov/osu-recognition | 703822f6700896f6d3e36b9fa005609f113fef73 | [
"MIT"
] | 1 | 2020-03-28T16:04:00.000Z | 2020-03-28T16:04:00.000Z | from .dlib_face_detector import DlibFaceDetector
from .dlib_feature_extractor import DlibFeatureExtractor
from .numpy_distance_estimator import NumpyDistanceEstimator
__all__ = [
DlibFaceDetector,
DlibFeatureExtractor,
NumpyDistanceEstimator
] | 28.555556 | 60 | 0.844358 | 22 | 257 | 9.409091 | 0.636364 | 0.077295 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.124514 | 257 | 9 | 61 | 28.555556 | 0.92 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.375 | 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 |
73b5ee6cc38828649e79432692d2ad815adc2e00 | 105 | py | Python | SilverEngine/LearningContent/apps.py | sebroad/silver-engine | 21fbb774a1ab0e4afc8f87dfea3ffd5dc8afd96d | [
"MIT"
] | null | null | null | SilverEngine/LearningContent/apps.py | sebroad/silver-engine | 21fbb774a1ab0e4afc8f87dfea3ffd5dc8afd96d | [
"MIT"
] | null | null | null | SilverEngine/LearningContent/apps.py | sebroad/silver-engine | 21fbb774a1ab0e4afc8f87dfea3ffd5dc8afd96d | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class LearningcontentConfig(AppConfig):
name = 'LearningContent'
| 17.5 | 39 | 0.790476 | 10 | 105 | 8.3 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 105 | 5 | 40 | 21 | 0.922222 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 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 | 1 | 0 | 0 | 0 | 0 | 3 |
73ca7c3e24c57c415e988e6ac0a80ba1aad2d10e | 175 | py | Python | hacker/challenges/coding/not_chess.py | Tenebrar/codebase | 59c9a35289fb29afedad0e3edd0519b67372ef9f | [
"Unlicense"
] | 1 | 2020-04-21T11:39:25.000Z | 2020-04-21T11:39:25.000Z | hacker/challenges/coding/not_chess.py | Tenebrar/codebase | 59c9a35289fb29afedad0e3edd0519b67372ef9f | [
"Unlicense"
] | 7 | 2020-02-12T01:08:01.000Z | 2022-02-10T11:56:56.000Z | hacker/challenges/coding/not_chess.py | Tenebrar/codebase | 59c9a35289fb29afedad0e3edd0519b67372ef9f | [
"Unlicense"
] | null | null | null | from base64 import b64decode
from urllib.parse import unquote
input = 'cXVlZW4lMjdzJTIwZ2FtYml0' # Found in source of page
print(unquote(b64decode(input).decode('utf-8')))
| 25 | 61 | 0.782857 | 23 | 175 | 5.956522 | 0.782609 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.064935 | 0.12 | 175 | 6 | 62 | 29.166667 | 0.824675 | 0.131429 | 0 | 0 | 0 | 0 | 0.193333 | 0.16 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0.25 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.