id
stringlengths
1
8
text
stringlengths
6
1.05M
dataset_id
stringclasses
1 value
/RT-Congestion-Control-1.3.tar.gz/RT-Congestion-Control-1.3/rt_congestion_control/admm.py
import numpy as np import warnings from tqdm import tqdm from joblib import Parallel, delayed warnings.filterwarnings("ignore") import pandapower as pp from rt_congestion_control.memory import Memory from rt_congestion_control.agent import Agent class Admm(): """Take all actors and perform the ADMM. \n Input...
PypiClean
/coala-0.11.0.tar.gz/coala-0.11.0/coalib/bearlib/abstractions/ExternalBearWrap.py
import json import inspect from functools import partial from collections import OrderedDict from coalib.bears.LocalBear import LocalBear from coala_utils.decorators import enforce_signature from coalib.misc.Shell import run_shell_command from coalib.results.Result import Result from coalib.results.SourceRange import ...
PypiClean
/RsCMPX_Gprf-4.0.171.tar.gz/RsCMPX_Gprf-4.0.171/RsCMPX_Gprf/Implementations/Catalog/NrSub/Measurement/Spath.py
from typing import List from .....Internal.Core import Core from .....Internal.CommandsGroup import CommandsGroup from .....Internal import Conversions from .....Internal.RepeatedCapability import RepeatedCapability from ..... import repcap # noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection c...
PypiClean
/scikit-bot-0.14.0.tar.gz/scikit-bot-0.14.0/skbot/ignition/sdformat/bindings/v12/light.py
from dataclasses import dataclass, field from typing import Optional __NAMESPACE__ = "sdformat/v1.2/light.xsd" @dataclass class Light: """ The light element describes a light source. Parameters ---------- cast_shadows: When true, the light will cast shadows. pose: A position and orientation ...
PypiClean
/aliyun-python-sdk-vpc-3.0.45.tar.gz/aliyun-python-sdk-vpc-3.0.45/aliyunsdkvpc/request/v20160428/ModifyVSwitchAttributeRequest.py
from aliyunsdkcore.request import RpcRequest from aliyunsdkvpc.endpoint import endpoint_data class ModifyVSwitchAttributeRequest(RpcRequest): def __init__(self): RpcRequest.__init__(self, 'Vpc', '2016-04-28', 'ModifyVSwitchAttribute','vpc') self.set_method('POST') if hasattr(self, "endpoint_map"): setattr...
PypiClean
/Releasy-0.1.tar.gz/Releasy-0.1/releasy/log.py
import re from . import PROJECT_TICKET_REGEX, PROJECT_GITHUB_URL, JIRA_BROWSE_URL class DetailedLog: @property def github_pull_request_url(self): return "%spull/%s" % (self.github_url, self.pull_request) @property def jira_ticket_url(self): return "%s%s" % (self.jira_browse_url, self...
PypiClean
/dbpedia_ent-0.1.9-py3-none-any.whl/dbpedia_ent/dto/syn/n2/g/rev_go.py
d_rev_go = {'go-ahead_northern': 'go_north_east', 'go-away_bird': 'go-away-bird', 'go-daigo_emperor': 'emperor_go-daigo', 'go-daigo_tenno': 'emperor_go-daigo', 'go-fast_boats': 'go-fast_boat', 'go-faster_stripe': 'racing_stripe', 'go-faster_stripes': 'racing_stripe', 'go-fukakusa_emperor': 'emperor_go-fukakusa...
PypiClean
/apis_import_project-0.4.0.tar.gz/apis_import_project-0.4.0/apis_import_project/views.py
import sys import re import json import logging from django.conf import settings from django.contrib.contenttypes.models import ContentType from django.core.exceptions import MultipleObjectsReturned from django.db.models import Q from django.views import View from django.views.generic import TemplateView from django.h...
PypiClean
/DLex_DeaL-0.0.3-py3-none-any.whl/DLex/GrParser.py
from .lexer import * class LexParser: def __init__(self, text=None) -> None: self.text = text self.dfa: DFA self.row = 0 self.col = 0 def genNFA(self, nfa, text): cnt = 0 for line in text.readlines(): arr = line.split() if len(arr) < 3 o...
PypiClean
/hypy_utils-1.0.19.tar.gz/hypy_utils-1.0.19/hypy_utils/dict_utils.py
from hypy_utils import infer def is_non_empty(o): return not hasattr(o, '__len__') or len(o) > 0 def remove_values(d: dict | list, vals: list, preserve_list: bool = False) -> dict | list: """ Recursively remove values from a dict :param d: Dict :param vals: Values to remove :param preserve_...
PypiClean
/itasca_stub-1.0.19-py3-none-any.whl/itasca/ballpebblearray/__init__.py
from typing import Any def branch(*args, **kwargs) -> Any: """ () -> array float{contact,2}. Get a numpy array of the contact branch vectors in the global coordinate system. """ pass def extra(*args, **kwargs) -> Any: """ (slot: int) -> array float{contact} or float{contact}. Get the c...
PypiClean
/contiguous_params-1.0.0.tar.gz/contiguous_params-1.0.0/contiguous_params/params.py
import torch from torch import nn class ContiguousParams: def __init__(self, parameters): # Create a list of the parameters to prevent emptying an iterator. self._parameters = list(parameters) self._param_buffer = None self._grad_buffer = None self._init_buffers() ...
PypiClean
/nnogada-0.9.1.3.tar.gz/nnogada-0.9.1.3/README.md
Neural Networks Optimized by Genetic Algorithms for Data Analysis (NNOGADA) **nnogada** is a Python package that performs hyperparemeter tuning for artificial neural networks, particularly for Multi Layer Perceptrons, using simple genetic algorithms. Useful for generate better neural network models for data analysis....
PypiClean
/custom-e-celery-4.0.2.tar.gz/custom-e-celery-4.0.2/celery/utils/deprecated.py
"""Deprecation utilities.""" from __future__ import absolute_import, print_function, unicode_literals import warnings from vine.utils import wraps from celery.exceptions import CPendingDeprecationWarning, CDeprecationWarning __all__ = ['Callable', 'Property', 'warn'] PENDING_DEPRECATION_FMT = """ {description} i...
PypiClean
/omegaml-0.15.5.tar.gz/omegaml-0.15.5/docs/source/guide/clusters/intro.rst
What is the runtime? ==================== .. contents:: .. _Celery: https://docs.celeryproject.org/en/stable/ The omega-ml runtime provides distributed and highly scalable execution of all of the omega-ml functionality. It is a distributed programming and deployment environment based on the widely used `Celery`_ li...
PypiClean
/pulumi_azure_nextgen-0.6.2a1613157620.tar.gz/pulumi_azure_nextgen-0.6.2a1613157620/pulumi_azure_nextgen/apimanagement/v20190101/get_group.py
import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables __all__ = [ 'GetGroupResult', 'AwaitableGetGroupResult', 'get_group', ] @pulumi.output_type class GetGroupResult: """ Contract details. """ de...
PypiClean
/TorchLanguage-0.1.tar.gz/TorchLanguage-0.1/torchlanguage/datasets/ReutersC50Dataset.py
# Imports import torch from torch.utils.data.dataset import Dataset import urllib import os import zipfile import json import codecs from random import shuffle import math import pickle from datetime import datetime # Reuters C50 dataset class ReutersC50Dataset(Dataset): """ Reuters C50 dataset """ ...
PypiClean
/supybot-0.84.0.tar.gz/supybot-0.84.0/src/utils/web.py
import re import base64 import socket import urllib import urllib2 import httplib import sgmllib import urlparse import htmlentitydefs sockerrors = (socket.error,) try: sockerrors += (socket.sslerror,) except AttributeError: pass from .str import normalizeWhitespace Request = urllib2.Request urlquote = urll...
PypiClean
/Pygments-2.16.1-py3-none-any.whl/pygments/token.py
class _TokenType(tuple): parent = None def split(self): buf = [] node = self while node is not None: buf.append(node) node = node.parent buf.reverse() return buf def __init__(self, *args): # no need to call super.__init__ self...
PypiClean
/NativDebugging-35.tar.gz/NativDebugging-35/src/Win32/ExternalMemoryReader.py
from .MemReaderBaseWin import * from ..GUIDisplayBase import * from ..Interfaces import ReadError import os import struct import subprocess def attach(targetProcessId, platform): return ExternalMemoryReader(targetProcessId, platform) class ExternalMemoryReader( MemReaderBaseWin, GUIDisplayBase ): PLATFORM_X8...
PypiClean
/monk_cls_test2-0.0.7.tar.gz/monk_cls_test2-0.0.7/monk/tf_keras_1/models/features.py
from monk.tf_keras_1.models.imports import * class CNNVisualizer(): ''' Base class for visualizing features and feature maps of keras models Args: model (): Trained model is_notebook: Check environment type True - Using Jupyter-like environment (Notebook) ...
PypiClean
/find_known_secrets-1.3.0.tar.gz/find_known_secrets-1.3.0/README.md
# find_known_secrets Scan for known secrets in your source code before you check in badges ------ ![Libraries.io dependency status for latest release](https://img.shields.io/librariesio/release/pypi/find-known-secrets) [![Downloads](https://pepy.tech/badge/find_known_secrets/month)](https://pepy.tech/project/find-kno...
PypiClean
/a-transformers-0.0.1.tar.gz/a-transformers-0.0.1/README.md
# A-Transformers A collection of transformer models, in PyTorch. ```bash pip install a-transformers ``` [![PyPI - Python Version](https://img.shields.io/pypi/v/a-transformers?style=flat&colorA=black&colorB=black)](https://pypi.org/project/a-transformers/) ## Usage ### Transformer ```python from a_transformers.tra...
PypiClean
/kubeflow-fairing-1.0.2.tar.gz/kubeflow-fairing-1.0.2/kubeflow/fairing/builders/docker/docker.py
import json import logging from docker import APIClient from kubeflow.fairing.builders.base_builder import BaseBuilder from kubeflow.fairing.builders import dockerfile from kubeflow.fairing.constants import constants logger = logging.getLogger(__name__) class DockerBuilder(BaseBuilder): """A builder using the ...
PypiClean
/Adeepspeed-0.9.2.tar.gz/Adeepspeed-0.9.2/deepspeed/inference/config.py
# DeepSpeed Team import torch from deepspeed.runtime.config_utils import DeepSpeedConfigModel from deepspeed.runtime.zero.config import DeepSpeedZeroConfig from pydantic import Field from pydantic import validator from typing import Dict, Union from enum import Enum class DtypeEnum(Enum): # The torch dtype must...
PypiClean
/CDLparser-0.24.tar.gz/CDLparser-0.24/cdlparser/cdlparser.py
__version_info__ = (0, 0, 8, 'beta', 0) __version__ = "%d.%d.%d-%s" % __version_info__[0:4] import sys, os, logging, types import ply.lex as lex from ply.lex import TOKEN import ply.yacc as yacc import netCDF4 as nc4 import numpy as np from functools import reduce # default fill values for netCDF-3 data types (as def...
PypiClean
/pyslope-1.2.0.tar.gz/pyslope-1.2.0/versioneer.py
# pylint:disable=invalid-name,import-outside-toplevel,missing-function-docstring # pylint:disable=missing-class-docstring,too-many-branches,too-many-statements # pylint:disable=raise-missing-from,too-many-lines,too-many-locals,import-error # pylint:disable=too-few-public-methods,redefined-outer-name,consider-using-with...
PypiClean
/vioneta_agro_frontend-20230809.1-py3-none-any.whl/hass_frontend/frontend_latest/5553-eXv597OXaGQ.js
export const id=5553;export const ids=[5553];export const modules={8485:(e,t,i)=>{i.d(t,{a:()=>u});var o=i(43204),a=i(72774),n={ROOT:"mdc-form-field"},r={LABEL_SELECTOR:".mdc-form-field > label"};const s=function(e){function t(i){var a=e.call(this,(0,o.__assign)((0,o.__assign)({},t.defaultAdapter),i))||this;return a.cl...
PypiClean
/backend.ai_client-23.3.11-py3-none-any.whl/ai/backend/client/cli/admin/agent.py
from __future__ import annotations import sys import click from ai.backend.cli.types import ExitCode from ai.backend.client.output.fields import agent_fields from ai.backend.client.session import Session from ..extensions import pass_ctx_obj from ..types import CLIContext from . import admin @admin.group() def ag...
PypiClean
/seven_cloudapp_frame-1.0.114.tar.gz/seven_cloudapp_frame-1.0.114/seven_cloudapp_frame/handlers/client/order.py
from seven_cloudapp_frame.models.enum import PageCountMode from seven_cloudapp_frame.handlers.frame_base import * from seven_cloudapp_frame.models.order_base_model import * from seven_cloudapp_frame.models.stat_base_model import * class HorseracelampListHandler(ClientBaseHandler): """ :description: 获取跑马灯奖品列表 ...
PypiClean
/lamindb-0.51.1.tar.gz/lamindb-0.51.1/sub/lamindb-setup/lamindb_setup/dev/_settings_instance.py
import os import shutil from pathlib import Path from typing import Literal, Optional, Set, Tuple, Union from lamin_utils import logger from ._settings_save import save_instance_settings from ._settings_storage import StorageSettings from ._settings_store import current_instance_settings_file, instance_settings_file ...
PypiClean
/opencl4py-1.5.1.tar.gz/opencl4py-1.5.1/README.md
opencl4py ========= Python cffi OpenCL bindings and helper classes. Tested with Python 2.7, Python 3.3, Python 3.4 and PyPy on Linux and Windows. Covered OpenCL API: ``` clBuildProgram clCreateBuffer clCreateCommandQueue clCreateCommandQueueWithProperties clCreateContext clCreateKernel clCreatePipe clCreateProgramWi...
PypiClean
/monk_kaggle-0.0.1-py3-none-any.whl/monk/pytorch/models/return_model.py
from monk.pytorch.models.imports import * from monk.system.imports import * from monk.pytorch.models.models import * from monk.pytorch.models.common import create_final_layer from monk.pytorch.models.common import get_layer_uid from monk.pytorch.models.layers import custom_model_get_layer from monk.pytorch.models.layer...
PypiClean
/cupy_cuda92-9.6.0-cp37-cp37m-manylinux1_x86_64.whl/cupyx/scipy/special/_convex_analysis.py
from cupy import _core _float_preamble = ''' #include <cupy/math_constants.h> double __device__ entr(double x) { if (isnan(x)) { return CUDART_NAN; } else if (x > 0){ return -x * log(x); } else if (x == 0){ return 0; } else { return -CUDART_INF; } } double __devic...
PypiClean
/wai.tfrecords-0.0.2.tar.gz/wai.tfrecords-0.0.2/src/wai/tfrecords/object_detection/model_tpu_main.py
r"""Creates and runs `Estimator` for object detection model on TPUs. This uses the TPUEstimator API to define and run a model in TRAIN/EVAL modes. """ # pylint: enable=line-too-long from __future__ import absolute_import from __future__ import division from __future__ import print_function from absl import flags imp...
PypiClean
/spaceone_monitoring-1.11.0.3-py3-none-any.whl/spaceone/monitoring/manager/secret_manager.py
import logging from spaceone.core.manager import BaseManager from spaceone.core.connector.space_connector import SpaceConnector from spaceone.monitoring.error import * _LOGGER = logging.getLogger(__name__) class SecretManager(BaseManager): def __init__(self, *args, **kwargs): super().__init__(*args, **...
PypiClean
/distributions_wjn-0.1.tar.gz/distributions_wjn-0.1/distributions_wjn/Gaussiandistribution.py
import math import matplotlib.pyplot as plt from .Generaldistribution import Distribution class Gaussian(Distribution): """ Gaussian distribution class for calculating and visualizing a Gaussian distribution. Attributes: mean (float) representing the mean value of the distribution stdev (float) representing ...
PypiClean
/odoo14_addon_shopfloor_workstation-14.0.1.3.1-py3-none-any.whl/odoo/addons/shopfloor_workstation/services/workstation.py
from odoo import _ from odoo.addons.base_rest.components.service import to_int from odoo.addons.component.core import Component class ShopfloorWorkstation(Component): """ Workstation service for the mobile application. This allows to scan a workstation bar code on the floor, which will set a default...
PypiClean
/FinanceLib-0.0.2.tar.gz/FinanceLib-0.0.2/README.md
# FinanceLib ## Package Overview FinanceLib is easy-to-use Python library that has modules for representing the visualizations and analysis of commonly used finance related terms through graphs and charts. ## Table of Contents ### Usage This module can be used for the below given puposes: * Calculating the inter...
PypiClean
/pykiso_python_uds-3.1.0-py3-none-any.whl/uds/uds_config_tool/FunctionCreation/RequestDownloadMethodFactory.py
__author__ = "Richard Clubb" __copyrights__ = "Copyright 2018, the python-uds project" __credits__ = ["Richard Clubb"] __license__ = "MIT" __maintainer__ = "Richard Clubb" __email__ = "richard.clubb@embeduk.com" __status__ = "Development" import sys from uds.uds_config_tool import DecodeFunctions from uds.uds_conf...
PypiClean
/ajenti.plugin.ace-0.32.tar.gz/ajenti.plugin.ace-0.32/ajenti_plugin_ace/resources/vendor/ace-builds/src-min-noconflict/ext-split.js
ace.define("ace/split",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/editor","ace/virtual_renderer","ace/edit_session"],function(e,t,n){"use strict";var r=e("./lib/oop"),i=e("./lib/lang"),s=e("./lib/event_emitter").EventEmitter,o=e("./editor").Editor,u=e("./virtual_renderer").V...
PypiClean
/S1Tiling-1.0.0rc1.tar.gz/S1Tiling-1.0.0rc1/docs/use.rst
.. # define a hard line break for HTML .. |br| raw:: html <br /> .. _use: .. index:: usage ====================================================================== Usage ====================================================================== .. contents:: Contents: :local: :depth: 3 Scenarios --------- Ort...
PypiClean
/boot-synth-1.2.0.tar.gz/boot-synth-1.2.0/synth/projects_master/nginx_router/frontend/react/node_modules/chokidar/node_modules/fsevents/node_modules/string-width/readme.md
# string-width [![Build Status](https://travis-ci.org/sindresorhus/string-width.svg?branch=master)](https://travis-ci.org/sindresorhus/string-width) > Get the visual width of a string - the number of columns required to display it Some Unicode characters are [fullwidth](https://en.wikipedia.org/wiki/Halfwidth_and_ful...
PypiClean
/v1/model/change_baremetal_server_name_request.py
import pprint import re import six class ChangeBaremetalServerNameRequest: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value i...
PypiClean
/sra-pylib-1.4.2.tar.gz/sra-pylib-1.4.2/README.md
# sra-pylib `sra-pylib` is a Python wrapper for [some-random-api](https://some-random-api.com). ```python import sra from sra import animal # Create a new instance of the Panda class panda = animal.Panda() >>> print(panda.image_link) # Prints a Panda Image link "https://i.imgur.com/YVLrUO9.jpg" >>> print(panda.fact...
PypiClean
/BYONDToolsv3-0.1.4.tar.gz/BYONDToolsv3-0.1.4/LICENSE.rst
The MIT License (MIT) Copyright (c) 2013 Rob "N3X15" Nelson Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merg...
PypiClean
/databricks-feature-store-0.14.2.tar.gz/databricks-feature-store-0.14.2/databricks/feature_store/_training_scoring_client/_training_scoring_client.py
import datetime import json import logging import os from collections import defaultdict from types import ModuleType from typing import Any, Dict, List, Optional, Set, Union import mlflow from mlflow.models import Model from mlflow.utils.file_utils import TempDir, read_yaml from pyspark.sql import DataFrame from pysp...
PypiClean
/pydis_discord-1.0.5.tar.gz/pydis_discord-1.0.5/pydis/webhook/sync.py
from __future__ import annotations import threading import logging import json import time import re from urllib.parse import quote as urlquote from typing import Any, Dict, List, Literal, Optional, TYPE_CHECKING, Sequence, Tuple, Union, TypeVar, Type, overload import weakref from .. import utils from ..errors impo...
PypiClean
/TF-COMB-1.1.tar.gz/TF-COMB-1.1/tfcomb/objects.py
import os import pandas as pd import itertools import multiprocessing as mp import numpy as np import copy import glob import fnmatch import dill import collections import math import re #Statistics import qnorm #quantile normalization from scipy.stats import linregress from kneed import KneeLocator import statsmod...
PypiClean
/bpy_2.79-1.0.0-py3-none-manylinux2014_x86_64.whl/bpy/2.79/scripts/addons/add_mesh_extra_objects/geodesic_domes/vefm_271.py
import bpy # PKHG>NEEDED? import bmesh from math import acos, pi, sin, cos, atan, tan from mathutils import Vector from bpy_extras.object_utils import AddObjectHelper, object_data_add # PKHG>DBG change the DBG_info and use extra_DBG_info DBG_info = {"MeshInfo": False, "StrutMesh": False, "HubMesh": False} def extra_...
PypiClean
/bloxroute-gateway-1.109.9.tar.gz/bloxroute-gateway-1.109.9/bxgateway/src/bxgateway/services/extension_gateway_transaction_service.py
import struct from typing import List, Set, Union import task_pool_executor as tpe from bxcommon import constants from bxcommon.messages.bloxroute.tx_message import TxMessage from bxcommon.messages.bloxroute.txs_message import TxsMessage from bxcommon.models.tx_validation_status import TxValidationStatus from bxcommo...
PypiClean
/kodo_messenger_server-0.0.4-py3-none-any.whl/server/server_run.py
import argparse import configparser import os import sys import logging from PyQt5.QtWidgets import QApplication from PyQt5.QtCore import Qt from common.variables import * import logs.server_log_config from decos import log from database.server_db import ServerStorage from server.core import MessageProcessor from serv...
PypiClean
/pyAutoMR-0.3.0rc11-py3-none-any.whl/automr/mcpdft.py
import time import numpy as np from scipy import linalg from pyscf import mcscf, fci, ao2mo from pyscf.dft import gen_grid from pyscf.lib import logger from mrh.util.rdm import get_2CDM_from_2RDM, get_2CDMs_from_2RDMs from mrh.my_pyscf.mcpdft.mcpdft import _PDFT from mrh.my_pyscf.mcpdft.otfnal import energy_ot as get_E...
PypiClean
/imaginAIry-13.0.1-py3-none-any.whl/imaginairy/vendored/k_diffusion/sampling.py
import math import torch from scipy import integrate from torch import nn from torchdiffeq import odeint from tqdm.auto import tqdm, trange from imaginairy.log_utils import log_latent def append_zero(x): return torch.cat([x, x.new_zeros([1])]) def get_sigmas_karras(n, sigma_min, sigma_max, rho=7.0, device="cp...
PypiClean
/borsh-construct-tmp-0.1.0.tar.gz/borsh-construct-tmp-0.1.0/README.md
# borsh-construct [![Tests](https://github.com/near/borsh-construct-py/workflows/Tests/badge.svg)](https://github.com/near/borsh-construct-py/actions?workflow=Tests) [![Docs](https://github.com/near/borsh-construct-pye/workflows/Docs/badge.svg)](https://near.github.io/borsh-construct-py/) `borsh-construct` is an impl...
PypiClean
/mergedict-1.0.0-py3-none-any.whl/mergedict.py
# The MIT License # Copyright (c) 2013 Eduardo Naufel Schettino # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy,...
PypiClean
/deoxys-0.0.11.tar.gz/deoxys-0.0.11/README.rst
====== deoxys ====== .. image:: https://readthedocs.org/projects/deoxys/badge/?version=latest :target: https://deoxys.readthedocs.io/en/latest/?badge=latest :alt: Documentation Status .. image:: https://app.travis-ci.com/huynhngoc/deoxys.svg?branch=master :target: https://app.travis-ci.com/huynhng...
PypiClean
/esptool-4.6.2.tar.gz/esptool-4.6.2/espefuse/efuse/esp32h2/fields.py
import binascii import struct import time from bitstring import BitArray import esptool import reedsolo from .mem_definition import EfuseDefineBlocks, EfuseDefineFields, EfuseDefineRegisters from .. import base_fields from .. import util class EfuseBlock(base_fields.EfuseBlockBase): def len_of_burn_unit(self...
PypiClean
/alipay_sdk_python-3.6.740-py3-none-any.whl/alipay/aop/api/domain/MybankCreditSupplychainPoolSignadvanceSyncModel.py
import json from alipay.aop.api.constant.ParamConstants import * class MybankCreditSupplychainPoolSignadvanceSyncModel(object): def __init__(self): self._alipay_id = None self._channel_tag = None self._data_org_ip_role_id = None self._operate_category = None self._operate...
PypiClean
/msgraph_beta_sdk-1.0.0a9-py3-none-any.whl/msgraph/generated/groups/item/threads/item/posts/item/attachments/create_upload_session/create_upload_session_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
/nobinobi-child-0.1.4.14.tar.gz/nobinobi-child-0.1.4.14/nobinobi_child/static/vendor/bootstrap-4.3.1/site/docs/4.3/utilities/display.md
--- layout: docs title: Display property description: Quickly and responsively toggle the display value of components and more with our display utilities. Includes support for some of the more common values, as well as some extras for controlling display when printing. group: utilities toc: true --- ## How it works C...
PypiClean
/azure-mgmt-databoxedge-2.0.0b1.zip/azure-mgmt-databoxedge-2.0.0b1/azure/mgmt/databoxedge/v2020_09_01_preview/operations/_roles_operations.py
import sys from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload import urllib.parse from azure.core.exceptions import ( ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, ResourceNotModifiedError, map_error, ) from...
PypiClean
/love_course_2016_2019-2023.3.1.0-py3-none-any.whl/LoveCourse20162019/docs/mi-guo-qing-gan/蜜果情感《苏晨私教课程》:恋爱技巧强化课:5.6升高关系.md
# 蜜果情感《苏晨私教课程》:恋爱技巧强化课:5.6升高关系 群聚们,我们可能来到聊天的比较靠后面的一些环节,升高关系,群聚们请记住,一切的升高关系都在吸引之后,如果你没有吸引,并且没有准确地补夺它的窗口,那你的升高是没有任何作用的,记住普通人的升高关系是什么呢? ,先升高关系,然后在争取女生同意,比如说你能当我的女朋友吗?,这个就是普通人的拉声,升高关系没有任何作用,也没有任何意义,而且基本上都死掉了,那我们这些学完特之后,我们升高是什么样呢?。 真正的升高就是先预知同意在拉声,在升高关系,什么叫预知同意呢?就是分辨窗口嘛,对不对,那么我相信你这个如果听到这,你一定懂得如何分辨女生窗口的,但是升高关系也会有什么小动作跟大动作...
PypiClean
/great_expectations_cta-0.15.43.tar.gz/great_expectations_cta-0.15.43/great_expectations/data_context/migrator/cloud_migrator.py
from __future__ import annotations import logging from typing import TYPE_CHECKING, Dict, List, NamedTuple, Optional import requests import great_expectations.exceptions as ge_exceptions from great_expectations.core.configuration import AbstractConfig from great_expectations.core.http import create_session from grea...
PypiClean
/avalanche_lib-0.4.0-py3-none-any.whl/examples/eval_plugin.py
import argparse import torch from torch.nn import CrossEntropyLoss from torch.optim import SGD from torchvision import transforms from torchvision.datasets import MNIST from torchvision.transforms import ToTensor, RandomCrop from avalanche.benchmarks import nc_benchmark from avalanche.benchmarks.datasets.dataset_utils...
PypiClean
/affogato-1.0.0.tar.gz/affogato-1.0.0/examples/live_recognition.py
from affogato.model import Model from tkinter import * import tkinter as tk import win32gui from PIL import ImageGrab, Image import numpy as np import pickle as pk import matplotlib.pyplot as plt from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg MODEL_PATH = "model_mnist2.pickle" def predict_image_sampl...
PypiClean
/pytest-wdl-1.4.1.tar.gz/pytest-wdl-1.4.1/pytest_wdl/data_types/bam.py
from enum import Enum from functools import partial from pathlib import Path import re from typing import Iterable, Optional import subby from pytest_wdl.data_types import DataFile, assert_text_files_equal, diff_default from pytest_wdl.utils import tempdir # TODO: fall back to command line samtools (if installed) im...
PypiClean
/bf_nlu_banki-1.4-py3-none-any.whl/bf_nlu_banki/core/training/story_conflict.py
from collections import defaultdict import logging import json from typing import DefaultDict, Dict, Generator, List, NamedTuple, Optional, Text, Tuple from bf_nlu_banki.core.featurizers.tracker_featurizers import MaxHistoryTrackerFeaturizer from bf_nlu_banki.shared.core.constants import ( ACTION_LISTEN_NAME, ...
PypiClean
/coincheck_api-0.8.1.tar.gz/coincheck_api-0.8.1/coincheck_api/clients/order_api_client.py
import json from logging import getLogger from coincheck_api.clients.private_api_client import PrivateApiClient from coincheck_api.exception import CoinCheckApiException logger = getLogger(__name__) class OrderApiClient(PrivateApiClient): def __init__(self, access_key, secret): PrivateApiClient.__init...
PypiClean
/justify-0.3-py3-none-any.whl/json_justify/validators.py
import re import warnings from datetime import datetime EmailRegex = r'[^@]+@[^@]+\.[^@]+' UrlRegex = ( r'^(?:http|ftp)s?://' # http:// or https:// r'(?:(?:[A-Z0-9](?:[A-Z0-9-]{0,61}[A-Z0-9])?\.)+(?:[A-Z]{2,6}\.?|[A-Z0-9-]{2,}\.?)|' #domain... r'localhost|' #localhost... r'\d{1,3}\.\d{1,...
PypiClean
/great_expectations-0.17.14.tar.gz/great_expectations-0.17.14/great_expectations/render/renderer/page_renderer.py
import logging import os from collections import OrderedDict, defaultdict from typing import Dict, List, Tuple, Union from dateutil.parser import parse from great_expectations.core import ExpectationSuite from great_expectations.core.expectation_validation_result import ( ExpectationSuiteValidationResult, ) from ...
PypiClean
/grapetree-2.1.tar.gz/grapetree-2.1/static/js/SlickGrid/lib/jquery.simulate.js
;(function($) { $.fn.extend({ simulate: function(type, options) { return this.each(function() { var opt = $.extend({}, $.simulate.defaults, options || {}); new $.simulate(this, type, opt); }); } }); $.simulate = function(el, type, options) { this.target = el; this.options = options; if (/^drag$/.test(...
PypiClean
/inventorhatmini-0.0.1-py3-none-any.whl/examples/README.md
# Inventor HAT Mini Examples <!-- omit in toc --> - [Function Examples](#function-examples) - [Read ADCs](#read-adcs) - [Set GPIOs](#set-gpios) - [Read GPIOs](#read-gpios) - [Read Encoders](#read-encoders) - [Read Internals](#read-internals) - [LED Rainbow](#led-rainbow) - [Reset Inventor](#reset-invento...
PypiClean
/quaternions-for-python-1.1.2.tar.gz/quaternions-for-python-1.1.2/quaternions/quaternions.py
# Metadata # -------- # Created on Mon Apr 26 15:36:03 2021 # @author: Zach Chartrand <zachartrand999@gmail.com> from __future__ import annotations __all__ = ['Quaternion'] from numbers import Number as _Number from math import ( hypot as _hypot, floor as _floor, ceil as _ceil, copysign as _copysign...
PypiClean
/Grid2Op-1.9.3-py3-none-any.whl/grid2op/Space/GridObjects.py
import warnings import copy import numpy as np import grid2op from grid2op.dtypes import dt_int, dt_float, dt_bool from grid2op.Exceptions import * from grid2op.Space.space_utils import extract_from_dict, save_to_dict # TODO tests of these methods and this class in general class GridObjects: """ INTERNAL ...
PypiClean
/bpy_2.79-1.0.0-py3-none-manylinux2014_x86_64.whl/bpy/2.79/scripts/addons/io_mesh_pdb/import_pdb.py
import bpy import bmesh from math import pi, cos, sin, sqrt, ceil from mathutils import Vector, Matrix from copy import copy # ----------------------------------------------------------------------------- # Atom, stick and element data # This is a list that contains ...
PypiClean
/panda3d-1.10.13-cp38-cp38-manylinux2010_i686.whl/direct/showbase/OnScreenDebug.py
__all__ = ['OnScreenDebug'] from panda3d.core import * from direct.gui import OnscreenText from direct.directtools import DirectUtil class OnScreenDebug: enabled = ConfigVariableBool("on-screen-debug-enabled", False) def __init__(self): self.onScreenText = None self.frame = 0 self....
PypiClean
/intel_tensorflow_avx512-2.13.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/tensorflow/python/ops/linalg/linear_operator_identity.py
"""`LinearOperator` acting like the identity matrix.""" import numpy as np from tensorflow.python.framework import dtypes from tensorflow.python.framework import ops from tensorflow.python.framework import tensor_conversion from tensorflow.python.framework import tensor_shape from tensorflow.python.framework import t...
PypiClean
/python-barcode-0.15.1.tar.gz/python-barcode-0.15.1/barcode/ean.py
__docformat__ = "restructuredtext en" from functools import reduce from barcode.base import Barcode from barcode.charsets import ean as _ean from barcode.errors import IllegalCharacterError from barcode.errors import NumberOfDigitsError from barcode.errors import WrongCountryCodeError # EAN13 Specs (all sizes in mm)...
PypiClean
/ais_dom-2023.7.2-py3-none-any.whl/homeassistant/components/otbr/silabs_multiprotocol.py
from __future__ import annotations import asyncio import logging import aiohttp from python_otbr_api import tlv_parser from python_otbr_api.tlv_parser import MeshcopTLVType from homeassistant.components.homeassistant_hardware.silabs_multiprotocol_addon import ( is_multiprotocol_url, ) from homeassistant.compone...
PypiClean
/black-it-0.2.1.tar.gz/black-it-0.2.1/black_it/samplers/cors.py
from math import factorial from typing import Callable, Optional, cast import numpy as np import scipy.optimize as op from numpy.linalg import LinAlgError from numpy.typing import NDArray from black_it.samplers.base import BaseSampler from black_it.search_space import SearchSpace from black_it.utils.base import digit...
PypiClean
/server_chat-0.0.1.tar.gz/server_chat-0.0.1/server/server.py
import time from queue import Queue from socket import socket, AF_INET, SOCK_STREAM import select import json from server_db import ChatDb from jim import Jim from const import SERVER_ADDRESS, PORT, BLOCK_LEN, \ ACT_LOGIN, ACT_REG, ACT_JOIN, ACT_MSG, ACT_LEAVE, ACT_CONTACTS, ACT_MESSAGES, ACT_ADD_CONTACT, ACT_DEL_...
PypiClean
/scine_chemoton-3.0.0.tar.gz/scine_chemoton-3.0.0/scine_chemoton/gears/pathfinder.py
__copyright__ = """ This code is licensed under the 3-clause BSD license. Copyright ETH Zurich, Laboratory of Physical Chemistry, Reiher Group. See LICENSE.txt for details. """ # Standard library imports from typing import Optional, Iterator, List, Tuple, Union, Dict import networkx as nx import numpy as np import jso...
PypiClean
/wasp-launcher-0.0.2.tar.gz/wasp-launcher-0.0.2/wasp_launcher/static/angular/1.6.1/i18n/angular-locale_ar-td.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": [ "\u0635", "\u0645" ], "DAY": [ "\u0627\u0644...
PypiClean
/cdisc_rules_engine-0.6.2-py3-none-any.whl/cdisc_rules_engine/services/data_services/dummy_data_service.py
from datetime import datetime from io import IOBase from typing import List, Optional import pandas as pd from cdisc_rules_engine.dummy_models.dummy_dataset import DummyDataset from cdisc_rules_engine.exceptions.custom_exceptions import DatasetNotFoundError from cdisc_rules_engine.interfaces import CacheServiceInterf...
PypiClean
/jupyterhub-singleuser-profiles-00-0.4.2.tar.gz/jupyterhub-singleuser-profiles-00-0.4.2/jupyterhub_singleuser_profiles/ui/config/dotenv.js
const fs = require('fs'); const path = require('path'); const dotenv = require('dotenv'); const dotenvExpand = require('dotenv-expand'); const Dotenv = require('dotenv-webpack'); /** * Return tsconfig compilerOptions. * * @param {string} directory * @returns {object} */ const getTsCompilerOptions = directory => {...
PypiClean
/hgvs-1.5.4.tar.gz/hgvs-1.5.4/docs/changelog/1.1/1.1.0.rst
1.1.0 (2017-07-11) ################### Changes since 1.0.0.post3 (2017-04-11). Special Attention $$$$$$$$$$$$$$$$$$ This is the first version of hgvs that supports Python 3 (yay!). Continuous integration tests are now performed against Python 2.7, 3.5, and 3.6. Please report any issues. Bug Fixes $$$$$$$$$$ * Clo...
PypiClean
/msgraph-sdk-1.0.0a3.tar.gz/msgraph-sdk-1.0.0a3/msgraph/generated/groups/item/planner/plans/item/tasks/item/progress_task_board_format/progress_task_board_format_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
/pulumi_azure_nextgen-0.6.2a1613157620.tar.gz/pulumi_azure_nextgen-0.6.2a1613157620/pulumi_azure_nextgen/documentdb/get_mongo_db_resource_mongo_db_collection.py
import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from .. import _utilities, _tables from . import outputs __all__ = [ 'GetMongoDBResourceMongoDBCollectionResult', 'AwaitableGetMongoDBResourceMongoDBCollectionResult', 'get_mongo_db_resource_mong...
PypiClean
/tallywallet-common-0.10.0.tar.gz/tallywallet-common-0.10.0/tallywallet/common/doc/finance.rst
.. Titling ##++::==~~--''`` The time value of money ::::::::::::::::::::::: Money is a thing which can't exist without human beings. Before new money is made, someone somewhere has to generate its value. In modern Western banking, that value derives from a promise to pay. In other words, a debt of one sort or a...
PypiClean
/elements-sdk-23.7.0.tar.gz/elements-sdk-23.7.0/elements_sdk/model/media_files_lookup_request.py
import re # noqa: F401 import sys # noqa: F401 from elements_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_type, v...
PypiClean
/rockset-v2-alpha-0.1.13.tar.gz/rockset-v2-alpha-0.1.13/rockset/model/create_api_key_response.py
import re # noqa: F401 import sys # noqa: F401 from rockset.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_type, valida...
PypiClean
/qiskit-nature-0.6.2.tar.gz/qiskit-nature-0.6.2/qiskit_nature/second_q/operators/tensor_ordering.py
from __future__ import annotations from enum import Enum from typing import TYPE_CHECKING import numpy as np from qiskit_nature import QiskitNatureError import qiskit_nature.optionals as _optionals if TYPE_CHECKING: from .symmetric_two_body import SymmetricTwoBodyIntegrals if _optionals.HAS_SPARSE: # pylin...
PypiClean
/cohesity-sdk-1.1.0.tar.gz/cohesity-sdk-1.1.0/cohesity_sdk/cluster/model/common_recovery_request_paramsae1b0dbe35e54e869ddd_fd34af026fcb_hbase_params_wrapper.py
import re # noqa: F401 import sys # noqa: F401 from cohesity_sdk.cluster.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_typ...
PypiClean
/Treadmill-0.0.2.tar.gz/Treadmill-0.0.2/treadmill/sproc/cgroup.py
import errno import logging import os import subprocess import click from treadmill import cgroups from treadmill import cgutils from treadmill import cli from treadmill import subproc from treadmill import sysinfo from treadmill import utils _LOGGER = logging.getLogger(__name__) def _transfer_processes(subsyste...
PypiClean
/fake_bpy_module_3.1-20230117-py3-none-any.whl/bl_ui/properties_data_pointcloud.py
import sys import typing import bpy_types import rna_prop_ui GenericType = typing.TypeVar("GenericType") class DataButtonsPanel: bl_context = None ''' ''' bl_region_type = None ''' ''' bl_space_type = None ''' ''' def poll(self, context): ''' ''' pass class ...
PypiClean
/google_ads_megalista-18.0.2-py3-none-any.whl/google/ads/googleads/v13/services/services/google_ads_field_service/transports/grpc.py
import warnings from typing import Callable, Dict, Optional, Sequence, Tuple from google.api_core import grpc_helpers from google.api_core import gapic_v1 import google.auth # type: ignore from google.auth import credentials as ga_credentials # type: ignore from google.auth.transport.grpc import SslCredentials # ty...
PypiClean
/certora_cli_alpha_yoav_plus_minus_simplification-20230504.9.13.502435-py3-none-any.whl/certora_cli/EVMVerifier/certoraContextValidator.py
import json import logging import os import re import string import sys import itertools import time from copy import deepcopy from pathlib import Path from typing import Dict, List, Tuple, Set, Any import EVMVerifier.certoraContext as Ctx import EVMVerifier.certoraContextAttribute as Attr import EVMVerifier.certoraVa...
PypiClean
/rusty_results-1.1.1-py3-none-any.whl/rusty_results/prelude.py
from abc import abstractmethod from dataclasses import dataclass from typing import cast, TypeVar, Union, Callable, Generic, Iterator, Tuple, Dict, Any from rusty_results.exceptions import UnwrapException try: from pydantic.fields import ModelField except ImportError: # pragma: no cover ... # base inner type ...
PypiClean
/django-dojo-0.0.1.tar.gz/django-dojo-0.0.1/dojo/static/dojo/dojox/geo/openlayers/Map.js
define([ "dojo/_base/kernel", "dojo/_base/declare", "dojo/_base/lang", "dojo/_base/array", "dojo/_base/json", "dojo/dom", "dojo/dom-style", "./_base", "./TouchInteractionSupport", "./Layer", "./Patch" ], function(kernel, declare, lang, array, json, dom, style, openlayers, TouchInteractionSupport, Layer, Patc...
PypiClean