id
stringlengths
1
8
text
stringlengths
6
1.05M
dataset_id
stringclasses
1 value
/pretixGWW-10.4.1.tar.gz/pretixGWW-10.4.1/pretix/static.dist/rest_framework/docs/js/bootstrap.min.79b5346433d3.js
if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");+function(a){"use strict";var b=a.fn.jquery.split(" ")[0].split(".");if(b[0]<2&&b[1]<9||1==b[0]&&9==b[1]&&b[2]<1||b[0]>3)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4")}(jQ...
PypiClean
/iredis_bin-1.9.4-cp310-cp310-manylinux2010_x86_64.whl/iredis_bin-1.9.4.data/scripts/lib/encodings/cp1255.py
"""#" import codecs ### Codec APIs class Codec(codecs.Codec): def encode(self,input,errors='strict'): return codecs.charmap_encode(input,errors,encoding_table) def decode(self,input,errors='strict'): return codecs.charmap_decode(input,errors,decoding_table) class IncrementalEncoder(codecs...
PypiClean
/python_da_final_vkaul-0.0.1.tar.gz/python_da_final_vkaul-0.0.1/.eggs/pandas-1.2.2-py3.9-win-amd64.egg/pandas/core/reshape/reshape.py
import itertools from typing import List, Optional, Union import numpy as np import pandas._libs.algos as libalgos import pandas._libs.reshape as libreshape from pandas._libs.sparse import IntIndex from pandas.util._decorators import cache_readonly from pandas.core.dtypes.cast import maybe_promote from pandas.core.d...
PypiClean
/bmt-lite-v2.4.3-2.2.2.tar.gz/bmt-lite-v2.4.3-2.2.2/bmt/data.py
import json from typing import Dict, List, Optional import importlib.resources as pkg_resources from . import _data with pkg_resources.open_text(_data, "all_classes.json") as stream: all_classes: List[str] = json.load(stream) with pkg_resources.open_text(_data, "all_elements.json") as stream: all_elements: L...
PypiClean
/rsonlite-0.1.0.tar.gz/rsonlite-0.1.0/README.txt
========= rsonlite ========= Version 0.1 Copyright (c) 2012, Patrick Maupin .. contents:: Abstract ============ rsonlite is the easiest way to create custom indented data file formats in Python. It is a single small module that can be shipped with your application, or it can be easy-installed or pipped from PyPI...
PypiClean
/faxplus-api-3.0.0.tar.gz/faxplus-api-3.0.0/faxplus/models/account_notifications_slack_settings.py
import pprint import re # noqa: F401 import six from faxplus.models import * class AccountNotificationsSlackSettings(object): """ Attributes: swagger_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute n...
PypiClean
/onegov.swissvotes-1.2.5-py3-none-any.whl/onegov/swissvotes/forms/search.py
from onegov.form import Form from onegov.form.fields import MultiCheckboxField from onegov.swissvotes import _ from onegov.swissvotes.collections import SwissVoteCollection from onegov.swissvotes.fields import PolicyAreaField from onegov.swissvotes.models import PolicyArea from onegov.swissvotes.models import PolicyAre...
PypiClean
/ics-pkg-0.2.0.tar.gz/ics-pkg-0.2.0/ics/classifier/lri_online_classifier.py
from collections import defaultdict from copy import deepcopy from functools import partial import numpy as np from sklearn.linear_model import PassiveAggressiveClassifier from ics.classifier.classifier import Classifier, NO_LABEL, YES_LABEL, BINARY_LABELS from ics.classifier.lri import LightweightRandomIndexingVecto...
PypiClean
/django-fa-1.0.0.tar.gz/django-fa-1.0.0/docs/_build/html/_static/searchtools.js
* Porter Stemmer */ var Stemmer = function() { var step2list = { ational: 'ate', tional: 'tion', enci: 'ence', anci: 'ance', izer: 'ize', bli: 'ble', alli: 'al', entli: 'ent', eli: 'e', ousli: 'ous', ization: 'ize', ation: 'ate', ator: 'ate', alism: 'al', ...
PypiClean
/panther_detections-0.0.8.tar.gz/panther_detections-0.0.8/panther_detections/providers/okta/rules/admin_actions.py
from panther_sdk import PantherEvent, detection, schema from panther_detections.utils import match_filters from .. import sample_logs from .._shared import ( SHARED_SUMMARY_ATTRS, create_alert_context, rule_tags, standard_tags, ) __all__ = [ "admin_disabled_mfa", "admin_role_assigned", ] de...
PypiClean
/slew-0.9.tar.gz/slew-0.9/src/utils.py
import math, time from xml.etree import ElementTree as ET from datetime import datetime, date import slew def patch_etree(): OriginalXMLTreeBuilder = ET.XMLTreeBuilder OriginalElementTree = ET.ElementTree Original_serialize_xml = ET._serialize_xml class PatchedXMLTreeBuilder(ET.XMLTreeBuilder): def __init_...
PypiClean
/hiq_python-1.1.12-py3-none-any.whl/hiq/framework/paddleocr.py
import os import hiq from typing import * import time from hiq.memory import get_memory_mb from hiq.hiq_utils import ( func_args_handler, get_tau_id, ) from hiq.utils import get_env_int here = os.path.dirname(os.path.realpath(__file__)) HIQ_PADDLEOCR_CONF = hiq.hiq_utils.read_csv_to_list(f"{here}/paddleocr.co...
PypiClean
/sifflet_sdk-0.3.2-py3-none-any.whl/client/model/snowflake_stream_properties_all_of.py
import re # noqa: F401 import sys # noqa: F401 from 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, validat...
PypiClean
/genx3server-3.6.22.tar.gz/genx3server-3.6.22/genx/models/lib/isotropic_matrix.py
import numpy as np from genx.core.custom_logging import iprint _ctype=np.complex128 def refl(kj, kjm1): return (kj+kjm1)/2/kjm1 def ass_X_test(k_b, k_u, k_l, dd_u, dd_l, sigma, sigma_l, sigma_u, dtype=_ctype): ''' Just a simpler version of ass_X to locate an error somewhere... ''' k_jm...
PypiClean
/multi-folder-pkg-deps-channels-insomniapx-0.0.1.tar.gz/multi-folder-pkg-deps-channels-insomniapx-0.0.1/px_src_name/lib_px_pkg_deps_channels/folder1/subfolder1/file3.py
def verify_deps_0(): import lib_dep_pkg_insomniapx assert lib_dep_pkg_insomniapx.file0.px_psw_func_0() == 'qiqi:520 from px_psw_func_0' boy = lib_dep_pkg_insomniapx.file0.px_psw_cls_0() assert boy.get_val() == 'qiqi:520 from px_psw_cls_0' import lib_dep_pkg_katiezhao assert lib_dep_pkg_katiezhao...
PypiClean
/mnfy-34.0.0-py3-none-any.whl/mnfy.py
"""Minify Python source code.""" import ast import contextlib import functools import math import sys _python_version = 3, 4 if sys.version_info[:2] != _python_version: # pragma: no cover raise ImportError('mnfy only supports Python {}.{}'.format(*_python_version)) _simple_nodes = { # Unary ast.I...
PypiClean
/nspyre-drivers-0.1.6.tar.gz/nspyre-drivers-0.1.6/src/nspyre_drivers/thorlabs/pm100d/pm100d_gui.py
import logging from pyqtgraph.Qt import QtWidgets from pyqtgraph import SpinBox logger = logging.getLogger(__name__) class PM100Widget(QtWidgets.QWidget): """Qt widget for controlling the PM100D power meter.""" def __init__(self, pm100d_driver): """ Args: pm100d_driver: PM100D dr...
PypiClean
/fds.sdk.PAEngine-0.21.10-py3-none-any.whl/fds/sdk/PAEngine/models/__init__.py
# import all models into this package # if you have many models here with many references from one model to another this may # raise a RecursionError # to avoid this, import only the models that you directly need like: # from from fds.sdk.PAEngine.model.pet import Pet # or import this package, but before doing it, use...
PypiClean
/cloudshell-firewall-cisco-asa-3.0.5.zip/cloudshell-firewall-cisco-asa-3.0.5/cloudshell/firewall/cisco/asa/mibs/CISCO-PRODUCTS-MIB.py
# Imports ( Integer, ObjectIdentifier, OctetString, ) = mibBuilder.importSymbols("ASN1", "Integer", "ObjectIdentifier", "OctetString") ( NamedValues, ) = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ( ConstraintsIntersection, ConstraintsUnion, SingleValueConstraint, ValueRangeConstraint, ValueSizeConst...
PypiClean
/pyjanitor-0.25.0.tar.gz/pyjanitor-0.25.0/janitor/spark/functions.py
import re from typing import Union from janitor import utils as janitor_utils from . import backend from janitor.functions.clean_names import ( _change_case, _normalize_1, _remove_special, _strip_underscores_func, ) try: from pyspark.sql import DataFrame except ImportError: janitor_utils.impo...
PypiClean
/stats-0.1.2a.tar.gz/stats-0.1.2a/README.txt
============================== stats -- calculator statistics ============================== Introduction ------------ stats is a pure-Python module providing basic statistics functions similar to those found on scientific calculators. It has over 40 statistics functions, including: Univariate statistics: * arithme...
PypiClean
/arduino_iot_cloud-0.0.9.tar.gz/arduino_iot_cloud-0.0.9/src/arduino_iot_cloud/__init__.py
from .ucloud import ArduinoCloudClient # noqa from .ucloud import ArduinoCloudObject from .ucloud import timestamp try: import asyncio import binascii except ImportError: import uasyncio as asyncio import ubinascii as binascii CADATA = binascii.unhexlify( b"308201cf30820174a00302010202141f101deb...
PypiClean
/zetascale-0.4.4.tar.gz/zetascale-0.4.4/zeta/training/fsdp.py
from functools import partial import torch from torch.distributed.fsdp import ( FullyShardedDataParallel, MixedPrecision, BackwardPrefetch, ShardingStrategy, ) from torch.distributed.fsdp.wrap import ( transformer_auto_wrap_policy ) def fsdp( model: torch.nn.Module, auto_wrap: bool = F...
PypiClean
/msgraph_beta_sdk-1.0.0a9-py3-none-any.whl/msgraph/generated/identity_governance/lifecycle_workflows/lifecycle_workflows_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
/SparseCOOTensorMulPyTorch-0.0.1.tar.gz/SparseCOOTensorMulPyTorch-0.0.1/.eggs/torch-1.9.0-py3.8-win-amd64.egg/torch/distributions/half_normal.py
import math from torch._six import inf from torch.distributions import constraints from torch.distributions.transforms import AbsTransform from torch.distributions.normal import Normal from torch.distributions.transformed_distribution import TransformedDistribution class HalfNormal(TransformedDistribution): r"""...
PypiClean
/ezcad_plugins-0.2.4-cp37-cp37m-win_amd64.whl/ezcad_plugins/gocube/impt/dialog_javaseis.py
import os.path as osp from qtpy.QtCore import Signal from qtpy.QtWidgets import QTextBrowser, QPushButton, QHBoxLayout from ezcad.config.base import _ from ezcad.widgets.ezdialog import EasyDialog from ezcad.utils.envars import NCORE class Dialog(EasyDialog): NAME = _("Load JavaSeis dataset") sig_start = Sig...
PypiClean
/deephaven_plugin_plotly_express-0.0.6-py3-none-any.whl/deephaven/plot/express/plots/pie.py
from __future__ import annotations from plotly import express as px from deephaven.table import Table from ._private_utils import process_args from ._update_wrapper import default_callback from ..deephaven_figure import DeephavenFigure def pie( table: Table = None, names: str = None, values...
PypiClean
/torch-gaggle-0.0.2.tar.gz/torch-gaggle-0.0.2/gaggle/operators/crossover/crossover.py
import copy import random from abc import abstractmethod from gaggle.population.individual import Individual from gaggle.arguments.ga_args import GAArgs from gaggle.population.population_manager import PopulationManager class Crossover: r""" The parent class for any Crossover Operator. It gives a basic func...
PypiClean
/llm_toys-0.1.1-py3-none-any.whl/llm_toys/hf/transformers/models/biogpt/modeling_biogpt.py
import math from typing import Optional, Tuple, Union import torch import torch.utils.checkpoint from torch import nn from torch.nn import BCEWithLogitsLoss, CrossEntropyLoss, MSELoss from ...activations import ACT2FN from ...modeling_outputs import ( BaseModelOutputWithPastAndCrossAttentions, CausalLMOutputW...
PypiClean
/azure_mgmt_apimanagement-4.0.0-py3-none-any.whl/azure/mgmt/apimanagement/operations/_quota_by_counter_keys_operations.py
from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, overload from azure.core.exceptions import ( ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, ResourceNotModifiedError, map_error, ) from azure.core.pipeline import PipelineResponse fr...
PypiClean
/neolib2-0.2.1.tar.gz/neolib2-0.2.1/neolib/inventory/MSInventory.py
from neolib.Exceptions import ParseException from neolib.inventory.Inventory import Inventory from neolib.item.MSItem import MSItem from neolib.item.MSItemList import MSItemList class MSInventory(Inventory): """ Represents the inventory of a main shop """ _log_name = 'neolib.inventory.MSInventory' _urls...
PypiClean
/djangorestframework_simplejwt-5.3.0.tar.gz/djangorestframework_simplejwt-5.3.0/rest_framework_simplejwt/settings.py
from datetime import timedelta from typing import Any, Dict from django.conf import settings from django.test.signals import setting_changed from django.utils.translation import gettext_lazy as _ from rest_framework.settings import APISettings as _APISettings from .utils import format_lazy USER_SETTINGS = getattr(se...
PypiClean
/librecell-layout-0.0.15.tar.gz/librecell-layout-0.0.15/lclayout/drc_cleaner/drc_cleaner.py
import klayout.db as pya from klayout.db import Point, Shape, Polygon, Shapes, Region from . import base as cleaner from .base import OPolygon, SOPolygon, Orientation, OEdge from itertools import count, product, combinations from typing import Dict, List, Iterable, Set, Tuple, Union import logging from .. import te...
PypiClean
/ifb-openlink-1.0.0.tar.gz/ifb-openlink-1.0.0/openlink/core/static/ckeditor/ckeditor/plugins/templates/dialogs/templates.js
/* Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ (function(){CKEDITOR.dialog.add("templates",function(c){function r(a,b){var m=CKEDITOR.dom.element.createFromHtml('\x3ca href\x3d"javascript:void(0)" tabI...
PypiClean
/jupyterlab_remote_contents-0.1.1.tar.gz/jupyterlab_remote_contents-0.1.1/node_modules/@typescript-eslint/eslint-plugin/dist/rules/prefer-optional-chain.js
"use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; var desc = Object.getOwnPropertyDescriptor(m, k); if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { desc = { enumerable: true...
PypiClean
/pulumi_azure_native-2.5.1a1693590910.tar.gz/pulumi_azure_native-2.5.1a1693590910/pulumi_azure_native/servicebus/__init__.py
from .. import _utilities import typing # Export this package's modules as members: from ._enums import * from .disaster_recovery_config import * from .get_disaster_recovery_config import * from .get_migration_config import * from .get_namespace import * from .get_namespace_authorization_rule import * from .get_namesp...
PypiClean
/simpleblog3-0.9.8.tar.gz/simpleblog3-0.9.8/setuputils.py
import os from datetime import datetime from distutils.core import Extension from functools import partial from itertools import chain, dropwhile, islice, takewhile def _rst_header_lines(template, basename, **kwds): # Generate header lines from template if template: return [ "{}{}".format(...
PypiClean
/tensorflow_cpu_test_package-2.11.0rc0-cp38-cp38-win_amd64.whl/tensorflow/dtensor/python/layout.py
"""Python definitions for `Mesh` and `Layout`.""" import collections import itertools from typing import List, Dict, Optional import numpy as np from tensorflow.dtensor.proto import layout_pb2 from tensorflow.python import _pywrap_dtensor_device from tensorflow.python.framework import config as tf_config from tensor...
PypiClean
/vioneta-2023.7.3.tar.gz/vioneta-2023.7.3/homeassistant/components/xbox/browse_media.py
from __future__ import annotations from typing import NamedTuple from xbox.webapi.api.client import XboxLiveClient from xbox.webapi.api.provider.catalog.const import HOME_APP_IDS, SYSTEM_PFN_ID_MAP from xbox.webapi.api.provider.catalog.models import ( AlternateIdType, CatalogResponse, FieldsTemplate, ...
PypiClean
/ant1Interface-0.0.29-py3-none-any.whl/python/google/protobuf/duration_pb2.py
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_insertion_point(imports) _sym_db = _symbol_database.Default() DESCRIPTOR = _descrip...
PypiClean
/anji_core-0.8.11-py3-none-any.whl/anji_core/backend.py
import logging from abc import abstractmethod from typing import Type, Callable, Dict, Any, List import traceback from multiprocessing.connection import Connection from threading import Thread from datetime import datetime import sys import time from anji_orm import Model, register from anji_orm.model import fetch fro...
PypiClean
/mess_client_serzh-0.0.3.tar.gz/mess_client_serzh-0.0.3/client/client/add_contact.py
from PyQt5.QtGui import QStandardItemModel, QStandardItem from PyQt5.QtCore import Qt from PyQt5.QtWidgets import QDialog, QLabel, QComboBox, QPushButton import logging logger = logging.getLogger('client') class AddContactDialog(QDialog): ''' Диалог добавления пользователя в список контактов. Предлагает ...
PypiClean
/networking-baremetal-6.2.0.tar.gz/networking-baremetal-6.2.0/doc/source/configuration/ml2/index.rst
======================= Configuration Reference ======================= The following pages describe configuration options that can be used to adjust the neutron ML2 configuration and the baremetal ML2 plug-in and device drivers to your particular situation. To enable mechanism drivers in the ML2 plug-in, edit the ``...
PypiClean
/siranga-0.3.7.tar.gz/siranga-0.3.7/README.md
# siranga A ssh wrapper to make life a little bit easier. Why? I am lazy ### Installation ```bash python3 -m pip install -U siranga ``` ## Usage #### Set Options ``` siranga → ...
PypiClean
/funkwhale_api-1.2.8.tar.gz/funkwhale_api-1.2.8/funkwhale_api/music/management/commands/rebuild_music_permissions.py
from argparse import RawTextHelpFormatter from django.core.management.base import BaseCommand from django.core.management.base import CommandError from django.db import transaction from django.db.models import Q from funkwhale_api.music.models import TrackActor, Library from funkwhale_api.federation.models import Ac...
PypiClean
/wi1-bot-1.3.14.tar.gz/wi1-bot-1.3.14/wi1_bot/scripts/start.py
import asyncio import logging import logging.config import pathlib from typing import Any from wi1_bot import webhook from wi1_bot.config import config from wi1_bot.discord import bot from wi1_bot.transcoder import Transcoder _logger = logging.getLogger(__name__) def main() -> None: logging_config: dict[str, An...
PypiClean
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojo/nls/zh-tw/colors.js
define( "dojo/nls/zh-tw/colors", //begin v1.x content ({ // local representation of all CSS3 named colors, companion to dojo.colors. To be used where descriptive information // is required for each color, such as a palette widget, and not for specifying color programatically. //Note: due to the SVG 1.0 spec additions...
PypiClean
/imcsdk_ecoen66-0.9.20.tar.gz/imcsdk_ecoen66-0.9.20/imcsdk/utils/imcinventory.py
import time import logging from imcsdk.mometa.mgmt.MgmtInventory import MgmtInventory log = logging.getLogger('imc') def _get_parent_dn(handle): from imcsdk.imccoreutils import IMC_PLATFORM if handle.platform == IMC_PLATFORM.TYPE_CLASSIC: return 'sys' elif handle.platform == IMC_PLATFORM.TYPE_MOD...
PypiClean
/Products.PressRoom-3.18.zip/Products.PressRoom-3.18/Products/PressRoom/__init__.py
from Products.CMFCore import utils, DirectoryView from Products.Archetypes.public import * from Products.Archetypes import listTypes from Products.GenericSetup import EXTENSION from Products.GenericSetup import profile_registry from Products.CMFPlone.interfaces import IPloneSiteRoot # Get configuration data, permissi...
PypiClean
/mera_tvm_host_only-1.3.1-cp36-cp36m-manylinux_2_27_x86_64.whl/tvm/tir/function.py
"""Function data types.""" import collections import inspect from typing import Callable, List, Mapping, Optional, Union, Tuple import tvm import tvm._ffi import tvm.runtime from tvm.runtime import Object from tvm.ir import BaseFunc, Range from .buffer import Buffer from .expr import Var, PrimExpr from . import _ffi_...
PypiClean
/parse_qwantz-2023.2.22-py3-none-any.whl/parse_qwantz/elements.py
from logging import getLogger from parse_qwantz.box import Box from parse_qwantz.fonts import ALL_FONTS from parse_qwantz.lines import Line, get_line from parse_qwantz.text_lines import TextLine, try_text_line, cleanup_text_lines from parse_qwantz.detect_thought import get_thought from parse_qwantz.pixels import Pixel...
PypiClean
/python_mistralclient-5.0.0-py3-none-any.whl/mistralclient/commands/v2/action_executions.py
import logging from oslo_serialization import jsonutils from osc_lib.command import command from mistralclient.commands.v2 import base from mistralclient import utils LOG = logging.getLogger(__name__) class ActionExecutionFormatter(base.MistralFormatter): COLUMNS = [ ('id', 'ID'), ('name', 'N...
PypiClean
/puresec-cli-1.2.1.tar.gz/puresec-cli-1.2.1/puresec_cli/resources/node_modules/source-map/lib/array-set.js
* Copyright 2011 Mozilla Foundation and contributors * Licensed under the New BSD license. See LICENSE or: * http://opensource.org/licenses/BSD-3-Clause */ var util = require('./util'); var has = Object.prototype.hasOwnProperty; var hasNativeMap = typeof Map !== "undefined"; /** * A data structure which is a com...
PypiClean
/pulumi_azure_native-2.5.1a1693590910.tar.gz/pulumi_azure_native-2.5.1a1693590910/pulumi_azure_native/network/v20200401preview/outputs.py
import copy import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities from . import outputs from ._enums import * __all__ = [ 'InboundEndpointIPConfigurationResponse', 'SubResourceResponse', 'SystemDataResponse', ...
PypiClean
/yolov7detect-1.0.1.tar.gz/yolov7detect-1.0.1/yolov7/utils/loss.py
import torch import torch.nn as nn import torch.nn.functional as F from yolov7.utils.general import bbox_iou, bbox_alpha_iou, box_iou, box_giou, box_diou, box_ciou, xywh2xyxy from yolov7.utils.torch_utils import is_parallel def smooth_BCE(eps=0.1): # https://github.com/ultralytics/yolov3/issues/238#issuecomment-59...
PypiClean
/msgraph-sdk-1.0.0a3.tar.gz/msgraph-sdk-1.0.0a3/msgraph/generated/me/calendar_groups/item/calendars/item/calendar_view/item/instances/item/snooze_reminder/snooze_reminder_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
/gns3-gui-3.0.0a1.tar.gz/gns3-gui-3.0.0a1/gns3/modules/docker/pages/docker_vm_configuration_page.py
from gns3.qt import QtWidgets from gns3.node import Node from gns3.dialogs.custom_adapters_configuration_dialog import CustomAdaptersConfigurationDialog from ..ui.docker_vm_configuration_page_ui import Ui_dockerVMConfigPageWidget from ....dialogs.file_editor_dialog import FileEditorDialog from ....dialogs.node_propert...
PypiClean
/p4a-django-1.9.1.tar.gz/p4a-django-1.9.1/django/contrib/admin/static/admin/js/admin/RelatedObjectLookups.js
(function($) { 'use strict'; function html_unescape(text) { // Unescape a string that was escaped using django.utils.html.escape. text = text.replace(/&lt;/g, '<'); text = text.replace(/&gt;/g, '>'); text = text.replace(/&quot;/g, '"'); text = text.replace(/&#39;/g, "'"...
PypiClean
/sqlalchemy-hana-0.5.0.tar.gz/sqlalchemy-hana-0.5.0/README.rst
SQLAlchemy dialect for SAP HANA =============================== This dialect allows you to use the SAP HANA database with SQLAlchemy. It can use the supported SAP HANA Python Driver `hdbcli` (supported since SAP HANA SPS 2) or the open-source pure Python client `PyHDB`. Please notice that sqlalchemy-hana isn't an offi...
PypiClean
/AN-DiscordBot-3.9.4.tar.gz/AN-DiscordBot-3.9.4/anbot/core/bot.py
import asyncio import inspect import os import logging from collections import Counter from enum import Enum from importlib.machinery import ModuleSpec from pathlib import Path from typing import Optional, Union, List import discord import sys from discord.ext.commands import when_mentioned_or from . import Config, i...
PypiClean
/Office365-REST-Python-Client-2.4.3.tar.gz/Office365-REST-Python-Client-2.4.3/office365/sharepoint/contenttypes/content_type.py
from office365.runtime.queries.service_operation import ServiceOperationQuery from office365.runtime.paths.resource_path import ResourcePath from office365.runtime.types.collections import StringCollection from office365.sharepoint.base_entity import BaseEntity from office365.sharepoint.contenttypes.content_type_id imp...
PypiClean
/omnipath-1.0.7.tar.gz/omnipath-1.0.7/docs/source/_templates/autosummary/class.rst
:github_url: {{ fullname | escape }} {{ fullname | escape | underline}} .. currentmodule:: {{ module }} .. add toctree option to make autodoc generate the pages .. autoclass:: {{ objname }} {% block attributes %} {% if attributes %} .. rubric:: Attributes .. autosummary:: :toctree: . {% for ...
PypiClean
/thonny-edulint-0.3.3.tar.gz/thonny-edulint-0.3.3/thonnycontrib/edulint/view.py
import ast import datetime import os.path import textwrap import tkinter as tk from logging import getLogger from typing import List from thonny import get_runner, get_workbench, rst_utils, tktextext, ui_utils from thonny.common import STRING_PSEUDO_FILENAME, ToplevelResponse, read_source from thonny.ui_utils import s...
PypiClean
/scikit_image_augument_img-0.0.2-cp36-cp36m-win_amd64.whl/skimage/feature/censure.py
import numpy as np from scipy.ndimage import maximum_filter, minimum_filter, convolve from ..transform import integral_image from ..feature import structure_tensor from ..morphology import octagon, star from ..feature.censure_cy import _censure_dob_loop from ..feature.util import (FeatureDetector, _prepare_grayscale_i...
PypiClean
/XTCryptoSignals-1.0.0-py3-none-any.whl/xtcryptosignals/server/api/exchanges/views.py
__author__ = "Paulo Antunes" __copyright__ = "Copyright 2018, XTCryptoSignals" __credits__ = [ "Paulo Antunes", ] __license__ = "GPL" __maintainer__ = "Paulo Antunes" __email__ = "pjmlantunes@gmail.com" from flask import Blueprint, current_app from flask_restful import Api, Resource from xtcryptosignals.server.a...
PypiClean
/tensorflow_ascend-1.15.0-cp37-cp37m-manylinux2014_aarch64.whl/tensorflow_core/lite/toco/toco_flags_pb2.py
import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf i...
PypiClean
/dsin100daysv30-6.0.1.tar.gz/dsin100daysv30-6.0.1/notebook/static/components/MathJax/jax/output/CommonHTML/autoload/mtable.js
MathJax.Hub.Register.StartupHook("CommonHTML Jax Ready",function(){var g="2.7.5";var b=MathJax.ElementJax.mml,a=MathJax.Hub.config,e=MathJax.OutputJax.CommonHTML,d=MathJax.Hub.SplitList;var c=-1,f=1000000;b.mtable.Augment({toCommonHTML:function(l){var m={rows:[],labels:[],labeled:false};l=this.CHTMLdefaultNode(l,{noBBo...
PypiClean
/riskpy-0.0.4.2.tar.gz/riskpy-0.0.4.2/README.md
## riskpy riskpy is a python package with usefull tools for risk analysts, validators and any other people who build and check statistical models ## Installation ### Dependencies riskpy requires: Python (>= 2.7 or >= 3.4) NumPy (>= 1.8.2) SciPy (>= 0.13.3) Statsmodels (>= 0.8.0) ## Development ### Important links...
PypiClean
/systemPY-0.0.16-py3-none-any.whl/systempy/target.py
import abc import atexit from typing import Optional, Type, Dict, Any from types import TracebackType from mypy_extensions import trait from typing_extensions import Self, dataclass_transform from .util import register_target, register_target_method, mark_as_target @register_target @dataclass_transform() @trait cl...
PypiClean
/jsonschema-codelane-3.1.2b0.tar.gz/jsonschema-codelane-3.1.2b0/docs/errors.rst
========================== Handling Validation Errors ========================== .. currentmodule:: jsonschema.exceptions When an invalid instance is encountered, a `ValidationError` will be raised or returned, depending on which method or function is used. .. autoexception:: ValidationError The information car...
PypiClean
/anime_dl-0.1.1-py3-none-any.whl/anime_dl/main.py
import os import sys import math import wget import argparse from colorama import init, Fore, Style, deinit from anime_dl import __version__ from anime_dl.scraper import dllink_scraper def get_download_path(): """Returns the default downloads path for linux or windows""" if os.name == 'nt': import win...
PypiClean
/librapid_cuda_11.7.0-0.4.11-cp37-cp37m-win_amd64.whl/librapid/vendor/mpfr/mpir/mpir/msvc/vs15/run-speed.py
from __future__ import print_function import sys import os import shutil import string import copy import code import math import platform from subprocess import Popen, PIPE, STDOUT if sys.platform.startswith('win'): dir = '.\\x64\\release\\' else : dir = './' ll = [ '-c -s 10(10)1000 noop', '-c -s 10(...
PypiClean
/Theano-1.0.5.tar.gz/Theano-1.0.5/theano/gpuarray/rng_mrg.py
from __future__ import absolute_import, print_function, division from theano import Apply, tensor from theano.gof import local_optimizer from theano.sandbox.rng_mrg import mrg_uniform_base, mrg_uniform from theano.tensor import as_tensor_variable, get_vector_length from theano.scalar import int32 as int_t from .basic...
PypiClean
/certora-cli-alpha-shelly-betterGlobalErrorMessaging-20230516.13.41.287678.tar.gz/certora-cli-alpha-shelly-betterGlobalErrorMessaging-20230516.13.41.287678/certora_cli/EVMVerifier/certoraContext.py
import argparse import json import logging import os import re import sys from pathlib import Path from typing import Dict, List, Optional, Tuple, Any scripts_dir_path = Path(__file__).parent.resolve() # containing directory sys.path.insert(0, str(scripts_dir_path)) from EVMVerifier.certoraContextClass import Certo...
PypiClean
/love_course_2016_2019-2023.3.1.0-py3-none-any.whl/LoveCourse20162019/docs/ai-shang-qing-gan/爱上情感《魅力男神全套》:10聊天三十六计(针对聊天中不同的情况,给你最机智的回复方法:女生在生活中最常给男生的废物测试有哪几种?教你化解女生的废物测试!.md
# 爱上情感《魅力男神全套》:10 聊天三十六计(针对聊天中不同的情况,给你最机智的回复方法:女生在生活中最常给男生的废物测试有哪几种?教你化解女生的废物测试! 我们今天带来了一集我们练艳精品库,我们看一下今天的主题,可能很多兄弟们已经知道了今天的主题,就是女生在生活中最常给男生的飞路测试用哪几种,交给你化解女生飞路测试的方法,这是今天的主题。 我相信可能很多兄弟们都想去学,很多兄弟们都不理解,或者说遇到了飞路测试都不知道怎么去做,那么今天的这些课程会对你有一个很好的帮助,我会讲几个在生活当中,女生经常对你们的一些飞路测试,我们来一一地看一下。 那么今天我要给大家讲的就是没有关于飞路测试,我会去讲讲几种在生活当中女生经常去跑给...
PypiClean
/jupyter_stack_trace-0.1.2.tar.gz/jupyter_stack_trace-0.1.2/README.md
# Jupyter Stack Trace [![Github Actions Status](https://github.com/teticio/jupyter-stack-trace/workflows/Build/badge.svg)](https://github.com/teticio/jupyter-stack-trace/actions/workflows/build.yml) A JupyterLab extension to jump to the line in the file of the stack trace, search Google for the error in Stack Overflow...
PypiClean
/pyroute2.protocols-0.6.13.tar.gz/pyroute2.protocols-0.6.13/pr2modules/dhcp/__init__.py
import struct import sys from array import array from pr2modules.common import basestring from pr2modules.protocols import msg BOOTREQUEST = 1 BOOTREPLY = 2 DHCPDISCOVER = 1 DHCPOFFER = 2 DHCPREQUEST = 3 DHCPDECLINE = 4 DHCPACK = 5 DHCPNAK = 6 DHCPRELEASE = 7 DHCPINFORM = 8 if not hasattr(array, 'tobytes'): # ...
PypiClean
/v3/model/resource_requirements.py
import pprint import re import six class ResourceRequirements: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key i...
PypiClean
/hail-0.2.120-py3-none-any.whl/hailtop/aiocloud/aiogoogle/user_config.py
from typing import Optional, List, Union, Tuple import os import warnings from jproperties import Properties from enum import Enum from dataclasses import dataclass from hailtop.config.user_config import configuration_of GCSRequesterPaysConfiguration = Union[str, Tuple[str, List[str]]] def get_gcs_requester_pays_...
PypiClean
/django-skylark-0.4.6.tar.gz/django-skylark-0.4.6/src/skylark/templates/chirp/media/dojox/sketch/DoubleArrowAnnotation.js
if(!dojo._hasResource["dojox.sketch.DoubleArrowAnnotation"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code. dojo._hasResource["dojox.sketch.DoubleArrowAnnotation"] = true; dojo.provide("dojox.sketch.DoubleArrowAnnotation"); dojo.require("dojox.sketch.Annotation"); dojo.require("d...
PypiClean
/djangocms-forms-0.2.5.tar.gz/djangocms-forms-0.2.5/djangocms_forms/static/js/djangocms_forms/jquery.djangocms-forms.js
;(function($, window, document, undefined) { var cmsForms = 'cmsForms', defaults = { formWrapper: '.form-wrapper', formErrors: '.form-errors', formSuccess: '.form-success', fieldWrapper: '.field-wrapper', fieldErrors: '.field-errors', ...
PypiClean
/solara_assets-1.19.0.tar.gz/solara_assets-1.19.0/cdn/vega-lite@5.2.0/src/spec/base.ts
import {Color, Cursor, SignalRef, Text} from 'vega'; import {isNumber, isObject} from 'vega-util'; import {NormalizedSpec} from '.'; import {Data} from '../data'; import {ExprRef} from '../expr'; import {MarkConfig} from '../mark'; import {Resolve} from '../resolve'; import {TitleParams} from '../title'; import {Transf...
PypiClean
/wakeProtocol-0.0.1-py3-none-any.whl/pyWake/rx_frame.py
import enum from pyWake import escapesym from pyWake.crc import crc ADDRESS_BITMASK = 0x80 class mode(enum.Enum): NORMAL = 0 ESC = 1 class rxState(enum.Enum): WAIT_FEND = 0 WAIT_ADDR = 1 WAIT_CMD = 2 WAIT_LEN = 3 WAIT_DATA = 4 WAIT_CRC = 5 class rxFrame: def __init__(self) -> No...
PypiClean
/django-haystackbrowser-0.6.3.tar.gz/django-haystackbrowser-0.6.3/haystackbrowser/forms.py
import logging from django.core.exceptions import ValidationError from django.http import QueryDict from django.template.defaultfilters import yesno from django.forms import (MultipleChoiceField, CheckboxSelectMultiple, ChoiceField, HiddenInput, IntegerField) from django.utils.translation impo...
PypiClean
/iptoolsjj-1.4.2-py3-none-any.whl/iptoolsjj-1.4.2.dist-info/DESCRIPTION.rst
I have written my own python ip/subnet tool. It works in both python 2 and 3. It does not have dependencies except standard 're' module. Use theese methods to conver ip mask formats and to check if ip/subnet belong to other subnet. I made it partly for fun and to learn, so perhaps these are not the best, but they ge...
PypiClean
/troykahat-1.0.0.tar.gz/troykahat-1.0.0/README.md
# TroykaHatPython Raspberry Pi library for interaction with a Amperka TroykaHAT. ## Enabled I²C Interface If you haven’t enabled I²C support in your Raspbian Linux yet, open the terminal and run the following commands: 1. Run `sudo raspi-config`. 2. Use the down arrow to select **Interfacing Options**. 3. Arrow dow...
PypiClean
/google-cloud-datacatalog-3.15.0.tar.gz/google-cloud-datacatalog-3.15.0/google/cloud/datacatalog_v1/services/policy_tag_manager/pagers.py
from typing import ( Any, AsyncIterator, Awaitable, Callable, Iterator, Optional, Sequence, Tuple, ) from google.cloud.datacatalog_v1.types import policytagmanager class ListTaxonomiesPager: """A pager for iterating through ``list_taxonomies`` requests. This class thinly wrap...
PypiClean
/PyRM-0.1.0.0812.tar.gz/PyRM-0.1.0.0812/pyrm/utils/csv_utils.py
import sys, os, csv def get_csv_tables(filename): f = file(filename, "r") data = f.readlines() f.close() tables = {} table_no = 0 for line in data: line = line.strip() if line.startswith(":") or line == "": continue if line.startswith("***"): ...
PypiClean
/h-api-1.1.0.tar.gz/h-api-1.1.0/src/h_api/bulk_api/command_builder.py
from h_api.bulk_api.model.command import ( Command, ConfigCommand, CreateCommand, UpsertCommand, ) from h_api.bulk_api.model.config_body import Configuration from h_api.bulk_api.model.data_body import ( CreateGroupMembership, UpsertGroup, UpsertUser, ) from h_api.enums import CommandType, V...
PypiClean
/ensmallen_graph-0.6.0-cp37-cp37m-manylinux2010_x86_64.whl/ensmallen_graph/datasets/string/dehalobacterspfth1.py
from typing import Dict from ..automatic_graph_retrieval import AutomaticallyRetrievedGraph from ...ensmallen_graph import EnsmallenGraph # pylint: disable=import-error def DehalobacterSpFth1( directed: bool = False, verbose: int = 2, cache_path: str = "graphs/string", **additional_graph_kwargs: Dic...
PypiClean
/ais_dom-2023.7.2-py3-none-any.whl/homeassistant/components/mjpeg/config_flow.py
from __future__ import annotations from http import HTTPStatus from types import MappingProxyType from typing import Any import requests from requests.auth import HTTPBasicAuth, HTTPDigestAuth from requests.exceptions import HTTPError, Timeout import voluptuous as vol from homeassistant.config_entries import ConfigE...
PypiClean
/tensorflow_model_analysis-0.45.0-py3-none-any.whl/tensorflow_model_analysis/extractors/legacy_feature_extractor.py
"""Implements API for extracting features from an example.""" import copy from typing import Any, Dict, List, Optional from absl import logging import apache_beam as beam import numpy as np import tensorflow as tf from tensorflow_model_analysis import constants from tensorflow_model_analysis.api import types from t...
PypiClean
/apache-superset-johan078-0.35.2-patch8277.tar.gz/apache-superset-johan078-0.35.2/superset/db_engine_specs/hive.py
import logging import os import re import time from datetime import datetime from typing import Any, Dict, List, Optional, Tuple from urllib import parse from sqlalchemy import Column from sqlalchemy.engine import create_engine from sqlalchemy.engine.base import Engine from sqlalchemy.engine.reflection import Inspecto...
PypiClean
/youtube_dl_fork-2022.6.30.tar.gz/youtube_dl_fork-2022.6.30/youtube_dl/extractor/coub.py
from __future__ import unicode_literals from .common import InfoExtractor from ..utils import ( ExtractorError, float_or_none, int_or_none, parse_iso8601, qualities, ) class CoubIE(InfoExtractor): _VALID_URL = r'(?:coub:|https?://(?:coub\.com/(?:view|embed|coubs)/|c-cdn\.coub\.com/fb-player\....
PypiClean
/NovalIDE-1.1.8-py3-none-any.whl/noval/python/debugger/commandproperty.py
from noval import GetApp,_ import os import tkinter as tk from tkinter import ttk,messagebox,filedialog import noval.ui_base as ui_base import noval.consts as consts import noval.python.project.viewer as projectviewer import noval.util.utils as utils import noval.misc as misc import noval.util.fileutils as fileutils fr...
PypiClean
/collective.collectionfilter-5.1.1-py3-none-any.whl/collective/collectionfilter/baseviews.py
from .filteritems import get_filter_items from .filteritems import ICollectionish from .interfaces import IGroupByCriteria from .query import make_query from .utils import base_query from .utils import clean_query from .utils import safe_decode from .utils import safe_encode from .utils import safe_iterable from .vocab...
PypiClean
/jupyterhub_url_sharing-0.1.0.tar.gz/jupyterhub_url_sharing-0.1.0/node_modules/@lumino/dragdrop/dist/index.es6.js
import { DisposableDelegate } from '@lumino/disposable'; /** * An object which manages a drag-drop operation. * * A drag object dispatches four different events to drop targets: * * - `'lm-dragenter'` - Dispatched when the mouse enters the target * element. This event must be canceled in order to receive any ...
PypiClean
/openimis_be_im_export-1.0.0-py3-none-any.whl/im_export/resources.py
from django.db.models import Q from core.datetimes.ad_datetime import datetime from im_export.apps import ImportExportConfig from insuree.models import Insuree, Family, Gender from location.models import Location from import_export import fields, resources, widgets class CharRequiredWidget(widgets.CharWidget): ...
PypiClean
/dsin100daysv33-6.0.1.tar.gz/dsin100daysv33-6.0.1/notebook/static/components/MathJax/localization/br/MathMenu.js
MathJax.Localization.addTranslation("br","MathMenu",{version:"2.7.7",isLoaded:true,strings:{Show:"Diskouez ar formulenn evel",MathMLcode:"Kod MathML",OriginalMathML:"MathML orin",TeXCommands:"Urzhio\u00F9 TeX",Original:"Furmskrid orin",ErrorMessage:"Kemennadenn fazi",Annotation:"Notenn",TeX:"TeX",StarMath:"StarMath",Op...
PypiClean
/efb_wechat_slave_itchat_uos-2.0.8-py3-none-any.whl/efb_wechat_slave/vendor/wxpy/api/messages/sent_message.py
from __future__ import unicode_literals import logging from ...compatible.utils import force_encoded_string_output from ...utils import repr_message logger = logging.getLogger(__name__) class SentMessage(object): """ 程序中通过 .send/reply() 系列方法发出的消息 *使用程序发送的消息也将被记录到历史消息 bot.messages 中* """ def _...
PypiClean