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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
25e2cf192c774746c4cbd12db56950af9920d013 | 175 | py | Python | ada/util/key.py | tmacro/ada | f7c2e36d817e22a0ca1a9f0c0d615f6bfe48de19 | [
"BSD-3-Clause"
] | 1 | 2019-05-29T15:54:03.000Z | 2019-05-29T15:54:03.000Z | ada/util/key.py | tmacro/ada | f7c2e36d817e22a0ca1a9f0c0d615f6bfe48de19 | [
"BSD-3-Clause"
] | null | null | null | ada/util/key.py | tmacro/ada | f7c2e36d817e22a0ca1a9f0c0d615f6bfe48de19 | [
"BSD-3-Clause"
] | null | null | null | from .log import Log
import pyczmq
_log = Log('util.key')
def load_key(path):
return pyczmq.zcert.load(path)
def save_key(path, key):
return pyczmq.zert.save(cert, path)
| 15.909091 | 36 | 0.731429 | 30 | 175 | 4.166667 | 0.466667 | 0.144 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137143 | 175 | 10 | 37 | 17.5 | 0.827815 | 0 | 0 | 0 | 0 | 0 | 0.045714 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.285714 | 0.285714 | 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 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
25f07be90a3b3d0dd1e7a1b9d45124cfe755866c | 497 | py | Python | src/account/templatetags/tags.py | kravchenko89/test | 9eb43e6e96ec198fa433c775f1ffa0f02022e6e4 | [
"MIT"
] | null | null | null | src/account/templatetags/tags.py | kravchenko89/test | 9eb43e6e96ec198fa433c775f1ffa0f02022e6e4 | [
"MIT"
] | 6 | 2021-03-19T10:08:06.000Z | 2022-02-10T14:03:57.000Z | src/account/templatetags/tags.py | kravchenko89/test | 9eb43e6e96ec198fa433c775f1ffa0f02022e6e4 | [
"MIT"
] | null | null | null | import django
from django import template
from django.template import Template
from django.template.defaultfilters import stringfilter
register = template.Library()
# @register.filter
# def change_tag(path):
# path = 'hello'
# return path
@register.simple_tag(takes_context=True)
def change_tag(context):
... | 26.157895 | 110 | 0.732394 | 68 | 497 | 5.264706 | 0.485294 | 0.100559 | 0.100559 | 0.134078 | 0.178771 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018349 | 0.122736 | 497 | 18 | 111 | 27.611111 | 0.802752 | 0.277666 | 0 | 0 | 0 | 0.125 | 0.201705 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.5 | 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 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 3 |
25f4f266f0149ee1879e9c560b5827513fcee34d | 1,891 | py | Python | semtorch/utils/metrics.py | WaterKnight1998/SemTorch | 2c8523885af8e589366c766daa4fdb05e624573e | [
"Apache-2.0"
] | 145 | 2020-09-18T18:10:29.000Z | 2022-03-25T13:21:25.000Z | semtorch/utils/metrics.py | yijinlee/SemTorch | e7e1a331589594152c5ee5d368d160a4c394f524 | [
"Apache-2.0"
] | 8 | 2020-09-21T16:20:36.000Z | 2022-03-22T00:12:08.000Z | semtorch/utils/metrics.py | yijinlee/SemTorch | e7e1a331589594152c5ee5d368d160a4c394f524 | [
"Apache-2.0"
] | 11 | 2020-09-19T03:43:21.000Z | 2022-01-10T15:53:54.000Z | from fastai.learner import Metric
from fastai.torch_core import flatten_check
import torch
class DiceMaskRCNN(Metric):
"MaskRCNN coefficient metric for binary target in segmentation"
def __init__(self, axis=1): self.axis = axis
def reset(self): self.inter,self.union = 0,0
def accumulate(self, learn):
... | 37.82 | 90 | 0.654151 | 261 | 1,891 | 4.693487 | 0.279693 | 0.088163 | 0.063673 | 0.088163 | 0.631837 | 0.631837 | 0.631837 | 0.631837 | 0.631837 | 0.631837 | 0 | 0.010922 | 0.225278 | 1,891 | 50 | 91 | 37.82 | 0.825256 | 0.17028 | 0 | 0.526316 | 0 | 0 | 0.140022 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.263158 | false | 0 | 0.078947 | 0.105263 | 0.447368 | 0 | 0 | 0 | 0 | null | 0 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
25f715af71941b6ea8175dd9a6a80e9c0e5dd4fd | 1,745 | py | Python | EditColorsWidget.py | NFT-creators-org/NFT-generator | be1145ba761c7e62567548cf6a086a2583389480 | [
"MIT"
] | 1 | 2022-03-13T23:53:11.000Z | 2022-03-13T23:53:11.000Z | EditColorsWidget.py | NFT-creators-org/NFT-generator | be1145ba761c7e62567548cf6a086a2583389480 | [
"MIT"
] | null | null | null | EditColorsWidget.py | NFT-creators-org/NFT-generator | be1145ba761c7e62567548cf6a086a2583389480 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'EditColorsWidget.ui'
#
# Created by: PyQt5 UI code generator 5.15.6
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
from PyQt5 import QtC... | 37.12766 | 111 | 0.723782 | 194 | 1,745 | 6.365979 | 0.474227 | 0.165182 | 0.184615 | 0.17004 | 0.134413 | 0.134413 | 0 | 0 | 0 | 0 | 0 | 0.021663 | 0.179943 | 1,745 | 46 | 112 | 37.934783 | 0.84137 | 0.161032 | 0 | 0 | 1 | 0 | 0.067995 | 0.027473 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.066667 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d3006ed608096e4f34cdcdedc4c3c3976b3df937 | 179 | py | Python | setup.py | xkianteb/leaqi | 924435590e74421ed16488429056f26747c99421 | [
"MIT"
] | 12 | 2020-05-25T16:50:05.000Z | 2022-02-20T08:00:04.000Z | setup.py | chenyangh/leaqi | 924435590e74421ed16488429056f26747c99421 | [
"MIT"
] | null | null | null | setup.py | chenyangh/leaqi | 924435590e74421ed16488429056f26747c99421 | [
"MIT"
] | 4 | 2020-05-28T18:25:01.000Z | 2021-02-25T10:29:41.000Z | #!/usr/bin/env python
from setuptools import setup
setup(name='leaqi',
version='0.1',
author='Kianté Brantely, Amr Sharaf, Hal Daumé III',
packages=['leaqi']
)
| 19.888889 | 58 | 0.648045 | 24 | 179 | 4.833333 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013986 | 0.201117 | 179 | 8 | 59 | 22.375 | 0.797203 | 0.111732 | 0 | 0 | 0 | 0 | 0.348101 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.166667 | 0 | 0.166667 | 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 |
d3354eddaf5212d22c9eaffc259140d022587d24 | 509 | py | Python | spindle/tests/fakes.py | michalporeba/spindle | 711f355f229080f9378f6899220bdae3a04c1ce8 | [
"MIT"
] | null | null | null | spindle/tests/fakes.py | michalporeba/spindle | 711f355f229080f9378f6899220bdae3a04c1ce8 | [
"MIT"
] | null | null | null | spindle/tests/fakes.py | michalporeba/spindle | 711f355f229080f9378f6899220bdae3a04c1ce8 | [
"MIT"
] | null | null | null | import random, uuid, hashlib
import types
class FakeModel():
ids = list(range(99))
def __init__(self):
random.shuffle(FakeModel.ids)
self.empty = None
self.number = FakeModel.ids.pop()
self.text = hashlib.md5(str(uuid.uuid1()).encode('utf-8')).hexdigest()
self._priv... | 28.277778 | 78 | 0.618861 | 69 | 509 | 4.449275 | 0.637681 | 0.117264 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012953 | 0.24165 | 509 | 18 | 79 | 28.277778 | 0.782383 | 0 | 0 | 0 | 0 | 0 | 0.062745 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.142857 | 0.142857 | 0.642857 | 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 |
d34303da9a4e0d9be072691951594e8555980df4 | 1,032 | py | Python | uqbar/apis/ModuleNode.py | josiah-wolf-oberholtzer/uqbar | 96f86eb6264b0677a9e2931a527769640e5658b6 | [
"MIT"
] | 7 | 2018-12-02T05:59:54.000Z | 2021-12-28T22:40:18.000Z | uqbar/apis/ModuleNode.py | josiah-wolf-oberholtzer/uqbar | 96f86eb6264b0677a9e2931a527769640e5658b6 | [
"MIT"
] | 16 | 2017-12-28T22:08:09.000Z | 2022-02-26T14:47:23.000Z | uqbar/apis/ModuleNode.py | josiah-wolf-oberholtzer/uqbar | 96f86eb6264b0677a9e2931a527769640e5658b6 | [
"MIT"
] | 5 | 2020-03-28T14:57:47.000Z | 2022-02-01T10:02:18.000Z | import uqbar.containers
class ModuleNode(uqbar.containers.UniqueTreeNode):
"""
A :py:class:`~uqbar.containers.UniqueTreeNode` subclass used during API
construction to proxy modules.
"""
### CLASS VARIABLES ###
__documentation_section__ = "Internals"
### INITIALIZER ###
def __init__... | 21.957447 | 75 | 0.653101 | 108 | 1,032 | 5.916667 | 0.37037 | 0.156495 | 0.087637 | 0.093897 | 0.150235 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.241279 | 1,032 | 46 | 76 | 22.434783 | 0.816092 | 0.162791 | 0 | 0.291667 | 0 | 0 | 0.013415 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.291667 | false | 0 | 0.041667 | 0.166667 | 0.583333 | 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 |
d362219e87b8fd07bb4100e88a4d4e018513af76 | 271 | py | Python | setup.py | nguyentritai2906/inc_search | b6def2ddf3d8635127d4bfa210ec132a93cb8454 | [
"MIT"
] | null | null | null | setup.py | nguyentritai2906/inc_search | b6def2ddf3d8635127d4bfa210ec132a93cb8454 | [
"MIT"
] | null | null | null | setup.py | nguyentritai2906/inc_search | b6def2ddf3d8635127d4bfa210ec132a93cb8454 | [
"MIT"
] | 2 | 2021-05-12T06:56:36.000Z | 2021-05-12T06:57:08.000Z | from setuptools import setup, find_packages
def get_install_requires():
with open('requirements.txt') as f:
return [req.strip() for req in f]
setup(name='inc_search', version='1.0',
install_requires=get_install_requires(), packages=find_packages())
| 24.636364 | 72 | 0.719557 | 38 | 271 | 4.921053 | 0.710526 | 0.240642 | 0.192513 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008772 | 0.158672 | 271 | 10 | 73 | 27.1 | 0.811404 | 0 | 0 | 0 | 0 | 0 | 0.107011 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | true | 0 | 0.166667 | 0 | 0.5 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
d3645ca28e74bd942584ef2afe78208d3a88e4d5 | 243 | py | Python | Python/accountant1/delete me/Expense.py | Fornost461/drafts | 39f56fb16ebf206077e5f8617741aa93623195af | [
"CC0-1.0"
] | null | null | null | Python/accountant1/delete me/Expense.py | Fornost461/drafts | 39f56fb16ebf206077e5f8617741aa93623195af | [
"CC0-1.0"
] | null | null | null | Python/accountant1/delete me/Expense.py | Fornost461/drafts | 39f56fb16ebf206077e5f8617741aa93623195af | [
"CC0-1.0"
] | null | null | null | #!/usr/bin/env python3
class Transaction:
def __init__(self, amount, account, description="", date, category):
self.amount = amount
self.description = description
self.date = date
self.category = category
| 24.3 | 72 | 0.646091 | 26 | 243 | 5.884615 | 0.538462 | 0.130719 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005495 | 0.251029 | 243 | 9 | 73 | 27 | 0.835165 | 0.08642 | 0 | 0 | 0 | 0 | 0 | 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 |
d3a0863f9f4c1271a916f5c5779d536f2cc3e4e3 | 575 | py | Python | algs4/edge.py | dumpmemory/algs4-py | 8555076b554583b5438ed5180e2815cf049fb233 | [
"MIT"
] | 230 | 2018-02-27T02:26:44.000Z | 2022-03-29T10:26:57.000Z | algs4/edge.py | dumpmemory/algs4-py | 8555076b554583b5438ed5180e2815cf049fb233 | [
"MIT"
] | 5 | 2018-04-06T12:08:56.000Z | 2021-12-19T09:44:58.000Z | algs4/edge.py | dumpmemory/algs4-py | 8555076b554583b5438ed5180e2815cf049fb233 | [
"MIT"
] | 55 | 2018-02-27T02:26:45.000Z | 2022-03-30T03:51:41.000Z | class Edge:
def __init__(self, v, w, weight):
self.v = v
self.w = w
self.weight = weight
def __str__(self):
return "%d-%s %.5f" % (self.v, self.w, self.weight)
def __lt__(self, other):
return self.weight < other.weight
def __gt__(self, other):
return se... | 22.115385 | 59 | 0.521739 | 77 | 575 | 3.688312 | 0.298701 | 0.123239 | 0.06338 | 0.133803 | 0.274648 | 0.274648 | 0.274648 | 0.274648 | 0 | 0 | 0 | 0.002717 | 0.36 | 575 | 25 | 60 | 23 | 0.769022 | 0 | 0 | 0.1 | 0 | 0 | 0.038261 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0 | 0.2 | 0.65 | 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 |
d3a93a8b07e318ab6c48ff40f4432369da2199a2 | 1,290 | py | Python | code/alg/scheduler/base.py | S-Lab-System-Group/ChronusArtifact | bc7e15fefd53b80d1897170ab3c1aa7d353c3b79 | [
"MIT"
] | 7 | 2021-11-04T06:31:38.000Z | 2022-02-08T11:46:42.000Z | code/alg/scheduler/base.py | S-Lab-System-Group/ChronusArtifact | bc7e15fefd53b80d1897170ab3c1aa7d353c3b79 | [
"MIT"
] | null | null | null | code/alg/scheduler/base.py | S-Lab-System-Group/ChronusArtifact | bc7e15fefd53b80d1897170ab3c1aa7d353c3b79 | [
"MIT"
] | 1 | 2022-01-10T01:42:42.000Z | 2022-01-10T01:42:42.000Z | import warnings
from abc import ABCMeta, abstractmethod
class BaseScheduler(metaclass=ABCMeta):
def __init__(self, JOBS, CLUSTER, USERS, placement, name, logger, **kwargs):
self.JOBS = JOBS
self.CLUSTER = CLUSTER
self.USERS = USERS
self.placement = placement
self.name = nam... | 24.807692 | 80 | 0.649612 | 128 | 1,290 | 6.351563 | 0.304688 | 0.146371 | 0.280443 | 0.302583 | 0.522755 | 0.415744 | 0.226322 | 0 | 0 | 0 | 0 | 0 | 0.268992 | 1,290 | 52 | 81 | 24.807692 | 0.862142 | 0 | 0 | 0.378378 | 0 | 0 | 0.011619 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.216216 | false | 0 | 0.054054 | 0 | 0.297297 | 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 |
d3ab08c73e7133592c0c2249427b3021a488f773 | 119 | py | Python | Desafios/desafio49.py | ArthurBrito1/MY-SCRIPTS-PYTHON | 86967fe293715a705ac50e908d3369fa3257b5a2 | [
"MIT"
] | 1 | 2019-11-21T02:08:58.000Z | 2019-11-21T02:08:58.000Z | Desafios/desafio49.py | ArthurBrito1/MY-SCRIPTS-PYTHON | 86967fe293715a705ac50e908d3369fa3257b5a2 | [
"MIT"
] | null | null | null | Desafios/desafio49.py | ArthurBrito1/MY-SCRIPTS-PYTHON | 86967fe293715a705ac50e908d3369fa3257b5a2 | [
"MIT"
] | null | null | null | numero = int(input('Digite um numero:'))
for c in range(1, 11):
print('{} x {} = {}'.format(numero, c, numero*c)) | 39.666667 | 53 | 0.571429 | 19 | 119 | 3.578947 | 0.736842 | 0.205882 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030928 | 0.184874 | 119 | 3 | 53 | 39.666667 | 0.670103 | 0 | 0 | 0 | 0 | 0 | 0.245763 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6cc4c6624befa49d683d4d93e0636bf80252824e | 643 | py | Python | src/webapi/migrations/0055_auto_20210218_1756.py | kumagallium/labmine-api | 074e3b9a8665ce9e176da46fdd9ad91dc0734682 | [
"MIT"
] | null | null | null | src/webapi/migrations/0055_auto_20210218_1756.py | kumagallium/labmine-api | 074e3b9a8665ce9e176da46fdd9ad91dc0734682 | [
"MIT"
] | null | null | null | src/webapi/migrations/0055_auto_20210218_1756.py | kumagallium/labmine-api | 074e3b9a8665ce9e176da46fdd9ad91dc0734682 | [
"MIT"
] | null | null | null | # Generated by Django 2.2.1 on 2021-02-18 08:56
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('webapi', '0054_auto_20210217_1620'),
]
operations = [
migrations.RenameField(
model_name='image',
old_name='entityid',
... | 22.172414 | 47 | 0.538103 | 61 | 643 | 5.47541 | 0.557377 | 0.188623 | 0.233533 | 0.269461 | 0.431138 | 0.431138 | 0.347305 | 0.347305 | 0.347305 | 0.347305 | 0 | 0.073986 | 0.348367 | 643 | 28 | 48 | 22.964286 | 0.72315 | 0.069984 | 0 | 0.545455 | 1 | 0 | 0.147651 | 0.038591 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.045455 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6cd04c9202d99d7469f3febd6dd10c3120aaa0ca | 319 | py | Python | Aula 7/2nums.py | eucgabriel/Melhor-Curso-de-Python | 6c7392a9779e399a412aee331c28731d3887deca | [
"MIT"
] | null | null | null | Aula 7/2nums.py | eucgabriel/Melhor-Curso-de-Python | 6c7392a9779e399a412aee331c28731d3887deca | [
"MIT"
] | null | null | null | Aula 7/2nums.py | eucgabriel/Melhor-Curso-de-Python | 6c7392a9779e399a412aee331c28731d3887deca | [
"MIT"
] | null | null | null | n1 = int(input('Um valor: '))
n2 = int(input('Outro valor: '))
print('''
A soma vale {}
A subtração vale {}
A multiplicação vale {}
A divisão vale {}
A potência vale {}
A divisão inteira vale {}
O módulo vale {}
'''.format(n1+n2, n1-n2, n1*n2, n1/n2, n1**n2, n1//n2, n1 % n2))
| 26.583333 | 64 | 0.539185 | 48 | 319 | 3.583333 | 0.395833 | 0.162791 | 0.209302 | 0.27907 | 0.162791 | 0.162791 | 0.162791 | 0.162791 | 0.162791 | 0.162791 | 0 | 0.070175 | 0.285266 | 319 | 11 | 65 | 29 | 0.684211 | 0 | 0 | 0 | 0 | 0 | 0.642633 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.090909 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
6ce82f2d0ce7a2d7a0c0f1f747b5cba0579d3047 | 275 | py | Python | local/views.py | rodrigondec/Open_CliEng | 83e399a35c1cf96283409ac43a61b2725cd93982 | [
"MIT"
] | 3 | 2019-09-26T13:58:23.000Z | 2020-06-18T16:43:40.000Z | local/views.py | rodrigondec/Open_Clineng | 83e399a35c1cf96283409ac43a61b2725cd93982 | [
"MIT"
] | 24 | 2017-11-20T05:27:32.000Z | 2017-11-29T05:46:56.000Z | local/views.py | rodrigondec/Open_CliEng | 83e399a35c1cf96283409ac43a61b2725cd93982 | [
"MIT"
] | null | null | null | from django.shortcuts import render
from django.contrib.auth.decorators import login_required
@login_required
def index(request):
context = {'locais': None, "usuario_autenticado": request.user.is_authenticated()}
return render(request, 'local/index.html', context) | 30.555556 | 86 | 0.778182 | 34 | 275 | 6.176471 | 0.705882 | 0.095238 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.112727 | 275 | 9 | 87 | 30.555556 | 0.860656 | 0 | 0 | 0 | 0 | 0 | 0.148551 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
6ce92e047a64bbc004d67052658fe6bccb3335b6 | 112 | py | Python | setup.py | krux/python-storm | 1a9c06d3580a2b1bc2c27174d892a6dbcaa9e0bd | [
"BSD-3-Clause"
] | null | null | null | setup.py | krux/python-storm | 1a9c06d3580a2b1bc2c27174d892a6dbcaa9e0bd | [
"BSD-3-Clause"
] | null | null | null | setup.py | krux/python-storm | 1a9c06d3580a2b1bc2c27174d892a6dbcaa9e0bd | [
"BSD-3-Clause"
] | null | null | null | from distutils.core import setup
setup(
name="python-storm",
version="0.8.2",
packages=['storm'],
)
| 16 | 32 | 0.633929 | 15 | 112 | 4.733333 | 0.866667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.032967 | 0.1875 | 112 | 6 | 33 | 18.666667 | 0.747253 | 0 | 0 | 0 | 0 | 0 | 0.196429 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.166667 | 0 | 0.166667 | 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 |
6ceb58813b5a14848a51209fc90c9992834a2ec4 | 5,010 | py | Python | ThirdParty/AutobahnPython/autobahn/websocket/test/test_websocket_url.py | inviCRO/VTK | a2dc2e79d4ecb8f6da900535b32e1a2a702c7f48 | [
"BSD-3-Clause"
] | 3 | 2020-06-20T23:31:06.000Z | 2021-01-11T02:17:16.000Z | ThirdParty/AutobahnPython/autobahn/websocket/test/test_websocket_url.py | inviCRO/VTK | a2dc2e79d4ecb8f6da900535b32e1a2a702c7f48 | [
"BSD-3-Clause"
] | null | null | null | ThirdParty/AutobahnPython/autobahn/websocket/test/test_websocket_url.py | inviCRO/VTK | a2dc2e79d4ecb8f6da900535b32e1a2a702c7f48 | [
"BSD-3-Clause"
] | 1 | 2021-12-02T07:29:15.000Z | 2021-12-02T07:29:15.000Z | ###############################################################################
##
## Copyright (C) 2014 Tavendo GmbH
##
## 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:/... | 38.538462 | 179 | 0.647106 | 639 | 5,010 | 4.962441 | 0.220657 | 0.064018 | 0.13182 | 0.13245 | 0.572059 | 0.44907 | 0.304951 | 0.196153 | 0.132135 | 0.116682 | 0 | 0.053746 | 0.142116 | 5,010 | 129 | 180 | 38.837209 | 0.684039 | 0.131138 | 0 | 0 | 0 | 0.015152 | 0.250901 | 0.088921 | 0 | 0 | 0 | 0 | 0.439394 | 1 | 0.439394 | false | 0 | 0.045455 | 0 | 0.515152 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
9f0335c1813947fa3d638129bc31cc2299572726 | 261 | py | Python | src/ggrc/data_platform/__init__.py | Killswitchz/ggrc-core | 2460df94daf66727af248ad821462692917c97a9 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | src/ggrc/data_platform/__init__.py | Killswitchz/ggrc-core | 2460df94daf66727af248ad821462692917c97a9 | [
"ECL-2.0",
"Apache-2.0"
] | 10 | 2018-07-06T00:04:23.000Z | 2021-02-26T21:13:20.000Z | src/ggrc/data_platform/__init__.py | Killswitchz/ggrc-core | 2460df94daf66727af248ad821462692917c97a9 | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2017-11-11T22:16:56.000Z | 2017-11-11T22:16:56.000Z | # Copyright (C) 2017 Google Inc.
# Licensed under http://www.apache.org/licenses/LICENSE-2.0 <see LICENSE file>
"""Module for all Data Platform models.
This module is used to segregate original ggrc models and ones that are
specific to the Data Platform.
"""
| 29 | 78 | 0.754789 | 42 | 261 | 4.690476 | 0.857143 | 0.121827 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027149 | 0.153257 | 261 | 8 | 79 | 32.625 | 0.864253 | 0.954023 | 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 |
9f06ca6d426c10a3fb2d16ac934baa8f9e7a9c15 | 122 | py | Python | projects/javascript.py | TriG-Tbh/First-Projects | 567924b94fb27aae23d1dfe2bd9f0530372545a9 | [
"Unlicense"
] | null | null | null | projects/javascript.py | TriG-Tbh/First-Projects | 567924b94fb27aae23d1dfe2bd9f0530372545a9 | [
"Unlicense"
] | null | null | null | projects/javascript.py | TriG-Tbh/First-Projects | 567924b94fb27aae23d1dfe2bd9f0530372545a9 | [
"Unlicense"
] | null | null | null | <script>
var name = prompt("Please enter your name");
var greeting = "Hello, " + "!";
document.write(greeting);
</script>
| 20.333333 | 44 | 0.663934 | 15 | 122 | 5.4 | 0.733333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.139344 | 122 | 5 | 45 | 24.4 | 0.771429 | 0 | 0 | 0 | 0 | 0 | 0.245902 | 0 | 0.2 | 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 |
9f2196ed3ec2ac2351415cba1024ded4ab700c5b | 302 | py | Python | models/linear.py | lisadunlap/explainable-nbdt | e045bfd0b55b21fd87c9a233b73a0ca77672efff | [
"MIT"
] | 1 | 2021-08-28T20:17:50.000Z | 2021-08-28T20:17:50.000Z | models/linear.py | lisadunlap/explainable-nbdt | e045bfd0b55b21fd87c9a233b73a0ca77672efff | [
"MIT"
] | null | null | null | models/linear.py | lisadunlap/explainable-nbdt | e045bfd0b55b21fd87c9a233b73a0ca77672efff | [
"MIT"
] | null | null | null | import torch
import torch.nn as nn
__all__ = ('linear',)
class Linear(nn.Linear):
def set_weight(self, weight):
with torch.no_grad():
self.weight = torch.nn.Parameter(weight)
def linear(input_dim=10, num_classes=10):
return Linear(input_dim, num_classes, bias=False)
| 17.764706 | 53 | 0.678808 | 44 | 302 | 4.431818 | 0.522727 | 0.112821 | 0.14359 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016598 | 0.201987 | 302 | 16 | 54 | 18.875 | 0.792531 | 0 | 0 | 0 | 0 | 0 | 0.019868 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.222222 | 0.111111 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
9f4534c0717d0cf212eb787e5ef0e9b58bcb8629 | 185 | py | Python | python/series/series.py | jain-arham-hsr/exercism | 58acbc3d091c8293edd797d98f29078c817e9def | [
"MIT"
] | null | null | null | python/series/series.py | jain-arham-hsr/exercism | 58acbc3d091c8293edd797d98f29078c817e9def | [
"MIT"
] | null | null | null | python/series/series.py | jain-arham-hsr/exercism | 58acbc3d091c8293edd797d98f29078c817e9def | [
"MIT"
] | null | null | null | def slices(series, length):
if length > len(series) or length <= 0:
raise ValueError("Invalid Values.")
return [series[i:i+length] for i in range(len(series)-length+1)]
| 37 | 68 | 0.659459 | 28 | 185 | 4.357143 | 0.642857 | 0.196721 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013423 | 0.194595 | 185 | 4 | 69 | 46.25 | 0.805369 | 0 | 0 | 0 | 0 | 0 | 0.081081 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
9f511a261b33b61747e1a96b1c95a882eaa45145 | 100 | py | Python | shim/helper/types.py | jonathan-innis/azure-extension-foundation | 2762804db52d45b842b6ae9eae8082c58cff797e | [
"MIT"
] | null | null | null | shim/helper/types.py | jonathan-innis/azure-extension-foundation | 2762804db52d45b842b6ae9eae8082c58cff797e | [
"MIT"
] | null | null | null | shim/helper/types.py | jonathan-innis/azure-extension-foundation | 2762804db52d45b842b6ae9eae8082c58cff797e | [
"MIT"
] | null | null | null | from ctypes import *
class GoString(Structure):
_fields_ = [("p", c_char_p), ("n", c_longlong)] | 25 | 51 | 0.66 | 14 | 100 | 4.357143 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16 | 100 | 4 | 51 | 25 | 0.72619 | 0 | 0 | 0 | 0 | 0 | 0.019802 | 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 |
9f565086a9a4af0bd32c37e19e56bc98eeaa664a | 55 | py | Python | cembot/DBManager/__init__.py | niksart/cembot | 99ec3067bde5b8b72053dd18caa18742afba6a5e | [
"MIT"
] | null | null | null | cembot/DBManager/__init__.py | niksart/cembot | 99ec3067bde5b8b72053dd18caa18742afba6a5e | [
"MIT"
] | 15 | 2018-08-30T13:56:27.000Z | 2021-07-21T08:58:03.000Z | cembot/DBManager/__init__.py | niksart/cembot | 99ec3067bde5b8b72053dd18caa18742afba6a5e | [
"MIT"
] | null | null | null | from DBManager import DBManager
__all__ = [DBManager]
| 13.75 | 31 | 0.8 | 6 | 55 | 6.666667 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.145455 | 55 | 3 | 32 | 18.333333 | 0.851064 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
9f61e479db0311436890c84808783ca4733da1e6 | 473 | py | Python | fizzbuzz/fizzbuzz.py | chebet-s/Andelabs | 2252dbcd2d398a1c2b12b7e575c9d8dc0cae666e | [
"MIT"
] | 1 | 2018-09-02T21:50:24.000Z | 2018-09-02T21:50:24.000Z | fizzbuzz/fizzbuzz.py | chebet-s/Andelabs | 2252dbcd2d398a1c2b12b7e575c9d8dc0cae666e | [
"MIT"
] | null | null | null | fizzbuzz/fizzbuzz.py | chebet-s/Andelabs | 2252dbcd2d398a1c2b12b7e575c9d8dc0cae666e | [
"MIT"
] | null | null | null | def fizz_buzz(n):
'''return fizz when divisible by three
return buzz when divisible by 5
return fizzbuzz when divisible by both three and five
'''
if n % 3 == 0 and n % 5 == 0:
return 'FizzBuzz'
elif n % 3 == 0:
return 'Fizz'
elif n % 5 == 0:
return 'Buzz'
else:
return n
# print(fizz_buzz(3))
# print(... | 20.565217 | 54 | 0.657505 | 82 | 473 | 3.682927 | 0.317073 | 0.238411 | 0.344371 | 0.059603 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.062827 | 0.192389 | 473 | 22 | 55 | 21.5 | 0.727749 | 0.610994 | 0 | 0 | 0 | 0 | 0.095808 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0 | 0 | 0.555556 | 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 | 0 | 0 | 1 | 0 | 0 | 3 |
9f7136e82cc0ad2b58d692ca8e8ce0ec0d44c6d9 | 276 | py | Python | lib/pylint/test/input/func_w0402.py | willemneal/Docky | d3504e1671b4a6557468234c263950bfab461ce4 | [
"MIT"
] | 3 | 2018-11-25T01:09:55.000Z | 2021-08-24T01:56:36.000Z | lib/pylint/test/input/func_w0402.py | willemneal/Docky | d3504e1671b4a6557468234c263950bfab461ce4 | [
"MIT"
] | 1 | 2019-01-17T14:26:22.000Z | 2019-01-17T22:56:26.000Z | lib/pylint/test/input/func_w0402.py | willemneal/Docky | d3504e1671b4a6557468234c263950bfab461ce4 | [
"MIT"
] | 3 | 2018-11-09T03:38:09.000Z | 2020-02-24T06:26:10.000Z | """test wildard import
"""
__revision__ = 0
# pylint: disable=no-absolute-import
from input.func_fixme import *
# This is an unresolved import which still generates the wildcard-import
# warning.
from unknown.package import *
def abcd():
"""use imports"""
function()
| 21.230769 | 72 | 0.724638 | 36 | 276 | 5.416667 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004329 | 0.163043 | 276 | 12 | 73 | 23 | 0.839827 | 0.532609 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.4 | 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 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
9f8212447bf6f1de623286e5f279d03734f29158 | 748 | py | Python | pyTranslateSwf/__init__.py | tkarabela/translate-swf | 4756079294de9faa55d95b320d9b8a5ae6c40104 | [
"MIT"
] | 1 | 2022-03-15T21:44:50.000Z | 2022-03-15T21:44:50.000Z | pyTranslateSwf/__init__.py | tkarabela/translate-swf | 4756079294de9faa55d95b320d9b8a5ae6c40104 | [
"MIT"
] | null | null | null | pyTranslateSwf/__init__.py | tkarabela/translate-swf | 4756079294de9faa55d95b320d9b8a5ae6c40104 | [
"MIT"
] | null | null | null | """
pyTranslateSwf package
======================
This library implements tools to translate SWF (Flash) files from Japanese to English.
* pyTranslateSwf.parsers - code to extract and replace strings in extracted SWF assets
* pyTranslateSwf.translators - code to do machine translation (offline or cloud-based)
*... | 41.555556 | 101 | 0.791444 | 83 | 748 | 7.096386 | 0.722892 | 0.020374 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.129679 | 748 | 17 | 102 | 44 | 0.904762 | 0.647059 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
9fb7d87edbcb7db6d89af3017572a8c6de7f859d | 11,522 | py | Python | Computer science/Programming languages/Python/Object-oriented programming/Methods/Magic methods/Guide to Magic methods/Documentation.py | chanchanchong/PYTHON-TRACK-IN-HYPERSKILL | 462fe08ff4a2b183fd45a0235ab1ec7a788bd54c | [
"MIT"
] | null | null | null | Computer science/Programming languages/Python/Object-oriented programming/Methods/Magic methods/Guide to Magic methods/Documentation.py | chanchanchong/PYTHON-TRACK-IN-HYPERSKILL | 462fe08ff4a2b183fd45a0235ab1ec7a788bd54c | [
"MIT"
] | null | null | null | Computer science/Programming languages/Python/Object-oriented programming/Methods/Magic methods/Guide to Magic methods/Documentation.py | chanchanchong/PYTHON-TRACK-IN-HYPERSKILL | 462fe08ff4a2b183fd45a0235ab1ec7a788bd54c | [
"MIT"
] | null | null | null | # A Guide to Python's Magic Methods
# Rafe Kettler
# September 4, 2015
# 1. Introduction
# This guide is the culmination of a few months' worth of blog posts. The subject is magic
# methods.
# What are magic methods? They're everything in object-oriented Python. They're special
# methods that you can define to add "... | 56.758621 | 101 | 0.745964 | 1,824 | 11,522 | 4.548794 | 0.29386 | 0.028203 | 0.02748 | 0.021092 | 0.082198 | 0.055562 | 0.034591 | 0.030975 | 0 | 0 | 0 | 0.002987 | 0.186339 | 11,522 | 203 | 102 | 56.758621 | 0.88192 | 0.903576 | 0 | 0.095238 | 0 | 0 | 0.066107 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.047619 | 0.190476 | 0.714286 | 0.047619 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 3 |
4c869664c30dc49a8318fa8d963567ac63b147a6 | 136 | py | Python | codegolf/two_sum/alt_solution.py | 07734willy/Python-Playground | a0021d67de40b5e927026e4fb5ad882e1d7ec984 | [
"MIT"
] | null | null | null | codegolf/two_sum/alt_solution.py | 07734willy/Python-Playground | a0021d67de40b5e927026e4fb5ad882e1d7ec984 | [
"MIT"
] | null | null | null | codegolf/two_sum/alt_solution.py | 07734willy/Python-Playground | a0021d67de40b5e927026e4fb5ad882e1d7ec984 | [
"MIT"
] | null | null | null | class Solution:
def twoSum(s,n,t):r=[x for x in n if t-x in set(n)and t-x!=x]or[t//2,t//2];return [i for i,x in enumerate(n)if x in r]
| 45.333333 | 119 | 0.632353 | 40 | 136 | 2.15 | 0.475 | 0.139535 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017544 | 0.161765 | 136 | 2 | 120 | 68 | 0.736842 | 0 | 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 |
4c94aa8db60eed38d6cb509460c0968903e8b79e | 574 | py | Python | soap/semantics/__init__.py | gitter-badger/soap | 4f5eb7848e4dc516a6ff972db5c8c46ec9037c47 | [
"MIT"
] | 22 | 2016-02-08T16:57:30.000Z | 2021-03-12T20:32:06.000Z | soap/semantics/__init__.py | gitter-badger/soap | 4f5eb7848e4dc516a6ff972db5c8c46ec9037c47 | [
"MIT"
] | 1 | 2018-07-11T21:21:27.000Z | 2018-07-17T19:53:19.000Z | soap/semantics/__init__.py | gitter-badger/soap | 4f5eb7848e4dc516a6ff972db5c8c46ec9037c47 | [
"MIT"
] | 6 | 2016-02-01T13:30:56.000Z | 2018-11-28T04:35:27.000Z | from soap.semantics.common import is_constant, is_numeral
from soap.semantics.error import (
Interval, FloatInterval, FractionInterval, IntegerInterval,
ErrorSemantics, mpz, mpq, mpfr, mpz_type, mpq_type, mpfr_type,
inf, ulp, round_off_error, cast
)
from soap.semantics.functions import (
arith_eval, err... | 38.266667 | 72 | 0.797909 | 76 | 574 | 5.815789 | 0.526316 | 0.108597 | 0.230769 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12892 | 574 | 14 | 73 | 41 | 0.884 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.428571 | 0 | 0.428571 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
4c98308b45c9f796711187b49d87403b82506452 | 323 | py | Python | appapy/packaging/node.py | ChristopherSchubert/com.appalachia.python.appapy | a966fd63817dcc3f97aeb3aaca2a339d9527e2ed | [
"MIT"
] | 1 | 2021-05-07T11:42:30.000Z | 2021-05-07T11:42:30.000Z | appapy/packaging/node.py | ChristopherSchubert/com.appalachia.python.appapy | a966fd63817dcc3f97aeb3aaca2a339d9527e2ed | [
"MIT"
] | null | null | null | appapy/packaging/node.py | ChristopherSchubert/com.appalachia.python.appapy | a966fd63817dcc3f97aeb3aaca2a339d9527e2ed | [
"MIT"
] | null | null | null | from appapy.common import shell
from appapy.common.cli import demarcate, note
from appapy.packaging.npm import NPMPackage
class Node(NPMPackage):
def __init__(self, directory: str, bump: str):
super(Node, self).__init__(directory, bump)
def test():
demarcate("[TEST]")
shell.run("mocha... | 24.846154 | 51 | 0.690402 | 41 | 323 | 5.243902 | 0.560976 | 0.139535 | 0.148837 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.195046 | 323 | 12 | 52 | 26.916667 | 0.826923 | 0 | 0 | 0 | 0 | 0 | 0.034056 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
4cb3ab98975dc774d43903148465f73b08d60490 | 187 | py | Python | one.py | emacslisp/pythonlib | 5f299b24c3c4ea56fed48ed71d4a4c826e1cb36b | [
"Apache-2.0"
] | null | null | null | one.py | emacslisp/pythonlib | 5f299b24c3c4ea56fed48ed71d4a4c826e1cb36b | [
"Apache-2.0"
] | null | null | null | one.py | emacslisp/pythonlib | 5f299b24c3c4ea56fed48ed71d4a4c826e1cb36b | [
"Apache-2.0"
] | null | null | null | def func():
print("FUNC() IN ONE.PY")
print("TOP LEVEL IN ONE.PY")
if __name__ == '__main__':
print('ONE.py is being run directly!')
else:
print('ONE.py has been imported!') | 20.777778 | 42 | 0.631016 | 30 | 187 | 3.666667 | 0.633333 | 0.181818 | 0.127273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.192513 | 187 | 9 | 43 | 20.777778 | 0.728477 | 0 | 0 | 0 | 0 | 0 | 0.515957 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | true | 0 | 0.142857 | 0 | 0.285714 | 0.571429 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
4cce1f57b80a1aa1ce2515fb98bb32a4a84493f3 | 520 | py | Python | spylib/utils/rest.py | SatelCreative/satel-python-shopify | c77171be6871551a0a454800c89bca88df800874 | [
"MIT"
] | 8 | 2021-07-21T23:12:47.000Z | 2022-02-09T17:42:39.000Z | spylib/utils/rest.py | SatelCreative/satel-python-shopify | c77171be6871551a0a454800c89bca88df800874 | [
"MIT"
] | 56 | 2021-06-21T22:45:29.000Z | 2022-02-28T16:20:05.000Z | spylib/utils/rest.py | SatelCreative/satel-python-shopify | c77171be6871551a0a454800c89bca88df800874 | [
"MIT"
] | 1 | 2021-06-20T08:21:02.000Z | 2021-06-20T08:21:02.000Z | from enum import Enum
from pydantic import BaseModel
from starlette import status
class Method(Enum):
GET = 'get'
POST = 'post'
PUT = 'put'
DELETE = 'delete'
class Request(BaseModel):
method: Method
good_status: int
GET = Request(method=Method.GET, good_status=status.HTTP_200_OK)
POST = R... | 22.608696 | 71 | 0.748077 | 75 | 520 | 5.013333 | 0.28 | 0.159574 | 0.202128 | 0.212766 | 0.199468 | 0.199468 | 0 | 0 | 0 | 0 | 0 | 0.027211 | 0.151923 | 520 | 22 | 72 | 23.636364 | 0.825397 | 0 | 0 | 0 | 0 | 0 | 0.030769 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.733333 | 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 |
4cde53bde1f028f9bbad59471ec4d2dc9841d30d | 536 | py | Python | docs/hyperpython/hp04.py | jviide/htm.py | 16ba9afe1d02b5dd5d32aeb81f2033348b553f2c | [
"MIT"
] | 112 | 2019-06-12T19:53:22.000Z | 2022-01-25T04:57:03.000Z | docs/hyperpython/hp04.py | pauleveritt/htm.py | 083699ac3d16666f4cb1dcd41a3e943fb2d38550 | [
"MIT"
] | 14 | 2019-06-12T19:47:56.000Z | 2020-06-22T13:03:32.000Z | docs/hyperpython/hp04.py | pauleveritt/htm.py | 083699ac3d16666f4cb1dcd41a3e943fb2d38550 | [
"MIT"
] | 6 | 2019-06-12T20:24:56.000Z | 2021-02-21T16:47:43.000Z | from hyperpython import h
from htm import htm
# start
@htm
def html(tag, props, children):
if callable(tag):
# In this case:
# props={'header': 'My Components'}
return tag_factory(tag, children=children, **props)
return h(tag, props, children)
def tag_factory(tag_callable, **kwar... | 19.142857 | 59 | 0.639925 | 66 | 536 | 5.136364 | 0.424242 | 0.047198 | 0.094395 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004673 | 0.201493 | 536 | 27 | 60 | 19.851852 | 0.787383 | 0.102612 | 0 | 0 | 0 | 0 | 0.18239 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.142857 | 0.142857 | 0.642857 | 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 |
4ce2551d1bfd8d0661d2a7e5169002547ce1f5ab | 324 | py | Python | Python/UofG/Year1/Semester2/week18.py | prynix/learning-programming | 85aea40a61fb824a2b4e142331d9ac7971fef263 | [
"MIT"
] | 2 | 2017-03-14T16:02:08.000Z | 2017-05-02T13:48:18.000Z | Python/UofG/Year1/Semester2/week18.py | CajetanP/learning-programming | 85aea40a61fb824a2b4e142331d9ac7971fef263 | [
"MIT"
] | 4 | 2021-05-20T21:10:13.000Z | 2022-02-26T09:50:19.000Z | Python/UofG/Year1/Semester2/week18.py | CajetanP/learning-programming | 85aea40a61fb824a2b4e142331d9ac7971fef263 | [
"MIT"
] | 1 | 2021-06-18T01:31:24.000Z | 2021-06-18T01:31:24.000Z |
# [Lab] CS1P - Exceptions
# [Lab] CS1P - Files
# [Lecture] CS1S - Pointers
# [Lab] CS1S - Pointers
# [Lab] CS1S - Sigma16 Operation Details
# [Lecture] CS1S - Procedures
# [Lecture] CS1S - Call Stack
# [Review] CS1S - Memory & Execution
# [Quiz] CS1S - Pointers and Procedures
# [Lecture] CS1P - GUIs with Tkin... | 15.428571 | 40 | 0.660494 | 38 | 324 | 5.631579 | 0.552632 | 0.154206 | 0.140187 | 0.17757 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047059 | 0.212963 | 324 | 20 | 41 | 16.2 | 0.792157 | 0.904321 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4cf429415f190be1a40ab2b47c85183b12305d94 | 32,172 | py | Python | tests/test_messages.py | post-cyberlabs/bromelia | a21c6af591fa3ebe5335f2f34b13b60f03a48b55 | [
"MIT"
] | 25 | 2021-04-03T20:26:57.000Z | 2022-02-08T15:02:17.000Z | tests/test_messages.py | post-cyberlabs/bromelia | a21c6af591fa3ebe5335f2f34b13b60f03a48b55 | [
"MIT"
] | 8 | 2022-01-23T10:55:43.000Z | 2022-03-01T14:03:01.000Z | tests/test_messages.py | post-cyberlabs/bromelia | a21c6af591fa3ebe5335f2f34b13b60f03a48b55 | [
"MIT"
] | 3 | 2021-09-16T11:23:25.000Z | 2022-01-23T10:49:26.000Z | # -*- coding: utf-8 -*-
"""
test.test_messages
~~~~~~~~~~~~~~~~~~
This module contains the Diameter protocol messages unittests.
:copyright: (c) 2020 Henrique Marques Ribeiro.
:license: MIT, see LICENSE for more details.
"""
import unittest
import os
import sys
testing_dir = os.path.dirname(... | 46.357349 | 864 | 0.668065 | 2,607 | 32,172 | 8.096663 | 0.093978 | 0.10091 | 0.121092 | 0.059693 | 0.664156 | 0.659892 | 0.657902 | 0.653923 | 0.64061 | 0.626966 | 0 | 0.292839 | 0.220378 | 32,172 | 694 | 865 | 46.357349 | 0.54872 | 0.049733 | 0 | 0.714602 | 0 | 0 | 0.371821 | 0.298664 | 0 | 0 | 0 | 0 | 0.314159 | 1 | 0.064159 | false | 0 | 0.042035 | 0 | 0.132743 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
4cfebb3811408d1e769e5883f82682607caf72cc | 660 | py | Python | lepmlutils/pdutils/__init__.py | Lewington-pitsos/mlutils | c92322a8a2fc0b5342d44b0d92051a93c6eede44 | [
"MIT"
] | null | null | null | lepmlutils/pdutils/__init__.py | Lewington-pitsos/mlutils | c92322a8a2fc0b5342d44b0d92051a93c6eede44 | [
"MIT"
] | null | null | null | lepmlutils/pdutils/__init__.py | Lewington-pitsos/mlutils | c92322a8a2fc0b5342d44b0d92051a93c6eede44 | [
"MIT"
] | null | null | null | from . import persister
from .addcoltfm import AddColTfm
from .badindicatortfm import BadIndicatorTfm
from .categorizetfm import CategorizeTfm
from .coltag import ColTag
from .droptfm import DropTfm
from .funcreplacetfm import FuncReplaceTfm
from .globals import *
from .graphics import *
from .help import *
from .impu... | 33 | 80 | 0.843939 | 77 | 660 | 7.181818 | 0.324675 | 0.072333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.118182 | 660 | 20 | 81 | 33 | 0.950172 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
9808d3dae25d13616dd4f2a53c98504ed47365b9 | 545 | py | Python | backend/manage.py | fish2018/openpms | 88ca124ba0980aef5dd5474af03209f2dbefdcca | [
"Apache-2.0"
] | 40 | 2019-09-12T00:41:22.000Z | 2022-03-25T03:29:28.000Z | backend/manage.py | fish2018/openpms | 88ca124ba0980aef5dd5474af03209f2dbefdcca | [
"Apache-2.0"
] | null | null | null | backend/manage.py | fish2018/openpms | 88ca124ba0980aef5dd5474af03209f2dbefdcca | [
"Apache-2.0"
] | 14 | 2019-09-07T11:49:55.000Z | 2022-03-25T03:36:20.000Z | from app.models import db
from app.utils.factory import create_app
from app.models import Role
from app.models import User
from app.models import Group
from app.models import Permission, Resources, group_permission, Application, ResourceMenu, PermissionMenu
from flask_script import Manager, Shell
from flask_migr... | 28.684211 | 106 | 0.774312 | 73 | 545 | 5.575342 | 0.424658 | 0.103194 | 0.159705 | 0.233415 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.152294 | 545 | 18 | 107 | 30.277778 | 0.880952 | 0 | 0 | 0 | 0 | 0 | 0.018975 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.571429 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
981013f69d35fe63646e5db718cd4e7f071af6a6 | 493 | py | Python | src/module_1/app/utils/routers/instantiate.py | jhculb/base_python_project | d3b5abbc4142565388e0403c213e74ff03e4df12 | [
"MIT"
] | null | null | null | src/module_1/app/utils/routers/instantiate.py | jhculb/base_python_project | d3b5abbc4142565388e0403c213e74ff03e4df12 | [
"MIT"
] | null | null | null | src/module_1/app/utils/routers/instantiate.py | jhculb/base_python_project | d3b5abbc4142565388e0403c213e74ff03e4df12 | [
"MIT"
] | null | null | null | class IncludeAPIRouter(object):
def __new__(cls):
from app.utils.routers.health_checks import router as router_health_check
from app.utils.routers.hello_world import router as router_hello_world
from fastapi.routing import APIRouter
router = APIRouter()
router.include_router(... | 54.777778 | 91 | 0.724138 | 63 | 493 | 5.380952 | 0.428571 | 0.117994 | 0.070796 | 0.112094 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004963 | 0.182556 | 493 | 9 | 92 | 54.777778 | 0.836228 | 0 | 0 | 0 | 0 | 0 | 0.074899 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | 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 |
981512fff4efe213e74e5fbe1bf96ee1008ea60c | 1,212 | py | Python | util.py | Ltango/SentinelOneVirusTotalAPI | 48028fa829ad852d533ab1932c966a8b2df10a7c | [
"MIT"
] | 1 | 2019-01-07T20:40:10.000Z | 2019-01-07T20:40:10.000Z | util.py | Ltango/SentinelOneVirusTotalAPI | 48028fa829ad852d533ab1932c966a8b2df10a7c | [
"MIT"
] | null | null | null | util.py | Ltango/SentinelOneVirusTotalAPI | 48028fa829ad852d533ab1932c966a8b2df10a7c | [
"MIT"
] | null | null | null | # import requests
import string
import random
class Utilities:
HEADER = '\033[95m'
OKBLUE = '\033[94m'
OKGREEN = '\033[92m'
WARNING = '\033[93m'
FAIL = '\033[91m'
ENDC = '\033[0m'
EXCEPTION = '\033[96m'
BOLD = '\033[1m'
UNDERLINE = '\033[4m'
def printSuccess(msg):
pri... | 28.186047 | 99 | 0.592409 | 140 | 1,212 | 5.057143 | 0.471429 | 0.079096 | 0.120057 | 0.134181 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04814 | 0.245875 | 1,212 | 43 | 100 | 28.186047 | 0.726477 | 0.012376 | 0 | 0.0625 | 0 | 0 | 0.176421 | 0.041806 | 0 | 0 | 0 | 0 | 0 | 1 | 0.21875 | false | 0 | 0.0625 | 0.03125 | 0.625 | 0.46875 | 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 | 0 | 1 | 1 | 0 | 3 |
e21e4c851000c543cf911b5417772a4d9be56d80 | 1,950 | py | Python | AqDsKit/accessors/db/hadoopconfigs.py | luntaixiax/aq-diskit | 032dfb2081a67feb72d404f538c7d6df17922bd8 | [
"MIT"
] | null | null | null | AqDsKit/accessors/db/hadoopconfigs.py | luntaixiax/aq-diskit | 032dfb2081a67feb72d404f538c7d6df17922bd8 | [
"MIT"
] | null | null | null | AqDsKit/accessors/db/hadoopconfigs.py | luntaixiax/aq-diskit | 032dfb2081a67feb72d404f538c7d6df17922bd8 | [
"MIT"
] | null | null | null | import logging
import jaydebeapi
from AqDsKit.accessors.db.drivers import download_jdbc_jar
class dfConfJdbc:
def __init__(self, driver: str):
self.driver = driver
self.jar_path = None
def bindServer(self, ip: str, port: int, db: str):
self.ip = ip
self.port = port
s... | 29.545455 | 119 | 0.651282 | 248 | 1,950 | 4.947581 | 0.314516 | 0.03423 | 0.03586 | 0.051345 | 0.443358 | 0.425428 | 0.376528 | 0.376528 | 0.291769 | 0.291769 | 0 | 0.011326 | 0.230256 | 1,950 | 66 | 120 | 29.545455 | 0.806129 | 0 | 0 | 0.304348 | 0 | 0.043478 | 0.232189 | 0.080472 | 0 | 0 | 0 | 0 | 0 | 1 | 0.304348 | false | 0.065217 | 0.065217 | 0.086957 | 0.543478 | 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 |
e22f26cfe6c3e43e2bc5057bd31a6b7dbbe614c1 | 288 | py | Python | web/app/djrq/model/prokyon/suggestions.py | bmillham/djrq2 | c84283b75a7c15da1902ebfc32b7d75159c09e20 | [
"MIT"
] | 1 | 2016-11-23T20:50:00.000Z | 2016-11-23T20:50:00.000Z | web/app/djrq/model/prokyon/suggestions.py | bmillham/djrq2 | c84283b75a7c15da1902ebfc32b7d75159c09e20 | [
"MIT"
] | 15 | 2017-01-15T04:18:40.000Z | 2017-02-25T04:13:06.000Z | web/app/djrq/model/prokyon/suggestions.py | bmillham/djrq2 | c84283b75a7c15da1902ebfc32b7d75159c09e20 | [
"MIT"
] | null | null | null | from . import *
class Suggestions(Base):
__tablename__ = 'suggestions'
id = Column(Integer, primary_key=True)
title = Column(String(255))
album = Column(String(255))
artist = Column(String(255))
suggestor = Column(String(255))
comments = Column(String(255))
| 24 | 42 | 0.666667 | 33 | 288 | 5.666667 | 0.575758 | 0.320856 | 0.40107 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065217 | 0.201389 | 288 | 11 | 43 | 26.181818 | 0.747826 | 0 | 0 | 0 | 0 | 0 | 0.038194 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 1 | 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 | 0 | 0 | 1 | 0 | 0 | 3 |
e2310480dfbe4e862562a8d28e3bfca10fa92de6 | 691 | py | Python | tests/expected.py | szikszail/yamltopy | 5af58b714321ffb3488c8a699d4b99f562311805 | [
"MIT"
] | null | null | null | tests/expected.py | szikszail/yamltopy | 5af58b714321ffb3488c8a699d4b99f562311805 | [
"MIT"
] | null | null | null | tests/expected.py | szikszail/yamltopy | 5af58b714321ffb3488c8a699d4b99f562311805 | [
"MIT"
] | null | null | null | import datetime
EXPECTED = {'invoice': 34843, 'date': datetime.date(2001, 1, 23), 'bill-to': {'given': 'Chris', 'family': 'Dumars', 'address': {'lines': '458 Walkman Dr.\nSuite #292\n', 'city': 'Royal Oak', 'state': 'MI', 'postal': 48046}}, 'ship-to': {'given': 'Chris', 'family': 'Dumars', 'address': {'lines': '458 Wal... | 345.5 | 675 | 0.617945 | 92 | 691 | 4.641304 | 0.673913 | 0.032787 | 0.056206 | 0.084309 | 0.412178 | 0.412178 | 0.412178 | 0.412178 | 0.412178 | 0.412178 | 0 | 0.114379 | 0.114327 | 691 | 2 | 675 | 345.5 | 0.583333 | 0 | 0 | 0 | 0 | 0 | 0.553468 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
e24066c87b337cda972ded1b5c507af059ba9319 | 1,256 | py | Python | nimbella/redisqlite.py | Tejusbharadwaj/nimbella-sdk-python | cdd05c656450ef5e92ababd88a6db5c2c51393f8 | [
"Apache-2.0"
] | 1 | 2021-02-22T20:14:09.000Z | 2021-02-22T20:14:09.000Z | nimbella/redisqlite.py | Tejusbharadwaj/nimbella-sdk-python | cdd05c656450ef5e92ababd88a6db5c2c51393f8 | [
"Apache-2.0"
] | 16 | 2021-01-27T17:34:40.000Z | 2021-08-13T17:05:06.000Z | nimbella/redisqlite.py | Tejusbharadwaj/nimbella-sdk-python | cdd05c656450ef5e92ababd88a6db5c2c51393f8 | [
"Apache-2.0"
] | 4 | 2021-01-28T16:47:26.000Z | 2021-07-20T08:32:10.000Z | """
/**
* Copyright (c) 2020-present, Nimbella, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 30.634146 | 75 | 0.671178 | 177 | 1,256 | 4.700565 | 0.531073 | 0.072115 | 0.076923 | 0.110577 | 0.252404 | 0.252404 | 0.252404 | 0.165865 | 0.165865 | 0.165865 | 0 | 0.011066 | 0.208599 | 1,256 | 40 | 76 | 31.4 | 0.825956 | 0.486465 | 0 | 0.125 | 0 | 0 | 0.064364 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.375 | false | 0 | 0.0625 | 0.1875 | 0.8125 | 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 |
e2426973cd010b1f16ef7760f18b956138378edb | 387 | py | Python | tests/test_doit_tasks/test_summary.py | KyleKing/calcipy | c10d78cce727b04b6d4f633859659cdcda832630 | [
"MIT"
] | 6 | 2021-02-03T20:07:09.000Z | 2022-02-27T12:31:07.000Z | tests/test_doit_tasks/test_summary.py | KyleKing/calcipy | c10d78cce727b04b6d4f633859659cdcda832630 | [
"MIT"
] | 65 | 2020-12-11T02:36:59.000Z | 2022-03-05T21:15:07.000Z | tests/test_doit_tasks/test_summary.py | KyleKing/dash_dev | a07c092b480777d8ee9c4854847a6e476da78470 | [
"MIT"
] | 3 | 2021-06-05T13:46:14.000Z | 2021-11-30T10:34:34.000Z | """Test summary."""
from calcipy.doit_tasks.summary_reporter import _format_task_summary, _TaskExitCode, _TaskSummary
def test_format_task_summary():
"""Test _format_task_summary."""
task_summary = _TaskSummary(name='a_task', exit_code=_TaskExitCode.PASS)
result = _format_task_summary(task_summary)
... | 27.642857 | 97 | 0.77261 | 49 | 387 | 5.632653 | 0.44898 | 0.278986 | 0.246377 | 0.152174 | 0.202899 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.134367 | 387 | 13 | 98 | 29.769231 | 0.823881 | 0.103359 | 0 | 0 | 0 | 0 | 0.03869 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.166667 | false | 0.166667 | 0.166667 | 0 | 0.333333 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
e2433ff82ab0b15850833c980fae98ecff979965 | 18 | py | Python | sec_edgar/__init__.py | davidsilva2841/sec_project | 6874fd4a6e2e511b390c91e6e7a630bacc67848d | [
"MIT"
] | 2 | 2020-04-20T22:54:06.000Z | 2020-08-02T14:43:32.000Z | sec_edgar/__init__.py | davidsilva2841/sec_project | 6874fd4a6e2e511b390c91e6e7a630bacc67848d | [
"MIT"
] | 1 | 2021-06-02T00:02:58.000Z | 2021-06-02T00:02:58.000Z | sec_edgar/__init__.py | davidsilva2841/sec_project | 6874fd4a6e2e511b390c91e6e7a630bacc67848d | [
"MIT"
] | null | null | null | name = "sec_edgar" | 18 | 18 | 0.722222 | 3 | 18 | 4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 18 | 1 | 18 | 18 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0.473684 | 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 |
e24a4f8aee4bfd2948dcfaac44f5551b55330825 | 55 | py | Python | mobycity/carpooling/__init__.py | LucienD/Mobct | 1c8422b30c205bdb2dc21c988f74280194980ec4 | [
"MIT"
] | null | null | null | mobycity/carpooling/__init__.py | LucienD/Mobct | 1c8422b30c205bdb2dc21c988f74280194980ec4 | [
"MIT"
] | null | null | null | mobycity/carpooling/__init__.py | LucienD/Mobct | 1c8422b30c205bdb2dc21c988f74280194980ec4 | [
"MIT"
] | null | null | null | default_app_config = 'carpooling.apps.CarpoolingConfig' | 55 | 55 | 0.872727 | 6 | 55 | 7.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036364 | 55 | 1 | 55 | 55 | 0.867925 | 0 | 0 | 0 | 0 | 0 | 0.571429 | 0.571429 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e256f9214897c55cc80310a8a2e2dcb2ca3a1d85 | 618 | py | Python | test/programytest/spelling/test_norvig.py | whackur/chatbot | bb4b4dace89f1f8aae2b6377bf7d2601e66af7a7 | [
"MIT"
] | 2 | 2018-06-16T09:32:22.000Z | 2019-07-21T13:16:00.000Z | test/programytest/spelling/test_norvig.py | whackur/chatbot | bb4b4dace89f1f8aae2b6377bf7d2601e66af7a7 | [
"MIT"
] | 3 | 2020-07-16T04:00:42.000Z | 2021-03-31T18:52:22.000Z | test/programytest/spelling/test_norvig.py | whackur/chatbot | bb4b4dace89f1f8aae2b6377bf7d2601e66af7a7 | [
"MIT"
] | 4 | 2018-06-29T23:50:44.000Z | 2020-11-05T08:13:47.000Z | import unittest
from programy.spelling.norvig import NorvigSpellingChecker
class NorvigSpellingCheckerTests(unittest.TestCase):
def test_spellchecker(self):
checker = NorvigSpellingChecker()
self.assertIsNotNone(checker)
self.assertEqual("THIS", checker.correct("THIS"))
self.asse... | 34.333333 | 65 | 0.708738 | 57 | 618 | 7.666667 | 0.368421 | 0.20595 | 0.130435 | 0.17849 | 0.562929 | 0.562929 | 0.562929 | 0.562929 | 0.562929 | 0.562929 | 0 | 0 | 0.160194 | 618 | 17 | 66 | 36.352941 | 0.842004 | 0 | 0 | 0 | 0 | 0 | 0.116505 | 0 | 0 | 0 | 0 | 0 | 0.583333 | 1 | 0.083333 | false | 0 | 0.166667 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e263e082e62c7ce174d2d29317885ce7884495e7 | 5,560 | py | Python | snuba/migrations/snuba_migrations/transactions/0003_transactions_onpremise_fix_columns.py | fpacifici/snuba | cf732b71383c948f9387fbe64e9404ca71f8e9c5 | [
"Apache-2.0"
] | null | null | null | snuba/migrations/snuba_migrations/transactions/0003_transactions_onpremise_fix_columns.py | fpacifici/snuba | cf732b71383c948f9387fbe64e9404ca71f8e9c5 | [
"Apache-2.0"
] | null | null | null | snuba/migrations/snuba_migrations/transactions/0003_transactions_onpremise_fix_columns.py | fpacifici/snuba | cf732b71383c948f9387fbe64e9404ca71f8e9c5 | [
"Apache-2.0"
] | null | null | null | from typing import Sequence
from snuba.clickhouse.columns import Column, DateTime, String, UInt
from snuba.clusters.storage_sets import StorageSetKey
from snuba.migrations import migration, operations
from snuba.migrations.columns import MigrationModifiers as Modifiers
UNKNOWN_SPAN_STATUS = 2
class Migration(migrat... | 38.881119 | 90 | 0.551978 | 439 | 5,560 | 6.792711 | 0.246014 | 0.096915 | 0.123407 | 0.187793 | 0.691147 | 0.691147 | 0.627096 | 0.623742 | 0.608652 | 0.608652 | 0 | 0.002257 | 0.36259 | 5,560 | 142 | 91 | 39.15493 | 0.839165 | 0.06205 | 0 | 0.722222 | 0 | 0 | 0.106166 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.031746 | false | 0 | 0.039683 | 0.031746 | 0.119048 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e2831222b5f3310dc76715d1c1220382d0413e06 | 559 | py | Python | package/tests/application/components/test_application_component.py | Jhsmit/awesome-panel | 53f7754f7c505a2666f6724df26c851ae942ec40 | [
"Apache-2.0"
] | 179 | 2019-12-04T14:54:53.000Z | 2022-03-30T09:08:38.000Z | package/tests/application/components/test_application_component.py | Jhsmit/awesome-panel | 53f7754f7c505a2666f6724df26c851ae942ec40 | [
"Apache-2.0"
] | 62 | 2019-12-14T16:51:28.000Z | 2022-03-19T18:47:12.000Z | package/tests/application/components/test_application_component.py | Jhsmit/awesome-panel | 53f7754f7c505a2666f6724df26c851ae942ec40 | [
"Apache-2.0"
] | 35 | 2019-12-08T13:19:53.000Z | 2022-03-25T10:33:02.000Z | # pylint: disable=redefined-outer-name,protected-access
# pylint: disable=missing-function-docstring,missing-module-docstring,missing-class-docstring
from awesome_panel.application.components import ApplicationComponent
def test_can_construct(application_component, application, application_view, services):
... | 50.818182 | 94 | 0.828265 | 56 | 559 | 8.089286 | 0.5 | 0.220751 | 0.172185 | 0.18543 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.103757 | 559 | 10 | 95 | 55.9 | 0.904192 | 0.259392 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.666667 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
e298fb7f0c974890739984029b34d93ae8f5800e | 1,443 | py | Python | gradient/cliutils.py | Exitussru/GradientCI | 014d4e36d8456e805b78e75562b8235221b62b9e | [
"0BSD"
] | null | null | null | gradient/cliutils.py | Exitussru/GradientCI | 014d4e36d8456e805b78e75562b8235221b62b9e | [
"0BSD"
] | null | null | null | gradient/cliutils.py | Exitussru/GradientCI | 014d4e36d8456e805b78e75562b8235221b62b9e | [
"0BSD"
] | null | null | null | import json
import shutil
import requests
import six
from gradient import exceptions
def get_terminal_lines(fallback=48):
if six.PY3:
return shutil.get_terminal_size().lines
return fallback
def print_json_pretty(res):
print(json.dumps(res, indent=2, sort_keys=True))
def response_error_check... | 28.294118 | 112 | 0.699238 | 202 | 1,443 | 4.816832 | 0.39604 | 0.051387 | 0.016444 | 0.045221 | 0.073998 | 0.073998 | 0 | 0 | 0 | 0 | 0 | 0.010256 | 0.189189 | 1,443 | 50 | 113 | 28.86 | 0.821368 | 0.032571 | 0 | 0 | 0 | 0 | 0.185796 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.225806 | false | 0.129032 | 0.16129 | 0.064516 | 0.580645 | 0.064516 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 3 |
e2a706cfcf64ee540717bada7cab1e64d9ae2fd8 | 136 | py | Python | api_resquester.py | wen96/hotohete-scrapper | d103fbb2e69af3a3c839d2ebb92058bab1f96bbe | [
"MIT"
] | null | null | null | api_resquester.py | wen96/hotohete-scrapper | d103fbb2e69af3a3c839d2ebb92058bab1f96bbe | [
"MIT"
] | null | null | null | api_resquester.py | wen96/hotohete-scrapper | d103fbb2e69af3a3c839d2ebb92058bab1f96bbe | [
"MIT"
] | null | null | null | import asyncio
async def request_api(future, i):
await asyncio.sleep(1 + i)
future.set_result('Future {} is done!'.format(i))
| 19.428571 | 53 | 0.683824 | 21 | 136 | 4.333333 | 0.761905 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008929 | 0.176471 | 136 | 6 | 54 | 22.666667 | 0.803571 | 0 | 0 | 0 | 0 | 0 | 0.132353 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.25 | 0 | 0.25 | 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 |
e2b5c8ee9f8987f2f54ec203f0845c66b19277f7 | 483 | py | Python | iris_sdk/models/data/termination_hosts.py | NumberAI/python-bandwidth-iris | 0e05f79d68b244812afb97e00fd65b3f46d00aa3 | [
"MIT"
] | 2 | 2020-04-13T13:47:59.000Z | 2022-02-23T20:32:41.000Z | iris_sdk/models/data/termination_hosts.py | bandwidthcom/python-bandwidth-iris | dbcb30569631395041b92917252d913166f7d3c9 | [
"MIT"
] | 5 | 2020-09-18T20:59:24.000Z | 2021-08-25T16:51:42.000Z | iris_sdk/models/data/termination_hosts.py | bandwidthcom/python-bandwidth-iris | dbcb30569631395041b92917252d913166f7d3c9 | [
"MIT"
] | 5 | 2018-12-12T14:39:50.000Z | 2020-11-17T21:42:29.000Z | #!/usr/bin/env python
from iris_sdk.models.base_resource import BaseData, BaseResourceList
from iris_sdk.models.data.host import Host
from iris_sdk.models.maps.termination_hosts import TerminationHostsMap
class TerminationHosts(TerminationHostsMap, BaseData):
@property
def items(self):
return self.te... | 28.411765 | 70 | 0.763975 | 59 | 483 | 6.050847 | 0.474576 | 0.067227 | 0.092437 | 0.142857 | 0.162465 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.15735 | 483 | 17 | 71 | 28.411765 | 0.87715 | 0.041408 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.272727 | false | 0 | 0.272727 | 0.181818 | 0.818182 | 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 |
e2b980a66f64e7127c002c89d4d1bd10c917fc2e | 328 | py | Python | rusentrel/classic/ctx/att_self_z_yang.py | nicolay-r/are-networks-experiments | 3831bfda75fae1d3a336fc808af2b671df0efb45 | [
"MIT"
] | 2 | 2021-06-30T18:58:32.000Z | 2021-12-01T07:02:32.000Z | rusentrel/classic/ctx/att_self_z_yang.py | nicolay-r/are-networks-experiments | 3831bfda75fae1d3a336fc808af2b671df0efb45 | [
"MIT"
] | 16 | 2020-10-20T20:22:27.000Z | 2021-02-21T11:46:07.000Z | rusentrel/classic/ctx/att_self_z_yang.py | nicolay-r/are-networks-experiments | 3831bfda75fae1d3a336fc808af2b671df0efb45 | [
"MIT"
] | null | null | null | import tensorflow as tf
from arekit.contrib.networks.context.configurations.att_self_z_yang_bilstm import AttentionSelfZYangBiLSTMConfig
def ctx_att_bilstm_z_yang_custom_config(config):
assert(isinstance(config, AttentionSelfZYangBiLSTMConfig))
config.modify_weight_initializer(tf.contrib.layers.xavier_initial... | 41 | 112 | 0.865854 | 39 | 328 | 6.948718 | 0.692308 | 0.0369 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.070122 | 328 | 7 | 113 | 46.857143 | 0.888525 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.2 | false | 0 | 0.4 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
2c3f0be67282d74a1317c10a579e68e93718604d | 274 | py | Python | python/projecteuler/pair.py | alexandrempierre/project-euler | f71da8a8b279655f2a165d97a9b692e69c7727cf | [
"MIT"
] | 1 | 2021-08-22T10:24:21.000Z | 2021-08-22T10:24:21.000Z | python/projecteuler/pair.py | alexandrempierre/project-euler | f71da8a8b279655f2a165d97a9b692e69c7727cf | [
"MIT"
] | null | null | null | python/projecteuler/pair.py | alexandrempierre/project-euler | f71da8a8b279655f2a165d97a9b692e69c7727cf | [
"MIT"
] | null | null | null | '''pair module
Some functions to deal with pairs.
'''
__all__ = ['first', 'second']
__author__ = 'Alexandre Pierre'
def first(pair):
'''Gets first element of a pair'''
return pair[0]
def second(pair):
'''Gets second element of a pair'''
return pair[1]
| 15.222222 | 39 | 0.638686 | 38 | 274 | 4.394737 | 0.578947 | 0.095808 | 0.11976 | 0.167665 | 0.287425 | 0.287425 | 0 | 0 | 0 | 0 | 0 | 0.009302 | 0.215328 | 274 | 17 | 40 | 16.117647 | 0.767442 | 0.386861 | 0 | 0 | 0 | 0 | 0.178808 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
2c46549be6acebcffa81f951ffa52b3ac6becf90 | 436 | py | Python | transbank/onepay/sign.py | atpollmann/transbank-sdk-python | 84adba01bc81110431ae49da95c9f7b823790f23 | [
"BSD-3-Clause"
] | 22 | 2018-10-11T17:37:35.000Z | 2022-03-20T23:53:32.000Z | transbank/onepay/sign.py | atpollmann/transbank-sdk-python | 84adba01bc81110431ae49da95c9f7b823790f23 | [
"BSD-3-Clause"
] | 25 | 2018-10-10T12:10:13.000Z | 2022-01-27T19:04:22.000Z | transbank/onepay/sign.py | atpollmann/transbank-sdk-python | 84adba01bc81110431ae49da95c9f7b823790f23 | [
"BSD-3-Clause"
] | 10 | 2018-12-04T16:41:17.000Z | 2021-05-31T16:02:43.000Z | # encoding: utf-8
import hashlib, hmac, base64
def str_with_len_prefix(param):
return str(len(str(param).encode('utf-8'))) + str(param)
def concat_for_signing(*params):
return ''.join(str_with_len_prefix(param) for param in params)
def sign_sha256(secret: str, data: str) -> str:
digest = hmac.new(str.enc... | 31.142857 | 98 | 0.722477 | 66 | 436 | 4.636364 | 0.469697 | 0.026144 | 0.065359 | 0.104575 | 0.137255 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036745 | 0.126147 | 436 | 13 | 99 | 33.538462 | 0.766404 | 0.034404 | 0 | 0 | 0 | 0 | 0.011962 | 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 |
2c4f2946499f75d6e1669b7ac0e06a59712edbb2 | 806 | py | Python | immu/client.py | nredko/immu-py | 5ea18e0e9a7e749efc0bc150bce406fa220fcee6 | [
"Apache-2.0"
] | null | null | null | immu/client.py | nredko/immu-py | 5ea18e0e9a7e749efc0bc150bce406fa220fcee6 | [
"Apache-2.0"
] | null | null | null | immu/client.py | nredko/immu-py | 5ea18e0e9a7e749efc0bc150bce406fa220fcee6 | [
"Apache-2.0"
] | null | null | null | import grpc
from immu.schema import schema_pb2
from immu.service import schema_pb2_grpc
from immu.rootService import RootService
from immu.handler import safeGet, safeSet
class ImmuClient:
def __init__(self, immudUrl):
self.__channel = grpc.insecure_channel(immudUrl)
self.__stub = schema_pb2_grpc.I... | 27.793103 | 69 | 0.694789 | 98 | 806 | 5.367347 | 0.306122 | 0.085551 | 0.045627 | 0.076046 | 0.095057 | 0.095057 | 0 | 0 | 0 | 0 | 0 | 0.007962 | 0.220844 | 806 | 28 | 70 | 28.785714 | 0.829618 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.238095 | false | 0 | 0.238095 | 0.142857 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
2c59ea539f8b05e34328654329bf72d29a969c3a | 23,149 | py | Python | protos/kubespawner_pb2_grpc.py | ilyde-platform/ilyde-jobs | 3b272dfe45c498f8e5cbc34a3b2be7d564885d8d | [
"Apache-2.0"
] | null | null | null | protos/kubespawner_pb2_grpc.py | ilyde-platform/ilyde-jobs | 3b272dfe45c498f8e5cbc34a3b2be7d564885d8d | [
"Apache-2.0"
] | null | null | null | protos/kubespawner_pb2_grpc.py | ilyde-platform/ilyde-jobs | 3b272dfe45c498f8e5cbc34a3b2be7d564885d8d | [
"Apache-2.0"
] | null | null | null | #
# Copyright (c) 2020-2021 Hopenly srl.
#
# This file is part of Ilyde.
#
# 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... | 43.269159 | 122 | 0.652642 | 1,934 | 23,149 | 7.558945 | 0.088935 | 0.079486 | 0.053355 | 0.053355 | 0.788631 | 0.73938 | 0.737397 | 0.694165 | 0.673918 | 0.673918 | 0 | 0.005955 | 0.274612 | 23,149 | 534 | 123 | 43.350187 | 0.864638 | 0.068729 | 0 | 0.69746 | 0 | 0 | 0.106161 | 0.069652 | 0 | 0 | 0 | 0 | 0 | 1 | 0.069284 | false | 0 | 0.006928 | 0.032333 | 0.115473 | 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 |
2c65074f89bc6ae1c7977063a5cafa4632b03537 | 5,058 | py | Python | src/clitasks/quote.py | srmnitc/cli-tasks | 3c32932cd60115c2e9a08ab61a81e295f6b33b70 | [
"MIT"
] | null | null | null | src/clitasks/quote.py | srmnitc/cli-tasks | 3c32932cd60115c2e9a08ab61a81e295f6b33b70 | [
"MIT"
] | null | null | null | src/clitasks/quote.py | srmnitc/cli-tasks | 3c32932cd60115c2e9a08ab61a81e295f6b33b70 | [
"MIT"
] | null | null | null | quotes = [
"Start by doing what’s necessary; then do what’s possible; and suddenly you are doing the impossible. – Francis Of Assisi",
"Start with good people, lay out the rules, communicate with your employees, motivate them and reward them. If you do all those things effectively, you can’t miss. – Lee Iacocca... | 117.627907 | 332 | 0.737841 | 892 | 5,058 | 4.229821 | 0.477578 | 0.005301 | 0.007951 | 0.008481 | 0.007951 | 0 | 0 | 0 | 0 | 0 | 0 | 0.000745 | 0.204033 | 5,058 | 42 | 333 | 120.428571 | 0.92623 | 0 | 0 | 0 | 0 | 0.595238 | 0.934164 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.02381 | 0.047619 | 0 | 0.047619 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
2c843e2cb6b3aeadb3d2fb37214190df6929301e | 187 | py | Python | va_explorer/va_data_management/forms.py | ajbarnes/va_explorer | 35800395e36a662be2d6d0c4a4d665cdf76d51aa | [
"Apache-2.0"
] | null | null | null | va_explorer/va_data_management/forms.py | ajbarnes/va_explorer | 35800395e36a662be2d6d0c4a4d665cdf76d51aa | [
"Apache-2.0"
] | null | null | null | va_explorer/va_data_management/forms.py | ajbarnes/va_explorer | 35800395e36a662be2d6d0c4a4d665cdf76d51aa | [
"Apache-2.0"
] | null | null | null | from django import forms
from .models import VerbalAutopsy
class VerbalAutopsyForm(forms.ModelForm):
class Meta:
model = VerbalAutopsy
exclude = ('id', 'location')
| 18.7 | 41 | 0.695187 | 19 | 187 | 6.842105 | 0.736842 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.224599 | 187 | 9 | 42 | 20.777778 | 0.896552 | 0 | 0 | 0 | 0 | 0 | 0.053476 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
2c898ab4533e956456a9b84cef992bc7d3f93b67 | 1,143 | py | Python | tests/test_args.py | lramosduarte/link-me | f038fb21307342391c6aa1ef64523953796018ad | [
"MIT"
] | null | null | null | tests/test_args.py | lramosduarte/link-me | f038fb21307342391c6aa1ef64523953796018ad | [
"MIT"
] | null | null | null | tests/test_args.py | lramosduarte/link-me | f038fb21307342391c6aa1ef64523953796018ad | [
"MIT"
] | null | null | null | from unittest import TestCase
from linkme.args import InitiatorArgs
class InitiatorArgsTestCase(TestCase):
def test_make_instance_class_with_success(self):
initiator = InitiatorArgs()
self.assertIsInstance(initiator, InitiatorArgs)
def test_init_args_with_success(self):
initiator = ... | 32.657143 | 71 | 0.706037 | 122 | 1,143 | 6.311475 | 0.311475 | 0.2 | 0.202597 | 0.214286 | 0.436364 | 0.216883 | 0.216883 | 0.150649 | 0 | 0 | 0 | 0.001093 | 0.199475 | 1,143 | 34 | 72 | 33.617647 | 0.840437 | 0 | 0 | 0.24 | 0 | 0 | 0.052493 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.24 | false | 0 | 0.08 | 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 |
2ca95aaed9c49a14bb3b1e6f623e999b60f692ad | 197 | py | Python | chapter10-tuple/immutable.py | MyLanPangzi/py4e | af5cd5fa63956ff237f880a1f9dd0bfdd6b28930 | [
"Apache-2.0"
] | null | null | null | chapter10-tuple/immutable.py | MyLanPangzi/py4e | af5cd5fa63956ff237f880a1f9dd0bfdd6b28930 | [
"Apache-2.0"
] | null | null | null | chapter10-tuple/immutable.py | MyLanPangzi/py4e | af5cd5fa63956ff237f880a1f9dd0bfdd6b28930 | [
"Apache-2.0"
] | null | null | null | t = 1, 2, 3, 4
print(t)
t = ('a', 'b', 'c')
print(t)
print(type(t))
print(type(('2')))
print(type(('2',)))
print(tuple())
t = (1, 2, 3, 4, 5)
print(t[0])
print(t[1:3])
# t[0] = 'A'
print(t + (6,))
| 14.071429 | 19 | 0.467005 | 43 | 197 | 2.139535 | 0.325581 | 0.326087 | 0.065217 | 0.086957 | 0.108696 | 0 | 0 | 0 | 0 | 0 | 0 | 0.097561 | 0.167513 | 197 | 13 | 20 | 15.153846 | 0.463415 | 0.050761 | 0 | 0.166667 | 0 | 0 | 0.027027 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.75 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
e2bd94ab79166ac0c7a15a62b725929cfd03784f | 82 | py | Python | functsql/itersql/__init__.py | bpeterso2000/functsql | a02058a2354fc28344ead21c526a34b2ce72bd17 | [
"Apache-2.0"
] | null | null | null | functsql/itersql/__init__.py | bpeterso2000/functsql | a02058a2354fc28344ead21c526a34b2ce72bd17 | [
"Apache-2.0"
] | null | null | null | functsql/itersql/__init__.py | bpeterso2000/functsql | a02058a2354fc28344ead21c526a34b2ce72bd17 | [
"Apache-2.0"
] | null | null | null | """
Leverages itertoolz library, uses indices instead of keys
"""
NotImplemented
| 13.666667 | 57 | 0.768293 | 9 | 82 | 7 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.146341 | 82 | 5 | 58 | 16.4 | 0.9 | 0.695122 | 0 | 0 | 0 | 0 | 0 | 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 |
e2d13d437399a1183716f2fd83a0259dc0408b4d | 84 | py | Python | 3a_python_package/test.py | thanakijwanavit/pip_package_practice | cd0fb7d39557e5179797fbed16f4ffe4e6de7ab7 | [
"Apache-2.0"
] | null | null | null | 3a_python_package/test.py | thanakijwanavit/pip_package_practice | cd0fb7d39557e5179797fbed16f4ffe4e6de7ab7 | [
"Apache-2.0"
] | null | null | null | 3a_python_package/test.py | thanakijwanavit/pip_package_practice | cd0fb7d39557e5179797fbed16f4ffe4e6de7ab7 | [
"Apache-2.0"
] | null | null | null | from distribution import Gaussian
dist=Gaussian(4,5)
print(dist.calculate_mean())
| 14 | 33 | 0.797619 | 12 | 84 | 5.5 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026316 | 0.095238 | 84 | 5 | 34 | 16.8 | 0.842105 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 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 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 3 |
e2d8fe2c25323ba76312bb8c0a42e5c7daf21d30 | 88 | py | Python | animal.py | naethdog/spirit-animal-test | 527dc27c9d2d4604b45ed0ef265caf53595474d7 | [
"BSD-3-Clause"
] | null | null | null | animal.py | naethdog/spirit-animal-test | 527dc27c9d2d4604b45ed0ef265caf53595474d7 | [
"BSD-3-Clause"
] | null | null | null | animal.py | naethdog/spirit-animal-test | 527dc27c9d2d4604b45ed0ef265caf53595474d7 | [
"BSD-3-Clause"
] | null | null | null | command = raw_input("white rice or brown rice?")
print("your command was: " + command)
| 29.333333 | 48 | 0.704545 | 13 | 88 | 4.692308 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.159091 | 88 | 2 | 49 | 44 | 0.824324 | 0 | 0 | 0 | 0 | 0 | 0.5 | 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 |
e2d9842f80f0f475a7315e737bf5ff819db04634 | 218 | py | Python | py_tdlib/constructors/edit_inline_message_media.py | Mr-TelegramBot/python-tdlib | 2e2d21a742ebcd439971a32357f2d0abd0ce61eb | [
"MIT"
] | 24 | 2018-10-05T13:04:30.000Z | 2020-05-12T08:45:34.000Z | py_tdlib/constructors/edit_inline_message_media.py | MrMahdi313/python-tdlib | 2e2d21a742ebcd439971a32357f2d0abd0ce61eb | [
"MIT"
] | 3 | 2019-06-26T07:20:20.000Z | 2021-05-24T13:06:56.000Z | py_tdlib/constructors/edit_inline_message_media.py | MrMahdi313/python-tdlib | 2e2d21a742ebcd439971a32357f2d0abd0ce61eb | [
"MIT"
] | 5 | 2018-10-05T14:29:28.000Z | 2020-08-11T15:04:10.000Z | from ..factory import Method
class editInlineMessageMedia(Method):
inline_message_id = None # type: "string"
reply_markup = None # type: "ReplyMarkup"
input_message_content = None # type: "InputMessageContent"
| 27.25 | 60 | 0.761468 | 24 | 218 | 6.708333 | 0.75 | 0.149068 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.146789 | 218 | 7 | 61 | 31.142857 | 0.865591 | 0.284404 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 3 |
e2dd8f1661f0e576ad7d160966ccb1bec0eaa102 | 533 | py | Python | Desafios/Desafio 9.py | blopah/python3-curso-em-video-gustavo-guanabara-exercicios | d86c613ea8bb335c4dd888a34bda456055e4d82e | [
"MIT"
] | 2 | 2021-02-06T04:35:44.000Z | 2021-02-08T02:37:33.000Z | Desafios/Desafio 9.py | blopah/python3-curso-em-video-gustavo-guanabara-exercicios | d86c613ea8bb335c4dd888a34bda456055e4d82e | [
"MIT"
] | null | null | null | Desafios/Desafio 9.py | blopah/python3-curso-em-video-gustavo-guanabara-exercicios | d86c613ea8bb335c4dd888a34bda456055e4d82e | [
"MIT"
] | null | null | null | print('Digite um número para ver a taboada dele!')
n = float(input(''))
n1 = n*1
n2 = n*2
n3 = n*3
n4 = n*4
n5 = n*5
n6 = n*6
n7 = n*7
n8 = n*8
n9 = n*9
n10 = n*10
print('Tabuada do "{}" :'.format(n))
print('{}*1 = {}'.format(n, n1))
print('{}*2 = {}'.format(n, n2))
print('{}*3 = {}'.format(n, n3))
print('{}*4 = {}'.fo... | 22.208333 | 50 | 0.49531 | 97 | 533 | 2.721649 | 0.360825 | 0.291667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.098214 | 0.159475 | 533 | 23 | 51 | 23.173913 | 0.491071 | 0 | 0 | 0 | 0 | 0 | 0.27955 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.521739 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
3908062a65724f71f78ab02b2f8e5fe047874bdf | 55,785 | py | Python | src/api/views.py | gregory-chekler/api | 11ecbea945e7eb6fa677a0c0bb32bda51ba15f28 | [
"MIT"
] | null | null | null | src/api/views.py | gregory-chekler/api | 11ecbea945e7eb6fa677a0c0bb32bda51ba15f28 | [
"MIT"
] | null | null | null | src/api/views.py | gregory-chekler/api | 11ecbea945e7eb6fa677a0c0bb32bda51ba15f28 | [
"MIT"
] | null | null | null | from django.shortcuts import render
from django.http import JsonResponse
from database.utils.json_response_wrapper import Json
from django.views.decorators.csrf import csrf_exempt
from django.views.decorators.http import require_GET, require_POST
from database.utils.create_factory import CreateFactory
from database.uti... | 30.888704 | 107 | 0.696155 | 7,127 | 55,785 | 5.345307 | 0.042655 | 0.087936 | 0.077908 | 0.072449 | 0.775042 | 0.76806 | 0.737243 | 0.69506 | 0.645685 | 0.577252 | 0 | 0.000483 | 0.183759 | 55,785 | 1,806 | 108 | 30.888704 | 0.836166 | 0.084395 | 0 | 0.702645 | 0 | 0 | 0.063457 | 0.002709 | 0 | 0 | 0 | 0.000554 | 0 | 1 | 0.073624 | false | 0 | 0.008578 | 0 | 0.320229 | 0.002144 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
394de2216f6171f99bfb40923835470ef257449b | 532 | py | Python | synet/translation/atom.py | nsg-ethz/synet | 8d5c424ef4395cf6003b7a1846c03a16fd6bdc20 | [
"Apache-2.0"
] | 13 | 2017-10-26T19:58:55.000Z | 2021-12-26T08:04:15.000Z | synet/translation/atom.py | nsg-ethz/synet | 8d5c424ef4395cf6003b7a1846c03a16fd6bdc20 | [
"Apache-2.0"
] | 2 | 2019-05-29T14:57:40.000Z | 2019-06-11T16:06:23.000Z | synet/translation/atom.py | nsg-ethz/synet | 8d5c424ef4395cf6003b7a1846c03a16fd6bdc20 | [
"Apache-2.0"
] | 10 | 2017-11-23T15:44:22.000Z | 2021-05-19T06:50:14.000Z | class Atom:
def __init__(self, parsed_tokens):
self.name = parsed_tokens[0]
self.terms = [term for term in parsed_tokens[1]]
def __str__(self):
return self.name + '(' + ', '.join([str(term) for term in self.terms]) + ')'
def get_terms(self):
return self.terms
def get_vars(self):
... | 28 | 80 | 0.667293 | 81 | 532 | 4.148148 | 0.320988 | 0.133929 | 0.130952 | 0.154762 | 0.303571 | 0.303571 | 0.238095 | 0.238095 | 0.238095 | 0.238095 | 0 | 0.004796 | 0.216165 | 532 | 19 | 81 | 28 | 0.800959 | 0 | 0 | 0 | 0 | 0 | 0.007505 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.428571 | false | 0 | 0 | 0.357143 | 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 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
1a318b10a44b28feaf6e224496a54b0059410c81 | 3,385 | py | Python | dataent/core/doctype/docshare/test_docshare.py | dataent/dataent | c41bd5942ffe5513f4d921c4c0595c84bbc422b4 | [
"MIT"
] | null | null | null | dataent/core/doctype/docshare/test_docshare.py | dataent/dataent | c41bd5942ffe5513f4d921c4c0595c84bbc422b4 | [
"MIT"
] | 6 | 2020-03-24T17:15:56.000Z | 2022-02-10T18:41:31.000Z | dataent/core/doctype/docshare/test_docshare.py | dataent/dataent | c41bd5942ffe5513f4d921c4c0595c84bbc422b4 | [
"MIT"
] | null | null | null | # Copyright (c) 2015, Dataent Technologies Pvt. Ltd. and Contributors
# See license.txt
from __future__ import unicode_literals
import dataent
import dataent.share
import unittest
class TestDocShare(unittest.TestCase):
def setUp(self):
self.user = "test@example.com"
self.event = dataent.get_doc({"doctype": "Even... | 36.010638 | 100 | 0.748597 | 497 | 3,385 | 4.981891 | 0.142857 | 0.116317 | 0.110258 | 0.139338 | 0.756866 | 0.751212 | 0.718901 | 0.692246 | 0.679725 | 0.654685 | 0 | 0.010475 | 0.097489 | 3,385 | 93 | 101 | 36.397849 | 0.8 | 0.037814 | 0 | 0.5 | 0 | 0 | 0.115042 | 0 | 0 | 0 | 0 | 0 | 0.296875 | 1 | 0.140625 | false | 0 | 0.0625 | 0 | 0.21875 | 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 |
1a3631d8960d1b8e8d9e16ff1d87613f0eb7bdde | 119 | py | Python | test.py | thewassermann/CS51FinalProjectWeather | fd6077727c1875a2f0f7f6eca9633e8cb7b2f3cf | [
"CC-BY-3.0"
] | 1 | 2015-06-29T17:33:02.000Z | 2015-06-29T17:33:02.000Z | test.py | thewassermann/CS51FinalProjectWeather | fd6077727c1875a2f0f7f6eca9633e8cb7b2f3cf | [
"CC-BY-3.0"
] | null | null | null | test.py | thewassermann/CS51FinalProjectWeather | fd6077727c1875a2f0f7f6eca9633e8cb7b2f3cf | [
"CC-BY-3.0"
] | null | null | null | from main_algorithm import MainAlgorithm
m = MainAlgorithm()
from api import Matrices
a = Matrices()
a.produce("PD")
| 14.875 | 40 | 0.764706 | 16 | 119 | 5.625 | 0.6875 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.142857 | 119 | 7 | 41 | 17 | 0.882353 | 0 | 0 | 0 | 0 | 0 | 0.016807 | 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 |
1a39542b481588bc8fe3f8accd1d1048f8d05a05 | 1,400 | py | Python | passwordgenerator.py | Rup-Royofficial/Password-generator | 57488a3c2867e2adc6135ce6f586a3a9e721083c | [
"MIT"
] | null | null | null | passwordgenerator.py | Rup-Royofficial/Password-generator | 57488a3c2867e2adc6135ce6f586a3a9e721083c | [
"MIT"
] | null | null | null | passwordgenerator.py | Rup-Royofficial/Password-generator | 57488a3c2867e2adc6135ce6f586a3a9e721083c | [
"MIT"
] | null | null | null | import random
def shuffle(string):
temporarylist = list(string)
random.shuffle(temporarylist)
return ''.join(temporarylist)
uppercaseLetter1=chr(random.randint(65,90))
lowercaseLetter1=chr(random.randint(ord('a'), ord('z')))
uppercaseLetter2=chr(random.randint(65,90))
lowercaseLetter2=chr(ran... | 43.75 | 319 | 0.764286 | 177 | 1,400 | 5.988701 | 0.231638 | 0.233019 | 0.211321 | 0.118868 | 0.369811 | 0.158491 | 0.158491 | 0 | 0 | 0 | 0 | 0.058597 | 0.073571 | 1,400 | 32 | 320 | 43.75 | 0.758674 | 0 | 0 | 0 | 0 | 0 | 0.010219 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.037037 | false | 0.111111 | 0.037037 | 0 | 0.111111 | 0.037037 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 3 |
1a47612fff963c47003528f78b019a54b61518e9 | 126 | py | Python | scrapyu/settings.py | lin-zone/scrapyu | abcb8eed2ea02121b74017e007c57c0d3762342d | [
"MIT"
] | 1 | 2021-01-05T09:11:42.000Z | 2021-01-05T09:11:42.000Z | scrapyu/settings.py | lin-zone/scrapyu | abcb8eed2ea02121b74017e007c57c0d3762342d | [
"MIT"
] | null | null | null | scrapyu/settings.py | lin-zone/scrapyu | abcb8eed2ea02121b74017e007c57c0d3762342d | [
"MIT"
] | null | null | null | import os
SCRAPYU_PATH = os.path.realpath(os.path.dirname(__file__))
TEMPLATES_DIR = os.path.join(SCRAPYU_PATH, 'templates') | 25.2 | 58 | 0.785714 | 19 | 126 | 4.842105 | 0.526316 | 0.195652 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.079365 | 126 | 5 | 59 | 25.2 | 0.793103 | 0 | 0 | 0 | 0 | 0 | 0.070866 | 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 |
1a7289d2323c815c3e35132f76228d9819f4a9bc | 319 | py | Python | exercise08.py | GabrieliRamos/python-exercises | 5099f441abd483d2a639690ad75c157603e40046 | [
"MIT"
] | null | null | null | exercise08.py | GabrieliRamos/python-exercises | 5099f441abd483d2a639690ad75c157603e40046 | [
"MIT"
] | null | null | null | exercise08.py | GabrieliRamos/python-exercises | 5099f441abd483d2a639690ad75c157603e40046 | [
"MIT"
] | null | null | null | # construa um analisador das 5 principais combinações de mãos do poker.
# Para isso utilize como base as classes descritas em:
# https://penseallen.github.io/PensePython2e/18-heranca.html
# considere como regra o poker fechado, em que a mão do jogador, já tem a combinação de 5 cartas :)
# essa é impossível mesmo kkkk | 53.166667 | 99 | 0.777429 | 52 | 319 | 4.769231 | 0.865385 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018657 | 0.159875 | 319 | 6 | 100 | 53.166667 | 0.906716 | 0.965517 | 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 |
1aaf7de65cd6095cb4e314158277565b24bca9fc | 846 | py | Python | Chapter 11/code/SecretDoorbell.py | professor-li/book-dow-iot-projects | 5b2b16459298a6503b87c17ac550e635299aa945 | [
"MIT"
] | 17 | 2018-05-26T13:00:57.000Z | 2021-11-11T09:07:18.000Z | Chapter 11/code/SecretDoorbell.py | professor-li/book-dow-iot-projects | 5b2b16459298a6503b87c17ac550e635299aa945 | [
"MIT"
] | null | null | null | Chapter 11/code/SecretDoorbell.py | professor-li/book-dow-iot-projects | 5b2b16459298a6503b87c17ac550e635299aa945 | [
"MIT"
] | 16 | 2018-05-14T09:04:41.000Z | 2021-11-11T09:07:22.000Z | from bluedot import BlueDot
from signal import pause
from DoorbellAlarmAdvanced import DoorbellAlarmAdvanced
class SecretDoorbell:
def swiped(swipe):
if swipe.up:
doorbell_alarm = DoorbellAlarmAdvanced(5, 0.5)
doorbell_alarm.play_sequence()
elif swipe.down:... | 24.171429 | 58 | 0.617021 | 81 | 846 | 6.160494 | 0.382716 | 0.208417 | 0.272545 | 0.200401 | 0.264529 | 0.264529 | 0.140281 | 0 | 0 | 0 | 0 | 0.017271 | 0.315603 | 846 | 35 | 59 | 24.171429 | 0.84456 | 0 | 0 | 0.181818 | 0 | 0 | 0.009445 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.045455 | false | 0 | 0.136364 | 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 |
1ac574557a1c03bfa091bae964e9bb45df36041f | 444 | py | Python | evolution/genes/__init__.py | vfcosta/coegan-trained | 44174e68909d9c03bf2e4b7e4c7a48237a560183 | [
"MIT"
] | null | null | null | evolution/genes/__init__.py | vfcosta/coegan-trained | 44174e68909d9c03bf2e4b7e4c7a48237a560183 | [
"MIT"
] | null | null | null | evolution/genes/__init__.py | vfcosta/coegan-trained | 44174e68909d9c03bf2e4b7e4c7a48237a560183 | [
"MIT"
] | 1 | 2021-06-11T16:52:55.000Z | 2021-06-11T16:52:55.000Z | from .layer import Layer
from .linear import Linear
from .conv2d import Conv2d
from .layer2d import Layer2D
from .dropout import Dropout
from .dropout2d import Dropout2d
from .optimizer import Optimizer
from .deconv2d import Deconv2d
from .deconv2d_upsample import Deconv2dUpsample
from .self_attention import SelfAttent... | 31.714286 | 53 | 0.853604 | 55 | 444 | 6.836364 | 0.327273 | 0.06383 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02551 | 0.117117 | 444 | 13 | 54 | 34.153846 | 0.933673 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
46dfd731da9b7f5e014e3708f38d6a54c65bdbaa | 297 | py | Python | backend/app/resources/SearchStudiesEndpoint.py | sartography/star-drive | c0f33378d42913c3e677e07f74eb46d7b2b82a0a | [
"MIT"
] | null | null | null | backend/app/resources/SearchStudiesEndpoint.py | sartography/star-drive | c0f33378d42913c3e677e07f74eb46d7b2b82a0a | [
"MIT"
] | 368 | 2018-12-18T14:43:20.000Z | 2022-03-02T02:54:18.000Z | backend/app/resources/SearchStudiesEndpoint.py | sartography/star-drive | c0f33378d42913c3e677e07f74eb46d7b2b82a0a | [
"MIT"
] | 2 | 2019-10-02T03:06:06.000Z | 2020-10-05T16:53:48.000Z | from app.resources.SearchEndpoint import SearchEndpoint
from app.resources.Auth import login_optional
from app.model.study import Study
class SearchStudiesEndpoint(SearchEndpoint):
@login_optional
def post(self):
return self.__post__([
Study.__tablename__
])
| 24.75 | 55 | 0.737374 | 32 | 297 | 6.53125 | 0.53125 | 0.100478 | 0.15311 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.198653 | 297 | 11 | 56 | 27 | 0.878151 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.333333 | 0.111111 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 3 |
46e63004b3ad045d94b4c6b3c6e8df6e497c1af1 | 568 | py | Python | testproj/todo/models.py | NguyenDuyToan/drf-yasg | 20786e53c3949d14c00d70d112f4452ec850ba5f | [
"BSD-3-Clause"
] | 1 | 2020-11-23T02:11:00.000Z | 2020-11-23T02:11:00.000Z | testproj/todo/models.py | NguyenDuyToan/drf-yasg | 20786e53c3949d14c00d70d112f4452ec850ba5f | [
"BSD-3-Clause"
] | null | null | null | testproj/todo/models.py | NguyenDuyToan/drf-yasg | 20786e53c3949d14c00d70d112f4452ec850ba5f | [
"BSD-3-Clause"
] | 1 | 2020-11-23T02:11:01.000Z | 2020-11-23T02:11:01.000Z | from django.db import models
class Todo(models.Model):
title = models.CharField(max_length=50)
class TodoAnother(models.Model):
todo = models.ForeignKey(Todo, on_delete=models.CASCADE)
title = models.CharField(max_length=50)
class TodoYetAnother(models.Model):
todo = models.ForeignKey(TodoAnother,... | 27.047619 | 100 | 0.753521 | 74 | 568 | 5.675676 | 0.364865 | 0.104762 | 0.190476 | 0.219048 | 0.578571 | 0.430952 | 0.357143 | 0.271429 | 0.271429 | 0.271429 | 0 | 0.016194 | 0.130282 | 568 | 20 | 101 | 28.4 | 0.834008 | 0 | 0 | 0.333333 | 0 | 0 | 0.021127 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 1 | 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 |
46e789d3a419d4ce8cc41d666c3a83ccc87d9b4e | 1,065 | py | Python | exercise/list/3-6_more-guests.py | ADWright18/python_project | 3f3dbbb60e89cd5ea5dfad560f796a763df0bbd8 | [
"BSD-3-Clause"
] | null | null | null | exercise/list/3-6_more-guests.py | ADWright18/python_project | 3f3dbbb60e89cd5ea5dfad560f796a763df0bbd8 | [
"BSD-3-Clause"
] | null | null | null | exercise/list/3-6_more-guests.py | ADWright18/python_project | 3f3dbbb60e89cd5ea5dfad560f796a763df0bbd8 | [
"BSD-3-Clause"
] | null | null | null | # Author: Adomous Wright
# Date: 12/25/17
# Make a guest list and print a message to each persons
guests = ['Dave','Ryan','Patrick','Bob']
print("Dear " + guests[0] + " you have been invited to the dinner party.")
print("Dear " + guests[1] + " you have been invited to the dinner party.")
print("Dear " + guests[2] + ... | 39.444444 | 74 | 0.683568 | 171 | 1,065 | 4.25731 | 0.315789 | 0.068681 | 0.18544 | 0.222527 | 0.620879 | 0.620879 | 0.620879 | 0.620879 | 0.574176 | 0.574176 | 0 | 0.019429 | 0.178404 | 1,065 | 26 | 75 | 40.961538 | 0.812571 | 0.204695 | 0 | 0.428571 | 0 | 0 | 0.585714 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.714286 | 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 |
46e903838b92334bf7bf318578cbaae74455e7ab | 762 | py | Python | sitreps_server/schemas/data.py | digitronik/sitreps-server | f42e2c4125edeaec81f225c2582ae58c8bbb9ac2 | [
"MIT"
] | null | null | null | sitreps_server/schemas/data.py | digitronik/sitreps-server | f42e2c4125edeaec81f225c2582ae58c8bbb9ac2 | [
"MIT"
] | null | null | null | sitreps_server/schemas/data.py | digitronik/sitreps-server | f42e2c4125edeaec81f225c2582ae58c8bbb9ac2 | [
"MIT"
] | null | null | null | from typing import List
from typing import Optional
from pydantic import BaseModel
from .cloc import CLOCCreate
from .cove_coverage import CodeCoverageCreate
from .integration_test import IntegrationTestCreate
from .jira import JiraCreate
from .project import ProjectCreate
from .project_group import ProjectGroupCreat... | 30.48 | 59 | 0.817585 | 78 | 762 | 7.935897 | 0.384615 | 0.096931 | 0.051696 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.128609 | 762 | 24 | 60 | 31.75 | 0.932229 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.55 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
203f6a8ea3c0de06b9641fe596ee0620319c2d7d | 9,628 | py | Python | suites/test_bulk_operations.py | redhataccess/cheesecake-ui-tests | a630a455ced296a84a62d2db430d918b31b0ac63 | [
"MIT"
] | 3 | 2020-02-19T19:45:12.000Z | 2021-09-07T07:32:04.000Z | suites/test_bulk_operations.py | redhataccess/cheesecake-ui-tests | a630a455ced296a84a62d2db430d918b31b0ac63 | [
"MIT"
] | 26 | 2019-11-12T11:50:19.000Z | 2021-08-02T06:09:20.000Z | suites/test_bulk_operations.py | redhataccess/cheesecake-ui-tests | a630a455ced296a84a62d2db430d918b31b0ac63 | [
"MIT"
] | 1 | 2019-12-05T19:14:31.000Z | 2019-12-05T19:14:31.000Z | import sys
import lemoncheesecake.api as lcc
from lemoncheesecake.matching import *
from helpers import utilities
from helpers import constants
from helpers import locators
from helpers.base_screenshot import Screenshot
from polling2 import poll
from pages import search_beta_page
from fixtures import fixture
from selen... | 60.936709 | 124 | 0.718633 | 1,222 | 9,628 | 5.384615 | 0.135025 | 0.080547 | 0.072948 | 0.072188 | 0.750912 | 0.750912 | 0.719909 | 0.691641 | 0.671125 | 0.649392 | 0 | 0.008067 | 0.188824 | 9,628 | 158 | 125 | 60.936709 | 0.834443 | 0.050478 | 0 | 0.58156 | 0 | 0 | 0.111476 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028369 | false | 0 | 0.085106 | 0 | 0.12766 | 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 |
204fc3ba49d8a5047495dc78fc47dab33b99d5d0 | 130 | py | Python | space_game/Winner.py | Iwomichu/probable-giggle | 2af5ed83a60d65ec9d509c217cb5fcb880d5dbcc | [
"MIT"
] | 1 | 2020-11-30T11:21:21.000Z | 2020-11-30T11:21:21.000Z | space_game/Winner.py | Iwomichu/probable-giggle | 2af5ed83a60d65ec9d509c217cb5fcb880d5dbcc | [
"MIT"
] | 5 | 2020-11-03T16:46:49.000Z | 2021-01-24T14:29:24.000Z | space_game/Winner.py | Iwomichu/probable-giggle | 2af5ed83a60d65ec9d509c217cb5fcb880d5dbcc | [
"MIT"
] | null | null | null | from enum import Enum, auto
class Winner(Enum):
PLAYER1 = auto()
PLAYER2 = auto()
NOBODY = auto()
DRAW = auto()
| 14.444444 | 27 | 0.592308 | 16 | 130 | 4.8125 | 0.625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021505 | 0.284615 | 130 | 8 | 28 | 16.25 | 0.806452 | 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 |
64630ea9f4568a2aa57fc4fb589459ced59b0f0a | 278 | py | Python | points/serializers.py | rmishra7/cms | 06898eabe708254eedfa410694f86396fcf69f53 | [
"MIT"
] | null | null | null | points/serializers.py | rmishra7/cms | 06898eabe708254eedfa410694f86396fcf69f53 | [
"MIT"
] | null | null | null | points/serializers.py | rmishra7/cms | 06898eabe708254eedfa410694f86396fcf69f53 | [
"MIT"
] | null | null | null |
from rest_framework import serializers
from .models import PointTable
from teams.serializers import TeamsSerializer
class PointTableSerializer(serializers.ModelSerializer):
team = TeamsSerializer()
class Meta:
model = PointTable
fields = '__all__'
| 18.533333 | 56 | 0.751799 | 26 | 278 | 7.846154 | 0.653846 | 0.196078 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.197842 | 278 | 14 | 57 | 19.857143 | 0.914798 | 0 | 0 | 0 | 0 | 0 | 0.025271 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.375 | 0 | 0.75 | 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 |
6463c8c786080cba2d9376f0dda672bda88f51ac | 388 | py | Python | endpoint/serializers.py | erisenlee/dj_test | 2bb399f6dea684896851ff55bf4f0130b53959cf | [
"MIT"
] | null | null | null | endpoint/serializers.py | erisenlee/dj_test | 2bb399f6dea684896851ff55bf4f0130b53959cf | [
"MIT"
] | null | null | null | endpoint/serializers.py | erisenlee/dj_test | 2bb399f6dea684896851ff55bf4f0130b53959cf | [
"MIT"
] | null | null | null | from .models import BaseUrl, EndPoint
from rest_framework import serializers
class HostSerializer(serializers.HyperlinkedModelSerializer):
class Meta:
model = BaseUrl
fields = ('host', 'created')
class EndPointSerializer(serializers.HyperlinkedModelSerializer):
class Meta:
model = End... | 29.846154 | 65 | 0.726804 | 34 | 388 | 8.264706 | 0.558824 | 0.263345 | 0.298932 | 0.327402 | 0.362989 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.180412 | 388 | 13 | 66 | 29.846154 | 0.883648 | 0 | 0 | 0.2 | 0 | 0 | 0.115681 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.6 | 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 |
64685a2f589c2cfa64850643b221842ab27f92a0 | 831 | py | Python | scripts/emotion_module/preprocessing.py | EnricaIMS/LostInBackTranslation | d6921e408197c60de6d4247f412ca1ae86f19b58 | [
"MIT"
] | 1 | 2021-04-23T08:54:24.000Z | 2021-04-23T08:54:24.000Z | scripts/emotion_module/preprocessing.py | EnricaIMS/LostInBackTranslation | d6921e408197c60de6d4247f412ca1ae86f19b58 | [
"MIT"
] | null | null | null | scripts/emotion_module/preprocessing.py | EnricaIMS/LostInBackTranslation | d6921e408197c60de6d4247f412ca1ae86f19b58 | [
"MIT"
] | null | null | null | import spacy
from abc import ABC, abstractmethod
import json
class Dataset(ABC):
""" Base class for handling emotion datasets """
@abstractmethod
def make_iterator(self):
""" This method should return an iterator over all instances in the dataset """
pass
@abstractmethod
def spl... | 24.441176 | 97 | 0.670277 | 105 | 831 | 5.171429 | 0.52381 | 0.095764 | 0.051565 | 0.073665 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.251504 | 831 | 33 | 98 | 25.181818 | 0.87299 | 0.275572 | 0 | 0.210526 | 0 | 0 | 0.02439 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.263158 | false | 0.105263 | 0.157895 | 0.052632 | 0.631579 | 0.052632 | 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 |
b37d1506f4d8f401e5f11d695d41db69d74536a3 | 356 | py | Python | Desafios/Mundo 1/ex013a.py | ZaikoXander/Python | 7e7243edb02dd33991c5f63f02c983ad060fc3ca | [
"Unlicense"
] | null | null | null | Desafios/Mundo 1/ex013a.py | ZaikoXander/Python | 7e7243edb02dd33991c5f63f02c983ad060fc3ca | [
"Unlicense"
] | null | null | null | Desafios/Mundo 1/ex013a.py | ZaikoXander/Python | 7e7243edb02dd33991c5f63f02c983ad060fc3ca | [
"Unlicense"
] | null | null | null | from time import sleep
sal = float(input('\033[1;95;40mQual é o salário do funcionário? \033[93mR$'))
print('\033[97mAPLICANDO AUMENTO...\033[49m\n')
sleep(3)
print('\033[94;40mUm funcionário ganhava um salário de \033[93mR${:.2f}\033[94m e agora com \033[31m15%\033[94m de '
'aumento recebe \033[93mR${:.2f}\033[9... | 50.857143 | 116 | 0.688202 | 63 | 356 | 3.888889 | 0.603175 | 0.085714 | 0.073469 | 0.097959 | 0.122449 | 0 | 0 | 0 | 0 | 0 | 0 | 0.225397 | 0.115169 | 356 | 6 | 117 | 59.333333 | 0.552381 | 0 | 0 | 0 | 0 | 0.166667 | 0.696629 | 0.154494 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.166667 | 0 | 0.166667 | 0.333333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 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 |
b381827f6fddbaabdc44881f19e465b88db913f6 | 329 | py | Python | pySCS/models/stub/debugmodel.py | davevs/pySCS | b025f37be7b89ac1668725a8db8465c351b63bfc | [
"MIT"
] | 1 | 2019-05-27T07:18:50.000Z | 2019-05-27T07:18:50.000Z | pySCS/models/stub/debugmodel.py | davevs/pySCS | b025f37be7b89ac1668725a8db8465c351b63bfc | [
"MIT"
] | 1 | 2019-06-04T10:07:00.000Z | 2019-07-04T17:14:52.000Z | pySCS/models/stub/debugmodel.py | xebia/pySCS | b025f37be7b89ac1668725a8db8465c351b63bfc | [
"MIT"
] | null | null | null | # Control frameworks to use
Controls = {}
# add controllists
import_control_list('test_sample.csv')
import_control_list('test_sample2.csv')
# import_control_list('default.csv')
# import_control_list('gdpr.csv')
scs = SCS("my first model")
scs.description = "sample to show pySCS"
User_Web = Boundary("User/Web")
scs.... | 21.933333 | 40 | 0.756839 | 47 | 329 | 5.06383 | 0.553191 | 0.218487 | 0.285714 | 0.252101 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003401 | 0.106383 | 329 | 15 | 41 | 21.933333 | 0.806122 | 0.331307 | 0 | 0 | 0 | 0 | 0.337963 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 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 |
b38c3506ff3d5ea60c77205a19972bd314998326 | 59 | py | Python | src/maptiler/cloud_cli/__init__.py | maptiler/maptiler-cloud-cli | 649caafbe9a717be40a133cf12ffbfaed8bb7089 | [
"MIT"
] | null | null | null | src/maptiler/cloud_cli/__init__.py | maptiler/maptiler-cloud-cli | 649caafbe9a717be40a133cf12ffbfaed8bb7089 | [
"MIT"
] | null | null | null | src/maptiler/cloud_cli/__init__.py | maptiler/maptiler-cloud-cli | 649caafbe9a717be40a133cf12ffbfaed8bb7089 | [
"MIT"
] | null | null | null | from maptiler.cloud_cli.base import cli
__all__ = ["cli"]
| 14.75 | 39 | 0.745763 | 9 | 59 | 4.333333 | 0.777778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.135593 | 59 | 3 | 40 | 19.666667 | 0.764706 | 0 | 0 | 0 | 0 | 0 | 0.050847 | 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 |
b3a2df1c1b0ef9dcc513cbf79e7fa115b3e3a0f9 | 118 | py | Python | 1 to N - Mixed Pattern Printing.py | sundar369/coding | d5e99623f055a39604351752d494c1c8817d6d91 | [
"MIT"
] | null | null | null | 1 to N - Mixed Pattern Printing.py | sundar369/coding | d5e99623f055a39604351752d494c1c8817d6d91 | [
"MIT"
] | null | null | null | 1 to N - Mixed Pattern Printing.py | sundar369/coding | d5e99623f055a39604351752d494c1c8817d6d91 | [
"MIT"
] | null | null | null | n = int(input())
diff = n//2
for i in range(diff):
print(i+1,end=" ")
print(n-i,end=" ")
if n%2==1: print(diff+1) | 14.75 | 24 | 0.550847 | 26 | 118 | 2.5 | 0.5 | 0.061538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.051546 | 0.177966 | 118 | 8 | 24 | 14.75 | 0.618557 | 0 | 0 | 0 | 0 | 0 | 0.016807 | 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 |
b3e5cbfa621a96b130d396a12e6ce982c31d0c05 | 231 | py | Python | tensor.py | Darkhunter9/python | 8caa3d0aa4b06e5e48871ff085fc740b0ea2d7aa | [
"MIT"
] | null | null | null | tensor.py | Darkhunter9/python | 8caa3d0aa4b06e5e48871ff085fc740b0ea2d7aa | [
"MIT"
] | null | null | null | tensor.py | Darkhunter9/python | 8caa3d0aa4b06e5e48871ff085fc740b0ea2d7aa | [
"MIT"
] | 1 | 2022-01-08T00:20:15.000Z | 2022-01-08T00:20:15.000Z | from numpy import *
from math import *
a1 = mat([1,0,1])
a2 = mat([[1.807,0,0],[0,1.094,0],[0,0,2.082]])
a3 = mat([[-1],[0],[1]])
print(transpose(a1))
print(transpose(a3)*(a2*a3))
print(acos(0.275/3.889)/pi*180)
print('completed')
| 23.1 | 47 | 0.606061 | 48 | 231 | 2.916667 | 0.479167 | 0.057143 | 0.071429 | 0.085714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 0.090909 | 231 | 9 | 48 | 25.666667 | 0.466667 | 0 | 0 | 0 | 0 | 0 | 0.038961 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.222222 | 0 | 0.222222 | 0.444444 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 3 |
b600804669bc0f1ec5facd1bfd72d2172c8772ee | 123 | py | Python | scylla/__init__.py | peng4217/scylla | aa5133d7c6d565c95651fc75b26ad605da0982cd | [
"Apache-2.0"
] | 3,556 | 2018-04-28T22:59:40.000Z | 2022-03-28T22:20:07.000Z | scylla/__init__.py | peng4217/scylla | aa5133d7c6d565c95651fc75b26ad605da0982cd | [
"Apache-2.0"
] | 120 | 2018-05-20T11:49:00.000Z | 2022-03-07T00:08:55.000Z | scylla/__init__.py | peng4217/scylla | aa5133d7c6d565c95651fc75b26ad605da0982cd | [
"Apache-2.0"
] | 518 | 2018-05-27T01:42:25.000Z | 2022-03-25T12:38:32.000Z | from scylla import cli
from ._version import __version__
__author__ = 'WildCat'
__copyright__ = 'Copyright 2018, WildCat'
| 20.5 | 41 | 0.796748 | 14 | 123 | 6.071429 | 0.642857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037736 | 0.138211 | 123 | 5 | 42 | 24.6 | 0.764151 | 0 | 0 | 0 | 0 | 0 | 0.243902 | 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 |
b610ee08b385b15e333f610e9118b16b6aaab40d | 400 | py | Python | monopyly/squares/__init__.py | YSabarad/monopyly | 0460f2452c83846b6b9e3b234be411e12a86d69c | [
"MIT"
] | 4 | 2015-11-04T21:18:40.000Z | 2020-12-26T21:15:23.000Z | monopyly/squares/__init__.py | YSabarad/monopyly | 0460f2452c83846b6b9e3b234be411e12a86d69c | [
"MIT"
] | 2 | 2021-08-09T18:19:58.000Z | 2021-08-10T14:44:54.000Z | monopyly/squares/__init__.py | YSabarad/monopyly | 0460f2452c83846b6b9e3b234be411e12a86d69c | [
"MIT"
] | 6 | 2015-08-01T17:54:17.000Z | 2022-02-28T00:00:21.000Z | from .square import Square
from .go import Go
from .property import Property
from .street import Street
from .community_chest import CommunityChest
from .tax import Tax
from .station import Station
from .chance import Chance
from .jail import Jail
from .utility import Utility
from .free_parking import FreeParking
from ... | 26.666667 | 45 | 0.835 | 58 | 400 | 5.655172 | 0.362069 | 0.073171 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1325 | 400 | 14 | 46 | 28.571429 | 0.945245 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 3 |
b610fd352625b963efaa137203a9d6f58484998f | 4,599 | py | Python | antistasi_logbook/gui/views/delegates/universal_delegates.py | Giddius/Antistasi_Logbook | b2b520db1a54df484984876c7dfdb724703fed77 | [
"MIT"
] | 2 | 2022-01-12T22:45:56.000Z | 2022-03-10T14:23:36.000Z | antistasi_logbook/gui/views/delegates/universal_delegates.py | Giddius/Antistasi_Logbook | b2b520db1a54df484984876c7dfdb724703fed77 | [
"MIT"
] | null | null | null | antistasi_logbook/gui/views/delegates/universal_delegates.py | Giddius/Antistasi_Logbook | b2b520db1a54df484984876c7dfdb724703fed77 | [
"MIT"
] | null | null | null | """
WiP.
Soon.
"""
# region [Imports]
# * Standard Library Imports ---------------------------------------------------------------------------->
from typing import TYPE_CHECKING
from pathlib import Path
# * Qt Imports --------------------------------------------------------------------------------------->
from PySi... | 34.320896 | 158 | 0.630572 | 481 | 4,599 | 5.817048 | 0.255717 | 0.03574 | 0.045032 | 0.05361 | 0.7198 | 0.7198 | 0.696212 | 0.696212 | 0.666905 | 0.666905 | 0 | 0.011522 | 0.188519 | 4,599 | 133 | 159 | 34.578947 | 0.73821 | 0.183953 | 0 | 0.75641 | 0 | 0 | 0.002151 | 0 | 0 | 0 | 0 | 0.007519 | 0 | 1 | 0.102564 | false | 0.025641 | 0.115385 | 0 | 0.269231 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 3 |
374902b0fa29763066f680be9830533c4baaca06 | 192 | py | Python | qcm/SwapIVBoxNum.py | golfit/work-archive | bdd37d46fda3fde15ec2164d3335d6b4ed576bd7 | [
"MIT"
] | null | null | null | qcm/SwapIVBoxNum.py | golfit/work-archive | bdd37d46fda3fde15ec2164d3335d6b4ed576bd7 | [
"MIT"
] | null | null | null | qcm/SwapIVBoxNum.py | golfit/work-archive | bdd37d46fda3fde15ec2164d3335d6b4ed576bd7 | [
"MIT"
] | null | null | null | #SwapIVBoxNum.py
#This script corrects an error in the tree expressions wherein the tree held that Box #1 was the SPARE box, and Box #3 the SRC box, when it was actually the other way around.
| 64 | 174 | 0.776042 | 36 | 192 | 4.138889 | 0.75 | 0.09396 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012739 | 0.182292 | 192 | 2 | 175 | 96 | 0.936306 | 0.96875 | 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 |
376cc8ec46faf14b7d73a969fdedc1b06c5d57c2 | 363 | py | Python | src/game/assemblages/player_assemblage.py | xproj2501x/ecs-python | 7947a9e8551c0f379ac59f57e0268b4054aaafae | [
"MIT"
] | null | null | null | src/game/assemblages/player_assemblage.py | xproj2501x/ecs-python | 7947a9e8551c0f379ac59f57e0268b4054aaafae | [
"MIT"
] | null | null | null | src/game/assemblages/player_assemblage.py | xproj2501x/ecs-python | 7947a9e8551c0f379ac59f57e0268b4054aaafae | [
"MIT"
] | null | null | null | from src.engine.assemblage import Assemblage
class PlayerAssemblage(Assemblage):
@property
def position(self):
return self._get_component('POSITION')
def __init__(self, entity):
Assemblage.__init__(self, entity)
def _get_component(self, component_type):
return s... | 24.2 | 58 | 0.69697 | 39 | 363 | 6.076923 | 0.435897 | 0.151899 | 0.118143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.220386 | 363 | 14 | 59 | 25.928571 | 0.837456 | 0 | 0 | 0 | 0 | 0 | 0.022923 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.111111 | 0.222222 | 0.777778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 3 |
376ce18777b5978018f1818028ade486ec9bd9a8 | 754 | py | Python | hiku/export/simple.py | popravich/hiku | 4ce6b46302de61fc17016ddf3af3f378b3fce119 | [
"BSD-3-Clause"
] | null | null | null | hiku/export/simple.py | popravich/hiku | 4ce6b46302de61fc17016ddf3af3f378b3fce119 | [
"BSD-3-Clause"
] | null | null | null | hiku/export/simple.py | popravich/hiku | 4ce6b46302de61fc17016ddf3af3f378b3fce119 | [
"BSD-3-Clause"
] | 1 | 2022-01-20T17:03:23.000Z | 2022-01-20T17:03:23.000Z | from ..edn import Keyword, Dict, Tuple, List
from ..query import QueryVisitor
class Exporter(QueryVisitor):
def visit_field(self, obj):
f = Keyword(obj.name)
if obj.options is not None:
f = Tuple([f, Dict((Keyword(k), v)
for k, v in obj.options.items())]... | 27.925926 | 69 | 0.55305 | 103 | 754 | 4.019417 | 0.330097 | 0.096618 | 0.067633 | 0.077295 | 0.36715 | 0.36715 | 0.36715 | 0.36715 | 0.36715 | 0.198068 | 0 | 0 | 0.320955 | 754 | 26 | 70 | 29 | 0.808594 | 0 | 0 | 0.210526 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.210526 | false | 0 | 0.105263 | 0.105263 | 0.578947 | 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 |
37761c05c5abed45f475089b87a1fd11020f847a | 44,257 | py | Python | webservices/common/models.py | dwillis/openFEC | dae84b0e526eac4a917e80697a7999956f9c96cb | [
"CC0-1.0"
] | 2 | 2020-04-09T15:29:43.000Z | 2021-01-13T12:08:22.000Z | webservices/common/models.py | dwillis/openFEC | dae84b0e526eac4a917e80697a7999956f9c96cb | [
"CC0-1.0"
] | null | null | null | webservices/common/models.py | dwillis/openFEC | dae84b0e526eac4a917e80697a7999956f9c96cb | [
"CC0-1.0"
] | null | null | null | from sqlalchemy.dialects.postgresql import ARRAY, TSVECTOR
from sqlalchemy.ext.declarative import declared_attr
from sqlalchemy.ext.hybrid import hybrid_property
from flask.ext.sqlalchemy import SQLAlchemy
from webservices import utils
from webservices import decoders
db = SQLAlchemy()
class BaseModel(db.Model):
... | 43.602956 | 102 | 0.748288 | 6,006 | 44,257 | 5.187313 | 0.066767 | 0.162799 | 0.163377 | 0.168063 | 0.772653 | 0.723158 | 0.631231 | 0.509902 | 0.361258 | 0.276745 | 0 | 0.006384 | 0.147028 | 44,257 | 1,014 | 103 | 43.645957 | 0.818914 | 0.012925 | 0 | 0.306604 | 0 | 0 | 0.085089 | 0.042247 | 0 | 0 | 0 | 0 | 0 | 1 | 0.014151 | false | 0 | 0.007075 | 0.009434 | 0.915094 | 0 | 0 | 0 | 0 | null | 0 | 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 | 1 | 0 | 0 | 3 |
378a696f130295a3ea0a01bb15917d41e46da45c | 13,854 | py | Python | vcmp/player.py | ysc3839/vcmp-python-test | 3ccd7788cb97dc302b0a4d3d7ba833196585afde | [
"MIT"
] | 1 | 2022-01-13T18:40:11.000Z | 2022-01-13T18:40:11.000Z | vcmp/player.py | ysc3839/vcmp-python-test | 3ccd7788cb97dc302b0a4d3d7ba833196585afde | [
"MIT"
] | null | null | null | vcmp/player.py | ysc3839/vcmp-python-test | 3ccd7788cb97dc302b0a4d3d7ba833196585afde | [
"MIT"
] | null | null | null | # pylint: disable=missing-docstring, line-too-long
from typing import Tuple, Union
from math import nan
from _vcmp import functions as func
from .enum import PlayerOption
Vector = Tuple[float, float, float]
class Player:
def __init__(self, player_id):
self._id = player_id
# Read-write properties
... | 25.750929 | 104 | 0.668904 | 1,855 | 13,854 | 4.725606 | 0.102426 | 0.074606 | 0.083048 | 0.108373 | 0.488364 | 0.276751 | 0.227812 | 0.148985 | 0.132558 | 0.044718 | 0 | 0.000565 | 0.232857 | 13,854 | 537 | 105 | 25.798883 | 0.824238 | 0.038978 | 0 | 0.178478 | 0 | 0 | 0.009178 | 0 | 0 | 0 | 0 | 0.001862 | 0 | 1 | 0.341207 | false | 0.005249 | 0.010499 | 0.183727 | 0.543307 | 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 |
37b502ba3c14eac710fd02d5f99d3c1e011aca48 | 223 | py | Python | 12-databases/sqlalchmey_pandas.py | johnehunt/PythonDataScienceIntro | 73dc6938c65c6b64486d3e6c6f968fa99976d90a | [
"Apache-2.0"
] | 1 | 2021-09-20T11:22:53.000Z | 2021-09-20T11:22:53.000Z | 12-databases/sqlalchmey_pandas.py | johnehunt/PythonDataScienceIntro | 73dc6938c65c6b64486d3e6c6f968fa99976d90a | [
"Apache-2.0"
] | null | null | null | 12-databases/sqlalchmey_pandas.py | johnehunt/PythonDataScienceIntro | 73dc6938c65c6b64486d3e6c6f968fa99976d90a | [
"Apache-2.0"
] | null | null | null | import pandas as pd
import sqlalchemy as sqla
db = sqla.create_engine('mysql://user:password@localhost/database')
# Convert database data into DataFrame
df = pd.read_sql('SELECT * FROM readings',db)
print(df.to_string())
| 24.777778 | 67 | 0.766816 | 34 | 223 | 4.941176 | 0.794118 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.116592 | 223 | 8 | 68 | 27.875 | 0.852792 | 0.161435 | 0 | 0 | 0 | 0 | 0.335135 | 0.216216 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.2 | 0.4 | 0 | 0.4 | 0.2 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 3 |
807fac500d08a94b22c338ccf22b13eddb5516e4 | 1,151 | py | Python | server/resources/authenticate.py | simon-dube/CARMIN-server | 1481d2c4231458d33119c57ab2e3e480375da63b | [
"MIT"
] | 1 | 2018-03-12T23:08:12.000Z | 2018-03-12T23:08:12.000Z | server/resources/authenticate.py | simon-dube/CARMIN-server | 1481d2c4231458d33119c57ab2e3e480375da63b | [
"MIT"
] | 15 | 2018-03-15T04:23:31.000Z | 2018-06-28T21:46:15.000Z | server/resources/authenticate.py | simon-dube/CARMIN-server | 1481d2c4231458d33119c57ab2e3e480375da63b | [
"MIT"
] | null | null | null | from werkzeug.security import check_password_hash
from flask_restful import Resource
from server.database import db
from server.common.error_codes_and_messages import INVALID_USERNAME_OR_PASSWORD
from server.database.models.user import User
from .models.authentication import Authentication, AuthenticationSchema
from .m... | 38.366667 | 79 | 0.75934 | 134 | 1,151 | 6.298507 | 0.425373 | 0.035545 | 0.035545 | 0.059242 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1755 | 1,151 | 29 | 80 | 39.689655 | 0.889357 | 0 | 0 | 0 | 0 | 0 | 0.005213 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0.166667 | 0.375 | 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 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 3 |
80808dc0ca60911d3471519ec01c5be59fafa481 | 84 | py | Python | .history/my_classes/FunctionParameters/KeywordArgs_20210630183355.py | minefarmer/deep-Dive-1 | b0675b853180c5b5781888266ea63a3793b8d855 | [
"Unlicense"
] | null | null | null | .history/my_classes/FunctionParameters/KeywordArgs_20210630183355.py | minefarmer/deep-Dive-1 | b0675b853180c5b5781888266ea63a3793b8d855 | [
"Unlicense"
] | null | null | null | .history/my_classes/FunctionParameters/KeywordArgs_20210630183355.py | minefarmer/deep-Dive-1 | b0675b853180c5b5781888266ea63a3793b8d855 | [
"Unlicense"
] | null | null | null | ''' [Keyword Arguments]
Positional parameters can, optionally be passed
''' | 21 | 47 | 0.678571 | 8 | 84 | 7.125 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.214286 | 84 | 4 | 48 | 21 | 0.863636 | 0.797619 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.