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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4c1d5fb32d1e1d2d5d1c66764d0df4922e0a8130 | 344 | py | Python | atest/testresources/testlibs/newstyleclasses3.py | phil-davis/robotframework | 4d4ce686cbe01e293bb86ea6ff34330e8c45fc43 | [
"ECL-2.0",
"Apache-2.0"
] | 9 | 2020-04-22T08:30:52.000Z | 2020-12-07T08:25:09.000Z | atest/testresources/testlibs/newstyleclasses3.py | phil-davis/robotframework | 4d4ce686cbe01e293bb86ea6ff34330e8c45fc43 | [
"ECL-2.0",
"Apache-2.0"
] | 63 | 2020-03-04T17:31:39.000Z | 2022-03-01T09:12:16.000Z | atest/testresources/testlibs/newstyleclasses3.py | phil-davis/robotframework | 4d4ce686cbe01e293bb86ea6ff34330e8c45fc43 | [
"ECL-2.0",
"Apache-2.0"
] | 4 | 2016-02-29T15:42:22.000Z | 2018-05-08T08:58:18.000Z | class MyMetaClass(type):
def __new__(cls, name, bases, ns):
ns['kw_created_by_metaclass'] = lambda self, arg: arg.upper()
return type.__new__(cls, name, bases, ns)
def method_in_metaclass(cls):
pass
class MetaClassLibrary(metaclass=MyMetaClass):
def greet(self, name):
re... | 22.933333 | 69 | 0.648256 | 44 | 344 | 4.772727 | 0.568182 | 0.057143 | 0.095238 | 0.142857 | 0.161905 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.232558 | 344 | 14 | 70 | 24.571429 | 0.795455 | 0 | 0 | 0 | 0 | 0 | 0.093023 | 0.06686 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0.111111 | 0 | 0.111111 | 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 | 1 | 0 | 1 | 1 | 0 | 0 | 4 |
4c2a15016afe9bd39d99602e6c454f436e1ff40b | 192 | py | Python | Problems/snake_case/task.py | gabrielizalo/jetbrains-academy-python-coffee-machine | e22cb502f7998855ef4afbc4ef7ecb8226418225 | [
"MIT"
] | null | null | null | Problems/snake_case/task.py | gabrielizalo/jetbrains-academy-python-coffee-machine | e22cb502f7998855ef4afbc4ef7ecb8226418225 | [
"MIT"
] | null | null | null | Problems/snake_case/task.py | gabrielizalo/jetbrains-academy-python-coffee-machine | e22cb502f7998855ef4afbc4ef7ecb8226418225 | [
"MIT"
] | null | null | null | lower_camel_case = input()
snake_case = ""
for char in lower_camel_case:
if char.isupper():
snake_case += "_" + char.lower()
else:
snake_case += char
print(snake_case)
| 21.333333 | 40 | 0.635417 | 26 | 192 | 4.346154 | 0.461538 | 0.318584 | 0.247788 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.239583 | 192 | 8 | 41 | 24 | 0.773973 | 0 | 0 | 0 | 0 | 0 | 0.005208 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.125 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
4c2f53a6e8450c6a3ef4e67313cdc6a15824822e | 363 | py | Python | api/permissions.py | plaunezkiy/conomy | 4769508c0ffb4b1e2e14e09a69c3199d1296e485 | [
"MIT"
] | null | null | null | api/permissions.py | plaunezkiy/conomy | 4769508c0ffb4b1e2e14e09a69c3199d1296e485 | [
"MIT"
] | null | null | null | api/permissions.py | plaunezkiy/conomy | 4769508c0ffb4b1e2e14e09a69c3199d1296e485 | [
"MIT"
] | null | null | null | from rest_framework.permissions import BasePermission, IsAuthenticated
class IsOwner(BasePermission):
def has_object_permission(self, request, view, obj):
return obj.owner == request.user
class IsParty(BasePermission):
def has_object_permission(self, request, view, obj):
return request.user ... | 30.25 | 70 | 0.757576 | 44 | 363 | 6.136364 | 0.545455 | 0.125926 | 0.148148 | 0.192593 | 0.444444 | 0.444444 | 0.444444 | 0.444444 | 0.444444 | 0.444444 | 0 | 0 | 0.15427 | 363 | 11 | 71 | 33 | 0.879479 | 0 | 0 | 0.285714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.142857 | 0.285714 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
4c4e9d45d841b6949ac28eaf2f10c32ff4b396a1 | 373 | py | Python | Utility/LandmarkRecognitionMeta.py | logisticAKB/course-paper1 | 8455d5148e0871912791516126819b0d0b51c7c1 | [
"MIT"
] | 1 | 2021-03-13T17:05:02.000Z | 2021-03-13T17:05:02.000Z | Utility/LandmarkRecognitionMeta.py | logisticAKB/LandmarkRecognition | 8455d5148e0871912791516126819b0d0b51c7c1 | [
"MIT"
] | null | null | null | Utility/LandmarkRecognitionMeta.py | logisticAKB/LandmarkRecognition | 8455d5148e0871912791516126819b0d0b51c7c1 | [
"MIT"
] | null | null | null | """
Модуль реализации метакласса, необходимого для работы представления.
QObject - метакласс общий для оконных компонентов Qt.
ABCMeta - метакласс для реализации абстрактных суперклассов.
LandmarkRecognitionMeta - метакласс для представления.
"""
from PyQt5.QtCore import QObject
from abc import ABCMeta
class Landm... | 23.3125 | 68 | 0.809651 | 39 | 373 | 7.74359 | 0.641026 | 0.07947 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003096 | 0.134048 | 373 | 15 | 69 | 24.866667 | 0.931889 | 0.643432 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.25 | 0.5 | 0 | 0.75 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 4 |
4c56e58af53d92cedd1963c5d5edfa90ad2522de | 1,273 | py | Python | tests/100_compiler/001_write.py | sveetch/boussole | 26727a12449f66efa13e33469ef1fb587f6606f5 | [
"MIT"
] | 13 | 2016-05-19T15:18:41.000Z | 2022-03-22T15:37:32.000Z | tests/100_compiler/001_write.py | sveetch/boussole | 26727a12449f66efa13e33469ef1fb587f6606f5 | [
"MIT"
] | 38 | 2016-04-07T00:30:58.000Z | 2022-02-28T13:29:33.000Z | tests/100_compiler/001_write.py | sveetch/boussole | 26727a12449f66efa13e33469ef1fb587f6606f5 | [
"MIT"
] | 3 | 2016-05-20T09:21:57.000Z | 2020-10-12T10:56:49.000Z | # -*- coding: utf-8 -*-
import io
def test_001(compiler, temp_builds_dir):
"""
Just creating file with latin content
"""
filepath = temp_builds_dir.join("compiler_write_001")
content = """Some sample latin text"""
compiler.write_content(content, filepath.strpath)
# Read file to compare
... | 23.574074 | 63 | 0.657502 | 166 | 1,273 | 4.909639 | 0.277108 | 0.07362 | 0.095706 | 0.077301 | 0.813497 | 0.782822 | 0.70184 | 0.70184 | 0.591411 | 0.591411 | 0 | 0.019095 | 0.218382 | 1,273 | 53 | 64 | 24.018868 | 0.8 | 0.149254 | 0 | 0.636364 | 0 | 0 | 0.162476 | 0 | 0 | 0 | 0 | 0 | 0.136364 | 1 | 0.136364 | false | 0 | 0.045455 | 0 | 0.181818 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 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 | 4 |
4c6f44fbecd6005460783a3589fbbab2af23dc11 | 65 | py | Python | run-local.py | DextrousInc/board-me-server | 07015f307254dab821171d55f56a5c14f1700cfd | [
"MIT"
] | null | null | null | run-local.py | DextrousInc/board-me-server | 07015f307254dab821171d55f56a5c14f1700cfd | [
"MIT"
] | null | null | null | run-local.py | DextrousInc/board-me-server | 07015f307254dab821171d55f56a5c14f1700cfd | [
"MIT"
] | null | null | null | from boardme import app, db
app.debug = True
app.run(port=8090)
| 13 | 27 | 0.738462 | 12 | 65 | 4 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.072727 | 0.153846 | 65 | 4 | 28 | 16.25 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
4c70791c0665dbd7c45c15e49ebc6d314acc3c6e | 5,369 | py | Python | pyramboia/tasks/forms.py | bicofino/Pyramboia | 1c291b8fdc71f057a99e7ffbfaa8ba4e713346fd | [
"MIT"
] | 1 | 2016-03-09T13:40:06.000Z | 2016-03-09T13:40:06.000Z | pyramboia/tasks/forms.py | bicofino/Pyramboia | 1c291b8fdc71f057a99e7ffbfaa8ba4e713346fd | [
"MIT"
] | null | null | null | pyramboia/tasks/forms.py | bicofino/Pyramboia | 1c291b8fdc71f057a99e7ffbfaa8ba4e713346fd | [
"MIT"
] | 1 | 2018-03-24T18:03:09.000Z | 2018-03-24T18:03:09.000Z | from django import forms
from crispy_forms.helper import FormHelper
from crispy_forms.layout import *
from crispy_forms.bootstrap import *
from .models import Task, Project, Argument, Target, Header
class ProjectForm(forms.ModelForm):
def __init__(self, *args, **kwargs):
super(ProjectForm, se... | 40.674242 | 68 | 0.486497 | 511 | 5,369 | 4.921722 | 0.129159 | 0.135189 | 0.108549 | 0.11332 | 0.792445 | 0.728827 | 0.719284 | 0.719284 | 0.639761 | 0.639761 | 0 | 0.003014 | 0.382008 | 5,369 | 131 | 69 | 40.984733 | 0.754973 | 0.036506 | 0 | 0.560748 | 0 | 0 | 0.130393 | 0.004643 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046729 | false | 0 | 0.046729 | 0 | 0.186916 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 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 | 4 |
4c7a9d083d36061c8e0f35d3b9695e335d5ee88a | 364 | py | Python | ecommerce/shop_management/managers.py | mhdirajabi/django-drf-e-commerce | 526044a728f9f073a21386ff7f67ac570f4755c6 | [
"MIT"
] | null | null | null | ecommerce/shop_management/managers.py | mhdirajabi/django-drf-e-commerce | 526044a728f9f073a21386ff7f67ac570f4755c6 | [
"MIT"
] | null | null | null | ecommerce/shop_management/managers.py | mhdirajabi/django-drf-e-commerce | 526044a728f9f073a21386ff7f67ac570f4755c6 | [
"MIT"
] | null | null | null | from django.db.models import Manager
class ShopManager(Manager):
def get_queryset(self):
return super(ShopManager, self).get_queryset().all().exclude(status="deleted")
class ConfirmedShopManager(Manager):
def get_queryset(self):
return (
super(ConfirmedShopManager, self).get_quer... | 26 | 87 | 0.695055 | 39 | 364 | 6.384615 | 0.538462 | 0.176707 | 0.104418 | 0.168675 | 0.289157 | 0.289157 | 0.289157 | 0 | 0 | 0 | 0 | 0 | 0.186813 | 364 | 13 | 88 | 28 | 0.841216 | 0 | 0 | 0.222222 | 0 | 0 | 0.043956 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | false | 0 | 0.111111 | 0.222222 | 0.777778 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
9108d53d5b33dc8ccbae3169a981f917d78407ce | 113 | py | Python | handlers/test_handler.py | stdex/sailplay_python_case | fa3c04099a2148bdeef6857e25f8480aafb3f9ff | [
"MIT"
] | null | null | null | handlers/test_handler.py | stdex/sailplay_python_case | fa3c04099a2148bdeef6857e25f8480aafb3f9ff | [
"MIT"
] | null | null | null | handlers/test_handler.py | stdex/sailplay_python_case | fa3c04099a2148bdeef6857e25f8480aafb3f9ff | [
"MIT"
] | null | null | null | from handlers import BaseHandler
class TestHandler(BaseHandler):
def test_echo(test):
return (test)
| 18.833333 | 32 | 0.725664 | 13 | 113 | 6.230769 | 0.769231 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.20354 | 113 | 5 | 33 | 22.6 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0.25 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 4 |
910d148e642368ac967eb20527c4b2d6a09fe7e5 | 38 | py | Python | ABC_A/ABC068_A.py | ryosuke0825/atcoder_python | 185cdbe7db44ecca1aaf357858d16d31ce515ddb | [
"MIT"
] | null | null | null | ABC_A/ABC068_A.py | ryosuke0825/atcoder_python | 185cdbe7db44ecca1aaf357858d16d31ce515ddb | [
"MIT"
] | null | null | null | ABC_A/ABC068_A.py | ryosuke0825/atcoder_python | 185cdbe7db44ecca1aaf357858d16d31ce515ddb | [
"MIT"
] | null | null | null | n = input()
print("ABC" + n.zfill(3))
| 12.666667 | 25 | 0.552632 | 7 | 38 | 3 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03125 | 0.157895 | 38 | 2 | 26 | 19 | 0.625 | 0 | 0 | 0 | 0 | 0 | 0.078947 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 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 | 1 | 0 | 4 |
911127e1164dd47156f273c9a8f862805fc6a462 | 656 | py | Python | fdk_client/platform/models/AppSupportedCurrency.py | kavish-d/fdk-client-python | a1023eb530473322cb52e095fc4ceb226c1e6037 | [
"MIT"
] | null | null | null | fdk_client/platform/models/AppSupportedCurrency.py | kavish-d/fdk-client-python | a1023eb530473322cb52e095fc4ceb226c1e6037 | [
"MIT"
] | null | null | null | fdk_client/platform/models/AppSupportedCurrency.py | kavish-d/fdk-client-python | a1023eb530473322cb52e095fc4ceb226c1e6037 | [
"MIT"
] | null | null | null | """Platform Models."""
from marshmallow import fields, Schema
from marshmallow.validate import OneOf
from ..enums import *
from ..models.BaseSchema import BaseSchema
from .DefaultCurrency import DefaultCurrency
class AppSupportedCurrency(BaseSchema):
# Configuration swagger.json
_id = fields... | 17.263158 | 80 | 0.719512 | 69 | 656 | 6.768116 | 0.434783 | 0.194861 | 0.182013 | 0.235546 | 0.102784 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.193598 | 656 | 37 | 81 | 17.72973 | 0.882798 | 0.067073 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.416667 | 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 | 1 | 0 | 1 | 0 | 0 | 4 |
9119c51f9a907e70797271e9088ff06fa1a30f23 | 78 | py | Python | openBMC/__init__.py | kevinkellyspacey/openBMC-rpi | 468f3ec39a29e7d89e0601ba6d51279cd4617b93 | [
"MIT"
] | null | null | null | openBMC/__init__.py | kevinkellyspacey/openBMC-rpi | 468f3ec39a29e7d89e0601ba6d51279cd4617b93 | [
"MIT"
] | null | null | null | openBMC/__init__.py | kevinkellyspacey/openBMC-rpi | 468f3ec39a29e7d89e0601ba6d51279cd4617b93 | [
"MIT"
] | null | null | null | '''The openBMC toolset is used for RPI module to do thermal control as BMC'''
| 39 | 77 | 0.74359 | 14 | 78 | 4.142857 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.179487 | 78 | 1 | 78 | 78 | 0.90625 | 0.910256 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
912ea9f70558fe27bae3c8dd08e2cdbdd842376c | 48,674 | py | Python | managesf/tests/test_resources_engine.py | softwarefactory-project/managesf | 7018d041291f50b90e782ca31d0cfc67abd10170 | [
"Apache-2.0"
] | 1 | 2018-08-02T23:30:03.000Z | 2018-08-02T23:30:03.000Z | managesf/tests/test_resources_engine.py | softwarefactory-project/managesf | 7018d041291f50b90e782ca31d0cfc67abd10170 | [
"Apache-2.0"
] | 1 | 2021-12-13T18:24:10.000Z | 2021-12-13T20:10:39.000Z | managesf/tests/test_resources_engine.py | softwarefactory-project/managesf | 7018d041291f50b90e782ca31d0cfc67abd10170 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
#
# Copyright (c) 2016 Red Hat, 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... | 44.532479 | 79 | 0.502424 | 4,050 | 48,674 | 5.897284 | 0.084691 | 0.064771 | 0.099648 | 0.114093 | 0.79078 | 0.762016 | 0.721906 | 0.705116 | 0.693937 | 0.650812 | 0 | 0.006345 | 0.384743 | 48,674 | 1,092 | 80 | 44.57326 | 0.791198 | 0.036775 | 0 | 0.671429 | 0 | 0 | 0.259106 | 0.150583 | 0 | 0 | 0 | 0 | 0.15 | 1 | 0.023469 | false | 0 | 0.016327 | 0.00102 | 0.054082 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 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 | 4 |
9138877829798d12c8e49b6202ca50764c4b2c49 | 5,252 | py | Python | pynanopoolapi/__init__.py | concongo/pynanopoolapi | 98cc186f446089ae82802e362b8b10af8c01c4eb | [
"MIT"
] | 1 | 2020-03-07T15:53:14.000Z | 2020-03-07T15:53:14.000Z | pynanopoolapi/__init__.py | concongo/pynanopoolapi | 98cc186f446089ae82802e362b8b10af8c01c4eb | [
"MIT"
] | null | null | null | pynanopoolapi/__init__.py | concongo/pynanopoolapi | 98cc186f446089ae82802e362b8b10af8c01c4eb | [
"MIT"
] | null | null | null | import urllib
import urllib2
import json
import sys
class nanopoolapi:
__wallet = ''
__coing = ''
def __init__(self, wallet, coin):
self.__wallet = wallet
self.__coin = coin
def getbalance(self):
#Returns the current Balance
endpoint = 'https://api.nanopool.org/v1/' + sel... | 42.699187 | 123 | 0.558835 | 549 | 5,252 | 5.236794 | 0.162113 | 0.037565 | 0.050087 | 0.07513 | 0.733565 | 0.729391 | 0.719652 | 0.719652 | 0.693913 | 0.633391 | 0 | 0.018992 | 0.27818 | 5,252 | 122 | 124 | 43.04918 | 0.739383 | 0.041889 | 0 | 0.524272 | 0 | 0 | 0.187425 | 0.004576 | 0 | 0 | 0 | 0 | 0 | 1 | 0.106796 | false | 0 | 0.038835 | 0 | 0.271845 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 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 | 4 |
e66b130b913d1f0a847fe9e23bd062e2860526d4 | 145 | py | Python | py2030/collections/changes.py | markkorput/2030-controller | e6f11599e62b1ba5c20ecb20e452b2a8d88e8e9f | [
"MIT"
] | null | null | null | py2030/collections/changes.py | markkorput/2030-controller | e6f11599e62b1ba5c20ecb20e452b2a8d88e8e9f | [
"MIT"
] | null | null | null | py2030/collections/changes.py | markkorput/2030-controller | e6f11599e62b1ba5c20ecb20e452b2a8d88e8e9f | [
"MIT"
] | null | null | null | from py2030.collections.collection import Collection
from py2030.collections.change import Change
class Changes(Collection):
model = Change
| 24.166667 | 52 | 0.82069 | 17 | 145 | 7 | 0.529412 | 0.168067 | 0.352941 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.062992 | 0.124138 | 145 | 5 | 53 | 29 | 0.874016 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
e66e21c5147e84e922236b36fa279238a1756bd2 | 1,498 | py | Python | challenges/bringing-a-gun-to-a-trainer-fight/solution.py | cowboysmall-scratch/foobar-coding-challenge | b4a3a703a44bc3e61184629ff6082e40be2e1704 | [
"MIT"
] | null | null | null | challenges/bringing-a-gun-to-a-trainer-fight/solution.py | cowboysmall-scratch/foobar-coding-challenge | b4a3a703a44bc3e61184629ff6082e40be2e1704 | [
"MIT"
] | null | null | null | challenges/bringing-a-gun-to-a-trainer-fight/solution.py | cowboysmall-scratch/foobar-coding-challenge | b4a3a703a44bc3e61184629ff6082e40be2e1704 | [
"MIT"
] | null | null | null | import sys
import solution_01
def main(argv):
print("")
print("Solution 1: ")
print(" input: [3, 2], [1, 1], [2, 1], 4")
print(" expected: 7")
print(" actual: {}".format(solution_01.solution([3, 2], [1, 1], [2, 1], 4)))
print("")
print("")
print("Solution 1: ")
print(" ... | 27.740741 | 103 | 0.5 | 195 | 1,498 | 3.764103 | 0.205128 | 0.149864 | 0.147139 | 0.155313 | 0.836512 | 0.836512 | 0.510899 | 0.313352 | 0 | 0 | 0 | 0.182547 | 0.250334 | 1,498 | 53 | 104 | 28.264151 | 0.47106 | 0 | 0 | 0.439024 | 0 | 0 | 0.343792 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.02439 | false | 0 | 0.04878 | 0 | 0.073171 | 0.878049 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 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 | 4 |
e68f7655142793f76e5cc10899d5395865b56c20 | 83 | py | Python | QGen/apps.py | JavonDavis/QGen-UI | 949669a3145aa72141127afadc016e45d6c584a6 | [
"MIT"
] | 3 | 2016-04-10T05:52:47.000Z | 2017-05-24T14:46:22.000Z | QGen/apps.py | JavonDavis/QGen-UI | 949669a3145aa72141127afadc016e45d6c584a6 | [
"MIT"
] | 1 | 2016-05-15T01:10:52.000Z | 2016-05-15T01:10:52.000Z | QGen/apps.py | JavonDavis/QGen-UI | 949669a3145aa72141127afadc016e45d6c584a6 | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class QgenConfig(AppConfig):
name = 'QGen'
| 13.833333 | 33 | 0.73494 | 10 | 83 | 6.1 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.180723 | 83 | 5 | 34 | 16.6 | 0.897059 | 0 | 0 | 0 | 0 | 0 | 0.048193 | 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 | 1 | 0 | 0 | 4 |
e6b066091542671a72b6c4964dd5e164ed3c1913 | 209 | py | Python | timezone/data/util/test.py | arminfriedl/netclock | f83f0faa1f2c8f06dc04d2d6de315a7b35f1c361 | [
"MIT"
] | null | null | null | timezone/data/util/test.py | arminfriedl/netclock | f83f0faa1f2c8f06dc04d2d6de315a7b35f1c361 | [
"MIT"
] | null | null | null | timezone/data/util/test.py | arminfriedl/netclock | f83f0faa1f2c8f06dc04d2d6de315a7b35f1c361 | [
"MIT"
] | null | null | null | import preprocessor
import sys
p = preprocessor.geonames_allcountries("/home/armin/Downloads/allCountries/allCountries10000.txt")
with open("/home/armin/Desktop/test.dot", "w") as sys.stdout:
p.to_dot()
| 26.125 | 98 | 0.770335 | 28 | 209 | 5.678571 | 0.714286 | 0.113208 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026316 | 0.090909 | 209 | 7 | 99 | 29.857143 | 0.810526 | 0 | 0 | 0 | 0 | 0 | 0.406699 | 0.401914 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
e6eeaaf37148d22eac6de4aa96d6471be02457bf | 79 | py | Python | webapp-google-container-engine/pv/apps.py | Grace-luning-fu/PV_Rooftop | 1c20e8b9fff718aceec9383c6d9ee8dc3bc27f9e | [
"MIT"
] | null | null | null | webapp-google-container-engine/pv/apps.py | Grace-luning-fu/PV_Rooftop | 1c20e8b9fff718aceec9383c6d9ee8dc3bc27f9e | [
"MIT"
] | null | null | null | webapp-google-container-engine/pv/apps.py | Grace-luning-fu/PV_Rooftop | 1c20e8b9fff718aceec9383c6d9ee8dc3bc27f9e | [
"MIT"
] | null | null | null | from django.apps import AppConfig
class PvConfig(AppConfig):
name = 'pv'
| 13.166667 | 33 | 0.721519 | 10 | 79 | 5.7 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.189873 | 79 | 5 | 34 | 15.8 | 0.890625 | 0 | 0 | 0 | 0 | 0 | 0.025316 | 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 | 1 | 0 | 0 | 4 |
e6ffef5db3f47e764d2856787e0d47a8929e6506 | 190 | py | Python | 7 kyu/Alternate capitalization/Alternate capitalization.py | anthonyjatoba/codewars | 76b0d66dd1ba76a4d136b658920cdf85fd5c4b06 | [
"MIT"
] | null | null | null | 7 kyu/Alternate capitalization/Alternate capitalization.py | anthonyjatoba/codewars | 76b0d66dd1ba76a4d136b658920cdf85fd5c4b06 | [
"MIT"
] | null | null | null | 7 kyu/Alternate capitalization/Alternate capitalization.py | anthonyjatoba/codewars | 76b0d66dd1ba76a4d136b658920cdf85fd5c4b06 | [
"MIT"
] | null | null | null | def capitalize(s):
return [''.join(s[i].upper() if i % 2 == 0 else s[i].lower() for i in range(len(s))),
''.join(s[i].lower() if i % 2 == 0 else s[i].upper() for i in range(len(s)))] | 63.333333 | 89 | 0.547368 | 40 | 190 | 2.6 | 0.4 | 0.076923 | 0.115385 | 0.096154 | 0.5 | 0.5 | 0.211538 | 0 | 0 | 0 | 0 | 0.025974 | 0.189474 | 190 | 3 | 90 | 63.333333 | 0.649351 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0.333333 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
fc30a09ede22320db236e2ee1f92e8d6b4c51968 | 2,548 | py | Python | tests/fixtures/test_body_block_content_render/content_08_expected.py | elifesciences/elife-tools | ee345bf0e6703ef0f7e718355e85730abbdfd117 | [
"MIT"
] | 9 | 2015-04-16T08:13:31.000Z | 2020-05-18T14:03:06.000Z | tests/fixtures/test_body_block_content_render/content_08_expected.py | elifesciences/elife-tools | ee345bf0e6703ef0f7e718355e85730abbdfd117 | [
"MIT"
] | 310 | 2015-02-11T00:30:09.000Z | 2021-07-14T23:58:50.000Z | tests/fixtures/test_body_block_content_render/content_08_expected.py | elifesciences/elife-tools | ee345bf0e6703ef0f7e718355e85730abbdfd117 | [
"MIT"
] | 9 | 2015-02-04T01:21:28.000Z | 2021-06-15T12:50:47.000Z | from collections import OrderedDict
expected = [
OrderedDict(
[
(
"content",
[
OrderedDict([("type", "paragraph"), ("text", u"This")]),
OrderedDict(
[
("type", "mathml"),
... | 41.770492 | 86 | 0.139325 | 73 | 2,548 | 4.863014 | 0.506849 | 0.253521 | 0.202817 | 0.23662 | 0.24507 | 0 | 0 | 0 | 0 | 0 | 0 | 0.043029 | 0.771978 | 2,548 | 60 | 87 | 42.466667 | 0.567986 | 0 | 0 | 0.220339 | 0 | 0 | 0.097331 | 0.018053 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.016949 | 0 | 0.016949 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
fc3505bad611a3fde6fd00dc93c3c9199638c4d2 | 17,792 | py | Python | sympy/polys/tests/test_numberfields.py | minrk/sympy | 1cc6e3837b8ed20ba52ea97298f31aa08b43c508 | [
"BSD-3-Clause"
] | 2 | 2015-11-13T16:40:57.000Z | 2017-09-15T15:37:19.000Z | openrave/sympy/polys/tests/test_numberfields.py | jdsika/holy | a2ac55fa1751a3a8038cf61d29b95005f36d6264 | [
"MIT"
] | 1 | 2016-06-13T01:29:51.000Z | 2016-06-14T00:38:27.000Z | openrave/sympy/polys/tests/test_numberfields.py | jdsika/holy | a2ac55fa1751a3a8038cf61d29b95005f36d6264 | [
"MIT"
] | null | null | null | """Tests for computational algebraic number field theory. """
from sympy import S, Rational, Symbol, Poly, sin, sqrt, I, oo
from sympy.utilities.pytest import raises
from sympy.polys.numberfields import (
minimal_polynomial,
primitive_element,
is_isomorphism_possible,
field_isomorphism_pslq,
field... | 36.609053 | 101 | 0.622246 | 2,959 | 17,792 | 3.619466 | 0.048327 | 0.143417 | 0.186928 | 0.103081 | 0.842764 | 0.760598 | 0.625584 | 0.594211 | 0.57535 | 0.522129 | 0 | 0.06493 | 0.193233 | 17,792 | 485 | 102 | 36.684536 | 0.681204 | 0.003035 | 0 | 0.341108 | 0 | 0 | 0.01393 | 0.010377 | 0 | 0 | 0 | 0 | 0.714286 | 1 | 0.023324 | false | 0 | 0.020408 | 0 | 0.043732 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
fc4a164946c4dc36fca31c9f6bc8414cc7044c6e | 291 | py | Python | fast_arrow_auth/__init__.py | westonplatter/fast_arrow_auth | 07f36f696b700b9c488648a578794f0f75cfaa5d | [
"MIT"
] | 6 | 2019-08-11T20:22:50.000Z | 2020-02-08T21:44:32.000Z | fast_arrow_auth/__init__.py | westonplatter/fast_arrow_auth | 07f36f696b700b9c488648a578794f0f75cfaa5d | [
"MIT"
] | 3 | 2019-08-06T17:32:12.000Z | 2019-11-16T21:36:21.000Z | fast_arrow_auth/__init__.py | westonplatter/fast_arrow_auth | 07f36f696b700b9c488648a578794f0f75cfaa5d | [
"MIT"
] | 3 | 2019-09-27T19:48:22.000Z | 2020-01-24T21:01:52.000Z | # library util and client stuff
from fast_arrow_auth.client import Client
from fast_arrow_auth.exceptions import (
AuthenticationError,
NotImplementedError)
# user
from fast_arrow_auth.resources.user import User
import warnings
warnings.simplefilter('always', DeprecationWarning)
| 22.384615 | 51 | 0.821306 | 35 | 291 | 6.657143 | 0.542857 | 0.103004 | 0.167382 | 0.218884 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.127148 | 291 | 12 | 52 | 24.25 | 0.917323 | 0.116838 | 0 | 0 | 0 | 0 | 0.023622 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 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 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
fc549ff17b61618636e2397d5a3813ea712ad807 | 83 | py | Python | setup.py | mchancan/Hierarchical-Localization | e310e311a722405f19a54f9e833834feb5e70a47 | [
"Apache-2.0"
] | 2 | 2021-06-11T21:12:11.000Z | 2021-06-12T01:24:08.000Z | setup.py | mihaidusmanu/Hierarchical-Localization | dfa5cc5368ce419c46b6a10f751a6f9c758f67dd | [
"Apache-2.0"
] | null | null | null | setup.py | mihaidusmanu/Hierarchical-Localization | dfa5cc5368ce419c46b6a10f751a6f9c758f67dd | [
"Apache-2.0"
] | null | null | null | from setuptools import setup
setup(name='hloc', version="0.0", packages=['hloc'])
| 20.75 | 52 | 0.710843 | 12 | 83 | 4.916667 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026667 | 0.096386 | 83 | 3 | 53 | 27.666667 | 0.76 | 0 | 0 | 0 | 0 | 0 | 0.13253 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
fc5c50f164c1d89e90531e226e86abad73cbd474 | 34 | py | Python | tests/__init__.py | ywangd/peek | 25d196b614acaf9c2f9fe4b8fea36a06554950cd | [
"MIT"
] | 16 | 2020-08-31T02:06:23.000Z | 2022-01-31T23:56:44.000Z | tests/__init__.py | ywangd/peek | 25d196b614acaf9c2f9fe4b8fea36a06554950cd | [
"MIT"
] | 97 | 2020-08-27T14:51:32.000Z | 2021-10-21T00:19:31.000Z | tests/__init__.py | ywangd/peek | 25d196b614acaf9c2f9fe4b8fea36a06554950cd | [
"MIT"
] | 1 | 2021-02-07T13:10:38.000Z | 2021-02-07T13:10:38.000Z | """Unit test package for peek."""
| 17 | 33 | 0.647059 | 5 | 34 | 4.4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.147059 | 34 | 1 | 34 | 34 | 0.758621 | 0.794118 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
fc6e37906249ea0ab9613e91a0107ade269ee171 | 146 | py | Python | parte-1/week-5/maximo_2.py | tfn10/ciencia-computacao-python-conceitos | 15e58738f632ec63c72e2bc07d6938c7dac738ed | [
"MIT"
] | null | null | null | parte-1/week-5/maximo_2.py | tfn10/ciencia-computacao-python-conceitos | 15e58738f632ec63c72e2bc07d6938c7dac738ed | [
"MIT"
] | null | null | null | parte-1/week-5/maximo_2.py | tfn10/ciencia-computacao-python-conceitos | 15e58738f632ec63c72e2bc07d6938c7dac738ed | [
"MIT"
] | null | null | null | def maximo(numero1, numero2):
"""Devolve o maior número"""
if numero1 >= numero2:
return numero1
else:
return numero2
| 20.857143 | 32 | 0.60274 | 16 | 146 | 5.5 | 0.6875 | 0.318182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058824 | 0.30137 | 146 | 6 | 33 | 24.333333 | 0.803922 | 0.150685 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
fc87e3f959c4f0dfc4ca1b0b0f7b44c2e337ab06 | 1,170 | py | Python | evalml/data_checks/__init__.py | ObinnaObeleagu/evalml | 3b5bf62b08a5a5bc6485ba5387a08c32e1857473 | [
"BSD-3-Clause"
] | 1 | 2021-07-28T14:20:35.000Z | 2021-07-28T14:20:35.000Z | evalml/data_checks/__init__.py | ObinnaObeleagu/evalml | 3b5bf62b08a5a5bc6485ba5387a08c32e1857473 | [
"BSD-3-Clause"
] | null | null | null | evalml/data_checks/__init__.py | ObinnaObeleagu/evalml | 3b5bf62b08a5a5bc6485ba5387a08c32e1857473 | [
"BSD-3-Clause"
] | null | null | null | from .data_check import DataCheck
from .data_check_message_code import DataCheckMessageCode
from .data_check_action import DataCheckAction
from .data_check_action_code import DataCheckActionCode
from .data_checks import DataChecks
from .data_check_message import DataCheckMessage, DataCheckWarning, DataCheckError
from .... | 53.181818 | 82 | 0.906838 | 136 | 1,170 | 7.433824 | 0.397059 | 0.160237 | 0.192878 | 0.059347 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.073504 | 1,170 | 21 | 83 | 55.714286 | 0.932657 | 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 | 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 | 1 | 0 | 0 | 4 |
fc8c32ef5bf49b6573e14ba06e3fd4fff2623352 | 95 | py | Python | wonderBits/__init__.py | daejong123/pySocket | 981ecf22f4b6c4fc8a93f0d430699ba7a571f352 | [
"MIT"
] | 1 | 2019-04-22T06:04:20.000Z | 2019-04-22T06:04:20.000Z | wonderBits/__init__.py | daejong123/pySocket | 981ecf22f4b6c4fc8a93f0d430699ba7a571f352 | [
"MIT"
] | null | null | null | wonderBits/__init__.py | daejong123/pySocket | 981ecf22f4b6c4fc8a93f0d430699ba7a571f352 | [
"MIT"
] | null | null | null | from .core import *
from .__version__ import __version__
v = __version__
version = __version__ | 19 | 36 | 0.8 | 11 | 95 | 5.454545 | 0.454545 | 0.466667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.147368 | 95 | 5 | 37 | 19 | 0.740741 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
fc9488cb686786343ec5718487f1e641b775394a | 84 | py | Python | lib/clustering/__init__.py | datasciencecampus/optimus | 3696f63497b82c00c55806629445661d12c60b6d | [
"MIT"
] | 11 | 2018-09-17T18:30:42.000Z | 2021-12-31T13:40:19.000Z | lib/clustering/__init__.py | datasciencecampus/optimus | 3696f63497b82c00c55806629445661d12c60b6d | [
"MIT"
] | 6 | 2019-10-10T10:25:59.000Z | 2021-08-23T07:27:07.000Z | lib/clustering/__init__.py | datasciencecampus/optimus | 3696f63497b82c00c55806629445661d12c60b6d | [
"MIT"
] | 4 | 2019-10-14T16:21:38.000Z | 2021-06-25T04:57:54.000Z | from .clusterer import Clusterer
from .clusterconstructor import ClusterConstructor
| 28 | 50 | 0.880952 | 8 | 84 | 9.25 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.095238 | 84 | 2 | 51 | 42 | 0.973684 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
fca829c774a287ecfb725719f267ead91a54c910 | 56 | py | Python | src/squared.py | bdavies3/Calculator | ea524e141e19d8e6894b55d9ee72f07c3005f914 | [
"MIT"
] | null | null | null | src/squared.py | bdavies3/Calculator | ea524e141e19d8e6894b55d9ee72f07c3005f914 | [
"MIT"
] | null | null | null | src/squared.py | bdavies3/Calculator | ea524e141e19d8e6894b55d9ee72f07c3005f914 | [
"MIT"
] | null | null | null | def squared(a, b) -> object:
c = a ** b
return c | 18.666667 | 28 | 0.5 | 10 | 56 | 2.8 | 0.7 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.339286 | 56 | 3 | 29 | 18.666667 | 0.756757 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0 | 0 | 0.666667 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
5d8c6a3bc39d5a61f49a1377d5427b4e20cec2fe | 350 | py | Python | Connector/luna/apirpc.py | bridgedragon/NodeChain | 2554eb7fa7f677037a800eca43e58e1ab15c41a6 | [
"MIT"
] | null | null | null | Connector/luna/apirpc.py | bridgedragon/NodeChain | 2554eb7fa7f677037a800eca43e58e1ab15c41a6 | [
"MIT"
] | null | null | null | Connector/luna/apirpc.py | bridgedragon/NodeChain | 2554eb7fa7f677037a800eca43e58e1ab15c41a6 | [
"MIT"
] | null | null | null | #!/usr/bin/python3
from httputils import httpmethod, httputils
from rpcutils import rpcmethod
from logger import logger
from rpcutils import error
from rpcutils.rpcconnector import RPCConnector
from . import utils
from .constants import *
# TODO: MAKE ENDPOINTS FOR LUNA/TERRA
# Libraries have been imported so as not t... | 29.166667 | 71 | 0.811429 | 51 | 350 | 5.568627 | 0.647059 | 0.126761 | 0.126761 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003356 | 0.148571 | 350 | 11 | 72 | 31.818182 | 0.949664 | 0.351429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.090909 | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
5d9c670f9bdb77775cc9b02048d81147a0007e7d | 2,532 | py | Python | librespot/structure.py | Footsiefat/librespot-python | d1dec16e650b17d17af1aafd206ff3499cc33048 | [
"Apache-2.0"
] | 1 | 2021-11-27T18:29:40.000Z | 2021-11-27T18:29:40.000Z | librespot/structure.py | Footsiefat/librespot-python | d1dec16e650b17d17af1aafd206ff3499cc33048 | [
"Apache-2.0"
] | null | null | null | librespot/structure.py | Footsiefat/librespot-python | d1dec16e650b17d17af1aafd206ff3499cc33048 | [
"Apache-2.0"
] | null | null | null | from __future__ import annotations
import typing
if typing.TYPE_CHECKING:
from librespot.audio import AbsChunkedInputStream
from librespot.audio.format import SuperAudioFormat
from librespot.core import DealerClient, Session
from librespot.crypto import Packet
from librespot.mercury import MercuryC... | 25.32 | 79 | 0.7109 | 261 | 2,532 | 6.785441 | 0.344828 | 0.257482 | 0.180124 | 0.057595 | 0.241671 | 0.241671 | 0.189723 | 0.164879 | 0.111801 | 0.111801 | 0 | 0.001017 | 0.223144 | 2,532 | 99 | 80 | 25.575758 | 0.899339 | 0 | 0 | 0.353846 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.307692 | false | 0 | 0.123077 | 0.015385 | 0.646154 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
5dce8eb034396a468a6a60e4fc0e27d99f9681d5 | 23 | py | Python | ue4docker/version.py | Greenroom-Robotics/ue4-docker | 760229709110cdb4133cd99aa11674adff3f3935 | [
"MIT"
] | null | null | null | ue4docker/version.py | Greenroom-Robotics/ue4-docker | 760229709110cdb4133cd99aa11674adff3f3935 | [
"MIT"
] | null | null | null | ue4docker/version.py | Greenroom-Robotics/ue4-docker | 760229709110cdb4133cd99aa11674adff3f3935 | [
"MIT"
] | null | null | null | __version__ = "0.0.96"
| 11.5 | 22 | 0.652174 | 4 | 23 | 2.75 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 0.130435 | 23 | 1 | 23 | 23 | 0.35 | 0 | 0 | 0 | 0 | 0 | 0.26087 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
5dd6e99e8658a0f4c1c3b1bf89ed7583108b58f1 | 44 | py | Python | LoadTesting/load_testing_je/utils/exception/exception_tag.py | JE-Chen/je_old_repo | a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5 | [
"MIT"
] | null | null | null | LoadTesting/load_testing_je/utils/exception/exception_tag.py | JE-Chen/je_old_repo | a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5 | [
"MIT"
] | null | null | null | LoadTesting/load_testing_je/utils/exception/exception_tag.py | JE-Chen/je_old_repo | a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5 | [
"MIT"
] | null | null | null | not_found_locust_error = "locust not found"
| 22 | 43 | 0.818182 | 7 | 44 | 4.714286 | 0.571429 | 0.484848 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.113636 | 44 | 1 | 44 | 44 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0.363636 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
5df050771b94cdb706982d24c9ffa6dd97025d59 | 240 | py | Python | terrascript/resource/invidian/sshcommand.py | mjuenema/python-terrascript | 6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d | [
"BSD-2-Clause"
] | 507 | 2017-07-26T02:58:38.000Z | 2022-01-21T12:35:13.000Z | terrascript/resource/invidian/sshcommand.py | mjuenema/python-terrascript | 6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d | [
"BSD-2-Clause"
] | 135 | 2017-07-20T12:01:59.000Z | 2021-10-04T22:25:40.000Z | terrascript/resource/invidian/sshcommand.py | mjuenema/python-terrascript | 6d8bb0273a14bfeb8ff8e950fe36f97f7c6e7b1d | [
"BSD-2-Clause"
] | 81 | 2018-02-20T17:55:28.000Z | 2022-01-31T07:08:40.000Z | # terrascript/resource/invidian/sshcommand.py
# Automatically generated by tools/makecode.py (24-Sep-2021 15:27:44 UTC)
import terrascript
class sshcommand_command(terrascript.Resource):
pass
__all__ = [
"sshcommand_command",
]
| 18.461538 | 73 | 0.766667 | 29 | 240 | 6.137931 | 0.758621 | 0.213483 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.057692 | 0.133333 | 240 | 12 | 74 | 20 | 0.798077 | 0.479167 | 0 | 0 | 1 | 0 | 0.147541 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.166667 | 0.166667 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
5dfe101e70734662973e329282e8446b62868867 | 50 | py | Python | complexTorch/models/__init__.py | IAmSuyogJadhav/complexPyTorch | 31951b584901f579e78e7ad9fbd4d5357a8d19e7 | [
"MIT"
] | 2 | 2020-06-14T07:11:11.000Z | 2020-08-12T23:35:21.000Z | complexTorch/models/__init__.py | IAmSuyogJadhav/complexPyTorch | 31951b584901f579e78e7ad9fbd4d5357a8d19e7 | [
"MIT"
] | null | null | null | complexTorch/models/__init__.py | IAmSuyogJadhav/complexPyTorch | 31951b584901f579e78e7ad9fbd4d5357a8d19e7 | [
"MIT"
] | null | null | null | from .unet import Unet
from .resnet import ResNet
| 16.666667 | 26 | 0.8 | 8 | 50 | 5 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16 | 50 | 2 | 27 | 25 | 0.952381 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
b9023d0bf00edc24311bdcb12cd5f70f8f88a9f2 | 46 | py | Python | tests/__init__.py | padeny/tastypie_api | 696a17535d921fabe35d693565684803d39c451a | [
"MIT"
] | 2 | 2019-07-10T12:09:25.000Z | 2019-07-10T12:09:26.000Z | tests/__init__.py | padeny/tastypie_api | 696a17535d921fabe35d693565684803d39c451a | [
"MIT"
] | 4 | 2020-06-05T21:24:48.000Z | 2021-11-08T00:57:37.000Z | tests/__init__.py | padeny/tastypie_api | 696a17535d921fabe35d693565684803d39c451a | [
"MIT"
] | null | null | null | default_app_config = 'tests.apps.TestsConfig'
| 23 | 45 | 0.826087 | 6 | 46 | 6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.065217 | 46 | 1 | 46 | 46 | 0.837209 | 0 | 0 | 0 | 0 | 0 | 0.478261 | 0.478261 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
f8dd275be52b12be5f3bd73887177383dfae66e5 | 161 | py | Python | LearningCode/2_7_deleteBlank.py | jercas/PythonCrashCourse | 464cf1dfa4c33adc73e15e15a37da94da0912e19 | [
"Apache-2.0"
] | 1 | 2017-07-03T09:41:22.000Z | 2017-07-03T09:41:22.000Z | LearningCode/2_7_deleteBlank.py | jercas/PythonCrashCourse | 464cf1dfa4c33adc73e15e15a37da94da0912e19 | [
"Apache-2.0"
] | null | null | null | LearningCode/2_7_deleteBlank.py | jercas/PythonCrashCourse | 464cf1dfa4c33adc73e15e15a37da94da0912e19 | [
"Apache-2.0"
] | null | null | null | #coding=utf-8
#剔除任命中空白P24 2017.4.8
name=" jercas "
print(name)
print("\t"+name)
print("\n\n"+name)
print(name.lstrip())
print(name.rstrip())
print(name.strip())
| 16.1 | 20 | 0.68323 | 27 | 161 | 4.074074 | 0.518519 | 0.327273 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.060403 | 0.074534 | 161 | 9 | 21 | 17.888889 | 0.677852 | 0.192547 | 0 | 0 | 0 | 0 | 0.109375 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.857143 | 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 | 1 | 0 | 4 |
f8e6d85eda6880cdb234eb2a663197f33f3c9c4f | 168 | py | Python | django_inventory/apps/common/templatetags/project_tags.py | alka653/inventory | b8fc944962666652189ff73ae53b1c2194553e02 | [
"Apache-2.0"
] | null | null | null | django_inventory/apps/common/templatetags/project_tags.py | alka653/inventory | b8fc944962666652189ff73ae53b1c2194553e02 | [
"Apache-2.0"
] | 1 | 2022-03-12T01:03:39.000Z | 2022-03-12T01:03:39.000Z | django_inventory/apps/common/templatetags/project_tags.py | alka653/inventory | b8fc944962666652189ff73ae53b1c2194553e02 | [
"Apache-2.0"
] | 1 | 2020-06-08T11:57:08.000Z | 2020-06-08T11:57:08.000Z | from django.conf import settings
from django.template import Library
register = Library()
@register.simple_tag
def project_name():
return settings.PROJECT_TITLE
| 16.8 | 35 | 0.797619 | 22 | 168 | 5.954545 | 0.681818 | 0.152672 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.136905 | 168 | 9 | 36 | 18.666667 | 0.903448 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0.166667 | 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 | 1 | 0 | 0 | 0 | 4 |
f8fb849bf8e2755d0a066e2fc90f6f6fd6987f50 | 7,603 | py | Python | src/main/scripts/modules/.py | Kynarth/ryrycipe | e689ba5859a3641c7ff9ea0b868280bfeaf34ec9 | [
"MIT"
] | null | null | null | src/main/scripts/modules/.py | Kynarth/ryrycipe | e689ba5859a3641c7ff9ea0b868280bfeaf34ec9 | [
"MIT"
] | null | null | null | src/main/scripts/modules/.py | Kynarth/ryrycipe | e689ba5859a3641c7ff9ea0b868280bfeaf34ec9 | [
"MIT"
] | null | null | null | class Res:
logo = '../resources/images/logo.png'
SH_buckler = '../resources/images/plans/SH_buckler.png'
PA_diadem = '../resources/images/plans/PA_diadem.png'
MW_dagger = '../resources/images/plans/MW_dagger.png'
RW_autolaunch = '../resources/images/plans/RW_autolaunch.png'
AR_hand = '../resourc... | 60.34127 | 90 | 0.724977 | 1,001 | 7,603 | 5.238761 | 0.153846 | 0.34611 | 0.169336 | 0.183448 | 0.104119 | 0.014493 | 0 | 0 | 0 | 0 | 0 | 0.00416 | 0.114692 | 7,603 | 126 | 91 | 60.34127 | 0.774922 | 0 | 0 | 0 | 0 | 0 | 0.678459 | 0.678459 | 0 | 0 | 0 | 0 | 0 | 1 | 0.008 | false | 0 | 0 | 0.008 | 0.992 | 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 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
5d3b1e06289d4ef04600b7a44715f6e8f367b1bc | 76 | py | Python | mumblr/__init__.py | cleemesser/django-mumblr | d9b3c54ff81a3cf03393418e67021b2b9c646bcf | [
"MIT"
] | 35 | 2015-02-10T12:44:33.000Z | 2020-12-27T19:47:33.000Z | mumblr/__init__.py | cleemesser/django-mumblr | d9b3c54ff81a3cf03393418e67021b2b9c646bcf | [
"MIT"
] | null | null | null | mumblr/__init__.py | cleemesser/django-mumblr | d9b3c54ff81a3cf03393418e67021b2b9c646bcf | [
"MIT"
] | 16 | 2015-02-20T19:13:43.000Z | 2022-02-16T04:38:12.000Z | # To ensure that the core entry types are registered
import entrytypes.core
| 25.333333 | 52 | 0.815789 | 12 | 76 | 5.166667 | 0.916667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157895 | 76 | 2 | 53 | 38 | 0.96875 | 0.657895 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
5d4a9ae8c6ed99f2e1081d0254d6a0e0b4293fdd | 467 | py | Python | src/ol_data_pipelines/mitx_bigquery/repositories.py | mitodl/ol-data-pipelines | 26766947d39c38f3eaf5dc3ad7a3a67295bdcda5 | [
"BSD-3-Clause"
] | 11 | 2020-09-10T18:51:24.000Z | 2022-03-19T01:18:46.000Z | src/ol_data_pipelines/mitx_bigquery/repositories.py | mitodl/ol-data-pipelines | 26766947d39c38f3eaf5dc3ad7a3a67295bdcda5 | [
"BSD-3-Clause"
] | 170 | 2020-05-19T19:40:38.000Z | 2022-03-28T15:35:24.000Z | src/ol_data_pipelines/mitx_bigquery/repositories.py | mitodl/ol-data-pipelines | 26766947d39c38f3eaf5dc3ad7a3a67295bdcda5 | [
"BSD-3-Clause"
] | 5 | 2020-11-19T21:20:08.000Z | 2021-11-01T21:10:20.000Z | """Repository for pipeline pulling MITx bigquery data to S3."""
from dagster import repository
from ol_data_pipelines.mitx_bigquery.schedule import mitx_bigquery_daily_schedule
from ol_data_pipelines.mitx_bigquery.solids import mitx_bigquery_pipeline
@repository
def mitx_bigquery_repository():
"""Repository for ... | 31.133333 | 81 | 0.815846 | 60 | 467 | 6.05 | 0.383333 | 0.297521 | 0.165289 | 0.104683 | 0.170799 | 0.170799 | 0 | 0 | 0 | 0 | 0 | 0.002451 | 0.126338 | 467 | 14 | 82 | 33.357143 | 0.887255 | 0.301927 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | true | 0 | 0.5 | 0 | 0.833333 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
5d4adc62273a8e8cf0b2e596196d3debe4b182dc | 111 | py | Python | PYTHON CODES/AgeCalculator.py | Pavan1199/PURE-PYTHON-CODES | f0b9823e264e67a498a742eb66ab569cc1861b5e | [
"MIT"
] | 2 | 2019-03-31T14:10:44.000Z | 2019-05-03T17:19:00.000Z | PYTHON CODES/AgeCalculator.py | Pavan1199/PURE-PYTHON-CODES | f0b9823e264e67a498a742eb66ab569cc1861b5e | [
"MIT"
] | null | null | null | PYTHON CODES/AgeCalculator.py | Pavan1199/PURE-PYTHON-CODES | f0b9823e264e67a498a742eb66ab569cc1861b5e | [
"MIT"
] | null | null | null | #WAP to find your age
a=input("Enter the year of birth = ")
b=2015-a
print"Your age is approximately = ",b
| 22.2 | 38 | 0.675676 | 21 | 111 | 3.571429 | 0.809524 | 0.186667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.045455 | 0.207207 | 111 | 4 | 39 | 27.75 | 0.806818 | 0.18018 | 0 | 0 | 0 | 0 | 0.627907 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0.333333 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
5d6634616537a2608953f64e93c5c13661e99946 | 159 | py | Python | Exercises/Exercise 12 - Intermediate.py | MikelShifrin/Python1 | 0096a327023a28e0c639042ae01268b07e61943e | [
"MIT"
] | 3 | 2019-07-02T13:46:23.000Z | 2019-08-19T14:41:25.000Z | Exercises/Exercise 12 - Intermediate.py | MikelShifrin/Python1 | 0096a327023a28e0c639042ae01268b07e61943e | [
"MIT"
] | null | null | null | Exercises/Exercise 12 - Intermediate.py | MikelShifrin/Python1 | 0096a327023a28e0c639042ae01268b07e61943e | [
"MIT"
] | null | null | null | #Assignment 9
#write a km to miles converter
#Miles = KM x 0.6214
#write it using void functions
#HINT:
#you will have 2 functions:
#main():
#km_to_miles(km):
| 17.666667 | 30 | 0.72327 | 29 | 159 | 3.896552 | 0.724138 | 0.070796 | 0.159292 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.052632 | 0.163522 | 159 | 8 | 31 | 19.875 | 0.796992 | 0.899371 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
54deea1ac88edf0cc30e4bb3375667e87b90ed15 | 111 | py | Python | 5time.py | Dyavathrocky/rocky | 693833e61ce9317ab003ca61d4654c6b3806cd22 | [
"Apache-2.0"
] | null | null | null | 5time.py | Dyavathrocky/rocky | 693833e61ce9317ab003ca61d4654c6b3806cd22 | [
"Apache-2.0"
] | null | null | null | 5time.py | Dyavathrocky/rocky | 693833e61ce9317ab003ca61d4654c6b3806cd22 | [
"Apache-2.0"
] | null | null | null | #5times range
print('my name i')
for i in range (5):
print('jimee my name ('+ str(i) +')')
| 18.5 | 42 | 0.495495 | 17 | 111 | 3.235294 | 0.647059 | 0.218182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026667 | 0.324324 | 111 | 5 | 43 | 22.2 | 0.706667 | 0.108108 | 0 | 0 | 0 | 0 | 0.268817 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.666667 | 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 | 1 | 0 | 4 |
54e7af09ee580ad36c84df2470aa0de8b272697b | 139 | py | Python | opy/_regtest/src/spec/bin/printenv.py | Schweinepriester/oil | 8b0e5c58a825223341896064d63a95c8b57a9c05 | [
"Apache-2.0"
] | 2,209 | 2016-11-20T10:32:58.000Z | 2022-03-31T20:51:27.000Z | opy/_regtest/src/spec/bin/printenv.py | Schweinepriester/oil | 8b0e5c58a825223341896064d63a95c8b57a9c05 | [
"Apache-2.0"
] | 1,074 | 2016-12-07T05:02:48.000Z | 2022-03-22T02:09:11.000Z | opy/_regtest/src/spec/bin/printenv.py | Schweinepriester/oil | 8b0e5c58a825223341896064d63a95c8b57a9c05 | [
"Apache-2.0"
] | 147 | 2016-12-11T04:13:28.000Z | 2022-03-27T14:50:00.000Z | #!/usr/bin/env python
from __future__ import print_function
import os
import sys
for name in sys.argv[1:]:
print(os.environ.get(name))
| 15.444444 | 37 | 0.748201 | 24 | 139 | 4.125 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.008333 | 0.136691 | 139 | 8 | 38 | 17.375 | 0.816667 | 0.143885 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.6 | 0 | 0.6 | 0.4 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
070ad3a3aa723b27b9eb62ae1cece2d69adc47b6 | 26 | py | Python | src/version.py | Ancient-Relic/botty | dd2628708e89b1c2cbdea1402e860dc2b338155e | [
"MIT"
] | null | null | null | src/version.py | Ancient-Relic/botty | dd2628708e89b1c2cbdea1402e860dc2b338155e | [
"MIT"
] | null | null | null | src/version.py | Ancient-Relic/botty | dd2628708e89b1c2cbdea1402e860dc2b338155e | [
"MIT"
] | null | null | null | __version__ = '0.6.3-dev'
| 13 | 25 | 0.653846 | 5 | 26 | 2.6 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.130435 | 0.115385 | 26 | 1 | 26 | 26 | 0.434783 | 0 | 0 | 0 | 0 | 0 | 0.346154 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
070d49a0c294112b2609452ac4f13f7ae443c6df | 83 | py | Python | mapp/apps.py | zszwoaini/ygsc | 9edff2b7ebc2d56879de1ab2c7cabbe4744940f2 | [
"Apache-2.0"
] | 4 | 2020-10-09T19:30:04.000Z | 2020-11-23T10:05:43.000Z | mapp/apps.py | zszwoaini/ygsc | 9edff2b7ebc2d56879de1ab2c7cabbe4744940f2 | [
"Apache-2.0"
] | 29 | 2021-01-28T14:03:05.000Z | 2022-02-03T18:21:09.000Z | hasty/mapp/apps.py | NREL/haste | 18e4941d933a90a53c162a64993ff46608a7128f | [
"BSD-3-Clause"
] | null | null | null | from django.apps import AppConfig
class MappConfig(AppConfig):
name = 'mapp'
| 13.833333 | 33 | 0.73494 | 10 | 83 | 6.1 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.180723 | 83 | 5 | 34 | 16.6 | 0.897059 | 0 | 0 | 0 | 0 | 0 | 0.048193 | 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 | 1 | 0 | 0 | 4 |
0755537e045bdbc9bccdde90ed1b7662dfcbf61e | 64 | py | Python | wifi_client_cfg.py | ecorobot/micropython-boot | b495d4c52cb567a39722aadea06d03138f28d5f6 | [
"MIT"
] | null | null | null | wifi_client_cfg.py | ecorobot/micropython-boot | b495d4c52cb567a39722aadea06d03138f28d5f6 | [
"MIT"
] | null | null | null | wifi_client_cfg.py | ecorobot/micropython-boot | b495d4c52cb567a39722aadea06d03138f28d5f6 | [
"MIT"
] | null | null | null | EXTERNEL_WIFI_SSID = 'ssid'
EXTERNEL_WIFI_PASSWORD = 'password'
| 21.333333 | 35 | 0.8125 | 8 | 64 | 6 | 0.5 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.09375 | 64 | 2 | 36 | 32 | 0.827586 | 0 | 0 | 0 | 0 | 0 | 0.1875 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.5 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
4acf18fa475b3c3d752ebced89ef13a685163907 | 1,009 | py | Python | tests/test_validators.py | insilichem/gpathfinder | e6c7df14d473857acb007efbae3cc7b4fee1b330 | [
"Apache-2.0"
] | 5 | 2020-03-22T20:21:47.000Z | 2022-03-08T07:50:25.000Z | tests/test_validators.py | insilichem/gpathfinder | e6c7df14d473857acb007efbae3cc7b4fee1b330 | [
"Apache-2.0"
] | 2 | 2020-04-09T10:49:26.000Z | 2022-03-08T04:37:27.000Z | tests/test_validators.py | insilichem/gpathfinder | e6c7df14d473857acb007efbae3cc7b4fee1b330 | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
##############
# GPathFinder: Identification of ligand pathways by a multi-objective
# genetic algorithm
#
# https://github.com/insilichem/gpathfinder
#
# Copyright 2019 José-Emilio Sánchez Aparicio, Giuseppe Sciortino,
# Daniel Villadrich Herrmannsdoerfer, Pablo Orenes C... | 33.633333 | 74 | 0.74331 | 138 | 1,009 | 5.434783 | 0.76087 | 0.08 | 0.034667 | 0.042667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010563 | 0.1556 | 1,009 | 29 | 75 | 34.793103 | 0.869718 | 0.869177 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
4adc32ce73c585a0c2ddf483133eac258d2b6b10 | 197 | py | Python | setup.py | supplepentan/penta-paint-transformer | 52de1ae9d29bf4dbde2f4480d9b86e9217b90c6d | [
"Apache-2.0"
] | null | null | null | setup.py | supplepentan/penta-paint-transformer | 52de1ae9d29bf4dbde2f4480d9b86e9217b90c6d | [
"Apache-2.0"
] | null | null | null | setup.py | supplepentan/penta-paint-transformer | 52de1ae9d29bf4dbde2f4480d9b86e9217b90c6d | [
"Apache-2.0"
] | null | null | null | import gdown
import os
gdown.download("https://drive.google.com/u/0/uc?id=1NDD54BLligyr8tzo8QGI5eihZisXK1nq&export=download", './model.pth', quiet=False)
os.makedirs("input")
os.makedirs("output") | 32.833333 | 130 | 0.77665 | 27 | 197 | 5.666667 | 0.777778 | 0.130719 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.042553 | 0.045685 | 197 | 6 | 131 | 32.833333 | 0.771277 | 0 | 0 | 0 | 0 | 0.2 | 0.535354 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
ab172c709a2518d370cdda87b5215262b6efa2cd | 178 | py | Python | testing/noauth/test_news.py | North14/avanza | bc2b0054ba9e8f93ebeaad14acd19452e60f8713 | [
"MIT"
] | 11 | 2020-03-17T08:17:12.000Z | 2021-11-27T12:18:14.000Z | testing/noauth/test_news.py | North14/avanza | bc2b0054ba9e8f93ebeaad14acd19452e60f8713 | [
"MIT"
] | 19 | 2020-03-12T09:44:33.000Z | 2021-04-29T21:15:50.000Z | testing/noauth/test_news.py | North14/avanza | bc2b0054ba9e8f93ebeaad14acd19452e60f8713 | [
"MIT"
] | null | null | null | import avanza
def test_news():
news = avanza.News(3)
assert news
assert news.results
assert isinstance(news.pretty, str)
assert isinstance(news.info, dict)
| 17.8 | 39 | 0.691011 | 24 | 178 | 5.083333 | 0.541667 | 0.163934 | 0.327869 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007194 | 0.219101 | 178 | 9 | 40 | 19.777778 | 0.870504 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.571429 | 1 | 0.142857 | false | 0 | 0.142857 | 0 | 0.285714 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
ab406b0f5ebedd14e995c4b7d533b17a6b65804a | 1,142 | py | Python | bch_params.py | kubaszpak/Forward_error_correction | d5f1d0fc4cd64fc48d98b95b0b258f6ffe5ac36b | [
"MIT"
] | null | null | null | bch_params.py | kubaszpak/Forward_error_correction | d5f1d0fc4cd64fc48d98b95b0b258f6ffe5ac36b | [
"MIT"
] | null | null | null | bch_params.py | kubaszpak/Forward_error_correction | d5f1d0fc4cd64fc48d98b95b0b258f6ffe5ac36b | [
"MIT"
] | 1 | 2021-06-15T17:51:18.000Z | 2021-06-15T17:51:18.000Z | bch_code_parameters = {
3:{
1:4
},
4:{
1:11,
2:7,
3:5
},
5:{
1:26,
2:21,
3:16,
5:11,
7:6
},
6:{
1:57,
2:51,
3:45,
4:39,
5:36,
6:30,
7:24,
10:18,
11:... | 13.435294 | 23 | 0.251313 | 149 | 1,142 | 1.912752 | 0.503356 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.599553 | 0.608581 | 1,142 | 84 | 24 | 13.595238 | 0.038031 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
ab4e122fea20f38f2071f61a8912fe0c4790cb60 | 1,911 | py | Python | tests/integration/test_type_conversion_util.py | helxplatform/roger | 60c1c1198c41949804692217c74848e2aa8b9ea2 | [
"MIT"
] | null | null | null | tests/integration/test_type_conversion_util.py | helxplatform/roger | 60c1c1198c41949804692217c74848e2aa8b9ea2 | [
"MIT"
] | 7 | 2021-04-08T12:17:27.000Z | 2022-02-08T23:12:32.000Z | tests/integration/test_type_conversion_util.py | helxplatform/roger | 60c1c1198c41949804692217c74848e2aa8b9ea2 | [
"MIT"
] | 3 | 2020-12-07T20:49:43.000Z | 2021-06-12T19:49:43.000Z | from roger.components.data_conversion_utils import TypeConversionUtil
def test_type_comparision():
datatype_1 = list.__name__
datatype_2 = str.__name__
datatype_3 = bool.__name__
datatype_4 = float.__name__
datatype_5 = int.__name__
# list should always come first
assert datatype_1 == Type... | 38.22 | 86 | 0.736264 | 230 | 1,911 | 5.691304 | 0.273913 | 0.229183 | 0.275019 | 0.319328 | 0.601986 | 0.572193 | 0.572193 | 0.531704 | 0.482047 | 0.102368 | 0 | 0.026975 | 0.185243 | 1,911 | 49 | 87 | 39 | 0.813744 | 0.081633 | 0 | 0.216216 | 0 | 0 | 0.005149 | 0 | 0 | 0 | 0 | 0 | 0.405405 | 1 | 0.054054 | false | 0 | 0.027027 | 0 | 0.081081 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
db463ac6a19b4d1ae28e035153b36e5bbf18bf10 | 1,479 | py | Python | ontask/action/views/__init__.py | LucasFranciscoCorreia/ontask_b | 5473e9faa24c71a2a1102d47ebc2cbf27608e42a | [
"MIT"
] | null | null | null | ontask/action/views/__init__.py | LucasFranciscoCorreia/ontask_b | 5473e9faa24c71a2a1102d47ebc2cbf27608e42a | [
"MIT"
] | null | null | null | ontask/action/views/__init__.py | LucasFranciscoCorreia/ontask_b | 5473e9faa24c71a2a1102d47ebc2cbf27608e42a | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Module with all the views used related to actions."""
from ontask.action.views.action import (
ActionCreateView, ActionUpdateView, action_index, delete_action,
edit_action,
)
from ontask.action.views.clone import clone_action, clone_condition
from ontask.action.views.condition impor... | 36.975 | 77 | 0.812035 | 206 | 1,479 | 5.5 | 0.300971 | 0.123566 | 0.197705 | 0.259488 | 0.262136 | 0.082966 | 0.058252 | 0 | 0 | 0 | 0 | 0.000762 | 0.112238 | 1,479 | 39 | 78 | 37.923077 | 0.862148 | 0.049358 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
db634b54d94bc17a9aab672ae1e293b857c5f0a7 | 62 | py | Python | user/__init__.py | PeinW/seeyes | 666d8e2da9b1adb57b40189603245061de5d4bf9 | [
"MIT"
] | null | null | null | user/__init__.py | PeinW/seeyes | 666d8e2da9b1adb57b40189603245061de5d4bf9 | [
"MIT"
] | null | null | null | user/__init__.py | PeinW/seeyes | 666d8e2da9b1adb57b40189603245061de5d4bf9 | [
"MIT"
] | null | null | null | # user/__init.py
import pymysql
pymysql.install_as_MySQLdb()
| 12.4 | 28 | 0.806452 | 9 | 62 | 5.111111 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.096774 | 62 | 4 | 29 | 15.5 | 0.821429 | 0.225806 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
db73ea51bf9a467f697d10c4534857348b3b9630 | 692 | py | Python | example_settings.py | droberson/usb-watch | 8fb5ecabcbca9262a9750c9e37202291d82cb749 | [
"MIT"
] | 4 | 2018-01-23T03:21:46.000Z | 2022-01-24T16:52:52.000Z | example_settings.py | droberson/usb-watch | 8fb5ecabcbca9262a9750c9e37202291d82cb749 | [
"MIT"
] | 1 | 2019-12-19T21:08:50.000Z | 2019-12-19T21:08:50.000Z | example_settings.py | droberson/usb-watch | 8fb5ecabcbca9262a9750c9e37202291d82cb749 | [
"MIT"
] | 1 | 2022-01-24T16:52:52.000Z | 2022-01-24T16:52:52.000Z | ### WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
###
### This file MUST be edited properly and copied to settings.py in order for
### SMS functionality to work. Get set up on Twilio.com for the required API
### keys and phone number settings.
###
### WARNING WARNING WARNING WARNING WARNING WA... | 36.421053 | 76 | 0.776012 | 99 | 692 | 5.383838 | 0.494949 | 0.420263 | 0.551595 | 0.630394 | 0.236398 | 0.236398 | 0.236398 | 0.236398 | 0.236398 | 0 | 0 | 0.013675 | 0.154624 | 692 | 18 | 77 | 38.444444 | 0.897436 | 0.728324 | 0 | 0 | 0 | 0 | 0.555556 | 0.407407 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
db7782926887e0ad6e191f6a2162494b859822c6 | 212 | py | Python | config.py | gagnokenneth/foodle | d18279fbdfb2919a7f66366a33bbf29db68475e3 | [
"MIT"
] | null | null | null | config.py | gagnokenneth/foodle | d18279fbdfb2919a7f66366a33bbf29db68475e3 | [
"MIT"
] | null | null | null | config.py | gagnokenneth/foodle | d18279fbdfb2919a7f66366a33bbf29db68475e3 | [
"MIT"
] | 1 | 2022-03-23T08:38:40.000Z | 2022-03-23T08:38:40.000Z | from os import getenv
SECRET_KEY = getenv("SECRET_KEY")
DB_NAME = getenv("DB_NAME")
DB_USERNAME = getenv("DB_USERNAME")
DB_PASSWORD = getenv("DB_PASSWORD")
DB_HOST = getenv("DB_HOST")
DB_PORT = getenv("DB_PORT") | 26.5 | 35 | 0.754717 | 34 | 212 | 4.352941 | 0.352941 | 0.27027 | 0.202703 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.103774 | 212 | 8 | 36 | 26.5 | 0.778947 | 0 | 0 | 0 | 0 | 0 | 0.248826 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.142857 | 0.142857 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
db78334558eab700ce40b688a7ef1fd140cf6466 | 783 | py | Python | src/utils.py | ray5273/gpt_hackathon | 95ad1a3c630472d3524845c0ed57c50a73605ca9 | [
"MIT"
] | 4 | 2019-11-17T12:41:18.000Z | 2020-02-21T11:03:59.000Z | src/utils.py | inspirit941/gpt_hackathon | f8fb11dae8ce3324dadc7425b7b28835caa0f915 | [
"MIT"
] | 8 | 2020-09-25T22:40:56.000Z | 2022-02-09T23:39:35.000Z | src/utils.py | inspirit941/gpt_hackathon | f8fb11dae8ce3324dadc7425b7b28835caa0f915 | [
"MIT"
] | 2 | 2021-11-12T16:28:31.000Z | 2021-11-20T18:05:40.000Z | import re
def convert_text(text):
'''
convert text for sentence split
split token: '.. '
'''
out = re.sub('[\n]+', '',
re.sub('[?]', '?.. ',
re.sub('다\.', '다... ',
re.sub('\."', '"',
re... | 26.1 | 91 | 0.232439 | 53 | 783 | 3.396226 | 0.433962 | 0.222222 | 0.194444 | 0.277778 | 0.138889 | 0.138889 | 0.138889 | 0.138889 | 0 | 0 | 0 | 0.003067 | 0.583653 | 783 | 29 | 92 | 27 | 0.54908 | 0.063857 | 0 | 0.285714 | 0 | 0 | 0.069869 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0 | 0.047619 | 0 | 0.238095 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
db8cd8d124c24dea07e5379da9e323786673a9b9 | 324 | py | Python | dask_ml/metrics/__init__.py | prasunanand/dask-ml | 69680f79d0dff57bec50818998edc20b71b6846f | [
"BSD-3-Clause"
] | 1 | 2022-02-11T12:06:31.000Z | 2022-02-11T12:06:31.000Z | dask_ml/metrics/__init__.py | prasunanand/dask-ml | 69680f79d0dff57bec50818998edc20b71b6846f | [
"BSD-3-Clause"
] | 5 | 2019-02-27T22:38:25.000Z | 2020-08-13T18:16:36.000Z | dask_ml/metrics/__init__.py | prasunanand/dask-ml | 69680f79d0dff57bec50818998edc20b71b6846f | [
"BSD-3-Clause"
] | 3 | 2020-05-11T07:38:05.000Z | 2022-02-11T12:33:50.000Z | from .classification import accuracy_score, log_loss # noqa
from .pairwise import ( # noqa
euclidean_distances,
pairwise_distances,
pairwise_distances_argmin_min,
)
from .regression import mean_absolute_error, mean_squared_error, r2_score # noqa
from .scorer import SCORERS, check_scoring, get_scorer # n... | 36 | 81 | 0.79321 | 41 | 324 | 5.926829 | 0.585366 | 0.065844 | 0.213992 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003636 | 0.151235 | 324 | 8 | 82 | 40.5 | 0.88 | 0.058642 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
dbad49539e47b5a35203c8ee146c5d09b3abbba0 | 183 | py | Python | cap3/ex10.py | felipesch92/livroPython | 061b1c095c3ec2d25fb1d5fdfbf9e9dbe10b3307 | [
"MIT"
] | null | null | null | cap3/ex10.py | felipesch92/livroPython | 061b1c095c3ec2d25fb1d5fdfbf9e9dbe10b3307 | [
"MIT"
] | null | null | null | cap3/ex10.py | felipesch92/livroPython | 061b1c095c3ec2d25fb1d5fdfbf9e9dbe10b3307 | [
"MIT"
] | null | null | null | km = float(input('Informe a KM percorrida: ')) # 0.15
d = int(input('Informe quantos dias: ')) # 60
print(f'{d} dias e {km} km rodados. Valor final: R$ {(km * 0.15) + (d * 60):.2f}')
| 45.75 | 82 | 0.590164 | 33 | 183 | 3.272727 | 0.636364 | 0.222222 | 0.074074 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.073333 | 0.180328 | 183 | 3 | 83 | 61 | 0.646667 | 0.038251 | 0 | 0 | 0 | 0.333333 | 0.687861 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
dbc1bf7c970f86dad89ed14c24e882a5f441b3d7 | 15,652 | py | Python | tests/components/wled/test_select.py | nickna/core | c682d5d5e430de52e3da7e06026cd8b4087e864f | [
"Apache-2.0"
] | 1 | 2021-06-16T09:29:20.000Z | 2021-06-16T09:29:20.000Z | tests/components/wled/test_select.py | flexy2dd/core | 1019ee22ff13e5f542e868179d791e6a0d87369a | [
"Apache-2.0"
] | 70 | 2020-07-16T02:07:46.000Z | 2022-03-31T06:01:48.000Z | tests/components/wled/test_select.py | Vaarlion/core | f3de8b9f28de01abf72c0f5bb0b457eb1841f201 | [
"Apache-2.0"
] | 1 | 2020-03-09T19:15:38.000Z | 2020-03-09T19:15:38.000Z | """Tests for the WLED select platform."""
import json
from unittest.mock import MagicMock
import pytest
from wled import Device as WLEDDevice, WLEDConnectionError, WLEDError
from homeassistant.components.select import DOMAIN as SELECT_DOMAIN
from homeassistant.components.select.const import ATTR_OPTION, ATTR_OPTIONS
... | 31.241517 | 86 | 0.69416 | 1,902 | 15,652 | 5.437434 | 0.116719 | 0.038677 | 0.027654 | 0.034906 | 0.796558 | 0.767356 | 0.73042 | 0.709631 | 0.694547 | 0.675305 | 0 | 0.006145 | 0.209877 | 15,652 | 500 | 87 | 31.304 | 0.830112 | 0.018592 | 0 | 0.584767 | 0 | 0 | 0.171655 | 0.094021 | 0 | 0 | 0 | 0 | 0.189189 | 1 | 0 | false | 0 | 0.029484 | 0 | 0.029484 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 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 | 4 |
dbcb68eae6de632384caacb5b45f84d3fd71a8c3 | 194 | py | Python | BlogExercise/Blog/models.py | joacocruz6/djangoExerciseApp | 05836ffa18c0376853f36b8c73f861cf60027c33 | [
"MIT"
] | null | null | null | BlogExercise/Blog/models.py | joacocruz6/djangoExerciseApp | 05836ffa18c0376853f36b8c73f861cf60027c33 | [
"MIT"
] | null | null | null | BlogExercise/Blog/models.py | joacocruz6/djangoExerciseApp | 05836ffa18c0376853f36b8c73f861cf60027c33 | [
"MIT"
] | null | null | null | from django.db import models
# Create your models here.
class Article(models.Model):
title = models.CharField(max_length=600)
summary = models.TextField()
body = models.TextField()
| 24.25 | 44 | 0.726804 | 25 | 194 | 5.6 | 0.76 | 0.214286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018634 | 0.170103 | 194 | 7 | 45 | 27.714286 | 0.850932 | 0.123711 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 1 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
dbd293c74b1de2fd554e606094ee80397aae3a66 | 103 | py | Python | app/postoffices/admin.py | swelanauguste/refactored-sniffle | 1c0ea2f4d07a74d694ae3409b8b2ea3d57b9db4f | [
"MIT"
] | null | null | null | app/postoffices/admin.py | swelanauguste/refactored-sniffle | 1c0ea2f4d07a74d694ae3409b8b2ea3d57b9db4f | [
"MIT"
] | null | null | null | app/postoffices/admin.py | swelanauguste/refactored-sniffle | 1c0ea2f4d07a74d694ae3409b8b2ea3d57b9db4f | [
"MIT"
] | null | null | null | from django.contrib import admin
from .models import PostalAddress
admin.site.register(PostalAddress) | 20.6 | 34 | 0.84466 | 13 | 103 | 6.692308 | 0.692308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.097087 | 103 | 5 | 34 | 20.6 | 0.935484 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 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 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
dbd79374dbcfd4330525a4211eccbb6e43959e8c | 99 | py | Python | ja/code_snippets/results/result.api-monitor-cancel-downtime-by-scope.py | quotecenter/documentation-1 | f365703264761aa2b19d5d1d8ec55a3a6082ef4d | [
"BSD-3-Clause"
] | null | null | null | ja/code_snippets/results/result.api-monitor-cancel-downtime-by-scope.py | quotecenter/documentation-1 | f365703264761aa2b19d5d1d8ec55a3a6082ef4d | [
"BSD-3-Clause"
] | null | null | null | ja/code_snippets/results/result.api-monitor-cancel-downtime-by-scope.py | quotecenter/documentation-1 | f365703264761aa2b19d5d1d8ec55a3a6082ef4d | [
"BSD-3-Clause"
] | null | null | null | # This is not yet supported by the Python Client for Datadog API
# Please consult the curl example | 49.5 | 64 | 0.787879 | 17 | 99 | 4.588235 | 0.941176 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.191919 | 99 | 2 | 65 | 49.5 | 0.975 | 0.949495 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
916ca5e6be972f211f85ed1830a2297f64be2bf7 | 128 | py | Python | ui/__init__.py | ctwardy/sitehound | 0f928a82f761e3d0335d1d4d01f6105b726fd889 | [
"Apache-2.0"
] | 13 | 2017-12-05T20:06:33.000Z | 2021-11-03T22:27:15.000Z | ui/__init__.py | ctwardy/sitehound | 0f928a82f761e3d0335d1d4d01f6105b726fd889 | [
"Apache-2.0"
] | 2 | 2020-03-24T15:33:28.000Z | 2020-03-30T20:08:03.000Z | ui/__init__.py | ctwardy/sitehound | 0f928a82f761e3d0335d1d4d01f6105b726fd889 | [
"Apache-2.0"
] | 8 | 2018-03-01T05:01:05.000Z | 2020-08-25T15:31:16.000Z | import os
from flask import Flask
from ui.singleton import Singleton
app = Flask(__name__)
app.config.from_object('settings')
| 16 | 34 | 0.796875 | 19 | 128 | 5.105263 | 0.578947 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125 | 128 | 7 | 35 | 18.285714 | 0.866071 | 0 | 0 | 0 | 0 | 0 | 0.0625 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.6 | 0 | 0.6 | 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 | 1 | 0 | 0 | 4 |
918636f4a4c95db68ae126fc4a7716aee1e8d9bb | 92 | py | Python | test_rsync.py | rguillon/rlog | 097cdae4aec42f55dc08bb173dbeb98bf232f1d8 | [
"MIT"
] | null | null | null | test_rsync.py | rguillon/rlog | 097cdae4aec42f55dc08bb173dbeb98bf232f1d8 | [
"MIT"
] | null | null | null | test_rsync.py | rguillon/rlog | 097cdae4aec42f55dc08bb173dbeb98bf232f1d8 | [
"MIT"
] | null | null | null | import auto_rsync
sync = auto_rsync.main(".", "renaud@server1:/var/log/syslog", "10", " ")
| 23 | 72 | 0.663043 | 13 | 92 | 4.538462 | 0.846154 | 0.305085 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.036585 | 0.108696 | 92 | 3 | 73 | 30.666667 | 0.682927 | 0 | 0 | 0 | 0 | 0 | 0.369565 | 0.326087 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
91975b796828ad3f1af2a1ed6efa51e31fa3cf5f | 96 | py | Python | social/backends/linkedin.py | raccoongang/python-social-auth | 81c0a542d158772bd3486d31834c10af5d5f08b0 | [
"BSD-3-Clause"
] | 1,987 | 2015-01-01T16:12:45.000Z | 2022-03-29T14:24:25.000Z | social/backends/linkedin.py | raccoongang/python-social-auth | 81c0a542d158772bd3486d31834c10af5d5f08b0 | [
"BSD-3-Clause"
] | 731 | 2015-01-01T22:55:25.000Z | 2022-03-10T15:07:51.000Z | virtual/lib/python3.6/site-packages/social/backends/linkedin.py | dennismwaniki67/awards | 80ed10541f5f751aee5f8285ab1ad54cfecba95f | [
"MIT"
] | 1,082 | 2015-01-01T16:27:26.000Z | 2022-03-22T21:18:33.000Z | from social_core.backends.linkedin import BaseLinkedinAuth, LinkedinOAuth, \
LinkedinOAuth2
| 32 | 76 | 0.833333 | 9 | 96 | 8.777778 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011765 | 0.114583 | 96 | 2 | 77 | 48 | 0.917647 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
919b1aa78239b07199bc65be85d2de269ed1c921 | 218 | py | Python | files/exercises/libraries-error-messages.py | mforneris/introduction_to_python_course | 8075973ee89a921a5e2693f649adbf1fc0e0b2cb | [
"CC-BY-4.0"
] | null | null | null | files/exercises/libraries-error-messages.py | mforneris/introduction_to_python_course | 8075973ee89a921a5e2693f649adbf1fc0e0b2cb | [
"CC-BY-4.0"
] | null | null | null | files/exercises/libraries-error-messages.py | mforneris/introduction_to_python_course | 8075973ee89a921a5e2693f649adbf1fc0e0b2cb | [
"CC-BY-4.0"
] | 1 | 2020-01-09T10:58:56.000Z | 2020-01-09T10:58:56.000Z | # Reading Error Messages
# 1. Read the code below and try to identify what the errors are without running it.
# 2. Run the code, and read the error message.
# What type of error is it?
from math import log
log(0) | 27.25 | 84 | 0.724771 | 40 | 218 | 3.95 | 0.725 | 0.088608 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017647 | 0.220183 | 218 | 8 | 85 | 27.25 | 0.911765 | 0.825688 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
91a29bb86d347fc55f83ab20ca7e93c30539dd65 | 34 | py | Python | virtualenv/lib/python3.7/struct.py | mvolpe11/watson-box-skills-lab-docs | 0cecde651b8a1f4763570b7012ac7d3e50453c34 | [
"Apache-2.0"
] | 2 | 2022-01-21T12:51:19.000Z | 2022-01-21T12:51:30.000Z | virtualenv/lib/python3.7/struct.py | mvolpe11/watson-box-skills-lab-docs | 0cecde651b8a1f4763570b7012ac7d3e50453c34 | [
"Apache-2.0"
] | 6 | 2021-03-18T23:29:22.000Z | 2021-09-22T18:31:46.000Z | virtualenv/lib/python3.7/struct.py | mvolpe11/watson-box-skills-lab-docs | 0cecde651b8a1f4763570b7012ac7d3e50453c34 | [
"Apache-2.0"
] | 1 | 2019-12-30T08:22:13.000Z | 2019-12-30T08:22:13.000Z | /usr/local/lib/python3.7/struct.py | 34 | 34 | 0.794118 | 7 | 34 | 3.857143 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058824 | 0 | 34 | 1 | 34 | 34 | 0.735294 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
91e982ade0282e71cf4592472c642a659ceb9070 | 63 | py | Python | python/testData/resolve/HasattrResolveConditionalExpression.py | Sajaki/intellij-community | 6748af2c40567839d11fd652ec77ba263c074aad | [
"Apache-2.0"
] | 2 | 2019-04-28T07:48:50.000Z | 2020-12-11T14:18:08.000Z | python/testData/resolve/HasattrResolveConditionalExpression.py | Cyril-lamirand/intellij-community | 60ab6c61b82fc761dd68363eca7d9d69663cfa39 | [
"Apache-2.0"
] | 2 | 2022-02-19T09:45:05.000Z | 2022-02-27T20:32:55.000Z | python/testData/resolve/HasattrResolveConditionalExpression.py | Cyril-lamirand/intellij-community | 60ab6c61b82fc761dd68363eca7d9d69663cfa39 | [
"Apache-2.0"
] | 2 | 2020-03-15T08:57:37.000Z | 2020-04-07T04:48:14.000Z | def foo(x):
return x.f<ref>ld if hasattr(x, "fld") else 42
| 21 | 50 | 0.619048 | 14 | 63 | 2.785714 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04 | 0.206349 | 63 | 2 | 51 | 31.5 | 0.74 | 0 | 0 | 0 | 0 | 0 | 0.047619 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0.5 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 4 |
91eb44810db419f032391871573dcc1010eeb50a | 749 | py | Python | tests/res/apps/feeds_app/feeds.py | appsumo/Coffin-custom | 172a8efa4f3deeac1d0c7adbd0f114dbb73bbd8a | [
"BSD-3-Clause"
] | null | null | null | tests/res/apps/feeds_app/feeds.py | appsumo/Coffin-custom | 172a8efa4f3deeac1d0c7adbd0f114dbb73bbd8a | [
"BSD-3-Clause"
] | null | null | null | tests/res/apps/feeds_app/feeds.py | appsumo/Coffin-custom | 172a8efa4f3deeac1d0c7adbd0f114dbb73bbd8a | [
"BSD-3-Clause"
] | null | null | null | from coffin.contrib.syndication.feeds import Feed as OldFeed
class TestOldFeed(OldFeed):
title = 'Foo'
link = '/'
def items(self):
return [1,2,3]
def item_link(self, item):
return '/item'
title_template = 'feeds_app/feed_title.html'
description_template = 'feeds_app/feed_des... | 22.029412 | 64 | 0.635514 | 91 | 749 | 5.076923 | 0.373626 | 0.112554 | 0.138528 | 0.17316 | 0.614719 | 0.614719 | 0.614719 | 0.614719 | 0.614719 | 0.614719 | 0 | 0.01085 | 0.261682 | 749 | 34 | 65 | 22.029412 | 0.824593 | 0 | 0 | 0.666667 | 0 | 0 | 0.173333 | 0.149333 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0.041667 | 0.125 | 0.166667 | 0.875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
37cdfbfa4a1cf6507c5d0eaa7e03f1d20e789ee5 | 1,118 | py | Python | Bio/SearchIO/_index.py | rht/biopython | 3a44496d7bd79446266a4951b7d1f64569e4a96d | [
"BSD-3-Clause"
] | 3 | 2016-11-21T09:55:56.000Z | 2019-04-09T17:39:43.000Z | Bio/SearchIO/_index.py | rht/biopython | 3a44496d7bd79446266a4951b7d1f64569e4a96d | [
"BSD-3-Clause"
] | 32 | 2016-11-21T07:38:21.000Z | 2017-08-16T13:00:03.000Z | Bio/SearchIO/_index.py | rht/biopython | 3a44496d7bd79446266a4951b7d1f64569e4a96d | [
"BSD-3-Clause"
] | 8 | 2016-11-24T18:57:35.000Z | 2022-01-16T08:15:25.000Z | # Copyright 2012 by Wibowo Arindrarto. All rights reserved.
# Revisions copyright 2012-2016 by Peter Cock. All rights reserved.
#
# This file is part of the Biopython distribution and governed by your
# choice of the "Biopython License Agreement" or the "BSD 3-Clause License".
# Please see the LICENSE file that shoul... | 33.878788 | 76 | 0.744186 | 154 | 1,118 | 5.201299 | 0.525974 | 0.034956 | 0.042447 | 0.042447 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016304 | 0.177102 | 1,118 | 32 | 77 | 34.9375 | 0.854348 | 0.481216 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.333333 | 0.166667 | 0.833333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 4 |
37d50d40e0cb06e64724a35873908a5d029446e2 | 14,026 | py | Python | stratus-plot/workload/zipfian.py | gitferry/bamboo-stratus | e066dbdfe690478dd8fa94105eea7b4a1c9f4d58 | [
"MIT"
] | 1 | 2022-03-27T18:12:38.000Z | 2022-03-27T18:12:38.000Z | stratus-plot/workload/zipfian.py | gitferry/bamboo-stratus | e066dbdfe690478dd8fa94105eea7b4a1c9f4d58 | [
"MIT"
] | null | null | null | stratus-plot/workload/zipfian.py | gitferry/bamboo-stratus | e066dbdfe690478dd8fa94105eea7b4a1c9f4d58 | [
"MIT"
] | null | null | null | from cProfile import label
import matplotlib.pyplot as plt
import numpy as np
SMALL_SIZE = 14
MEDIUM_SIZE = 20
BIGGER_SIZE = 20
plt.rc('font', size=20) # controls default text sizes
plt.rc('axes', titlesize=20) # fontsize of the axes title
plt.rc('axes', labelsize=MEDIUM_SIZE) # fontsize of the x and ... | 120.913793 | 1,883 | 0.735563 | 2,767 | 14,026 | 3.68558 | 0.630647 | 0.006668 | 0.008335 | 0.004413 | 0.139243 | 0.111296 | 0.08786 | 0.061679 | 0.052952 | 0.052952 | 0 | 0.613808 | 0.054042 | 14,026 | 115 | 1,884 | 121.965217 | 0.154809 | 0.055468 | 0 | 0.101266 | 0 | 0 | 0.021711 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.012658 | false | 0 | 0.037975 | 0 | 0.050633 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
37ed37b35811117f98371c8d42bc523c1cb800a5 | 168 | py | Python | reddit2telegram/channels/r_cyberpunk2077/app.py | mainyordle/reddit2telegram | 1163e15aed3b6ff0fba65b222d3d9798f644c386 | [
"MIT"
] | 187 | 2016-09-20T09:15:54.000Z | 2022-03-29T12:22:33.000Z | reddit2telegram/channels/r_cyberpunk2077/app.py | mainyordle/reddit2telegram | 1163e15aed3b6ff0fba65b222d3d9798f644c386 | [
"MIT"
] | 84 | 2016-09-22T14:25:07.000Z | 2022-03-19T01:26:17.000Z | reddit2telegram/channels/r_cyberpunk2077/app.py | mainyordle/reddit2telegram | 1163e15aed3b6ff0fba65b222d3d9798f644c386 | [
"MIT"
] | 172 | 2016-09-21T15:39:39.000Z | 2022-03-16T15:15:58.000Z | #encoding:utf-8
subreddit = 'cyberpunkgame+LowSodiumCyberpunk'
t_channel = '@r_cyberpunk2077'
def send_post(submission, r2t):
return r2t.send_simple(submission)
| 18.666667 | 46 | 0.779762 | 20 | 168 | 6.35 | 0.85 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04698 | 0.113095 | 168 | 8 | 47 | 21 | 0.805369 | 0.083333 | 0 | 0 | 0 | 0 | 0.313725 | 0.20915 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0.25 | 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 | 1 | 0 | 0 | 0 | 4 |
5302911440c6f4a17e76a82630b084e48665fde1 | 55,777 | py | Python | lopper/vendor/lib/python3.8/site-packages/libfdt.py | devicetree-org/lopper | d9f1abb3595b18fe27eefdab1133270a481c546a | [
"BSD-3-Clause"
] | 12 | 2020-10-04T16:53:52.000Z | 2022-01-31T20:11:32.000Z | lopper/vendor/lib/python3.8/site-packages/libfdt.py | devicetree-org/lopper | d9f1abb3595b18fe27eefdab1133270a481c546a | [
"BSD-3-Clause"
] | 59 | 2020-06-08T17:43:12.000Z | 2022-03-31T13:36:04.000Z | lopper/vendor/lib/python3.8/site-packages/libfdt.py | devicetree-org/lopper | d9f1abb3595b18fe27eefdab1133270a481c546a | [
"BSD-3-Clause"
] | 15 | 2020-06-05T21:40:17.000Z | 2022-01-31T20:11:34.000Z | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 3.0.12
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info as _swig_python_version_info
if _swig_python_version_info >= (2, 7, 0):
def swig_im... | 33.479592 | 126 | 0.691163 | 7,755 | 55,777 | 4.610445 | 0.07234 | 0.078788 | 0.043212 | 0.011579 | 0.579991 | 0.461067 | 0.345052 | 0.259384 | 0.202327 | 0.156878 | 0 | 0.004535 | 0.236961 | 55,777 | 1,665 | 127 | 33.4997 | 0.83555 | 0.285763 | 0 | 0.162297 | 1 | 0 | 0.016803 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.23221 | false | 0.013733 | 0.024969 | 0.142322 | 0.525593 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
530eadafc0f389f987a99558c012178ceb46a3c2 | 12,794 | py | Python | python/tvm/meta_schedule/testing/conv2d_winograd_cuda.py | XiaoSong9905/tvm | 48940f697e15d5b50fa1f032003e6c700ae1e423 | [
"Apache-2.0"
] | 90 | 2021-11-30T11:58:10.000Z | 2022-03-31T02:24:04.000Z | python/tvm/meta_schedule/testing/conv2d_winograd_cuda.py | XiaoSong9905/tvm | 48940f697e15d5b50fa1f032003e6c700ae1e423 | [
"Apache-2.0"
] | 64 | 2021-11-22T23:58:23.000Z | 2022-03-31T03:19:22.000Z | python/tvm/meta_schedule/testing/conv2d_winograd_cuda.py | XiaoSong9905/tvm | 48940f697e15d5b50fa1f032003e6c700ae1e423 | [
"Apache-2.0"
] | 27 | 2021-12-09T22:39:27.000Z | 2022-03-24T23:21:48.000Z | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 73.528736 | 2,924 | 0.50977 | 2,268 | 12,794 | 2.727072 | 0.081129 | 0.186257 | 0.077607 | 0.155214 | 0.74325 | 0.716734 | 0.705255 | 0.664349 | 0.618755 | 0.605982 | 0 | 0.102503 | 0.275598 | 12,794 | 173 | 2,925 | 73.953757 | 0.564847 | 0.104815 | 0 | 0.226027 | 0 | 0 | 0.031308 | 0.013505 | 0 | 0 | 0 | 0 | 0 | 1 | 0.006849 | false | 0 | 0.006849 | 0 | 0.013699 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
531a305df80c17a54de7427e56aafaaa811d1c2c | 2,325 | py | Python | homura/callbacks/base.py | levelfour/homura | 3f3b880fa1347d3419b2941b8bf1347bee237751 | [
"Apache-2.0"
] | 1 | 2020-11-24T07:41:01.000Z | 2020-11-24T07:41:01.000Z | homura/callbacks/base.py | 983632847/homura | 81d9ffba3a8eb5172fc2bd08fec10e816138ef2e | [
"Apache-2.0"
] | null | null | null | homura/callbacks/base.py | 983632847/homura | 81d9ffba3a8eb5172fc2bd08fec10e816138ef2e | [
"Apache-2.0"
] | 1 | 2020-09-26T05:35:49.000Z | 2020-09-26T05:35:49.000Z | from abc import ABCMeta
from collections import ChainMap
from collections.abc import Mapping
from typing import Iterable
class Callback(metaclass=ABCMeta):
""" Base class of Callback class
"""
def before_iteration(self, data: Mapping) -> Mapping:
pass
def after_iteration(self, data: Mapping)... | 26.724138 | 77 | 0.63957 | 301 | 2,325 | 4.777409 | 0.219269 | 0.061196 | 0.114743 | 0.091794 | 0.478442 | 0.441586 | 0.422809 | 0.241307 | 0.05007 | 0 | 0 | 0 | 0.263656 | 2,325 | 86 | 78 | 27.034884 | 0.839953 | 0.053763 | 0 | 0.185185 | 0 | 0 | 0.029844 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0.148148 | 0.074074 | 0.111111 | 0.592593 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 4 |
534459229ea2ed9e06db3291a9478fecbfb46526 | 191 | py | Python | Libraries/TextoToVoiceInFile/Example.py | wisrovi/LibreriasPython | 1caf9a36f83e71fc5f3b1394b6fd73ddd45f006a | [
"MIT"
] | null | null | null | Libraries/TextoToVoiceInFile/Example.py | wisrovi/LibreriasPython | 1caf9a36f83e71fc5f3b1394b6fd73ddd45f006a | [
"MIT"
] | null | null | null | Libraries/TextoToVoiceInFile/Example.py | wisrovi/LibreriasPython | 1caf9a36f83e71fc5f3b1394b6fd73ddd45f006a | [
"MIT"
] | null | null | null | from Libraries.TextoToVoiceInFile.TextoToVoiceInFile import TextoToVoiceInFile
Emulador = TextoToVoiceInFile()
rutaArchivo = Emulador.convertTextToVoiceAndSaveFile("prueba", "Hola mundo") | 47.75 | 79 | 0.848168 | 14 | 191 | 11.571429 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.078534 | 191 | 4 | 80 | 47.75 | 0.920455 | 0 | 0 | 0 | 0 | 0 | 0.084656 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
5360a799fe5335bd5ba2e2e5d4d3a819d756ae2e | 108 | py | Python | coopihc/examples/basic_examples/inference_examples.py | jgori-ouistiti/CoopIHC | 0fe24c618a430517c1394625275faff3ce344f7f | [
"MIT"
] | null | null | null | coopihc/examples/basic_examples/inference_examples.py | jgori-ouistiti/CoopIHC | 0fe24c618a430517c1394625275faff3ce344f7f | [
"MIT"
] | 52 | 2021-11-23T13:49:50.000Z | 2022-03-15T12:28:18.000Z | coopihc/examples/basic_examples/inference_examples.py | jgori-ouistiti/CoopIHC | 0fe24c618a430517c1394625275faff3ce344f7f | [
"MIT"
] | 1 | 2022-03-08T11:10:24.000Z | 2022-03-08T11:10:24.000Z | from coopihc.inference.ExampleInferenceEngine import ExampleInferenceEngine
eie = ExampleInferenceEngine()
| 27 | 75 | 0.87963 | 8 | 108 | 11.875 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.074074 | 108 | 3 | 76 | 36 | 0.95 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
7268b91702e365863364a02d2adda1090802895a | 247 | py | Python | swachhbharat/images/views.py | avinassh/swach-bharat-backend | e0492ca0b6330cc8bac7d630fd6b690546990ab3 | [
"MIT"
] | null | null | null | swachhbharat/images/views.py | avinassh/swach-bharat-backend | e0492ca0b6330cc8bac7d630fd6b690546990ab3 | [
"MIT"
] | 1 | 2016-07-31T04:43:55.000Z | 2016-07-31T04:43:55.000Z | swachhbharat/images/views.py | avinassh/swach-bharat-backend | e0492ca0b6330cc8bac7d630fd6b690546990ab3 | [
"MIT"
] | 4 | 2016-07-28T17:41:05.000Z | 2016-11-10T04:00:17.000Z | from rest_framework import viewsets
from .models import Image
from .serializers import ImageSerializer
class ImageViewSet(viewsets.ModelViewSet):
queryset = Image.objects.all().order_by('-created_on')
serializer_class = ImageSerializer
| 24.7 | 58 | 0.801619 | 28 | 247 | 6.928571 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.125506 | 247 | 9 | 59 | 27.444444 | 0.898148 | 0 | 0 | 0 | 0 | 0 | 0.044534 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
72726cfc0ea309eb3922763495b67587a7efbac9 | 319 | py | Python | Control_Exp1001/demo/thickener_chinese/common/exp_name.py | y18810919727/Control_Exp1001 | f9fa0a46d838915de9c5f16c315c6c9eaba07f62 | [
"MIT"
] | 1 | 2019-01-03T01:38:50.000Z | 2019-01-03T01:38:50.000Z | Control_Exp1001/demo/thickener/common/exp_name.py | y18810919727/Control_Exp1001 | f9fa0a46d838915de9c5f16c315c6c9eaba07f62 | [
"MIT"
] | null | null | null | Control_Exp1001/demo/thickener/common/exp_name.py | y18810919727/Control_Exp1001 | f9fa0a46d838915de9c5f16c315c6c9eaba07f62 | [
"MIT"
] | 1 | 2019-09-15T14:33:40.000Z | 2019-09-15T14:33:40.000Z | #!/usr/bin/python
# -*- coding:utf8 -*-
import numpy as np
import math
import Control_Exp1001 as CE
import os
import json
EXP_NAME = "None"
def _init():
global EXP_NAME
EXP_NAME = "None"
def get_exp_name():
return EXP_NAME
def set_exp_name(new_exp_name):
global EXP_NAME
EXP_NAME = new_exp_name | 15.190476 | 31 | 0.708464 | 53 | 319 | 3.962264 | 0.471698 | 0.333333 | 0.104762 | 0.133333 | 0.319048 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019608 | 0.200627 | 319 | 21 | 32 | 15.190476 | 0.803922 | 0.112853 | 0 | 0.285714 | 0 | 0 | 0.028369 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.214286 | false | 0 | 0.357143 | 0.071429 | 0.642857 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
7291821f0fc665f7b18172efebd0c18a436b71a6 | 18 | py | Python | bot/__init__.py | diegorusso/discordbot | 528ab3738b9fe759d65b73f59de8e9cb64f0ac45 | [
"MIT"
] | null | null | null | bot/__init__.py | diegorusso/discordbot | 528ab3738b9fe759d65b73f59de8e9cb64f0ac45 | [
"MIT"
] | 2 | 2018-02-11T16:39:47.000Z | 2020-08-11T09:34:27.000Z | bot/__init__.py | diegorusso/discordbot | 528ab3738b9fe759d65b73f59de8e9cb64f0ac45 | [
"MIT"
] | 1 | 2018-02-11T19:42:04.000Z | 2018-02-11T19:42:04.000Z | """Bot module."""
| 9 | 17 | 0.5 | 2 | 18 | 4.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 18 | 1 | 18 | 18 | 0.5625 | 0.611111 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
72945239b679ef8c012970f952b63202ed89ab97 | 209 | py | Python | {{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/commands/database.py | drgarcia1986/cookiecutter-muffin | 7aa861787b4280477a726da99cf9de4047b01d91 | [
"MIT"
] | 3 | 2016-06-24T21:14:37.000Z | 2017-03-07T05:36:33.000Z | {{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/commands/database.py | drgarcia1986/cookiecutter-muffin | 7aa861787b4280477a726da99cf9de4047b01d91 | [
"MIT"
] | null | null | null | {{cookiecutter.repo_name}}/{{cookiecutter.repo_name}}/commands/database.py | drgarcia1986/cookiecutter-muffin | 7aa861787b4280477a726da99cf9de4047b01d91 | [
"MIT"
] | null | null | null | from .. import app
@app.manage.command
def create_db():
"""
Create all tables in configured database
"""
from ..users.models import User # noqa
app.ps.peewee.database.create_table(User)
| 19 | 45 | 0.669856 | 28 | 209 | 4.928571 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.215311 | 209 | 10 | 46 | 20.9 | 0.841463 | 0.220096 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | true | 0 | 0.4 | 0 | 0.6 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
72996d20dc32b2b36986e3f23cc9b678fd1f9c26 | 385 | py | Python | tests/conftest.py | patryk-playground/google_colab | 1b2fdfbae6c0d66a62838b4d759943032f9e5c1a | [
"MIT"
] | null | null | null | tests/conftest.py | patryk-playground/google_colab | 1b2fdfbae6c0d66a62838b4d759943032f9e5c1a | [
"MIT"
] | null | null | null | tests/conftest.py | patryk-playground/google_colab | 1b2fdfbae6c0d66a62838b4d759943032f9e5c1a | [
"MIT"
] | null | null | null | """ Pytest configuration tests fixtures and other helper methods """
import random
import pytest
from example.web.rest import Web
@pytest.fixture(scope="module")
def random_num():
"""Random int number
Yields:
int: return a random number from 1 to 9
"""
yield random.randint(1, 9)
@pytest.fi... | 17.5 | 68 | 0.662338 | 53 | 385 | 4.792453 | 0.584906 | 0.102362 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013333 | 0.220779 | 385 | 21 | 69 | 18.333333 | 0.833333 | 0.384416 | 0 | 0 | 0 | 0 | 0.029126 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.222222 | true | 0 | 0.333333 | 0 | 0.555556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 4 |
72b05891c89755fe6a9d5343acf71da4182caeab | 61 | py | Python | tests/__init__.py | leaprovenzano/yabump | ceab6ffdd36167e511c3bd7b6b064346e3ce3e2e | [
"MIT"
] | null | null | null | tests/__init__.py | leaprovenzano/yabump | ceab6ffdd36167e511c3bd7b6b064346e3ce3e2e | [
"MIT"
] | null | null | null | tests/__init__.py | leaprovenzano/yabump | ceab6ffdd36167e511c3bd7b6b064346e3ce3e2e | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
"""Unit test package for yabump."""
| 15.25 | 35 | 0.557377 | 8 | 61 | 4.25 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02 | 0.180328 | 61 | 3 | 36 | 20.333333 | 0.66 | 0.852459 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
72c62b15d13a11f0a6c26a8c64592fc98f630529 | 59 | py | Python | backend/chineseocr_lite/psenet/__init__.py | MrZilinXiao/Fighting-Meme-python-wechaty | 5fbd148635928ceb22fba7cf1a4880a0045a3764 | [
"Apache-2.0"
] | 6 | 2020-08-13T10:02:32.000Z | 2020-12-07T14:22:03.000Z | backend/chineseocr_lite/psenet/__init__.py | MrZilinXiao/Fighting-Meme-python-wechaty | 5fbd148635928ceb22fba7cf1a4880a0045a3764 | [
"Apache-2.0"
] | 3 | 2021-06-08T21:55:26.000Z | 2022-03-12T00:38:10.000Z | backend/chineseocr_lite/psenet/__init__.py | MrZilinXiao/python-wechaty-meme-bo | 5fbd148635928ceb22fba7cf1a4880a0045a3764 | [
"Apache-2.0"
] | 2 | 2020-08-19T02:34:01.000Z | 2020-12-07T06:54:04.000Z | from .model import PSENet
from .PSENET import PSENetHandel
| 19.666667 | 32 | 0.830508 | 8 | 59 | 6.125 | 0.625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.135593 | 59 | 2 | 33 | 29.5 | 0.960784 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
72e439c889786e746ca5954e04ccfe4554f59cff | 170 | py | Python | bench/benchmarks/__init__.py | TedrosGitHub/TSA-yatsm | 8e328f366c8fd94d5cc57cd2cc42080c43d1f391 | [
"MIT"
] | 59 | 2015-02-03T19:56:17.000Z | 2022-03-17T13:45:23.000Z | bench/benchmarks/__init__.py | TedrosGitHub/TSA-yatsm | 8e328f366c8fd94d5cc57cd2cc42080c43d1f391 | [
"MIT"
] | 97 | 2015-02-12T05:18:38.000Z | 2020-06-09T16:10:38.000Z | bench/benchmarks/__init__.py | TedrosGitHub/TSA-yatsm | 8e328f366c8fd94d5cc57cd2cc42080c43d1f391 | [
"MIT"
] | 35 | 2015-02-27T19:43:23.000Z | 2021-06-21T02:29:14.000Z | import os
# Fix OPENLBAS threads to 1
NP_THREAD_VARS = ['OPENBLAS_NUM_THREADS', 'MKL_NUM_THREADS', 'OPM_NUM_THREADS']
for ev in NP_THREAD_VARS:
os.environ[ev] = '1'
| 24.285714 | 79 | 0.741176 | 29 | 170 | 4 | 0.62069 | 0.258621 | 0.206897 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013793 | 0.147059 | 170 | 6 | 80 | 28.333333 | 0.786207 | 0.147059 | 0 | 0 | 0 | 0 | 0.356643 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
72fc7aa636af7d1969cc025df1b1dca3dcd5cb7e | 130 | py | Python | blindml/backend/search/preprocessing/transform.py | benclifford/blindml | ccb1d74f377bf474d84efe9bea5cda9e66daf3a5 | [
"MIT"
] | 1 | 2020-12-16T19:31:23.000Z | 2020-12-16T19:31:23.000Z | blindml/backend/search/preprocessing/transform.py | benclifford/blindml | ccb1d74f377bf474d84efe9bea5cda9e66daf3a5 | [
"MIT"
] | 3 | 2021-01-27T12:08:04.000Z | 2021-04-01T09:22:22.000Z | blindml/backend/search/preprocessing/transform.py | benclifford/blindml | ccb1d74f377bf474d84efe9bea5cda9e66daf3a5 | [
"MIT"
] | 1 | 2021-01-19T09:39:48.000Z | 2021-01-19T09:39:48.000Z | from sklearn.preprocessing import StandardScaler
def scale(X):
scaler = StandardScaler()
return scaler.fit_transform(X)
| 18.571429 | 48 | 0.761538 | 15 | 130 | 6.533333 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.161538 | 130 | 6 | 49 | 21.666667 | 0.899083 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 4 |
f42a3a093cbb748c7a447a2e6faf8c39ed92e60d | 64 | py | Python | tests/wasp1/AllAnswerSets/choice_3.test.py | bernardocuteri/wasp | 05c8f961776dbdbf7afbf905ee00fc262eba51ad | [
"Apache-2.0"
] | 19 | 2015-12-03T08:53:45.000Z | 2022-03-31T02:09:43.000Z | tests/wasp1/AllAnswerSets/choice_3.test.py | bernardocuteri/wasp | 05c8f961776dbdbf7afbf905ee00fc262eba51ad | [
"Apache-2.0"
] | 80 | 2017-11-25T07:57:32.000Z | 2018-06-10T19:03:30.000Z | tests/wasp1/AllAnswerSets/choice_3.test.py | bernardocuteri/wasp | 05c8f961776dbdbf7afbf905ee00fc262eba51ad | [
"Apache-2.0"
] | 6 | 2015-01-15T07:51:48.000Z | 2020-06-18T14:47:48.000Z | input = """
a v b.
a :- b.
b :- a.
"""
output = """
{a, b}
"""
| 6.4 | 12 | 0.3125 | 11 | 64 | 1.818182 | 0.454545 | 0.2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.3125 | 64 | 9 | 13 | 7.111111 | 0.454545 | 0 | 0 | 0.25 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
f43f55c1b88e46adbd742e438a0f60e7f445cdff | 44 | py | Python | jintaro/__init__.py | aisbergg/python-jintaro | 34445923ea66ab9c69865c3dbf1c2ce188cb6b52 | [
"MIT"
] | 1 | 2021-06-17T08:37:30.000Z | 2021-06-17T08:37:30.000Z | jintaro/__init__.py | aisbergg/python-jintaro | 34445923ea66ab9c69865c3dbf1c2ce188cb6b52 | [
"MIT"
] | null | null | null | jintaro/__init__.py | aisbergg/python-jintaro | 34445923ea66ab9c69865c3dbf1c2ce188cb6b52 | [
"MIT"
] | null | null | null | __version__ = "0.9.0"
__all__ = ["jintaro"]
| 14.666667 | 21 | 0.636364 | 6 | 44 | 3.333333 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.078947 | 0.136364 | 44 | 2 | 22 | 22 | 0.447368 | 0 | 0 | 0 | 0 | 0 | 0.272727 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
f45b0fd3ce82a976a62da2081e3a7e66b8621cba | 2,692 | py | Python | source/hsicbt/utils/color.py | choasma/HSIC-Bottleneck | 9f1fe2447592d61c0ba524aad0ff0820ae2ba9cb | [
"MIT"
] | 49 | 2019-12-05T03:03:43.000Z | 2022-02-23T13:12:02.000Z | source/hsicbt/utils/color.py | choasma/HSIC-Bottleneck | 9f1fe2447592d61c0ba524aad0ff0820ae2ba9cb | [
"MIT"
] | 10 | 2020-04-02T22:22:02.000Z | 2020-12-19T04:36:27.000Z | source/hsicbt/utils/color.py | choasma/HSIC-Bottleneck | 9f1fe2447592d61c0ba524aad0ff0820ae2ba9cb | [
"MIT"
] | 18 | 2020-01-18T00:17:11.000Z | 2022-01-13T10:07:55.000Z |
TEXT_BLACK = "\033[0;30;40m"
TEXT_RED = "\033[1;31;40m"
TEXT_GREEN = "\033[1;32;40m"
TEXT_YELLOW = "\033[1;33;40m"
TEXT_WHITE = "\033[1;37;40m"
TEXT_BLUE = "\033[1;34;40m"
TEXT_RESET = "\033[0;0m"
def get_color(ctype):
if ctype == 'yellow':
color = TEXT_YELLOW
elif ctype == 'green':
colo... | 48.945455 | 167 | 0.540119 | 451 | 2,692 | 3.179601 | 0.144124 | 0.066946 | 0.066946 | 0.069038 | 0.211994 | 0.10251 | 0.10251 | 0.10251 | 0.072524 | 0.072524 | 0 | 0.288452 | 0.282689 | 2,692 | 55 | 168 | 48.945455 | 0.454169 | 0 | 0 | 0 | 0 | 0.2 | 0.656018 | 0.020059 | 0 | 0 | 0 | 0 | 0 | 1 | 0.088889 | false | 0.022222 | 0 | 0 | 0.111111 | 0.444444 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 4 |
be61cd85c0718bafefa586198c4d1c55c7fe54b4 | 229 | py | Python | FTSensor/pybind11-master/tests/test_embed/test_interpreter.py | yanglh14/InteractiveGrasping | b5bc1866a1847e7b0c11616fd6cbe949c64a355b | [
"MIT"
] | 3 | 2021-04-14T08:24:40.000Z | 2021-11-04T04:10:19.000Z | FTSensor/pybind11-master/tests/test_embed/test_interpreter.py | yanglh14/InteractiveGrasping | b5bc1866a1847e7b0c11616fd6cbe949c64a355b | [
"MIT"
] | null | null | null | FTSensor/pybind11-master/tests/test_embed/test_interpreter.py | yanglh14/InteractiveGrasping | b5bc1866a1847e7b0c11616fd6cbe949c64a355b | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from widget_module import Widget
class DerivedWidget(Widget):
def __init__(self, message):
super(DerivedWidget, self).__init__(message)
def the_answer(self):
return 42
| 20.818182 | 53 | 0.641921 | 26 | 229 | 5.269231 | 0.692308 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017442 | 0.248908 | 229 | 10 | 54 | 22.9 | 0.77907 | 0.091703 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 0 | 0.166667 | 0.166667 | 0.833333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
be7a7dc4eb0aaf6ad210a083db27ca5483b7cd09 | 71 | py | Python | helloworld.py | Xponential11/Python | 7e88f1a5609666891f73c949888b9f5426cc9670 | [
"Unlicense"
] | null | null | null | helloworld.py | Xponential11/Python | 7e88f1a5609666891f73c949888b9f5426cc9670 | [
"Unlicense"
] | null | null | null | helloworld.py | Xponential11/Python | 7e88f1a5609666891f73c949888b9f5426cc9670 | [
"Unlicense"
] | null | null | null | print("Hello World")
a =5
b = 6
sum = a+b
print(sum)
print(sum -11)
| 7.888889 | 20 | 0.591549 | 15 | 71 | 2.8 | 0.6 | 0.380952 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.072727 | 0.225352 | 71 | 8 | 21 | 8.875 | 0.690909 | 0 | 0 | 0 | 0 | 0 | 0.157143 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 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 | 1 | 0 | 4 |
be8132a5c9db91f9b49e8e50a12b1137e2410bb2 | 1,473 | py | Python | tests/test_models/test_user.py | yonizbrown/AirBnB_clone | 91d7018d88d67e1fccb44d8c031be4b348895cee | [
"MIT"
] | null | null | null | tests/test_models/test_user.py | yonizbrown/AirBnB_clone | 91d7018d88d67e1fccb44d8c031be4b348895cee | [
"MIT"
] | 18 | 2019-11-07T17:51:09.000Z | 2019-11-15T15:03:04.000Z | tests/test_models/test_user.py | yonizbrown/AirBnB_clone | 91d7018d88d67e1fccb44d8c031be4b348895cee | [
"MIT"
] | 3 | 2019-11-13T23:55:53.000Z | 2022-02-08T14:40:59.000Z | #!/usr/bin/python3
"""
Unittest for user.py
"""
import unittest
from models.user import User
import datetime
class UserCase(unittest.TestCase):
"""Tests instances and methods from user class"""
u = User()
def test_class_exists(self):
"""tests if class exists"""
self.assertEqual(str(type(... | 32.733333 | 73 | 0.66463 | 187 | 1,473 | 5.122995 | 0.294118 | 0.083507 | 0.200418 | 0.208768 | 0.352818 | 0.129436 | 0 | 0 | 0 | 0 | 0 | 0.000849 | 0.200272 | 1,473 | 44 | 74 | 33.477273 | 0.812394 | 0.152749 | 0 | 0 | 0 | 0 | 0.072428 | 0 | 0 | 0 | 0 | 0 | 0.592593 | 1 | 0.148148 | false | 0.074074 | 0.111111 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
be98ae882d33e83c90d696d1faa3eb5b7e8a4998 | 105 | py | Python | tests/ichild.py | akalsi87/curio | 91fc337c5db609455b3ab375ca179efe305a527f | [
"BSD-3-Clause"
] | 1 | 2017-10-11T07:15:15.000Z | 2017-10-11T07:15:15.000Z | tests/ichild.py | akalsi87/curio | 91fc337c5db609455b3ab375ca179efe305a527f | [
"BSD-3-Clause"
] | 2 | 2018-02-01T02:54:17.000Z | 2018-06-14T03:18:51.000Z | tests/ichild.py | akalsi87/curio | 91fc337c5db609455b3ab375ca179efe305a527f | [
"BSD-3-Clause"
] | null | null | null | # ichild.py
import sys
for lineno, line in enumerate(sys.stdin, start=1):
pass
print(lineno)
| 10.5 | 50 | 0.666667 | 16 | 105 | 4.375 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012346 | 0.228571 | 105 | 9 | 51 | 11.666667 | 0.851852 | 0.085714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.25 | 0.25 | 0 | 0.25 | 0.25 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 4 |
bea745eab8a2616cce54bb9368e407e87ed1f031 | 154 | py | Python | search/urls.py | bennylope/ciafactbook | 9261b8f42986e2c5b66f1965bf2fa62cc90184fd | [
"BSD-2-Clause"
] | 5 | 2015-04-16T11:19:47.000Z | 2015-10-24T01:05:25.000Z | search/urls.py | bennylope/ciafactbook | 9261b8f42986e2c5b66f1965bf2fa62cc90184fd | [
"BSD-2-Clause"
] | null | null | null | search/urls.py | bennylope/ciafactbook | 9261b8f42986e2c5b66f1965bf2fa62cc90184fd | [
"BSD-2-Clause"
] | null | null | null | from django.conf.urls import patterns, url
from .views import search
urlpatterns = patterns('',
url(r'^$', view=search, name='factbook_search'),
)
| 17.111111 | 52 | 0.701299 | 20 | 154 | 5.35 | 0.7 | 0.205607 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.149351 | 154 | 8 | 53 | 19.25 | 0.816794 | 0 | 0 | 0 | 0 | 0 | 0.11039 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.4 | 0 | 0.4 | 0 | 1 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 4 |
beb419d27d1ccd2087a8af0ce81dea4ea7addfcc | 3,960 | py | Python | archive/classifiers/data_set.py | FloFincke/affective-chat | 241c2b555541968f7e5e70b022fdb71102aed510 | [
"MIT"
] | null | null | null | archive/classifiers/data_set.py | FloFincke/affective-chat | 241c2b555541968f7e5e70b022fdb71102aed510 | [
"MIT"
] | 10 | 2020-01-28T22:17:46.000Z | 2022-02-09T23:30:57.000Z | archive/classifiers/data_set.py | FloFincke/affective-chat | 241c2b555541968f7e5e70b022fdb71102aed510 | [
"MIT"
] | null | null | null | import glob
import pandas as pd
from itertools import groupby
from operator import itemgetter
import numpy as np
import random
def produce_data_set(path):
data_sets_files = glob.glob(path)
data_set = (pd.concat((pd.read_csv(f, sep=';', header=0) for f in data_sets_files))).values
# print(data_set[3])
... | 27.692308 | 95 | 0.626263 | 636 | 3,960 | 3.611635 | 0.11478 | 0.109708 | 0.039182 | 0.028733 | 0.762734 | 0.743143 | 0.715281 | 0.715281 | 0.666522 | 0.629952 | 0 | 0.021782 | 0.234848 | 3,960 | 142 | 96 | 27.887324 | 0.736304 | 0.299747 | 0 | 0.4 | 0 | 0 | 0.001834 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.1 | 0 | 0.233333 | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 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 | 4 |
fe2653a60475c4086e297dbee138aca2dfa390dd | 51 | py | Python | runway/templates/k8s-tf-repo/gen-kubeconfig.cfn/k8s_hooks/__init__.py | paul-duffy/runway | a0c22eb7ca7b55df5317bdda92c08c4bb39569d2 | [
"Apache-2.0"
] | 134 | 2018-02-26T21:35:23.000Z | 2022-03-03T00:30:27.000Z | runway/templates/k8s-tf-repo/gen-kubeconfig.cfn/k8s_hooks/__init__.py | asksmruti/runway | 8aca76df9372e3d13eb35e12f81758f618e89e74 | [
"Apache-2.0"
] | 937 | 2018-03-08T22:04:35.000Z | 2022-03-30T12:21:47.000Z | runway/templates/k8s-tf-repo/gen-kubeconfig.cfn/k8s_hooks/__init__.py | asksmruti/runway | 8aca76df9372e3d13eb35e12f81758f618e89e74 | [
"Apache-2.0"
] | 70 | 2018-02-26T23:48:11.000Z | 2022-03-02T18:44:30.000Z | """Empty init file for python import traversal."""
| 25.5 | 50 | 0.72549 | 7 | 51 | 5.285714 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137255 | 51 | 1 | 51 | 51 | 0.840909 | 0.862745 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 4 |
fe2d00f11cb4861f69f4dd4d2aba9ec6fca9b83c | 337 | py | Python | dandeliondiary/compare/templatetags/compare_extras.py | amberdiehl/dandeliondiary_project | e9bace5bd7980def6ca763840ab5b38f1e05cd3d | [
"FSFAP"
] | null | null | null | dandeliondiary/compare/templatetags/compare_extras.py | amberdiehl/dandeliondiary_project | e9bace5bd7980def6ca763840ab5b38f1e05cd3d | [
"FSFAP"
] | 6 | 2020-04-29T23:54:15.000Z | 2022-03-11T23:25:24.000Z | dandeliondiary/compare/templatetags/compare_extras.py | amberdiehl/dandeliondiary_project | e9bace5bd7980def6ca763840ab5b38f1e05cd3d | [
"FSFAP"
] | null | null | null | from django import template
register = template.Library()
# Returns dictionary value; usage: {{ mydict|get_item:item.NAME }}
@register.filter
def get_item(dictionary, key):
return dictionary.get(key)
# Returns array value adjusting index by -1 to assume template loop
@register.filter
def get_index(d, key):
... | 21.0625 | 67 | 0.744807 | 49 | 337 | 5.061224 | 0.55102 | 0.056452 | 0.137097 | 0.16129 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007018 | 0.154303 | 337 | 15 | 68 | 22.466667 | 0.863158 | 0.385757 | 0 | 0.25 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.125 | 0.25 | 0.625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.