id
stringlengths
1
8
text
stringlengths
6
1.05M
dataset_id
stringclasses
1 value
/bpy_nibbler-0.1.tar.gz/bpy_nibbler-0.1/bpy_lambda/2.78/scripts/addons/node_wrangler.py
bl_info = { "name": "Node Wrangler", "author": "Bartek Skorupa, Greg Zaal, Sebastian Koenig, Christian Brinkmann, Florian Meyer", "version": (3, 35), "blender": (2, 78, 0), "location": "Node Editor Toolbar or Ctrl-Space", "description": "Various tools to enhance and speed up node-based workflow...
PypiClean
/pandas-files-0.2.3.tar.gz/pandas-files-0.2.3/pandasfiles/base/distributed.py
import os import re import joblib from pandasfiles.base.craft import Craft from pandasfiles.base.template import STORE_NAME,PARTITION_VARIABLE,FILE_KEYS_LIST,INDEX_FILE from pandasfiles.utils.lylogger import tolog from pandasfiles.utils.tools import get_FILE_POSITIONS,remove_reindex class Distribution: def __i...
PypiClean
/python-sources-3.10.5.tar.gz/python-sources-3.10.5/Python-3.10.5/Doc/library/asyncio-stream.rst
.. currentmodule:: asyncio .. _asyncio-streams: ======= Streams ======= **Source code:** :source:`Lib/asyncio/streams.py` ------------------------------------------------- Streams are high-level async/await-ready primitives to work with network connections. Streams allow sending and receiving data without using c...
PypiClean
/django-flexquery-4.2.0.tar.gz/django-flexquery-4.2.0/django_flexquery/flexquery.py
import functools import inspect from django.db.models import Manager as _Manager, QuerySet as _QuerySet from django.utils.decorators import classonlymethod __all__ = ["FlexQuery", "Manager", "QuerySet"] class FlexQuery: """ Flexibly provides model-specific query constraints as an attribute of Manager o...
PypiClean
/aqualink-api-1.0.8.tar.gz/aqualink-api-1.0.8/aqualink_sdk/model/set_admin_level_dto.py
import re # noqa: F401 import sys # noqa: F401 from aqualink_sdk.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, ModelSimple, cached_property, change_keys_js_to_python, convert_js_args_to_python_args, date, datetime, file_type, none_type, v...
PypiClean
/tb-rest-client-3.5.tar.gz/tb-rest-client-3.5/tb_rest_client/models/models_ce/attribute_export_data.py
# Copyright 2023. ThingsBoard # # 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 required by applicable law or agreed to in writi...
PypiClean
/cody-adapter-transformers-3.0.1.tar.gz/cody-adapter-transformers-3.0.1/src/adapter_transformers/models/bert_generation/tokenization_bert_generation.py
import os from shutil import copyfile from typing import Any, Dict, List, Optional, Tuple import sentencepiece as spm from ...tokenization_utils import PreTrainedTokenizer from ...utils import logging logger = logging.get_logger(__name__) VOCAB_FILES_NAMES = {"vocab_file": "spiece.model"} PRETRAINED_VOCAB_FILES_M...
PypiClean
/acryl-datahub-actions-0.0.13.tar.gz/acryl-datahub-actions-0.0.13/src/datahub_actions/pipeline/pipeline_stats.py
import datetime import json from time import time from typing import Dict import click from datahub_actions.action.action_stats import ActionStats from datahub_actions.pipeline.pipeline_util import get_transformer_name from datahub_actions.transform.transformer import Transformer from datahub_actions.transform.trans...
PypiClean
/versile-python3-0.8.5.tar.gz/versile-python3-0.8.5/versile/common/util.py
import base64 from collections import deque import os import tempfile import threading import time import weakref from versile.internal import _b2s, _s2b, _bfmt, _vexport, _v_silent, _pyver from versile.internal import _b_ord, _b_chr from versile.common.iface import abstract, VInterface __all__ = ['VBitfield', 'VByte...
PypiClean
/accelbyte_py_sdk-0.48.0.tar.gz/accelbyte_py_sdk-0.48.0/accelbyte_py_sdk/api/platform/operations/revocation/update_revocation_config.py
# template file: ags_py_codegen # pylint: disable=duplicate-code # pylint: disable=line-too-long # pylint: disable=missing-function-docstring # pylint: disable=missing-module-docstring # pylint: disable=too-many-arguments # pylint: disable=too-many-branches # pylint: disable=too-many-instance-attributes # pylint: dis...
PypiClean
/monk_pytorch_cuda102_test-0.0.1-py3-none-any.whl/monk/tf_keras_1/datasets/params.py
from monk.tf_keras_1.datasets.imports import * from monk.system.imports import * @accepts([int, tuple], dict, post_trace=False) #@TraceFunction(trace_args=False, trace_rv=False) def set_input_size(input_size, system_dict): ''' Set Input data size Args: input_size (int, tuple): Single integer in c...
PypiClean
/azure-iot-hub-2.6.1.tar.gz/azure-iot-hub-2.6.1/SECURITY.md
<!-- BEGIN MICROSOFT SECURITY.MD V0.0.7 BLOCK --> ## Security Microsoft takes the security of our software products and services seriously, which includes all source code repositories managed through our GitHub organizations, which include [Microsoft](https://github.com/Microsoft), [Azure](https://github.com/Azure), ...
PypiClean
/cadence-client-1.0.1.tar.gz/cadence-client-1.0.1/cadence/errors.py
from __future__ import annotations from dataclasses import dataclass from typing import Optional @dataclass class BadRequestError(Exception): message: str def __str__(self): return self.message @dataclass class InternalServiceError(Exception): message: str @dataclass class DomainAlreadyExist...
PypiClean
/fuzzy_sequence_matcher-0.1.1.tar.gz/fuzzy_sequence_matcher-0.1.1/docs/installation.rst
.. highlight:: shell ============ Installation ============ Stable release -------------- To install Fuzzy Sequence Matcher, run this command in your terminal: .. code-block:: console $ pip install fuzzy_sequence_matcher This is the preferred method to install Fuzzy Sequence Matcher, as it will always instal...
PypiClean
/hive-nektar-1.1.7.tar.gz/hive-nektar-1.1.7/nektar/condenser.py
from .appbase import AppBase from .constants import ( NEKTAR_VERSION, BLOCKCHAIN_OPERATIONS, DISCUSSIONS_BY, ASSETS, ROLES, DATETIME_FORMAT, RE_PERMLINK, RE_COMMUNITY, RE_DATETIME, ) from .utils import ( check_wifs, make_expiration, valid_string, greater_than, wit...
PypiClean
/azure-mgmt-automation-1.1.0b2.zip/azure-mgmt-automation-1.1.0b2/azure/mgmt/automation/operations/_dsc_configuration_operations.py
from typing import Any, Callable, Dict, Iterable, Optional, TypeVar, Union from msrest import Serializer from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.paging import ItemPaged from azure.core.pipeline import Pipelin...
PypiClean
/treq-22.2.0.tar.gz/treq-22.2.0/CONTRIBUTING.rst
Developing ========== This project uses `Tox <https://tox.readthedocs.io/en/latest/config.html>`_ to manage virtual environments. To run the tests:: tox -e py38-twisted_latest Lint:: tox -e flake8 Build docs:: tox -e docs firefox docs/html/index.html To do it all:: tox -p Release notes ---...
PypiClean
/chatkitty-server-side-sdk-1.0.0.tar.gz/chatkitty-server-side-sdk-1.0.0/openapi_client/model/chat_runtime_script_properties.py
import re # noqa: F401 import sys # noqa: F401 from openapi_client.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, ModelSimple, cached_property, change_keys_js_to_python, convert_js_args_to_python_args, date, datetime, file_type, none_type, ...
PypiClean
/pied_piper_sdwan_sdk-1.0.51-py3-none-any.whl/openapi_client/model/megaport_mve_info.py
import re # noqa: F401 import sys # noqa: F401 from openapi_client.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, ModelSimple, cached_property, change_keys_js_to_python, convert_js_args_to_python_args, date, datetime, file_type, none_type, ...
PypiClean
/test_my2-1.0.0.tar.gz/test_my2-1.0.0/README.md
# pygifconvt ## Table of Contents * [Installation](#installation) * [Quick start](#quick-start) * [Features](#features) ## Installation Download using pip via pypi. ```bash $ pip install 'package' --upgrade or $ pip install git+'repository' ``` (Mac/homebrew users may need to use ``pip3``) ## Quick star...
PypiClean
/smart_home_tng-2023.1.3.tar.gz/smart_home_tng-2023.1.3/smart_home_tng/frontend/frontend_es5/85537ed2.js
"use strict";(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([[26136],{26136:function(t,e,r){r.r(e);var n,o=r(37500),i=r(50467);function u(t){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==t...
PypiClean
/nomad-lab-1.2.0.tar.gz/nomad-lab-1.2.0/dependencies/parsers/atomistic/atomisticparsers/dftbplus/parser.py
import os import re import io import logging import numpy as np from nomad.units import ureg from nomad.parsing.file_parser import TextParser, Quantity, FileParser from nomad.datamodel.metainfo.simulation.run import ( Run, Program ) from nomad.datamodel.metainfo.simulation.method import ( Method, TB ) from nom...
PypiClean
/stardist_sparse-0.8.3-cp310-cp310-macosx_10_9_x86_64.whl/stardist/geometry/geom3d.py
from __future__ import print_function, unicode_literals, absolute_import, division import numpy as np import os from skimage.measure import regionprops from csbdeep.utils import _raise from tqdm import tqdm from ..utils import path_absolute, _normalize_grid from ..matching import _check_label_array # from ..lib.stard...
PypiClean
/phootonics_controller-2022.4.1.tar.gz/phootonics_controller-2022.4.1/phootonics_controller/utils/MR_E_2_Python_SDK/optoMDC/calibration.py
import logging import numbers import math logger = logging.getLogger(__name__) __author__ = 'gregory' __copyright__ = "Copyright 2016, Alpes Lasers SA" def validate_calibration(calibration): error = False if not isinstance(calibration, list): error = True else: for tuple in calibration: ...
PypiClean
/nm_transformers_nightly-1.6.0.20230829-py3-none-any.whl/transformers/models/clip/image_processing_clip.py
"""Image processor class for CLIP.""" from typing import Dict, List, Optional, Union import numpy as np from ...image_processing_utils import BaseImageProcessor, BatchFeature, get_size_dict from ...image_transforms import ( center_crop, convert_to_rgb, get_resize_output_image_size, normalize, res...
PypiClean
/asyncio_guard-1.0.0.tar.gz/asyncio_guard-1.0.0/README.md
# Guard that provide exclusive access to an object Python 3.7 or higher. **Install**: pip install asyncio-guard [!["Buy Me A Coffee"](https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png)](https://www.buymeacoffee.com/inyutin) ### Examples of usage: 1. Set a value, get exclusive access to it, set...
PypiClean
/boot-synth-1.2.0.tar.gz/boot-synth-1.2.0/synth/projects_master/nginx_router/frontend/react/node_modules/autoprefixer/lib/info.js
"use strict"; var browserslist = require('browserslist'); function capitalize(str) { return str.slice(0, 1).toUpperCase() + str.slice(1); } var NAMES = { ie: 'IE', ie_mob: 'IE Mobile', ios_saf: 'iOS', op_mini: 'Opera Mini', op_mob: 'Opera Mobile', and_chr: 'Chrome for Android', and_ff: 'Firefox for A...
PypiClean
/mitosheet-private-0.2.15.tar.gz/mitosheet-private-0.2.15/mitosheet/types.py
# Copyright (c) Saga Inc. # Distributed under the terms of the GPL License. """ Contains some types that are useful in the Mitosheet package. We use type aliases to make many parts of the codebase more explicit and clear, and make sure to test the types in our continous integration """ import pandas as pd import ...
PypiClean
/Cobra2D-0.5.0.tar.gz/Cobra2D-0.5.0/src/cobra2d/constraints/linker.py
from __future__ import annotations import logging import warnings from inspect import isclass from typing import List, Union from xml.etree.ElementTree import Element, SubElement from cobra import Model from cobra2d.constraints.phase import Phase, Phases from cobra2d.constraints.transport import Transport, Transport...
PypiClean
/django-nvd3-0.9.7.tar.gz/django-nvd3-0.9.7/django_nvd3/templatetags/nvd3_tags.py
import collections from django.template.defaultfilters import register from django.utils.safestring import mark_safe from django.conf import settings from nvd3.NVD3Chart import NVD3Chart from nvd3 import lineWithFocusChart, lineChart, \ multiBarChart, pieChart, stackedAreaChart, \ multiBarHorizontalChart, line...
PypiClean
/argus_api-3.12.0-py3-none-any.whl/argus_api/schema/customeradmin/v2/domain.py
from argus_api import session get_domains = {'tags': ['development'], 'summary': 'Returns available domains. (DEV)', 'description': '', 'operationId': 'getAdminDomains', 'produces': ['application/json'], 'parameters': [{'name': 'offset', 'in': 'query', 'description': 'Skip a number of results', 'required': False, 'ty...
PypiClean
/FEMsolverPDE-1.1.tar.gz/FEMsolverPDE-1.1/mesh/mesh_2d.py
import numpy as np import matplotlib.pyplot as plt import triangle from mesh import Mesh #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= class Mesh2D(Mesh): ''' ___DESCRIPTION____________________________________________________________ Construct 2D mesh. * See parent class M...
PypiClean
/TurboGears-1.5.1.tar.gz/TurboGears-1.5.1/turbogears/i18n/data/uk_UA.py
languages={'gu': u'\u0413\u0443\u044f\u0440\u0430\u0442\u0456', 'gd': u'\u0413\u0430\u0435\u043b\u044c\u0441\u044c\u043a\u0430', 'ga': u'\u0406\u0440\u043b\u0430\u043d\u0434\u0441\u044c\u043a\u0430', 'gn': u'\u0413\u0443\u0430\u0440\u0430\u043d\u0456', 'gl': u'\u0413\u0430\u043b\u0456\u0441\u0456\u0439\u0441\u044c\u04...
PypiClean
/django-hvad-1.8.0.zip/django-hvad-1.8.0/docs/internal/query.rst
################# :mod:`hvad.query` ################# .. module:: hvad.query This modules containts abstractions for accessing some internal parts of Django ORM that are used in hvad. The intent is that anytime some code in hvad needs to access some Django internals, it should do so through a function in this module....
PypiClean
/pluckit-0.5.1.tar.gz/pluckit-0.5.1/README.md
pluckit ====== Easily extract values from collection items. ### Install ```pip install pluckit``` ### Usage ``` from pluckit import pluck data = [ {'x': 1, 'y': 2}, {'x': 2, 'y': 4}, {'x': 3, 'y': 6}, ] pluck(data, 'x') > [1, 2, 3] # use Pluckables for built-in functionality from pluckit.pluckable import ...
PypiClean
/custom-awscli-1.27.51.tar.gz/custom-awscli-1.27.51/awscli/examples/appconfig/create-application.rst
**To create an application** The following ``create-application`` example creates an application in AWS AppConfig. :: aws appconfig create-application \ --name "example-application" \ --description "An application used for creating an example." Output:: { "Description": "An applicati...
PypiClean
/cohesity-sdk-1.1.0.tar.gz/cohesity-sdk-1.1.0/cohesity_sdk/cluster/api/active_directory.py
import re # noqa: F401 import sys # noqa: F401 from cohesity_sdk.cluster.api_client import ApiClient, Endpoint as _Endpoint from cohesity_sdk.cluster.model_utils import ( # noqa: F401 check_allowed_values, check_validations, date, datetime, file_type, none_type, validate_and_convert_type...
PypiClean
/ctypesgen-1.1.0.tar.gz/ctypesgen-1.1.0/docs/versioning.md
## Versioning Versioning within ctypesgen follows these general rules: * Versions are all defined with specific reference to a commit that is relative to a Git tag. * Versions numbers include enough information to find the exact commit that represents the version release. * All tags should follow the format of: ...
PypiClean
/alipay_sdk_python-3.6.740-py3-none-any.whl/alipay/aop/api/response/AlipayUserCardInstanceQueryResponse.py
import json from alipay.aop.api.response.AlipayResponse import AlipayResponse class AlipayUserCardInstanceQueryResponse(AlipayResponse): def __init__(self): super(AlipayUserCardInstanceQueryResponse, self).__init__() self._active_date = None self._balance = None self._card_status...
PypiClean
/taskcc-alipay-sdk-python-3.3.398.tar.gz/taskcc-alipay-sdk-python-3.3.398/alipay/aop/api/request/AlipayMarketingCardBenefitCreateRequest.py
import json from alipay.aop.api.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.AlipayMarketingCardBenefitCreateModel import AlipayMarketingCardBenefitCreateModel class AlipayMarketingCardBenefitCreateRequest(object): def __init__(self, biz_model=None):...
PypiClean
/ui_automation_tools_mbt-1.3.1-py3-none-any.whl/uiautomationtools/logging/logger.py
import os import re import logging from datetime import datetime import uiautomationtools.helpers.directory_helpers as dh class Logger(object): """ This is a wrapper around the logging module. """ def __init__(self): """ This is the constructor for Logging. """ self.log...
PypiClean
/azure-mgmt-authorization-4.0.0.zip/azure-mgmt-authorization-4.0.0/azure/mgmt/authorization/v2015_06_01/aio/_configuration.py
from typing import Any, TYPE_CHECKING from azure.core.configuration import Configuration from azure.core.pipeline import policies from azure.mgmt.core.policies import ARMHttpLoggingPolicy, AsyncARMChallengeAuthenticationPolicy from .._version import VERSION if TYPE_CHECKING: # pylint: disable=unused-import,ungr...
PypiClean
/sofia_redux-1.3.3.tar.gz/sofia_redux-1.3.3/sofia_redux/scan/configuration/dates.py
from abc import ABC from astropy.time import Time from configobj import ConfigObj from copy import deepcopy from sofia_redux.scan.configuration.options import Options __all__ = ['DateRangeOptions', 'DateRange'] class DateRangeOptions(Options): append_keys = ('blacklist', 'whitelist', 'forget', 'recall', ...
PypiClean
/numpy_mips64-1.17.4.tar.gz/numpy_mips64-1.17.4/numpy/f2py/f90mod_rules.py
from __future__ import division, absolute_import, print_function __version__ = "$Revision: 1.27 $"[10:-1] f2py_version = 'See `f2py -v`' import numpy as np from . import capi_maps from . import func2subr from .crackfortran import undo_rmbadname, undo_rmbadname1 # The eviroment provided by auxfuncs.py is needed for...
PypiClean
/ciefunctions-1.0.2.tar.gz/ciefunctions-1.0.2/tc1_97/MathJax-2.7.5/localization/ca/HelpDialog.js
MathJax.Localization.addTranslation("ca","HelpDialog",{version:"2.7.5",isLoaded:true,strings:{Help:"Ajuda MathJax",MathJax:"*MathJax* \u00E9s una llibreria JavaScript que permet als autors de p\u00E0gines incloure expressions matem\u00E0tiques a les seves p\u00E0gines web. Com a lector, no necessiteu res perqu\u00E8 pu...
PypiClean
/matrixprofile-ts-0.0.9.tar.gz/matrixprofile-ts-0.0.9/README.md
[![PyPI version](https://badge.fury.io/py/matrixprofile-ts.svg)](https://badge.fury.io/py/matrixprofile-ts) [![Build Status](https://travis-ci.org/target/matrixprofile-ts.svg)](https://travis-ci.org/target/matrixprofile-ts) [![Downloads](https://pepy.tech/badge/matrixprofile-ts)](https://pepy.tech/project/matrixprofile...
PypiClean
/nonebot_plugin_fr24-0.2.2.tar.gz/nonebot_plugin_fr24-0.2.2/LICENSE.md
The MIT License (MIT) Copyright (c) 2021 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distri...
PypiClean
/ansys_templates-1.4.3-py3-none-any.whl/ansys/templates/python/osl_solution/{{cookiecutter.__project_name_slug}}/src/ansys/solutions/{{cookiecutter.__solution_name_slug}}/ui/components/actor_statistics_table.py
import dash_bootstrap_components as dbc from dash_extensions.enrich import html, dash_table import uuid import pandas as pd from ansys.solutions.{{ cookiecutter.__solution_name_slug }}.solution.problem_setup_step import ProblemSetupStep from ansys.solutions.{{ cookiecutter.__solution_name_slug }}.solution.definition ...
PypiClean
/bronx_beta-2.0.0b2-py3-none-any.whl/bronx/syntax/externalcode.py
from __future__ import print_function, absolute_import, unicode_literals, division import re import sys import traceback import types from bronx.fancies import loggers from bronx.fancies.display import join_list_in_proper_english logger = loggers.getLogger(__name__) if (sys.version_info.major == 2 or (sys.v...
PypiClean
/onegov.ballot-3.10.1-py3-none-any.whl/onegov/ballot/models/election/proporz_election.py
from collections import OrderedDict from itertools import groupby from onegov.ballot.models.election.candidate import Candidate from onegov.ballot.models.election.candidate_result import CandidateResult from onegov.ballot.models.election.election import Election from onegov.ballot.models.election.election_result import...
PypiClean
/flake8_dashboard-0.1.4-py3-none-any.whl/flake8_dashboard/templates/assets/js/core/popper.min.js
(function(e,t){'object'==typeof exports&&'undefined'!=typeof module?module.exports=t():'function'==typeof define&&define.amd?define(t):e.Popper=t()})(this,function(){'use strict';function e(e){return e&&'[object Function]'==={}.toString.call(e)}function t(e,t){if(1!==e.nodeType)return[];var o=window.getComputedStyle(e,...
PypiClean
/terra_classic_sdk-2.0.9.tar.gz/terra_classic_sdk-2.0.9/terra_classic_sdk/core/mode_info.py
from __future__ import annotations from typing import List, Optional import attr from terra_proto.cosmos.tx.v1beta1 import ModeInfo as ModeInfo_pb from terra_proto.cosmos.tx.v1beta1 import ModeInfoMulti as ModeInfoMulti_pb from terra_proto.cosmos.tx.v1beta1 import ModeInfoSingle as ModeInfoSingle_pb from terra_clas...
PypiClean
/bpy_cuda-2.82-cp37-cp37m-win_amd64.whl/bpy_cuda-2.82.data/scripts/2.82/scripts/modules/addon_utils.py
# <pep8-80 compliant> __all__ = ( "paths", "modules", "check", "enable", "disable", "disable_all", "reset_all", "module_bl_info", ) import bpy as _bpy _preferences = _bpy.context.preferences error_encoding = False # (name, file, path) error_duplicates = [] addons_fake_modules = {} ...
PypiClean
/Flask_AdminLTE3-1.0.9-py3-none-any.whl/flask_adminlte3/static/plugins/codemirror/mode/yacas/yacas.js
// Yacas mode copyright (c) 2015 by Grzegorz Mazur // Loosely based on mathematica mode by Calin Barbat (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // AMD define(["../../...
PypiClean
/nniv04-0.4.1-py3-none-any.whl/nniv04-0.4.1.data/data/nni/node_modules/ajv/lib/dotjs/required.js
'use strict'; module.exports = function generate_required(it, $keyword, $ruleType) { var out = ' '; var $lvl = it.level; var $dataLvl = it.dataLevel; var $schema = it.schema[$keyword]; var $schemaPath = it.schemaPath + it.util.getProperty($keyword); var $errSchemaPath = it.errSchemaPath + '/' + $keyword; ...
PypiClean
/infoblox-netmri-3.8.0.0.tar.gz/infoblox-netmri-3.8.0.0/infoblox_netmri/api/broker/v2_8_0/device_object_broker.py
from ..broker import Broker class DeviceObjectBroker(Broker): controller = "device_objects" def show(self, **kwargs): """Shows the details for the specified device object. **Inputs** | ``api version min:`` None | ``api version max:`` None | ``requi...
PypiClean
/emmet-api-0.67.5.tar.gz/emmet-api-0.67.5/emmet/api/routes/materials/robocrys/query_operators.py
from fastapi import HTTPException, Query from maggma.api.query_operator import QueryOperator from maggma.api.utils import STORE_PARAMS class RoboTextSearchQuery(QueryOperator): """ Method to generate a robocrystallographer text search query """ def query( self, keywords: str = Query( ...
PypiClean
/np_utils-0.6.0.tar.gz/np_utils-0.6.0/np_utils/signal_utils.py
import numpy as np from .np_utils import partitionNumpy, map_along_axis # This faster, but more memory-heavy than it needs to be: # (aka, np.fromiter could be lower resource, but eh...) def _quick_fft(a, chunk_size): """Partion an array into chunks of a certain size and run fft's on each chunk""" return n...
PypiClean
/fastapi_utils_evo-0.2.2.tar.gz/fastapi_utils_evo-0.2.2/fastapi_utils_evo/api_settings.py
from functools import lru_cache from typing import Any, Dict from pydantic import BaseSettings class APISettings(BaseSettings): """ This class enables the configuration of your FastAPI instance through the use of environment variables. Any of the instance attributes can be overridden upon instantiation ...
PypiClean
/tocka-djangocms-cascade-0.6.0.1.tar.gz/tocka-djangocms-cascade-0.6.0.1/cmsplugin_cascade/bootstrap3/accordion.py
from __future__ import unicode_literals from django.forms import widgets from django.utils.translation import ungettext_lazy, ugettext_lazy as _ from django.utils.text import Truncator from django.utils.html import format_html from django.forms.models import ModelForm from django.forms.fields import IntegerField from c...
PypiClean
/nvidia_dali_cuda110-1.29.0-9289311-py3-none-manylinux2014_x86_64.whl/nvidia/dali/ops.py
# pylint: disable=no-member import ast import sys import threading import warnings from itertools import count import nvidia.dali.python_function_plugin from nvidia.dali import backend as _b from nvidia.dali import fn as _functional from nvidia.dali import internal as _internal from nvidia.dali.data_node import DataN...
PypiClean
/BAOSNetLib_python-1.2.0.tar.gz/BAOSNetLib_python-1.2.0/Baos/msg_pb2.py
import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.p...
PypiClean
/caronte_api_common-1.1.0.tar.gz/caronte_api_common-1.1.0/README.md
### Caronte api common The Caronte api Common is a part of four layers inspered by DDD (Domain drive design) methodology, this package is like the same as Application layer and have the same concepts. It has generic functionalities based on base project requirements and have an objective to share code throughout Caron...
PypiClean
/fpgaconvnet-model-0.1.4.2.tar.gz/fpgaconvnet-model-0.1.4.2/fpgaconvnet/models/network/Network.py
import os import json import pydot import copy import math import numpy as np import networkx as nx from google.protobuf import json_format import fpgaconvnet.proto.fpgaconvnet_pb2 import fpgaconvnet.tools.parser as parser import fpgaconvnet.tools.graphs as graphs import fpgaconvnet.tools.matrix as matrix import fpga...
PypiClean
/pytorch_lr_finder-0.0.3-py3-none-any.whl/tanjid-lr-finder/learning_rate_finder.py
import numpy as np import pandas as pd import torch from torch import nn from matplotlib import pyplot as plt class LearningRateFinder(): """Train model using different learning rates within a range to find optimal Important methods are fit, find_optimal_lr. LearningRateFinder() implements a fit meth...
PypiClean
/ark-nlp-0.0.9.tar.gz/ark-nlp-0.0.9/ark_nlp/nn/base/roformer.py
import torch from torch import nn from torch import Tensor from transformers import BertPreTrainedModel from ark_nlp.nn.layer.roformer_block import ( RoFormerPreTrainedModel, RoFormerEmbeddings, RoFormerEncoder, RoFormerPooler ) class RoFormerModel(RoFormerPreTrainedModel): def __init__(self, co...
PypiClean
/msgraph_beta_sdk-1.0.0a9-py3-none-any.whl/msgraph/generated/users/item/calendars/item/events/item/instances/item/attachments/attachments_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
/boot-synth-1.2.0.tar.gz/boot-synth-1.2.0/synth/projects_master/nginx_router/frontend/react/node_modules/eslint-plugin-jsx-a11y/docs/rules/no-noninteractive-element-to-interactive-role.md
# no-noninteractive-element-to-interactive-role Non-interactive HTML elements indicate _content_ and _containers_ in the user interface. Non-interactive elements include `<main>`, `<area>`, `<h1>` (,`<h2>`, etc), `<img>`, `<li>`, `<ul>` and `<ol>`. Interactive HTML elements indicate _controls_ in the user interface. ...
PypiClean
/django-hotsauce-1.2.2.tar.gz/django-hotsauce-1.2.2/examples/lib/product/modules/downloadable/migrations/0002_update_contenttypes.py
import datetime from south.db import db from south.v2 import DataMigration from django.db import models from product.migrations import UpdateContentTypeMigration class Migration(UpdateContentTypeMigration): def forwards(self, orm): self.migrate_contenttype('product', 'downloadable', ('downloadableproduct...
PypiClean
/garnn-1.0.3.tar.gz/garnn-1.0.3/CHANGELOG.rst
========= Changelog ========= Version 0.9.0 =========== - Finished core features: - Attention Mechanism - Diffusion Graph Convolution - GRU based on the above - reimplementation of the model used in https://milets19.github.io/papers/milets19_paper_8.pdf Version 0.9.1 =========== - Wrote README.md - Added requir...
PypiClean
/MapProxy-1.16.0.tar.gz/MapProxy-1.16.0/mapproxy/srs.py
from __future__ import division import math import threading from mapproxy.compat.itertools import izip from mapproxy.compat import string_type from mapproxy.proj import USE_PROJ4_API # Old Proj.4 API from mapproxy.proj import Proj, transform, set_datapath # New Proj API from mapproxy.proj import CRS, Transformer from...
PypiClean
/django-cruds-padminlte-0.0.13a5.tar.gz/django-cruds-padminlte-0.0.13a5/cruds_adminlte/static/colorpicker/bootstrap-colorpicker.js
(function(factory) { "use strict"; if (typeof exports === 'object') { module.exports = factory(window.jQuery); } else if (typeof define === 'function' && define.amd) { define(['jquery'], factory); } else if (window.jQuery && !window.jQuery.fn.colorpicker) { factory(window.jQuery); ...
PypiClean
/cylc_flow-8.2.1-py3-none-any.whl/cylc/flow/job_runner_handlers/loadleveler.py
import re from cylc.flow.id import Tokens class LoadlevelerHandler(): """Loadleveler job submission""" DIRECTIVE_PREFIX = "# @ " KILL_CMD_TMPL = "llcancel '%(job_id)s'" POLL_CMD = "llq" REC_ID_FROM_SUBMIT_OUT = re.compile( r"""\Allsubmit:\sThe\sjob\s"(?P<id>[^"]+)"\s""") REC_ERR_FIL...
PypiClean
/hurry.yui-2.7.0.1.tar.gz/hurry.yui-2.7.0.1/src/hurry/yui/yui-build/autocomplete/autocomplete-debug.js
YAHOO.widget.DS_JSArray = YAHOO.util.LocalDataSource; YAHOO.widget.DS_JSFunction = YAHOO.util.FunctionDataSource; YAHOO.widget.DS_XHR = function(sScriptURI, aSchema, oConfigs) { var DS = new YAHOO.util.XHRDataSource(sScriptURI, oConfigs); DS._aDeprecatedSchema = aSchema; return DS; }; YAHOO.widget.DS_Sc...
PypiClean
/fullrmc-4.1.0.tar.gz/fullrmc-4.1.0/Examples/atomicNiTi/plotFigures.py
from __future__ import print_function import os import itertools # external libraries imports import matplotlib.pyplot as plt # fullrmc library imports from fullrmc.Engine import Engine from fullrmc.Constraints.PairCorrelationConstraints import PairDistributionConstraint ENGINE = Engine(path=None) ENGINE.set_pdb('...
PypiClean
/ixnetwork_restpy-1.1.10.tar.gz/ixnetwork_restpy-1.1.10/ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocolstack/webauth_d024ef89ca51d99dc0948e45be53e244.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 WebAuth(Base): """Web Authentication Plugin Options The WebAuth class encapsulates a list of webAuth resources that are managed by the user. ...
PypiClean
/pomdp_py-1.3.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/pomdp_problems/tag/agent/agent.py
import pomdp_py import copy import random from pomdp_problems.tag.domain.observation import * from pomdp_problems.tag.domain.action import * from pomdp_problems.tag.domain.state import * from pomdp_problems.tag.models.observation_model import * from pomdp_problems.tag.models.transition_model import * from pomdp_problem...
PypiClean
/formification-1.2.0-py3-none-any.whl/formulaic/static/admin/formulaic/ember-formulaic/node_modules/babel-core/lib/traversal/path/lib/removal-hooks.js
"use strict"; exports.__esModule = true; // istanbul ignore next function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj["default"] = obj...
PypiClean
/bloxroute_cli-1.109.9-py3-none-any.whl/bxcommon/utils/block_content_debug_utils.py
from typing import Union, Optional, List, Tuple from bxcommon.messages.bloxroute import compact_block_short_ids_serializer from bxcommon.models.node_type import NodeType from bxcommon.models.transaction_info import TransactionInfo from bxcommon.services.transaction_service import TransactionService from bxcommon.utils...
PypiClean
/tensorflow-gpu-macosx-1.8.1.tar.gz/tensorflow/contrib/learn/python/learn/estimators/__init__.py
from __future__ import absolute_import from __future__ import division from __future__ import print_function from tensorflow.contrib.learn.python.learn.estimators._sklearn import NotFittedError from tensorflow.contrib.learn.python.learn.estimators.constants import ProblemType from tensorflow.contrib.learn.python.learn...
PypiClean
/metpx_sr3-3.0.43-py3-none-any.whl/sarracenia/postformat/v02.py
from base64 import b64decode, b64encode from codecs import decode, encode from sarracenia.flowcb import v2wrapper import logging import sarracenia from sarracenia.postformat import PostFormat logger = logging.getLogger(__name__) class V02(PostFormat): """ A class for controlling the format of messages a...
PypiClean
/ocrd_models-2.53.0-py3-none-any.whl/ocrd_models/ocrd_file.py
from os.path import splitext, basename from ocrd_utils import is_local_filename, get_local_filename, MIME_TO_EXT, EXT_TO_MIME from .ocrd_xml_base import ET from .constants import NAMESPACES as NS, TAG_METS_FLOCAT, TAG_METS_FILE class OcrdFile(): """ Represents a single ``mets:file/mets:FLocat`` (METS file en...
PypiClean
/edc_consent-0.3.55-py3-none-any.whl/edc_consent/model_mixins/consent_model_mixin.py
from uuid import uuid4 from django.db import models from django.db.models import options from django_crypto_fields.fields import EncryptedTextField from edc_constants.constants import OPEN from edc_data_manager.get_data_queries import get_data_queries from edc_model.validators import datetime_not_future from edc_proto...
PypiClean
/odoo13_addon_purchase_minimum_amount-13.0.1.0.1-py3-none-any.whl/odoo/addons/purchase_minimum_amount/readme/USAGE.rst
Set the Purchase Approval Block ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ #. Go to 'Purchases / Purchase / Requests for Quotation' #. Create a new RFQ and upon saving if the Untaxed Amount is below the Purchase Minimum Amount specified in that vendor, then the Approval Block Reason is automatically set and the Approval Bl...
PypiClean
/click-uwescience-7.0.1.tar.gz/click-uwescience-7.0.1/docs/exceptions.rst
Exception Handling ================== .. currentmodule:: click Click internally uses exceptions to signal various error conditions that the user of the application might have caused. Primarily this is things like incorrect usage. Where are Errors Handled? ------------------------- Click's main error handling is ha...
PypiClean
/lcyframe_csp-3.7.7.tar.gz/lcyframe_csp-3.7.7/lcyframe/libs/utils.py
import os import logging import hmac import base64 import random import time from pathlib import Path from datetime import timedelta, datetime, date from string import ascii_letters import zlib import hashlib, string import json from bson.objectid import ObjectId import operator import re import traceback import socket...
PypiClean
/nexiles.tools.api-0.4.tar.gz/nexiles.tools.api-0.4/src/nexiles/tools/api/__init__.py
__author__ = """Stefan Eletzhofer <se@nexiles.de>""" __docformat__ = 'plaintext' import logging from nexiles.tools.api import slumber logger = logging.getLogger("nexiles.tools.api") __all__ = ["get_api", "get_service", "get_root_api", "pluralize", "get_resource"] is_singular = lambda x: not x.endswith("s") ...
PypiClean
/power_perceiver-2022.9.7.tar.gz/power_perceiver-2022.9.7/power_perceiver/experiments/exp_016_predict_satellite_imagery.py
from dataclasses import dataclass from pathlib import Path import einops # ML imports import matplotlib.pyplot as plt import numpy as np import pytorch_lightning as pl import torch import torch.nn.functional as F from pytorch_lightning.loggers import WandbLogger from torch import nn from torch.utils import data from...
PypiClean
/tools/finetune_attention_position_bias.py
from __future__ import absolute_import from __future__ import division from __future__ import print_function import argparse import time import logging import os import pprint import numpy as np import torch import torch.nn.parallel from torch.utils.collect_env import get_pretty_env_info # These 2 lines are a wordaro...
PypiClean
/view-my-photos-1.0.7.tar.gz/view-my-photos-1.0.7/README.md
# View my photos Generator of static galleries. Indicate which is your folder with the images and relax. The objective of this software is to be able to visualize a great quantity of images comfortably (photos of your vacations, you your children, enemies, etc). Although it can be used to build a section within a webs...
PypiClean
/vdk-lineage-0.3.948436673.tar.gz/vdk-lineage-0.3.948436673/src/vdk/plugin/lineage/sql_lineage_parser.py
import logging from contextlib import contextmanager from typing import Optional from vdk.api.lineage.model.sql.model import LineageData from vdk.api.lineage.model.sql.model import LineageTable log = logging.getLogger(__name__) @contextmanager def no_op_dict_config(): """ Hacky workaround to import sqllinea...
PypiClean
/vectorai-nightly-0.2.5.2021.6.2.tar.gz/vectorai-nightly-0.2.5.2021.6.2/vectorai/analytics/comparator.py
from typing import List, Dict, Optional # from ..read import ViReadClient # from ..client import ViClient from .api.comparator import ComparatorAPI class ComparatorClient(ComparatorAPI): def __init__(self, username: str=None, api_key: str=None, url: str = "https://api.vctr.ai", analytics_url="https://vecto...
PypiClean
/valer.impress-1.2.4rc1.zip/valer.impress-1.2.4rc1/src/senaite/impress/publisher.py
import logging import mimetypes import os import time from string import Template import bs4 from plone.subrequest import subrequest from bika.lims import api from senaite.impress import logger from senaite.impress.decorators import synchronized from senaite.impress.interfaces import IPublisher from weasyprint import...
PypiClean
/pylintxml-0.0.6.tar.gz/pylintxml-0.0.6/README.md
## What is pylintxml? pylintxml is a simple tool that allows creating simple xml 'linters'. # Installation The best way is to get the pip package management tool (or use a virtualenv) and run the following: `pip install pylintxml` ## Examples Check out pylintxml\examples folder Examples: - `cd examples\qt && py...
PypiClean
/certora_cli_alpha_omer_CERT_945_inside_assert_the_assumptions_are_not_affect_assert_cast-20230518.13.30.246575-py3-none-any.whl/certora_cli/EVMVerifier/Compiler/CompilerCollectorFactory.py
import os from Shared.certoraUtils import run_solc_cmd from pathlib import Path from functools import lru_cache from typing import Tuple, Dict, Set import re import logging from EVMVerifier.Compiler.CompilerCollector import CompilerLang, CompilerCollector from EVMVerifier.Compiler.CompilerCollectorSol import CompilerC...
PypiClean
/git-deps-1.1.0.zip/git-deps-1.1.0/git_deps/html/node_modules/browserify-sign/node_modules/readable-stream/GOVERNANCE.md
### Streams Working Group The Node.js Streams is jointly governed by a Working Group (WG) that is responsible for high-level guidance of the project. The WG has final authority over this project including: * Technical direction * Project governance and process (including this policy) * Contribution policy * GitHub r...
PypiClean
/edp-amundsen-databuilder-2.0.0.tar.gz/edp-amundsen-databuilder-2.0.0/databuilder/extractor/dremio_metadata_extractor.py
import logging from collections import namedtuple from itertools import groupby from typing import ( Any, Dict, Iterator, Union, ) from pyhocon import ConfigFactory, ConfigTree from pyodbc import connect from databuilder.extractor.base_extractor import Extractor from databuilder.models.table_metadata import Col...
PypiClean
/tiny-kubernetes-1.1.1.tar.gz/tiny-kubernetes-1.1.1/doc/source/install/index.rst
================================================================= replace with the service it implements service installation guide ================================================================= .. toctree:: :maxdepth: 2 get_started.rst install.rst verify.rst next-steps.rst The replace with the ser...
PypiClean
/django-codenerix-4.0.24.tar.gz/django-codenerix-4.0.24/codenerix/context.py
from django.conf import settings from django.utils.translation import gettext_lazy as _ from django.utils.safestring import mark_safe from codenerix import __version__ def codenerix(request): ''' Codenerix CONTEXT ''' # Get values DEBUG = getattr(settings, 'DEBUG', False) VERSION = getattr(s...
PypiClean
/pyobs_gui-1.0.8-py3-none-any.whl/pyobs_gui/shellwidget.py
import asyncio import pprint import traceback from io import BytesIO import re from typing import Any, Optional, List, Tuple, Union, Dict from PyQt5 import QtWidgets, QtCore import inspect import tokenize from enum import Enum import logging from astroplan import Observer from pyobs.comm import Comm, Proxy from pyobs...
PypiClean