id
stringlengths
1
8
text
stringlengths
6
1.05M
dataset_id
stringclasses
1 value
/luma.core-2.4.1.tar.gz/luma.core-2.4.1/luma/core/bitmap_font.py
from pathlib import Path from math import ceil from copy import deepcopy from PIL import Image, ImageFont import cbor2 from luma.core.util import from_16_to_8, from_8_to_16 class bitmap_font(): """ An ``PIL.Imagefont`` style font. The structure of this class was modeled after the PIL ``ImageFont`` class...
PypiClean
/msgraph_beta_sdk-1.0.0a9-py3-none-any.whl/msgraph/generated/models/device_management_configuration_exchange_online_setting_applicability.py
from __future__ import annotations from kiota_abstractions.serialization import Parsable, ParseNode, SerializationWriter from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union if TYPE_CHECKING: from . import device_management_configuration_setting_applicability from . import device_managemen...
PypiClean
/fhi-vibes-1.0.5.tar.gz/fhi-vibes-1.0.5/vibes/cli/scripts/get_relaxation_info.py
# Find the optimizer type def get_optimizer(f): """Find the optimzer type Parameters ---------- f: str file to search through Returns ------- int Optimizer type, 1 for Textbook BFGS, 2 for TRM, -1 for undefined """ try: line = next(l for l in f if "Geometr...
PypiClean
/v2/model/create_sub_customer_response.py
import pprint import re import six from huaweicloudsdkcore.sdk_response import SdkResponse class CreateSubCustomerResponse(SdkResponse): """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key ...
PypiClean
/yaqc-cmds-2022.3.0.tar.gz/yaqc-cmds-2022.3.0/yaqc_cmds/somatic/modules/motortune.py
import pathlib import numpy as np import matplotlib matplotlib.pyplot.ioff() import WrightTools as wt import yaqc_cmds.project.classes as pc import yaqc_cmds.project.widgets as pw import yaqc_cmds.somatic.acquisition as acquisition import yaqc_cmds.sensors.signals as sensor_signals import yaqc_cmds import yaqc_...
PypiClean
/django-things-0.4.5.tar.gz/django-things-0.4.5/things/renderers.py
from math import ceil from datetime import datetime from django_medusa.renderers import StaticSiteRenderer from django.utils import timezone from django.conf import settings from .models import Thing, StaticBuild from snippets.models import Snippet class ThingRenderer(StaticSiteRenderer): def get_paths(self): ...
PypiClean
/confluent-kafka-pypy-1.9.2.tar.gz/confluent-kafka-pypy-1.9.2/src/confluent_kafka/kafkatest/verifiable_client.py
import datetime import json import os import re import signal import socket import sys import time class VerifiableClient(object): """ Generic base class for a kafkatest verifiable client. Implements the common kafkatest protocol and semantics. """ def __init__(self, conf): """ "...
PypiClean
/pytest_insta-0.2.0.tar.gz/pytest_insta-0.2.0/pytest_insta/review.py
__all__ = ["ReviewTool"] import os from code import InteractiveConsole from dataclasses import dataclass from pathlib import Path from typing import Any, Collection, Dict, Iterator, List, Optional, Tuple from _pytest.terminal import TerminalReporter from .format import Fmt from .utils import node_path_name class ...
PypiClean
/tensorflow-2.1.1-cp36-cp36m-macosx_10_11_x86_64.whl/tensorflow_core/python/ops/gen_audio_ops.py
import collections from tensorflow.python import pywrap_tensorflow as _pywrap_tensorflow from tensorflow.python.eager import context as _context from tensorflow.python.eager import core as _core from tensorflow.python.eager import execute as _execute from tensorflow.python.framework import dtypes as _dtypes from tens...
PypiClean
/space_tracer-4.10.1-py3-none-any.whl/space_tracer/main.py
import argparse from contextlib import contextmanager from functools import wraps from inspect import currentframe, stack import io from io import StringIO from pathlib import Path from itertools import zip_longest as izip_longest import os import os.path import re import sys import traceback import types try: # ...
PypiClean
/xart-0.2.0.tar.gz/xart-0.2.0/README.md
# xart: generate art ascii texts. [![Version][version-badge]][version-link] ![WTFPL License][license-badge] `xart` is a pure Python library that provides an easy way to generate art ascii texts. Life is short, be cool. ``` ██╗ ██╗ █████╗ ██████╗ ████████╗ ╚██╗██╔╝██╔══██╗██╔══██╗╚══██╔══╝ ╚███╔╝ ███████║██████...
PypiClean
/mroylib_min-2.2.5.tar.gz/mroylib_min-2.2.5/qlib/text/parser.py
import re, itertools from string import digits, ascii_letters ,punctuation, whitespace def extract_ip(string): return re.findall(r'\D((?:[1-2]?\d?\d\.){3}[1-2]?\d?\d)', string) def extract_http(string): return re.findall(r'(https?\://[\w\.\%\#\/\&\=\?\-]+)', string) def extract_host(string): return re....
PypiClean
/code_ast-0.1.0.tar.gz/code_ast-0.1.0/README.md
# Code AST > Fast structural analysis of any programming language in Python Programming Language Processing (PLP) brings the capabilities of modern NLP systems to the world of programming languages. To achieve high performance PLP systems, existing methods often take advantage of the fully defined nature of programmi...
PypiClean
/thoth-ssdeep-3.4.tar.gz/thoth-ssdeep-3.4/docs/source/index.rst
python-ssdeep ============= This is a straightforward Python wrapper for `ssdeep by Jesse Kornblum`_, which is a library for computing context triggered piecewise hashes (CTPH). Also called fuzzy hashes, CTPH can match inputs that have homologies. Such inputs have sequences of identical bytes in the same order, althou...
PypiClean
/unrest_schema-0.1.1.tar.gz/unrest_schema-0.1.1/unrest_schema/views.py
from django.http import JsonResponse, Http404 from .utils import form_to_schema import json FORMS = {} def FormResponse(form): if not form.errors: return JsonResponse({}) return JsonResponse({'errors': form.errors.get_json_data()}) def register(form, form_name=None): if isinstance(form, str): ...
PypiClean
/data_harvesting-1.0.0.tar.gz/data_harvesting-1.0.0/data_harvesting/util/json_ld_util.py
"""This module contains utility to process and handle, validate json-ld data """ import copy from copy import deepcopy from datetime import datetime from pathlib import Path from typing import Callable from typing import List from typing import Optional from typing import Union from pyld import jsonld from pyshacl imp...
PypiClean
/yggdrasil_framework-1.10.1.post1-cp310-cp310-manylinux_2_12_i686.manylinux2010_i686.manylinux_2_17_i686.manylinux2014_i686.whl/docs/source/server_client_io.rst
.. _server_client_io_rst: Server/Client I/O ================= Often you will want to call one model from another like a functions. This would required sending the input variable(s) to the model being called and then sending the output variables(s) back to the calling model. We refer to this as a Remote Procedure C...
PypiClean
/indic_punct-2.1.4-py3-none-any.whl/inverse_text_normalization/mr/taggers/money.py
from inverse_text_normalization.mr.data_loader_utils import get_abs_path from inverse_text_normalization.mr.graph_utils import ( NEMO_DIGIT, NEMO_SIGMA, GraphFst, convert_space, delete_extra_space, delete_space, get_singulars, insert_space, ) try: import pynini from pynini.lib ...
PypiClean
/bemserver_api-0.22.0-py3-none-any.whl/bemserver_api/resources/users/routes.py
from flask.views import MethodView from flask_smorest import abort from bemserver_core.model import User from bemserver_api import Blueprint from bemserver_api.database import db from .schemas import UserSchema, UserQueryArgsSchema, BooleanValueSchema blp = Blueprint( "User", __name__, url_prefix="/users", des...
PypiClean
/websauna.system-1.0a8.tar.gz/websauna.system-1.0a8/websauna/system/static/bootstrap.min.js
if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");+function(a){"use strict";var b=a.fn.jquery.split(" ")[0].split(".");if(b[0]<2&&b[1]<9||1==b[0]&&9==b[1]&&b[2]<1)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher")}(jQuery),+function(a){"use strict";fu...
PypiClean
/DeepManufacturing-0.0.7.tar.gz/DeepManufacturing-0.0.7/ManufacturingNet/models/svm.py
from math import sqrt import matplotlib.pyplot as plt from sklearn.metrics import (accuracy_score, confusion_matrix, make_scorer, mean_squared_error, roc_auc_score, roc_curve) from sklearn.model_selection import (GridSearchCV, cross_val_score, train_tes...
PypiClean
/float_evaluation-0.0.2-py3-none-any.whl/float/change_detection/evaluation/change_detection_evaluator.py
import numpy as np import traceback from typing import Callable, List, Union class ChangeDetectionEvaluator: """Change detection evaluation class. This class is required to compute the performance measures and store the corresponding results in the evaluation of the change detection method. Attribut...
PypiClean
/binance_dex-0.1.3.tar.gz/binance_dex-0.1.3/binance_dex/sockets.py
import inspect from binance_dex.lib.sockets import BinanceChainSocketConn IS_TEST_NET = False # A varialbe to switch test net / main net, default would be MAIN-NET SOCKET_BASE_ADDR_TEST_NET = 'wss://testnet-dex.binance.org/api/ws/' SOCKET_BASE_ADDR_MAIN_NET = 'wss://dex.binance.org/api/ws/' # Default Call back sam...
PypiClean
/collective.emaillogin-1.3.zip/collective.emaillogin-1.3/README.txt
collective.emaillogin Package Readme ==================================== Overview -------- This package allow logins with email address rather than login name. It applies some (somewhat hackish) patches to Plone's membership tool and memberdata class, after which the email address, on save, is saved as the login na...
PypiClean
/lfl-admin-0.0.9.tar.gz/lfl-admin-0.0.9/lfl_admin/statistic/models/raiting_of_players.py
import logging from django.db import transaction from django.db.models import DecimalField from isc_common.bit import TurnBitOn from isc_common.common import blinkString from isc_common.common.functions import ExecuteStoredProcRows from isc_common.fields.code_field import CodeField from isc_common.fields.name_field i...
PypiClean
/flask-talisman-1.1.0.tar.gz/flask-talisman-1.1.0/README.rst
Talisman: HTTP security headers for Flask ========================================= |PyPI Version| Talisman is a small Flask extension that handles setting HTTP headers that can help protect against a few common web application security issues. The default configuration: - Forces all connects to ``https``, unless ...
PypiClean
/tensorflow_macos-2.14.0rc0-cp311-cp311-macosx_12_0_arm64.whl/tensorflow/python/eager/polymorphic_function/function_context.py
"""Context information for a tf.function.""" from typing import NamedTuple, Any from tensorflow.core.function.polymorphism import function_cache from tensorflow.python.eager import context from tensorflow.python.framework import device as pydev from tensorflow.python.framework import func_graph as func_graph_module f...
PypiClean
/onnx_tf-1.10.0-py3-none-any.whl/onnx_tf/handlers/backend/depth_to_space.py
import copy import tensorflow as tf from onnx_tf.common import get_data_format from onnx_tf.common.tf_helper import tf_shape from onnx_tf.handlers.backend_handler import BackendHandler from onnx_tf.handlers.handler import onnx_op from onnx_tf.handlers.handler import tf_func @onnx_op("DepthToSpace") @tf_func(tf.nn.d...
PypiClean
/py_trans/translator.py
import requests from pykillerx.py_trans.language_codes import _get_full_lang_name, _get_lang_code from pykillerx.py_trans.errors import check_internet_connection, UnknownErrorOccurred, DeprecatedMethod class PyTranslator: """ PyTranslator Class Note: Before Trying to Translate Create an instance...
PypiClean
/nautobot_ssot-2.0.0rc1.tar.gz/nautobot_ssot-2.0.0rc1/nautobot_ssot/jobs/base.py
from collections import namedtuple from datetime import datetime import traceback import tracemalloc from typing import Iterable from django.db.utils import OperationalError from django.templatetags.static import static from django.utils import timezone from django.utils.functional import classproperty # pylint-djang...
PypiClean
/apache_superset_iteco-2.1.1.4-py3-none-any.whl/superset/datasets/dao.py
import logging from typing import Any, Dict, List, Optional from sqlalchemy.exc import SQLAlchemyError from superset.connectors.sqla.models import SqlaTable, SqlMetric, TableColumn from superset.dao.base import BaseDAO from superset.extensions import db from superset.models.core import Database from superset.models.d...
PypiClean
/ressources/lib/node_modules/highcharts/modules/no-data-to-display.src.js
'use strict'; (function (factory) { if (typeof module === 'object' && module.exports) { module.exports = factory; } else if (typeof define === 'function' && define.amd) { define(function () { return factory; }); } else { factory(Highcharts); } }(function (Highcharts) { (function (H) { /** * Plugin ...
PypiClean
/pynusmv-1.0rc8-cp35-cp35m-manylinux1_x86_64.whl/pynusmv_lower_interface/nusmv/hrc/dumpers/dumpers.py
from sys import version_info as _swig_python_version_info if _swig_python_version_info >= (2, 7, 0): def swig_import_helper(): import importlib pkg = __name__.rpartition('.')[0] mname = '.'.join((pkg, '_dumpers')).lstrip('.') try: return importlib.import_module(mname) ...
PypiClean
/cdktf-cdktf-provider-google_beta-9.0.1.tar.gz/cdktf-cdktf-provider-google_beta-9.0.1/src/cdktf_cdktf_provider_google_beta/data_google_compute_backend_bucket/__init__.py
import abc import builtins import datetime import enum import typing import jsii import publication import typing_extensions from typeguard import check_type from .._jsii import * import cdktf as _cdktf_9a9027ec import constructs as _constructs_77d1e7e8 class DataGoogleComputeBackendBucket( _cdktf_9a9027ec.Te...
PypiClean
/parameter-sherpa-1.0.6.tar.gz/parameter-sherpa-1.0.6/sherpa/app/static/lib/d3.parcoords.js
d3.parcoords = function(config) { var __ = { data: [], highlighted: [], dimensions: {}, dimensionTitleRotation: 0, brushed: false, brushedColor: null, alphaOnBrushed: 0.0, mode: "default", rate: 20, width: 600, height: 300, margin: { top: 24, right: 0, bottom: 12, left:...
PypiClean
/skytemple_dtef-1.6.0a3-py3-none-any.whl/skytemple_dtef/explorers_dtef.py
from math import floor, ceil from typing import List, Dict from xml.etree import ElementTree from PIL import Image from skytemple_dtef.dungeon_xml import DungeonXml, RestTileMapping, RestTileMappingEntry from skytemple_dtef.rules import get_rule_variations, REMAP_RULES from skytemple_files.graphics.dma.protocol impo...
PypiClean
/Discode.py-1.1.1.tar.gz/Discode.py-1.1.1/discode/utils.py
import pprint from .message import Message from .member import Member def make_pretty(*args, **kwargs) -> str: return pprint.pformat(*args, **kwargs) async def _check(ws, data: dict): if ws._ready.is_set(): event = data.get('t').upper() d = data.get("d") if event == "MESSAGE_CREATE": ...
PypiClean
/open_aea_cosmpy-0.6.5.tar.gz/open_aea_cosmpy-0.6.5/cosmpy/protos/cosmos/evidence/v1beta1/query_pb2_grpc.py
"""Client and server classes corresponding to protobuf-defined services.""" import grpc from cosmos.evidence.v1beta1 import query_pb2 as cosmos_dot_evidence_dot_v1beta1_dot_query__pb2 class QueryStub(object): """Query defines the gRPC querier service. """ def __init__(self, channel): """Construc...
PypiClean
/no_comment-0.1.1-py3-none-any.whl/no_comment/infrastructure/flask/__init__.py
from flask import Flask, get_flashed_messages, url_for from werkzeug.middleware.proxy_fix import ProxyFix import no_comment.interfaces.to_http.as_html as html_presenters from no_comment import __version__ from no_comment.infrastructure.settings import WsgiSettings from . import services from .auth import blueprint a...
PypiClean
/bf-banki-nlu-1.5.tar.gz/bf-banki-nlu-1.5/rasa/core/training/converters/responses_prefix_converter.py
from pathlib import Path from typing import Text from rasa.shared.core.domain import Domain, InvalidDomain from rasa.shared.core.events import ActionExecuted from rasa.shared.core.training_data.story_reader.yaml_story_reader import ( YAMLStoryReader, ) from rasa.shared.core.training_data.story_writer.yaml_story_wr...
PypiClean
/chemfiles-0.10.4.tar.gz/chemfiles-0.10.4/lib/CHANGELOG.md
# Change Log All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](https://semver.org/). ## Next Release (current master) ### Deprecation and removals - Remove support for configuration files (`chemfiles.toml`) and associated functions. ## 0.10.4 (7 Ma...
PypiClean
/hsa-pyelastica-0.0.1.tar.gz/hsa-pyelastica-0.0.1/hsa_elastica/memory_block/memory_block_hsa_rod.py
__doc__ = """Create block-structure class for collection of Cosserat rod systems.""" from elastica.memory_block.memory_block_rod import make_block_memory_metadata from elastica.rod.data_structures import _RodSymplecticStepperMixin from elastica.reset_functions_for_block_structure import _reset_scalar_ghost import nump...
PypiClean
/rdflib-jsonld-0.6.2.tar.gz/rdflib-jsonld-0.6.2/LICENSE.md
LICENSE AGREEMENT FOR RDFLIB-JSONLD ======================================================================== Copyright (c) 2012-2015, RDFLib Team All rights reserved. See http://github.com/RDFLib/rdflib-jsonld Redistribution and use in source and binary forms, with or without modification, are permitted provided tha...
PypiClean
/graphite-web-1.1.10.tar.gz/graphite-web-1.1.10/webapp/graphite/readers/multi.py
import functools from graphite.intervals import IntervalSet from graphite.logger import log from graphite.readers.utils import BaseReader class MultiReader(BaseReader): __slots__ = ('nodes',) def __init__(self, nodes): self.nodes = nodes def get_intervals(self): interval_sets = [] ...
PypiClean
/msgraph-sdk-1.0.0a3.tar.gz/msgraph-sdk-1.0.0a3/msgraph/generated/models/currency_column.py
from __future__ import annotations from kiota_abstractions.serialization import AdditionalDataHolder, Parsable, ParseNode, SerializationWriter from typing import Any, Callable, Dict, List, Optional, Union class CurrencyColumn(AdditionalDataHolder, Parsable): @property def additional_data(self,) -> Dict[str, An...
PypiClean
/pgn-parser-1.1.0.tar.gz/pgn-parser-1.1.0/pgn_parser/pgn.py
import pgn_parser.parser as parser import re from collections import OrderedDict, deque class Actions: """Collection of actions for the parser Functions that will return the desired structure of a node in the parse tree """ def make_tag_pair(self, input, start, end, elements): """Creates dict...
PypiClean
/entity_selector_jupyter_widget-0.1.6.tar.gz/entity_selector_jupyter_widget-0.1.6/README.md
# entity_selector_jupyter_widget A Jupyter Widget library for selecting entities in text ## Installation To install run: ```bash $ pip install entity_selector_jupyter_widget $ jupyter nbextension enable --py --sys-prefix entity_selector_jupyter_widget ``` <!--To uninstall run: ```bash $ pip uninstall en...
PypiClean
/pyHMSA-0.2.0.tar.gz/pyHMSA-0.2.0/pyhmsa/fileformat/xmlhandler/condition/acquisition.py
import xml.etree.ElementTree as etree # Third party modules. import numpy as np # Local modules. from pyhmsa.spec.condition.acquisition import \ (AcquisitionPoint, AcquisitionMultipoint, AcquisitionRasterLinescan, AcquisitionRasterXY, AcquisitionRasterXYZ) from pyhmsa.spec.condition.specimenposition import S...
PypiClean
/macedon-0.11.0-py3-none-any.whl/pytermor/common.py
from __future__ import annotations import enum import inspect import time import typing as t import logging from functools import update_wrapper logger = logging.getLogger(__package__) logger.addHandler(logging.NullHandler()) ### catching library logs "from the outside": # logger = logging.getLogger('pytermor') # ha...
PypiClean
/clipt-1.0.15.tar.gz/clipt-1.0.15/README.rst
About ----- Clipt (command line interface plotting tool) uses clasp and matplotlib to aid in plotting data files using matplotlib directly from the command line using a extensive set of options. See the clasp documentation for imformation about using config files. https://clipt.readthedocs.io/ Clipt was built using ...
PypiClean
/hyo2.qc-3.5.12-cp38-cp38-win_amd64.whl/hyo2/qc/survey/scan/checks.py
import datetime import logging import os from typing import List, Optional, TYPE_CHECKING from hyo2.qc.common.s57_aux import S57Aux if TYPE_CHECKING: from hyo2.qc.survey.scan.flags import Flags from hyo2.s57.s57 import S57Record10 from hyo2.abc.app.report import Report logger = logging.getLogger(__name__...
PypiClean
/Alarmageddon-1.1.2-py3-none-any.whl/alarmageddon/validations/validation.py
from .exceptions import EnrichmentFailure, ValidationFailure GLOBAL_NAMESPACE = "GLOBAL" class Priority(object): """Priority levels that indicate how severe a validation failure is. Validations have a priority that publishers use to determine whether or not to publish in the case of failure. """ ...
PypiClean
/ligo-scald-0.8.4.tar.gz/ligo-scald-0.8.4/ligo/scald/utils.py
__author__ = "Patrick Godwin (patrick.godwin@ligo.org)" __description__ = "a module to store commonly used utility functions" #------------------------------------------------- ### imports import argparse import bisect from collections import namedtuple import functools import json import os import random import re i...
PypiClean
/Flask-CKEditor-0.4.6.tar.gz/Flask-CKEditor-0.4.6/flask_ckeditor/static/basic/plugins/filetools/plugin.js
/** * @license Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ 'use strict'; ( function() { CKEDITOR.plugins.add( 'filetools', { lang: 'az,bg,ca,cs,da,de,de-ch,en,en-au,eo,es,es-mx,et,eu,fa,fr,gl,h...
PypiClean
/large_image_source_bioformats-1.23.6-py3-none-any.whl/large_image_source_bioformats/__init__.py
# This tile sources uses javabridge to communicate between python and java. It # requires some version of java's jvm to be available (see # https://jdk.java.net/archive/). It uses the python-bioformats wheel to get # the bioformats JAR file. A later version may be desirable (see # https://www.openmicroscopy.org/bio...
PypiClean
/pixivdownloader-0.1.1.tar.gz/pixivdownloader-0.1.1/pixiv/downloader/downloader.py
from cv2 import VideoWriter from cv2 import VideoWriter_fourcc from cv2 import destroyAllWindows from cv2 import imread from pathlib import Path from pixivpy3 import AppPixivAPI from tempfile import TemporaryDirectory from urllib.parse import urlparse from zipfile import ZipFile import os import re import shutil import...
PypiClean
/aiobroadlink-0.1.0.tar.gz/aiobroadlink-0.1.0/README.md
# aiobroadlink Library to control various Broadlink devices using asyncio This software is based on the protocol description from Ipsum Domus (?) Details at https://blog.ipsumdomus.com/broadlink-smart-home-devices-complete-protocol-hack-bc0b4b397af1 This software is based on python-broadlink by Matthew Garrett Detai...
PypiClean
/apache_airflow_providers_apache_hive-6.1.5rc1-py3-none-any.whl/airflow/providers/apache/hive/operators/hive_stats.py
from __future__ import annotations import json import warnings from typing import TYPE_CHECKING, Any, Callable, Sequence from airflow.exceptions import AirflowException from airflow.models import BaseOperator from airflow.providers.apache.hive.hooks.hive import HiveMetastoreHook from airflow.providers.mysql.hooks.mys...
PypiClean
/searchlight-9.0.0.0rc1.tar.gz/searchlight-9.0.0.0rc1/doc/source/configuration/authentication.rst
.. Copyright 2010 OpenStack Foundation All Rights Reserved. c) Copyright 2015 Hewlett-Packard Development Company, L.P. 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 Licen...
PypiClean
/fmqlreports-1.0.tar.gz/fmqlreports-1.0/user/webReportUser.py
import sys import os import re import json from collections import defaultdict, Counter from datetime import datetime, date from fmqlutils.reporter.reportUtils import MarkdownTable, reportPercent, reportAbsAndPercent, muBVC from fmqlutils.typer.reduceTypeUtils import splitTypeDatas, checkDataPresent, singleValue, com...
PypiClean
/Products.DigestoContentTypes-1.2a1.tar.gz/Products.DigestoContentTypes-1.2a1/Products/DigestoContentTypes/setuphandlers.py
__author__ = """Emanuel Sartor <emanuel@menttes.com>, Santiago Bruno <unknown>""" __docformat__ = 'plaintext' import logging logger = logging.getLogger('DigestoContentTypes: setuphandlers') from Products.DigestoContentTypes.config import PROJECTNAME from Products.DigestoContentTypes.config import DEPENDENCIES import...
PypiClean
/scs_analysis-2.8.5-py3-none-any.whl/scs_analysis-2.8.5.data/scripts/cognito_user_identity.py
import requests import sys from scs_analysis.cmd.cmd_cognito_user_identity import CmdCognitoUserIdentity from scs_core.aws.security.cognito_client_credentials import CognitoClientCredentials from scs_core.aws.security.cognito_login_manager import CognitoLoginManager from scs_core.aws.security.cognito_user import Cogn...
PypiClean
/portier-python-0.1.1.tar.gz/portier-python-0.1.1/README.rst
Portier authentication Python helpers ===================================== |travis| |master-coverage| .. |travis| image:: https://travis-ci.org/portier/portier-python.svg?branch=master :target: https://travis-ci.org/portier/portier-python .. |master-coverage| image:: https://coveralls.io/repos/portier/porti...
PypiClean
/theabbie-1.1.0.tar.gz/theabbie-1.1.0/README.md
# TheAbbie <p align='center'><img src="https://theabbie.github.io/files/logo.png" alt="TheAbbie" width="100" height="100"></p> [![Rate on Openbase](https://badges.openbase.io/js/rating/theabbie.svg)](https://openbase.io/js/theabbie?utm_source=embedded&utm_medium=badge&utm_campaign=rate-badge) * [About Me](#about-me)...
PypiClean
/msgraph-sdk-1.0.0a3.tar.gz/msgraph-sdk-1.0.0a3/msgraph/generated/groups/item/transitive_members/item/user/user_request_builder.py
from __future__ import annotations from dataclasses import dataclass from kiota_abstractions.get_path_parameters import get_path_parameters from kiota_abstractions.method import Method from kiota_abstractions.request_adapter import RequestAdapter from kiota_abstractions.request_information import RequestInformation fro...
PypiClean
/MultistateEpigeneticPacemaker-0.0.1.tar.gz/MultistateEpigeneticPacemaker-0.0.1/msepm/msepm_cv.py
import random from typing import Dict, Tuple import joblib import numpy as np from tqdm import tqdm from msepm.base import EPMBase from msepm import MultistateEpigeneticPacemaker from msepm.helpers import get_fold_step_size, tqdm_joblib class MultistateEpigeneticPacemakerCV(EPMBase): """ """ def __in...
PypiClean
/simple_rl-0.811.tar.gz/simple_rl-0.811/README.md
# simple_rl A simple framework for experimenting with Reinforcement Learning in Python. There are loads of other great libraries out there for RL. The aim of this one is twofold: 1. Simplicity. 2. Reproducibility of results. A brief tutorial for a slightly earlier version is available [here](http://cs.brown.edu/~dab...
PypiClean
/nnisgf-0.4-py3-none-manylinux1_x86_64.whl/nnisgf-0.4.data/data/nni/node_modules/wide-align/node_modules/is-fullwidth-code-point/readme.md
# is-fullwidth-code-point [![Build Status](https://travis-ci.org/sindresorhus/is-fullwidth-code-point.svg?branch=master)](https://travis-ci.org/sindresorhus/is-fullwidth-code-point) > Check if the character represented by a given [Unicode code point](https://en.wikipedia.org/wiki/Code_point) is [fullwidth](https://en....
PypiClean
/rflow_tfx-1.1.18-py3-none-any.whl/tfx/tools/cli/handler/base_handler.py
"""Base handler class.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function import abc import json import os import subprocess import sys import tempfile from typing import Any, Dict, List, Text import click from six import with_metaclass from tfx.dsl.comp...
PypiClean
/Django-4.2.4.tar.gz/Django-4.2.4/django/contrib/admin/static/admin/js/SelectFilter2.js
SelectFilter2 - Turns a multiple-select box into a filter interface. Requires core.js and SelectBox.js. */ 'use strict'; { window.SelectFilter = { init: function(field_id, field_name, is_stacked) { if (field_id.match(/__prefix__/)) { // Don't initialize on empty forms. ...
PypiClean
/pyvision_toolkit-1.3.4.tar.gz/pyvision_toolkit-1.3.4/samples/pyvision_banner.py
import os.path from Image import composite,LINEAR import pyvision as pv from pyvision.edge.sobel import sobel #from pyvision.edge.canny import canny from pyvision.point.DetectorSURF import DetectorSURF import cv if __name__ == '__main__': ilog = pv.ImageLog() source_name = os.path.join(pv.__path__[0],'data','...
PypiClean
/protocols/http_server.py
import os import sys sys.path.append(os.path.dirname(os.path.abspath(__file__))) sys.path.append(os.path.dirname(os.path.abspath(__file__))+'/../') from pmercury.protocols.protocol import Protocol class HTTP_Server(Protocol): def __init__(self, fp_database=None, config=None): # populate fingerprint data...
PypiClean
/collective.geo.polymaps-0.1.tar.gz/collective.geo.polymaps-0.1/collective/geo/polymaps/browser/viewlets.py
from zope.interface import implements from zope.component import getUtility from zope.component import queryAdapter from shapely.geometry import asShape from Products.CMFCore.utils import getToolByName from plone.app.layout.viewlets import ViewletBase from plone.registry.interfaces import IRegistry from collective.ge...
PypiClean
/XGEE-0.3.0.tar.gz/XGEE-0.3.0/xgee/core/plugins/ecoreSync/mdb/esSyncEvents.js
import UUID from '../util/uuid.js' const _watchEvent =(atoken) => { var resolveAnnouncement=() => {}; var rejectAnnouncement=() => {}; const promise=new Promise(function(resolve,reject){ resolveAnnouncement=(eObject) => { resolve(eObject) }; rejectAnnouncement=() => { reject() }; }) ...
PypiClean
/swordcloud-0.0.9.tar.gz/swordcloud-0.0.9/README.md
# **swordcloud** `swordcloud`: A semantic word cloud generator that uses t-SNE and k-means clustering to visualize words in high-dimensional semantic space. Based on [A. Mueller's `wordcloud` module](https://github.com/amueller/word_cloud), `swordcloud` can generate semantic word clouds from Thai and English texts base...
PypiClean
/kelvin_sdk-7.12.2-py3-none-any.whl/kelvin/sdk/lib/schema/schema_manager.py
import json from json import JSONDecodeError from typing import Any, Dict, Optional, Tuple import jsonschema import requests from jsonschema import RefResolver from yaml.parser import ParserError from kelvin.sdk.lib.configs.general_configs import GeneralConfigs from kelvin.sdk.lib.configs.schema_manager_configs impor...
PypiClean
/tensorflow-gpu-macosx-1.8.1.tar.gz/tensorflow/contrib/framework/python/framework/graph_util.py
from __future__ import absolute_import from __future__ import division from __future__ import print_function import copy import six # pylint: disable=unused-import from tensorflow.core.framework import graph_pb2 from tensorflow.core.framework import node_def_pb2 from tensorflow.python.framework import ops from tensorf...
PypiClean
/moralis-0.1.37.tar.gz/moralis-0.1.37/src/openapi_evm_api/paths/nft_address_trades/get.py
from dataclasses import dataclass import typing_extensions import urllib3 from urllib3._collections import HTTPHeaderDict from openapi_evm_api import api_client, exceptions from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re #...
PypiClean
/assemblyline_service_server-4.4.0.50-py3-none-any.whl/assemblyline_service_server/config.py
import logging import os import threading from assemblyline.common import forge from assemblyline.common import log as al_log from assemblyline.common.version import BUILD_MINOR, FRAMEWORK_VERSION, SYSTEM_VERSION from assemblyline.remote.datatypes.counters import Counters from assemblyline.remote.datatypes import get_...
PypiClean
/django-sencha-1.3.55555.tar.gz/django-sencha-1.3.55555/sencha/static/sencha/Ux/locale/override/st/picker/Date.js
Ext.define('Ux.locale.override.st.picker.Date', { override : 'Ext.picker.Date', setLocale : function(locale) { var me = this, locales = me.locales || me.getInitialConfig().locales, months = locales.months, day = locales.dayText, month = locales.monthText,...
PypiClean
/detectron2_cdo-0.5.tar.gz/detectron2_cdo-0.5/detectron2/model_zoo/configs/Misc/mmdet_mask_rcnn_R_50_FPN_1x.py
from ..common.data.coco import dataloader from ..common.coco_schedule import lr_multiplier_1x as lr_multiplier from ..common.optim import SGD as optimizer from ..common.train import train from detectron2.modeling.mmdet_wrapper import MMDetDetector from detectron2.config import LazyCall as L model = L(MMDetDetector)(...
PypiClean
/WebCore-2.0.4.tar.gz/WebCore-2.0.4/web/ext/annotation.py
# ## Imports from __future__ import unicode_literals from inspect import ismethod, getfullargspec from web.core.compat import items # ## Extension class AnnotationExtension(object): """Utilize Python 3 function annotations as a method to filter arguments coming in from the web. Argument annotations are treate...
PypiClean
/faculty_sync-0.4.1.tar.gz/faculty_sync-0.4.1/faculty_sync/controller.py
import logging import threading import time import traceback from concurrent.futures import ThreadPoolExecutor from .file_trees import ( compare_file_trees, get_remote_subdirectories, remote_is_dir, ) from .pubsub import Messages from .screens import ( DifferencesScreen, RemoteDirectoryPromptScreen...
PypiClean
/satnogs_decoders-1.60.0-py3-none-any.whl/satnogsdecoders/decoder/neudose.py
from pkg_resources import parse_version import kaitaistruct from kaitaistruct import KaitaiStruct, KaitaiStream, BytesIO if parse_version(kaitaistruct.__version__) < parse_version('0.9'): raise Exception("Incompatible Kaitai Struct Python API: 0.9 or later is required, but you have %s" % (kaitaistruct.__version_...
PypiClean
/mouse_behavior_analysis_tools-1.0.0-py3-none-any.whl/mouse_behavior_analysis_tools/utils/custom_functions.py
import datetime import ntpath import random import re import sys from itertools import chain, compress import numpy as np import pandas as pd # import glob # import socket import scipy.optimize as opt from sklearn.linear_model import LinearRegression, LogisticRegressionCV from mouse_behavior_analysis_tools.utils.mi...
PypiClean
/azure_mgmt_containerservice-26.0.0-py3-none-any.whl/azure/mgmt/containerservice/v2020_09_01/models/_models_py3.py
from typing import Any, Dict, List, Optional, TYPE_CHECKING, Union from ... import _serialization if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports from .. import models as _models class SubResource(_serialization.Model): """Reference to another subresource. Variables are only po...
PypiClean
/ai2thor_colab-0.1.2.tar.gz/ai2thor_colab-0.1.2/ai2thor_colab/__init__.py
from IPython.display import HTML, display import sys from moviepy.editor import ImageSequenceClip from typing import Sequence import numpy as np import os from typing import Optional import ai2thor.server from typing import Union from PIL import Image import matplotlib.pyplot as plt __version__ = "0.1.2" __all__ = [...
PypiClean
/M5-0.3.2.tar.gz/M5-0.3.2/lib/scottp-scrollability/scrollability.js
(function() { // Number of pixels finger must move to determine horizontal or vertical motion var kLockThreshold = 10; // Factor which reduces the length of motion by each move of the finger var kTouchMultiplier = 1; // Maximum velocity for motion after user releases finger //var kMaxVelocity = 720 / (window.deviceP...
PypiClean
/appinventor-tfjs-0.1.4.tar.gz/appinventor-tfjs-0.1.4/README.md
# MIT App Inventor TFJS Extension Generator The aim of this tool is to make it easier to generate the scaffolding needed to use a Tensorflow.js model in App Inventor. ## Quickstart Install dependencies: * java 8 * ant 1.10 * python 3 * node * npm * git Install the App Inventor TFJS extension generator using pip: ...
PypiClean
/gds-nagios-plugins-1.5.0.tar.gz/gds-nagios-plugins-1.5.0/plugins/command/check_elasticsearch_aws.py
from nagioscheck import NagiosCheck, UsageError from nagioscheck import PerformanceMetric, Status import urllib2 try: import json except ImportError: import simplejson as json HEALTH = {'red': 0, 'yellow': 1, 'green': 2} HEALTH_MAP = {0: 'critical', 1: 'warning', ...
PypiClean
/figgy_lib-1.0.0-py3-none-any.whl/figgy/writer.py
import json from collections import OrderedDict from .fig_store import FigStore from .figs import ReplicatedFig, AppFig, SharedFig, MergeFig TWIG = 'twig' APP_FIGS = 'app_figs' REPLICATE_FIGS = 'replicate_figs' SHARED_FIGS = 'shared_figs' MERGED_FIGS = 'merged_figs' class ConfigWriter: """ Writes the figgy.j...
PypiClean
/pytest-elements-1.0.2.tar.gz/pytest-elements-1.0.2/pytest_elements/elements/dropdown.py
import time import deprecation from random import randint from time import sleep from pytest_elements.elements.form_component import FormComponent from selenium.webdriver.support.ui import Select from selenium.common.exceptions import StaleElementReferenceException class Dropdown(FormComponent): """ Represen...
PypiClean
/sftpgo-client-0.3.1.tar.gz/sftpgo-client-0.3.1/sftpgo_client/base/api/user_ap_is/generate_user_totp_secret.py
from typing import Any, Dict, Optional, Union, cast import httpx from ...client import AuthenticatedClient from ...models.generate_user_totp_secret_json_body import GenerateUserTotpSecretJsonBody from ...models.generate_user_totp_secret_response_200 import ( GenerateUserTotpSecretResponse200, ) from ...types impo...
PypiClean
/azure-cli-2.51.0.tar.gz/azure-cli-2.51.0/azure/cli/command_modules/network/aaz/latest/network/route_table/_create.py
# pylint: skip-file # flake8: noqa from azure.cli.core.aaz import * @register_command( "network route-table create", ) class Create(AAZCommand): """Create a route table. :example: Create a route table. az network route-table create -g MyResourceGroup -n MyRouteTable """ _aaz_info = { ...
PypiClean
/testops_api-1.0.2-py3-none-any.whl/testops_api/api/team_api.py
import re # noqa: F401 import sys # noqa: F401 from testops_api.api_client import ApiClient, Endpoint from testops_api.model_utils import ( # noqa: F401 check_allowed_values, check_validations, date, datetime, file_type, none_type, validate_and_convert_types ) from testops_api.model.page...
PypiClean
/pytubedata-1.1.0-py3-none-any.whl/Youtube/channel.py
class channel(): """ The channel class handles the methods to fetch data from the YouTube Data API related to a channel params: required key- YouTube Data API key. Get a YouTube Data API key here: https://console.cloud.google.com/apis/dashboard """ def __init__(self): pass def...
PypiClean
/discord-pda-1.0.1a0.tar.gz/discord-pda-1.0.1a0/pda/invite.py
from __future__ import annotations from typing import List, Optional, Type, TypeVar, Union, TYPE_CHECKING from .asset import Asset from .utils import parse_time, snowflake_time, _get_as_snowflake from .object import Object from .mixins import Hashable from .enums import ChannelType, VerificationLevel, InviteTarget, tr...
PypiClean
/scraly_ovh-0.32.0.tar.gz/scraly_ovh-0.32.0/scraly_ovh/cloudproject/get_kube_nodes.py
import copy import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import _utilities from . import outputs __all__ = [ 'GetKubeNodesResult', 'AwaitableGetKubeNodesResult', 'get_kube_nodes', 'get_kube_nodes_output', ] @pulumi.ou...
PypiClean
/pelican_manager-0.2.1-py3-none-any.whl/pelican_manager/static/bootstrap-table/dist/bootstrap-table-locale-all.min.js
!function(a){"use strict";a.fn.bootstrapTable.locales["af-ZA"]={formatLoadingMessage:function(){return"Besig om te laai, wag asseblief ..."},formatRecordsPerPage:function(a){return a+" rekords per bladsy"},formatShowingRows:function(a,b,c){return"Resultate "+a+" tot "+b+" van "+c+" rye"},formatSearch:function(){return"...
PypiClean
/zc.lockfile-3.0-py3-none-any.whl/zc/lockfile/__init__.py
import logging import os logger = logging.getLogger("zc.lockfile") class LockError(Exception): """Couldn't get a lock """ try: import fcntl except ImportError: try: import msvcrt except ImportError: def _lock_file(file): raise TypeError('No file-locking support on t...
PypiClean