id
stringlengths
1
8
text
stringlengths
6
1.05M
dataset_id
stringclasses
1 value
/apache-superset-jwi078-0.35.0.tar.gz/apache-superset-jwi078-0.35.0/superset/views/database/views.py
import os from flask import flash, redirect from flask_appbuilder import SimpleFormView from flask_appbuilder.forms import DynamicForm from flask_appbuilder.models.sqla.interface import SQLAInterface from flask_babel import gettext as __, lazy_gettext as _ from sqlalchemy.exc import IntegrityError from werkzeug.utils ...
PypiClean
/pykokkos-base-0.0.7rc5.tar.gz/pykokkos-base-0.0.7rc5/external/pybind11/docs/advanced/embedding.rst
.. _embedding: Embedding the interpreter ######################### While pybind11 is mainly focused on extending Python using C++, it's also possible to do the reverse: embed the Python interpreter into a C++ program. All of the other documentation pages still apply here, so refer to them for general pybind11 usage. ...
PypiClean
/recital-client-0.2.1.tar.gz/recital-client-0.2.1/recital/models/indexing_task_out.py
import datetime from typing import Any, Dict, List, Type, TypeVar, Union import attr from dateutil.parser import isoparse from ..models.background_task_out import BackgroundTaskOut from ..types import UNSET, Unset T = TypeVar("T", bound="IndexingTaskOut") @attr.s(auto_attribs=True) class IndexingTaskOut: """ O...
PypiClean
/nnsuds-1.1.2.tar.gz/nnsuds-1.1.2/tools/suds_devel/zip.py
# This program is free software; you can redistribute it and/or modify it under # the terms of the (LGPL) GNU Lesser General Public License as published by the # Free Software Foundation; either version 3 of the License, or (at your # option) any later version. # # This program is distributed in the hope that it will ...
PypiClean
/ReviewBoard-5.0.5-py3-none-any.whl/reviewboard/static/lib/js/moment-timezone-0.5.2.js
(function (root, factory) { "use strict"; /*global define*/ if (typeof define === 'function' && define.amd) { define(['moment'], factory); // AMD } else if (typeof module === 'object' && module.exports) { module.exports = factory(require('moment')); // Node } else { factory(root.moment); ...
PypiClean
/Mezzanine-6.0.0.tar.gz/Mezzanine-6.0.0/mezzanine/core/templatetags/mezzanine_tags.py
import os from hashlib import md5 try: from urllib.parse import quote, unquote except ImportError: from urllib import quote, unquote from django.apps import apps from django.contrib import admin from django.contrib.auth import REDIRECT_FIELD_NAME from django.contrib.sites.models import Site from django.core.e...
PypiClean
/jupyterlab_remote_contents-0.1.1.tar.gz/jupyterlab_remote_contents-0.1.1/node_modules/deferred-leveldown/README.md
# deferred-leveldown > A mock `abstract-leveldown` implementation that queues operations while a real `abstract-leveldown` instance is being opened. [![level badge][level-badge]](https://github.com/Level/awesome) [![npm](https://img.shields.io/npm/v/deferred-leveldown.svg?label=&logo=npm)](https://www.npmjs.com/packa...
PypiClean
/aws-cdk-lib-2.94.0.tar.gz/aws-cdk-lib-2.94.0/src/aws_cdk/pipelines/__init__.py
import abc import builtins import datetime import enum import typing import jsii import publication import typing_extensions from typeguard import check_type from .._jsii import * import constructs as _constructs_77d1e7e8 from .. import ( CfnOutput as _CfnOutput_7273f911, Duration as _Duration_4839e8c3, ...
PypiClean
/showerpipe-0.3.0.tar.gz/showerpipe-0.3.0/README.rst
showerpipe ========== |PyPI version| |Tests| |Documentation| |License| |Code style: black| Provides a Pythonic data pipeline for showering and hadronisation programs in HEP. Currently wraps interface for Pythia 8, with plans for Herwig and Ariadne in future releases. Installation ------------ This package requires...
PypiClean
/cpas_toolbox-1.0.0-py3-none-any.whl/cpas_toolbox/cpas_methods/_crnet/crnet/transformer.py
import copy import math import time import torch import torch.nn as nn import torch.nn.functional as F # Part of the code is referred from: http://nlp.seas.harvard.edu/2018/04/03/attention.html#positional-encoding def clones(module, N): return nn.ModuleList([copy.deepcopy(module) for _ in range(N)]) def atten...
PypiClean
/arma-scipy-1.1.tar.gz/arma-scipy-1.1/arma_scipy/fit.py
import numpy as np from scipy.optimize import minimize def _mse(p, t): score = np.mean(np.square(np.clip(p, -1e10, 1e10) - t)) # score = np.mean((np.sign(p) * np.sign(t) + 1) / 2) return score def predict(x_, ar, ma, preprocessing_function=None, postprocessing_function=None): ...
PypiClean
/Chula-0.13.3.tar.gz/Chula-0.13.3/docs/session.rst
======= Session ======= Chula includes session support via cookies and backend servers. Currently there are three supported backends: 1. Memcached 2. PostgreSQL 3. CouchDB Via configuration you can choose between PostgreSQL or CouchDB as the main session store - Memcached is always used as a cache. Cluster safe +++...
PypiClean
/pypcapkit-1.2.1-cp310-none-any.whl/pcapkit/foundation/engines/pcapng.py
from logging import warn from typing import TYPE_CHECKING, cast from pcapkit.const.pcapng.block_type import BlockType as Enum_BlockType from pcapkit.corekit.infoclass import Info, info_final from pcapkit.foundation.engines.engine import Engine from pcapkit.protocols.misc.pcapng import PCAPNG as P_PCAPNG from pcapkit.u...
PypiClean
/lino-cosi-23.3.0.tar.gz/lino-cosi-23.3.0/lino_cosi/setup_info.py
ATELIER_INFO = dict( nickname="cosi", verbose_name="Lino Così", # srcref_url='https://gitlab.com/lino-framework/cosi/blob/master/%s', intersphinx_urls = dict( docs="https://cosi.lino-framework.org", dedocs="https://cosi.lino-framework.org/de/")) SETUP_INFO = dict( name='lino-cosi',...
PypiClean
/stackl-cli-0.5.1.tar.gz/stackl-cli-0.5.1/commands/edit.py
import click import yaml from commands.autocomplete import get_zones, get_locations, get_environments, get_services, get_functional_requirements, \ get_policy_templates, get_sits, get_sats from urllib3.exceptions import NewConnectionError, MaxRetryError from stackl_client.exceptions import ApiException, ApiValueEr...
PypiClean
/click_params-0.4.1.tar.gz/click_params-0.4.1/README.md
# click-params [![Pypi version](https://img.shields.io/pypi/v/click-params.svg)](https://pypi.org/project/click-params/) ![](https://github.com/click-contrib/click_params/workflows/CI/badge.svg) [![Coverage Status](https://codecov.io/gh/click-contrib/click_params/branch/master/graphs/badge.svg?branch=master)](https://...
PypiClean
/cli-aws-mfa-0.0.10.tar.gz/cli-aws-mfa-0.0.10/MFA/mfa.py
import boto3 import os import configparser class MFA: def __init__(self, profile_name="mfa-user", mfa_arn=None): self.profile_name = profile_name self.mfa_arn = mfa_arn self.mfa_token = None self.session = boto3.Session() def set_mfa_token(self, token): self.mfa_token ...
PypiClean
/pulumi_alicloud-3.44.0a1693632188.tar.gz/pulumi_alicloud-3.44.0a1693632188/pulumi_alicloud/eventbridge/slr.py
import copy import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import _utilities __all__ = ['SlrArgs', 'Slr'] @pulumi.input_type class SlrArgs: def __init__(__self__, *, product_name: pulumi.Input[str]): """ ...
PypiClean
/test_history_server-0.0.3.tar.gz/test_history_server-0.0.3/README.md
[//]: # ( [![PyPI package](https://img.shields.io/pypi/v/test_history_server.svg)](https://pypi.python.org/pypi/test_history_server) ) [//]: # ( [![Test results](https://circleci.com/gh/KarrLab/test_history_server.svg?style=shield)](https://circleci.com/gh/KarrLab/test_history_server) ) [//]: # ( [![Test coverage](http...
PypiClean
/apache_superset_db-1.5.1.2-py3-none-any.whl/superset/static/assets/995.4e2301996ca18a87a402.entry.js
(globalThis.webpackChunksuperset=globalThis.webpackChunksuperset||[]).push([[995],{21102:(e,t,n)=>{"use strict";var a=n(46291),r=o(Error);function o(e){return t.displayName=e.displayName||e.name,t;function t(t){return t&&(t=a.apply(null,arguments)),new e(t)}}e.exports=r,r.eval=o(EvalError),r.range=o(RangeError),r.refer...
PypiClean
/azure-mgmt-signalr-1.2.0.zip/azure-mgmt-signalr-1.2.0/README.md
# Microsoft Azure SDK for Python This is the Microsoft Azure SignalR Client Library. This package has been tested with Python 3.7+. For a more complete view of Azure libraries, see the [azure sdk python release](https://aka.ms/azsdk/python/all). ## _Disclaimer_ _Azure SDK Python packages support for Python 2.7 has e...
PypiClean
/oracle-graph-client-23.3.0.zip/oracle-graph-pypi-client-23.3.0/python/pypgx/api/_entity_provider_meta_data.py
from jnius import autoclass from pypgx.api._property_meta_data import PropertyMetaData from pypgx._utils.error_handling import java_handler from pypgx._utils.error_messages import ( INVALID_OPTION, UNHASHABLE_TYPE ) from pypgx._utils import conversion from pypgx._utils.pgx_types import id_types from typing im...
PypiClean
/nni_yds-0.3.7-py3-none-any.whl/nni_yds-0.3.7.data/data/nni/node_modules/moment/src/locale/bo.js
import moment from '../moment'; var symbolMap = { '1': '༡', '2': '༢', '3': '༣', '4': '༤', '5': '༥', '6': '༦', '7': '༧', '8': '༨', '9': '༩', '0': '༠' }, numberMap = { '༡': '1', '༢': '2', '༣': '3', '༤': '4', '༥': '5', '༦': '6', '༧': '7', '༨': '8', ...
PypiClean
/Mopidy-Spotmop-2.10.1.tar.gz/Mopidy-Spotmop-2.10.1/mopidy_spotmop/static/vendor/background-check.min.js
!function(a,b){"function"==typeof define&&define.amd?define(b):a.BackgroundCheck=b(a)}(this,function(){"use strict";function a(a){if(void 0===a||void 0===a.targets)throw"Missing attributes";H.debug=d(a.debug,!1),H.debugOverlay=d(a.debugOverlay,!1),H.targets=g(a.targets),H.images=g(a.images||"img",!0),H.changeParent=d(a...
PypiClean
/torch_u2net-1.0.0-cp36-cp36m-manylinux1_x86_64.whl/caffe2/python/net_drawer.py
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import argparse import json import logging from collections import defaultdict from caffe2.python import utils from future.utils import viewitems logger = logging.getLogg...
PypiClean
/kazoo.yandex-2.0.1.2.tar.gz/kazoo.yandex-2.0.1.2/kazoo/handlers/threading.py
from __future__ import absolute_import import atexit import logging import select import socket import threading import time try: import Queue except ImportError: # pragma: nocover import queue as Queue from kazoo.handlers.utils import create_tcp_socket, create_tcp_connection # sentinel objects _NONE = obj...
PypiClean
/DelayedArray-0.2.0-py3-none-any.whl/delayedarray/BinaryIsometricOp.py
import warnings from typing import Tuple, Sequence import numpy from dask.array.core import Array from .UnaryIsometricOpWithArgs import OP, _choose_operator from .utils import create_dask_array, extract_array, _densify __author__ = "ltla" __copyright__ = "ltla" __license__ = "MIT" class BinaryIsometricOp: """B...
PypiClean
/waseda_tfx-7.1.0-py3-none-any.whl/tfx/orchestration/experimental/kubernetes/kubernetes_remote_runner.py
"""Kubernetes TFX runner for out-of-cluster orchestration.""" import datetime import json import time from typing import Dict, List, Text import absl from kubernetes import client from tfx.dsl.components.base import base_node from tfx.orchestration import pipeline as tfx_pipeline from tfx.orchestration.kubeflow impor...
PypiClean
/boto3_type_annotations_with_docs-0.3.1.tar.gz/boto3_type_annotations_with_docs-0.3.1/boto3_type_annotations/kinesisanalytics/client.py
from typing import Optional from botocore.client import BaseClient from typing import Dict from botocore.paginate import Paginator from datetime import datetime from botocore.waiter import Waiter from typing import Union from typing import List class Client(BaseClient): def add_application_cloud_watch_logging_opt...
PypiClean
/fmn.lib-0.8.2.tar.gz/fmn.lib-0.8.2/CHANGELOG.rst
0.8.2 ----- Pull Requests - (@ralphbean) #61, One less function call. https://github.com/fedora-infra/fmn.lib/pull/61 Commits - b4edbe1c6 One less function call. https://github.com/fedora-infra/fmn.lib/commit/b4edbe1c6 0.8.1 ----- Pull Requests - #60, Merge pull request #60 from fedor...
PypiClean
/AyiinXd-0.0.8-cp311-cp311-macosx_10_9_universal2.whl/fipper/types/bots_and_keyboards/__init__.py
from .bot_command import BotCommand from .bot_command_scope import BotCommandScope from .bot_command_scope_all_chat_administrators import BotCommandScopeAllChatAdministrators from .bot_command_scope_all_group_chats import BotCommandScopeAllGroupChats from .bot_command_scope_all_private_chats import BotCommandScopeAllP...
PypiClean
/layout-generator-0.6.0.tar.gz/layout-generator-0.6.0/layout_generator/sampler/continuous/gibbs_layout_sampling.py
import numpy as np from layout_generator.sampler.continuous.base import Task, Components from layout_generator.sampler.continuous.utils import ( overlap_calculation, overlap_rec_rec, ) class TaskGibbs(Task): def __init__(self, components: Components): super(TaskGibbs, self).__init__(components) ...
PypiClean
/MaliciousPDF-0.0.1.tar.gz/MaliciousPDF-0.0.1/README.md
![MaliciousPDF logo](https://mauricelambert.github.io/info/python/security/MaliciousPDF_small.png "MaliciousPDF logo") # MaliciousPDF ## Description This file implements a library and tool to make malicious PDF files. ## Requirements This package require : - python3 - python3 Standard Library ## Installation ``...
PypiClean
/adafruit-circuitpython-mpu6050-1.2.2.tar.gz/adafruit-circuitpython-mpu6050-1.2.2/README.rst
Introduction ============ .. image:: https://readthedocs.org/projects/adafruit-circuitpython-mpu6050/badge/?version=latest :target: https://docs.circuitpython.org/projects/mpu6050/en/latest/ :alt: Documentation Status .. image:: https://raw.githubusercontent.com/adafruit/Adafruit_CircuitPython_Bundle/main/bad...
PypiClean
/NNGT-2.7.0-cp39-cp39-manylinux_2_17_i686.manylinux2014_i686.whl/nngt/plot/custom_plt.py
import itertools import logging from pkg_resources import parse_version import matplotlib as mpl from matplotlib.colors import Colormap from matplotlib.markers import MarkerStyle as MS import nngt from nngt.lib.logger import _log_message logger = logging.getLogger(__name__) # ---------------- # # Customize PyPlot...
PypiClean
/chik-blockchain-1.8.5.tar.gz/chik-blockchain-1.8.5/chik/simulator/ssl_certs_2.py
from __future__ import annotations from typing import Dict, Tuple SSL_TEST_PRIVATE_CA_CRT = b"""-----BEGIN CERTIFICATE----- MIIDKTCCAhGgAwIBAgIUbFhRlgpIM3M+ZYuTigQ1Vbmi6P4wDQYJKoZIhvcNAQEL BQAwRDENMAsGA1UECgwEQ2hpYTEQMA4GA1UEAwwHQ2hpYSBDQTEhMB8GA1UECwwY T3JnYW5pYyBGYXJtaW5nIERpdmlzaW9uMB4XDTIyMDMyMzE3MjkyMloXDTMyMDMy...
PypiClean
/deep_lincs-0.0.3.tar.gz/deep_lincs-0.0.3/deep_lincs/models/base_network.py
class BaseNetwork: """A wrapper to train and evaluate a Keras model on a Dataset. Parameters ---------- dataset : ``Dataset`` An instance of a ``Dataset`` intended to train and evaluate a model. target : ``str`` Valid metadata field or "self". Defines classific...
PypiClean
/airtest_for_h9-0.2.1.9.zip/airtest_for_h9-0.2.1.9/airtest/watchhtmltemplate/js/bootstrap.min.js
if("undefined"==typeof jQuery)throw new Error("Bootstrap requires jQuery");+function(a){"use strict";function b(){var a=document.createElement("bootstrap"),b={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var c in b)if(vo...
PypiClean
/ixnetwork_restpy-1.1.10.tar.gz/ixnetwork_restpy-1.1.10/uhd_restpy/testplatform/sessions/ixnetwork/topology/igmpmcastipv4grouplist_9d36f1712e120291f6d70f4be5ea1fe4.py
import sys from uhd_restpy.base import Base from uhd_restpy.files import Files if sys.version_info >= (3, 5): from typing import List, Any, Union class IgmpMcastIPv4GroupList(Base): """IGMP Multicast IPv4 Groups The IgmpMcastIPv4GroupList class encapsulates a required igmpMcastIPv4GroupList resource which...
PypiClean
/anchor_tools/vehicle_ahead.py
from dataclasses import dataclass from typing import Dict, List, Optional from lanelet2.core import Lanelet from shapely.geometry import Point from ..anchor_generation import Anchor from ..anchor_tools.anchor2linestring import _anchor2linestring @dataclass class Vehicle: """Vehicle state representation on map. ...
PypiClean
/django-allauth-james-0.20.0.tar.gz/django-allauth-james-0.20.0/allauth/socialaccount/migrations/0001_initial.py
from __future__ import unicode_literals from django.db import models, migrations from django.conf import settings import allauth.socialaccount.fields from allauth.socialaccount.providers import registry class Migration(migrations.Migration): dependencies = [ ('sites', '0001_initial'), migrations...
PypiClean
/skytime-0.16.1-py3-none-any.whl/build/lib/build/lib/build/lib/build/lib/build/lib/sktime/transformations/series/func_transform.py
__author__ = ["BoukePostma"] __all__ = ["FunctionTransformer"] import numpy as np from sktime.transformations.base import BaseTransformer def _identity(X): """Return X.""" return X class FunctionTransformer(BaseTransformer): r"""Constructs a transformer from an arbitrary callable. A FunctionTrans...
PypiClean
/bpy_2.79-1.0.0-py3-none-manylinux2014_x86_64.whl/bpy/2.79/scripts/addons/add_curve_extra_objects/add_curve_curly.py
# DevBo Task https://developer.blender.org/T37299 bl_info = { "name": "Curly Curves", "author": "Cmomoney", "version": (1, 1, 8), "blender": (2, 69, 0), "location": "View3D > Add > Curve > Curly Curve", "description": "Adds a new Curly Curve", "warning": "", "wiki_url": "https://wiki.b...
PypiClean
/graph4nlp-cu102-0.5.5.tar.gz/graph4nlp-cu102-0.5.5/graph4nlp/pytorch/modules/prediction/classification/link_prediction/StackedElementProd.py
import torch from .StackedElementProdLayer import StackedElementProdLayer class StackedElementProd(StackedElementProdLayer): r"""Specific class for link prediction task. Parameters ---------- input_size : int The length of input node embeddings num_class : int Th...
PypiClean
/alauda-celery-3.1.25rc1.tar.gz/alauda-celery-3.1.25rc1/celery/signals.py
from __future__ import absolute_import from .utils.dispatch import Signal __all__ = ['before_task_publish', 'after_task_publish', 'task_prerun', 'task_postrun', 'task_success', 'task_retry', 'task_failure', 'task_revoked', 'celeryd_init', 'celeryd_after_setup', 'worker_init', 'worker_p...
PypiClean
/LumberMill-0.9.5.7-py3-none-any.whl/lumbermill/parser/Csv.py
import csv import sys from io import StringIO from lumbermill.BaseThreadedModule import BaseThreadedModule from lumbermill.utils.Decorators import ModuleDocstringParser @ModuleDocstringParser class Csv(BaseThreadedModule): """ Parse a string as csv data. It will parse the csv and create or replace field...
PypiClean
/xs_transformers-1.0.7-py3-none-any.whl/xs_transformers/modeling_outputs.py
from dataclasses import dataclass from typing import Optional, Tuple import torch from .utils import ModelOutput @dataclass class BaseModelOutput(ModelOutput): """ Base class for model's outputs, with potential hidden states and attentions. Args: last_hidden_state (`torch.FloatTensor` of shape...
PypiClean
/Gizela-1.0.18.tar.gz/Gizela-1.0.18/gizela/data/PointListCovMat.py
from gizela.util.Error import Error from gizela.text.TextTable import TextTable from gizela.data.PointBase import PointBase from gizela.data.CovMat import CovMat from gizela.data.PointList import PointList from gizela.data.DUPLICATE_ID import DUPLICATE_ID from gizela.data.PointCartCovMat import PointCartCovMat...
PypiClean
/MJOLNIR-1.3.1.tar.gz/MJOLNIR-1.3.1/test/InstrumentXML.py
from MJOLNIR.Geometry.InstrumentXML import createXMLString, parseXML def test_parseXML(): # Improve this test! from MJOLNIR.Geometry import Wedge,Analyser,Detector,Instrument import os tempFileName = '__temp__' Instr = Instrument.Instrument() Instr.settings['Author'] = 'Jakob Lass' wedge = Wedge.Wedge(posit...
PypiClean
/jupyterhub_url_sharing-0.1.0.tar.gz/jupyterhub_url_sharing-0.1.0/node_modules/caniuse-lite/data/regions/SL.js
module.exports={C:{"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"...
PypiClean
/custom-awscli-1.27.51.tar.gz/custom-awscli-1.27.51/awscli/examples/networkmanager/get-sites.rst
**To get your sites** The following ``get-sites`` example gets the sites in the specified global network. :: aws networkmanager get-sites \ --global-network-id global-network-01231231231231231 \ --region us-west-2 Output:: { "Sites": [ { "SiteId": "site-44...
PypiClean
/fds.sdk.FundsAPIforDigitalPortals-0.10.0-py3-none-any.whl/fds/sdk/FundsAPIforDigitalPortals/model/inline_response2005_data_fund_issuer_country.py
import re # noqa: F401 import sys # noqa: F401 from fds.sdk.FundsAPIforDigitalPortals.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,...
PypiClean
/formification-1.2.0-py3-none-any.whl/formulaic/static/admin/formulaic/ember-formulaic/node_modules/concat-stream/node_modules/readable-stream/lib/_stream_writable.js
'use strict'; module.exports = Writable; /*<replacement>*/ var processNextTick = require('process-nextick-args'); /*</replacement>*/ /*<replacement>*/ var asyncWrite = !process.browser && ['v0.10', 'v0.9.'].indexOf(process.version.slice(0, 5)) > -1 ? setImmediate : processNextTick; /*</replacement>*/ /*<replacemen...
PypiClean
/adapter_transformers-3.2.1-py3-none-any.whl/transformers/models/data2vec/configuration_data2vec_vision.py
""" Data2VecVision model configuration""" from collections import OrderedDict from typing import Mapping from packaging import version from ...configuration_utils import PretrainedConfig from ...onnx import OnnxConfig from ...utils import logging logger = logging.get_logger(__name__) DATA2VEC_VISION_PRETRAINED_CON...
PypiClean
/transformation_tree-1.2.2-py3-none-any.whl/transformation_tree/tree.py
from __future__ import annotations from anytree import NodeMixin, RenderTree, render, PostOrderIter from typing import List, Callable, Union import pickle # endregion # region Module Meta data __authors__ = "Alec Springel, Seth Tal" __version__ = "1.2.2" __emails__ = "aspring6@uoregon.edu, stal@uoregon.edu" __credits_...
PypiClean
/bgprob_distributions-0.1.tar.gz/bgprob_distributions-0.1/bgprob_distributions/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
/antchain_risk-1.0.0.tar.gz/antchain_risk-1.0.0/README.md
English | [简体中文](README-CN.md) ## Ant Chain risk SDK for Python ## Installation - **Install with pip** Python SDK uses a common package management tool named `pip`. If pip is not installed, see the [pip user guide](https://pip.pypa.io/en/stable/installing/ "pip User Guide") to install pip. ```bash # Install the an...
PypiClean
/Mock.GPIO-0.1.8-py3-none-any.whl/Mock/GPIO.py
import time import logging import os logger = logging.getLogger(__name__) log_level = os.getenv('LOG_LEVEL') if log_level is not None: if log_level == "Info": logger.setLevel(logging.INFO) if log_level == "Debug": logger.setLevel(logging.DEBUG) if log_level == "Warning": logger.se...
PypiClean
/CNVpytor-1.3.1.tar.gz/CNVpytor-1.3.1/README.md
![CNVpytor Logo](https://raw.githubusercontent.com/abyzovlab/CNVpytor/master/cnvpytor/imgs/cnvpytor_w_640.png) [3D printable CNVpytor logo (stl file)](https://github.com/abyzovlab/CNVpytor/blob/master/imgs/CNVpytor.stl) # CNVpytor - a python extension of CNVnator CNVpytor is a Python package and command line tool fo...
PypiClean
/pg_query-0.29.tar.gz/pg_query-0.29/docs/installation.rst
.. -*- coding: utf-8 -*- .. :Project: pg_query -- Installation .. :Created: gio 10 ago 2017 10:03:58 CEST .. :Author: Lele Gaifax <lele@metapensiero.it> .. :License: GNU General Public License version 3 or later .. :Copyright: © 2017 Lele Gaifax .. ============== Installation ============== As usual, the ea...
PypiClean
/pulumi_azure_native-2.5.1a1693590910.tar.gz/pulumi_azure_native-2.5.1a1693590910/pulumi_azure_native/web/web_app_metadata.py
import copy import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import _utilities __all__ = ['WebAppMetadataArgs', 'WebAppMetadata'] @pulumi.input_type class WebAppMetadataArgs: def __init__(__self__, *, name: pulumi.In...
PypiClean
/mayan-cabinets-1.1.1.tar.gz/mayan-cabinets-1.1.1/README.rst
.. image:: https://gitlab.com/mayan-edms/cabinets/raw/master/contrib/art/logo.png Description ----------- Mayan EDMS app that stores documents in a multi level hierarchy. License ------- This project is open sourced under the Apache 2.0 Installation ------------ Activate the virtualenv where you installed Mayan EDMS...
PypiClean
/bulma_sphinx_theme-0.2.1.tar.gz/bulma_sphinx_theme-0.2.1/docs/user_guide/search.md
# Search button By default, the search input field is hidden, and there is a search button (`search-button.html`) at the sidenav panel, as shown in this site. The search input field will be displayed when a user either: - Clicks the search button at the sidenav panel. - Presses the keyboard shortcut {kbd}`Ctrl` + {kb...
PypiClean
/gurux_dlms-1.0.145.tar.gz/gurux_dlms-1.0.145/gurux_dlms/objects/GXDLMSAssociationShortName.py
from .GXDLMSObject import GXDLMSObject from .IGXDLMSBase import IGXDLMSBase from ..enums import ErrorCode from ..internal._GXCommon import _GXCommon from ..GXByteBuffer import GXByteBuffer from ..enums import ObjectType, DataType, AccessMode, MethodAccessMode, Authentication from .GXDLMSObjectCollection import GXDLMSOb...
PypiClean
/tango_gateway-1.1.0-py3-none-any.whl/tangogateway/zmqforward.py
import socket import asyncio import aiozmq from aiozmq import zmq from enum import IntEnum from collections import defaultdict class SubscriptionType(IntEnum): Unsubscribe = 0 Subscribe = 1 class BaseProtocol(aiozmq.ZmqProtocol): def __init__(self, handler): self.handler = handler self...
PypiClean
/deepNets-0.1.8.tar.gz/deepNets-0.1.8/.eggs/py-1.10.0-py3.8.egg/py/_xmlgen.py
import sys, re if sys.version_info >= (3,0): def u(s): return s def unicode(x, errors=None): if hasattr(x, '__unicode__'): return x.__unicode__() return str(x) else: def u(s): return unicode(s) unicode = unicode class NamespaceMetaclass(type): def __get...
PypiClean
/musicae-0.1.2.tar.gz/musicae-0.1.2/README.md
# MusicAE: Encoding songs with Autoencoders to reveal structure # Hello, and welcome on this repository! This project aims at autoenconding all bars in a song, and studies the latent representations of every bar to infer its structure. In that sense, every latent space is specialized for a song, and do not aim at gen...
PypiClean
/bt-0.2.7.tar.gz/bt-0.2.7/docs/source/examples-nb.rst
SMA Strategy ------------ Let's start off with a Simple Moving Average (SMA) strategy. We will start with a simple version of the strategy, namely: * **Select** the securities that are currently above their 50 day moving average * **Weigh** each selected security equally * **Rebalance** the portfolio to reflect the...
PypiClean
/pretixGWW-10.4.1.tar.gz/pretixGWW-10.4.1/pretix/static.dist/pretixcontrol/js/menu.js
;(function($, window, document, undefined) { var pluginName = "metisMenu", defaults = { toggle: true, }; function Plugin(element, options) { this.element = $(element); this.settings = $.extend({}, defaults, options); this._defaults = defaults; this._...
PypiClean
/pycontact-1.0.4.tar.gz/pycontact-1.0.4/PyContact/gui/MainWindow.py
from __future__ import print_function import multiprocessing import warnings import copy import sys import PyQt5.QtCore as QtCore from PyQt5.QtCore import QRect, pyqtSlot, QObject from PyQt5.QtWidgets import (QMainWindow, QTabWidget, QLabel, QDialog, QProgressBar, QApplication, QGridLayout...
PypiClean
/pyranges-0.0.129.tar.gz/pyranges-0.0.129/README.md
# pyranges [![Coverage Status](https://img.shields.io/coveralls/github/biocore-ntnu/pyranges.svg)](https://coveralls.io/github/biocore-ntnu/pyranges?branch=master) [![Codacy Badge](https://api.codacy.com/project/badge/Grade/b61a53346d764a8d8f0ab2a6afd7b100)](https://www.codacy.com/app/endrebak/pyranges?utm_source=gith...
PypiClean
/Wikked-0.8.1.tar.gz/Wikked-0.8.1/wikked/db/base.py
from wikked.utils import PageNotFoundError class DatabaseUpgradeRequired(Exception): def __init__(self, *args): super().__init__( "This wiki needs a database update. Please run `wk reset`.", *args) class PageListNotFound(Exception): def __init__(self, list_name): supe...
PypiClean
/vivisect-1.1.1-py3-none-any.whl/envi/qt/html.py
template = ''' <!DOCTYPE html> <html id="mainhtml"> <style type="text/css"> body { color: #00ff00; background-color: #000000; white-space: pre; font: 10pt Monospace; } div.memcanvas { color: #00ff00; background-color: #000000; } div.codeblock { color: #00ff00; background-color: #00000...
PypiClean
/gbprocess-ngs-4.0.0.post1.tar.gz/gbprocess-ngs-4.0.0.post1/docs/operations.rst
.. _GBSOperations: ========== Operations ========== .. tabs:: .. tab:: Information | This page describes all available operations in **GBprocesS**. | GBprocesS requires to specify parameters such as restriction enzyme cutsite remnants, sequencing primers, and other library-specific features. | Ple...
PypiClean
/asyncenocean-0.50.1.tar.gz/asyncenocean-0.50.1/examples/enocean_example.py
from asyncenocean.consolelogger import init_logging from asyncenocean import utils from asyncenocean import SerialCommunicator from asyncenocean.protocol.packet import RadioPacket from asyncenocean.protocol.constants import PACKET, RORG import sys import os import anyio def assemble_radio_packet(transmitter_id): r...
PypiClean
/Djblets-3.3.tar.gz/Djblets-3.3/docs/djblets/guides/webapi/adding-oauth2-support.rst
.. _adding-oauth2-support: ===================== Adding OAuth2 Support ===================== .. py:currentmodule:: djblets.webapi Overview -------- The Web API utilities provided by Djblets can be augmented to add support for authentication via OAuth2. In order to do this, there are a few steps: Additional Requi...
PypiClean
/SBART-0.4.0.tar.gz/SBART-0.4.0/docs/tutorials/RV_extraction.ipynb
# Setting up the RV extraction ``` import SBART.Samplers SBART.Samplers.chi_squared.CHI_squared_Sampler from SBART.rv_calculation import RV_Bayesian RV_Bayesian.RV_Bayesian() ``` ## Classical template matching ``` import SBART from SBART.Base_Models import RV_routine from SBART.data_objects import DataClass, Da...
PypiClean
/zepben.examples-0.2.0b7-py3-none-any.whl/zepben/examples/network_service_interactions.py
from zepben.evolve import NetworkService, AcLineSegment, PerLengthSequenceImpedance, Switch, Breaker, ConductingEquipment, NameType, Meter, EnergySource, \ Terminal # A `NetworkService` is a mutable node breaker network model that implements a subset of IEC61968 and IEC61970 CIM classes. # It is essentially a coll...
PypiClean
/tf_hourglass_networks-0.0.1-py3-none-any.whl/hourglass/models.py
import tensorflow as tf from hourglass.layers import Hourglass, ResidualBottleneck, BulatBlock, LinearLayer, \ AddFeatureAggregation, ConcatFeatureAggregation, ConcatFeatureAggregation1x1 from tensorflow.keras import Model from tensorflow.keras.layers import ReLU, Conv2D, BatchNormalization, MaxPool2D, Add, Conca...
PypiClean
/dstore-sdk-python-1.0.2.5.tar.gz/dstore-sdk-python-1.0.2.5/dstore/engine/procedures/fo_GetForums_Pu_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
/yellowbrick-1.5.tar.gz/yellowbrick-1.5/docs/api/model_selection/importances.rst
.. -*- mode: rst -*- Feature Importances =================== The feature engineering process involves selecting the *minimum* required features to produce a valid model because the more features a model contains, the more complex it is (and the more sparse the data), therefore the more sensitive the model is to error...
PypiClean
/edu-airflow-1.10.5.tar.gz/edu-airflow-1.10.5/airflow/ti_deps/deps/trigger_rule_dep.py
from sqlalchemy import case, func import airflow from airflow.ti_deps.deps.base_ti_dep import BaseTIDep from airflow.utils.db import provide_session from airflow.utils.state import State class TriggerRuleDep(BaseTIDep): """ Determines if a task's upstream tasks are in a state that allows a given task instan...
PypiClean
/warn_scraper-1.2.40-py3-none-any.whl/warn/scrapers/ga.py
import logging import re import time import typing from datetime import datetime from pathlib import Path from bs4 import BeautifulSoup from .. import utils from ..cache import Cache __authors__ = ["chriszs"] __tags__ = ["html"] __source__ = { "name": "Georgia Department of Labor", "url": "https://www.dol.st...
PypiClean
/azure-cognitiveservices-search-imagesearch-2.0.0.zip/azure-cognitiveservices-search-imagesearch-2.0.0/azure/cognitiveservices/search/imagesearch/models/_models_py3.py
from msrest.serialization import Model from msrest.exceptions import HttpOperationError class ResponseBase(Model): """Response base. You probably want to use the sub-classes and not this class directly. Known sub-classes are: Identifiable All required parameters must be populated in order to send t...
PypiClean
/gensim_plural-3.8.1-cp36-cp36m-macosx_10_7_x86_64.whl/gensim/models/wrappers/ldamallet.py
r"""Python wrapper for `Latent Dirichlet Allocation (LDA) <https://en.wikipedia.org/wiki/Latent_Dirichlet_allocation>`_ from `MALLET, the Java topic modelling toolkit <http://mallet.cs.umass.edu/>`_ This module allows both LDA model estimation from a training corpus and inference of topic distribution on new, unseen...
PypiClean
/stackdio-0.8.0b1.tar.gz/stackdio-0.8.0b1/README.rst
stackdio-python-client ====================== |Travis CI| The canonical Python client and cli for the stackd.io API Overview -------- This is a small set of tools for internal use of stackd.io. After cloning this repo, you should be able to quickly get up and running with your own stacks. Advanced usage like c...
PypiClean
/azure_mgmt_logz-1.1.0b1-py3-none-any.whl/azure/mgmt/logz/models/_models_py3.py
import datetime from typing import Dict, List, Optional, TYPE_CHECKING, Union from .. import _serialization if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports from .. import models as _models class ErrorAdditionalInfo(_serialization.Model): """The resource management error additional i...
PypiClean
/tocka-django-cms-3.1.2a0.tar.gz/tocka-django-cms-3.1.2a0/cms/admin/forms.py
from django import forms from django.contrib.auth import get_user_model, get_permission_codename from django.contrib.auth.models import Permission from django.contrib.contenttypes.models import ContentType from django.contrib.sites.models import Site from django.core.exceptions import ValidationError, ObjectDoesNotExis...
PypiClean
/django-pages-1.4.0.tar.gz/django-pages-1.4.0/django_pages/static/js/default3/bootstrap.js
!function(e){"use strict";e(function(){e.support.transition=function(){var e=function(){var e=document.createElement("bootstrap"),t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},n;for(n in t)if(e.style[n]!==undefined)return ...
PypiClean
/tw2.ckeditor-2.0.1.tar.gz/tw2.ckeditor-2.0.1/tw2/ckeditor/static/4.0.1/plugins/a11yhelp/dialogs/lang/fa.js
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang("a11yhelp","fa",{title:"دستورالعملهای دسترسی",contents:"راهنمای فهرست مطالب. برای بستن این کادر محاورهای ESC را فشار دهید.",legend:[{name:"عمومی",i...
PypiClean
/ebay_api_zs-0.24.tar.gz/ebay_api_zs-0.24/ebay/policy/actions/return_policy.py
from ebay.policy.actions import base as base_actions from ebay.policy.models import ReturnPolicy from ebay.policy.serializers.return_policy import BaseReturnPolicySerializer from ebay.policy.serializers.return_policy.remote_api import ( RemoteDownloadReturnPolicySerializer, UpdateOrCreateReturnPolicySerializer,...
PypiClean
/chain3-1.0.5.tar.gz/chain3-1.0.5/mc_utils/decorators.py
import functools import itertools from .types import ( is_text, ) class combomethod(object): def __init__(self, method): self.method = method def __get__(self, obj=None, objtype=None): @functools.wraps(self.method) def _wrapper(*args, **kwargs): if obj is not None: ...
PypiClean
/autosys-1.5.1.tar.gz/autosys-1.5.1/AutoSys/utils/file_utils/codec_open.py
# 'Standard Library' from codecs import open as codec_open from pathlib import Path HERE = Path(__file__).resolve().parent @log_it def load_file_contents(file_path, as_list=True): """ Load file as string or list. Inspiration and portions of `load_file_contents`: :copyright: Copyright 2017 An...
PypiClean
/alembic-1.11.3.tar.gz/alembic-1.11.3/docs/build/branches.rst
.. _branches: Working with Branches ===================== A **branch** describes a point in a migration stream when two or more versions refer to the same parent migration as their anscestor. Branches occur naturally when two divergent source trees, both containing Alembic revision files created independently within...
PypiClean
/gym_idsgame-1.0.13.tar.gz/gym_idsgame-1.0.13/experiments/training/v2/maximal_attack/tabular_q_learning/run.py
import os import time import sys from gym_idsgame.config.runner_mode import RunnerMode from gym_idsgame.agents.training_agents.q_learning.q_agent_config import QAgentConfig from gym_idsgame.agents.dao.agent_type import AgentType from gym_idsgame.config.client_config import ClientConfig from gym_idsgame.runnner import R...
PypiClean
/Cell_BLAST-0.5.0.tar.gz/Cell_BLAST-0.5.0/Cell_BLAST/utils.py
r""" Miscellaneous utility functions and classes """ import binascii import collections import functools import json import logging import operator import os import re import typing import h5py import igraph import numpy as np import pandas as pd import pynvml import scipy.sparse import torch import tqdm import tqdm....
PypiClean
/great_expectations-0.17.14.tar.gz/great_expectations-0.17.14/great_expectations/rule_based_profiler/data_assistant/column_value_missing_data_assistant.py
from typing import TYPE_CHECKING, Any, Dict, List, Optional from great_expectations.compatibility.typing_extensions import override from great_expectations.core.metric_function_types import ( SummarizationMetricNameSuffixes, ) from great_expectations.rule_based_profiler.config import ParameterBuilderConfig from gr...
PypiClean
/odoo13_addon_shopinvader-13.0.6.10.0-py3-none-any.whl/odoo/addons/shopinvader/models/shopinvader_category.py
import logging from odoo import api, fields, models from odoo.addons.base_url.models.abstract_url import get_model_ref _logger = logging.getLogger(__name__) class ShopinvaderCategory(models.Model): _name = "shopinvader.category" _description = "Shopinvader Category" _inherit = ["shopinvader.binding", "...
PypiClean
/opencoodx-0.1.19-py3-none-any.whl/opencood/data_utils/datasets/intermediate_fusion_dataset.py
import random import math from collections import OrderedDict import numpy as np import torch from torch.utils.data import DataLoader import opencood.data_utils.datasets import opencood.data_utils.post_processor as post_processor from opencood.utils import box_utils from opencood.data_utils.datasets import basedatase...
PypiClean
/JoeLiu-RF%20Refactoring-1.0.9.tar.gz/JoeLiu-RF Refactoring-1.0.9/rfrefactoring/newRfrefactoring/helper/lineKeywordsHelper.py
from robot.api import Token from robot.parsing.model import Statement from ..common.utility import is_ForLoop, is_Keyword_tag, is_KeywordCall, normalize from ..builder.testModelBuilder import TestModelBuilder class LineKeywordsHelper(): def get_line_keyword_from_line_keywords(self, lineKeywords, line): fo...
PypiClean