id
stringlengths
1
8
text
stringlengths
6
1.05M
dataset_id
stringclasses
1 value
/yafpa-3.0.3.tar.gz/yafpa-3.0.3/YAFPA/common/file_checking.py
import glob import os from pathlib import Path import frontmatter from unidecode import unidecode from YAFPA.common import convert_all as exclude from YAFPA.common import global_value as settings from YAFPA.common import metadata as mt BASEDIR = settings.BASEDIR post = settings.post vault = settings.vault def chec...
PypiClean
/taskcc-alipay-sdk-python-3.3.398.tar.gz/taskcc-alipay-sdk-python-3.3.398/alipay/aop/api/domain/AlipayInsDataAutoFraudQueryModel.py
import json from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.Informant import Informant from alipay.aop.api.domain.Injured import Injured from alipay.aop.api.domain.Insured import Insured from alipay.aop.api.domain.ReportCar import ReportCar from alipay.aop.api.domain.ReportCar import Re...
PypiClean
/bdbcontrib-0.1.8.1.tar.gz/bdbcontrib-0.1.8.1/src/parallel.py
# Copyright (c) 2010-2016, MIT Probabilistic Computing Project # # 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 requi...
PypiClean
/rio-cloudmask-0.3.0.tar.gz/rio-cloudmask-0.3.0/rio_cloudmask/equations.py
from __future__ import division import logging import numpy as np logger = logging.getLogger(__name__) def basic_test(ndvi, ndsi, swir2, tirs1): """Fundamental test to identify Potential Cloud Pixels (PCPs) Equation 1 (Zhu and Woodcock, 2012) Note: all input arrays must be the same shape Paramet...
PypiClean
/pysnmp-pyasn1-modules-0.2.9.tar.gz/pysnmp-pyasn1-modules-0.2.9/pyasn1_modules/rfc7191.py
from pyasn1.type import constraint, namedtype, namedval, opentype, tag, univ from pyasn1_modules import rfc5280, rfc5652 MAX = float("inf") DistinguishedName = rfc5280.DistinguishedName # SingleAttribute is the same as Attribute in RFC 5652, except that the # attrValues SET must have one and only one member cla...
PypiClean
/python-eml-0.0.2.tar.gz/python-eml-0.0.2/eml/eml_2_2_0/eml.py
from dataclasses import dataclass, field from decimal import Decimal from enum import Enum from typing import List, Optional, Type, Union from xsdata.models.datatype import XmlDate, XmlPeriod, XmlTime class AccessRuleValue(Enum): READ = "read" WRITE = "write" CHANGE_PERMISSION = "changePermission" ALL...
PypiClean
/custom_airflow_plugins-1.0.6.tar.gz/custom_airflow_plugins-1.0.6/custom_airflow_plugins/hooks/postgres_hook.py
import numpy as np import pandas as pd from airflow.providers.postgres.hooks.postgres import PostgresHook from psycopg2.extensions import register_adapter, AsIs from typing import Union, Any # ADAPTERS for compatibility between psycopg2 and pandas def addapt_numpy_float64(numpy_float64): return AsIs(numpy_float64...
PypiClean
/otx_modelapi-0.3.0-py3-none-any.whl/openvino/model_zoo/model_api/adapters/ovms_adapter.py
try: import ovmsclient ovmsclient_absent = False except ImportError: ovmsclient_absent = True import re import numpy as np import logging as log from .model_adapter import ModelAdapter, Metadata from .utils import Layout class OVMSAdapter(ModelAdapter): """ Class that allows working with models s...
PypiClean
/gitlab-watchman-3.0.0.tar.gz/gitlab-watchman-3.0.0/src/gitlab_watchman/models/signature.py
import pathlib import yaml from dataclasses import dataclass @dataclass(slots=True) class Signature(object): """ Class that handles loaded signature objects. Signatures define what to search for in GitLab and where to search for it. They also contain regex patterns to validate data that is found""" n...
PypiClean
/genprimers-0.0.1.tar.gz/genprimers-0.0.1/lib/templates/site_libs/navigation-1.1/FileSaver.min.js
var saveAs=saveAs||function(e){"use strict";if("undefined"==typeof navigator||!/MSIE [1-9]\./.test(navigator.userAgent)){var t=e.document,n=function(){return e.URL||e.webkitURL||e},o=t.createElementNS("http://www.w3.org/1999/xhtml","a"),r="download"in o,i=function(e){var t=new MouseEvent("click");e.dispatchEvent(t)},a=...
PypiClean
/Mesa_Adapted-0.8.7.3-py3-none-any.whl/mesa_adapted/visualization/templates/js/bootstrap-switch.min.js
(function(a,b){if('function'==typeof define&&define.amd)define(['jquery'],b);else if('undefined'!=typeof exports)b(require('jquery'));else{b(a.jquery),a.bootstrapSwitch={exports:{}}.exports}})(this,function(a){'use strict';function c(j,k){if(!(j instanceof k))throw new TypeError('Cannot call a class as a function')}var...
PypiClean
/custom-awscli-1.27.51.tar.gz/custom-awscli-1.27.51/awscli/examples/mediapackage-vod/list-packaging-groups.rst
**To list all packaging groups** The following ``list-packaging-groups`` example lists all of the packaging groups that are configured in the current AWS account. :: aws mediapackage-vod list-packaging-groups Output:: { "PackagingGroups": [ { "Arn": "arn:aws:mediapacka...
PypiClean
/blechpy-2.2.8.tar.gz/blechpy-2.2.8/README.md
See the <a href='https://nubs01.github.io/blechpy'>full documentation</a> here. - [blechpy](#blechpy) - [Installation](#installation) - [Usage](#usage) - [Datasets](#datasets) * [Starting wit a raw dataset](#starting-wit-a-raw-dataset) + [Create dataset](#create-dataset) + [Initialize Parameters](#initialize...
PypiClean
/tw2.ckeditor-2.0.1.tar.gz/tw2.ckeditor-2.0.1/tw2/ckeditor/static/4.0.1/lang/af.js
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.lang['af']={"dir":"ltr","editor":"Teksverwerker","common":{"editorHelp":"Druk op ALT 0 vir hulp","browseServer":"Blaai op bediener","url":"URL","protocol":"Protokol"...
PypiClean
/sycc-0.8.5.tar.gz/sycc-0.8.5/sycc_/pip/_vendor/rich/markup.py
import re from ast import literal_eval from operator import attrgetter from typing import Callable, Iterable, List, Match, NamedTuple, Optional, Tuple, Union from ._emoji_replace import _emoji_replace from .emoji import EmojiVariant from .errors import MarkupError from .style import Style from .text import Span, Text ...
PypiClean
/pulumi_azure_native-2.5.1a1693590910.tar.gz/pulumi_azure_native-2.5.1a1693590910/pulumi_azure_native/insights/v20210501preview/get_subscription_diagnostic_setting.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__ = [ 'GetSubscriptionDiagnosticSettingResult', 'AwaitableGetSubscriptionDiagnosticSettingResult', 'get_subscription_d...
PypiClean
/designate-16.0.0.tar.gz/designate-16.0.0/tools/pretty_flake8.py
import re import sys import linecache from prettytable import PrettyTable PEP8_LINE = r'^((?P<file>.*):(?P<line>\d*):(?P<col>\d*):) ' \ r'(?P<error>(?P<error_code>\w\d{1,3})(?P<error_desc>.*$))' HTML = True def main(): raw_errors = [] max_filename_len = 0 for line in sys.stdin: m...
PypiClean
/msgraph_beta_sdk-1.0.0a9-py3-none-any.whl/msgraph/generated/sites/item/onenote/notebooks/item/sections/item/pages/item/parent_notebook/parent_notebook_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
/pyflp-2.2.1.tar.gz/pyflp-2.2.1/docs/handbook.rst
📚 Handbook ============ This page contains some ideas on how one can use PyFLP for automating tasks (*to a certain extent*) which can only be done via FL Studio. A basic-to-intermediate level of Python knowledge is assumed. No prior knowledge of PyFLP is required for any of the sections below. *These all are writte...
PypiClean
/facenet-1.0.5-py3-none-any.whl/contributed/batch_represent.py
from __future__ import absolute_import from __future__ import division from __future__ import print_function """ Allows you to generate embeddings from a directory of images in the format: Instructions: Image data directory should look like the following figure: person-1 ├── image-1.jpg ├── image-2.png ... └── imag...
PypiClean
/conquest-0.1.22.tar.gz/conquest-0.1.22/docs/ConquestApiAddDocumentResult.md
# ConquestApiAddDocumentResult ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **document** | [**ConquestApiDocument**](ConquestApiDocument.md) | | [optional] **upload_expire_time** | **datetime** | | [optional] **upload_headers** | **dict(str, str)** | ...
PypiClean
/tensorflow_cpu_test_package-2.11.0rc0-cp38-cp38-win_amd64.whl/tensorflow/python/debug/lib/debug_utils.py
"""TensorFlow Debugger (tfdbg) Utilities.""" import re def add_debug_tensor_watch(run_options, node_name, output_slot=0, debug_ops="DebugIdentity", debug_urls=None, tolerate_debug_o...
PypiClean
/signalfx-instrumentation-redis-1.0.0.tar.gz/signalfx-instrumentation-redis-1.0.0/redis_opentracing/tracing.py
import traceback from builtins import str from functools import wraps import opentracing from opentracing.ext import tags import redis _g_tracer = None _g_trace_all_classes = None _g_start_span_cb = None def init_tracing(tracer=None, trace_all_classes=True, start_span_cb=None): """ Set our tracer for Redis....
PypiClean
/studioml_cs-0.0.48.post3-py3-none-any.whl/studio/db_providers/db_provider_setup.py
import os import yaml import pyhocon from studio.db_providers.local_db_provider import LocalDbProvider from studio.db_providers.s3_provider import S3Provider from studio.storage.storage_handler import StorageHandler from studio.storage.storage_handler_factory import StorageHandlerFactory from studio.storage.storage_se...
PypiClean
/pp.client-plone-0.4.7.zip/pp.client-plone-0.4.7/docs/source/content-types.rst
Adding custom content-types to the Plone Client Connector ========================================================= This documentation explains how to extend the Plone Client Connector with your own or custom Plone content-types. Custom content-types can be registered with the Produce & Publish server using the Zope ...
PypiClean
/firefly_client-2.8.0.tar.gz/firefly_client-2.8.0/README.md
# firefly_client Python API for Firefly, IPAC's Advanced Astronomy Web UI Framework ## Usage The client must be connected to a Firefly server. The Firefly repository is located at http://github.com/Caltech-IPAC/firefly. Standalone Firefly servers may be obtained from [this Dockerhub repository](https://hub.docker.co...
PypiClean
/csle_common-0.3.8.tar.gz/csle_common-0.3.8/src/csle_common/controllers/management_system_controller.py
import logging from typing import Any, Tuple import subprocess import docker import psutil import os import csle_common.constants.constants as constants import sys import shutil class ManagementSystemController: """ Controller managing monitoring tools """ @staticmethod def read_pid_file(path: st...
PypiClean
/Cydra-0.2.tar.gz/Cydra-0.2/cydra/repository/svn.py
import os, os.path, stat import subprocess import re import cydra from cydra.component import Component, implements, ExtensionPoint from cydra.repository import IRepository, Repository from cydra.error import CydraError, InsufficientConfiguration, UnknownRepository from cydra.permission import IPermissionProvider from...
PypiClean
/v2/model/delete_repo_response.py
import pprint import re import six from huaweicloudsdkcore.sdk_response import SdkResponse class DeleteRepoResponse(SdkResponse): """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attr...
PypiClean
/mpp-solar-0.7.76.tar.gz/mpp-solar-0.7.76/mppsolar/outputs/mqtt.py
import logging import re import paho.mqtt.publish as publish from .baseoutput import baseoutput from ..helpers import get_kwargs from ..helpers import key_wanted log = logging.getLogger("mqtt") class mqtt(baseoutput): def __str__(self): return "outputs the results to the supplied mqtt broker: eg {tag}/s...
PypiClean
/nltk-ma-0.0.6.tar.gz/nltk-ma-0.0.6/nltkma/corpus/reader/pros_cons.py
import re from nltkma.corpus.reader.api import * from nltkma.tokenize import * class ProsConsCorpusReader(CategorizedCorpusReader, CorpusReader): """ Reader for the Pros and Cons sentence dataset. >>> from nltkma.corpus import pros_cons >>> pros_cons.sents(categories='Cons') [['East'...
PypiClean
/gaeframework-2.0.10.tar.gz/gaeframework-2.0.10/google_appengine/google/appengine/api/apiproxy_rpc.py
import sys class RPC(object): """Base class for implementing RPC of API proxy stubs. To implement a RPC to make real asynchronous API call: - Extend this class. - Override _MakeCallImpl and/or _WaitImpl to do a real asynchronous call. """ IDLE = 0 RUNNING = 1 FINISHING = 2 def __init__(self, ...
PypiClean
/pymars-0.10.0a1-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl/mars/lib/bloom_filter.py
# pylint: disable=superfluous-parens,redefined-variable-type # superfluous-parens: Sometimes extra parens are more clear """Bloom Filter: Probabilistic set membership testing for large sets""" # Shamelessly borrowed (under MIT license) from # https://code.activestate.com/recipes/577686-bloom-filter/ # About Bloom F...
PypiClean
/opentps_core-1.0.7.tar.gz/opentps_core-1.0.7/opentps/core/data/_patient.py
__all__ = ['Patient'] import unittest from typing import Union, Sequence from opentps.core.data.images._image3D import Image3D from opentps.core.data.images._roiMask import ROIMask from opentps.core.data.plan._planDesign import PlanDesign from opentps.core.data.plan._rtPlan import RTPlan from opentps.core.data.dynami...
PypiClean
/BayNet-0.3.0.tar.gz/BayNet-0.3.0/baynet/utils/DAG_pb2.py
from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database # @@protoc_insertion_point(imports) _sym_d...
PypiClean
/symnet_cp-0.3.0.tar.gz/symnet_cp-0.3.0/src/symnet_cp/protocol.py
import asyncio import logging import re import typing from datetime import datetime from zoneinfo import ZoneInfo import attr from prometheus_client import Counter UTC = ZoneInfo("UTC") logger = logging.getLogger(__name__) class SymNetRawProtocolCallback: DEFAULT_TIMEOUT = 5 def __init__( self, ...
PypiClean
/ms_deisotope-0.0.51-cp39-cp39-macosx_10_9_x86_64.whl/ms_deisotope/peak_dependency_network/peak_network.py
import operator import logging from collections import defaultdict from .subgraph import ConnectedSubgraph from .intervals import SpanningMixin, IntervalTreeNode from ..utils import Base, TargetedDeconvolutionResultBase from ..task import LogUtilsMixin logger = logging.getLogger("ms_deisotope.scan_processor") def ...
PypiClean
/dingo-gw-0.5.4.tar.gz/dingo-gw-0.5.4/dingo/gw/transforms/parameter_transforms.py
import numpy as np import torch import pandas as pd from dingo.gw.prior import BBHExtrinsicPriorDict class SampleExtrinsicParameters(object): """ Sample extrinsic parameters and add them to sample in a separate dictionary. """ def __init__(self, extrinsic_prior_dict): self.extrinsic_prior_dic...
PypiClean
/autogluon.cloud-0.2.1b20230807-py3-none-any.whl/autogluon/cloud/cluster/ray_aws_cluster_manager.py
import json import logging import os from typing import Dict from ..utils.iam import replace_iam_policy_place_holder, replace_trust_relationship_place_holder from ..utils.ray_aws_iam import ( RAY_AWS_CLOUD_POLICY, RAY_AWS_IAM_POLICY_FILE_NAME, RAY_AWS_TRUST_RELATIONSHIP, RAY_AWS_TRUST_RELATIONSHIP_FILE...
PypiClean
/tensorflow_edwin-2.10.1-cp38-cp38-win_amd64.whl/tensorflow/python/platform/tf_logging.py
"""Logging utilities.""" # pylint: disable=unused-import # pylint: disable=g-bad-import-order # pylint: disable=invalid-name import logging as _logging import os as _os import sys as _sys import time as _time import traceback as _traceback from logging import DEBUG from logging import ERROR from logging import FATAL f...
PypiClean
/dpkt-fix-1.7.tar.gz/dpkt-fix-1.7/dpkt/pcap.py
import sys, time import dpkt TCPDUMP_MAGIC = 0xa1b2c3d4L PMUDPCT_MAGIC = 0xd4c3b2a1L PCAP_VERSION_MAJOR = 2 PCAP_VERSION_MINOR = 4 DLT_NULL = 0 DLT_EN10MB = 1 DLT_EN3MB = 2 DLT_AX25 = 3 DLT_PRONET = 4 DLT_CHAOS = 5 DLT_IEEE802 =...
PypiClean
/citrination-client-6.5.1.tar.gz/citrination-client-6.5.1/citrination_client/search/pif/query/core/property_query.py
from citrination_client.search.pif.query.core.field_query import FieldQuery from citrination_client.search.pif.query.core.reference_query import ReferenceQuery from citrination_client.search.pif.query.core.value_query import ValueQuery class PropertyQuery(ValueQuery): """ Class to query against a single prope...
PypiClean
/bands_inspect-0.3.2-py3-none-any.whl/bands_inspect/_cli.py
import click import numpy as np import matplotlib.pyplot as plt from . import io from . import plot from .compare import difference as _diff from .compare import align as _align @click.group() def cli(): pass @cli.command() @click.argument("eigenval_files", nargs=2, type=click.Path(exists=True, dir_okay=False)...
PypiClean
/google-cloud-firestore-2.11.1.tar.gz/google-cloud-firestore-2.11.1/google/cloud/firestore_admin_v1/services/firestore_admin/transports/grpc.py
import warnings from typing import Callable, Dict, Optional, Sequence, Tuple, Union from google.api_core import grpc_helpers from google.api_core import operations_v1 from google.api_core import gapic_v1 import google.auth # type: ignore from google.auth import credentials as ga_credentials # type: ignore from googl...
PypiClean
/xs_transformers-1.0.7-py3-none-any.whl/xs_transformers/utils/hub.py
import json import os import re import shutil import sys import tempfile import traceback import warnings from pathlib import Path from typing import Dict, List, Optional, Tuple, Union from urllib.parse import urlparse from uuid import uuid4 import huggingface_hub import requests from huggingface_hub import ( Comm...
PypiClean
/dossier.fc-0.3.5.tar.gz/dossier.fc-0.3.5/version.py
# Calculates the current version number. If possible, this is the # output of “git describe”, modified to conform to the versioning # scheme that setuptools uses. If “git describe” returns an error # (most likely because we're in an unpacked copy of a release tarball, # rather than in a git working copy), then we f...
PypiClean
/torch-points-kernels-0.7.0.tar.gz/torch-points-kernels-0.7.0/torch_points_kernels/cubic_feature_sampling.py
import torch if torch.cuda.is_available(): import torch_points_kernels.points_cuda as tpcuda class CubicFeatureSamplingFunction(torch.autograd.Function): @staticmethod def forward(ctx, ptcloud, cubic_features, neighborhood_size=1): scale = cubic_features.size(2) if not torch.cuda.is_avail...
PypiClean
/wcs.adminauth-1.0.1.tar.gz/wcs.adminauth-1.0.1/wcs/adminauth/session.py
from AccessControl.SecurityInfo import ClassSecurityInfo from Products.PageTemplates.PageTemplateFile import PageTemplateFile from Products.PluggableAuthService.interfaces.plugins import ( IAuthenticationPlugin, ICredentialsResetPlugin, ICredentialsUpdatePlugin, IExtractionPlugin, ) from Products.Plugga...
PypiClean
/limit_order_book-2.0.0.tar.gz/limit_order_book-2.0.0/vendor/binary-search-tree/vendor/Catch2/docs/slow-compiles.md
<a id="top"></a> # Why do my tests take so long to compile? **Contents**<br> [Short answer](#short-answer)<br> [Long answer](#long-answer)<br> [Practical example](#practical-example)<br> [Other possible solutions](#other-possible-solutions)<br> Several people have reported that test code written with Catch takes much...
PypiClean
/iocbio.gel-1.0.1.tar.gz/iocbio.gel-1.0.1/docs/install.md
# Installation and update There are several ways to install the software. For Linux/Mac, install the software using the automatic installation scripts provided (see below). For Windows, we recommend installing the software using the prepackaged executable (see below). In addition, we provide a general Python based ...
PypiClean
/fastapi_llm-0.1.2.tar.gz/fastapi_llm-0.1.2/fastapi_llm/service/faunadb/client.py
from __future__ import annotations import asyncio import json import logging import os import typing from dataclasses import dataclass, field from functools import wraps from re import T from threading import Lock from typing import Any, AsyncGenerator, Dict, List, Literal, Optional, Type, Union from aiohttp import (...
PypiClean
/lark-parser-0.12.0.tar.gz/lark-parser-0.12.0/docs/grammar.md
# Grammar Reference ## Definitions A **grammar** is a list of rules and terminals, that together define a language. Terminals define the alphabet of the language, while rules define its structure. In Lark, a terminal may be a string, a regular expression, or a concatenation of these and other terminals. Each rule ...
PypiClean
/test-tools-0.0.3.tar.gz/test-tools-0.0.3/test_tools/dprovider.py
from functools import update_wrapper from collections import Iterable __author__ = 'y.gavenchuk aka murminathor' __all__ = ['data_provider', ] def _get_data_source(data_set_source): if callable(data_set_source): data_source = data_set_source() elif isinstance(data_set_source, Iterable): da...
PypiClean
/PyParticles-0.3.5.tar.gz/PyParticles-0.3.5/pyparticles/ogl/trackball.py
import numpy as np class TrackBall( object ): """ Class used for controlling the rotation of the scene via mouse or joystick, by generating the virtual trackball effect Constructor ========== ========================= Arguments ========== ========================= ...
PypiClean
/rivescript_redis-0.1.0.tar.gz/rivescript_redis-0.1.0/rivescript_redis.py
from __future__ import unicode_literals import json import redis from rivescript.sessions import SessionManager __author__ = 'Noah Petherbridge' __copyright__ = 'Copyright 2017, Noah Petherbridge' __license__ = 'MIT' __status__ = 'Beta' __version__ = '0.1.0' class RedisSessionManager(SessionManager): "...
PypiClean
/atlite-0.2.11.tar.gz/atlite-0.2.11/.github/pull_request_template.md
<!-- SPDX-FileCopyrightText: 2021 The Atlite Authors SPDX-License-Identifier: CC0-1.0 --> Closes # (if applicable). ## Change proposed in this Pull Request <!--- Provide a general, short summary of your changes in the title above --> ## Description <!--- Describe your changes in detail --> ## Motivation and Conte...
PypiClean
/malaya_speech-1.4.0rc1-py3-none-any.whl/malaya_speech/force_alignment/transducer.py
from malaya_speech.supervised import stt from malaya_speech.stt.transducer import available_pt_transformer, _pt_transformer_availability from malaya_speech.utils import describe_availability from herpetologist import check_type import warnings _transformer_availability = { 'conformer-transducer': { 'Size (...
PypiClean
/hledger_args-0.1.0-py3-none-any.whl/hledger_args/lib.py
import os import re import shlex import subprocess import sys from pathlib import Path from typing import Dict, List, Tuple from fpdf import FPDF def get_default_file(): ledger_file = os.getenv("LEDGER_FILE") if ledger_file: return (ledger_file,) default_path = Path.home() / ".hledger.journal" ...
PypiClean
/pyjanitor-0.25.0.tar.gz/pyjanitor-0.25.0/janitor/functions/jitter.py
from typing import Hashable, Iterable, Optional import numpy as np import pandas_flavor as pf import pandas as pd from janitor.utils import check @pf.register_dataframe_method def jitter( df: pd.DataFrame, column_name: Hashable, dest_column_name: str, scale: np.number, clip: Optional[Iterable[np....
PypiClean
/airflow-provider-alembic-1.0.0.tar.gz/airflow-provider-alembic-1.0.0/README.md
# Alembic Airflow Provider An Airflow Provider to use Alembic to manage database migrations [Read more here](https://alembic.sqlalchemy.org/en/latest/) ## Setup ### Locally Install the Alembic CLI with `pip install alembic` ### In Airflow Add `airflow-provider-alembic` to your `requirements.txt` or equivalent ## Usa...
PypiClean
/django-theme-adminlte3-3.2.0.10.tar.gz/django-theme-adminlte3-3.2.0.10/adminlte3/static/codemirror/addon/scroll/annotatescrollbar.js
(function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use...
PypiClean
/ray_for_mars-1.12.1-cp38-cp38-manylinux2014_x86_64.whl/ray_for_mars-1.12.1.data/purelib/ray/autoscaler/_private/gcp/node_provider.py
from typing import Dict from functools import wraps from threading import RLock import time import logging import googleapiclient from ray.autoscaler.node_provider import NodeProvider from ray.autoscaler._private.gcp.config import ( bootstrap_gcp, construct_clients_from_provider_config, get_node_type, ) ...
PypiClean
/tensorflow_cpu_aws-2.14.0rc1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl/tensorflow/python/framework/registry.py
import traceback from tensorflow.python.platform import tf_logging as logging from tensorflow.python.util import compat # Registry mechanism below is based on mapreduce.python.mrpython.Register. _LOCATION_TAG = "location" _TYPE_TAG = "type" class Registry(object): """Provides a registry for saving objects.""" ...
PypiClean
/liyc_hand_superset-0.0.0-py3-none-any.whl/superset/tasks/schedules.py
from collections import namedtuple from datetime import datetime, timedelta from email.utils import make_msgid, parseaddr import logging import time import croniter from dateutil.tz import tzlocal from flask import render_template, Response, session, url_for from flask_babel import gettext as __ from flask_login impo...
PypiClean
/profile_binr-0.1.2-py3-none-any.whl/profile_binr/wrappers/probinr.py
__all__ = ["ProfileBin"] from typing import NoReturn, Any, Callable, List, Dict, Tuple, Optional, Union from pathlib import Path import logging import random import string import multiprocessing # rpy2 conversion import rpy2.robjects as r_objs from rpy2.robjects import pandas2ri from rpy2.robjects.conversion import...
PypiClean
/linenotify-python-0.1.1.tar.gz/linenotify-python-0.1.1/linenotify/validations.py
from __future__ import annotations from io import BytesIO from os import path import re from typing_extensions import Literal from urllib import request import cv2 import numpy as np from PIL import Image from .exceptions import * def validate_token(token: str): """ Validate the token """ if not isi...
PypiClean
/discordSuperUtils-splitted-0.2.0.tar.gz/discordSuperUtils-splitted-0.2.0/discordSuperUtils/Database.py
import asyncio import sys from abc import ABC, abstractmethod from typing import ( Dict, Any, Optional, List ) import aiomysql import aiopg import aiosqlite from motor import motor_asyncio if sys.version_info >= (3, 8) and sys.platform.lower().startswith("win"): # Aiopg requires the event loop pol...
PypiClean
/tortk-example-0.0.3.tar.gz/tortk-example-0.0.3/tortoolkit/config/ExecVarsSample.py
import os try: from .ExecVars import ExecVars except: class ExecVars: # Set true if its VPS IS_VPS = False API_HASH = os.environ.get("API_HASH") API_ID = int(os.environ.get("APP_ID", 12345)) BOT_TOKEN = os.environ.get("BOT_TOKEN", "") BASE_URL_OF_BOT = o...
PypiClean
/salt-ssh-9000.tar.gz/salt-ssh-9000/salt/states/lxd_container.py
from salt.exceptions import CommandExecutionError, SaltInvocationError __docformat__ = "restructuredtext en" __virtualname__ = "lxd_container" # Keep in sync with: https://github.com/lxc/lxd/blob/master/shared/status.go CONTAINER_STATUS_RUNNING = 103 CONTAINER_STATUS_FROZEN = 110 CONTAINER_STATUS_STOPPED = 102 def...
PypiClean
/msgraph-sdk-1.0.0a3.tar.gz/msgraph-sdk-1.0.0a3/msgraph/generated/users/item/member_of/application/application_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
/binary-refinery-0.4.41.tar.gz/binary-refinery-0.4.41/refinery/lib/xml.py
from __future__ import annotations import uuid import weakref import defusedxml.ElementTree as et from typing import Any, Dict, Iterable, List, Optional from xml.parsers import expat from xml.etree.ElementTree import Element, ElementTree from refinery.lib.structures import MemoryFile def ForgivingParse(data, entit...
PypiClean
/uspec-1.0.24-py3-none-any.whl/uspec.py
# ================================================================= # uspec # # Copyright (c) 2020 Takahide Nogayama # # This software is released under the MIT License. # http://opensource.org/licenses/mit-license.php # ================================================================= from __future__ import unicode_...
PypiClean
/ixnetwork_restpy-1.1.10.tar.gz/ixnetwork_restpy-1.1.10/ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocols/applysetfieldmisslearnedinfo_ca9fb065d79a7d3d4d9a28c53109f36d.py
import sys from ixnetwork_restpy.base import Base from ixnetwork_restpy.files import Files if sys.version_info >= (3, 5): from typing import List, Any, Union class ApplySetFieldMissLearnedInfo(Base): """NOT DEFINED The ApplySetFieldMissLearnedInfo class encapsulates a list of applySetFieldMissLearnedInfo...
PypiClean
/drypatrick-2021.7.5.tar.gz/drypatrick-2021.7.5/homeassistant/components/incomfort/water_heater.py
from __future__ import annotations import asyncio import logging from typing import Any from aiohttp import ClientResponseError from homeassistant.components.water_heater import ( DOMAIN as WATER_HEATER_DOMAIN, WaterHeaterEntity, ) from homeassistant.const import TEMP_CELSIUS from homeassistant.helpers.dispa...
PypiClean
/django-formidable-7.2.0.tar.gz/django-formidable-7.2.0/formidable/serializers/validation.py
import re from rest_framework import serializers from rest_framework.serializers import ValidationError from formidable.models import Validation from formidable.register import ValidationSerializerRegister, load_serializer from formidable.serializers.child_proxy import LazyChildProxy validation_register = Validation...
PypiClean
/onedrive-sharepoint-0.1.14.tar.gz/onedrive-sharepoint-0.1.14/onedrive_sharepoint/main.py
import os from datetime import datetime from office365.sharepoint.client_context import ClientContext from office365.runtime.auth.user_credential import UserCredential from office365.runtime.client_request_exception import ClientRequestException root_started = [ {"type" : "onedrive", "root": "Documents"}, {"t...
PypiClean
/scipion-em-xmipp-23.7.0.0.tar.gz/scipion-em-xmipp-23.7.0.0/xmipp3/protocols/protocol_resolution3d.py
from pyworkflow.protocol import PointerParam, BooleanParam from pyworkflow.utils import * import pwem.emlib.metadata as md from pwem.objects import FSC from pwem.protocols import ProtAnalysis3D from xmipp3.convert import (getImageLocation) class XmippProtResolution3D(ProtAnalysis3D): """ Computes resolution by...
PypiClean
/django-uikit-editor-0.0.1.tar.gz/django-uikit-editor-0.0.1/uikit_editor/static/uikit_editor/codemirror/addon/lint/javascript-lint.js
(function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use...
PypiClean
/wxPython-4.2.1-cp311-cp311-win32.whl/wx/lib/agw/fmcustomizedlg.py
import wx import six if six.PY2: from UserDict import UserDict else: from collections import UserDict from .artmanager import ArtManager from .fmresources import * from .labelbook import LabelBook _ = wx.GetTranslation # ---------------------------------------------------------------------------- # # Class ...
PypiClean
/idspy_dictionaries-33801.1.1.tar.gz/idspy_dictionaries-33801.1.1/idspy_dictionaries/ids_plasma_initiation/idspy_plasma_initiation.py
from ..dataclasses_idsschema import _IDSPYDD_USE_SLOTS,IdsBaseClass from dataclasses import dataclass, field from numpy import ndarray from typing import Optional @dataclass(slots=True) class EquilibriumProfiles2DGrid(IdsBaseClass): """ Definition of the 2D grid. :ivar dim1: First dimension values :i...
PypiClean
/fonttools-4.42.1-cp39-cp39-macosx_10_9_x86_64.whl/fontTools/config/__init__.py
from textwrap import dedent from fontTools.misc.configTools import * class Config(AbstractConfig): options = Options() OPTIONS = Config.options Config.register_option( name="fontTools.otlLib.optimize.gpos:COMPRESSION_LEVEL", help=dedent( """\ GPOS Lookup type 2 (PairPos) compression l...
PypiClean
/pandda_2-0.0.3.tar.gz/pandda_2-0.0.3/bamboo/pymol_utils/__init__.py
import os import numpy from itertools import cycle from bamboo.pymol_utils.shapes import * class PymolColourPalettes: set1 = ['carbon','cyan','lightmagenta','yellow','salmon','hydrogen','slate','orange'] set2 = ['lime','deepteal','hotpink','yelloworange','violetpurple','grey70','marine','olive'] set3 ...
PypiClean
/love_course_2016_2019-2023.3.1.0-py3-none-any.whl/LoveCourse20162019/docs/liang-nan/旭旭《全新情感会员课程》:大兵——男生时尚服装搭配教程(完结):12.《内向的怎么办》.md
# 旭旭《全新情感会员课程》:大兵——男生时尚服装搭配教程(完结):12.《内向的怎么办》 可以听到声音吗?,能可以吗?我把PBT放出来一下,OK好,我放一下PBT,今天给兄弟们做的PBT超级靠谱,太干了,我都觉得干得不行,OK好,举机手一揪,这种很皮,我很内向很闷烧。 你这一天都想些很坏的事情,有点坏,时间应该差不多了,请开始你的表演,特别喜欢靠谱,很靠谱,我就喜欢你这样的兄弟,今天给兄弟们分享一个,就内向的人怎么办,为什么我会今天讲这个呢?,前面我发现有特别特别。 发现有很多的那种兄弟,我爱达边个,可是我不搞机啊,怎么办,我兴趣向正常的好吧,就发现有特别多的兄弟们,是特别内向的不敢去交流,不敢去跟陌生人说话,就比如说你平时...
PypiClean
/msgraph-sdk-1.0.0a3.tar.gz/msgraph-sdk-1.0.0a3/msgraph/generated/me/drives/item/bundles/item/drive_item_item_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
/NeuroDynamics-0.1.1.tar.gz/NeuroDynamics-0.1.1/examples/neurons/HH_model_tutorial.py
import matplotlib.pyplot as plt import brainpy as nb import brainpy.numpy as np nb.profile.set(backend='numba', device='cpu', dt=0.02, merge_ing=True, numerical_method='euler') noise = 0. # noise term C = 1.0 # Membrane capacity per unit area (assumed constant). g_Na = 120. # Voltage-controlled co...
PypiClean
/django_adminlte3-0.1.6-py3-none-any.whl/adminlte3/static/admin-lte/plugins/fullcalendar-daygrid/main.d.ts
declare module '@fullcalendar/daygrid' { export { default as SimpleDayGrid, DayGridSlicer } from '@fullcalendar/daygrid/SimpleDayGrid'; export { default as DayGrid, DayGridSeg } from '@fullcalendar/daygrid/DayGrid'; export { default as AbstractDayGridView } from '@fullcalendar/daygrid/AbstractDayGridView';...
PypiClean
/trex-api-0.0.2.tar.gz/trex-api-0.0.2/trex/common/trex_streams.py
import external_packages from client_utils.packet_builder_interface import CTrexPktBuilderInterface from client_utils.packet_builder import CTRexPktBuilder from collections import OrderedDict, namedtuple from client_utils.yaml_utils import * import trex_stl_exceptions import dpkt import struct import copy import os im...
PypiClean
/mle_scheduler-0.0.6-py3-none-any.whl/mle_scheduler/cloud/gcp/job_manage_gcp.py
import subprocess as sp import time import datetime import os import random import re from .helpers_launch_gcp import ( gcp_generate_startup_file, gcp_get_submission_cmd, gcp_delete_vm_instance, ) def submit_gcp( filename: str, cmd_line_arguments: str, experiment_dir: str, job_arguments: d...
PypiClean
/msgraph_beta_sdk-1.0.0a9-py3-none-any.whl/msgraph/generated/me/events/delta/delta_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
/gc-boto-2.37.1.tar.gz/gc-boto-2.37.1/docs/source/releasenotes/v2.10.0.rst
boto v2.10.0 ============ :date: 2013/08/13 This release adds Mobile Push Notification support to Amazon Simple Notification Service, better reporting for Amazon Redshift, SigV4 authorization for Amazon Elastic MapReduce & lots of bugfixes. Features -------- * Added support for Mobile Push Notifications to SNS. Th...
PypiClean
/latent_space_visualizer-0.0.3-py3-none-any.whl/latent_space_visualizer/__init__.py
import numpy as np from bokeh import events import bokeh.io from bokeh.io import output_notebook from bokeh.io import show from bokeh.layouts import row from bokeh.models import CustomJS, Div, LinearColorMapper, ColorBar from bokeh.plotting import ColumnDataSource import bokeh.palettes from kora.bokeh import figure ...
PypiClean
/runtilities-2.2.0.tar.gz/runtilities-2.2.0/running/renderclubagstats.py
# standard import argparse import csv import datetime import collections import time # pypi from IPython.core.debugger import Tracer; debug_here = Tracer() # github # other import matplotlib.pyplot as plt # home grown from loutilities import timeu from runningclub import render as ren from running.running import ul...
PypiClean
/hrcl_jobs-1.3.1-py3-none-any.whl/hrcl_jobs/data.py
import pandas as pd import numpy as np import matplotlib.pyplot as plt from matplotlib import cm def check_for_empty_df_rows( df_p="data/dimers_10k.pkl", col_check={ "vac_multipole_A": 0, "vac_multipole_B": 0, "environment_multipole_A": 0, "environment_multipole_B": 0, ...
PypiClean
/vioneta-2023.7.3.tar.gz/vioneta-2023.7.3/homeassistant/components/device_tracker/device_condition.py
from __future__ import annotations import voluptuous as vol from homeassistant.const import ( ATTR_ENTITY_ID, CONF_CONDITION, CONF_DEVICE_ID, CONF_DOMAIN, CONF_ENTITY_ID, CONF_TYPE, STATE_HOME, ) from homeassistant.core import HomeAssistant, callback from homeassistant.helpers import ( ...
PypiClean
/pyAya-2.0.0-py3-none-any.whl/geezlibs/crypto/mtproto.py
import bisect from hashlib import sha256 from io import BytesIO from os import urandom from typing import List from geezlibs.errors import SecurityCheckMismatch from geezlibs.raw.core import Message, Long from . import aes from ..session.internals import MsgId STORED_MSG_IDS_MAX_SIZE = 1000 * 2 def kdf(auth_key: b...
PypiClean
/pytorch/utils/benchmarker.py
import time from typing import Any, List, Tuple import numpy import torch from torch.nn import Module from tqdm import auto from sparseml.pytorch.utils.helpers import ( tensors_batch_size, tensors_module_forward, tensors_to_device, tensors_to_precision, ) from sparseml.pytorch.utils.model import model...
PypiClean
/webviz_core_components-0.6.2.tar.gz/webviz_core_components-0.6.2/react/src/lib/utils/Animation.ts
export class Animation<T extends { [key: string]: number }> { private duration: number; private states: { t: number; state: T }[]; private transitionFunction: (t: number) => number; private animationFunction: (values: T, t: number) => void; private animationInterval: ReturnType<typeof setInterval> |...
PypiClean
/xmldirector.plonecore-2.1.1.zip/xmldirector.plonecore-2.1.1/xmldirector/plonecore/browser/resources/ace-builds/src-noconflict/mode-rust.js
ace.define("ace/mode/rust_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"], function(require, exports, module) { "use strict"; var oop = require("../lib/oop"); var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules; var stringEscape = /\\(?:[nrt0'"]|...
PypiClean
/blocktorch-1.33.2-py3-none-any.whl/climaticai/utils/cli_utils.py
import locale import os import platform import struct import sys import pkg_resources import psutil from psutil._common import bytes2human import blocktorch from blocktorch.utils import get_logger def print_info(): """Prints information about the system, blocktorch, and dependencies of blocktorch.""" logger...
PypiClean
/py_serg_server-0.1-py3-none-any.whl/server/common/metaclasses.py
import dis class ServerMaker(type): ''' Метакласс, проверяющий что в результирующем классе нет клиентских вызовов таких как: connect. Также проверяется, что серверный сокет является TCP и работает по IPv4 протоколу. ''' def __init__(cls, clsname, bases, clsdict): # Список методов, кото...
PypiClean