id
stringlengths
1
8
text
stringlengths
6
1.05M
dataset_id
stringclasses
1 value
/mautrix_facebook-0.5.0-py3-none-any.whl/mautrix_facebook/matrix.py
from __future__ import annotations from typing import TYPE_CHECKING import sys import time from mautrix.bridge import BaseMatrixHandler from mautrix.types import ( Event, EventID, EventType, PresenceEvent, ReactionEvent, ReactionEventContent, ReceiptEvent, RedactionEvent, RelationT...
PypiClean
/python_incidentio_client-0.30.0.tar.gz/python_incidentio_client-0.30.0/incident_io_client/models/catalog_type_attribute_payload_v2_request_body.py
from typing import Any, Dict, List, Type, TypeVar, Union import attr from ..models.catalog_type_attribute_payload_v2_request_body_mode import ( CatalogTypeAttributePayloadV2RequestBodyMode, ) from ..types import UNSET, Unset T = TypeVar("T", bound="CatalogTypeAttributePayloadV2RequestBody") @attr.s(auto_attrib...
PypiClean
/frasco-models-0.7.0.tar.gz/frasco-models-0.7.0/frasco_models/backend.py
from .query import NoResultError from frasco import AttrDict class ModelNotFoundError(Exception): pass class ModelSchemaError(Exception): pass class RegisteringMetaClass(type): def __init__(cls, name, bases, attrs): type.__init__(cls, name, bases, attrs) cls.__backend__.models[name] = ...
PypiClean
/jellyfin_alexa_skill-0.3.1-py3-none-any.whl/jellyfin_alexa_skill/config.py
import configparser import gettext import re from pathlib import Path from typing import Union DEFAULT_ALEXA_SKILL_CONFIG_PATH = str(Path.home() / ".jellyfin_alexa_skill/config/skill.conf") DEFAULT_ALEXA_SKILL_DATA_PATH = str(Path.home() / ".jellyfin_alexa_skill/data") APP_NAME = "jellyfin_alexa_skill" CAPABILITIES_...
PypiClean
/globus-pilot-0.7.0.tar.gz/globus-pilot-0.7.0/pilot/search_parse.py
import os import urllib import logging import datetime log = logging.getLogger(__name__) FIELD_METADATA_TITLES = [ ('name', 'Column Name'), ('type', 'Type'), ('count', 'Count'), ('frequency', 'Freq'), ('top', 'Top'), ('unique', 'Unique'), ('min', 'Min'), ('max', 'Max'), ('mean', 'Mean'), ...
PypiClean
/lifx_photons_core-0.42.9.tar.gz/lifx_photons_core-0.42.9/photons_messages/messages.py
import math from delfick_project.norms import sb from photons_messages import enums, fields from photons_messages.frame import msg from photons_protocol.messages import Messages, MultiOptions, T from photons_protocol.types import Optional def empty(pkt, attr): return pkt.actual(attr) in (Optional, sb.NotSpecifie...
PypiClean
/iredis_bin-1.9.4-cp310-cp310-manylinux2010_x86_64.whl/iredis_bin-1.9.4.data/scripts/lib/prompt_toolkit/validation.py
from abc import ABCMeta, abstractmethod from typing import Callable, Optional from prompt_toolkit.eventloop import run_in_executor_with_context from .document import Document from .filters import FilterOrBool, to_filter __all__ = [ "ConditionalValidator", "ValidationError", "Validator", "ThreadedVali...
PypiClean
/jupyterlab_remote_contents-0.1.1.tar.gz/jupyterlab_remote_contents-0.1.1/node_modules/cssesc/cssesc.js
'use strict'; var object = {}; var hasOwnProperty = object.hasOwnProperty; var merge = function merge(options, defaults) { if (!options) { return defaults; } var result = {}; for (var key in defaults) { // `if (defaults.hasOwnProperty(key) { … }` is not needed here, since // only recognized option names are ...
PypiClean
/sportmonks_python_sdk-0.1.0-py3-none-any.whl/sportmonks/paths/version_sport_players_search_name/get.py
from dataclasses import dataclass import typing_extensions import urllib3 from sportmonks.request_before_hook import request_before_hook import json from urllib3._collections import HTTPHeaderDict from sportmonks.api_response import AsyncGeneratorResponse from sportmonks import api_client, exceptions from datetime imp...
PypiClean
/pyjx-html5-0.1.0.tar.gz/pyjx-html5-0.1.0/pyjswidgets/pyjamas/DOM.py
import pyjd if pyjd.is_desktop: from pyjamas.Window import onResize, onClosing, onClosed from __pyjamas__ import JS, doc, get_main_frame, wnd currentEvent = None sCaptureElem = None sEventPreviewStack = [] listeners = {} from pyjamas.ui import Event from pyjamas.ui.Event import ( ONBLUR, ONCHAN...
PypiClean
/pylabon-0.1.4.3-py3-none-any.whl/pyLabOn/LabReport.py
import pypandoc from os.path import join __all__ = ['Report', 'ReportParagraph', 'ReportPlainContent', 'ReportTable'] __version__ = '0.1.4' __author__ = 'Ferdinand Sukhoi' class ReportContent(object): """A part of content in a report Base class """ def __init__(self): super().__init__() ...
PypiClean
/pensando_ent-1.28.1.tar.gz/pensando_ent-1.28.1/pensando_ent/psm/model/cluster_license.py
import re # noqa: F401 import sys # noqa: F401 import nulltype # noqa: F401 from pensando_ent.psm.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, ModelSimple, cached_property, change_keys_js_to_python, convert_js_args_to_python_args, date, datetime, ...
PypiClean
/cubicweb_forgotpwd-1.0.0-py3-none-any.whl/cubicweb_forgotpwd/views.py
from yams import ValidationError from logilab.mtconverter import xml_escape from cubicweb import _ from cubicweb_web.view import StartupView from cubicweb.crypto import decrypt from cubicweb_web import ( Redirect, controller, form, captcha, formwidgets as wdg, formfields as ff, ) from cubicweb...
PypiClean
/ssm-simulators-0.3.2.tar.gz/ssm-simulators-0.3.2/ssms/support_utils/kde_class.py
import numpy as np import scipy as scp import time from datetime import datetime from sklearn.neighbors import KernelDensity # Generate class for log_kdes class logkde: def __init__( self, simulator_data, # Simulator_data is the kind of data returned by the simulators in ddm_data_simulation.py ...
PypiClean
/DLTA-AI-1.1.tar.gz/DLTA-AI-1.1/DLTA_AI_app/trackers/strongsort/deep/models/hacnn.py
from __future__ import division, absolute_import import torch from torch import nn from torch.nn import functional as F __all__ = ['HACNN'] class ConvBlock(nn.Module): """Basic convolutional block. convolution + batch normalization + relu. Args: in_c (int): number of input channels. ...
PypiClean
/ui/_app/immutable/entry/start.dabdea59.js
import{o as Ce,t as ye}from"../chunks/index.6dba6488.js";import{S as Je,a as Ke,I as q,g as De,f as qe,b as we,c as le,s as V,i as _e,d as Q,e as K,P as Fe,h as We}from"../chunks/singletons.3d195942.js";function Xe(t,o){return t==="/"||o==="ignore"?t:o==="never"?t.endsWith("/")?t.slice(0,-1):t:o==="always"&&!t.endsWith...
PypiClean
/postfix_logsums-0.9.4-py3-none-any.whl/postfix_logsums/stats.py
from __future__ import absolute_import import copy import logging import datetime import re try: from collections.abc import MutableMapping, Mapping, MutableSequence, Sequence except ImportError: from collections import MutableMapping, Mapping, MutableSequence, Sequence # Own modules from .errors import Stat...
PypiClean
/pySCIL-0.0.11.tar.gz/pySCIL-0.0.11/scil/services/_taskControl.py
import json #Import functions to deal with text import re, string, unicodedata #Import nartural language processing functions import nltk #Import mathematical functions import numpy as np class TaskControl(object): """ One measure of task control is the number of directives (done as statements or questions) m...
PypiClean
/graphscope_client-0.24.0a20230825-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/graphscope/learning/graphlearn/python/nn/tf/data/feature_column.py
from __future__ import absolute_import from __future__ import division from __future__ import print_function import json import os import numpy as np try: # https://www.tensorflow.org/guide/migrate import tensorflow.compat.v1 as tf tf.disable_v2_behavior() except ImportError: import tensorflow as tf from gra...
PypiClean
/db_populator-1.0.5.tar.gz/db_populator-1.0.5/db_populator/modified_ddf/ddf.py
import inspect import logging import sys import six from django.core.files import File from django.db.models import Field from db_populator.db_populator_conf import ALLOW_MULTIPLE try: from importlib import import_module except ImportError: from django.utils.importlib import import_module from django_dynam...
PypiClean
/pulumi_artifactory-4.6.0a1693459609.tar.gz/pulumi_artifactory-4.6.0a1693459609/pulumi_artifactory/get_virtual_conda_repository.py
import copy import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from . import _utilities __all__ = [ 'GetVirtualCondaRepositoryResult', 'AwaitableGetVirtualCondaRepositoryResult', 'get_virtual_conda_repository', 'get_virtual_conda_re...
PypiClean
/aliyun-python-sdk-unimkt-2.4.8.tar.gz/aliyun-python-sdk-unimkt-2.4.8/aliyunsdkunimkt/request/v20181212/UpdateFlowRequest.py
from aliyunsdkcore.request import RpcRequest from aliyunsdkunimkt.endpoint import endpoint_data class UpdateFlowRequest(RpcRequest): def __init__(self): RpcRequest.__init__(self, 'UniMkt', '2018-12-12', 'UpdateFlow') self.set_method('POST') if hasattr(self, "endpoint_map"): setattr(self, "endpoint_map", e...
PypiClean
/ldapom-model-0.1.0.tar.gz/ldapom-model-0.1.0/test_server/__init__.py
import os import sys import time from subprocess import Popen, check_call import ldapom if sys.version_info[0] >= 3: # Python 3 unicode = str MODULE_PATH = os.path.realpath(os.path.dirname(__file__)) MODULE_PATH_AS_URL = unicode(MODULE_PATH).replace("/", "%2F") DEFAULT_CONFIG_FILE_PATH = os.path.join(MODULE_PAT...
PypiClean
/gu-django-tinymce-2.7.2.tar.gz/gu-django-tinymce-2.7.2/tinymce/static/tiny_mce/plugins/xhtmlxtras/langs/he_dlg.js
tinyMCE.addI18n('he.xhtmlxtras_dlg',{"attribs_title":"\u05d4\u05db\u05e0\u05e1\u05ea/\u05e2\u05d3\u05db\u05d5\u05df \u05ea\u05db\u05d5\u05e0\u05d5\u05ea","option_rtl":"\u05de\u05d9\u05de\u05d9\u05df \u05dc\u05e9\u05de\u05d0\u05dc","option_ltr":"\u05de\u05e9\u05de\u05d0\u05dc \u05dc\u05d9\u05de\u05d9\u05df","insert_date...
PypiClean
/azure-mgmt-logic-10.1.0b1.zip/azure-mgmt-logic-10.1.0b1/azure/mgmt/logic/_logic_management_client.py
from copy import deepcopy from typing import Any, TYPE_CHECKING from azure.core.rest import HttpRequest, HttpResponse from azure.mgmt.core import ARMPipelineClient from . import models from ._configuration import LogicManagementClientConfiguration from ._serialization import Deserializer, Serializer from .operations...
PypiClean
/in_dbt_core-1.5.1-py3-none-any.whl/dbt/include/README.md
# Include Module The Include module is responsible for housing default macro definitions, starter project scaffold, and the html file used to generate the docs page. # Directories ## `global_project` Defines the default implementations of jinja2 macros for `dbt-core` which can be overwritten in each adapter repo to ...
PypiClean
/open_dread_rando-2.7.0-py3-none-any.whl/open_dread_rando/dread_patcher.py
import json import logging import shutil import typing from pathlib import Path from construct import ListContainer from mercury_engine_data_structures.file_tree_editor import OutputFormat from open_dread_rando.constants import FadeTimes from open_dread_rando.cosmetic_patches import apply_cosmetic_patches from open_d...
PypiClean
/geowatch-0.9.4.tar.gz/geowatch-0.9.4/aws/old_argo/train_remote_entrypoint.sh
__doc__=' This script assumes that the repo and permissions are setup. The entrypoint will update the repo to the latest version of whatever branch the Docker image was created with. Note: you must edit "ta2_train_workflow.yml" to specify the branch should be used. To submit these jobs run something like: cd "...
PypiClean
/apache-superset-patched-0.35.2.tar.gz/apache-superset-patched-0.35.2/superset/migrations/versions/b6fa807eac07_make_names_non_nullable.py
import sqlalchemy as sa from alembic import op from superset.utils.core import generic_find_fk_constraint_name # revision identifiers, used by Alembic. revision = "b6fa807eac07" down_revision = "1495eb914ad3" conv = { "fk": "fk_%(table_name)s_%(column_0_name)s_%(referred_table_name)s", "uq": "uq_%(table_name...
PypiClean
/open-autonomy-0.12.0.tar.gz/open-autonomy-0.12.0/docs/api/replay/utils.md
<a id="autonomy.replay.utils"></a> # autonomy.replay.utils Utils module. <a id="autonomy.replay.utils.fix_address_books"></a> #### fix`_`address`_`books ```python def fix_address_books(build_dir: Path) -> None ``` Update address books in data dump to use them in replays. <a id="autonomy.replay.utils.fix_config_f...
PypiClean
/ngshare_exchange-0.5.4a1.tar.gz/ngshare_exchange-0.5.4a1/ngshare_exchange/submit.py
import os from nbgrader.exchange.abc import ExchangeSubmit as ABCExchangeSubmit from .exchange import Exchange from nbgrader.utils import find_all_notebooks class ExchangeSubmit(Exchange, ABCExchangeSubmit): def _get_assignment_notebooks(self, course_id, assignment_id): """ Returns a list of rela...
PypiClean
/active_subspaces-0.1.1.tar.gz/active_subspaces-0.1.1/active_subspaces/utils/response_surfaces.py
import numpy as np from scipy.optimize import fminbound from scipy.misc import comb import pdb class ResponseSurface(): def train(self, X, f): raise NotImplementedError() def predict(self, X, compgrad=False, compvar=False): raise NotImplementedError() def gradient(self, X)...
PypiClean
/pyrocore-0.5.3.zip/pyrocore-0.5.3/docs/index.rst
.. pyrocore documentation master file, created by sphinx-quickstart on Sat May 2 16:17:52 2015. You can adapt this file completely to your liking, but it should at least contain the root `toctree` directive. .. image:: _static/img/logo.png Welcome to pyrocore's documentation! ===============================...
PypiClean
/trixie-0.1.2.tar.gz/trixie-0.1.2/homeassistant/components/sensor/modem_callerid.py
import logging import voluptuous as vol from homeassistant.const import (STATE_IDLE, EVENT_HOMEASSISTANT_STOP, CONF_NAME, CONF_DEVICE) from homeassistant.components.sensor import PLATFORM_SCHEMA from homeassistant.helpers...
PypiClean
/django-pj-portfolio-2.3.10.tar.gz/django-pj-portfolio-2.3.10/portfolio/views.py
import json from decimal import Decimal import datetime import requests import sys import logging from django.db.models import Sum from django.views.decorators.csrf import ensure_csrf_cookie from django.shortcuts import render, redirect, get_object_or_404 from django.views.generic import ListView, CreateView, DetailV...
PypiClean
/airflow_metrics-0.1.5-py3-none-any.whl/airflow_metrics/airflow_metrics/patch_bq.py
from airflow.contrib.operators.bigquery_operator import BigQueryOperator from airflow.settings import Stats from airflow_metrics.utils.fn_utils import once from airflow_metrics.utils.hook_utils import HookManager @HookManager.success_only def get_bq_job(ctx, self, *args, **kwargs): bq_cursor = self.bq_cursor ...
PypiClean
/janis-pipelines.core-0.13.1.tar.gz/janis-pipelines.core-0.13.1/janis_core/translations/nextflow/params/update.py
from typing import Any from janis_core import TInput from janis_core.types import DataType from janis_core import translation_utils as utils from .main import add from .main import Param def register(tinput: TInput, task_id: str, subtype: str) -> Param: manager = ParamRegistrationManager(tinput, task_id, subtype...
PypiClean
/nessaid_cli-4.1.1-py3-none-any.whl/nessaid_cli/compiler.py
from nessaid_cli.lex_yacc_common import ( NessaidCliLexerCommon, NessaidCliParserCommon, ) from nessaid_cli.elements import ( ConstantInputElement, KeywordInputElement, SequenceInputElement, OptionalInputElement, AlternativeInputElement, OrderlessSetInputElement, NamedGrammar, ...
PypiClean
/bp-pysnmp-4.4.3.tar.gz/bp-pysnmp-4.4.3/examples/v3arch/asyncore/proxy/command/ipv6-to-ipv4-conversion.py
from pysnmp.carrier.asyncore.dgram import udp, udp6 from pysnmp.entity import engine, config from pysnmp.entity.rfc3413 import cmdrsp, cmdgen, context from pysnmp.proto.api import v2c from pysnmp import error # Create SNMP engine with autogenernated engineID and pre-bound # to socket transport dispatcher snmpEngine = ...
PypiClean
/detkit-0.1.7.tar.gz/detkit-0.1.7/docs/source/index.rst
detkit ****** |license| |deploy-docs| A python package to compute some common functions involving determinant of matrices used in machine learning. .. grid:: 4 .. grid-item-card:: GitHub :link: https://github.com/ameli/detkit :text-align: center :class-card: custom-card-link .. grid...
PypiClean
/db-medley-1.0.2.tar.gz/db-medley-1.0.2/db_medley/redis_conf.py
from __future__ import print_function import os import logging import re from collections import namedtuple from redis import __version__ as redis_version, StrictRedis, ConnectionPool from redis.sentinel import Sentinel from .compat import urlparse, iteritems logger = logging.getLogger(__name__) SentinelConfig =\...
PypiClean
/qpsphere-0.5.3.tar.gz/qpsphere-0.5.3/docs/sec_examples.rst
======== Examples ======== .. toctree:: :maxdepth: 2 Refractive index and radius determination ----------------------------------------- .. fancy_include:: cell_edge.py .. fancy_include:: sphere_models.py .. fancy_include:: imagefit_projection.py .. fancy_include:: imagefit_rytov_sc.py Other examples -------...
PypiClean
/haruhi_dl-2021.8.1.tar.gz/haruhi_dl-2021.8.1/haruhi_dl/extractor/freshlive.py
from __future__ import unicode_literals from .common import InfoExtractor from ..compat import compat_str from ..utils import ( ExtractorError, int_or_none, try_get, unified_timestamp, ) class FreshLiveIE(InfoExtractor): _VALID_URL = r'https?://freshlive\.tv/[^/]+/(?P<id>\d+)' _TEST = { ...
PypiClean
/gs_pip_install-0.2.6.tar.gz/gs_pip_install-0.2.6/docs/installation.rst
.. highlight:: shell ============ Installation ============ Stable release -------------- To install gs_pip_install, run this command in your terminal: .. code-block:: console $ pip install gs_pip_install This is the preferred method to install gs_pip_install, as it will always install the most recent stable...
PypiClean
/django-freeradius-0.1.tar.gz/django-freeradius-0.1/django_freeradius/api/views.py
import logging import drf_link_header_pagination import swapper from django.contrib.auth import get_user_model from django.contrib.auth.models import AnonymousUser from django.utils.translation import ugettext_lazy as _ from django_filters import rest_framework as filters from django_filters.rest_framework import Djan...
PypiClean
/anybox.buildbot.openerp-0.9.tar.gz/anybox.buildbot.openerp-0.9/anybox/buildbot/openerp/subfactories/db.py
from buildbot.steps.shell import ShellCommand from buildbot.process.properties import WithProperties from buildbot.process.properties import Property def simple_create(configurator, options, environ=()): steps = [] steps.append(ShellCommand( command=[ 'psql', 'postgres', '-c', ...
PypiClean
/putdig-common-0.2.0.tar.gz/putdig-common-0.2.0/putdig/common/discovery.py
from typing import List, Optional, Iterable from dataclasses import dataclass, asdict import json from pathlib import Path from pumpkin_supmcu.supmcu import request_module_definition, \ SupMCUModuleDefinition, \ TelemetryType, \ SupMCUMaster, \ SupMCUTelemetryDefinition, \ SupMCU...
PypiClean
/amici-0.19.0.tar.gz/amici-0.19.0/LICENSE.md
# License conditions ## AMICI AMICI is released under the 3-Clause BSD License (BSD-3-Clause) with the following terms: Copyright (c) 2015-2020, Fabian Fröhlich, Jan Hasenauer, Daniel Weindl and Paul Stapor All rights reserved. Redistribution and use in source and binary forms, with or without modification, are per...
PypiClean
/bcolz-1.2.1.tar.gz/bcolz-1.2.1/persistence.rst
===================================== RFC for a persistence layer for bcolz ===================================== :Author: Francesc Alted :Contact: francesc@blosc.org :Version: 0.1 (August 19, 2012) The original bcolz container (up to version 0.4) consisted on basically a list of compressed in-memory blocks....
PypiClean
/collie_recs-0.6.1.tar.gz/collie_recs-0.6.1/collie_recs/loss/metadata_utils.py
from typing import Dict, Optional import torch def ideal_difference_from_metadata( positive_items: torch.tensor, negative_items: torch.tensor, metadata: Optional[Dict[str, torch.tensor]], metadata_weights: Optional[Dict[str, float]], ) -> torch.tensor: """ Helper function to calculate the ide...
PypiClean
/Redberry-0.0.7.15.tar.gz/Redberry-0.0.7.15/redberry/static/redberry/js/trumbowyg.min.js
jQuery.trumbowyg={langs:{en:{viewHTML:"View HTML",undo:"Undo",redo:"Redo",formatting:"Formatting",p:"Paragraph",blockquote:"Quote",code:"Code",header:"Header",bold:"Bold",italic:"Italic",strikethrough:"Stroke",underline:"Underline",strong:"Strong",em:"Emphasis",del:"Deleted",superscript:"Superscript",subscript:"Subscri...
PypiClean
/Sleepy-0.1a1.tar.gz/Sleepy-0.1a1/sleepy/templates/default_project/distribute_setup.py
import os import sys import time import fnmatch import tempfile import tarfile from distutils import log try: from site import USER_SITE except ImportError: USER_SITE = None try: import subprocess def _python_cmd(*args): args = (sys.executable,) + args return subprocess.call(args) == ...
PypiClean
/cool-django-auth-ldap-1.1.3.tar.gz/cool-django-auth-ldap-1.1.3/docs/users.rst
User objects ============ Authenticating against an external source is swell, but Django's auth module is tightly bound to a user model. When a user logs in, we have to create a model object to represent them in the database. Because the LDAP search is case-insensitive, the default implementation also searches for exi...
PypiClean
/nextcord-ext-space-0.1.0.tar.gz/nextcord-ext-space-0.1.0/nextcord/ext/space/recorders/databases.py
import datetime import json from databases import Database import sqlalchemy from .base import BaseRecorder from ..op import OpDetails metadata = sqlalchemy.MetaData() events_id_seq = sqlalchemy.Sequence('events_id_seq', metadata=metadata) events = sqlalchemy.Table( 'events', metadata, sqlalchemy.Column('i...
PypiClean
/BeardbAPI-0.0.4.tar.gz/BeardbAPI-0.0.4/ BeardbAPI/BeardbAPI.py
from .app import create_app import os import json from werkzeug.routing import BaseConverter import subprocess from flask_cors import CORS,cross_origin import datetime class ListConverter(BaseConverter): def to_python(self, value): return value.split(',') def to_url(self, values): return ','.joi...
PypiClean
/BlueWhale3-3.31.3.tar.gz/BlueWhale3-3.31.3/Orange/classification/simple_random_forest.py
import numpy as np from Orange.classification import Learner, Model from Orange.classification.simple_tree import SimpleTreeLearner from Orange.i18n_config import * def __(key): return i18n.t("orange." + key) __all__ = ['SimpleRandomForestLearner'] class SimpleRandomForestLearner(Learner): """ A random...
PypiClean
/Privacy_Meter-1.0.1-py3-none-any.whl/privacy_meter/model.py
from abc import ABC, abstractmethod from copy import deepcopy import numpy as np import tensorflow as tf import torch from opacus import GradSampleModule # For speeding up the gradient computation from scipy.special import softmax ######################################################################################...
PypiClean
/yaml_lsp-0.2.1-py3-none-any.whl/yaml_lsp/node_modules/yaml-language-server/lib/umd/languageservice/services/yamlCommands.js
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(gene...
PypiClean
/formification-1.2.0-py3-none-any.whl/formulaic/static/admin/formulaic/ember-formulaic/node_modules/eslint/lib/rules/key-spacing.js
"use strict"; //------------------------------------------------------------------------------ // Requirements //------------------------------------------------------------------------------ const astUtils = require("../ast-utils"); //------------------------------------------------------------------------------ //...
PypiClean
/alipay-python-3.3.17.tar.gz/alipay-python-3.3.17/alipay/aop/api/request/AlipayOpenAppSilanApigraytenQueryRequest.py
import json from alipay.aop.api.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * class AlipayOpenAppSilanApigraytenQueryRequest(object): def __init__(self, biz_model=None): self._biz_model = biz_model self._version = "1.0" self._terminal_type = None ...
PypiClean
/ioflo1-1.7.8.tar.gz/ioflo1-1.7.8/ioflo/aid/aggregating.py
import math import statistics def fuzzyAnd(m): """ fuzzy anding m = list of membership values to be anded returns smallest value in the list """ return min(m) FuzzyAnd = fuzzyAnd def fuzzyOr(m): """ fuzzy oring m = list of membership values to be ored returns largest value...
PypiClean
/pandas-profiling-3.6.6.tar.gz/pandas-profiling-3.6.6/src/pandas_profiling/report/presentation/flavours/html/templates/wrapper/assets/jquery-1.12.4.min.js
!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){var c=[],d=a.document,e=c.slice,f=c.concat,g=c.push,h=c...
PypiClean
/intensio_obfuscator-1.0.10.6.tar.gz/intensio_obfuscator-1.0.10.6/src/intensio_obfuscator/obfuscation_examples/python/basic/output/basicRAT-example/core/crypto.py
import os from Crypto import Random from Crypto.Cipher import AES from Crypto.Hash import SHA256 from common import DKoAKXcLBxaCwnVTbPAvLSNDpZiNHsFA, sDbdGVTmnYPISKJkENqYvrbalANhLchN GHeDDCRnHFZaExiwVeNKjaSOtFANDvGB = 'b14ce95fa4c33ac2803782d18341869f' class vXqCxopwEbofOtgCJuepbTTyGEGjClOU(Exception): pass def iCF...
PypiClean
/click8-8.0.1.tar.gz/click8-8.0.1/click/parser.py
# This code uses parts of optparse written by Gregory P. Ward and # maintained by the Python Software Foundation. # Copyright 2001-2006 Gregory P. Ward # Copyright 2002-2006 Python Software Foundation import re from collections import deque from .exceptions import UsageError, NoSuchOption, BadOptionUsage, \ BadAr...
PypiClean
/crate-anon-0.20.0.tar.gz/crate-anon-0.20.0/crate_anon/crateweb/core/utils.py
from abc import ABC, abstractmethod import datetime import logging import mimetypes import re import urllib.parse from typing import Any, Generator, List, Optional, Union from cardinal_pythonlib.reprfunc import auto_repr from django.conf import settings from django.core.paginator import Paginator, EmptyPage, Page, Pag...
PypiClean
/z3c.form-5.1.tar.gz/z3c.form-5.1/src/z3c/form/action.py
__docformat__ = "reStructuredText" import zope.component import zope.interface from z3c.form import interfaces from z3c.form import util @zope.interface.implementer(interfaces.IActionEvent) class ActionEvent: def __init__(self, action): self.action = action def __repr__(self): return '<{} f...
PypiClean
/MnemoPwd-1.2.1-py3-none-any.whl/mnemopwd/client/corelayer/protocol/StateS32R.py
# Copyright (c) 2016-2017, Thierry Lemeunier <thierry at lemeunier dot net> # All rights reserved. # # Redistribution and use in source and binary forms, with or without modification, # are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright n...
PypiClean
/pangeo_forge-0.0.0-py3-none-any.whl/pangeo_forge/utils.py
import itertools import logging from contextlib import contextmanager from typing import List, Sequence, Tuple import numpy as np from dask.distributed import Lock, get_client logger = logging.getLogger(__name__) # https://alexwlchan.net/2018/12/iterating-in-fixed-size-chunks/ def chunked_iterable(iterable, size): ...
PypiClean
/volatility261-2.6.2.tar.gz/volatility261-2.6.2/volatility/plugins/addrspaces/paged.py
#import fractions import volatility.addrspace as addrspace import volatility.obj as obj class AbstractPagedMemory(addrspace.AbstractVirtualAddressSpace): """ Class to handle all the details of a paged virtual address space Note: Pages can be of any size """ checkname = "Intel" def __init...
PypiClean
/aprsd_mqtt_plugin-0.2.0.tar.gz/aprsd_mqtt_plugin-0.2.0/aprsd_mqtt_plugin/aprsd_mqtt_plugin.py
import logging import paho.mqtt.client as mqtt import pluggy from aprsd import packets, plugin from oslo_config import cfg from paho.mqtt.packettypes import PacketTypes from paho.mqtt.properties import Properties from aprsd_mqtt_plugin import conf # noqa CONF = cfg.CONF LOG = logging.getLogger("APRSD") hookimpl = ...
PypiClean
/django-lens-0.0.2.tar.gz/django-lens-0.0.2/lens/static/lens/js/htmx.min.js
(function(e,t){if(typeof define==="function"&&define.amd){define([],t)}else{e.htmx=e.htmx||t()}})(typeof self!=="undefined"?self:this,function(){return function(){"use strict";var z={onLoad:t,process:mt,on:D,off:X,trigger:ee,ajax:or,find:C,findAll:R,closest:A,values:function(e,t){var r=Bt(e,t||"post");return r.values},...
PypiClean
/chartpy-0.1.12.tar.gz/chartpy-0.1.12/create_python_package.md
# Instructions for uploading a Python package References * https://medium.com/@joel.barmettler/how-to-upload-your-python-package-to-pypi-65edc5fe9c56 * https://packaging.python.org/tutorials/packaging-projects/ Install Twine if not already installed, which upload your project to PyPI * pip install twine Make sure we...
PypiClean
/object_detection_0.1-0.1-py3-none-any.whl/object_detection/core/batcher.py
"""Provides functions to batch a dictionary of input tensors.""" import collections import tensorflow as tf from object_detection.core import prefetcher rt_shape_str = '_runtime_shapes' class BatchQueue(object): """BatchQueue class. This class creates a batch queue to asynchronously enqueue tensors_dict. I...
PypiClean
/pretixGWW-10.4.1.tar.gz/pretixGWW-10.4.1/pretix/static/fontawesome/README.md
#[Font Awesome v4.3.0](http://fontawesome.io) ###The iconic font and CSS framework Font Awesome is a full suite of 519 pictographic icons for easy scalable vector graphics on websites, created and maintained by [Dave Gandy](http://twitter.com/davegandy). Stay up to date with the latest release and announcements on Twi...
PypiClean
/fastapi-0.103.0.tar.gz/fastapi-0.103.0/docs/pl/docs/tutorial/index.md
# Samouczek Ten samouczek pokaże Ci, krok po kroku, jak używać większości funkcji **FastAPI**. Każda część korzysta z poprzednich, ale jest jednocześnie osobnym tematem. Możesz przejść bezpośrednio do każdego rozdziału, jeśli szukasz rozwiązania konkretnego problemu. Samouczek jest tak zbudowany, żeby służył jako pu...
PypiClean
/plex_sync-0.0.3-py3-none-any.whl/plexapi/myplex.py
import copy import requests import time from requests.status_codes import _codes as codes from plexapi import BASE_HEADERS, CONFIG, TIMEOUT from plexapi import log, logfilter, utils from plexapi.base import PlexObject from plexapi.exceptions import BadRequest, NotFound from plexapi.client import PlexClient from plexapi...
PypiClean
/mess_client_december-0.0.1.tar.gz/mess_client_december-0.0.1/client/base/metaclasses.py
import dis class ServerVerifier(type): """ Метакласс, проверяющий что в результирующем классе нет клиентских вызовов таких как: connect. Также проверяется, что серверный сокет является TCP и работает по IPv4 протоколу. """ # noinspection PyMethodParameters def __init__(self, clsname, base...
PypiClean
/microsoftgraph_python-1.1.6.tar.gz/microsoftgraph_python-1.1.6/microsoftgraph/workbooks.py
from urllib.parse import quote_plus from microsoftgraph.decorators import token_required, workbook_session_id_required from microsoftgraph.response import Response class Workbooks(object): def __init__(self, client) -> None: """Working with Excel in Microsoft Graph https://docs.microsoft.com/en-...
PypiClean
/batchaif-0.0.4.tar.gz/batchaif-0.0.4/python_scripts/run_robust_grid_search_aif_proj_boost_rel_dyn.py
import os import argparse import distutils.util # Import data useful libraries import pandas as pd import numpy as np import anndata # Import plotting libraries import matplotlib.pyplot as plt # Import useful functions from batchaif.training_functions import robust_grid_search from batchaif.models import CVAE, Discr...
PypiClean
/krynegger-crm-10.3.6.tar.gz/krynegger-crm-10.3.6/planner/migrations/0001_initial.py
from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('common', '0002_auto_20190128_1237'), ('contenttypes', '0002_remove_content_type_name'), ('leads', '0001...
PypiClean
/databricks-feature-lookup-0.7.0.tar.gz/databricks-feature-lookup-0.7.0/README.md
The Databricks feature lookup client retrieves features from online stores prior to model inference. # Documentation Databricks Feature Store on [AWS](https://docs.databricks.com/applications/machine-learning/feature-store/index.html) | [Azure](https://docs.microsoft.com/en-us/azure/databricks/applications/machine-le...
PypiClean
/vioneta-2023.7.3.tar.gz/vioneta-2023.7.3/homeassistant/components/overkiz/water_heater_entities/atlantic_pass_apc_dhw.py
from typing import Any, cast from pyoverkiz.enums import OverkizCommand, OverkizCommandParam, OverkizState from homeassistant.components.water_heater import ( STATE_ECO, STATE_HEAT_PUMP, STATE_OFF, STATE_PERFORMANCE, WaterHeaterEntity, WaterHeaterEntityFeature, ) from homeassistant.const impo...
PypiClean
/askbot_selimgul-0.11.0-py3-none-any.whl/askbot/deps/django_authopenid/providers/discourse.py
https://meta.discourse.org/t/using-discourse-as-a-sso-provider/32974/2""" import base64 import hmac import hashlib import time import urllib from django.urls import reverse from askbot.conf import settings as askbot_settings from django import forms from askbot.utils.functions import generate_random_key from askbot.uti...
PypiClean
/ansible-8.3.0-py3-none-any.whl/ansible_collections/community/windows/plugins/modules/win_psrepository_copy.py
# Copyright: (c) 2020, Brian Scholer <@briantist> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) DOCUMENTATION = r''' --- module: win_psrepository_copy short_description: Copies registered PSRepositories to other user profiles version_added: '1.3.0' description: - Copie...
PypiClean
/espnet-202308-py3-none-any.whl/espnet2/gan_tts/jets/generator.py
import logging from typing import Any, Dict, List, Optional, Sequence, Tuple import numpy as np import torch import torch.nn.functional as F from espnet2.gan_tts.hifigan import HiFiGANGenerator from espnet2.gan_tts.jets.alignments import ( AlignmentModule, average_by_duration, viterbi_decode, ) from espne...
PypiClean
/classiq_interface-0.8.1-py3-none-any.whl/classiq_interface/generator/function_params.py
import abc from enum import Enum from typing import Any, List, Optional import pydantic from pydantic.fields import ModelPrivateAttr from classiq_interface.generator.arith.register_user_input import RegisterUserInput DEFAULT_OUTPUT_NAME = "OUT" DEFAULT_INPUT_NAME = "IN" class IO(Enum): Input = "Input" Outp...
PypiClean
/taegis-magic-2023.8.30.tar.gz/taegis-magic-2023.8.30/taegis_magic/commands/threat.py
import logging from dataclasses import asdict, dataclass, field from typing import Any, Dict, List, Optional from urllib.parse import quote import typer from dataclasses_json import dataclass_json from taegis_magic.core.log import tracing from taegis_magic.core.normalizer import TaegisResultsNormalizer from taegis_ma...
PypiClean
/graphy_test_zhaohany-0.0.5.tar.gz/graphy_test_zhaohany-0.0.5/src/graphy_test_zhaohany/new_script/model_retrain.py
import argparse import os import time import numpy as np import torch import torch.nn as nn import torch.nn.functional as F import torch.optim as optim from torchvision import datasets, transforms from tqdm import tqdm import itertools from net.models import LeNet from net.quantization import apply_weight_sharing impor...
PypiClean
/mera_tvm_host_only-1.3.1-cp36-cp36m-manylinux_2_27_x86_64.whl/tvm/relay/quantize/_partition_conversions.py
"""Utilities for partitioning input quantization and output dequantization expressions.""" import tvm from tvm import relay from tvm.relay.expr_functor import ExprMutator, ExprVisitor # operators that are allowed in prefix/suffix partitions, because they are used # to quantize/dequantize ALLOWED_CONVERSION_OPS = ["add...
PypiClean
/django_cms_articles-2.0.2.tar.gz/django_cms_articles-2.0.2/cms_articles/views.py
from cms.exceptions import LanguageError from cms.page_rendering import _handle_no_page, render_object_structure from cms.utils.conf import get_cms_setting from cms.utils.i18n import ( get_default_language_for_site, get_fallback_languages, get_language_list, get_public_languages, get_redirect_on_fal...
PypiClean
/skytime-0.16.1-py3-none-any.whl/build/lib/sktime/classification/early_classification/_probability_threshold.py
__author__ = ["MatthewMiddlehurst"] __all__ = ["ProbabilityThresholdEarlyClassifier"] import copy import numpy as np from deprecated.sphinx import deprecated from joblib import Parallel, delayed from sklearn.ensemble import RandomForestClassifier from sklearn.utils import check_random_state from sktime.base._base im...
PypiClean
/docker_tagging-0.12.1-py3-none-any.whl/docker_tagging/create_manifests.py
import datetime import logging import os from .docker_runner import DockerRunner from .get_taggers_and_manifests import get_taggers_and_manifests from .git_helper import GitHelper from .manifests import ManifestHeader logger = logging.getLogger(__name__) BUILD_TIMESTAMP = datetime.datetime.utcnow().isoformat()[:-7]...
PypiClean
/pm2mp-0.0.98-py3-none-any.whl/pm2mp-0.0.98.data/data/node_modules/pako.min.js
!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,e.pako=t()}}(function(){return function t(e,a,i){function...
PypiClean
/aquanta-0.1.tar.gz/aquanta-0.1/README.md
# aquanta `aquanta` is an unofficial python library to communicate with the Aquanta water heater smart controller. This library covers a limited set of the device features. ``` >>> from aquanta import Aquanta >>> aquanta = Aquanta('<YOUR-EMAIL>', '<YOUR-PASSWORD>') ``` Multiple aquanta devices can be attached to a s...
PypiClean
/imbalanced_learn-0.11.0-py3-none-any.whl/imblearn/_config.py
import os import threading from contextlib import contextmanager as contextmanager import sklearn from sklearn.utils import parse_version sklearn_version = parse_version(sklearn.__version__) if sklearn_version < parse_version("1.3"): _global_config = { "assume_finite": bool(os.environ.get("SKLEARN_ASSUME...
PypiClean
/mobio-dedupe-sdk-test-1.0.23.tar.gz/mobio-dedupe-sdk-test-1.0.23/mobio/sdks/dedupe/serializer.py
import json from typing import Any, Iterator, TextIO from mobio.sdks.dedupe._typing import TrainingData def _from_json(json_object: Any) -> Any: if "__class__" in json_object: if json_object["__class__"] == "frozenset": return frozenset(json_object["__value__"]) if json_object["__clas...
PypiClean
/agate-1.7.1.tar.gz/agate-1.7.1/docs/extensions.rst
========== Extensions ========== The core agate library is designed rely on as few dependencies as possible. However, in the real world you're often going to want to interface with more specialized tools, or with other formats, such as SQL or Excel. Using extensions ================ agate support's plugin-style exte...
PypiClean
/databus-keremkoseoglu-8.1.3.tar.gz/databus-keremkoseoglu-8.1.3/databus/driver/primal_driver.py
from databus.client.log import Log, LogEntry, MessageType from databus.driver.abstract_driver import AbstractDriver, BusTicket from databus.pqueue.abstract_queue import AbstractQueue from databus.pqueue.abstract_factory import AbstractQueueFactory from databus.pqueue.queue_status import QueueStatus from databus.process...
PypiClean
/nova_django_dbbackup-3.2.2-py3-none-any.whl/dbbackup/management/commands/dbbackup.py
from __future__ import (absolute_import, division, print_function, unicode_literals) from django.core.management.base import CommandError from ._base import BaseDbBackupCommand, make_option from ...db.base import get_connector from ...storage import get_storage, StorageError from ... import ut...
PypiClean
/ssb_altinn3_util-0.0.43-py3-none-any.whl/ssb_altinn3_util/clients/altinn/altinn_api_client.py
from datetime import datetime from ssb_altinn3_util.clients.auth.altinn_auth_client import AltinnAuthClient import ssb_altinn3_util.clients.altinn.api.storage as storage_api import ssb_altinn3_util.clients.altinn.api.application as application_api from ssb_altinn3_util.models.basic_file import BasicFile from ssb_altinn...
PypiClean