id stringlengths 1 8 | text stringlengths 6 1.05M | dataset_id stringclasses 1
value |
|---|---|---|
/pyweaver-0.0.10-py3-none-any.whl/PyWeaver/static/mxGraph/js/handler/mxKeyHandler.js | * Class: mxKeyHandler
*
* Event handler that listens to keystroke events. This is not a singleton,
* however, it is normally only required once if the target is the document
* element (default).
*
* This handler installs a key event listener in the topmost DOM node and
* processes all events that originate fro... | PypiClean |
/pyFreenet3-0.5.9.tar.gz/pyFreenet3-0.5.9/freenet_passlib_170/handlers/mssql.py | from binascii import hexlify, unhexlify
from hashlib import sha1
import re
import logging; log = logging.getLogger(__name__)
from warnings import warn
# site
# pkg
from freenet_passlib_170.utils import consteq
from freenet_passlib_170.utils.compat import bascii_to_str, unicode, u
import freenet_passlib_170.utils.handle... | PypiClean |
/sagemath-standard-10.0b0.tar.gz/sagemath-standard-10.0b0/sage/algebras/quantum_groups/quantum_group_gap.py |
from sage.misc.lazy_attribute import lazy_attribute
from sage.misc.cachefunc import cached_method
from sage.structure.parent import Parent
from sage.structure.element import Element
from sage.structure.unique_representation import UniqueRepresentation
from sage.structure.sage_object import SageObject
from sage.structu... | PypiClean |
/kafka_connect_api-0.5.9-py3-none-any.whl/kafka_connect_api/aws_lambdas.py | import logging
from os import environ
from time import sleep
from jsonschema import validate
from .kafka_connect_api import Api, Cluster, Connector
from .tools import KEYISSET
CLUSTER_CONFIG_SCHEMA = {
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "kafka-connect-cluster-lambda-config",
"ty... | PypiClean |
/reqmgr2ms-monitor-2.2.4rc2.tar.gz/reqmgr2ms-monitor-2.2.4rc2/src/python/WMCore/Services/WorkQueue/WorkQueue.py | from builtins import str, bytes, object
from future.utils import viewitems
from collections import defaultdict
from WMCore.Database.CMSCouch import CouchServer, CouchConflictError
from WMCore.Lexicon import splitCouchServiceURL
from WMCore.WMSpec.WMWorkload import WMWorkloadHelper
from WMCore.WorkQueue.DataStructs.Wor... | PypiClean |
/octodns-cloudflare-0.0.2.tar.gz/octodns-cloudflare-0.0.2/octodns_cloudflare/__init__.py |
from collections import defaultdict
from copy import deepcopy
from logging import getLogger
from requests import Session
from time import sleep
from urllib.parse import urlsplit
from octodns.record import Record, Update
from octodns.provider import ProviderException
from octodns.provider.base import BaseProvider
__V... | PypiClean |
/sspo_db-10.0.2-py3-none-any.whl/sspo_db/model/factories.py | from sspo_db.model.activity.models import *
from sspo_db.model.artifact.models import *
from sspo_db.model.core.models import *
from sspo_db.model.organization.models import *
from sspo_db.model.process.models import *
from sspo_db.model.stakeholder.models import *
from sspo_db.model.stakeholder_participation.models im... | PypiClean |
/django_addanother-2.2.2.tar.gz/django_addanother-2.2.2/django_addanother/contrib/select2.py | import textwrap
import django_select2.forms # NOQA
import django_addanother.widgets # NOQA
def _gen_classes(globals_, locals_):
wrapper_classes = [
'AddAnotherWidgetWrapper',
'EditSelectedWidgetWrapper',
'AddAnotherEditSelectedWidgetWrapper',
]
select2_widgets = [
'Selec... | PypiClean |
/Weblate_a1az-4.3.2.2-py3-none-any.whl/weblate/utils/tasks.py |
import os
import subprocess
import sys
import time
from importlib import import_module
from shutil import copyfile
from celery.schedules import crontab
from django.conf import settings
from django.core.cache import cache
from django.core.management.commands import diffsettings
import weblate
from weblate.formats.mo... | PypiClean |
/django-cookiesession-0.1.1.tar.gz/django-cookiesession-0.1.1/cookiesession/middleware.py | from base64 import b64decode, b64encode
from time import time
from django.conf import settings
from django.core.exceptions import SuspiciousOperation
from django.core.cache import cache
from django.db.models.signals import post_save
from django.utils import simplejson
from django.utils.http import cookie_date
from dja... | PypiClean |
/bon_csvAvg-0.2.tar.gz/bon_csvAvg-0.2/bon_csvAvg.py | import sys
from csv import DictReader, DictWriter
# from "man 8 bonnie++"
# Data volumes for the 80 column text display use
# "K" for KiB (1024 bytes),
# "M" for MiB (1048576 bytes),
# and "G" for GiB (1073741824 bytes).
# So K/sec means a multiple of 1024 bytes per second.
class intByte(int):
_units = ('G', 'M',... | PypiClean |
/XStatic_svgedit-7.2.0.2-py3-none-any.whl/xstatic/pkg/svgedit/data/src/editor/extensions/ext-helloworld/ext-helloworld.js | * This is a very basic SVG-Edit extension. It adds a "Hello World" button in
* the left ("mode") panel. Clicking on the button, and then the canvas
* will show the user the point on the canvas that was clicked on.
*/
const name = 'helloworld'
const loadExtensionTranslation = async function (svgEditor) {
let trans... | PypiClean |
/askbot-tuanpa-0.7.48.zip/askbot-tuanpa-0.7.48/askbot/migrations/0142_auto__add_groupmembership.py | import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'GroupMembership'
db.create_table('askbot_groupmembership', (
('authusergroups_ptr', self.gf('django.db.m... | 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_bigquery_dataset/__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 GoogleBigqueryDataset(
cdktf.TerraformResource,
metaclass=jsii.JSIIMeta,
jsii_type="@... | PypiClean |
/hangman-game-1.0.6.tar.gz/hangman-game-1.0.6/README.md | ```
___________.._______
| .__________))______|
| | / / ||
| |/ / ||
| | / ||.-''.
| |/ |/ _ \
| | || `/,|
| | (\\`_.'
| | .-`--'.
| | /Y . . Y\
| | // | | \\
| | // | . | \\
| | ') | ... | PypiClean |
/artemis_labs-0.1.119.tar.gz/artemis_labs-0.1.119/src/artemis_labs/artemis_token_chain.py |
from typing import Any, List
from .artemis_token_parser import TokenParser
from .artemis_token import Token, TokenType
class TokenChain():
'''
This represents a chain of tokens associated with a line
'''
def __init__(self, line : str):
'''
This takes in a line and turns it into a tok... | PypiClean |
/eea.exhibit-8.9.zip/eea.exhibit-8.9/eea/exhibit/simile/exhibit/2.2.0/api/locales/de/exhibit-de-bundle.js |
/* database-l10n.js */
if(!("l10n" in Exhibit.Database)){Exhibit.Database.l10n={};
}Exhibit.Database.l10n.itemType={label:"Element",pluralLabel:"Elemente",uri:"http://simile.mit.edu/2006/11/exhibit#Item"};
Exhibit.Database.l10n.labelProperty={label:"Bezeichnung",pluralLabel:"Bezeichnungen",reverseLabel:"Bezeichnung ... | PypiClean |
/pulumi_azure_native-2.5.1a1693590910.tar.gz/pulumi_azure_native-2.5.1a1693590910/pulumi_azure_native/streamanalytics/v20200301/_inputs.py |
import copy
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
from ._enums import *
__all__ = [
'AggregateFunctionPropertiesArgs',
'AvroSerializationArgs',
'AzureDataLakeStoreOutputDataSourceArgs',
'Azure... | PypiClean |
/jax_xc-0.0.7-cp38-cp38-manylinux_2_17_x86_64.whl/jax_xc/impl/mgga_x_mvsb.py |
import jax
import jax.lax as lax
import jax.numpy as jnp
from jax.numpy import array as array
from jax.numpy import int32 as int32
from jax.numpy import nan as nan
from typing import Callable, Optional
from .utils import *
def pol(p, r, s=(None, None, None), l=(None, None), tau=(None, None)):
params = p.params
(... | PypiClean |
/shellbot-17.10.20.tar.gz/shellbot-17.10.20/travis_pypi_setup.py | from __future__ import print_function
import base64
import json
import os
from getpass import getpass
import yaml
from cryptography.hazmat.primitives.serialization import load_pem_public_key
from cryptography.hazmat.backends import default_backend
from cryptography.hazmat.primitives.asymmetric.padding import PKCS1v15
... | PypiClean |
/windows_tools.bitlocker-1.0.1.tar.gz/windows_tools.bitlocker-1.0.1/README.md | # windows_tools
## Collection of useful python functions around Microsoft Windows
[](https://opensource.org/licenses/BSD-3-Clause)
[](http://isitm... | PypiClean |
/NiMARE-0.2.0rc2.tar.gz/NiMARE-0.2.0rc2/nimare/meta/models.py | import abc
import copy
import logging
import functorch
import numpy as np
import pandas as pd
import torch
LGR = logging.getLogger(__name__)
class GeneralLinearModelEstimator(torch.nn.Module):
"""Base class for GLM estimators.
Parameters
----------
spatial_coef_dim : :obj:`int`
Number of sp... | PypiClean |
/peartree-0.1.1.tar.gz/peartree-0.1.1/README.rst | ===========
Peartree 🍐🌳
===========
.. image:: https://img.shields.io/travis/kuanb/peartree.svg
:target: https://travis-ci.org/kuanb/peartree
Peartree is a library for converting `GTFS <https://developers.google.com/transit/gtfs/>`__ feed schedules into a representative directed network graph. The tool uses... | PypiClean |
/hi-ml-cpath-0.3.2.tar.gz/hi-ml-cpath-0.3.2/src/health_cpath/models/encoders.py | import math
import numpy as np
import torch
from monai.transforms import Compose
from pathlib import Path
from pl_bolts.models.self_supervised import SimCLR
from timm.models import swin_tiny_patch4_window7_224
from timm.models.swin_transformer import SwinTransformer
from torch import Tensor as T, nn
from torch.utils.c... | PypiClean |
/vcd-cli-24.1.0.tar.gz/vcd-cli-24.1.0/vcd_cli/right.py |
import click
from pyvcloud.vcd.org import Org
from pyvcloud.vcd.utils import to_dict
from vcd_cli.utils import restore_session
from vcd_cli.utils import stderr
from vcd_cli.utils import stdout
from vcd_cli.vcd import abort_if_false
from vcd_cli.vcd import vcd
@vcd.group(short_help='work with rights')
@click.pass_co... | PypiClean |
/youtube_dlc-2020.11.11.post3.tar.gz/youtube_dlc-2020.11.11.post3/youtube_dlc/extractor/closertotruth.py | from __future__ import unicode_literals
import re
from .common import InfoExtractor
class CloserToTruthIE(InfoExtractor):
_VALID_URL = r'https?://(?:www\.)?closertotruth\.com/(?:[^/]+/)*(?P<id>[^/?#&]+)'
_TESTS = [{
'url': 'http://closertotruth.com/series/solutions-the-mind-body-problem#video-3688',... | PypiClean |
/django-adminlte3-amigne-0.1.99.tar.gz/django-adminlte3-amigne-0.1.99/adminlte3/static/admin-lte/plugins/popper/popper.js | var isBrowser = typeof window !== 'undefined' && typeof document !== 'undefined' && typeof navigator !== 'undefined';
const timeoutDuration = function () {
const longerTimeoutBrowsers = ['Edge', 'Trident', 'Firefox'];
for (let i = 0; i < longerTimeoutBrowsers.length; i += 1) {
if (isBrowser && navigator.userAg... | PypiClean |
/quik-ai-1.3.2.tar.gz/quik-ai-1.3.2/src/quik_ai/engine.py | from quik_ai import tuning
from quik_ai import optimizers
from quik_ai import backend
import tensorflow as tf
import keras_tuner as kt
import numpy as np
import pandas as pd
import os
class Driver(tuning.Tunable):
def __init__(
self,
training_data,
validation_data,
testing_... | PypiClean |
/fake_bpy_module_3.2-20230117-py3-none-any.whl/freestyle/functions.py | import sys
import typing
import freestyle.types
import mathutils
GenericType = typing.TypeVar("GenericType")
class ChainingTimeStampF1D:
''' Class hierarchy: `freestyle.types.UnaryFunction1D` > `freestyle.types.UnaryFunction1DVoid` > `ChainingTimeStampF1D`
'''
def __init__(self):
''' Builds a Ch... | PypiClean |
/djangorestframework-files-1.1.0.tar.gz/djangorestframework-files-1.1.0/rest_framework_files/mixins.py | from __future__ import unicode_literals
import six
from django.utils.datastructures import MultiValueDictKeyError
from rest_framework.exceptions import ParseError, ValidationError
from rest_framework.mixins import CreateModelMixin
from rest_framework.response import Response
from rest_framework.status import HTTP_200_... | PypiClean |
/gs2-cdk-1.0.22.tar.gz/gs2-cdk-1.0.22/src/gs2_cdk/schedule/model/Namespace.py | from __future__ import annotations
from typing import *
from ...core.model import CdkResource, Stack
from ...core.func import GetAttr
from ...core.model import LogSetting
from ..ref.NamespaceRef import NamespaceRef
from .CurrentMasterData import CurrentMasterData
from .Event import Event
from .options.NamespaceOptio... | PypiClean |
/Django_patch-2.2.19-py3-none-any.whl/django/middleware/csrf.py | import logging
import re
import string
from urllib.parse import urlparse
from django.conf import settings
from django.core.exceptions import DisallowedHost, ImproperlyConfigured
from django.urls import get_callable
from django.utils.cache import patch_vary_headers
from django.utils.crypto import constant_time_compare,... | PypiClean |
/pulumi_aws_native-0.75.1a1693503310.tar.gz/pulumi_aws_native-0.75.1a1693503310/pulumi_aws_native/route53resolver/resolver_rule.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 ._enums import *
from ._inputs import *
__all__ = ['ResolverRuleArgs', 'ResolverRule']
@pulumi.input_type
class ResolverRuleArgs:
... | PypiClean |
/RepTate_test-1.0.6-py3-none-any.whl/RepTate/theories/TheoryDiscrMWD.py | import os
from RepTate.core.CmdBase import CmdBase, CmdMode
from RepTate.core.Parameter import Parameter, ParameterType, OptType
from RepTate.core.Theory import Theory
from RepTate.gui.QTheory import QTheory
import numpy as np
from PyQt5.QtCore import Qt, QSize, QFile
from PyQt5.QtWidgets import QToolBar, QSpinBox, QFi... | PypiClean |
/dict_digger-0.2.1.tar.gz/dict_digger-0.2.1/README.rst | dict_digger
===========
Digs into Dicts
Useful syntax for digging into nested dictionaries, lists and tuples, and removes the need to check if a key or index exists, or handling of
KeyError or IndexError
Installation
------------
.. code-block:: bash
$ pip install dict_digger
Usage
-----
.. code-block:: py... | PypiClean |
/axiom.top-1.0.0.tar.gz/axiom.top-1.0.0/sympy/categories/baseclasses.py | from sympy.core import S, Basic, Dict, Symbol, Tuple, sympify
from sympy.core.compatibility import iterable
from sympy.sets import Set, FiniteSet, EmptySet
class Class(Set):
r"""
The base class for any kind of class in the set-theoretic sense.
In axiomatic set theories, everything is a class. A class wh... | PypiClean |
/custom-awscli-1.27.51.tar.gz/custom-awscli-1.27.51/awscli/examples/memorydb/untag-resource.rst | **To update an ACL**
The following `update-acl`` updates an ACL by adding a user. ::
aws memorydb untag-resource \
--resource-arn arn:aws:memorydb:us-east-1:491658xxxxx:cluster/my-cluster \
--tag-keys mykey
Output::
{
"TagList": [
{
"Key": "mytag",
... | PypiClean |
/py-dbutils-0.4.9.linux-x86_64.tar.gz/usr/local/lib/python3.7/dist-packages/py_dbutils/rdbms/postgres.py | from ..parents import ConnRDBMS
from ..parents import DB as DATABASE
import psycopg2
import sys
import os
import logging as lg
lg.basicConfig()
logging = lg.getLogger()
logging.setLevel(lg.INFO)
class DB(ConnRDBMS, DATABASE):
sql_alchemy_uri = 'postgresql://{userid}:{pwd}@{host}:{port}/{db}'
def __init__(se... | PypiClean |
/doccano_client-1.2.8.tar.gz/doccano_client-1.2.8/doccano_client/beta/controllers/span_type.py | from dataclasses import asdict, dataclass, fields
from typing import Iterable
from requests import Session
from ..models.span_type import LABEL_COLOR_CYCLE, SpanType
from ..utils.response import verbose_raise_for_status
COLOR_CYCLE_RANGE = len(LABEL_COLOR_CYCLE)
@dataclass
class SpanTypeController:
"""Wraps a ... | PypiClean |
/vra_sdk-1.1.0.tar.gz/vra_sdk-1.1.0/vra_sdk/vra_factory.py | from vra_sdk.vra_utils import get_module_class, clean_kwargs_key
from vra_sdk.vra_config import VraConfig
import inspect
from vra_sdk.vra_exceptions import VraSdkFactoryException, VraSdkConfigException
class VraFactory(object):
"""Factory to create specific object class
"""
@staticmethod
d... | PypiClean |
/pulumi_mongodbatlas-3.11.0a1693029055.tar.gz/pulumi_mongodbatlas-3.11.0a1693029055/pulumi_mongodbatlas/get_custom_dns_configuration_cluster_aws.py |
import copy
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from . import _utilities
__all__ = [
'GetCustomDnsConfigurationClusterAwsResult',
'AwaitableGetCustomDnsConfigurationClusterAwsResult',
'get_custom_dns_configuration_cluster... | PypiClean |
/controlnet_v11_utils-0.1.0-py3-none-any.whl/annotator/oneformer/detectron2/modeling/poolers.py | import math
from typing import List, Optional
import torch
from torch import nn
from torchvision.ops import RoIPool
from annotator.oneformer.detectron2.layers import ROIAlign, ROIAlignRotated, cat, nonzero_tuple, shapes_to_tensor
from annotator.oneformer.detectron2.structures import Boxes
from annotator.oneformer.dete... | PypiClean |
/lava-android-test-0.16.2.tar.gz/lava-android-test-0.16.2/lava_android_test/test_definitions/methanol/methanol_merge_results.py |
# Author: Linaro Validation Team <linaro-dev@lists.linaro.org>
#
# This file is part of LAVA Android Test.
#
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, o... | PypiClean |
/apg_py-1.0.3.tar.gz/apg_py-1.0.3/apg_py/api/api.py | from apg_py.api import sabnf_grammar
from apg_py.lib.parser import Parser
from apg_py.lib.ast import Ast
from apg_py.lib import identifiers as id
from apg_py.api.scanner import scanner
from apg_py.api.syntax import syntax
from apg_py.api.semantic import semantic
# from apg.api.attributes import attributes
from apg_py.a... | PypiClean |
/ultralytics-yolov8-0.0.1.tar.gz/ultralytics-yolov8-0.0.1/ultralytics/utils/torch_utils.py | import math
import os
import platform
import subprocess
import time
import warnings
from contextlib import contextmanager
from copy import deepcopy
from pathlib import Path
import torch
import torch.distributed as dist
import torch.nn as nn
import torch.nn.functional as F
from torch.nn.parallel import DistributedDataP... | PypiClean |
/robohive-0.3.0-py3-none-any.whl/mj_envs/envs/hand_manipulation_suite/baoding_v1.py | import collections
import enum
import gym
import numpy as np
from mj_envs.envs import env_base
# Define the task enum
class Task(enum.Enum):
MOVE_TO_LOCATION = 0
BAODING_CW = 1
BAODING_CCW = 2
# Choose task
WHICH_TASK = Task.BAODING_CCW
class BaodingFixedEnvV1(env_base.MujocoEnv):
DEFAULT_OBS_KEYS =... | PypiClean |
/black_hole_solver-0.2.3.tar.gz/black_hole_solver-0.2.3/docs/CONTRIBUTING.rst | ==============================
Appendix A. Contribution rules
==============================
:Info: Those are the contribution rules for Black Hole Solver cffi-based Wrapper.
:Copyright: © 2012-2020, Chris Warrick.
:License: 3-clause BSD
.. index:: contributing
Do you want to contribute to this project? Great! I’d ... | PypiClean |
/mytdx-0.0.tar.gz/mytdx-0.0/pytdx/reader/min_bar_reader.py | from __future__ import unicode_literals, division
import pandas as pd
import os
from pytdx.reader.base_reader import TdxFileNotFoundException, TdxNotAssignVipdocPathException
from pytdx.reader.base_reader import BaseReader
from collections import OrderedDict
"""
网传秘籍...
二、通达信5分钟线*.lc5文件和*.lc1文件 文件名即股票代码 每32个字节为一个5分... | PypiClean |
/dsin100daysv28-6.0.1.tar.gz/dsin100daysv28-6.0.1/notebook/static/components/MathJax/localization/fa/HelpDialog.js | MathJax.Localization.addTranslation("fa","HelpDialog",{version:"2.7.5",isLoaded:true,strings:{Help:"\u0631\u0627\u0647\u0646\u0645\u0627\u06CC MathJax",MathJax:"*MathJax* \u06CC\u06A9 \u06A9\u062A\u0627\u0628\u062E\u0627\u0646\u0647\u0654 \u062C\u0627\u0648\u0627\u0627\u0633\u06A9\u0631\u06CC\u067E\u062A\u06CC \u0627\u... | PypiClean |
/database-sanitizer-1.1.0.tar.gz/database-sanitizer-1.1.0/database_sanitizer/dump/postgres.py |
from __future__ import unicode_literals
import codecs
import re
import subprocess
from ..utils.postgres import decode_copy_value, encode_copy_value
from ..config import PG_DUMP_DEFAULT_PARAMETERS
COPY_LINE_PATTERN = re.compile(
r"^COPY \"(?P<schema>[^\"]*)\".\"(?P<table>[^\"]*)\" "
r"\((?P<columns>.*)\) "
... | PypiClean |
/open_crypto-3.9.9.1-py3-none-any.whl/open_crypto/validate.py | import os
import sys
from typing import Optional, Tuple, Union
import _paths
from model.validating.api_map_validators import ApiMapFileValidator
from model.validating.base import Report, CompositeReport
from model.validating.config_file_validator import ConfigFileValidator
from model.validating.program_config_validato... | PypiClean |
/ydk-models-cisco-ios-xr-6.6.3.tar.gz/ydk-models-cisco-ios-xr-6.6.3/ydk/models/cisco_ios_xr/_meta/_Cisco_IOS_XR_ipv6_ospfv3_oper.py | from ydk._core._dm_meta_info import _MetaInfoClassMember, _MetaInfoClass, _MetaInfoEnum
from ydk._core._dm_meta_info import ATTRIBUTE, REFERENCE_LIST, REFERENCE_LEAFLIST, REFERENCE_BITS, REFERENCE_UNION
from ydk._core._dm_meta_info import REFERENCE_CLASS, REFERENCE_IDENTITY_CLASS, REFERENCE_ENUM_CLASS, ANYXML_CLASS
fro... | PypiClean |
/sila2lib_implementations-0.1.1-py3-none-any.whl/sila2lib_implementations/RegloICC/RegloICCService/DeviceServicer/gRPC/DeviceServicer_pb2.py |
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import symbol_database as _symbol_database
# @@protoc_in... | PypiClean |
/teflo_openstack_client_plugin-1.0.2.tar.gz/teflo_openstack_client_plugin-1.0.2/teflo_openstack_client_plugin/os_client_provisioner.py | import yaml
import os
import copy
import time
from os import path
from teflo.core import ProvisionerPlugin
from teflo.exceptions import TefloProvisionerError
from teflo.helpers import schema_validator, filter_host_name, gen_random_str
from .helpers import generate_cbn_response, set_key_permissions, map_cbn_resp_to_opts... | PypiClean |
/senlin-15.0.0.0rc1.tar.gz/senlin-15.0.0.0rc1/doc/source/contributor/policy.rst | ..
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, software
distributed und... | PypiClean |
/eyesjr-1.0.1-py3-none-any.whl/eyesjrGUI/scope.py | import sys, time, math, os.path
from . import utils
from .QtVersion import *
import sys, time
from .utils import pg
import numpy as np
from .eyesjun import eyemath as em
from functools import partial
from .layouts import ui_scope_layout
class Expt(QtWidgets.QWidget, ui_scope_layout.Ui_Form):
TIMER = 50
loopCounte... | PypiClean |
/ansible-8.3.0-py3-none-any.whl/ansible_collections/fortinet/fortimanager/plugins/modules/fmgr_system_locallog_syslogd3_filter.py | from __future__ import absolute_import, division, print_function
# Copyright 2019-2023 Fortinet, Inc.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at ... | PypiClean |
/ka-lite-static-0.17.6b2.tar.gz/ka-lite-static-0.17.6b2/kalite/distributed/static/js/distributed/perseus/ke/local-only/localeplanet/icu.sr-Latn-CS.js | (function() {
var dfs = {"am_pm":["pre podne","popodne"],"day_name":["nedelja","ponedeljak","utorak","sreda","četvrtak","petak","subota"],"day_short":["ned","pon","uto","sre","čet","pet","sub"],"era":["p. n. e.","n. e"],"era_name":["Pre nove ere","Nove ere"],"month_name":["januar","februar","mart","april","maj","jun"... | PypiClean |
/sphinx_basic_ng-1.0.0b2.tar.gz/sphinx_basic_ng-1.0.0b2/docs/usage/components/edit-this-page.md | # "Edit this page" link
It is fairly common for technical documentation websites to contain a link to
edit the original sources of a page. This makes it easy for a reader to quickly
fix a typo and provides a decent way to navigate to the source repository of the
project.
## Usage
```jinja
{% include "components/edit... | PypiClean |
/izug.refegovservice-3.1.5.tar.gz/izug.refegovservice-3.1.5/README.rst | izug.refegovservice
===================
izug.refegovservice provides one content type which describes a government service
and a further content type that can display the former elsewhere on the site by
reference.
Note that this product used to describe webservices (WDSL), but this feature
has been discontinued.
Co... | PypiClean |
/sol_vj-2.1.5.tar.gz/sol_vj-2.1.5/sol/database/clip.py | import os
class Clip:
"""
used to store "video clips"
with associated information
most importantly, filepath and how to activate them
but also params and tags
example params (inspired by previous sol version)
cue_points - point in time to jump to
loop_points - ... | PypiClean |
/thrunting_tools-8.5.2-py3-none-any.whl/elastic/thrunting_tools/common/settings.py | # Licensed to Elasticsearch B.V. under one or more contributor
# license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright
# ownership. Elasticsearch B.V. licenses this file to you under
# the Apache License, Version 2.0 (the "License"); you may
# not use this f... | PypiClean |
/django-ethereum-events-4.2.0.tar.gz/django-ethereum-events-4.2.0/django_ethereum_events/models.py | import json
from django.core.validators import MinLengthValidator
from django.db import models
try:
from django.utils.translation import ugettext_lazy as _
except ImportError:
from django.utils.translation import gettext_lazy as _
from solo.models import SingletonModel
CACHE_UPDATE_KEY = '_django_ethereum_ev... | PypiClean |
/safeserializer-0.230202.1.tar.gz/safeserializer-0.230202.1/README.md | 
[](https://codecov.io/gh/safeserializer/safeserializer)
<a href="https://pypi.org/project/safeserializer">
<img src="https://img.shields.io/github... | PypiClean |
/PyroTron-2.1.3.tar.gz/PyroTron-2.1.3/pyrogram/methods/messages/get_media_group.py |
import logging
from typing import Union, List
import pyrogram
from pyrogram import types
log = logging.getLogger(__name__)
class GetMediaGroup:
async def get_media_group(
self: "pyrogram.Client",
chat_id: Union[int, str],
message_id: int
) -> List["types.Message"]:
"""Get th... | PypiClean |
/comt-2.6.4.tar.gz/comt-2.6.4/src/cm/media/js/lib/yui/yui3-3.15.0/build/selector-css2/selector-css2.js | YUI.add('selector-css2', function (Y, NAME) {
/**
* The selector module provides helper methods allowing CSS2 Selectors to be used with DOM elements.
* @module dom
* @submodule selector-css2
* @for Selector
*/
/*
* Provides helper methods for collecting and filtering DOM elements.
*/
var PARENT_NODE = 'parent... | PypiClean |
/argo-workflows-6.5.0rc1.tar.gz/argo-workflows-6.5.0rc1/argo_workflows/model/io_argoproj_workflow_v1alpha1_container_set_template.py | import re # noqa: F401
import sys # noqa: F401
from argo_workflows.model_utils import ( # noqa: F401
ApiTypeError,
ModelComposed,
ModelNormal,
ModelSimple,
cached_property,
change_keys_js_to_python,
convert_js_args_to_python_args,
date,
datetime,
file_type,
none_type,
... | PypiClean |
/uniohomeassistant-0.1.3.tar.gz/uniohomeassistant-0.1.3/homeassistant/components/minecraft_server/sensor.py | from typing import Any, Dict
from homeassistant.config_entries import ConfigEntry
from homeassistant.const import TIME_MILLISECONDS
from homeassistant.helpers.typing import HomeAssistantType
from . import MinecraftServer, MinecraftServerEntity
from .const import (
ATTR_PLAYERS_LIST,
DOMAIN,
ICON_LATENCY_T... | PypiClean |
/custom-awscli-1.27.51.tar.gz/custom-awscli-1.27.51/awscli/examples/ec2/describe-local-gateways.rst | **To describe your Local Gateways**
The following ``describe-local-gateways`` example displays details for the local gateways that are available to you. ::
aws ec2 describe-local-gateways
Output::
{
"LocalGateways": [
{
"LocalGatewayId": "lgw-09b493aa7cEXAMPLE",
... | PypiClean |
/bpy-2.91a0-cp37-cp37m-manylinux2014_x86_64.whl/bpy-2.91a0.data/scripts/2.91/scripts/modules/addon_utils.py |
# <pep8-80 compliant>
__all__ = (
"paths",
"modules",
"check",
"enable",
"disable",
"disable_all",
"reset_all",
"module_bl_info",
)
import bpy as _bpy
_preferences = _bpy.context.preferences
error_encoding = False
# (name, file, path)
error_duplicates = []
addons_fake_modules = {}
... | PypiClean |
/MNN-0.0.7-cp27-cp27mu-manylinux2010_x86_64.whl/MNNTools/MNN_FB/MatMul.py |
# namespace: MNN
import flatbuffers
class MatMul(object):
__slots__ = ['_tab']
@classmethod
def GetRootAsMatMul(cls, buf, offset):
n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
x = MatMul()
x.Init(buf, n + offset)
return x
# MatMul
def Init(... | PypiClean |
/catalyst_pdm-22.4.1.tar.gz/catalyst_pdm-22.4.1/catalyst/contrib/layers/cosface.py | import math
import torch
import torch.nn as nn
import torch.nn.functional as F
class CosFace(nn.Module):
"""Implementation of
`CosFace\: Large Margin Cosine Loss for Deep Face Recognition`_.
.. _CosFace\: Large Margin Cosine Loss for Deep Face Recognition:
https://arxiv.org/abs/1801.09414
A... | PypiClean |
/cohesity_management_sdk-1.10.1.tar.gz/cohesity_management_sdk-1.10.1/cohesity_management_sdk/models/unprotect_object_params.py |
class UnprotectObjectParams(object):
"""Implementation of the 'UnprotectObjectParams' model.
Specifies the parameters to unprotect an object.
Attributes:
delete_snapshots (bool): Specifies whether to delete the snapshots of
the Protection Object.
protection_source_id (long|... | PypiClean |
/nemo_bo-0.1.16-py3-none-any.whl/nemo_bo/opt/samplers.py | import math
import os
import random
from attrs import define, field
from typing import List, Optional, Union
import numpy as np
import torch
from botorch.utils.sampling import get_polytope_samples
from scipy.stats import qmc
import nemo_bo.utils.logger as logging_nemo
from nemo_bo.opt.constraints import ConstraintsLi... | PypiClean |
/Transcrypt-3.7.16.tar.gz/Transcrypt-3.7.16/transcrypt/demos/parcel_demo/node_modules/@mrmlnc/readdir-enhanced/README.md | Enhanced `fs.readdir()`
=======================
> :warning: This is «fork» for original `readdir-enhanced` package but with some monkey fixes.
[](https://travis-ci.org/BigstickCarpet/readdir-enhanced)
[
def qs_exists(queryset):
try:
return queryset.... | PypiClean |
/python_pptx-0.6.22-py3-none-any.whl/pptx/chart/data.py | import datetime
from numbers import Number
from pptx.chart.xlsx import (
BubbleWorkbookWriter,
CategoryWorkbookWriter,
XyWorkbookWriter,
)
from pptx.chart.xmlwriter import ChartXmlWriter
from pptx.compat import Sequence
from pptx.util import lazyproperty
class _BaseChartData(Sequence):
"""
Base c... | PypiClean |
/bobtemplates.jpcw-0.2.zip/bobtemplates.jpcw-0.2/README.rst | .. contents::
Introduction
============
`mr.bob`_ templates : http://mrbob.readthedocs.org/en/latest/
+ basic_namespace : provide a zopeskel-like (basic_namespace) template
installation
---------------
::
easy_install bobtemplates.jpcw
or simply add bobtemplates.jpcw to your eggs zc.buildout section
or with... | PypiClean |
/cr_distributions-0.1.tar.gz/cr_distributions-0.1/cr_distributions/Gaussiandistribution.py | import math
import matplotlib.pyplot as plt
from .Generaldistribution import Distribution
class Gaussian(Distribution):
""" Gaussian distribution class for calculating and
visualizing a Gaussian distribution.
Attributes:
mean (float) representing the mean value of the distribution
stdev (float) representing ... | PypiClean |
/wishbone_output_zmqpush-1.0.0.tar.gz/wishbone_output_zmqpush-1.0.0/README.rst | ::
__ __ __
.--.--.--|__.-----| |--| |--.-----.-----.-----.
| | | | |__ --| | _ | _ | | -__|
|________|__|_____|__|__|_____|_____|__|__|_____|
version 2.1.2
Build composable event pipeline servers with minimal effort.
... | PypiClean |
/TradeGate_Beta-0.2.1b7-py3-none-any.whl/binance_f/model/accountinformationv2.py | class AssetV2:
def __init__(self):
self.asset = ""
self.initialMargin = 0.0
self.maintMargin = 0.0
self.marginBalance = 0.0
self.maxWithdrawAmount = 0.0
self.openOrderInitialMargin = 0.0
self.positionInitialMargin = 0.0
self.unrealizedProfit = 0.0
... | PypiClean |
/tidy3d-beta-2.0.0.tar.gz/tidy3d-beta-2.0.0/tidy3d/components/grid/mesher.py | """Collection of functions for automatically generating a nonuniform grid. """
from abc import ABC, abstractmethod
from typing import Tuple, List, Union, Dict
from math import isclose
from itertools import compress
import warnings
import pydantic as pd
import numpy as np
from pyroots import Brentq
from shapely.strtre... | PypiClean |
/azure-search-documents-11.4.0b5.zip/azure-search-documents-11.4.0b5/azure/search/documents/indexes/_generated/aio/_configuration.py |
from typing import Any
from azure.core.configuration import Configuration
from azure.core.pipeline import policies
VERSION = "unknown"
class SearchServiceClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes
"""Configuration for SearchServiceClient.
Note that all parameters u... | PypiClean |
/imagedetect-8.0.57-py3-none-any.whl/ultralytics/hub/__init__.py |
import requests
from ultralytics.hub.auth import Auth
from ultralytics.hub.session import HUBTrainingSession
from ultralytics.hub.utils import PREFIX, split_key
from ultralytics.yolo.engine.exporter import EXPORT_FORMATS_LIST
from ultralytics.yolo.engine.model import YOLO
from ultralytics.yolo.utils import LOGGER, em... | PypiClean |
/xsge_lighting-1.0.3.tar.gz/xsge_lighting-1.0.3/doc-src/index.rst | *********************
xSGE Lighting Library
*********************
.. This file has been dedicated to the public domain, to the extent
possible under applicable law, via CC0. See
http://creativecommons.org/publicdomain/zero/1.0/ for more
information. This file is offered as-is, without any warranty.
.. conten... | PypiClean |
/data_enum-2.0.1-py3-none-any.whl/data_enum/__init__.py | class ConfigurationError(Exception):
"""An error to be thrown when DataEnum is not set up correctly."""
class MemberDoesNotExistError(Exception):
"""An error to be thrown when the requested member does not exist."""
DEFAULT_PRIMARY_ATTRIBUTE = "_id_"
class DataEnumType(type):
"""Metaclass for custom c... | PypiClean |
/django-image-cropping-amazon-s3-0.0.21.tar.gz/django-image-cropping-amazon-s3-0.0.21/README.rst | =====================
django-image-cropping
=====================
.. image:: https://pypip.in/v/django-image-cropping/badge.png
:target: https://pypi.python.org/pypi/django-image-cropping
.. image:: https://travis-ci.org/jonasundderwolf/django-image-cropping.png?branch=master
:target: http://travis-ci.org/jon... | PypiClean |
/bitsmiths-loco-2.2.1.tar.gz/bitsmiths-loco-2.2.1/bs_loco/db/dao/postgresql/msg.py | import asyncio
import datetime
import uuid
import time
import mettle.lib
import mettle.io
import mettle.db
from bs_loco.db.tables.msg import tMsg
from bs_loco.db.tables.msg_key import tMsgKey
from .msg_lock_one import dMsgLockOne
from .msg_select_one import dMsgSelectOne
from .msg_update import dMsgUpdate
from .msg_i... | PypiClean |
/odoo12_addon_l10n_br_stock_account-12.0.5.0.1-py3-none-any.whl/odoo/addons/l10n_br_stock_account/wizards/stock_return_picking.py |
from odoo import _, models
from odoo.exceptions import UserError
class StockReturnPicking(models.TransientModel):
_inherit = "stock.return.picking"
def _create_returns(self):
"""
Creates return picking.
@param self: The object pointer.
@return: A dictionary which of fields wi... | PypiClean |
/simplelayout-AnjaZhang-0.0.4.tar.gz/simplelayout-AnjaZhang-0.0.4/README.md | [](https://classroom.github.com/online_ide?assignment_repo_id=3697815&assignment_repo_type=AssignmentRepo)
# 3-simplelayout-package
## 简介
- 本次作业将大家完成的数据生成器进行打包,可供 pip 进行安装,发布到 [Py... | PypiClean |
/cupy_cuda102-12.2.0-cp38-cp38-manylinux2014_aarch64.whl/cupy/_statistics/histogram.py | import operator
import warnings
import numpy
import cupy
from cupy import _core
# rename builtin range for use in functions that take a range argument
_range = range
# TODO(unno): use searchsorted
_histogram_kernel = _core.ElementwiseKernel(
'S x, raw T bins, int32 n_bins',
'raw U y',
'''
if (x < ... | PypiClean |
/slush-list-0.5.1.tar.gz/slush-list-0.5.1/src/slush_list/main.py |
# pylint: disable= too-many-nested-blocks
# Отлючено, т.к. для работы необходимо большое количество вложенных блоков
# pylint: disable= redefined-outer-name
# Отлючено для удобства чтения функций загрузки страниц web-приложения
# pylint: disable= too-many-return-statements
# Отлючено для удобства обработки исключен... | PypiClean |
/openfeature_sdk-0.1.0-py3-none-any.whl/open_feature/hooks/hook_support.py | import logging
import typing
from functools import reduce
from open_feature.evaluation_context.evaluation_context import EvaluationContext
from open_feature.flag_evaluation.flag_evaluation_details import FlagEvaluationDetails
from open_feature.flag_evaluation.flag_type import FlagType
from open_feature.hooks.hook impo... | PypiClean |
/ka_ut_obj-2023.3.1-py3-none-any.whl/ka_ut_obj/doa.py |
from ka_ut_obj.arr import Arr
from ka_ut_obj.dic import Dic
from typing import Dict, List, Tuple, Any
T_DoA = Dict[Any, List[Any]]
# T_Arr = NewType('T_Arr', Union[List[Any], Tuple[Any]])
# T_DoDA = NewType('T_DoDA', Dict[T_DA])
# T_DA = NewType('T_DA', Union[Dict, T_Arr])
# T_SLT = NewType('T_SLT', Union[str, List... | PypiClean |
/fb-idb-1.1.7.tar.gz/fb-idb-1.1.7/idb/cli/commands/app.py |
import json
from argparse import ArgumentParser, Namespace
from typing import Optional
from idb.cli import ClientCommand
from idb.common.format import (
human_format_installed_app_info,
json_format_installed_app_info,
)
from idb.common.types import Client, InstalledArtifact, Compression
from idb.utils.typing ... | PypiClean |
/ais_dom_frontend-20230831.0-py3-none-any.whl/hass_frontend/frontend_es5/86643-pp0n34XcH_s.js | "use strict";(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([[86643],{74834:function(t,i,e){var n,a=e(88962),o=e(33368),l=e(71650),d=e(82390),r=e(69205),c=e(70906),s=e(91808),u=e(53918),p=e(68144),h=e(79932),f=e(3712);(0,s.Z)([(0,h.Mo)("ha-button")],(function(t,i){var e=fun... | PypiClean |
/qiskit-experiments-0.5.3.tar.gz/qiskit-experiments-0.5.3/qiskit_experiments/database_service/utils.py | import io
import logging
import threading
import traceback
from abc import ABC, abstractmethod
from collections import OrderedDict
from datetime import datetime, timezone
from typing import Callable, Tuple, Dict, Any, Union, Type, Optional
import json
import dateutil.parser
import pkg_resources
from dateutil import tz... | PypiClean |
/ada-py-0.0.40a4.tar.gz/ada-py-0.0.40a4/src/ada/calc/beams.py | from typing import Union
import numpy as np
from ada import Beam
from ada.core.utils import Counter
from ada.visualize.plots import easy_plotly
from .utils import equation_compiler
class ResType:
displ = "DISPL"
moment = "MOMENT"
shear = "SHEAR"
def shear(x, w, L):
"""
:param x:
:param w... | PypiClean |
/mbtiles-s3-server-0.0.20.tar.gz/mbtiles-s3-server-0.0.20/mbtiles_s3_server/vendor/dark-matter-gl-style@1.0.0/LICENSE.md | Copyright (c) 2016, KlokanTech.com & OpenMapTiles contributors.
Copyright (c) 2015, CartoDB Inc.
All rights reserved.
Derived from "CartoDB Basemaps" (https://github.com/CartoDB/CartoDB-basemaps)
designed by Stamen and Paul Norman for CartoDB Inc., licensed under CC-BY 3.0.
# Code license: BSD 3-Clause License
R... | PypiClean |
/prejudice-bias-hotel-reviews-0.0.1.tar.gz/prejudice-bias-hotel-reviews-0.0.1/src/train_bert.py | import wandb
import logging
import torch
from pathlib import Path
from transformers import RobertaConfig
from transformers import RobertaTokenizerFast
from transformers import RobertaForMaskedLM
from transformers import DataCollatorForLanguageModeling
from transformers import Trainer, TrainingArguments
from tokenizers... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.