id
stringlengths
1
8
text
stringlengths
6
1.05M
dataset_id
stringclasses
1 value
/tencentcloud-python-sdk-3.0.960.tar.gz/tencentcloud-python-sdk-3.0.960/tencentcloud/mgobe/v20201014/mgobe_client.py
import json from tencentcloud.common.exception.tencent_cloud_sdk_exception import TencentCloudSDKException from tencentcloud.common.abstract_client import AbstractClient from tencentcloud.mgobe.v20201014 import models class MgobeClient(AbstractClient): _apiVersion = '2020-10-14' _endpoint = 'mgobe.tencentcl...
PypiClean
/adapter_transformers-3.2.1-py3-none-any.whl/transformers/models/swinv2/configuration_swinv2.py
""" Swinv2 Transformer model configuration""" from ...configuration_utils import PretrainedConfig from ...utils import logging logger = logging.get_logger(__name__) SWINV2_PRETRAINED_CONFIG_ARCHIVE_MAP = { "microsoft/swinv2-tiny-patch4-window8-256": ( "https://huggingface.co/microsoft/swinv2-tiny-patch4...
PypiClean
/repoze.who-3.0.0b1-py3-none-any.whl/repoze/who/middleware.py
from io import StringIO import logging import sys from repoze.who.api import APIFactory from repoze.who.interfaces import IChallenger _STARTED = '-- repoze.who request started (%s) --' _ENDED = '-- repoze.who request ended (%s) --' class PluggableAuthenticationMiddleware(object): def __init__(self, ...
PypiClean
/rrtools-1.0.0a2.tar.gz/rrtools-1.0.0a2/RRtoolbox/lib/root.py
from __future__ import print_function # system from future import standard_library standard_library.install_aliases() from builtins import filter from builtins import zip from builtins import range from past.builtins import basestring from builtins import object import sys import os import inspect import types from tim...
PypiClean
/trinity-0.1.0a31.tar.gz/trinity-0.1.0a31/eth2/beacon/state_machines/base.py
from abc import ABC, abstractmethod import logging from typing import Tuple, Type from eth._utils.datatypes import Configurable from eth2.beacon.db.chain import BaseBeaconChainDB from eth2.beacon.fork_choice.scoring import ScoringFn as ForkChoiceScoringFn from eth2.beacon.types.attestations import Attestation from et...
PypiClean
/datasetinsights-1.1.2.tar.gz/datasetinsights-1.1.2/README.md
# Dataset Insights [![PyPI python](https://img.shields.io/pypi/pyversions/datasetinsights)](https://pypi.org/project/datasetinsights) [![PyPI version](https://badge.fury.io/py/datasetinsights.svg)](https://pypi.org/project/datasetinsights) [![Downloads](https://pepy.tech/badge/datasetinsights)](https://pepy.tech/proje...
PypiClean
/voila-0.5.1.tar.gz/voila-0.5.1/docs/index.md
% Copyright (c) 2018, Voilà Contributors % Copyright (c) 2018, QuantStack % % Distributed under the terms of the BSD 3-Clause License. % % The full license is in the file LICENSE, distributed with this software. :::{note} Want to turn your Voilà dashboard into a static webpage? Check out [Voici](https://github.com/voi...
PypiClean
/mess_chat_server_gb-0.0.1.tar.gz/mess_chat_server_gb-0.0.1/chat_server/server/server_database.py
import os from datetime import datetime from sqlalchemy import create_engine, Column, Integer, String, DateTime, ForeignKey from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import sessionmaker from sqlalchemy.pool import StaticPool from sqlalchemy.sql import default_comparator BASEDIR = os....
PypiClean
/simple_male-0.1.2.tar.gz/simple_male-0.1.2/examples/ensemble_example.py
from simple_ml.ensemble import AdaBoost, GBDT from simple_ml.classify_data import get_wine, get_watermelon from simple_ml.data_handle import train_test_split from simple_ml.base.base_enum import * def moon_example(): """ AdaBoost的例子,以月亮数据集为例 :return: """ x, y = get_wine() x = x[(y == 0) | (y ...
PypiClean
/ais_dom_frontend-20230831.0-py3-none-any.whl/hass_frontend/frontend_latest/88643-1O1rjYQb-vk.js
export const id=88643;export const ids=[88643];export const modules={88643:(e,i,s)=>{s.r(i),s.d(i,{CloudRegister:()=>d});var a=s(17463),o=s(68144),r=s(79932),t=s(47181),l=(s(98762),s(9381),s(22098),s(3555),s(83270)),n=(s(60010),s(11654));s(88165);let d=(0,a.Z)([(0,r.Mo)("cloud-register")],(function(e,i){return{F:class ...
PypiClean
/sendpost_python_sdk-1.1.1.tar.gz/sendpost_python_sdk-1.1.1/sendpost_python_sdk/paths/subaccount_suppression_/delete.py
from dataclasses import dataclass import typing_extensions import urllib3 from urllib3._collections import HTTPHeaderDict from sendpost_python_sdk import api_client, exceptions from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import r...
PypiClean
/spinqkit-0.0.1a0-cp39-cp39-win_amd64.whl/qiskit/quantum_info/operators/symplectic/random.py
import numpy as np from numpy.random import default_rng from .pauli import Pauli from .clifford import Clifford from .stabilizer_table import StabilizerTable from .pauli_table import PauliTable def random_pauli(num_qubits, group_phase=False, seed=None): """Return a random Pauli. Args: num_qubits (in...
PypiClean
/azure_mgmt_containerservice-26.0.0-py3-none-any.whl/azure/mgmt/containerservice/v2022_07_02_preview/operations/_maintenance_configurations_operations.py
from io import IOBase from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, overload import urllib.parse from azure.core.exceptions import ( ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, ResourceNotModifiedError, map_error, )...
PypiClean
/stoq-4.7.0.tar.gz/stoq-4.7.0/stoqlib/importers/branchimporter.py
## ## Copyright (C) 2007 Async Open Source ## ## This program is free software; you can redistribute it and/or ## modify it under the terms of the GNU Lesser General Public License ## as published by the Free Software Foundation; either version 2 ## of the License, or (at your option) any later version. ## ## This pro...
PypiClean
/sandwichcloud_deli-0.0.39-py3-none-any.whl/deli/menu/metadata/vm_client.py
import enum import os import arrow from cryptography.fernet import Fernet from vmw_cloudinit_metadata.vspc.vm_client import VMClient from deli.counter.auth.token import Token from deli.kubernetes.resources.v1alpha1.instance.model import Instance class PacketCode(enum.Enum): # Incoming packets REQUEST_METADA...
PypiClean
/django-admin-tabler-1.0.2.tar.gz/django-admin-tabler-1.0.2/admin_tabler/static/dist/libs/bootstrap/dist/js/bootstrap.esm.min.js
import*as Popper from"@popperjs/core";const elementMap=new Map,Data={set(e,t,n){elementMap.has(e)||elementMap.set(e,new Map);const i=elementMap.get(e);i.has(t)||0===i.size?i.set(t,n):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(i.keys())[0]}.`)},get:(e,t)=>elem...
PypiClean
/pygobnilp-1.0.tar.gz/pygobnilp-1.0/README.md
# Python implementation of GOBNILP The Python implementation of GOBNILP is a program that uses Gurobi to learn Bayesian network structure from either complete discrete data or complete continuous data or precomputed local scores. The Python implementation has benefited from work done by Josh Neil on computing BDeu lo...
PypiClean
/terrascript_aws-1.0.5.tar.gz/terrascript_aws-1.0.5/src/terrascript_aws/ebs/ds_snapshot_ids.py
import terrascript.core as core @core.schema class Filter(core.Schema): name: str | core.StringOut = core.attr(str) values: list[str] | core.ArrayOut[core.StringOut] = core.attr(str, kind=core.Kind.array) def __init__( self, *, name: str | core.StringOut, values: list[st...
PypiClean
/os_sys-2.1.4-py3-none-any.whl/server/contrib/gis/geos/prototypes/errcheck.py
from ctypes import c_void_p, string_at from server.contrib.gis.geos.error import GEOSException from server.contrib.gis.geos.libgeos import GEOSFuncFactory # Getting the `free` routine used to free the memory allocated for # string pointers returned by GEOS. free = GEOSFuncFactory('GEOSFree') free.argtypes = [c_void_p...
PypiClean
/msgraph-sdk-1.0.0a3.tar.gz/msgraph-sdk-1.0.0a3/msgraph/generated/me/calendar_groups/item/calendars/item/events/item/calendar/calendar_request_builder.py
from __future__ import annotations from dataclasses import dataclass from kiota_abstractions.get_path_parameters import get_path_parameters from kiota_abstractions.method import Method from kiota_abstractions.request_adapter import RequestAdapter from kiota_abstractions.request_information import RequestInformation fro...
PypiClean
/django-admin-material-able-0.2.tar.gz/django-admin-material-able-0.2/material_admin/static/admin/js/inlines.js
* Django admin inlines * * Based on jQuery Formset 1.1 * @author Stanislaus Madueke (stan DOT madueke AT gmail DOT com) * @requires jQuery 1.2.6 or later * * Copyright (c) 2009, Stanislaus Madueke * All rights reserved. * * Spiced up with Code from Zain Memon's GSoC project 2009 * and modified for Django by ...
PypiClean
/MUSE_OS-1.0.2.tar.gz/MUSE_OS-1.0.2/docs/user-guide/trade.ipynb
# Trade In this example we will introduce trade between two regions. Often, there exists trade between countries, regions within countries or between regions of countries (e.g. Latin America). This could be the trading of commodities such as gas or electricity in the form of imports and exports. MUSE is able to model...
PypiClean
/ipaas-python-sdk-core-1.0.0.tar.gz/ipaas-python-sdk-core-1.0.0/core/vendored/requests/packages/chardet/sjisprober.py
from .mbcharsetprober import MultiByteCharSetProber from .codingstatemachine import CodingStateMachine from .chardistribution import SJISDistributionAnalysis from .jpcntx import SJISContextAnalysis from .mbcssm import SJIS_SM_MODEL from .enums import ProbingState, MachineState class SJISProber(MultiByteCharSetProber...
PypiClean
/torii-0.4.5.tar.gz/torii-0.4.5/docs/_static/js/wavedrom.min.js
!function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,(function(r){return o(e[i][1][r]||r)}),p,p.exports,r...
PypiClean
/munch-core-0.1.4.tar.gz/munch-core-0.1.4/src/munch/apps/campaigns/validators.py
import re from email.utils import parseaddr import dns import dns.exception import dns.resolver import clamd from django.conf import settings from django.core.cache import cache from django.core.validators import RegexValidator from django.core.exceptions import ValidationError from django.utils.translation import uge...
PypiClean
/corr-0.7.3.tar.gz/corr-0.7.3/scripts/corr_katcp_interface.py
import logging,corr,sys,Queue,katcp from optparse import OptionParser from katcp.kattypes import request, return_reply, Float, Int, Str, Bool import struct logging.basicConfig(level=logging.WARN, stream=sys.stderr, format="%(asctime)s - %(name)s - %(filename)s:%(lineno)s - %(lev...
PypiClean
/dubhub_instrument_psycopg2-0.34b2.tar.gz/dubhub_instrument_psycopg2-0.34b2/src/dubhubinstrument/__init__.py
def instrument(): from opentelemetry.instrumentation.django import DjangoInstrumentor from opentelemetry.instrumentation.psycopg2 import Psycopg2Instrumentor DjangoInstrumentor().instrument() Psycopg2Instrumentor().instrument() # for the exporter from opentelemetry import trace from opente...
PypiClean
/mw-adapter-transformers-3.2.1.tar.gz/mw-adapter-transformers-3.2.1/src/adapter_transformers/models/bert/tokenization_bert_tf.py
import os from typing import List, Union import tensorflow as tf from tensorflow_text import BertTokenizer as BertTokenizerLayer from tensorflow_text import FastBertTokenizer, ShrinkLongestTrimmer, case_fold_utf8, combine_segments, pad_model_inputs from .tokenization_bert import BertTokenizer class TFBertTokenizer...
PypiClean
/wiz-env-3.7.0.tar.gz/wiz-env-3.7.0/doc/plugins.rst
.. _plugins: ************* Using Plugins ************* We can use :ref:`configuration files <configuration>` to customize Wiz, but we can also extend the configuration mapping with dynamic values using :term:`Python` plugins. .. hint:: Plugins are being discovered and loaded just after configuration mapping has...
PypiClean
/counter_caller-2.0.3rc5-py3-none-any.whl/counter_caller/bower_components/vue/dist/vue.min.js
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.Vue=e()}(this,function(){"use strict";function t(e,n,r){if(i(e,n))return void(e[n]=r);if(e._isVue)return void t(e._data,n,r);var s=e.__ob__;if(!s)return void(e[n]=r);if(s.convert(n,r)...
PypiClean
/collective.captionmanager-1.0.zip/collective.captionmanager-1.0/collective/captionmanager/browser/captionstransformer_view.py
from captionstransformer import registry from StringIO import StringIO #zope from zope import interface from zope import component from zope import schema from z3c.form import form, button #plone from plone.autoform.form import AutoExtensibleForm from plone.namedfile.field import NamedFile from plone.z3cform import l...
PypiClean
/diff-hilite-2.0.tar.gz/diff-hilite-2.0/src/highlights/command.py
import errno import re import sys from highlights.pprint import INSERTED, DELETED, pprint_hunk colortable = {'none': 0, 'red': 31, 'green': 32} def highlight_main(): exit_code = 0 try: new, old = [], [] in_header = True for rawline in sys.stdin: if sys.version_info < (3, ...
PypiClean
/nucleus_sdk-0.1a0.tar.gz/nucleus_sdk-0.1a0/nucleus/sdk/processing/types.py
from __future__ import annotations from abc import ABC, abstractmethod from nucleus.core.types import ( URL, Any, Dynamic, Iterator, List, Path, Settings, Tuple, Union, ) from nucleus.sdk.harvest import Media # Alias for allowed engine inputs Processable = Media[Union[Path, URL]] ...
PypiClean
/Gammalearn-0.11.0.tar.gz/Gammalearn-0.11.0/gammalearn/data/example_settings/experiment_settings_vit.py
import collections import os import importlib from pathlib import Path import math import numpy as np import torch from torch.optim import lr_scheduler from torchvision import transforms from torchvision.models import resnet18, ResNet, EfficientNet, MobileNetV2, MobileNetV3 from torchvision.models.vision_transformer im...
PypiClean
/django-inapp-survey-0.2.5.tar.gz/django-inapp-survey-0.2.5/inapp_survey/static/bower_components_inapp/jquery/test/unit/manipulation.js
module("manipulation", { teardown: moduleTeardown }); // Ensure that an extended Array prototype doesn't break jQuery Array.prototype.arrayProtoFn = function(arg) { throw("arrayProtoFn should not be called"); }; var bareObj = function(value) { return value; }; var functionReturningObj = function(value) { return (func...
PypiClean
/recursive_dict-0.2.0.tar.gz/recursive_dict-0.2.0/CONTRIBUTING.rst
============ Contributing ============ Contributions are welcome, and they are greatly appreciated! Every little bit helps, and credit will always be given. You can contribute in many ways: Types of Contributions ---------------------- Report Bugs ~~~~~~~~~~~ Report bugs at https://github.com/ryananguiano/recursiv...
PypiClean
/ixnetwork_restpy-1.1.10.tar.gz/ixnetwork_restpy-1.1.10/ixnetwork_restpy/testplatform/sessions/ixnetwork/traffic/statistics/statistics.py
import sys from ixnetwork_restpy.base import Base from ixnetwork_restpy.files import Files if sys.version_info >= (3, 5): from typing import List, Any, Union class Statistics(Base): """This object fetches all the traffic statistics. The Statistics class encapsulates a required statistics resource which w...
PypiClean
/superMatch-0.0.5-py3-none-any.whl/dloc/models/contextdesc/models/base_model.py
import sys import os from abc import ABCMeta, abstractmethod import collections import tensorflow as tf sys.path.append('..') from utils.tf import load_frozen_model, recoverer def dict_update(d, u): """Improved update for nested dictionaries. Arguments: d: The dictionary to be updated. u: T...
PypiClean
/OpenLIBS-0.1.0.tar.gz/OpenLIBS-0.1.0/README.md
# LIBS_Elemental_Analysis Laser Induced Breakdown Spectroscopy(LIBS) is a versatile tool to quantitatively and qualitatively analyse a sample using laser ablation. This Package Gives one the ability to computationally perform the Analysis for on a LIBS Spectra to obtain Qualitative information about the sample. ## He...
PypiClean
/python-awips-18.1.11.tar.gz/python-awips-18.1.11/dynamicserialize/dstypes/com/raytheon/uf/common/dataplugin/gfe/db/objects/GridLocation.py
class GridLocation(object): def __init__(self): self.siteId = None self.nx = None self.ny = None self.timeZone = None self.projection = None self.origin = None self.extent = None self.geometry = None self.crsWKT = None self.identifier ...
PypiClean
/sagemath-standard-10.0b0.tar.gz/sagemath-standard-10.0b0/sage/quadratic_forms/genera/genus.py
r""" Genus AUTHORS: - David Kohel & Gabriele Nebe (2007): First created - Simon Brandhorst (2018): various bugfixes and printing - Simon Brandhorst (2018): enumeration of genera - Simon Brandhorst (2020): genus representative """ # **************************************************************************** # ...
PypiClean
/setupmeta-3.4.0.tar.gz/setupmeta-3.4.0/HISTORY.rst
============= Release notes ============= 3.4.0 (2023-01-25) ------------------ * Allow to configure format of git version tag via the advanced dict-form of ``versioning``, example:: versioning={ "main": "{major}.{minor}.{distance}", "extra": "{dirty}", "branches": "master", "ve...
PypiClean
/rl-coach-1.0.1.tar.gz/rl-coach-1.0.1/rl_coach/agents/rainbow_dqn_agent.py
from typing import Union import numpy as np from rl_coach.agents.categorical_dqn_agent import CategoricalDQNAlgorithmParameters, \ CategoricalDQNAgent, CategoricalDQNAgentParameters from rl_coach.agents.dqn_agent import DQNNetworkParameters from rl_coach.architectures.head_parameters import RainbowQHeadParameter...
PypiClean
/django_surface_theme-0.0.10-py3-none-any.whl/theme/static/components/select2/docs/plugins/simplesearch/README.md
# Grav SimpleSearch Plugin ![SimpleSearch](assets/readme_1.png) `SimpleSearch` is a simple, yet very powerful [Grav][grav] plugin that adds search capabilities to your Grav instance. By default it can search Page **Titles**, **Content** and also **Taxonomy**. # Installation Installing the SimpleSearch plugin can be...
PypiClean
/torchtemplates-1.0.0-py3-none-any.whl/testing/testing/dataset.py
import torch import torch.nn as nn from torch.utils.data import DataLoader, Dataset from typing import Dict, List import albumentations as A from albumentations.pytorch import ToTensorV2 from PIL import Image import numpy as np from testing.config import config class Image2ImageDataset(Dataset): '''Dataset class ...
PypiClean
/moonstreamdb-0.3.5.tar.gz/moonstreamdb-0.3.5/README.md
# moonstream db ### Setting up moonstreamdb Copy `sample.env` to a new file and set the environment variables to appropriate values. This new file should be sourced every time you want to access the database with the `moonstreamdb` application or any dependents. To be able to run migrations, copy [`alembic.sample.in...
PypiClean
/qda_modelos-1.1.3.tar.gz/qda_modelos-1.1.3/README.rst
Bio-Optical Models for Water Quality Analysis ============================================= This repository has the implementation and tests of benchmarked bio-optic models that evaluates some water quality indexes by analyzing satellite images. Table of contents ----------------- - `General Info <#general-info>`__...
PypiClean
/estim8Beta-0.0.3.tar.gz/estim8Beta-0.0.3/src/estim8.py
import abc import numpy as np import os import shutil import joblib import concurrent.futures as futures import time import inspect import multiprocessing as mp import pygmo as pg from utils import Utils, Messages from optimizers import Optimization from models import Estim8Model, DymolaModel, FmuModel import pandas a...
PypiClean
/Liblabtest-1.0.6-py3-none-any.whl/liblabtest/models/CreateSdkBuildRequest.py
from .base import BaseModel from typing import List from enum import Enum class CreateSdkBuildRequestLanguages(Enum): JAVA = "java" PYTHON = "python" TYPESCRIPT = "typescript" BASH = "bash" SPEC = "spec" def list(): return list(map(lambda x: x.value, CreateSdkBuildRequestLanguages._membe...
PypiClean
/cqlsh-expansion-0.9.6.tar.gz/cqlsh-expansion-0.9.6/cqlshlib/formatting.py
import calendar import datetime import math import os import re import sys from collections import defaultdict from cassandra.cqltypes import EMPTY from cassandra.util import datetime_from_timestamp from . import wcwidth from .displaying import colorme, get_str, FormattedValue, DEFAULT_VALUE_COLORS, NO_COLOR_MAP fro...
PypiClean
/msgraph-sdk-1.0.0a3.tar.gz/msgraph-sdk-1.0.0a3/msgraph/generated/me/calendars/item/multi_value_extended_properties/item/multi_value_legacy_extended_property_item_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
/bitmovin_api_sdk-1.171.0-py3-none-any.whl/bitmovin_api_sdk/models/web_vtt_styling.py
from enum import Enum from six import string_types, iteritems from bitmovin_api_sdk.common.poscheck import poscheck_model from bitmovin_api_sdk.models.web_vtt_styling_mode import WebVttStylingMode import pprint import six class WebVttStyling(object): @poscheck_model def __init__(self, mode=N...
PypiClean
/dffml-model-pytorch-0.1.0.post0.tar.gz/dffml-model-pytorch-0.1.0.post0/dffml_model_pytorch/utils/utils.py
import sys import inspect import numpy as np import torch.nn as nn from torch.utils.data import Dataset from torchvision import transforms from dffml.base import BaseDataFlowFacilitatorObject from dffml.util.entrypoint import base_entry_point, entrypoint from .config import make_pytorch_config def create_layer(laye...
PypiClean
/ansible-navigator-3.4.2.tar.gz/ansible-navigator-3.4.2/src/ansible_navigator/actions/builder.py
from __future__ import annotations import os import shutil from ansible_navigator.action_base import ActionBase from ansible_navigator.action_defs import RunStdoutReturn from ansible_navigator.configuration_subsystem.definitions import ApplicationConfiguration from ansible_navigator.configuration_subsystem.definition...
PypiClean
/marie-ai-3.0.5.tar.gz/marie-ai-3.0.5/marie/models/unilm/trocr/augmentation/noise.py
import numpy as np import skimage as sk from PIL import Image ''' PIL resize (W,H) ''' class GaussianNoise: def __init__(self): pass def __call__(self, img, mag=-1, prob=1.): if np.random.uniform(0,1) > prob: return img W, H = img.size #c = np.random.uniform(.0...
PypiClean
/semi-ate-spyder-1.0.15.tar.gz/semi-ate-spyder-1.0.15/ate_spyder/widgets/actions_on/hardwaresetup/ParallelismWidget.py
from typing import Dict, List, Optional, TYPE_CHECKING from PyQt5 import QtCore, uic from PyQt5.QtWidgets import QDialog, QListWidgetItem, QTableWidgetItem, QWidget from ate_projectdatabase.Hardware.ParallelismStore import ParallelismStore from ate_projectdatabase.Hardware.ParallelismConfig import ParallelismConfig f...
PypiClean
/pytorch_h5dataset-0.2.4.tar.gz/pytorch_h5dataset-0.2.4/pytorch_h5dataset/dataset/metaDataset.py
from abc import ABC, ABCMeta, abstractmethod from typing import final from torch.utils.data import Dataset import numpy as np import h5py, hdf5plugin, tables # fixes plugins not found Exceptions from math import sqrt import imghdr import sndhdr import os import pandas as pd import random import logging import difflib ...
PypiClean
/inspec-ai-0.1.15.tar.gz/inspec-ai-0.1.15/inspec_ai/quality/visualisation/visualisation.py
import base64 import io import os from collections import namedtuple from datetime import date, datetime from pathlib import Path from typing import List import matplotlib.pyplot as plt from jinja2 import Environment, FileSystemLoader from PIL import Image from inspec_ai.__init__ import package_root_dir from inspec_a...
PypiClean
/prodiguer_client-0.1.0.2.tar.gz/prodiguer_client-0.1.0.2/README.rst
prodiguer-client ================ Client side prodiguer python library. What is prodiguer-client ? -------------------------------------- prodiguer-client is a python client library for interacting with prodiguer web services. It supports pcmdi-metrics management. Why prodiguer-client ? -------------------------...
PypiClean
/zonefile-migrate-0.4.4.tar.gz/zonefile-migrate-0.4.4/src/zonefile_migrate/utils.py
import re from pathlib import Path from typing import Callable, List from easyzone import easyzone from zonefile_migrate.logger import log def is_zonefile(path: Path) -> bool: """ returns true if the file pointed to by `path` contains a $ORIGIN or $TTL pragma, otherwise False """ if path.exists() and ...
PypiClean
/customgpt_client-1.1.6.tar.gz/customgpt_client-1.1.6/customgpt_client/models/messages_conversation_response_200_data_messages.py
from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar, Union import attr from ..types import UNSET, Unset if TYPE_CHECKING: from ..models.messages_conversation_response_200_data_messages_data_item import ( MessagesConversationResponse200DataMessagesDataItem, ) T = TypeVar("T", bound="Mes...
PypiClean
/bitsmiths-fura-2.2.3.tar.gz/bitsmiths-fura-2.2.3/bs_fura/db/dao_async/postgresql/config_select_all.py
import datetime import uuid import time import mettle.lib import mettle.io import mettle.db from bs_fura.db.tables.config import tConfig class dConfigSelectAll: __slots__ = ("_dbcon", "_dbstmnt", "orec") def __init__(self, dbcon: mettle.db.IAConnect): """ Constructor. :param dbcon: M...
PypiClean
/zopyx.existdb-0.2.11.1.zip/zopyx.existdb-0.2.11.1/zopyx/existdb/browser/resources/ace-builds/src/ext-elastic_tabstops_lite.js
define('ace/ext/elastic_tabstops_lite', ['require', 'exports', 'module' , 'ace/editor', 'ace/config'], function(require, exports, module) { var ElasticTabstopsLite = function(editor) { this.$editor = editor; var self = this; var changedRows = []; var recordChanges = false; this.onAfterExec = funct...
PypiClean
/Jvis-learn-0.0.12.tar.gz/Jvis-learn-0.0.12/README.rst
==== Jvis ==== Emerging single-cell technologies profile multiple types of molecules within individual cells. A fundamental step in the analysis of the produced high-dimensional data is their visualization using dimensionality reduction techniques such as t-SNE and UMAP. We introduce j-SNE and j-UMAP as their natura...
PypiClean
/datalab_on_jupyter-2.2.1-py3-none-any.whl/datalab_on_jupyter/dist/74-f62b639f2be7acd398d9.bundle.js
(window.webpackJsonp=window.webpackJsonp||[]).push([[74],{1669:function(e,n,t){"use strict";t.r(n),t.d(n,"conf",function(){return r}),t.d(n,"language",function(){return o});var r={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",cl...
PypiClean
/dojah_python_sdk-4.1.0.tar.gz/dojah_python_sdk-4.1.0/dojah_client/schemas.py
from collections import defaultdict from datetime import date, datetime, timedelta # noqa: F401 import functools import decimal import io import re import types import typing import typing_extensions import uuid from dateutil.parser.isoparser import isoparser, _takes_ascii import frozendict from dojah_client.excepti...
PypiClean
/rocket_snake-0.1.5.tar.gz/rocket_snake-0.1.5/rocket_snake/client.py
import asyncio from . import basic_requests, custom_exceptions, data_classes from .constants import * class RLS_Client(object): """ Represents the client, does everything. Initialize with api key and some other settings if you want to. :param api_key: The key for the https://rocketleaguestats.com api. ...
PypiClean
/pyeddl-1.3.1.tar.gz/pyeddl-1.3.1/examples/NN/2_CIFAR10/cifar_vgg16.py
import argparse import sys import pyeddl.eddl as eddl from pyeddl.tensor import Tensor def Block1(layer, filters): return eddl.ReLu(eddl.BatchNormalization( eddl.Conv(layer, filters, [1, 1], [1, 1]), True )) def Block3_2(layer, filters): layer = eddl.ReLu(eddl.BatchNormalization( eddl.C...
PypiClean
/bpy_lambda-1.3.1-py3-none-any.whl/bpy_lambda/2.79/scripts/freestyle/modules/freestyle/utils.py
__all__ = ( "angle_x_normal", "bound", "bounding_box", "BoundingBox", "ContextFunctions", "curvature_from_stroke_vertex", "find_matching_vertex", "get_chain_length", "get_object_name", "get_strokes", "get_test_stroke", "getCurrentScene", "integrate", "is_poly_cloc...
PypiClean
/omero_py-5.15.0-py3-none-any.whl/omero_model_TransmittanceRangeI.py
try: unicode except NameError: # Python 3: "unicode" is built-in unicode = str import Ice import IceImport import omero IceImport.load("omero_model_DetailsI") IceImport.load("omero_model_TransmittanceRange_ice") from omero.rtypes import rlong from collections import namedtuple _omero = Ice.openModule("omero") ...
PypiClean
/tensorflow_cpu_aws-2.14.0rc1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl/tensorflow/python/ops/gen_nn_ops.py
import collections from tensorflow.python import pywrap_tfe as pywrap_tfe from tensorflow.python.eager import context as _context from tensorflow.python.eager import core as _core from tensorflow.python.eager import execute as _execute from tensorflow.python.framework import dtypes as _dtypes from tensorflow.security....
PypiClean
/RC4Encryption-0.0.1.tar.gz/RC4Encryption-0.0.1/RC4Encryption.py
################### # This package implements RC4 encryption. # Copyright (C) 2021 Maurice Lambert # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the Licen...
PypiClean
/ooouno-2.1.2-py3-none-any.whl/ooo/lo/frame/status/template.py
from ooo.oenv.env_const import UNO_NONE import typing class Template(object): """ Struct Class contains an association between a style name and a value. **since** OOo 2.0 See Also: `API Template <https://api.libreoffice.org/docs/idl/ref/structcom_1_1sun_1_1star_1_1frame...
PypiClean
/python-tunnelclient-1.1.0.tar.gz/python-tunnelclient-1.1.0/tunnelclient/osc/v2/resource.py
from cliff import lister from osc_lib.command import command from osc_lib import exceptions from osc_lib import utils from oslo_utils import uuidutils from tunnelclient.osc.v2 import constants as const from tunnelclient.osc.v2 import utils as v2_utils from tunnelclient.osc.v2 import validate PROTOCOL_CHOICES = ['TCP'...
PypiClean
/rekall-core-1.7.2rc1.zip/rekall-core-1.7.2rc1/rekall/plugins/tools/live_darwin.py
# Rekall Memory Forensics # Copyright 2015 Google Inc. All Rights Reserved. # # Author: Michael Cohen scudette@google.com # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of t...
PypiClean
/robot_grpc-0.0.4.tar.gz/robot_grpc-0.0.4/robot_grpc/node_modules/write-file-atomic/README.md
write-file-atomic ----------------- This is an extension for node's `fs.writeFile` that makes its operation atomic and allows you set ownership (uid/gid of the file). ### var writeFileAtomic = require('write-file-atomic')<br>writeFileAtomic(filename, data, [options], callback) * filename **String** * data **String**...
PypiClean
/panda3d-1.10.13-cp38-cp38-manylinux2010_i686.whl/direct/distributed/DistributedNodeAI.py
from panda3d.core import NodePath from . import DistributedObjectAI from . import GridParent class DistributedNodeAI(DistributedObjectAI.DistributedObjectAI, NodePath): def __init__(self, air, name=None): # Be careful not to create multiple NodePath objects try: self.DistributedNodeAI_...
PypiClean
/turing_machine_executor-1.1.1.tar.gz/turing_machine_executor-1.1.1/README.md
# A Turing Machine Executor (EMT)<!-- omit in toc --> [![License (MIT)](https://img.shields.io/github/license/espositoandrea/Turing-Machine-Executor.svg?style=for-the-badge)](https://github.com/espositoandrea/Turing-Machine-Executor/blob/v1.1.0-alpha/LICENSE) [![Latest release](https://img.shields.io/github/release-pr...
PypiClean
/mautrix_googlechat-0.5.0-py3-none-any.whl/maugclib/client.py
from __future__ import annotations from typing import Iterator from urllib.parse import urlencode import asyncio import base64 import binascii import cgi import datetime import json import logging import os import random import re from google.protobuf import message as proto from yarl import URL import aiohttp from...
PypiClean
/openobject-library-2.0.3.tar.gz/openobject-library-2.0.3/oobjlib/connection.py
import netrpclib from exceptions import OObjlibException class OobjBase(object): __slots__ = ('server', 'port', '_sock', 'server_version') def __init__(self, server='localhost', port=8070): self.server = server self.port = int(port) self._sock = netrpclib.NetrpcSocket(self.server, s...
PypiClean
/rstdiary-2.0.tar.gz/rstdiary-2.0/example/diary.rst
todo ==== todo is a special section #. that is always #. at the top, but collapsed and has * a different colour * but same shadow but is otherwise free form 2014-11-18 ========== *PTO* 2014-11-17 ========== Fixing bugs in old project Non-ascii — äöüß ☃ Started `a review <http://review.company.org/1234>`_ to ...
PypiClean
/ansible-8.3.0-py3-none-any.whl/ansible_collections/check_point/mgmt/plugins/modules/cp_mgmt_lsm_gateway_profile_facts.py
from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = { "metadata_version": "1.1", "status": ["preview"], "supported_by": "community", } DOCUMENTATION = """ --- module: cp_mgmt_lsm_gateway_profile_facts short_description: Get lsm-gateway-profile objects...
PypiClean
/retro_data_structures-0.23.0-py3-none-any.whl/retro_data_structures/properties/prime/archetypes/RidleyStruct1.py
import dataclasses import struct import typing from retro_data_structures.game_check import Game from retro_data_structures.properties.base_property import BaseProperty from retro_data_structures.properties.prime.core.AssetId import AssetId, default_asset_id from retro_data_structures.properties.prime.core.Color impor...
PypiClean
/ais_dom-2023.7.2-py3-none-any.whl/homeassistant/components/canary/__init__.py
from __future__ import annotations from datetime import timedelta import logging from typing import Final from canary.api import Api from requests.exceptions import ConnectTimeout, HTTPError import voluptuous as vol from homeassistant.components.camera import DOMAIN as CAMERA_DOMAIN from homeassistant.config_entries...
PypiClean
/yabgp-0.8.2.tar.gz/yabgp-0.8.2/doc/source/tutorial.rst
Tutorial ======== Basic Usage ~~~~~~~~~~~ We can use ``yabgpd`` help. .. code:: bash $ yabgpd -h The simple way to start a yabgp agent is (There are four mandatory parameters): .. code:: bash $ yabgpd --bgp-local_addr=10.75.44.11 --bgp-local_as=23650 \ --bgp-remote_addr=10.124.1.245 --bgp-re...
PypiClean
/nse_quadratic_mats-0.0.3-py3-none-any.whl/nse_quadratic_mats/conv_tensor_utils.py
from __future__ import print_function import scipy.sparse as sps import numpy as np # from dolfin import dx, grad, inner def linearzd_quadterm(H, linv, retparts=False, hlstr=None, lone_only=False, ltwo_only=False, verbose=False): """ compute the matrices `L1`, `L2` that represent the lineari...
PypiClean
/django-bird-colony-0.10.11.tar.gz/django-bird-colony-0.10.11/README.md
## bird-colony bird-colony is a Django application used to manage bird colonies (including breeding colonies). You may find that it can also be used for non-avian species. There's also support for storing information about samples associated with animals in the colony, like genomic DNA or song recordings. There is a...
PypiClean
/django_datatable_serverside_mixin-2.1.1-py3-none-any.whl/django_datatable_serverside_mixin/views.py
from django.views import View from django.http import JsonResponse from django.core.exceptions import ImproperlyConfigured from django.db.models import QuerySet from . import datatable from warnings import warn from deprecated import deprecated class ServerSideDataTablesMixin(View): columns = None queryset = ...
PypiClean
/collective.signupsheet-0.3.2.tar.gz/collective.signupsheet-0.3.2/collective/signupsheet/contents/signupsheet.py
from Products.Archetypes.atapi import (IntegerField, StringWidget, BooleanField, BooleanWidget, DateTimeField, CalendarWidget, TextField, RichWidget, Schema) from ...
PypiClean
/spyder-terminal-1.2.2.tar.gz/spyder-terminal-1.2.2/spyder_terminal/server/static/components/webpack/lib/SystemMainTemplatePlugin.js
"use strict"; const { ConcatSource } = require("webpack-sources"); const Template = require("./Template"); /** @typedef {import("./Compilation")} Compilation */ /** * @typedef {Object} SystemMainTemplatePluginOptions * @param {string=} name the library name */ class SystemMainTemplatePlugin { /** * @param {Sy...
PypiClean
/lyceanem-0.5.tar.gz/lyceanem-0.5/docs/examples/04_time_domain_channel_modelling.py
import numpy as np import open3d as o3d import copy # %% # Frequency and Mesh Resolution # ------------------------------ # sampling_freq = 60e9 model_time = 1e-7 num_samples = int(model_time * (sampling_freq)) # simulate receiver noise bandwidth = 8e9 kb = 1.38065e-23 receiver_impedence = 50 thermal_noise_power = 4 ...
PypiClean
/pulumi_azure-5.50.0a1693462503.tar.gz/pulumi_azure-5.50.0a1693462503/pulumi_azure/sentinel/data_connector_azure_active_directory.py
import copy import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import _utilities __all__ = ['DataConnectorAzureActiveDirectoryArgs', 'DataConnectorAzureActiveDirectory'] @pulumi.input_type class DataConnectorAzureActiveDirectoryArgs: d...
PypiClean
/msgraph_beta_sdk-1.0.0a9-py3-none-any.whl/msgraph/generated/me/calendars/item/events/item/instances/item/event_item_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
/rejected_article_tracker-20210707a0-py3-none-any.whl/rejected_article_tracker/src/ML/TrainingRow.py
from .CrossRefWorksRecord import CrossRefWorksRecord from fuzzywuzzy import fuzz class TrainingRow: def __init__(self, works_record:dict, query_article: dict): """ :param works_record: Article works_record from search provider (e.g. CrossRef) :param query_article: The input article (e.g. fr...
PypiClean
/ansible-base-2.10.17.tar.gz/ansible-base-2.10.17/docs/docsite/rst/user_guide/modules.rst
.. _working_with_modules: Working With Modules ==================== .. toctree:: :maxdepth: 1 modules_intro modules_support ../reference_appendices/common_return_values Ansible ships with a number of modules (called the 'module library') that can be executed directly on remote hosts or through :ref:`Pl...
PypiClean
/ampscz-lochness-0.1.6.tar.gz/ampscz-lochness-0.1.6/lochness/config/__init__.py
import os import yaml import logging import yaml.reader import getpass as gp import cryptease as crypt import string logger = logging.getLogger(__name__) def load(f: 'location', archive_base=None): '''load configuration file and keyring''' logger.debug('loading configuration') with open(os.path.expandus...
PypiClean
/inet_nm-0.0.7-py3-none-any.whl/inet_nm/_helpers.py
import os import readline import sys from typing import Callable, List, Optional try: import inquirer except ImportError: inquirer = None def nm_prompt_choice( msg: str, choices: List[str], choice_func: Optional[Callable] = None, custom: bool = False, ) -> str: """ Interactive user p...
PypiClean
/classy_imaginary-0.6.5.tar.gz/classy_imaginary-0.6.5/classy_imaginary/vendored/blip/vit.py
from functools import partial import torch import torch.nn as nn from fairscale.nn.checkpoint.checkpoint_activations import checkpoint_wrapper from timm.models.helpers import adapt_input_conv from timm.models.layers import DropPath, trunc_normal_ from timm.models.vision_transformer import PatchEmbed class Mlp(nn.Mod...
PypiClean
/jupyterlab-4.1.0a1.tar.gz/jupyterlab-4.1.0a1/docs/source/privacy_policies.rst
.. Copyright (c) Jupyter Development Team. .. Distributed under the terms of the Modified BSD License. Privacy policies ================ Last modified: December 15, 2022 Introduction ------------ As much as possible, the JupyterLab development team avoids the use of external web services. However, to provide some f...
PypiClean
/odoo12_addon_l10n_es_ticketbai_api-12.0.2.3.5-py3-none-any.whl/odoo/addons/l10n_es_ticketbai_api/models/ticketbai_invoice.py
import logging from datetime import datetime from urllib.parse import urlencode import io import base64 from lxml import etree from collections import OrderedDict from .ticketbai_invoice_tax import TicketBaiTaxType, VATRegimeKey from .ticketbai_response import TicketBaiResponseState, TicketBaiInvoiceResponseCode, \ ...
PypiClean