id
stringlengths
1
8
text
stringlengths
6
1.05M
dataset_id
stringclasses
1 value
/qubole_ml-1.9.1-py3-none-any.whl/mlflow/utils/validation.py
import numbers import posixpath import re from mlflow.exceptions import MlflowException from mlflow.protos.databricks_pb2 import INVALID_PARAMETER_VALUE from mlflow.store.db.db_types import DATABASE_ENGINES from mlflow.utils.string_utils import is_string_type _VALID_PARAM_AND_METRIC_NAMES = re.compile(r"^[/\w.\- ]*$"...
PypiClean
/pulumi_azure_nextgen-0.6.2a1613157620.tar.gz/pulumi_azure_nextgen-0.6.2a1613157620/pulumi_azure_nextgen/appplatform/v20190501preview/_inputs.py
import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from ._enums import * __all__ = [ 'AppResourcePropertiesArgs', 'BindingResourcePropertiesArgs', 'CertificatePropertiesArgs', 'ClusterResourcePropertiesArgs...
PypiClean
/collective.js.angular-1.5.5.0.tar.gz/collective.js.angular-1.5.5.0/src/collective/js/angular/resources/i18n/angular-locale_pa-guru-in.js
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; $provide.value("$locale", { "DATETIME_FORMATS": { "AMPMS": [ "\u0a2a\u0a42.\u0a26\u0a41.", "\u0a2c\u0a3e.\u0a26\u0a41."...
PypiClean
/touch_designer_yolo_detection-0.0.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/yolo_models/image_utils.py
from typing import NamedTuple, Tuple, Optional import cv2 import numpy as np class PadInfo(NamedTuple): pad_left: int pad_top: int class ScaleInfo(NamedTuple): to_orig_scale_width: float to_orig_scale_height: float def pad_image( image: np.ndarray, required_width: int, req...
PypiClean
/phnns/dynamic_system_neural_network.py
import numpy as np from scipy.integrate import solve_ivp import torch from ..utils.derivatives import time_derivative class DynamicSystemNN(torch.nn.Module): """ Base class for implementing neural networks estimating the right hand side of equations of the form dx/dt = f(x, t) + u where x is ...
PypiClean
/torch_u2net-1.0.0-cp36-cp36m-manylinux1_x86_64.whl/caffe2/python/layers/sparse_lookup.py
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from caffe2.python.helpers.arg_scope import get_current_scope from caffe2.python import schema from caffe2.python.layers.layers import ( get_categorical_limit, ge...
PypiClean
/highcharts_gantt-1.3.0.tar.gz/highcharts_gantt-1.3.0/highcharts_gantt/highcharts.py
from highcharts_gantt.chart import * from highcharts_gantt.options import * from highcharts_gantt.headless_export import * from highcharts_gantt.global_options import * from highcharts_gantt.global_options.language import * from highcharts_gantt.global_options.shared_options import * from highcharts_gantt.global_optio...
PypiClean
/fugue_jupyterlab-0.0.1.tar.gz/fugue_jupyterlab-0.0.1/src/utils.ts
import { RegExpForeignCodeExtractor } from '@krassowski/jupyterlab-lsp'; import { Mode } from 'codemirror'; import { ICodeMirror } from '@jupyterlab/codemirror'; function cell_magic(language: string) { return `%%${language}`; } function start(language: string) { return `--start-${language}`; } function end(languag...
PypiClean
/opencv_face_recognition-1.0.2-py3-none-any.whl/opencv/fr/compare/schemas.py
import enum from typing import Optional, Union, List import numpy as np from PIL.Image import Image from pathlib import Path from .. import util as util from ..search.schemas import SearchMode class CompareRequest: '''A compare request object :param gallery: a list of images (max 3), each being either a...
PypiClean
/edgeimpulse_api-1.29.20.tar.gz/edgeimpulse_api-1.29.20/edgeimpulse_api/models/dsp_group.py
from __future__ import annotations from inspect import getfullargspec import pprint import re # noqa: F401 import json from typing import List from pydantic import BaseModel, StrictStr from edgeimpulse_api.models.dsp_group_item import DSPGroupItem class DSPGroup(BaseModel): group: StrictStr = ... items: Lis...
PypiClean
/robotframework-lsp-1.11.0.tar.gz/robotframework-lsp-1.11.0/robotframework_ls/vendored/robocorp_ls_core/jsonrpc/streams.py
import threading from robocorp_ls_core.robotframework_log import get_logger from typing import Optional import json from robocorp_ls_core.options import BaseOptions import queue log = get_logger(__name__) def read(stream) -> Optional[str]: """ Reads one message from the stream and returns the message (or Non...
PypiClean
/tensorflow_directml-1.15.8-cp37-cp37m-win_amd64.whl/tensorflow_core/python/data/util/nest.py
from __future__ import absolute_import from __future__ import division from __future__ import print_function import six as _six from tensorflow.python import pywrap_tensorflow as _pywrap_tensorflow from tensorflow.python.framework import sparse_tensor as _sparse_tensor from tensorflow.python.util.compat import collec...
PypiClean
/oip_mlops_client-0.0.4-py3-none-any.whl/oip_mlops_client/rest.py
import requests from requests.adapters import HTTPAdapter from requests.exceptions import HTTPError from functools import lru_cache from urllib3.util import Retry INTERNAL_ERROR = 500 INVALID_STATE = 500 TEMPORARILY_UNAVAILABLE = 503 REQUEST_LIMIT_EXCEEDED = 429 ENDPOINT_NOT_FOUND = 404 RESOURCE_DOES_NOT_EXIST = 404 P...
PypiClean
/ais_dom-2023.7.2-py3-none-any.whl/homeassistant/components/switchbot/sensor.py
from __future__ import annotations from homeassistant.components.bluetooth import async_last_service_info from homeassistant.components.sensor import ( SensorDeviceClass, SensorEntity, SensorEntityDescription, SensorStateClass, ) from homeassistant.config_entries import ConfigEntry from homeassistant.c...
PypiClean
/corus-0.6.0.tar.gz/corus-0.6.0/README.md
<img src="https://github.com/natasha/natasha-logos/blob/master/corus.svg"> ![CI](https://github.com/natasha/corus/workflows/CI/badge.svg) [![codecov](https://codecov.io/gh/natasha/corus/branch/master/graph/badge.svg)](https://codecov.io/gh/natasha/corus) Links to publicly available Russian corpora + code for loading...
PypiClean
/Mopidy-Podcast-3.0.1.tar.gz/Mopidy-Podcast-3.0.1/mopidy_podcast/__init__.py
import pathlib import pkg_resources from mopidy import config, ext, httpclient __version__ = pkg_resources.get_distribution("Mopidy-Podcast").version class Extension(ext.Extension): dist_name = "Mopidy-Podcast" ext_name = "podcast" version = __version__ def get_default_config(self): retur...
PypiClean
/spaceone_billing-1.10.0rc1-py3-none-any.whl/spaceone/billing/service/billing_service.py
import logging import hashlib import json import re import pandas as pd from dateutil.parser import parse from dateutil.relativedelta import relativedelta from spaceone.core.service import * from spaceone.billing.error import * from spaceone.billing.manager.identity_manager import IdentityManager from spaceone.bill...
PypiClean
/qiskit-aqua-0.9.5.tar.gz/qiskit-aqua-0.9.5/qiskit/aqua/components/optimizers/bobyqa.py
import logging import numpy as np from qiskit.aqua import MissingOptionalLibraryError from .optimizer import Optimizer, OptimizerSupportLevel logger = logging.getLogger(__name__) try: import skquant.opt as skq _HAS_SKQUANT = True except ImportError: _HAS_SKQUANT = False class BOBYQA(Optimizer): """ ...
PypiClean
/pyjamas-0.8.1~+alpha1.tar.bz2/pyjamas-0.8.1~+alpha1/library/pyjamas/ui/Widget.py
from pyjamas import DOM from pyjamas import Factory from pyjamas.ui.UIObject import UIObject from pyjamas.ui import Event from pyjamas.ui.ClickListener import ClickHandler from pyjamas.ui.FocusListener import FocusHandler from pyjamas.ui.KeyboardListener import KeyboardHandler from pyjamas.ui.MouseListener import Mous...
PypiClean
/ydk-models-cisco-ios-xe-16.9.3.post1.tar.gz/ydk-models-cisco-ios-xe-16.9.3.post1/ydk/models/cisco_ios_xe/cisco_ethernet.py
import sys from collections import OrderedDict from ydk.types import Entity, EntityPath, Identity, Enum, YType, YLeaf, YLeafList, YList, LeafDataList, Bits, Empty, Decimal64 from ydk.filters import YFilter from ydk.errors import YError, YModelError from ydk.errors.error_handler import handle_type_error as _handle_type...
PypiClean
/djangorestframework-extensions-0.0.3.tar.gz/djangorestframework-extensions-0.0.3/djangorestframework_extensions/permissions.py
from django.contrib.auth.models import User, Group from djangorestframework import status from djangorestframework.response import ErrorResponse from djangorestframework.permissions import SAFE_METHODS, BasePermission from djangorestframework_extensions.utils import user_passes_test __all__ = ( 'IsStaffOrIsAnonRea...
PypiClean
/odoo14_addon_base_geoengine-14.0.1.0.3-py3-none-any.whl/odoo/addons/base_geoengine/static/lib/chromajs-0.8.0/chroma.js
(function() { var Color, K, PITHIRD, TWOPI, X, Y, Z, bezier, blend, blend_f, brewer, burn, chroma, clip_rgb, cmyk2rgb, colors, cos, css2rgb, darken, dodge, each, floor, hex2rgb, hsi2rgb, hsl2rgb, hsv2rgb, lab2lch, lab2rgb, lab_xyz, lch2lab, lch2rgb, lighten, limit, log, luminance, luminance_x, multiply, normal, num2r...
PypiClean
/splinepy-0.0.34.tar.gz/splinepy-0.0.34/third_party/pybind11/docs/benchmark.py
import datetime as dt import os import random nfns = 4 # Functions per class nargs = 4 # Arguments per function def generate_dummy_code_pybind11(nclasses=10): decl = "" bindings = "" for cl in range(nclasses): decl += f"class cl{cl:03};\n" decl += "\n" for cl in range(nclasses): ...
PypiClean
/monk_pytorch_cuda90_test1-0.0.1.tar.gz/monk_pytorch_cuda90_test1-0.0.1/monk/system/eda/utils.py
from monk.system.eda.imports import * from monk.system.imports import * @accepts(str, str, post_trace=False) #@TraceFunction(trace_args=True, trace_rv=False) def get_img_label(fname, delimiter): ''' Find list of images and corresponding labels in csv file Args: fname (str): Path to csv file ...
PypiClean
/staroid-0.1.0.tar.gz/staroid-0.1.0/README.md
# staroid-python Staroid python client library ## Install ```bash pip install staroid ``` ## Quickstart ```python from staroid import Staroid star = Staroid() # Create a ske kubernetes cluster my_cluster = star.cluster().create("my cluster", "gcp us-west1") # Launch a project ns = star.namespace(my_cluster).cr...
PypiClean
/larcv-3.5.0.tar.gz/larcv-3.5.0/src/json/doc/mkdocs/docs/api/basic_json/empty.md
# <small>nlohmann::basic_json::</small>empty ```cpp bool empty() const noexcept; ``` Checks if a JSON value has no elements (i.e. whether its [`size()`](size.md) is `0`). ## Return value The return value depends on the different types and is defined as follows: | Value type | return value ...
PypiClean
/vioneta-2023.7.3.tar.gz/vioneta-2023.7.3/homeassistant/components/yi/camera.py
from __future__ import annotations import logging from aioftp import Client, StatusCodeError from haffmpeg.camera import CameraMjpeg import voluptuous as vol from homeassistant.components import ffmpeg from homeassistant.components.camera import PLATFORM_SCHEMA, Camera from homeassistant.components.ffmpeg import get...
PypiClean
/django_htmx_ui_adminlte-0.1.13-py3-none-any.whl/django_htmx_ui_adminlte/static/adminlte/plugins/jquery-knob/jquery.knob.min.js
(function(e){if(typeof define==="function"&&define.amd){define(["jquery"],e)}else{e(jQuery)}})(function(e){"use strict";var t={},n=Math.max,r=Math.min;t.c={};t.c.d=e(document);t.c.t=function(e){return e.originalEvent.touches.length-1};t.o=function(){var n=this;this.o=null;this.$=null;this.i=null;this.g=null;this.v=null...
PypiClean
/aifs_nni-1.9.5-py3-none-manylinux1_x86_64.whl/aifs_nni-1.9.5.data/data/nni/node_modules/uri-js/dist/es5/uri.all.js
(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) : typeof define === 'function' && define.amd ? define(['exports'], factory) : (factory((global.URI = global.URI || {}))); }(this, (function (exports) { 'use strict'; function merge() { for (var _len = a...
PypiClean
/pulumi_azure_native-2.5.1a1693590910.tar.gz/pulumi_azure_native-2.5.1a1693590910/pulumi_azure_native/compute/v20211101/get_log_analytic_export_throttled_requests.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__ = [ 'GetLogAnalyticExportThrottledRequestsResult', 'AwaitableGetLogAnalyticExportThrottledRequestsResult', 'get_log_...
PypiClean
/ncbi-datasets-pylib-15.16.1.tar.gz/ncbi-datasets-pylib-15.16.1/src/ncbi/datasets/openapi/model/v1_annotation_for_assembly_file.py
import re # noqa: F401 import sys # noqa: F401 from ncbi.datasets.openapi.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, ModelSimple, cached_property, change_keys_js_to_python, convert_js_args_to_python_args, date, datetime, file_type, none_ty...
PypiClean
/pulumiverse_unifi-0.0.3.tar.gz/pulumiverse_unifi-0.0.3/pulumiverse_unifi/get_account.py
import copy import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from . import _utilities __all__ = [ 'GetAccountResult', 'AwaitableGetAccountResult', 'get_account', 'get_account_output', ] @pulumi.output_type class GetAccountResult:...
PypiClean
/jupyter_server_mathjax-0.2.6-py3-none-any.whl/jupyter_server_mathjax/static/localization/fr/TeX.js
MathJax.Localization.addTranslation("fr","TeX",{version:"2.7.9",isLoaded:true,strings:{ExtraOpenMissingClose:"Accolade ouvrante superflue ou accolade fermante manquante",ExtraCloseMissingOpen:"Accolade fermante superflue ou accolade ouvrante manquante",MissingLeftExtraRight:"Commande \\left manquante ou commande \\righ...
PypiClean
/bloxroute-gateway-1.109.9.tar.gz/bloxroute-gateway-1.109.9/bxcommon/src/bxcommon/messages/bloxroute/v13/bloxroute_message_factory_v13.py
import struct from typing import Optional, Type, NamedTuple from bxcommon import constants from bxcommon.messages.abstract_message import AbstractMessage from bxcommon.messages.abstract_message_factory import AbstractMessageFactory from bxcommon.messages.bloxroute.abstract_bloxroute_message import AbstractBloxrouteMes...
PypiClean
/TDY_PKG-1.1.4.tar.gz/TDY_PKG-1.1.4/src/tf2_webapp/object_detection/export_tflite_ssd_graph_lib.py
import os import tempfile import numpy as np import tensorflow.compat.v1 as tf from tensorflow.core.framework import attr_value_pb2 from tensorflow.core.framework import types_pb2 from tensorflow.core.protobuf import saver_pb2 from object_detection import exporter from object_detection.builders import graph_rewriter_bu...
PypiClean
/tooldirectory-5.1.1.tar.gz/tooldirectory-5.1.1/README.md
# ToolDirectory ## Introduction ToolDirectory provides a convenient tool to display list of softwares in a webpage along with dynamic data filtering capabilities. ![Tool Directory](images/tooldirectory.png) You can test our [public demo](https://ifremer-bioinformatics.github.io/ToolDirectorySample/) ## Direct use o...
PypiClean
/import_scons-2.5.0-4-py3-none-any.whl/SCons/Platform/__init__.py
from __future__ import print_function from builtins import map from builtins import str from builtins import object __revision__ = "src/engine/SCons/Platform/__init__.py 2016/07/08 19:15:27 dholth" import SCons.compat import imp import os import sys import tempfile import SCons.Errors import SCons.Subst import SCo...
PypiClean
/noc-0.7(3).tar.gz/noc-0.7(3)/lib/nosql.py
## Python modules import logging import sys ## Django modules from django.db.models import Model from django.db import IntegrityError import django.db.models.signals ## Third-party modules import pymongo from mongoengine.base import * from mongoengine import * import mongoengine ## NOC modules from noc import settings...
PypiClean
/iranlowo-0.0.8.3.tar.gz/iranlowo-0.0.8.3/src/torchtext/data/batch.py
import torch class Batch(object): """Defines a batch of examples along with its Fields. Attributes: batch_size: Number of examples in the batch. dataset: A reference to the dataset object the examples come from (which itself contains the dataset's Field objects). train: De...
PypiClean
/certora_cli_alpha_alex_salvage_interpreter-20230504.19.58.31213-py3-none-any.whl/certora_cli/EVMVerifier/certoraCloudIO.py
import itertools import json import os import re import uuid import requests import sys import threading import time import zipfile from pathlib import Path scripts_dir_path = Path(__file__).parents[1] sys.path.insert(0, str(scripts_dir_path)) from pathlib import Path from EVMVerifier.certoraJobList import JobList fro...
PypiClean
/collective.formwidget.mathjax-1.0.tar.gz/collective.formwidget.mathjax-1.0/src/collective/formwidget/mathjax/resources/mathjax/unpacked/jax/output/HTML-CSS/autoload/multiline.js
MathJax.Hub.Register.StartupHook("HTML-CSS Jax Ready",function () { var VERSION = "2.1"; var MML = MathJax.ElementJax.mml, HTMLCSS = MathJax.OutputJax["HTML-CSS"]; // // Penalties for the various line breaks // var PENALTY = { newline: 0, nobreak: 1000000, goodbreak: [-...
PypiClean
/typed_blocks-0.17.0-py3-none-any.whl/blocks/metric_collector.py
from __future__ import annotations import time from collections import OrderedDict, defaultdict from types import TracebackType from typing import Optional, Type, List, Dict from blocks.types.base import Processor, Event from blocks.types.metrics import EventTime, AggregatedMetric class _ProcTimer: def __enter...
PypiClean
/django-model-prefix-1.0.1.tar.gz/django-model-prefix-1.0.1/README.md
# Django Model Prefix [![PyPI](https://badge.fury.io/py/django-model-prefix.svg)](https://pypi.org/project/django-model-prefix/) [![Test Status](https://github.com/anexia/django-model-prefix/actions/workflows/tests.yml/badge.svg?branch=main)](https://github.com/anexia/django-model-prefix/actions/workflows/tests.yml) [!...
PypiClean
/micropython-the-pad-1.5.1.tar.gz/micropython-the-pad-1.5.1/the_pad/ili934xnew.py
# This file is part of MicroPython ILI934X driver # Copyright (c) 2016 - 2017 Radomir Dopieralski, Mika Tuupola # # Licensed under the MIT license: # http://www.opensource.org/licenses/mit-license.php # # Project home: # https://github.com/tuupola/micropython-ili934x import time import ustruct import glcdfont imp...
PypiClean
/hello_robot_stretch_body_tools-0.4.17.tar.gz/hello_robot_stretch_body_tools-0.4.17/bin/stretch_robot_system_check.py
from __future__ import print_function import sh import re import apt import distro import pathlib import rospkg from packaging import version import time import stretch_body.robot as robot import os, fnmatch import subprocess from colorama import Fore, Back, Style import argparse import stretch_body.hello_utils as hu f...
PypiClean
/dstore-sdk-python-1.0.2.5.tar.gz/dstore-sdk-python-1.0.2.5/dstore/engine/procedures/im_GetSuccessors_Ad_pb2.py
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 _reflection from google.protobuf import symbol_database as _symbol_database from google.p...
PypiClean
/danielalejandrohc-0.1.5.tar.gz/danielalejandrohc-0.1.4/README.md
[![Build Status](https://ebizframework.visualstudio.com/whitekite/_apis/build/status/github-ci-pipeline?branchName=master)](https://ebizframework.visualstudio.com/whitekite/_build/latest?definitionId=8&branchName=master) # What is prancer? To move to the cloud, companies are using various methods to provision and dep...
PypiClean
/requstsss-2.28.2.tar.gz/requstsss-2.28.2/requests/exceptions.py
from urllib3.exceptions import HTTPError as BaseHTTPError from .compat import JSONDecodeError as CompatJSONDecodeError class RequestException(IOError): """There was an ambiguous exception that occurred while handling your request. """ def __init__(self, *args, **kwargs): """Initialize Reques...
PypiClean
/sphero_sdk-0.3.4.post2-py3-none-any.whl/sphero_sdk/observer/events/event_dispatcher.py
import logging from sphero_sdk.observer.observer_base import Observer logger = logging.getLogger(__name__) class EventDispatcher: def __init__(self): pass def handle_message(self, message): """Uses the message did and cid properties as keys to check if a handler exists in the master dictiona...
PypiClean
/easy_allure-1.2.0.1212.tar.gz/easy_allure-1.2.0.1212/easy_allure/allurectl.py
import os import platform from typing import List import pkg_resources from .helpers import download_file from .logger import get_logger ALLURECTL_VERSION = '1.21.2' LOGGER = get_logger() allure_executables = { 'Darwin': { 'x86_64': 'allurectl_darwin_amd64' }, 'Linux': { 'arm': 'allurect...
PypiClean
/numpy_mips64-1.17.4.tar.gz/numpy_mips64-1.17.4/numpy/distutils/command/install.py
from __future__ import division, absolute_import, print_function import sys if 'setuptools' in sys.modules: import setuptools.command.install as old_install_mod have_setuptools = True else: import distutils.command.install as old_install_mod have_setuptools = False from distutils.file_util import write...
PypiClean
/farm_haystack-1.20.0rc1-py3-none-any.whl/haystack/nodes/prompt/prompt_node.py
from collections import defaultdict import copy import logging from typing import Dict, List, Optional, Tuple, Union, Any from haystack.nodes.base import BaseComponent from haystack.schema import Document, MultiLabel from haystack.telemetry import send_event from haystack.nodes.prompt.prompt_model import PromptModel f...
PypiClean
/appthwack-1.0.0.tar.gz/appthwack-1.0.0/README.md
appthwack-python ================ The official [AppThwack](https://appthwack.com) python client. Status ====== Currently under active development. Installation ============ ### Source $ git clone git@github.com:appthwack/appthwack-python.git $ python setup.py install ### Pip $ pip install appthwack ...
PypiClean
/rust_eac_information-0.2.0-py3-none-any.whl/eac_info/get_eac_info.py
from datetime import datetime from typing import Optional, TypeAlias, Mapping import aiohttp from bs4 import BeautifulSoup as BS from eac_info.model import EACInfo from eac_info.exceptions import CantGetEacInfo, SteamIsNotFound __all__ = ["get_eac_info"] ResponseText: TypeAlias = str LINK = "https://www.nexusonlin...
PypiClean
/fireblocks-1.0.1-py3-none-any.whl/fireblocks_client/paths/tap_draft/get.py
from dataclasses import dataclass import typing_extensions import urllib3 from urllib3._collections import HTTPHeaderDict from fireblocks_client 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
/whatsapp-business-api-client-1.0.tar.gz/whatsapp-business-api-client-1.0/whatsapp_business_api_client/models/date_time_component.py
from typing import Any, Dict, List, Type, TypeVar, Union import attr from ..models.date_time_component_day_of_week import DateTimeComponentDayOfWeek from ..types import UNSET, Unset T = TypeVar("T", bound="DateTimeComponent") @attr.s(auto_attribs=True) class DateTimeComponent: """Date/time by component Ex...
PypiClean
/accern_data-0.2.1.tar.gz/accern_data-0.2.1/packages/python/accern_data/util.py
import io import json import os import site import sys from typing import Any, Dict, List, Optional, Tuple, TYPE_CHECKING, Union import pandas as pd import tqdm from requests import Response from . import __version__ if TYPE_CHECKING: from .accern_data import FilterValue EXAMPLE_URL = "https://api.example.com/"...
PypiClean
/skytemple_ssb_debugger-1.6.0a1-py3-none-any.whl/skytemple_ssb_debugger/model/completion/calltips/calltip_emitter.py
from __future__ import annotations from typing import List, Optional from gi.repository import GtkSource, Gtk from skytemple_files.common.ppmdu_config.script_data import Pmd2ScriptOpCode from skytemple_ssb_debugger.context.abstract import AbstractDebuggerControlContext from skytemple_ssb_debugger.model.completion.cal...
PypiClean
/pigweed-0.0.14.tar.gz/pigweed-0.0.14/pw_console/plugins/twenty48_pane.py
"""Example Plugin that displays some dynamic content: a game of 2048.""" from random import choice from typing import Iterable, List, Tuple, TYPE_CHECKING import time from prompt_toolkit.filters import has_focus from prompt_toolkit.formatted_text import StyleAndTextTuples from prompt_toolkit.key_binding import KeyBin...
PypiClean
/thesmuggler-1.0.1.tar.gz/thesmuggler-1.0.1/README.rst
The Smuggler 🚬 =============== .. image:: https://travis-ci.org/fny/thesmuggler.svg?branch=master :target: https://travis-ci.org/fny/thesmuggler :alt: Build Status .. image:: https://badge.fury.io/py/thesmuggler.svg :target: https://pypi.python.org/pypi/thesmuggler :alt: Smuggler on PyPI Sidestep :code:...
PypiClean
/apache-airflow-backport-providers-google-2021.3.3rc1.tar.gz/apache-airflow-backport-providers-google-2021.3.3rc1/airflow/providers/google/cloud/example_dags/example_cloud_storage_transfer_service_aws.py
import os from datetime import datetime, timedelta from airflow import models from airflow.providers.google.cloud.hooks.cloud_storage_transfer_service import ( ALREADY_EXISTING_IN_SINK, AWS_S3_DATA_SOURCE, BUCKET_NAME, DESCRIPTION, FILTER_JOB_NAMES, FILTER_PROJECT_ID, GCS_DATA_SINK, JOB...
PypiClean
/bigdl_dllib-2.3.0b20230214-py3-none-macosx_10_11_x86_64.whl/bigdl/dllib/utils/encryption_utils.py
import os from cryptography.hazmat.primitives.ciphers import Cipher, algorithms, modes from cryptography.hazmat.primitives import padding from cryptography.hazmat.backends import default_backend import base64 import hashlib # For cryptography < 3.0 back_end = default_backend() def get_private_key(secret_key, salt,...
PypiClean
/empire-platform-api-public-client-1.0.0.tar.gz/empire-platform-api-public-client-1.0.0/empire_platform_api_public_client/api/public_allocated_auction_api.py
import re # noqa: F401 import io import warnings from pydantic import validate_arguments, ValidationError from typing_extensions import Annotated from datetime import datetime from pydantic import Field, StrictStr, conint, conlist from typing import List, Optional from empire_platform_api_public_client.models.agg...
PypiClean
/spacy_weibo-2.3.0.tar.gz/spacy_weibo-2.3.0/spacy/lang/ru/examples.py
from __future__ import unicode_literals """ Example sentences to test spaCy and its language models. >>> from spacy.lang.ru.examples import sentences >>> docs = nlp.pipe(sentences) """ sentences = [ # Translations from English: "Apple рассматривает возможность покупки стартапа из Соединённого Королевства з...
PypiClean
/jsonresolver-0.3.2.tar.gz/jsonresolver-0.3.2/RELEASE-NOTES.rst
===================== JSONResolver v0.2.1 ===================== JSONResolver v0.2.1 was released on April 15, 2016. About ----- JSON data resolver with support for plugins. Bug fixes --------- - Fixes issue with exceptions raised during e.g. resolver plugin loading being caught and not propagated. Installation...
PypiClean
/aws-orbit-1.4.0.tar.gz/aws-orbit-1.4.0/aws_orbit/docker.py
import logging import os from typing import List, Optional, TypeVar from aws_orbit import exceptions, sh, utils from aws_orbit.models.context import Context, FoundationContext from aws_orbit.services import ecr _logger: logging.Logger = logging.getLogger(__name__) T = TypeVar("T") def login(context: T) -> None: ...
PypiClean
/scikit-criteria-0.8.3.tar.gz/scikit-criteria-0.8.3/CHANGELOG.md
# Changelog of Scikit-Criteria <!-- BODY --> ## Version 0.8.3 - Fixed a bug detected on the EntropyWeighted, Now works as the literature specifies ## Version 0.8.2 - We bring back Python 3.7 because is the version used in google.colab. - Bugfixes in `plot.frontier` and `dominance.eq`. ## Version 0.8 - **New**...
PypiClean
/django-gfiles-0.0.2-1.tar.gz/django-gfiles-0.0.2/gfiles/models.py
from __future__ import unicode_literals from django.db import models from django.contrib.auth.models import User from datetime import datetime import os def data_file_store(instance, filename): now = datetime.now() return os.path.join('data', 'files', now.strftime("%Y_%m_%d_%H%M%S"), filename) class Generic...
PypiClean
/np_vba-0.13.2.tar.gz/np_vba-0.13.2/src/visual_behavior/validation/sdk.py
import traceback import allensdk import datetime import sys import platform import pandas as pd import argparse import plotly.graph_objs as go import warnings from visual_behavior import database as db from visual_behavior.data_access import utilities as data_access_utilities from visual_behavior.data_access import loa...
PypiClean
/DeerLab-1.1.1.tar.gz/DeerLab-1.1.1/deerlab/dipolarmodel.py
import numpy as np from deerlab.dipolarkernel import dipolarkernel, dipolarbackground from deerlab.regoperator import regoperator from deerlab.dd_models import freedist from deerlab.model import Model,Penalty, link from deerlab import bg_hom3d from deerlab.utils import choleskycovmat from deerlab.constants import * fr...
PypiClean
/keywords_en-0.3.0.tar.gz/keywords_en-0.3.0/keywords_en/utils/topic_rank_kw.py
from __future__ import absolute_import, print_function, unicode_literals # TopicRank抽取关键词 # topicRank是另一个基于图形的键形提取器。与Textrank不同,在这种情况下,图的节点是主题,每个主题都是一个类似的单字表达式的群集。 from pytopicrank import TopicRank class TopicRankKeywords: def __init__(self): pass def create_model(self): pass def predict...
PypiClean
/azureml_training_tabular-1.53.0-py3-none-any.whl/azureml/training/tabular/featurization/_featurization_info_provider.py
"""Base class for objects that provide featurization info.""" from abc import ABC, abstractmethod from typing import Any, List, Optional from azureml.automl.core.shared.types import FeaturizationSummaryType class FeaturizationInfoProvider(ABC): """Base class for objects that provide featurization info.""" @...
PypiClean
/sendbird_platform_sdk-0.0.16-py3-none-any.whl/sendbird_platform_sdk/model/update_default_channel_invitation_preference_data.py
import re # noqa: F401 import sys # noqa: F401 from sendbird_platform_sdk.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, ModelSimple, cached_property, change_keys_js_to_python, convert_js_args_to_python_args, date, datetime, file_type, none_ty...
PypiClean
/torchvision4ad-0.1.1.tar.gz/torchvision4ad-0.1.1/README.md
# torchvision for Anomaly Detection You can use the MVTec Anomaly Detection Dataset. ## Installation pip: ```bash $ pip install torchvision4ad ``` From source: ```bash $ python setup.py install ``` ## Usage You can use one of the MVTec AD Dataset names {'bottle', 'cable', 'capsule', 'carpet', 'grid', 'hazelnut'...
PypiClean
/django-inapp-survey-0.2.5.tar.gz/django-inapp-survey-0.2.5/inapp_survey/static/bower_components_inapp/codemirror/mode/mathematica/mathematica.js
// Mathematica mode copyright (c) 2015 by Calin Barbat // Based on code by Patrick Scheibe (halirutan) // See: https://github.com/halirutan/Mathematica-Source-Highlighting/tree/master/src/lang-mma.js (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib...
PypiClean
/ams_dott_runtime-1.1.0-py3-none-win_amd64.whl/ams_dott_runtime-1.1.0.data/data/dott_data/apps/python27/python-2.7.13/Lib/fnmatch.py
import re __all__ = ["filter", "fnmatch", "fnmatchcase", "translate"] _cache = {} _MAXCACHE = 100 def _purge(): """Clear the pattern cache""" _cache.clear() def fnmatch(name, pat): """Test whether FILENAME matches PATTERN. Patterns are Unix shell style: * matches everything ? m...
PypiClean
/prefixmaps-0.1.4.tar.gz/prefixmaps-0.1.4/README.md
# prefixmaps A python library for retrieving semantic prefix maps A semantic prefix map will map a a prefix (e.g. `skos`) to a namespace (e.g `http://www.w3.org/2004/02/skos/core#`) This library is designed to satisfy the following requirements - coverage of prefixes from multiple different domains - no single auth...
PypiClean
/cumm_cu118-0.4.11-cp38-cp38-win_amd64.whl/cumm/gemm/wmma/turing.py
from typing import List, Optional, Tuple import numpy as np import pccm from cumm import dtypes from cumm.common import GemmBasic, TensorViewNVRTC from cumm.core_cc.csrc.arrayref import ArrayPtr from cumm.gemm import bases, constants, core, layout, thread_map from cumm.gemm.arch import tensorop def seq(*vals): ...
PypiClean
/biasgen-0.1.1.tar.gz/biasgen-0.1.1/README.md
# biasgen **biasgen** is a Python package which simulates magnetic resonance (MR) non-uniformities. This package allows users to generate custom bias fields by combining radiofrequency (RF) coil spatial information with frequency sampling information. Bias fields are constructed using a sum-of-squares approach with c...
PypiClean
/pyrofiler-0.1.11.tar.gz/pyrofiler-0.1.11/README.rst
========= Pyrofiler ========= .. image:: https://img.shields.io/pypi/v/pyrofiler.svg :target: https://pypi.python.org/pypi/pyrofiler .. image:: https://img.shields.io/travis/DaniloZZZ/pyrofiler.svg :target: https://travis-ci.com/DaniloZZZ/pyrofiler .. image:: https://readthedocs.org/projects/pyrofil...
PypiClean
/xotl.plato-1.0.1.tar.gz/xotl.plato-1.0.1/docs/source/api/01-schema.rst
.. _mod-xotl.plato.schema: ============================================================================== :mod:`xotl.plato.schema` -- Automatic cast to the type system using schemata ============================================================================== .. module:: xotl.plato.schema This module a bridge bet...
PypiClean
/RsCMPX_LteMeas-4.0.185.tar.gz/RsCMPX_LteMeas-4.0.185/RsCMPX_LteMeas/Implementations/LteMeas/MultiEval/ListPy/Segment/Modulation/Current.py
from .......Internal.Core import Core from .......Internal.CommandsGroup import CommandsGroup from .......Internal.StructBase import StructBase from .......Internal.ArgStruct import ArgStruct from ....... import repcap # noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection class CurrentCls: """Cu...
PypiClean
/fastly-3.0.0.tar.gz/fastly-3.0.0/docs/TlsBulkCertificateDataAttributes.md
# TlsBulkCertificateDataAttributes ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **allow_untrusted_root** | **bool** | Allow certificates that chain to untrusted roots. | [optional] if omitted the server will use the default value of False **cert_blob** ...
PypiClean
/sm64_random_assets-0.0.1.tar.gz/sm64_random_assets-0.0.1/README.rst
SM64 Randomized Asset Generator =============================== Generates non-copyrighted randomized assets so sm64 and sm64-port can be used for educational purposes. This has only been tested for building the US variant, and only on Linux. For each asset it generates a random texture, except in special cases like ...
PypiClean
/diffrax-0.4.1-py3-none-any.whl/test/helpers.py
import functools as ft import operator import diffrax import equinox as eqx import jax.numpy as jnp import jax.random as jrandom import jax.tree_util as jtu all_ode_solvers = ( diffrax.Bosh3(), diffrax.Dopri5(), diffrax.Dopri8(), diffrax.Euler(), diffrax.Ralston(), diffrax.Midpoint(), dif...
PypiClean
/macad_gym-0.1.4-py3-none-any.whl/macad_gym/core/maps/nodeid_coord_map.py
TOWN01 = { "0": [271.0400085449219, 129.489990234375, 0.50], "1": [270.79998779296875, 133.43003845214844, 0.50], "2": [237.6999969482422, 129.75, 0.50], "3": [237.6999969482422, 133.239990234375, 0.50], "4": [216.26998901367188, 129.75, 0.50], "5": [216.26998901367188, 133.239990234375, 0.50],...
PypiClean
/ptal_api-0.12.5-py3-none-any.whl/ptal_api/core/type_mapper/modules/object_name_transformer.py
from typing import Dict, Optional, Tuple from ptal_api.core.type_mapper.common.common import perform_transliteration from ptal_api.core.type_mapper.data_model.base_data_model import TypeMapping from ptal_api.core.type_mapper.data_model.custom_data_model import CustomTypeCodeStorage class ObjectTypeNameTransformer: ...
PypiClean
/polygon_protection-0.0.1.tar.gz/polygon_protection-0.0.1/polygon_protection/polygon_protection.py
__author__ = "Stefan Su" __contact__ = "ys5561@nyu.edu" __copyright__ = "Copyright 2022, NYU" __credits__ = ["Stefan Su"] __date__ = "2022/11/05" __deprecated__ = False __email__ = "ys5561@nyu.edu" __license__ = "MIT License" __maintainer__ = "developer" __status__ = "Production" __version__ = "0.0.1" import datetime...
PypiClean
/hoffmanstmpy-1.0.1.tar.gz/hoffmanstmpy-1.0.1/stmpy/hp/tight_binding.py
import numpy as np import matplotlib as mpl import pylab as plt from scipy.optimize import minimize from scipy.special import j0 import scipy.constants as const k = np.linspace(0, 1, 5000) enh = np.linspace(-100,100,500) def nonlocal_shift(p,en, get_G=False, get_N=False): af1, ef1, af2, ef2, c0, v1, v2, g1, g2, t...
PypiClean
/ensmallen_graph-0.6.0-cp37-cp37m-manylinux2010_x86_64.whl/ensmallen_graph/datasets/string/desulfurobacteriumsptc51.py
from typing import Dict from ..automatic_graph_retrieval import AutomaticallyRetrievedGraph from ...ensmallen_graph import EnsmallenGraph # pylint: disable=import-error def DesulfurobacteriumSpTc51( directed: bool = False, verbose: int = 2, cache_path: str = "graphs/string", **additional_graph_kwarg...
PypiClean
/pulumi_azure_native-2.5.1a1693590910.tar.gz/pulumi_azure_native-2.5.1a1693590910/pulumi_azure_native/sql/v20221101preview/get_outbound_firewall_rule.py
import copy import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities __all__ = [ 'GetOutboundFirewallRuleResult', 'AwaitableGetOutboundFirewallRuleResult', 'get_outbound_firewall_rule', 'get_outbound_firewall_ru...
PypiClean
/galileo_ssi-1.9.4-py3-none-any.whl/ssi/ssi.py
from pathlib import Path as Pathlib import numpy as np from matplotlib.patches import PathPatch from matplotlib.path import Path from .align import corr_offset, img_offset from .isis import ISISCube from .geometry.contour import edges, ls_contours from .misc import GeoJson from .pixel import SSIPixel MS = { '...
PypiClean
/odoo_addon_web_widget_plotly_chart-16.0.1.0.0.2-py3-none-any.whl/odoo/addons/web_widget_plotly_chart/readme/USAGE.rst
To insert a Plotly chart in a view proceed as follows: #. Declare a text computed field like this:: plotly_chart = fields.Text( string='Plotly Chart', compute='_compute_plotly_chart', ) #. In its computed method do:: def _compute_plotly_chart(self): for rec in self: d...
PypiClean
/mmcv-full-1.7.1.tar.gz/mmcv-full-1.7.1/mmcv/ops/rotated_feature_align.py
from typing import Any import torch from torch.autograd import Function from torch.autograd.function import once_differentiable from ..utils import ext_loader ext_module = ext_loader.load_ext( '_ext', ['rotated_feature_align_forward', 'rotated_feature_align_backward']) class RotatedFeatureAlignFunction(Fun...
PypiClean
/holoviews_samap-2.0.0.tar.gz/holoviews_samap-2.0.0/examples/reference/containers/bokeh/Layout.ipynb
<div class="contentcontainer med left" style="margin-left: -50px;"> <dl class="dl-horizontal"> <dt>Title</dt> <dd>Layout Container</dd> <dt>Dependencies</dt> <dd>Bokeh</dd> <dt>Backends</dt> <dd><a href='./Layout.ipynb'>Bokeh</a></dd> <dd><a href='../matplotlib/Layout.ipynb'>Matplotlib</a></dd> <dd><a href='../pl...
PypiClean
/neo-python-0.9.1.tar.gz/neo-python-0.9.1/neo/Core/Size.py
from enum import IntEnum, Enum from collections import Iterable from neo.Core.IO.Mixins import SerializableMixin from neo.Core.UIntBase import UIntBase """ This helper class is intended to help resolve the correct calculation of network serializable objects. The result of `ctypes.sizeof` is not equivalent to C# or wha...
PypiClean
/py_tgcalls-0.9.1-cp310-cp310-macosx_10_15_x86_64.whl/pytgcalls/node_modules/typescript/lib/lib.es2021.intl.d.ts
declare namespace Intl { interface DateTimeFormatOptions { formatMatcher?: "basic" | "best fit" | "best fit" | undefined; dateStyle?: "full" | "long" | "medium" | "short" | undefined; timeStyle?: "full" | "long" | "medium" | "short" | undefined; dayPeriod?: "narrow" | "short" | "l...
PypiClean
/activity_monitor-0.13.5-py3-none-any.whl/activity_monitor/managers.py
import datetime from django.db import models from django.db.models import signals from django.contrib.contenttypes.models import ContentType from activity_monitor.signals import create_or_update class ActivityItemManager(models.Manager): def __init__(self): super(models.Manager, self).__init__() ...
PypiClean
/discordhealthcheck-0.1.1.tar.gz/discordhealthcheck-0.1.1/README.md
# Discord Health Check [![CI](https://github.com/psidex/discordhealthcheck/workflows/CI/badge.svg)](https://github.com/psidex/discordhealthcheck/actions) [![PyPI - Downloads](https://img.shields.io/pypi/dm/discordhealthcheck?colorA=35383d)](https://pypi.org/project/discordhealthcheck/) [![PyPI](https://img.shields.io/...
PypiClean
/plone.app.dexterity-3.1.1.tar.gz/plone.app.dexterity-3.1.1/plone/app/dexterity/browser/types.py
from OFS.SimpleItem import SimpleItem from plone.app.dexterity import _ from plone.app.dexterity.browser.utils import UTF8Property from plone.app.dexterity.interfaces import ITypeSchemaContext from plone.app.dexterity.interfaces import ITypesContext from plone.app.dexterity.interfaces import ITypeSettings from plone.ap...
PypiClean