id
stringlengths
1
8
text
stringlengths
6
1.05M
dataset_id
stringclasses
1 value
/xin_util-1.4.47.tar.gz/xin_util-1.4.47/xin_util/CreateDIYdictFromDataFrame.py
import nltk as nltk import csv import re from functools import reduce from collections import Counter path = '/Users/xinzhang/PycharmProjects/State of RFP/' class Tree(dict): def __missing__(self, key): value = self[key] = type(self)() return value def nested_dict_get(nested_dict, keys): re...
PypiClean
/tensorflow_cpu_aws-2.14.0rc1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl/tensorflow/python/eager/forwardprop.py
"""Utilities for forward-mode automatic differentiation.""" import functools import threading from tensorflow.core.function.polymorphism import function_cache from tensorflow.python import pywrap_tfe from tensorflow.python.eager import backprop from tensorflow.python.eager import backprop_util from tensorflow.python....
PypiClean
/django-calaccess-processed-data-1.0.8.tar.gz/django-calaccess-processed-data-1.0.8/calaccess_processed_elections/management/commands/loadocdparties.py
import re from opencivicdata.core.models import Organization from calaccess_raw.models.common import LookupCodesCd from calaccess_processed.management.commands import CalAccessCommand class Command(CalAccessCommand): """Load OCD Organization model with parties extracted from raw CAL-ACCESS data.""" help = ...
PypiClean
/verizon-ap-is-sdk-1.0.0.tar.gz/verizon-ap-is-sdk-1.0.0/verizon/models/node_status.py
from verizon.api_helper import APIHelper from verizon.models.ip import IP from verizon.models.node_status_allocatable import NodeStatusAllocatable from verizon.models.node_status_allocated import NodeStatusAllocated from verizon.models.node_status_capacity import NodeStatusCapacity from verizon.models.node_status_info ...
PypiClean
/azure-mgmt-appplatform-8.0.0.zip/azure-mgmt-appplatform-8.0.0/azure/mgmt/appplatform/v2023_01_01_preview/aio/operations/_gateway_custom_domains_operations.py
import sys from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload import urllib.parse from azure.core.async_paging import AsyncItemPaged, AsyncList from azure.core.exceptions import ( ClientAuthenticationError, HttpResponseError, ResourceExistsError, Resourc...
PypiClean
/pynvr-0.1.12.tar.gz/pynvr-0.1.12/pynvr.py
import logging from shared import nvrconfig from shared import reap from shared import common from shared.camera import Camera, minutesBetween, mergeRanges from pprint import pprint import threading from datetime import datetime,timedelta from subprocess import call,check_call from bottle import route, run, template, ...
PypiClean
/shy-tools-0.0.9.tar.gz/shy-tools-0.0.9/shy_tools/pipline.py
import gc import pandas as pd from sklearn.metrics import roc_auc_score from .data_transform import LinearModelPreprocessor from .param_optimize import LightBayesOptimizer, LROptimizer from .feature_select import FeatureSelector from .base_utils import mkdir, split_X_y from .feature_select import ModelParamsGenerator,...
PypiClean
/pymoose-4.0.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/moose/network_utils.py
from __future__ import print_function, division, absolute_import # Some network analysis utilities. __author__ = "Dilawar Singh" __copyright__ = "Copyright 2018-19, NCBS Bangalore" __maintainer__ = "Dilawar Singh" __email__ = "dilawars@ncbs.res.in" import sys import hashlib import m...
PypiClean
/prv_accountant-0.2.0.tar.gz/prv_accountant-0.2.0/README.md
# Privacy Random Variable (PRV) Accountant A fast algorithm to optimally compose privacy guarantees of differentially private (DP) algorithms to arbitrary accuracy. Our method is based on the notion of privacy loss random variables to quantify the privacy loss of DP algorithms. For more details see [[1](https://arxiv....
PypiClean
/django-janus-0.4.zip/django-janus-0.4/README.rst
===== Janus ===== Janus is a Django project ... Detailed documentation is in the "docs" directory. Quick start ----------- 1. Add "polls" to your INSTALLED_APPS setting like this:: INSTALLED_APPS = [ ... 'janus', ] 2. Include the polls URLconf in your project urls.py like this:: url(r...
PypiClean
/pyHanko-0.20.0-py3-none-any.whl/pyhanko/sign/ades/api.py
import enum from dataclasses import dataclass from typing import Iterable, Optional from asn1crypto import cms from pyhanko.sign.timestamps import TimeStamper from ..attributes import CMSAttributeProvider, TSTProvider from .cades_asn1 import ( CertifiedAttributeChoices, CommitmentTypeIdentifier, Commitme...
PypiClean
/torch_geometric-2.3.1.tar.gz/torch_geometric-2.3.1/torch_geometric/transforms/add_self_loops.py
from typing import Optional, Union from torch import Tensor from torch_geometric.data import Data, HeteroData from torch_geometric.data.datapipes import functional_transform from torch_geometric.transforms import BaseTransform from torch_geometric.utils import add_self_loops @functional_transform('add_self_loops') ...
PypiClean
/duckietown-world-daffy-aido4-5.3.22.tar.gz/duckietown-world-daffy-aido4-5.3.22/src/duckietown_world/world_duckietown/tile.py
from dataclasses import dataclass from typing import Iterator, Tuple import numpy as np from svgwrite.container import Use from duckietown_world import logger from duckietown_world.geo import ( Matrix2D, PlacedObject, RectangularArea, SE2Transform, Transform, TransformSequence, ) from duckieto...
PypiClean
/qualang_tools-0.15.1.tar.gz/qualang_tools-0.15.1/qualang_tools/control_panel/README_vna.md
# VNA mode ## Introduction This module allows to configure the OPX as a VNA for a given element (readout resonator for instance) and operation (readout pulse for instance) already defined in the configuration. Once created, it has an API for defining which measurements are to be run depending on the down-conversion...
PypiClean
/wg-federation-0.8.0.tar.gz/wg-federation-0.8.0/src/wg_federation/data_transformation/loader/proxy/decrypt_configuration_loader_proxy.py
from collections.abc import MutableMapping from typing import Any from wg_federation.crypto.data.encrypted_message import EncryptedMessage from wg_federation.crypto.message_encrypter import MessageEncrypter from wg_federation.data_transformation.loader.can_load_configuration_interface import CanLoadConfigurationInterf...
PypiClean
/pulumi_azure_native-2.5.1a1693590910.tar.gz/pulumi_azure_native-2.5.1a1693590910/pulumi_azure_native/redhatopenshift/open_shift_cluster.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 from ._enums import * from ._inputs import * __all__ = ['OpenShiftClusterArgs', 'OpenShiftCluster'] @pulumi.input_type class OpenShiftCl...
PypiClean
/mitosheet3-0.3.281.tar.gz/mitosheet3-0.3.281/mitosheet/transpiler/transpile.py
# Copyright (c) Saga Inc. # Distributed under the terms of the GPL License. """ Exports the transpile function, which takes the backend widget container and generates transpiled Python code. """ from typing import Any, Dict, List from mitosheet.array_utils import deduplicate_array from mitosheet.code_chunks.code_chun...
PypiClean
/i3minator-0.0.4.tar.gz/i3minator-0.0.4/README.txt
# i3minator i3minator is a simple "workspace manager" for i3. It allows to quickly manage workspaces defining windows and their layout. The project is inspired by [tmuxinator](https://github.com/aziz/tmuxinator) and uses [i3-py](https://github.com/ziberna/i3-py). # Install i3minator can be installed with pip ```she...
PypiClean
/gamification-engine-0.4.0.tar.gz/gamification-engine-0.4.0/gengine/app/jsscripts/node_modules/handlebars/node_modules/source-map/lib/source-map-generator.js
* Copyright 2011 Mozilla Foundation and contributors * Licensed under the New BSD license. See LICENSE or: * http://opensource.org/licenses/BSD-3-Clause */ var base64VLQ = require('./base64-vlq'); var util = require('./util'); var ArraySet = require('./array-set').ArraySet; var MappingList = require('./mapping-lis...
PypiClean
/autotabular-0.12.0.tar.gz/autotabular-0.12.0/docs/docs/get_help.md
# Do you need help? ## Create GitHub issue If you found a bug or have a problem with `mljar-supervised` please create a [GitHub issue](https://github.com/mljar/mljar-supervised/issues/new). If you see that some important feature is missing in the package, you can suggest a new features there as well! :+1: ## Join ...
PypiClean
/noc-0.7(3).tar.gz/noc-0.7(3)/contrib/src/pysnmp/pysnmp/smi/mibs/SNMP-USER-BASED-SM-MIB.py
# Imported just in case new ASN.1 types would be created from pyasn1.type import constraint, namedval # Imports ( Integer, ObjectIdentifier, OctetString, ) = mibBuilder.importSymbols("ASN1", "Integer", "ObjectIdentifier", "OctetString") ( SnmpAdminString, SnmpEngineID, snmpAuthProtocols, snmpPrivProtocols, ) = mibBu...
PypiClean
/lightning_cloud-0.5.37-py3-none-any.whl/lightning_cloud/source_code/tar.py
from dataclasses import dataclass import math import os import subprocess import tarfile from typing import Optional, Tuple import click MAX_SPLIT_COUNT = 999 def get_dir_size_and_count(source_dir: str, prefix: Optional[str] = None) -> Tuple[int, int]: """ Get size and file count ...
PypiClean
/django-debug-toolbar-sqlalchemy-0.3.0.tar.gz/django-debug-toolbar-sqlalchemy-0.3.0/README.md
# Django Debug Toolbar SQLAlchemy SQLAlchemy query information panel for Django Debug Toolbar. ## Setup Once the package is installed you'll want to add the module to your installed apps: INSTALLED_APPS = ( ... 'debug_toolbar_sqlalchemy', ... ) DEBUG_TOOLBAR_PANELS = ( ... 'debug_toolbar_sqlalchemy.p...
PypiClean
/django-registrationwall-0.1.5.tar.gz/django-registrationwall-0.1.5/docs/_build_html/_static/underscore-1.3.1.js
(function() { // Baseline setup // -------------- // Establish the root object, `window` in the browser, or `global` on the server. var root = this; // Save the previous value of the `_` variable. var previousUnderscore = root._; // Establish the object that gets returned to break out of a loop itera...
PypiClean
/Orange3-zh-3.33.1.tar.gz/Orange3-zh-3.33.1/Orange/widgets/data/owfeatureconstructor.py
import re import copy import functools import builtins import math import random import logging import ast import types import unicodedata from concurrent.futures import CancelledError from dataclasses import dataclass from traceback import format_exception_only from collections import namedtuple, OrderedDict from ite...
PypiClean
/cognite_sdk-6.17.0.tar.gz/cognite_sdk-6.17.0/cognite/client/_api/data_modeling/containers.py
from __future__ import annotations from typing import Iterator, Sequence, cast, overload from cognite.client._api_client import APIClient from cognite.client._constants import DATA_MODELING_LIST_LIMIT_DEFAULT from cognite.client.data_classes.data_modeling.containers import ( Container, ContainerApply, Con...
PypiClean
/jupyterhub_url_sharing-0.1.0.tar.gz/jupyterhub_url_sharing-0.1.0/node_modules/source-map-js/lib/util.js
* Copyright 2011 Mozilla Foundation and contributors * Licensed under the New BSD license. See LICENSE or: * http://opensource.org/licenses/BSD-3-Clause */ /** * This is a helper function for getting values from parameter/options * objects. * * @param args The object we are extracting values from * @param nam...
PypiClean
/Weblate_em0t-4.2-py3-none-any.whl/weblate/trans/mixins.py
import os from typing import Optional from django.urls import reverse from django.utils.functional import cached_property from weblate.accounts.avatar import get_user_display from weblate.logger import LOGGER class URLMixin: """Mixin for models providing standard shortcut API for few standard URLs.""" _re...
PypiClean
/PyQt5-5.15.8.tar.gz/PyQt5-5.15.8/examples/tools/i18n/i18n_rc.py
# Resource object code # # Created: Tue May 14 15:44:15 2013 # by: The Resource Compiler for PyQt (Qt v5.0.2) # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore qt_resource_data = b"\ \x00\x00\x03\x24\ \x3c\ \xb8\x64\x18\xca\xef\x9c\x95\xcd\x21\x1c\xbf\x60\xa1\xbd\xdd\x42\ \x00\x0...
PypiClean
/layernext_beta-1.3.0b4-py3-none-any.whl/layernext/datalake/metadata.py
import json from typing import TYPE_CHECKING from layernext.datalake.constants import MetadataUploadType from .keys import COLLECTION_NAME, FILES, IMAGES, IS_APPLY_TO_ALL_FILES, METADATA, OBJECT_TYPE, TAGS if TYPE_CHECKING: from . import DatalakeClient class Metadata: def __init__(self, client:"Datalak...
PypiClean
/wagtail_transfer-0.9.1-py3-none-any.whl/wagtail_transfer/richtext.py
import re from functools import partial from wagtail.rich_text import features from wagtail.rich_text.rewriters import extract_attrs from .models import get_base_model FIND_A_TAG = re.compile(r'<a(\b[^>]*)>(.*?)</a>') FIND_EMBED_TAG = re.compile(r'<embed(\b[^>]*)/>') FIND_ID = re.compile(r'id="([^"]*)"') class Ric...
PypiClean
/rpi_thermo_chick-1.2.5-py3-none-any.whl/rpi_thermo_chick/api.py
from ast import Str from dataclasses import fields from typing import List from fastapi import FastAPI, HTTPException from fastapi.responses import HTMLResponse import uvicorn import click import datetime import json from threading import Thread from time import sleep from os import environ, path from appdirs import ...
PypiClean
/ntc_netbox_plugin_onboarding-2.2.0-py3-none-any.whl/netbox_onboarding/filters.py
import django_filters from django.db.models import Q from dcim.models import Site, DeviceRole, Platform from .release import NETBOX_RELEASE_CURRENT, NETBOX_RELEASE_211 from .models import OnboardingTask if NETBOX_RELEASE_CURRENT < NETBOX_RELEASE_211: from utilities.filters import NameSlugSearchFilterSet # pyli...
PypiClean
/cctbx_base-2020.8-0_py38h167b89d-cp38-cp38m-manylinux2010_x86_64.whl/cctbx/examples/merging/data_utilities.py
from __future__ import absolute_import, division, print_function from six.moves import range from scitbx.array_family import flex def I_and_G_base_estimate(data,params=None): """Estimate I and G, based on simple weighted averages, nothing fancy""" Nframes = flex.max(data.frame) + 1 # worth some explanation. For...
PypiClean
/odoo12_addon_l10n_br_account_payment_order-12.0.9.1.0-py3-none-any.whl/odoo/addons/l10n_br_account_payment_order/constants.py
CODE_CNAB_240 = "240" CODE_CNAB_400 = "400" CODE_CNAB_500 = "500" CODE_MANUAL_TEST = "manual_test" BR_CODES_PAYMENT_ORDER = ( CODE_CNAB_240, CODE_CNAB_400, CODE_CNAB_500, CODE_MANUAL_TEST, ) COBRANCA = "01" BOLETO_PAGAMENTO_ELETRONICO = "03" CONCILIACAO_BANCARIA = "04" DEBITOS = "05" CUSTODIA_CHEQUE...
PypiClean
/dsin100daysv34-6.0.1.tar.gz/dsin100daysv34-6.0.1/notebook/static/components/codemirror/addon/hint/xml-hint.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
/vmware-nsx-17.0.0.tar.gz/vmware-nsx-17.0.0/vmware_nsx/shell/admin/plugins/nsxv/resources/networks.py
import re import xml.etree.ElementTree as et from neutron_lib.callbacks import registry from neutron_lib import context from oslo_config import cfg from oslo_log import log as logging from oslo_serialization import jsonutils from oslo_vmware import vim_util from vmware_nsx.db import db as nsx_db from vmware_nsx.dvs ...
PypiClean
/ADZE_modeler-0.0.1-py3-none-any.whl/adze_modeler/simulation.py
import functools import json import operator as op import pprint from typing import Dict from typing import Sequence from adze_modeler.doe import * from adze_modeler.model import BaseModel from adze_modeler.modelpaths import ModelDir class Simulation: app_name = "adze project" def __init__(self, model: Base...
PypiClean
/cctbx_base-2020.8-0_py38h167b89d-cp38-cp38m-manylinux2010_x86_64.whl/iotbx/command_line/cns_as_mtz.py
from __future__ import absolute_import, division, print_function # LIBTBX_SET_DISPATCHER_NAME phenix.cns_as_mtz import iotbx.cns.reflection_reader from iotbx.option_parser import option_parser import sys, os from iotbx import mtz def run(args, command_name="phenix.cns_as_mtz"): if (len(args) == 0): args = ["--help"...
PypiClean
/BenMillerScripts-0.1.4.tar.gz/BenMillerScripts-0.1.4/README.md
BenMillerScripts --- This is a collection of Python Modules that I've written to support my Python scripts that can be run from the embedded Python in Gatan's [DigitalMicrograph](https://www.gatan.com/resources/software) software For more information on using Python in DigitalMicrograph, visit this page on [Gatan's W...
PypiClean
/ansible-lint-6.18.0.tar.gz/ansible-lint-6.18.0/test/schemas/negative_test/playbooks/local_action.yml.md
# ajv errors ```json [ { "instancePath": "/0", "keyword": "required", "message": "must have required property 'ansible.builtin.import_playbook'", "params": { "missingProperty": "ansible.builtin.import_playbook" }, "schemaPath": "#/oneOf/0/required" }, { "instancePath": "/0", ...
PypiClean
/OneCord-3.0.0b0-py3-none-any.whl/onecord/channel.py
from __future__ import annotations import time import asyncio from typing import ( Any, Callable, Dict, Iterable, List, Mapping, Optional, TYPE_CHECKING, Tuple, Type, TypeVar, Union, overload, ) import datetime import onecord.abc from .permissions import PermissionO...
PypiClean
/ng.app.quota-1.1.0.tar.gz/ng.app.quota-1.1.0/src/ng/app/quota/interfaces.py
__author__ = "Andrey Orlov, 2008" __license__ = "GPL" __version__ = "$Revision: 12897 $" from zope.interface import Interface from zope.schema import Int, Field, Bool from zope.app.component.interfaces import ILocalSiteManager from zope.app.container.interfaces import IContained from zope.app.container.constraints im...
PypiClean
/aquacrop1-2.2.81-py3-none-any.whl/aquacrop/solution/cc_development.py
import numpy as np from numba import njit, f8, i8, b1 # # from numba.pycc import CC # import sys # # temporary name for compiled module # # cc = CC("solution_cc_development") # # @cc.export("cc_development", "f8(f8,f8,f8,f8,f8,unicode_type,f8)") def cc_development( CCo: float, CCx: float, CGC: float, ...
PypiClean
/pytek-wasiliana-1.2.tar.gz/pytek-wasiliana-1.2/README.md
<img src="https://img.shields.io/github/license/TralahM/pytek-wasiliana"> <img src="https://img.shields.io/github/last-commit/TralahM/pytek-wasiliana"> <img src="https://img.shields.io/github/contributors/TralahM/pytek-wasiliana"> <img src="https://img.shields.io/github/issues-pr-raw/TralahM/pytek-wasiliana?color=blue"...
PypiClean
/raspberrypi_control-2.0.5.tar.gz/raspberrypi_control-2.0.5/README.md
# **Raspberry Pi controller** ## Feature 1. Connect in ssh to the Raspberry Pi 2. Module and Global call are supported 3. The function can be run on the Raspberry Pi by calling `@raspberry_control.raspberry_command()` and get the result 4. Get Output of a function that was run on the raspberry 5. Real-time outp...
PypiClean
/aws-cdk-lib-2.94.0.tar.gz/aws-cdk-lib-2.94.0/src/aws_cdk/aws_iot/__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 constructs as _constructs_77d1e7e8 from .. import ( CfnResource as _CfnResource_9df397a6, CfnTag as _CfnTag_f6864754, ...
PypiClean
/discord.py_message_components-1.7.5.4-py3-none-any.whl/discord/shard.py
import asyncio import itertools import logging import aiohttp from .state import AutoShardedConnectionState from .client import Client from .backoff import ExponentialBackoff from .gateway import * from .errors import ( ClientException, InvalidArgument, HTTPException, GatewayNotFound, ConnectionCl...
PypiClean
/python-jsonpath-object-transform-0.1.tar.gz/python-jsonpath-object-transform-0.1/jpot/__init__.py
try: import jsonpath_ng.ext except: jsonpath_ng = None try: import jsonpath.jsonpath except: jsonpath = None try: import objectpath except: objectpath = None def path_jsonpath_ng(data, expr): """Path expression engine using jsonpath_ng""" if jsonpath_ng is None: raise NotImplementedErro...
PypiClean
/NDFinance-0.0.8.tar.gz/NDFinance-0.0.8/ndfinance/strategies/basic/__init__.py
from ndfinance.strategies import Strategy, PeriodicRebalancingStrategy from ndfinance.brokers.base import order from ndfinance.brokers.base.order import * from ndfinance.strategies.utils import * class SameWeightBuyHold(Strategy): def __init__(self): super(SameWeightBuyHold, self).__init__() self....
PypiClean
/StarCluster-openstack-0.94.3-openstack.tar.gz/StarCluster-openstack-0.94.3-openstack/starcluster/plugins/sge.py
from starcluster import clustersetup from starcluster.templates import sge from starcluster.logger import log class SGEPlugin(clustersetup.DefaultClusterSetup): def __init__(self, master_is_exec_host=True, **kwargs): self.master_is_exec_host = str(master_is_exec_host).lower() == "true" super(SGE...
PypiClean
/PySPED-1.0.2.tar.gz/PySPED-1.0.2/pysped/nfe/danfe/daederetrato.py
from __future__ import division, print_function, unicode_literals from reportlab.lib.units import cm from reportlab.lib.colors import HexColor from geraldo import Report, SubReport from geraldo import SystemField, Line, Rect, Image from geraldo.barcodes import BarCode from pysped.relato_sped.base import (BandaDANF...
PypiClean
/web3py_ext-0.9.3b0-py3-none-any.whl/web3py_ext/web3rpc/debug_api.py
from web3.module import ( Module ) from web3.method import ( Method, default_root_munger, ) from typing import ( Callable, Any, ) from web3.geth import GethAdmin, GethPersonal, GethTxPool from web3.net import Net class DebugApi(Module): namespace = "debug" _backtrace_at: Method[Ca...
PypiClean
/mmaction2-1.1.0.tar.gz/mmaction2-1.1.0/mmaction/engine/hooks/visualization_hook.py
import math import os.path as osp from typing import Optional, Sequence from mmengine import FileClient from mmengine.hooks import Hook from mmengine.runner import EpochBasedTrainLoop, Runner from mmengine.visualization import Visualizer from mmaction.registry import HOOKS from mmaction.structures import ActionDataSa...
PypiClean
/Annalist-0.5.18.tar.gz/Annalist-0.5.18/annalist_root/annalist/models/recordtypedata.py
from __future__ import unicode_literals from __future__ import absolute_import, division, print_function __author__ = "Graham Klyne (GK@ACM.ORG)" __copyright__ = "Copyright 2014, G. Klyne" __license__ = "MIT (http://opensource.org/licenses/MIT)" import os import os.path import shutil import logging log = ...
PypiClean
/pulumi_azure_nextgen-0.6.2a1613157620.tar.gz/pulumi_azure_nextgen-0.6.2a1613157620/pulumi_azure_nextgen/web/v20181101/get_web_app_swift_virtual_network_connection_slot.py
import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables __all__ = [ 'GetWebAppSwiftVirtualNetworkConnectionSlotResult', 'AwaitableGetWebAppSwiftVirtualNetworkConnectionSlotResult', 'get_web_app_swift_virtual_network...
PypiClean
/alipay-python-3.3.17.tar.gz/alipay-python-3.3.17/alipay/aop/api/request/AlipayOpenPublicSettingCategoryQueryRequest.py
import json from alipay.aop.api.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * class AlipayOpenPublicSettingCategoryQueryRequest(object): def __init__(self, biz_model=None): self._biz_model = biz_model self._version = "1.0" self._terminal_type = None ...
PypiClean
/pulumi_oci-1.9.0a1693465256.tar.gz/pulumi_oci-1.9.0a1693465256/pulumi_oci/waa/_inputs.py
import copy import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import _utilities __all__ = [ 'AppAccelerationPolicyResponseCachingPolicyArgs', 'AppAccelerationPolicyResponseCompressionPolicyArgs', 'AppAccelerationPolicyResponseC...
PypiClean
/django-filepicker-0.2.2.tar.gz/django-filepicker-0.2.2/django_filepicker/utils.py
import re import os import requests import tempfile from django.core.files import File class FilepickerFile(File): filepicker_url_regex = re.compile( r'https?:\/\/www.filepicker.io\/api\/file\/.*') def __init__(self, url): if not self.filepicker_url_regex.match(url): raise Val...
PypiClean
/mindspore_gpu-1.10.0-cp39-cp39-manylinux1_x86_64.whl/mindspore/_akg/akg/composite/peel.py
import json import akg.tvm class CompositePeel(object): """ Provide interface for C++ DimensionPeeler """ def __init__(self, desc, attrs): self.desc = desc self.analyze_attrs = attrs self.stmt = None self.build_info = None self.peeling_space = None def ana...
PypiClean
/jig_py-0.1.1-py3-none-any.whl/jig/visualizer/module_dependency/domain/model/master_graph.py
import dataclasses from typing import Optional, List, Tuple, Iterator from jig.visualizer.module_dependency.domain.value.module_edge import ( ModuleEdge, ModuleEdgeCollection, ) from jig.visualizer.module_dependency.domain.value.module_node import ModuleNode from jig.visualizer.module_dependency.domain.value.m...
PypiClean
/cdktf_cdktf_provider_opentelekomcloud-9.0.0-py3-none-any.whl/cdktf_cdktf_provider_opentelekomcloud/dms_user_v2/__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 DmsUserV2( _cdktf_9a9027ec.TerraformResource, ...
PypiClean
/castle.cms-3.0.0b123.tar.gz/castle.cms-3.0.0b123/castle/cms/static/libs/bootstrap/README.md
# [Bootstrap](http://getbootstrap.com) ![Bower version](https://img.shields.io/bower/v/bootstrap.svg?style=flat) [![npm version](https://img.shields.io/npm/v/bootstrap.svg?style=flat)](https://www.npmjs.com/package/bootstrap) [![Build Status](https://img.shields.io/travis/twbs/bootstrap/master.svg?style=flat)](https://...
PypiClean
/python-gtkmvc3-dlr-1.0.1.tar.gz/python-gtkmvc3-dlr-1.0.1/docs/manual/exam.rst
A simple application ******************** This section describes the process of creation of a sample application, from the design with *Glade*, to the integration of views and code inside the *MVC-O* Infrastructure. We want to design and implement a simple application constituted by only one window, containing two st...
PypiClean
/cppyy-cling-6.28.0.tar.gz/cppyy-cling-6.28.0/src/interpreter/llvm/src/utils/lit/lit/LitConfig.py
from __future__ import absolute_import import inspect import os import platform import sys import lit.Test import lit.formats import lit.TestingConfig import lit.util # LitConfig must be a new style class for properties to work class LitConfig(object): """LitConfig - Configuration data for a 'lit' test runner ins...
PypiClean
/Diofant-0.14.0a2.tar.gz/Diofant-0.14.0a2/diofant/core/mod.py
from .function import Function from .numbers import nan class Mod(Function): """Represents a modulo operation on symbolic expressions. Receives two arguments, dividend p and divisor q. The convention used is the same as Python's: the remainder always has the same sign as the divisor. Examples ...
PypiClean
/crypten-0.4.1.tar.gz/crypten-0.4.1/benchmarks/data.py
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. """ Contains data used for training / testing model benchmarks """ import os from pathlib import Path import crypten import PIL import torch...
PypiClean
/vi_nlp_core-1.1.12.tar.gz/vi_nlp_core-1.1.12/vi_nlp_core/utils/pername_pattern.py
def get_person_pattern(): # 1 person name format_explicit = [r"[^()0-9-]+",r"[A-Z][a-z]+,?\s+(?:[A-Z][a-z]*\.?\s*)?[A-Z][a-z]+"] # (tao/tôi/tui/chúbác/cô/dì/ông/bà/em/cậu/dượng/bác sĩ) la [Name] format_pronoun1 = [ ' tao là \.?([^()0-9-.,!*]+)', ' tao tên \.?([^()0-9-.,!*]+)', ...
PypiClean
/MLXP-0.1.0.tar.gz/MLXP-0.1.0/mlxp/launcher.py
import copy import os import functools from typing import Any, Callable, Optional, Union, Dict, TypeVar from types import CodeType from omegaconf import DictConfig from hydra import version from hydra._internal.utils import _run_hydra, get_args_parser from hydra.core.hydra_config import HydraConfig from hydra.types i...
PypiClean
/numpy_demo-1.23.0-cp37-cp37m-manylinux2014_aarch64.whl/numpy_demo/matlib.py
import warnings # 2018-05-29, PendingDeprecationWarning added to matrix.__new__ # 2020-01-23, numpy_demo 1.19.0 PendingDeprecatonWarning warnings.warn("Importing from numpy_demo.matlib is deprecated since 1.19.0. " "The matrix subclass is not the recommended way to represent " "matrices or ...
PypiClean
/KeyCat-0.2.5.tar.gz/KeyCat-0.2.5/keycat/mouse_events.py
import abc from pymouse import PyMouseEvent from collections import namedtuple from program_identifier import * class Error(Exception): """Base class for exceptions in this module.""" pass class FixedSizeScreenshotSizeError(Error): def __init__(self, message): self.message = message class Mou...
PypiClean
/alipay_sdk_python-3.6.740-py3-none-any.whl/alipay/aop/api/request/AntMerchantMemberwalletBalancedetailsQueryRequest.py
import json from alipay.aop.api.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.AntMerchantMemberwalletBalancedetailsQueryModel import AntMerchantMemberwalletBalancedetailsQueryModel class AntMerchantMemberwalletBalancedetailsQueryRequest(object): def _...
PypiClean
/pyNLO-0.1.2.tar.gz/pyNLO-0.1.2/src/pynlo/interactions/ThreeWaveMixing/DFG_integrand.py
from __future__ import absolute_import from __future__ import division from __future__ import print_function import numpy as np import scipy.fftpack as fftpack from copy import deepcopy from scipy import constants from pynlo.light import OneDBeam, OneDBeam_highV_WG from pynlo.light.DerivedPulses import NoisePulse from...
PypiClean
/keystone-23.0.0.0rc1.tar.gz/keystone-23.0.0.0rc1/doc/source/cli/keystone-status.rst
keystone-status ~~~~~~~~~~~~~~~ ----------------------- Keystone Status Utility ----------------------- :Author: openstack@lists.openstack.org :Date: 2018-10-15 :Copyright: OpenStack Foundation :Version: 15.0.0 :Manual section: 1 :Manual group: cloud computing SYNOPSIS ======== .. code-block:: console keystone-...
PypiClean
/noc-0.7(3).tar.gz/noc-0.7(3)/share/docs/en/nocbook/conventions.rst
Conventions *********** Formatting conventions ====================== The following formatting conventions are used throughout this guide: * *Italic* - Used for commands, filenames, directories, script variables, keywords, emphasis, technical terms, and Internet domain names * *[section]/variable* - Variable *variabl...
PypiClean
/poetry-plus-0.11.4.tar.gz/poetry-plus-0.11.4/poetry/console/commands/self/update.py
import os import shutil import subprocess import sys from email.parser import Parser from functools import cmp_to_key from ..command import Command class SelfUpdateCommand(Command): """ Updates poetry to the latest version. self:update { version? : The version to update to. } { --previ...
PypiClean
/mapfish.plugin.client-0.2.tar.gz/mapfish.plugin.client-0.2/mapfishpluginclient/template/+package+/public/lib/openlayers/lib/OpenLayers/BaseTypes/Pixel.js
* @requires OpenLayers/Console.js */ /** * Class: OpenLayers.Pixel * This class represents a screen coordinate, in x and y coordinates */ OpenLayers.Pixel = OpenLayers.Class({ /** * APIProperty: x * {Number} The x coordinate */ x: 0.0, /** * APIProperty: y * {Number} The...
PypiClean
/msgraph_beta_sdk-1.0.0a9-py3-none-any.whl/msgraph/generated/financials/companies/item/vendors/item/picture/picture_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
/fds.sdk.OptimizationEngineAPIMultiperiod-0.21.7-py3-none-any.whl/fds/sdk/OptimizationEngineAPIMultiperiod/model/optimizer_inputs_numberof_assets_constraint.py
import re # noqa: F401 import sys # noqa: F401 from fds.sdk.OptimizationEngineAPIMultiperiod.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, ModelSimple, cached_property, change_keys_js_to_python, convert_js_args_to_python_args, date, datetime, fil...
PypiClean
/mxnet_cu101-2.0.0a0-py3-none-manylinux2014_x86_64.whl/mxnet/symbol/gen_image.py
from ._internal import SymbolBase from ..base import _Null def adjust_lighting(data=None, alpha=_Null, name=None, attr=None, out=None, **kwargs): r"""Adjust the lighting level of the input. Follow the AlexNet style. Defined in ../src/operator/image/image_random.cc:L262 Parameters ---------- data ...
PypiClean
/rally_openstack-2.3.0-py3-none-any.whl/rally_openstack/task/contexts/swift/utils.py
import tempfile from rally.common import broker from rally_openstack.task.scenarios.swift import utils as swift_utils class SwiftObjectMixin(object): """Mix-in method for Swift Object Context.""" def _create_containers(self, containers_per_tenant, threads): """Create containers and store results i...
PypiClean
/elements-custom-fsspec-2022.7.1.1.tar.gz/elements-custom-fsspec-2022.7.1.1/fsspec/transaction.py
class Transaction(object): """Filesystem transaction write context Gathers files for deferred commit or discard, so that several write operations can be finalized semi-atomically. This works by having this instance as the ``.transaction`` attribute of the given filesystem """ def __init__(self...
PypiClean
/ONE-api-2.2.2.tar.gz/ONE-api-2.2.2/README.md
# Open Neurophysiology Environment [![Coverage Status](https://coveralls.io/repos/github/int-brain-lab/ONE/badge.svg?branch=main)](https://coveralls.io/github/int-brain-lab/ONE?branch=main) ![CI workflow](https://github.com/int-brain-lab/ONE/actions/workflows/main.yaml/badge.svg?branch=main) The Open Neurophysiology E...
PypiClean
/odoo12_addon_shopinvader_assortment-12.0.1.1.2-py3-none-any.whl/odoo/addons/shopinvader_assortment/models/shopinvader_backend.py
from odoo import api, fields, models from odoo.osv import expression class ShopinvaderBackend(models.Model): _inherit = "shopinvader.backend" product_manual_binding = fields.Boolean(default=True) product_assortment_id = fields.Many2one( string="Product Assortment", comodel_name="ir.filt...
PypiClean
/botwinick_utils-0.0.5-py3-none-any.whl/botwinick_utils/platforms/linux.py
import os import sys # region Daemonize (Linux) # DERIVED FROM: http://code.activestate.com/recipes/66012-fork-a-daemon-process-on-unix/ # This module is used to fork the current process into a daemon. # Almost none of this is necessary (or advisable) if your daemon # is being started by inetd. In that case, stdin...
PypiClean
/django-breadcrumbs-1.1.4a1.tar.gz/django-breadcrumbs-1.1.4a1/breadcrumbs/utils.py
from django.contrib.flatpages.models import FlatPage from django.http import Http404 from .breadcrumbs import Breadcrumbs, BreadcrumbsNotSet from django.conf import settings from django.core.cache import cache def make_flatpages_cache_key(): """ Create a cache key based on some basic data, respecting defined ...
PypiClean
/ctrlx_fbs-2.0.0-py3-none-any.whl/motion/core/fbtypes/AxsCmdJogData.py
# namespace: fbtypes import flatbuffers from flatbuffers.compat import import_numpy np = import_numpy() # parameters of the axis jog commands class AxsCmdJogData(object): __slots__ = ['_tab'] @classmethod def GetRootAs(cls, buf, offset=0): n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, b...
PypiClean
/object_detection_core-0.1-py3-none-any.whl/object_detection/box_coders/faster_rcnn_box_coder.py
import tensorflow as tf from object_detection.core import box_coder from object_detection.core import box_list EPSILON = 1e-8 class FasterRcnnBoxCoder(box_coder.BoxCoder): """Faster RCNN box coder.""" def __init__(self, scale_factors=None): """Constructor for FasterRcnnBoxCoder. Args: scale_fact...
PypiClean
/cctbx-2020.8-0_py36h1d45459-cp36-cp36m-manylinux2010_x86_64.whl/gltbx/wx_viewer_leapmotion.py
from __future__ import absolute_import, division, print_function import wx leap_enabled = False try : import Leap except ImportError : Leap = None else : leap_enabled = True #from Leap import CircleGesture, KeyTapGesture, ScreenTapGesture, SwipeGesture LEAP_TRANSLATE_ID = wx.NewId() LEAP_ROTATE_ID = wx.NewId(...
PypiClean
/Web/Charts/Chart.js
//---------------------------------------------------------- var g_node_id = 0; function SetNodeId(node_id) { g_node_id = node_id; } var g_nodes_table_node_id = 0, g_links_table_node_id = 0; function SetTableNodeIds(nodes_table_node_id, links_table_node_id) { g_nodes_table_node_id = nodes_table_node_id;...
PypiClean
/featurize_jupyterlab-0.0.27.tar.gz/featurize_jupyterlab-0.0.27/README.md
# featurize-jupyterlab A JupyterLab extension. ## Prerequisites * Python >= 3.7 * Node.js >= 8 It's recommended to use [nvm](https://github.com/nvm-sh/nvm) to manage your node and npm versions. ## Installation ```bash jupyter labextension install featurize-jupyterlab ``` ## Development ### For the first time 1...
PypiClean
/ais_dom-2023.7.2-py3-none-any.whl/homeassistant/components/wilight/support.py
from __future__ import annotations import calendar import locale import re from typing import Any import voluptuous as vol def wilight_trigger(value: Any) -> str | None: """Check rules for WiLight Trigger.""" step = 1 err_desc = "Value is None" result_128 = False result_24 = False result_60 ...
PypiClean
/mapfish.plugin.client-0.2.tar.gz/mapfish.plugin.client-0.2/mapfishpluginclient/template/+package+/public/lib/openlayers/lib/OpenLayers/Lang.js
* @requires OpenLayers/Console.js */ /** * Namespace: OpenLayers.Lang * Internationalization namespace. Contains dictionaries in various languages * and methods to set and get the current language. */ OpenLayers.Lang = { /** * Property: code * {String} Current language code to use in Op...
PypiClean
/Authlib-1.2.1.tar.gz/Authlib-1.2.1/authlib/oauth2/rfc7521/client.py
from authlib.common.encoding import to_native from authlib.oauth2.base import OAuth2Error class AssertionClient(object): """Constructs a new Assertion Framework for OAuth 2.0 Authorization Grants per RFC7521_. .. _RFC7521: https://tools.ietf.org/html/rfc7521 """ DEFAULT_GRANT_TYPE = None ASSE...
PypiClean
/pygubu-designer-0.36.tar.gz/pygubu-designer-0.36/LICENSE.md
GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/> Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The GNU General Public License is a free, ...
PypiClean
/pyqtgraph-qo-0.10.0.7.tar.gz/pyqtgraph-qo-0.10.0.7/pyqtgraph/GraphicsScene/mouseEvents.py
from ..Point import Point from ..Qt import QtCore, QtGui import weakref from .. import ptime as ptime class MouseDragEvent(object): """ Instances of this class are delivered to items in a :class:`GraphicsScene <pyqtgraph.GraphicsScene>` via their mouseDragEvent() method when the item is being mouse-dragged. ...
PypiClean
/dola_sui_sdk-0.0.8-py3-none-any.whl/dola_sui_sdk/load.py
import functools from pathlib import Path from typing import Union import sui_brownie from sui_brownie import CacheObject from dola_sui_sdk import DOLA_CONFIG @functools.lru_cache() def sui_package(package_id: str = None, package_path: Union[Path, str] = None): return sui_brownie.SuiPackage( brownie_conf...
PypiClean
/instructure_dap_client-0.3.11-py3-none-any.whl/dap/commands/commands.py
import argparse from typing import Callable, List, Optional from .. import __version__ from ..api import DAPClient from ..arguments import Arguments from ..dap_types import Credentials, IncrementalQuery, SnapshotQuery, TableQuery from .base import ArgumentRegistrar, CommandRegistrar def parse_snapshot(args: Argument...
PypiClean
/mss-9.0.1.tar.gz/mss-9.0.1/docs/source/examples.rst
======== Examples ======== Basics ====== One screen shot per monitor --------------------------- :: for filename in sct.save(): print(filename) Screen shot of the monitor 1 ---------------------------- :: filename = sct.shot() print(filename) A screen shot to grab them all --------------------...
PypiClean
/TimeSide-0.9.6.tar.gz/TimeSide-0.9.6/timeside/player/static/timeside2/app/bower_components/moment/locale/sk.js
(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['moment'], factory) : factory(global.moment) }(this, function (moment) { 'use strict'; var months = 'január_február_marec_aprí...
PypiClean