id
stringlengths
1
8
text
stringlengths
6
1.05M
dataset_id
stringclasses
1 value
/simgrid-3.34.tar.gz/simgrid-3.34/docs/source/tuto_s4u/master-workers-lab1.py
# This program is free software; you can redistribute it and/or modify it # under the terms of the license (GNU LGPL) which comes with this package. """ # ################################################################################## # Take this tutorial online: https://simgrid.org/doc/latest/Tutorial_Algorithms....
PypiClean
/xclim-0.42.0.tar.gz/xclim-0.42.0/docs/notebooks/xclim_training/XARRAY_calcul_moy_saisonniere.ipynb
# Introduction à Xarray Nous allons donner un exemple pratique de l'utilisation du module python **xarray** (aussi désigné par l'abréviation **xr**) qui est une pièce importante du module **xclim**. Pour ce faire nous allons faire une moyenne climatique saisonnière à partir de moyennes mensuelles en utilisant deux m...
PypiClean
/atlassian-python-api-3.41.1.tar.gz/atlassian-python-api-3.41.1/atlassian/jira.py
import logging import re from warnings import warn from deprecated import deprecated from requests import HTTPError from .errors import ApiNotFoundError, ApiPermissionError from .rest_client import AtlassianRestAPI log = logging.getLogger(__name__) class Jira(AtlassianRestAPI): """ Provide permission inform...
PypiClean
/yt-dlp-custom-0.0.1.tar.gz/yt-dlp-custom-0.0.1/yt_dlp/extractor/platzi.py
from .common import InfoExtractor from ..compat import ( compat_b64decode, compat_str, ) from ..utils import ( clean_html, ExtractorError, int_or_none, str_or_none, try_get, url_or_none, urlencode_postdata, urljoin, ) class PlatziBaseIE(InfoExtractor): _LOGIN_URL = 'https:/...
PypiClean
/ironic-inspector-11.6.0.tar.gz/ironic-inspector-11.6.0/ironic_inspector/plugins/discovery.py
from oslo_config import cfg from ironic_inspector.common import ironic as ir_utils from ironic_inspector import node_cache from ironic_inspector import utils CONF = cfg.CONF LOG = utils.getProcessingLogger(__name__) def _extract_node_driver_info(introspection_data): node_driver_info = {} for ip_version in...
PypiClean
/cryptlex_python_sdk-1.0.3.tar.gz/cryptlex_python_sdk-1.0.3/src/cryptlex_web_api_client/api/users/getv3melicenses.py
from typing import Any, Dict, List, Optional, Union import httpx from ...client import Client from ...models.http_error_response_dto import HttpErrorResponseDto from ...models.user_license_dto import UserLicenseDto from ...types import UNSET, Response, Unset def _get_kwargs( *, client: Client, page: Uni...
PypiClean
/easypay_api-0.2.2.tar.gz/easypay_api-0.2.2/src/easypay/base.py
# Hive Easypay API # Copyright (c) 2008-2019 Hive Solutions Lda. # # This file is part of Hive Easypay API. # # Hive Easypay API is free software: you can redistribute it and/or modify # it under the terms of the Apache License as published by the Apache # Foundation, either version 2.0 of the License, or (at your opt...
PypiClean
/django-inapp-survey-0.2.5.tar.gz/django-inapp-survey-0.2.5/inapp_survey/static/bower_components_inapp/codemirror/addon/comment/comment.js
(function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use...
PypiClean
/vizier_webapi-0.7.5-py3-none-any.whl/vizier/viztrail/objectstore/module.py
from typing import cast, Dict, Any, Optional, List from datetime import datetime from vizier.core.io.base import DefaultObjectStore, ObjectStore from vizier.core.timestamp import get_current_time, to_datetime from vizier.datastore.dataset import DatasetColumn, DatasetDescriptor from vizier.datastore.artifact import Ar...
PypiClean
/PyVISA-py-0.7.0.tar.gz/PyVISA-py-0.7.0/docs/index.rst
:orphan: PyVISA-py: Pure Python backend for PyVISA ========================================= .. image:: _static/logo-full.jpg :alt: PyVISA PyVISA-py is a backend for PyVISA_. It implements most of the methods for Message Based communication (Serial/USB/GPIB/Ethernet) using Python and some well developed, easy t...
PypiClean
/pulumi_google_native-0.31.2a1689827148.tar.gz/pulumi_google_native-0.31.2a1689827148/pulumi_google_native/cloudidentity/v1/membership.py
import copy import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities from . import outputs from ._inputs import * __all__ = ['MembershipArgs', 'Membership'] @pulumi.input_type class MembershipArgs: def __init__(__self__, *...
PypiClean
/django-unload-0.3.3.tar.gz/django-unload-0.3.3/demo/demo/settings.py
import os BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) # Quick-start development settings - unsuitable for production # See https://docs.djangoproject.com/en/1.8/howto/deployment/checklist/ # SECURITY WARNING: keep the secret key used in production secret! SECRET_KEY = '05+2xd!*+87yjp3u_7_...
PypiClean
/nniv04-0.4.1-py3-none-any.whl/nniv04-0.4.1.data/data/nni/training_service/pai/paiTrainingService.js
'use strict'; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl...
PypiClean
/PyPR-0.1.1.tar.gz/PyPR-0.1.1/doc/source/getting_pypr.rst
Getting PyPR ============ PyPR is written in Python, and requires NumPy and SciPy. It should work with Python versions 2.5 and 2.6. The code is still in its early stages, but for convinience the code has been released in a compressed file. http://sourceforge.net/projects/pypr/files/ The repository can be found at...
PypiClean
/py-pure-client-1.38.0.tar.gz/py-pure-client-1.38.0/pypureclient/flashblade/FB_2_8/models/admin_setting.py
import pprint import re import six import typing from ....properties import Property if typing.TYPE_CHECKING: from pypureclient.flashblade.FB_2_8 import models class AdminSetting(object): """ Attributes: swagger_types (dict): The key is attribute name and the value is at...
PypiClean
/django-monaco-old-0.1.tar.gz/django-monaco-old-0.1/monaco/static/monaco/vs/basic-languages/mysql/mysql.js
define("vs/basic-languages/mysql/mysql",["require","exports"],function(E,T){"use strict";Object.defineProperty(T,"__esModule",{value:!0}),T.conf={comments:{lineComment:"--",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"}...
PypiClean
/SBART-0.4.0.tar.gz/SBART-0.4.0/docs/user_guides/quickstart.ipynb
# Quick start look into sBART The sBART pipeline provides the user with all the necessary pieces to construct a template matching algorithm, by selecting the Stellar and Telluric templates, the underlying RV model and the method with which new, tentative RVs, are given to the model. In this Section we showcase a smal...
PypiClean
/mitol_django_common-2023.6.27.1-py3-none-any.whl/mitol/common/envs.py
import importlib import inspect import json import os from ast import literal_eval from functools import wraps from typing import Any, Callable, Dict, List, NamedTuple, Union from django.core.exceptions import ImproperlyConfigured class EnvironmentVariableParseException(ImproperlyConfigured): """Environment vari...
PypiClean
/zope.dependencytool-3.4.0.tar.gz/zope.dependencytool-3.4.0/src/zope/dependencytool/importfinder.py
import sys import token import tokenize from zope.dependencytool.dependency import Dependency START = "<start>" FROM = "<from>" FROM_IMPORT = "<from-import>" IMPORT = "<import>" COLLECTING = "<collecting>" SWALLOWING = "<swallowing>" # used to swallow "as foo" TOK_COMMA = (token.OP, ",") TOK_IMPORT = (token.NAME, ...
PypiClean
/vnccollab.theme-1.7.12.tar.gz/vnccollab.theme-1.7.12/vnccollab/theme/portlets/users_box.py
from Acquisition import aq_inner from zope.formlib import form from zope.interface import implements from zope import schema from zope.component import getMultiAdapter from Products.Five.browser.pagetemplatefile import ZopeTwoPageTemplateFile from Products.CMFCore.utils import getToolByName from Products.CMFPlone.uti...
PypiClean
/nlp_tools-1.0.tar.gz/nlp_tools-1.0/nlp_tools/embeddings/word_embedding.py
from typing import Dict,Any,Optional import numpy as np from gensim.models import KeyedVectors from tensorflow import keras from nlp_tools.embeddings.abc_embedding import ABCEmbedding from nlp_tools.logger import logger L = keras.layers class WordEmbedding(ABCEmbedding): def to_dict(self) -> Dict[str, Any]: ...
PypiClean
/Gooey-1.2.0a0.tar.gz/Gooey-1.2.0a0/gooey/gui/containers/application.py
import queue import sys import threading from contextlib import contextmanager from functools import wraps from json import JSONDecodeError from pprint import pprint from subprocess import CalledProcessError from threading import Thread, get_ident from typing import Mapping, Dict, Type, Iterable import six import wx ...
PypiClean
/edc_dashboard-0.3.49-py3-none-any.whl/edc_dashboard/utils.py
import os from warnings import warn from django.apps import apps as django_apps from django.conf import settings from django.template.exceptions import TemplateDoesNotExist from django.template.loader import get_template, select_template class EdcTemplateDoesNotExist(Exception): pass def get_bootstrap_version(...
PypiClean
/ogame_stats-0.3.6-py3-none-any.whl/ogame_stats/universe_api.py
import json import pandas as pd from typing import Union, Dict from urllib.parse import urlencode from .utils import ApiBaseClass class UniverseDataUrls(ApiBaseClass): def __init__(self, universe_id: int, community: str): self.universe_id = universe_id self.community = community def _get_base...
PypiClean
/vioneta-2023.7.3.tar.gz/vioneta-2023.7.3/homeassistant/components/rest/data.py
from __future__ import annotations import logging import ssl from xml.parsers.expat import ExpatError import httpx import xmltodict from homeassistant.core import HomeAssistant from homeassistant.helpers import template from homeassistant.helpers.httpx_client import create_async_httpx_client from homeassistant.helpe...
PypiClean
/py-pure-client-1.38.0.tar.gz/py-pure-client-1.38.0/pypureclient/flasharray/FA_2_10/models/network_interface_post.py
import pprint import re import six import typing from ....properties import Property if typing.TYPE_CHECKING: from pypureclient.flasharray.FA_2_10 import models class NetworkInterfacePost(object): """ Attributes: swagger_types (dict): The key is attribute name and the va...
PypiClean
/alipay_sdk_python-3.6.740-py3-none-any.whl/alipay/aop/api/domain/AnttechAiCvUaIdentifyModel.py
import json from alipay.aop.api.constant.ParamConstants import * class AnttechAiCvUaIdentifyModel(object): def __init__(self): self._attributes = None self._m_app_id = None self._params = None self._service_code = None self._uri = None @property def attributes(se...
PypiClean
/Amara-2.0.0a6.tar.bz2/Amara-2.0.0a6/lib/xslt/tree/attribute_types.py
#from amara import TranslateMessage as _ from gettext import gettext as _ import cStringIO, traceback #from amara.xpath import RuntimeException as XPathRuntimeException from amara.xpath import datatypes, parser from amara.xpath.parser import _parse as parse_xpath from amara.xslt import XsltError, XsltStaticError, Xs...
PypiClean
/energyplus-0.0.1.tar.gz/energyplus-0.0.1/README.md
# EnergyPlus API Python Bindings This package provides the Python bindings for accessing the EnergyPlus API to do: - Functional API calls into the EnergyPlus library - Python plugins to allow EnergyPlus to call your python scripts - Runtime actuation where you can control the EnergyPlus time stepping through callba...
PypiClean
/python-clean-architecture-0.0.6.tar.gz/python-clean-architecture-0.0.6/pca/application/interactor.py
import abc from dataclasses import dataclass import typing as t from pca.data.descriptors import reify from pca.data.validation import Validator, validated_by from pca.exceptions import ProcessError from pca.utils.dependency_injection import ( Component, container_supplier, inject, get_attribute_depen...
PypiClean
/nni_upload_test-0.7.1904290925-py3-none-win_amd64.whl/nni_upload_test-0.7.1904290925.data/data/nni/node_modules/boom/README.md
![boom Logo](https://raw.github.com/hapijs/boom/master/images/boom.png) HTTP-friendly error objects [![Build Status](https://secure.travis-ci.org/hapijs/boom.png)](http://travis-ci.org/hapijs/boom) Lead Maintainer: [Adam Bretz](https://github.com/arb) **boom** provides a set of utilities for returning HTTP errors. ...
PypiClean
/pyxform-cadasta-0.9.22.tar.gz/pyxform-cadasta-0.9.22/pyxform/xls2xform.py
import sys import xls2json import builder import json import argparse from utils import sheet_to_csv, has_external_choices import os def xls2xform_convert(xlsform_path, xform_path): warnings = [] json_survey = xls2json.parse_file_to_json(xlsform_path, warnings=warnings) survey = builder.create_survey_elem...
PypiClean
/tensorflow_ascend-1.15.0-cp37-cp37m-manylinux2014_aarch64.whl/tensorflow_core/contrib/opt/python/training/powersign.py
"""Implementation of PowerSign.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function import math from tensorflow.python.framework import ops from tensorflow.python.ops import array_ops from tensorflow.python.ops import control_flow_ops from tensorflow.python...
PypiClean
/msgraph_beta_sdk-1.0.0a9-py3-none-any.whl/msgraph/generated/organization/get_user_owned_objects/get_user_owned_objects_post_request_body.py
from __future__ import annotations from kiota_abstractions.serialization import AdditionalDataHolder, Parsable, ParseNode, SerializationWriter from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union class GetUserOwnedObjectsPostRequestBody(AdditionalDataHolder, Parsable): def __init__(self,) -...
PypiClean
/openstacksdk-1.5.0-py3-none-any.whl/openstack/key_manager/v1/secret.py
from openstack.key_manager.v1 import _format from openstack import resource from openstack import utils class Secret(resource.Resource): resources_key = 'secrets' base_path = '/secrets' # capabilities allow_create = True allow_fetch = True allow_commit = True allow_delete = True allo...
PypiClean
/huBarcode-1.0.0.tar.gz/huBarcode-1.0.0/hubarcode/qrcode/qrdata/qrv14_2.py
import cPickle byte_num = 4651 matrix_d = cPickle.loads("""(lp1 (lp2 I72 aI71 aI72 aI71 aI72 aI71 aI72 aI71 aI70 aI69 aI70 aI69 aI70 aI69 aI70 aI69 aI68 aI67 aI68 aI67 aI68 aI67 aI68 aI67 aI66 aI65 aI66 aI65 aI66 aI65 aI66 aI65 aI64 aI63 aI64 aI63 aI64 aI63 aI64 aI63 aI61 aI62 aI61 aI62 aI61 aI62 aI61 aI62 aI59 aI60 a...
PypiClean
/aifs_nni-1.9.5-py3-none-manylinux1_x86_64.whl/aifs_nni-1.9.5.data/data/nni/node_modules/encodeurl/README.md
# encodeurl [![NPM Version][npm-image]][npm-url] [![NPM Downloads][downloads-image]][downloads-url] [![Node.js Version][node-version-image]][node-version-url] [![Build Status][travis-image]][travis-url] [![Test Coverage][coveralls-image]][coveralls-url] Encode a URL to a percent-encoded form, excluding already-encode...
PypiClean
/python-sources-3.10.5.tar.gz/python-sources-3.10.5/Python-3.10.5/Doc/whatsnew/2.5.rst
**************************** What's New in Python 2.5 **************************** :Author: A.M. Kuchling .. |release| replace:: 1.01 .. $Id: whatsnew25.tex 56611 2007-07-29 08:26:10Z georg.brandl $ .. Fix XXX comments This article explains the new features in Python 2.5. The final release of Python 2.5 is sched...
PypiClean
/catppuccin_matplotlib-0.4-py3-none-any.whl/mplcatppuccin/plots.py
import matplotlib.pyplot as plt import matplotlib.patches as mpatches from .palette import palettes from .colormaps import get_colormap_from_list import math import random import numpy as np # TODO fix random seeds inside all functions def plot_palette(palette_name): palette = palettes[palette_name] # Creat...
PypiClean
/kervi-core-0.21.5.tar.gz/kervi-core-0.21.5/kervi/core/utility/bind_decorators.py
def bind_decorators_to_class(obj): obj.actions = {} obj.stream_observers = {} obj.region_observers = {} method_list = [func for func in dir(obj)] for method_name in method_list: try: if hasattr(obj, method_name): method = getattr(obj, method_name) ...
PypiClean
/synacell-0.0.7.tar.gz/synacell-0.0.7/README.md
# SynaCell Synapses and cells. Spiking neural network (SNN) consisted of cells with processing algorithms, connected by synapses with realistic signal transmission properties. The engine that runs the SNN is written in plain C++ with interface in Python, for simplicity and platform mobility. ## Tests We implemented...
PypiClean
/django_xprez-0.2.3-py3-none-any.whl/xprez/static/xprez/admin/libs/medium-editor-insert-plugin/src/js/templates.js
this["MediumInsert"] = this["MediumInsert"] || {}; this["MediumInsert"]["Templates"] = this["MediumInsert"]["Templates"] || {}; this["MediumInsert"]["Templates"]["src/js/templates/core-buttons.hbs"] = Handlebars.template({"1":function(container,depth0,helpers,partials,data) { var stack1, helper, alias1=depth0 != n...
PypiClean
/dsbox_primitives-1.6.2-py3-none-any.whl/dsbox/datapreprocessing/cleaner/dependencies/constants.py
singleton_regex = { '%Y': r'([1-2][0-9][0-9][0-9])', # year in four digits '%y': r'([6-9][0-9]|[0-3][0-9])', # year in two digits '%B': r'(January|February|March|April|May|June|July|August|September|October|November|December|' # month r'enero|febrero|marzo|abril|mayo|junio|julio|agosto|septie...
PypiClean
/mis_modulos-0.1.tar.gz/mis_modulos-0.1/keras/layers/rnn/gru_lstm_utils.py
import uuid import tensorflow.compat.v2 as tf # isort: off from tensorflow.python.eager.context import get_device_name # The following string constants are used by Defun approach for unified backend # of LSTM and GRU. _FUNCTION_API_NAME_ATTRIBUTE = "api_implements" _FUNCTION_DEVICE_ATTRIBUTE = "api_preferred_device"...
PypiClean
/iambic_core-0.11.73.tar.gz/iambic_core-0.11.73/iambic/plugins/v0_1_0/google_workspace/group/models.py
from __future__ import annotations import asyncio from itertools import chain from typing import TYPE_CHECKING, Any, List, Optional from pydantic import Field, validator from iambic.core.context import ctx from iambic.core.iambic_enum import Command, IambicManaged from iambic.core.logger import log from iambic.core....
PypiClean
/ws_sbom_generator-23.1.1.3-py3-none-any.whl/ws_sbom_generator/cyclonedx.py
import datetime import json import re import base64 def extract_email(input_str: str): try: match = re.search(r'[\w.+-]+@[\w-]+\.[\w.-]+', input_str) return match.group(0), re.search(r':(.+?) \(', input_str).group(1) except: return "no@email.com", input_str class CycloneDx: def _...
PypiClean
/azure-functions-1.18.0b2.tar.gz/azure-functions-1.18.0b2/azure/functions/_utils.py
from typing import List, Tuple, Optional from datetime import datetime, timedelta def try_parse_datetime_with_formats( datetime_str: str, datetime_formats: List[str] ) -> Tuple[Optional[datetime], Optional[str], Optional[Exception]]: """Try parsing the datetime string with a list of formats Parameter...
PypiClean
/argocd_python_client-1.0.2-py3-none-any.whl/argocd_python_client/model/v1alpha1_repository.py
import re # noqa: F401 import sys # noqa: F401 from argocd_python_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_typ...
PypiClean
/alipay-sdk-python-pycryptodome-3.3.202.tar.gz/alipay-sdk-python-pycryptodome-3.3.202/alipay/aop/api/domain/KoubeiCateringOrderInfoModifyModel.py
import json from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.KbPosOrderDishDetail import KbPosOrderDishDetail from alipay.aop.api.domain.PosOrderKey import PosOrderKey class KoubeiCateringOrderInfoModifyModel(object): def __init__(self): self._action = None self._d...
PypiClean
/PyPDFLite-0.1.40.tar.gz/PyPDFLite-0.1.40/pypdflite/pdfdocument.py
import os import re from pdfobjects.pdffont import PDFFont, CORE_FONTS from pdfobjects.pdfpage import PDFPage from pdfobjects.pdftext import PDFText from pdfobjects.pdfcursor import PDFCursor from pdfobjects.pdfline import PDFLine from pdfobjects.pdfcolor import PDFColor from pdfobjects.pdfrectangle import PDFRectangle...
PypiClean
/pyvrft-1.1.tar.gz/pyvrft-1.1/README.md
# pyvrft Virtual Reference Feedback Tuning ## Description This Python Toolbox provides commands to design feedback controllers using the method Virtual Reference Feedback Tuning. The toolbox implements both SISO and MIMO controllers, using standard least-squares implementation and instrumental variables. ## Install...
PypiClean
/Products.ATContentTypes-3.0.7.tar.gz/Products.ATContentTypes-3.0.7/Products/ATContentTypes/lib/imagetransform.py
from AccessControl import ClassSecurityInfo from App.class_init import InitializeClass from cStringIO import StringIO from DateTime import DateTime from ExtensionClass import Base from OFS.Image import Image as OFSImage from OFS.Image import Pdata from Products.ATContentTypes import ATCTMessageFactory as _ from Product...
PypiClean
/django-mpathy-0.2.0.tar.gz/django-mpathy-0.2.0/mpathy/models.py
from django.contrib.postgres.indexes import GistIndex from django.db import models from django.db.models.expressions import CombinedExpression, RawSQL from .fields import LTree, LTreeField, Subpath class BadMove(ValueError): pass class MPathQuerySet(models.QuerySet): def get_cached_trees(self): """...
PypiClean
/evotorch-0.4.1.tar.gz/evotorch-0.4.1/examples/notebooks/Feature_Space_Illumination_with_MAPElites.ipynb
# Feature Space Illumination with MAPElites `MAPElites` (stylized as MAP-Elites in the original paper [1]) is an algorithm where the feature space (or sometimes called the behavior space) is organized into cells, and each cell has its own local competition: if a new solution's feature(s) is/are suitable for a cell and...
PypiClean
/marie-ai-3.0.5.tar.gz/marie-ai-3.0.5/marie/executor/text/text_extraction_executor.py
import os from typing import Dict, Union, Optional import numpy as np import torch from docarray import DocumentArray from marie import Executor, requests, safely_encoded from marie.api import value_from_payload_or_args from marie.boxes import PSMode from marie.logging.logger import MarieLogger from marie.logging.pre...
PypiClean
/pyqms-0.5.0-beta.zip/pyqms-0.5.0-beta/docs/build/html/searchindex.js
Search.setIndex({docnames:["adaptors","chemical_composition","example_peak_list","example_scripts","faq","index","intro","isotopologue_library","params","quick_start","results","unimod_mapper"],envversion:53,filenames:["adaptors.rst","chemical_composition.rst","example_peak_list.rst","example_scripts.rst","faq.rst","in...
PypiClean
/castle.cms-3.0.0b123.tar.gz/castle.cms-3.0.0b123/castle/cms/services/google/youtube.py
import json import logging import mimetypes import time from apiclient.http import MediaFileUpload from castle.cms.interfaces import IUploadedToYoutube from collective.celery.utils import getCelery from plone.registry.interfaces import IRegistry from zope.component import getUtility from zope.interface import alsoProv...
PypiClean
/monk_cuda100-0.0.1.tar.gz/monk_cuda100-0.0.1/monk/pytorch/finetune/level_1_dataset_base.py
from monk.system.imports import * from monk.pytorch.finetune.imports import * from monk.system.base_class import system class finetune_dataset(system): ''' Base class for dataset params Args: verbose (int): Set verbosity levels 0 - Print Nothing 1 ...
PypiClean
/bf-nlp-package-13.3.tar.gz/bf-nlp-package-13.3/rasa/nlu/extractors/crf_entity_extractor.py
import logging import os import typing import numpy as np from typing import Any, Dict, List, Optional, Text, Tuple, Union, NamedTuple, Type import rasa.nlu.utils.bilou_utils as bilou_utils import rasa.utils.common as common_utils from rasa.nlu.tokenizers.spacy_tokenizer import POS_TAG_KEY from rasa.nlu.config import ...
PypiClean
/stacklog-1.1.0.tar.gz/stacklog-1.1.0/CONTRIBUTING.rst
.. highlight:: shell ============ 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 the `GitHub Issues...
PypiClean
/py-pure-client-1.38.0.tar.gz/py-pure-client-1.38.0/pypureclient/flasharray/FA_2_22/models/policyrulenfsclientpost_rules.py
import pprint import re import six import typing from ....properties import Property if typing.TYPE_CHECKING: from pypureclient.flasharray.FA_2_22 import models class PolicyrulenfsclientpostRules(object): """ Attributes: swagger_types (dict): The key is attribute name an...
PypiClean
/moto-ext-4.2.0.post1.tar.gz/moto-ext-4.2.0.post1/moto/ec2/responses/vpcs.py
from moto.core.utils import camelcase_to_underscores from moto.ec2.utils import add_tag_specification from ._base_response import EC2BaseResponse class VPCs(EC2BaseResponse): def _get_doc_date(self) -> str: return ( "2013-10-15" if "Boto/" in self.headers.get("user-agent", "") ...
PypiClean
/leap.soledad-0.10.7.tar.gz/leap.soledad-0.10.7/src/leap/soledad/common/backend.py
import functools from leap.soledad.common.document import ServerDocument from leap.soledad.common.l2db import vectorclock from leap.soledad.common.l2db.errors import ( RevisionConflict, InvalidDocId, ConflictedDoc, DocumentDoesNotExist, DocumentAlreadyDeleted, ) from leap.soledad.common.l2db.backen...
PypiClean
/Transcrypt-3.7.16.tar.gz/Transcrypt-3.7.16/transcrypt/demos/parcel_demo/node_modules/postcss-merge-idents/node_modules/ansi-regex/readme.md
# ansi-regex [![Build Status](https://travis-ci.org/chalk/ansi-regex.svg?branch=master)](https://travis-ci.org/chalk/ansi-regex) > Regular expression for matching [ANSI escape codes](http://en.wikipedia.org/wiki/ANSI_escape_code) ## Install ``` $ npm install --save ansi-regex ``` ## Usage ```js const ansiRegex =...
PypiClean
/qpu-0.0.4.tar.gz/qpu-0.0.4/.travis/linux/OpenBLAS/install.sh
set -ex CACHE_DIR=${TRAVIS_BUILD_DIR}/.travis/OpenBLAS.cache # fetch fortran to build OpenBLAS sudo apt-get update -qq && sudo apt-get install -qq gfortran # check if cache exists if [ -e ${CACHE_DIR}/last_commit_id ]; then echo "Cache $CACHE_DIR hit" LAST_COMMIT="$(git ls-remote git://github.com/xianyi/Open...
PypiClean
/alipay_sdk_python-3.6.740-py3-none-any.whl/alipay/aop/api/domain/KoubeiServindustryReservationResourceSyncModel.py
import json from alipay.aop.api.constant.ParamConstants import * class KoubeiServindustryReservationResourceSyncModel(object): def __init__(self): self._channel = None self._industry = None self._out_shop_id = None self._shop_id = None @property def channel(self): ...
PypiClean
/Ziggy-0.1.3.1.tar.gz/Ziggy-0.1.3.1/ziggy/hdmc/hdfs/hdfs_access.py
from . import hdfs_config as config import subprocess def run(args): '''Generic runner for HDFS access''' p = subprocess.Popen(args, stdout=subprocess.PIPE, stderr = subprocess.PIPE) r = p.communicate() result = {"stdout":r[0], "stderr":r[1]} return result def cat(filename): '''Runs HDFS cat...
PypiClean
/mis_modulos-0.1.tar.gz/mis_modulos-0.1/keras/layers/reshaping/permute.py
import copy import tensorflow.compat.v2 as tf from keras.engine.base_layer import Layer from keras.engine.input_spec import InputSpec # isort: off from tensorflow.python.util.tf_export import keras_export @keras_export("keras.layers.Permute") class Permute(Layer): """Permutes the dimensions of the input accord...
PypiClean
/slack_types-0.0.2-py3-none-any.whl/slack_types/web_api/dnd_team_info_response.py
from dataclasses import dataclass from typing import Optional, Any, Dict, TypeVar, Callable, Type, cast T = TypeVar("T") def from_bool(x: Any) -> bool: assert isinstance(x, bool) return x def from_none(x: Any) -> Any: assert x is None return x def from_union(fs, x): for f in fs: try...
PypiClean
/spaceone_core-1.12.29-py3-none-any.whl/spaceone/core/connector/space_connector.py
import types import logging from google.protobuf.json_format import MessageToDict from opentelemetry.trace.propagation.tracecontext import TraceContextTextMapPropagator from spaceone.core import config as global_config from spaceone.core.connector import BaseConnector from spaceone.core import pygrpc from spaceone.cor...
PypiClean
/gk248861-1.2.tar.gz/gk248861-1.2/README.md
#Python rest api for geo and covid information ##Includes 2 modules: 1 geo_lib 2 news_lib #geo_lib contains: 1 administration.py 2 city.py 3 country.py 4 time.py #news_lib contains: 1 covid.py 2 help.py #administration.py Provides class with 2 methods for api: 1 get_curre...
PypiClean
/djangocms-simple-accordion-0.1.0.tar.gz/djangocms-simple-accordion-0.1.0/README.rst
========================== django CMS Accordion ========================== A plugin for django CMS which provides you an easy way to add accordion tabs to your pages. It's minimalistic and can be easily customized via CSS. .. image:: https://travis-ci.org/Blueshoe/djangocms-simple-accordion.svg?branch=master :t...
PypiClean
/openedx-events-8.6.0.tar.gz/openedx-events-8.6.0/openedx_events/event_bus/avro/schema.py
from typing import get_args, get_origin from .custom_serializers import DEFAULT_CUSTOM_SERIALIZERS from .types import PYTHON_TYPE_TO_AVRO_MAPPING, SIMPLE_PYTHON_TYPE_TO_AVRO_MAPPING DEFAULT_FIELD_TYPES = {serializer.cls: serializer.field_type for serializer in DEFAULT_CUSTOM_SERIALIZERS} def schema_from_signal(sign...
PypiClean
/supervisor-sp-1.0.1.tar.gz/supervisor-sp-1.0.1/docs/events.rst
.. _events: Events ====== Events are an advanced feature of Supervisor introduced in version 3.0. You don't need to understand events if you simply want to use Supervisor as a mechanism to restart crashed processes or as a system to manually control process state. You do need to understand events if you want to use...
PypiClean
/jupyterlab_remote_contents-0.1.1.tar.gz/jupyterlab_remote_contents-0.1.1/node_modules/jsdom/lib/jsdom/living/generated/WebSocket.js
"use strict"; const conversions = require("webidl-conversions"); const utils = require("./utils.js"); const isBlob = require("./Blob.js").is; const convertBlob = require("./Blob.js").convert; const BinaryType = require("./BinaryType.js"); const impl = utils.implSymbol; const EventTarget = require("./EventTarget.js");...
PypiClean
/cdktf_cdktf_provider_digitalocean-9.0.0-py3-none-any.whl/cdktf_cdktf_provider_digitalocean/data_digitalocean_account/__init__.py
import abc import builtins import datetime import enum import typing import jsii import publication import typing_extensions from typeguard import check_type from .._jsii import * import cdktf as _cdktf_9a9027ec import constructs as _constructs_77d1e7e8 class DataDigitaloceanAccount( _cdktf_9a9027ec.Terraform...
PypiClean
/triton_model_analyzer-1.31.0.9384447-py3-none-manylinux1_x86_64.whl/model_analyzer/record/types/perf_latency.py
# Copyright 2021-2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved. # # 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 req...
PypiClean
/de_pflanzenschutzmittelzulassung-0.1.0-py3-none-any.whl/deutschland/pflanzenschutzmittelzulassung/model/inline_response20035_items.py
import re # noqa: F401 import sys # noqa: F401 from deutschland.pflanzenschutzmittelzulassung.exceptions import ApiAttributeError from deutschland.pflanzenschutzmittelzulassung.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, ModelSimple, OpenApiModel, cached_prope...
PypiClean
/energistics/etp/v12/protocol/channel_data_load/open_channels_response.py
import typing from pydantic import validator from etptypes import ETPModel, Field, Strict from etptypes.energistics.etp.v12.datatypes.channel_data.open_channel_info import ( OpenChannelInfo, ) avro_schema: typing.Final[ str ] = '{"type": "record", "namespace": "Energistics.Etp.v12.Protocol.ChannelDataLoad",...
PypiClean
/conplex_dti-0.1.7.tar.gz/conplex_dti-0.1.7/conplex_dti/cli/download.py
import os import shutil import sys import urllib.request from argparse import ArgumentParser from functools import partial, wraps from pathlib import Path from ..dataset import get_task_dir from ..utils import config_logger, get_logger logg = config_logger( None, "%(asctime)s [%(levelname)s] %(message)s", level=2...
PypiClean
/nr.types-4.0.2.tar.gz/nr.types-4.0.2/src/nr/types/struct/core/json.py
import decimal import six from nr.types.collections import OrderedDict from nr.types.interface import implements from .mappers import BaseObjectMapper from .errors import ExtractTypeError from .interfaces import IConverter from .datatypes import * class JsonObjectMapper(BaseObjectMapper): pass @JsonObjectMapper....
PypiClean
/msgraph-sdk-1.0.0a3.tar.gz/msgraph-sdk-1.0.0a3/msgraph/generated/users/item/reminder_view_with_start_date_time_with_end_date_time/reminder_view_with_start_date_time_with_end_date_time_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
/adapter_transformers-3.2.1-py3-none-any.whl/transformers/commands/serving.py
from argparse import ArgumentParser, Namespace from typing import Any, List, Optional from ..pipelines import Pipeline, get_supported_tasks, pipeline from ..utils import logging from . import BaseTransformersCLICommand try: from fastapi import Body, FastAPI, HTTPException from fastapi.routing import APIRout...
PypiClean
/mypy_boto3_macie-1.28.36-py3-none-any.whl/mypy_boto3_macie/literals.py
import sys if sys.version_info >= (3, 12): from typing import Literal else: from typing_extensions import Literal __all__ = ( "ListMemberAccountsPaginatorName", "ListS3ResourcesPaginatorName", "S3ContinuousClassificationTypeType", "S3OneTimeClassificationTypeType", "MacieServiceName", ...
PypiClean
/scikit_decide-0.9.6-cp310-cp310-macosx_10_15_x86_64.whl/skdecide/hub/solver/martdp/martdp.py
from __future__ import annotations import os import sys from typing import Callable, Dict, Optional, Tuple from skdecide import Domain, Solver, hub from skdecide.builders.domain import ( Actions, FullyObservable, Goals, Markovian, MultiAgent, PositiveCosts, Sequential, Simulation, ) f...
PypiClean
/here_search_demo-0.9.0-py3-none-any.whl/here_search/demo/user.py
from here_search.demo.http import HTTPSession from here_search.demo.api import API from here_search.demo.api_options import APIOptions from typing import Tuple import uuid class UserProfile: preferred_languages: dict current_latitude: float current_longitude: float current_position_country: str ...
PypiClean
/tendril-connector-tally-0.2.2.tar.gz/tendril-connector-tally-0.2.2/src/tendril/connectors/tally/utils/dates.py
# Copyright (C) 2019 Chintalagiri Shashank # # This file is part of tendril-connector-tally. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at y...
PypiClean
/pyjamas-0.8.1~+alpha1.tar.bz2/pyjamas-0.8.1~+alpha1/pgen/lib2to3/pgen2/grammar.py
# Python imports import pickle # Local imports from lib2to3.pgen2 import token, tokenize class Grammar(object): """Pgen parsing tables tables conversion class. Once initialized, this class supplies the grammar tables for the parsing engine implemented by parse.py. The parsing engine accesses the in...
PypiClean
/python_microscopy-20.12.8-cp36-cp36m-win_amd64.whl/PYME/ParallelTasks/taskWorkerZC.py
################## # taskWorkerM.py # # Copyright David Baddeley, 2009 # d.baddeley@auckland.ac.nz # # 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 License, or # (at yo...
PypiClean
/wasp-launcher-0.0.2.tar.gz/wasp-launcher-0.0.2/wasp_launcher/static/angular/1.6.1/i18n/angular-locale_mas-ke.js
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; function getDecimals(n) { n = n + ''; var i = n.indexOf('.'); return (i == -1) ? 0 : n.length - i - 1; } function getVF(n, opt_pre...
PypiClean
/ensmallen_graph-0.6.0-cp37-cp37m-manylinux2010_x86_64.whl/ensmallen_graph/datasets/string/streptomycesaureocirculatus.py
from typing import Dict from ..automatic_graph_retrieval import AutomaticallyRetrievedGraph from ...ensmallen_graph import EnsmallenGraph # pylint: disable=import-error def StreptomycesAureocirculatus( directed: bool = False, verbose: int = 2, cache_path: str = "graphs/string", **additional_graph_kw...
PypiClean
/pugdebug-1.1.1.tar.gz/pugdebug-1.1.1/README.md
# Pugdebug pugdebug is a standalone debugging client for PHP applications that uses Xdebug (3) as the debugging engine. **NOTE**: This is the official fork! ## Install pugdebug ### Install from pip `pip install pugdebug` ### Install from source `pip install -r requirements.txt` ### Generate single executable R...
PypiClean
/pyros_msgs-0.2.0.tar.gz/pyros_msgs-0.2.0/pyros_msgs/opt_as_array/opt_as_array.py
from __future__ import absolute_import, division, print_function from pyros_msgs.typecheck import ( maybe_list, TypeCheckerException, typechecker_from_rosfield_type, TypeChecker, ) from .ros_mappings import typechecker_from_rosfield_opttype def duck_punch(msg_mod, opt_slot_list): """ Duck pu...
PypiClean
/libcst-0.3.21.tar.gz/libcst-0.3.21/docs/source/nodes.rst
.. _libcst-nodes: Nodes ===== CSTNode and its subclasses cover Python's full grammar in a whitespace-sensitive fashion, forming LibCST's concrete syntax tree. Many of these nodes are designed to `behave similarly to Python's abstract syntax tree <https://greentreesnakes.readthedocs.io/en/latest/nodes.html>`_. CSTNo...
PypiClean
/gigachain-0.0.277.tar.gz/gigachain-0.0.277/langchain/vectorstores/atlas.py
from __future__ import annotations import logging import uuid from typing import Any, Iterable, List, Optional, Type import numpy as np from langchain.docstore.document import Document from langchain.embeddings.base import Embeddings from langchain.vectorstores.base import VectorStore logger = logging.getLogger(__n...
PypiClean
/helper_functions_007-0.1.tar.gz/helper_functions_007-0.1/helper_functions_007/helper_functions_007.py
import pandas as pd import numpy as np import logging logging.basicConfig(level=logging.INFO, format='%(levelname)s: %(message)s') def df_preview(df: pd.DataFrame, n_samples: int = 2) -> pd.DataFrame: d = {'col_name': [], 'Num Nulls': [], 'Type': [], 'Num Unique': [], 'Sample ...
PypiClean
/ccmplots-0.1.2.tar.gz/ccmplots-0.1.2/README.md
# CCMPlots ## Purpose CCM plots includes .mplstyle files suitable for plotting scientific data. It uses the same approach as the package SciencePlots. ## Installation ```python pip install ccmplots ``` As a compromise, the package relies on the MS fonts Arial and Times New Roman. If you are using Linux, these fo...
PypiClean
/irisreader-0.3.2.tar.gz/irisreader-0.3.2/README.md
# <img src="irisreader.png" width="100" height="100"/> &nbsp; IRISreader # The __IRISreader__ library provides functionality to read IRIS level 2 data by the [IRIS satellite](https://www.nasa.gov/mission_pages/iris/index.html) and to process it for big data applications. IRISreader works best with a Jupyter notebook....
PypiClean
/mindspore_gpu-1.10.0-cp39-cp39-manylinux1_x86_64.whl/mindspore/mindrecord/shardheader.py
import mindspore._c_mindrecord as ms from mindspore import log as logger from .common.exceptions import MRMAddSchemaError, MRMAddIndexError, MRMBuildSchemaError, MRMGetMetaError __all__ = ['ShardHeader'] class ShardHeader: """ Wrapper class which is represent ShardHeader class in c++ module. The class w...
PypiClean
/tensorflow_fork-1.15.2.0-py3-none-any.whl/tensorflow/python/distribute/multi_worker_util.py
"""Utilities for multi-worker distribution strategies.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function from tensorflow.core.protobuf import cluster_pb2 from tensorflow.python.distribute import distribute_coordinator_context as dc_context from tensorflow....
PypiClean