id stringlengths 1 8 | text stringlengths 6 1.05M | dataset_id stringclasses 1
value |
|---|---|---|
/vumi-0.6.19.tar.gz/vumi-0.6.19/docs/intro/scaleconf02.rst | =========================================
ScaleConf Workshop - Getting Set Up
=========================================
.. note::
These instructions were written for the first Vumi workshop on the 21st
of April 2013, right after the ScaleConf_ conference in Cape Town.
Spotted an error? Please feel free t... | PypiClean |
/in_dbt_spark-1.5.7-py3-none-any.whl/dbt/adapters/setu/models.py | import ast
import json
import os
import dbt.exceptions
from dataclasses import asdict, dataclass
from enum import Enum
from typing import Any, Dict, List, Optional
from dbt.events import AdapterLogger
logger = AdapterLogger("Spark")
@dataclass
class Output:
json: Optional[dict]
execution_success: bool
er... | PypiClean |
/kraken_std-0.31.1-py3-none-any.whl/kraken/std/cargo/tasks/cargo_publish_task.py | import logging
from pathlib import Path
from kraken.common import not_none
from kraken.core import Project, Property
from ..config import CargoRegistry
from .cargo_build_task import CargoBuildTask
logger = logging.getLogger(__name__)
class CargoPublishTask(CargoBuildTask):
"""Publish a Cargo crate."""
#: ... | PypiClean |
/slack_types-0.0.2-py3-none-any.whl/slack_types/events_api/message_channel_archive_payload.py |
from dataclasses import dataclass
from typing import Optional, Any, List, TypeVar, Callable, Type, cast
T = TypeVar("T")
def from_str(x: Any) -> str:
assert isinstance(x, str)
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 |
/reqmgr2-2.2.4rc1.tar.gz/reqmgr2-2.2.4rc1/src/python/WMCore/WMSpec/Steps/Executors/CMSSW.py | import logging
import os
import socket
import subprocess
import sys
from Utils.PythonVersion import PY3
from Utils.Utilities import encodeUnicodeToBytesConditional
from WMCore.FwkJobReport.Report import addAttributesToFile
from WMCore.WMExceptions import WM_JOB_ERROR_CODES
from WMCore.WMRuntime.Tools.Scram import Scra... | PypiClean |
/KADaP01-2.0.0-py3-none-any.whl/yolov5/utils/dataloaders.py | import contextlib
import glob
import hashlib
import json
import math
import os
import random
import shutil
import time
from itertools import repeat
from multiprocessing.pool import Pool, ThreadPool
from pathlib import Path
from threading import Thread
from urllib.parse import urlparse
from zipfile import ZipFile
impor... | PypiClean |
/azure-ai-translation-document-1.0.0b5.zip/azure-ai-translation-document-1.0.0b5/azure/ai/translation/document/_generated/_configuration.py |
from typing import TYPE_CHECKING
from azure.core.configuration import Configuration
from azure.core.pipeline import policies
if TYPE_CHECKING:
# pylint: disable=unused-import,ungrouped-imports
from typing import Any
from azure.core.credentials import TokenCredential
VERSION = "unknown"
class BatchDocu... | PypiClean |
/minixsv-0.9.0.zip/minixsv-0.9.0/genxmlif/xmlifApi.py |
__author__ = "Roland Leuthe <roland@leuthe-net.de>"
__date__ = "08. August 2008"
__version__ = "0.9.0"
import string
import os
import re
import copy
from types import TupleType, StringTypes
from xml.dom import EMPTY_PREFIX, EMPTY_NAMESPACE
from xmlifUtils import processWhitespaceAction, NsNameTupleFactory... | PypiClean |
/catkin_tools-0.9.4.tar.gz/catkin_tools-0.9.4/docs/installing.rst | Installing ``catkin_tools``
===========================
You can install the ``catkin_tools`` package as a binary through a package manager like ``pip`` or ``apt-get``, or from source.
.. note::
This project is still in beta and has not been released yet, please install from source.
In particular, interface a... | PypiClean |
/updrytwist_UpDryTwist-0.0.25-py3-none-any.whl/updrytwist/music.py | import pygame
import logging
import datetime
import ctypes
_LOGGER = logging.getLogger(__name__)
VERSION = pygame.version.vernum
BUFFER_SIZE=4096
class Music:
def __init__ ( self, musicFile : str, targetVolume : int ):
self.musicFile = musicFile
self.hasMusic = False
self.targe... | PypiClean |
/soakdb3-1.7.1-py3-none-any.whl/soakdb3_lib/datafaces/context.py | import logging
from dls_utilpack.callsign import callsign
from dls_utilpack.thing import Thing
# Things created in the context.
from soakdb3_lib.datafaces.datafaces import Datafaces
logger = logging.getLogger(__name__)
thing_type = "soakdb3_lib.datafaces.context"
class Context(Thing):
"""
Asyncio context... | PypiClean |
/bbcodepy_cyntara-0.1.0-py3-none-any.whl/bbcodepy/tags.py | import re
_NEWLINE_RE = re.compile(r'\r?\n')
_LINE_BREAK = u'<br />'
class Tag(object):
CLOSED_BY = []
SELF_CLOSE = False
STRIP_INNER = False
STRIP_OUTER = False
DISCARD_TEXT = False
def __init__(self, renderer, name=None, parent=None, text=u'', params=None):
self.renderer = renderer
... | PypiClean |
/swagger_ui_bundle-0.0.9-py3-none-any.whl/swagger_ui_bundle/vendor/swagger-ui-2.2.10/lib/swagger-oauth.js | function handleLogin(){var e=[],o=window.swaggerUiAuth.authSchemes||window.swaggerUiAuth.securityDefinitions;if(o){var i,a=o;for(i in a){var n=a[i];if("oauth2"===n.type&&n.scopes){var t;if(Array.isArray(n.scopes)){var p;for(p=0;p<n.scopes.length;p++)e.push(n.scopes[p])}else for(t in n.scopes)e.push({scope:t,description... | PypiClean |
/cohesity-sdk-1.1.0.tar.gz/cohesity-sdk-1.1.0/cohesity_sdk/cluster/api/recovery.py | import re # noqa: F401
import sys # noqa: F401
from cohesity_sdk.cluster.api_client import ApiClient, Endpoint as _Endpoint
from cohesity_sdk.cluster.model_utils import ( # noqa: F401
check_allowed_values,
check_validations,
date,
datetime,
file_type,
none_type,
validate_and_convert_type... | PypiClean |
/oc_ds_converter-0.2.0-py3-none-any.whl/oc_ds_converter/metadata_manager.py |
import importlib
from urllib.parse import quote
from oc_ds_converter.oc_idmanager.isbn import ISBNManager
from oc_ds_converter.oc_idmanager.issn import ISSNManager
from oc_ds_converter.oc_idmanager.orcid import ORCIDManager
class MetadataManager():
def __init__(self, metadata_provider:str, api_response:dict, o... | PypiClean |
/handshape-datasets-0.1.5.tar.gz/handshape-datasets-0.1.5/handshape_datasets/datasets/irish_refactory.py | from numpy import zeros as create_np_array_with_zeros
from logging import warning
from os import path
from os import listdir, mkdir
from skimage import io
from string import ascii_uppercase
from .common import *
import numpy as np
from .dataset import Dataset
from .utils import mkdir_unless_exists, download_file, extr... | PypiClean |
/bittrade_binance_websocket-0.2.3.tar.gz/bittrade_binance_websocket-0.2.3/bittrade_binance_websocket/connection/reconnect.py | from collections.abc import Generator
from logging import getLogger
from typing import Any, Callable, TypeVar, Optional, cast
from expression import curry_flip
import reactivex
from reactivex import Observable, operators
from reactivex.abc import DisposableBase, SchedulerBase
from reactivex.disposable import Composite... | PypiClean |
/jupyterhub_url_sharing-0.1.0.tar.gz/jupyterhub_url_sharing-0.1.0/node_modules/doctrine/CHANGELOG.md | v3.0.0 - November 9, 2018
* 0b5a8c7 Breaking: drop support for Node < 6 (#223) (Kai Cataldo)
* a05e9f2 Upgrade: eslint-release@1.0.0 (#220) (Teddy Katz)
* 36ed027 Chore: upgrade coveralls to ^3.0.1 (#213) (Teddy Katz)
* 8667e34 Upgrade: eslint-release@^0.11.1 (#210) (Kevin Partington)
v2.1.0 - January 6, 2018
* 827f... | PypiClean |
/flagdata-1.0.0.tar.gz/flagdata-1.0.0/README.md | <div id=top align="center">

[](https://pypi.org/project/flagdata/)
[](https://github.com/FlagOpen/FlagData/actions... | PypiClean |
/ansible-lint-6.18.0.tar.gz/ansible-lint-6.18.0/docs/rules/no-prompting.md | # no-prompting
This rule checks for `vars_prompt` or the `ansible.builtin.pause` module in playbooks.
You should enable this rule to ensure that playbooks can run unattended and in CI/CD pipelines.
This is an opt-in rule.
You must enable it in your Ansible-lint configuration as follows:
```yaml
enable_list:
- no-p... | PypiClean |
/nm_transformers-1.5.1.42301-py3-none-any.whl/transformers/models/bert/tokenization_bert.py | import collections
import os
import unicodedata
from typing import List, Optional, Tuple
from ...tokenization_utils import PreTrainedTokenizer, _is_control, _is_punctuation, _is_whitespace
from ...utils import logging
logger = logging.get_logger(__name__)
VOCAB_FILES_NAMES = {"vocab_file": "vocab.txt"}
PRETRAINED_... | PypiClean |
/tecton_http_client_python-0.1.0b0-py3-none-any.whl/tecton_http_client_python-0.1.0b0.dist-info/licenses/LICENSE.md | Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and dist... | PypiClean |
/spire.xls-13.4.0-py3-none-any.whl/spire/xls/GradientArrayWrapper.py | from enum import Enum
from plum import dispatch
from typing import TypeVar,Union,Generic,List,Tuple
from spire.common import *
from spire.xls import *
from ctypes import *
import abc
class GradientArrayWrapper ( XlsObject, IGradient) :
"""
"""
@property
def BackColorObject(self)->'OColor':
"... | PypiClean |
/iTraining-1.0.0.zip/iTraining-1.0.0/TestRunner_AreaLevel.py | from selenium import webdriver
import unittest, time, re, sys
import HTMLTestRunner
sys.path.append("..")
# print sys.path
from test_case.case_Login import TestCaseLogin
from test_case.case_Logout import TestCaseLogout
from test_case.case_AnnualPlanAdd import AnnualPlanAdd
from test_case.case_AnnualPlanManagement impor... | PypiClean |
/pcpartscraper-1.1.0.tar.gz/pcpartscraper-1.1.0/README.md | # PCPartScraper
#### Author: Jeet Chugh
###### PCPartScraper is a simple, yet powerful pcpartpicker.com WebScraper that extracts Data from Part URL's.
**Features:**
- Search for Parts from String Queries
- View: **name, type, sale_link, price, specifications, url, rating, reviews, queries**
- Install eas... | PypiClean |
/tensorflow-2.1.1-cp36-cp36m-macosx_10_11_x86_64.whl/tensorflow_core/core/framework/types_pb2.py |
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf.internal import enum_type_wrapper
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf i... | PypiClean |
/HPCCSystemsECLDOc-2.0.0.tar.gz/HPCCSystemsECLDOc-2.0.0/ecldoc/Formats/TEX/tagTEX.py | from .genTEX import latex_jinja_env, TEX_TEMPLATE_DIR, escape_tex
from ecldoc.Utils import call_macro_by_name, joinpath
from ecldoc.parseDoc import construct_type
import lxml.html as H
latex_jinja_env.filters['macro'] = call_macro_by_name
tag_template = latex_jinja_env.get_template(joinpath(TEX_TEMPLATE_DIR, 'taglets.... | PypiClean |
/tapis_cli-1.0.6.tar.gz/tapis_cli-1.0.6/tapis_cli/commands/taccapis/v2/profiles/search.py | from tapis_cli.display import Verbosity
from tapis_cli.search import SearchWebParamEqualsOnly as SearchWebParam
from tapis_cli.commands.taccapis import SearchableCommand
from . import API_NAME, SERVICE_VERSION
from .models import Profile
from .formatters import ProfilesFormatMany
__all__ = ['ProfilesSearch']
class ... | PypiClean |
/dirtrav-1.0.0.tar.gz/dirtrav-1.0.0/docs/patterns/javascript.rst | JavaScript, ``fetch``, and JSON
===============================
You may want to make your HTML page dynamic, by changing data without
reloading the entire page. Instead of submitting an HTML ``<form>`` and
performing a redirect to re-render the template, you can add
`JavaScript`_ that calls |fetch|_ and replaces conte... | PypiClean |
/python_pangea-0.3.2.tar.gz/python_pangea-0.3.2/pangea/dump_audit.py |
import argparse
import io
import json
import os
import sys
from datetime import datetime
import dateutil.parser
from pangea.response import PangeaResponse
from pangea.services import Audit
from pangea.tools_util import get_script_name, init_audit, make_aware_datetime, print_progress_bar
def dump_event(output: io.T... | PypiClean |
/flasgger-tschaume-0.9.7.tar.gz/flasgger-tschaume-0.9.7/flasgger/ui2/static/lang/es.js | 'use strict';
/* jshint quotmark: double */
window.SwaggerTranslator.learn({
"Warning: Deprecated":"Advertencia: Obsoleto",
"Implementation Notes":"Notas de implementación",
"Response Class":"Clase de la Respuesta",
"Status":"Status",
"Parameters":"Parámetros",
"Parameter":"Parámetro",
"Val... | PypiClean |
/sdss_mangadap-4.1.1-py3-none-any.whl/mangadap/util/modeling.py | import numpy
from .filter import BoxcarFilter
def reject_residuals_1d(resid, lo=3.0, hi=3.0, boxcar=None):
r"""
Reject fit residuals.
Args:
resid (`numpy.ndarray`_, numpy.ma.MaskedArray`_):
Weighted fit residuals. If input as a `numpy.ndarray`_,
all data is included in the ... | PypiClean |
/deepomatic-api-0.9.0.tar.gz/deepomatic-api-0.9.0/deepomatic/api/mixins.py | from deepomatic.api.exceptions import DeepomaticException
from deepomatic.api.resource import ResourceList
###############################################################################
class Arg(object):
def __init__(self, required, mutable):
self._shoud_be_present_when_adding = required
self._... | PypiClean |
/cdktf-cdktf-provider-github-11.0.1.tar.gz/cdktf-cdktf-provider-github-11.0.1/src/cdktf_cdktf_provider_github/data_github_actions_organization_registration_token/__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 DataGithubActionsOrganizationRegistrationToken(
_c... | PypiClean |
/django-sodar-core-0.13.1.tar.gz/django-sodar-core-0.13.1/projectroles/static/projectroles/js/iconify.min.js | "use strict";if(void 0===self.Iconify&&(self.Iconify={isReady:!1},self.SimpleSVG=self.Iconify,function(e,t){var i,n,o,r,s,a,c,l,u,d,f,h,p,v,g,b,m,y,w,_,x,O,A,j,I,E,k,C,M,L,S,N,P,T,F,R,D,H,V,G,Q,z,B,q,Y,J,U,W,$,K,X,Z,ee,te,ie,ne,oe,re={config:{},version:"1.0.6"};function se(e,t){var i;return t=t||{bubbles:!1,cancelable:... | PypiClean |
/python_core-0.1.2-py3-none-any.whl/core/__collections/LinkedList.py | class Node:
def __init__(self, data=None):
self.data = data
self.next = None
def __str__(self):
content = f"Node({self.data})"
return content
class LinkedList:
def __init__(self):
self.head = Node()
def append(self, data):
current_node = self.head
... | PypiClean |
/cyclonedds_nightly-2023.8.29-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/cyclonedds/tools/cli/layout/barchart.py | import math
from typing import List, Optional
from rich.text import Text
from rich.panel import Panel
from rich.measure import Measurement
from rich.console import Console, ConsoleOptions, RenderResult
def nice_axis_range(minv, maxv):
if maxv - minv <= 0:
if maxv == minv:
maxv += 1
el... | PypiClean |
/pulumi_aws_native-0.75.1a1693503310.tar.gz/pulumi_aws_native-0.75.1a1693503310/pulumi_aws_native/iotsitewise/project.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__ = ['ProjectArgs', 'Project']
@pulumi.input_type
class ProjectArgs:
def __init__(__self__, *,
... | PypiClean |
/ka-lite-static-0.17.6b2.tar.gz/ka-lite-static-0.17.6b2/kalite/distributed/static/js/distributed/audio/views.js | var soundManager = require("soundmanager2").soundManager;
var ContentBaseView = require("content/baseview");
var Handlebars = require("base/handlebars");
require("../../../css/distributed/audio.css");
var AudioPlayerView = ContentBaseView.extend({
template: require("./hbtemplates/audio-player.handlebars"),
... | PypiClean |
/xyz_mediavendors-0.0.1-py3-none-any.whl/xyz_mediavendors/kuwo.py | from __future__ import unicode_literals
from xyz_embedmedia.vendor import Vendor
from xyz_embedmedia.helper import ScrapyResponse, extract_between, http_get
from xyz_embedmedia.decorators import register
import requests, time, json
try:
from django.utils.six.moves.urllib.parse import urlsplit
except:
from urlli... | PypiClean |
/alibabacloud_dingtalk-2.0.32-py3-none-any.whl/alibabacloud_dingtalk/trip_1_0/models.py | from Tea.model import TeaModel
from typing import Dict, List
class SyncBusinessSignInfoHeaders(TeaModel):
def __init__(
self,
common_headers: Dict[str, str] = None,
x_acs_dingtalk_access_token: str = None,
):
self.common_headers = common_headers
self.x_acs_dingtalk_acce... | PypiClean |
/GoogleCalendarV3-0.1.7.tar.gz/GoogleCalendarV3-0.1.7/google_calendar_v3/google_calendar_v3.py | __author__ = 'static@siftcal.com (Ashutosh Priyadarshy)'
from requests_oauthlib import OAuth2Session
class GoogleCalendarAPI(object):
def __init__(self, client_id=None, client_secret=None,
acc_token=None, ref_token=None, expires_in=None,
token_updater=None):
"""Construc... | PypiClean |
/llm_toys-0.1.1-py3-none-any.whl/llm_toys/hf/transformers/models/vit_msn/modeling_vit_msn.py | import collections.abc
import math
from typing import Dict, List, Optional, Set, Tuple, Union
import torch
import torch.utils.checkpoint
from torch import nn
from torch.nn import BCEWithLogitsLoss, CrossEntropyLoss, MSELoss
from ...activations import ACT2FN
from ...modeling_outputs import BaseModelOutput, ImageClassi... | PypiClean |
/netoprmgr-1.3.5.tar.gz/netoprmgr-1.3.5/wtforms/ext/dateutil/fields.py | from __future__ import unicode_literals
from dateutil import parser
from wtforms.fields import Field
from wtforms.validators import ValidationError
from wtforms.widgets import TextInput
__all__ = (
'DateTimeField', 'DateField',
)
# This is a fix to handle issues in dateutil which arose in version 2.2.
# A bug... | PypiClean |
/canvas-cppgrader-1.1.2.tar.gz/canvas-cppgrader-1.1.2/cppgrader/components/AutoBuilder.py | import subprocess
import os
from typing import Dict, List, Tuple
from tqdm import tqdm
class AutoBuilder:
"""Build submissions
"""
shell_executable: str = '/bin/zsh'
def __init__(self, args, shell_executable: str='/bin/zsh'):
self.task_dir: str = args.output_dir
self.original_working_... | PypiClean |
/wzdx-translator-jacob6838-0.4.5.tar.gz/wzdx-translator-jacob6838-0.4.5/wzdx/raw_to_standard/icone.py | import argparse
import json
import logging
import time
import uuid
import datetime
import xml.etree.ElementTree as ET
from collections import OrderedDict
from wzdx.tools import date_tools, polygon_tools, wzdx_translator
from wzdx.util.collections import PathDict
from wzdx.standard_to_enhanced import icone_translator
... | PypiClean |
/simularium_metrics_calculator-1.0.2.tar.gz/simularium_metrics_calculator-1.0.2/CODE_OF_CONDUCT.md | # Contributor Covenant Code of Conduct
## Our Pledge
In the interest of fostering an open and welcoming environment, we as
contributors and maintainers pledge to making participation in our project and
our community a harassment-free experience for everyone, regardless of age, body
size, disability, ethnicity, sex ch... | PypiClean |
/python_da_final_vkaul-0.0.1.tar.gz/python_da_final_vkaul-0.0.1/.eggs/numpy-1.20.1-py3.9-win-amd64.egg/numpy/ma/core.py | import builtins
import inspect
import operator
import warnings
import textwrap
import re
from functools import reduce
import numpy as np
import numpy.core.umath as umath
import numpy.core.numerictypes as ntypes
from numpy import ndarray, amax, amin, iscomplexobj, bool_, _NoValue
from numpy import array as narray
from ... | PypiClean |
/eea.relations-12.3.zip/eea.relations-12.3/eea/relations/content/tool.py | from zope.interface import implements
from Products.CMFCore.utils import UniqueObject, getToolByName
from Products.Archetypes.atapi import OrderedBaseFolder
from Products.Archetypes.atapi import OrderedBaseFolderSchema
from Products.Archetypes.atapi import Schema
from eea.relations.content.interfaces import IRelationsT... | PypiClean |
/cytominer_database-0.3.4.tar.gz/cytominer_database-0.3.4/README.rst | cytominer-database
==================
.. image:: https://travis-ci.org/cytomining/cytominer-database.svg?branch=master
:target: https://travis-ci.org/cytomining/cytominer-database
:alt: Build Status
.. image:: https://readthedocs.org/projects/cytominer-database/badge/?version=latest
:target: http://cytomi... | PypiClean |
/jay3332-discord.py-2.0.0a0.tar.gz/jay3332-discord.py-2.0.0a0/discord/user.py | from __future__ import annotations
from typing import Any, Dict, List, Optional, Type, TypeVar, TYPE_CHECKING
import discord.abc
from .asset import Asset
from .colour import Colour
from .enums import DefaultAvatar
from .flags import PublicUserFlags
from .utils import snowflake_time, _bytes_to_base64_data, MISSING
if... | PypiClean |
/genie.libs.parser-23.8-py3-none-any.whl/genie/libs/parser/iosxe/show_access.py | import re
from genie.metaparser import MetaParser
from genie.metaparser.util.schemaengine import Any, Optional
# ====================
# Schema for:
# * 'show access-tunnel summary'
# ====================
class ShowAccessTunnelSummarySchema(MetaParser):
"""Schema for show access-tunnel summary."""
schema = {... | PypiClean |
/ax-platform-0.3.4.tar.gz/ax-platform-0.3.4/ax/modelbridge/pairwise.py |
from __future__ import annotations
from typing import List, Optional, Tuple
import numpy as np
import torch
from ax.core.observation import ObservationData, ObservationFeatures
from ax.core.types import TCandidateMetadata
from ax.modelbridge.torch import TorchModelBridge
from botorch.models.utils.assorted import con... | PypiClean |
/pythreador-0.1.2-py3-none-any.whl/threador/thread_utils.py | from __future__ import annotations
import typing
import argparse
import toolstr
if typing.TYPE_CHECKING:
import typing_extensions
class Tweet(typing_extensions.TypedDict):
text: str
annotations: TweetAnnotations
length: int
class TweetAnnotations(typing_extensions.TypedDict):
... | PypiClean |
/tencentcloud-python-sdk-3.0.960.tar.gz/tencentcloud-python-sdk-3.0.960/tencentcloud/mgobe/v20201014/models.py |
import warnings
from tencentcloud.common.abstract_model import AbstractModel
class ChangeRoomPlayerProfileRequest(AbstractModel):
"""ChangeRoomPlayerProfile请求参数结构体
"""
def __init__(self):
r"""
:param _GameId: 游戏资源Id。
:type GameId: str
:param _PlayerId: 发起修改的玩家Id。
... | PypiClean |
/RsCMPX_WcdmaMeas-4.0.185.tar.gz/RsCMPX_WcdmaMeas-4.0.185/RsCMPX_WcdmaMeas/Implementations/WcdmaMeas/MultiEval/Carrier/Trace/RcdError/Edpdch/Current.py | from typing import List
from ........Internal.Core import Core
from ........Internal.CommandsGroup import CommandsGroup
from ........Internal.ArgSingleSuppressed import ArgSingleSuppressed
from ........Internal.Types import DataType
from ........ import repcap
# noinspection PyPep8Naming,PyAttributeOutsideInit,Spell... | PypiClean |
/jupyterhub_url_sharing-0.1.0.tar.gz/jupyterhub_url_sharing-0.1.0/node_modules/ws/lib/stream.js | 'use strict';
const { Duplex } = require('stream');
/**
* Emits the `'close'` event on a stream.
*
* @param {Duplex} stream The stream.
* @private
*/
function emitClose(stream) {
stream.emit('close');
}
/**
* The listener of the `'end'` event.
*
* @private
*/
function duplexOnEnd() {
if (!this.destroyed... | PypiClean |
/panoptes-pocs-0.7.8.tar.gz/panoptes-pocs-0.7.8/scripts/install/install-pocs.sh | set -e
usage() {
echo -n "##################################################
# Install POCS and friends.
#
# Script Version: 2021-07-15
#
# This script is designed to install the PANOPTES Observatory
# Control System (POCS) on a cleanly installed Ubuntu system
# (ideally on a Raspberry Pi).
#
# This script is meant ... | PypiClean |
/ifly_ailab-1.0.0-py3-none-any.whl/ailab/inference_wrapper/huggingface/transformers/multimodal/image_to_text/wrapper/wrapper.py | import io
import json
from aiges.core.types import *
# from ifly_atp_sdk.huggingface.pipelines import pipeline
from transformers import pipeline
from PIL import Image
try:
from aiges_embed import ResponseData, Response, DataListNode, DataListCls # c++
except:
from aiges.dto import Response, ResponseData, Data... | PypiClean |
/django-fobi-0.19.9.tar.gz/django-fobi-0.19.9/src/fobi/discover.py | import logging
import sys
import six
# from django.conf import settings
from django.utils.module_loading import autodiscover_modules
from .conf import get_setting
logger = logging.getLogger(__file__)
__title__ = "fobi.discover"
__author__ = "Artur Barseghyan <artur.barseghyan@gmail.com>"
__copyright__ = "2014-2019... | PypiClean |
/sotrace-1.1.2.tar.gz/sotrace-1.1.2/README.md | # sotrace
This package opens up StackOverflow posts for your errors. It's the ultimate efficiency tool!
## Example Usage
```py
from sotrace import open_link
try:
my_dict = {}
print(my_dict[1])
except Exception as e:
open_link(e)
```
```py
from sotrace import open_link
open_link("What does the yield key... | PypiClean |
/dsin100days603v37-6.0.3.tar.gz/dsin100days603v37-6.0.3/notebook/static/components/MathJax/extensions/a11y/mathmaps/es/symbols/latin-mathfonts-sans-serif.js | [{"locale":"es"},{"category":"Lu","mappings":{"default":{"default":"sans-serif mayúscula A"}},"key":"1D5A0"},{"category":"Lu","mappings":{"default":{"default":"sans-serif mayúscula B"}},"key":"1D5A1"},{"category":"Lu","mappings":{"default":{"default":"sans-serif mayúscula C"}},"key":"1D5A2"},{"category":"Lu","mappings"... | PypiClean |
/django_dsfr-0.14.1.tar.gz/django_dsfr-0.14.1/dsfr/static/dsfr/dist/component/callout/README.md | # callout
La mise en avant permet à l’utilisateur de distinguer rapidement une information qui vient compléter le contenu consulté.
## Dépendances
```shell
callout
└─ core
└─ button
```
## Utilisation
Afin d’utiliser le composant `callout`, il est nécessaire d’ajouter les fichiers de styles et de scripts présents da... | PypiClean |
/bpy_nibbler-0.1.tar.gz/bpy_nibbler-0.1/bpy_lambda/2.78/scripts/addons/add_advanced_objects_menu/pixelate_3d.py |
bl_info = {
"name": "3D Pixelate",
"author": "liero",
"version": (0, 5, 3),
"blender": (2, 74, 0),
"location": "View3D > Tool Shelf",
"description": "Creates a 3d pixelated version of the object",
"category": "Object"}
# Note: winmgr properties are moved to the operator
import bpy
from b... | PypiClean |
/colbert-ir-0.2.2.tar.gz/colbert-ir-0.2.2/colbert/utils/utils.py | import os
import tqdm
import torch
import datetime
import itertools
from multiprocessing import Pool
from collections import OrderedDict, defaultdict
def print_message(*s, condition=True, pad=False):
s = ' '.join([str(x) for x in s])
msg = "[{}] {}".format(datetime.datetime.now().strftime("%b %d, %H:%M:%S"),... | PypiClean |
/nemo_text_processing-0.2.0rc0-py3-none-any.whl/nemo_text_processing/text_normalization/en/taggers/time.py |
import pynini
from nemo_text_processing.text_normalization.en.graph_utils import (
NEMO_DIGIT,
GraphFst,
convert_space,
delete_space,
insert_space,
)
from nemo_text_processing.text_normalization.en.utils import (
augment_labels_with_punct_at_end,
get_abs_path,
load_labels,
)
from pynin... | PypiClean |
/fds.sdk.ProcuretoPaySCIM-0.20.0-py3-none-any.whl/fds/sdk/ProcuretoPaySCIM/model/schema_attributes.py | import re # noqa: F401
import sys # noqa: F401
from fds.sdk.ProcuretoPaySCIM.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... | PypiClean |
/git-deps-1.1.0.zip/git-deps-1.1.0/git_deps/html/node_modules/browserify-aes/encrypter.js | var MODES = require('./modes')
var AuthCipher = require('./authCipher')
var Buffer = require('safe-buffer').Buffer
var StreamCipher = require('./streamCipher')
var Transform = require('cipher-base')
var aes = require('./aes')
var ebtk = require('evp_bytestokey')
var inherits = require('inherits')
function Cipher (mode... | PypiClean |
/odoo13_addon_base_tier_validation_forward-13.0.1.1.1-py3-none-any.whl/odoo/addons/base_tier_validation_forward/readme/DESCRIPTION.rst | This module add an advance option to base_tier_validation.
* To allow "Forward" the tier to different user.
**Sample use case:**
A user is appointed to approve a tire, but he/she don't want to make decision
for some reason, and want to pass/forward the decision to another person.
User can then click on Forward inst... | PypiClean |
/idg_metadata_client-1.0.2.0-py3-none-any.whl/metadata/ingestion/ometa/credentials.py | import os
from typing import Tuple
import dateutil.parser
from metadata.utils.logger import ometa_logger
Credentials = Tuple[str, str, str]
logger = ometa_logger()
class URL(str):
"""
Handle URL for creds retrieval
Args:
value (tuple):
Attributes:
value (value):
"""
def ... | PypiClean |
/omero-certificates-0.2.0.tar.gz/omero-certificates-0.2.0/omero_certificates/certificates.py | import logging
import os
import subprocess
from omero.config import ConfigXml
log = logging.getLogger(__name__)
def update_config(omerodir):
"""
Updates OMERO config with certificate properties if necessary
"""
cfg = ConfigXml(os.path.join(omerodir, "etc", "grid", "config.xml"))
cfgdict = cfg.as... | PypiClean |
/kentoml-1.0.20.post10-py3-none-any.whl/bentoml/_internal/frameworks/picklable.py | from __future__ import annotations
import typing as t
import logging
from types import ModuleType
from typing import TYPE_CHECKING
import cloudpickle
import bentoml
from bentoml import Tag
from bentoml.models import Model
from bentoml.models import ModelContext
from bentoml.exceptions import NotFound
from ..models ... | PypiClean |
/Skyway_cloud-1.0.0.tar.gz/Skyway_cloud-1.0.0/src/skyway_ndtrung/slurm/__main__.py | from . import *
if len(sys.argv)<2:
print('''
Usage:
--update-users update accounts and users in SLURMDBD
--update-conf update slurm.conf (needs to restart slurmctld manually)
''')
elif sys.argv[1] == '--update-users':
slurm_users = slurm.account_users()
skyway_accts = account.accounts... | PypiClean |
/dfisher_2022a-0.1.28.tar.gz/dfisher_2022a-0.1.28/python/dfisher_2022a/app.py | import logging
import os
from lmfit import Model
from mpdaf.obj import Cube
from .cube import CubeRegion, ProcessedCube, ReadCubeFile, RestCube, SNRMap
from .fits.cpufitter import CubeFitterLM, ResultLM
from .line import Line
logger = logging.getLogger(__name__)
# CPU COUNT
CPU_COUNT = os.cpu_count()
# NOTE: once ... | PypiClean |
/CryptoParser-0.10.0.tar.gz/CryptoParser-0.10.0/cryptoparser/common/x509.py |
import datetime
import enum
import attr
from cryptodatahub.common.stores import CertificateTransparencyLog, CertificateTransparencyLogParamsBase
from cryptoparser.common.base import (
Opaque,
OpaqueParam,
Serializable,
VectorParamParsable,
VectorParsable,
)
from cryptoparser.common.parse import ... | PypiClean |
/ensmallen_graph-0.6.0-cp37-cp37m-manylinux2010_x86_64.whl/ensmallen_graph/datasets/string/pseudomonasputidanbrc14164.py | from typing import Dict
from ..automatic_graph_retrieval import AutomaticallyRetrievedGraph
from ...ensmallen_graph import EnsmallenGraph # pylint: disable=import-error
def PseudomonasPutidaNbrc14164(
directed: bool = False,
verbose: int = 2,
cache_path: str = "graphs/string",
**additional_graph_kwa... | PypiClean |
/secretflow_ray-2.2.0-cp38-cp38-macosx_10_16_x86_64.whl/secretflow_ray-2.2.0.data/purelib/ray/dag/vis_utils.py | from ray.dag import DAGNode
import os
import tempfile
from ray.dag.utils import _DAGNodeNameGenerator
from ray.util.annotations import DeveloperAPI
@DeveloperAPI
def plot(dag: DAGNode, to_file=None):
if to_file is None:
tmp_file = tempfile.NamedTemporaryFile(suffix=".png")
to_file = tmp_file.nam... | PypiClean |
/alphazeta.warden-0.6.0.6.tar.gz/alphazeta.warden-0.6.0.6/src/warden/static/dependencies/font-awesome/js/regular.js | (function () {
'use strict';
var _WINDOW = {};
var _DOCUMENT = {};
try {
if (typeof window !== 'undefined') _WINDOW = window;
if (typeof document !== 'undefined') _DOCUMENT = document;
} catch (e) {}
var _ref = _WINDOW.navigator || {},
_ref$userAgent = _ref.userAgent,
userAgent = _ref... | PypiClean |
/allennlp-light-1.0.0.tar.gz/allennlp-light-1.0.0/allennlp_light/modules/seq2vec_encoders/bert_pooler.py | from typing import Any, Dict, Optional
import torch
import torch.nn
from allennlp_light.modules.seq2vec_encoders.seq2vec_encoder import Seq2VecEncoder
@Seq2VecEncoder.register("bert_pooler")
class BertPooler(Seq2VecEncoder):
"""
The pooling layer at the end of the BERT model. This returns an embedding for t... | PypiClean |
/berry_suite-1.0.2-py3-none-any.whl/berry/conductivity.py | from multiprocessing import Array, Pool
from typing import Tuple, Sequence
from itertools import product
import os
import ctypes
import logging
import numpy as np
from berry import log
try:
import berry._subroutines.loaddata as d
import berry._subroutines.loadmeta as m
except:
pass
def load_berry_conn... | PypiClean |
/nanome-jax-2.0.11.tar.gz/nanome-jax-2.0.11/utils/hm_cluster_predict.py |
import os, sys, time
from collections import defaultdict
import glob
import numpy as np
from scipy import stats
import locale
##locale.setlocale(locale.LC_ALL, 'en_US') ## failed in google cloud
import tensorflow as tf
batch_size = 4096
cov_thrd = 5
def readBed(bedfile, t_chr=None, t_start=None, t_end=None):
... | PypiClean |
/a-poem-0.12.3.tar.gz/a-poem-0.12.3/poetry/packages/package.py | import copy
import re
from contextlib import contextmanager
from typing import Union
from poetry.semver import Version
from poetry.semver import parse_constraint
from poetry.spdx import license_by_id
from poetry.spdx import License
from poetry.utils._compat import Path
from poetry.utils.helpers import canonicalize_na... | PypiClean |
/glance_store-4.6.1.tar.gz/glance_store-4.6.1/glance_store/common/attachment_state_manager.py |
import collections
import contextlib
import logging
import socket
import threading
from oslo_config import cfg
from glance_store.common import cinder_utils
from glance_store import exceptions
from glance_store.i18n import _LE, _LW
LOG = logging.getLogger(__name__)
HOST = socket.gethostname()
CONF = cfg.CONF
cla... | PypiClean |
/djsuperadmin-0.11.3.tar.gz/djsuperadmin-0.11.3/README.md | # DjSuperAdmin [](https://pypi.org/project/djsuperadmin/)  :
"""
multiply two quaternions or two arrays of quaternions
Parameters
----------
q1 : array_like
a 4 element array, or an Nx4 element array, representing quaterni... | PypiClean |
/trinity-0.1.0a31.tar.gz/trinity-0.1.0a31/eth2/beacon/db/schema.py | from abc import ABC, abstractmethod
from eth2.beacon.constants import HashTreeRoot, SigningRoot
class BaseSchema(ABC):
#
# State
#
@staticmethod
@abstractmethod
def make_head_state_slot_lookup_key() -> bytes:
...
@staticmethod
@abstractmethod
def make_slot_to_state_root_l... | PypiClean |
/mys_goods_tool-2.1.0b1.tar.gz/mys_goods_tool-2.1.0b1/mys_goods_tool/custom_widget.py | from __future__ import annotations
from itertools import zip_longest
from typing import Optional, Tuple
from rich.console import RenderableType
from rich.text import TextType
from textual import events
from textual.app import ComposeResult
from textual.events import Event
from textual.widgets import (
Button,
... | PypiClean |
/inasafe-parameters-2.0.0.tar.gz/inasafe-parameters-2.0.0/parameters/qt_widgets/group_parameter_widget.py | """Group Parameter Widget."""
from PyQt5.QtWidgets import QVBoxLayout, QCheckBox
from parameters.qt_widgets.generic_parameter_widget import (
GenericParameterWidget)
__copyright__ = "Copyright 2014, The InaSAFE Project"
__license__ = "GPL version 3"
__email__ = "info@inasafe.org"
__revision__ = '$Format:%H$'
c... | PypiClean |
/aliyun-python-sdk-mse-3.0.24.tar.gz/aliyun-python-sdk-mse-3.0.24/aliyunsdkmse/request/v20190531/UpdateGatewayDomainRequest.py |
from aliyunsdkcore.request import RpcRequest
from aliyunsdkmse.endpoint import endpoint_data
class UpdateGatewayDomainRequest(RpcRequest):
def __init__(self):
RpcRequest.__init__(self, 'mse', '2019-05-31', 'UpdateGatewayDomain','mse')
self.set_method('POST')
if hasattr(self, "endpoint_map"):
setattr(self,... | PypiClean |
/yupeeee-pytools-0.1.23.tar.gz/yupeeee-pytools-0.1.23/src/yupeeee_pytools/train/lr_scheduler.py | from torch.optim import lr_scheduler
__all__ = [
"build_scheduler",
]
schedulers = [
# "LambdaLR",
# "MultiplicativeLR",
"StepLR",
"MultiStepLR",
# "ConstantLR",
# "LinearLR",
# "ExponentialLR",
# "PolynomialLR",
"CosineAnnealingLR",
# "SequentialLR",
# "CyclicLR",
... | PypiClean |
/nci_cidc_api_modules-0.27.46.tar.gz/nci_cidc_api_modules-0.27.46/cidc_api/models/files/facets.py | from collections import defaultdict
from copy import deepcopy
from typing import Any, Dict, List, Optional, Union
from werkzeug.exceptions import BadRequest
class FacetConfig:
facet_groups: List[str]
description: Optional[str]
def __init__(self, facet_groups: List[str], description: Optional[str] = None... | PypiClean |
/CProxy-0.1a1.tar.gz/CProxy-0.1a1/README.md | # Caching Proxy
CProxy (CP) is a HTTP caching proxy server written in Python 3. With the aim of being able to surf the Internet completely offline, it will intercept Browser's HTTPs requests and decrypt the the traffic on-the-fly to store each successful HTTP response.
This work is inspired by [coursera-dl](https:/... | PypiClean |
/pecc-0.2.1.tar.gz/pecc-0.2.1/README.md | # PECC (Python Epitopic Charge Calculator)
### Overview
PECC is a python package designed to calculate efficiently the HLA Epitopic Charge (based on the
[EpRegistry database](https://www.epregistry.com.br/)) between donors and recipients by loading in a pandas.DataFrame
in `epitope_comparison.compute_epitopic_charge`.... | PypiClean |
/djangorm-0.1.tar.gz/djangorm-0.1/django_orm/forms/boundfield.py | import re
from djangorm.core.exceptions import ValidationError
from djangorm.forms.utils import pretty_name
from djangorm.forms.widgets import MultiWidget, Textarea, TextInput
from djangorm.utils.functional import cached_property
from djangorm.utils.html import format_html, html_safe
from djangorm.utils.translation im... | PypiClean |
/cloudforet_api-1.1.2rc1-py3-none-any.whl/spaceone/api/monitoring/v1/alert_pb2_grpc.py | """Client and server classes corresponding to protobuf-defined services."""
import grpc
from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2
from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2
from spaceone.api.monitoring.v1 import alert_pb2 as spaceone_dot_api_dot_moni... | PypiClean |
/openspeechs-0.1-py3-none-any.whl/openspeech/optim/scheduler/tri_stage_lr_scheduler.py |
import math
import torch
from dataclasses import dataclass, field
from typing import Optional
from omegaconf import DictConfig
from torch.optim import Optimizer
from openspeech.dataclass.configurations import LearningRateSchedulerConfigs
from openspeech.optim.scheduler import register_scheduler
from openspeech.optim.... | PypiClean |
/taskcc-alipay-sdk-python-3.3.398.tar.gz/taskcc-alipay-sdk-python-3.3.398/alipay/aop/api/domain/AlipayOpenMiniTemplateUsageQueryModel.py | import json
from alipay.aop.api.constant.ParamConstants import *
class AlipayOpenMiniTemplateUsageQueryModel(object):
def __init__(self):
self._bundle_id = None
self._page_num = None
self._page_size = None
self._template_id = None
self._template_version = None
@prope... | PypiClean |
/mezzanine-organization-1.0.tar.gz/mezzanine-organization-1.0/organization/media/migrations/0003_auto_20160929_1835.py | from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('organization-media', '0002_auto_20160929_1310'),
]
operations = [
migrations.AddField(
model_name='mediacategory',
name='des... | PypiClean |
/evoclearn_core-0.18.6-py3-none-any.whl/evoclearn/core/features.py |
import numpy as np
import librosa
try:
import python_speech_features as psfeat
except ImportError:
pass
from . import vocaltractlab as vtl
from . import log
from . utils import vtln
from . import distance as dist
LOGGER = log.getLogger("evl.core.features")
ORIG_FEATS = {
"feature_type": "mfcc",
"p... | PypiClean |
/alipay_sdk_python-3.6.740-py3-none-any.whl/alipay/aop/api/request/KoubeiCateringPosPaymodeDeleteRequest.py | import json
from alipay.aop.api.FileItem import FileItem
from alipay.aop.api.constant.ParamConstants import *
from alipay.aop.api.domain.KoubeiCateringPosPaymodeDeleteModel import KoubeiCateringPosPaymodeDeleteModel
class KoubeiCateringPosPaymodeDeleteRequest(object):
def __init__(self, biz_model=None):
... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.