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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
68b74c13aa2276f42386e385f34a0bbb9009ebfe | 210 | py | Python | trampolino/__init__.py | matteomancini/trampolino | af904844404f97c49e0452527b01fd9f415677ba | [
"MIT"
] | 3 | 2020-06-17T09:25:22.000Z | 2021-06-22T23:16:53.000Z | trampolino/__init__.py | matteomancini/trampolino | af904844404f97c49e0452527b01fd9f415677ba | [
"MIT"
] | 1 | 2020-06-26T08:47:01.000Z | 2020-07-21T14:02:40.000Z | trampolino/__init__.py | matteomancini/trampolino | af904844404f97c49e0452527b01fd9f415677ba | [
"MIT"
] | 3 | 2020-06-16T11:55:50.000Z | 2020-11-25T01:37:17.000Z | # -*- coding: utf-8 -*-
"""Top-level package for Tractography Meta-Pipeline Command Line Tool (TRAMPOLINO)."""
__author__ = """Matteo Mancini"""
__email__ = 'ingmatteomancini@gmail.com'
__version__ = '0.1.9'
| 26.25 | 86 | 0.7 | 25 | 210 | 5.4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.021739 | 0.12381 | 210 | 7 | 87 | 30 | 0.711957 | 0.490476 | 0 | 0 | 0 | 0 | 0.445545 | 0.257426 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
68bd351718db1fa4aa791850b81f6102d0eaa5af | 242 | py | Python | welut_demo/app/admin.py | agusmakmun/welut | ee176b51d4637691a616a17eb0491c933211799a | [
"MIT"
] | 6 | 2017-11-17T10:34:27.000Z | 2022-01-06T14:17:23.000Z | welut_demo/app/admin.py | agusmakmun/welut | ee176b51d4637691a616a17eb0491c933211799a | [
"MIT"
] | 2 | 2017-12-06T14:40:31.000Z | 2020-08-15T10:41:11.000Z | welut_demo/app/admin.py | agusmakmun/welut | ee176b51d4637691a616a17eb0491c933211799a | [
"MIT"
] | 7 | 2017-11-13T20:47:05.000Z | 2020-06-04T03:20:13.000Z | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.contrib import admin
from app.models import EBook
class EbookAdmin(admin.ModelAdmin):
raw_id_fields = ['ebook_file']
admin.site.register(EBook, EbookAdmin)
| 17.285714 | 39 | 0.756198 | 32 | 242 | 5.46875 | 0.71875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004808 | 0.140496 | 242 | 13 | 40 | 18.615385 | 0.836538 | 0.086777 | 0 | 0 | 0 | 0 | 0.045662 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.5 | 0 | 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 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
68bdc4c0b6f174517fe0db4eaa6dd654aa09ddfc | 209 | py | Python | dm2bn/__init__.py | DCOD-OpenSource/django-messages-to-bootstrap-notify | 8d9f60dc1111961984bc33f1ec0efc3265c5c7a8 | [
"MIT"
] | 11 | 2017-05-16T15:22:13.000Z | 2019-02-13T21:43:13.000Z | dm2bn/__init__.py | DCOD-OpenSource/django-messages-to-bootstrap-notify | 8d9f60dc1111961984bc33f1ec0efc3265c5c7a8 | [
"MIT"
] | null | null | null | dm2bn/__init__.py | DCOD-OpenSource/django-messages-to-bootstrap-notify | 8d9f60dc1111961984bc33f1ec0efc3265c5c7a8 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# django-messages-to-bootstrap-notify
# dm2bn/__init__.py
from __future__ import unicode_literals
__all__ = [
"default_app_config",
]
default_app_config = "dm2bn.apps.Config"
| 13.933333 | 40 | 0.717703 | 26 | 209 | 5.115385 | 0.807692 | 0.150376 | 0.240602 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016854 | 0.148325 | 209 | 14 | 41 | 14.928571 | 0.730337 | 0.358852 | 0 | 0 | 0 | 0 | 0.269231 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 1 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
68d66d2618332f95369f465a3be1e10a223c535f | 1,556 | py | Python | ProjectApplication/project_core/filters.py | code-review-doctor/project-application | d85b40b69572efbcda24ce9c40803f76d8ffd192 | [
"MIT"
] | null | null | null | ProjectApplication/project_core/filters.py | code-review-doctor/project-application | d85b40b69572efbcda24ce9c40803f76d8ffd192 | [
"MIT"
] | null | null | null | ProjectApplication/project_core/filters.py | code-review-doctor/project-application | d85b40b69572efbcda24ce9c40803f76d8ffd192 | [
"MIT"
] | null | null | null | from functools import reduce
from operator import or_
from django.db.models import Q
from django_filters.rest_framework import CharFilter, FilterSet
from project_core.models import Project
class ProjectFilterSet(FilterSet):
key_any = CharFilter(method='filter_any', label="Key, Title, Keyword, PI, Lay summary or... | 39.897436 | 113 | 0.732648 | 184 | 1,556 | 5.820652 | 0.36413 | 0.05042 | 0.082166 | 0.078431 | 0.114846 | 0.114846 | 0.114846 | 0 | 0 | 0 | 0 | 0 | 0.17545 | 1,556 | 38 | 114 | 40.947368 | 0.834762 | 0 | 0 | 0 | 0 | 0 | 0.235861 | 0.115039 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.178571 | 0.107143 | 0.678571 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
68dceef9e17ce3214519730ed94a8ee6e47a04f0 | 2,335 | py | Python | quote_bot/settings.py | civsocit/quote-bot | 88d8161e93a8b855f984931c412f70bac12f2286 | [
"MIT"
] | 1 | 2021-09-27T05:11:37.000Z | 2021-09-27T05:11:37.000Z | quote_bot/settings.py | civsocit/quote-bot | 88d8161e93a8b855f984931c412f70bac12f2286 | [
"MIT"
] | null | null | null | quote_bot/settings.py | civsocit/quote-bot | 88d8161e93a8b855f984931c412f70bac12f2286 | [
"MIT"
] | null | null | null | import os
from os.path import abspath, dirname, join
from typing import Tuple
from dotenv import load_dotenv
load_dotenv()
class BotSettings:
@classmethod
def token(cls) -> str:
token = os.getenv("TOKEN")
if not token:
raise ValueError("Token must be specified (missing .env file ... | 27.151163 | 114 | 0.634261 | 310 | 2,335 | 4.651613 | 0.36129 | 0.15534 | 0.030513 | 0.038835 | 0.332871 | 0.305132 | 0.305132 | 0.262136 | 0.165049 | 0.165049 | 0 | 0.062354 | 0.265096 | 2,335 | 85 | 115 | 27.470588 | 0.777972 | 0.077088 | 0 | 0.295082 | 0 | 0 | 0.110284 | 0.021871 | 0 | 0 | 0.022336 | 0 | 0 | 1 | 0.262295 | false | 0 | 0.065574 | 0.229508 | 0.622951 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
68e1a458c31e0c524390fe908d2955573ee29cfe | 78,246 | py | Python | cfdi/cfdi/doctype/cfdi/cfdi.py | dacosta2213/cfdi | d383940cb1b333207fce9c2e70d55907dd441ca1 | [
"MIT"
] | null | null | null | cfdi/cfdi/doctype/cfdi/cfdi.py | dacosta2213/cfdi | d383940cb1b333207fce9c2e70d55907dd441ca1 | [
"MIT"
] | null | null | null | cfdi/cfdi/doctype/cfdi/cfdi.py | dacosta2213/cfdi | d383940cb1b333207fce9c2e70d55907dd441ca1 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Copyright (c) 2015, C0D1G0 B1NAR10 and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe
from frappe.model.document import Document
from frappe.utils.file_manager import save_url
from frappe.model.mapper import get_map... | 52.62004 | 490 | 0.60867 | 8,445 | 78,246 | 5.546004 | 0.088336 | 0.009181 | 0.024981 | 0.016739 | 0.735908 | 0.715774 | 0.697348 | 0.672794 | 0.63701 | 0.616748 | 0 | 0.016867 | 0.216535 | 78,246 | 1,486 | 491 | 52.655451 | 0.747141 | 0.082624 | 0 | 0.609091 | 0 | 0.052066 | 0.381515 | 0.122358 | 0 | 0 | 0 | 0.000673 | 0 | 1 | 0.014876 | false | 0.004132 | 0.069421 | 0 | 0.1 | 0.047107 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
68f14d10051a68fe80a35af7b3706b88c9b1de8b | 538 | py | Python | analysis/parallel/__init__.py | lconaboy/seren3 | 5a2ec80adf0d69664d2ee874f5ba12cc02d6c337 | [
"CNRI-Python"
] | 1 | 2017-09-21T14:58:23.000Z | 2017-09-21T14:58:23.000Z | analysis/parallel/__init__.py | lconaboy/seren3 | 5a2ec80adf0d69664d2ee874f5ba12cc02d6c337 | [
"CNRI-Python"
] | 1 | 2020-09-09T08:52:43.000Z | 2020-09-09T08:52:43.000Z | analysis/parallel/__init__.py | lconaboy/seren3 | 5a2ec80adf0d69664d2ee874f5ba12cc02d6c337 | [
"CNRI-Python"
] | 1 | 2019-01-21T10:57:41.000Z | 2019-01-21T10:57:41.000Z | class Result(object):
'''
Simple wrapper object to contain result of single iteration MPI computation
'''
def __init__(self, rank, idx):
self.rank = rank
self.idx = idx
self.result = None
def __repr__(self):
return "rank: %d idx: %s result: %s" % (self.rank, self.idx... | 26.9 | 81 | 0.607807 | 69 | 538 | 4.449275 | 0.376812 | 0.162866 | 0.071661 | 0.123779 | 0.254072 | 0.254072 | 0.254072 | 0.254072 | 0 | 0 | 0 | 0 | 0.27881 | 538 | 20 | 82 | 26.9 | 0.791237 | 0.139405 | 0 | 0 | 0 | 0 | 0.060268 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.384615 | false | 0 | 0 | 0.307692 | 0.769231 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
68f45ae803ebba062da6775e6b5c1f8ffa99fc56 | 5,020 | py | Python | yrest/auth.py | Garito/python-yrest | e31b5e02a2e460db738cc0a21e09255c0a71e40f | [
"MIT"
] | null | null | null | yrest/auth.py | Garito/python-yrest | e31b5e02a2e460db738cc0a21e09255c0a71e40f | [
"MIT"
] | null | null | null | yrest/auth.py | Garito/python-yrest | e31b5e02a2e460db738cc0a21e09255c0a71e40f | [
"MIT"
] | null | null | null | from os import urandom
from binascii import hexlify
from hashlib import pbkdf2_hmac
from secrets import compare_digest
from typing import Any, List, Tuple, Dict, Union
from datetime import datetime, timedelta
from dataclasses import dataclass, field
from uuid import UUID, uuid4
from bson import ObjectId
import jwt
... | 38.615385 | 198 | 0.726693 | 641 | 5,020 | 5.616225 | 0.277691 | 0.023333 | 0.03 | 0.035556 | 0.209444 | 0.152222 | 0.151111 | 0.104444 | 0.104444 | 0.104444 | 0 | 0.009474 | 0.158964 | 5,020 | 129 | 199 | 38.914729 | 0.843202 | 0.004781 | 0 | 0.136842 | 0 | 0.031579 | 0.119245 | 0.015761 | 0 | 0 | 0 | 0 | 0 | 1 | 0.073684 | false | 0.2 | 0.189474 | 0.021053 | 0.589474 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
68fab79f7a6200663e48015d71df80c194f90e0b | 261 | py | Python | volume/config.py | Napam/apartmentscience | 2724b94a9f00617c8f18994b07ee125c6d89d188 | [
"Apache-2.0"
] | null | null | null | volume/config.py | Napam/apartmentscience | 2724b94a9f00617c8f18994b07ee125c6d89d188 | [
"Apache-2.0"
] | null | null | null | volume/config.py | Napam/apartmentscience | 2724b94a9f00617c8f18994b07ee125c6d89d188 | [
"Apache-2.0"
] | null | null | null | import pathlib
import configparser
_alembicConfig = configparser.ConfigParser()
_alembicConfig.read("alembic.ini")
SQL_ADDRESS = _alembicConfig["alembic"]["sqlalchemy.url"]
TMP_DIR = pathlib.Path("data") / "tmp"
FINN_URL = "https://www.finn.no/api/search-qf"
| 26.1 | 57 | 0.766284 | 32 | 261 | 6.0625 | 0.6875 | 0.257732 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.08046 | 261 | 9 | 58 | 29 | 0.808333 | 0 | 0 | 0 | 0 | 0 | 0.275862 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ec1d8e3dcc329b431051594eadc0219aca2fd48e | 1,248 | py | Python | dezirteer/const.py | dazdraperma/dezirteer | d46997b50c5e885e45950f65755147bdcbdb08f0 | [
"MIT"
] | 3 | 2021-07-18T19:25:37.000Z | 2021-11-26T06:44:48.000Z | dezirteer/const.py | dazdraperma/dezirteer | d46997b50c5e885e45950f65755147bdcbdb08f0 | [
"MIT"
] | 1 | 2018-09-04T09:58:36.000Z | 2018-09-04T09:58:36.000Z | dezirteer/const.py | dazdraperma/dezirteer | d46997b50c5e885e45950f65755147bdcbdb08f0 | [
"MIT"
] | 3 | 2018-08-27T05:55:34.000Z | 2021-07-20T07:22:45.000Z | LAMBDA_232 = 4.934E-11#Amelin and Zaitsev, 2002.
# LAMBDA_232 = 4.9475E-11 #old value, used in isoplot
ERR_LAMBDA_232 = 0.015E-11#Amelin and Zaitsev, 2002.
LAMBDA_235 = 9.8485E-10
#ERR_LAMBDA_235 =
LAMBDA_238 = 1.55125E-10
#ERR_LAMBDA_238 =
U238_U235 = 137.817 #https://doi.org/10.1016/j.gca.2018.06.014
# U238_U235 =... | 32.842105 | 75 | 0.591346 | 170 | 1,248 | 4.164706 | 0.435294 | 0.050847 | 0.028249 | 0.050847 | 0.231638 | 0.231638 | 0.084746 | 0.084746 | 0.084746 | 0.084746 | 0 | 0.301179 | 0.252404 | 1,248 | 37 | 76 | 33.72973 | 0.457663 | 0.209135 | 0 | 0 | 0 | 0 | 0.366154 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ec369abeb37de118e09d34e4d3793bbe34def6d9 | 253 | py | Python | setup.py | jaycedowell/mnc_python | bc378ccc9a6cfaf76691122f072366b13e6ef092 | [
"BSD-3-Clause"
] | 2 | 2021-08-12T18:18:11.000Z | 2021-12-02T07:58:51.000Z | setup.py | jaycedowell/mnc_python | bc378ccc9a6cfaf76691122f072366b13e6ef092 | [
"BSD-3-Clause"
] | 1 | 2021-12-15T18:51:14.000Z | 2021-12-15T18:51:14.000Z | setup.py | jaycedowell/mnc_python | bc378ccc9a6cfaf76691122f072366b13e6ef092 | [
"BSD-3-Clause"
] | 1 | 2021-12-03T15:05:00.000Z | 2021-12-03T15:05:00.000Z | from setuptools import setup
from version import get_git_version
setup(name='mnc-python',
version=get_git_version(),
url='http://github.com/ovro-lwa/mnc-python',
requirements=['astropy'],
packages=['mnc'],
zip_safe=False)
| 25.3 | 50 | 0.679842 | 33 | 253 | 5.060606 | 0.666667 | 0.071856 | 0.155689 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.177866 | 253 | 9 | 51 | 28.111111 | 0.802885 | 0 | 0 | 0 | 0 | 0 | 0.225296 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
ec3a14c6144d721e7cea158c139c26dd612c2161 | 6,668 | py | Python | src/franz/openrdf/model/value.py | franzinc/agraph-python | 9186f19094af0be1daec273270888eadf9a68300 | [
"MIT"
] | 25 | 2015-11-05T03:43:30.000Z | 2022-03-09T07:19:09.000Z | src/franz/openrdf/model/value.py | franzinc/agraph-python | 9186f19094af0be1daec273270888eadf9a68300 | [
"MIT"
] | 14 | 2017-07-18T20:41:26.000Z | 2021-10-13T04:57:36.000Z | src/franz/openrdf/model/value.py | franzinc/agraph-python | 9186f19094af0be1daec273270888eadf9a68300 | [
"MIT"
] | 8 | 2016-12-09T02:38:45.000Z | 2020-10-12T07:59:17.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# pylint: disable-msg=C0103
################################################################################
# Copyright (c) 2006-2017 Franz Inc.
# All rights reserved. This program and the accompanying materials are
# made available under the terms of the MIT License w... | 26.14902 | 114 | 0.580834 | 815 | 6,668 | 4.554601 | 0.265031 | 0.025862 | 0.02667 | 0.016164 | 0.27236 | 0.256735 | 0.236261 | 0.190194 | 0.163793 | 0.155711 | 0 | 0.005554 | 0.29799 | 6,668 | 254 | 115 | 26.251969 | 0.787439 | 0.226455 | 0 | 0.226563 | 0 | 0 | 0.032688 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.265625 | false | 0.007813 | 0.0625 | 0.09375 | 0.679688 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
6b79a8d3d15995a2a48974a4be33fc7c2168a05d | 616 | py | Python | app/main/model/deal_investor.py | luke-truitt/room40-underground | 174f57e0aa4b04bb7c983e10aaf4f4af6589d478 | [
"MIT"
] | null | null | null | app/main/model/deal_investor.py | luke-truitt/room40-underground | 174f57e0aa4b04bb7c983e10aaf4f4af6589d478 | [
"MIT"
] | null | null | null | app/main/model/deal_investor.py | luke-truitt/room40-underground | 174f57e0aa4b04bb7c983e10aaf4f4af6589d478 | [
"MIT"
] | 1 | 2021-07-21T13:36:13.000Z | 2021-07-21T13:36:13.000Z | from .. import db, flask_bcrypt
import datetime
import jwt
from app.main.model.blacklist import BlacklistToken
from ..config import key
class DealInvestor(db.Model):
""" DealInvestor Model is used to link deals to their respective investors """
__tablename__ = "deal_investor"
id = db.Column(db.Integer, pr... | 36.235294 | 82 | 0.733766 | 87 | 616 | 5.068966 | 0.482759 | 0.108844 | 0.136054 | 0.154195 | 0.306122 | 0.219955 | 0.14059 | 0 | 0 | 0 | 0 | 0.011429 | 0.147727 | 616 | 16 | 83 | 38.5 | 0.828571 | 0.113636 | 0 | 0 | 0 | 0 | 0.055762 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.384615 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
6b80b87f8ee4f931305c1464b4141765f243a780 | 642 | py | Python | py-lesson/HW4/Q3.py | jessie-233/python-exercise | 097f60978d316a7380e85686e0403cdf1ac482e9 | [
"MIT"
] | null | null | null | py-lesson/HW4/Q3.py | jessie-233/python-exercise | 097f60978d316a7380e85686e0403cdf1ac482e9 | [
"MIT"
] | 1 | 2020-10-01T13:52:54.000Z | 2020-10-01T13:54:37.000Z | py-lesson/HW4/Q3.py | jessie-233/python-exercise | 097f60978d316a7380e85686e0403cdf1ac482e9 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
# In[1]:
days_dict = {1:31, 2:29, 3:31, 4:30, 5:31, 6:30, 7:31,8:31, 9:30, 10:31, 11:30, 12:31}
start_week = {1:3, 2:6, 3:0, 4:3, 5:5, 6:1, 7:3, 8:6, 9:2, 10:4, 11:0, 12:2}
with open('Q3-output.txt', 'w') as f:
for i in range(1,13):
print('\n\n\t\t\t%d月'%i, file = f)... | 23.777778 | 86 | 0.457944 | 134 | 642 | 2.156716 | 0.410448 | 0.086505 | 0.062284 | 0.062284 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.168142 | 0.29595 | 642 | 26 | 87 | 24.692308 | 0.471239 | 0.074766 | 0 | 0 | 0 | 0 | 0.088737 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.416667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
6b81d7df4138d109227c296d3f36cc5b8c75cc78 | 17,615 | py | Python | tests/test_hvactemplatesystempackagedvav.py | marcelosalles/pyidf | c2f744211572b5e14e29522aac1421ba88addb0e | [
"Apache-2.0"
] | 19 | 2015-12-08T23:33:51.000Z | 2022-01-31T04:41:10.000Z | tests/test_hvactemplatesystempackagedvav.py | marcelosalles/pyidf | c2f744211572b5e14e29522aac1421ba88addb0e | [
"Apache-2.0"
] | 2 | 2019-10-04T10:57:00.000Z | 2021-10-01T06:46:17.000Z | tests/test_hvactemplatesystempackagedvav.py | marcelosalles/pyidf | c2f744211572b5e14e29522aac1421ba88addb0e | [
"Apache-2.0"
] | 7 | 2015-11-04T02:25:01.000Z | 2021-12-08T03:14:28.000Z | import os
import tempfile
import unittest
import logging
from pyidf import ValidationLevel
import pyidf
from pyidf.idf import IDF
from pyidf.hvac_templates import HvactemplateSystemPackagedVav
log = logging.getLogger(__name__)
class TestHvactemplateSystemPackagedVav(unittest.TestCase):
def setUp(self):
s... | 65.240741 | 167 | 0.795572 | 2,052 | 17,615 | 6.295809 | 0.069688 | 0.155275 | 0.159842 | 0.127719 | 0.888304 | 0.786903 | 0.680161 | 0.55848 | 0.443533 | 0.252342 | 0 | 0.014618 | 0.153392 | 17,615 | 270 | 168 | 65.240741 | 0.851673 | 0.022424 | 0 | 0 | 0 | 0 | 0.038518 | 0.004196 | 0 | 0 | 0 | 0 | 0.293532 | 1 | 0.014925 | false | 0 | 0.039801 | 0 | 0.059701 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
6b83d0d9417fbfeb8bd14b3ee42701ee5d08783b | 43,043 | py | Python | t01_final_story.py | fall-2018-csc-226/t04-master | cf62ad87451f4309c4c580767e9d725382b35d33 | [
"MIT"
] | null | null | null | t01_final_story.py | fall-2018-csc-226/t04-master | cf62ad87451f4309c4c580767e9d725382b35d33 | [
"MIT"
] | 7 | 2018-09-19T15:37:58.000Z | 2018-10-01T14:54:46.000Z | t01_final_story.py | fall-2018-csc-226/t04-master | cf62ad87451f4309c4c580767e9d725382b35d33 | [
"MIT"
] | null | null | null | ######################################################################
# Author: The Fall 2018 226 Class!
#
# Assignment: T01: Choose Your Own Adventure
#
# Purpose: To create a choose-your-own-adventure style game.
# Each "twist" in the story is from a different group. The resulting story
# will either be incoherently... | 41.952242 | 224 | 0.621541 | 6,239 | 43,043 | 4.288027 | 0.202276 | 0.067656 | 0.051583 | 0.012559 | 0.202557 | 0.142451 | 0.113819 | 0.113819 | 0.104287 | 0.099353 | 0 | 0.004749 | 0.241758 | 43,043 | 1,025 | 225 | 41.993171 | 0.814965 | 0.069582 | 0 | 0.489796 | 0 | 0.063776 | 0.620349 | 0.004187 | 0 | 0 | 0 | 0.000976 | 0 | 1 | 0 | false | 0.002551 | 0.001276 | 0 | 0.001276 | 0.482143 | 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 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
6b8eb68d651fe2f3973d6258338aed3f82e05c3d | 90 | py | Python | tawsocks/constant.py | comeacrossyun/skyun | 96ef2e98da2826863850c8b917bf1cba8a8a796b | [
"MIT"
] | 1 | 2021-05-23T15:50:25.000Z | 2021-05-23T15:50:25.000Z | tawsocks/constant.py | comeacrossyun/skyun | 96ef2e98da2826863850c8b917bf1cba8a8a796b | [
"MIT"
] | null | null | null | tawsocks/constant.py | comeacrossyun/skyun | 96ef2e98da2826863850c8b917bf1cba8a8a796b | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# @Time : 2019-06-03
# @Author : hongshu
BUFF_SIZE = 32 * 1024
| 15 | 23 | 0.611111 | 14 | 90 | 3.857143 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 0.222222 | 90 | 5 | 24 | 18 | 0.571429 | 0.677778 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
6ba0b0cb88433c042ca25747c1498b6fe7781f52 | 251 | py | Python | pages/blender-scripts/simple-blocks.py | makersall/learn-python-blender | 45f82f32a9b5d9fad6275d8912d5828a6d45b727 | [
"MIT"
] | null | null | null | pages/blender-scripts/simple-blocks.py | makersall/learn-python-blender | 45f82f32a9b5d9fad6275d8912d5828a6d45b727 | [
"MIT"
] | null | null | null | pages/blender-scripts/simple-blocks.py | makersall/learn-python-blender | 45f82f32a9b5d9fad6275d8912d5828a6d45b727 | [
"MIT"
] | null | null | null | import bpy
from mathutils import *
D = bpy.data
C = bpy.context
for i in range(0,3):
bpy.ops.mesh.primitive_cube_add(location=(1, 2, i))
# Now all I need to be able to do is add a mouseclick and a control z command in blender, and I'm good to go | 27.888889 | 108 | 0.713147 | 53 | 251 | 3.339623 | 0.754717 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019901 | 0.199203 | 251 | 9 | 108 | 27.888889 | 0.860697 | 0.422311 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
6ba48e7128b7a057d5f72e9950790980dd0f6128 | 1,246 | py | Python | tests/molecular/reactions/reaction/fixtures/one_one_reaction.py | stevenbennett96/stk | 6e5af87625b83e0bfc7243bc42d8c7a860cbeb76 | [
"MIT"
] | null | null | null | tests/molecular/reactions/reaction/fixtures/one_one_reaction.py | stevenbennett96/stk | 6e5af87625b83e0bfc7243bc42d8c7a860cbeb76 | [
"MIT"
] | null | null | null | tests/molecular/reactions/reaction/fixtures/one_one_reaction.py | stevenbennett96/stk | 6e5af87625b83e0bfc7243bc42d8c7a860cbeb76 | [
"MIT"
] | null | null | null | import itertools as it
import pytest
import stk
from ..case_data import CaseData
@pytest.fixture
def one_one_reaction(
functional_group1,
functional_group1_2,
bond_order,
periodicity,
):
"""
A :class:`.CaseData` instance.
"""
return CaseData(
reaction=stk.OneOneReaction(
... | 21.482759 | 54 | 0.605939 | 118 | 1,246 | 6.059322 | 0.322034 | 0.268531 | 0.218182 | 0.134266 | 0.436364 | 0.293706 | 0.293706 | 0.293706 | 0.293706 | 0.293706 | 0 | 0.025611 | 0.310594 | 1,246 | 57 | 55 | 21.859649 | 0.806752 | 0.024077 | 0 | 0.444444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.044444 | false | 0 | 0.088889 | 0.022222 | 0.177778 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
6baddfd6c2bc7b76ee7cb32726d54db33f057904 | 583 | py | Python | 5/new code/OpenKE-OpenKE-PyTorch/openke/module/model/__init__.py | smurf-1119/knowledge-engeneering-experiment | 7fd3647bfc5b05e5fd6f93fea324e7ec0d55d4a1 | [
"MIT"
] | 10 | 2021-11-19T06:24:51.000Z | 2022-02-09T15:44:00.000Z | 5/new code/OpenKE-OpenKE-PyTorch/openke/module/model/__init__.py | smurf-1119/knowledge-engeneering-experiment | 7fd3647bfc5b05e5fd6f93fea324e7ec0d55d4a1 | [
"MIT"
] | 9 | 2021-10-01T11:06:27.000Z | 2021-12-23T02:10:52.000Z | 5/new code/OpenKE-OpenKE-PyTorch/openke/module/model/__init__.py | smurf-1119/knowledge-engeneering-experiment | 7fd3647bfc5b05e5fd6f93fea324e7ec0d55d4a1 | [
"MIT"
] | 2 | 2021-09-14T04:08:36.000Z | 2021-11-19T06:24:54.000Z | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from .Model import Model
from .TransE import TransE
from .TransD import TransD
from .TransR import TransR
from .TransH import TransH
from .DistMult import DistMult
from .ComplEx import ComplEx
from .RESCAL impo... | 20.103448 | 38 | 0.722127 | 70 | 583 | 5.757143 | 0.271429 | 0.074442 | 0.119107 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.198971 | 583 | 29 | 39 | 20.103448 | 0.862955 | 0 | 0 | 0 | 0 | 0 | 0.118151 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.518519 | 0 | 0.518519 | 0.037037 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
6bd8f9bf02a6766c4d6a7fccca5eeed4aef8e654 | 9,225 | py | Python | api/metadata_routes.py | ImagingDataCommons/ISB-CGC-API | d3207a6ada958ad5ac3cb8834b216ec1108dcf1c | [
"Apache-2.0"
] | null | null | null | api/metadata_routes.py | ImagingDataCommons/ISB-CGC-API | d3207a6ada958ad5ac3cb8834b216ec1108dcf1c | [
"Apache-2.0"
] | 5 | 2020-07-07T23:45:21.000Z | 2021-06-11T17:52:29.000Z | api/metadata_routes.py | ImagingDataCommons/ISB-CGC-API | d3207a6ada958ad5ac3cb8834b216ec1108dcf1c | [
"Apache-2.0"
] | 2 | 2019-10-15T01:17:35.000Z | 2021-04-05T19:54:12.000Z | #
# Copyright 2019, Institute for Systems Biology
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | 29.854369 | 106 | 0.572358 | 925 | 9,225 | 5.610811 | 0.140541 | 0.083815 | 0.09711 | 0.086705 | 0.732755 | 0.698073 | 0.649518 | 0.63025 | 0.63025 | 0.614066 | 0 | 0.020389 | 0.319458 | 9,225 | 308 | 107 | 29.951299 | 0.806308 | 0.496369 | 0 | 0.795276 | 0 | 0 | 0.168376 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03937 | false | 0 | 0.03937 | 0 | 0.125984 | 0.015748 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d41224f4ff45a38d4e8a034a7a6c35db41c23971 | 873 | py | Python | packages/api-server/api_server/routes/building_map.py | cnboonhan/rmf-web | 4389c53ef87e95c9a4bf1a6a72ed11f6f441a33f | [
"Apache-2.0"
] | null | null | null | packages/api-server/api_server/routes/building_map.py | cnboonhan/rmf-web | 4389c53ef87e95c9a4bf1a6a72ed11f6f441a33f | [
"Apache-2.0"
] | null | null | null | packages/api-server/api_server/routes/building_map.py | cnboonhan/rmf-web | 4389c53ef87e95c9a4bf1a6a72ed11f6f441a33f | [
"Apache-2.0"
] | null | null | null | from fastapi import Depends
from rx import operators as rxops
from api_server.base_app import BaseApp
from api_server.fast_io import FastIORouter, SubscriptionRequest
from api_server.models import BuildingMap
from api_server.repositories.rmf import RmfRepository
class BuildingMapRouter(FastIORouter):
def __init_... | 33.576923 | 84 | 0.68614 | 104 | 873 | 5.490385 | 0.5 | 0.049037 | 0.091068 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.230241 | 873 | 25 | 85 | 34.92 | 0.849702 | 0 | 0 | 0 | 0 | 0 | 0.009768 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.352941 | 0.058824 | 0.647059 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
d41dcd0b703b0cef481717fe5ec5b997bf1f78dd | 19,894 | py | Python | tools/w3af/w3af/plugins/bruteforce/form_auth.py | sravani-m/Web-Application-Security-Framework | d9f71538f5cba6fe1d8eabcb26c557565472f6a6 | [
"MIT"
] | 3 | 2019-04-09T22:59:33.000Z | 2019-06-14T09:23:24.000Z | tools/w3af/w3af/plugins/bruteforce/form_auth.py | sravani-m/Web-Application-Security-Framework | d9f71538f5cba6fe1d8eabcb26c557565472f6a6 | [
"MIT"
] | null | null | null | tools/w3af/w3af/plugins/bruteforce/form_auth.py | sravani-m/Web-Application-Security-Framework | d9f71538f5cba6fe1d8eabcb26c557565472f6a6 | [
"MIT"
] | null | null | null | """
form_auth.py
Copyright 2006 Andres Riancho
This file is part of w3af, http://w3af.org/ .
w3af is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation version 2 of the License.
w3af is distributed in the hope that i... | 36.840741 | 98 | 0.59817 | 2,397 | 19,894 | 4.768043 | 0.183563 | 0.027911 | 0.017324 | 0.016537 | 0.296614 | 0.244378 | 0.20798 | 0.18838 | 0.148657 | 0.112083 | 0 | 0.006044 | 0.334624 | 19,894 | 539 | 99 | 36.909091 | 0.857369 | 0.10752 | 0 | 0.33463 | 0 | 0 | 0.065384 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.198444 | 0.066148 | null | null | 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 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
d41f2e6ad842c3dcc252d1a4c7fa71c7d5d7d944 | 948 | py | Python | fhir_kindling/util/resources.py | azmeuk/fhir-kindling | 4f73c384cb00abe978044785eea228756c1054af | [
"MIT"
] | 3 | 2021-12-19T03:17:54.000Z | 2022-02-24T10:29:25.000Z | fhir_kindling/util/resources.py | azmeuk/fhir-kindling | 4f73c384cb00abe978044785eea228756c1054af | [
"MIT"
] | 60 | 2021-10-30T12:12:39.000Z | 2022-03-28T07:24:38.000Z | fhir_kindling/util/resources.py | azmeuk/fhir-kindling | 4f73c384cb00abe978044785eea228756c1054af | [
"MIT"
] | 1 | 2022-02-24T11:06:48.000Z | 2022-02-24T11:06:48.000Z | from typing import Union, List
from pydantic.fields import ModelField
from fhir.resources.resource import Resource
from fhir.resources import get_fhir_model_class
from fhir.resources.fhirtypes import ResourceType
def get_resource_fields(resource: Union[Resource, ResourceType, str]) -> List[ModelField]:
"""
... | 22.571429 | 90 | 0.700422 | 118 | 948 | 5.440678 | 0.355932 | 0.130841 | 0.079439 | 0.079439 | 0.077882 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.223629 | 948 | 41 | 91 | 23.121951 | 0.872283 | 0.203587 | 0 | 0 | 0 | 0 | 0.054286 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.3125 | 0 | 0.5625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
d42330431628c02abbfae562dd0d55db21f4866f | 186 | py | Python | imd_weather/__init__.py | bhardwajRahul/imd_weather | cdb4cd171eb35d7557cfc52deee273b093f1ba28 | [
"MIT"
] | null | null | null | imd_weather/__init__.py | bhardwajRahul/imd_weather | cdb4cd171eb35d7557cfc52deee273b093f1ba28 | [
"MIT"
] | null | null | null | imd_weather/__init__.py | bhardwajRahul/imd_weather | cdb4cd171eb35d7557cfc52deee273b093f1ba28 | [
"MIT"
] | 1 | 2021-01-01T12:36:24.000Z | 2021-01-01T12:36:24.000Z | #!/usr/bin/python3
'''
Collects Weather Forecast by Indian Meterological Department, by parsing webpages :)
'''
__version__ = '0.2.0'
__author__ = 'Anjan Roy<anjanroy@yandex.com>'
| 20.666667 | 88 | 0.715054 | 23 | 186 | 5.434783 | 0.913043 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.025157 | 0.145161 | 186 | 8 | 89 | 23.25 | 0.761006 | 0.548387 | 0 | 0 | 0 | 0 | 0.486111 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d42a8604bb2d70ad65e56defe7c0d2fcca097723 | 1,094 | py | Python | python/test/resource/test_dataset_mixed.py | Fosstack/vmaf | e13b6c383ec20dba0cbd64d3265cfe49677a6f18 | [
"BSD-2-Clause-Patent"
] | 2,874 | 2016-06-06T16:11:37.000Z | 2022-03-31T10:10:22.000Z | python/test/resource/test_dataset_mixed.py | Fosstack/vmaf | e13b6c383ec20dba0cbd64d3265cfe49677a6f18 | [
"BSD-2-Clause-Patent"
] | 619 | 2016-06-07T19:30:53.000Z | 2022-03-31T16:36:05.000Z | python/test/resource/test_dataset_mixed.py | Fosstack/vmaf | e13b6c383ec20dba0cbd64d3265cfe49677a6f18 | [
"BSD-2-Clause-Patent"
] | 723 | 2016-06-05T02:44:33.000Z | 2022-03-31T03:29:12.000Z | dataset_name = 'example'
quality_width = 1920
quality_height = 1080
from vmaf.config import VmafConfig
ref_videos = [
{'content_id': 0, 'path': VmafConfig.resource_path('yuv', 'checkerboard_1920_1080_10_3_0_0.yuv'), 'yuv_fmt': 'yuv420p', 'width': 1920, 'height': 1080},
{'content_id': 1, 'path': VmafConfig.r... | 52.095238 | 189 | 0.669104 | 161 | 1,094 | 4.21118 | 0.242236 | 0.079646 | 0.19469 | 0.230089 | 0.741888 | 0.641593 | 0.641593 | 0.620944 | 0.560472 | 0.560472 | 0 | 0.14657 | 0.120658 | 1,094 | 20 | 190 | 54.7 | 0.558212 | 0.006399 | 0 | 0 | 0 | 0 | 0.414207 | 0.116236 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.071429 | 0 | 0.071429 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d4308ff2bb28a84034c881fb380435ac9669edd4 | 18,320 | py | Python | translate/problemdef_pb2.py | schultet/goa | b76af608109ff217a2b68ca4e66582850c0a47ea | [
"MIT"
] | 2 | 2019-05-13T11:59:18.000Z | 2019-05-13T12:37:51.000Z | translate/problemdef_pb2.py | schultet/goa | b76af608109ff217a2b68ca4e66582850c0a47ea | [
"MIT"
] | null | null | null | translate/problemdef_pb2.py | schultet/goa | b76af608109ff217a2b68ca4e66582850c0a47ea | [
"MIT"
] | null | null | null | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: problemdef.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _re... | 37.61807 | 1,667 | 0.742522 | 2,232 | 18,320 | 5.806004 | 0.087366 | 0.056795 | 0.050004 | 0.043213 | 0.622502 | 0.584536 | 0.564241 | 0.545644 | 0.515395 | 0.511228 | 0 | 0.041247 | 0.133188 | 18,320 | 486 | 1,668 | 37.695473 | 0.774811 | 0.032587 | 0 | 0.653759 | 1 | 0.002278 | 0.179729 | 0.115584 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.013667 | 0 | 0.013667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d445167c129f0fee7127509d25fc78e9fed6e319 | 100 | py | Python | micro-benchmark/snippets/external/cls_parent/main.py | WenJinfeng/PyCG | b45e8e04fe697d8301cf27222a8f37646d69f168 | [
"Apache-2.0"
] | 121 | 2020-12-16T20:31:37.000Z | 2022-03-21T20:32:43.000Z | micro-benchmark/snippets/external/cls_parent/main.py | WenJinfeng/PyCG | b45e8e04fe697d8301cf27222a8f37646d69f168 | [
"Apache-2.0"
] | 24 | 2021-03-13T00:04:00.000Z | 2022-03-21T17:28:11.000Z | micro-benchmark/snippets/external/cls_parent/main.py | WenJinfeng/PyCG | b45e8e04fe697d8301cf27222a8f37646d69f168 | [
"Apache-2.0"
] | 19 | 2021-03-23T10:58:47.000Z | 2022-03-24T19:46:50.000Z | from ext import parent
class A(parent):
def fn(self):
self.parent_fn()
a = A()
a.fn()
| 11.111111 | 24 | 0.58 | 17 | 100 | 3.352941 | 0.529412 | 0.070175 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.27 | 100 | 8 | 25 | 12.5 | 0.780822 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d45d36879d463d078c14e712d7f0575764948839 | 289 | py | Python | securityscrape/securityscrape/items.py | ArcIX/vsdscrapy | 998232f9f8b41ae83040a628ed599a51da378d18 | [
"MIT"
] | null | null | null | securityscrape/securityscrape/items.py | ArcIX/vsdscrapy | 998232f9f8b41ae83040a628ed599a51da378d18 | [
"MIT"
] | null | null | null | securityscrape/securityscrape/items.py | ArcIX/vsdscrapy | 998232f9f8b41ae83040a628ed599a51da378d18 | [
"MIT"
] | null | null | null | # Define here the models for your scraped items
#
# See documentation in:
# https://docs.scrapy.org/en/latest/topics/items.html
from scrapy import Item, Field
class SecurityItem(Item):
# define the fields for your item here like:
# name = scrapy.Field()
source_url = Field()
| 24.083333 | 53 | 0.716263 | 42 | 289 | 4.904762 | 0.714286 | 0.067961 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.183391 | 289 | 11 | 54 | 26.272727 | 0.872881 | 0.636678 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
d45db6bf4b1f5eb843ac891cdb32a017e59d1ba3 | 638 | py | Python | apps/djnext/__init__.py | martync/zython | e008bbb33e212f0856e85b8594003402e0a635c0 | [
"Beerware"
] | null | null | null | apps/djnext/__init__.py | martync/zython | e008bbb33e212f0856e85b8594003402e0a635c0 | [
"Beerware"
] | null | null | null | apps/djnext/__init__.py | martync/zython | e008bbb33e212f0856e85b8594003402e0a635c0 | [
"Beerware"
] | null | null | null | from django.http import HttpResponseRedirect
# Ask GET then POST
def get_post(request, url, key="next"):
return request.GET.get(key, request.POST.get(key, url))
def get_post_response(*args, **kwargs):
return HttpResponseRedirect(get_post(*args, **kwargs))
# Ask POST then GET
def post_get(request, url, key="n... | 33.578947 | 93 | 0.727273 | 95 | 638 | 4.768421 | 0.231579 | 0.07947 | 0.086093 | 0.112583 | 0.567329 | 0.373068 | 0.306843 | 0.306843 | 0.15894 | 0 | 0 | 0 | 0.122257 | 638 | 19 | 93 | 33.578947 | 0.808929 | 0.0721 | 0 | 0 | 0 | 0 | 0.040747 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.454545 | false | 0 | 0.090909 | 0.454545 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
d46b8a28734476fc07b094bb7d6120cd6392d36d | 140 | py | Python | calorimeter/__init__.py | jevandezande/dsc | 482b32026bd769a0fe0b20750e051e356f1fcdac | [
"MIT"
] | null | null | null | calorimeter/__init__.py | jevandezande/dsc | 482b32026bd769a0fe0b20750e051e356f1fcdac | [
"MIT"
] | null | null | null | calorimeter/__init__.py | jevandezande/dsc | 482b32026bd769a0fe0b20750e051e356f1fcdac | [
"MIT"
] | null | null | null | """Top-level package for Calorimeter."""
__author__ = """Jonathon Vandezande"""
__email__ = 'jevandezande@gmail.com'
__version__ = '0.2.1'
| 23.333333 | 40 | 0.714286 | 16 | 140 | 5.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.024 | 0.107143 | 140 | 5 | 41 | 28 | 0.68 | 0.242857 | 0 | 0 | 0 | 0 | 0.46 | 0.22 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d47cde2d88200d0120c3cc99d44676263aaceb49 | 509 | py | Python | cyberpunk_theme/widget/checkbutton.py | pyrustic/tk-cyberpunk-theme | be0386abf293e2f3612b64fb31f7b2bf554acb8e | [
"MIT"
] | 5 | 2021-03-28T02:52:03.000Z | 2021-06-10T11:34:09.000Z | cyberpunk_theme/widget/checkbutton.py | pyrustic/tk-cyberpunk-theme | be0386abf293e2f3612b64fb31f7b2bf554acb8e | [
"MIT"
] | null | null | null | cyberpunk_theme/widget/checkbutton.py | pyrustic/tk-cyberpunk-theme | be0386abf293e2f3612b64fb31f7b2bf554acb8e | [
"MIT"
] | null | null | null | import tkstyle
from cyberpunk_theme import constant
def get_style(font_family=constant.FONT_FAMILY,
font_size=constant.FONT_SIZE):
style = tkstyle.Checkbutton()
style.background = constant.BACKGROUND_COLOR
style.foreground = "#9B9B9B"
style.font = (font_family, font_size, "normal")
s... | 31.8125 | 54 | 0.744597 | 56 | 509 | 6.571429 | 0.446429 | 0.081522 | 0.1875 | 0.228261 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016667 | 0.174853 | 509 | 15 | 55 | 33.933333 | 0.859524 | 0 | 0 | 0 | 0 | 0 | 0.039293 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.153846 | 0 | 0.307692 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d47e9a34c853b5dc3fca8b991390e543326fef11 | 5,192 | py | Python | esphome/components/tcs34725/sensor.py | OttoWinter/esphomeyaml | 6a85259e4d6d1b0a0f819688b8e555efcb99ecb0 | [
"MIT"
] | 249 | 2018-04-07T12:04:11.000Z | 2019-01-25T01:11:34.000Z | esphome/components/tcs34725/sensor.py | OttoWinter/esphomeyaml | 6a85259e4d6d1b0a0f819688b8e555efcb99ecb0 | [
"MIT"
] | 243 | 2018-04-11T16:37:11.000Z | 2019-01-25T16:50:37.000Z | esphome/components/tcs34725/sensor.py | OttoWinter/esphomeyaml | 6a85259e4d6d1b0a0f819688b8e555efcb99ecb0 | [
"MIT"
] | 40 | 2018-04-10T05:50:14.000Z | 2019-01-25T15:20:36.000Z | import esphome.codegen as cg
import esphome.config_validation as cv
from esphome.components import i2c, sensor
from esphome.const import (
CONF_COLOR_TEMPERATURE,
CONF_GAIN,
CONF_ID,
CONF_ILLUMINANCE,
CONF_GLASS_ATTENUATION_FACTOR,
CONF_INTEGRATION_TIME,
DEVICE_CLASS_ILLUMINANCE,
ICON_LI... | 39.037594 | 86 | 0.759052 | 604 | 5,192 | 6.130795 | 0.183775 | 0.093168 | 0.226843 | 0.236025 | 0.20794 | 0.180124 | 0.180124 | 0.137996 | 0.075614 | 0.05293 | 0 | 0.101482 | 0.155431 | 5,192 | 132 | 87 | 39.333333 | 0.742987 | 0 | 0 | 0.066116 | 0 | 0 | 0.042951 | 0.00443 | 0 | 0 | 0.00077 | 0 | 0 | 1 | 0 | false | 0 | 0.033058 | 0 | 0.033058 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
2e07b20c9adc514cedce0a1835709bcabae73d57 | 733 | py | Python | src/admissionreviewrequest/apiversion.py | nokia/conftest-runner | a809f642407663ae0bff39554fdc3c2cb5e430ce | [
"BSD-3-Clause"
] | 2 | 2022-03-03T23:37:06.000Z | 2022-03-11T21:36:06.000Z | src/admissionreviewrequest/apiversion.py | nokia/conftest-runner | a809f642407663ae0bff39554fdc3c2cb5e430ce | [
"BSD-3-Clause"
] | null | null | null | src/admissionreviewrequest/apiversion.py | nokia/conftest-runner | a809f642407663ae0bff39554fdc3c2cb5e430ce | [
"BSD-3-Clause"
] | null | null | null | # Copyright 2021 Nokia
# Licensed under the BSD 3-Clause License.
# SPDX-License-Identifier: BSD-3-Clause
class ApiVersion(object):
def __init__(self, group: str, version: str):
self.group = group
self.version = version
class Kind(ApiVersion):
def __init__(self, group: str, version: str, kind... | 26.178571 | 60 | 0.664393 | 92 | 733 | 5.01087 | 0.336957 | 0.10846 | 0.071584 | 0.104121 | 0.370933 | 0.370933 | 0.370933 | 0.308026 | 0.308026 | 0.308026 | 0 | 0.012153 | 0.214188 | 733 | 27 | 61 | 27.148148 | 0.788194 | 0.135061 | 0 | 0.25 | 0 | 0 | 0.003175 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.5625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
2e0d1e3a83b4f30f17bb556a1b901364ab2cb0e2 | 1,682 | py | Python | tests/unit/test_cards.py | ChristChurchMayfair/ccm-assistant | 3d9a922642f0275882c6829e54a6fbc940067f26 | [
"MIT"
] | null | null | null | tests/unit/test_cards.py | ChristChurchMayfair/ccm-assistant | 3d9a922642f0275882c6829e54a6fbc940067f26 | [
"MIT"
] | null | null | null | tests/unit/test_cards.py | ChristChurchMayfair/ccm-assistant | 3d9a922642f0275882c6829e54a6fbc940067f26 | [
"MIT"
] | null | null | null | import unittest
from datetime import date, datetime
import cards
class TestCards(unittest.TestCase):
def test_get_passage_title(self):
morning = "morning"
evening = "evening"
self.assertEqual(cards.get_passage_title(date(2012, 4, 21), morning),
"Bible reading for ... | 50.969697 | 99 | 0.643282 | 211 | 1,682 | 4.957346 | 0.322275 | 0.129063 | 0.172084 | 0.197897 | 0.431166 | 0.394837 | 0.364245 | 0.25239 | 0.25239 | 0.156788 | 0 | 0.073446 | 0.263377 | 1,682 | 32 | 100 | 52.5625 | 0.770783 | 0 | 0 | 0 | 0 | 0 | 0.263377 | 0 | 0 | 0 | 0 | 0 | 0.333333 | 1 | 0.111111 | false | 0.259259 | 0.111111 | 0 | 0.259259 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
2e1a3d1d3c216dd3ce3e8b734b07005db6b159c3 | 727 | py | Python | SIT312-Group1-Prototype-main/flaskwebsite/dashboardPackage/__init__.py | FrozenKnight101/SITSystem-Design101 | 0cf2b5f3b5fd54e881b70f9b515aa3828d136402 | [
"MIT"
] | null | null | null | SIT312-Group1-Prototype-main/flaskwebsite/dashboardPackage/__init__.py | FrozenKnight101/SITSystem-Design101 | 0cf2b5f3b5fd54e881b70f9b515aa3828d136402 | [
"MIT"
] | null | null | null | SIT312-Group1-Prototype-main/flaskwebsite/dashboardPackage/__init__.py | FrozenKnight101/SITSystem-Design101 | 0cf2b5f3b5fd54e881b70f9b515aa3828d136402 | [
"MIT"
] | null | null | null | from flask import Flask
from flask_sqlalchemy import SQLAlchemy
from flask_bcrypt import Bcrypt
from flask_login import LoginManager
from sqlalchemy import create_engine
import pymysql
pymysql.install_as_MySQLdb()
app = Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI'] = 'mysql://{user}:{password}@{server... | 40.388889 | 221 | 0.792297 | 90 | 727 | 6.177778 | 0.511111 | 0.064748 | 0.053957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.038168 | 0.099037 | 727 | 17 | 222 | 42.764706 | 0.810687 | 0 | 0 | 0 | 0 | 0 | 0.276056 | 0.209859 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.0625 | 0.4375 | 0 | 0.4375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 2 |
2e3c8f4bd26227fdb2c328ea513c5297064cd78e | 139 | py | Python | music/__model/_number/temporal.py | jedhsu/music | dea68c4a82296cd4910e786f533b2cbf861377c3 | [
"MIT"
] | null | null | null | music/__model/_number/temporal.py | jedhsu/music | dea68c4a82296cd4910e786f533b2cbf861377c3 | [
"MIT"
] | null | null | null | music/__model/_number/temporal.py | jedhsu/music | dea68c4a82296cd4910e786f533b2cbf861377c3 | [
"MIT"
] | null | null | null | """
*Temporal Number*
"""
from abc import ABCMeta
__all__ = ["TemporalNumber"]
class TemporalNumber:
__metaclass__ = ABCMeta
| 9.928571 | 28 | 0.676259 | 12 | 139 | 7.166667 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.215827 | 139 | 13 | 29 | 10.692308 | 0.788991 | 0.122302 | 0 | 0 | 0 | 0 | 0.12963 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
2e42c6fa1451793870610d45a13885b8ba881cb1 | 2,439 | py | Python | plot/plot_curve.py | MasterLX/utils | 71445e174323641e31558cdab16f4d41e52c3881 | [
"MIT"
] | 1 | 2021-06-22T01:15:56.000Z | 2021-06-22T01:15:56.000Z | plot/plot_curve.py | MasterLX/utils | 71445e174323641e31558cdab16f4d41e52c3881 | [
"MIT"
] | null | null | null | plot/plot_curve.py | MasterLX/utils | 71445e174323641e31558cdab16f4d41e52c3881 | [
"MIT"
] | null | null | null | import matplotlib.pyplot as plt
from matplotlib import rc
rc('text', usetex=True)
fig = plt.figure(figsize=(6,3))
ax1 = fig.add_subplot(1,2,1)
x_ind = [2, 4, 6, 8, 10]
x_lab = [r'$\mathcal{T}_2$', r'$\mathcal{T}_4$', r'$\mathcal{T}_6$', r'$\mathcal{T}_8$', r'$\mathcal{T}_{{10}}$']
leg = [r'$\mathcal{T}_1$',r'$\mathcal{... | 49.77551 | 185 | 0.637966 | 580 | 2,439 | 2.622414 | 0.210345 | 0.073636 | 0.08284 | 0.00789 | 0.389218 | 0.347798 | 0.347798 | 0.253123 | 0.247206 | 0.234057 | 0 | 0.247602 | 0.059451 | 2,439 | 48 | 186 | 50.8125 | 0.415432 | 0.167282 | 0 | 0.235294 | 0 | 0 | 0.157504 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.058824 | 0 | 0.058824 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
2e4967f94cf168917348f39b2ed3bfe7b78e54d2 | 620 | py | Python | judge/templatetags/markdown_tags.py | TheAvidDev/pnoj-site | 63299e873b1fb654667545222ce2b3157e78acd9 | [
"MIT"
] | null | null | null | judge/templatetags/markdown_tags.py | TheAvidDev/pnoj-site | 63299e873b1fb654667545222ce2b3157e78acd9 | [
"MIT"
] | null | null | null | judge/templatetags/markdown_tags.py | TheAvidDev/pnoj-site | 63299e873b1fb654667545222ce2b3157e78acd9 | [
"MIT"
] | null | null | null | import requests
import markdown as markdown_pkg
from django import template
from django.utils.safestring import mark_safe
register = template.Library()
# @register.filter
# def markdown(markdown_content, mode="gfm"):
# post_content = {'text': markdown_content, 'mode': mode, 'context': 'pnoj/site'}
# render... | 31 | 93 | 0.759677 | 78 | 620 | 5.833333 | 0.448718 | 0.131868 | 0.151648 | 0.10989 | 0.175824 | 0.175824 | 0 | 0 | 0 | 0 | 0 | 0 | 0.129032 | 620 | 19 | 94 | 32.631579 | 0.842593 | 0.519355 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.444444 | 0 | 0.666667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
2e5729c4ea10db3d5b4d1d20228ad56d25fb7cd3 | 147 | py | Python | CURSO UDEMY/TEORICAS/8.py | CamilliCerutti/Exercicios-de-Python-curso-em-video | 6571a5c5cb7b4398352a7778c55588c0c16f13c2 | [
"MIT"
] | null | null | null | CURSO UDEMY/TEORICAS/8.py | CamilliCerutti/Exercicios-de-Python-curso-em-video | 6571a5c5cb7b4398352a7778c55588c0c16f13c2 | [
"MIT"
] | null | null | null | CURSO UDEMY/TEORICAS/8.py | CamilliCerutti/Exercicios-de-Python-curso-em-video | 6571a5c5cb7b4398352a7778c55588c0c16f13c2 | [
"MIT"
] | null | null | null | """
USO DO JOIN
"""
string = 'O brasil é penta.'
lista = string.split(' ')
strint_2 = ','.join(lista)
print(string)
print(lista)
print(strint_2) | 12.25 | 28 | 0.646259 | 22 | 147 | 4.227273 | 0.590909 | 0.150538 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.016129 | 0.156463 | 147 | 12 | 29 | 12.25 | 0.733871 | 0.07483 | 0 | 0 | 0 | 0 | 0.147287 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
2e5c752c5c755fd94c0e7098d1bc261aa38549db | 344 | py | Python | 0x0A-python-inheritance/3-is_kind_of_class.py | Dev-Loup/holbertonschool-higher_level_programming | af6fe9a05c87dcdbb88270eec4c7ec81d6a70d9b | [
"FSFAP"
] | null | null | null | 0x0A-python-inheritance/3-is_kind_of_class.py | Dev-Loup/holbertonschool-higher_level_programming | af6fe9a05c87dcdbb88270eec4c7ec81d6a70d9b | [
"FSFAP"
] | null | null | null | 0x0A-python-inheritance/3-is_kind_of_class.py | Dev-Loup/holbertonschool-higher_level_programming | af6fe9a05c87dcdbb88270eec4c7ec81d6a70d9b | [
"FSFAP"
] | null | null | null | #!/usr/bin/python3
""" Class check module
Functions:
is_kind_of_class: checks if obj is inherit
from determined class
"""
def is_kind_of_class(obj, a_class):
""" checks class inheritance
Args:
obj: object to evaluate
a_class: suspect father
"""
return i... | 20.235294 | 50 | 0.619186 | 44 | 344 | 4.636364 | 0.613636 | 0.088235 | 0.078431 | 0.127451 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004132 | 0.296512 | 344 | 16 | 51 | 21.5 | 0.838843 | 0.601744 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.5 | false | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 2 |
2e6851db4eb6b0d98f1ae630e0bb8dd940964688 | 1,619 | py | Python | cinemanio/api/schema/properties.py | cinemanio/backend | c393dc8c2d59dc99aa2c3314d3372b6e2bf5497f | [
"MIT"
] | 4 | 2018-07-05T07:00:04.000Z | 2021-02-03T22:02:13.000Z | cinemanio/api/schema/properties.py | cinemanio/backend | c393dc8c2d59dc99aa2c3314d3372b6e2bf5497f | [
"MIT"
] | 19 | 2018-09-03T23:27:49.000Z | 2020-02-12T00:09:02.000Z | cinemanio/api/schema/properties.py | cinemanio/backend | c393dc8c2d59dc99aa2c3314d3372b6e2bf5497f | [
"MIT"
] | null | null | null | import graphene
from graphene_django import DjangoObjectType
from cinemanio.api.helpers import global_id
from cinemanio.api.utils import DjangoObjectTypeMixin
from cinemanio.core.models import Genre, Language, Country, Role
from cinemanio.core.utils.languages import translated_fields
PROPERTY_FIELDS = ('id',) + trans... | 24.907692 | 64 | 0.702285 | 187 | 1,619 | 5.925134 | 0.240642 | 0.072202 | 0.090253 | 0.108303 | 0.187726 | 0.187726 | 0.187726 | 0.187726 | 0.15704 | 0.15704 | 0 | 0 | 0.209389 | 1,619 | 64 | 65 | 25.296875 | 0.865625 | 0 | 0 | 0.25 | 0 | 0 | 0.006177 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.136364 | 0.181818 | 0.795455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
2e6fb3af88737869eb321c1147f1789b5d1ec474 | 5,827 | py | Python | dsb.py | edbezci/mapOverlayHumanoid | 95d5e16fb983a7384abea6f51599483274ff0f62 | [
"MIT"
] | null | null | null | dsb.py | edbezci/mapOverlayHumanoid | 95d5e16fb983a7384abea6f51599483274ff0f62 | [
"MIT"
] | null | null | null | dsb.py | edbezci/mapOverlayHumanoid | 95d5e16fb983a7384abea6f51599483274ff0f62 | [
"MIT"
] | null | null | null | '''
this is the file holding the description texts to be inserted
this file is imported to the src.py
'''
bf_desc = [
"Brute-Force Algorithm:",
" ",
"Summary:",
"The brute force algorithm is very aggressive.",
"It checks every single line segment against every other line segment for an intersection... | 61.336842 | 192 | 0.72902 | 862 | 5,827 | 4.935035 | 0.277262 | 0.030559 | 0.031265 | 0.025858 | 0.370945 | 0.341796 | 0.332393 | 0.319464 | 0.296427 | 0.269864 | 0 | 0 | 0.201819 | 5,827 | 94 | 193 | 61.989362 | 0.912492 | 0.016647 | 0 | 0.37931 | 0 | 0.252874 | 0.879413 | 0.003845 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
2e718f603be7a18012f5634d1852d85958615512 | 111 | py | Python | ww1.py | blogs1801/test | 2a005cb9d9340419aa9e15c7e97dcfaec3763e54 | [
"Apache-2.0"
] | null | null | null | ww1.py | blogs1801/test | 2a005cb9d9340419aa9e15c7e97dcfaec3763e54 | [
"Apache-2.0"
] | null | null | null | ww1.py | blogs1801/test | 2a005cb9d9340419aa9e15c7e97dcfaec3763e54 | [
"Apache-2.0"
] | null | null | null | import uuid
pass
def func():
obj = uuid.uuid4()
return obj.hex
if __name__=='__main__':
func()
| 9.25 | 24 | 0.603604 | 15 | 111 | 3.933333 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012195 | 0.261261 | 111 | 11 | 25 | 10.090909 | 0.707317 | 0 | 0 | 0 | 0 | 0 | 0.073395 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.142857 | 0.142857 | 0 | 0.428571 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
2e732e50c64bd0890499ea5c064de7eca475d3e6 | 96 | py | Python | intform.py | chidanandpujar/Python_scripts | 0ee70e07ef4ab4d8c04955466ea9b305bdac0a53 | [
"Unlicense"
] | null | null | null | intform.py | chidanandpujar/Python_scripts | 0ee70e07ef4ab4d8c04955466ea9b305bdac0a53 | [
"Unlicense"
] | null | null | null | intform.py | chidanandpujar/Python_scripts | 0ee70e07ef4ab4d8c04955466ea9b305bdac0a53 | [
"Unlicense"
] | null | null | null | try:
n = int(input("Enter number"))
print(n*n)
except:
print("Non integer entered")
| 16 | 34 | 0.604167 | 14 | 96 | 4.142857 | 0.785714 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.229167 | 96 | 5 | 35 | 19.2 | 0.783784 | 0 | 0 | 0 | 0 | 0 | 0.322917 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 | 0 | 0 | 0 | 0 | 0 | 2 |
2e88c24aefa6a32a03f2918d4a607a6af1094875 | 938 | py | Python | services/scraper.py | AlperRehaYAZGAN/ytu-web-data-mining-termpaper | d86f6963f0dd2cb08af521ade5bbe568dac98ffc | [
"MIT"
] | null | null | null | services/scraper.py | AlperRehaYAZGAN/ytu-web-data-mining-termpaper | d86f6963f0dd2cb08af521ade5bbe568dac98ffc | [
"MIT"
] | null | null | null | services/scraper.py | AlperRehaYAZGAN/ytu-web-data-mining-termpaper | d86f6963f0dd2cb08af521ade5bbe568dac98ffc | [
"MIT"
] | null | null | null | from urllib.request import urlopen
from bs4 import BeautifulSoup
import re
class Scraper():
Newlines = re.compile(r'[\r\n]\s+')
def __init__(self):
pass
def scrape_url_text_content(self,url):
return self.__get_page_text_content(url)
def __get_page_text_content(self,u... | 29.3125 | 52 | 0.6258 | 115 | 938 | 4.904348 | 0.513043 | 0.058511 | 0.053191 | 0.06383 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001468 | 0.273987 | 938 | 31 | 53 | 30.258065 | 0.826725 | 0.304904 | 0 | 0.117647 | 0 | 0 | 0.052877 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.176471 | false | 0.117647 | 0.176471 | 0.058824 | 0.588235 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
2e89e09da8031427416db5dc051f730ed4de3c8a | 1,361 | py | Python | gcn/anal.py | s1998/gcn | 8b92342d4f4a8d037593732072ed89cfd8aa9be9 | [
"MIT"
] | null | null | null | gcn/anal.py | s1998/gcn | 8b92342d4f4a8d037593732072ed89cfd8aa9be9 | [
"MIT"
] | null | null | null | gcn/anal.py | s1998/gcn | 8b92342d4f4a8d037593732072ed89cfd8aa9be9 | [
"MIT"
] | 1 | 2019-11-26T14:59:20.000Z | 2019-11-26T14:59:20.000Z | import pickle
import operator
import numpy as np
import csv
import os.path
with open ('y_test', 'rb') as f:
y_test=pickle.load(f)
dicvocab={}
f=open("data/vocab.csv")
vocab=csv.reader(f)
for word in vocab:
if word[0]!='':
dicvocab[int(word[0])-1]=word[1]
f.close()
label_size=y_test.shape[1]
topics=["/A... | 33.195122 | 441 | 0.71712 | 209 | 1,361 | 4.54067 | 0.401914 | 0.162276 | 0.213909 | 0.272919 | 0.094837 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017456 | 0.116091 | 1,361 | 41 | 442 | 33.195122 | 0.771405 | 0 | 0 | 0.081081 | 0 | 0 | 0.380323 | 0.298091 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.135135 | 0 | 0.135135 | 0.189189 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
5cf9a7c1bb1d09d465374c4ca2f91186c8631750 | 345 | py | Python | solvers/common/cell.py | andrinmeier/solvers | 01c5ba29d6c880a9c22cb897ad0e7e006ab1816b | [
"MIT"
] | null | null | null | solvers/common/cell.py | andrinmeier/solvers | 01c5ba29d6c880a9c22cb897ad0e7e006ab1816b | [
"MIT"
] | 1 | 2022-03-31T14:10:33.000Z | 2022-03-31T20:11:51.000Z | solvers/common/cell.py | andrinmeier/solvers | 01c5ba29d6c880a9c22cb897ad0e7e006ab1816b | [
"MIT"
] | null | null | null | from typing import Optional
class Cell:
def __init__(self, row: int, column: int, value: int = None) -> None:
self.row = row
self.column = column
self.value = value
def set_value(self, new_value: int) -> None:
self.value = new_value
def get_value(self) -> Optional[int]:
... | 23 | 73 | 0.611594 | 47 | 345 | 4.319149 | 0.382979 | 0.133005 | 0.118227 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.284058 | 345 | 14 | 74 | 24.642857 | 0.821862 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.3 | false | 0 | 0.1 | 0.1 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
cf0a981285b4ae44a0016c805a358ea2a5c148e3 | 324 | py | Python | geometric_algebra_attention/keras/Multivector2Vector.py | klarh/geometric_algebra_attention | 327f5d964b5bf72b6bf54b503c23ad8a0d7dc438 | [
"MIT"
] | 5 | 2021-10-14T22:24:00.000Z | 2022-03-24T20:11:59.000Z | geometric_algebra_attention/keras/Multivector2Vector.py | klarh/geometric_algebra_attention | 327f5d964b5bf72b6bf54b503c23ad8a0d7dc438 | [
"MIT"
] | 1 | 2021-12-03T18:51:19.000Z | 2021-12-03T18:51:19.000Z | geometric_algebra_attention/keras/Multivector2Vector.py | klarh/geometric_algebra_attention | 327f5d964b5bf72b6bf54b503c23ad8a0d7dc438 | [
"MIT"
] | 2 | 2021-10-14T22:26:07.000Z | 2022-03-24T20:23:05.000Z |
from tensorflow import keras
from .. import base
class Multivector2Vector(base.Multivector2Vector, keras.layers.Layer):
__doc__ = base.Multivector2Vector.__doc__
def call(self, inputs, mask=None):
return self._evaluate(inputs)
keras.utils.get_custom_objects()['Multivector2Vector'] = Multivector2Vec... | 24.923077 | 75 | 0.771605 | 35 | 324 | 6.828571 | 0.628571 | 0.1841 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017857 | 0.135802 | 324 | 12 | 76 | 27 | 0.835714 | 0 | 0 | 0 | 0 | 0 | 0.055728 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0.285714 | 0.142857 | 0.857143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 2 |
cf0cc6c5c4f6131b0f8dc9785310f78758084d2b | 603 | py | Python | accounts/admin.py | lakshaykhatter/djangox-project-attempt | 754d6ce58af06855125db3654e3a92b1c854883e | [
"MIT"
] | null | null | null | accounts/admin.py | lakshaykhatter/djangox-project-attempt | 754d6ce58af06855125db3654e3a92b1c854883e | [
"MIT"
] | null | null | null | accounts/admin.py | lakshaykhatter/djangox-project-attempt | 754d6ce58af06855125db3654e3a92b1c854883e | [
"MIT"
] | null | null | null | from django.contrib import admin
from django.contrib.auth import get_user_model
from django.contrib.auth.admin import UserAdmin
from .forms import CustomUserCreationForm, CustomUserChangeForm
from .models import CustomUser
class CustomUserAdmin(UserAdmin):
add_form = CustomUserCreationForm
form = CustomUserChangeFo... | 31.736842 | 131 | 0.769486 | 66 | 603 | 6.909091 | 0.545455 | 0.065789 | 0.111842 | 0.092105 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.107794 | 603 | 19 | 132 | 31.736842 | 0.847584 | 0 | 0 | 0 | 0 | 0 | 0.155629 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.357143 | 0 | 0.785714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
cf10c6d9fa3cd81af14cc3cf34915ce513e1c988 | 2,290 | py | Python | src/Service/Sandbox/runners/PythonRunner/test_frameworks/ck1_test/__init__.py | jakhax/code-runner-sandbox | 049bc2ae6c581decff06291140d72f223e997137 | [
"MIT"
] | null | null | null | src/Service/Sandbox/runners/PythonRunner/test_frameworks/ck1_test/__init__.py | jakhax/code-runner-sandbox | 049bc2ae6c581decff06291140d72f223e997137 | [
"MIT"
] | null | null | null | src/Service/Sandbox/runners/PythonRunner/test_frameworks/ck1_test/__init__.py | jakhax/code-runner-sandbox | 049bc2ae6c581decff06291140d72f223e997137 | [
"MIT"
] | null | null | null | import unittest
import traceback
from time import perf_counter
class CodeKombatTestRunner(object):
def __init__(self): pass
def run(self, test):
r = CodeKombatTestResult()
s = perf_counter()
print("\n<DESCRIBE::>Tests")
try:
test(r)
finally:
pass
... | 31.805556 | 100 | 0.60524 | 287 | 2,290 | 4.623693 | 0.303136 | 0.045215 | 0.02939 | 0.03165 | 0.185381 | 0.159759 | 0.125094 | 0.125094 | 0.064808 | 0.064808 | 0 | 0.010526 | 0.253275 | 2,290 | 71 | 101 | 32.253521 | 0.765497 | 0.038865 | 0 | 0.034483 | 0 | 0 | 0.101957 | 0.030496 | 0 | 0 | 0 | 0 | 0 | 1 | 0.206897 | false | 0.051724 | 0.051724 | 0.034483 | 0.37931 | 0.172414 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
cf2215f3d2c850c77ba0ec41befba0d5ea8de6de | 1,013 | py | Python | sdk/ml/azure-ai-ml/tests/online_services/unittests/test_resource_requirements_settings.py | dubiety/azure-sdk-for-python | 62ffa839f5d753594cf0fe63668f454a9d87a346 | [
"MIT"
] | 1 | 2022-02-01T18:50:12.000Z | 2022-02-01T18:50:12.000Z | sdk/ml/azure-ai-ml/tests/online_services/unittests/test_resource_requirements_settings.py | ellhe-blaster/azure-sdk-for-python | 82193ba5e81cc5e5e5a5239bba58abe62e86f469 | [
"MIT"
] | null | null | null | sdk/ml/azure-ai-ml/tests/online_services/unittests/test_resource_requirements_settings.py | ellhe-blaster/azure-sdk-for-python | 82193ba5e81cc5e5e5a5239bba58abe62e86f469 | [
"MIT"
] | null | null | null | import pytest
from azure.ai.ml.entities import ResourceSettings
@pytest.mark.unittest
class TestResourceRequirementsSettings:
def test_resource_requirements_settings_from_object(self) -> None:
rest_resource_settings = ResourceSettings(cpu="1", memory="1.0Gi", gpu="1")
resource_settings = Resource... | 48.238095 | 95 | 0.773939 | 119 | 1,013 | 6.226891 | 0.243697 | 0.388664 | 0.242915 | 0.072874 | 0.634278 | 0.539811 | 0.539811 | 0.539811 | 0.539811 | 0.539811 | 0 | 0.009259 | 0.147088 | 1,013 | 20 | 96 | 50.65 | 0.84838 | 0 | 0 | 0.375 | 0 | 0 | 0.01382 | 0 | 0 | 0 | 0 | 0 | 0.375 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.3125 | 0 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
cf22e5b27bb848a7487923ed2552186be004e856 | 1,230 | py | Python | soda/core/soda/telemetry/memory_span_exporter.py | duyet/soda-core | 92a52e0d7c1e88624d0637123cfcb2610af6d112 | [
"Apache-2.0"
] | 4 | 2022-03-23T02:43:42.000Z | 2022-03-31T15:20:54.000Z | soda/core/soda/telemetry/memory_span_exporter.py | duyet/soda-core | 92a52e0d7c1e88624d0637123cfcb2610af6d112 | [
"Apache-2.0"
] | 543 | 2022-03-22T09:02:17.000Z | 2022-03-31T16:29:41.000Z | soda/core/soda/telemetry/memory_span_exporter.py | duyet/soda-core | 92a52e0d7c1e88624d0637123cfcb2610af6d112 | [
"Apache-2.0"
] | 1 | 2022-03-27T03:37:55.000Z | 2022-03-27T03:37:55.000Z | import json
from typing import Dict, List, Sequence
from opentelemetry.sdk.trace import ReadableSpan
from opentelemetry.sdk.trace.export import SpanExporter, SpanExportResult
class MemorySpanExporter(SpanExporter):
"""Implementation of :class:`SpanExporter` that saves spans in memory.
This class can be used... | 27.954545 | 81 | 0.679675 | 132 | 1,230 | 6.143939 | 0.439394 | 0.055487 | 0.049322 | 0.061652 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.239837 | 1,230 | 43 | 82 | 28.604651 | 0.86738 | 0.118699 | 0 | 0.068966 | 0 | 0 | 0.024322 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.206897 | false | 0 | 0.137931 | 0.068966 | 0.586207 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
cf3453b50dda53baa027b0bcfd23dbe385ff3da8 | 1,234 | py | Python | setup.py | Yasumoto/sapling | 73c51a2f93441ab9c03441b4864cf735e57c8e2a | [
"Apache-2.0"
] | 24 | 2015-02-10T18:44:17.000Z | 2021-04-02T13:29:54.000Z | setup.py | Yasumoto/sapling | 73c51a2f93441ab9c03441b4864cf735e57c8e2a | [
"Apache-2.0"
] | 2 | 2015-08-26T02:01:29.000Z | 2018-11-05T19:02:34.000Z | setup.py | Yasumoto/sapling | 73c51a2f93441ab9c03441b4864cf735e57c8e2a | [
"Apache-2.0"
] | 3 | 2015-12-13T08:32:49.000Z | 2020-03-06T19:13:02.000Z | from setuptools import setup
from sapversion import version
setup(
name = 'sapling',
version = version(),
author = 'John Sirois',
author_email = 'john.sirois@gmail.com',
description = 'A git porcelain to manage bidirectional subtree syncing with foreign git '
'repositories',
... | 30.097561 | 93 | 0.619125 | 132 | 1,234 | 5.765152 | 0.674242 | 0.03548 | 0.065703 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.012987 | 0.251216 | 1,234 | 40 | 94 | 30.85 | 0.810606 | 0.132901 | 0 | 0 | 0 | 0 | 0.524836 | 0.019681 | 0 | 0 | 0 | 0.025 | 0 | 1 | 0 | true | 0 | 0.066667 | 0 | 0.066667 | 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 | 0 | 0 | 0 | 0 | 0 | 2 |
cf35fe110ed3af6b7439bbe3ebaf4b01b4c2e0d8 | 200 | py | Python | BAEKJOON/Python/23806.py | cmsong111/NJ_code | 2df6176d179e168a2789a825ddeb977a82eb8d97 | [
"MIT"
] | null | null | null | BAEKJOON/Python/23806.py | cmsong111/NJ_code | 2df6176d179e168a2789a825ddeb977a82eb8d97 | [
"MIT"
] | null | null | null | BAEKJOON/Python/23806.py | cmsong111/NJ_code | 2df6176d179e168a2789a825ddeb977a82eb8d97 | [
"MIT"
] | null | null | null | count = int(input())
for i in range(count):
print("@"*(count*5))
for i in range(count*3):
print("@"*(count)," "*(count*3),"@"*(count),sep="")
for i in range(count):
print("@"*(count*5)) | 20 | 55 | 0.54 | 31 | 200 | 3.483871 | 0.354839 | 0.111111 | 0.166667 | 0.305556 | 0.648148 | 0.5 | 0.5 | 0.5 | 0 | 0 | 0 | 0.023952 | 0.165 | 200 | 10 | 56 | 20 | 0.622754 | 0 | 0 | 0.571429 | 0 | 0 | 0.024876 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.428571 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
cf3b1afdd01e9db4470b50c71ad86d907678aa51 | 196 | py | Python | 06. Django + React.js apps/Todo app with CRUD functionality/backend/todolistapp/todoapp/urls.py | rexsimiloluwah/Python-Experiments | 63291ab7fe11e61cce2a936dd41b31f0eb35cc1f | [
"MIT"
] | 1 | 2021-01-21T11:39:07.000Z | 2021-01-21T11:39:07.000Z | 06. Django + React.js apps/Todo app with CRUD functionality/backend/todolistapp/todoapp/urls.py | rexsimiloluwah/Python-Experiments | 63291ab7fe11e61cce2a936dd41b31f0eb35cc1f | [
"MIT"
] | null | null | null | 06. Django + React.js apps/Todo app with CRUD functionality/backend/todolistapp/todoapp/urls.py | rexsimiloluwah/Python-Experiments | 63291ab7fe11e61cce2a936dd41b31f0eb35cc1f | [
"MIT"
] | 1 | 2021-01-21T11:39:19.000Z | 2021-01-21T11:39:19.000Z | from django.urls import path
from .views import TodoView, TodoDetailView
urlpatterns = [
path('tasks', TodoView.as_view()),
path('tasks/<int:id>', TodoDetailView.as_view()),
] | 19.6 | 54 | 0.668367 | 23 | 196 | 5.608696 | 0.608696 | 0.139535 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.188776 | 196 | 10 | 55 | 19.6 | 0.811321 | 0 | 0 | 0 | 0 | 0 | 0.096447 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
cf3fbcf2fb4c741b1eea2adbe119fe0d876a02e8 | 1,374 | py | Python | etabli/dquery.py | antoine-gallix/dev_tools | 9d55c7a1e52b9a1cee1d80d3d0cf8bf40ef125c9 | [
"MIT"
] | null | null | null | etabli/dquery.py | antoine-gallix/dev_tools | 9d55c7a1e52b9a1cee1d80d3d0cf8bf40ef125c9 | [
"MIT"
] | null | null | null | etabli/dquery.py | antoine-gallix/dev_tools | 9d55c7a1e52b9a1cee1d80d3d0cf8bf40ef125c9 | [
"MIT"
] | null | null | null | """Classes to filter dictionaries
"""
from pprint import pformat
class Filter_Equal:
def __init__(self, key, value):
self.key = key
self.value = value
def __call__(self, d):
return d[self.key] == self.value
class Filter_Keys:
def __init__(self, keys):
self.keys = keys
... | 19.913043 | 49 | 0.526929 | 175 | 1,374 | 4.017143 | 0.228571 | 0.078236 | 0.079659 | 0.096728 | 0.4367 | 0.332859 | 0.295875 | 0.219061 | 0.219061 | 0.219061 | 0 | 0 | 0.359534 | 1,374 | 68 | 50 | 20.205882 | 0.798864 | 0.192868 | 0 | 0.258065 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.290323 | false | 0 | 0.032258 | 0.064516 | 0.645161 | 0.032258 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
cf51fb0a687304d6915ac8357600edc9bc78ac6c | 256 | py | Python | rateApp/urls.py | enockabere/Project_Rating | b50d1474927b94d3d08a708eaff026e91ec9f950 | [
"Unlicense"
] | null | null | null | rateApp/urls.py | enockabere/Project_Rating | b50d1474927b94d3d08a708eaff026e91ec9f950 | [
"Unlicense"
] | null | null | null | rateApp/urls.py | enockabere/Project_Rating | b50d1474927b94d3d08a708eaff026e91ec9f950 | [
"Unlicense"
] | null | null | null | from django.urls import path,include
from . import views
urlpatterns = [
path('api/projects/', views.ProjectList.as_view()),
path('api/projects/profile', views.ProfileList.as_view()),
path('api/projects/ratings', views.RatingList.as_view()),
] | 32 | 62 | 0.71875 | 33 | 256 | 5.484848 | 0.515152 | 0.116022 | 0.248619 | 0.143646 | 0.232044 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.117188 | 256 | 8 | 63 | 32 | 0.800885 | 0 | 0 | 0 | 0 | 0 | 0.206226 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.285714 | 0 | 0.285714 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
cf571f1032d71d97c904c8951ea3ac1d6579fde4 | 2,089 | py | Python | tests/test_projectq_import.py | rmoyard/pennylane-pq | e229f5fe38a1330b3e3a84080f72ced4a2b55a65 | [
"Apache-2.0"
] | 2 | 2020-08-17T14:46:01.000Z | 2020-08-19T02:41:51.000Z | tests/test_projectq_import.py | rmoyard/pennylane-pq | e229f5fe38a1330b3e3a84080f72ced4a2b55a65 | [
"Apache-2.0"
] | 12 | 2020-08-17T14:00:27.000Z | 2022-03-28T20:16:10.000Z | tests/test_projectq_import.py | rmoyard/pennylane-pq | e229f5fe38a1330b3e3a84080f72ced4a2b55a65 | [
"Apache-2.0"
] | 2 | 2020-08-17T14:46:07.000Z | 2021-08-03T15:06:17.000Z | # Copyright 2018 Xanadu Quantum Technologies 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 applicable law or agre... | 34.816667 | 166 | 0.716611 | 268 | 2,089 | 5.440299 | 0.492537 | 0.067901 | 0.05487 | 0.045267 | 0.079561 | 0.079561 | 0.079561 | 0.079561 | 0.079561 | 0.079561 | 0 | 0.004799 | 0.202011 | 2,089 | 59 | 167 | 35.40678 | 0.869826 | 0.428435 | 0 | 0.25 | 0 | 0 | 0.145064 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | false | 0 | 0.535714 | 0 | 0.607143 | 0.035714 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
cf6239aa8d4a645b53190ef28a34898e081f0419 | 365 | py | Python | papers/PACMOO/utils.py | mindspore-ai/contrib | 85dccac7a2ba6e962092ecd51aefd962d7f2aeac | [
"Apache-2.0"
] | 2 | 2021-11-10T06:16:55.000Z | 2022-02-22T11:30:04.000Z | papers/PACMOO/utils.py | mindspore-ai/contrib | 85dccac7a2ba6e962092ecd51aefd962d7f2aeac | [
"Apache-2.0"
] | null | null | null | papers/PACMOO/utils.py | mindspore-ai/contrib | 85dccac7a2ba6e962092ecd51aefd962d7f2aeac | [
"Apache-2.0"
] | 1 | 2022-03-22T06:03:15.000Z | 2022-03-22T06:03:15.000Z | """
:author: hxq, shy
"""
import numpy as np
from mindspore import ops
DIV = ops.Div()
def l2_regularizer(input_x, axis=1):
"""
:param input_x:
:param axis:
:return:
"""
return DIV(input_x, ((input_x**2).sum(axis=axis, keepdims=True))**0.5)
def set_rng_seed(seed):
"""
:param seed:
... | 14.6 | 74 | 0.583562 | 53 | 365 | 3.886792 | 0.566038 | 0.116505 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017986 | 0.238356 | 365 | 24 | 75 | 15.208333 | 0.723022 | 0.210959 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.285714 | false | 0 | 0.285714 | 0 | 0.714286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
cf67b619d87d5ce5eeae0b24a7585eb4348c40f3 | 896 | py | Python | tests/dtqw/mesh/percolation/test_permanent.py | alfabr90/sparkquantum | e17ec73c0ba0a7a244419cc1ac99c5c6a181db1a | [
"MIT"
] | 2 | 2020-04-07T18:25:03.000Z | 2020-04-07T18:25:21.000Z | tests/dtqw/mesh/percolation/test_permanent.py | alfabr90/sparkquantum | e17ec73c0ba0a7a244419cc1ac99c5c6a181db1a | [
"MIT"
] | null | null | null | tests/dtqw/mesh/percolation/test_permanent.py | alfabr90/sparkquantum | e17ec73c0ba0a7a244419cc1ac99c5c6a181db1a | [
"MIT"
] | null | null | null | import unittest
from tests.base import Base
from sparkquantum.dtqw.mesh.percolation.percolation import is_percolation
from sparkquantum.dtqw.mesh.percolation.permanent import Permanent, is_permanent
# TODO: implement test_generate
class TestPermanent(Base):
def setUp(self):
super().setUp()
self.... | 28 | 105 | 0.708705 | 104 | 896 | 5.923077 | 0.355769 | 0.121753 | 0.064935 | 0.077922 | 0.172078 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002755 | 0.189732 | 896 | 31 | 106 | 28.903226 | 0.84573 | 0.032366 | 0 | 0 | 0 | 0 | 0.07052 | 0 | 0 | 0 | 0 | 0.032258 | 0.2 | 1 | 0.25 | false | 0 | 0.2 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
cf6f2fdeb86ed51353e8adf7aa58ca052fa342b7 | 338 | py | Python | bookmarks/models.py | jlugao/elephant-bot | e764573fba133c6ec4acde0634505e41f84f803f | [
"Apache-2.0"
] | null | null | null | bookmarks/models.py | jlugao/elephant-bot | e764573fba133c6ec4acde0634505e41f84f803f | [
"Apache-2.0"
] | null | null | null | bookmarks/models.py | jlugao/elephant-bot | e764573fba133c6ec4acde0634505e41f84f803f | [
"Apache-2.0"
] | null | null | null | from django.db import models
from utils.models import CreateUpdateTracker, nb, GetOrNoneManager
from taggit.managers import TaggableManager
# Create your models here.
class Bookmark(CreateUpdateTracker):
user = models.ForeignKey("tgbot.User", on_delete=models.CASCADE)
url = models.URLField(**nb)
tags = ... | 26 | 68 | 0.775148 | 39 | 338 | 6.692308 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.139053 | 338 | 12 | 69 | 28.166667 | 0.896907 | 0.071006 | 0 | 0 | 0 | 0 | 0.032051 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.428571 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
cf73022d4934564176367a695184cf012d8ff519 | 1,717 | py | Python | vdibroker/db/sqlalchemy/types.py | cloudbase/vdi-broker | e6250d65f62fbc9f8d1c0026208bc318b6161c83 | [
"Apache-2.0"
] | 29 | 2017-05-10T20:04:55.000Z | 2021-11-19T04:50:40.000Z | vdibroker/db/sqlalchemy/types.py | cloudbase/vdi-broker | e6250d65f62fbc9f8d1c0026208bc318b6161c83 | [
"Apache-2.0"
] | 1 | 2017-11-21T15:24:56.000Z | 2020-12-29T11:30:07.000Z | vdibroker/db/sqlalchemy/types.py | cloudbase/vdi-broker | e6250d65f62fbc9f8d1c0026208bc318b6161c83 | [
"Apache-2.0"
] | 17 | 2017-07-18T09:50:35.000Z | 2021-12-23T12:22:49.000Z | # Copyright 2016 Cloudbase Solutions Srl
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless... | 28.616667 | 78 | 0.685498 | 221 | 1,717 | 5.257919 | 0.457014 | 0.051635 | 0.055077 | 0.027539 | 0.483649 | 0.483649 | 0.483649 | 0.483649 | 0.483649 | 0.483649 | 0 | 0.006144 | 0.241701 | 1,717 | 59 | 79 | 29.101695 | 0.886329 | 0.354688 | 0 | 0.8 | 0 | 0 | 0.009149 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.1 | 0.066667 | 0.8 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
cf850a6e6ee611e8ea993e5d6c53ca7432236b2d | 123 | py | Python | src/genie/libs/parser/generic/tests/ShowVersion/cli/equal/golden_output_ios_3_expected.py | ykoehler/genieparser | b62cf622c3d8eab77c7b69e932c214ed04a2565a | [
"Apache-2.0"
] | null | null | null | src/genie/libs/parser/generic/tests/ShowVersion/cli/equal/golden_output_ios_3_expected.py | ykoehler/genieparser | b62cf622c3d8eab77c7b69e932c214ed04a2565a | [
"Apache-2.0"
] | null | null | null | src/genie/libs/parser/generic/tests/ShowVersion/cli/equal/golden_output_ios_3_expected.py | ykoehler/genieparser | b62cf622c3d8eab77c7b69e932c214ed04a2565a | [
"Apache-2.0"
] | null | null | null | expected_output = {
'pid': 'CISCO3945-CHASSIS',
'os': 'ios',
'platform': 'c3900',
'version': '15.0(1)M7',
} | 20.5 | 31 | 0.528455 | 14 | 123 | 4.571429 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.135417 | 0.219512 | 123 | 6 | 32 | 20.5 | 0.53125 | 0 | 0 | 0 | 0 | 0 | 0.435484 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
cf85ee5002545689e378db4eb7a20ca699c82d2e | 4,877 | py | Python | tests/unit/rjgtoys/xc/test_raises_basics.py | bobgautier/rjgtoys-xc | f20a352633b6e1781af213a5a307cb0017ddc830 | [
"MIT"
] | 2 | 2020-09-19T17:03:13.000Z | 2021-05-28T21:04:25.000Z | tests/unit/rjgtoys/xc/test_raises_basics.py | bobgautier/rjgtoys-xc | f20a352633b6e1781af213a5a307cb0017ddc830 | [
"MIT"
] | null | null | null | tests/unit/rjgtoys/xc/test_raises_basics.py | bobgautier/rjgtoys-xc | f20a352633b6e1781af213a5a307cb0017ddc830 | [
"MIT"
] | null | null | null | """
Test the constraint mechanisms in rjgtoys.xc.raises
"""
from rjgtoys.xc.raises import raises, may_raise, raises_exception
from rjgtoys.xc import BadExceptionBug, BadExceptionsInTestBug
import pytest
from unittest.mock import patch
# Fixtures
class Allowed1(Exception):
"""First allowed exception."""
pa... | 21.021552 | 92 | 0.661062 | 601 | 4,877 | 5.196339 | 0.262895 | 0.057637 | 0.03074 | 0.028178 | 0.213897 | 0.192123 | 0.153698 | 0.131924 | 0.111431 | 0.076849 | 0 | 0.008495 | 0.227599 | 4,877 | 231 | 93 | 21.112554 | 0.820547 | 0.312897 | 0 | 0.368932 | 0 | 0 | 0.054181 | 0.015033 | 0 | 0 | 0 | 0 | 0.038835 | 1 | 0.203884 | false | 0.097087 | 0.038835 | 0.009709 | 0.349515 | 0.029126 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
d83dc036c13b6c16c8316be498b029548f3f5345 | 997 | py | Python | okdata/sdk/permission/user_types.py | oslokommune/okdata-sdk-python | 39d9f79b96b2fe4c33136bc9344043f33cc0ee4c | [
"MIT"
] | 2 | 2021-01-13T06:53:04.000Z | 2021-08-02T05:14:06.000Z | okdata/sdk/permission/user_types.py | oslokommune/okdata-sdk-python | 39d9f79b96b2fe4c33136bc9344043f33cc0ee4c | [
"MIT"
] | 4 | 2021-04-21T06:14:36.000Z | 2021-08-03T08:35:14.000Z | okdata/sdk/permission/user_types.py | oslokommune/okdata-sdk-python | 39d9f79b96b2fe4c33136bc9344043f33cc0ee4c | [
"MIT"
] | 1 | 2021-08-02T05:14:09.000Z | 2021-08-02T05:14:09.000Z | # TODO: Use these simplified dataclasses once support for Python 3.6 is
# dropped. Meanwhile we'll use the "polyfill" classes defined below.
#
# from dataclasses import dataclass, field
#
# @dataclass
# class Client:
# user_id: str
# user_type: str = field(default="client", init=False)
#
#
# @dataclass
# class ... | 18.811321 | 71 | 0.642929 | 141 | 997 | 4.262411 | 0.29078 | 0.14975 | 0.08985 | 0.129784 | 0.580699 | 0.580699 | 0.580699 | 0.580699 | 0.324459 | 0.324459 | 0 | 0.00267 | 0.248746 | 997 | 52 | 72 | 19.173077 | 0.799733 | 0.467402 | 0 | 0.6 | 0 | 0 | 0.027505 | 0 | 0 | 0 | 0 | 0.019231 | 0 | 1 | 0.2 | false | 0 | 0 | 0.05 | 0.7 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
d83ead17e7240cba519bb5e00d5b470cc24573f7 | 286 | py | Python | ABC/abc051-abc100/abc055/b.py | KATO-Hiro/AtCoder | cbbdb18e95110b604728a54aed83a6ed6b993fde | [
"CC0-1.0"
] | 2 | 2020-06-12T09:54:23.000Z | 2021-05-04T01:34:07.000Z | ABC/abc051-abc100/abc055/b.py | KATO-Hiro/AtCoder | cbbdb18e95110b604728a54aed83a6ed6b993fde | [
"CC0-1.0"
] | 961 | 2020-06-23T07:26:22.000Z | 2022-03-31T21:34:52.000Z | ABC/abc051-abc100/abc055/b.py | KATO-Hiro/AtCoder | cbbdb18e95110b604728a54aed83a6ed6b993fde | [
"CC0-1.0"
] | null | null | null | '''input
100000
457992974
3
6
10
3628800
'''
# -*- coding: utf-8 -*-
# AtCoder Beginner Contest
# Problem B
if __name__ == '__main__':
from math import factorial
training_count = int(input())
print(factorial(training_count) % (10 ** 9 + 7))
| 11.44 | 53 | 0.58042 | 33 | 286 | 4.727273 | 0.848485 | 0.217949 | 0.282051 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.152709 | 0.29021 | 286 | 24 | 54 | 11.916667 | 0.615764 | 0.339161 | 0 | 0 | 0 | 0 | 0.051613 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0.25 | 0 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d849235fea8740c9dde6dc042e6617422a1ce9e6 | 1,753 | py | Python | pokr/views/statement.py | teampopong/pokr.kr | 6cdc32d81c299d75a8e565a3c1478f4e44df0360 | [
"Apache-2.0"
] | 76 | 2015-01-19T12:39:43.000Z | 2021-10-14T06:10:25.000Z | pokr/views/statement.py | teampopong/pokr.kr | 6cdc32d81c299d75a8e565a3c1478f4e44df0360 | [
"Apache-2.0"
] | 22 | 2015-01-03T01:00:53.000Z | 2019-09-14T11:55:06.000Z | pokr/views/statement.py | teampopong/pokr.kr | 6cdc32d81c299d75a8e565a3c1478f4e44df0360 | [
"Apache-2.0"
] | 28 | 2015-01-14T15:45:00.000Z | 2020-06-03T13:29:41.000Z | #!/usr/bin/env python
# -*- encoding: utf-8 -*-
from datetime import date
import os.path
import re
from flask import abort, current_app, render_template, redirect, request, send_file, url_for
from flask.ext.babel import gettext, format_date
from sqlalchemy import and_
from sqlalchemy.orm import undefer, undefer_group... | 33.075472 | 92 | 0.69652 | 208 | 1,753 | 5.725962 | 0.375 | 0.033585 | 0.060453 | 0.09068 | 0.18136 | 0.18136 | 0.18136 | 0.18136 | 0.18136 | 0.18136 | 0 | 0.004283 | 0.200799 | 1,753 | 52 | 93 | 33.711538 | 0.845824 | 0.037079 | 0 | 0.051282 | 0 | 0 | 0.060534 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.358974 | null | null | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
d84db89f8bb8b23b91622b1fef840cf65fc1f8d3 | 687 | py | Python | ils_loc_mapper/settings_app.py | birkin/ils_location_mapper_project | 59b4b2a5b97092649f80f38580b8e229e2e2064a | [
"MIT"
] | null | null | null | ils_loc_mapper/settings_app.py | birkin/ils_location_mapper_project | 59b4b2a5b97092649f80f38580b8e229e2e2064a | [
"MIT"
] | 2 | 2020-06-05T19:19:12.000Z | 2021-03-10T21:14:15.000Z | ils_loc_mapper/settings_app.py | birkin/ils_location_mapper_project | 59b4b2a5b97092649f80f38580b8e229e2e2064a | [
"MIT"
] | 1 | 2020-11-02T20:26:10.000Z | 2020-11-02T20:26:10.000Z | # -*- coding: utf-8 -*-
import json, os
README_URL = os.environ['ILS_LOC_MPR__README_URL']
## auth
SUPER_USERS = json.loads( os.environ['ILS_LOC_MPR__SUPER_USERS_JSON'] )
STAFF_USERS = json.loads( os.environ['ILS_LOC_MPR__STAFF_USERS_JSON'] ) # users permitted access to admin
STAFF_GROUP = os.environ['ILS_LOC_MPR_... | 49.071429 | 202 | 0.786026 | 116 | 687 | 4.232759 | 0.422414 | 0.10998 | 0.14664 | 0.183299 | 0.419552 | 0.327902 | 0.185336 | 0.130346 | 0 | 0 | 0 | 0.001631 | 0.107715 | 687 | 13 | 203 | 52.846154 | 0.799347 | 0.350801 | 0 | 0 | 0 | 0 | 0.403189 | 0.403189 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 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 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d85f71549d035c587ee70d47ce5fe31ded2c467e | 1,014 | py | Python | saleor/order/__init__.py | austineinstein/Dsaleor | d181f395f66bbaa7ba24edf9860a8f52c3c2af65 | [
"BSD-3-Clause"
] | null | null | null | saleor/order/__init__.py | austineinstein/Dsaleor | d181f395f66bbaa7ba24edf9860a8f52c3c2af65 | [
"BSD-3-Clause"
] | null | null | null | saleor/order/__init__.py | austineinstein/Dsaleor | d181f395f66bbaa7ba24edf9860a8f52c3c2af65 | [
"BSD-3-Clause"
] | null | null | null | from django.apps import AppConfig
from django.utils.translation import pgettext_lazy
class OrderAppConfig(AppConfig):
name = 'saleor.order'
def ready(self):
from payments.signals import status_changed
from .signals import order_status_change
status_changed.connect(order_status_change)... | 28.971429 | 68 | 0.684418 | 97 | 1,014 | 7 | 0.309278 | 0.129602 | 0.150221 | 0.20324 | 0.403535 | 0.235641 | 0.235641 | 0.235641 | 0.235641 | 0.235641 | 0 | 0 | 0.209073 | 1,014 | 34 | 69 | 29.823529 | 0.846633 | 0 | 0 | 0.4 | 0 | 0 | 0.209073 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0 | 0.16 | 0 | 0.68 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
d863aebfff144fa33466b0d7026410974d9c8595 | 418 | py | Python | coding/python/day01/operations.py | dkapanidis/my-tutorials | f3b72c35487782609b556016aba03b275cc6b105 | [
"MIT"
] | null | null | null | coding/python/day01/operations.py | dkapanidis/my-tutorials | f3b72c35487782609b556016aba03b275cc6b105 | [
"MIT"
] | null | null | null | coding/python/day01/operations.py | dkapanidis/my-tutorials | f3b72c35487782609b556016aba03b275cc6b105 | [
"MIT"
] | null | null | null | add = 3+2
print (add)
subtract = 3-2
print (subtract)
multiply = 3*2
print (multiply)
division = 3/2
print (division)
modulus = 3%2
print (modulus)
lessThan = 3<2
print (lessThan)
greaterThan = 3>2
print(greaterThan)
equals = 3==3
print (equals)
logicalAnd = (2==2) and (3==3) and (4==4)
print (logicalAnd)
logi... | 12.294118 | 41 | 0.655502 | 68 | 418 | 4.029412 | 0.279412 | 0.058394 | 0.20438 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.087209 | 0.177033 | 418 | 33 | 42 | 12.666667 | 0.709302 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | null | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
d87300fd270142bce547f78097ac49bba8ab4b60 | 327 | py | Python | masterserver/__init__.py | TheAssassin/python-masterserver | 8a6f5168bd5374ff047cb2a8c67299a2a1a4fc7b | [
"MIT"
] | null | null | null | masterserver/__init__.py | TheAssassin/python-masterserver | 8a6f5168bd5374ff047cb2a8c67299a2a1a4fc7b | [
"MIT"
] | null | null | null | masterserver/__init__.py | TheAssassin/python-masterserver | 8a6f5168bd5374ff047cb2a8c67299a2a1a4fc7b | [
"MIT"
] | 1 | 2020-12-18T15:17:15.000Z | 2020-12-18T15:17:15.000Z | # first we need to import the logging module
from ._logging import get_logger, setup_logging # noqa: F401
# then we make sure the codec is available
from ._codec import register_codec
register_codec()
# now the regular imports may follow
from .masterserver import MasterServer # noqa: F401 E402
__all__ = (MasterSe... | 25.153846 | 61 | 0.779817 | 47 | 327 | 5.212766 | 0.617021 | 0.065306 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033088 | 0.168196 | 327 | 12 | 62 | 27.25 | 0.867647 | 0.443425 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.6 | 0 | 0.6 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 2 |
d88766f6debf7c8e4659bf9a480c441e2c87dd2a | 345 | py | Python | monero_glue/misc/bip/bip39_deriv.py | ph4r05/monero-agent | 0bac0e6f33142b2bb885565bfd1ef8ac04559280 | [
"MIT"
] | 20 | 2018-04-05T22:06:10.000Z | 2021-09-18T10:43:44.000Z | monero_glue/misc/bip/bip39_deriv.py | ph4r05/monero-agent | 0bac0e6f33142b2bb885565bfd1ef8ac04559280 | [
"MIT"
] | null | null | null | monero_glue/misc/bip/bip39_deriv.py | ph4r05/monero-agent | 0bac0e6f33142b2bb885565bfd1ef8ac04559280 | [
"MIT"
] | 5 | 2018-08-06T15:06:04.000Z | 2021-07-16T01:58:43.000Z | import hashlib
import hmac
from Crypto.Protocol.KDF import PBKDF2
def mnemonics_to_seed(seed, passphrase=b""):
salt = b"mnemonic" + passphrase
def prf(p, s):
hx = hmac.new(p, msg=s, digestmod=hashlib.sha512)
return hx.digest()
res = PBKDF2(password=seed, salt=salt, dkLen=64, prf=prf, co... | 21.5625 | 73 | 0.672464 | 51 | 345 | 4.509804 | 0.627451 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.040293 | 0.208696 | 345 | 15 | 74 | 23 | 0.802198 | 0 | 0 | 0 | 0 | 0 | 0.023188 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0.3 | 0.3 | 0 | 0.7 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
d887ec97cfb7b09577411dad65c207085491fced | 261 | py | Python | output/models/nist_data/atomic/short/schema_instance/nistschema_sv_iv_atomic_short_max_exclusive_4_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 1 | 2021-08-14T17:59:21.000Z | 2021-08-14T17:59:21.000Z | output/models/nist_data/atomic/short/schema_instance/nistschema_sv_iv_atomic_short_max_exclusive_4_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | 4 | 2020-02-12T21:30:44.000Z | 2020-04-15T20:06:46.000Z | output/models/nist_data/atomic/short/schema_instance/nistschema_sv_iv_atomic_short_max_exclusive_4_xsd/__init__.py | tefra/xsdata-w3c-tests | b6b6a4ac4e0ab610e4b50d868510a8b7105b1a5f | [
"MIT"
] | null | null | null | from output.models.nist_data.atomic.short.schema_instance.nistschema_sv_iv_atomic_short_max_exclusive_4_xsd.nistschema_sv_iv_atomic_short_max_exclusive_4 import NistschemaSvIvAtomicShortMaxExclusive4
__all__ = [
"NistschemaSvIvAtomicShortMaxExclusive4",
]
| 43.5 | 199 | 0.896552 | 30 | 261 | 7.1 | 0.633333 | 0.15493 | 0.131455 | 0.187793 | 0.356808 | 0.356808 | 0.356808 | 0.356808 | 0 | 0 | 0 | 0.016194 | 0.05364 | 261 | 5 | 200 | 52.2 | 0.846154 | 0 | 0 | 0 | 0 | 0 | 0.145594 | 0.145594 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.25 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d88c118502a2f95d15026c4565828a1c3fdcf124 | 705 | py | Python | reservationsystem/views/stations.py | RajaFaizanNazir/bus-booking-system | df895793930535d7c1c50d84393d557be73780f3 | [
"MIT"
] | 1 | 2021-01-21T20:44:53.000Z | 2021-01-21T20:44:53.000Z | reservationsystem/views/stations.py | RajaFaizanNazir/bus-booking-system | df895793930535d7c1c50d84393d557be73780f3 | [
"MIT"
] | 7 | 2020-05-02T09:45:54.000Z | 2021-04-08T20:19:17.000Z | reservationsystem/views/stations.py | RajaFaizanNazir/bus-booking-system | df895793930535d7c1c50d84393d557be73780f3 | [
"MIT"
] | 1 | 2021-11-22T17:21:22.000Z | 2021-11-22T17:21:22.000Z | from rest_framework import permissions, serializers
from rest_framework.response import Response
from rest_framework.views import APIView
from reservationsystem.models import BusStation
from reservationsystem.services.stations import get_all_stations
class StationListApi(APIView):
"""
List all BusStations
... | 28.2 | 64 | 0.72766 | 72 | 705 | 7.013889 | 0.555556 | 0.047525 | 0.10099 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.2 | 705 | 24 | 65 | 29.375 | 0.89539 | 0.028369 | 0 | 0 | 0 | 0 | 0.008969 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.333333 | 0 | 0.733333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
d88fd27b14017c81fe95fd446d02e358a7e9865c | 645 | py | Python | core/propabilistic_assignment.py | cerm-cirmmp/picasso | d7be216f266ba43d28a2ed8ea199874c195a840d | [
"MIT"
] | null | null | null | core/propabilistic_assignment.py | cerm-cirmmp/picasso | d7be216f266ba43d28a2ed8ea199874c195a840d | [
"MIT"
] | null | null | null | core/propabilistic_assignment.py | cerm-cirmmp/picasso | d7be216f266ba43d28a2ed8ea199874c195a840d | [
"MIT"
] | null | null | null |
"""
For each single peak, set a probability distribution over all the possibile assignment.
Given a function phi(p,p') = {1/dist(p, p')} / {\sum_s 1/dist(p, s)}
definiamo le probabilità in base allo scarto con il valor medio
anzichè assegnare il particolare picco tale per cui lo scarto con il valor medio sia minim... | 30.714286 | 92 | 0.736434 | 107 | 645 | 4.411215 | 0.672897 | 0.016949 | 0.025424 | 0.025424 | 0.118644 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007435 | 0.165891 | 645 | 21 | 93 | 30.714286 | 0.869888 | 0.979845 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d894647f6b7d42d939fc4f38468477e81261eb26 | 1,347 | py | Python | python-codes/github-follow-sync/follow-sync.py | yjwx0017/test | 80071d6b4b83e78282a7607e6311f5c71c87bb3c | [
"MIT"
] | null | null | null | python-codes/github-follow-sync/follow-sync.py | yjwx0017/test | 80071d6b4b83e78282a7607e6311f5c71c87bb3c | [
"MIT"
] | 1 | 2016-09-29T05:34:12.000Z | 2016-09-30T16:26:07.000Z | python-codes/github-follow-sync/follow-sync.py | yjwx0017/test | 80071d6b4b83e78282a7607e6311f5c71c87bb3c | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# coding: utf-8
# GitHub
# Follow我的, Follow之
# 未Follow我的,从Following中删除之
# 即同步互Follow关系
import getpass
from github import Github
from github import PaginatedList
from github import NamedUser
# 始终Follow
ALWAYS_FOLLOW = [
'torvalds',
'jiangdon2007',
'michaelliao',
'zcbenz',
'r... | 22.830508 | 76 | 0.644395 | 177 | 1,347 | 4.666667 | 0.384181 | 0.030266 | 0.042373 | 0.033898 | 0.142857 | 0.104116 | 0 | 0 | 0 | 0 | 0 | 0.005015 | 0.259837 | 1,347 | 58 | 77 | 23.224138 | 0.82347 | 0.078693 | 0 | 0.052632 | 0 | 0 | 0.127332 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.078947 | 0.105263 | null | null | 0.105263 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
d8994f5246bb8f2bf569beae9a291cf57dfe8d89 | 9,348 | py | Python | src/Streamer.py | jaredmichaelsmith/PyMiner | 22af188d6f11bbab2c999636d8c2fb49dff45ed7 | [
"MIT"
] | null | null | null | src/Streamer.py | jaredmichaelsmith/PyMiner | 22af188d6f11bbab2c999636d8c2fb49dff45ed7 | [
"MIT"
] | null | null | null | src/Streamer.py | jaredmichaelsmith/PyMiner | 22af188d6f11bbab2c999636d8c2fb49dff45ed7 | [
"MIT"
] | null | null | null | '''
Jared Smith
PyMiner, Version 0.1
Streamer.py
Authored under MIT License.
'''
# Built-in Imports
from __future__ import print_function
import json
import re
import logging
import threading
import sys
# 3rd-Party Imports
import tweepy
from tweepy.models import Status
from tweepy.utils import import_... | 46.049261 | 1,340 | 0.619705 | 1,114 | 9,348 | 5.117594 | 0.369838 | 0.022803 | 0.007718 | 0.009472 | 0.070163 | 0.051921 | 0.051921 | 0.051921 | 0.040344 | 0 | 0 | 0.014872 | 0.287869 | 9,348 | 202 | 1,341 | 46.277228 | 0.84152 | 0.153402 | 0 | 0.136752 | 0 | 0.008547 | 0.256895 | 0.15027 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.008547 | 0.08547 | null | null | 0.034188 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d8b2283db0ddbff68c69ac26c223a626f6c34ebd | 2,818 | py | Python | tests/testapp/migrations/0001_initial.py | codingjoe/django-pictures | 57fb83d7a3a0b3f29fbe7bcfe639e3a036398a06 | [
"BSD-2-Clause"
] | 16 | 2022-03-26T19:27:30.000Z | 2022-03-29T20:29:46.000Z | tests/testapp/migrations/0001_initial.py | codingjoe/django-pictures | 57fb83d7a3a0b3f29fbe7bcfe639e3a036398a06 | [
"BSD-2-Clause"
] | 7 | 2022-03-27T13:30:32.000Z | 2022-03-31T08:03:16.000Z | tests/testapp/migrations/0001_initial.py | codingjoe/django-pictures | 57fb83d7a3a0b3f29fbe7bcfe639e3a036398a06 | [
"BSD-2-Clause"
] | 1 | 2022-03-29T16:15:12.000Z | 2022-03-29T16:15:12.000Z | # Generated by Django 4.0.2 on 2022-03-27 14:17
from django.db import migrations, models
import pictures.models
class Migration(migrations.Migration):
initial = True
dependencies = []
operations = [
migrations.CreateModel(
name="Profile",
fields=[
(
... | 32.390805 | 75 | 0.334989 | 175 | 2,818 | 5.251429 | 0.457143 | 0.045702 | 0.054407 | 0.056583 | 0.616975 | 0.535365 | 0.535365 | 0.4679 | 0.4679 | 0.4679 | 0 | 0.064677 | 0.572037 | 2,818 | 86 | 76 | 32.767442 | 0.697347 | 0.015969 | 0 | 0.692308 | 1 | 0 | 0.06135 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.025641 | 0 | 0.076923 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d8ba4a37eb25e82fd0aa5fe28371f7449c460cef | 1,020 | py | Python | game_servers_status/__init__.py | hamsteruser/gameservers_checking_tool | 1c9dc05b203f08cdf6053f1f379641b57e1368e0 | [
"MIT"
] | null | null | null | game_servers_status/__init__.py | hamsteruser/gameservers_checking_tool | 1c9dc05b203f08cdf6053f1f379641b57e1368e0 | [
"MIT"
] | null | null | null | game_servers_status/__init__.py | hamsteruser/gameservers_checking_tool | 1c9dc05b203f08cdf6053f1f379641b57e1368e0 | [
"MIT"
] | null | null | null | import importlib
class PingTesterBase():
''' Init module imports a file that is match the "game" argument '''
def __init__(self, game, host, port=None, timeout=10):
if ":" in host:
_host = host.split(':')[0]
port = int(host.split(':')[1])
else:
_host ... | 34 | 107 | 0.579412 | 118 | 1,020 | 4.830508 | 0.483051 | 0.112281 | 0.073684 | 0.070175 | 0.098246 | 0.098246 | 0 | 0 | 0 | 0 | 0 | 0.006983 | 0.298039 | 1,020 | 30 | 108 | 34 | 0.789106 | 0.208824 | 0 | 0 | 0 | 0 | 0.003881 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.294118 | false | 0 | 0.117647 | 0.117647 | 0.647059 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 |
d8c1325b6e3da71eb09b6e90fc27a95ea97336d7 | 44,932 | py | Python | ultracart/models/screen_recording.py | UltraCart/rest_api_v2_sdk_python | d734ea13fabc7a57872ff68bac06861edb8fd882 | [
"Apache-2.0"
] | 1 | 2018-03-15T16:56:23.000Z | 2018-03-15T16:56:23.000Z | ultracart/models/screen_recording.py | UltraCart/rest_api_v2_sdk_python | d734ea13fabc7a57872ff68bac06861edb8fd882 | [
"Apache-2.0"
] | null | null | null | ultracart/models/screen_recording.py | UltraCart/rest_api_v2_sdk_python | d734ea13fabc7a57872ff68bac06861edb8fd882 | [
"Apache-2.0"
] | null | null | null | # coding: utf-8
"""
UltraCart Rest API V2
UltraCart REST API Version 2 # noqa: E501
OpenAPI spec version: 2.0.0
Contact: support@ultracart.com
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class ScreenRecording(object):... | 31.59775 | 1,138 | 0.650227 | 5,143 | 44,932 | 5.402683 | 0.039277 | 0.043187 | 0.151155 | 0.13496 | 0.668322 | 0.515044 | 0.446124 | 0.320197 | 0.232671 | 0.099655 | 0 | 0.017421 | 0.273102 | 44,932 | 1,421 | 1,139 | 31.619986 | 0.833318 | 0.374299 | 0 | 0.08769 | 1 | 0 | 0.105106 | 0.03577 | 0 | 0 | 0 | 0 | 0 | 1 | 0.178752 | false | 0 | 0.005059 | 0 | 0.283305 | 0.003373 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d8c1b6dc7746f50d73bb6b0da867becc6f435563 | 793 | py | Python | algorithms/leetcode/medium/0075_颜色分类.py | bigfoolliu/liu_aistuff | aa661d37c05c257ee293285dd0868fb7e8227628 | [
"MIT"
] | 1 | 2019-11-25T07:23:42.000Z | 2019-11-25T07:23:42.000Z | algorithms/leetcode/medium/0075_颜色分类.py | bigfoolliu/liu_aistuff | aa661d37c05c257ee293285dd0868fb7e8227628 | [
"MIT"
] | 13 | 2020-01-07T16:09:47.000Z | 2022-03-02T12:51:44.000Z | algorithms/leetcode/medium/0075_颜色分类.py | bigfoolliu/liu_aistuff | aa661d37c05c257ee293285dd0868fb7e8227628 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding:utf-8 -*-
# author: bigfoolliu
"""
给定一个包含红色、白色和蓝色,一共 n 个元素的数组,原地对它们进行排序,使得相同颜色的元素相邻,并按照红色、白色、蓝色顺序排列。
此题中,我们使用整数 0、 1 和 2 分别表示红色、白色和蓝色。
示例 1:
输入:nums = [2,0,2,1,1,0]
输出:[0,0,1,1,2,2]
示例 2:
输入:nums = [2,0,1]
输出:[0,1,2]
示例 3:
输入:nums = [0]
输出:[0]
示例 4:
输入:nums = [1]
输出:[1]
... | 12.790323 | 65 | 0.627995 | 130 | 793 | 3.769231 | 0.607692 | 0.020408 | 0.028571 | 0.032653 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.059937 | 0.200504 | 793 | 61 | 66 | 13 | 0.712934 | 0.721311 | 0 | 0 | 0 | 0 | 0.042553 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0.142857 | 0.285714 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 |
d8d13d5b81321e856bb7820071fa5fbfd97dadfa | 278 | py | Python | scripts/validate_route.py | katharosada/busshaming | c8d7cd4baf9ff049cda49c92da4d5ca10f68e6a9 | [
"MIT"
] | 42 | 2018-01-20T01:12:25.000Z | 2022-02-02T01:40:17.000Z | scripts/validate_route.py | katharosada/busshaming | c8d7cd4baf9ff049cda49c92da4d5ca10f68e6a9 | [
"MIT"
] | 2 | 2018-01-24T03:58:17.000Z | 2018-06-10T01:05:57.000Z | scripts/validate_route.py | katharosada/busshaming | c8d7cd4baf9ff049cda49c92da4d5ca10f68e6a9 | [
"MIT"
] | 7 | 2018-01-24T05:49:13.000Z | 2018-12-03T08:47:43.000Z | import sys
import django
django.setup()
from busshaming.data_processing import realtime_validator
if __name__ == '__main__':
if len(sys.argv) != 2:
print(f'Usage: {sys.argv[0]} <route_id>')
sys.exit(1)
realtime_validator.validate_route(sys.argv[1])
| 18.533333 | 57 | 0.68705 | 39 | 278 | 4.564103 | 0.641026 | 0.117978 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017621 | 0.183453 | 278 | 14 | 58 | 19.857143 | 0.76652 | 0 | 0 | 0 | 0 | 0 | 0.140794 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.333333 | 0 | 0.333333 | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 2 |
d8d2d5d416e44985fcf456b29776b2640ac83b4a | 25,239 | py | Python | day5.py | Lajnold/adventofcode2015 | cd99969c5701d1afd5ec58afc76d7c03681d0648 | [
"MIT"
] | null | null | null | day5.py | Lajnold/adventofcode2015 | cd99969c5701d1afd5ec58afc76d7c03681d0648 | [
"MIT"
] | null | null | null | day5.py | Lajnold/adventofcode2015 | cd99969c5701d1afd5ec58afc76d7c03681d0648 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
strings = [
"sszojmmrrkwuftyv",
"isaljhemltsdzlum",
"fujcyucsrxgatisb",
"qiqqlmcgnhzparyg",
"oijbmduquhfactbc",
"jqzuvtggpdqcekgk",
"zwqadogmpjmmxijf",
"uilzxjythsqhwndh",
"gtssqejjknzkkpvw",
"wrggegukhhatygfi",
"vhtcgqzerxonhsye",
"tedlwzdjfppbmtd... | 23.877956 | 89 | 0.657435 | 1,179 | 25,239 | 14.063613 | 0.884648 | 0.000965 | 0.003619 | 0.002654 | 0.022556 | 0.019661 | 0.016465 | 0.0155 | 0.0155 | 0.0155 | 0 | 0.001114 | 0.217521 | 25,239 | 1,056 | 90 | 23.900568 | 0.838473 | 0.000832 | 0 | 0.021093 | 0 | 0 | 0.63707 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.006711 | false | 0 | 0 | 0 | 0.01534 | 0.001918 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d8d6931ac65cc6a255b6512843a2e8987070ceab | 1,991 | py | Python | diapers3ok.py | txt/evil | a08188d16cb983f329b8a0d03565cc108f435eff | [
"Unlicense"
] | 1 | 2016-08-03T03:45:18.000Z | 2016-08-03T03:45:18.000Z | diapers3ok.py | txt/evil | a08188d16cb983f329b8a0d03565cc108f435eff | [
"Unlicense"
] | null | null | null | diapers3ok.py | txt/evil | a08188d16cb983f329b8a0d03565cc108f435eff | [
"Unlicense"
] | 1 | 2018-06-22T15:21:57.000Z | 2018-06-22T15:21:57.000Z | from __future__ import print_function,division
from diapers3 import *
#@ok
def _o():
x=o(a=1,b=2)
#print(x)
x.has().update(dict(c=3,b=5))
#print(x)
y = x.copy()
y.a=10
assert y.a == 10 and x.a==1
y["a"] = y["a"] + 100
assert y.a == 110
#@ok
def _thing():
z = Thing("zz",init=91.34233,prec=0,step... | 20.739583 | 71 | 0.56002 | 359 | 1,991 | 3.075209 | 0.350975 | 0.022645 | 0.007246 | 0.027174 | 0.163043 | 0.163043 | 0.119565 | 0.081522 | 0.081522 | 0.081522 | 0 | 0.235372 | 0.244601 | 1,991 | 95 | 72 | 20.957895 | 0.49867 | 0.102963 | 0 | 0.123077 | 0 | 0 | 0.01107 | 0 | 0 | 0 | 0 | 0 | 0.061538 | 1 | 0.092308 | false | 0 | 0.030769 | 0 | 0.138462 | 0.123077 | 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 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d8d83bcade61f8cc9866d368b192e1b85e86d4f4 | 495 | py | Python | LeetCode/LeetCode_Python-master/LeetCode_Python-master/Algorithm-Medium/template.py | Sycamore-City-passerby/ML | 605cfc70bdda2c99e5f1c16b25812b59c98a72ad | [
"MIT"
] | null | null | null | LeetCode/LeetCode_Python-master/LeetCode_Python-master/Algorithm-Medium/template.py | Sycamore-City-passerby/ML | 605cfc70bdda2c99e5f1c16b25812b59c98a72ad | [
"MIT"
] | null | null | null | LeetCode/LeetCode_Python-master/LeetCode_Python-master/Algorithm-Medium/template.py | Sycamore-City-passerby/ML | 605cfc70bdda2c99e5f1c16b25812b59c98a72ad | [
"MIT"
] | null | null | null | """
Time Complexity = O(log(N))
Space Complexity = O(1)
Implement int sqrt(int x).
Compute and return the square root of x, where x is guaranteed to be a non-negative integer.
Since the return type is an integer, the decimal digits are truncated and only the integer part
of the result is return... | 30.9375 | 99 | 0.660606 | 78 | 495 | 4.192308 | 0.576923 | 0.067278 | 0.079511 | 0.091743 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.030556 | 0.272727 | 495 | 15 | 100 | 33 | 0.877778 | 0.892929 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d8dcc1a8543ac67aa55c99a59bd7458034752d1e | 359 | py | Python | python_toy_package/python_toy_package.py | marvinmin/python_toy_package | 120d1863cbfd9b0e677da286f5ebae5d7bc2b45d | [
"MIT"
] | null | null | null | python_toy_package/python_toy_package.py | marvinmin/python_toy_package | 120d1863cbfd9b0e677da286f5ebae5d7bc2b45d | [
"MIT"
] | null | null | null | python_toy_package/python_toy_package.py | marvinmin/python_toy_package | 120d1863cbfd9b0e677da286f5ebae5d7bc2b45d | [
"MIT"
] | null | null | null | import numpy as np
def sqsum(a):
"""
Calculate the squared sum of a list
Parameters
----------
a: list
the list of numbers to be calculated
Return
------
float
the squared sum
Examples
--------
>>> a = [1, 2, 3]
>>> sqsum(a)
14
"""
a... | 14.958333 | 44 | 0.456825 | 46 | 359 | 3.565217 | 0.565217 | 0.073171 | 0.158537 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027273 | 0.387187 | 359 | 23 | 45 | 15.608696 | 0.718182 | 0.559889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
d8dd7ab9f8022a1d5d19b99b9dcacfc83e2b21d8 | 5,254 | py | Python | src/somewhat_homomorphic_keygen.py | UMComp4140ATeam/Raymond | 2ccff4d15835ab386d3e25b2bb3a7ed03feffe81 | [
"MIT"
] | 1 | 2015-10-04T16:19:16.000Z | 2015-10-04T16:19:16.000Z | src/somewhat_homomorphic_keygen.py | UMComp4140ATeam/Raymond | 2ccff4d15835ab386d3e25b2bb3a7ed03feffe81 | [
"MIT"
] | null | null | null | src/somewhat_homomorphic_keygen.py | UMComp4140ATeam/Raymond | 2ccff4d15835ab386d3e25b2bb3a7ed03feffe81 | [
"MIT"
] | null | null | null | #!/bin/python
import logging
import math
import numpy
import simple_error_distribution
import rvg
'''
Generates the secret keys, the evaluation key, and the public key that will be used in the homomorphic encryption scheme.
'''
class SomewhatHomomorphicKeygen(object):
def __init__(self, dimension, multiplicative_... | 55.305263 | 242 | 0.633422 | 637 | 5,254 | 4.894819 | 0.22606 | 0.041693 | 0.034638 | 0.04009 | 0.133098 | 0.086273 | 0.079859 | 0.039769 | 0 | 0 | 0 | 0.007376 | 0.277503 | 5,254 | 95 | 243 | 55.305263 | 0.814015 | 0.109821 | 0 | 0 | 1 | 0.014286 | 0.093791 | 0.005504 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.071429 | null | null | 0.014286 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
d8e13d9c5c95870299301b3d6907a824b8905ba2 | 782 | py | Python | tests/ibmi/blackrock/test_remote_recording_control.py | sgowda/brain-python-interface | 708e2a5229d0496a8ce9de32bda66f0925d366d9 | [
"Apache-2.0"
] | 7 | 2015-08-25T00:28:49.000Z | 2020-04-14T22:58:51.000Z | tests/ibmi/blackrock/test_remote_recording_control.py | sgowda/brain-python-interface | 708e2a5229d0496a8ce9de32bda66f0925d366d9 | [
"Apache-2.0"
] | 89 | 2020-08-03T16:54:08.000Z | 2022-03-09T19:56:19.000Z | tests/ibmi/blackrock/test_remote_recording_control.py | sgowda/brain-python-interface | 708e2a5229d0496a8ce9de32bda66f0925d366d9 | [
"Apache-2.0"
] | 4 | 2020-03-06T15:39:00.000Z | 2021-05-26T17:03:21.000Z | import comedi
import time
com = comedi.comedi_open("/dev/comedi0")
# start (or resume) recording
print('starting recording')
# set strobe pin low
comedi.comedi_dio_bitfield2(com, 0, 1, 0, 16)
# set last data pin ("D15"; 16th pin) high
comedi.comedi_dio_bitfield2(com, 0, 1, 1, 15)
# set strobe pin high
comedi.comed... | 19.55 | 45 | 0.717391 | 135 | 782 | 4.044444 | 0.281481 | 0.175824 | 0.192308 | 0.307692 | 0.652015 | 0.652015 | 0.652015 | 0.575092 | 0.575092 | 0.575092 | 0 | 0.080547 | 0.158568 | 782 | 39 | 46 | 20.051282 | 0.74924 | 0.323529 | 0 | 0.357143 | 0 | 0 | 0.139535 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.142857 | 0 | 0.142857 | 0.214286 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
2b05d2bf6c81bbfb7364b65661bcc20fefe0058d | 414 | py | Python | ipython-7.29.0/docs/sphinxext/configtraits.py | JohnLauFoo/clc_packages_Yu | 259f01d9b5c02154ce258734d519ae8995cd0991 | [
"MIT"
] | 1 | 2021-11-13T17:21:44.000Z | 2021-11-13T17:21:44.000Z | ipython-7.29.0/docs/sphinxext/configtraits.py | JohnLauFoo/clc_packages_Yu | 259f01d9b5c02154ce258734d519ae8995cd0991 | [
"MIT"
] | null | null | null | ipython-7.29.0/docs/sphinxext/configtraits.py | JohnLauFoo/clc_packages_Yu | 259f01d9b5c02154ce258734d519ae8995cd0991 | [
"MIT"
] | null | null | null | """Directives and roles for documenting traitlets config options.
::
.. configtrait:: Application.log_datefmt
Description goes here.
Cross reference like this: :configtrait:`Application.log_datefmt`.
"""
def setup(app):
app.add_object_type('configtrait', 'configtrait', objname='Config option')... | 24.352941 | 78 | 0.719807 | 46 | 414 | 6.304348 | 0.73913 | 0.151724 | 0.172414 | 0.22069 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 414 | 16 | 79 | 25.875 | 0.84058 | 0.521739 | 0 | 0 | 0 | 0 | 0.376963 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
2b1b328dfd77ce2fb3d05b965893466405aba2fe | 17,460 | py | Python | bundle/wsgi/pgwu_sgwu.py | MobileCloudNetworking/epcaas | aa1c4c032790a52617c50a40c22699b7de94edd3 | [
"Apache-2.0"
] | null | null | null | bundle/wsgi/pgwu_sgwu.py | MobileCloudNetworking/epcaas | aa1c4c032790a52617c50a40c22699b7de94edd3 | [
"Apache-2.0"
] | null | null | null | bundle/wsgi/pgwu_sgwu.py | MobileCloudNetworking/epcaas | aa1c4c032790a52617c50a40c22699b7de94edd3 | [
"Apache-2.0"
] | null | null | null | # Copyright (c) 2014, Telecom Italia SpA
"""
Service Orchestrator for OpenEPC.
MCN 2014
"""
__author__ = 'sruffino'
import json
import os
import requests
from interfaces.ServiceAdapter import ServiceAdapter as ABCServiceAdapter
class PgwuSgwuAdapter(ABCServiceAdapter):
def __init__(self, co... | 41.374408 | 138 | 0.585223 | 2,266 | 17,460 | 4.219771 | 0.109885 | 0.065258 | 0.023844 | 0.035348 | 0.761556 | 0.717319 | 0.670153 | 0.632085 | 0.615562 | 0.59841 | 0 | 0.050133 | 0.267698 | 17,460 | 421 | 139 | 41.472684 | 0.697716 | 0.150115 | 0 | 0.478448 | 0 | 0.008621 | 0.305677 | 0.083826 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0.00431 | 0.025862 | null | null | 0.103448 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
2b1d8d896f28182ee81f486f437c6eeed50e60d4 | 635 | py | Python | design-patterns/structural/interpreter.py | verthais/exercise-python | d989647e8fbfe8a79b9b5f2c3ab003715d238851 | [
"MIT"
] | null | null | null | design-patterns/structural/interpreter.py | verthais/exercise-python | d989647e8fbfe8a79b9b5f2c3ab003715d238851 | [
"MIT"
] | null | null | null | design-patterns/structural/interpreter.py | verthais/exercise-python | d989647e8fbfe8a79b9b5f2c3ab003715d238851 | [
"MIT"
] | null | null | null | from abc import abstractmethod
class AbstractExpression():
@abstractmethod
def interpret(self):
pass
class NonterminalExpression(AbstractExpression):
def __init__(self, expression):
self._expression = expression
def interpret(self):
print("Non-terminal expression being interpreted ...")... | 18.676471 | 74 | 0.724409 | 56 | 635 | 7.964286 | 0.410714 | 0.080717 | 0.107623 | 0.09417 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.174803 | 635 | 33 | 75 | 19.242424 | 0.851145 | 0 | 0 | 0.157895 | 0 | 0 | 0.156146 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.263158 | false | 0.052632 | 0.052632 | 0 | 0.473684 | 0.105263 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
2b2f4de3511c7585c7d5f1527811e554f700b9b7 | 406 | py | Python | assets/tuned/daemon/tuned/profiles/functions/function_strip.py | sjug/cluster-node-tuning-operator | 8654d1c9558d0d5ef03d14373c877ebc737f9736 | [
"Apache-2.0"
] | 53 | 2018-11-13T07:02:03.000Z | 2022-03-25T00:00:04.000Z | assets/tuned/daemon/tuned/profiles/functions/function_strip.py | sjug/cluster-node-tuning-operator | 8654d1c9558d0d5ef03d14373c877ebc737f9736 | [
"Apache-2.0"
] | 324 | 2018-10-02T14:18:54.000Z | 2022-03-31T23:47:33.000Z | assets/tuned/daemon/tuned/profiles/functions/function_strip.py | sjug/cluster-node-tuning-operator | 8654d1c9558d0d5ef03d14373c877ebc737f9736 | [
"Apache-2.0"
] | 54 | 2018-10-01T16:55:09.000Z | 2022-03-28T13:56:53.000Z | import os
import tuned.logs
from . import base
from tuned.utils.commands import commands
class strip(base.Function):
"""
Makes string from all arguments and strip it
"""
def __init__(self):
# unlimited number of arguments, min 1 argument
super(strip, self).__init__("strip", 0, 1)
def execute(self, args):
i... | 22.555556 | 49 | 0.716749 | 60 | 406 | 4.716667 | 0.583333 | 0.070671 | 0.09894 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00885 | 0.165025 | 406 | 17 | 50 | 23.882353 | 0.825959 | 0.224138 | 0 | 0 | 0 | 0 | 0.016393 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.363636 | 0 | 0.818182 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 |
2b6022c13c162252331410ea5e544abccc9ad01f | 667 | py | Python | python-questions-for-pratices/Question-38.py | siddharth-143/Python | 293f4643a3a13e3b82d23fd8922db54dbb0f12bc | [
"MIT"
] | null | null | null | python-questions-for-pratices/Question-38.py | siddharth-143/Python | 293f4643a3a13e3b82d23fd8922db54dbb0f12bc | [
"MIT"
] | null | null | null | python-questions-for-pratices/Question-38.py | siddharth-143/Python | 293f4643a3a13e3b82d23fd8922db54dbb0f12bc | [
"MIT"
] | null | null | null | """
Question 38 :
Define a function which can generated a list where the values
are square of numbers between 1 and 20 (both included). Then the
function need to print the last 5 elements in the list.
Hints : Use ** operator to get power of a number. Use range()
for loop. Use list.append() to add v... | 22.233333 | 68 | 0.61919 | 109 | 667 | 3.770642 | 0.614679 | 0.036496 | 0.058394 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.061602 | 0.269865 | 667 | 30 | 69 | 22.233333 | 0.782341 | 0.568216 | 0 | 0 | 1 | 0 | 0.10241 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.142857 | 0.428571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
2b648cb256dde1fafc7ef4a4dd375245fc375688 | 2,272 | py | Python | utils/labels.py | Saaaber/urban-segmentation | fc893feb9208d3206d7c5329b1ccf4cfab97ed31 | [
"MIT"
] | 3 | 2020-11-16T20:21:25.000Z | 2021-06-11T13:09:30.000Z | utils/labels.py | Saaaber/urban-segmentation | fc893feb9208d3206d7c5329b1ccf4cfab97ed31 | [
"MIT"
] | null | null | null | utils/labels.py | Saaaber/urban-segmentation | fc893feb9208d3206d7c5329b1ccf4cfab97ed31 | [
"MIT"
] | 3 | 2020-11-11T23:43:15.000Z | 2022-03-17T09:03:42.000Z | # Copyright (c) Ville de Montreal. All rights reserved.
# Licensed under the MIT license.
# See LICENSE file in the project root for full license information.
CITYSCAPE_LABELS = [
('unlabeled', 0, 0, 0, 0),
('ego vehicle', 1, 0, 0, 0),
('rectification border', 2, 0, 0, 0),
('out of roi', 3, 0, 0, 0),
... | 32 | 68 | 0.487236 | 348 | 2,272 | 3.172414 | 0.465517 | 0.047101 | 0.027174 | 0.01087 | 0.07971 | 0.07971 | 0.054348 | 0.054348 | 0.054348 | 0.054348 | 0 | 0.298624 | 0.264525 | 2,272 | 70 | 69 | 32.457143 | 0.362059 | 0.066901 | 0 | 0.09375 | 0 | 0 | 0.216919 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
2b6b4c5cd7977ffb6f16236c51493108bc46a1c8 | 285 | py | Python | create_db.py | danuluma/andela-project | 4357948a9c9d3d1328f77dfb1bd9d6c79e458074 | [
"MIT"
] | null | null | null | create_db.py | danuluma/andela-project | 4357948a9c9d3d1328f77dfb1bd9d6c79e458074 | [
"MIT"
] | 19 | 2018-09-25T05:15:46.000Z | 2021-09-08T00:28:03.000Z | create_db.py | danuluma/andela-project | 4357948a9c9d3d1328f77dfb1bd9d6c79e458074 | [
"MIT"
] | 3 | 2018-09-26T20:35:08.000Z | 2018-10-05T07:13:19.000Z | import psycopg2
conn = psycopg2.connect(user='postgres', host='localhost', password='postgres')
cur = conn.cursor()
cur.execute("""CREATE DATABASE mafast1;""")
cur.execute("""CREATE DATABASE tfast;""")
conn.commit()
conn.close()
cur.close()
print("Congrats!! Danns database created")
| 25.909091 | 79 | 0.726316 | 35 | 285 | 5.914286 | 0.628571 | 0.096618 | 0.154589 | 0.231884 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011494 | 0.084211 | 285 | 10 | 80 | 28.5 | 0.781609 | 0 | 0 | 0 | 0 | 0 | 0.364912 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.111111 | 0.111111 | 0 | 0.111111 | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 2 |
2b776210057b794534834e3bd49950d8f173cd5d | 90 | py | Python | mysticweb/__data.py | bentheiii/mystic | 04df023a07fc411367a3a8984f9da143596085f0 | [
"MIT"
] | null | null | null | mysticweb/__data.py | bentheiii/mystic | 04df023a07fc411367a3a8984f9da143596085f0 | [
"MIT"
] | null | null | null | mysticweb/__data.py | bentheiii/mystic | 04df023a07fc411367a3a8984f9da143596085f0 | [
"MIT"
] | null | null | null | __author__ = 'Ben Avrahami'
__version__ = '0.6.1'
__all__ = ['__author__', '__version__']
| 22.5 | 39 | 0.7 | 10 | 90 | 4.3 | 0.8 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037975 | 0.122222 | 90 | 3 | 40 | 30 | 0.506329 | 0 | 0 | 0 | 0 | 0 | 0.422222 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
2b77bf1f5c09561afefa836926a3f170a220cec7 | 888 | py | Python | split.py | robertbyers1111/python | e87558f2432f0a4a86f17c47c6b19e1345625b83 | [
"MIT"
] | null | null | null | split.py | robertbyers1111/python | e87558f2432f0a4a86f17c47c6b19e1345625b83 | [
"MIT"
] | null | null | null | split.py | robertbyers1111/python | e87558f2432f0a4a86f17c47c6b19e1345625b83 | [
"MIT"
] | null | null | null | #msg1 = "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef"
msg = """ \r abcd \n efgh wxyz \n\n 0123abcd \naabcdd \r \n \r \n \r \n \r \n 4567\r\r\n"""
#------------------------------------------------------------------------------
# NOTES:
#
# 1. No args means spl... | 20.181818 | 106 | 0.531532 | 108 | 888 | 4.37037 | 0.472222 | 0.025424 | 0.019068 | 0.025424 | 0.216102 | 0.144068 | 0.127119 | 0 | 0 | 0 | 0 | 0.100402 | 0.158784 | 888 | 43 | 107 | 20.651163 | 0.531459 | 0.531532 | 0 | 0.428571 | 0 | 0.071429 | 0.435644 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | null | 0 | 0.071429 | null | null | 0.642857 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 2 |
991657324e1bb0254e28fe202143c5292de16e44 | 646 | py | Python | basics/8_abstract_decorators.py | pavlovprojects/python_qa_oop | 587156bf14499e5e836904ebef37aa3db1933b45 | [
"MIT"
] | null | null | null | basics/8_abstract_decorators.py | pavlovprojects/python_qa_oop | 587156bf14499e5e836904ebef37aa3db1933b45 | [
"MIT"
] | null | null | null | basics/8_abstract_decorators.py | pavlovprojects/python_qa_oop | 587156bf14499e5e836904ebef37aa3db1933b45 | [
"MIT"
] | null | null | null | from abc import ABC, abstractmethod, abstractproperty
class Opener(ABC):
@property
@abstractmethod
def material(self):
pass
@abstractmethod
def open(self):
return NotImplemented
class Closer(ABC):
@abstractmethod
def close(self):
return NotImplemented
class D... | 17 | 53 | 0.651703 | 74 | 646 | 5.594595 | 0.351351 | 0.115942 | 0.05314 | 0.140097 | 0.135266 | 0.135266 | 0.135266 | 0 | 0 | 0 | 0 | 0 | 0.24613 | 646 | 38 | 54 | 17 | 0.850103 | 0 | 0 | 0.375 | 0 | 0 | 0.103555 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0.041667 | 0.041667 | 0.083333 | 0.541667 | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 2 |
9916ce285dd636646b8ff2817f3127e28bb6af97 | 217 | py | Python | saas/aiops/api/aiops-server/services/base_service.py | iuskye/SREWorks | a2a7446767d97ec5f6d15bd00189c42150d6c894 | [
"Apache-2.0"
] | 407 | 2022-03-16T08:09:38.000Z | 2022-03-31T12:27:10.000Z | saas/aiops/api/aiops-server/services/base_service.py | Kwafoor/SREWorks | 37a64a0a84b29c65cf6b77424bd2acd0c7b42e2b | [
"Apache-2.0"
] | 25 | 2022-03-22T04:27:31.000Z | 2022-03-30T08:47:28.000Z | saas/aiops/api/aiops-server/services/base_service.py | Kwafoor/SREWorks | 37a64a0a84b29c65cf6b77424bd2acd0c7b42e2b | [
"Apache-2.0"
] | 109 | 2022-03-21T17:30:44.000Z | 2022-03-31T09:36:28.000Z | #!/usr/bin/env python
# encoding: utf-8
""" """
__author__ = 'sreworks'
from models.db_session import db
class BaseService(object):
def __init__(self):
self.db = db
self.db_session = db.session
| 16.692308 | 36 | 0.64977 | 29 | 217 | 4.517241 | 0.689655 | 0.206107 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005882 | 0.21659 | 217 | 12 | 37 | 18.083333 | 0.764706 | 0.165899 | 0 | 0 | 0 | 0 | 0.046512 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.5 | 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 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.