id stringlengths 1 8 | text stringlengths 6 1.05M | dataset_id stringclasses 1
value |
|---|---|---|
/pulumi_aws-6.1.0a1693529760.tar.gz/pulumi_aws-6.1.0a1693529760/pulumi_aws/ec2transitgateway/route_table_propagation.py |
import copy
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
__all__ = ['RouteTablePropagationArgs', 'RouteTablePropagation']
@pulumi.input_type
class RouteTablePropagationArgs:
def __init__(__self__, *,
... | PypiClean |
/reg-bench-0.0.3.tar.gz/reg-bench-0.0.3/reg_bench/symbolic_regression/util.py | import collections
import inspect
import sys
from functools import partial
from inspect import getframeinfo
from inspect import getmodulename
from inspect import stack
from itertools import repeat
import numpy as np
import toolz
def poly(x, i):
return np.sum(x ** j for j in range(1, i + 1))
test_data = collect... | PypiClean |
/Cherrydoor-0.8.1-py3-none-any.whl/cherrydoor/static/components/ManageUsers.js | const ManageUsers = {
data() {
return {
users: [],
available_permissions: this.user.permissions,
new_user: {
username: "",
password: "",
permissions: Object.keys(this.user.permissions).reduce(
(obj, permission) => {
obj[permission] = false;
if (permission == "enter") obj["enter"... | PypiClean |
/EDDIE-Tool-1.0.0.tar.gz/EDDIE-Tool-1.0.0/eddietool/common/Directives/icmp.py |
import inet
import array
import struct
ICMP_MINLEN = 8
ICMP_MASKLEN = 12
ICMP_ECHOREPLY = 0
ICMP_UNREACH = 3
ICMP_UNREACH_NET = 0
ICMP_UNREACH_HOST = 1
ICMP_UNREACH_PROTOCOL = 2
ICMP_UNREACH_PORT = 3
ICMP_UNREACH_NEEDFRAG = 4
ICMP_UNREACH_SRCFAIL = 5
ICMP_SOURCEQUENCH = 4
ICMP_REDIRECT = 5
ICMP_REDIRECT_NET = 0
ICMP_... | PypiClean |
/HtmlList-2.2.2.zip/HtmlList-2.2.2/htmllist/break_html_page.py |
# TODO: Add optional already built DOM object input.
"""
The module defines BreakHtmlPage class that works with the DOM model.
It is almost twice as slow than break_html_page2 !!! But it uses DOM.
This module uses html5lib to parse the HTML page
http://code.google.com/p/html5lib/
There is an option to use this cla... | PypiClean |
/python-aliyun-sdk-core-2.13.37.tar.gz/python-aliyun-sdk-core-2.13.37/aliyunsdkcore/vendored/requests/packages/chardet/codingstatemachine.py |
import logging
from .enums import MachineState
class CodingStateMachine(object):
"""
A state machine to verify a byte sequence for a particular encoding. For
each byte the detector receives, it will feed that byte to every active
state machine available, one byte at a time. The state machine changes... | PypiClean |
/cohesity-sdk-1.1.0.tar.gz/cohesity-sdk-1.1.0/cohesity_sdk/cluster/model/bond_member.py | import re # noqa: F401
import sys # noqa: F401
from cohesity_sdk.cluster.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_typ... | PypiClean |
/pytest_hypo_25-2.3.tar.gz/pytest_hypo_25-2.3/pytest_hypo_25/internal/escalation.py |
import os
import sys
import traceback
from inspect import getframeinfo
from pathlib import Path
from typing import Dict
import hypothesis
from hypothesis.errors import (
DeadlineExceeded,
HypothesisException,
MultipleFailures,
StopTest,
UnsatisfiedAssumption,
)
def belongs_to(package):
if no... | PypiClean |
/shells_cae-0.0.19.tar.gz/shells_cae-0.0.19/shells_cae/eb_solver.py | import cffi
import os
import numpy as np
import sys
from typing import Sequence, Union
__all__ = ['PointMassTrajectorySolver', 'PointMassTrajectoryHSolver']
def load_lib():
HERE = os.path.dirname(__file__)
if sys.platform.startswith('linux'):
LIB_FILE_NAME = os.path.abspath(os.path.join(HERE, ".", "co... | PypiClean |
/certora-cli-alpha-jtoman-try-catch-20230515.16.47.942035.tar.gz/certora-cli-alpha-jtoman-try-catch-20230515.16.47.942035/certora_cli/Shared/certoraLogging.py | import logging
import sys
from typing import Dict, Any, Set, Optional, Iterable, List
from Shared.certoraUtils import write_json_file, red_text, orange_text, get_debug_log_file
from Shared.certoraUtils import get_resource_errors_file
class ColoredString(logging.Formatter):
def __init__(self, msg_fmt: str = "%(nam... | PypiClean |
/pyGSTi-0.9.11.2-cp37-cp37m-win_amd64.whl/pygsti/baseobjs/opcalc/slowopcalc.py | #***************************************************************************************************
# Copyright 2015, 2019 National Technology & Engineering Solutions of Sandia, LLC (NTESS).
# Under the terms of Contract DE-NA0003525 with NTESS, the U.S. Government retains certain rights
# in this software.
# Licensed... | PypiClean |
/pysnmp-bw-5.0.3.tar.gz/pysnmp-bw-5.0.3/pysnmp/hlapi/v3arch/lcd.py | from pyasn1.compat.octets import null
from pysnmp import error
from pysnmp import nextid
from pysnmp.entity import config
from pysnmp.hlapi.v3arch.auth import *
__all__ = ['CommandGeneratorLcdConfigurator',
'NotificationOriginatorLcdConfigurator']
class AbstractLcdConfigurator(object):
nextID = nexti... | PypiClean |
/sym_api_client_python-2.0b5.tar.gz/sym_api_client_python-2.0b5/symphony/bdk/gen/login_api/authentication_api.py | import re # noqa: F401
import sys # noqa: F401
from symphony.bdk.gen.api_client import ApiClient, Endpoint as _Endpoint
from symphony.bdk.gen.model_utils import ( # noqa: F401
check_allowed_values,
check_validations,
date,
datetime,
file_type,
none_type,
validate_and_convert_types
)
from... | PypiClean |
/alipay_sdk_python-3.6.740-py3-none-any.whl/alipay/aop/api/domain/AlipayFundAllocSignQueryModel.py | import json
from alipay.aop.api.constant.ParamConstants import *
class AlipayFundAllocSignQueryModel(object):
def __init__(self):
self._agreement_no = None
self._biz_scene = None
self._out_biz_no = None
self._product_code = None
@property
def agreement_no(self):
... | PypiClean |
/Orange3-3.35.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/Orange/base.py | import inspect
import itertools
from collections.abc import Iterable
import re
import warnings
from typing import Callable, Dict, Optional
import numpy as np
import scipy
from Orange.data import Table, Storage, Instance, Value, Domain
from Orange.data.filter import HasClass
from Orange.data.table import DomainTransfo... | PypiClean |
/gu-django-tinymce-2.7.2.tar.gz/gu-django-tinymce-2.7.2/tinymce/media/tiny_mce/themes/advanced/langs/cy_dlg.js | tinyMCE.addI18n('cy.advanced_dlg',{"link_list":"Rhestr cysylltau","link_is_external":"Mae\'r URL a rydych wedi rhoi yn edrych fel cyswllt allannol, ydych chi eisiau ychwanegu\'r rhagddodiad http:// sydd angen?","link_is_email":"Mae\'r URL a rydych wedi rhoi yn edrych fel cyferiad e-bost, ydych chi eisiau ychwanegu\'r r... | PypiClean |
/esi_syncopy-2023.7.tar.gz/esi_syncopy-2023.7/syncopy/synthdata/analog.py |
# Builtin/3rd party package imports
import numpy as np
# syncopy imports
from .utils import collect_trials
_2pi = np.pi * 2
# ---- Synthetic AnalogData ----
@collect_trials
def white_noise(nSamples=1000, nChannels=2, seed=None):
"""
Plain white noise with unity standard deviation.
Parameters
--... | PypiClean |
/jupyros-0.7.0a0.tar.gz/jupyros-0.7.0a0/js/node_modules/webpack/lib/wasm/EnableWasmLoadingPlugin.js | "use strict";
/** @typedef {import("../../declarations/WebpackOptions").LibraryOptions} LibraryOptions */
/** @typedef {import("../../declarations/WebpackOptions").WasmLoadingType} WasmLoadingType */
/** @typedef {import("../Compiler")} Compiler */
/** @type {WeakMap<Compiler, Set<WasmLoadingType>>} */
const enabledT... | PypiClean |
/py-pure-client-1.38.0.tar.gz/py-pure-client-1.38.0/pypureclient/flasharray/FA_2_22/models/host_performance_by_array.py | import pprint
import re
import six
import typing
from ....properties import Property
if typing.TYPE_CHECKING:
from pypureclient.flasharray.FA_2_22 import models
class HostPerformanceByArray(object):
"""
Attributes:
swagger_types (dict): The key is attribute name
and the ... | PypiClean |
/kiwitcms-12.4.tar.gz/kiwitcms-12.4/tcms/node_modules/moment/dist/moment.js |
var hookCallback;
function hooks() {
return hookCallback.apply(null, arguments);
}
// This is done to register the method called with moment()
// without creating circular dependencies.
function setHookCallback(callback) {
hookCallback = callback;
}
function isArray(input) {
return (
input insta... | PypiClean |
/redash_stmo-2020.5.1-py3-none-any.whl/redash_stmo/query_runner/presto.py | import collections
import logging
from pyhive import presto
from redash.query_runner import register
from redash.query_runner.presto import Presto
logger = logging.getLogger(__name__)
class STMOPresto(Presto):
"""
A custom Presto query runner. Currently empty.
"""
@classmethod
def type(cls):
... | PypiClean |
/django-urlmagic-0.4.6.tar.gz/django-urlmagic-0.4.6/urlmagic/core.py | from abc import ABCMeta
from django.conf import settings
from django.conf.urls import url
from django.contrib.auth.decorators import permission_required
from django.db.models.fields import SlugField
from urlmagic.views import core
from urlmagic.utils import model_names
class UrlGenerator(object):
__metaclass__ = ... | PypiClean |
/pmagpy-4.2.114.tar.gz/pmagpy-4.2.114/help_files/demag_gui_help.py | zij_help = """Zijderveld plot of current specimen measurement data and fits
plot interactions:
- click and drag to
zoom or pan
(default=zoom)
- right click to toggle
zoom or pan
- middle click to home
- double click 2 measurements
to set them as bounds
fit symbols:
- diamond = selected
fi... | PypiClean |
/msgraph-sdk-1.0.0a3.tar.gz/msgraph-sdk-1.0.0a3/msgraph/generated/groups/item/sites/item/onenote/notebooks/item/sections/item/pages/item/parent_notebook/parent_notebook_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 |
/idem-vault-2.0.0.tar.gz/idem-vault-2.0.0/idem_vault/states/vault/secrets/kv_v2/secret.py | import copy
from typing import Dict
import dict_tools.data
__contracts__ = ["resource"]
async def present(
hub,
ctx,
name: str,
*,
resource_id: (str, "alias=path"),
data: Dict,
disable_read: bool = False,
) -> Dict:
"""
Creates or update a secret stored with Vault KV_v2 secret en... | PypiClean |
/Helios_Scanner-1.1-py3-none-any.whl/helios/webapp/phpmyadmin.py | from helios.webapp import base_app
import re
from helios.core.utils import requests_response_to_dict
import json
import requests
try:
from urlparse import urljoin
except ImportError:
from urllib.parse import urljoin
# This script detects vulnerabilities in the following PHP based products:
# - phpMyAdmin
clas... | PypiClean |
/z3c.indexer-0.6.1.zip/z3c.indexer-0.6.1/src/z3c/indexer/query.py | __docformat__ = "reStructuredText"
import zope.component
from z3c.indexer import interfaces
class QueryMixin(object):
"""Index query."""
def __init__(self, indexOrName):
if isinstance(indexOrName, basestring):
self.index = zope.component.getUtility(interfaces.IIndex,
name... | PypiClean |
/v3/model/resize_instance_volume_option.py |
import pprint
import re
import six
class ResizeInstanceVolumeOption:
"""
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... | PypiClean |
/zephyrus-sc2-parser-0.3.8.tar.gz/zephyrus-sc2-parser-0.3.8/zephyrus_sc2_parser/gamedata/16561/unit_data.py | units = {'Protoss': {'Probe': {'obj_id': 106, 'priority': 33, 'type': ['unit', 'worker'], 'mineral_cost': 50, 'gas_cost': 0, 'supply': 1}, 'Zealot': {'obj_id': 95, 'priority': 39, 'type': ['unit'], 'mineral_cost': 100, 'gas_cost': 0, 'supply': 2, 'cooldown': 446}, 'Stalker': {'obj_id': 96, 'priority': 60, 'type': ['uni... | PypiClean |
/opencv_contrib_cuda_python-4.8.0.74-cp36-abi3-win_amd64.whl/cv2/gapi/__init__.py | __all__ = ['op', 'kernel']
import sys
import cv2 as cv
# NB: Register function in specific module
def register(mname):
def parameterized(func):
sys.modules[mname].__dict__[func.__name__] = func
return func
return parameterized
@register('cv2.gapi')
def networks(*args):
return cv.gapi_GNe... | PypiClean |
/pyhtm-0.1.5.tar.gz/pyhtm-0.1.5/docs/source/installation.rst | .. highlight:: shell
============
Installation
============
From PyPI
---------
You can install the library from PyPI through `pip`:
.. code::
$ pip install pyhtm
From Source
-----------
The source code for ``htm`` can be obtained from its `GitLab repo`_
and installed like so:
.. parsed-literal::
$ git... | PypiClean |
/rst2html5-tools-0.5.3.tar.gz/rst2html5-tools-0.5.3/html5css3/thirdparty/deckjs/test/spec.goto.js | describe('Deck JS Quick Go-To', function() {
var $d = $(document);
beforeEach(function() {
loadFixtures('standard.html');
if (Modernizr.history) {
history.replaceState({}, "", "#")
}
else {
window.location.hash = '#';
}
$.deck('.slide');
});
describe('showGoTo()', function(... | PypiClean |
/nexuscloud-client-1.0.9.tar.gz/nexuscloud-client-1.0.9/docs/NexusInsightsApiV1EndpointsSummaryGet200Response.md | # NexusInsightsApiV1EndpointsSummaryGet200Response
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**endpoint_stats** | [**NexusInsightsApiV1EndpointsSummaryGet200ResponseEndpointStats**](NexusInsightsApiV1EndpointsSummaryGet200ResponseEndpointStats.md) | ... | PypiClean |
/file_io-0.4.6-py3-none-any.whl/fileio/providers/filesys_cloud.py | from __future__ import annotations
import os
import hashlib
import datetime
from typing import ClassVar
from fsspec.callbacks import Callback
from fileio.aiopath.wrap import to_thread
from fileio.core.flavours import _pathz_windows_flavour, _pathz_posix_flavour
from fileio.providers.base import *
from fileio.utils ... | PypiClean |
/SwiftCodeGen-0.3.tar.gz/SwiftCodeGen-0.3/README.rst | ************
SwiftCodeGen
************
A command line utility to generate model and web service classes in Swift programming language. This is a simple and lightweight tool for developers to automate a part of effort. The tool will generate all the required model classes and web service classes based on `Alamofire <ht... | PypiClean |
/func_timeouts-1.0.2.tar.gz/func_timeouts-1.0.2/func_timeouts/dafunc.py | import copy
import inspect
import threading
import time
import types
import sys
from .exceptions import FunctionTimedOut
from .StoppableThread import StoppableThread
try:
from .py3_raise import raise_exception
except SyntaxError:
from .py2_raise import raise_exception
except ImportError:
from .py2_raise i... | PypiClean |
/ruamel.yaml.cmd-0.6.5-py3-none-any.whl/ruamel/yaml/cmd/__main__.py |
import argparse
import importlib
import sys
import typing
from . import __version__
class HelpFormatter(argparse.RawDescriptionHelpFormatter):
def __init__(self, *args: typing.Any, **kw: typing.Any):
kw['max_help_position'] = 40
super().__init__(*args, **kw)
def _fill_text(self, text: str,... | PypiClean |
/hetdex_api-0.8.7.tar.gz/hetdex_api-0.8.7/hetdex_api/sqlite_utils.py | import sqlite3
from sqlite3 import Error
import numpy as np
import os.path as op
FILENAME_PREFIX = "elixer_reports_" #keep the trailing underscore
REPORT_TYPES = ["report","nei","mini"]
try:
from hetdex_api.config import HDRconfig
except:
# print("Warning! Cannot find or import HDRconfig from hetdex_api!!")
... | PypiClean |
/defi_protocols-0.0.9.tar.gz/defi_protocols-0.0.9/defi_protocols/Bancor.py | from defi_protocols.functions import *
#----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
# LITERALS
#----------------------------------------------------------------------------------------------... | PypiClean |
/zarenacord-2.0.0.tar.gz/zarenacord-2.0.0/discord/errors.py | from __future__ import annotations
from typing import Dict, List, Optional, TYPE_CHECKING, Any, Tuple, Union
if TYPE_CHECKING:
from aiohttp import ClientResponse, ClientWebSocketResponse
try:
from requests import Response
_ResponseType = Union[ClientResponse, Response]
except ModuleNotFou... | PypiClean |
/hassmart_homeassistant-0.65.4.tar.gz/hassmart_homeassistant-0.65.4/homeassistant/components/system_log/__init__.py | import asyncio
from collections import deque
from io import StringIO
import logging
import re
import traceback
import voluptuous as vol
from homeassistant import __path__ as HOMEASSISTANT_PATH
from homeassistant.components.http import HomeAssistantView
import homeassistant.helpers.config_validation as cv
from homeass... | PypiClean |
/eric-ide-22.7.1.tar.gz/eric-ide-22.7.1/eric7/Plugins/UiExtensionPlugins/Translator/TranslatorEngines/GoogleV1Engine.py |
# Copyright (c) 2014 - 2022 Detlev Offenbach <detlev@die-offenbachs.de>
#
"""
Module implementing the Google V1 translation engine.
"""
import json
import re
from PyQt6.QtCore import QByteArray, QUrl, QTimer
import Utilities
from .TranslationEngine import TranslationEngine
class GoogleV1Engine(TranslationEngine... | PypiClean |
/sentry-nos-9.0.0.tar.gz/sentry-nos-9.0.0/src/sentry/south_migrations/0143_fill_project_orgs.py | import datetime
from south.db import db
from south.v2 import DataMigration
from django.db import IntegrityError, models, transaction
def atomic_save(model):
try:
with transaction.atomic():
model.save()
except transaction.TransactionManagementError:
# sqlite isn't happy
mode... | PypiClean |
/bronx_beta-2.0.0b2-py3-none-any.whl/bronx/system/mf.py | from __future__ import print_function, absolute_import, unicode_literals, division
from six import BytesIO
import ftplib
import netrc
import re
import uuid
from bronx.fancies import loggers
logger = loggers.getLogger(__name__)
#: No automatic export
__all__ = []
def prestage(resource_paths,
mail=None... | PypiClean |
/alipay_sdk_python-3.6.740-py3-none-any.whl/alipay/aop/api/request/MybankCreditSceneprodBillQueryRequest.py | import json
from alipay.aop.api.FileItem import FileItem
from alipay.aop.api.constant.ParamConstants import *
from alipay.aop.api.domain.MybankCreditSceneprodBillQueryModel import MybankCreditSceneprodBillQueryModel
class MybankCreditSceneprodBillQueryRequest(object):
def __init__(self, biz_model=None):
... | PypiClean |
/scml-agents-0.4.2.tar.gz/scml-agents-0.4.2/scml_agents/scml2020/team_17/whagent.py | import functools
import math
import time
from abc import abstractmethod
from dataclasses import dataclass
from pprint import pformat, pprint
from typing import Any, Dict, List, Optional, Tuple, Union
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
import seaborn as sns
from negmas import (
A... | PypiClean |
/uk_bin_collection-0.9.0.tar.gz/uk_bin_collection-0.9.0/uk_bin_collection/uk_bin_collection/councils/DerbyshireDalesDistrictCouncil.py | from bs4 import BeautifulSoup
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import Select
from selenium.webdriver.support.wait import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from uk_bin_collection.uk_bin_collection.co... | PypiClean |
/azureml_pipeline_core-1.53.0-py3-none-any.whl/azureml/pipeline/core/_parallel_run_step_base.py |
"""Contains functionality to add a step to run user script in parallel mode on multiple AmlCompute targets."""
import argparse
import logging
import re
import json
import os
import sys
import warnings
from itertools import chain
import azureml.core
from azureml.core.runconfig import RunConfiguration
from azureml.core... | PypiClean |
/octodns_hetzner-0.0.2-py3-none-any.whl/octodns_hetzner/__init__.py |
from collections import defaultdict
from requests import Session
import logging
from octodns.record import Record
from octodns.provider import ProviderException
from octodns.provider.base import BaseProvider
__VERSION__ = '0.0.2'
class HetznerClientException(ProviderException):
pass
class HetznerClientNotFou... | PypiClean |
/CoCa_pytorch-0.0.9-py3-none-any.whl/coca_pytorch/coca_pytorch.py | import torch
from torch import einsum, nn
import torch.nn.functional as F
from einops import rearrange, repeat
# helper functions
def exists(val):
return val is not None
def default(val, d):
return val if exists(val) else d
# normalization
# they use layernorm without bias, something that pytorch does not o... | PypiClean |
/msgraph_beta_sdk-1.0.0a9-py3-none-any.whl/msgraph/generated/governance_role_assignment_requests/item/subject/subject_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 |
/api-shop-1.14.1.tar.gz/api-shop-1.14.1/api_shop/api_shop.py | import json
import traceback
import os
import re
import time
import importlib
from .i18n import i18n_init
from .__init__ import __version__
from .url_parse import parse_rule
from .autofill import auto_fill, check_fill_methods
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
i18 = i18n_init('zh')
... | PypiClean |
/dq-notebook-6.0.2.tar.gz/dq-notebook-6.0.2/docs/source/examples/Notebook/Running Code.ipynb | # Running Code
First and foremost, the Jupyter Notebook is an interactive environment for writing and running code. The notebook is capable of running code in a wide range of languages. However, each notebook is associated with a single kernel. This notebook is associated with the IPython kernel, therefore runs Pyth... | PypiClean |
/py-pure-client-1.38.0.tar.gz/py-pure-client-1.38.0/pypureclient/pure1/Pure1_1_0/models/support_contract_get_response.py | import pprint
import re
import six
import typing
from ....properties import Property
if typing.TYPE_CHECKING:
from pypureclient.pure1.Pure1_1_0 import models
class SupportContractGetResponse(object):
"""
Attributes:
swagger_types (dict): The key is attribute name
and the... | PypiClean |
/azure-mgmt-privatedns-1.1.0b1.zip/azure-mgmt-privatedns-1.1.0b1/azure/mgmt/privatedns/operations/_private_zones_operations.py | import sys
from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload
import urllib.parse
from azure.core.exceptions import (
ClientAuthenticationError,
HttpResponseError,
ResourceExistsError,
ResourceNotFoundError,
ResourceNotModifiedError,
map_error,
)
from... | PypiClean |
/pulumi_fortios-0.0.9.tar.gz/pulumi_fortios-0.0.9/pulumi_fortios/switch_controller_switch_profile.py |
import copy
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from . import _utilities
__all__ = ['SwitchControllerSwitchProfileArgs', 'SwitchControllerSwitchProfile']
@pulumi.input_type
class SwitchControllerSwitchProfileArgs:
def __init__(_... | PypiClean |
/Pyomo-6.6.2-cp39-cp39-win_amd64.whl/pyomo/gdp/plugins/bigm.py | import logging
from pyomo.common.collections import ComponentMap
from pyomo.common.config import ConfigDict, ConfigValue
from pyomo.common.modeling import unique_component_name
from pyomo.common.deprecation import deprecated, deprecation_warning
from pyomo.contrib.cp.transform.logical_to_disjunctive_program import (
... | PypiClean |
/ast-toolbox-2020.9.1.7.tar.gz/ast-toolbox-2020.9.1.7/examples/Plot/plot_top1.py | import csv
import os.path
from matplotlib import pyplot as plt
n_trial = 5
top_k = 10
batch_size = 4000
# max_step = 5e6
prepath = "../"
exps = ["CartpoleNdRewardt"]
policies = ["GATRDInterStep1.0Fmax", "PSMCTSInterStep1.0Ec1.414K0.5A0.5Qmax",
"PSMCTSTRInterStep1.0Ec1.414K0.5A0.5Qmax", "PSMCTSTRCInterSte... | PypiClean |
/poetry-codeartifact-login-0.2.1.tar.gz/poetry-codeartifact-login-0.2.1/README.md | # Poetry AWS CodeArtifact Login
A Poetry plugin for authenticating with AWS CodeArtifact.
## Requirements
- `poetry >= 1.2.0`
Install using the dedicated installation script. See [here](https://python-poetry.org/docs/#installation).
- `AWS CLI v2`
See [here](https://docs.aws.amazon.com/cli/latest/userguide/getting-s... | PypiClean |
/Transcrypt-3.7.16.tar.gz/Transcrypt-3.7.16/transcrypt/demos/parcel_demo/node_modules/htmlnano/node_modules/postcss-minify-font-values/lib/minify-family.js | var stringify = require('postcss-value-parser').stringify;
var uniqs = require('./uniqs')('monospace');
// Note that monospace is missing intentionally from this list; we should not
// remove instances of duplicated monospace keywords, it causes the font to be
// rendered smaller in Chrome.
var keywords = [
'sans... | PypiClean |
/pchem-0.2.tar.gz/pchem-0.2/apps/kinetics.py | import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import plotly.express as px
import plotly.graph_objects as go
import streamlit as st
import io
import base64
import re
from collections import defaultdict
from util import find, write_excel, process_file
import util
def combine_spectra(dataframes... | PypiClean |
/PyCIM-15.15.0.tar.gz/PyCIM-15.15.0/CIM15/IEC61968/PaymentMetering/__init__.py | from CIM15.IEC61968.PaymentMetering.VendorShift import VendorShift
from CIM15.IEC61968.PaymentMetering.Transactor import Transactor
from CIM15.IEC61968.PaymentMetering.CashierShift import CashierShift
from CIM15.IEC61968.PaymentMetering.TariffProfile import TariffProfile
from CIM15.IEC61968.PaymentMetering.AccountingUn... | PypiClean |
/petab_select-0.1.10-py3-none-any.whl/petab_select/petab.py | from pathlib import Path
from typing import List, Optional
import petab
from petab.C import ESTIMATE, NOMINAL_VALUE
from .constants import PETAB_ESTIMATE_FALSE, TYPE_PARAMETER_DICT, TYPE_PATH
class PetabMixin:
"""Useful things for classes that contain a PEtab problem.
All attributes/methods are prefixed wi... | PypiClean |
/Django_patch-2.2.19-py3-none-any.whl/django/core/management/commands/sqlmigrate.py | from django.apps import apps
from django.core.management.base import BaseCommand, CommandError
from django.db import DEFAULT_DB_ALIAS, connections
from django.db.migrations.executor import MigrationExecutor
from django.db.migrations.loader import AmbiguityError
class Command(BaseCommand):
help = "Prints the SQL s... | PypiClean |
/buckaroo-0.3.17.tar.gz/buckaroo-0.3.17/docs/source/contributing.rst | .. _Contributing:
========================
Contributing to Buckaroo
========================
Buckaroo is actively looking for contributors. All forms of participation are welcome, from bug reports, to suggestions, to code contributions.
Developing in the Jupyter Lab environment
====================================... | PypiClean |
/pytorch-functional-0.7.1.post4.tar.gz/pytorch-functional-0.7.1.post4/pytorch_functional/functions_utility.py |
from __future__ import annotations
from typing import Callable, Dict, Hashable, List, Tuple
from torch import nn
from . import useful_layers
from .functional_model import SymbolicTensor
def add_module_to_model(module, *args):
assert isinstance(args[0], SymbolicTensor)
return args[0](module, *args[1:])
d... | PypiClean |
/pymvpa2-2.6.5.tar.gz/pymvpa2-2.6.5/mvpa2/measures/noiseperturbation.py | """Derive sensitivity maps for a metric by selective noise perturbation"""
__docformat__ = 'restructuredtext'
if __debug__:
from mvpa2.base import debug
from mvpa2.support.copy import deepcopy
import numpy as np
from mvpa2.measures.base import FeaturewiseMeasure
from mvpa2.datasets.base import Dataset
class ... | PypiClean |
/PyGall-0.12.tar.gz/PyGall-0.12/pygall/static/app/js/jquery.iframe-transport.js |
(function ($) {
'use strict';
// Helper variable to create unique names for the transport iframes:
var counter = 0;
// The iframe transport accepts three additional options:
// options.fileInput: a jQuery collection of file input fields
// options.paramName: the parameter name for the file fo... | PypiClean |
/multi_task_nmt_lawhy-0.1.3-py3-none-any.whl/mnmt/translator/basic_translator.py | class BasicTranslator:
def __init__(self, quiet_translate=True):
"""
Args:
quiet_translate: determine whether to print translation or not
"""
self.quiet_translate = quiet_translate
def translate(self, output, trg, trg_field, output_file=None):
"""
A... | PypiClean |
/alipay-sdk-python-pycryptodome-3.3.202.tar.gz/alipay-sdk-python-pycryptodome-3.3.202/alipay/aop/api/domain/AlipayCommerceIotSupplierAssetBatchqueryModel.py | import json
from alipay.aop.api.constant.ParamConstants import *
class AlipayCommerceIotSupplierAssetBatchqueryModel(object):
def __init__(self):
self._cur_page_num = None
self._keyword = None
self._page_size = None
self._supplier_pid = None
@property
def cur_page_num(se... | PypiClean |
/h2o_pysparkling_2.4-3.42.0.2.post1.tar.gz/h2o_pysparkling_2.4-3.42.0.2.post1/ai/h2o/sparkling/ml/models/H2ODRFMOJOModel.py |
from ai.h2o.sparkling.ml.params.H2OMOJOModelParams import H2OTreeBasedSupervisedMOJOModelParams
from pyspark.ml.util import _jvm
from py4j.java_gateway import JavaObject
from ai.h2o.sparkling.Initializer import Initializer
from ai.h2o.sparkling.ml.models.H2OMOJOSettings import H2OMOJOSettings
from ai.h2o.sparkling.ml.... | PypiClean |
/jd/security/tde_client/http_report_client.py | import socket
import platform
from threading import RLock
import os
from seven_jd.jd.api.base import RestApi
from jd import appinfo
import random
import time
import json
ALPHABET = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz=+-*/_|<>^~@?%&"
class HttpReportClient(object):
def __init__(self, t... | PypiClean |
/authok-python-1.22.1.tar.gz/authok-python-1.22.1/authok/v3/management/rules.py | from .rest import RestClient
class Rules(object):
"""Rules endpoint implementation.
Args:
domain (str): Your AuthOK domain, e.g: 'username.cn.authok.cn'
token (str): Management API v1 Token
telemetry (bool, optional): Enable or disable Telemetry
(defaults to True)
... | PypiClean |
/sherpa_client-0.12.7-py3-none-any.whl/sherpa_client/models/delete_many_response.py | from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar, Union
import attr
from ..types import UNSET, Unset
if TYPE_CHECKING:
from ..models.item_count import ItemCount
from ..models.sherpa_job_bean import SherpaJobBean
T = TypeVar("T", bound="DeleteManyResponse")
@attr.s(auto_attribs=True)
class... | PypiClean |
/clime_issue_density-0.3.1-py3-none-any.whl/clime_issue_density/args.py | from argparse import ArgumentParser, Namespace
name: str = "CLIME"
authors: list = [
"Nicholas M. Synovic",
"Matthew Hyatt",
"Sohini Thota",
"George K. Thiruvathukal",
]
def mainArgs() -> Namespace:
parser: ArgumentParser = ArgumentParser(
prog=f"{name} Issue Density",
description... | PypiClean |
/tensorflow_tflex-1.13.1rc1-cp27-cp27mu-manylinux1_x86_64.whl/tensorflow_tflex-1.13.1rc1.data/purelib/tensorflow/python/ops/linalg/linear_operator_algebra.py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import itertools
from tensorflow.python.framework import ops
from tensorflow.python.util import tf_inspect
_CHOLESKY_DECOMPS = {}
_MATMUL = {}
def _registered_function(type_list, registry):
"""Given a li... | PypiClean |
/py-pure-client-1.38.0.tar.gz/py-pure-client-1.38.0/pypureclient/flashblade/FB_2_10/models/__init__.py |
from __future__ import absolute_import
class ReferenceType(object):
"""Class just for type annotations.
It's used for reference arg on api function. This allows user to pass collections of Model objects
to the method without transforming them to ids or names.
Should be Protocol type when the typing... | PypiClean |
/edb-deployment-3.15.0.tar.gz/edb-deployment-3.15.0/edbdeploy/commands/vmware.py | import argparse
from ..options import *
from .default import default_subcommand_parsers
# VMWare sub-commands and options
def subcommands(subparser):
# List of the sub-commands we want to be available for the vmwarewkstn
# command
available_subcommands = [
'configure', 'provision', 'deploy', 'dest... | PypiClean |
/DXC-RL-1.0.3.5.tar.gz/DXC-RL-1.0.3.5/dxc/ai/visualization/visualization.py | from yellowbrick.features import Rank2D #exploring raw data
import matplotlib.pyplot as plt
import missingno as msno #gauge dataset completeness
import seaborn as sns #data exploration, distribution plotting
import pandas as pd
from datacleaner import autoclean
import math
from pandas.api.types import is_numeric_dtype
... | PypiClean |
/django-compressor-parceljs-2.3.6.tar.gz/django-compressor-parceljs-2.3.6/compressor/contrib/sekizai.py | from compressor.templatetags.compress import CompressorNode
from compressor.exceptions import UncompressableFileError
from compressor.base import Compressor
from compressor.conf import settings
from compressor.utils import get_class
from django.template.base import TextNode
def compress(context, data, name):
"""... | PypiClean |
/django-arquea-2.4.17.tar.gz/django-arquea-2.4.17/configuracao/static/js/tiny_mce/langs/bg.js | tinyMCE.addI18n({bg:{common:{more_colors:"\u041e\u0449\u0435 \u0446\u0432\u0435\u0442\u043e\u0432\u0435",invalid_data:"\u0413\u0440\u0435\u0448\u043a\u0430: \u0412\u044a\u0432\u0435\u0434\u0435\u043d\u0438 \u0441\u0430 \u043d\u0435\u0432\u0430\u043b\u0438\u0434\u043d\u0438 \u0441\u0442\u043e\u0439\u043d\u043e\u0441\u04... | PypiClean |
/rogii-solo-0.4.0.tar.gz/rogii-solo-0.4.0/src/rogii_solo/base.py | from abc import ABC, abstractmethod
from typing import Any, Dict, Iterable, List, Optional, Set, Tuple, TypeVar
from pandas import DataFrame
from rogii_solo.calculations.converters import convert_value, radians_to_degrees
from rogii_solo.calculations.enums import EMeasureUnits
from rogii_solo.papi.client import PapiC... | PypiClean |
/janis-pipelines.core-0.13.1.tar.gz/janis-pipelines.core-0.13.1/janis_core/ingestion/galaxy/gxwrappers/downloads/wrappers.py | import requests
import tarfile
import os
from typing import Optional
from janis_core.ingestion.galaxy.utils import galaxy as utils
from janis_core.ingestion.galaxy.gxwrappers.downloads.cache import DownloadCache
CACHE: DownloadCache = DownloadCache()
def fetch_xml(owner: str, repo: str, revision: str, tool_id: str... | PypiClean |
/satnogs-db-1.51.tar.gz/satnogs-db-1.51/db/static/lib/admin-lte/plugins/moment/locale/tet.js |
;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined'
&& typeof require === 'function' ? factory(require('../moment')) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
... | PypiClean |
/napalm-yang-0.1.0.tar.gz/napalm-yang-0.1.0/napalm_yang/models/openconfig/network_instances/network_instance/protocols/protocol/bgp/global_/afi_safis/afi_safi/l3vpn_ipv6_multicast/prefix_limit/config/__init__.py | from operator import attrgetter
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType
from pyangbind.lib.yangtypes import RestrictedClassType
from pyangbind.lib.yangtypes import TypedListType
from pyangbind.lib.yangtypes import YANGBool
from pyangbind.lib.yangtypes import YANGListType
from pyangbind.lib.ya... | PypiClean |
/llm_toys-0.1.1-py3-none-any.whl/llm_toys/hf/transformers/models/xlm_prophetnet/tokenization_xlm_prophetnet.py |
import collections
import os
from shutil import copyfile
from typing import Any, Dict, List, Optional, Tuple
from ...tokenization_utils import PreTrainedTokenizer
from ...utils import logging
logger = logging.get_logger(__name__)
SPIECE_UNDERLINE = "▁"
VOCAB_FILES_NAMES = {"vocab_file": "prophetnet.tokenizer"}
P... | PypiClean |
/django-adminlte3-amigne-0.1.99.tar.gz/django-adminlte3-amigne-0.1.99/adminlte3/static/admin-lte/plugins/codemirror/mode/rust/rust.js |
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS
mod(require("../../lib/codemirror"), require("../../addon/mode/simple"));
else if (typeof define == "function" && define.amd) // AMD
define(["../../lib/codemirror", "../../addon/mode/simple"], mod);
else // Plain br... | PypiClean |
/console_widgets-0.0.603.tar.gz/console_widgets-0.0.603/console_widgets/console_widgets.py | from .errors import *
from .themes import *
import inspect
from collections import OrderedDict
def write_roman(num):
roman = OrderedDict()
roman[1000] = "M"
roman[900] = "CM"
roman[500] = "D"
roman[400] = "CD"
roman[100] = "C"
roman[90] = "XC"
roman[50] = "L"
roman[40] = "XL"
... | PypiClean |
/tensorflow_cpu-2.14.0rc1-cp311-cp311-macosx_10_15_x86_64.whl/tensorflow/python/ops/ragged/segment_id_ops.py | """Ops for converting between row_splits and segment_ids."""
from tensorflow.python.framework import dtypes
from tensorflow.python.framework import ops
from tensorflow.python.framework import tensor
from tensorflow.python.framework import tensor_shape
from tensorflow.python.framework import tensor_util
from tensorflow... | PypiClean |
/sphinxcontrib-imagehelper-1.1.1.tar.gz/sphinxcontrib-imagehelper-1.1.1/README.rst | sphinxcontrib-imagehelper
==========================
.. image:: https://travis-ci.org/tk0miya/sphinxcontrib-imagehelper.svg?branch=master
:target: https://travis-ci.org/tk0miya/sphinxcontrib-imagehelper
.. image:: https://coveralls.io/repos/tk0miya/sphinxcontrib-imagehelper/badge.png?branch=master
:target: http... | PypiClean |
/jupancon-0.3.3.tar.gz/jupancon-0.3.3/README.md | # jupancon
Database Connectors and SQL magics for [Jupyter](https://docs.jupyter.org/en/latest/). `jupancon` = Jupyter + Pandas + Connectors.
### Features
- Connector to Redshift
- Using user/pass
- Using IAM profile
- Connector to Bigquery (using google profile)
- Connector to Databricks
- Optional automat... | PypiClean |
/shimao-nosidebar-frontend-20180926.0.tar.gz/shimao-nosidebar-frontend-20180926.0/hass_frontend_es5/custom-panel-7baaafff.js | !function(e){function n(n){for(var t,o,u=n[0],i=n[1],c=0,l=[];c<u.length;c++)o=u[c],r[o]&&l.push(r[o][0]),r[o]=0;for(t in i)Object.prototype.hasOwnProperty.call(i,t)&&(e[t]=i[t]);for(a&&a(n);l.length;)l.shift()()}var t={},r={11:0};function o(n){if(t[n])return t[n].exports;var r=t[n]={i:n,l:!1,exports:{}};return e[n].ca... | PypiClean |
/robotframework-python3-2.9.tar.gz/robotframework-python3-2.9/src/robot/model/keyword.py |
from itertools import chain
from operator import attrgetter
from robot.utils import setter, unic
from .itemlist import ItemList
from .message import Message, Messages
from .modelobject import ModelObject
from .tags import Tags
class Keyword(ModelObject):
"""Base model for single keyword."""
__slots__ = ['_... | PypiClean |
/deepfos-celery-1.1.2.tar.gz/deepfos-celery-1.1.2/docs/history/changelog-2.3.rst | .. _changelog-2.3:
===============================
Change history for Celery 2.3
===============================
.. contents::
:local:
.. _version-2.3.4:
2.3.4
=====
:release-date: 2011-11-25 04:00 p.m. GMT
:release-by: Ask Solem
.. _v234-security-fixes:
Security Fixes
--------------
* [Security: `CELERYSA-... | PypiClean |
/pyrundeck-0.10.0.tar.gz/pyrundeck-0.10.0/README.md | # Rundeck REST API client




This is a Python REST API client f... | PypiClean |
/infra_operator-1.0.23-py3-none-any.whl/infra_operator/clients/mod.py |
import os
import types
import boto3
from infra_operator.clients.ghe import GHE
def get_account_id(self):
return self.get_caller_identity()["Account"]
def find_distribution(self, Id=None, Alias=None, DomainName=None):
if Id is None:
pager = self.get_paginator("list_distributions")
matched = ... | PypiClean |
/pdc_dp_means-0.0.6-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/sklearn/neighbors/_graph.py |
# Author: Jake Vanderplas <vanderplas@astro.washington.edu>
# Tom Dupre la Tour
#
# License: BSD 3 clause (C) INRIA, University of Amsterdam
from ._base import KNeighborsMixin, RadiusNeighborsMixin
from ._base import NeighborsBase
from ._unsupervised import NearestNeighbors
from ..base import TransformerMixin,... | PypiClean |
/backtradermsms-1.9.75.123-py3-none-any.whl/backtrader/lineiterator.py | from __future__ import (absolute_import, division, print_function,
unicode_literals)
import collections
import operator
import sys
from .utils.py3 import map, range, zip, with_metaclass, string_types
from .utils import DotDict
from .lineroot import LineRoot, LineSingle
from .linebuffer import... | PypiClean |
/machnamh-unmakingyou-0.0.23.tar.gz/machnamh-unmakingyou-0.0.23/machnamh/helper.py |
# In[8]:
from io import StringIO
import os
import sys
from datetime import date
import re
import random
import math
from collections import Counter, namedtuple
import gc
import threading
import time
from itertools import cycle, chain, combinations
import itertools
import warnings
import kaleido
from contextlib impo... | PypiClean |
/ptcn-0.1.3.tar.gz/ptcn-0.1.3/README.md | # ptcn
Tensorflow (2.x) implementation of a Temporal Convolutional Network architecture, with a probabilistic twist.
This project indulges a couple of curiosities:
1. Working with convolutional sequence-to-sequence models a la [An Empirical Evaluation of Generic Convolutional and Recurrent Networks for Sequence Mode... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.