id
stringlengths
1
8
text
stringlengths
6
1.05M
dataset_id
stringclasses
1 value
/rl-coach-slim-1.0.1.tar.gz/rl-coach-slim-1.0.1/rl_coach/agents/ddqn_bcq_agent.py
from collections import OrderedDict from copy import deepcopy from typing import Union, List, Dict import numpy as np from rl_coach.agents.dqn_agent import DQNAgentParameters, DQNAlgorithmParameters, DQNAgent from rl_coach.base_parameters import Parameters from rl_coach.core_types import EnvironmentSteps, Batch, Stat...
PypiClean
/bodleian.recipe.fedora-2.0.tar.gz/bodleian.recipe.fedora-2.0/bodleian/recipe/fedora/__init__.py
import os import re import shutil import logging import zipfile import tempfile import ConfigParser import contextlib import zc.buildout from hexagonit.recipe.download import Recipe as downloadRecipe # buildout options BUILDOUT = 'buildout' FIELD_FEDORA_VERSION = 'version' FIELD_TOMCAT_HOME = 'tomcat-home' FIELD_FEDO...
PypiClean
/dspy_ml-0.1.9-py3-none-any.whl/dsp/utils/dpr.py
import string import spacy import regex import unicodedata class Tokens(object): """A class to represent a list of tokenized text.""" TEXT = 0 TEXT_WS = 1 SPAN = 2 POS = 3 LEMMA = 4 NER = 5 def __init__(self, data, annotators, opts=None): self.data = data self.annotato...
PypiClean
/localcosmos_server-0.16.1-py3-none-any.whl/localcosmos_server/static/maps/leaflet-draw/src/Leaflet.Draw.Event.js
L.Draw.Event = {}; /** * @event draw:created: PolyLine; Polygon; Rectangle; Circle; Marker | String * * Layer that was just created. * The type of layer this is. One of: `polyline`; `polygon`; `rectangle`; `circle`; `marker` * Triggered when a new vector or marker has been created. * */ L.Draw.Event.CREATED = 'd...
PypiClean
/give_me_python-3.10.4-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/give_me_python/data/lib/python3.10/_sysconfigdata__linux_x86_64-linux-gnu.py
build_time_vars = {'ABIFLAGS': '', 'AC_APPLE_UNIVERSAL_BUILD': 0, 'AIX_BUILDDATE': 0, 'AIX_GENUINE_CPLUSPLUS': 0, 'ALIGNOF_LONG': 8, 'ALIGNOF_SIZE_T': 8, 'ALT_SOABI': 0, 'ANDROID_API_LEVEL': 0, 'AR': 'ar', 'ARFLAGS': 'rcs', 'BASECFLAGS': '-Wno-unused-result -Wsign-compare', 'BASECPPFLAGS': '', 'BASEMODLIBS'...
PypiClean
/cipher_ey2335-0.1.0.tar.gz/cipher_ey2335-0.1.0/README.md
# cipher_ey2335 A great package for hw07! It is the tool to encrypt and decrypt text using Caesar Cipher. ## Installation ```bash $ pip install cipher_ey2335 ``` ## Usage - TODO ## Contributing Interested in contributing? Check out the contributing guidelines. Please note that this project is released with a Cod...
PypiClean
/pulumi_google_native-0.31.2a1689827148.tar.gz/pulumi_google_native-0.31.2a1689827148/pulumi_google_native/compute/beta/region_disk_iam_binding.py
import copy import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities from ... import iam as _iam __all__ = ['RegionDiskIamBindingArgs', 'RegionDiskIamBinding'] @pulumi.input_type class RegionDiskIamBindingArgs: def __init_...
PypiClean
/buildingsync_asset_extractor-0.1.14-py3-none-any.whl/buildingsync_asset_extractor/lighting_processing/building_type_to_lpd.py
from dataclasses import dataclass from typing import Optional @dataclass class BuildingTypeLPD: building_type: str lpd_by_year: dict[int, Optional[float]] building_type_to_lpd = [ BuildingTypeLPD(building_type="Automotive Facility", lpd_by_year={1999: 1.5, 2001: 0.9, 2004: 0.9, 2007: 0.9, 2010: 0.82, 20...
PypiClean
/kolibri_light-0.2.5-py3-none-any.whl/kolibri/synthetic_data/benchmark/synthesizers/sd.py
import abc import logging from kolibri.synthetic_data.benchmark.synthesizers.base import BaselineSynthesizer from kolibri import synthetic_data LOGGER = logging.getLogger(__name__) class FastMLPreset(BaselineSynthesizer): """Model wrapping the ``FastMLPreset`` model.""" _MODEL = None _MODEL_KWARGS = None...
PypiClean
/eric-ide-22.7.1.tar.gz/eric-ide-22.7.1/eric7/Graphics/UMLDialog.py
# Copyright (c) 2007 - 2022 Detlev Offenbach <detlev@die-offenbachs.de> # """ Module implementing a dialog showing UML like diagrams. """ import enum import json import pathlib from PyQt6.QtCore import pyqtSlot, Qt, QCoreApplication from PyQt6.QtGui import QAction from PyQt6.QtWidgets import QToolBar, QGraphicsScen...
PypiClean
/CamAi_castleguarders-0.0.1-py3-none-any.whl/CamAi/mrcnn_utils.py
import sys import os import math import random import numpy as np import tensorflow as tf import scipy # NOTINF import skimage.color # NOTINF import skimage.io # NOTINF import skimage.transform import urllib.request import shutil import warnings # NOTINF from distutils.version import LooseVersion import cv2 as cv # U...
PypiClean
/charm-tools-3.0.7.tar.gz/charm-tools-3.0.7/charmtools/build/fetchers.py
import os import json import logging import shutil import requests from charmtools import fetchers from charmtools.fetchers import (git, # noqa Fetcher, get_fetcher, FetchError) from path import Path as path log = lo...
PypiClean
/xformers-0.0.21.tar.gz/xformers-0.0.21/third_party/flash-attention/csrc/cutlass/examples/44_multi_gemm_ir_and_codegen/ir_gen/helper.py
def type_2_cutlass_type(input_type = "fp16"): # float point type if input_type == "fp32": return "float" if input_type == "bf16": return "cutlass::bfloat16_t" if input_type == "fp16": return "cutlass::half_t" # integer type if(input_type == "int32"): return "int...
PypiClean
/explainable_cnn-1.0.0-py3-none-any.whl/explainable_cnn/explainers/grad_cam.py
from collections.abc import Sequence import numpy as np import torch import torch.nn as nn from torch.nn import functional as F from tqdm import tqdm class _BaseWrapper(object): def __init__(self, model): super(_BaseWrapper, self).__init__() self.device = next(model.parameters()).device s...
PypiClean
/win32ext-221.2-cp36-cp36m-win32.whl/pythonwin/pywin/dialogs/login.py
import win32ui import win32api import win32con from pywin.mfc import dialog def MakeLoginDlgTemplate(title): style = win32con.DS_MODALFRAME | win32con.WS_POPUP | win32con.WS_VISIBLE | win32con.WS_CAPTION | win32con.WS_SYSMENU | win32con.DS_SETFONT cs = win32con.WS_CHILD | win32con.WS_VISIBLE # Window fra...
PypiClean
/RsCMPX_Base-4.0.170-py3-none-any.whl/RsCMPX_Base/Implementations/MassMemory/Catalog/__init__.py
from typing import List from ....Internal.Core import Core from ....Internal.CommandsGroup import CommandsGroup from ....Internal.Types import DataType from ....Internal.StructBase import StructBase from ....Internal.ArgStruct import ArgStruct from ....Internal.ArgSingleList import ArgSingleList from ....Internal.ArgS...
PypiClean
/alipay_sdk_python-3.6.740-py3-none-any.whl/alipay/aop/api/domain/AlipayBusinessRelationShopmemberAddModel.py
import json from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.BusinessRelationShopMemberAddOption import BusinessRelationShopMemberAddOption class AlipayBusinessRelationShopmemberAddModel(object): def __init__(self): self._add_option = None self._group_id = None ...
PypiClean
/drf-toolbox-0.1.7.tar.gz/drf-toolbox-0.1.7/drf_toolbox/serializers/fields/postgres.py
from __future__ import absolute_import, unicode_literals from drf_toolbox.compat import django_pgfields_installed from drf_toolbox.serializers.widgets import JSONWidget from rest_framework import serializers import six import uuid if django_pgfields_installed: __all__ = ('ArrayField', 'CompositeField', 'JSONField...
PypiClean
/nonebot_plugin_gshisbanner-0.6.1.tar.gz/nonebot_plugin_gshisbanner-0.6.1/README.md
<div align="center"> <a href="https://v2.nonebot.dev/store"><img src="https://ghproxy.com/https://github.com/A-kirami/nonebot-plugin-template/blob/resources/nbp_logo.png" width="180" height="180" alt="NoneBotPluginLogo"></a> <br> <p><img src="https://ghproxy.com/https://github.com/A-kirami/nonebot-plugin-template...
PypiClean
/monk_pytorch_cuda100-0.0.1-py3-none-any.whl/monk/gluon/finetune/level_14_master_main.py
from monk.gluon.finetune.imports import * from monk.system.imports import * from monk.gluon.finetune.level_13_updates_main import prototype_updates class prototype_master(prototype_updates): ''' Main class for all functions in expert mode Args: verbose (int): Set verbosity levels ...
PypiClean
/jax_metrics-0.2.5.tar.gz/jax_metrics-0.2.5/README.md
<!-- codecov badge --> [![codecov](https://codecov.io/gh/cgarciae/jax_metrics/branch/master/graph/badge.svg?token=3IKEUAU3C8)](https://codecov.io/gh/cgarciae/jax_metrics) # JAX Metrics _A Metrics library for the JAX ecosystem_ #### Main Features * Standard metrics that can be used in any JAX project. * Pytree abstra...
PypiClean
/django-kelove-db-3.1.0.tar.gz/django-kelove-db-3.1.0/django_kelove_db/static/django_kelove_db/editor_md/plugins/image-dialog/image-dialog.js
(function() { var factory = function (exports) { var pluginName = "image-dialog"; exports.fn.imageDialog = function() { var _this = this; var cm = this.cm; var lang = this.lang; var editor = this.editor; var settings ...
PypiClean
/merlintf-mri-0.4.1.tar.gz/merlintf-mri-0.4.1/merlintf/keras/layers/complex_avgpool.py
import sys import tensorflow as tf try: import optotf.averagepooling except: print('optotf could not be imported') import merlintf import six def get(identifier): return MagnitudeAveragePooling(identifier) def MagnitudeAveragePooling(identifier): if isinstance(identifier, six.string_types): ...
PypiClean
/odoo_addon_account_vat_period_end_statement-16.0.1.1.0-py3-none-any.whl/odoo/addons/account_vat_period_end_statement/readme/DESCRIPTION.rst
**Italiano** Per fare la liquidazione IVA, aprire Fatturazione > Contabilità > Liquidazioni IVA, il menù è visibile solo quando è abilitato il gruppo 'Mostrare funzionalità contabili complete'. Selezionare un registro che conterrà le registrazioni contabili della liquidazione. Il campo 'Conto IVA erario' c...
PypiClean
/js.extjs-4.2.1.883.tar.gz/js.extjs-4.2.1.883/js/extjs/resources/examples/ux/ProgressBarPager.js
Ext.define('Ext.ux.ProgressBarPager', { requires: ['Ext.ProgressBar'], /** * @cfg {Number} width * <p>The default progress bar width. Default is 225.</p> */ width : 225, /** * @cfg {String} defaultText * <p>The text to display while the store is loading. Default is 'Loading.....
PypiClean
/filesystems-0.26.0.tar.gz/filesystems-0.26.0/README.rst
=========== Filesystems =========== |PyPI| |Pythons| |CI| .. |PyPI| image:: https://img.shields.io/pypi/v/filesystems.svg :alt: PyPI version :target: https://pypi.python.org/pypi/filesystems .. |Pythons| image:: https://img.shields.io/pypi/pyversions/filesystems.svg :alt: Supported Python versions :targe...
PypiClean
/python_plus-2.0.9.tar.gz/python_plus-2.0.9/python_plus/scripts/list_requirements.py
from __future__ import print_function, unicode_literals from past.builtins import basestring # from future.utils import PY2, PY3 import ast import os import re import sys from subprocess import PIPE, Popen try: from python_plus import python_plus except ImportError: import python_plus try: from z0lib impo...
PypiClean
/atlassian-python-api-3.41.1.tar.gz/atlassian-python-api-3.41.1/atlassian/bitbucket/cloud/repositories/defaultReviewers.py
from requests import HTTPError from ..base import BitbucketCloudBase from ..common.users import User class DefaultReviewers(BitbucketCloudBase): def __init__(self, url, *args, **kwargs): super(DefaultReviewers, self).__init__(url, *args, **kwargs) def __get_object(self, data): return Defaul...
PypiClean
/voltron-robotics-1.1.0.tar.gz/voltron-robotics-1.1.0/voltron/util/v1/checkpointing.py
import os from collections import deque from pathlib import Path from typing import Any, Optional, Tuple import torch.nn as nn from torch.optim.optimizer import Optimizer class FixedDeck(deque): def __init__(self, maxlen: int) -> None: super().__init__(maxlen=maxlen) def append(self, x: Any) -> Any:...
PypiClean
/spyder-terminal-1.2.2.tar.gz/spyder-terminal-1.2.2/spyder_terminal/server/static/components/@babel/helper-compilation-targets/lib/filter-items.js
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = filterItems; exports.isRequired = isRequired; exports.targetsSupported = targetsSupported; var _semver = require("semver"); var _plugins = require("@babel/compat-data/plugins"); var _utils = require("./utils"); functio...
PypiClean
/PyTeCK-0.2.5a4-py3-none-any.whl/pyteck/detect_peaks.py
from __future__ import division, print_function import numpy as np __author__ = "Marcos Duarte, https://github.com/demotu/BMC" __version__ = "1.0.4" __license__ = "MIT" def detect_peaks(x, mph=None, mpd=1, threshold=0, edge='rising', kpsh=False, valley=False, show=False, ax=None): """Detect pea...
PypiClean
/django-admin-volt-1.0.10.tar.gz/django-admin-volt-1.0.10/admin_volt/utils.py
import datetime import json from django.template import Context from django.utils import translation try: from django.apps.registry import apps except ImportError: try: from django.apps import apps # Fix Django 1.7 import issue except ImportError: pass from django.core.serializers.json imp...
PypiClean
/vioneta-2023.7.3.tar.gz/vioneta-2023.7.3/homeassistant/components/airq/sensor.py
from __future__ import annotations from collections.abc import Callable from dataclasses import dataclass import logging from typing import Literal from homeassistant.components.sensor import ( SensorDeviceClass, SensorEntity, SensorEntityDescription, SensorStateClass, ) from homeassistant.config_entr...
PypiClean
/caso-4.2.0.tar.gz/caso-4.2.0/doc/source/troubleshooting.rst
.. Copyright 2015 Spanish National Research Council Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless requir...
PypiClean
/anthill-leaderboard-0.2.tar.gz/anthill-leaderboard-0.2/anthill/leaderboard/model/leaderboard.py
from anthill.common.model import Model from anthill.common.database import DatabaseError from anthill.common.cluster import Cluster, NoClusterError, ClusterError from anthill.common.options import options import logging import ujson class LeaderboardAdapter(object): def __init__(self, data): self.leaderb...
PypiClean
/infoblox-netmri-3.8.0.0.tar.gz/infoblox-netmri-3.8.0.0/infoblox_netmri/api/broker/v2_5_0/spm_devices_slow_devices_grid_broker.py
from ..broker import Broker class SpmDevicesSlowDevicesGridBroker(Broker): controller = "spm_devices_slow_devices_grids" def index(self, **kwargs): """Lists the available spm devices slow devices grids. Any of the inputs listed may be be used to narrow the list; other inputs will be ignored. Of the v...
PypiClean
/django-gcloud-connectors-1.0.0.tar.gz/django-gcloud-connectors-1.0.0/gcloudc/db/backends/datastore/constraints.py
from gcloudc.db.backends.datastore import caching from .dbapi import IntegrityError from .unique_utils import ( unique_identifiers_from_entity, _has_enabled_constraints, _has_unique_constraints, ) UNIQUE_MARKER_KIND = "uniquemarker" CONSTRAINT_VIOLATION_MSG = "Unique constraint violation for kind {} on fi...
PypiClean
/nniv04-0.4.1-py3-none-any.whl/nniv04-0.4.1.data/data/nni/node_modules/nopt/lib/nopt.js
var debug = process.env.DEBUG_NOPT || process.env.NOPT_DEBUG ? function () { console.error.apply(console, arguments) } : function () {} var url = require("url") , path = require("path") , Stream = require("stream").Stream , abbrev = require("abbrev") , osenv = require("osenv") module.exports = exports = ...
PypiClean
/textra-0.6.tar.gz/textra-0.6/README.md
[![Python](https://img.shields.io/pypi/pyversions/textra.svg)](https://badge.fury.io/py/textra) [![PyPI](https://badge.fury.io/py/textra.svg)](https://badge.fury.io/py/textra) # @TexTra Machine translation for Everyone # Install ```bash pip install textra ``` # Usage ```bash $ trans --help usage: trans [-h] [--nam...
PypiClean
/e2eAIOK_denas-1.1.1b2023042803-py3-none-any.whl/e2eAIOK/DeNas/asr/supernet_asr.py
import torch from torch import nn from typing import Optional import os, sys from e2eAIOK.DeNas.module.asr.linear import Linear from e2eAIOK.DeNas.asr.TransformerBase import ( get_lookahead_mask, get_key_padding_mask, NormalizedEmbedding, PositionalEncoding ) from e2eAIOK.DeNas.module.asr.encoder impo...
PypiClean
/datasette-insert-0.8.tar.gz/datasette-insert-0.8/datasette_insert/__init__.py
from datasette import hookimpl from datasette.utils.asgi import Response from datasette.utils import actor_matches_allow, sqlite3 import json import sqlite_utils class MissingTable(Exception): pass async def insert_or_upsert(request, datasette): # Wraps insert_or_upsert_implementation with CORS response...
PypiClean
/trademas-0.0.2.tar.gz/trademas-0.0.2/trademaster/preprocessor/yfinance_preprocessor/processor.py
from pathlib import Path import sys ROOT = str(Path(__file__).resolve().parents[3]) sys.path.append(ROOT) import os.path as osp from ..custom import CustomPreprocessor from ..builder import PREPROCESSOR from trademaster.utils import get_attr import pandas as pd import os import yfinance as yf from tqdm import tqdm im...
PypiClean
/morse_stf-0.1.36-py3-none-any.whl/stensorflow/ml/nn/layers/pooling.py
from stensorflow.ml.nn.layers.layer import Layer from typing import Union, List from stensorflow.basic.basic_class.private import PrivateTensor from stensorflow.basic.basic_class.pair import SharedVariablePair, SharedPair from tensorflow.python.keras.utils import conv_utils from stensorflow.basic.operator.poolingop imp...
PypiClean
/django-mobile-app-version-1.0.0.tar.gz/django-mobile-app-version-1.0.0/mobile_app_version/adminapi/views.py
from rest_framework import status from rest_framework.decorators import permission_classes from rest_framework.exceptions import NotFound from rest_framework.permissions import IsAuthenticated from rest_framework.response import Response from rest_framework.views import APIView from mobile_app_version.adminapi.permiss...
PypiClean
/OTLModel/Classes/BeheerGrazigeVegetatie.py
from OTLMOW.OTLModel.BaseClasses.OTLAttribuut import OTLAttribuut from OTLMOW.OTLModel.Classes.AIMObject import AIMObject from OTLMOW.OTLModel.Datatypes.BooleanField import BooleanField from OTLMOW.OTLModel.Datatypes.DtcMaaien import DtcMaaien from OTLMOW.OTLModel.Datatypes.KlBeheerGrazigeVegetatie import KlBeheerGrazi...
PypiClean
/azure-mgmt-authorization-4.0.0.zip/azure-mgmt-authorization-4.0.0/azure/mgmt/authorization/v2018_05_01_preview/aio/operations/_access_review_instances_operations.py
from typing import Any, AsyncIterable, Callable, Dict, Optional, TypeVar import urllib.parse from azure.core.async_paging import AsyncItemPaged, AsyncList from azure.core.exceptions import ( ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, ResourceNotModifie...
PypiClean
/myams_js-1.16.0.tar.gz/myams_js-1.16.0/pkg/js/ext/ace/mode-ftl.js
define("ace/mode/css_highlight_rules",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/mode/text_highlight_rules"], function(require, exports, module) { "use strict"; var oop = require("../lib/oop"); var lang = require("../lib/lang"); var TextHighlightRules = require("./text_highlight_rules").TextHighli...
PypiClean
/terra_classic_sdk-2.0.9.tar.gz/terra_classic_sdk-2.0.9/terra_classic_sdk/client/lcd/api/slashing.py
from typing import List, Optional, Union from dateutil import parser from terra_classic_sdk.core import Dec, Numeric, ValConsPubKey from ._base import BaseAsyncAPI, sync_bind __all__ = ["AsyncSlashingAPI", "SlashingAPI"] from ..params import APIParams class AsyncSlashingAPI(BaseAsyncAPI): async def signing_i...
PypiClean
/dynamic-forms-0.9.tar.gz/dynamic-forms-0.9/dynamicForms/static/angular/angular-file-upload.js
(function() { var angularFileUpload = angular.module('angularFileUpload', []); angularFileUpload.service('$upload', ['$http', '$q', '$timeout', function($http, $q, $timeout) { function sendHttp(config) { config.method = config.method || 'POST'; config.headers = config.headers || {}; config.transformRequest = c...
PypiClean
/alipay-sdk-python-pycryptodome-3.3.202.tar.gz/alipay-sdk-python-pycryptodome-3.3.202/alipay/aop/api/domain/KoubeiCateringDishMaterialQueryModel.py
import json from alipay.aop.api.constant.ParamConstants import * class KoubeiCateringDishMaterialQueryModel(object): def __init__(self): self._material_id = None self._merchant_id = None self._page_no = None self._page_size = None @property def material_id(self): ...
PypiClean
/azure-cli-2.51.0.tar.gz/azure-cli-2.51.0/azure/cli/command_modules/network/aaz/2018_03_01_hybrid/network/lb/_create.py
# pylint: skip-file # flake8: noqa from azure.cli.core.aaz import * class Create(AAZCommand): """Create a load balancer. :example: Create a basic load balancer. az network lb create -g MyResourceGroup -n MyLb --sku Basic :example: Create a basic load balancer on a specific virtual network and ...
PypiClean
/Tower_defence_Golear_Karpenko-0.2.9-py3-none-any.whl/Tower_defence_Golear_Karpenko/entity/tower.py
import logging import math import os from Tower_defence_Golear_Karpenko import config from Tower_defence_Golear_Karpenko.base_classes.sprite import Sprite class Tower(Sprite): def __init__(self, position=(0, 0), image=None, price=config.TOWER_PRICE): if image is not None: if isinstance(image,...
PypiClean
/Unidecode-1.3.6.tar.gz/Unidecode-1.3.6/unidecode/x0d4.py
data = ( 'poss', # 0x00 'pong', # 0x01 'poj', # 0x02 'poc', # 0x03 'pok', # 0x04 'pot', # 0x05 'pop', # 0x06 'poh', # 0x07 'pwa', # 0x08 'pwag', # 0x09 'pwagg', # 0x0a 'pwags', # 0x0b 'pwan', # 0x0c 'pwanj', # 0x0d 'pwanh', # 0x0e 'pwad', # 0x0f 'pwal', # 0x10 'pwalg',...
PypiClean
/Unidecode-1.3.6.tar.gz/Unidecode-1.3.6/unidecode/x062.py
data = ( 'Lian ', # 0x00 'Nan ', # 0x01 'Mi ', # 0x02 'Tang ', # 0x03 'Jue ', # 0x04 'Gang ', # 0x05 'Gang ', # 0x06 'Gang ', # 0x07 'Ge ', # 0x08 'Yue ', # 0x09 'Wu ', # 0x0a 'Jian ', # 0x0b 'Xu ', # 0x0c 'Shu ', # 0x0d 'Rong ', # 0x0e 'Xi ', # 0x0f 'Cheng ', # 0x10 '...
PypiClean
/nss-golem-0.1.1.tar.gz/nss-golem-0.1.1/golem/visualisation/opt_history/arg_constraint_wrapper.py
from __future__ import annotations import inspect from typing import TYPE_CHECKING, Any, Callable, Dict, List if TYPE_CHECKING: from golem.visualisation.opt_history.history_visualization import HistoryVisualization ArgConstraintChecker = Callable[..., Dict[str, Any]] def per_time(visualization: HistoryVisuali...
PypiClean
/QREM-0.0.56.tar.gz/QREM-0.0.56/QREM/noise_characterization/tomography/QuantumDetectorTomography.py
import numpy as np import scipy as sc import copy from math import log from QREM.functions.povmtools import get_density_matrix, permute_matrix, reorder_classical_register, sort_things from qiskit.result import Result from typing import List from QREM.functions.functions_SDKs.qiskit.qiskit_utilities import get_frequenc...
PypiClean
/coppeliasim_zmqremoteapi_client-0.0.5.tar.gz/coppeliasim_zmqremoteapi_client-0.0.5/sendSimultan2MovementSequences-mov.py
import math from coppeliasim_zmqremoteapi_client import RemoteAPIClient print('Program started') executedMovId1 = 'notReady' executedMovId2 = 'notReady' client = RemoteAPIClient() sim = client.require('sim') targetArm1 = '/blueArm' targetArm2 = '/redArm' stringSignalName1 = targetArm1 + '_executedMovId' stringSi...
PypiClean
/hwmux_client_python-2.22.1-py3-none-any.whl/hwmux_client/hwmux_api.py
from . import Configuration, ApiClient from .apis import ( GroupsApi, DevicesApi, SitesApi, RoomsApi, PartsApi, PartFamiliesApi, LabelsApi, LogsApi, SchemaApi, ReservationsApi, ) from .models import ReservationRequest, ReservationSessionSerializerReadOnly from urllib3.util.retry ...
PypiClean
/soln_ml-1.0.2-py3-none-any.whl/solnml/components/feature_engineering/transformations/generator/kernel_pca.py
import warnings from ConfigSpace.configuration_space import ConfigurationSpace from ConfigSpace.hyperparameters import CategoricalHyperparameter, \ UniformIntegerHyperparameter, UniformFloatHyperparameter from ConfigSpace.conditions import EqualsCondition, InCondition from solnml.components.feature_engineering.tran...
PypiClean
/ccatterina.pymodbus-1.5.2.1.tar.gz/ccatterina.pymodbus-1.5.2.1/pymodbus/bit_write_message.py
import struct from pymodbus.constants import ModbusStatus from pymodbus.pdu import ModbusRequest from pymodbus.pdu import ModbusResponse from pymodbus.pdu import ModbusExceptions as merror from pymodbus.utilities import pack_bitstring, unpack_bitstring #-----------------------------------------------------------------...
PypiClean
/ape-linea-0.6.0a4.tar.gz/ape-linea-0.6.0a4/CONTRIBUTING.md
# Development To get started with working on the codebase, use the following steps prepare your local environment: ```bash # clone the github repo and navigate into the folder git clone https://github.com/ApeWorX/ape-linea.git cd ape-linea # create and load a virtual environment python3 -m venv venv source venv/bin/...
PypiClean
/in-transformers-1.0.0.tar.gz/in-transformers-1.0.0/src/transformers/models/regnet/convert_regnet_seer_10b_to_pytorch.py
"""Convert RegNet 10B checkpoints vissl.""" # You need to install a specific version of classy vision # pip install git+https://github.com/FrancescoSaverioZuppichini/ClassyVision.git@convert_weights import argparse import json import os import re from collections import OrderedDict from dataclasses import dataclass, f...
PypiClean
/nbfancy-0.1a3.tar.gz/nbfancy-0.1a3/README.md
# <img alt="NBfancy" src="https://raw.githubusercontent.com/JDBetteridge/nbfancy/master/nbfancy/nbfancylogo.png" height="80"> (C) 2019 Jack Betteridge (j.d.betteridge@bath.ac.uk) and James Grant (r.j.grant@bath.ac.uk) This repository contains NBfancy, a tool for adding decoration and extended features to Jupyter note...
PypiClean
/Flask-Beet-0.2.0.tar.gz/Flask-Beet-0.2.0/CHANGELOG.md
# Changelog Note: version releases in the 0.x.y range may introduce breaking changes. ## 0.2.0 - minor: Allow to replace the template layout of the form - patch: Remove uuid from requirements.txt ## 0.1.0 - minor: Cleanup and ensure we can use this with MySql/MariaDB - minor: Ensure we support security confirmables...
PypiClean
/py-pure-client-1.38.0.tar.gz/py-pure-client-1.38.0/pypureclient/flasharray/FA_2_3/models/policy_rule_smb_client_get_response.py
import pprint import re import six import typing from ....properties import Property if typing.TYPE_CHECKING: from pypureclient.flasharray.FA_2_3 import models class PolicyRuleSmbClientGetResponse(object): """ Attributes: swagger_types (dict): The key is attribute name a...
PypiClean
/mis_modulos-0.1.tar.gz/mis_modulos-0.1/tensorflow/python/keras/layers/serialization.py
"""Layer serialization/deserialization functions. """ # pylint: disable=wildcard-import # pylint: disable=unused-import import threading from tensorflow.python import tf2 from tensorflow.python.keras.engine import base_layer from tensorflow.python.keras.engine import input_layer from tensorflow.python.keras.engine im...
PypiClean
/pyseqan-1.1.8.tar.gz/pyseqan-1.1.8/aksetup_helper.py
import setuptools # noqa from setuptools import Extension def count_down_delay(delay): from time import sleep import sys while delay: sys.stdout.write("Continuing in %d seconds... \r" % delay) sys.stdout.flush() delay -= 1 sleep(1) print("") DASH_SEPARATOR = 75 * "-...
PypiClean
/Djblets-3.3.tar.gz/Djblets-3.3/djblets/webapi/testing/resources.py
from collections import namedtuple from djblets.extensions.resources import ( ExtensionResource as BaseExtensionResource) from djblets.webapi.resources import WebAPIResource from djblets.webapi.resources.root import RootResource as BaseRootResource ResourceTree = namedtuple('ResourceTree', ...
PypiClean
/ORMithorynque-0.1.1.tar.bz2/ORMithorynque-0.1.1/doc/transaction.rst
Transactions ============ By default, ORMithorynque works in "auto-commit" mode: any change to an object in the database is immediately saved in the database. However, ORMithorynque supports transactions as in the following example: :: database.begin_transaction() # Modify database's objects here i...
PypiClean
/ervsearch-1.0.12.tar.gz/ervsearch-1.0.12/man/_build/html/_static/underscore-1.3.1.js
(function() { // Baseline setup // -------------- // Establish the root object, `window` in the browser, or `global` on the server. var root = this; // Save the previous value of the `_` variable. var previousUnderscore = root._; // Establish the object that gets returned to break out of a loop itera...
PypiClean
/Products.PloneHotfix20210518-1.6.tar.gz/Products.PloneHotfix20210518-1.6/Products/PloneHotfix20210518/genericsetup.py
from ._compat import PY2 from ._compat import text_type from .utils import protect_class from AccessControl.Permissions import view from AccessControl.Permissions import view_management_screens try: from Products.GenericSetup.context import SnapshotExportContext from Products.GenericSetup.tool import SetupToo...
PypiClean
/pymilvus_cloud-0.0.3-py3-none-any.whl/milvus_cloud/client/pool.py
import logging import os import queue import threading import time from collections import defaultdict from . import __version__ from .grpc_handler import GrpcHandler from .http_handler import HttpHandler from ..client.exceptions import ConnectionPoolError, NotConnectError, VersionError support_versions = ('0.9.x', ...
PypiClean
/cocotb-TileLink-0.2.0.tar.gz/cocotb-TileLink-0.2.0/src/cocotb_TileLink/drivers/SimSimpleMasterUL.py
from random import choice from typing import List, Tuple, Dict, Union, Set, Optional, TypeVar, Any from cocotb.log import SimLog # type: ignore from cocotb.handle import SimHandleBase # type: ignore from cocotb.triggers import ReadWrite, RisingEdge, Event, ReadOnly # type: ignore from cocotb_TileLink.TileLink_common...
PypiClean
/dsin100daysv32-6.0.1.tar.gz/dsin100daysv32-6.0.1/notebook/static/tree/js/terminallist.js
define([ 'jquery', 'base/js/namespace', 'base/js/utils', 'base/js/i18n', 'tree/js/notebooklist', ], function($, IPython, utils, i18n, notebooklist) { "use strict"; var TerminalList = function (selector, options) { /** * Constructor * * Parameters: ...
PypiClean
/noggin_aaa-1.7.1-py3-none-any.whl/noggin/security/ipa_admin.py
from functools import wraps from flask import current_app, session from .ipa import choose_server, Client class IPAAdmin: __WRAPPED_METHODS = ( "user_show", "user_mod", "stageuser_add", "stageuser_show", "stageuser_activate", "stageuser_mod", "ping", ...
PypiClean
/pulumi_azure_nextgen-0.6.2a1613157620.tar.gz/pulumi_azure_nextgen-0.6.2a1613157620/pulumi_azure_nextgen/network/v20190801/network_profile.py
import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from . import outputs from ._enums import * from ._inputs import * __all__ = ['NetworkProfile'] class NetworkProfile(pulumi.CustomResource): def __init__(__self__, ...
PypiClean
/elcato-0.61.tar.gz/elcato-0.61/.eggs/pytest_runner-4.2-py3.6.egg/ptr.py
import os as _os import shlex as _shlex import contextlib as _contextlib import sys as _sys import operator as _operator import itertools as _itertools try: # ensure that map has the same meaning on Python 2 from future_builtins import map except ImportError: pass import pkg_resources import setuptools.command.tes...
PypiClean
/azure_mgmt_storage-21.1.0-py3-none-any.whl/azure/mgmt/storage/v2019_04_01/models/__init__.py
from ._models_py3 import AccountSasParameters from ._models_py3 import ActiveDirectoryProperties from ._models_py3 import AzureEntityResource from ._models_py3 import AzureFilesIdentityBasedAuthentication from ._models_py3 import BlobContainer from ._models_py3 import BlobServiceItems from ._models_py3 import BlobServ...
PypiClean
/RsCMPX_NiotMeas-4.0.185-py3-none-any.whl/RsCMPX_NiotMeas/Implementations/NiotMeas/Prach/State/All.py
from typing import List from .....Internal.Core import Core from .....Internal.CommandsGroup import CommandsGroup from .....Internal import Conversions from .....Internal.Types import DataType from .....Internal.ArgSingleList import ArgSingleList from .....Internal.ArgSingle import ArgSingle from ..... import enums ...
PypiClean
/groupdocs-editor-cloud-23.5.tar.gz/groupdocs-editor-cloud-23.5/groupdocs_editor_cloud/models/text_load_options.py
# ----------------------------------------------------------------------------------- # <copyright company="Aspose Pty Ltd" file="TextLoadOptions.py"> # Copyright (c) 2003-2023 Aspose Pty Ltd # </copyright> # <summary> # Permission is hereby granted, free of charge, to any person obtaining a copy # of this softwa...
PypiClean
/scriptable-0.1.8.tar.gz/scriptable-0.1.8/README.md
Scriptable is a sand-boxed scripting engine which can be used safely in an embedded environment. Its canonical abstract syntax tree model is designed to support various syntax forms. At the moment the typescript syntax as well as the hypothesis syntax (a typescript syntax subset used for logical reasoning) and the mu...
PypiClean
/os_sys-2.1.4-py3-none-any.whl/server/db/utils.py
import pkgutil from importlib import import_module from pathlib import Path from threading import local from server.conf import settings from server.core.exceptions import ImproperlyConfigured from server.utils.functional import cached_property from server.utils.module_loading import import_string DEFAULT_DB_ALIAS = ...
PypiClean
/pyIIIFpres-0.4.0-py3-none-any.whl/IIIFpres/iiifpapi3.py
from . import visualization_html from .BCP47_tags_list import lang_tags from .dictmediatype import mediatypedict import json import warnings import copy import re global BASE_URL BASE_URL = "https://" global LANGUAGES LANGUAGES = lang_tags global MEDIATYPES MEDIATYPES = mediatypedict global CONTEXT CONTEXT = "http://ii...
PypiClean
/BenchML-0.3.4.tar.gz/BenchML-0.3.4/benchml/kernels/kern_basic.py
import numpy as np from benchml.pipeline import FitTransform class KernelBase(object): def __init__(self, **kwargs): self.name = "base" self.X_fit = None self.K_fit = None def evaluate(self, X1, X2, symmetric, **kwargs): raise NotImplementedError("<evaluate> not defined") ...
PypiClean
/tw.yui-0.9.9.tar.gz/tw.yui-0.9.9/tw/yui/static/2.7.0/build/slider/slider-min.js
(function(){var B=YAHOO.util.Dom.getXY,A=YAHOO.util.Event,D=Array.prototype.slice;function C(G,E,F,H){C.ANIM_AVAIL=(!YAHOO.lang.isUndefined(YAHOO.util.Anim));if(G){this.init(G,E,true);this.initSlider(H);this.initThumb(F);}}YAHOO.lang.augmentObject(C,{getHorizSlider:function(F,G,I,H,E){return new C(F,F,new YAHOO.widget....
PypiClean
/ofx-0.1.tar.gz/ofx-0.1/ofx.py
import click import os import re import urllib2 import simplejson import shutil import sh from sh import git def error(string="Error: "): return click.style(string, fg='red') def warning(string="Warning: "): return click.style(string, fg='yellow') def ok(string="OK: "): return click.style(string, fg='...
PypiClean
/hamzaShoukatpy-2.0-py3-none-any.whl/swaggerpetstore/models/user.py
from swaggerpetstore.api_helper import APIHelper class User(object): """Implementation of the 'User' model. TODO: type model description here. Attributes: id (long|int): TODO: type description here. username (string): TODO: type description here. first_name (string): TODO: type ...
PypiClean
/safegate_pro-2021.7.6-py3-none-any.whl/homeassistant/components/ondilo_ico/sensor.py
from datetime import timedelta import logging from ondilo import OndiloError from homeassistant.components.sensor import SensorEntity from homeassistant.const import ( CONCENTRATION_PARTS_PER_MILLION, DEVICE_CLASS_BATTERY, DEVICE_CLASS_SIGNAL_STRENGTH, DEVICE_CLASS_TEMPERATURE, PERCENTAGE, TEM...
PypiClean
/odoo12_addon_storage_backend-12.0.2.0.2-py3-none-any.whl/odoo/addons/storage_backend/models/storage_backend.py
import base64 import fnmatch import logging from odoo import fields, models _logger = logging.getLogger(__name__) class StorageBackend(models.Model): _name = "storage.backend" _inherit = ["collection.base", "server.env.mixin"] _backend_name = "storage_backend" name = fields.Char(required=True) ...
PypiClean
/baybars-0.0.26.tar.gz/baybars-0.0.26/.github/ISSUE_TEMPLATE/feature_request.md
--- name: Feature request about: Suggest an idea for this project labels: --- **Is your feature request related to a problem? Please describe.** A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] **Describe the solution you'd like** A clear and concise description of what y...
PypiClean
/zigzag_dse-2.4.2-py3-none-any.whl/zigzag/inputs/examples/hardware/Eyeriss_like.py
from zigzag.classes.hardware.architecture.memory_hierarchy import MemoryHierarchy from zigzag.classes.hardware.architecture.memory_level import MemoryLevel from zigzag.classes.hardware.architecture.operational_unit import Multiplier from zigzag.classes.hardware.architecture.operational_array import MultiplierArray from...
PypiClean
/solidpython-1.1.3.tar.gz/solidpython-1.1.3/solid/examples/splines_example.py
import os import sys from solid import * from solid.utils import Red, right, forward, back from solid.splines import catmull_rom_points, catmull_rom_polygon, control_points from solid.splines import bezier_polygon, bezier_points from euclid3 import Vector2, Vector3, Point2, Point3 def assembly(): # Catmull-Rom Sp...
PypiClean
/fast_dataset_cleaner-1.0.0-py3-none-any.whl/fast_dataset_cleaner/back/api/routes.py
from flask import Flask, request, send_file from flask_restx import Resource import io from PIL import Image from . import api from .utils import sha_generator, print_important from ..constants import PASSWORD_ERROR from ..services import AnnotationService, ImageService SHA_HASH = sha_generator() print_important("P...
PypiClean
/ansys-cookiecutter-2.0.2.tar.gz/ansys-cookiecutter-2.0.2/cookiecutter/exceptions.py
class CookiecutterException(Exception): """ Base exception class. All Cookiecutter-specific exceptions should subclass this class. """ class NonTemplatedInputDirException(CookiecutterException): """ Exception for when a project's input dir is not templated. The name of the input director...
PypiClean
/imjoy-jupyterlab-extension-0.1.3.tar.gz/imjoy-jupyterlab-extension-0.1.3/lib/index.js
import { loadImJoyBasicApp } from "imjoy-core/dist/imjoy-loader"; import { setupRPC } from "imjoy-core/dist/imjoy-rpc"; import { ContentsManager } from '@jupyterlab/services'; import { DisposableDelegate } from '@lumino/disposable'; import { ToolbarButton } from '@jupyterlab/apputils'; import { version } from '../p...
PypiClean
/autonomi_nos-0.0.9a1-py3-none-any.whl/nos/cli/benchmark.py
import gc import os import time from dataclasses import dataclass, field from datetime import datetime from itertools import product from pathlib import Path from typing import Any, Callable, Dict, List, Tuple, Union import numpy as np import pandas as pd import torch import typer from PIL import Image from rich.conso...
PypiClean
/gocept.zeoraid-1.0b1.tar.gz/gocept.zeoraid-1.0b1/externals/ZODB/src/ZEO/StorageServer.py
import asyncore import cPickle import logging import os import sys import tempfile import threading import time import warnings import itertools import transaction import ZODB.serialize import ZEO.zrpc.error from ZEO import ClientStub from ZEO.CommitLog import CommitLog from ZEO.monitor import StorageStats, StatsSer...
PypiClean
/keras_cv-0.6.1-py3-none-any.whl/keras_cv/layers/object_detection/rpn_label_encoder.py
from typing import Mapping import tensorflow as tf from tensorflow import keras from keras_cv import bounding_box from keras_cv.backend import assert_tf_keras from keras_cv.bounding_box import iou from keras_cv.layers.object_detection import box_matcher from keras_cv.layers.object_detection import sampling from kera...
PypiClean
/twint_cn-2.1.15.1.tar.gz/twint_cn-2.1.15/twint_cn/tweet.py
from time import strftime, localtime from datetime import datetime import json import logging as logme from googletransx import Translator # ref. # - https://github.com/x0rzkov/py-googletrans#basic-usage translator = Translator() class tweet: """Define Tweet class """ type = "tweet" def __init__(se...
PypiClean
/python_uds-1.0.2-py3-none-any.whl/uds/uds_config_tool/SupportedServices/RoutineControlContainer.py
__author__ = "Richard Clubb" __copyrights__ = "Copyright 2018, the python-uds project" __credits__ = ["Richard Clubb"] __license__ = "MIT" __maintainer__ = "Richard Clubb" __email__ = "richard.clubb@embeduk.com" __status__ = "Development" from uds.uds_config_tool.SupportedServices.iContainer import iContainer from ...
PypiClean