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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
bb1706bfe60364a7af7eee0fd87047c199366c98 | 597 | py | Python | moai/visualization/visdom/__init__.py | ai-in-motion/moai | e38cac046c059d2e2331ef4883bbabc5a500a5cf | [
"Apache-2.0"
] | 10 | 2021-04-02T11:21:33.000Z | 2022-01-18T18:32:32.000Z | moai/visualization/visdom/__init__.py | ai-in-motion/moai | e38cac046c059d2e2331ef4883bbabc5a500a5cf | [
"Apache-2.0"
] | 1 | 2022-03-22T20:10:55.000Z | 2022-03-24T13:11:02.000Z | moai/visualization/visdom/__init__.py | ai-in-motion/moai | e38cac046c059d2e2331ef4883bbabc5a500a5cf | [
"Apache-2.0"
] | 3 | 2021-05-16T20:47:40.000Z | 2021-12-01T21:15:36.000Z | from moai.visualization.visdom.image2d import Image2d
from moai.visualization.visdom.blend2d import Blend2d
from moai.visualization.visdom.feature2d import Feature2d
from moai.visualization.visdom.gizmo2d import Gizmo2d
from moai.visualization.visdom.pose2d import Pose2d
from moai.visualization.visdom.image_grid2d impo... | 31.421053 | 64 | 0.78727 | 69 | 597 | 6.695652 | 0.246377 | 0.138528 | 0.363636 | 0.467532 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.034549 | 0.127303 | 597 | 19 | 65 | 31.421053 | 0.852207 | 0 | 0 | 0 | 0 | 0 | 0.110368 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.444444 | 0 | 0.444444 | 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 |
bb3476925744db64f44e1be17cd29baa37e99f0f | 157 | py | Python | lib/__init__.py | linuxias/BlogRssParser | 5b2b8b53b24ad839fb10fd065cf57aa5d730bf63 | [
"MIT"
] | 1 | 2021-12-19T15:25:33.000Z | 2021-12-19T15:25:33.000Z | lib/__init__.py | linuxias/BlogRssParser | 5b2b8b53b24ad839fb10fd065cf57aa5d730bf63 | [
"MIT"
] | null | null | null | lib/__init__.py | linuxias/BlogRssParser | 5b2b8b53b24ad839fb10fd065cf57aa5d730bf63 | [
"MIT"
] | null | null | null | """
Library for slack bot
"""
from lib.configure import BotConfig
from lib.slack import SlackClient
__all__ = ['configure', 'slack']
__version__ = '0.1.0'
| 15.7 | 35 | 0.719745 | 21 | 157 | 5 | 0.666667 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022388 | 0.146497 | 157 | 9 | 36 | 17.444444 | 0.761194 | 0.133758 | 0 | 0 | 0 | 0 | 0.148438 | 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 |
bb4499211f8f77ed67dcc624ff152005842034cb | 184 | py | Python | dbservice/apps/users/urls.py | aagaard/dbservice | 47daadab307e6744ef151dd4e0aacff27dcda881 | [
"MIT"
] | 1 | 2020-04-27T16:30:50.000Z | 2020-04-27T16:30:50.000Z | dbservice/apps/users/urls.py | aagaard/dbservice | 47daadab307e6744ef151dd4e0aacff27dcda881 | [
"MIT"
] | null | null | null | dbservice/apps/users/urls.py | aagaard/dbservice | 47daadab307e6744ef151dd4e0aacff27dcda881 | [
"MIT"
] | 1 | 2021-01-13T02:16:56.000Z | 2021-01-13T02:16:56.000Z | from rest_framework import routers
from . import views
router = routers.SimpleRouter()
router.register(r'', views.UserViewSet, base_name='users-v1-user')
urlpatterns = router.urls
| 18.4 | 66 | 0.777174 | 24 | 184 | 5.875 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006135 | 0.11413 | 184 | 9 | 67 | 20.444444 | 0.858896 | 0 | 0 | 0 | 0 | 0 | 0.070652 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
bb4cae15015221cace3217bca1b472efe2fd5500 | 478 | py | Python | utils/get_model.py | gunnarthorsteins/the-last-pupper | ff55c7be05cd4025a4f617cca58f2d80eca6386b | [
"MIT"
] | null | null | null | utils/get_model.py | gunnarthorsteins/the-last-pupper | ff55c7be05cd4025a4f617cca58f2d80eca6386b | [
"MIT"
] | null | null | null | utils/get_model.py | gunnarthorsteins/the-last-pupper | ff55c7be05cd4025a4f617cca58f2d80eca6386b | [
"MIT"
] | null | null | null | import os
import glob
def get_latest_model():
"""Gets the latest model path for training classifier"""
list_of_models = glob.glob('models/*')
list_of_models_modified = []
for model in list_of_models:
if 'cae' in model:
pass
else:
list_of_models_modif... | 25.157895 | 61 | 0.610879 | 60 | 478 | 4.55 | 0.45 | 0.10989 | 0.21978 | 0.21978 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.3159 | 478 | 18 | 62 | 26.555556 | 0.834862 | 0.104603 | 0 | 0 | 0 | 0 | 0.027228 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0.076923 | 0.153846 | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
247280d006cf07d182a80e89d62177b5ec07edf9 | 1,050 | py | Python | client/botchallenge/blocktypes.py | Normangorman/botchallenge | 8faf9adaea871becdb9460f8d91b87dc255d44f6 | [
"MIT"
] | 21 | 2015-01-26T02:16:39.000Z | 2021-02-22T11:13:46.000Z | client/botchallenge/blocktypes.py | Normangorman/botchallenge | 8faf9adaea871becdb9460f8d91b87dc255d44f6 | [
"MIT"
] | 13 | 2015-01-02T00:28:35.000Z | 2020-10-07T14:04:35.000Z | client/botchallenge/blocktypes.py | Normangorman/botchallenge | 8faf9adaea871becdb9460f8d91b87dc255d44f6 | [
"MIT"
] | 3 | 2015-01-28T20:57:33.000Z | 2019-01-12T11:36:33.000Z | """Defines the BlockType enum-ish class which contains all the Material types
that the API supports."""
from .api.materials_pb2 import Material
class BlockType(object):
"""The type of a minecraft block or item."""
def __init__(self, name, value):
self.value = value
self.name = name
def _... | 25.609756 | 78 | 0.630476 | 139 | 1,050 | 4.553957 | 0.446043 | 0.050553 | 0.037915 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00129 | 0.261905 | 1,050 | 40 | 79 | 26.25 | 0.815484 | 0.260952 | 0 | 0 | 0 | 0 | 0.009396 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.045455 | 0.136364 | 0.545455 | 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 |
2479e548f91e105bd4f3826e54df54b316f4d10b | 1,153 | py | Python | tests/test_transpiler.py | ilhomidin/bftc | 9a6d81616e8144d191024458acceb4c6987a6078 | [
"MIT"
] | 1 | 2021-03-09T15:12:58.000Z | 2021-03-09T15:12:58.000Z | tests/test_transpiler.py | ilhomidin/bfc | 9a6d81616e8144d191024458acceb4c6987a6078 | [
"MIT"
] | 1 | 2021-11-02T16:45:35.000Z | 2021-11-02T16:45:35.000Z | tests/test_transpiler.py | ilhomidin/bftc | 9a6d81616e8144d191024458acceb4c6987a6078 | [
"MIT"
] | null | null | null | from bftc import transpiler, tokens
def test_next_cell_token_transpilation():
code = transpiler.transpile(tokens.NextCellToken())
assert code == "i++;"
def test_previous_cell_token_transpilation():
code = transpiler.transpile(tokens.PreviousCellToken())
assert code == "i--;"
def test_increment_c... | 23.06 | 65 | 0.727667 | 126 | 1,153 | 6.388889 | 0.285714 | 0.069565 | 0.218634 | 0.318012 | 0.629814 | 0.561491 | 0.392547 | 0.13913 | 0 | 0 | 0 | 0 | 0.145707 | 1,153 | 49 | 66 | 23.530612 | 0.817259 | 0 | 0 | 0 | 0 | 0 | 0.066782 | 0 | 0 | 0 | 0 | 0 | 0.32 | 1 | 0.32 | false | 0 | 0.04 | 0 | 0.36 | 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 |
24837f0d187bf5236e0b1f18bf09136414cd9f1b | 2,559 | py | Python | apps/models/users.py | eric-austin-forever/flask-01 | 94883e23ee36dba01da22db17a5afaf56d9cd015 | [
"Apache-2.0"
] | 1 | 2020-08-24T02:47:39.000Z | 2020-08-24T02:47:39.000Z | apps/models/users.py | eric-austin-forever/flask-01 | 94883e23ee36dba01da22db17a5afaf56d9cd015 | [
"Apache-2.0"
] | 1 | 2020-08-26T13:27:09.000Z | 2020-08-26T13:27:09.000Z | apps/models/users.py | eric-austin-forever/flask-01 | 94883e23ee36dba01da22db17a5afaf56d9cd015 | [
"Apache-2.0"
] | null | null | null | """
@desc:
@author:
@contact:
@file:users.py
@time:2020/8/25 10:13;
"""
from apps.exts import db,login_manager
from werkzeug.security import generate_password_hash,check_password_hash
from itsdangerous import TimedJSONWebSignatureSerializer as Serializer
from flask import current_app
from flask_login import UserMixin
f... | 25.336634 | 122 | 0.650254 | 321 | 2,559 | 5.068536 | 0.426791 | 0.059004 | 0.036878 | 0.039336 | 0.098341 | 0.098341 | 0.098341 | 0.054087 | 0.054087 | 0.054087 | 0 | 0.013292 | 0.235639 | 2,559 | 100 | 123 | 25.59 | 0.818507 | 0.10551 | 0 | 0.172414 | 1 | 0 | 0.036677 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.155172 | false | 0.137931 | 0.103448 | 0.034483 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
24a3826497ed9a2bd9a0831087c483d096cef95a | 428 | py | Python | todo_api/app/tests/usecases/test_task_interactor.py | imanm93/purple-dot-challenge | 7d25ef38865b87016a85dffb4619b4361798313c | [
"Apache-2.0"
] | null | null | null | todo_api/app/tests/usecases/test_task_interactor.py | imanm93/purple-dot-challenge | 7d25ef38865b87016a85dffb4619b4361798313c | [
"Apache-2.0"
] | null | null | null | todo_api/app/tests/usecases/test_task_interactor.py | imanm93/purple-dot-challenge | 7d25ef38865b87016a85dffb4619b4361798313c | [
"Apache-2.0"
] | 2 | 2022-03-01T06:47:18.000Z | 2022-03-01T12:09:25.000Z | from alchemy_mock.mocking import UnifiedAlchemyMagicMock
from app.tests.test import TestBase
from app.usecases.todo_interactor import ToDoInteractor
class TestTaskInteractor(TestBase):
def setUp(self) -> None:
session = UnifiedAlchemyMagicMock()
self.task_interactor = ToDoInteractor(db=session)
... | 25.176471 | 57 | 0.719626 | 47 | 428 | 6.446809 | 0.595745 | 0.046205 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.205607 | 428 | 16 | 58 | 26.75 | 0.891176 | 0 | 0 | 0.166667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.166667 | 0.25 | 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 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
24a48abf415d4d9cb15b5186129992baeff5df64 | 379 | py | Python | util/subset_sampler.py | msr-fiddle/folded-cnns | c87ac633b0b700f6085018f1aeb2c3ca615d73bf | [
"MIT"
] | 2 | 2021-08-30T05:55:39.000Z | 2021-10-04T17:31:06.000Z | util/subset_sampler.py | msr-fiddle/folded-cnns | c87ac633b0b700f6085018f1aeb2c3ca615d73bf | [
"MIT"
] | null | null | null | util/subset_sampler.py | msr-fiddle/folded-cnns | c87ac633b0b700f6085018f1aeb2c3ca615d73bf | [
"MIT"
] | null | null | null | import torch
class SubsetSampler(torch.utils.data.Sampler):
"""
Samples sequentially from a given list of indices.
Arguments:
indices (sequence): a sequence of indices
"""
def __init__(self, indices):
self.indices = indices
def __iter__(self):
return iter(self.indices... | 19.947368 | 54 | 0.643799 | 44 | 379 | 5.272727 | 0.522727 | 0.189655 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.263852 | 379 | 18 | 55 | 21.055556 | 0.831541 | 0.28496 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.375 | false | 0 | 0.125 | 0.25 | 0.875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
24ae5454c90fee398ee2632b3668683627bef140 | 6,087 | py | Python | run.py | joankorir/Password-Locker | 7537ca7e9c4f0e0f99a630d5fc46d9c5d5e6092c | [
"MIT"
] | null | null | null | run.py | joankorir/Password-Locker | 7537ca7e9c4f0e0f99a630d5fc46d9c5d5e6092c | [
"MIT"
] | null | null | null | run.py | joankorir/Password-Locker | 7537ca7e9c4f0e0f99a630d5fc46d9c5d5e6092c | [
"MIT"
] | null | null | null | #!/usr/bin/env/ python3.6
from credential import Credential
from userlogin import Userlogin
def create_credential(email,Account_name,Password):
'''
Function to create a new credential
'''
new_credential = Credential(email,Aname,Password)
return new_credential
def save_credenti... | 30.742424 | 157 | 0.465254 | 550 | 6,087 | 5.021818 | 0.212727 | 0.02824 | 0.030413 | 0.016293 | 0.28168 | 0.181752 | 0.136133 | 0.111513 | 0.111513 | 0.111513 | 0 | 0.00296 | 0.445047 | 6,087 | 197 | 158 | 30.898477 | 0.814683 | 0.022671 | 0 | 0.257732 | 0 | 0.010309 | 0.207616 | 0.039992 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.185567 | 0.020619 | null | null | 0.43299 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 3 |
24c258cbe435361f423ba3cf091c024b9e0dc8cb | 188 | py | Python | complete_the_pattern_#6.py | Kunalpod/codewars | 8dc1af2f3c70e209471045118fd88b3ea1e627e5 | [
"MIT"
] | null | null | null | complete_the_pattern_#6.py | Kunalpod/codewars | 8dc1af2f3c70e209471045118fd88b3ea1e627e5 | [
"MIT"
] | null | null | null | complete_the_pattern_#6.py | Kunalpod/codewars | 8dc1af2f3c70e209471045118fd88b3ea1e627e5 | [
"MIT"
] | null | null | null | #Kunal Gautam
#Codewars : @Kunalpod
#Problem name: Complete The Pattern #6 - Odd Ladder
#Problem level: 7 kyu
def pattern(n):
return "\n".join(str(i)*i for i in range(1, n+1) if i%2)
| 23.5 | 60 | 0.675532 | 35 | 188 | 3.628571 | 0.771429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032468 | 0.180851 | 188 | 7 | 61 | 26.857143 | 0.792208 | 0.537234 | 0 | 0 | 0 | 0 | 0.02439 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0.5 | 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 | 1 | 0 | 0 | 0 | 3 |
24eec220bddf369426e027d4c003e7905b74d2f5 | 2,315 | py | Python | test/test_negative_keywords_api.py | wangjoshuah/Amazon-Ads-Sponsored-Products-API-Python-Client | 98a511a0544d28aac06529c13f4921c19ae8ec66 | [
"MIT"
] | null | null | null | test/test_negative_keywords_api.py | wangjoshuah/Amazon-Ads-Sponsored-Products-API-Python-Client | 98a511a0544d28aac06529c13f4921c19ae8ec66 | [
"MIT"
] | null | null | null | test/test_negative_keywords_api.py | wangjoshuah/Amazon-Ads-Sponsored-Products-API-Python-Client | 98a511a0544d28aac06529c13f4921c19ae8ec66 | [
"MIT"
] | null | null | null | """
Amazon Ads API - Sponsored Products
Use the Amazon Ads API for Sponsored Products for campaign, ad group, keyword, negative keyword, and product ad management operations. For more information about Sponsored Products, see the [Sponsored Products Support Center](https://advertising.amazon.com/help?entityId=... | 29.679487 | 423 | 0.685961 | 281 | 2,315 | 5.448399 | 0.323843 | 0.125408 | 0.050294 | 0.068583 | 0.40627 | 0.324624 | 0.264533 | 0.175702 | 0 | 0 | 0 | 0.020478 | 0.240605 | 2,315 | 77 | 424 | 30.064935 | 0.850398 | 0.557667 | 0 | 0.333333 | 0 | 0 | 0.009524 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.375 | false | 0.333333 | 0.125 | 0 | 0.541667 | 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 |
24f1635038cdf5eb48f39e7fefa5ca3a0b4765d7 | 1,206 | py | Python | up_and_down_array/up_and_down_array_test.py | JuanJUribe/google-problems | 6b3a7a3cc201c9934f9ebfc414ecca4498fbc099 | [
"MIT"
] | null | null | null | up_and_down_array/up_and_down_array_test.py | JuanJUribe/google-problems | 6b3a7a3cc201c9934f9ebfc414ecca4498fbc099 | [
"MIT"
] | null | null | null | up_and_down_array/up_and_down_array_test.py | JuanJUribe/google-problems | 6b3a7a3cc201c9934f9ebfc414ecca4498fbc099 | [
"MIT"
] | null | null | null | import sys
import unittest
from up_and_down_array import find_max_idx
class TestBueller(unittest.TestCase):
def setUp(self):
pass
def test_case_one_element(self):
self.assertEqual(find_max_idx([1]), 0)
def test_case_two_elements_increasing(self):
self.assertEqual(find_max_idx([1,... | 30.15 | 87 | 0.656716 | 192 | 1,206 | 3.791667 | 0.307292 | 0.096154 | 0.137363 | 0.284341 | 0.634615 | 0.460165 | 0.42033 | 0.186813 | 0.101648 | 0.101648 | 0 | 0.075026 | 0.193201 | 1,206 | 40 | 88 | 30.15 | 0.673176 | 0.009121 | 0 | 0 | 0 | 0 | 0.006695 | 0 | 0 | 0 | 0 | 0 | 0.346154 | 1 | 0.384615 | false | 0.038462 | 0.115385 | 0 | 0.538462 | 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 | 0 | 1 | 0 | 0 | 3 |
24f7c06526cf5712226dadfff91e7fe714cf8b30 | 65,985 | py | Python | yandex/cloud/vpc/v1/security_group_service_pb2.py | korsar182/python-sdk | 873bf2a9b136a8f2faae72e86fae1f5b5c3d896a | [
"MIT"
] | 36 | 2018-12-23T13:51:50.000Z | 2022-03-25T07:48:24.000Z | yandex/cloud/vpc/v1/security_group_service_pb2.py | korsar182/python-sdk | 873bf2a9b136a8f2faae72e86fae1f5b5c3d896a | [
"MIT"
] | 15 | 2019-02-28T04:55:09.000Z | 2022-03-06T23:17:24.000Z | yandex/cloud/vpc/v1/security_group_service_pb2.py | korsar182/python-sdk | 873bf2a9b136a8f2faae72e86fae1f5b5c3d896a | [
"MIT"
] | 18 | 2019-02-23T07:10:57.000Z | 2022-03-28T14:41:08.000Z | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: yandex/cloud/vpc/v1/security_group_service.proto
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection... | 50.447248 | 6,951 | 0.78486 | 7,918 | 65,985 | 6.209649 | 0.04976 | 0.032541 | 0.033762 | 0.053368 | 0.768122 | 0.713106 | 0.689229 | 0.626078 | 0.585137 | 0.567198 | 0 | 0.040793 | 0.096855 | 65,985 | 1,307 | 6,952 | 50.485845 | 0.784257 | 0.03175 | 0 | 0.673013 | 1 | 0.009106 | 0.282325 | 0.24421 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.008278 | 0 | 0.008278 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
704cc3b5048fd759be01db56cd2a1ba59bdd4d83 | 613 | py | Python | toontown/ai/DistributedReportMgr.py | CrankySupertoon01/Toontown-2 | 60893d104528a8e7eb4aced5d0015f22e203466d | [
"MIT"
] | 1 | 2021-02-13T22:40:50.000Z | 2021-02-13T22:40:50.000Z | toontown/ai/DistributedReportMgr.py | CrankySupertoonArchive/Toontown-2 | 60893d104528a8e7eb4aced5d0015f22e203466d | [
"MIT"
] | 1 | 2018-07-28T20:07:04.000Z | 2018-07-30T18:28:34.000Z | toontown/ai/DistributedReportMgr.py | CrankySupertoonArchive/Toontown-2 | 60893d104528a8e7eb4aced5d0015f22e203466d | [
"MIT"
] | 2 | 2019-12-02T01:39:10.000Z | 2021-02-13T22:41:00.000Z | from direct.directnotify import DirectNotifyGlobal
from direct.distributed import DistributedObject
class DistributedReportMgr(DistributedObject.DistributedObject):
neverDisable = 1
notify = DirectNotifyGlobal.directNotify.newCategory('DistributedReportMgr')
def announceGenerate(self):
Distributed... | 34.055556 | 80 | 0.760196 | 53 | 613 | 8.792453 | 0.471698 | 0.218884 | 0.042918 | 0.081545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001946 | 0.161501 | 613 | 17 | 81 | 36.058824 | 0.904669 | 0 | 0 | 0 | 0 | 0 | 0.04894 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.230769 | false | 0 | 0.153846 | 0 | 0.615385 | 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 | 0 | 1 | 0 | 0 | 3 |
7052fa72d8b4754663717ae104b075e85021c795 | 95 | py | Python | basic/con_readfile_list.py | ckapasi/personal | 6ce3a6483a1cdd867f323f2c576fb95345fec9b0 | [
"Apache-2.0"
] | null | null | null | basic/con_readfile_list.py | ckapasi/personal | 6ce3a6483a1cdd867f323f2c576fb95345fec9b0 | [
"Apache-2.0"
] | null | null | null | basic/con_readfile_list.py | ckapasi/personal | 6ce3a6483a1cdd867f323f2c576fb95345fec9b0 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python -tt
f = open('ckfile.txt', 'rU')
lines = f.readlines()
f.close()
print lines
| 15.833333 | 28 | 0.642105 | 16 | 95 | 3.8125 | 0.8125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.126316 | 95 | 5 | 29 | 19 | 0.73494 | 0.210526 | 0 | 0 | 0 | 0 | 0.162162 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
705a001993247635eae30d17482b89816bf32676 | 3,377 | py | Python | ribosome/rpc/response.py | tek/ribosome-py | 8bd22e549ddff1ee893d6e3a0bfba123a09e96c6 | [
"MIT"
] | null | null | null | ribosome/rpc/response.py | tek/ribosome-py | 8bd22e549ddff1ee893d6e3a0bfba123a09e96c6 | [
"MIT"
] | null | null | null | ribosome/rpc/response.py | tek/ribosome-py | 8bd22e549ddff1ee893d6e3a0bfba123a09e96c6 | [
"MIT"
] | null | null | null | from typing import Any, Callable
from amino import IO, List, ADT
from amino.case import Case
from amino.logging import module_log
from ribosome.rpc.data.rpc_type import RpcType, BlockingRpc, NonblockingRpc
from ribosome.rpc.data.rpc import Rpc
from ribosome.nvim.io.data import NFatal, NResult, NSuccess, NError
from r... | 30.151786 | 118 | 0.694107 | 425 | 3,377 | 5.355294 | 0.192941 | 0.033831 | 0.028998 | 0.028998 | 0.345782 | 0.200351 | 0.158612 | 0.072496 | 0.072496 | 0 | 0 | 0.000365 | 0.188925 | 3,377 | 111 | 119 | 30.423423 | 0.830595 | 0 | 0 | 0.25 | 0 | 0 | 0.061001 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.279412 | false | 0.029412 | 0.117647 | 0.161765 | 0.720588 | 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 |
706a11e05c54d768044d33f71525c53f2f97c0c9 | 170 | py | Python | recipes/Python/425044_Splitting_up_a_sequence/recipe-425044.py | tdiprima/code | 61a74f5f93da087d27c70b2efe779ac6bd2a3b4f | [
"MIT"
] | 2,023 | 2017-07-29T09:34:46.000Z | 2022-03-24T08:00:45.000Z | recipes/Python/425044_Splitting_up_a_sequence/recipe-425044.py | unhacker/code | 73b09edc1b9850c557a79296655f140ce5e853db | [
"MIT"
] | 32 | 2017-09-02T17:20:08.000Z | 2022-02-11T17:49:37.000Z | recipes/Python/425044_Splitting_up_a_sequence/recipe-425044.py | unhacker/code | 73b09edc1b9850c557a79296655f140ce5e853db | [
"MIT"
] | 780 | 2017-07-28T19:23:28.000Z | 2022-03-25T20:39:41.000Z | # Guyon Morée
# http://gumuz.looze.net/
def split_seq(seq,size):
""" Split up seq in pieces of size """
return [seq[i:i+size] for i in range(0, len(seq), size)]
| 24.285714 | 60 | 0.629412 | 31 | 170 | 3.419355 | 0.645161 | 0.132075 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007299 | 0.194118 | 170 | 6 | 61 | 28.333333 | 0.766423 | 0.4 | 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 |
706a3b66c3612c47e353caae2860861d30f86bb6 | 151 | py | Python | django_africa_site/homepage/urls.py | Uncensored-Developer/django_africa_site | 15d7d2b88b2307d2a7515acd52bfbd965c0b87ec | [
"MIT"
] | null | null | null | django_africa_site/homepage/urls.py | Uncensored-Developer/django_africa_site | 15d7d2b88b2307d2a7515acd52bfbd965c0b87ec | [
"MIT"
] | 3 | 2021-03-19T00:16:47.000Z | 2021-09-22T18:37:42.000Z | django_africa_site/homepage/urls.py | Uncensored-Developer/django_africa_site | 15d7d2b88b2307d2a7515acd52bfbd965c0b87ec | [
"MIT"
] | null | null | null | from django.urls import path
from .views import HomeView
app_name = 'homepage'
urlpatterns = [
path('', HomeView.as_view(), name='home_view')
]
| 15.1 | 50 | 0.701987 | 20 | 151 | 5.15 | 0.7 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.165563 | 151 | 9 | 51 | 16.777778 | 0.81746 | 0 | 0 | 0 | 0 | 0 | 0.112583 | 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 |
7074506dfba43c689673dfe9e23bd7b67f778cd2 | 196 | py | Python | python_nested_circular_imports/solution_case/main.py | pmdscully/python_snippets | cd07ace1c0b5838fdbaeff08e72647946a8a7c5d | [
"Apache-2.0"
] | null | null | null | python_nested_circular_imports/solution_case/main.py | pmdscully/python_snippets | cd07ace1c0b5838fdbaeff08e72647946a8a7c5d | [
"Apache-2.0"
] | null | null | null | python_nested_circular_imports/solution_case/main.py | pmdscully/python_snippets | cd07ace1c0b5838fdbaeff08e72647946a8a7c5d | [
"Apache-2.0"
] | null | null | null | import sys
from dir_nest.dir_A import caller_callee
def main():
print(__file__ +" -> "+sys._getframe().f_code.co_name+"()")
caller_callee.caller()
if __name__ == "__main__":
main() | 17.818182 | 63 | 0.668367 | 27 | 196 | 4.148148 | 0.666667 | 0.214286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.168367 | 196 | 11 | 64 | 17.818182 | 0.687117 | 0 | 0 | 0 | 0 | 0 | 0.071066 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | true | 0 | 0.285714 | 0 | 0.428571 | 0.142857 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
708cdc9ba5503d894580970dd41f8f4b7567eb86 | 668 | py | Python | todo_app/todo_app/todos/serializers.py | Minkov/python-web-framework-demos- | 30f39de0b4344e1b7e5d4cf96f6d6bbbfe867305 | [
"MIT"
] | 2 | 2022-03-06T11:56:35.000Z | 2022-03-20T09:31:45.000Z | todo_app/todo_app/todos/serializers.py | Minkov/python-web-framework-demos- | 30f39de0b4344e1b7e5d4cf96f6d6bbbfe867305 | [
"MIT"
] | null | null | null | todo_app/todo_app/todos/serializers.py | Minkov/python-web-framework-demos- | 30f39de0b4344e1b7e5d4cf96f6d6bbbfe867305 | [
"MIT"
] | 4 | 2022-03-17T18:05:19.000Z | 2022-03-22T16:38:11.000Z | from rest_framework import serializers
from todo_app.todos.models import Todo, Category
class TodoForListSerializer(serializers.ModelSerializer):
class Meta:
model = Todo
fields = ('id', 'title')
class TodoFullSerializer(serializers.ModelSerializer):
class Meta:
model = Todo
... | 25.692308 | 70 | 0.678144 | 67 | 668 | 6.671642 | 0.507463 | 0.174497 | 0.208054 | 0.234899 | 0.344519 | 0.255034 | 0.255034 | 0.255034 | 0.255034 | 0 | 0 | 0 | 0.211078 | 668 | 25 | 71 | 26.72 | 0.848197 | 0 | 0 | 0.294118 | 0 | 0 | 0.085329 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.117647 | 0 | 0.588235 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
563684d6078a092b51fa60e1d50585956de4bd69 | 81 | py | Python | hut/apps.py | nikolaystanishev/hut | f72d0d40fe7939eebcc4e06aedc4ab3c154010d2 | [
"MIT"
] | null | null | null | hut/apps.py | nikolaystanishev/hut | f72d0d40fe7939eebcc4e06aedc4ab3c154010d2 | [
"MIT"
] | 6 | 2021-03-18T20:20:31.000Z | 2022-01-13T00:39:36.000Z | hut/apps.py | nikolaystanishev/hut | f72d0d40fe7939eebcc4e06aedc4ab3c154010d2 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class HutConfig(AppConfig):
name = 'hut'
| 13.5 | 33 | 0.728395 | 10 | 81 | 5.9 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.185185 | 81 | 5 | 34 | 16.2 | 0.893939 | 0 | 0 | 0 | 0 | 0 | 0.037037 | 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 |
563f0554f0fa68921a99eafd3ce4f3b8abfea40c | 132 | py | Python | homeassistant/components/camera/const.py | domwillcode/home-assistant | f170c80bea70c939c098b5c88320a1c789858958 | [
"Apache-2.0"
] | 23 | 2017-11-15T21:03:53.000Z | 2021-03-29T21:33:48.000Z | homeassistant/components/camera/const.py | domwillcode/home-assistant | f170c80bea70c939c098b5c88320a1c789858958 | [
"Apache-2.0"
] | 56 | 2020-08-03T07:30:54.000Z | 2022-03-31T06:02:04.000Z | homeassistant/components/camera/const.py | klauern/home-assistant-core | c18ba6aec0627e6afb6442c678edb5ff2bb17db6 | [
"Apache-2.0"
] | 14 | 2018-08-19T16:28:26.000Z | 2021-09-02T18:26:53.000Z | """Constants for Camera component."""
DOMAIN = "camera"
DATA_CAMERA_PREFS = "camera_prefs"
PREF_PRELOAD_STREAM = "preload_stream"
| 18.857143 | 38 | 0.765152 | 16 | 132 | 5.9375 | 0.625 | 0.231579 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.113636 | 132 | 6 | 39 | 22 | 0.811966 | 0.234848 | 0 | 0 | 0 | 0 | 0.336842 | 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 |
56597d3aecdcee1ae9b671b24f4edfb750bae3cc | 4,674 | py | Python | src/modules/mixers/qmix.py | fangqyi/ROMA | 1a5a7456c54c3521ff54e6eed8c30904b051fe5a | [
"Apache-2.0"
] | null | null | null | src/modules/mixers/qmix.py | fangqyi/ROMA | 1a5a7456c54c3521ff54e6eed8c30904b051fe5a | [
"Apache-2.0"
] | null | null | null | src/modules/mixers/qmix.py | fangqyi/ROMA | 1a5a7456c54c3521ff54e6eed8c30904b051fe5a | [
"Apache-2.0"
] | null | null | null | import torch as th
import torch.nn as nn
import torch.nn.functional as F
import numpy as np
class QMixer(nn.Module):
def __init__(self, args):
super(QMixer, self).__init__()
self.args = args
self.n_agents = args.n_agents
if "social_contract" in args.name:
self.state_di... | 48.185567 | 141 | 0.620026 | 741 | 4,674 | 3.680162 | 0.125506 | 0.099743 | 0.079208 | 0.06234 | 0.846351 | 0.803447 | 0.760543 | 0.6641 | 0.616062 | 0.582692 | 0 | 0.018454 | 0.258023 | 4,674 | 96 | 142 | 48.6875 | 0.767878 | 0.292469 | 0 | 0.349206 | 0 | 0 | 0.004601 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.063492 | false | 0 | 0.063492 | 0 | 0.190476 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 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 |
567d25179b956b3f3d4636840e68bb2315e4f382 | 295 | py | Python | apps/tecnics/content_based_metadata/main_experiments.py | DiegoCorrea/ouvidoMusical | e8bdb993e2c6ef2fe4a78e844bc60be2738a5ba5 | [
"MIT"
] | 1 | 2021-10-06T19:35:48.000Z | 2021-10-06T19:35:48.000Z | apps/tecnics/content_based_metadata/main_experiments.py | DiegoCorrea/ouvido_musical-Back | e8bdb993e2c6ef2fe4a78e844bc60be2738a5ba5 | [
"MIT"
] | null | null | null | apps/tecnics/content_based_metadata/main_experiments.py | DiegoCorrea/ouvido_musical-Back | e8bdb993e2c6ef2fe4a78e844bc60be2738a5ba5 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from apps.tecnics.content_based_metadata.main_by_model_length import \
pre_load_data_set_and_song_variation_all_combination
def call():
# with_pre_load_data_set_and_user_variation()
# gc.collect()
pre_load_data_set_and_song_variation_all_combination()
| 26.818182 | 70 | 0.79322 | 44 | 295 | 4.681818 | 0.659091 | 0.101942 | 0.160194 | 0.203884 | 0.509709 | 0.427184 | 0.427184 | 0.427184 | 0.427184 | 0 | 0 | 0.003861 | 0.122034 | 295 | 10 | 71 | 29.5 | 0.791506 | 0.264407 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | true | 0 | 0.25 | 0 | 0.5 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
5681d32e9e1bac216ad5ebe99b2d974dd24a7919 | 120 | py | Python | c__50.py | fhansmann/coding-challenges | eebb37565c72e05b77383c24e8273a1e4019b58e | [
"MIT"
] | null | null | null | c__50.py | fhansmann/coding-challenges | eebb37565c72e05b77383c24e8273a1e4019b58e | [
"MIT"
] | null | null | null | c__50.py | fhansmann/coding-challenges | eebb37565c72e05b77383c24e8273a1e4019b58e | [
"MIT"
] | null | null | null | class American(object):
pass
class NewYorker(American):
pass
anAmerican = American()
aNewYorker = NewYorker()
| 13.333333 | 26 | 0.716667 | 12 | 120 | 7.166667 | 0.583333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.183333 | 120 | 8 | 27 | 15 | 0.877551 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.333333 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
5698c40be33ee80596eba24869b98295cace6f74 | 79 | py | Python | dataframe_utils/ProcessingHelper.py | Jwilson1172/lambdata_Jwilson1172 | 2cceca54212e3baeca83610ed0c0f47cd60a2896 | [
"MIT"
] | null | null | null | dataframe_utils/ProcessingHelper.py | Jwilson1172/lambdata_Jwilson1172 | 2cceca54212e3baeca83610ed0c0f47cd60a2896 | [
"MIT"
] | null | null | null | dataframe_utils/ProcessingHelper.py | Jwilson1172/lambdata_Jwilson1172 | 2cceca54212e3baeca83610ed0c0f47cd60a2896 | [
"MIT"
] | null | null | null | class ProcessingHelper():
def __init__(self, df):
self.dframe = df
| 19.75 | 27 | 0.632911 | 9 | 79 | 5.111111 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.253165 | 79 | 3 | 28 | 26.333333 | 0.779661 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.666667 | 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 |
569edca24aa7fca5522135082feadf13b362fa91 | 1,938 | py | Python | farkle/game.py | dmtanner/farkle | 7060cc8015de6e632cacea904cc10ca12424968f | [
"MIT"
] | null | null | null | farkle/game.py | dmtanner/farkle | 7060cc8015de6e632cacea904cc10ca12424968f | [
"MIT"
] | null | null | null | farkle/game.py | dmtanner/farkle | 7060cc8015de6e632cacea904cc10ca12424968f | [
"MIT"
] | null | null | null | import random
from farkle.utilities import DiceCalculator
from farkle.players import *
class FarkleGame():
def __init__(self):
self.players = []
self.current_player_turn = 0
self.round = 1
self.WINNING_SCORE = 10000
def add_player(self, player):
self.players.append(player)
def add_c... | 28.086957 | 89 | 0.69711 | 270 | 1,938 | 4.733333 | 0.225926 | 0.068858 | 0.06651 | 0.08216 | 0.333333 | 0.333333 | 0.172144 | 0.172144 | 0.172144 | 0.172144 | 0 | 0.007828 | 0.208978 | 1,938 | 69 | 90 | 28.086957 | 0.825832 | 0 | 0 | 0.150943 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.301887 | false | 0 | 0.056604 | 0.113208 | 0.584906 | 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 |
3b09352b80d05dd4572184ead4c244395f2b91d5 | 247 | py | Python | legacy/artie/apps/octopod/handler.py | MaxStrange/ArtieInfant | 1edbb171a5405d2971227f2d2d83acb523c70034 | [
"MIT"
] | 1 | 2018-04-28T16:55:05.000Z | 2018-04-28T16:55:05.000Z | legacy/artie/apps/octopod/handler.py | MaxStrange/ArtieInfant | 1edbb171a5405d2971227f2d2d83acb523c70034 | [
"MIT"
] | null | null | null | legacy/artie/apps/octopod/handler.py | MaxStrange/ArtieInfant | 1edbb171a5405d2971227f2d2d83acb523c70034 | [
"MIT"
] | null | null | null | from erlport.erlterms import Atom
from erlport.erlang import set_message_handler, cast
def register_handler(dest):
def handler(msg):
cast(dest, msg)
set_message_handler(handler)
return Atom("ok")
def does_a_thing():
pass
| 20.583333 | 52 | 0.724696 | 35 | 247 | 4.914286 | 0.571429 | 0.127907 | 0.197674 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.190283 | 247 | 11 | 53 | 22.454545 | 0.86 | 0 | 0 | 0 | 0 | 0 | 0.008097 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0.111111 | 0.222222 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
3b1742beef7a1d76b5d3ad6001b3cf01655da181 | 387 | py | Python | competitive/AtCoder/AGC038/A.py | pn11/benkyokai | 9ebdc46b529e76b7196add26dbc1e62ad48e72b0 | [
"MIT"
] | null | null | null | competitive/AtCoder/AGC038/A.py | pn11/benkyokai | 9ebdc46b529e76b7196add26dbc1e62ad48e72b0 | [
"MIT"
] | 22 | 2020-03-24T16:24:47.000Z | 2022-02-26T15:51:18.000Z | competitive/AtCoder/AGC038/A.py | pn11/benkyokai | 9ebdc46b529e76b7196add26dbc1e62ad48e72b0 | [
"MIT"
] | null | null | null | '''解説読んだ'''
H,W,A,B=[int(x) for x in input().split()]
[print(''.join(["0" if j<A else "1" for j in range(W)])) if i<B else print(''.join(["1" if j<A else "0" for j in range(W)])) for i in range(H)]
# 読みやすいバージョン
for i in range(H):
if i < B:
print(''.join(["0" if j < A else "1" for j in range(W)]))
else:... | 35.181818 | 143 | 0.524548 | 83 | 387 | 2.445783 | 0.253012 | 0.206897 | 0.078818 | 0.157635 | 0.768473 | 0.650246 | 0.650246 | 0.650246 | 0.650246 | 0.650246 | 0 | 0.026846 | 0.229974 | 387 | 10 | 144 | 38.7 | 0.654362 | 0.043928 | 0 | 0 | 0 | 0 | 0.021978 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.428571 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
3b28e76a5cdcad2649da0596bc4aa67a2c56e10c | 50 | py | Python | logical_Add.py | malai001/codebank | 6834107ab683a38a8799102278369a66b1c1b336 | [
"bzip2-1.0.6"
] | 1 | 2017-07-11T05:02:12.000Z | 2017-07-11T05:02:12.000Z | logical_Add.py | malai001/codebank | 6834107ab683a38a8799102278369a66b1c1b336 | [
"bzip2-1.0.6"
] | null | null | null | logical_Add.py | malai001/codebank | 6834107ab683a38a8799102278369a66b1c1b336 | [
"bzip2-1.0.6"
] | null | null | null | a=int(raw_input().split())
c = a+b
print c
| 8.333333 | 27 | 0.54 | 10 | 50 | 2.6 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.26 | 50 | 5 | 28 | 10 | 0.702703 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.333333 | 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 |
3b3f2c9df6ccf4272cbd1ede0ea5857773fc06b2 | 86 | py | Python | CodesComplete/FluentPython/snippet.py | vinimmelo/python | ef1f4e0550773592d3b0a88a3213de2f522870a3 | [
"MIT"
] | null | null | null | CodesComplete/FluentPython/snippet.py | vinimmelo/python | ef1f4e0550773592d3b0a88a3213de2f522870a3 | [
"MIT"
] | null | null | null | CodesComplete/FluentPython/snippet.py | vinimmelo/python | ef1f4e0550773592d3b0a88a3213de2f522870a3 | [
"MIT"
] | 1 | 2020-03-03T22:34:13.000Z | 2020-03-03T22:34:13.000Z | def f2(a):
global b
print(a)
print(b)
b = 9
print(b)
b = 5
f2(3) | 8.6 | 12 | 0.44186 | 17 | 86 | 2.235294 | 0.529412 | 0.315789 | 0.368421 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.098039 | 0.406977 | 86 | 10 | 13 | 8.6 | 0.647059 | 0 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0 | 0 | 0.125 | 0.375 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
3b430c95b8607c391165fae05f9dd9a20921a0c5 | 7,141 | py | Python | python/DeepSeaSceneLighting/SceneLightShadows.py | akb825/DeepSea | fff790d0a472cf2f9f89de653e0b4470ce605d24 | [
"Apache-2.0"
] | 5 | 2018-11-17T23:13:22.000Z | 2021-09-30T13:37:04.000Z | python/DeepSeaSceneLighting/SceneLightShadows.py | akb825/DeepSea | fff790d0a472cf2f9f89de653e0b4470ce605d24 | [
"Apache-2.0"
] | null | null | null | python/DeepSeaSceneLighting/SceneLightShadows.py | akb825/DeepSea | fff790d0a472cf2f9f89de653e0b4470ce605d24 | [
"Apache-2.0"
] | 2 | 2019-09-23T12:23:35.000Z | 2020-04-07T05:31:06.000Z | # automatically generated by the FlatBuffers compiler, do not modify
# namespace: DeepSeaSceneLighting
import flatbuffers
from flatbuffers.compat import import_numpy
np = import_numpy()
class SceneLightShadows(object):
__slots__ = ['_tab']
@classmethod
def GetRootAs(cls, buf, offset=0):
n = flat... | 46.070968 | 165 | 0.734911 | 770 | 7,141 | 6.712987 | 0.157143 | 0.046044 | 0.093635 | 0.108338 | 0.426388 | 0.426388 | 0.386729 | 0.303153 | 0.271813 | 0.271813 | 0 | 0.015664 | 0.168604 | 7,141 | 155 | 166 | 46.070968 | 0.854977 | 0.160622 | 0 | 0.3 | 1 | 0 | 0.000677 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.363636 | false | 0 | 0.027273 | 0.009091 | 0.745455 | 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 |
3b6356744c92a7bf86891f5b92580311b05e26db | 64 | py | Python | example_snippets/multimenus_snippets/Snippets/SciPy/Physical and mathematical constants/CODATA physical constants/S/standard acceleration of gravity.py | kuanpern/jupyterlab-snippets-multimenus | 477f51cfdbad7409eab45abe53cf774cd70f380c | [
"BSD-3-Clause"
] | null | null | null | example_snippets/multimenus_snippets/Snippets/SciPy/Physical and mathematical constants/CODATA physical constants/S/standard acceleration of gravity.py | kuanpern/jupyterlab-snippets-multimenus | 477f51cfdbad7409eab45abe53cf774cd70f380c | [
"BSD-3-Clause"
] | null | null | null | example_snippets/multimenus_snippets/Snippets/SciPy/Physical and mathematical constants/CODATA physical constants/S/standard acceleration of gravity.py | kuanpern/jupyterlab-snippets-multimenus | 477f51cfdbad7409eab45abe53cf774cd70f380c | [
"BSD-3-Clause"
] | 1 | 2021-02-04T04:51:48.000Z | 2021-02-04T04:51:48.000Z | constants.physical_constants["standard acceleration of gravity"] | 64 | 64 | 0.875 | 7 | 64 | 7.857143 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046875 | 64 | 1 | 64 | 64 | 0.901639 | 0 | 0 | 0 | 0 | 0 | 0.492308 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 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 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
3b6e6089c9ff3861984ee4c74185d351e7ca27eb | 880 | py | Python | day10/main.py | kzabashta/advent-of-code-17 | e37ff0a211791b7c120c78269b7927d8d40583fe | [
"MIT"
] | null | null | null | day10/main.py | kzabashta/advent-of-code-17 | e37ff0a211791b7c120c78269b7927d8d40583fe | [
"MIT"
] | null | null | null | day10/main.py | kzabashta/advent-of-code-17 | e37ff0a211791b7c120c78269b7927d8d40583fe | [
"MIT"
] | null | null | null | #!/usr/bin/env python
f = open('/Users/kosta/dev/advent-of-code-17/day10/input.txt')
lengths = list(map(int, f.readline().split(',')))
hash_list = list(range(256))
skip = 0
cur_index = 0
for length in lengths:
if cur_index + length > len(hash_list):
sub_list = hash_list[cur_index:]
sub_list.exten... | 33.846154 | 97 | 0.657955 | 136 | 880 | 3.977941 | 0.301471 | 0.221811 | 0.19963 | 0.236599 | 0.578558 | 0.55268 | 0.48244 | 0.343808 | 0.284658 | 0.147874 | 0 | 0.017021 | 0.198864 | 880 | 26 | 98 | 33.846154 | 0.750355 | 0.022727 | 0 | 0.095238 | 0 | 0 | 0.059302 | 0.05814 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.047619 | 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 |
3b7585f1036add52f53e57bef66733df58b0a2d0 | 144 | py | Python | DIY_NN/solutions/ff_compute_q.py | PinmanHuang/CrashCourseML | b59ebf138d42fc9a1669735c6363d50938200e69 | [
"MIT"
] | 3 | 2019-02-16T05:57:09.000Z | 2019-09-16T07:07:18.000Z | DIY_NN/solutions/ff_compute_q.py | PinmanHuang/CrashCourseML | b59ebf138d42fc9a1669735c6363d50938200e69 | [
"MIT"
] | null | null | null | DIY_NN/solutions/ff_compute_q.py | PinmanHuang/CrashCourseML | b59ebf138d42fc9a1669735c6363d50938200e69 | [
"MIT"
] | 8 | 2019-02-14T02:51:26.000Z | 2019-10-07T07:44:24.000Z | def softmax(x):
t = np.exp(x)
return t/t.sum()
q_relu = softmax(C @ relu(A @ x + b) + d)
q_sigmoid = softmax(C @ sigmoid(A @ x + b) + d) | 28.8 | 47 | 0.548611 | 29 | 144 | 2.655172 | 0.517241 | 0.207792 | 0.077922 | 0.103896 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.25 | 144 | 5 | 47 | 28.8 | 0.712963 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.4 | 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 |
3b924650e17ed6254decebb2daf28efe90c9872b | 412 | py | Python | semanticpy/transform/LDA.py | aly-shmahell/semanticpy | 1bf5d654d2315aab9145d4a1c6754df2070fcdca | [
"MIT",
"Unlicense"
] | null | null | null | semanticpy/transform/LDA.py | aly-shmahell/semanticpy | 1bf5d654d2315aab9145d4a1c6754df2070fcdca | [
"MIT",
"Unlicense"
] | null | null | null | semanticpy/transform/LDA.py | aly-shmahell/semanticpy | 1bf5d654d2315aab9145d4a1c6754df2070fcdca | [
"MIT",
"Unlicense"
] | null | null | null | from semanticpy.transform.transform import Transform
from semanticpy.vendor.onlineldavb.onlineldavb import OnlineLDA
class LDA(Transform):
NUMBER_OF_TOPICS = 100
def __init__(self, matrix):
Transform.__init__(self, matrix)
self.document_total = len(self.matrix)
def transform(self):
lda = OnlineLDA(vocab, NU... | 29.428571 | 117 | 0.791262 | 57 | 412 | 5.403509 | 0.438596 | 0.103896 | 0.181818 | 0.097403 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.029973 | 0.109223 | 412 | 13 | 118 | 31.692308 | 0.809264 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
8e5ac64be8b496b053d9f9d800cf8306647a3c2d | 3,003 | py | Python | packages/engine/src/worker/runner/python/fbs/Package.py | mschrader15/hash | 3f5e9a846183bdb9ee5a3c8a9f502b1411ac717b | [
"RSA-MD"
] | 219 | 2021-05-20T16:27:22.000Z | 2022-03-31T04:39:07.000Z | packages/engine/src/worker/runner/python/fbs/Package.py | mschrader15/hash | 3f5e9a846183bdb9ee5a3c8a9f502b1411ac717b | [
"RSA-MD"
] | 158 | 2021-05-21T09:16:25.000Z | 2022-03-31T23:39:56.000Z | packages/engine/src/worker/runner/python/fbs/Package.py | mschrader15/hash | 3f5e9a846183bdb9ee5a3c8a9f502b1411ac717b | [
"RSA-MD"
] | 25 | 2021-06-07T22:49:33.000Z | 2022-03-30T10:06:50.000Z | # automatically generated by the FlatBuffers compiler, do not modify
# namespace:
import flatbuffers
from flatbuffers.compat import import_numpy
np = import_numpy()
class Package(object):
__slots__ = ['_tab']
@classmethod
def GetRootAs(cls, buf, offset=0):
n = flatbuffers.encode.Get(flatbuffers... | 36.621951 | 144 | 0.680986 | 370 | 3,003 | 5.432432 | 0.240541 | 0.048756 | 0.087562 | 0.076617 | 0.377114 | 0.368657 | 0.319403 | 0.229851 | 0.159204 | 0.159204 | 0 | 0.011799 | 0.20979 | 3,003 | 82 | 145 | 36.621951 | 0.83523 | 0.163836 | 0 | 0.172414 | 1 | 0 | 0.001619 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.327586 | false | 0 | 0.068966 | 0.017241 | 0.706897 | 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 |
8e79058d9bf1937dcaec211f571e974b55910c60 | 968 | py | Python | build/lib/scierra/scierra.py | PerceptronV/Scierra | 4cfc38b3b756cca9aa704cbd65e650544a68acae | [
"Apache-2.0"
] | 2 | 2021-01-14T07:39:41.000Z | 2022-03-04T20:59:37.000Z | build/lib/scierra/scierra.py | PerceptronV/scierra | 4cfc38b3b756cca9aa704cbd65e650544a68acae | [
"Apache-2.0"
] | null | null | null | build/lib/scierra/scierra.py | PerceptronV/scierra | 4cfc38b3b756cca9aa704cbd65e650544a68acae | [
"Apache-2.0"
] | null | null | null | from scierra.sim import Simulator
def main():
flag = True
res = True
simul = Simulator()
print('Scierra C++ Interpreter v0.6\nCopyright (c) PerceptronV 2020')
line = input('\n++> ')
stripline = line.strip()
if stripline == '<print>':
simul.print_code()
elif stripline == '<rest... | 23.609756 | 73 | 0.482438 | 95 | 968 | 4.894737 | 0.357895 | 0.167742 | 0.064516 | 0.08172 | 0.670968 | 0.670968 | 0.670968 | 0.670968 | 0.670968 | 0.670968 | 0 | 0.00982 | 0.368802 | 968 | 40 | 74 | 24.2 | 0.751228 | 0 | 0 | 0.771429 | 0 | 0 | 0.128099 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028571 | false | 0.057143 | 0.028571 | 0 | 0.057143 | 0.142857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
8e7ab6daac4f81e3d400855a58a5dddfd846086d | 17,624 | py | Python | python/phd/thunderstorm/thunderstorm_pb2.py | Zelenyy/phd-code | d5b8bfefd2418a915dde89f7da2cb6683f438556 | [
"MIT"
] | null | null | null | python/phd/thunderstorm/thunderstorm_pb2.py | Zelenyy/phd-code | d5b8bfefd2418a915dde89f7da2cb6683f438556 | [
"MIT"
] | null | null | null | python/phd/thunderstorm/thunderstorm_pb2.py | Zelenyy/phd-code | d5b8bfefd2418a915dde89f7da2cb6683f438556 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: thunderstorm.proto
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import symbol_database as _sym... | 39.25167 | 1,428 | 0.742283 | 2,163 | 17,624 | 5.784096 | 0.081831 | 0.05627 | 0.054352 | 0.043162 | 0.713292 | 0.679882 | 0.666454 | 0.641356 | 0.637039 | 0.60179 | 0 | 0.044683 | 0.131412 | 17,624 | 448 | 1,429 | 39.339286 | 0.772603 | 0.036257 | 0 | 0.695545 | 1 | 0.002475 | 0.19267 | 0.144002 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.009901 | 0 | 0.009901 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8e841852b13bd20cdaf20a84cead368b570bb067 | 330 | py | Python | lessons/permissions.py | regina404/school | ec7d44c158694293c381c31d778b97496ccf154b | [
"MIT"
] | null | null | null | lessons/permissions.py | regina404/school | ec7d44c158694293c381c31d778b97496ccf154b | [
"MIT"
] | null | null | null | lessons/permissions.py | regina404/school | ec7d44c158694293c381c31d778b97496ccf154b | [
"MIT"
] | null | null | null | from django.http import Http404
class AuthorPermissionsMixin:
def has_permissions(self):
return self.get_object().author == self.request.user
def dispatch(self, request, *args, **kwargs):
if not self.has_permissions():
raise Http404()
return super().dispatch(request, *args,... | 33 | 60 | 0.669697 | 38 | 330 | 5.736842 | 0.631579 | 0.12844 | 0.155963 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023166 | 0.215152 | 330 | 10 | 61 | 33 | 0.818533 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0.125 | 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 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
8ebb63dd2b39bf4f3cf5240a8631d5d75a70f675 | 439 | py | Python | mlinspect/inspections/_inspection_result.py | tum-db/mlinspect4sql | 863f1a98baff92341722b4fb180008cf9b518b80 | [
"Apache-2.0"
] | 40 | 2020-10-20T15:56:35.000Z | 2022-02-22T14:48:09.000Z | mlinspect/inspections/_inspection_result.py | tum-db/mlinspect4sql | 863f1a98baff92341722b4fb180008cf9b518b80 | [
"Apache-2.0"
] | 55 | 2020-10-21T15:37:44.000Z | 2022-02-10T02:44:18.000Z | mlinspect/inspections/_inspection_result.py | tum-db/mlinspect4sql | 863f1a98baff92341722b4fb180008cf9b518b80 | [
"Apache-2.0"
] | 9 | 2021-01-15T15:53:25.000Z | 2022-03-31T23:42:12.000Z | """
Data class used as result of the PipelineExecutor
"""
import dataclasses
from typing import Dict
import networkx
from mlinspect.instrumentation._dag_node import DagNode
from mlinspect.inspections._inspection import Inspection
@dataclasses.dataclass
class InspectionResult:
"""
The class the PipelineExecu... | 21.95 | 72 | 0.785877 | 51 | 439 | 6.627451 | 0.54902 | 0.112426 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.150342 | 439 | 19 | 73 | 23.105263 | 0.906166 | 0.200456 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.555556 | 0 | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
8ebcb0ec27e209ef4ad48830634d147c3d14a3dd | 595 | py | Python | Solutions/317.py | ruppysuppy/Daily-Coding-Problem-Solutions | 37d061215a9af2ce39c51f8816c83039914c0d0b | [
"MIT"
] | 70 | 2021-03-18T05:22:40.000Z | 2022-03-30T05:36:50.000Z | Solutions/317.py | ungaro/Daily-Coding-Problem-Solutions | 37d061215a9af2ce39c51f8816c83039914c0d0b | [
"MIT"
] | null | null | null | Solutions/317.py | ungaro/Daily-Coding-Problem-Solutions | 37d061215a9af2ce39c51f8816c83039914c0d0b | [
"MIT"
] | 30 | 2021-03-18T05:22:43.000Z | 2022-03-17T10:25:18.000Z | """
Problem:
Write a function that returns the bitwise AND of all integers between M and N,
inclusive.
"""
def bitwise_and_on_range(start: int, end: int) -> int:
# using naive approach
result = start
for num in range(start + 1, end + 1):
result = result & num
return result
if __name__ == "_... | 19.193548 | 78 | 0.67395 | 92 | 595 | 4.076087 | 0.521739 | 0.186667 | 0.192 | 0.272 | 0.293333 | 0 | 0 | 0 | 0 | 0 | 0 | 0.053079 | 0.208403 | 595 | 30 | 79 | 19.833333 | 0.7431 | 0.203361 | 0 | 0 | 0 | 0 | 0.019704 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.090909 | false | 0 | 0 | 0 | 0.181818 | 0.454545 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
8ee107036ce5b2c8791ef5bea3a32a7260e7f986 | 39 | py | Python | gravipy/__init__.py | a3ahmad/GraviPy-engine | 4809438f8d505731c47932f5db578ca8f315132f | [
"BSD-3-Clause"
] | 35 | 2019-11-21T17:09:22.000Z | 2022-03-22T22:12:52.000Z | gravipy/__init__.py | a3ahmad/GraviPy-engine | 4809438f8d505731c47932f5db578ca8f315132f | [
"BSD-3-Clause"
] | null | null | null | gravipy/__init__.py | a3ahmad/GraviPy-engine | 4809438f8d505731c47932f5db578ca8f315132f | [
"BSD-3-Clause"
] | 8 | 2019-09-26T07:20:09.000Z | 2021-07-16T03:50:48.000Z | name = "gravipy"
__version__ = "0.2.0"
| 13 | 21 | 0.641026 | 6 | 39 | 3.5 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 0.153846 | 39 | 2 | 22 | 19.5 | 0.545455 | 0 | 0 | 0 | 0 | 0 | 0.307692 | 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 |
8eef5130c34408c67ab467eb6ed0df4e0d55ac5a | 1,638 | py | Python | sorting/balanced_split.py | elenaborisova/LeetCode-Solutions | 98376aab7fd150a724e316357ae5ea46988d9eac | [
"MIT"
] | null | null | null | sorting/balanced_split.py | elenaborisova/LeetCode-Solutions | 98376aab7fd150a724e316357ae5ea46988d9eac | [
"MIT"
] | null | null | null | sorting/balanced_split.py | elenaborisova/LeetCode-Solutions | 98376aab7fd150a724e316357ae5ea46988d9eac | [
"MIT"
] | null | null | null | def balanced_split_exists(arr):
if len(arr) < 2 or sum(arr) % 2 != 0:
return False
arr.sort() # n log n
l, r = 0, len(arr) - 1
left_sum, right_sum = arr[l], arr[r]
while l <= r:
if arr[l] >= arr[r]:
return False
if left_sum < right_sum:
l += 1
... | 32.76 | 78 | 0.562271 | 285 | 1,638 | 3.063158 | 0.129825 | 0.052692 | 0.413517 | 0.494845 | 0.69874 | 0.572738 | 0.398625 | 0.252005 | 0.252005 | 0.252005 | 0 | 0.103336 | 0.249695 | 1,638 | 49 | 79 | 33.428571 | 0.606998 | 0.0116 | 0 | 0.25641 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025641 | false | 0 | 0 | 0 | 0.102564 | 0.461538 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
d90ff67bf2e7507bc05749bf893acb4b3f03b87f | 889 | py | Python | matrix/amazon/__init__.py | ruxtain/matrix | 00bfaccbd1589cf513de7f690c079a537bff1d19 | [
"MIT"
] | 4 | 2019-01-09T09:42:18.000Z | 2020-11-05T03:50:54.000Z | matrix/amazon/__init__.py | ruxtain/matrix | 00bfaccbd1589cf513de7f690c079a537bff1d19 | [
"MIT"
] | null | null | null | matrix/amazon/__init__.py | ruxtain/matrix | 00bfaccbd1589cf513de7f690c079a537bff1d19 | [
"MIT"
] | null | null | null | # 常量性质的东西都放到这里
# 普通脚本只放功能性的东西
domains = {
'JP':'https://www.amazon.co.jp',
'UK':'https://www.amazon.co.uk',
'ES':'https://www.amazon.es',
'FR':'https://www.amazon.fr',
'US':'https://www.amazon.com',
'IT':'https://www.amazon.it',
'DE':'https://www.amazon.de',
'CA':'https://www.amazon.ca'... | 30.655172 | 134 | 0.577053 | 131 | 889 | 3.862595 | 0.305344 | 0.284585 | 0.498024 | 0.126482 | 0.671937 | 0.241107 | 0 | 0 | 0 | 0 | 0 | 0.003841 | 0.121485 | 889 | 28 | 135 | 31.75 | 0.644046 | 0.028121 | 0 | 0 | 0 | 0.043478 | 0.70964 | 0.140534 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d917fb19637ccfca9bac091ac323c4ccfb06bcbb | 121 | py | Python | tasks/common.py | Lee-W/pelican-stat | 17d30880e5af081c556eea8f5116ce6577796466 | [
"MIT"
] | 4 | 2021-01-20T07:36:05.000Z | 2021-02-03T13:37:26.000Z | tasks/common.py | Lee-W/pelican-stat | 17d30880e5af081c556eea8f5116ce6577796466 | [
"MIT"
] | null | null | null | tasks/common.py | Lee-W/pelican-stat | 17d30880e5af081c556eea8f5116ce6577796466 | [
"MIT"
] | 1 | 2021-01-23T05:04:15.000Z | 2021-01-23T05:04:15.000Z | VENV_PREFIX = "poetry run"
_COMMON_TARGETS = ["pelican_stat", "tests"]
COMMON_TARGETS_AS_STR = " ".join(_COMMON_TARGETS)
| 30.25 | 49 | 0.760331 | 16 | 121 | 5.1875 | 0.75 | 0.46988 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.099174 | 121 | 3 | 50 | 40.333333 | 0.761468 | 0 | 0 | 0 | 0 | 0 | 0.231405 | 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 |
d92ba52dfc36686f52401522d1163aa642b28a10 | 3,055 | py | Python | xsconnect/peripheralboards/RPi_V2.py | xesscorp/xsconnect | b08b2e24e7a017d9f87ad4651f82915179f1fd52 | [
"MIT"
] | null | null | null | xsconnect/peripheralboards/RPi_V2.py | xesscorp/xsconnect | b08b2e24e7a017d9f87ad4651f82915179f1fd52 | [
"MIT"
] | 1 | 2017-01-26T12:09:44.000Z | 2021-03-07T14:13:14.000Z | xsconnect/peripheralboards/RPi_V2.py | xesscorp/xsconnect | b08b2e24e7a017d9f87ad4651f82915179f1fd52 | [
"MIT"
] | 1 | 2021-08-16T07:31:24.000Z | 2021-08-16T07:31:24.000Z | brd = {
'name': ('Raspberry Pi B+/2'),
'port': {
'rpigpio': {
'gpio' : {
# BCM/Functional RPi pin names.
'bcm2_sda' : '3',
'bcm3_scl' : '5',
'bcm4_gpclk0': '7',
'bcm17' : '11',
... | 32.849462 | 48 | 0.235025 | 195 | 3,055 | 3.594872 | 0.54359 | 0.025678 | 0.047076 | 0.059914 | 0.071327 | 0 | 0 | 0 | 0 | 0 | 0 | 0.226237 | 0.583306 | 3,055 | 92 | 49 | 33.206522 | 0.32443 | 0.287725 | 0 | 0 | 0 | 0 | 0.137574 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d948ecb27ea60341cb54e0e93ab046abfa99a7b2 | 109 | py | Python | utils/g.py | marquis-ogre/Quad-Discord-Tipping-Bot | 4101c9429641532165bac2466c0325cd6041d1b5 | [
"MIT"
] | 1 | 2019-08-28T21:52:39.000Z | 2019-08-28T21:52:39.000Z | utils/g.py | marquis-ogre/Quad-Discord-Tipping-Bot | 4101c9429641532165bac2466c0325cd6041d1b5 | [
"MIT"
] | null | null | null | utils/g.py | marquis-ogre/Quad-Discord-Tipping-Bot | 4101c9429641532165bac2466c0325cd6041d1b5 | [
"MIT"
] | 12 | 2018-06-05T20:13:53.000Z | 2020-07-25T12:46:40.000Z | #Contains needed global variables
import os
loaded_extensions = []
startup_extensions = os.listdir("./cogs")
| 21.8 | 41 | 0.779817 | 13 | 109 | 6.384615 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.110092 | 109 | 4 | 42 | 27.25 | 0.85567 | 0.293578 | 0 | 0 | 0 | 0 | 0.078947 | 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 |
d955ff3286074f3031a672db16589b6c39984ea7 | 54 | py | Python | ex002.py | Selineo/CursoDePython-Mundo1 | 021eeed8b6f739e476b16d96c77619e85028811b | [
"MIT"
] | null | null | null | ex002.py | Selineo/CursoDePython-Mundo1 | 021eeed8b6f739e476b16d96c77619e85028811b | [
"MIT"
] | null | null | null | ex002.py | Selineo/CursoDePython-Mundo1 | 021eeed8b6f739e476b16d96c77619e85028811b | [
"MIT"
] | null | null | null | n = str(input('Digite seu nome: '))
print(f'ola {n}')
| 18 | 35 | 0.592593 | 10 | 54 | 3.2 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.148148 | 54 | 2 | 36 | 27 | 0.695652 | 0 | 0 | 0 | 0 | 0 | 0.444444 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 |
d96c6be875d2d206560d10ff0be6a407b15a6220 | 2,132 | py | Python | lacquer/tree/window.py | provingground-moe/lacquer | 4b005400de995288c8ca9050342097e0f4665d49 | [
"Apache-2.0"
] | 30 | 2017-01-13T00:27:29.000Z | 2022-03-24T09:20:06.000Z | lacquer/tree/window.py | provingground-moe/lacquer | 4b005400de995288c8ca9050342097e0f4665d49 | [
"Apache-2.0"
] | 15 | 2017-01-24T23:54:07.000Z | 2017-03-31T20:19:40.000Z | lacquer/tree/window.py | provingground-moe/lacquer | 4b005400de995288c8ca9050342097e0f4665d49 | [
"Apache-2.0"
] | 16 | 2017-08-22T17:35:54.000Z | 2019-06-25T16:04:23.000Z | # -*- coding: utf-8 -*-
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
... | 32.30303 | 115 | 0.643527 | 270 | 2,132 | 4.907407 | 0.355556 | 0.045283 | 0.024906 | 0.033962 | 0.402264 | 0.387925 | 0.387925 | 0.387925 | 0.284528 | 0.207547 | 0 | 0.003049 | 0.230769 | 2,132 | 65 | 116 | 32.8 | 0.804878 | 0.472326 | 0 | 0.208333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.041667 | 0.125 | 0.541667 | 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 |
d979187966c1825ae0c693c0dadf905cc61e1c83 | 17,820 | py | Python | test/unit_tests/test_metadata_table.py | MicroTed/ccpp-framework | a55457fe3ef66e1651c94f99e72aba3362b105a2 | [
"Apache-2.0"
] | null | null | null | test/unit_tests/test_metadata_table.py | MicroTed/ccpp-framework | a55457fe3ef66e1651c94f99e72aba3362b105a2 | [
"Apache-2.0"
] | null | null | null | test/unit_tests/test_metadata_table.py | MicroTed/ccpp-framework | a55457fe3ef66e1651c94f99e72aba3362b105a2 | [
"Apache-2.0"
] | null | null | null | #! /usr/bin/env python3
"""
-----------------------------------------------------------------------
Description: Contains unit tests for parse_metadata_file
in scripts file metadata_table.py
Assumptions:
Command line arguments: none
Usage: python test_metadata_table.py # run the unit test... | 44.661654 | 130 | 0.654714 | 2,187 | 17,820 | 5.099223 | 0.090078 | 0.039544 | 0.027618 | 0.036316 | 0.793131 | 0.73655 | 0.701399 | 0.677816 | 0.65773 | 0.632532 | 0 | 0.002218 | 0.240909 | 17,820 | 398 | 131 | 44.773869 | 0.822207 | 0.201178 | 0 | 0.517241 | 0 | 0 | 0.180484 | 0.056766 | 0 | 0 | 0 | 0 | 0.284483 | 1 | 0.116379 | false | 0 | 0.025862 | 0 | 0.150862 | 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 |
7996ec6fe22a7138d4973f9dfed74179f08a02b6 | 127 | py | Python | maintenance/tests_old/test_ale_mdps.py | sfpd/rlreloaded | 650c64ec22ad45996c8c577d85b1a4f20aa1c692 | [
"MIT"
] | null | null | null | maintenance/tests_old/test_ale_mdps.py | sfpd/rlreloaded | 650c64ec22ad45996c8c577d85b1a4f20aa1c692 | [
"MIT"
] | null | null | null | maintenance/tests_old/test_ale_mdps.py | sfpd/rlreloaded | 650c64ec22ad45996c8c577d85b1a4f20aa1c692 | [
"MIT"
] | null | null | null | from control3.ale_mdps import *
for key in ALE_METADATA:
print "checking",key
mdp = get_mdp("ale:"+key)
print "ok"
| 21.166667 | 31 | 0.669291 | 20 | 127 | 4.1 | 0.7 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01 | 0.212598 | 127 | 5 | 32 | 25.4 | 0.81 | 0 | 0 | 0 | 0 | 0 | 0.110236 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.2 | null | null | 0.4 | 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 |
799d49808037b101a34e681af84740bdc801b8a8 | 9,835 | py | Python | tests/test_models.py | pietrobarbiero/logic_explained_networks | 238f2a220ae8fc4f31ab0cf12649603aba0285d5 | [
"Apache-2.0"
] | 18 | 2021-05-24T07:47:57.000Z | 2022-01-05T14:48:39.000Z | tests/test_models.py | pietrobarbiero/logic_explained_networks | 238f2a220ae8fc4f31ab0cf12649603aba0285d5 | [
"Apache-2.0"
] | 1 | 2021-08-25T16:33:10.000Z | 2021-08-25T16:33:10.000Z | tests/test_models.py | pietrobarbiero/deep-logic | 238f2a220ae8fc4f31ab0cf12649603aba0285d5 | [
"Apache-2.0"
] | 2 | 2021-05-26T08:15:14.000Z | 2021-08-23T18:58:16.000Z | import unittest
import torch
from torch.utils.data import TensorDataset
from sklearn import datasets
from sklearn.preprocessing import LabelBinarizer
from lens.models.relu_nn import XReluNN
from lens.models.psi_nn import PsiNetwork
from lens.models.general_nn import XGeneralNN
from lens.models.tree import XDecisionTr... | 37.826923 | 137 | 0.669548 | 1,195 | 9,835 | 5.225105 | 0.102929 | 0.046124 | 0.035874 | 0.03171 | 0.745996 | 0.717649 | 0.706598 | 0.689462 | 0.638693 | 0.622197 | 0 | 0.060751 | 0.236807 | 9,835 | 259 | 138 | 37.972973 | 0.771116 | 0.014235 | 0 | 0.511111 | 0 | 0 | 0.076693 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.027778 | false | 0 | 0.083333 | 0 | 0.144444 | 0.111111 | 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 |
79a194d5d292dec53a6b843ff6daf5ecc852d141 | 193 | py | Python | kaylee/testsuite/projects/__init__.py | BasicWolf/archived-kaylee | 91e5c9025a525f3b0033b067d810a38c9e6be4d3 | [
"MIT"
] | 2 | 2018-02-18T09:52:23.000Z | 2018-03-04T06:23:15.000Z | kaylee/testsuite/projects/__init__.py | BasicWolf/archived-kaylee | 91e5c9025a525f3b0033b067d810a38c9e6be4d3 | [
"MIT"
] | 6 | 2017-08-03T18:51:38.000Z | 2017-08-03T18:51:38.000Z | kaylee/testsuite/projects/__init__.py | BasicWolf/archived-kaylee | 91e5c9025a525f3b0033b067d810a38c9e6be4d3 | [
"MIT"
] | null | null | null | # The __init__.py file here is used for testing purposes only, so that
# the project modules are importable.
# There is no need to have __init__.py in a concrete Kaylee 'projects'
# directory.
| 38.6 | 70 | 0.766839 | 32 | 193 | 4.375 | 0.875 | 0.085714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.176166 | 193 | 4 | 71 | 48.25 | 0.880503 | 0.953368 | 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 |
8db987b562eebb42415791fc30cf1d16fb842d5e | 20 | py | Python | Client/__init__.py | danielvanpaass/Demonstrator | 445ce5fc6b9a57e27379f88324185e6c27b8cde7 | [
"MIT"
] | null | null | null | Client/__init__.py | danielvanpaass/Demonstrator | 445ce5fc6b9a57e27379f88324185e6c27b8cde7 | [
"MIT"
] | null | null | null | Client/__init__.py | danielvanpaass/Demonstrator | 445ce5fc6b9a57e27379f88324185e6c27b8cde7 | [
"MIT"
] | null | null | null | __USEPINS__ = False
| 10 | 19 | 0.8 | 2 | 20 | 6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15 | 20 | 1 | 20 | 20 | 0.705882 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
8df190664784def04b84423cd10703021d322ffc | 603 | py | Python | external/fv3fit/fv3fit/keras/_models/shared/__init__.py | jacnugent/fv3net | 84958651bdd17784fdab98f87ad0d65414c03368 | [
"MIT"
] | 5 | 2021-03-20T22:42:40.000Z | 2021-06-30T18:39:36.000Z | external/fv3fit/fv3fit/keras/_models/shared/__init__.py | jacnugent/fv3net | 84958651bdd17784fdab98f87ad0d65414c03368 | [
"MIT"
] | 154 | 2021-03-17T19:44:29.000Z | 2021-09-15T23:02:12.000Z | external/fv3fit/fv3fit/keras/_models/shared/__init__.py | jacnugent/fv3net | 84958651bdd17784fdab98f87ad0d65414c03368 | [
"MIT"
] | 1 | 2021-06-16T22:04:24.000Z | 2021-06-16T22:04:24.000Z | from .dense_network import DenseNetwork, DenseNetworkConfig
from .convolutional_network import (
ConvolutionalNetworkConfig,
ConvolutionalNetwork,
TransposeInvariant,
ConstraintCollection,
Diffusive,
)
from .pure_keras import PureKerasModel
from .training_loop import TrainingLoopConfig, EpochResult,... | 37.6875 | 87 | 0.844113 | 57 | 603 | 8.77193 | 0.666667 | 0.052 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.116086 | 603 | 15 | 88 | 40.2 | 0.938086 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
8dfbd8889ae542ca09b73e462f2bdbbb48d21116 | 1,035 | py | Python | dgtools/testcase.py | petr-muller/dejagnu-tools | 9a5195fd398639b69d5512d6c43e3a45e5c900f1 | [
"Apache-2.0"
] | null | null | null | dgtools/testcase.py | petr-muller/dejagnu-tools | 9a5195fd398639b69d5512d6c43e3a45e5c900f1 | [
"Apache-2.0"
] | null | null | null | dgtools/testcase.py | petr-muller/dejagnu-tools | 9a5195fd398639b69d5512d6c43e3a45e5c900f1 | [
"Apache-2.0"
] | null | null | null | """Module contains classes and methods representing DG testcases and results."""
from enum import Enum, unique
@unique
class DGResult(Enum):
"""Constants representing results of the individual checks"""
UNSUPPORTED = "UNSUPPORTED"
KFAIL = "KFAIL"
PASS = "PASS"
FAIL = "FAIL"
def __str__(self)... | 26.538462 | 80 | 0.656039 | 127 | 1,035 | 5.244094 | 0.440945 | 0.06006 | 0.04955 | 0.057057 | 0.274775 | 0.220721 | 0.15015 | 0.15015 | 0.15015 | 0.15015 | 0 | 0 | 0.227053 | 1,035 | 38 | 81 | 27.236842 | 0.8325 | 0.35942 | 0 | 0.105263 | 0 | 0 | 0.037795 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0.052632 | 0.052632 | 0.052632 | 0.684211 | 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 |
5c14d344935bb843655579255bbeb98cd2e91180 | 4,557 | py | Python | notebook/dir_builtins.py | vhn0912/python-snippets | 80b2e1d6b2b8f12ae30d6dbe86d25bb2b3a02038 | [
"MIT"
] | 174 | 2018-05-30T21:14:50.000Z | 2022-03-25T07:59:37.000Z | notebook/dir_builtins.py | vhn0912/python-snippets | 80b2e1d6b2b8f12ae30d6dbe86d25bb2b3a02038 | [
"MIT"
] | 5 | 2019-08-10T03:22:02.000Z | 2021-07-12T20:31:17.000Z | notebook/dir_builtins.py | vhn0912/python-snippets | 80b2e1d6b2b8f12ae30d6dbe86d25bb2b3a02038 | [
"MIT"
] | 53 | 2018-04-27T05:26:35.000Z | 2022-03-25T07:59:37.000Z | import pprint
print(type(dir(__builtins__)))
# <class 'list'>
print(len(dir(__builtins__)))
# 153
pprint.pprint(dir(__builtins__), compact=True)
# ['ArithmeticError', 'AssertionError', 'AttributeError', 'BaseException',
# 'BlockingIOError', 'BrokenPipeError', 'BufferError', 'BytesWarning',
# 'ChildProcessError', '... | 57.683544 | 100 | 0.680053 | 370 | 4,557 | 8.17027 | 0.456757 | 0.032749 | 0.017201 | 0.015878 | 0.509097 | 0.365531 | 0.302679 | 0.302679 | 0.302679 | 0.302679 | 0 | 0.001217 | 0.09831 | 4,557 | 78 | 101 | 58.423077 | 0.734485 | 0.865043 | 0 | 0 | 0 | 0 | 0.028829 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.1 | 0 | 0.1 | 1 | 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 | 0 | 0 | 0 | 1 | 0 | 3 |
5c2d915ba824b4388ede3608fb3043734deea45d | 186 | py | Python | hello.py | pysp/HelloTream | ad789e90087fec185e61a5323442a057f6baaee6 | [
"Apache-2.0"
] | null | null | null | hello.py | pysp/HelloTream | ad789e90087fec185e61a5323442a057f6baaee6 | [
"Apache-2.0"
] | null | null | null | hello.py | pysp/HelloTream | ad789e90087fec185e61a5323442a057f6baaee6 | [
"Apache-2.0"
] | null | null | null | print('pypypy')
print('pypypy111')
print('pycharm1111')
print('pycharm222')
print('pypypy222')
print('pycharm3333')
print('pypypy333')
hheheheh
# zuishuaidezishi
ssshhhhhhh
| 7.75 | 20 | 0.715054 | 17 | 186 | 7.823529 | 0.647059 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.123457 | 0.129032 | 186 | 23 | 21 | 8.086957 | 0.697531 | 0.080645 | 0 | 0 | 0 | 0 | 0.384615 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0.777778 | 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 | 0 | 1 | 0 | 3 |
5c31a60a2b9ef4d53e8b992a307f7dbdeb051050 | 1,258 | py | Python | logical/converter/qiskit/backends/aer/qasm_simulator_py.py | malcolmregan/GateCircuit-to-AnnealerEmbedding | 33a1a4ea2ebd707ade0677e0df468d5120a861db | [
"Apache-2.0"
] | null | null | null | logical/converter/qiskit/backends/aer/qasm_simulator_py.py | malcolmregan/GateCircuit-to-AnnealerEmbedding | 33a1a4ea2ebd707ade0677e0df468d5120a861db | [
"Apache-2.0"
] | 1 | 2019-04-09T02:22:38.000Z | 2019-04-09T02:22:38.000Z | logical/converter/qiskit/backends/aer/qasm_simulator_py.py | malcolmregan/GateCircuit-to-AnnealerEmbedding | 33a1a4ea2ebd707ade0677e0df468d5120a861db | [
"Apache-2.0"
] | null | null | null |
import random
import uuid
import time
import logging
from collections import Counter
import numpy as np
from converter.qiskit.result._utils import copy_qasm_from_qobj_into_result, result_from_old_style_dict
from converter.qiskit.backends import BaseBackend
from converter.qiskit.backends.aer.aerjob imp... | 11.980952 | 102 | 0.661367 | 164 | 1,258 | 4.77439 | 0.432927 | 0.12516 | 0.076628 | 0.10728 | 0.083014 | 0.058748 | 0 | 0 | 0 | 0 | 0 | 0.008734 | 0.27186 | 1,258 | 104 | 103 | 12.096154 | 0.84607 | 0 | 0 | 0.365854 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.341463 | false | 0.365854 | 0.268293 | 0 | 0.634146 | 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 |
3093c252f029f5711037799c67c72fbc46d3ec2e | 813 | py | Python | utils.py | ndey96/deep-generator-network | 4b41bc54712ed81ae9eae511a26b6903b3123c99 | [
"MIT"
] | null | null | null | utils.py | ndey96/deep-generator-network | 4b41bc54712ed81ae9eae511a26b6903b3123c99 | [
"MIT"
] | 6 | 2020-03-20T16:27:31.000Z | 2020-09-18T05:44:23.000Z | utils.py | ndey96/deep-generator-network | 4b41bc54712ed81ae9eae511a26b6903b3123c99 | [
"MIT"
] | null | null | null | from torch import nn
def center_crop(x, current_size, desired_size):
start = int((current_size - desired_size)/2)
return x[:,:, start:(start + desired_size), start:(start + desired_size)]
class ds_flatten(nn.Module):
def __init__(self):
super(ds_flatten, self).__init__()
def forward(self, ... | 21.972973 | 77 | 0.569496 | 122 | 813 | 3.52459 | 0.245902 | 0.069767 | 0.083721 | 0.104651 | 0.504651 | 0.460465 | 0.460465 | 0.302326 | 0.302326 | 0.302326 | 0 | 0.005146 | 0.282903 | 813 | 37 | 78 | 21.972973 | 0.732419 | 0 | 0 | 0.36 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.28 | false | 0 | 0.04 | 0.12 | 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 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
30a01fc0f64a03b40b1b9c04b438e73421fda95a | 625 | py | Python | src/origin/bus/messages/measurements.py | Energinet-DataHub/po-platform-utils | 36cf0f8a7dcd4a57119ec11bae6233f0c8760a24 | [
"Apache-2.0"
] | null | null | null | src/origin/bus/messages/measurements.py | Energinet-DataHub/po-platform-utils | 36cf0f8a7dcd4a57119ec11bae6233f0c8760a24 | [
"Apache-2.0"
] | 3 | 2022-02-28T08:55:38.000Z | 2022-03-09T12:07:04.000Z | src/origin/bus/messages/measurements.py | Energinet-DataHub/po-platform-utils | 36cf0f8a7dcd4a57119ec11bae6233f0c8760a24 | [
"Apache-2.0"
] | 2 | 2021-12-18T16:18:43.000Z | 2022-03-01T12:03:34.000Z | from dataclasses import dataclass
from origin.bus import Message
from origin.models.common import DateTimeRange
from origin.models.measurements import Measurement
@dataclass
class MeasurementUpdate(Message):
"""A new Measurement has been added to the system."""
measurement: Measurement
@dataclass
class Me... | 19.53125 | 57 | 0.7408 | 74 | 625 | 6.22973 | 0.445946 | 0.065076 | 0.117137 | 0.095445 | 0.112798 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1856 | 625 | 31 | 58 | 20.16129 | 0.905697 | 0.3056 | 0 | 0.214286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.357143 | 0 | 0.857143 | 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 |
30bc76126d4cef5f89b80e9d176ecb616b5a4143 | 123 | py | Python | nerd_names_api/config.py | DIS-SIN/Nerd-Names-API | 3cc56007619eb8b9c28165e7f0b34b8888e5291b | [
"MIT"
] | null | null | null | nerd_names_api/config.py | DIS-SIN/Nerd-Names-API | 3cc56007619eb8b9c28165e7f0b34b8888e5291b | [
"MIT"
] | null | null | null | nerd_names_api/config.py | DIS-SIN/Nerd-Names-API | 3cc56007619eb8b9c28165e7f0b34b8888e5291b | [
"MIT"
] | null | null | null | import os
class Config:
DEBUG = False
JSON_AS_ASCII = False
JSONIFY_PRETTYPRINT_REGULAR = True
JSON_SORT_KEYS = False
| 15.375 | 35 | 0.788618 | 18 | 123 | 5.055556 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.170732 | 123 | 7 | 36 | 17.571429 | 0.892157 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
30bfd8ed42ec32f2d830e452c911d65935b96728 | 1,356 | py | Python | lambdata/helper_functions_og.py | RyanFikejs/lambdata-ryanfikejs | 649edc445b854902447fe67ebab44f936fcead29 | [
"MIT"
] | null | null | null | lambdata/helper_functions_og.py | RyanFikejs/lambdata-ryanfikejs | 649edc445b854902447fe67ebab44f936fcead29 | [
"MIT"
] | null | null | null | lambdata/helper_functions_og.py | RyanFikejs/lambdata-ryanfikejs | 649edc445b854902447fe67ebab44f936fcead29 | [
"MIT"
] | null | null | null | """Python file containing a package of functions created with
helper functions for LS DS Unit 3, Sprint 1"""
import pandas as pd
import numpy as np
# Create a stock dataframe for testing functions in the repl
test_df = pd.read_csv('data/test.csv')
def null_count(df):
'''This function checks the dataframe for nul... | 26.076923 | 67 | 0.705752 | 221 | 1,356 | 4.235294 | 0.466063 | 0.029915 | 0.025641 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01223 | 0.216077 | 1,356 | 52 | 68 | 26.076923 | 0.868297 | 0.498525 | 0 | 0.25 | 0 | 0 | 0.020505 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0.25 | 0.083333 | 0 | 0.541667 | 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 |
30d1d580cff49942c430657041af1e690f6019ac | 229 | py | Python | source-code-from-author-book/Listings-for-Second-Edition/listing_1_16.py | robrac/algorithms-exercises-with-python | 5780171517eacc1c7133fdc32cf079623cd14cf9 | [
"MIT"
] | null | null | null | source-code-from-author-book/Listings-for-Second-Edition/listing_1_16.py | robrac/algorithms-exercises-with-python | 5780171517eacc1c7133fdc32cf079623cd14cf9 | [
"MIT"
] | null | null | null | source-code-from-author-book/Listings-for-Second-Edition/listing_1_16.py | robrac/algorithms-exercises-with-python | 5780171517eacc1c7133fdc32cf079623cd14cf9 | [
"MIT"
] | null | null | null | def getPinA(self):
if self.pinA == None:
return input("Enter Pin A input for gate "+ \
self.getName()+"-->")
else:
return self.pinA.getFrom().getOutput()
| 32.714286 | 57 | 0.458515 | 23 | 229 | 4.565217 | 0.73913 | 0.152381 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.41048 | 229 | 6 | 58 | 38.166667 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0.131004 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
a508e3861b8c6d93fc431b2080dde9184f325f1d | 7,952 | py | Python | kubernetes/test/test_com_coreos_monitoring_v1_prometheus_spec_remote_write.py | mariusgheorghies/python | 68ac7e168963d8b5a81dc493b1973d29e903a15b | [
"Apache-2.0"
] | null | null | null | kubernetes/test/test_com_coreos_monitoring_v1_prometheus_spec_remote_write.py | mariusgheorghies/python | 68ac7e168963d8b5a81dc493b1973d29e903a15b | [
"Apache-2.0"
] | null | null | null | kubernetes/test/test_com_coreos_monitoring_v1_prometheus_spec_remote_write.py | mariusgheorghies/python | 68ac7e168963d8b5a81dc493b1973d29e903a15b | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
"""
Kubernetes
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
The version of the OpenAPI document: v1.20.7
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
import unitte... | 55.222222 | 199 | 0.601484 | 745 | 7,952 | 5.915436 | 0.202685 | 0.081688 | 0.172453 | 0.190606 | 0.582709 | 0.568641 | 0.520989 | 0.433628 | 0.397549 | 0.371681 | 0 | 0.026346 | 0.336519 | 7,952 | 143 | 200 | 55.608392 | 0.808946 | 0.021756 | 0 | 0.382609 | 1 | 0 | 0.008222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.026087 | 0.052174 | null | null | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
eb91e56fffaadff5ef800a4db07ff524a64d3b95 | 131 | py | Python | estimation/estimate_data.py | AnonTendim/si-library | f5f66e27b8db245c9f77c993bb1c1a38b1231d1d | [
"MIT"
] | 1 | 2022-03-15T00:24:08.000Z | 2022-03-15T00:24:08.000Z | estimation/estimate_data.py | AnonTendim/si-library | f5f66e27b8db245c9f77c993bb1c1a38b1231d1d | [
"MIT"
] | null | null | null | estimation/estimate_data.py | AnonTendim/si-library | f5f66e27b8db245c9f77c993bb1c1a38b1231d1d | [
"MIT"
] | 1 | 2021-12-27T18:47:27.000Z | 2021-12-27T18:47:27.000Z | import utils.diagnosis_utils
def main():
path = 'data/'
filename = 'sample_input'
# TODO
if __name__ == "__main__":
main() | 14.555556 | 28 | 0.664122 | 16 | 131 | 4.8125 | 0.8125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.19084 | 131 | 9 | 29 | 14.555556 | 0.726415 | 0.030534 | 0 | 0 | 0 | 0 | 0.198413 | 0 | 0 | 0 | 0 | 0.111111 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
eb92c7cb008e43e04e8afc1bbbce5d93109bd09a | 122 | py | Python | apeiron/commons/help_messages.py | danimaniarqsoft/apeiron | b0d730e0b22d0df60e0001cfa79da80dd85f15cc | [
"MIT"
] | null | null | null | apeiron/commons/help_messages.py | danimaniarqsoft/apeiron | b0d730e0b22d0df60e0001cfa79da80dd85f15cc | [
"MIT"
] | null | null | null | apeiron/commons/help_messages.py | danimaniarqsoft/apeiron | b0d730e0b22d0df60e0001cfa79da80dd85f15cc | [
"MIT"
] | null | null | null | from enum import Enum
class HelpMessages(Enum):
ADD = 'Add '
CONTRIBUTING_FILE = 'a standart Contributing File'
| 17.428571 | 54 | 0.713115 | 15 | 122 | 5.733333 | 0.666667 | 0.372093 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.213115 | 122 | 6 | 55 | 20.333333 | 0.895833 | 0 | 0 | 0 | 0 | 0 | 0.262295 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
eb9eeeef0a7902d5e6a6c0c3e98c5628ea1e6009 | 366 | py | Python | tests/search/connection_test.py | not-nexus/shelf | ea59703082402ad3b6454482f0487418295fbd19 | [
"MIT"
] | 4 | 2016-11-07T13:02:18.000Z | 2019-09-03T02:04:05.000Z | tests/search/connection_test.py | not-nexus/shelf | ea59703082402ad3b6454482f0487418295fbd19 | [
"MIT"
] | 21 | 2016-11-30T20:44:52.000Z | 2017-05-02T15:38:56.000Z | tests/search/connection_test.py | not-nexus/shelf | ea59703082402ad3b6454482f0487418295fbd19 | [
"MIT"
] | 2 | 2017-01-24T14:36:04.000Z | 2020-01-13T16:10:05.000Z | import pyproctor
from shelf.search.connection import Connection
class ConnectionTest(pyproctor.TestBase):
def test_https(self):
# Ensuring use_ssl is set properly if https schema is passed in.
con = Connection("https://localhost:9200/index")
self.assertEqual("https://localhost:9200", con.t... | 36.6 | 101 | 0.748634 | 46 | 366 | 5.869565 | 0.695652 | 0.103704 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02589 | 0.155738 | 366 | 9 | 102 | 40.666667 | 0.847896 | 0.169399 | 0 | 0 | 0 | 0 | 0.165563 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.166667 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
ebba30ca88715324cd2affb6244dd006a4bcdffd | 586 | py | Python | ndcube/__init__.py | BaptistePellorceAstro/ndcube | eaa2841a6bf90ac2fb2f901747c9a297c0810862 | [
"BSD-2-Clause"
] | null | null | null | ndcube/__init__.py | BaptistePellorceAstro/ndcube | eaa2841a6bf90ac2fb2f901747c9a297c0810862 | [
"BSD-2-Clause"
] | null | null | null | ndcube/__init__.py | BaptistePellorceAstro/ndcube | eaa2841a6bf90ac2fb2f901747c9a297c0810862 | [
"BSD-2-Clause"
] | null | null | null | # Licensed under a 2-clause BSD style license - see LICENSE.rst
"""
This is a SunPy affiliated package.
"""
# Affiliated packages may add whatever they like to this file, but
# should keep this content at the top.
# ----------------------------------------------------------------------------
from ._sunpy_init import ... | 34.470588 | 78 | 0.551195 | 64 | 586 | 4.9375 | 0.78125 | 0.063291 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001996 | 0.145051 | 586 | 16 | 79 | 36.625 | 0.628743 | 0.706485 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.75 | 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 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
ebceab8ea301299bd866617ba9db0275c9a7d9ac | 275 | py | Python | polybench/solvers/__init__.py | tueda/polybench | d9676a404a82d64807192efd928771139ac79d77 | [
"MIT"
] | null | null | null | polybench/solvers/__init__.py | tueda/polybench | d9676a404a82d64807192efd928771139ac79d77 | [
"MIT"
] | 2 | 2021-12-27T14:31:41.000Z | 2021-12-27T14:45:47.000Z | polybench/solvers/__init__.py | tueda/polybench | d9676a404a82d64807192efd928771139ac79d77 | [
"MIT"
] | null | null | null | """Solver implementations."""
from importlib import import_module
from pathlib import Path
from pkgutil import iter_modules
# Load all modules.
for (_, module_name, _) in iter_modules([str(Path(__file__).resolve().parent)]):
import_module(f"{__name__}.{module_name}")
| 25 | 80 | 0.756364 | 36 | 275 | 5.333333 | 0.583333 | 0.125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.116364 | 275 | 10 | 81 | 27.5 | 0.790123 | 0.152727 | 0 | 0 | 0 | 0 | 0.105727 | 0.105727 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.8 | 0 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
ebe6ccd367f7d7cec5d9dbbb734a7ce7fbd31b51 | 214 | py | Python | pydocspec/brains/zopeinterface.py | tristanlatr/pydocspec | 25965310c7f576d2f2e877f8a1b2984bb77725b9 | [
"MIT"
] | null | null | null | pydocspec/brains/zopeinterface.py | tristanlatr/pydocspec | 25965310c7f576d2f2e877f8a1b2984bb77725b9 | [
"MIT"
] | 5 | 2021-08-28T14:33:13.000Z | 2022-02-27T23:51:48.000Z | pydocspec/brains/zopeinterface.py | tristanlatr/pydocspec | 25965310c7f576d2f2e877f8a1b2984bb77725b9 | [
"MIT"
] | 1 | 2022-02-10T01:55:14.000Z | 2022-02-10T01:55:14.000Z | import pydocspec
from pydocspec import visitors
def dump(root:pydocspec.TreeRoot) -> None:
for mod in root.root_modules:
mod.walk(visitors.PrintVisitor())
# pydocspec_processes = {
# 90: dump
# }
| 19.454545 | 42 | 0.700935 | 26 | 214 | 5.692308 | 0.653846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011628 | 0.196262 | 214 | 10 | 43 | 21.4 | 0.848837 | 0.17757 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 0 | 0.6 | 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 |
ccdc093189d8164a3ec0e896c49e4a0516c32965 | 1,548 | py | Python | src/models/User.py | pzhang65/discord-vouch-bot | ba80a28e7abbe9689cabc7a3bc4fa6d1ff0779c7 | [
"MIT"
] | 4 | 2021-03-12T19:44:14.000Z | 2022-02-02T01:43:23.000Z | src/models/User.py | pzhang65/discord-vouch-bot | ba80a28e7abbe9689cabc7a3bc4fa6d1ff0779c7 | [
"MIT"
] | null | null | null | src/models/User.py | pzhang65/discord-vouch-bot | ba80a28e7abbe9689cabc7a3bc4fa6d1ff0779c7 | [
"MIT"
] | 1 | 2021-11-01T12:02:37.000Z | 2021-11-01T12:02:37.000Z | #src/models/User.py
from sqlalchemy import Column, Integer, String, Boolean
from discord import User
from . import Base
class User(Base):
__tablename__ = 'users'
discord_id = Column(Integer, primary_key=True)
user = Column(String(128), nullable=False)
vouches = Column(Integer, nullable=False, default... | 27.157895 | 75 | 0.645349 | 187 | 1,548 | 5.176471 | 0.304813 | 0.092975 | 0.066116 | 0.077479 | 0.182851 | 0.152893 | 0.076446 | 0 | 0 | 0 | 0 | 0.003361 | 0.231266 | 1,548 | 56 | 76 | 27.642857 | 0.810084 | 0.023256 | 0 | 0.2 | 0 | 0 | 0.063718 | 0.015742 | 0 | 0 | 0 | 0 | 0 | 1 | 0.257143 | false | 0 | 0.085714 | 0.114286 | 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 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
cce97858d91391844bc06cd2a2a55490d543581f | 4,597 | py | Python | travel/docs/Amadeus-master/pactravel-master/swagger_client/models/__init__.py | shopglobal/api | 176e1858d3f93e8e7854ba194698b6b9825841da | [
"CC-BY-4.0"
] | null | null | null | travel/docs/Amadeus-master/pactravel-master/swagger_client/models/__init__.py | shopglobal/api | 176e1858d3f93e8e7854ba194698b6b9825841da | [
"CC-BY-4.0"
] | 1 | 2021-06-01T22:04:28.000Z | 2021-06-01T22:04:28.000Z | travel/docs/Amadeus-master/pactravel-master/swagger_client/models/__init__.py | shopglobal/api | 176e1858d3f93e8e7854ba194698b6b9825841da | [
"CC-BY-4.0"
] | null | null | null | # coding: utf-8
"""
Amadeus Travel Innovation Sandbox
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: 1.2
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
# i... | 44.631068 | 105 | 0.88623 | 525 | 4,597 | 7.493333 | 0.321905 | 0.05694 | 0.045755 | 0.02847 | 0.032028 | 0.019319 | 0.019319 | 0 | 0 | 0 | 0 | 0.000716 | 0.088101 | 4,597 | 102 | 106 | 45.068627 | 0.937739 | 0.060257 | 0 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
ccf5082c6ed5e311a8e05d622d7c85b137f5bd15 | 172 | py | Python | beautiful_trip.py | malai001/codebank | 6834107ab683a38a8799102278369a66b1c1b336 | [
"bzip2-1.0.6"
] | 1 | 2017-07-11T05:02:12.000Z | 2017-07-11T05:02:12.000Z | beautiful_trip.py | malai001/codebank | 6834107ab683a38a8799102278369a66b1c1b336 | [
"bzip2-1.0.6"
] | null | null | null | beautiful_trip.py | malai001/codebank | 6834107ab683a38a8799102278369a66b1c1b336 | [
"bzip2-1.0.6"
] | null | null | null | n,d = map(int,raw_input().split())
c = map(int,raw_input().split(' '))
gc = 0
for i in range(len(c)):
if c[i]+d in c and c[i]+2*d in c:
gc+=1
print (gc) | 21.5 | 38 | 0.517442 | 38 | 172 | 2.289474 | 0.526316 | 0.137931 | 0.206897 | 0.321839 | 0.436782 | 0 | 0 | 0 | 0 | 0 | 0 | 0.023438 | 0.255814 | 172 | 8 | 39 | 21.5 | 0.65625 | 0 | 0 | 0 | 0 | 0 | 0.006024 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.142857 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ccfee197bdb59d7ccab413ddb561c028108e356a | 165 | py | Python | PythonExercicios/ex015 - aluguel de carro.py | laaisfmaia/Exercicios-do-Curso-de-Python | bdaaf682db9f058d51d4dd084dab0e095f7e74c3 | [
"MIT"
] | null | null | null | PythonExercicios/ex015 - aluguel de carro.py | laaisfmaia/Exercicios-do-Curso-de-Python | bdaaf682db9f058d51d4dd084dab0e095f7e74c3 | [
"MIT"
] | null | null | null | PythonExercicios/ex015 - aluguel de carro.py | laaisfmaia/Exercicios-do-Curso-de-Python | bdaaf682db9f058d51d4dd084dab0e095f7e74c3 | [
"MIT"
] | null | null | null | dias = int(input('Quantos dias alugados? '))
km = float(input('Quantos Km rodados? '))
preço = dias*60 + km*0.15
print('O preço a pagar é de R${:.2f}'.format(preço)) | 41.25 | 52 | 0.660606 | 29 | 165 | 3.758621 | 0.724138 | 0.220183 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042254 | 0.139394 | 165 | 4 | 52 | 41.25 | 0.725352 | 0 | 0 | 0 | 0 | 0 | 0.433735 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 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 |
69077afb9479a560a6757ae8bcffa97451b3291c | 348 | gyp | Python | binding.gyp | screeny05/node-glace | ef9c62b2c35702707f43d6437f0cefc3072f0896 | [
"MIT"
] | 1 | 2020-06-21T05:36:59.000Z | 2020-06-21T05:36:59.000Z | binding.gyp | screeny05/glaced-generator | ef9c62b2c35702707f43d6437f0cefc3072f0896 | [
"MIT"
] | 5 | 2018-01-09T13:46:05.000Z | 2018-01-11T07:19:22.000Z | binding.gyp | screeny05/glaced-generator | ef9c62b2c35702707f43d6437f0cefc3072f0896 | [
"MIT"
] | null | null | null | {
"targets": [
{
"target_name": "glace",
"sources": [
"target/glace.cc",
],
"include_dirs": [
"target/deps/include",
],
"libraries": [],
"library_dirs": [
"/usr/local/lib"
... | 19.333333 | 38 | 0.298851 | 19 | 348 | 5.315789 | 0.736842 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.548851 | 348 | 17 | 39 | 20.470588 | 0.643312 | 0 | 0 | 0.117647 | 0 | 0 | 0.318966 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 |
69141d968856bb97bbf7c4d8d076adad4cd502e9 | 592 | py | Python | src/sst/selftests/get_element_text_regex.py | DramaFever/sst | 63d41a102c9d3bdb54019f28a93cff0314a0214f | [
"Apache-2.0"
] | 4 | 2015-01-21T22:20:50.000Z | 2017-12-18T11:38:16.000Z | src/sst/selftests/get_element_text_regex.py | DramaFever/sst | 63d41a102c9d3bdb54019f28a93cff0314a0214f | [
"Apache-2.0"
] | 63 | 2015-01-13T19:32:06.000Z | 2020-04-22T17:01:03.000Z | src/sst/selftests/get_element_text_regex.py | wbdl/sst | 7a2805391fdd390ecb0f488f8377f58381358c89 | [
"Apache-2.0"
] | null | null | null | import sst
import sst.actions
sst.actions.set_base_url('http://localhost:%s/' % sst.DEVSERVER_PORT)
sst.actions.go_to('/')
num_links = len(sst.actions.get_elements(tag='a'))
assert num_links == len(sst.actions.get_elements(tag='a', text_regex='.*'))
sst.actions.get_element(tag='p', text_regex='^Some text here')
... | 28.190476 | 78 | 0.717905 | 96 | 592 | 4.229167 | 0.302083 | 0.246305 | 0.160099 | 0.160099 | 0.726601 | 0.726601 | 0.615764 | 0.615764 | 0.615764 | 0.438424 | 0 | 0.001828 | 0.076014 | 592 | 20 | 79 | 29.6 | 0.740402 | 0 | 0 | 0 | 0 | 0 | 0.16723 | 0 | 0 | 0 | 0 | 0 | 0.181818 | 1 | 0 | false | 0 | 0.181818 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
694f3817841ff937e39270758faefdc6a65a4749 | 23 | py | Python | main/user_agents.py | 2502302255/al789 | 20828306da7a301f4b287ec9c72eb2eae9273188 | [
"MIT"
] | 28 | 2017-10-26T12:01:35.000Z | 2021-01-01T09:32:46.000Z | main/user_agents.py | 2502302255/al789 | 20828306da7a301f4b287ec9c72eb2eae9273188 | [
"MIT"
] | 1 | 2018-02-04T03:33:48.000Z | 2018-05-08T22:30:01.000Z | main/user_agents.py | 2502302255/al789 | 20828306da7a301f4b287ec9c72eb2eae9273188 | [
"MIT"
] | 1 | 2018-12-02T07:47:34.000Z | 2018-12-02T07:47:34.000Z | user_agents = ['', '']
| 11.5 | 22 | 0.478261 | 2 | 23 | 5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.173913 | 23 | 1 | 23 | 23 | 0.526316 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
695b7a0898134ea235052851408cd39be13cb30e | 1,003 | py | Python | setup.py | bdraco/yalexs | 2087a47462ec6f8b8a0be5d8b696a95c9a4903e8 | [
"MIT"
] | 8 | 2021-04-06T06:02:40.000Z | 2022-02-07T01:50:53.000Z | setup.py | bdraco/yalexs | 2087a47462ec6f8b8a0be5d8b696a95c9a4903e8 | [
"MIT"
] | 22 | 2021-03-20T19:19:14.000Z | 2022-03-15T03:27:05.000Z | setup.py | bdraco/yalexs | 2087a47462ec6f8b8a0be5d8b696a95c9a4903e8 | [
"MIT"
] | null | null | null | from setuptools import find_packages, setup
setup(
name="yalexs",
version="1.1.17",
python_requires=">=3.6",
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Natural Language :: Eng... | 30.393939 | 87 | 0.582253 | 103 | 1,003 | 5.621359 | 0.631068 | 0.164076 | 0.215889 | 0.224525 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025606 | 0.260219 | 1,003 | 32 | 88 | 31.34375 | 0.754717 | 0 | 0 | 0.064516 | 0 | 0 | 0.529412 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.032258 | 0 | 0.032258 | 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 |
696f1061a420bd1824f7cfe22c86b4ca004af597 | 1,470 | py | Python | data/train/python/696f1061a420bd1824f7cfe22c86b4ca004af597oldbrokers.py | harshp8l/deep-learning-lang-detection | 2a54293181c1c2b1a2b840ddee4d4d80177efb33 | [
"MIT"
] | 84 | 2017-10-25T15:49:21.000Z | 2021-11-28T21:25:54.000Z | data/train/python/696f1061a420bd1824f7cfe22c86b4ca004af597oldbrokers.py | vassalos/deep-learning-lang-detection | cbb00b3e81bed3a64553f9c6aa6138b2511e544e | [
"MIT"
] | 5 | 2018-03-29T11:50:46.000Z | 2021-04-26T13:33:18.000Z | data/train/python/696f1061a420bd1824f7cfe22c86b4ca004af597oldbrokers.py | vassalos/deep-learning-lang-detection | cbb00b3e81bed3a64553f9c6aa6138b2511e544e | [
"MIT"
] | 24 | 2017-11-22T08:31:00.000Z | 2022-03-27T01:22:31.000Z | # -*- coding: utf-8 -*-
"""
(Description)
Created on Dec 22, 2014
"""
from ce1sus.db.common.broker import BrokerBase
from ce1sus.depricated.classes.definitionclasses import OldAttributeDefinition, OldObjectDefinition, OldAttributeHandler
from ce1sus.depricated.classes.eventclasses import OldEvent
from ce1sus.depric... | 20.704225 | 120 | 0.772109 | 161 | 1,470 | 6.850932 | 0.403727 | 0.043518 | 0.101541 | 0.139619 | 0.234814 | 0.234814 | 0.234814 | 0 | 0 | 0 | 0 | 0.019139 | 0.146939 | 1,470 | 70 | 121 | 21 | 0.860447 | 0.041497 | 0 | 0.189189 | 0 | 0 | 0.069236 | 0.022127 | 0 | 0 | 0 | 0 | 0 | 1 | 0.216216 | false | 0 | 0.135135 | 0.189189 | 0.756757 | 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 |
15cdb63a9e05119593d78ec1ff00ecb277a8f361 | 58 | py | Python | matching/__init__.py | shimomura314/reversi | 1eb14fbfb065cf0fece0be256f0184ee8c232d19 | [
"MIT"
] | null | null | null | matching/__init__.py | shimomura314/reversi | 1eb14fbfb065cf0fece0be256f0184ee8c232d19 | [
"MIT"
] | null | null | null | matching/__init__.py | shimomura314/reversi | 1eb14fbfb065cf0fece0be256f0184ee8c232d19 | [
"MIT"
] | null | null | null | from .elorating import EloRating
__All__ = ["EloRating"]
| 14.5 | 32 | 0.758621 | 6 | 58 | 6.666667 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137931 | 58 | 3 | 33 | 19.333333 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0.155172 | 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 |
15d0cc12ebf291d0643bf80f70dd3487d416f94e | 3,029 | py | Python | aljpy/dotdict.py | andyljones/aljpy | 129b09fb6df7743e1a2ae0eff068fa14b3b59efb | [
"MIT"
] | 6 | 2020-03-21T09:16:04.000Z | 2022-01-28T12:28:30.000Z | aljpy/dotdict.py | andyljones/aljpy | 129b09fb6df7743e1a2ae0eff068fa14b3b59efb | [
"MIT"
] | null | null | null | aljpy/dotdict.py | andyljones/aljpy | 129b09fb6df7743e1a2ae0eff068fa14b3b59efb | [
"MIT"
] | 3 | 2020-01-15T08:42:48.000Z | 2020-07-19T12:15:35.000Z | from collections import OrderedDict
from functools import wraps
SCREEN_WIDTH = 119
def treestr(t):
"""Stringifies a tree structure. These turn up all over the place in my code, so it's worth factoring out"""
key_length = max(map(len, map(str, t.keys()))) if t.keys() else 0
max_spaces = 4 + key_length
... | 29.696078 | 131 | 0.527567 | 424 | 3,029 | 3.629717 | 0.257075 | 0.064977 | 0.016244 | 0.022742 | 0.181287 | 0.144899 | 0.128655 | 0.08447 | 0.08447 | 0 | 0 | 0.005281 | 0.312314 | 3,029 | 101 | 132 | 29.990099 | 0.733557 | 0.033674 | 0 | 0.15 | 0 | 0 | 0.060596 | 0.022253 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2125 | false | 0 | 0.025 | 0.1125 | 0.525 | 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 |
15e3311f4b4f9f8fa2b7656363905f35db362ddc | 1,862 | py | Python | day-19/asm_decompiled0.py | jmolinski/advent-of-code-2018 | 96bad97d6523bc99d63c86bbff6b13602952a91d | [
"MIT"
] | 2 | 2018-12-16T20:48:52.000Z | 2021-03-28T15:07:51.000Z | day-19/asm_decompiled0.py | jmolinski/advent-of-code-2018 | 96bad97d6523bc99d63c86bbff6b13602952a91d | [
"MIT"
] | null | null | null | day-19/asm_decompiled0.py | jmolinski/advent-of-code-2018 | 96bad97d6523bc99d63c86bbff6b13602952a91d | [
"MIT"
] | 1 | 2018-12-02T13:36:24.000Z | 2018-12-02T13:36:24.000Z | """#ip 2
addi 2 16 2
seti 1 2 4
seti 1 8 1
mulr 4 1 5
eqrr 5 3 5
addr 5 2 2
addi 2 1 2
addr 4 0 0
addi 1 1 1
gtrr 1 3 5
addr 2 5 2
seti 2 6 2
addi 4 1 4
gtrr 4 3 5
addr 5 2 2
seti 1 2 2
mulr 2 2 2
addi 3 2 3
mulr 3 3 3
mulr 2 3 3
muli 3 11 3
addi 5 2 5
mulr 5 2 5
addi 5 8 5
addr 3 5 3
addr 2 0 2
seti 0 4 2
setr 2 5 5
m... | 10.888889 | 30 | 0.501611 | 523 | 1,862 | 1.783939 | 0.043977 | 0.192926 | 0.144695 | 0.07717 | 0.618435 | 0.444802 | 0.324759 | 0.258307 | 0.242229 | 0.228296 | 0 | 0.285047 | 0.310419 | 1,862 | 170 | 31 | 10.952941 | 0.441589 | 0.435553 | 0 | 0.548387 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
15e5ef4da89d8528a0e88a913a434b0385520931 | 473 | py | Python | 21.01.25/hw.py | H0oxy/-python-adv | f2d00bc5ba922d1af8dfbc0788be5a99c3211d87 | [
"MIT"
] | null | null | null | 21.01.25/hw.py | H0oxy/-python-adv | f2d00bc5ba922d1af8dfbc0788be5a99c3211d87 | [
"MIT"
] | null | null | null | 21.01.25/hw.py | H0oxy/-python-adv | f2d00bc5ba922d1af8dfbc0788be5a99c3211d87 | [
"MIT"
] | null | null | null | '''
1. Написать валидацию даты на чистом python (без re)
2, 3. Написать валидатор для вещественных чисел: 1.32 или 1,32 (с re и на чистом python)
'''
import re
RE_REAL_NUMBERS_VALIDATOR = re.compile(r'^[\d]{1,}[.|,][\d]+$')
def number_is_valid(number):
return RE_REAL_NUMBERS_VALIDATOR.match(number)
assert not nu... | 27.823529 | 88 | 0.735729 | 83 | 473 | 3.975904 | 0.433735 | 0.145455 | 0.236364 | 0.154545 | 0.333333 | 0.133333 | 0 | 0 | 0 | 0 | 0 | 0.055156 | 0.118393 | 473 | 16 | 89 | 29.5625 | 0.736211 | 0.298097 | 0 | 0 | 0 | 0 | 0.12037 | 0 | 0 | 0 | 0 | 0 | 0.555556 | 1 | 0.111111 | false | 0 | 0.111111 | 0.111111 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
15f16a3d5fb3b69a0250abe04b122cf6dc786724 | 2,205 | py | Python | optimal_transport_morphometry/core/rest/preprocess.py | girder/otm-server | 7abfe9c2d659c962784e28058d8f9a8ffc1f4991 | [
"Apache-2.0"
] | null | null | null | optimal_transport_morphometry/core/rest/preprocess.py | girder/otm-server | 7abfe9c2d659c962784e28058d8f9a8ffc1f4991 | [
"Apache-2.0"
] | 5 | 2022-03-10T19:39:22.000Z | 2022-03-17T21:05:10.000Z | optimal_transport_morphometry/core/rest/preprocess.py | girder/otm-server | 7abfe9c2d659c962784e28058d8f9a8ffc1f4991 | [
"Apache-2.0"
] | null | null | null | from django.shortcuts import get_object_or_404
from rest_framework import serializers
from rest_framework.permissions import AllowAny
from rest_framework.response import Response
from rest_framework.viewsets import GenericViewSet
from optimal_transport_morphometry.core.models import Atlas, Dataset
from optimal_transpo... | 36.147541 | 80 | 0.736508 | 260 | 2,205 | 5.996154 | 0.326923 | 0.028865 | 0.035279 | 0.044901 | 0.155869 | 0.032072 | 0 | 0 | 0 | 0 | 0 | 0.008845 | 0.179592 | 2,205 | 60 | 81 | 36.75 | 0.852957 | 0.060771 | 0 | 0 | 0 | 0 | 0.055126 | 0 | 0 | 0 | 0 | 0.016667 | 0 | 1 | 0.045455 | false | 0.068182 | 0.159091 | 0 | 0.545455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
15fd63a507188aa673258170b3e5ff841e50c3b3 | 12,059 | py | Python | tests/text_to_phases.py | PasaOpasen/Stem-Lem-Pipeline | 98f5ab7e0aa019f5403830fc3e6176d06124f365 | [
"MIT"
] | 1 | 2020-12-03T23:32:07.000Z | 2020-12-03T23:32:07.000Z | tests/text_to_phases.py | PasaOpasen/Stem-Lem-Pipeline | 98f5ab7e0aa019f5403830fc3e6176d06124f365 | [
"MIT"
] | null | null | null | tests/text_to_phases.py | PasaOpasen/Stem-Lem-Pipeline | 98f5ab7e0aa019f5403830fc3e6176d06124f365 | [
"MIT"
] | null | null | null |
import sys
sys.path.append('..')
from StemLemPipe import phrases2lower, phrases_without_excess_symbols, phrases_transform, text2sentences, split_by_words, sentence_split, create_stemmer_lemmer, words_to_ngrams_list, sum_phrases, wordlist2set, stopwords, StemLemPipeline
text_example = """Если в жопе шило, я могу до... | 98.844262 | 1,487 | 0.670288 | 1,650 | 12,059 | 4.858182 | 0.184848 | 0.005988 | 0.00998 | 0.013099 | 0.748004 | 0.714696 | 0.695609 | 0.689746 | 0.684256 | 0.674775 | 0 | 0.002114 | 0.136993 | 12,059 | 121 | 1,488 | 99.661157 | 0.767752 | 0.764906 | 0 | 0 | 0 | 0 | 0.390331 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.014286 | false | 0 | 0.028571 | 0 | 0.042857 | 0.171429 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d6658c24d5c4a4ea407f80ca6bb9db5f5364fde6 | 96 | py | Python | simqle/logging.py | Harlekuin/SimQLe | 7771ceec19019a5ca3398d2f52bbcd1ce5cb74f3 | [
"MIT"
] | 37 | 2019-04-29T05:04:48.000Z | 2020-04-13T15:34:00.000Z | simqle/logging.py | Harlekuin/SimQLe | 7771ceec19019a5ca3398d2f52bbcd1ce5cb74f3 | [
"MIT"
] | 78 | 2019-04-03T10:43:22.000Z | 2020-05-31T11:23:15.000Z | simqle/logging.py | TomMalkin/SimQLe | 7771ceec19019a5ca3398d2f52bbcd1ce5cb74f3 | [
"MIT"
] | 5 | 2019-05-14T06:27:05.000Z | 2019-06-26T05:26:43.000Z | """Contains the logger used by SimQLe."""
import logging
logger = logging.getLogger("simqle")
| 16 | 41 | 0.729167 | 12 | 96 | 5.833333 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.135417 | 96 | 5 | 42 | 19.2 | 0.843373 | 0.364583 | 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 |
d66b52fcf1cdb31d693cb6be53d35ea6f935010c | 238 | py | Python | ip2country/__init__.py | yosida95/ip2country | 5c4aaebf4bb8e27cbab93c4589db6d5b8cb83175 | [
"MIT"
] | 3 | 2015-01-07T18:53:36.000Z | 2016-06-12T14:44:15.000Z | ip2country/__init__.py | yosida95/ip2country | 5c4aaebf4bb8e27cbab93c4589db6d5b8cb83175 | [
"MIT"
] | null | null | null | ip2country/__init__.py | yosida95/ip2country | 5c4aaebf4bb8e27cbab93c4589db6d5b8cb83175 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from .interfaces import IStore
from .parser import (
Parser,
)
from .utils import (
ipv4_to_bytes,
ipv6_to_bytes,
)
__all__ = [
'ipv4_to_bytes',
'ipv6_to_bytes',
'IStore',
'Parser',
]
| 13.222222 | 30 | 0.605042 | 29 | 238 | 4.551724 | 0.482759 | 0.212121 | 0.166667 | 0.227273 | 0.333333 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0.02809 | 0.252101 | 238 | 17 | 31 | 14 | 0.713483 | 0.088235 | 0 | 0 | 0 | 0 | 0.176744 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.214286 | 0 | 0.214286 | 0 | 1 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d675daa14c9cd0ed2e164460dbfedf4e6958eff6 | 430 | py | Python | problems/building-h2o/building_h2o.py | jianpingbadao/leetcode | 0ddead0b7820c05e353e08c551418fc8e318ee96 | [
"MIT"
] | 198 | 2018-12-14T11:11:21.000Z | 2021-11-22T17:31:48.000Z | problems/building-h2o/building_h2o.py | rohini-raja/leetcode | e4250e67a76cf26813fc7b7bfef523c427a2b928 | [
"MIT"
] | 779 | 2018-12-15T11:04:06.000Z | 2021-11-19T08:42:40.000Z | problems/building-h2o/building_h2o.py | rohini-raja/leetcode | e4250e67a76cf26813fc7b7bfef523c427a2b928 | [
"MIT"
] | 85 | 2019-01-10T02:20:04.000Z | 2021-11-26T08:01:42.000Z | #!/usr/bin/env python
class H2O:
def __init__(self):
pass
def hydrogen(self, releaseHydrogen: 'Callable[[], None]') -> None:
# releaseHydrogen() outputs "H". Do not change or remove this line.
releaseHydrogen()
def oxygen(self, releaseOxygen: 'Callable[[], None]') -> No... | 25.294118 | 75 | 0.595349 | 46 | 430 | 5.478261 | 0.565217 | 0.095238 | 0.126984 | 0.103175 | 0.214286 | 0.214286 | 0.214286 | 0 | 0 | 0 | 0 | 0.003215 | 0.276744 | 430 | 17 | 76 | 25.294118 | 0.807074 | 0.348837 | 0 | 0 | 0 | 0 | 0.129496 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.428571 | false | 0.142857 | 0 | 0 | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
d68b937d64634350f10e5a80efa8219f50052d65 | 492 | py | Python | nz_django/day6/uploadfile_demo/front/models.py | gaohj/nzflask_bbs | 36a94c380b78241ed5d1e07edab9618c3e8d477b | [
"Apache-2.0"
] | null | null | null | nz_django/day6/uploadfile_demo/front/models.py | gaohj/nzflask_bbs | 36a94c380b78241ed5d1e07edab9618c3e8d477b | [
"Apache-2.0"
] | 27 | 2020-02-12T07:55:58.000Z | 2022-03-12T00:19:09.000Z | nz_django/day6/uploadfile_demo/front/models.py | gaohj/nzflask_bbs | 36a94c380b78241ed5d1e07edab9618c3e8d477b | [
"Apache-2.0"
] | 2 | 2020-02-18T01:54:55.000Z | 2020-02-21T11:36:28.000Z | from django.db import models
from django.core import validators
# Create your models here.
class Article(models.Model):
title = models.CharField(max_length=100)
content = models.TextField()
# thumbnail = models.FileField(upload_to='files',validators=[validators.FileExtensionValidator(['jpg','png','jpeg','gi... | 61.5 | 147 | 0.739837 | 59 | 492 | 6.118644 | 0.59322 | 0.055402 | 0.132964 | 0.166205 | 0.559557 | 0.382271 | 0.382271 | 0.382271 | 0.382271 | 0 | 0 | 0.006682 | 0.087398 | 492 | 8 | 147 | 61.5 | 0.797327 | 0.335366 | 0 | 0 | 0 | 0 | 0.086154 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
d690cd3e7ea60ed39d0051036a4efe2cb08f5491 | 597 | py | Python | signbank/video/urls.py | gstvob/SignBank-Brasil | 16a7b2341e56a098de828bda132da2e38815f2ec | [
"BSD-3-Clause"
] | 2 | 2019-12-03T00:59:27.000Z | 2020-05-01T17:10:11.000Z | signbank/video/urls.py | gstvob/SignBank-Brasil | 16a7b2341e56a098de828bda132da2e38815f2ec | [
"BSD-3-Clause"
] | 30 | 2018-10-25T00:18:49.000Z | 2020-09-15T18:20:20.000Z | signbank/video/urls.py | gstvob/SignBank-Brasil | 16a7b2341e56a098de828bda132da2e38815f2ec | [
"BSD-3-Clause"
] | 1 | 2018-04-03T19:59:59.000Z | 2018-04-03T19:59:59.000Z | from django.conf.urls import *
from django.contrib.auth.decorators import permission_required
import signbank.video.views
urlpatterns = [
url(r'^video/(?P<videoid>\d+)$', signbank.video.views.video),
url(r'^upload/', signbank.video.views.addvideo),
url(r'^delete/(?P<videoid>\d+)$', signbank.video.views.de... | 45.923077 | 123 | 0.715243 | 81 | 597 | 5.185185 | 0.382716 | 0.216667 | 0.3 | 0.161905 | 0.257143 | 0.257143 | 0 | 0 | 0 | 0 | 0 | 0 | 0.092127 | 597 | 13 | 124 | 45.923077 | 0.774908 | 0 | 0 | 0 | 0 | 0 | 0.252508 | 0.23913 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.272727 | 0 | 0.272727 | 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 |
d6bc5a42bbccaca70b172c72430e491d52179d24 | 724 | py | Python | tests/test_pick.py | rennancockles/fastapi-vo | 5bf99355c68a3f9e57e4347e381767d7d63023f3 | [
"MIT"
] | 2 | 2021-09-03T04:46:10.000Z | 2021-09-27T01:44:42.000Z | tests/test_pick.py | rennancockles/fastapi-vo | 5bf99355c68a3f9e57e4347e381767d7d63023f3 | [
"MIT"
] | null | null | null | tests/test_pick.py | rennancockles/fastapi-vo | 5bf99355c68a3f9e57e4347e381767d7d63023f3 | [
"MIT"
] | null | null | null | import pytest
@pytest.fixture(scope="module")
def user_pick_list(user_list):
return [{"password": u.get("password")} for u in user_list]
def test_pick_list(client, user_pick_list):
print(user_pick_list)
response = client.get("/pick/")
assert response.status_code == 200
assert response.json() == ... | 26.814815 | 63 | 0.714088 | 107 | 724 | 4.542056 | 0.252336 | 0.18107 | 0.246914 | 0.131687 | 0.674897 | 0.58642 | 0.58642 | 0.58642 | 0.58642 | 0.58642 | 0 | 0.021277 | 0.156077 | 724 | 26 | 64 | 27.846154 | 0.774141 | 0 | 0 | 0.388889 | 0 | 0 | 0.05663 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.222222 | false | 0.055556 | 0.055556 | 0.055556 | 0.333333 | 0.111111 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
d6bfc304e825f5398b81b78b233a319dee77ed23 | 574 | py | Python | src/utils/log_utils.py | williamleb/time-puncher | d814fe2fc3155d57f611b24ec722c19fa4f904ce | [
"MIT"
] | null | null | null | src/utils/log_utils.py | williamleb/time-puncher | d814fe2fc3155d57f611b24ec722c19fa4f904ce | [
"MIT"
] | null | null | null | src/utils/log_utils.py | williamleb/time-puncher | d814fe2fc3155d57f611b24ec722c19fa4f904ce | [
"MIT"
] | null | null | null | import sys
class _ConsoleColor:
GREEN = '\033[92m'
RED = '\033[91m'
YELLOW = '\033[93m'
END = '\033[0m'
def log_info(message):
"""
:type message: str
"""
print("{}{}{}".format(_ConsoleColor.GREEN, message, _ConsoleColor.END))
def log_err(message):
"""
:type message: str
... | 19.133333 | 93 | 0.597561 | 64 | 574 | 5.203125 | 0.390625 | 0.054054 | 0.162162 | 0.189189 | 0.606607 | 0.606607 | 0.396396 | 0 | 0 | 0 | 0 | 0.04185 | 0.209059 | 574 | 29 | 94 | 19.793103 | 0.69163 | 0.097561 | 0 | 0 | 0 | 0 | 0.103814 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.083333 | 0 | 0.75 | 0.25 | 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 | 0 | 1 | 0 | 0 | 3 |
d6cde21d09fbaba10b0f46edbab3a792f122c9dc | 726 | py | Python | optmlstat/functions/basic_functions/identity_function.py | sungheeyun/optmlstat | 11d529c915bf27976da9157471a6dbf7df34d205 | [
"MIT"
] | 4 | 2020-04-08T03:48:59.000Z | 2020-12-30T01:39:52.000Z | optmlstat/functions/basic_functions/identity_function.py | sungheeyun/optmlstat | 11d529c915bf27976da9157471a6dbf7df34d205 | [
"MIT"
] | null | null | null | optmlstat/functions/basic_functions/identity_function.py | sungheeyun/optmlstat | 11d529c915bf27976da9157471a6dbf7df34d205 | [
"MIT"
] | 1 | 2020-04-08T04:04:00.000Z | 2020-04-08T04:04:00.000Z | from typing import Optional
from numpy import ndarray
from optmlstat.functions.function_base import FunctionBase
class IdentityFunction(FunctionBase):
def __init__(self):
super(IdentityFunction, self).__init__()
@property
def num_inputs(self) -> Optional[int]:
return None
@property... | 21.352941 | 62 | 0.670799 | 87 | 726 | 5.344828 | 0.436782 | 0.11828 | 0.083871 | 0.141935 | 0.339785 | 0.154839 | 0.154839 | 0 | 0 | 0 | 0 | 0.005445 | 0.241047 | 726 | 33 | 63 | 22 | 0.838476 | 0 | 0 | 0.391304 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.304348 | false | 0 | 0.130435 | 0.26087 | 0.73913 | 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 |
ba66d4cd23b69d0e74bed1b57f2c8283342ddb7d | 118 | py | Python | parseText2Json.py | krishna-praveen/Capacitated-Vehicle-Routing-Problem | 65cb5536bfffdce39d003639cb7f59051284c4aa | [
"MIT"
] | 17 | 2020-09-19T07:37:01.000Z | 2022-03-14T11:10:41.000Z | parseText2Json.py | krishna-praveen/Capacitated-Vehicle-Routing-Problem | 65cb5536bfffdce39d003639cb7f59051284c4aa | [
"MIT"
] | null | null | null | parseText2Json.py | krishna-praveen/Capacitated-Vehicle-Routing-Problem | 65cb5536bfffdce39d003639cb7f59051284c4aa | [
"MIT"
] | 7 | 2021-05-03T04:15:45.000Z | 2022-02-28T20:51:33.000Z | from nsga_vrp.utils import converttext2json
def main():
converttext2json()
if __name__ == "__main__":
main() | 16.857143 | 43 | 0.711864 | 13 | 118 | 5.769231 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020619 | 0.177966 | 118 | 7 | 44 | 16.857143 | 0.752577 | 0 | 0 | 0 | 0 | 0 | 0.067227 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | true | 0 | 0.2 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
ba6cd23e6269e31d9446c2997f7f37d91364736a | 17,462 | py | Python | vgio/quake2/tests/test_bsp.py | joshuaskelly/game-tools | e71bcf4ef6553adf0b51f4379f72bc5a82a60176 | [
"MIT"
] | 22 | 2017-11-30T22:13:50.000Z | 2019-12-19T17:56:40.000Z | vgio/quake2/tests/test_bsp.py | joshuaskelly/vgio | e71bcf4ef6553adf0b51f4379f72bc5a82a60176 | [
"MIT"
] | 22 | 2019-08-11T05:07:26.000Z | 2020-12-30T16:07:04.000Z | vgio/quake2/tests/test_bsp.py | joshuaskelly/game-tools | e71bcf4ef6553adf0b51f4379f72bc5a82a60176 | [
"MIT"
] | 4 | 2018-06-24T14:04:36.000Z | 2019-05-14T06:01:51.000Z | import unittest
from vgio.quake2.tests.basecase import TestCase
from vgio.quake2 import bsp
significant_digits = 5
class TestBspReadWrite(TestCase):
def test_lump(self):
offset = 0
length = 2147483647
l0 = bsp.Lump(offset, length)
bsp.Lump.write(self.buff, l0)
self.buff... | 41.675418 | 124 | 0.650842 | 2,408 | 17,462 | 4.546096 | 0.068522 | 0.08258 | 0.134192 | 0.136658 | 0.77117 | 0.745318 | 0.703298 | 0.676624 | 0.674431 | 0.647027 | 0 | 0.041949 | 0.247795 | 17,462 | 418 | 125 | 41.77512 | 0.791473 | 0 | 0 | 0.425466 | 0 | 0 | 0.188581 | 0.00504 | 0 | 0 | 0 | 0 | 0.363354 | 1 | 0.046584 | false | 0 | 0.009317 | 0 | 0.059006 | 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 |
ba82d134c6db8aa3f8e1388d65cf36293bcb8529 | 374 | py | Python | transpytorch/transformer/__init__.py | ShaoaAllen/CogQA | 82b932f4fd9dad33efb7eaaffa7ee29594397932 | [
"MIT"
] | null | null | null | transpytorch/transformer/__init__.py | ShaoaAllen/CogQA | 82b932f4fd9dad33efb7eaaffa7ee29594397932 | [
"MIT"
] | null | null | null | transpytorch/transformer/__init__.py | ShaoaAllen/CogQA | 82b932f4fd9dad33efb7eaaffa7ee29594397932 | [
"MIT"
] | null | null | null | import transpytorch.transformer.Constants
import transpytorch.transformer.Modules
import transpytorch.transformer.Layers
import transpytorch.transformer.SubLayers
import transpytorch.transformer.Models
import transpytorch.transformer.Translator
import transpytorch.transformer.Optim
__all__ = [
Constants, Modules, ... | 28.769231 | 42 | 0.839572 | 36 | 374 | 8.611111 | 0.305556 | 0.406452 | 0.654839 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.09893 | 374 | 12 | 43 | 31.166667 | 0.919881 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.636364 | 0 | 0.636364 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
ba923f527dbfc5de60497130ac15da3f2c00bbe6 | 677 | py | Python | examples/hica/injectors/cuda.py | connectthefuture/docker-hacks | d7ea13522188233d5e8a97179d2b0a872239f58d | [
"MIT"
] | null | null | null | examples/hica/injectors/cuda.py | connectthefuture/docker-hacks | d7ea13522188233d5e8a97179d2b0a872239f58d | [
"MIT"
] | 1 | 2021-03-20T04:49:20.000Z | 2021-03-20T04:49:20.000Z | examples/hica/injectors/cuda.py | connectthefuture/docker-hacks | d7ea13522188233d5e8a97179d2b0a872239f58d | [
"MIT"
] | null | null | null | # vim: set fileencoding=utf-8
# Pavel Odvody <podvody@redhat.com>
#
# HICA - Host integrated container applications
#
# MIT License (C) 2015
from base.hica_base import *
class CudaInjector(HicaInjector):
def get_description(self):
return "Bind mounts CUDA devices into the container"
def get_config_key(self):... | 27.08 | 71 | 0.700148 | 86 | 677 | 5.418605 | 0.604651 | 0.038627 | 0.141631 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010508 | 0.156573 | 677 | 24 | 72 | 28.208333 | 0.805604 | 0.189069 | 0 | 0 | 0 | 0 | 0.263838 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.307692 | false | 0 | 0.076923 | 0.230769 | 0.692308 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.