id
stringlengths
1
8
text
stringlengths
6
1.05M
dataset_id
stringclasses
1 value
/nniv04-0.4.1-py3-none-any.whl/nniv04-0.4.1.data/data/nni/node_modules/moment/locale/lb.js
;(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, (function (moment) { 'use strict'; ...
PypiClean
/ais_dom-2023.7.2-py3-none-any.whl/homeassistant/components/qwikswitch/sensor.py
from __future__ import annotations import logging from typing import Any from pyqwikswitch.qwikswitch import SENSORS from homeassistant.components.sensor import SensorEntity from homeassistant.core import HomeAssistant, callback from homeassistant.helpers.entity_platform import AddEntitiesCallback from homeassistant...
PypiClean
/conan-2.0.10.tar.gz/conan-2.0.10/conans/model/build_info.py
import copy import json import os from collections import OrderedDict, defaultdict from conan.api.output import ConanOutput from conans.errors import ConanException from conans.util.files import load, save _DIRS_VAR_NAMES = ["_includedirs", "_srcdirs", "_libdirs", "_resdirs", "_bindirs", "_builddirs", ...
PypiClean
/railroad-0.5.0.tar.gz/railroad-0.5.0/CONTRIBUTING.rst
============ Contributing ============ Contributions are welcome, and they are greatly appreciated! Every little bit helps, and credit will always be given. You can contribute in many ways: Types of Contributions ---------------------- Report Bugs ~~~~~~~~~~~ Report bugs at https://github.com/s-m-i-t-a/railroad/i...
PypiClean
/djangoldp_activitypub-0.0.1.tar.gz/djangoldp_activitypub-0.0.1/djangoldp_activitypub/activities/__init__.py
import threading from django.conf import settings from djangoldp.models import Model from djangoldp_activitypub import models from djangoldp_activitypub.security import signing, keys from .objects import * from .verbs import * class AP(object): @classmethod def uri(self, name, *args): domain = sett...
PypiClean
/testgear-api-client-3.1.0.tar.gz/testgear-api-client-3.1.0/src/testgear_api_client/model/custom_attribute_put_model.py
import re # noqa: F401 import sys # noqa: F401 from testgear_api_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_type...
PypiClean
/gu-django-tinymce-2.7.2.tar.gz/gu-django-tinymce-2.7.2/tinymce/static/tiny_mce/plugins/advlink/langs/ja_dlg.js
tinyMCE.addI18n('ja.advlink_dlg',{"target_name":"\u30bf\u30fc\u30b2\u30c3\u30c8\u306e\u540d\u524d",classes:"\u30af\u30e9\u30b9",style:"\u30b9\u30bf\u30a4\u30eb",id:"ID","popup_position":"\u4f4d\u7f6e (X/Y)",langdir:"\u6587\u7ae0\u306e\u65b9\u5411","popup_size":"\u5927\u304d\u3055","popup_dependent":"\u4f9d\u5b58(Mozill...
PypiClean
/test-opsramp-analytics-utils-2.4.6.tar.gz/test-opsramp-analytics-utils-2.4.6/analytics_sdk/models.py
import os import json import uuid from datetime import datetime, timedelta import requests from sqlalchemy import create_engine, Column, DateTime, String, TEXT, ForeignKey, JSON, Boolean from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import relationship, sessionmaker from .constants impo...
PypiClean
/pypi-cli-0.4.1.tar.gz/pypi-cli-0.4.1/README.rst
******** pypi-cli ******** .. image:: https://badge.fury.io/py/pypi-cli.png :target: http://badge.fury.io/py/pypi-cli :alt: Latest version .. image:: https://travis-ci.org/sloria/pypi-cli.png?branch=master :target: https://travis-ci.org/sloria/pypi-cli :alt: Travis-CI A command-line interface to the ...
PypiClean
/NEMO_billing-2.6.7-py3-none-any.whl/NEMO_billing/prepayments/views/prepayments.py
from calendar import monthrange from NEMO.decorators import accounting_or_user_office_or_manager_required from NEMO.typing import QuerySetType from NEMO.utilities import extract_optional_beginning_and_end_dates, get_month_timeframe, month_list from NEMO.views.pagination import SortedPaginator from NEMO.views.usage imp...
PypiClean
/tnnt_templates-2.11.5.tar.gz/tnnt_templates-2.11.5/tnnt_templates/static/tnnt_templates/libs/highlight-js/11.01/languages/php.js
* @param {HLJSApi} hljs * @returns {LanguageDetail} * */ export default function(hljs) { const VARIABLE = { className: 'variable', begin: '\\$+[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*' + // negative look-ahead tries to avoid matching patterns that are not // Perl at all like $ident$, @ident@, e...
PypiClean
/locust-grasshopper-1.3.6.tar.gz/locust-grasshopper-1.3.6/README.md
<div id="top"></div> # Grasshopper A lightweight framework for performing load tests against an environment, primarily against an API. Grasshopper glues [Locust](https://locust.io/), [Pytest](https://docs.pytest.org/en/7.1.x/#), some plugins (namely [Locust InfluxDBListener](https://github.com/hoodoo-digital/locust-...
PypiClean
/google-cloud-secret-manager-2.16.3.tar.gz/google-cloud-secret-manager-2.16.3/google/cloud/secretmanager_v1/services/secret_manager_service/client.py
from collections import OrderedDict import os import re from typing import ( Dict, Mapping, MutableMapping, MutableSequence, Optional, Sequence, Tuple, Type, Union, cast, ) from google.api_core import client_options as client_options_lib from google.api_core import exceptions as...
PypiClean
/riptide-ffa-0.2.4.tar.gz/riptide-ffa-0.2.4/riptide/reading/sigproc.py
##### Standard imports ##### import os import struct ##### Non-standard imports ##### import numpy as np from astropy.coordinates import SkyCoord import astropy.units as uu # SIGPROC keys and associated data types # Copied from Ewan Barr's sigpyproc # NOTE: # Values of type int are assumed to be stored as 32-bit in...
PypiClean
/eric-ide-22.7.1.tar.gz/eric-ide-22.7.1/eric7/Preferences/ConfigurationPages/Ui_CondaPage.py
from PyQt6 import QtCore, QtGui, QtWidgets class Ui_CondaPage(object): def setupUi(self, CondaPage): CondaPage.setObjectName("CondaPage") CondaPage.resize(585, 165) self.verticalLayout_2 = QtWidgets.QVBoxLayout(CondaPage) self.verticalLayout_2.setObjectName("verticalLayout_2") ...
PypiClean
/impress-padmec-1.7.0.tar.gz/impress-padmec-1.7.0/impress/preprocessor/meshHandle/meshComponents.py
import pdb import numpy as np from pymoab import types, rng, topo_util from ..geoUtil import geoTools as gtool #from preprocessor.meshHandle.configTools.configClasses import variableInit class GetItem(object): def __init__(self, adj): self.fun = adj def __call__(self, item): return self.fu...
PypiClean
/hops-apache-beam-2.24.0.2.tar.gz/hops-apache-beam-2.24.0.2/apache_beam/examples/streaming_wordcount.py
# pytype: skip-file from __future__ import absolute_import import argparse import logging from past.builtins import unicode import apache_beam as beam import apache_beam.transforms.window as window from apache_beam.examples.wordcount import WordExtractingDoFn from apache_beam.options.pipeline_options import Pipelin...
PypiClean
/Hyperstatic-0.2.0-cp38-cp38-win_amd64.whl/hyperstatic/core/fe_post/beam.py
import os from token import DEDENT import numpy as np from hyperstatic.core.fe_model.assembly import Assembly from hyperstatic.core.fe_post import ResultResolver class BeamResultResolver(ResultResolver): def __init__(self,workpath:str,filename:str): super().__init__(workpath,filename) self.__workp...
PypiClean
/fhirclientr4e-4.0.8.tar.gz/fhirclientr4e-4.0.8/fhirclient/models/searchparameter.py
from . import domainresource class SearchParameter(domainresource.DomainResource): """ Search parameter for a resource. A search parameter that defines a named search item that can be used to search/filter on a resource. """ resource_type = "SearchParameter" _attribute_docstrings =...
PypiClean
/django-briefcase-0.1b2.zip/django-briefcase-0.1b2/briefcase/migrations/0004_auto__add_field_document_type.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 'Document.type' db.add_column('briefcase_document', 'type', self.gf('django.db.models.fields.related.ForeignK...
PypiClean
/intel_tensorflow-2.13.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/tensorflow/python/tpu/tpu_embedding_gradient.py
"""Optional helper for gradient handling.""" import collections from tensorflow.python.framework import dtypes from tensorflow.python.framework import ops from tensorflow.python.ops import array_ops from tensorflow.python.ops import variable_scope from tensorflow.python.ops import variables from tensorflow.python.pla...
PypiClean
/python_mobilitydb-0.1.3-py3-none-any.whl/mobilitydb/temporal/temporal.py
from abc import abstractmethod import warnings try: # Do not make psycopg2 a requirement. from psycopg2.extensions import ISQLQuote except ImportError: warnings.warn('psycopg2 not installed', ImportWarning) class Temporal: """ Abstract class for representing temporal values of any subtype. "...
PypiClean
/msgraph_beta_sdk-1.0.0a9-py3-none-any.whl/msgraph/generated/users/item/managed_devices/item/update_windows_device_account/update_windows_device_account_post_request_body.py
from __future__ import annotations from kiota_abstractions.serialization import AdditionalDataHolder, Parsable, ParseNode, SerializationWriter from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union if TYPE_CHECKING: from ......models import update_windows_device_account_action_parameter clas...
PypiClean
/ashd-py-0.4.tar.gz/ashd-py-0.4/ashd/scgi.py
import sys import threading class protoerr(Exception): pass class closed(IOError): def __init__(self): super(closed, self).__init__("The client has closed the connection.") def readns(sk): hln = 0 while True: c = sk.read(1) if c == ':': break elif c >= '0' ...
PypiClean
/ethz_iam_webservice-0.13rc1.tar.gz/ethz_iam_webservice-0.13rc1/ethz_iam_webservice/utils.py
import secrets import string import re import datetime import dateutil.parser from dateutil import tz allowed_special_chars = "# , - + . / : = ? ! $ @ [ ] { }".split() notification_code = { "gh": "To guest and host", "ght": "To guest, host and technical contact", "ht": "To host and technical contact", ...
PypiClean
/django-scrubber-1.2.0.tar.gz/django-scrubber-1.2.0/django_scrubber/scrubbers.py
from builtins import str as text import importlib import logging import faker from django.db import router, connections from django.db.models import Field, Func, Subquery, OuterRef from django.db.models.functions import Concat as DjangoConcat, Cast from django.db.utils import IntegrityError from django.utils.transla...
PypiClean
/ckls_testlib2-4.2.8.tar.gz/ckls_testlib2-4.2.8/sparknlp_jsl/annotator/resolution/sentence_entity_resolver.py
from sparknlp_jsl.common import * class SentenceResolverParams(HasCaseSensitiveProperties): """ Class used to have a common interface Sentence Resolver family. Parameters ---------- distanceFunction What distance function to use for WMD: 'EUCLIDEAN' or 'COSINE'. neighbours Num...
PypiClean
/json-lsp-0.2.0.tar.gz/json-lsp-0.2.0/json_lsp/node_modules/agent-base/README.md
agent-base ========== ### Turn a function into an [`http.Agent`][http.Agent] instance [![Build Status](https://travis-ci.org/TooTallNate/node-agent-base.svg?branch=master)](https://travis-ci.org/TooTallNate/node-agent-base) This module provides an `http.Agent` generator. That is, you pass it an async callback function...
PypiClean
/invenio-alma-0.9.1.tar.gz/invenio-alma-0.9.1/CHANGES.rst
.. Copyright (C) 2021 Graz University of Technology. invenio-alma is free software; you can redistribute it and/or modify it under the terms of the MIT License; see LICENSE file for more details. Changes ======= Version v0.9.1 (release 2023-05-26) - fix: changed api not applied Version v0.9.0 (release...
PypiClean
/PyEnzyme-1.1.4.tar.gz/PyEnzyme-1.1.4/docs/_getstarted/01_BasicUsage.rst
.. math:: \require{mhchem} Setting up an EnzymeML document =============================== In order to write an EnzymeML document it needs to be initialized by calling the ``EnzymeMLDocument`` object. At this point it is possible to add metadata such as a name, URL, DOI or PubmedID to the document. In addition, it is...
PypiClean
/pyformatters_textranksummarizer-0.5.138.tar.gz/pyformatters_textranksummarizer-0.5.138/RELEASE.md
# Release Instructions This document guides a contributor through creating a release of pyformatters_textranksummarizer. ## Preflight checks ### Ensure all tests pass Locally you can run `tox` to check that all tests pass, and check that tests against all supported environments are passing also by checking qsim's [...
PypiClean
/tg_newcalls-0.0.2-cp39-cp39-manylinux2014_armv7l.whl/newcalls/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts
/// <reference lib="es2015.symbol" /> interface SymbolConstructor { /** * A method that determines if a constructor object recognizes an object as one of the * constructor’s instances. Called by the semantics of the instanceof operator. */ readonly hasInstance: unique symbol; /** * A...
PypiClean
/google-drive-to-sqlite-0.4.tar.gz/google-drive-to-sqlite-0.4/google_drive_to_sqlite/utils.py
from contextlib import contextmanager import click import httpx import itertools from time import sleep class FilesError(Exception): pass def get_file(client, file_id, fields=None): file_url = "https://www.googleapis.com/drive/v3/files/{}".format(file_id) params = {} if fields is not None: p...
PypiClean
/python_packaging_dl-sidh1603-0.0.3.tar.gz/python_packaging_dl-sidh1603-0.0.3/src/oneNeuron/perceptron.py
import numpy as np import os import joblib import logging class Perceptron: def __init__(self, eta: float=None, epochs: int=None): self.weights = np.random.randn(3) * 1e-4 # small random weights training = (eta is not None) and (epochs is not None) if training: logging.info(f"i...
PypiClean
/pyfitterbap-0.4.1.tar.gz/pyfitterbap-0.4.1/include/fitterbap/pubsub.md
<!-- # Copyright 2020-2021 Jetperch LLC # # 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 i...
PypiClean
/ukmon_meteortools-2023.7.10.tar.gz/ukmon_meteortools-2023.7.10/ukmon_meteortools/rmsutils/plotCAMSOrbits.py
# # python code to plot orbits given a CAMS style Orbit Info file # import sys import os import datetime import matplotlib.pyplot as plt try: from wmpl.Utils.PlotOrbits import plotOrbits except: print('WMPL not available') def plotCAMSOrbits(orbitFile, outdir=None, hideplot=True): """ plots a set of...
PypiClean
/qiskit_terra-0.25.1-cp38-abi3-win32.whl/qiskit/quantum_info/operators/dihedral/dihedral.py
from __future__ import annotations import itertools import numpy as np from qiskit.exceptions import QiskitError from qiskit.quantum_info.operators.base_operator import BaseOperator from qiskit.quantum_info.operators.operator import Operator from qiskit.quantum_info.operators.symplectic.pauli import Pauli from qiskit....
PypiClean
/pytest-purkinje-0.1.6.tar.gz/pytest-purkinje-0.1.6/CHANGES.rst
ChangeLog ========= Some minor changes were omitted from this list. For details, see git log. Release 0.1.5 ------------- - **Breaking change:** replaced plugin parameter ``websocket_url`` with ``websocket_host`` and ``websocket_port``. Please update your ``pytest.ini`` accordingly if you use non-default setting...
PypiClean
/odooku_odoo_base-11.0.7-py35-none-any.whl/odoo/addons/web/static/lib/pdfjs/web/viewer.js
* * 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 * distribut...
PypiClean
/google-ads-21.3.0.tar.gz/google-ads-21.3.0/google/ads/googleads/v13/services/services/keyword_theme_constant_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
/pysmFISH-0.1.5.tar.gz/pysmFISH-0.1.5/dots_coords_correction.py
import argparse from distributed import Client,LocalCluster import multiprocessing import pickle from pysmFISH import dots_coords_calculations from pysmFISH import utils def dots_coords_correction(): """ This script is used to collect all the raw countings from the different hybridization, correct the ...
PypiClean
/tvmx-0.0.6-py3-none-any.whl/tvm/topi/nn/depthwise_conv2d.py
"""Depthwise convolution operators""" from __future__ import absolute_import as _abs from collections import namedtuple import tvm import numpy as np from tvm import te from .dilate import dilate from .pad import pad from .utils import get_pad_tuple from ..utils import simplify, get_const_tuple # workload description...
PypiClean
/kubeasy-sdk-0.1.24.tar.gz/kubeasy-sdk-0.1.24/kubeasy_sdk/deployment.py
from __future__ import annotations from imports import k8s from cdk8s import Chart from kubeasy_sdk.container import Container from kubeasy_sdk.utils.collections.containers import Containers from kubeasy_sdk.utils.resource import Rendered from kubeasy_sdk.volume import Volume from kubeasy_sdk.utils.collections.volumes...
PypiClean
/ntnx-aiops-py-client-4.0.2a1.tar.gz/ntnx-aiops-py-client-4.0.2a1/ntnx_aiops_py_client/api_client.py
from __future__ import absolute_import import datetime import atexit import json import mimetypes from multiprocessing.pool import ThreadPool import os import re import tempfile import sys import uuid import logging # python 2 and python 3 compatibility library import six from six.moves.urllib.parse import quote fro...
PypiClean
/ka-lite-static-0.17.6b2.tar.gz/ka-lite-static-0.17.6b2/kalite/packages/bundled/django/core/management/base.py
import os import sys from optparse import make_option, OptionParser import traceback import django from django.core.exceptions import ImproperlyConfigured from django.core.management.color import color_style from django.utils.encoding import force_str from django.utils.six import StringIO class CommandError(Excepti...
PypiClean
/FanFicFare-4.27.0.tar.gz/FanFicFare-4.27.0/fanficfare/adapters/adapter_fanficsme.py
# Copyright 2014 Fanficdownloader team, 2018 FanFicFare team # # 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 applica...
PypiClean
/Kr0nOs-3.4.1.tar.gz/Kr0nOs-3.4.1/kronbot/cogs/mod/mutes.py
import asyncio from typing import Optional, cast import discord from kronbot.core import checks, commands, i18n, modlog from kronbot.core.utils.chat_formatting import format_perms_list from kronbot.core.utils.mod import get_audit_reason, is_allowed_by_hierarchy from .abc import MixinMeta T_ = i18n.Translator("Mod",...
PypiClean
/trivial_torch_tools-0.6.4-py3-none-any.whl/trivial_torch_tools/__dependencies__/__sources__/super_hash/README.md
# What is this? A simple python tool for hashing objects that python normally treats as unhashable. There are also a few other tools such as ways of deeply hashing functions, and an system for extending this hashability to work with other existing classes, such as dataframes or neural networks. # How do I use this? ...
PypiClean
/tf-models-no-deps-2.11.2.tar.gz/tf-models-no-deps-2.11.2/official/nlp/modeling/layers/masked_lm.py
"""Masked language model network.""" # pylint: disable=g-classes-have-attributes import tensorflow as tf @tf.keras.utils.register_keras_serializable(package='Text') class MaskedLM(tf.keras.layers.Layer): """Masked language model network head for BERT modeling. This layer implements a masked language model based...
PypiClean
/pycalc-0.0.2.tar.gz/pycalc-0.0.2/README.rst
PyCalc ====== Python libraries such as numpy, sympy, and matplotlib in combination with IPython make for an excellent desktop calculator. Unfortunately, however, setting up an ipython session with all the necessary imports takes quite a while. Pycalc provides a way to quickly import all the libraries necessary for a p...
PypiClean
/visor_controlnet-1.1.tar.gz/visor_controlnet-1.1/visor_controlnet/annotator/midas/utils.py
import sys import re import numpy as np import cv2 import torch def read_pfm(path): """Read pfm file. Args: path (str): path to file Returns: tuple: (data, scale) """ with open(path, "rb") as file: color = None width = None height = None scale = N...
PypiClean
/wsadmin_type_hints-0.3.0-py3-none-any.whl/wsadmin_type_hints/core/AdminTask.py
from typing import Any, Literal, Union, overload, List from wsadmin_type_hints.typing_objects.object_name import ConfigurationObjectName def WIMCheckPassword(*args: Any) -> Any: """ Validates the user/pasword in the Federated repositories user registry """ ... def activateEdition(*args: Any) -> Any: """ Marks th...
PypiClean
/unofficial-superset-0.34.0.tar.gz/unofficial-superset-0.34.0/superset/migrations/env.py
import logging from logging.config import fileConfig from alembic import context from flask_appbuilder import Base from sqlalchemy import engine_from_config, pool # this is the Alembic Config object, which provides # access to the values within the .ini file in use. config = context.config # Interpret the config fil...
PypiClean
/jupyter_enterprise_gateway-3.2.2.tar.gz/jupyter_enterprise_gateway-3.2.2/etc/kernelspecs/spark_scala_kubernetes/bin/run.sh
if [ "${EG_IMPERSONATION_ENABLED}" = "True" ]; then # IMPERSONATION_OPTS="--proxy-user ${KERNEL_USERNAME:-UNSPECIFIED}" USER_CLAUSE="as user ${KERNEL_USERNAME:-UNSPECIFIED}" else # IMPERSONATION_OPTS="" USER_CLAUSE="on behalf of user ${KERNEL_USERNAME:-UNSPECIFIED}" fi echo echo "Startin...
PypiClean
/thirdweb_sdk-3.1.1a0.tar.gz/thirdweb_sdk-3.1.1a0/thirdweb/abi/upgradeable.py
# pylint: disable=too-many-arguments import json from typing import ( # pylint: disable=unused-import Any, List, Optional, Tuple, Union, ) from eth_utils import to_checksum_address from mypy_extensions import TypedDict # pylint: disable=unused-import from hexbytes import HexBytes from web3 impo...
PypiClean
/liveblog-1.5.0.tar.gz/liveblog-1.5.0/livedesk/impl/blog_collaborator.py
from ..api.blog_collaborator import IBlogCollaboratorService from acl.api.filter import IAclFilter from acl.spec import Filter from ally.api.extension import IterPart from ally.container import wire from ally.container.ioc import injected from ally.container.support import setup from ally.exception import InputError, R...
PypiClean
/sofia_redux-1.3.3.tar.gz/sofia_redux-1.3.3/sofia_redux/toolkit/image/combine.py
import warnings from astropy.stats import sigma_clip import numpy as np __all__ = ['combine_images'] def combine_images(data, variance=None, method='median', weighted=True, robust=True, returned=True, **kwargs): """Combine input image arrays. Uses masked arrays to ignore input NaNs and...
PypiClean
/igz_mgmt-0.1.0-py3-none-any.whl/igz_mgmt/schemas/app_services.py
import typing import pydantic import igz_mgmt.constants import igz_mgmt.schemas # helper function def generate_scale_to_zero_spec(window_size: str) -> typing.List["ScaleResource"]: """Generates scale resource with metric name and window size. Args: window_size (str): Time to wait before scaling the...
PypiClean
/tsperf-1.1.0.tar.gz/tsperf-1.1.0/float_simulator/__init__.py
import random class FloatSimulator: """ The FloatSimulator produces consecutive float values based on a statistical model and the normal distribution. It can be used to simulate sensor data with more than 100.000 simulated values per second. To use the FloatSimulator instantiate an object and call t...
PypiClean
/collective.ckeditor-5.0.0a1.tar.gz/collective.ckeditor-5.0.0a1/src/collective/ckeditor/browser/ckeditor/plugins/specialchar/dialogs/lang/zh.js
/* Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ CKEDITOR.plugins.setLang("specialchar","zh",{euro:"歐元符號",lsquo:"左單引號",rsquo:"右單引號",ldquo:"左雙引號",rdquo:"右雙引號",ndash:"短破折號",mdash:"長破折號",iexcl:"倒置的驚嘆號",cent...
PypiClean
/repl_openbb-2.1.7-py3-none-any.whl/openbb_terminal/settings_controller.py
__docformat__ = "numpy" # IMPORTATION STANDARD import os import os.path import argparse import logging from pathlib import Path from typing import List import pytz # IMPORTATION THIRDPARTY from dotenv import set_key # IMPORTATION INTERNAL from openbb_terminal import config_plot as cfg_plot from openbb_terminal impor...
PypiClean
/janis-pipelines.core-0.13.1.tar.gz/janis-pipelines.core-0.13.1/janis_core/ingestion/galaxy/gxworkflow/updates/optionality.py
from janis_core.ingestion.galaxy.internal_model.workflow import Workflow from janis_core.ingestion.galaxy.internal_model.workflow.step.inputs import ( ConnectionInputValue, InputValue, StaticInputValue, WorkflowInputInputValue ) def update_components_optionality(value: InputValue, janis: Workflow) ...
PypiClean
/rcsb.utils.insilico3d-0.36.tar.gz/rcsb.utils.insilico3d-0.36/rcsb/utils/insilico3d/ModelReorganizer.py
__docformat__ = "google en" __author__ = "Dennis Piehl" __email__ = "dennis.piehl@rcsb.org" __license__ = "Apache 2.0" import logging import os.path import copy from datetime import datetime import pytz from mmcif.api.DataCategory import DataCategory from rcsb.utils.io.MarshalUtil import MarshalUtil from rcsb.utils.i...
PypiClean
/holobench-0.2.3.tar.gz/holobench-0.2.3/bencher/example/example_holosweep_tap.py
# pylint: disable=duplicate-code,unused-argument import bencher as bch import math import random import numpy as np import holoviews as hv from strenum import StrEnum from enum import auto class Function(StrEnum): fn_cos = auto() fn_sin = auto() fn_log = auto() fn_arctan = auto() def call(sel...
PypiClean
/PyCBC-2.2.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/pycbc/workflow/grb_utils.py
# # ============================================================================= # # Preamble # # ============================================================================= # """ This library code contains functions and classes that are used in the generation of pygrb workflows. ...
PypiClean
/starlink-pywrapper-0.3.tar.gz/starlink-pywrapper-0.3/starlink/ccdpack_help/findobj.rst
FINDOBJ ======= Purpose ~~~~~~~ Locates and centroids image features Description ~~~~~~~~~~~ This routine processes a list of NDFs, locating and centroiding image features (such as stars) which have groups of connected pixels above threshold values. Connected groups of pixels are accepted as objects if they have ...
PypiClean
/ipywebcam-0.1.13.tar.gz/ipywebcam-0.1.13/src/range.ts
import { arrayEqual, arrayRemove, calcMouseOffsetX } from './utils'; export interface RangeBarOption { max?: number; min?: number; step?: number; } export type OnRangeSelect = ( range: [number, number], rangeBar: RangeBar ) => any; export type OnMarkersChange = (markers: number[], rangeBar: RangeBar) => an...
PypiClean
/Hyperion-0.9.10.tar.gz/Hyperion-0.9.10/docs/_templates/autosummary/module.rst
{% if referencefile %} .. include:: {{ referencefile }} {% endif %} {{ objname }} {{ underline }} .. automodule:: {{ fullname }} {% block functions %} {% if functions %} .. rubric:: Functions .. autosummary:: {% for item in functions %} {{ item }} {%- endfor %} {% endif %} {% endblock ...
PypiClean
/eureka-opensource-1.0.3.tar.gz/eureka-opensource-1.0.3/static/yui-3.4.1/dd-drag/dd-drag-min.js
YUI.add("dd-drag",function(d){var e=d.DD.DDM,r="node",g="dragging",m="dragNode",c="offsetHeight",k="offsetWidth",h="drag:mouseDown",b="drag:afterMouseDown",f="drag:removeHandle",l="drag:addHandle",p="drag:removeInvalid",q="drag:addInvalid",j="drag:start",i="drag:end",n="drag:drag",o="drag:align",a=function(t){this._laz...
PypiClean
/pulumi_azure_nextgen-0.6.2a1613157620.tar.gz/pulumi_azure_nextgen-0.6.2a1613157620/pulumi_azure_nextgen/authorization/v20190901/__init__.py
# Export this package's modules as members: from ._enums import * from .get_policy_assignment import * from .get_policy_definition import * from .get_policy_definition_at_management_group import * from .get_policy_set_definition import * from .get_policy_set_definition_at_management_group import * from .policy_assignm...
PypiClean
/grafana-api-sdk-0.3.1.tar.gz/grafana-api-sdk-0.3.1/grafana_api/team.py
import json import logging from .model import ( APIModel, APIEndpoints, RequestsMethods, TeamObject, ) from .api import Api class Team: """The class includes all necessary methods to access the Grafana team API endpoints. Be aware that all functionalities inside the class only working with the co...
PypiClean
/oc_dltool-3.11.3-py3-none-any.whl/oc_dltoolv2/delivery_artifacts_checker.py
import logging import re from .delivery_info_helper import DeliveryInfoHelper from .delivery_exceptions import DeliveryDeniedException class DeliveryArtifactsChecker(DeliveryInfoHelper): def check_artifacts_included(self, delivery_resources): """ Check all necessary artifacts are in the delivery ...
PypiClean
/cortex-client-7.1.2.zip/cortex-client-7.1.2/cortex/viz.py
import matplotlib.pyplot as plt import seaborn as sns class Viz: """ A wrapper that assists users in running multiple commonly used visualizations on the same dataframe; not meant to be directly instantiated by clients. """ def __init__(self, df, figsize=(18, 9)): self.df = df self.c...
PypiClean
/swagger-conformance-0.2.5.tar.gz/swagger-conformance-0.2.5/swaggerconformance/client.py
import logging from pyswagger import App, Security from pyswagger.contrib.client.requests import Client as PyswaggerClient from .codec import CodecFactory from .schema import Api from .response import Response # pyswagger and requests make INFO level logs regularly by default, so lower # their logging levels to prev...
PypiClean
/pydemic-models-0.1.11.tar.gz/pydemic-models-0.1.11/pydemic/models/clinical_acessor.py
from typing import Union, TYPE_CHECKING import sidekick as sk if TYPE_CHECKING: from ..clinical_models import CrudeFR, HospitalizationWithDelay, HospitalizationWithOverflow ClinicalModel = Union["CrudeFR", "HospitalizationWithDelay", "HospitalizationWithOverflow"] class Clinical: """ Implements the...
PypiClean
/django-tour-0.7.0.tar.gz/django-tour-0.7.0/tour/templatetags/tour_tags.py
from copy import deepcopy from django import template from django.template.loader import get_template from tour.models import Tour from tour.serializers import TourSerializer register = template.Library() class TourNavNode(template.Node): def __init__(self, always_show=False): self.always_show = alway...
PypiClean
/flask_babel-3.1.0.tar.gz/flask_babel-3.1.0/README.md
# Flask Babel ![Tests](https://github.com/python-babel/flask-babel/workflows/Tests/badge.svg?branch=master) [![PyPI](https://img.shields.io/pypi/v/flask-babel.svg?maxAge=2592000)](https://pypi.python.org/pypi/Flask-Babel) Implements i18n and l10n support for Flask. This is based on the Python [babel][] and [pytz][] m...
PypiClean
/tensorflow-gnn-0.6.0.tar.gz/tensorflow-gnn-0.6.0/tensorflow_gnn/models/contrastive_losses/tasks.py
"""Contrastive loss tasks.""" from __future__ import annotations import abc from collections.abc import Callable, Sequence import functools from typing import Optional, Union import tensorflow as tf import tensorflow_gnn as tfgnn from tensorflow_gnn import runner from tensorflow_gnn.models.contrastive_losses import l...
PypiClean
/librec-0.0.5.tar.gz/librec-0.0.5/serving/deploy_feat_flask.py
import os import pickle import json from collections import defaultdict import numpy as np import pandas as pd import requests from sklearn.externals import joblib from flask import Flask, jsonify, request import sys from pathlib import Path sys.path.append(os.pardir) import libreco app = Flask(__name__) @app.route(...
PypiClean
/NREL_disco-0.4.2-py3-none-any.whl/disco/cli/make_upgrade_tables.py
import csv import json import itertools import logging from collections import namedtuple from concurrent.futures import ProcessPoolExecutor from pathlib import Path import click import pandas as pd from jade.common import CONFIG_FILE, JOBS_OUTPUT_DIR from jade.loggers import setup_logging from jade.jobs.job_configu...
PypiClean
/graph-explorer-2.0.3.tar.gz/graph-explorer-2.0.3/graph_explorer/graphs/__init__.py
import os from inspect import isclass from ..structured_metrics import PluginError from ..backend import get_action_on_rules_match from ..target import Target from .. import target as t from .. import convert from ..query import Query class Graphs(object): def __init__(self): self.plugins = [] def l...
PypiClean
/lizard-ui-5.3.tar.gz/lizard-ui-5.3/lizard_ui/static/openlayers/1.12-r7/lib/OpenLayers/Request.js
* @requires OpenLayers/Events.js */ /** * TODO: deprecate me * Use OpenLayers.Request.proxy instead. */ OpenLayers.ProxyHost = ""; /** * Namespace: OpenLayers.Request * The OpenLayers.Request namespace contains convenience methods for working * with XMLHttpRequests. These methods work with a cross-browse...
PypiClean
/meson-1.2.1-py3-none-any.whl/mesonbuild/modules/wayland.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
/python_lsp_server-1.7.4-py3-none-any.whl/pylsp/plugins/pylint_lint.py
"""Linter plugin for pylint.""" import collections import logging import sys import re from subprocess import Popen, PIPE import os import shlex from pylsp import hookimpl, lsp try: import ujson as json except Exception: # pylint: disable=broad-except import json log = logging.getLogger(__name__) # Pylint...
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_compute_node_template/__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 GoogleComputeNodeTemplate( _cdktf_9a9027ec.Terrafo...
PypiClean
/djblockchain-0.1.1.tar.gz/djblockchain-0.1.1/README.md
djblockchain is a Django app which provides tables to store data about blockchain transactions with a blockchain abstraction layer and a deployment spooler workflow. The Transaction table holds transaction data such as the contract name, address, function to call if any, and arguments in a JSONField, so you don't have...
PypiClean
/rapid-router-5.11.3.tar.gz/rapid-router-5.11.3/game/static/game/js/blockly/msg/js/fa.js
'use strict'; goog.provide('Blockly.Msg.fa'); goog.require('Blockly.Msg'); Blockly.Msg["ADD_COMMENT"] = "افزودن نظر"; Blockly.Msg["CANNOT_DELETE_VARIABLE_PROCEDURE"] = "متغیر '%1' را نمی‌توان پاک کرد، زیرا جزیی از تعریف تابع '%2' می‌باشد"; Blockly.Msg["CHANGE_VALUE_TITLE"] = "تغییر مقدار:"; Blockly.Msg["CLEAN_UP"] ...
PypiClean
/fine-tune-0.0.0.tar.gz/fine-tune-0.0.0/jina/clients/__init__.py
import argparse from typing import overload, Optional, Union __all__ = ['Client'] from ..enums import GatewayProtocolType if False: from .grpc import GRPCClient, AsyncGRPCClient from .websocket import WebSocketClient, AsyncWebSocketClient from .http import HTTPClient, AsyncHTTPClient # overload_inject_...
PypiClean
/dipex-4.54.5.tar.gz/dipex-4.54.5/integrations/ad_integration/import_ad_group_into_mo.py
import datetime import logging from operator import itemgetter from typing import Any from typing import Dict from typing import List from typing import Optional from typing import Tuple from uuid import UUID import click import sentry_sdk from click_option_group import optgroup from click_option_group import Required...
PypiClean
/tb-rest-client-3.5.tar.gz/tb-rest-client-3.5/tb_rest_client/api/api_ce/usage_info_controller_api.py
# Copyright 2023. ThingsBoard # # 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 writi...
PypiClean
/fastapi-0.103.0.tar.gz/fastapi-0.103.0/README.md
<p align="center"> <a href="https://fastapi.tiangolo.com"><img src="https://fastapi.tiangolo.com/img/logo-margin/logo-teal.png" alt="FastAPI"></a> </p> <p align="center"> <em>FastAPI framework, high performance, easy to learn, fast to code, ready for production</em> </p> <p align="center"> <a href="https://github...
PypiClean
/repl_openbb-2.1.7-py3-none-any.whl/openbb_terminal/stocks/sector_industry_analysis/stockanalysis_model.py
__docformat__ = "numpy" # pylint:disable=too-many-arguments,unexpected-keyword-arg import logging from typing import Dict, Any, List import numpy as np import pandas as pd from tqdm import tqdm import yfinance as yf from openbb_terminal.decorators import log_start_end from openbb_terminal.rich_config import console ...
PypiClean
/opencafe-0.3.5.tar.gz/opencafe-0.3.5/cafe/common/reporting/metrics.py
from datetime import datetime import os import errno import csv import six import sys class TestRunMetrics(object): """ Contains test timing and results metrics for a test. """ def __init__(self): self.total_tests = 0 self.total_passed = 0 self.total_errored = 0 self.t...
PypiClean
/taxonomy-connector-1.44.0.tar.gz/taxonomy-connector-1.44.0/taxonomy/tasks.py
from __future__ import absolute_import, unicode_literals import logging from celery import shared_task from taxonomy import utils from taxonomy.choices import ProductTypes from taxonomy.providers.utils import ( get_course_metadata_provider, get_program_metadata_provider, get_xblock_metadata_provider ) L...
PypiClean
/pro-football_reference_web_scrape_v2-0.2.0.tar.gz/pro-football_reference_web_scrape_v2-0.2.0/pro_football_reference_web_scraper_v2/team_splits.py
from pro_football_reference_web_scraper import team_game_log as t import pandas as pd def home_road(team: str, season: int, avg=True) -> pd.DataFrame: """A function that returns a team's home-road splits in a given season Returns a pandas DataFrame of a team's stats at home vs. on the road Args: ...
PypiClean
/rhoas_sdks-1.0.5.tar.gz/rhoas_sdks-1.0.5/sdks/connector_mgmt_sdk/rhoas_connector_mgmt_sdk/model/connector_namespace_request_all_of.py
import re # noqa: F401 import sys # noqa: F401 from rhoas_connector_mgmt_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...
PypiClean
/upaas-common-0.3.1.tar.gz/upaas-common-0.3.1/upaas/storage/local.py
from __future__ import unicode_literals import os import shutil import logging import datetime from upaas.config import base from upaas.storage.base import BaseStorage from upaas.storage.exceptions import StorageError, FileNotFound log = logging.getLogger(__name__) class LocalStorage(BaseStorage): configurat...
PypiClean
/c7n_tencentcloud-0.1.12-py3-none-any.whl/c7n_tencentcloud/resources/cvm.py
from retrying import RetryError from tencentcloud.common.exception import TencentCloudSDKException from c7n.exceptions import PolicyExecutionError from c7n.utils import type_schema, chunks, jmespath_search from c7n_tencentcloud.actions import TencentCloudBaseAction from c7n_tencentcloud.provider import resources from...
PypiClean
/done-1.0.4.tar.gz/done-1.0.4/sql_interp/esc_types.py
import re # Regular expressions to determine context. # Borrowed directly from SQL::Interp. RE_FLAGS = re.S | re.I NOT_IN_RE = re.compile(r'\b(?:NOT\s+)?IN\s*$', RE_FLAGS) SET_UPDATE_RE = re.compile(r'\b(?:ON\s+DUPLICATE\s+KEY\s+UPDATE|SET)\s*$', RE_FLAGS) INSERT_INTO_RE = re.compile(r'\bINSERT[\w\s]*\sINTO\s*[a-zA-Z_...
PypiClean
/checkpoint_schedules-0.0.81-py3-none-any.whl/checkpoint_schedules/hrevolve_sequences/disk_revolve.py
"""This module contains the functions to compute the Disk-Revolve schedules. """ from functools import partial from .basic_functions import (Operation as Op, Table, Sequence, Function, argmin) from .revolve import get_opt_0_table, revolve from .revolve_1d import revolve_1d, get_opt_1d_tabl...
PypiClean