id
stringlengths
1
8
text
stringlengths
6
1.05M
dataset_id
stringclasses
1 value
/nni_yds-0.3.7-py3-none-any.whl/nni_yds-0.3.7.data/data/nni/node_modules/validator/lib/isMobilePhone.js
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = isMobilePhone; var _assertString = require('./util/assertString'); var _assertString2 = _interopRequireDefault(_assertString); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }...
PypiClean
/slack_types-0.0.2-py3-none-any.whl/slack_types/web_api/admin_conversations_set_custom_retention_response.py
from dataclasses import dataclass from typing import Optional, Any, TypeVar, Type, cast T = TypeVar("T") def from_bool(x: Any) -> bool: assert isinstance(x, bool) return x def from_none(x: Any) -> Any: assert x is None return x def from_union(fs, x): for f in fs: try: re...
PypiClean
/django4-saml-idp-1.4.0.tar.gz/django4-saml-idp-1.4.0/README.md
# dj-saml-idp This is a fork of `deforestg/dj-saml-idp` which is a fork of `mobify/dj-saml-idp` that is distributed independently as `django4-saml-idp`. The original project is at https://github.com/guitarmanvt/django-saml2-idp `dj-saml-idp` implements the Identity Provider (IDP) side of the SAML 2.0 protocol and m...
PypiClean
/dis_sdk_python-2.6.1.tar.gz/dis_sdk_python-2.6.1/dis_sdk_python/dependency/urllib3/util/timeout.py
from __future__ import absolute_import # The default socket timeout, used by httplib to indicate that no timeout was # specified by the user from socket import _GLOBAL_DEFAULT_TIMEOUT import time from ..exceptions import TimeoutStateError # A sentinel value to indicate that no timeout was specified by the user in # u...
PypiClean
/biskit-2.4.3.tar.gz/biskit-2.4.3/Biskit/Fold_X.py
from Biskit import Executor, TemplateError from Biskit import BiskitError import Biskit.tools as T import re, string, tempfile import Biskit.molUtils as molUtils class Fold_XError( BiskitError ): pass class Fold_X( Executor ): """ Run fold_X with given PDBModel ============================== ...
PypiClean
/bmi3d-0.9.0-py3-none-any.whl/riglib/bmi/feedback_controllers.py
import numpy as np class FeedbackController(object): ''' Abstract class for feedback controllers, only used for type-checking & interface standardization ''' def __init__(self, *args, **kwargs): pass def calc_next_state(self, current_state, target_state, mode=None): raise NotImple...
PypiClean
/py-stadfangaskra-1.0.0rc1.tar.gz/py-stadfangaskra-1.0.0rc1/stadfangaskra/parser.py
import numpy as np import pandas as pd import geopandas from pandas._typing import FilePathOrBuffer RENAMED = { "BOKST": "house_char", "HEITI_NF": "street_nominative", "HEITI_TGF": "street_dative", "HNITNUM": "id", "HUSNR": "house_nr", "LAT_WGS84": "lat", "LONG_WGS84": "lon", "POSTNR": ...
PypiClean
/gender_detection-0.2.2.tar.gz/gender_detection-0.2.2/gender_detection/api.py
import os import warnings from copy import copy from typing import Union import regex from gender_detection import PACKAGE_ROOT from ._encoder import UnseenCharacterException from .constant import POSITIVE_CLASS, NEGATIVE_CLASS, NEUTRAL_CLASS, CLASS2DEFAULT_CUTOFF from .classifier import CharLSTM from .util import ge...
PypiClean
/pulumi_aws-6.1.0a1693529760.tar.gz/pulumi_aws-6.1.0a1693529760/pulumi_aws/lakeformation/data_lake_settings.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__ = ['DataLakeSettingsArgs', 'DataLakeSettings'] @pulumi.input_type class DataLakeSettingsArgs: def __i...
PypiClean
/deepsparse_nightly-1.6.0.20230829-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/deepsparse/pipelines/custom_pipeline.py
import importlib import logging from typing import Any, Callable, Dict, List, Optional, Tuple, Type, Union import numpy from pydantic import BaseModel from deepsparse.pipeline import Pipeline from deepsparse.utils.onnx import model_to_path _LOGGER = logging.getLogger(__name__) @Pipeline.register(task="custom") cl...
PypiClean
/livecellx-0.0.2.tar.gz/livecellx-0.0.2/livecell_tracker/trajectory/legacy_utils/resnet50.py
from __future__ import absolute_import, print_function import warnings from keras import backend as K from keras import layers from keras.layers import ( Activation, AveragePooling2D, BatchNormalization, Conv2D, Dense, Dropout, Flatten, GlobalAveragePooling2D, GlobalMaxPooling2D, ...
PypiClean
/sls-detector-1.0.1.tar.gz/sls-detector-1.0.1/sls/server.py
import os import sys import time import logging import subprocess import fabric class Server: def __init__(self, host, user='root', password='pass'): self.host = host self.user = user self.password = password self._conn = None self.log = logging.getLogger('sls.Server({})'...
PypiClean
/dls-pairstream-5.0.0.tar.gz/dls-pairstream-5.0.0/src/dls_pairstream_lib/websockets/writer.py
import asyncio import json import logging import threading import websockets logger = logging.getLogger(__name__) class Message: def __init__(self): self.meta = None self.data = None # connect() and serve() # max_size 1 MiB # max_queue 32 # read_limit 64 KiB # write_limit 64 KiB # serve max_s...
PypiClean
/permit-broadcaster-0.2.5.tar.gz/permit-broadcaster-0.2.5/broadcaster/_backends/postgres.py
import asyncio from typing import Any import asyncpg import os from .._base import Event from .base import BroadcastBackend try: POOL_MAX_SIZE = int(os.getenv("BROADCASTER_PG_MAX_POOL_SIZE")) except TypeError: POOL_MAX_SIZE = 10 class PostgresBackend(BroadcastBackend): _pools = {} _pools_lock = asyn...
PypiClean
/kiara_modules.language_processing-0.3.0.tar.gz/kiara_modules.language_processing-0.3.0/.github/ISSUE_TEMPLATE/suggest-a-module.md
--- name: Suggest a module about: Suggest a new module for kiara title: '' labels: '' assignees: '' --- **Module description** A description of the module, this will be copied into the actual module later on, so make sure you explain the module purpose with kiara users in mind. Use a short one-sentence overview as th...
PypiClean
/fidel-0.0.10.tar.gz/fidel-0.0.10/README.md
# **Fidel / ፊደል** ## What is **Fidel / ፊደል** ? **Fidel** is a python package that can change Amharic language that written in English alphabet to Amharic alphabet character. <br> **| For example: abebe beso bela -> አበበ በሶ በላ** ## **Dependencies** * [Symspellpy](https://github.com/mammothb/symspellpy) ## **Installat...
PypiClean
/cdktf-cdktf-provider-azurerm-10.0.1.tar.gz/cdktf-cdktf-provider-azurerm-10.0.1/src/cdktf_cdktf_provider_azurerm/disk_pool_managed_disk_attachment/__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 DiskPoolManagedDiskAttachment( _cdktf_9a9027ec.Ter...
PypiClean
/netbox_contract-2.0.7-py3-none-any.whl/netbox_contract/forms.py
from django import forms from django.contrib.contenttypes.models import ContentType import django_filters from netbox.forms import NetBoxModelForm, NetBoxModelFilterSetForm, NetBoxModelBulkEditForm, NetBoxModelImportForm from utilities.forms.fields import CommentField, CSVChoiceField, DynamicModelChoiceField, DynamicMo...
PypiClean
/paste2sms-1.1.0.tar.gz/paste2sms-1.1.0/README.rst
paste2sms 📲 Send clipboard content as a SMS ============================================ `paste2sms` is a small tool which send the content of your clipboard as a SMS: do you want to share that cool link you just found (on your computer) to your friend? Copy it, and run `paste2sms` to send it as a SMS. .. image:: ht...
PypiClean
/trivoreid_extension-1.0.9-py3-none-any.whl/trivoreid/oidc/oidc_client.py
import requests import os import base64 import trivoreid.utils.service_utils as su from trivoreid.exceptions import TrivoreIDException from trivoreid.oidc.oidc_user import OIDCUser class OidcClient(object): ''' Helper to create OIDC client. ''' _OPENID_CONFIG = '.well-known/openid-configuration' ...
PypiClean
/cupy_cuda101-9.6.0-cp38-cp38-manylinux1_x86_64.whl/cupy/_math/trigonometric.py
import numpy import cupy from cupy import _core from cupy._math import sumprod from cupy._math import ufunc sin = ufunc.create_math_ufunc( 'sin', 1, 'cupy_sin', '''Elementwise sine function. .. seealso:: :data:`numpy.sin` ''') cos = ufunc.create_math_ufunc( 'cos', 1, 'cupy_cos', '''Elemen...
PypiClean
/pytest-resource-0.1.3.tar.gz/pytest-resource-0.1.3/README.rst
=============== pytest-resource =============== .. image:: https://img.shields.io/pypi/v/pytest-resource.svg :target: https://pypi.org/project/pytest-resource :alt: PyPI version .. image:: https://img.shields.io/pypi/pyversions/pytest-resource.svg :target: https://pypi.org/project/pytest-resource :alt...
PypiClean
/bcsfe-fix-en-2.7.2.6.tar.gz/bcsfe-fix-en-2.7.2.6/src/BCSFE_FIX/user_info.py
import json from typing import Any from . import config_manager, managed_item, helper import os class ManagedItems: def __init__(self, managed_items: dict[managed_item.ManagedItemType, int]): self.managed_items = managed_items def to_dict(self) -> dict[str, int]: """Convert to dict""" ...
PypiClean
/openlegal-lexnlp-2.2.1.0.tar.gz/openlegal-lexnlp-2.2.1.0/documentation/docs/source/api/lexnlp.nlp.en.segments.rst
lexnlp.nlp.en.segments package ============================== Submodules ---------- lexnlp.nlp.en.segments.pages module ----------------------------------- .. automodule:: lexnlp.nlp.en.segments.pages :members: :undoc-members: :show-inheritance: lexnlp.nlp.en.segments.paragraphs module --------------------...
PypiClean
/baby_shap-0.0.6-py3-none-any.whl/baby_shap/utils/_legacy.py
import numpy as np import pandas as pd import scipy as sp from scipy import sparse from sklearn import cluster, impute def kmeans(X, k, round_values=True): """Summarize a dataset with k mean samples weighted by the number of data points they each represent. Parameters ---------- X : numpy.array or...
PypiClean
/msgraph_beta_sdk-1.0.0a9-py3-none-any.whl/msgraph/generated/drives/item/items/item/workbook/tables/item/sort/apply/apply_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 workbook_sort_field class ApplyPostRequestBody(...
PypiClean
/pyci_utils-0.2.0b0-py3-none-any.whl/pyci/tools/type_checker/type_checker.py
from typing import Tuple, List, Dict, Union, Optional, TypeAlias from collections import defaultdict from pathlib import Path import attr from mypy import api # Local imports from pyci.tools import BaseTool from pyci.utils import find_code class CustomReporter: """Custom reporter to catch and clean the errors ...
PypiClean
/msgraph_beta_sdk-1.0.0a9-py3-none-any.whl/msgraph/generated/me/calendar/events/item/calendar/calendar_request_builder.py
from __future__ import annotations from dataclasses import dataclass from kiota_abstractions.get_path_parameters import get_path_parameters from kiota_abstractions.method import Method from kiota_abstractions.request_adapter import RequestAdapter from kiota_abstractions.request_information import RequestInformation fro...
PypiClean
/autograder_gui-0.8.4.tar.gz/autograder_gui-0.8.4/autograder_gui/static/lib/fonts/README.txt
Raleway Variable Font ===================== This download contains Raleway as both variable fonts and static fonts. Raleway is a variable font with this axis: wght This means all the styles are contained in these files: Raleway-VariableFont_wght.ttf Raleway-Italic-VariableFont_wght.ttf If your app fully suppo...
PypiClean
/x-thonny-4.1.6.tar.gz/x-thonny-4.1.6/thonny/plugins/locals_marker.py
import tkinter as tk from logging import getLogger from thonny import get_workbench class LocalsHighlighter: def __init__(self, text): self.text = text self._update_scheduled = False def get_positions(self): import parso from jedi import parser_utils from parso.pytho...
PypiClean
/UnDupe-0.0.1.tar.gz/UnDupe-0.0.1/undupe/preprocessing/preprocess_text.py
import re # REGULAR EXPRESSIONS # -----------------------------EMAILS------------------------------------------ # All non-whitespace characters before and after @ sign EMAIL_REGEX = r"\S*@\S*" # --------------------------HYPERLINKS----------------------------------------- HYPERLINK_REGEXS = { # http://www.abc123...
PypiClean
/RsCMPX_WlanMeas-4.0.150-py3-none-any.whl/RsCMPX_WlanMeas/Implementations/WlanMeas/MultiEval/Modulation/Mimo/__init__.py
from ......Internal.Core import Core from ......Internal.CommandsGroup import CommandsGroup from ......Internal.RepeatedCapability import RepeatedCapability from ...... import repcap # noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection class MimoCls: """Mimo commands group definition. 30 total ...
PypiClean
/irekua-database-0.1.2.tar.gz/irekua-database-0.1.2/irekua_database/models/users/users.py
from django.contrib.auth.models import AbstractUser from django.db import models from django.utils.translation import gettext_lazy as _ from django.utils.functional import cached_property from irekua_database.utils import translate_doc @translate_doc class User(AbstractUser): help_text = _(''' User Model ...
PypiClean
/unified-io-0.1.0.tar.gz/unified-io-0.1.0/unified_io/handlers/jsonl_handler.py
from pathlib import Path from typing import Callable, Dict, List, Union import orjson from .common import apply_callback from .path_handler import create_path def read_jsonl_to_generator(path: Union[str, Path], callback: Callable = None): # Internal usage with open(str(path), "rb") as f: for line in...
PypiClean
/crwutils-1.3.0-py3-none-any.whl/scrapybase/spiders/base.py
from __future__ import annotations import datetime import socket import hashlib import scrapy from scrapy.exceptions import CloseSpider from abc import ABC, abstractmethod from ..items import BaseItem, BaseItemLoader class BaseSpider(ABC, scrapy.spiders.SitemapSpider): name = 'base' allowed_domains = [] ...
PypiClean
/nsi.metadataextractor-1.2.tar.gz/nsi.metadataextractor-1.2/nsi/metadataextractor/preparator.py
import re import sys from os import system, remove from os.path import abspath, dirname, join, basename, splitext from string import punctuation from pyPdf import PdfFileReader from nltk.corpus import PlaintextCorpusReader from nltk.tokenize import line_tokenize, word_tokenize ROOT = abspath(dirname(__file__)) CORPUS_...
PypiClean
/raven_gen-0.3.2-py3-none-any.whl/raven_gen/panel.py
from typing import Optional import copy from .attribute import AttributeType from .component import Component from .rule import Rules, RuleType class Panel: def __init__(self, component_1: Component, component_2: Optional[Component] = None): self.component_1 = componen...
PypiClean
/satnogs-network-1.104.tar.gz/satnogs-network-1.104/network/static/js/ax25monitor.js
(function (root, factory) { if (typeof define === 'function' && define.amd) { define(['kaitai-struct/KaitaiStream'], factory); } else if (typeof module === 'object' && module.exports) { module.exports = factory(require('kaitai-struct/KaitaiStream')); } else { root.Ax25monitor = factory(root.KaitaiStr...
PypiClean
/pawk-0.8.1.tar.gz/pawk-0.8.1/README.md
# PAWK - A Python line processor (like AWK) PAWK aims to bring the full power of Python to AWK-like line-processing. Here are some quick examples to show some of the advantages of pawk over AWK. The first example transforms `/etc/hosts` into a JSON map of host to IP: cat /etc/hosts | pawk -B 'd={}' -E 'json.dumps(...
PypiClean
/ochsner_web2com-0.1.6.tar.gz/ochsner_web2com-0.1.6/ochsner_web2com/web2com.py
import requests import xmltodict from enum import Enum class HEAT_PUMP(Enum): State_heat_generator_control = [1, 125, 0] Flow_temperature_heat_generator = [1, 125, 1] Return_flow_temperature_heat_generator = [1, 125, 2] Heat_source_outlet_temperature = [1, 125, 3] Heat_source_inlet_temperature = [1...
PypiClean
/azure-cli-2.51.0.tar.gz/azure-cli-2.51.0/azure/cli/command_modules/monitor/aaz/latest/monitor/diagnostic_settings/subscription/_delete.py
# pylint: skip-file # flake8: noqa from azure.cli.core.aaz import * @register_command( "monitor diagnostic-settings subscription delete", confirmation="Are you sure you want to perform this operation?", ) class Delete(AAZCommand): """Deletes existing subscription diagnostic settings for the specified re...
PypiClean
/jestimator-0.3.3.tar.gz/jestimator-0.3.3/README.md
# Amos and JEstimator [![Unittests & Auto-publish](https://github.com/google-research/jestimator/actions/workflows/pytest_and_autopublish.yml/badge.svg)](https://github.com/google-research/jestimator/actions/workflows/pytest_and_autopublish.yml) [![PyPI version](https://badge.fury.io/py/jestimator.svg)](https://badge....
PypiClean
/django-currencyware-0.1.3.tar.gz/django-currencyware-0.1.3/README.md
Django Currencyware ==================== **A Django application to provides translated currency names** [![status-image]][status-link] [![version-image]][version-link] [![coverage-image]][coverage-link] Overview ==================== **Best attempt** to translate currency names while keeping it **DRY**. How to ins...
PypiClean
/intel_tensorflow_avx512-2.13.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/tensorflow/python/ops/gen_boosted_trees_ops.py
import collections from tensorflow.python import pywrap_tfe as pywrap_tfe from tensorflow.python.eager import context as _context from tensorflow.python.eager import core as _core from tensorflow.python.eager import execute as _execute from tensorflow.python.framework import dtypes as _dtypes from tensorflow.security....
PypiClean
/wmb-0.1.36.tar.gz/wmb-0.1.36/analysis/integration/mc_3c/Template/01.select_mc_cef.ipynb
## Import ``` from wmb import brain, cemba, mm10 import seaborn as sns from ALLCools.clustering import * from ALLCools.mcds import MCDS from ALLCools.plot import * import pandas as pd import matplotlib.pyplot as plt from ALLCools.clustering import cluster_enriched_features, log_scale var_dim = 'chrom100k' cluster_...
PypiClean
/nm_transformers-1.5.1.42301-py3-none-any.whl/transformers/models/vision_text_dual_encoder/modeling_flax_vision_text_dual_encoder.py
from typing import Optional, Tuple import flax.linen as nn import jax import jax.numpy as jnp from flax.core.frozen_dict import FrozenDict, freeze, unfreeze from flax.traverse_util import flatten_dict, unflatten_dict from ...modeling_flax_utils import FlaxPreTrainedModel, append_replace_return_docstrings, overwrite_c...
PypiClean
/django-mp-cap-3.1.0.tar.gz/django-mp-cap-3.1.0/cap/static/cap/components/bootstrap-treeview/bootstrap-treeview.min.js
!function(a,b,c,d){"use strict";var e="treeview",f={};f.settings={injectStyle:!0,levels:2,expandIcon:"glyphicon glyphicon-plus",collapseIcon:"glyphicon glyphicon-minus",emptyIcon:"glyphicon",nodeIcon:"",selectedIcon:"",checkedIcon:"glyphicon glyphicon-check",uncheckedIcon:"glyphicon glyphicon-unchecked",color:d,backCol...
PypiClean
/monero_agent-3.0.4.tar.gz/monero_agent-3.0.4/monero_poc/tools/mem_cmp.py
import argparse import logging import re import coloredlogs logger = logging.getLogger(__name__) coloredlogs.CHROOT_FILES = [] coloredlogs.install(level=logging.INFO, use_chroot=False) def avg(iterable): return sum(iterable) / float(len(iterable)) class MemReader(object): def __init__(self, data): ...
PypiClean
/ontolearn-0.5.0-py3-none-any.whl/owlapy/vocab.py
from abc import ABCMeta from enum import Enum, EnumMeta from typing import Final, Callable, TypeVar from operator import lt, le, gt, ge from owlapy import namespaces from owlapy.model._iri import HasIRI, IRI from owlapy.namespaces import Namespaces class _Vocabulary(HasIRI): __slots__ = '_namespace', '_remainder...
PypiClean
/translate-shell-0.0.36.tar.gz/translate-shell-0.0.36/docs/resources/translator.md
# Translator A translator is a function which input text, target language and source language then do something according to inputs and output a result. Current translators are: ```{eval-sh} cd .. scripts/generate-translator.md.py ``` Some translators are out of box and some need configuration, which detail can be ...
PypiClean
/message_client_zda-0.0.1.tar.gz/message_client_zda-0.0.1/client/client/main_window.py
import logging from PyQt5.QtCore import pyqtSlot, Qt from PyQt5.QtGui import QStandardItemModel, QStandardItem, QBrush, QColor from PyQt5.QtWidgets import QMainWindow, qApp, QMessageBox from client_dist.client.client.add_contact import AddContactDialog from client_dist.client.client.delete_contact import DelContactDi...
PypiClean
/mujoco_py-2.1.2.14-py3-none-any.whl/mujoco_py/mjrenderpool.py
import ctypes import inspect from multiprocessing import Array, get_start_method, Pool, Value import numpy as np class RenderPoolStorage: """ Helper object used for storing global data for worker processes. """ __slots__ = ['shared_rgbs_array', 'shared_depths_array', ...
PypiClean
/zopyx.existdb-0.2.11.1.zip/zopyx.existdb-0.2.11.1/zopyx/existdb/browser/resources/ace-builds/src-min-noconflict/theme-cloud9_night_low_color.js
ace.define("ace/theme/cloud9_night_low_color",["require","exports","module","ace/lib/dom"],function(e,t,n){t.isDark=!0,t.cssClass="ace-cloud9-night-low-color",t.cssText=".ace-cloud9-night-low-color .ace_gutter {background: #303130;color: #eee}.ace-cloud9-night-low-color .ace_print-margin {width: 1px;background: #222}.a...
PypiClean
/testabc-1.0.2.tar.gz/testabc-1.0.2/fate_flow/manager/service/provider_manager.py
import os import sys from typing import Union from fate_flow.db import ProviderInfo, ComponentInfo from fate_flow.db.base_models import DB, BaseModelOperate from fate_flow.entity.spec.flow import ProviderSpec, LocalProviderSpec, DockerProviderSpec, K8sProviderSpec from fate_flow.entity.types import ProviderDevice from...
PypiClean
/tachydownloader-0.0.9.tar.gz/tachydownloader-0.0.9/README.md
# Tachyon A multithread downloader created after facing the hardships of downloading with bandwidth throttling. ## Installation To install tachyon you need to have python3. If you are on a MacOS based device, you can use homebrew in your terminal: ```shell $ brew install python3 ``` Then you can use pip to install the...
PypiClean
/django-basic-cms-0.3.16.tar.gz/django-basic-cms-0.3.16/basic_cms/static/pages/ckeditor/plugins/pastefromword/filter/default.js
/* Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ (function(){var a=CKEDITOR.htmlParser.fragment.prototype,b=CKEDITOR.htmlParser.element.prototype;a.onlyChild=b.onlyChild=function(){var h=this.children,i=h.length,j=i==1&&h[...
PypiClean
/pulumi_yandex_unofficial-0.1.8.tar.gz/pulumi_yandex_unofficial-0.1.8/pulumi_yandex_unofficial/mdb_elastic_search_cluster.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__ = ['MdbElasticSearchClusterArgs', 'MdbElasticSearchCluster'] @pulumi.input_type class MdbElasticSearchClus...
PypiClean
/dj_dashboard-1.1.2.tar.gz/dj_dashboard-1.1.2/dj_dashboard/static/dj_dashboard/css/components/tab.js
;(function ($, window, document, undefined) { "use strict"; window = (typeof window != 'undefined' && window.Math == Math) ? window : (typeof self != 'undefined' && self.Math == Math) ? self : Function('return this')() ; $.fn.tab = function(parameters) { var // use window context if none specified...
PypiClean
/displaylang_sympy-0.10.4-py3-none-any.whl/sympy/combinatorics/pc_groups.py
from sympy.ntheory.primetest import isprime from sympy.combinatorics.perm_groups import PermutationGroup from sympy.printing.defaults import DefaultPrinting from sympy.combinatorics.free_groups import free_group class PolycyclicGroup(DefaultPrinting): is_group = True is_solvable = True def __init__(self...
PypiClean
/packer-0.1.1.zip/packer-0.1.1/README.rst
****** Packer ****** A new type of package manager *Still under development* .. note:: This is only the library package. ===== Goals ===== Package management works but it is far from ideal. There is no simple, free, platform agnostic way to distribute software. I want to fix this. Enter **Packer**, a package ma...
PypiClean
/mastercard_spendcontrols-1.0.4.tar.gz/mastercard_spendcontrols-1.0.4/mastercardspendcontrols/__init__.py
from mastercardapicore import * # import apis resourceconfig from mastercardspendcontrols.resourceconfig import ResourceConfig # import apis into api package from mastercardspendcontrols.alertall import * from mastercardspendcontrols.alerts import * from mastercardspendcontrols.amount import * from mastercardspendco...
PypiClean
/opp-ui-0.1.0.tar.gz/opp-ui-0.1.0/opp_frontend/frontend_latest/panel-config-script.chunk.js
(self["webpackJsonp"] = self["webpackJsonp"] || []).push([["panel-config-script"],{ /***/ "./node_modules/@polymer/paper-item/paper-icon-item.js": /*!*************************************************************!*\ !*** ./node_modules/@polymer/paper-item/paper-icon-item.js ***! \***********************************...
PypiClean
/superset-erik-0.26.0.tar.gz/superset-erik-0.26.0/superset/models/core.py
"""A collection of ORM sqlalchemy models for Superset""" from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from copy import copy, deepcopy from datetime import datetime import functools import json import logging import ...
PypiClean
/moviepy_wumii-0.2.3.6.1.tar.gz/moviepy_wumii-0.2.3.6.1/docs/examples/the_end.rst
====================== "The End" effect ====================== .. raw:: html <div style="position: relative; padding-bottom: 56.25%; padding-top: 30px; margin-bottom:30px; height: 0; overflow: hidden; margin-left: 5%;"><iframe type="text/html" src="https://www.youtube.com/embed/sZMyzzGlsc0" frameborder="0" st...
PypiClean
/boot-synth-1.2.0.tar.gz/boot-synth-1.2.0/synth/projects_master/nginx_router/frontend/react/node_modules/postcss-place/LICENSE.md
# CC0 1.0 Universal ## Statement of Purpose The laws of most jurisdictions throughout the world automatically confer exclusive Copyright and Related Rights (defined below) upon the creator and subsequent owner(s) (each and all, an “owner”) of an original work of authorship and/or a database (each, a “Work”). Certain...
PypiClean
/moin-1.9.11.tar.gz/moin-1.9.11/MoinMoin/support/pygments/lexers/pascal.py
import re from pygments.lexer import Lexer, RegexLexer, include, bygroups, words, \ using, this, default from pygments.util import get_bool_opt, get_list_opt from pygments.token import Text, Comment, Operator, Keyword, Name, String, \ Number, Punctuation, Error from pygments.scanner import Scanner # compatibi...
PypiClean
/atom_alter_api-0.1.4-py3-none-any.whl/atom_alter_API/utils/mathematical.py
import hashlib import time from eth_utils import to_bytes from decimal import Decimal from random import uniform from random import randint from random import choices from atom_alter_API.constants import( NUM_DECIMALS, BUY, SELL ) import random def sha256(input_text): input_bytes = to_bytes(text=in...
PypiClean
/code-RTC-1.0.2.tar.gz/code-RTC-1.0.2/code_rtc/static/lib/monaco-editor/esm/vs/editor/contrib/dnd/dnd.js
var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] =...
PypiClean
/safegate-pro-frontend-20210805.0.tar.gz/safegate-pro-frontend-20210805.0/hass_frontend/frontend_es5/chunk.754a22ce8767d9e696b3.js
(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([[7749],{41787:function(e,t,r){"use strict";r.d(t,{E:function(){return i},s:function(){return o}});var n=r(56007);function i(e,t){return e.every((function(e){var r=t.states[e.entity]?t.states[e.entity].state:n.nZ;return e.state...
PypiClean
/PYPOWER-5.1.16.tar.gz/PYPOWER-5.1.16/pypower/hasPQcap.py
from sys import stderr from numpy import any, zeros, nonzero from pypower.idx_gen import QMAX, QMIN, PMAX, PC1, PC2, QC1MIN, QC1MAX, QC2MIN, QC2MAX def hasPQcap(gen, hilo='B'): """Checks for P-Q capability curve constraints. Returns a column vector of 1's and 0's. The 1's correspond to rows of the C{ge...
PypiClean
/cadences-0.3.4.tar.gz/cadences-0.3.4/cadence/langs/langs.py
from ..imports import * # from .english import * from .english import scan as en_scan, get as en_get from .english import get_df SYLLABIFY_DF_D={} CODE2LANG = { 'en':en_scan, } CODE2LANG_SYLLABIFY={ 'en':en_get, } def ipa_to_stress(syl_ipa,numeric=True): if not syl_ipa or type(syl_ipa)!=str: retur...
PypiClean
/nordea-analytics-1.9.2.tar.gz/nordea-analytics-1.9.2/src/nordea_analytics/nalib/value_retrievers/CurveTimeSeries.py
from datetime import datetime from typing import Any, Dict, List, Optional, Union import pandas as pd from nordea_analytics.convention_variable_names import TimeConvention from nordea_analytics.curve_variable_names import ( CurveName, CurveType, SpotForward, ) from nordea_analytics.nalib.data_retrieval_cl...
PypiClean
/tiddlywebplugins.sqlalchemy3-3.1.1.tar.gz/tiddlywebplugins.sqlalchemy3-3.1.1/tiddlywebplugins/sqlalchemy3/parser.py
from pyparsing import (printables, alphanums, OneOrMore, Group, Combine, Suppress, Literal, CharsNotIn, Word, Keyword, Empty, White, Forward, QuotedString, StringEnd) def _make_default_parser(): """ Define a search query grammar that basically amounts to: term OR quoted terms OR fieldname...
PypiClean
/pyRiffle-0.2.7.tar.gz/pyRiffle-0.2.7/riffle/exis.py
from __future__ import print_function import docopt import json import os import time import uuid import yaml from pprint import pprint import riffle def parseMessageArgs(args): """ Separate a list of message arguments into positional and key-value groups. Returns a tuple. """ pargs = list() ...
PypiClean
/nm_transformers_nightly-1.6.0.20230829-py3-none-any.whl/transformers/models/clip/__init__.py
from typing import TYPE_CHECKING from ...utils import ( OptionalDependencyNotAvailable, _LazyModule, is_flax_available, is_tf_available, is_tokenizers_available, is_torch_available, is_vision_available, ) _import_structure = { "configuration_clip": [ "CLIP_PRETRAINED_CONFIG_AR...
PypiClean
/PMPrimer-1.0.2-py3-none-any.whl/piece/piecedataprogress.py
from .piecedefine import * from .piecebase import split_all_from_str, mismatch_btw_2seq from multiprocessing import Pool, cpu_count ''' 创建人员: Nerium 创建日期: 2022/10/25 更改人员: Nerium 更改日期: 2022/10/25 ''' #获取序列集的平均长度 data = {id : seq} def seq_everage_len(data) : return sum([len(x) for x in data.values()]) // len(data) ...
PypiClean
/testit-api-client-3.2.0.tar.gz/testit-api-client-3.2.0/src/testit_api_client/model/configuration_filter_model.py
import re # noqa: F401 import sys # noqa: F401 from testit_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
/neutron-lib-3.8.0.tar.gz/neutron-lib-3.8.0/doc/source/contributor/api_validators.rst
.. 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 ...
PypiClean
/pulumi_azure_nextgen-0.6.2a1613157620.tar.gz/pulumi_azure_nextgen-0.6.2a1613157620/pulumi_azure_nextgen/sql/managed_database_sensitivity_label.py
import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from .. import _utilities, _tables from ._enums import * __all__ = ['ManagedDatabaseSensitivityLabel'] class ManagedDatabaseSensitivityLabel(pulumi.CustomResource): def __init__(__self__, ...
PypiClean
/simple_pypi_statistics-0.1.3.tar.gz/simple_pypi_statistics-0.1.3/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/benjaoming/simple_pyp...
PypiClean
/helloWorld_nb_extension-0.2.tar.gz/helloWorld_nb_extension-0.2/src/jupyter_contrib_nbextensions/migrate.py
import errno import io import os import shutil import tempfile from jupyter_core.paths import jupyter_config_dir, jupyter_data_dir from notebook.services.config import ConfigManager as FrontendConfigManager from traitlets.config import Config from traitlets.config.manager import BaseJSONConfigManager from jupyter_con...
PypiClean
/cdktf-cdktf-provider-azurerm-10.0.1.tar.gz/cdktf-cdktf-provider-azurerm-10.0.1/src/cdktf_cdktf_provider_azurerm/synapse_workspace_security_alert_policy/__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 SynapseWorkspaceSecurityAlertPolicy( _cdktf_9a9027...
PypiClean
/jiangsu-jqyeviuijksd-0.1.3.tar.gz/jiangsu-jqyeviuijksd-0.1.3/jiangsu_jqyeviuijksd/console.py
from pathlib2 import Path import click import logging from jiangsu_jqyeviuijksd.common import get_const, get_question_from_file, root_path from jiangsu_jqyeviuijksd.get_proxy import add_to_white_list, get_proxy logger = logging.getLogger(__name__) @click.group() def main(): print("仅供 Python 和 HTTP 相关知识的学习交流只用,...
PypiClean
/clease_gui-0.2.2-py3-none-any.whl/clease_gui/base_dashboard.py
from abc import ABC import logging import functools from pathlib import PurePath import ipywidgets as widgets import clease from clease_gui.style_mixin import WidgetStyleMixin from clease_gui.status_bar import update_app_data_statusbar from clease_gui.event_context import EventContextManager, log_error from clease_gui...
PypiClean
/visual_genome-1.1.1.tar.gz/visual_genome-1.1.1/visual_genome/models.py
class Image: """ Image. ID int url hyperlink string width int height int """ def __init__(self, id, url, width, height, coco_id, flickr_id): self.id = id self.url = url self.width = width self.height = height self.c...
PypiClean
/dnos-0.1.3.tar.gz/dnos-0.1.3/proto/net/DeviceIdProto_pb2.py
import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database # @@protoc_in...
PypiClean
/bpy_optix-2.82-cp37-cp37m-win_amd64.whl/bpy_optix-2.82.data/scripts/2.82/scripts/addons/add_mesh_geodesic_domes/vefm_271.py
import bpy # PKHG>NEEDED? import bmesh from math import acos, pi, sin, cos, atan, tan from mathutils import Vector from bpy_extras.object_utils import AddObjectHelper, object_data_add # PKHG>DBG change the DBG_info and use extra_DBG_info DBG_info = {"MeshInfo": False, "StrutMesh": False, "HubMesh": False} def extra_...
PypiClean
/custos-python-sdk-1.0.0.tar.gz/custos-python-sdk-1.0.0/custos/server/core/IamAdminService_pb2_grpc.py
"""Client and server classes corresponding to protobuf-defined services.""" import grpc import custos.server.core.IamAdminService_pb2 as IamAdminService__pb2 from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 class IamAdminServiceStub(object): """Missing associated documentation comment ...
PypiClean
/asyncio_task_queues-0.0.3-py3-none-any.whl/asyncio_task_queues/task.py
from enum import Enum from uuid import uuid4 from asyncio_task_queues.schedule import Schedule from asyncio_task_queues.signature import Signature, SignaturePS, SignatureRV from asyncio_task_queues.types import Any, Generic, Optional, TypeVar, Union, cast TaskQueue = TypeVar("TaskQueue") def convert_queue(queue: An...
PypiClean
/streamlit-elements-0.1.0.tar.gz/streamlit-elements-0.1.0/streamlit_elements/frontend/build/monaco/basic-languages/javascript/javascript.js
define("vs/basic-languages/javascript/javascript", ["require","require"],(require)=>{ var moduleExports=(()=>{var x=Object.create;var s=Object.defineProperty;var u=Object.getOwnPropertyDescriptor;var f=Object.getOwnPropertyNames;var b=Object.getPrototypeOf,k=Object.prototype.hasOwnProperty;var g=e=>s(e,"__esModule",{va...
PypiClean
/elvia-vault-0.4.2.tar.gz/elvia-vault-0.4.2/elvia_vault/vault_client.py
import os from typing import Callable, Tuple import hvac import kubernetes import jwt # pylint: disable=too-few-public-methods class EnvVarNames: """Reduce hardcoding by collecting env var names in this class.""" VAULT_ADDR = 'VAULT_ADDR' GITHUB_TOKEN = 'GITHUB_TOKEN' ROLE_ID = 'ROLE_ID' KUBERNETE...
PypiClean
/v3/model/keystone_update_user_password_request.py
import pprint import re import six class KeystoneUpdateUserPasswordRequest: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value ...
PypiClean
/fastapi-0.103.0.tar.gz/fastapi-0.103.0/docs/en/docs/tutorial/encoder.md
# JSON Compatible Encoder There are some cases where you might need to convert a data type (like a Pydantic model) to something compatible with JSON (like a `dict`, `list`, etc). For example, if you need to store it in a database. For that, **FastAPI** provides a `jsonable_encoder()` function. ## Using the `jsonabl...
PypiClean
/tendril-utils-gschem-files-0.2.0.tar.gz/tendril-utils-gschem-files-0.2.0/README.rst
.. image:: https://img.shields.io/pypi/v/tendril-utils-gschem-files.svg?logo=pypi :target: https://pypi.org/project/tendril-utils-gschem-files .. image:: https://img.shields.io/pypi/pyversions/tendril-utils-gschem-files.svg?logo=pypi :target: https://pypi.org/project/tendril-utils-gschem-files .. image:: ht...
PypiClean
/nkia-1.9.1.tar.gz/nkia-1.9.1/src/data_gen/dataframe_gen.py
from datetime import datetime import sys import os from sys import argv sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..')) import json import pymongo import pandas as pd import numpy as np from database.db_mongo import MongoDatabase from database.db_neo4j import Neo4jDatabase class dataframeGen(obje...
PypiClean
/zepben.evolve-0.35.0b2-py3-none-any.whl/zepben/evolve/model/cim/iec61970/base/meas/measurement.py
from __future__ import annotations from typing import Optional, TYPE_CHECKING if TYPE_CHECKING: from zepben.evolve import RemoteSource from zepben.evolve.model.cim.iec61970.base.core.phase_code import PhaseCode from zepben.evolve.model.cim.iec61970.base.core.identified_object import IdentifiedObject from zepben...
PypiClean
/flask-templates-0.0.52.tar.gz/flask-templates-0.0.52/flask_templates/dao/cache.py
__author__ = 'develop' import time import simplejson as json import pickle # import json from flask_templates.common.redis_module import MyRedis, cache_decorator def __combine_key(src_id, cache_type=None): key = src_id if cache_type is None: key = str(key) else: key = str(cache_type) + "...
PypiClean
/Congo-0.0.1.tar.gz/Congo-0.0.1/portfolio/component/static/portfolio/vendor/mdeditor/bower_components/codemirror/addon/lint/lint.js
(function() { "use strict"; var GUTTER_ID = "CodeMirror-lint-markers"; var SEVERITIES = /^(?:error|warning)$/; function showTooltip(e, content) { var tt = document.createElement("div"); tt.className = "CodeMirror-lint-tooltip"; tt.appendChild(content.cloneNode(true)); document.body.appendChild(...
PypiClean
/pypcapkit-1.2.1-cp310-none-any.whl/pcapkit/protocols/data/internet/ipv4.py
"""data model for IPv4 protocol""" from typing import TYPE_CHECKING from pcapkit.const.ipv4.option_class import OptionClass from pcapkit.const.ipv4.tos_del import ToSDelay from pcapkit.corekit.infoclass import info_final from pcapkit.protocols.data.data import Data if TYPE_CHECKING: from datetime import timedelt...
PypiClean
/mmsegmentation_zzb-0.23.0-py3-none-any.whl/mmseg/.mim/configs/_base_/models/setr_mla.py
backbone_norm_cfg = dict(type='LN', eps=1e-6, requires_grad=True) norm_cfg = dict(type='SyncBN', requires_grad=True) model = dict( type='EncoderDecoder', pretrained='pretrain/jx_vit_large_p16_384-b3be5167.pth', backbone=dict( type='VisionTransformer', img_size=(768, 768), patch_size=...
PypiClean