id
stringlengths
1
8
text
stringlengths
6
1.05M
dataset_id
stringclasses
1 value
/pytest_zebrunner-1.5.7.tar.gz/pytest_zebrunner-1.5.7/src/pytest_zebrunner/selenium_integration.py
import copy import logging from typing import Dict, List from pytest_zebrunner.context import zebrunner_context from pytest_zebrunner.reporting_service import ReportingService logger = logging.getLogger(__name__) class SeleniumSession: zebrunner_id: str id: str tests: List[int] def __init__(self, i...
PypiClean
/dotcs_community-0.11.0.tar.gz/dotcs_community-0.11.0/dotcs_community/PyPI/SpaceRectangularCoordinateSystem.py
from typing import Union, List, Dict, Tuple, Set Number = Union[int, float] class Point: def __init__(self, X: Number, Y: Number = None, Z: Number = None) -> None: self.auth(X, Y, Z) def auth(self, X: Number, Y: Number, Z: Number) -> None: if (type(X) == tuple or type(X) == list) and (len(X)...
PypiClean
/metadsl_llvm-0.3.0.tar.gz/metadsl_llvm-0.3.0/typez/src/schema.ts
* First we start with some definitions of our type system itself. * * The idea is these typescript types could be translated into JSON schema * with https://github.com/vega/ts-json-schema-generator/ */ // TODO: Make typevars keyword mapping instead of arguments /** * A combination of defintions, nodes, and sta...
PypiClean
/AdroitFisherman-0.0.22.tar.gz/AdroitFisherman-0.0.22/README.md
example! ```python from AdroitFisherman.DoubleLinkedListWithoutHeadNode.Double import DoubleLinkedListWithoutHeadNode_double if __name__ == '__main__': operate=0 test=DoubleLinkedListWithoutHeadNode_double() while operate<16: print("1:Init linear list 2:Destroy linear list 3:Clear Linear list", end=...
PypiClean
/ml_experiments-0.1.2.tar.gz/ml_experiments-0.1.2/ml_experiments/notify.py
import time import socket import functools import re import yagmail import sys import subprocess import platform from loguru import logger from datetime import datetime DATE_FORMAT = "%Y-%m-%d %H:%M:%S" REGEX = "[^@]+@[^@]+\.[^@]+" def notify_email(recipient_emails: list, sender_email: str): if sender_email is...
PypiClean
/cx-pyqtgraph-0.12.1.tar.gz/cx-pyqtgraph-0.12.1/cx_pyqtgraph/widgets/MultiPlotWidget.py
from ..Qt import QtCore from .GraphicsView import GraphicsView from ..graphicsItems import MultiPlotItem as MultiPlotItem __all__ = ['MultiPlotWidget'] class MultiPlotWidget(GraphicsView): """Widget implementing a graphicsView with a single MultiPlotItem inside.""" def __init__(self, parent=None): self...
PypiClean
/django-admin-generator-blokz-1.1.3.tar.gz/django-admin-generator-blokz-1.1.3/django_admin_generator/management/commands/admin_generator.py
import re import sys import six from django_utils.management.commands import base_command from django.utils.html import conditional_escape, format_html from django.utils.translation import ugettext_lazy as _ from django.db import models try: # pragma: no cover from django.db.models.loading import get_models exce...
PypiClean
/GSAS-II-WONDER_linux-1.0.1.tar.gz/GSAS-II-WONDER_linux-1.0.1/GSAS-II-WONDER/Absorb.py
from __future__ import division, print_function import platform import math import wx import numpy as np import sys import matplotlib as mpl import GSASIIpath GSASIIpath.SetVersionNumber("$Revision: 3765 $") import GSASIIElem as G2elem import GSASIIElemGUI as G2elemGUI try: wx.NewIdRef wx.NewId = wx.NewIdRef e...
PypiClean
/neptune-cli-2.8.23-1.tar.gz/neptune-cli-2.8.23/neptune/generated/analytics/swagger_client/rest.py
from __future__ import absolute_import import sys import io import json import ssl import certifi import logging # python 2 and python 3 compatibility library from six import iteritems from .configuration import Configuration try: import requests import requests_oauthlib except ImportError: raise Import...
PypiClean
/sarenka-0.0.1.tar.gz/sarenka-0.0.1/docs/_static/js/html5shiv.min.js
!function(a,b){function c(a,b){var c=a.createElement("p"),d=a.getElementsByTagName("head")[0]||a.documentElement;return c.innerHTML="x<style>"+b+"</style>",d.insertBefore(c.lastChild,d.firstChild)}function d(){var a=t.elements;return"string"==typeof a?a.split(" "):a}function e(a,b){var c=t.elements;"string"!=typeof c&&...
PypiClean
/cubicweb_wireit-1.3.0-py3-none-any.whl/cubicweb_wireit/data/wireit/lib/inputex/lib/yui/json/json.js
* Provides methods to parse JSON strings and convert objects to JSON strings. * @module json * @class JSON * @static */ YAHOO.lang.JSON = (function () { var l = YAHOO.lang, /** * Replace certain Unicode characters that JavaScript may handle incorrectly * during eval--either by deleting them or trea...
PypiClean
/sentence_similarity-1.0.0.tar.gz/sentence_similarity-1.0.0/README.md
# Sentence Similarity Package to calculate the similarity score between two sentences ## Examples ### Using Transformers ```python from sentence_similarity import sentence_similarity sentence_a = "paris is a beautiful city" sentence_b = "paris is a grogeous city" ``` #### Supported Models You can access some of the off...
PypiClean
/fparser-0.1.2.tar.gz/fparser-0.1.2/doc/source/introduction.rst
.. Copyright (c) 2017-2019 Science and Technology Facilities Council. All rights reserved. Modifications made as part of the fparser project are distributed under the following license: Redistribution and use in source and binary forms, with or without modification, are permitted provided that t...
PypiClean
/uniohomeassistant-0.1.3.tar.gz/uniohomeassistant-0.1.3/homeassistant/components/mqtt/vacuum/schema_state.py
import json import logging import voluptuous as vol from homeassistant.components import mqtt from homeassistant.components.mqtt import ( CONF_COMMAND_TOPIC, CONF_QOS, CONF_RETAIN, CONF_STATE_TOPIC, MqttAttributes, MqttAvailability, MqttDiscoveryUpdate, MqttEntityDeviceInfo, subscr...
PypiClean
/mis_modulos-0.1.tar.gz/mis_modulos-0.1/setuptools/_vendor/importlib_resources/_common.py
import os import pathlib import tempfile import functools import contextlib import types import importlib from typing import Union, Optional from .abc import ResourceReader, Traversable from ._compat import wrap_spec Package = Union[types.ModuleType, str] def files(package): # type: (Package) -> Traversable ...
PypiClean
/qt4reactor-1.6.tar.gz/qt4reactor-1.6/ghtTests/ircClient.py
from __future__ import print_function from qtreactor import pyqt4reactor from PyQt4 import QtGui app = QtGui.QApplication(sys.argv) pyqt4reactor.install() from twisted.words.protocols import irc from twisted.internet import reactor, protocol import sys # noinspection PyClassHasNoInit class IRCCore(irc.IRCClient)...
PypiClean
/xadmin2-2.0.4.tar.gz/xadmin2-2.0.4/xadmin/plugins/xversion.py
from crispy_forms.utils import TEMPLATE_PACK from django.contrib.contenttypes.fields import GenericRelation from django.contrib.contenttypes.models import ContentType from django.core.exceptions import PermissionDenied from django.db import models from django.db.models.query import QuerySet from django.forms.models imp...
PypiClean
/gamification-engine-0.4.0.tar.gz/gamification-engine-0.4.0/gengine/app/jsscripts/node_modules/cosmiconfig/lib/createExplorer.js
'use strict'; var path = require('path'); var isDir = require('is-directory'); var loadPackageProp = require('./loadPackageProp'); var loadRc = require('./loadRc'); var loadJs = require('./loadJs'); var loadDefinedFile = require('./loadDefinedFile'); module.exports = function (options) { // These cache Promises tha...
PypiClean
/tackle-box-0.4.1.tar.gz/tackle-box-0.4.1/tackle/main.py
import os from typing import Union from tackle.models import Context from tackle.parser import update_source from tackle.utils.paths import find_nearest_tackle_file from tackle.utils.files import read_config_file from tackle import exceptions def get_global_kwargs(kwargs): """Check for unknown kwargs and return ...
PypiClean
/psgraph-2.3.199-py3-none-any.whl/checkov/terraform/image_referencer/provider/gcp.py
from __future__ import annotations from typing import TYPE_CHECKING, Any, Union from checkov.common.util.data_structures_utils import find_in_dict from checkov.terraform.image_referencer.base_provider import BaseTerraformProvider if TYPE_CHECKING: from networkx import DiGraph import igraph class GcpTerraf...
PypiClean
/jdcloud_cli-1.2.12.tar.gz/jdcloud_cli-1.2.12/jdcloud_cli/controllers/services/jdfusion.py
# Copyright 2018 JDCLOUD.COM # # 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 writing,...
PypiClean
/alipay_sdk_python-3.6.740-py3-none-any.whl/alipay/aop/api/request/KoubeiQualityTestShieldResultSyncRequest.py
import json from alipay.aop.api.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.KoubeiQualityTestShieldResultSyncModel import KoubeiQualityTestShieldResultSyncModel class KoubeiQualityTestShieldResultSyncRequest(object): def __init__(self, biz_model=Non...
PypiClean
/anadb_tools-0.12.2-py3-none-any.whl/anadb_tools/cli/move.py
import os from os import path import random import subprocess import tempfile from anadb_tools import anabroker from anadb_tools import anadb from anadb_tools import appdb from anadb_tools import common from anadb_tools import database LOGGER = common.get_logger() def execute(args): """Move a customer's analyti...
PypiClean
/trackteroid-0.1.0rc2.tar.gz/trackteroid-0.1.0rc2/.github/ISSUE_TEMPLATE/issue--feature-request.md
--- name: 'Issue: Feature Request' about: Suggest an idea for this project title: '' labels: enhancement assignees: '' --- # Goal A clear and concise description of what you want to happen. # Motivation A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] # Considerations A c...
PypiClean
/fern_persona-0.0.4.tar.gz/fern_persona-0.0.4/src/persona/resources/database_verifications/client.py
import typing import urllib.parse from json.decoder import JSONDecodeError import httpx import pydantic from ...core.api_error import ApiError from ...core.jsonable_encoder import jsonable_encoder from ...core.remove_none_from_headers import remove_none_from_headers from ...environment import PersonaEnvironment from...
PypiClean
/django-imagekit-cropper-1.17.tar.gz/django-imagekit-cropper-1.17/README.md
# django-imagekit-cropper A library to enhance django-imagekit which allows you to specify your image variant crops: ![CKEditor Dialog](https://raw.github.com/ninapavlich/django-imagekit-cropper/master/docs/screenshots/crop_screenshot.png) **InstanceSpecField** This is a class that extends ImageSpecField which passes...
PypiClean
/detector-aedes-0.1.0.tar.gz/detector-aedes-0.1.0/detector_aedes/connectors.py
from __future__ import unicode_literals from __future__ import print_function from __future__ import with_statement import requests import xml.etree.ElementTree as ET import numpy as np from requests.auth import HTTPDigestAuth from PIL import Image from StringIO import StringIO import os import warnings import yaml im...
PypiClean
/msgraph-sdk-1.0.0a3.tar.gz/msgraph-sdk-1.0.0a3/msgraph/generated/groups/item/sites/item/lists/item/columns/item/column_definition_item_request_builder.py
from __future__ import annotations from dataclasses import dataclass from kiota_abstractions.get_path_parameters import get_path_parameters from kiota_abstractions.method import Method from kiota_abstractions.request_adapter import RequestAdapter from kiota_abstractions.request_information import RequestInformation fro...
PypiClean
/offline_rce_results_module-0.9.22.tar.gz/offline_rce_results_module-0.9.22/offline_results/recommendation/homepage_cluster_category/prepare_data/controller.py
from functools import reduce from pandas import DataFrame, merge from offline_results.common.config import ( RATING_VALUES, FILENAME_VIDEO_MEASURE, ) from offline_results.common.constants import ( RATING, CATEGORY, CUSTOMER_ID, SUBCATEGORY, TAGS, CATEGORY_ID, CATEGORY_EN, SUBCA...
PypiClean
/infoblox-netmri-3.8.0.0.tar.gz/infoblox-netmri-3.8.0.0/infoblox_netmri/api/broker/v2_5_0/access_provisioning_alerts_rules_grid_broker.py
from ..broker import Broker class AccessProvisioningAlertsRulesGridBroker(Broker): controller = "access_provisioning_alerts_rules_grids" def index(self, **kwargs): """Lists the available access provisioning alerts rules grids. Any of the inputs listed may be be used to narrow the list; other inputs w...
PypiClean
/mera_tvm_host_only-1.3.1-cp36-cp36m-manylinux_2_27_x86_64.whl/tvm/auto_scheduler/cost_model/cost_model.py
""" Cost models that estimate the performance of programs """ import ctypes import numpy as np import tvm._ffi from tvm.runtime import Object from .. import _ffi_api @tvm._ffi.register_object("auto_scheduler.CostModel") class CostModel(Object): """The base class for cost model""" @tvm._ffi.register_object("au...
PypiClean
/aqtp-0.1.1.tar.gz/aqtp-0.1.1/jax_legacy/jax/wmt_mlperf/models.py
import copy import dataclasses import typing from typing import Any, Optional, Tuple, Type, TypeVar from aqt.jax_legacy.jax import flax_attention as aqt_flax_attention from aqt.jax_legacy.jax import flax_layers as aqt_flax_layers from aqt.jax_legacy.jax import quant_config from aqt.jax_legacy.jax import shape_utils fro...
PypiClean
/odoo13_addon_stock_barcodes_move_location-13.0.1.0.1-py3-none-any.whl/odoo/addons/stock_barcodes_move_location/wizard/stock_barcodes_read_move_location.py
import logging import subprocess from subprocess import PIPE from odoo import _, fields, models from odoo.fields import first from odoo.tools.safe_eval import safe_eval _logger = logging.getLogger(__name__) def find_between(s, first, last): try: start = s.index(first) + len(first) end = s.index(...
PypiClean
/SimEx-Lite-1.0.0.tar.gz/SimEx-Lite-1.0.0/SimExLite/PMICalculators/SimpleScatteringPMICalculator.py
import h5py import numpy from pathlib import Path import shutil import sys import os import tempfile from libpyvinyl import BaseCalculator, CalculatorParameters from libpyvinyl.BaseData import DataCollection from SimExLite.SampleData import SampleData, ASEFormat from SimExLite.WavefrontData import WavefrontData, WPG...
PypiClean
/pyosoenergyapi-1.0.3.tar.gz/pyosoenergyapi-1.0.3/src/apyosoenergyapi/waterheater.py
from array import array from numbers import Number from aiohttp.web_exceptions import HTTPError from .helper.const import OSOTOHA class OSOWaterHeater: # pylint: disable=no-member """Water Heater Code. Returns: object: Water Heater Object """ hotwaterType = "Hotwater" async def get...
PypiClean
/xprizo_sdk_py-1.0.1-py3-none-any.whl/xprizo_sdk_py/paths/api_contact_messages/get.py
from dataclasses import dataclass import typing_extensions import urllib3 from urllib3._collections import HTTPHeaderDict from xprizo_sdk_py import api_client, exceptions from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # n...
PypiClean
/jupyter_lexical-0.0.1.tar.gz/jupyter_lexical-0.0.1/jupyter_lexical/labextension/static/vendors-node_modules_styled-components_dist_styled-components_browser_esm_js.34f1d6bc70179a4141a3.js
(self["webpackChunk_datalayer_jupyter_lexical"] = self["webpackChunk_datalayer_jupyter_lexical"] || []).push([["vendors-node_modules_styled-components_dist_styled-components_browser_esm_js"],{ /***/ "../../node_modules/@emotion/unitless/dist/unitless.browser.esm.js": /*!************************************************...
PypiClean
/msgraph-sdk-1.0.0a3.tar.gz/msgraph-sdk-1.0.0a3/msgraph/generated/users/item/authentication/microsoft_authenticator_methods/item/device/registered_owners/item/ref/ref_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
/python_tsp-0.4.0-py3-none-any.whl/python_tsp/distances/osrm_distance.py
from math import ceil from typing import Optional import numpy as np import requests from .data_processing import process_input def osrm_distance_matrix( sources: np.ndarray, destinations: Optional[np.ndarray] = None, osrm_server_address: str = "http://localhost:5000", osrm_batch_size: int = 500, ...
PypiClean
/jupyterlab_remote_contents-0.1.1.tar.gz/jupyterlab_remote_contents-0.1.1/node_modules/stylelint/lib/rules/time-min-milliseconds/index.js
'use strict'; const declarationValueIndex = require('../../utils/declarationValueIndex'); const keywordSets = require('../../reference/keywordSets'); const optionsMatches = require('../../utils/optionsMatches'); const postcss = require('postcss'); const report = require('../../utils/report'); const ruleMessages = requ...
PypiClean
/jlmodelcards-0.0.14.tar.gz/jlmodelcards-0.0.14/jlmc/labextension/static/137.f99fdaeb63f6cd20664c.js
"use strict";(self.webpackChunkjlmc=self.webpackChunkjlmc||[]).push([[137],{72137:(e,t,n)=>{n.r(t),n.d(t,{default:()=>Z});var o=n(82678),a=n(52493),s=n(33622);const i="create-model-card",l="modify-model-card-stage",r=new Map([["plotting","Plotting"],["datacleaning","Data Cleaning"],["preprocessing","Preprocessing"],["h...
PypiClean
/chik-blockchain-1.8.5.tar.gz/chik-blockchain-1.8.5/chik/daemon/client.py
from __future__ import annotations import asyncio import json import ssl from contextlib import asynccontextmanager from pathlib import Path from typing import Any, AsyncIterator, Dict, List, Optional import aiohttp from chik.util.ints import uint32 from chik.util.json_util import dict_to_json_str from chik.util.ws_...
PypiClean
/ml_evaluation_framework-0.0b60-py3-none-any.whl/evaluation_framework/_evaluation_engine/data_loader.py
from evaluation_framework.utils.pandas_utils import cast_datetime2int64 from evaluation_framework.utils.pandas_utils import cast_int64_2datetime from evaluation_framework.utils.pandas_utils import encode_str2bytes from evaluation_framework.utils.pandas_utils import encode_date_sequence from evaluation_framework.utils.s...
PypiClean
/aioredis-cluster-2.5.0.tar.gz/aioredis-cluster-2.5.0/src/aioredis_cluster/_aioredis/commands/set.py
from ..util import _NOTSET, _ScanIter, wait_convert class SetCommandsMixin: """Set commands mixin. For commands details see: http://redis.io/commands#set """ def sadd(self, key, member, *members): """Add one or more members to a set.""" return self.execute(b"SADD", key, member, *memb...
PypiClean
/graph-scheduler-1.1.2.tar.gz/graph-scheduler-1.1.2/src/graph_scheduler/scheduler.py
import copy import datetime import enum import fractions import logging import typing import numpy as np import pint from toposort import toposort from graph_scheduler import _unit_registry from graph_scheduler.condition import ( All, AllHaveRun, Always, Condition, ConditionSet, EveryNCalls, Never, _parse_abs...
PypiClean
/custom-awscli-1.27.51.tar.gz/custom-awscli-1.27.51/awscli/examples/servicediscovery/delete-namespace.rst
**To delete a namespace** The following ``delete-namespace`` example deletes a namespace. :: aws servicediscovery delete-namespace \ --id ns-ylexjili4cdxy3xm Output:: { "OperationId": "gv4g5meo7ndmeh4fqskygvk23d2fijwa-k98y6drk" } To confirm that the operation succeeded, you can run ``ge...
PypiClean
/mlflow_by_johnsnowlabs-2.20.0-py3-none-any.whl/mlflow/fastai/__init__.py
import os import yaml import tempfile from pathlib import Path import pandas as pd import numpy as np from mlflow import pyfunc from mlflow.models import Model, ModelSignature, ModelInputExample import mlflow.tracking from mlflow.models.utils import _save_example from mlflow.models.model import MLMODEL_FILE_NAME from ...
PypiClean
/monarch_py-0.15.4-py3-none-any.whl/monarch_py/cli.py
import importlib from pathlib import Path from typing import List, Optional import typer from monarch_py import solr_cli, sql_cli from monarch_py.api.config import oak from monarch_py.utils.solr_cli_utils import check_for_docker from monarch_py.utils.utils import set_log_level, format_output from typing_extensions imp...
PypiClean
/napari-threedee-0.0.12.tar.gz/napari-threedee-0.0.12/src/napari_threedee/_backend/manipulator/vispy_visual_data.py
from typing import List, Optional import numpy as np from napari.utils.geometry import rotation_matrix_from_vectors_3d from pydantic import BaseModel from .central_axis import CentralAxis, CentralAxisSet from .manipulator_model import ManipulatorModel from .rotator import Rotator, RotatorSet from .translator import T...
PypiClean
/py-pure-client-1.38.0.tar.gz/py-pure-client-1.38.0/pypureclient/flasharray/FA_2_25/models/member_get_response.py
import pprint import re import six import typing from ....properties import Property if typing.TYPE_CHECKING: from pypureclient.flasharray.FA_2_25 import models class MemberGetResponse(object): """ Attributes: swagger_types (dict): The key is attribute name and the value...
PypiClean
/deez_py-0.1.6.tar.gz/deez_py-0.1.6/deez_py/deez_ast.py
from abc import ( ABC, abstractmethod, ) from dataclasses import ( dataclass, ) from .tokens import ( Token, ) @dataclass class Node(ABC): token: Token def token_literal(self) -> str: return self.token.literal @dataclass class Statement(Node): @abstractmethod def statement_...
PypiClean
/Two-Percent-3.1.tar.gz/Two-Percent-3.1/twopct/base.py
import argparse import io import os import sys from _io import TextIOWrapper class TextType(object): def __init__(self, bufsize = -1, encoding = None, errors = None): self._mode = 'r' self._bufsize = bufsize self._encoding = encoding self._errors = errors return None ...
PypiClean
/django-shopit-0.5.2.tar.gz/django-shopit-0.5.2/shopit/modifier_conditions.py
from __future__ import absolute_import, unicode_literals from django.utils.module_loading import import_string from django.utils.translation import ugettext_lazy as _ from shop.money import Money from shopit.conf import app_settings class ModifierCondition(object): """ A base model for creating custom modif...
PypiClean
/idealoom-0.1.0-py3-none-any.whl/assembl/views/admin/views.py
from builtins import object import simplejson as json from pyramid.i18n import TranslationStringFactory from pyramid.view import view_config from pyramid.renderers import render_to_response from pyramid.security import authenticated_userid from pyramid.httpexceptions import ( HTTPFound, HTTPNotFound, HTTPBadReques...
PypiClean
/openapi_jira_client-3.0.1-py3-none-any.whl/openapi_jira_client/models/security_scheme.py
from typing import Any, Dict, List, Type, TypeVar, Union, cast import attr from ..models.security_level import SecurityLevel from ..types import UNSET, Unset T = TypeVar("T", bound="SecurityScheme") @attr.s(auto_attribs=True) class SecurityScheme: """ Details about a security scheme. """ self_: Union[Unse...
PypiClean
/msgraph-sdk-1.0.0a3.tar.gz/msgraph-sdk-1.0.0a3/msgraph/generated/users/item/contact_folders/contact_folders_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
/datalib-0.0.0.tar.gz/datalib-0.0.0/README.txt
============ datalib ============ This is a package/library in python to work with time series data from xls file. This is being developed under the project `AMBHAS <http://www.ambhas.com/>`_. Installing datalib ====================== Installing datalib can be done by downloading source file (datalib--<version>.tar...
PypiClean
/interpret_eval-0.1.7.tar.gz/interpret_eval-0.1.7/interpret_eval/tasks/absa/tensoreval.py
import argparse import numpy import sys from ..src.errorAnalysis import * def sent2list(sent): if len(sent.split(" ")) == 1 and len(list(sent))>=5: return list(sent) else: return sent.split(" ") def get_probability_right_or_not(file_path): probability_list, right_or_not_list = [], [] fin = open(file_pat...
PypiClean
/root_optimize-0.8.5.tar.gz/root_optimize-0.8.5/src/root_optimize/utils.py
from __future__ import absolute_import from __future__ import print_function import csv import copy import re import json import fnmatch import hashlib import itertools import numpy as np import numexpr as ne import scipy.special import os import sys from time import clock from tqdm import tqdm import contextlib impor...
PypiClean
/ansible-8.3.0-py3-none-any.whl/ansible_collections/community/digitalocean/CHANGELOG.rst
==================================== Community DigitalOcean Release Notes ==================================== .. contents:: Topics v1.24.0 ======= Minor Changes ------------- - documentation - use C(true) and C(false) for boolean values in documentation and examples (https://github.com/ansible-collections/communi...
PypiClean
/skytek-arcgis-integration-0.2.0.tar.gz/skytek-arcgis-integration-0.2.0/skytek_arcgis_integration/generator/generator.py
from os import path from cookiecutter.main import cookiecutter from django.conf import settings from skytek_arcgis_integration.client import ArcGisClient from .feature_layer_generator import generate_feature_layer_django_module from .raster_layer_generator import generate_raster_layer_django_module from .utils impor...
PypiClean
/tempest-34.2.0.tar.gz/tempest-34.2.0/doc/source/field_guide/scenario.rst
.. _scenario_field_guide: Tempest Field Guide to Scenario tests ===================================== What are these tests? --------------------- Scenario tests are "through path" tests of OpenStack function. Complicated setups where one part might depend on completion of a previous part. They ideally involve the i...
PypiClean
/alipay-python-3.3.17.tar.gz/alipay-python-3.3.17/alipay/aop/api/domain/AlipayOfflineMarketItemStateModel.py
import json from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.AlipayItemAuditRule import AlipayItemAuditRule from alipay.aop.api.domain.AlipayItemOperationContext import AlipayItemOperationContext class AlipayOfflineMarketItemStateModel(object): def __init__(self): self._au...
PypiClean
/flask-menu-1.0.0.tar.gz/flask-menu-1.0.0/flask_menu/menu.py
import types from inspect import getfullargspec from flask import g, request, url_for def CONDITION_TRUE(*args, **kwargs): """Return always True.""" return True def CONDITION_FALSE(*args, **kwargs): """Return always False.""" return False class MenuNode: """Represent a entry node in the menu ...
PypiClean
/visor_gligen-1.6-py3-none-any.whl/visor_gligen/ldm/modules/ema.py
import torch from torch import nn class LitEma(nn.Module): def __init__(self, model, decay=0.9999, use_num_upates=True): super().__init__() if decay < 0.0 or decay > 1.0: raise ValueError('Decay must be between 0 and 1') self.m_name2s_name = {} self.register_buffer('de...
PypiClean
/parrotprediction-openai-envs-2.1.0.tar.gz/parrotprediction-openai-envs-2.1.0/gym_handeye/handeye_simulator.py
import random BLOCK_NOT_UNDER_GRIPPER = '0' BLOCK_UNDER_GRIPPER = '1' BLOCK_IN_HAND = '2' SURFACE = 'w' BLOCK = 'b' GRIPPER = 'g' STATE_BEGINNING = 0 STATE_MOVE_OVER_BLOCK = 1 STATE_GRIP_BLOCK = 2 STATE_MOVE_WITH_BLOCK = 3 STATE_RELEASE_BLOCK = 4 STATE_MOVE_NOT_OVER_BLOCK = 5 ACTION_LOOKUP = { 0: 'N', 1: 'E...
PypiClean
/si_facenet-1.5.0.tar.gz/si_facenet-1.5.0/si_facenet/src/models/dummy.py
# MIT License # # Copyright (c) 2016 David Sandberg # # 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, me...
PypiClean
/commonocean_rules-1.0.0-py3-none-any.whl/rules/predicates/predicate_collection_ship.py
import enum from abc import ABC, abstractmethod from typing import List, Dict, Set, Tuple, Union from shapely.ops import unary_union, cascaded_union from itertools import combinations import numpy as np import warnings from commonroad.geometry.shape import Shape, ShapeGroup, Polygon, Rectangle, Circle from rules.commo...
PypiClean
/antchain_nftc-1.0.3-py3-none-any.whl/antchain_sdk_nftc/models.py
from Tea.model import TeaModel from typing import List class Config(TeaModel): """ Model for initing client """ def __init__( self, access_key_id: str = None, access_key_secret: str = None, security_token: str = None, protocol: str = None, read_timeout: ...
PypiClean
/ncbi-datasets-pylib-15.16.1.tar.gz/ncbi-datasets-pylib-15.16.1/src/ncbi/datasets/openapi/model/v1_method_payload_request.py
import re # noqa: F401 import sys # noqa: F401 from ncbi.datasets.openapi.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_ty...
PypiClean
/django-extensions-3.2.3.tar.gz/django-extensions-3.2.3/django_extensions/management/commands/admin_generator.py
import re from django.apps import apps from django.conf import settings from django.core.management.base import LabelCommand, CommandError from django.db import models from django_extensions.management.utils import signalcommand # Configurable constants MAX_LINE_WIDTH = getattr(settings, 'MAX_LINE_WIDTH', 78) INDENT...
PypiClean
/pubmed_embedding-1.0.14.tar.gz/pubmed_embedding-1.0.14/README.rst
PubMed embedding =================================== |pip| |downloads| |paper| Building PubMed embedding, automatically. Install the package ---------------------------------- As usual, just install from Pypi: .. code:: shell pip install pubmed_embedding Usage examples ---------------------------------- You ...
PypiClean
/redi-0.15.5.tar.gz/redi-0.15.5/vagrant/cookbooks/apt/README.md
Description =========== This cookbook includes recipes to execute apt-get update to ensure the local APT package cache is up to date. There are recipes for managing the apt-cacher-ng caching proxy and proxy clients. It also includes a LWRP for managing APT repositories in /etc/apt/sources.list.d as well as an LWRP for...
PypiClean
/tb_nightly-2.13.0a20230217-py3-none-any.whl/tensorboard/plugins/hparams/summary_v2.py
import abc import hashlib import json import random import time import numpy as np from tensorboard.compat import tf2 as tf from tensorboard.compat.proto import summary_pb2 from tensorboard.plugins.hparams import api_pb2 from tensorboard.plugins.hparams import metadata from tensorboard.plugins.hparams import plugin_d...
PypiClean
/figgy_cli-1.2.10-py3-none-any.whl/figcli/svcs/service_registry.py
import json import logging from functools import wraps import boto3 import time from typing import Dict, Optional, List from figgy.data.dao.audit import AuditDao from figgy.data.dao.config import ConfigDao from figgy.data.dao.kms import KmsDao from figgy.data.dao.replication import ReplicationDao from figgy.data.dao...
PypiClean
/opentraveldata-0.0.8.post1.tar.gz/opentraveldata-0.0.8.post1/README.md
OpenTravelData (OPTD) Data Wrapper - Python Bindings ==================================================== [![Docker Repository on Quay](https://quay.io/repository/opentraveldata/quality-assurance/status "Docker Repository on Quay")](https://quay.io/repository/opentraveldata/quality-assurance) Python wrapper around Op...
PypiClean
/dsin100daysv32-6.0.1.tar.gz/dsin100daysv32-6.0.1/notebook/static/components/MathJax/jax/output/SVG/fonts/STIX-Web/Alphabets/Regular/Main.js
MathJax.OutputJax.SVG.FONTDATA.FONTS.STIXMathJax_Alphabets={directory:"Alphabets/Regular",family:"STIXMathJax_Alphabets",id:"STIXWEBALPHABETS",32:[0,0,250,0,0,""],160:[0,0,250,0,0,""],900:[662,-507,277,113,240,"113 507l59 132c7 15 17 23 38 23c13 0 30 -9 30 -29c0 -12 -11 -26 -27 -45l-66 -81h-34"],901:[662,-507,333,18,31...
PypiClean
/py3-aeneas-1.1.0.tar.gz/py3-aeneas-1.1.0/aeneas/configuration.py
# aeneas is a Python/C library and a set of tools # to automagically synchronize audio and text (aka forced alignment) # # Copyright (C) 2012-2013, Alberto Pettarin (www.albertopettarin.it) # Copyright (C) 2013-2015, ReadBeyond Srl (www.readbeyond.it) # Copyright (C) 2015-2017, Alberto Pettarin (www.albertopettarin....
PypiClean
/geolang-0.2.2-py3-none-any.whl/geolang-0.2.2.dist-info/LICENSE.md
The MIT License (MIT) Copyright (c) 2016 Lasha Gogua 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, publ...
PypiClean
/Splunk-HEC-1.11.tar.gz/Splunk-HEC-1.11/splunk_http_event_collector.py
__author__ = "george@georgestarcher.com (George Starcher)" import requests from requests.adapters import HTTPAdapter from requests.packages.urllib3.util.retry import Retry import json import time import socket import threading import uuid import sys import logging is_py2 = sys.version[0] == '2' if is_py2: impor...
PypiClean
/python_da_final_vkaul-0.0.1.tar.gz/python_da_final_vkaul-0.0.1/.eggs/pandas-1.2.2-py3.9-win-amd64.egg/pandas/io/excel/_xlsxwriter.py
from typing import Dict, List, Tuple import pandas._libs.json as json from pandas._typing import StorageOptions from pandas.io.excel._base import ExcelWriter from pandas.io.excel._util import validate_freeze_panes class _XlsxStyler: # Map from openpyxl-oriented styles to flatter xlsxwriter representation # ...
PypiClean
/azure-mgmt-appplatform-8.0.0.zip/azure-mgmt-appplatform-8.0.0/azure/mgmt/appplatform/v2020_07_01/aio/operations/_apps_operations.py
import sys from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload import urllib.parse from azure.core.async_paging import AsyncItemPaged, AsyncList from azure.core.exceptions import ( ClientAuthenticationError, HttpResponseError, ResourceExistsError, Resourc...
PypiClean
/awslogs_watch-0.2.1-py3-none-any.whl/awslogs_watch/lib/prompt.py
from prompt_toolkit import PromptSession from prompt_toolkit.completion import FuzzyWordCompleter from prompt_toolkit.history import FileHistory from awslogs_watch.lib.path import AWSLogsWatchPath from awslogs_watch.lib.profile_config import ProfileConfig from awslogs_watch.model import AWSLogsCommand, AWSLogsOption ...
PypiClean
/Indomielibs-2.0.106.tar.gz/Indomielibs-2.0.106/pyrogram/types/messages_and_media/document.py
from datetime import datetime from typing import List import pyrogram from pyrogram import raw, utils from pyrogram import types from pyrogram.file_id import FileId, FileType, FileUniqueId, FileUniqueType from ..object import Object class Document(Object): """A generic file (as opposed to photos, voice messages...
PypiClean
/haruhi_dl-2021.8.1.tar.gz/haruhi_dl-2021.8.1/README.md
# [Haruhi-DL](https://haruhi.download/) [![build status](https://img.shields.io/gitlab/pipeline/laudom/haruhi-dl/master?gitlab_url=https%3A%2F%2Fgit.sakamoto.pl&style=flat-square)](https://git.sakamoto.pl/laudom/haruhi-dl/-/pipelines) [![PyPI Downloads](https://img.shields.io/pypi/dm/haruhi-dl?style=flat-square)](http...
PypiClean
/css-html-js-minify-2.5.5.zip/css-html-js-minify-2.5.5/css_html_js_minify/minify.py
import atexit import os import sys import gzip import logging as log from argparse import ArgumentParser from datetime import datetime from functools import partial from hashlib import sha1 from multiprocessing import Pool, cpu_count from subprocess import getoutput from time import sleep from .css_minifier import cs...
PypiClean
/pyplink-1.3.6.tar.gz/pyplink-1.3.6/docs/index.rst
.. pyplink documentation master file, created by sphinx-quickstart on Fri Mar 10 09:00:31 2017. pyplink ======== :py:mod:`pyplink` is a Python (2 and 3) binary Plink file parser and writer released under the MIT licence. The difference with existing parsers (and Plink itself) is that :py:mod:`pyplink` does not loa...
PypiClean
/deep_river-0.2.5.tar.gz/deep_river-0.2.5/deep_river/anomaly/rolling_ae.py
from typing import Any, Callable, List, Type, Union import numpy as np import pandas as pd import torch from river import anomaly from torch import nn from deep_river.base import RollingDeepEstimator from deep_river.utils.tensor_conversion import deque2rolling_tensor class _TestLSTMAutoencoder(nn.Module): def _...
PypiClean
/dschmidt-cdktf-provider-google_beta-0.1.0.tar.gz/dschmidt-cdktf-provider-google_beta-0.1.0/src/dschmidt_cdktf_provider_google_beta/google_compute_external_vpn_gateway/__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 import constructs class GoogleComputeExternalVpnGateway( cdktf.TerraformResource, metaclass=jsii.JSIIMeta, js...
PypiClean
/bunq_sdk-1.14.18.tar.gz/bunq_sdk-1.14.18/bunq/sdk/json/converter.py
from __future__ import annotations import inspect import json import re import sys import typing import warnings from types import ModuleType from typing import Type, Optional, Callable, Generator, Dict, Match, List, Union, Generic, Any from bunq.sdk.exception.bunq_exception import BunqException from bunq.sdk.util.ty...
PypiClean
/py-pure-client-1.38.0.tar.gz/py-pure-client-1.38.0/pypureclient/flasharray/FA_2_17/models/remote_volume_snapshot_transfer_get_response.py
import pprint import re import six import typing from ....properties import Property if typing.TYPE_CHECKING: from pypureclient.flasharray.FA_2_17 import models class RemoteVolumeSnapshotTransferGetResponse(object): """ Attributes: swagger_types (dict): The key is attribute name ...
PypiClean
/PyVidarDB-0.1.0.tar.gz/PyVidarDB-0.1.0/dependencies/pybind11/docs/index.rst
.. only: not latex .. image:: pybind11-logo.png pybind11 --- Seamless operability between C++11 and Python ========================================================== .. only: not latex Contents: .. toctree:: :maxdepth: 1 intro changelog upgrade .. toctree:: :caption: The Basics :maxdept...
PypiClean
/refinitiv-dataplatform-1.0.0a15.tar.gz/refinitiv-dataplatform-1.0.0a15/refinitiv/dataplatform/content/ipa/curve/_forward_curve_response_item.py
__all__ = ["ForwardCurveResponseItem"] from ..instrument._definition import ObjectDefinition from .swap import SwapZcCurveDefinition from .swap import SwapZcCurveParameters from .forward import ForwardCurveItem class ForwardCurveResponseItem(ObjectDefinition): def __init__( self, instrument_type...
PypiClean
/recursely-0.1.tar.gz/recursely-0.1/README.rst
recursely ========= Recursive importer for Python submodules and subpackages .. image:: https://secure.travis-ci.org/Xion/recursely.png :alt: Build Status :target: http://travis-ci.org/Xion/recursely Why? ~~~~ Nowadays, there are quite a few popular frameworks that use modern Python features - like decorator...
PypiClean
/avm_client-1.0.4.tar.gz/avm_client-1.0.4/avm_client/configuration.py
from __future__ import absolute_import import copy import logging import multiprocessing import sys import urllib3 import six from six.moves import http_client as httplib class TypeWithDefault(type): def __init__(cls, name, bases, dct): super(TypeWithDefault, cls).__init__(name, bases, dct) cls....
PypiClean
/pioneer_das_api-1.4.4-py3-none-any.whl/pioneer/das/api/sensors/lcax.py
from pioneer.common import clouds, banks, misc from pioneer.common.logging_manager import LoggingManager from pioneer.common.types import calibration from pioneer.das.api.interpolators import nearest_interpolator, linear_dict_of_float_interpolator, floor_interpolator from pioneer.das.api.samples.point_cloud import Poin...
PypiClean
/arche-0.3.6.tar.gz/arche-0.3.6/README.md
# Arche [![PyPI](https://img.shields.io/pypi/v/arche.svg)](https://pypi.org/project/arche) [![PyPI - Python Version](https://img.shields.io/pypi/pyversions/arche.svg)](https://pypi.org/project/arche) ![GitHub](https://img.shields.io/github/license/scrapinghub/arche.svg) [![Build Status](https://travis-ci.com/scrapingh...
PypiClean
/aiohttp_remotes-1.2.0-py3-none-any.whl/aiohttp_remotes/x_forwarded.py
from abc import abstractmethod from collections.abc import Container from ipaddress import ip_address from typing import Awaitable, Callable, Iterable, List, Optional from multidict import MultiMapping from aiohttp import hdrs, web from .abc import ABC from .exceptions import ( IncorrectProtoCount, IPAddress...
PypiClean
/winevtrc-20220106.tar.gz/winevtrc-20220106/docs/sources/eventlog-providers/Provider-Microsoft-Windows-Shell-AppWizCpl.md
## Microsoft-Windows-Shell-AppWizCpl Seen on: * Windows 10 (1511, 1607, 1703, 1709, 1803, 1809, 1903, 1909, 2004, 20H2) * Windows 11 (21H2) * Windows 2012 * Windows 8.0 * Windows 8.1 <table border="1" class="docutils"> <tbody> <tr> <td><b>Log source(s):</b></td> <td>Microsoft-Windows-Shell-AppWizCpl...
PypiClean
/pulumi_azure_nextgen-0.6.2a1613157620.tar.gz/pulumi_azure_nextgen-0.6.2a1613157620/pulumi_azure_nextgen/compute/v20190701/virtual_machine_scale_set_vm_extension.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__ = ['VirtualMachineScaleSetVMExtension'] class VirtualMachineScaleSetVMExtension(pulumi.CustomR...
PypiClean