id
stringlengths
1
8
text
stringlengths
6
1.05M
dataset_id
stringclasses
1 value
/gdclone-0.5.5.tar.gz/gdclone-0.5.5/src/folderclonecli/mfcparse.py
from argparse import ArgumentParser def main(): from folderclone.multifolderclone import multifolderclone parse = ArgumentParser(description='A tool intended to copy large files from one folder to another.') parse.add_argument('--width', '-w', type=int, default=2, help='Set the width of the view option.') ...
PypiClean
/tempest-lib-1.0.0.tar.gz/tempest-lib-1.0.0/CONTRIBUTING.rst
If you would like to contribute to the development of OpenStack, you must follow the steps in this page: http://docs.openstack.org/infra/manual/developers.html Once those steps have been completed, changes to OpenStack should be submitted for review via the Gerrit tool, following the workflow documented at: ht...
PypiClean
/google-ads-21.3.0.tar.gz/google-ads-21.3.0/google/ads/googleads/v14/services/services/ad_group_feed_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
/igsr_analysis-1.1.4.tar.gz/igsr_analysis-1.1.4/VCF/VCFIntegration/Beagle.py
import os from Utils.RunProgram import RunProgram from collections import namedtuple import tempfile import re class Beagle(object): """ Class to operate on a VCF file and run Beagle and other Beagle-related operations on it """ def __init__(self, vcf, beagle_folder=None, beagle_jar=None, makeBGLCHUNK...
PypiClean
/spire.pdf-9.8.0-py3-none-manylinux1_x86_64.whl/spire/pdf/common/Int32.py
from enum import Enum from plum import dispatch from typing import TypeVar,Union,Generic,List,Tuple from spire import * if GETSPIREPRODUCT(__file__) == "PDF": from spire.pdf.common import * elif GETSPIREPRODUCT(__file__) == "XLS" : from spire.xls.common import * elif GETSPIREPRODUCT(__file__) == "DOC" : fro...
PypiClean
/meta-edc-demo-0.0.3.tar.gz/meta-edc-demo-0.0.3/meta_screening/admin/screening_part_three_admin.py
from copy import deepcopy from typing import Tuple from django.contrib import admin from django_audit_fields.admin import audit_fieldset_tuple from ..admin_site import meta_screening_admin from ..forms import ( ScreeningPartThreeForm, calculated_fields, part_one_fields, part_two_fields, ) from ..model...
PypiClean
/pht_station-0.2.2-py3-none-any.whl/station/app/api/api_v1/endpoints/docker_trains.py
from typing import List, Union from fastapi import APIRouter, Depends, HTTPException from sqlalchemy.orm import Session from station.app.api import dependencies from station.app.crud.crud_docker_trains import docker_trains from station.app.crud.crud_train_configs import docker_train_config from station.app.schemas.do...
PypiClean
/Instrumental-lib-0.7.zip/Instrumental-lib-0.7/instrumental/drivers/motion/_madcitylabs/nanodrive_midlib.py
from nicelib import load_lib, NiceLib, Sig, RetHandler, ret_return, NiceObject, ret_ignore from instrumental.errors import Error, TimeoutError class NiceNanoDriveError(Error): def __init__(self, code): for key in NiceNanodrive._defs: if NiceNanodrive._defs[key] == code: super()...
PypiClean
/apache-superset_qwerty-2.0.11.tar.gz/apache-superset_qwerty-2.0.11/superset-frontend/plugins/plugin-chart-word-cloud/CHANGELOG.md
<!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this...
PypiClean
/ovp-uploads-1.0.4.tar.gz/ovp-uploads-1.0.4/README.rst
========== OVP Uploads ========== .. image:: https://img.shields.io/codeship/468bb4d0-7850-0134-a43d-7aa8687239c4/master.svg?style=flat-square .. image:: https://img.shields.io/codecov/c/github/OpenVolunteeringPlatform/django-ovp-uploads.svg?style=flat-square :target: https://codecov.io/gh/OpenVolunteeringPlatform/d...
PypiClean
/flamingo-cli-1.3.2.tar.gz/flamingo-cli-1.3.2/flamingo/env.py
import click from flamingo.main import cli from flamingo.api import FlamingoAPI, _parse_app_name from flamingo.tools import _success, _bold @cli.group() def env(): """Manages service's environment variables.""" @env.command("get") @click.option('--application', '-a', type=str, required=True, help="Full applica...
PypiClean
/edu-airflow-1.10.5.tar.gz/edu-airflow-1.10.5/airflow/models/taskreschedule.py
"""TaskReschedule tracks rescheduled task instances.""" from sqlalchemy import Column, ForeignKeyConstraint, Index, Integer, String, asc from airflow.models.base import Base, ID_LEN from airflow.utils.db import provide_session from airflow.utils.sqlalchemy import UtcDateTime class TaskReschedule(Base): """ T...
PypiClean
/ambra-sdk-3.22.4.0.post1.tar.gz/ambra-sdk-3.22.4.0.post1/ambra_sdk/storage/image/async_image.py
from typing import Optional, Union from aiohttp import ClientResponse from box import Box from ambra_sdk.storage.image.base_image import BaseImage from ambra_sdk.storage.request import PreparedRequest from ambra_sdk.types import RequestsFileType class AsyncImage(BaseImage): """Asyn storage Image commands.""" ...
PypiClean
/scikit-surgeryimage-0.10.1.tar.gz/scikit-surgeryimage-0.10.1/sksurgeryimage/acquire/stereo_video.py
import logging import cv2 import sksurgerycore.utilities.validate as scv import sksurgerycore.utilities.validate_matrix as scvm import sksurgeryimage.acquire.video_source as vs import sksurgeryimage.processing.interlace as i LOGGER = logging.getLogger(__name__) class StereoVideoLayouts: """ Class to hold so...
PypiClean
/msgraph-sdk-1.0.0a3.tar.gz/msgraph-sdk-1.0.0a3/msgraph/generated/users/item/authentication/windows_hello_for_business_methods/item/device/registered_owners/user/count/count_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
/tha-terragrunt-0.1.8.tar.gz/tha-terragrunt-0.1.8/src/terragrunt/state.py
import os import json import objectpath import logging import hcl import hcl2 import re from . import s3 from . import utils from lark import UnexpectedToken, UnexpectedCharacters logger = logging.getLogger(__name__) class State: def __init__(self, path = None): self.path = path self.common_rsc =...
PypiClean
/msgraph_beta_sdk-1.0.0a9-py3-none-any.whl/msgraph/generated/me/calendars/item/calendar_view/item/instances/item/event_item_request_builder.py
from __future__ import annotations from dataclasses import dataclass from kiota_abstractions.get_path_parameters import get_path_parameters from kiota_abstractions.method import Method from kiota_abstractions.request_adapter import RequestAdapter from kiota_abstractions.request_information import RequestInformation fro...
PypiClean
/django-html5croppingtools-0.1.3.tar.gz/django-html5croppingtools-0.1.3/html5croppingtools/static/html5croppingtools/jcrop/README.md
Jcrop Image Cropping Plugin =========================== Jcrop is the quick and easy way to add image cropping functionality to your web application. It combines the ease-of-use of a typical jQuery plugin with a powerful cross-platform DHTML cropping engine that is faithful to familiar desktop graphics applications. C...
PypiClean
/rasa_sdk-3.8.0a1.tar.gz/rasa_sdk-3.8.0a1/rasa_sdk/knowledge_base/storage.py
import json import logging import os import random from typing import DefaultDict, Text, Callable, Dict, List, Any, Optional from collections import defaultdict from rasa_sdk import utils logger = logging.getLogger(__name__) class KnowledgeBase: def __init__(self) -> None: self.ordinal_mention_mapping =...
PypiClean
/nautobot-netbox-importer-1.4.2.tar.gz/nautobot-netbox-importer-1.4.2/nautobot_netbox_importer/diffsync/models/users.py
from datetime import datetime from typing import List, Optional, Union from django.contrib.auth import get_user_model import nautobot.users.models as users from .abstract import ArrayField, NautobotBaseModel from .references import ContentTypeRef, GroupRef, PermissionRef, UserRef class ObjectPermission(NautobotBa...
PypiClean
/pulumi_aws_native-0.75.1a1693503310.tar.gz/pulumi_aws_native-0.75.1a1693503310/pulumi_aws_native/inspector/assessment_target.py
import copy import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import _utilities __all__ = ['AssessmentTargetArgs', 'AssessmentTarget'] @pulumi.input_type class AssessmentTargetArgs: def __init__(__self__, *, assessmen...
PypiClean
/treasury_prime_client-1.13.548.tar.gz/treasury_prime_client-1.13.548/treasury_prime_client/model/get_average_account_balance_by_id200_response.py
import re # noqa: F401 import sys # noqa: F401 from treasury_prime_client.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
/eutester-0.0.10.tar.gz/eutester-0.0.10/testcases/cloud_user/ebs/san_utils/san_client.py
__author__ = 'clarkmatthew' from san_volume_info import San_Volume_Info from eutester.sshconnection import SshConnection, SshCbReturn, CommandExitCodeException, CommandTimeoutException from eutester.eulogger import Eulogger import re import string class San_Client(): ''' Basic San Client test interface t...
PypiClean
/msgraph-sdk-1.0.0a3.tar.gz/msgraph-sdk-1.0.0a3/msgraph/generated/users/item/calendar_groups/item/calendars/item/calendar_view/item/instances/item/attachments/item/attachment_item_request_builder.py
from __future__ import annotations from dataclasses import dataclass from kiota_abstractions.get_path_parameters import get_path_parameters from kiota_abstractions.method import Method from kiota_abstractions.request_adapter import RequestAdapter from kiota_abstractions.request_information import RequestInformation fro...
PypiClean
/ipython-8.15.0-py3-none-any.whl/IPython/core/magics/pylab.py
#----------------------------------------------------------------------------- # Copyright (c) 2012 The IPython Development Team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file COPYING.txt, distributed with this software. #--------------------------------------------...
PypiClean
/pywin32-306-cp37-cp37m-win32.whl/win32/lib/winioctlcon.py
import pywintypes from ntsecuritycon import FILE_READ_DATA, FILE_WRITE_DATA def CTL_CODE(DeviceType, Function, Method, Access): return (DeviceType << 16) | (Access << 14) | (Function << 2) | Method def DEVICE_TYPE_FROM_CTL_CODE(ctrlCode): return (ctrlCode & 0xFFFF0000) >> 16 FILE_DEVICE_BEEP = 0x00000001...
PypiClean
/jupyterlab_remote_contents-0.1.1.tar.gz/jupyterlab_remote_contents-0.1.1/node_modules/inquirer/node_modules/ansi-styles/readme.md
# ansi-styles [![Build Status](https://travis-ci.org/chalk/ansi-styles.svg?branch=master)](https://travis-ci.org/chalk/ansi-styles) > [ANSI escape codes](https://en.wikipedia.org/wiki/ANSI_escape_code#Colors_and_Styles) for styling strings in the terminal You probably want the higher-level [chalk](https://github.com/...
PypiClean
/msgraph_beta_sdk-1.0.0a9-py3-none-any.whl/msgraph/generated/device_management/comanaged_devices/item/log_collection_requests/item/device_log_collection_response_item_request_builder.py
from __future__ import annotations from dataclasses import dataclass from kiota_abstractions.get_path_parameters import get_path_parameters from kiota_abstractions.method import Method from kiota_abstractions.request_adapter import RequestAdapter from kiota_abstractions.request_information import RequestInformation fro...
PypiClean
/footymap-0.0.1.tar.gz/footymap-0.0.1/README.md
# footymap [![image](https://img.shields.io/pypi/v/footymap.svg)](https://pypi.python.org/pypi/footymap) [![image](https://img.shields.io/conda/vn/conda-forge/footymap.svg)](https://anaconda.org/conda-forge/footymap) **Python Boilerplate contains all the boilerplate you need to create a Python package.** - Free...
PypiClean
/citrination-client-6.5.1.tar.gz/citrination-client-6.5.1/citrination_client/search/pif/query/core/reference_query.py
from citrination_client.search.pif.query.core.base_object_query import BaseObjectQuery from citrination_client.search.pif.query.core.display_item_query import DisplayItemQuery from citrination_client.search.pif.query.core.field_query import FieldQuery from citrination_client.search.pif.query.core.name_query import Name...
PypiClean
/frozendate-0.1.4.tar.gz/frozendate-0.1.4/frozendate.py
from collections import namedtuple from contextlib import contextmanager from datetime import date as real_date, datetime as real_datetime, timedelta import re import sys import time from mock import patch as mockpatch __version__ = '0.1.4' _patch_contexts = [] contextinfo = namedtuple('contextinfo', 'relnow module...
PypiClean
/sherpa_client-0.12.7-py3-none-any.whl/sherpa_client/api/gazetteers/synchronize_gazetteer.py
from http import HTTPStatus from typing import Any, Dict, Optional, Union, cast import httpx from ... import errors from ...client import Client from ...models.sherpa_job_bean import SherpaJobBean from ...types import UNSET, Response, Unset def _get_kwargs( project_name: str, name: str, *, client: C...
PypiClean
/snimar_pycsw-2.1.2.tar.gz/snimar_pycsw-2.1.2/pycsw/server.py
import logging import os from six.moves.urllib.parse import parse_qsl from six.moves.urllib.parse import splitquery from six.moves.urllib.parse import urlparse from six import StringIO from six.moves.configparser import SafeConfigParser import sys from time import time import wsgiref.util from pycsw.core.etree import...
PypiClean
/FAIR-Cells-1.0.20.tar.gz/FAIR-Cells-1.0.20/fair-cells/helper/notebook_runner.py
import json from typing import List from queue import Empty from jupyter_client import manager as kernel_manager, kernelspec import logging logger = logging.getLogger() logger.setLevel(logging.DEBUG) # create console handler and set level to debug ch = logging.StreamHandler() ch.setLevel(logging.DEBUG) # create f...
PypiClean
/napalm-gaia-0.0.15.tar.gz/napalm-gaia-0.0.15/napalm_gaiaos/gaiaos.py
import logging import statistics import time import re import socket import ipaddress import napalm from napalm.base.base import NetworkDriver from napalm.base.exceptions import ConnectionException, SessionLockedException,\ MergeConfigException, ReplaceConfigException,\ ...
PypiClean
/zoe-analytics-0.8.1b.tar.gz/zoe-analytics-0.8.1b/zoe_web/api/__init__.py
from io import BytesIO from zipfile import is_zipfile from flask import Blueprint, jsonify, request, session, abort, send_file from zoe_client import ZoeClient from common.configuration import ipcconf api_bp = Blueprint('api', __name__) def _api_check_user(zoe_client): if 'user_id' not in session: retu...
PypiClean
/mis_modulos-0.1.tar.gz/mis_modulos-0.1/keras/layers/preprocessing/hashed_crossing.py
import tensorflow.compat.v2 as tf from keras import backend from keras.engine import base_layer from keras.engine import base_preprocessing_layer from keras.layers.preprocessing import preprocessing_utils as utils from keras.utils import layer_utils # isort: off from tensorflow.python.util.tf_export import keras_expo...
PypiClean
/iocbio.kinetics-1.5.0.tar.gz/iocbio.kinetics-1.5.0/iocbio/kinetics/calc/generic.py
from PySide6.QtCore import Signal, QObject class XYData(object): """Class for representing x,y dataset Can be used with numerical arrays to carry experimental or calculated datasets, or any other types. In addition to numerical arrays, it is used to transfer axis names and units. Attributes ...
PypiClean
/cdktf-cdktf-provider-google_beta-9.0.1.tar.gz/cdktf-cdktf-provider-google_beta-9.0.1/src/cdktf_cdktf_provider_google_beta/google_api_gateway_api_config_iam_member/__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 GoogleApiGatewayApiConfigIamMember( _cdktf_9a9027e...
PypiClean
/mindspore_ascend-1.10.0-cp39-none-any.whl/mindspore/_akg/akg/topi/nn/bitserial_dense.py
"""Bitserial Dense operator.""" from __future__ import absolute_import import tvm from tvm import autotvm from topi.util import get_const_tuple from .bitserial_util import bitpack, binary_op_multiplier @tvm.target.generic_func def bitserial_dense(data, weight, data_bits, weight_bits, pack_dtype='uint32', ...
PypiClean
/django-correos-chile-rest-1.1.4.tar.gz/django-correos-chile-rest-1.1.4/correos_chile/connector.py
import json import logging import requests from json.decoder import JSONDecodeError logger = logging.getLogger(__name__) class ConnectorException(Exception): def __init__(self, message, description, code): self.code = code self.message = message self.description = description supe...
PypiClean
/yarl-1.6.2.tar.gz/yarl-1.6.2/docs/index.rst
.. yarl documentation master file, created by sphinx-quickstart on Mon Aug 29 19:55:36 2016. You can adapt this file completely to your liking, but it should at least contain the root `toctree` directive. yarl ==== The module provides handy :class:`~yarl.URL` class for URL parsing and changing. Introduction...
PypiClean
/anomalyHTM-1.0.0.tar.gz/anomalyHTM-1.0.0/src/nupic/swarming/ModelRunner.py
import json import time import logging import os import sys import shutil import StringIO import threading import traceback from collections import deque from nupic.swarming.hypersearch import regression from nupic.swarming.hypersearch.error_codes import ErrorCodes from nupic.database.client_jobs_dao import ClientJo...
PypiClean
/drake-1.20.0-cp39-cp39-manylinux_2_31_x86_64.whl/pydrake/forwarddiff.py
import numpy as np from .autodiffutils import AutoDiffXd def derivative(function, x): """Compute the derivative of the function evaluated at the scalar input x using Eigen's automatic differentiation. The function should be scalar-input and scalar-output. """ x_ad = AutoDiffXd(value=x, size=1, o...
PypiClean
/mediapipe-rpi4-0.8.8.tar.gz/mediapipe-rpi4-0.8.8/mediapipe/calculators/util/packet_latency_calculator_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 # @@protoc_in...
PypiClean
/django_bpp-1.0.9-py3-none-any.whl/django_bpp/staticroot/statuses/README.md
# Statuses [![NPM Version][npm-image]][npm-url] [![NPM Downloads][downloads-image]][downloads-url] [![Node.js Version][node-version-image]][node-version-url] [![Build Status][travis-image]][travis-url] [![Test Coverage][coveralls-image]][coveralls-url] HTTP status utility for node. This module provides a list of sta...
PypiClean
/django-duat-1.0.tar.gz/django-duat-1.0/duat/views.py
import os import re import tempfile import json import logging from subprocess import call from django.http import HttpResponse, HttpResponseServerError from django.template import RequestContext from django.shortcuts import render_to_response from django.core.urlresolvers import reverse from django.conf import setti...
PypiClean
/titus_isolate-20190718.0.0-py3-none-any.whl/titus_isolate/event/event_manager.py
import json from queue import Queue, Empty from threading import Thread, Lock import schedule from titus_isolate import log from titus_isolate.config.constants import REBALANCE_FREQUENCY_KEY, DEFAULT_REBALANCE_FREQUENCY, \ RECONCILE_FREQUENCY_KEY, DEFAULT_RECONCILE_FREQUENCY from titus_isolate.event.constants imp...
PypiClean
/odoo_addon_l10n_br_base-16.0.1.2.0-py3-none-any.whl/odoo/addons/l10n_br_base/models/res_partner_bank.py
from odoo import _, api, fields, models from odoo.exceptions import UserError BANK_ACCOUNT_TYPE = [ ("01", _("Conta corrente individual")), ("02", _("Conta poupança individual")), ("03", _("Conta depósito judicial/Depósito em consignação individual")), ("11", _("Conta corrente conjunta")), ("12", ...
PypiClean
/paddlesci-1.1.0-py3-none-any.whl/ppsci/data/dataset/mat_dataset.py
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the...
PypiClean
/Recursive_Symmetry_Aware_Materials_Microstructure_Explorer-0.0.17.tar.gz/Recursive_Symmetry_Aware_Materials_Microstructure_Explorer-0.0.17/src/Recursive_Symmetry_Aware_Materials_Microstructure_Explorer/viz/viz.py
import matplotlib.pyplot as plt import numpy as np from matplotlib import offsetbox from matplotlib.offsetbox import OffsetImage, AnnotationBbox import random def imscatter(x, y, images, number_images_shown, ax=None, zoom=1.0): """ Function that plots the a 2d scatter plot with superimposed images :param...
PypiClean
/spectral-libraries-1.1.3.tar.gz/spectral-libraries-1.1.3/spectral_libraries/qps/externals/pyqtgraph/graphicsItems/DateAxisItem.py
import sys import numpy as np import time from datetime import datetime, timedelta from .AxisItem import AxisItem from ..pgcollections import OrderedDict __all__ = ['DateAxisItem'] MS_SPACING = 1/1000.0 SECOND_SPACING = 1 MINUTE_SPACING = 60 HOUR_SPACING = 3600 DAY_SPACING = 24 * HOUR_SPACING WEEK_SPACING = 7 * DAY_...
PypiClean
/boot-synth-1.2.0.tar.gz/boot-synth-1.2.0/synth/projects_master/nginx_router/frontend/react/node_modules/node-notifier/node_modules/semver/README.md
semver(1) -- The semantic versioner for npm =========================================== ## Install ```bash npm install --save semver ```` ## Usage As a node module: ```js const semver = require('semver') semver.valid('1.2.3') // '1.2.3' semver.valid('a.b.c') // null semver.clean(' =v1.2.3 ') // '1.2.3' semver....
PypiClean
/eutester-0.0.10.tar.gz/eutester-0.0.10/testcases/cloud_admin/upgrade_euca.py
import re from testcases.cloud_admin.install_euca import Install class Upgrade(Install): def __init__(self): super(Upgrade, self).__init__(download_creds=True) self.clc_service = self.tester.service_manager.get_enabled_clc() self.clc = self.clc_service.machine self.old_version = sel...
PypiClean
/mwlib-0.16.2.zip/mwlib-0.16.2/docs/metabook.rst
Metabooks ============== A Metabook describes a collection of articles and chapters together with some metadata like title or version. The actual data (e.g. the wikitext of articles) is not contained in the Metabook. The Metabook is a simple dictionary containing lists, integers, strings (which are Unicode-safe; they...
PypiClean
/livecellx-0.0.2.tar.gz/livecellx-0.0.2/notebooks/scripts/mmdetection_classify/tools/data/omnisource/README_zh-CN.md
# 准备 OmniSource ## 简介 <!-- [DATASET] --> ```BibTeX @article{duan2020omni, title={Omni-sourced Webly-supervised Learning for Video Recognition}, author={Duan, Haodong and Zhao, Yue and Xiong, Yuanjun and Liu, Wentao and Lin, Dahua}, journal={arXiv preprint arXiv:2003.13042}, year={2020} } ``` MMAction2 中发布了 ...
PypiClean
/catalyst-rl-20.3.tar.gz/catalyst-rl-20.3/catalyst_rl/rl/offpolicy/algorithms/ddpg.py
import torch from catalyst_rl.rl import utils from .actor_critic import OffpolicyActorCritic class DDPG(OffpolicyActorCritic): """ Swiss Army knife DDPG algorithm. """ def _init(self): # value distribution approximation critic_distribution = self.critic.distribution self._loss...
PypiClean
/SWX-API-Python-SDK-0.16.tar.gz/SWX-API-Python-SDK-0.16/swx_sdk/model/property_cpu_response.py
import re # noqa: F401 import sys # noqa: F401 from swx_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, valida...
PypiClean
/modred-2.1.0.tar.gz/modred-2.1.0/doc/installation.rst
============================= Installation and requirements ============================= Mandatory: 1. Python 2 (>2.6, tested for 2.7) or Python 3 (>=3.3), http://python.org. 2. Relatively new version of Numpy (>1.6, tested for 1.10), http://numpy.scipy.org. Optional: 1. For parallel execution, an MPI implemen...
PypiClean
/PrimeBotFramework-1.0.43-py3-none-any.whl/PrimeBot/IntegracaoSendGrid/__init__.py
import os import base64 from sendgrid import SendGridAPIClient from sendgrid.helpers.mail import ( Mail, Attachment, FileContent, FileName, FileType, Disposition) class IntegracaoSendGrid: def __init__(self, api_key: str = '', sender: str = ''): """ Metodo construtor da classe :param api_key...
PypiClean
/napari-apr-viewer-1.0.0.tar.gz/napari-apr-viewer-1.0.0/src/napari_apr_viewer/_reader.py
import os.path import pyapr from typing import List, Any, Optional, Union, Tuple, Dict from napari.types import ReaderFunction from napari_plugin_engine import napari_hook_implementation @napari_hook_implementation def napari_get_reader(path: Union[str, List[str]]) -> Optional[ReaderFunction]: """ Return a fu...
PypiClean
/pensando_dss-1.62.2-py3-none-any.whl/pensando_dss/psm/model/monitoring_fwlog_policy_list.py
import re # noqa: F401 import sys # noqa: F401 import nulltype # noqa: F401 from pensando_dss.psm.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, ModelSimple, cached_property, change_keys_js_to_python, convert_js_args_to_python_args, date, datetime, ...
PypiClean
/deriva-chisel-0.3.0.tar.gz/deriva-chisel-0.3.0/deriva/chisel/util/describe.py
from collections import defaultdict def describe(obj): """Returns a text (markdown) description. :param obj: a catalog model object :return: a Description object that can be dumped to the console for text or markdown display """ if hasattr(obj, 'schemas'): return describe_catalog(obj) ...
PypiClean
/sdss-opscore-3.0.4.tar.gz/sdss-opscore-3.0.4/python/opscore/RO/Astro/llv/etrms.py
__all__ = ["etrms"] import math import numpy import opscore.RO.PhysConst def etrms(bep): """ Compute the e-terms (elliptic component of annual aberration) vector (double precision) Inputs: - bep Besselian epoch Returns: - etrms the e-terms (dx, dy, dz) as a numpy.array. Co...
PypiClean
/pydbots-1.0.0-py3-none-any.whl/discord/flags.py
from __future__ import annotations from typing import Any, Callable, ClassVar, Dict, Generic, Iterator, List, Optional, Tuple, Type, TypeVar, overload from .enums import UserFlags __all__ = ( 'SystemChannelFlags', 'MessageFlags', 'PublicUserFlags', 'Intents', 'MemberCacheFlags', 'ApplicationF...
PypiClean
/noc-0.7(3).tar.gz/noc-0.7(3)/contrib/src/Pygments/pygments/styles/monokai.py
from pygments.style import Style from pygments.token import Keyword, Name, Comment, String, Error, Text, \ Number, Operator, Generic, Whitespace, Punctuation, Other, Literal class MonokaiStyle(Style): """ This style mimics the Monokai color scheme. """ background_color = "#272822" highlight_c...
PypiClean
/pulumi_aws_native-0.75.1a1693503310.tar.gz/pulumi_aws_native-0.75.1a1693503310/pulumi_aws_native/customerprofiles/integration.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__ = ['IntegrationArgs', 'Integration'] @pulumi.input_type class IntegrationArgs: ...
PypiClean
/gamification-engine-0.4.0.tar.gz/gamification-engine-0.4.0/gengine/app/jsscripts/node_modules/redux-devtools-core/src/utils/index.js
import getParams from 'get-params'; import jsan from 'jsan'; import nanoid from 'nanoid/non-secure'; import seralizeImmutable from 'remotedev-serialize/immutable/serialize'; export function generateId(id) { return id || nanoid(7); } function flatTree(obj, namespace = '') { let functions = []; Object.keys(obj).f...
PypiClean
/PeekabooAV-2.1.tar.gz/PeekabooAV-2.1/peekaboo/sample.py
import datetime import enum import os import hashlib import json import random import re import shutil import string import logging import tempfile # python 3's open with encoding parameter and implicit usage of the system # locale-specified encoding from builtins import open from peekaboo.ruleset import Result log...
PypiClean
/azure-quantum-0.25.222596b1.tar.gz/azure-quantum-0.25.222596b1/azure/quantum/aio/target/target.py
import abc from typing import Any, Dict from azure.quantum.aio.job.job import Job from azure.quantum.target import Target as SyncTarget from azure.quantum.aio.workspace import Workspace class Target(SyncTarget, abc.ABC): """Azure Quantum Target.""" workspace: Workspace async def submit( self, ...
PypiClean
/hangul.translit-0.1.1.tar.gz/hangul.translit-0.1.1/hangul/translit.py
ur""" Date: 2010-9-16 Transliterate Hangul(Korean) to alphabet according to Revised Romanization of Korean(2000) Usage: >>> from hangul import translit >>> translit.test() 한국 --> han-guk 한국어 --> han-gugeo 저작권 --> cheojakkweon 저작 ...
PypiClean
/tensorflow_fedora28-1.9.0rc01-cp27-cp27mu-manylinux1_x86_64.whl/tensorflow_fedora28-1.9.0rc0.data/purelib/tensorflow/contrib/rnn/python/ops/rnn.py
"""RNN helpers for TensorFlow models.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function from tensorflow.python.ops import array_ops from tensorflow.python.ops import rnn from tensorflow.python.ops import variable_scope as vs def stack_bidirectional_rnn(ce...
PypiClean
/mpy-repl-tool-0.13.tar.gz/mpy-repl-tool-0.13/there/os_error_list.py
os_error_mapping = { 1: ('EPERM', 'Operation not permitted'), 2: ('ENOENT', 'No such file or directory'), 3: ('ESRCH', 'No such process'), 4: ('EINTR', 'Interrupted system call'), 5: ('EIO', 'I/O error'), 6: ('ENXIO', 'No such device or address'), 7: ('E2BIG', 'Argument list too long'), ...
PypiClean
/azure-mgmt-appplatform-8.0.0.zip/azure-mgmt-appplatform-8.0.0/azure/mgmt/appplatform/v2022_05_01_preview/aio/operations/_certificates_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
/cctbx_base-2020.8-0_py38h167b89d-cp38-cp38m-manylinux2010_x86_64.whl/cctbx/omz/cod_select_and_pickle.py
from __future__ import absolute_import, division, print_function import traceback import sys, os op = os.path from cctbx.omz.cif_refine import extract_from_cif_files class cod_data(extract_from_cif_files): __slots__ = [ "cod_id"] + extract_from_cif_files.__slots__ def __init__(O, cod_id, hkl_cif_pair): ...
PypiClean
/gargoyle-yplan-2.1.1.tar.gz/gargoyle-yplan-2.1.1/gargoyle/builtins.py
from __future__ import absolute_import, division, print_function, unicode_literals import socket import struct from datetime import datetime from django.conf import settings from django.contrib.auth import get_user_model from django.contrib.auth.models import AnonymousUser from django.core.validators import validate_...
PypiClean
/ApeMan-0.1.1.tar.gz/ApeMan-0.1.1/apeman/__34__.py
from __future__ import absolute_import from __future__ import division from __future__ import print_function # Constants DEBUG = True # System import os import sys import builtins # Types import types # Debugging if DEBUG : from pdb import set_trace as db # Inspection import inspect # Iteration from itertools import z...
PypiClean
/gias3.applications-3.0.0-py3-none-any.whl/gias3/applications/giashmfinp2surf.py
import argparse import logging import os import sys import numpy as np from scipy.spatial import cKDTree from gias3.common import transform3D from gias3.fieldwork.field import geometric_field from gias3.fieldwork.field import geometric_field_fitter as GFF from gias3.fieldwork.field.tools import fitting_tools from gia...
PypiClean
/youtube_dl2-2.0.tar.gz/youtube_dl2-2.0/youtube_dl/extractor/meta.py
from __future__ import unicode_literals from .common import InfoExtractor from .pladform import PladformIE from ..utils import ( unescapeHTML, int_or_none, ExtractorError, ) class METAIE(InfoExtractor): _VALID_URL = r'https?://video\.meta\.ua/(?:iframe/)?(?P<id>[0-9]+)' _TESTS = [{ 'url':...
PypiClean
/v3/model/login_policy_option.py
import pprint import re import six class LoginPolicyOption: """ 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 is json key in d...
PypiClean
/kiwitcms-12.4.tar.gz/kiwitcms-12.4/tcms/node_modules/es5-ext/_postinstall.js
// Broadcasts "Call for peace" message when package is installed in Russia, otherwise no-op "use strict"; try { if ( [ "Asia/Anadyr", "Asia/Barnaul", "Asia/Chita", "Asia/Irkutsk", "Asia/Kamchatka", "Asia/Khandyga", "Asia/Krasnoyarsk", "Asia/Magadan", "Asia/Novokuznetsk", "Asia/Novosibirsk", "Asia/Omsk", ...
PypiClean
/pyperf-2.6.0.tar.gz/pyperf-2.6.0/doc/cli.rst
pyperf commands =============== Commands: * :ref:`pyperf show <show_cmd>` * :ref:`pyperf compare_to <compare_to_cmd>` * :ref:`pyperf stats <stats_cmd>` * :ref:`pyperf check <check_cmd>` * :ref:`pyperf dump <dump_cmd>` * :ref:`pyperf hist <hist_cmd>` * :ref:`pyperf metadata <metadata_cmd>` * :ref:`pyperf timeit <timei...
PypiClean
/ignition_api-8.1.31.post1.tar.gz/ignition_api-8.1.31.post1/src/com/inductiveautomation/ignition/common/util/__init__.py
from __future__ import print_function __all__ = ["LoggerEx", "Platform", "Timeline", "TimelineList"] from typing import Any, Iterable, List, Optional, Union from dev.thecesrom.helper.types import AnyStr from java.io import Closeable from java.lang import AutoCloseable, Class, Comparable, Enum, Object, Throwable from...
PypiClean
/nm_transformers_nightly-1.6.0.20230829-py3-none-any.whl/transformers/models/rag/configuration_rag.py
""" RAG model configuration""" import copy from ...configuration_utils import PretrainedConfig from ...utils import add_start_docstrings RAG_CONFIG_DOC = r""" [`RagConfig`] stores the configuration of a *RagModel*. Configuration objects inherit from [`PretrainedConfig`] and can be used to control the model ...
PypiClean
/mlflow-stonewise-1.30.1.tar.gz/mlflow-stonewise-1.30.1/docs/source/pipelines.rst
.. _pipelines: =============================== MLflow Pipelines (experimental) =============================== MLflow Pipelines is a framework that enables data scientists to quickly develop high-quality models and deploy them to production. Compared to ad-hoc ML workflows, MLflow Pipelines offers several major benef...
PypiClean
/waper-0.0.1.tar.gz/waper-0.0.1/CONTRIBUTING.md
# Contributing Thank you for considering reading this guide! Contributions are welcome :) * [Types of Contributions](#Types-of-Contributions) * [Contributor Setup](#Setting-Up-the-Code-for-Local-Development) * [Contributor Guidelines](#Contributor-Guidelines) * [Contributor Testing](#Testing-with-tox) * [Core Commit...
PypiClean
/cleverbot.py-2.5.0.tar.gz/cleverbot.py-2.5.0/cleverbot/__main__.py
from __future__ import absolute_import, print_function import argparse import getpass import inspect import os import pickle import sys from distutils.version import StrictVersion import cleverbot from cleverbot.migrations import migratables from cleverbot.utils import get_migrations class KwargsParser(argparse.Arg...
PypiClean
/js.ckeditor-3.6.6.tar.gz/js.ckeditor-3.6.6/js/ckeditor/resources/_source/lang/th.js
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ /** * @fileOverview Defines the {@link CKEDITOR.lang} object, for the * Thai language. */ /**#@+ @type String @example */ /** * Contains the dictionary of langua...
PypiClean
/SCBert-0.2.tar.gz/SCBert-0.2/README.md
# Sentence Clustering with BERT (SCB) Sentence Clustering with BERT project which aim to use state-of-the-art BERT models to compute vectors for sentences. A few tools are also implemented to explore those vectors and how sentences are related to each others in the latent space. ### Demonstration - **Create vector...
PypiClean
/django-registry-0.3.11.tar.gz/django-registry-0.3.11/hypermap/search_api/static/swagger/lang/en.js
'use strict'; /* jshint quotmark: double */ window.SwaggerTranslator.learn({ "Warning: Deprecated":"Warning: Deprecated", "Implementation Notes":"Implementation Notes", "Response Class":"Response Class", "Status":"Status", "Parameters":"Parameters", "Parameter":"Parameter", "Value":"Value",...
PypiClean
/django-sb-admin-5.5.1.1.tar.gz/django-sb-admin-5.5.1.1/django_sb_admin/static/vendor/bootstrap/js/bootstrap.bundle.min.js
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("jquery")):"function"==typeof define&&define.amd?define(["exports","jquery"],e):e((t=t||self).bootstrap={},t.jQuery)}(this,function(t,p){"use strict";function i(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1...
PypiClean
/django-oscar-3.2.1rc2.tar.gz/django-oscar-3.2.1rc2/src/oscar/apps/dashboard/apps.py
from django.apps import apps from django.urls import include, path from django.utils.translation import gettext_lazy as _ from oscar.core.application import OscarDashboardConfig from oscar.core.loading import get_class class DashboardConfig(OscarDashboardConfig): label = "dashboard" name = "oscar.apps.dashbo...
PypiClean
/tf_object_detection-0.0.3.tar.gz/tf_object_detection-0.0.3/tf_object_detection/research/object_detection/core/post_processing.py
"""Post-processing operations on detected boxes.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function import collections import numpy as np from six.moves import range from six.moves import zip import tensorflow as tf from object_detection.core import box_li...
PypiClean
/arc_vector_python-1.3.2-py3-none-any.whl/arc_vector_client/local/distances.py
from enum import Enum import numpy as np from arc_vector_client.http import models class DistanceOrder(str, Enum): BIGGER_IS_BETTER = "bigger_is_better" SMALLER_IS_BETTER = "smaller_is_better" def distance_to_order(distance: models.Distance) -> DistanceOrder: """ Convert distance to order Args...
PypiClean
/ixnetwork_restpy-1.1.10.tar.gz/ixnetwork_restpy-1.1.10/ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocols/instructionlearnedinfo_80ca33d20320339607273c582ce4f442.py
import sys from ixnetwork_restpy.base import Base from ixnetwork_restpy.files import Files if sys.version_info >= (3, 5): from typing import List, Any, Union class InstructionLearnedInfo(Base): """NOT DEFINED The InstructionLearnedInfo class encapsulates a list of instructionLearnedInfo resources that ar...
PypiClean
/plone.patternslib-1.3.0-py3-none-any.whl/plone/patternslib/static/components/fullcalendar/lang/hu.js
(function(e){"function"==typeof define&&define.amd?define(["jquery","moment"],e):e(jQuery,moment)})(function(e,t){function n(e,t,n,a){var r=e;switch(n){case"s":return a||t?"néhány másodperc":"néhány másodperce";case"m":return"egy"+(a||t?" perc":" perce");case"mm":return r+(a||t?" perc":" perce");case"h":return"egy"+(a|...
PypiClean
/vioneta-2023.7.3.tar.gz/vioneta-2023.7.3/homeassistant/components/fully_kiosk/binary_sensor.py
from __future__ import annotations from homeassistant.components.binary_sensor import ( BinarySensorDeviceClass, BinarySensorEntity, BinarySensorEntityDescription, ) from homeassistant.config_entries import ConfigEntry from homeassistant.const import EntityCategory from homeassistant.core import HomeAssist...
PypiClean
/hw1mainfunction-0.0.1.tar.gz/hw1mainfunction-0.0.1/files for main function library/__init__.py
# Import required libraries import datetime import time from polygon import RESTClient from sqlalchemy import create_engine from sqlalchemy import text import pandas as pd from math import sqrt from math import isnan import matplotlib.pyplot as plt from numpy import mean from numpy import std from math import floor ...
PypiClean
/kelvin_sdk_datatype-7.13.2-py3-none-any.whl/kelvin/sdk/datatype/utils.py
from __future__ import annotations import os import re from contextlib import contextmanager from datetime import datetime, timezone from pathlib import Path from shutil import rmtree from typing import Any, Dict, Iterator, Mapping, Optional, Tuple NORMAL_RE = re.compile(r"[^\w]+") CAMEL_RE = re.compile(r"(^[a-z]|_+...
PypiClean
/binance_reporting-0.2.0.2-py3-none-any.whl/binance_reporting/downloader.py
import os # set home directory of current user depending on OS import sys # get arguments from calling the script import time import pandas as pd from binance.client import Client import logging from finta import TA # for technical indicators try: from binance_reporting import help...
PypiClean