id stringlengths 1 8 | text stringlengths 6 1.05M | dataset_id stringclasses 1
value |
|---|---|---|
/PerAssist-13-py3-none-any.whl/build/lib/build/lib/PersonalAssistant/main.py | import os
from PersonalAssistant.addressbook import AddressBook
from PersonalAssistant.record import Record
from PersonalAssistant.messages import messages
from PersonalAssistant.note import Note
from PersonalAssistant.notebook import NoteBook
from colorama import Fore, Style
from PersonalAssistant.murzilka import comm... | PypiClean |
/relaxed_poetry_core-0.4.1-py3-none-any.whl/poetry/core/_vendor/pyrsistent/_checked_types.py | from ._compat import Iterable
import six
from pyrsistent._compat import Enum, string_types
from pyrsistent._pmap import PMap, pmap
from pyrsistent._pset import PSet, pset
from pyrsistent._pvector import PythonPVector, python_pvector
class CheckedType(object):
"""
Marker class to enable creation and serializa... | PypiClean |
/django-oauth-toolkit-fork-0.11.0.tar.gz/django-oauth-toolkit-fork-0.11.0/oauth2_provider/views/mixins.py | from __future__ import unicode_literals
import logging
from django.core.exceptions import ImproperlyConfigured
from django.http import HttpResponseForbidden
from ..exceptions import FatalClientError
from ..settings import oauth2_settings
log = logging.getLogger("oauth2_provider")
SAFE_HTTP_METHODS = ['GET', 'HEAD... | PypiClean |
/abracadabra-0.0.7-py3-none-any.whl/abra/vis.py | from scipy import stats
from matplotlib import pyplot as plt
from pandas import DataFrame
import numpy as np
from abra.utils import dict_to_object
from abra.stats import Samples
NPTS = 100
LABEL_Y_OFFSET_FACTOR = 30.
COLORS = dict_to_object(
{
"blue": "#4257B2",
"light_blue": "#A1C4FD",
"cy... | PypiClean |
/alice-core-1.6.4.tar.gz/alice-core-1.6.4/docs/setup_config.md | ## Setup your team specific configurations
While running alice, you need to pass your team specific configurations to help alice take better decisions.
**Steps:**
1. **Download** the sample[config](https://github.com/moengage/alice/blob/master/docs/samples/config.yaml) file
click on `raw` -> save file (ctrl/cmd+s) -... | PypiClean |
/azure-schemaregistry-1.3.0b2.zip/azure-schemaregistry-1.3.0b2/azure/schemaregistry/_common/_response_handlers.py | from typing import (
cast,
Tuple,
Mapping,
Dict,
TYPE_CHECKING,
Iterator,
AsyncIterator,
Union,
)
from ._constants import SchemaFormat
if TYPE_CHECKING:
from azure.core.pipeline import PipelineResponse
from azure.core.rest import HttpResponse, AsyncHttpResponse
def _parse_sche... | PypiClean |
/pycraters-0.0.4.tar.gz/pycraters-0.0.4/helpers.py | import os
import sys
import copy
import uncertainties.umath # math ### ilinov
import shelve
import numpy as np
import uncertainties.unumpy as unp ### ilinov
import matplotlib.pyplot as plt
import lmfit as lmf
import pycraters.IO as io # allows data extraction from files.
import pycraters.fits.NestedLmfit as fitte... | PypiClean |
/darwin_ml-0.0.3-py3-none-any.whl/darwin_ml/middleware/procedures/models/_torch.py | from addict import Dict
from loguru import logger
from typing import Optional
from sklearn.base import BaseEstimator
from sklearn.datasets import make_friedman2
from sklearn.gaussian_process import GaussianProcessRegressor
from sklearn.gaussian_process.kernels import DotProduct, WhiteKernel
from jamboree.middleware.pr... | PypiClean |
/suning-sdk-1.0.0.tar.gz/suning-sdk-1.0.0/suning/api/item/__init__.py | from suning.api.item.BookBrandQueryRequest import BookBrandQueryRequest
from suning.api.item.BookItemAddRequest import BookItemAddRequest
from suning.api.item.BookItemcontentsAddRequest import BookItemcontentsAddRequest
from suning.api.item.BookItemcontentsModifyRequest import BookItemcontentsModifyRequest
from suning.... | PypiClean |
/py-pure-client-1.38.0.tar.gz/py-pure-client-1.38.0/pypureclient/flasharray/FA_2_16/models/policy_member.py | import pprint
import re
import six
import typing
from ....properties import Property
if typing.TYPE_CHECKING:
from pypureclient.flasharray.FA_2_16 import models
class PolicyMember(object):
"""
Attributes:
swagger_types (dict): The key is attribute name
and the value is a... | PypiClean |
/alipay-sdk-python-pycryptodome-3.3.202.tar.gz/alipay-sdk-python-pycryptodome-3.3.202/alipay/aop/api/request/AntMerchantExpandIndirectCreateRequest.py | import json
from alipay.aop.api.FileItem import FileItem
from alipay.aop.api.constant.ParamConstants import *
from alipay.aop.api.domain.AntMerchantExpandIndirectCreateModel import AntMerchantExpandIndirectCreateModel
class AntMerchantExpandIndirectCreateRequest(object):
def __init__(self, biz_model=None):
... | PypiClean |
/pyIEM-1.16.0.tar.gz/pyIEM-1.16.0/src/pyiem/models/shef.py | # pylint: disable=too-few-public-methods
# stdlib
from datetime import datetime, timedelta
from metpy.units import units
# third party
from pydantic import BaseModel, Field
# Local
from pyiem.reference import (
shef_english_units,
shef_send_codes,
shef_standard_units,
shef_table7,
)
from pyiem.util ... | PypiClean |
/pymongo_schema-0.4.1-py3-none-any.whl/pymongo_schema/filter.py | from copy import deepcopy
import logging
logger = logging.getLogger(__name__)
# Schema of fields to include is based on keys of a dict.
# PRESENT_VALUE is used as the value for those keys to keep
PRESENT_VALUE = 'present'
def filter_mongo_schema_namespaces(mongo_schema, namespaces_dict):
""" Filter the schema w... | PypiClean |
/UFL-2017.1.0.tar.gz/UFL-2017.1.0/ufl/algorithms/formsplitter.py | "Extract part of a form in a mixed FunctionSpace."
# Copyright (C) 2016 Chris Richardson and Lawrence Mitchell
#
# This file is part of UFL.
#
# UFL is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, eith... | PypiClean |
/freevo2-2.0.tar.gz/freevo2-2.0/src/core/plugin.py |
__all__ = [ 'Plugin', 'init_plugins', 'activate_plugin', 'register_plugin', 'get_plugin' ]
# python imports
import os
import logging
# kaa imports
import kaa
# get logging object
log = logging.getLogger('plugin')
class Plugin(object):
"""
Basic plugin class.
"""
plugin_media = None
def __ini... | PypiClean |
/tomcli-0.1.2.tar.gz/tomcli-0.1.2/NEWS.md | <!--
Copyright (C) 2023 Maxwell G <maxwell@gtmx.me>
SPDX-License-Identifier: MIT
-->
NEWS
=======
## 0.1.1 - 2023-05-03 <a id='0.1.1'></a>
### Added
- tomcli.spec: add gnupg2 BuildRequires
- tomcli.spec: add missing extras subpackages
- tomcli.spec: include NEWS.md
### Fixed
- **tomcli-get: fix broken toml backe... | PypiClean |
/Tensorforce-0.6.5.tar.gz/Tensorforce-0.6.5/tensorforce/core/policies/policy.py |
from tensorforce.core import SignatureDict, TensorSpec, tf_function
from tensorforce.core.policies import BasePolicy
class Policy(BasePolicy):
"""
Base class for decision policies.
Args:
device (string): Device name
(<span style="color:#00C000"><b>default</b></span>: inherit value of... | PypiClean |
/mcfc-2.0.4.tar.gz/mcfc-2.0.4/README.md | # MCFC
[](https://pypi.org/project/mcfc)
[](https://pypi.org/project/mcfc)
[](https://pypi.org/project/mcfc)
Text formatting using Minecraft color codes.
## ... | PypiClean |
/np_family-0.2.0-py3-none-any.whl/npf/jax/modules/net.py | from ..typing import *
import abc
import numpy as np
import jax
from jax import numpy as jnp
from jax.scipy import stats
from flax import linen as nn
__all__ = [
"Sequential",
"MLP",
"CNN",
# "UNet",
]
def constant(value):
def _constant(key, shape, dtype=jnp.float_):
return jnp.full(s... | PypiClean |
/pythonmatsim-0.1.2.tar.gz/pythonmatsim-0.1.2/javawrappers/org/geotools/geometry/jts/_jts.py |
import jpype
MultiCurvedGeometry = jpype.JClass('org.geotools.geometry.jts.MultiCurvedGeometry')
PreciseCoordinateSequenceTransformer = jpype.JClass('org.geotools.geometry.jts.PreciseCoordinateSequenceTransformer')
ReferencedEnvelope = jpype.JClass('org.geotools.geometry.jts.ReferencedEnvelope')
SingleCurvedGeom... | PypiClean |
/txlib_too-0.1.8.tar.gz/txlib_too-0.1.8/README.rst | Transifex Python Library
========================
This library is a wrapper around the Transifex API, built to provide a
simpler interface to users of the API.
At this moment, it supports only a subset of the endpoints of the API.
In particular, it allows certain operations on Projects, Resources and
Translations.
U... | PypiClean |
/alibabacloud_dingtalk-2.0.32-py3-none-any.whl/alibabacloud_dingtalk/workbench_1_0/client.py | from Tea.core import TeaCore
from alibabacloud_gateway_spi.client import Client as SPIClient
from alibabacloud_tea_openapi.client import Client as OpenApiClient
from alibabacloud_tea_openapi import models as open_api_models
from alibabacloud_gateway_dingtalk.client import Client as GatewayClientClient
from alibabaclou... | PypiClean |
/sdksio_juniper_mist_sdk-1.0.0-py3-none-any.whl/mistapi/models/api_v_1_sites_devices_traceroute_request.py | from mistapi.api_helper import APIHelper
class ApiV1SitesDevicesTracerouteRequest(object):
"""Implementation of the 'Api V1 Sites Devices Traceroute Request' model.
TODO: type model description here.
Attributes:
host (string): host name
network (string): optional for gateway only the so... | PypiClean |
/olympiad-0.0.13.tar.gz/olympiad-0.0.13/gym_vnc/wrappers/logger.py |
import logging
import numpy as np
import time
from gym_vnc import vectorized
from gym_vnc.utils import display
logger = logging.getLogger(__name__)
def stats(count):
flat = [e for vals in count for e in vals]
if len(flat) != 0:
return '%0.1f±%0.1f' % (np.mean(flat), np.std(flat))
else:
r... | PypiClean |
/formification-1.2.0-py3-none-any.whl/formulaic/static/admin/formulaic/ember-formulaic/node_modules/heimdalljs-logger/README.md | ## Usage
### With no Heimdall Tree
```js
var logger = require('heimdalljs-logger')('foo');
logger.trace('trace message');
logger.debug('debug message');
logger.info('info message');
logger.warn('warn message');
logger.error('error message');
console.log('app message');
```
```sh
DEBUG=foo DEBUG_LEVEL=trace foo
# =... | PypiClean |
/spitfire3-0.7.15.tar.gz/spitfire3-0.7.15/README.md | # ![Spitfire][]
[![Version][]](https://badge.fury.io/py/spitfire)
[![Status][]](https://travis-ci.org/youtube/spitfire)
## Introduction
Spitfire is a high-performance Python template language inspired
by [Cheetah][]. It originally started out as an experiment to
see if techniques used in compilers were applicable ... | PypiClean |
/pysnmp_pyasn1-1.1.3-py3-none-any.whl/pyasn1/type/useful.py | import datetime
from pyasn1 import error
from pyasn1.compat import dateandtime
from pyasn1.compat import string
from pyasn1.type import char
from pyasn1.type import tag
from pyasn1.type import univ
__all__ = ["ObjectDescriptor", "GeneralizedTime", "UTCTime"]
NoValue = univ.NoValue
noValue = univ.noValue
class Obje... | PypiClean |
/AyiinXd-0.0.8-cp311-cp311-macosx_10_9_universal2.whl/fipper/node_modules/@types/node/ts4.8/util.d.ts | declare module 'util' {
import * as types from 'node:util/types';
export interface InspectOptions {
/**
* If `true`, object's non-enumerable symbols and properties are included in the formatted result.
* `WeakMap` and `WeakSet` entries are also included as well as user defined prototyp... | PypiClean |
/cdktf-cdktf-provider-azurerm-10.0.1.tar.gz/cdktf-cdktf-provider-azurerm-10.0.1/src/cdktf_cdktf_provider_azurerm/dns_ptr_record/__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 DnsPtrRecord(
_cdktf_9a9027ec.TerraformResource,
... | PypiClean |
/scikit-data-0.1.3.tar.gz/scikit-data-0.1.3/skdata/steps.py | from functools import reduce
# local
from .cleaning import *
import json
import numpy as np
import pandas as pd
class StepSkData:
parent = None
def __init__(self, parent: 'SkDataSet'):
"""
:param parent:
"""
self.parent = parent
def compute(
self, start: int = N... | PypiClean |
/cx_Freeze-6.15.6-cp311-cp311-musllinux_1_1_aarch64.whl/cx_Freeze/command/install_exe.py |
from __future__ import annotations
import sys
from pathlib import Path
from setuptools import Command
__all__ = ["InstallEXE"]
class InstallEXE(Command):
"""Install executables built from Python scripts."""
command_name = "install_exe"
description = "install executables built from Python scripts"
... | PypiClean |
/nordvpn-tray-1.0.10.tar.gz/nordvpn-tray-1.0.10/README.md | # NordVPN Tray
### A cross-platform system tray application for interacting with Nord VPN.
[](https://github.com/aviolaris/nordvpn-tray)
->Tuple:
"Convert a value `x` from 0 to... | PypiClean |
/edeposit.amqp.antivir-0.1-alpha.tar.gz/edeposit.amqp.antivir-0.1-alpha/edeposit/amqp/antivir/amqpav.py | from __future__ import unicode_literals
from __future__ import print_function
# ClamAV binding
import pyclamd
# AMQP framework
from kombu import Connection
from kombu import Exchange
from kombu import Queue
import json
import base64
import uuid
import datetime
from multiprocessing import Pool
import time
import soc... | PypiClean |
/connexion_sql_utils-0.1.4.tar.gz/connexion_sql_utils-0.1.4/README.rst | ===============================
Connexion Sqlalchemy Utils
===============================
.. image:: https://img.shields.io/pypi/v/connexion_sql_utils.svg
:target: https://pypi.python.org/pypi/connexion_sql_utils
.. image:: https://img.shields.io/travis/m-housh/connexion_sql_utils.svg
:target: https://travis... | PypiClean |
/Oregano-4.4.2-py3-none-any.whl/oregano_plugins/shuffle_deprecated/conf_keys.py |
class ConfKeys:
''' A central place to keep all the cashshuffle-related config and
wallet.storage keys for easier code maintenance. '''
class Global:
'''The below go in the global config '''
# keys to be deleted if we ever see them. This keys are from older versions and are irrelevant now.... | PypiClean |
/alsa-ctl-0.1.3.tar.gz/alsa-ctl-0.1.3/alsa_ctl/cli.py |
import sys
import re
from pathlib import Path
import subprocess
import argparse
import importlib.resources as pkg_resources
from ._version import __version__
from .lib import get_volume_cmd, toggle_cmd, raise_volume_cmd, lower_volume_cmd, list_cards, VOLUME_TYPES, global_options, run_command
def error(msg: str):
pri... | PypiClean |
/deep_plots-0.1.1.tar.gz/deep_plots-0.1.1/README.md | # Deep Plots [](https://travis-ci.com/jfilter/deep-plots) [](https://pypi.org/project/deep-plots/) [](https://pyp... | PypiClean |
/RsCMPX_NrFr2Meas-4.0.185-py3-none-any.whl/RsCMPX_NrFr2Meas/Implementations/NrMmwMeas/MultiEval/Cc/Modulation/Dallocation.py | from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ......Internal.StructBase import StructBase
from ......Internal.ArgStruct import ArgStruct
from ...... import repcap
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class DallocationCls:
"""Dal... | PypiClean |
/asgi_background-0.2.2-py3-none-any.whl/asgi_background/_middleware.py | from contextlib import asynccontextmanager
from logging import getLogger
from typing import Any, AsyncIterator, Awaitable, Callable, List, Optional
import anyio
import anyio.abc
from asgi_lifespan_middleware import LifespanMiddleware
from asgi_background._types import ASGIApp, Receive, Scope, Send
Task = Callable[[]... | PypiClean |
/django-pki-0.20.0.tar.gz/django-pki-0.20.0/pki/migrations/0002_auto__add_field_certificateauthority_crl_distribution.py | import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'CertificateAuthority.crl_distribution'
db.add_column('pki_certificateauthority', 'crl_distribution', self.gf... | PypiClean |
/metacoag-1.1.4.tar.gz/metacoag-1.1.4/metacoag_utils/graph_utils.py |
import multiprocessing as mp
import re
from collections import defaultdict
from Bio import SeqIO
from metacoag_utils.bidirectionalmap import BidirectionalMap
def get_segment_paths_spades(contig_paths):
paths = {}
segment_contigs = {}
node_count = 0
my_map = BidirectionalMap()
contig_names = B... | PypiClean |
/AFQ-Browser-0.3.tar.gz/AFQ-Browser-0.3/afqbrowser/site/client/js/third-party/threex.domevent.js |
//
/** @namespace */
var THREEx = THREEx || {};
// # Constructor
THREEx.DomEvents = function(camera, domElement)
{
this._camera = camera || null;
this._domElement= domElement || document;
this._raycaster = new THREE.Raycaster();
this._selected = null;
this._boundObjs = {};
// Bind dom event for mouse and to... | PypiClean |
/punjab-0.15.tar.gz/punjab-0.15/README.txt | GENERAL INFORMATION
PunJab is a HTTP jabber client interface. It is a BOSH connection manager that
allows persistent client connections to a XMPP server.
INSTALL
See INSTALL.txt for setup and installation instructions.
CONTRIBUTORS
Jack Moffitt xmpp:jackm@jabber.org
Garret Heaton <powdahound@gmail.com>
Zewt (htt... | PypiClean |
/tgapp-userprofile-validated-0.0.4.tar.gz/tgapp-userprofile-validated-0.0.4/userprofile/controllers/root.py | """Main Controller"""
from datetime import datetime
from resetpassword.lib import generate_token
from tg import TGController, expose, flash, require, predicates, \
request, redirect, config, override_template, abort
from tg.i18n import ugettext as _, lazy_ugettext as l_
from tg.predicates import not_anonymous
from... | PypiClean |
/pulumi_azure-5.50.0a1693462503.tar.gz/pulumi_azure-5.50.0a1693462503/pulumi_azure/mobile/network_packet_core_control_plane.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 ._inputs import *
__all__ = ['NetworkPacketCoreControlPlaneArgs', 'NetworkPacketCoreControlPlane']
@pulumi.input_type
class Network... | PypiClean |
/aliyun-python-sdk-adb-1.1.6.tar.gz/aliyun-python-sdk-adb-1.1.6/aliyunsdkadb/request/v20190315/ModifyDBClusterRequest.py |
from aliyunsdkcore.request import RpcRequest
from aliyunsdkadb.endpoint import endpoint_data
class ModifyDBClusterRequest(RpcRequest):
def __init__(self):
RpcRequest.__init__(self, 'adb', '2019-03-15', 'ModifyDBCluster','ads')
self.set_method('POST')
if hasattr(self, "endpoint_map"):
setattr(self, "endpoi... | PypiClean |
/tf_gpu-2.11.0.2301-cp38-cp38-manylinux2014_x86_64.whl/tensorflow/compiler/tf2xla/python/xla.py | from tensorflow.compiler.tf2xla.ops import gen_xla_ops
from tensorflow.compiler.xla import xla_data_pb2
from tensorflow.core.framework import attr_value_pb2
from tensorflow.python.framework import constant_op
from tensorflow.python.framework import dtypes
from tensorflow.python.framework import ops
from tensorflow.pyth... | PypiClean |
/lanforge_scripts-0.0.13-py3-none-any.whl/lanforge_scripts/py_scripts/recordinflux.py | import sys
import os
import argparse
if sys.version_info[0] != 3:
print("This script requires Python 3")
exit(1)
from lanforge_scripts.py_json.LANforge import lfcli_base
LFCliBase = lfcli_base.LFCliBase
def main():
parser = LFCliBase.create_bare_argparse(
prog='recordinflux.py',
f... | PypiClean |
/rcdesign-0.4.13.tar.gz/rcdesign-0.4.13/README.md | # `rcdesign`
<img alt="PyPI - License" src="https://img.shields.io/pypi/l/rcdesign"> [](https://pypi.python.org/pypi/rcdesign/) [](http://rcdesign.readthedocs.io/... | PypiClean |
/clize-5.0.2.tar.gz/clize-5.0.2/docs/contributing.rst | .. |on github| replace:: on GitHub
.. _on github: https://github.com/epsy/clize/issues
.. _contributing:
Contributing
============
Thanks for considering helping out. We don't bite. :-)
.. _bug report:
Reporting issues
----------------
Bugs and other tasks are tracked |on github|.
* Check whether the issue exis... | PypiClean |
/symsynd-3.0.0.zip/symsynd-3.0.0/llvm/docs/NVPTXUsage.rst | =============================
User Guide for NVPTX Back-end
=============================
.. contents::
:local:
:depth: 3
Introduction
============
To support GPU programming, the NVPTX back-end supports a subset of LLVM IR
along with a defined set of conventions used to represent GPU programming
concepts. Th... | PypiClean |
/generative-0.0.0.tar.gz/generative-0.0.0/jina/serve/runtimes/gateway/__init__.py | import argparse
from abc import ABC
from typing import TYPE_CHECKING, Optional, Union
from jina.serve.networking import GrpcConnectionPool
from jina.serve.runtimes.asyncio import AsyncNewLoopRuntime
from jina.serve.runtimes.gateway.graph.topology_graph import TopologyGraph
if TYPE_CHECKING:
import asyncio
imp... | PypiClean |
/toprammer-0.19.tar.gz/toprammer-0.19/libtoprammer/chips/microchip8/pic16lf1902sip6.py | from .microchip8_splittedPMarea_hasResetPC import *
class Chip_Pic16LF1902sip6(microchip8_splittedPMarea_hasResetPC):
nLatches = 8
def __init__(self):
microchip8_splittedPMarea_hasResetPC.__init__(self,
chipPackage = "DIP10",
chipPinVCC = 9,
chipPinsVPP = 10,
chipPinGND = 8,
signature=b"\x22\x2c... | PypiClean |
/Flask-AppBuilder-jack-3.3.4.tar.gz/Flask-AppBuilder-jack-3.3.4/flask_appbuilder/filters.py | from flask import current_app, request, url_for
from .const import PERMISSION_PREFIX
def app_template_filter(filter_name=""):
def wrap(f):
if not hasattr(f, "_filter"):
f._filter = filter_name
return f
return wrap
class TemplateFilters(object):
security_manager = None
... | PypiClean |
/odoo14_addon_delivery_package_fee-14.0.1.0.2-py3-none-any.whl/odoo/addons/delivery_package_fee/models/sale_order.py | from odoo import fields, models
class SaleOrder(models.Model):
_inherit = "sale.order"
def _get_fee_line_qty_from_out_package(self, package_fee, picking, package):
"""Compute the fee qty for the package to deliver.
Return 1 by default.
"""
return 1
def _package_fee_line_... | PypiClean |
/app-net-0.6.2.tar.gz/app-net-0.6.2/net/connections/event.py | __all__ = [
'event'
]
# std imports
from functools import wraps
# package imports
import net
def event(name):
"""
Registers a function as an event trigger. Event triggers are hooks into the
event system between peers. Peers that ``net.subscribe`` to a peer, register
an event on that peer.
L... | PypiClean |
/ctg_object_detection_tools-0.0.1-py3-none-any.whl/object_detection/anchor_generators/multiscale_grid_anchor_generator.py | import tensorflow.compat.v1 as tf
from object_detection.anchor_generators import grid_anchor_generator
from object_detection.core import anchor_generator
from object_detection.core import box_list_ops
class MultiscaleGridAnchorGenerator(anchor_generator.AnchorGenerator):
"""Generate a grid of anchors for multiple ... | PypiClean |
/cdktf-cdktf-provider-azurerm-10.0.1.tar.gz/cdktf-cdktf-provider-azurerm-10.0.1/src/cdktf_cdktf_provider_azurerm/machine_learning_compute_instance/__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 MachineLearningComputeInstance(
_cdktf_9a9027ec.Te... | PypiClean |
/jupyterlab_remote_contents-0.1.1.tar.gz/jupyterlab_remote_contents-0.1.1/node_modules/@blueprintjs/core/lib/cjs/components/panel-stack/panelView.js | "use strict";
/*
* Copyright 2018 Palantir Technologies, Inc. All rights reserved.
*
* 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
*... | PypiClean |
/odoo14_addon_sale_invoice_auto_deliver-14.0.1.0.1-py3-none-any.whl/odoo/addons/sale_invoice_auto_deliver/wizards/sale_make_invoice_advance.py |
from odoo import _, api, fields, models
from odoo.exceptions import UserError
class SaleAdvancePaymentInv(models.TransientModel):
_inherit = "sale.advance.payment.inv"
advance_payment_method = fields.Selection(
selection_add=[
(
"all_auto",
_("Invoice the ... | PypiClean |
/mlagents_envs-0.30.0.tar.gz/mlagents_envs-0.30.0/mlagents_envs/communicator_objects/brain_parameters_pb2.py |
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import symbol_database as _symbol_database
from google.p... | PypiClean |
/benchling_api_client-2.0.207-py3-none-any.whl/benchling_api_client/v2/stable/models/base_error.py | from typing import Any, cast, Dict, List, Optional, Type, TypeVar, Union
import attr
from ..extensions import NotPresentError
from ..types import UNSET, Unset
T = TypeVar("T", bound="BaseError")
@attr.s(auto_attribs=True, repr=False)
class BaseError:
""" """
_message: Union[Unset, str] = UNSET
_type:... | PypiClean |
/taskcc-alipay-sdk-python-3.3.398.tar.gz/taskcc-alipay-sdk-python-3.3.398/alipay/aop/api/domain/AlipayDataPrinterStatusGetModel.py | import json
from alipay.aop.api.constant.ParamConstants import *
class AlipayDataPrinterStatusGetModel(object):
def __init__(self):
self._access_token = None
self._client_id = None
self._client_secret = None
self._device_sn = None
@property
def access_token(self):
... | PypiClean |
/mnl_ws_norm-0.0.4.tar.gz/mnl_ws_norm-0.0.4/mnl_ws_norm/normalizer.py | def trim_result(result):
beginning_spaces = 0
for i in range(len(result)):
if result[i].isspace():
beginning_spaces+=1
else:
break
if beginning_spaces > 1:
result = result[i:]
ending_spaces = 0
j = len(result)-1
while j >= 0:
... | PypiClean |
/trixie-frontend-20180628.1.tar.gz/trixie-frontend-20180628.1/hass_frontend_es5/235beb78da1645dd69c4.chunk.js | (window.webpackJsonp=window.webpackJsonp||[]).push([[35],{215:function(e,n,t){"use strict";t(3),t(19),t(43);var o=t(81),a=(t(113),t(4)),i=t(0),l=Object.freeze(Object.defineProperties(['\n <style include="paper-item-shared-styles"></style>\n <style>\n :host {\n @apply --layout-horizontal;\n @app... | PypiClean |
/rvgeocoder-1.0.8.tar.gz/rvgeocoder-1.0.8/README.md | # RvGeocoder
A Python library for offline reverse geocoding. It improves on an existing library called [reverse_geocoder](https://pypi.org/project/reverse_geocoder/1.5.1/) developed by [Ajay Thampi](https://github.com/thampiman/reverse-geocoder).
The package has not been updated sinse 2016 and this is an effort of kee... | PypiClean |
/casai-home-frontend-20220503.0.tar.gz/casai-home-frontend-20220503.0/hass_frontend/frontend_latest/3a7771f6.js | "use strict";(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([[71593],{71593:(e,t,r)=>{r.a(e,(async e=>{r.r(t);var i=r(37500),n=r(33310),o=r(42952),s=e([o]);function a(){a=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:f... | PypiClean |
/ais_dom_frontend-20230831.0-py3-none-any.whl/hass_frontend/frontend_latest/49426-z_dNuz2LHkc.js | export const id=49426;export const ids=[49426];export const modules={63864:(e,t,i)=>{i.d(t,{I:()=>o,_:()=>a});const o=(e,t,i,o)=>{const[a,n,s]=e.split(".",3);return Number(a)>t||Number(a)===t&&(void 0===o?Number(n)>=i:Number(n)>i)||void 0!==o&&Number(a)===t&&Number(n)===i&&Number(s)>=o},a=e=>e.includes("dev")},12198:(e... | PypiClean |
/odoo14_addon_hr_payslip_change_state-14.0.1.1.0-py3-none-any.whl/odoo/addons/hr_payslip_change_state/wizard/hr_payslip_change_state.py | from odoo import fields, models
from odoo.exceptions import UserError
from odoo.tools.translate import _
class HrPayslipChangeState(models.TransientModel):
_name = "hr.payslip.change.state"
_description = "Change state of a payslip"
state = fields.Selection(
selection=[
("draft", "Se... | PypiClean |
/bigstream-1.2.1.tar.gz/bigstream-1.2.1/README.md | # BigStream
---


BigStream is a library of tools for 3D registration including images too large to fit into memory and/or too large to register in a single (multi-threaded) process. BigStream can automate chunking of the alignme... | PypiClean |
/arcpy_metadata-0.5.3.tar.gz/arcpy_metadata-0.5.3/arcpy_metadata/metadata_editor.py | import os
import arcpy
import xml
import six
import warnings
import traceback
import logging
from datetime import datetime
from datetime import date
from datetime import time
from arcpy_metadata.metadata_constructors import MetadataItem
from arcpy_metadata.metadata_constructors import MetadataValueList
from arcpy_meta... | PypiClean |
/exxeleron-qPython-1.0.0.zip/exxeleron-qPython-1.0.0/qpython/qreader.py |
import struct
import sys
from qpython import MetaData
from qpython.qtype import * # @UnusedWildImport
from qpython.qcollection import qlist, QDictionary, qtable, QTable, QKeyedTable
from qpython.qtemporal import qtemporal, from_raw_qtemporal, array_from_raw_qtemporal
try:
from qpython.fastutils import uncompres... | PypiClean |
/jsonrpcclient-4.0.2.tar.gz/jsonrpcclient-4.0.2/CHANGELOG.md | # jsonrpcclient Change Log
## 4.0.2 (27 Nov, 2021)
- Documentation.
## 4.0.1 (30 Sep, 2021)
- Add FAQ page to documentation.
## 4.0.0 (1 Sep, 2021)
Complete rewrite and the usage has completely changed. Read about the changes
at https://composed.blog/jsonrpcclient-4-changes or read the full documentation
at https... | PypiClean |
/xrpl_py-2.4.0b0-py3-none-any.whl/xrpl/models/requests/ledger_entry.py | from __future__ import annotations
from dataclasses import dataclass, field
from enum import Enum
from typing import Dict, List, Optional, Union
from xrpl.models.base_model import BaseModel
from xrpl.models.currencies import Currency
from xrpl.models.requests.request import LookupByLedgerRequest, Request, RequestMeth... | PypiClean |
/sambristol_ssabp_w-0.0.15.tar.gz/sambristol_ssabp_w-0.0.15/sambristol_ssabp_w/whardsphere.py | import numpy as np
import scipy.special as special
from .trimerbc import shiftedLJ
from .effectivepotential import twobody_value, twobody_derivative
from .effectivepotential import threebody_value, threebody_derivative_u
class wHardSphere(shiftedLJ):
"""
Evaluate the w(r) function which satisfies the d... | PypiClean |
/PyGGI-1.1.3.tar.gz/PyGGI-1.1.3/pyggi/gtk3__GtkWindow.py | # This code binding is available under the license agreement of the LGPL with
# an additional constraint described below,
# and with the understanding that the webkit API is copyright protected
# by Apple Computer, Inc. (see below).
# There is an additional constraint that any derivatives of this w... | PypiClean |
/agpypeline_templates-0.0.1.tar.gz/agpypeline_templates-0.0.1/agpipeline_templates/algorithm.py | import numpy as np
# Definitions
# Please replace these definitions' values with the correct ones
VERSION = None
# Information on the creator of this algorithm
ALGORITHM_AUTHOR = None
ALGORITHM_AUTHOR_EMAIL = None
ALGORITHM_CONTRIBUTORS = [""]
ALGORITHM_NAME = None
ALGORITHM_DESCRIPTION = None
# Citation informatio... | PypiClean |
/ka-lite-static-0.17.6b2.tar.gz/ka-lite-static-0.17.6b2/kalite/distributed/static/js/distributed/perseus/ke/local-only/localeplanet/icu.aa-DJ.js | (function() {
var dfs = {"am_pm":["AM","PM"],"day_name":["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],"day_short":["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],"era":["BC","AD"],"era_name":["Before Christ","Anno Domini"],"month_name":["January","February","March","April","May","June","July","... | PypiClean |
/cupy_rocm_5_0-12.2.0-cp311-cp311-manylinux2014_x86_64.whl/cupyx/scipy/sparse/linalg/_norm.py | import numpy
import cupy
import cupyx.scipy.sparse
def _sparse_frobenius_norm(x):
if cupy.issubdtype(x.dtype, cupy.complexfloating):
sqnorm = abs(x).power(2).sum()
else:
sqnorm = x.power(2).sum()
return cupy.sqrt(sqnorm)
def norm(x, ord=None, axis=None):
"""Norm of a cupy.scipy.spma... | PypiClean |
/telegram_autobot-0.0.20-py3-none-any.whl/autobot/configuration/config.py | import os
import json
import glob
import logging
from autobot.plugins import PluginsLoader
from autobot.constants import AutoBotConstants
from telegram.constants import MAX_MESSAGE_LENGTH
class AutoBotConfig(object):
ID = 'id'
ON = 'on'
HANDLER_TYPE = 'handler_type'
RESPONSE_TYPE = 'response_type'
... | PypiClean |
/pantsbuild.pants-2.18.0a0-cp39-cp39-macosx_10_15_x86_64.whl/pants/backend/javascript/resolve.py | from __future__ import annotations
import os
from dataclasses import dataclass
from typing import Iterable
from pants.backend.javascript import nodejs_project
from pants.backend.javascript.nodejs_project import AllNodeJSProjects, NodeJSProject
from pants.backend.javascript.package_json import (
FirstPartyNodePack... | PypiClean |
/idrlnet-2.0.0.tar.gz/idrlnet-2.0.0/docs/user/get_started/5_inverse_wave_equation.md | # Inverse Wave Equation
Consider the 1d wave equation:
$$
\begin{equation}
\frac{\partial^2u}{\partial t^2}=c^2\frac{\partial^2u}{\partial x^2},
\end{equation}
$$
where $c>0$ is unknown and is to be estimated. A group of data pairs $\{x_i, t_i, u_i\}_{i=1,2,\cdot,N}$ is observed.
Then the problem is formulated as:
$$... | PypiClean |
/sample-factory-2.1.1.tar.gz/sample-factory-2.1.1/sample_factory/algo/learning/learner_worker.py | from __future__ import annotations
import os
from threading import Thread
from typing import Dict, Optional
import psutil
import torch
from signal_slot.signal_slot import EventLoop, Timer, signal
from torch import Tensor
from sample_factory.algo.learning.batcher import Batcher
from sample_factory.algo.learning.learn... | PypiClean |
/netoprmgr-1.3.5.tar.gz/netoprmgr-1.3.5/xlsxwriter/drawing.py |
from . import xmlwriter
from .shape import Shape
from .utility import get_rgb_color
class Drawing(xmlwriter.XMLwriter):
"""
A class for writing the Excel XLSX Drawing file.
"""
###########################################################################
#
# Public API.
#
###########... | PypiClean |
/pyappnvn-0.0.4.tar.gz/pyappnvn-0.0.4/appnvn/atadctn/opcus.py | from tkinter import (Frame,
Tk,
Toplevel,
StringVar,
IntVar,
Radiobutton
)
import tkinter as tk
from tkinter import ttk
from tkinter import messagebox
from appnvn.atadctn.icontt import gui
from appnvn... | PypiClean |
/jupyterlab_nodeeditor-1.0.8-py3-none-any.whl/jupyterlab_nodeeditor-1.0.8.data/data/share/jupyter/labextensions/jupyterlab_nodeeditor/static/7637.cfee4e5fb8812dc83492.js | "use strict";(self.webpackChunkjupyterlab_nodeeditor=self.webpackChunkjupyterlab_nodeeditor||[]).push([[7637],{7637:(e,t,n)=>{n.r(t),n.d(t,{conf:()=>o,language:()=>s});var o={brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{o... | PypiClean |
/titus2-1.2.1.tar.gz/titus2-1.2.1/titus/util.py |
# Copyright (C) 2014 Open Data ("Open Data" refers to
# one or more of the following companies: Open Data Partners LLC,
# Open Data Research LLC, or Open Data Capital LLC.)
#
# This file is part of Hadrian.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compli... | PypiClean |
/hydropandas-0.8.0.tar.gz/hydropandas-0.8.0/readme.md | <img src="/docs/_static/Artesia_logo.jpg" alt="Artesia" width="200" align="right">
[](https://pypi.python.org/pypi/hydropandas)
[](https://pypi.python.org/pypi/hydropandas)
[](https://travis-ci.org/tflearn/tflearn)
[](https://badge.fury.io/py/tflearn)
[](LICENSE)
[![Join the chat at https://gitter.im/einst... | PypiClean |
/oldowan.mtdna-1.0.3.tar.gz/oldowan.mtdna-1.0.3/oldowan/mtdna/rCRS.py | rCRS = "GATCACAGGTCTATCACCCTATTAACCACTCACGGGAGCTCTCCATGCATTTGGTATTTTCGTCTGGGGGGTATGCACGCGATAGCATTGCGAGACGCTGGAGCCGGAGCACCCTATGTCGCAGTATCTGTCTTTGATTCCTGCCTCATCCTATTATTTATCGCACCTACGTTCAATATTACAGGCGAACATACTTACTAAAGTGTGTTAATTAATTAATGCTTGTAGGACATAATAATAACAATTGAATGTCTGCACAGCCACTTTCCACACAGACATCATAACAAAAAATTTCCACCAAACCCCCCCTCC... | PypiClean |
/amazon-dax-client-2.0.3.tar.gz/amazon-dax-client-2.0.3/amazondax/RetryHandler.py | import random
import functools
import time
from .DaxError import DaxErrorCode, DaxClientError, DaxServiceError, is_retryable, is_retryable_with_backoff
from .Constants import SDK_DEFAULT_BASE_DELAY_MS
def equal_jitter_backoff(cap, base=SDK_DEFAULT_BASE_DELAY_MS, attempts=0):
"""Calculate time to sleep based on e... | PypiClean |
/Transcrypt-3.7.16.tar.gz/Transcrypt-3.7.16/transcrypt/demos/parcel_demo/node_modules/postcss-merge-idents/node_modules/postcss/lib/input.js | 'use strict';
exports.__esModule = true;
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writabl... | PypiClean |
/snake-shop-0.9.0.tar.gz/snake-shop-0.9.0/user/models.py | from django.db import models
from django.utils.translation import gettext_lazy as _
from django.contrib.auth.validators import UnicodeUsernameValidator
from django.core.validators import RegexValidator
from django.db.models.signals import m2m_changed, post_save
from django.dispatch import receiver
from django.contrib.a... | PypiClean |
/libsumo-1.17.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl/libtraci/__init__.py |
# @file __init__.py
# @author Michael Behrisch
# @date 2020-10-08
import os
if hasattr(os, "add_dll_directory"):
# since Python 3.8 the DLL search path has to be set explicitly see https://bugs.python.org/issue43173
if os.path.exists(os.path.join(os.path.dirname(__file__), "..", "..", "bin", "zlib.dll"... | PypiClean |
/tensorflow-gpu-macosx-1.8.1.tar.gz/tensorflow/contrib/lite/toco/g3doc/python_api.md | # TensorFlow Lite Optimizing Converter (TOCO) Python API reference
This page provides examples on how to use TOCO via the Python API. It is
complemented by the following documents:
* [README](../README.md)
* [Command-line examples](cmdline_examples.md)
* [Command-line glossary](cmdline_reference.md)
## High-le... | PypiClean |
/xslearn-0.0.5.tar.gz/xslearn-0.0.5/README.md | # xslearn
xslearn is a machine learning toolkit implemented by Python. (keep updating...)
## model examples(below are implemented models)
**- linear_model**
* [Perceptron](https://github.com/eLeVeNnN/xslearn/blob/master/examples/Perceptron.md)
* [Logistic Regression](https://github.com/eLeVeNnN/xslearn/blob/master/... | PypiClean |
/python_jsonschema_objects-0.4.4.tar.gz/python_jsonschema_objects-0.4.4/python_jsonschema_objects/examples/README.md | [](https://github.com/cwacek/python-jsonschema-objects/actions/workflows/pythonpackage.yml)
## What
python-jsonschema-objects provides an *automatic* class-based
binding to JSON Schemas for use in ... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.