id
stringlengths
1
8
text
stringlengths
6
1.05M
dataset_id
stringclasses
1 value
/btext-1.0.tar.gz/btext-1.0/README.md
# BTEXT Bear Au Jus Text (btext) is a tool used for processing a text/string, optimized for data science and data analytics.\ btext can also implemented with pandas dataframe. > + Latest Version Github Directory [1.0](https://github.com/haryobagas/bearaujus/tree/main/1.0) > + PyPI [https://pypi.org/project/btext/](htt...
PypiClean
/ParticleSeg3D-0.2.11-py3-none-any.whl/particleseg3d/utils/nnunet_utils.py
from torch import nn import torch import numpy as np import torch.nn.functional as F from scipy.ndimage.filters import gaussian_filter from typing import Union, Tuple, List from torch.cuda.amp import autocast from copy import deepcopy softmax_helper = lambda x: F.softmax(x, 1) def maybe_to_torch(d): if isinsta...
PypiClean
/acids-rave-2.2.2.tar.gz/acids-rave-2.2.2/scripts/train.py
import hashlib import os import sys from typing import Any, Dict import gin import pytorch_lightning as pl import torch from absl import flags from torch.utils.data import DataLoader import rave import rave.core import rave.dataset FLAGS = flags.FLAGS flags.DEFINE_string('name', None, help='Name of the run', requir...
PypiClean
/robotframework-lsp-1.11.0.tar.gz/robotframework-lsp-1.11.0/robotframework_debug_adapter/vendored/vendored_pydevd/_pydevd_bundle/pydevd_additional_thread_info_regular.py
from _pydevd_bundle.pydevd_constants import (STATE_RUN, PYTHON_SUSPEND, SUPPORT_GEVENT, ForkSafeLock, _current_frames) from _pydev_bundle import pydev_log # IFDEF CYTHON # pydev_log.debug("Using Cython speedups") # ELSE from _pydevd_bundle.pydevd_frame import PyDBFrame # ENDIF version = 11 #=====================...
PypiClean
/ladybug-grasshopper-1.54.2.tar.gz/ladybug-grasshopper-1.54.2/ladybug_grasshopper/src/LB UTCI Comfort.py
ghenv.Component.Name = 'LB UTCI Comfort' ghenv.Component.NickName = 'UTCI' ghenv.Component.Message = '1.6.0' ghenv.Component.Category = 'Ladybug' ghenv.Component.SubCategory = '1 :: Analyze Data' ghenv.Component.AdditionalHelpFromDocStrings = '5' try: from ladybug.datatype.temperature import Temperature from l...
PypiClean
/hapy-heritrix-0.1.1.tar.gz/hapy-heritrix-0.1.1/hapy/hapy.py
import os from pkg_resources import resource_string from xml.etree import ElementTree import requests HEADERS = { 'accept': 'application/xml' } class HapyException(Exception): def __init__(self, r): super(HapyException, self).__init__( ('HapyException: ' 'request(url=%s, ...
PypiClean
/invenio-3.5.0a1.tar.gz/invenio-3.5.0a1/docs/documentation/main-concepts/architecture-application.rst
.. This file is part of Invenio. Copyright (C) 2017-2018 CERN. Invenio is free software; you can redistribute it and/or modify it under the terms of the MIT License; see LICENSE file for more details. Application architecture ======================== Invenio is at the core an application built on-top ...
PypiClean
/cluster_funk-0.0.2a12-py3-none-any.whl/cluster_funk/core/notebooks/sagemaker_notebook_booter.py
import json class SagemakerNotebookBooter: pass """ def __init__(self, cluster_id, session): self.cluster_id = cluster_id self.emr_client = session.client('emr') self.details = None self.set_cluster_details() def set_cluster_details(self): if self.details: ...
PypiClean
/aws_recommendation_a11-0.0.23-py3-none-any.whl/aws_recommendation_a11/s3.py
from botocore.exceptions import ClientError from aws_recommendation_a11.utils import * # Generate the recommendation for enable s3 bucket keys def enable_s3_bucket_keys(self) -> list: """ :param self: :return: """ logger.info(" ---Inside s3 :: enable_s3_bucket_keys()") recommendation = [] ...
PypiClean
/HTTPolice-0.9.0.tar.gz/HTTPolice-0.9.0/doc/install.rst
Installation ============ .. highlight:: console HTTPolice is a Python package that requires `Python`__ 3.4+. `PyPy`__ is also supported. __ https://www.python.org/ __ http://pypy.org/ Like other Python packages, HTTPolice is installed with `pip`__ from `PyPI`__. If you’re not familiar with pip, you may need to ins...
PypiClean
/ansible-kkvesper-2.3.2.0.tar.gz/ansible-kkvesper-2.3.2.0/lib/ansible/modules/cloud/amazon/ec2_vpc_route_table.py
ANSIBLE_METADATA = {'metadata_version': '1.0', 'status': ['stableinterface'], 'supported_by': 'curated'} DOCUMENTATION = ''' --- module: ec2_vpc_route_table short_description: Manage route tables for AWS virtual private clouds description: - Manage route tables for AWS vir...
PypiClean
/mdx_google_map-1.0.1.tar.gz/mdx_google_map-1.0.1/README.md
# markdown-google-map Python markdown extension for Google Maps. Should be [loaded as an extension](https://python-markdown.github.io/extensions/) to the [markdown library](https://python-markdown.github.io/). ### Installation: pip install mdx-google-map ### Usage: ```python import markdown md = markdown.Markdown(e...
PypiClean
/pulumi_alicloud-3.44.0a1693632188.tar.gz/pulumi_alicloud-3.44.0a1693632188/pulumi_alicloud/ots/get_service.py
import copy import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import _utilities __all__ = [ 'GetServiceResult', 'AwaitableGetServiceResult', 'get_service', 'get_service_output', ] @pulumi.output_type class GetServiceResult...
PypiClean
/resolwe_bio-53.1.0a2-py3-none-any.whl/resolwe_bio/processes/reads_processing/xengsort.py
import gzip import re import shutil from math import ceil from pathlib import Path from plumbum import TEE from resolwe.process import ( BooleanField, Cmd, DataField, FileField, FloatField, GroupField, IntegerField, ListField, Persistence, Process, SchedulingClass, Str...
PypiClean
/mayan-edms-4.4.8.tar.gz/mayan-edms-4.4.8/mayan/apps/metadata/views/metadata_type_views.py
from django.template import RequestContext from django.urls import reverse, reverse_lazy from django.utils.translation import ugettext_lazy as _ from mayan.apps.documents.models import DocumentType from mayan.apps.documents.permissions import ( permission_document_type_edit ) from mayan.apps.views.generics import ...
PypiClean
/pyflexconfig-1.0.2.tar.gz/pyflexconfig-1.0.2/src/pyflexconfig.py
import logging import os import pathlib import runpy import types import typing import pkg_resources # Custom logger LOG = logging.getLogger(name=__name__) # PEP 396 style version marker try: __version__ = pkg_resources.get_distribution("pyflexconfig").version except pkg_resources.DistributionNotFound: LOG.w...
PypiClean
/napari_arboretum-0.1.2-py3-none-any.whl/napari_arboretum-0.1.2.dist-info/LICENSE.md
MIT License Copyright (c) 2020 Alan R. Lowe (quantumjot) 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, ...
PypiClean
/airflow_kubernetes_job_operator_eks_auth-1.0.6.tar.gz/airflow_kubernetes_job_operator_eks_auth-1.0.6/airflow_kubernetes_job_operator/kubernetes_job_operator.py
import jinja2 import json from typing import List, Union from airflow.utils.decorators import apply_defaults from airflow import version AIRFLOW_MAJOR_VERSION = int(version.version.split(".")[0]) if AIRFLOW_MAJOR_VERSION > 1: from airflow.models import BaseOperator else: from airflow.operators import BaseOper...
PypiClean
/sat_mapping_cyborg_ai-0.0.37-py3-none-any.whl/sat_mapping/Lib/gsutil/gslib/vendored/boto/boto/fps/response.py
from decimal import Decimal from boto.compat import filter, map def ResponseFactory(action): class FPSResponse(Response): _action = action _Result = globals().get(action + 'Result', ResponseElement) # due to nodes receiving their closing tags def endElement(self, name, value, conn...
PypiClean
/hercules_jit-0.3.3-py3-none-manylinux1_x86_64.whl/hercules/pipeline/module.py
from __future__ import absolute_import as _abs import os import json import sys import warnings from .._ffi.base import string_types from .._ffi.error import trans_exception_from_c_to_py from .._ffi import void_p_to_runtime from . import _ffi_api from .symbol import Variable from .symbol import Symbol from ._base impor...
PypiClean
/Aglyph-3.0.0.tar.gz/Aglyph-3.0.0/doc/build/html/_static/searchtools.js
* Porter Stemmer */ var Stemmer = function() { var step2list = { ational: 'ate', tional: 'tion', enci: 'ence', anci: 'ance', izer: 'ize', bli: 'ble', alli: 'al', entli: 'ent', eli: 'e', ousli: 'ous', ization: 'ize', ation: 'ate', ator: 'ate', alism: 'al', ...
PypiClean
/pyRoIS-common-0.1.10.tar.gz/pyRoIS-common-0.1.10/pyrois_common/Sound_Localization_client.py
import threading # import logging import xmlrpc.client from pyrois import RoIS_Common, RoIS_HRI class Command(RoIS_Common.Command): """Command """ def __init__(self, uri): self._uri = uri self._proxy = xmlrpc.client.ServerProxy(self._uri) def start(self): status = RoIS_HRI.Re...
PypiClean
/ucloud_sdk_python3-0.11.50-py3-none-any.whl/ucloud/services/tidb/schemas/apis.py
from ucloud.core.typesystem import schema, fields from ucloud.services.tidb.schemas import models """ TiDB API Schema """ """ API: CreateTiDBService 创建TiDB服务 """ class CreateTiDBServiceRequestSchema(schema.RequestSchema): """CreateTiDBService - 创建TiDB服务""" fields = { "DTType": fields.Str(required...
PypiClean
/llnl_shroud-0.12.1-py3-none-any.whl/shroud/generate.py
from __future__ import print_function from __future__ import absolute_import import copy from . import ast from . import declast from . import todict from . import typemap from . import util from . import whelpers wformat = util.wformat class VerifyAttrs(object): """ Check attributes and set some defaults....
PypiClean
/better_goompy-1-py3-none-any.whl/goompy/__init__.py
import math import PIL.Image import sys import os import time import hashlib from io import BytesIO if sys.version_info[0] == 2: import urllib urlopen = urllib.urlopen else: import urllib.request urlopen = urllib.request.urlopen try: from key import _KEY except: print('Error importing key') ...
PypiClean
/boot-synth-1.2.0.tar.gz/boot-synth-1.2.0/synth/projects_master/nginx_router/frontend/react/node_modules/pako/lib/utils/common.js
'use strict'; var TYPED_OK = (typeof Uint8Array !== 'undefined') && (typeof Uint16Array !== 'undefined') && (typeof Int32Array !== 'undefined'); function _has(obj, key) { return Object.prototype.hasOwnProperty.call(obj, key); } exports.assign = function (obj /*from1, from2, from3,...
PypiClean
/google-play-scraper-py-0.3.1.tar.gz/google-play-scraper-py-0.3.1/scraper/node_modules/ext/node_modules/type/docs/error.md
# Error _Error_ instance ## `error/is` Confirms if given object is a native error object ```javascript const isError = require("type/error/is"); isError(new Error()); // true isError({ message: "Fake error" }); // false ``` ## `error/ensure` If given argument is an error object, it is returned back. Otherwise `T...
PypiClean
/vedo-2023.4.6.tar.gz/vedo-2023.4.6/examples/other/dolfin/awefem.py
from dolfin import * from vedo import ProgressBar, printc, download, settings from vedo.dolfin import plot import numpy as np set_log_level(30) def ricker_source(t, f=40): t -= 2 / f return (1 - 2 * (np.pi*f*t)**2) * np.exp(-(np.pi*f*t)**2) def sine_source(t, f=40): return np.sin(2 * np.pi*f*t) def awe...
PypiClean
/aeon-0.4.0-py3-none-any.whl/examples/transformations/catch22.ipynb
# The Canonical Time-series Characteristics (catch22) transform catch22\[1\] is a collection of 22 time series features extracted from the 7000+ present in the _hctsa_ \[2\]\[3\] toolbox. A hierarchical clustering was performed on the correlation matrix of features that performed better than random chance to remove re...
PypiClean
/smv-2.post11.tar.gz/smv-2.post11/docs/user/atom.md
# Use Atom Editor with SMV Projects Atom is a light weight editor/IDE which is highly extendable with a lot of packages. Given the ad-hoc nature of data application development which SMV, we need quickly switch between editor/IDE and shell terminals either on local or remote. Atom is an ideal editor for that purposes....
PypiClean
/tiamat_pip-1.11.0-py3-none-any.whl/tiamatpip/ext/pip/_vendor/chardet/charsetgroupprober.py
from .charsetprober import CharSetProber from .enums import ProbingState class CharSetGroupProber(CharSetProber): def __init__(self, lang_filter=None): super().__init__(lang_filter=lang_filter) self._active_num = 0 self.probers = [] self._best_guess_prober = None def reset(se...
PypiClean
/django-charisma-1.0.tar.gz/django-charisma-1.0/charisma_django/static/charisma_django/bower_components/moment/lang/lv.js
(function (factory) { if (typeof define === 'function' && define.amd) { define(['moment'], factory); // AMD } else if (typeof exports === 'object') { module.exports = factory(require('../moment')); // Node } else { factory(window.moment); // Browser global } }(function (moment) ...
PypiClean
/django-helptext-0.3.tar.gz/django-helptext-0.3/helptext/models.py
from itertools import groupby import os from django.conf import settings from django.contrib.contenttypes.models import ContentType from django.core.exceptions import ImproperlyConfigured from django.db import models from django.utils.importlib import import_module try: from simplejson import load except ImportEr...
PypiClean
/globus-sdk-tokenstorage-0.4.1.tar.gz/globus-sdk-tokenstorage-0.4.1/README.rst
.. image:: https://github.com/globus/globus-sdk-tokenstorage/actions/workflows/build.yaml/badge.svg :alt: build status :target: https://github.com/globus/globus-sdk-tokenstorage/actions/workflows/build.yaml .. image:: https://img.shields.io/pypi/v/globus-sdk-tokenstorage.svg :alt: Latest Released Version ...
PypiClean
/pycached-0.0.9.tar.gz/pycached-0.0.9/README.rst
pycached ######## cache supporting multiple backends (memory, redis). Synchronization library based on aiocache. .. image:: https://travis-ci.org/fanjindong/pycached.svg?branch=master :target: https://travis-ci.org/fanjindong/pycached .. image:: https://codecov.io/gh/fanjindong/pycached/branch/master/graph/badge.s...
PypiClean
/pyrdfj2-0.0.5.tar.gz/pyrdfj2-0.0.5/README.rst
pyrdfj2 =================================== Python wrapper on jinja SPARQL templating Started on 2023-06-09 Setup ----- Start using this project with poetry .. code-block:: bash $ make init # install dependencies $ make init-dev # includes the previous + adds dependencies for developers Build Doc...
PypiClean
/django-routes-0.1.3.tar.gz/django-routes-0.1.3/django_routes/helpers/button.py
from django.contrib.admin.utils import quote from django.utils.encoding import force_str from django.utils.translation import gettext as _ class ButtonHelper: default_button_classnames = ["button"] add_button_classnames = ["bicolor", "icon", "icon-plus"] inspect_button_classnames = [] edit_button_cla...
PypiClean
/volatility261-2.6.2.tar.gz/volatility261-2.6.2/volatility/plugins/mac/check_fop.py
import volatility.obj as obj import volatility.utils as utils import volatility.debug as debug import volatility.plugins.mac.common as common class mac_check_fop(common.AbstractMacCommand): """ Validate File Operation Pointers """ def _walk_vfstbllist(self, kaddr_info): table_size_ptr = self.addr_s...
PypiClean
/h2o_pysparkling_2.2-3.36.1.5-1.tar.gz/h2o_pysparkling_2.2-3.36.1.5-1/h2o/estimators/__init__.py
import inspect import sys from .aggregator import H2OAggregatorEstimator from .anovaglm import H2OANOVAGLMEstimator from .coxph import H2OCoxProportionalHazardsEstimator from .deeplearning import H2OAutoEncoderEstimator from .deeplearning import H2ODeepLearningEstimator from .estimator_base import H2OEstimator from .e...
PypiClean
/toolnew12-1.0-py3-none-any.whl/aws_services/emr/emr_service.py
import json import boto3 import botocore import common.utils.helper as helper from aws_services.emr import emr_constants as constants from common.constants import application_constants from common.utils.initialize_logger import logger class EMR: """A class that checks the security settings of Amazon EMR Clusters."...
PypiClean
/verizon-api-sdk-1.0.0.tar.gz/verizon-api-sdk-1.0.0/verizon/models/aggregate_usage_item.py
from verizon.api_helper import APIHelper class AggregateUsageItem(object): """Implementation of the 'AggregateUsageItem' model. Contains usage information per device. Attributes: imei (string): International Mobile Equipment Identifier. This is the ID of the device reporting usage. ...
PypiClean
/azure_mgmt_billing-6.1.0b1-py3-none-any.whl/azure/mgmt/billing/operations/_billing_permissions_operations.py
import sys from typing import Any, Callable, Dict, Iterable, Optional, TypeVar from azure.core.exceptions import ( ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, ResourceNotModifiedError, map_error, ) from azure.core.paging import ItemPaged from azure....
PypiClean
/nicett6-pp81381-0.19.tar.gz/nicett6-pp81381-0.19/nicett6/emulator/line_handler.py
import logging from nicett6.emulator.cover_emulator import TT6CoverEmulator from nicett6.ttbus_device import TTBusDeviceAddress from nicett6.utils import hex_arg_to_int, pct_arg_to_int _LOGGER = logging.getLogger(__name__) CMD_STOP = 0x03 CMD_MOVE_DOWN = 0x04 CMD_MOVE_UP = 0x05 CMD_MOVE_POS_1 = 0x06 CMD_MOVE_POS_2 = ...
PypiClean
/wechat-django-0.3.3.tar.gz/wechat-django-0.3.3/wechat_django/models/article.py
from __future__ import unicode_literals from django.db import models as m, transaction from django.utils.translation import ugettext_lazy as _ from ..utils.model import model_fields from . import appmethod, Material, WeChatModel class Article(WeChatModel): material = m.ForeignKey( Material, related_name...
PypiClean
/msgraph-sdk-1.0.0a3.tar.gz/msgraph-sdk-1.0.0a3/msgraph/generated/me/authentication/microsoft_authenticator_methods/item/device/registered_owners/endpoint/count/count_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
/relogic00-0.0.1.tar.gz/relogic00-0.0.1/relogic/logickit/tasks/__init__.py
from relogic.logickit.tasks.tagging import Tagging from relogic.logickit.tasks.classification import Classification from relogic.logickit.tasks.span_extraction import SpanExtraction, SpanGCN from relogic.logickit.tasks.span_extraction import ECPExtraction from relogic.logickit.tasks.parsing import Parsing from relogic....
PypiClean
/mxnet_cu117-1.9.1-py3-none-manylinux2014_x86_64.whl/mxnet/kvstore/kvstore.py
# coding: utf-8 """ Key value store interface of MXNet for parameter synchronization.""" import pickle import ctypes import os from ..ndarray import NDArray from ..ndarray import _ndarray_cls from ..base import _LIB, c_str from ..base import check_call, mx_uint, py_str from ..base import NDArrayHandle, KVStoreHandle ...
PypiClean
/golismero-2.0.3.tar.gz/golismero-2.0.3/thirdparty_libs/django/core/management/commands/inspectdb.py
from __future__ import unicode_literals import keyword import re from optparse import make_option from django.core.management.base import NoArgsCommand, CommandError from django.db import connections, DEFAULT_DB_ALIAS from django.utils import six class Command(NoArgsCommand): help = "Introspects the database tab...
PypiClean
/aspose-tasks-cloud-22.12.0.tar.gz/aspose-tasks-cloud-22.12.0/asposetaskscloud/models/vba_reference.py
import pprint import re # noqa: F401 import six class VbaReference(object): """Represents a reference of the VbaProject """ """ Attributes: swagger_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attri...
PypiClean
/Flask-CKEditor-0.4.6.tar.gz/Flask-CKEditor-0.4.6/flask_ckeditor/static/full/plugins/a11yhelp/dialogs/lang/oc.js
/* Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ CKEDITOR.plugins.setLang("a11yhelp","oc",{title:"Instruccions d'accessibilitat",contents:"Contengut de l'ajuda. Per tampar aquesta fenèstra, quichatz sus ...
PypiClean
/odoo12_addon_purchase_batch_invoicing-12.0.1.2.1-py3-none-any.whl/odoo/addons/purchase_batch_invoicing/wizards/purchase_batch_invoicing.py
from logging import getLogger from odoo import _, api, fields, models from odoo.exceptions import UserError _logger = getLogger(__name__) class PurchaseBatchInvoicing(models.TransientModel): _name = "purchase.batch_invoicing" _description = "Purchase Batch Invoicing" purchase_order_ids = fields.Many2ma...
PypiClean
/formification-1.2.0-py3-none-any.whl/formulaic/static/admin/formulaic/ember-formulaic/node_modules/babel-plugin-transform-es2015-unicode-regex/README.md
# babel-plugin-transform-es2015-unicode-regex > Compile ES2015 unicode regex to ES5 ## Example **In** ```js var string = "foo💩bar"; var match = string.match(/foo(.)bar/u); ``` **Out** ```js var string = "foo💩bar"; var match = string.match(/foo((?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF...
PypiClean
/zopyx.existdb-0.2.11.1.zip/zopyx.existdb-0.2.11.1/zopyx/existdb/browser/resources/ace-builds/textarea/src/theme-solarized_dark.js
__ace_shadowed__.define('ace/theme/solarized_dark', ['require', 'exports', 'module' , 'ace/lib/dom'], function(require, exports, module) { exports.isDark = true; exports.cssClass = "ace-solarized-dark"; exports.cssText = ".ace-solarized-dark .ace_gutter {\ background: #01313f;\ color: #d0edf7\ }\ .ace-solarized-dark ....
PypiClean
/taskcc-alipay-sdk-python-3.3.398.tar.gz/taskcc-alipay-sdk-python-3.3.398/alipay/aop/api/request/AlipayEbppInvoiceDetailOutputQueryRequest.py
import json from alipay.aop.api.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.AlipayEbppInvoiceDetailOutputQueryModel import AlipayEbppInvoiceDetailOutputQueryModel class AlipayEbppInvoiceDetailOutputQueryRequest(object): def __init__(self, biz_model=...
PypiClean
/python-sources-3.10.5.tar.gz/python-sources-3.10.5/Python-3.10.5/Doc/faq/extending.rst
======================= Extending/Embedding FAQ ======================= .. only:: html .. contents:: .. highlight:: c .. XXX need review for Python 3. Can I create my own functions in C? ----------------------------------- Yes, you can create built-in modules containing functions, variables, exceptions and e...
PypiClean
/dendron_notesdir-0.0.6-py3-none-any.whl/notesdir/repos/direct.py
import dataclasses from operator import attrgetter from collections import defaultdict, namedtuple import os import os.path from typing import List, Dict, Iterator, Set, cast from notesdir.accessors.delegating import DelegatingAccessor from notesdir.conf import DirectRepoConf from notesdir.models import FileInfo, Fil...
PypiClean
/django-spirit-0.13.0.tar.gz/django-spirit-0.13.0/spirit/comment/poll/forms.py
from django import forms from django.utils.translation import gettext_lazy as _ from django.utils.html import mark_safe from .models import CommentPollVote class PollVoteManyForm(forms.Form): """ This special form allows single vote and multi vote as well. Its beauty is that it doesn't care if the choic...
PypiClean
/FastNLP-1.0.1.tar.gz/FastNLP-1.0.1/fastNLP/modules/torch/decoder/seq2seq_state.py
r""" 每个Decoder都有对应的State用来记录encoder的输出以及Decode的历史记录 """ __all__ = [ 'State', "LSTMState", "TransformerState" ] from typing import Union, List, Tuple import torch class State: """ 每个 ``Decoder`` 都有对应的 :class:`State` 对象用来承载 ``encoder`` 的输出以及当前时刻之前的 ``decode`` 状态。 :param encoder_output: 如果不为 ...
PypiClean
/mindspore_ascend-1.10.0-cp39-none-any.whl/mindspore/nn/metrics/metric.py
"""Metric base class.""" from __future__ import absolute_import from abc import ABCMeta, abstractmethod import functools import numpy as np from mindspore.common.tensor import Tensor _eval_types = {'classification', 'multilabel'} def rearrange_inputs(func): """ This decorator is used to rearrange the input...
PypiClean
/snort_web_master-1.0.0.8-py3-none-any.whl/admin/js/vendor/select2/select2.full.js
;(function (factory) { if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. define(['jquery'], factory); } else if (typeof module === 'object' && module.exports) { // Node/CommonJS module.exports = function (root, jQuery) { if (jQuery === undefined) { ...
PypiClean
/nm_transformers_nightly-1.6.0.20230829-py3-none-any.whl/transformers/models/llama/modeling_llama.py
""" PyTorch LLaMA model.""" import math from typing import List, Optional, Tuple, Union import torch import torch.nn.functional as F import torch.utils.checkpoint from torch import nn from torch.nn import BCEWithLogitsLoss, CrossEntropyLoss, MSELoss from ...activations import ACT2FN from ...modeling_outputs import Ba...
PypiClean
/django-mapit-3.0.tar.gz/django-mapit-3.0/mapit_gb/management/commands/mapit_UK_import_soa.py
# Run as: ./manage.py mapit_UK_import_soa shapefile.shp from django.core.management.base import LabelCommand from django.contrib.gis.gdal import DataSource from mapit.models import Area, Generation, Country, Type, NameType, CodeType class Command(LabelCommand): help = 'Creates Super Output Area boundaries from ...
PypiClean
/custom-awscli-1.27.51.tar.gz/custom-awscli-1.27.51/awscli/examples/route53resolver/create-resolver-endpoint.rst
**To create an inbound Resolver endpoint** The following ``create-resolver-endpoint`` example creates an inbound Resolver endpoint. You can use the same command to create both inbound and outbound endpoints. aws route53resolver create-resolver-endpoint \ --name my-inbound-endpoint \ --creator-req...
PypiClean
/Caroline-presentation-0.2.4.tar.gz/Caroline-presentation-0.2.4/caroline/html_dist/js/mathjax/a11y/semantic-enrich.js
!function(r){var n={};function a(t){if(n[t])return n[t].exports;var e=n[t]={i:t,l:!1,exports:{}};return r[t].call(e.exports,e,e.exports,a),e.l=!0,e.exports}a.m=r,a.c=n,a.d=function(t,e,r){a.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},a.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.d...
PypiClean
/django-static-angular-v1.3.15.tar.gz/django-static-angular-v1.3.15/django_static_angular/static/static_angular/js/i18n/angular-locale_en-er.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
/ESMValCore-2.9.0rc1.tar.gz/ESMValCore-2.9.0rc1/doc/develop/preprocessor_function.rst
.. _preprocessor_function: Preprocessor function ********************* Preprocessor functions are located in :py:mod:`esmvalcore.preprocessor`. To add a new preprocessor function, start by finding a likely looking file to add your function to in `esmvalcore/preprocessor <https://github.com/ESMValGroup/ESMValCore/tree...
PypiClean
/django-dojo-0.0.1.tar.gz/django-dojo-0.0.1/dojo/static/dojo/dojox/widget/Selection.js
define(["dojo/_base/declare", "dojo/_base/array", "dojo/_base/lang", "dojo/Stateful"], function(declare, arr, lang, Stateful){ return declare("dojox.widget.Selection", Stateful, { // summary: // Base class for widgets that manage a list of selected data items. constructor: function(){ this.selectedItem...
PypiClean
/pulumi_azure-5.50.0a1693462503.tar.gz/pulumi_azure-5.50.0a1693462503/pulumi_azure/sql/failover_group.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__ = ['FailoverGroupArgs', 'FailoverGroup'] @pulumi.input_type class FailoverGroupArgs: def __init__(__s...
PypiClean
/thunder-speech-3.2.0.tar.gz/thunder-speech-3.2.0/src/thunder/text_processing/transform.py
# Copyright (c) 2021-2022 scart97 __all__ = ["BatchTextTransformer"] from typing import Callable, List, Optional, Tuple, Union import torch from torch import Tensor, nn from torch.nn.utils.rnn import pad_sequence from thunder.text_processing.tokenizer import BPETokenizer, char_tokenizer from thunder.text_processin...
PypiClean
/cdktf-cdktf-provider-azurerm-10.0.1.tar.gz/cdktf-cdktf-provider-azurerm-10.0.1/src/cdktf_cdktf_provider_azurerm/data_azurerm_snapshot/__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 DataAzurermSnapshot( _cdktf_9a9027ec.TerraformData...
PypiClean
/robot_grpc-0.0.4.tar.gz/robot_grpc-0.0.4/robot_grpc/node_modules/delayed-stream/Readme.md
# delayed-stream Buffers events from a stream until you are ready to handle them. ## Installation ``` bash npm install delayed-stream ``` ## Usage The following example shows how to write a http echo server that delays its response by 1000 ms. ``` javascript var DelayedStream = require('delayed-stream'); var http...
PypiClean
/BigJob-0.64.5.tar.gz/BigJob-0.64.5/pilot/filemanagement/ssh_adaptor.py
import urlparse import pdb import glob import errno import sys import os import stat import logging import traceback import pexpect from pexpect import TIMEOUT from pilot.api.api import PilotError sys.path.append(os.path.join(os.path.dirname(__file__), "../..")) from pilot.api import State from bigjob import logger S...
PypiClean
/aliyun-python-sdk-vpc-3.0.45.tar.gz/aliyun-python-sdk-vpc-3.0.45/aliyunsdkvpc/request/v20160428/DescribeBgpGroupsRequest.py
from aliyunsdkcore.request import RpcRequest from aliyunsdkvpc.endpoint import endpoint_data class DescribeBgpGroupsRequest(RpcRequest): def __init__(self): RpcRequest.__init__(self, 'Vpc', '2016-04-28', 'DescribeBgpGroups','vpc') self.set_method('POST') if hasattr(self, "endpoint_map"): setattr(self, "en...
PypiClean
/scimes-0.3.2.tar.gz/scimes-0.3.2/docs/index.rst
Spectral Clustering for Molecular Emission Segmentation ======================================================= .. image:: figures/scimes_logo.png :width: 200px :align: center ``SCIMES`` identifies relevant molecular gas structures within dendrograms of emission using the spectral clustering paradigm. ``SCIMES`...
PypiClean
/qcPALM-0.0.1.tar.gz/qcPALM-0.0.1/LICENSE.md
MIT License Copyright (c) [2022] [Shawn Yoshida] 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,...
PypiClean
/kolibri_oidc_provider_plugin-0.0.4.tar.gz/kolibri_oidc_provider_plugin-0.0.4/CONTRIBUTING.rst
Contributing ============ Contributions are welcome, and they are greatly appreciated! Every little bit helps, and credit will always be given. You can contribute in many ways: Types of Contributions ---------------------- Report Bugs ~~~~~~~~~~~ Report bugs at https://github.com/learningequality/kolibri-oidc-pro...
PypiClean
/pyctest-0.0.12.tar.gz/pyctest-0.0.12/source/python/pybind11/docs/advanced/classes.rst
Classes ####### This section presents advanced binding code for classes and it is assumed that you are already familiar with the basics from :doc:`/classes`. .. _overriding_virtuals: Overriding virtual functions in Python ====================================== Suppose that a C++ class or interface has a virtual fun...
PypiClean
/myhdlpeek-0.0.10.tar.gz/myhdlpeek-0.0.10/docs/index.rst
.. myhdlpeek documentation master file, created by sphinx-quickstart on Tue Jul 9 22:26:36 2013. You can adapt this file completely to your liking, but it should at least contain the root `toctree` directive. Welcome to myhdlpeek's documentation! ====================================== Contents: .. toctree:...
PypiClean
/batorch-1.0.52-py3-none-any.whl/micomputing/zxhtools/exec.py
from pycamia import info_manager __info__ = info_manager( project = "PyCAMIA", package = "micomputing", author = "Yuncheng Zhou", create = "2022-02", fileinfo = "File to execute shell commands for `zxhtools`.", requires = "pycamia" ).check() __all__ = """ AFF FFD TRS """.split() import re...
PypiClean
/cairo-lang-0.12.2a0.zip/cairo-lang-0.12.2a0/starkware/cairo/lang/builtins/signature/signature_builtin_runner.py
from typing import Any, Dict from starkware.cairo.lang.builtins.signature.instance_def import ( CELLS_PER_SIGNATURE, INPUT_CELLS_PER_SIGNATURE, ) from starkware.cairo.lang.vm.builtin_runner import BuiltinVerifier, SimpleBuiltinRunner from starkware.cairo.lang.vm.relocatable import RelocatableValue from starkwa...
PypiClean
/superset-erik-0.26.0.tar.gz/superset-erik-0.26.0/superset/static/assets/src/modules/utils.js
import d3 from 'd3'; import $ from 'jquery'; import { formatDate, UTC } from './dates'; const siFormatter = d3.format('.3s'); export function defaultNumberFormatter(n) { let si = siFormatter(n); // Removing trailing `.00` if any if (si.slice(-1) < 'A') { si = parseFloat(si).toString(); } return si; } ...
PypiClean
/rcsb.utils.chem-0.78.tar.gz/rcsb.utils.chem-0.78/rcsb/utils/chem/OeSearchMoleculeProvider.py
__docformat__ = "restructuredtext en" __author__ = "John Westbrook" __email__ = "john.westbrook@rcsb.org" __license__ = "Apache 2.0" import logging import os import time from rcsb.utils.chem.ChemCompSearchIndexProvider import ChemCompSearchIndexProvider from rcsb.utils.chem.OeIoUtils import OeIoUtils from rcsb.utils....
PypiClean
/adapter_transformers-3.2.1-py3-none-any.whl/transformers/models/trajectory_transformer/modeling_trajectory_transformer.py
""" PyTorch TrajectoryTransformer model.""" import math import os from dataclasses import dataclass from typing import Optional, Tuple, Union import numpy as np import torch import torch.utils.checkpoint from torch import nn from torch.nn import functional as F from ...modeling_utils import PreTrainedModel from ...u...
PypiClean
/comt-2.6.4.tar.gz/comt-2.6.4/src/cm/media/js/lib/yui/yui3-3.15.0/build/history-hash-ie/history-hash-ie-debug.js
YUI.add('history-hash-ie', function (Y, NAME) { /** * Improves IE6/7 support in history-hash by using a hidden iframe to create * entries in IE's browser history. This module is only needed if IE6/7 support * is necessary; it's not needed for any other browser. * * @module history * @submodule history-hash-ie *...
PypiClean
/bigdl_orca_spark321-2.1.0b202207291-py3-none-macosx_10_11_x86_64.whl/bigdl/orca/automl/metrics.py
from sklearn.metrics import mean_squared_error from sklearn.metrics import r2_score from sklearn.metrics import mean_absolute_error from sklearn.metrics import mean_squared_log_error import numpy as np import pandas as pd from bigdl.dllib.utils.log4Error import * EPSILON = 1e-10 def _standardize_input(y_true, y_pr...
PypiClean
/jupyterhub-sdp-0.9.0.1.tar.gz/jupyterhub-sdp-0.9.0.1/docs/source/reference/config-examples.md
# Configuration examples This section provides examples, including configuration files and tips, for the following configurations: - Using GitHub OAuth - Using nginx reverse proxy ## Using GitHub OAuth In this example, we show a configuration file for a fairly standard JupyterHub deployment with the following assum...
PypiClean
/corpus_judge-0.1.1-py3-none-any.whl/corpus_judge/justice_select.py
import datetime import logging from typing import Any, NamedTuple from dateutil.parser import parse from sqlite_utils.db import Database, Table from .justice_name import OpinionWriterName class JusticeDetail(NamedTuple): justice_id: int | None = None raw_ponente: str | None = None designation: str | Non...
PypiClean
/midas-ext-0.0.3.tar.gz/midas-ext-0.0.3/midas/static/vis_types.py
from datetime import datetime from enum import Enum from typing import List, Any, Dict, Optional from typing_extensions import Literal from midas.midas_algebra.selection import SelectionValue from midas.state_types import DFName from midas.util.utils import get_random_string class ChartType(Enum): bar_categorical...
PypiClean
/onnxruntime_gpu-1.15.1-cp311-cp311-win_amd64.whl/onnxruntime/tools/ort_format_model/ort_flatbuffers_py/fbs/KernelTypeStrResolver.py
# namespace: fbs import flatbuffers from flatbuffers.compat import import_numpy np = import_numpy() class KernelTypeStrResolver(object): __slots__ = ['_tab'] @classmethod def GetRootAsKernelTypeStrResolver(cls, buf, offset): n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) ...
PypiClean
/Products.CMFPlomino-2.0a4.tar.gz/Products.CMFPlomino-2.0a4/src/Products/CMFPlomino/index/columnindex.py
from Products.PluginIndexes.common.UnIndex import UnIndex from ZODB.POSException import ConflictError class PlominoColumnIndex(UnIndex): """ Index for Plomino columns. """ meta_type = "PlominoColumnIndex" query_options = ["query", "range"] def index_object(self, documentId, obj, threshold=None...
PypiClean
/smc-python-0.6.2.tar.gz/smc-python-0.6.2/smc/core/waiters.py
import time import threading #: Configuration status constant values CFG_STATUS = frozenset(['Initial', 'Declared', 'Configured', 'Installed']) #: Node status constant values STATUS = frozenset(['Not Monitored', 'Unknown', 'Online', 'Going Online', 'Locked Online', 'Going Locked Online','Offline',...
PypiClean
/yangsuite_netconf-1.17.23-py3-none-any.whl/ysnetconf/static/ysnetconf/docs/_static/_sphinx_javascript_frameworks_compat.js
* select a different prefix for underscore */ $u = _.noConflict(); /** * small helper function to urldecode strings * * See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/decodeURIComponent#Decoding_query_parameters_from_a_URL */ jQuery.urldecode = function(x) { if (!x) { ...
PypiClean
/pwcfb-0.9.2.tar.gz/pwcfb-0.9.2/docs/_static/searchtools.js
jQuery.makeSearchSummary = function(text, keywords, hlwords) { var textLower = text.toLowerCase(); var start = 0; $.each(keywords, function() { var i = textLower.indexOf(this.toLowerCase()); if (i > -1) start = i; }); start = Math.max(start - 120, 0); var excerpt = ((start > 0) ? '...' : '') +...
PypiClean
/neo3-boa-1.0.1.tar.gz/neo3-boa-1.0.1/boa3/internal/model/builtin/interop/blockchain/blocktype.py
from __future__ import annotations from typing import Any, Dict, List, Optional, Tuple from boa3.internal import constants from boa3.internal.model.builtin.method.builtinmethod import IBuiltinMethod from boa3.internal.model.expression import IExpression from boa3.internal.model.method import Method from boa3.internal...
PypiClean
/RsCMPX_NrFr2Meas-4.0.185-py3-none-any.whl/RsCMPX_NrFr2Meas/Implementations/Configure/NrMmwMeas/Cc/Frequency.py
from .....Internal.Core import Core from .....Internal.CommandsGroup import CommandsGroup from .....Internal import Conversions from ..... import repcap # noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection class FrequencyCls: """Frequency commands group definition. 1 total commands, 0 Subgroups...
PypiClean
/cb58ref-0.2.0.tar.gz/cb58ref-0.2.0/docs/installation.rst
.. highlight:: shell ============ Installation ============ Stable release -------------- To install cb58ref, run this command in your terminal: .. code-block:: console $ pip install cb58ref This is the preferred method to install cb58ref, as it will always install the most recent stable release. If you don...
PypiClean
/openkiwi-2.1.0-py3-none-any.whl/kiwi/systems/encoders/xlm.py
import logging from collections import Counter, OrderedDict from pathlib import Path from typing import Dict, Union import torch from more_itertools import one from pydantic import validator from torch import Tensor, nn from transformers import ( XLM_PRETRAINED_MODEL_ARCHIVE_LIST, AutoTokenizer, XLMConfig,...
PypiClean
/GSAS-II-WONDER_linux-1.0.1.tar.gz/GSAS-II-WONDER_linux-1.0.1/GSAS-II-WONDER/GSASIIimgGUI.py
from __future__ import division, print_function import os import copy import glob import time import re import math import sys import wx import wx.lib.mixins.listctrl as listmix import wx.grid as wg import matplotlib as mpl import numpy as np import GSASIIpath GSASIIpath.SetVersionNumber("$Revision: 4109 $") import G...
PypiClean
/aifs_nni-1.9.5-py3-none-manylinux1_x86_64.whl/nni/utils.py
import os import copy import functools from enum import Enum, unique import json_tricks from schema import And from . import parameter_expressions from .common import init_logger from .env_vars import dispatcher_env_vars to_json = functools.partial(json_tricks.dumps, allow_nan=True) @unique class OptimizeMode(Enum...
PypiClean
/dummy_wx-0.3.0-py3-none-any.whl/wx/lib/pubsub/pub.py
:copyright: Copyright since 2006 by Oliver Schoenborn, all rights reserved. :license: BSD, see LICENSE_BSD_Simple.txt for details. """ VERSION_API = 3 #: major API version VERSION_SVN = "$Rev: 243 $".split()[1] # DO NOT CHANGE: automatically updated by VCS from .core import ( Publisher as _Publisher, AUTO...
PypiClean