id stringlengths 1 8 | text stringlengths 6 1.05M | dataset_id stringclasses 1
value |
|---|---|---|
/pmagpy_cli-4.2.114-py3-none-any.whl/programs/conversion_scripts/generic_magic.py | import sys
from pmagpy import convert_2_magic as convert
def do_help():
return __doc__
def main():
kwargs = {}
if "-h" in sys.argv:
help(__name__)
sys.exit()
if "-usr" in sys.argv:
ind = sys.argv.index("-usr")
kwargs['user'] = sys.argv[ind+1]
if '-WD' in sys.argv:
... | PypiClean |
/testrail-data-0.0.10.tar.gz/testrail-data-0.0.10/README.md | # Testrail Data: a handy Testrail data analysis tool
[![Python package][gh-action-python-package-badge]][gh-action-python-package]
[![PyPI][pypi-latest-release-badge]][pypi]
[![Downloads][pepy-downloads-badge]][pepy-downloads-link]
[![PyPI - Python Version][pypi-python-versions-badge]][pypi]
[![PyPI - Implementation][p... | PypiClean |
/junior_ssl-0.5.0-py3-none-any.whl/jssl/detection.py | import numpy as np
import cv2
import zmq
import time
from .field import Field
class Detection:
def __init__(self):
# Publishing server
self.context = zmq.Context()
self.socket = self.context.socket(zmq.PUB)
self.socket.set_hwm(1)
self.socket.bind("tcp://*:7557")
#... | PypiClean |
/tctc_odata-0.3.tar.gz/tctc_odata-0.3/odata/state.py |
from __future__ import print_function
import os
import inspect
from collections import OrderedDict
from odata.property import PropertyBase, NavigationProperty
class EntityState(object):
def __init__(self, entity):
""":type entity: EntityBase """
self.entity = entity
self.dirty = []
... | PypiClean |
/brainpy-simulator-1.0.3.tar.gz/brainpy-simulator-1.0.3/brainpy/running.py |
import multiprocessing
__all__ = [
'process_pool',
'process_pool_lock',
]
def process_pool(func, all_net_params, nb_process):
"""Run multiple models in multi-processes.
Parameters
----------
func : callable
The function to run model.
all_net_params : a_list, tuple
The pa... | PypiClean |
/ais_dom-2023.7.2-py3-none-any.whl/homeassistant/components/intellifire/switch.py | from __future__ import annotations
from collections.abc import Awaitable, Callable
from dataclasses import dataclass
from typing import Any
from intellifire4py import IntellifirePollData
from intellifire4py.intellifire import IntellifireAPILocal
from homeassistant.components.switch import SwitchEntity, SwitchEntityD... | PypiClean |
/peek-plugin-base-3.4.11.tar.gz/peek-plugin-base-3.4.11/peek_plugin_base/util/build_doc/DocBuilder.py | import logging
from datetime import datetime
from typing import List
import os
import pytz
from peek_plugin_base.util.build_common.BuilderOsCmd import runDocBuild
from peek_plugin_base.util.build_doc.DocBuilderABC import DocBuilderABC
from vortex.DeferUtil import deferToThreadWrapWithLogger
logger = logging.getLogge... | PypiClean |
/sdss-obstools-3.9.3.tar.gz/sdss-obstools-3.9.3/bin/time_summary.py | import sys
import click
import numpy as np
import multiprocessing as mp
from astropy.time import Time, TimeDelta
from pathlib import Path
from bin import sjd, influx_fetch
from sdssobstools import sdss_paths
def get_from_influx(name: str, query_name: str, influx_times,
out_dict: dict = {},
... | PypiClean |
/onnxruntime_directml-1.15.1-cp38-cp38-win_amd64.whl/onnxruntime/transformers/models/whisper/whisper_chain.py | import os
import sys
import onnx
from onnx import TensorProto, helper
from transformers import WhisperConfig
sys.path.append(os.path.join(os.path.dirname(__file__), "..", ".."))
from convert_generation import get_shared_initializers # noqa: E402
def add_attention_mask(model):
# Add attention mask - required by... | PypiClean |
/odoo14_addon_l10n_es_dua-14.0.1.2.0-py3-none-any.whl/odoo/addons/l10n_es_dua/readme/CONFIGURE.rst | Este addon añade los impuestos y posiciones fiscales a las siguientes plantillas:
* PGCE entidades sin ánimo de lucro 2008
* PGCE PYMEs 2008
* PGCE completo 2008
Para aplicar los cambios al plan contable que tengamos configurado en nuestra
compañía es posible que sea necesario instalar el addon
'OCA/account-financial... | PypiClean |
/Tinyquery-1.2.1.tar.gz/Tinyquery-1.2.1/tinyquery/compiler.py | from __future__ import absolute_import
import collections
import itertools
from tinyquery import exceptions
from tinyquery import parser
from tinyquery import runtime
from tinyquery import tq_ast
from tinyquery import typed_ast
from tinyquery import type_context
from tinyquery import tq_types
def compile_text(text,... | PypiClean |
/django-adminlte-3-0.1.6.tar.gz/django-adminlte-3-0.1.6/adminlte3/static/admin-lte/plugins/flot-old/jquery.flot.errorbars.js | (function ($) {
var options = {
series: {
points: {
errorbars: null, //should be 'x', 'y' or 'xy'
xerr: { err: 'x', show: null, asymmetric: null, upperCap: null, lowerCap: null, color: null, radius: null},
yerr: { err: 'y', show: null, asymmetric: ... | PypiClean |
/deepl.py-1.0.3-py3-none-any.whl/deepl/adapter.py | import json
from abc import ABCMeta, abstractmethod
from typing import List, Optional, Union
import aiohttp
import requests
from .errors import (BadRequest, Forbidden, HTTPException, InternalServerError,
NotFound, PayloadTooLarge, QuotaExceeded,
ServiceUnavailable, TooManyReq... | PypiClean |
/networking-baremetal-6.2.0.tar.gz/networking-baremetal-6.2.0/doc/source/configuration/ml2/device_drivers/common_config.rst | ===================================================
Common configuration options for all device drivers
===================================================
This page describes configuration options that is common to all networking-
baremetal device drivers. Individual drivers may have independent configuration
require... | PypiClean |
/py_messanger_r2_server-1.0.0-py3-none-any.whl/server/server/add_user.py | from PyQt5.QtWidgets import QDialog, QPushButton, QLineEdit, QApplication, QLabel, QMessageBox
from PyQt5.QtCore import Qt
import hashlib
import binascii
class RegisterUser(QDialog):
""" Класс диалог регистрации пользователя на сервере. """
def __init__(self, database, server):
super().__init__()
... | PypiClean |
/napalm-yang-0.1.0.tar.gz/napalm-yang-0.1.0/napalm_yang/models/openconfig/network_instances/network_instance/protocols/protocol/ospfv2/areas/area/lsdb/lsa_types/lsa_type/lsas/lsa/opaque_lsa/extended_prefix/tlvs/tlv/sid_label_binding/state/__init__.py | from operator import attrgetter
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType
from pyangbind.lib.yangtypes import RestrictedClassType
from pyangbind.lib.yangtypes import TypedListType
from pyangbind.lib.yangtypes import YANGBool
from pyangbind.lib.yangtypes import YANGListType
from pyangbind.lib.ya... | PypiClean |
/botw_havok-0.3.18.tar.gz/botw_havok-0.3.18/botw_havok/classes/common/hkpStaticCompoundShapeInstance.py | from typing import TYPE_CHECKING
from typing import Union
import botw_havok.classes.util.class_map as class_map
from .hkObject import hkObject
from ..base import HKBaseClass
from ...binary import BinaryReader, BinaryWriter
from ...binary.types import Int32, Matrix, UInt32, UInt64
from ...container.util.globalreference... | PypiClean |
/subseasonal_toolkit-0.0.5.tar.gz/subseasonal_toolkit-0.0.5/subseasonal_toolkit/models/abc_ecmwf/attributes.py | import json
import os
from pkg_resources import resource_filename
from subseasonal_toolkit.models.perpp_ecmwf.attributes import get_submodel_name as perpp_submodel_name
from subseasonal_toolkit.models.tuned_ecmwfpp.attributes import get_submodel_name as pp_submodel_name
FORECAST="ecmwf"
MODEL_NAME=f"abc_{FORECAST}"
SE... | PypiClean |
/malaya_speech-1.4.0rc1-py3-none-any.whl/malaya_speech/train/model/hf_config.py | import copy
import json
import os
import re
import warnings
from typing import Any, Dict, List, Optional, Tuple, Union
import logging
logger = logging.getLogger('malaya_speech.train.model.hf_config')
class PretrainedConfig:
model_type: str = ""
is_composition: bool = False
attribute_map: Dict[str, str] ... | PypiClean |
/tf_agents-0.17.0rc1-py3-none-any.whl/tf_agents/bandits/policies/constraints.py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import abc
import functools
from typing import Callable, Iterable, Optional, Text
import six
import tensorflow as tf # pylint: disable=g-explicit-tensorflow-version-import
import tensorflow_probability as tfp... | PypiClean |
/aliyun-python-sdk-sls-1.1.1.tar.gz/aliyun-python-sdk-sls-1.1.1/aliyunsdksls/request/v20191023/CreateImportIngestionJobRequest.py |
from aliyunsdkcore.request import RpcRequest
from aliyunsdksls.endpoint import endpoint_data
class CreateImportIngestionJobRequest(RpcRequest):
def __init__(self):
RpcRequest.__init__(self, 'Sls', '2019-10-23', 'CreateImportIngestionJob','sls')
self.set_method('POST')
if hasattr(self, "endpoint_map"):
seta... | PypiClean |
/lama-cleaner-custom-0.0.2.tar.gz/lama-cleaner-custom-0.0.2/lama_cleaner/model/zits.py | import os
import time
import cv2
import skimage
from skimage import color, feature
import torch
import torch.nn.functional as F
from lama_cleaner.helper import get_cache_path_by_url, load_jit_model
from lama_cleaner.schema import Config
import numpy as np
from lama_cleaner.model.base import InpaintModel
ZITS_INPAIN... | PypiClean |
/otxmpa-0.3.0.tar.gz/otxmpa-0.3.0/mpa/modules/models/losses/l2sp_loss.py |
import torch.nn as nn
from mmdet.models import LOSSES
from mmcv.runner.checkpoint import _load_checkpoint
@LOSSES.register_module()
class L2SPLoss(nn.Module):
def __init__(self,
model,
model_ckpt,
loss_weight=0.0001):
"""L2-SP regularization loss
... | PypiClean |
/q26_alphatrading-0.1.1-py3-none-any.whl/alphatrading/simulation/quanTest/symbol.py | class SYMBOL :
"""!
===============================================================
Q26 - QuanTester module - SYMBOL object.
===============================================================
### Description :
### Examples :
### Planned developments :
### Known bugs :
... | PypiClean |
/rlpy-1.3.8.tar.gz/rlpy-1.3.8/examples/cartpole_modern/kifdd.py | from rlpy.Domains.FiniteTrackCartPole import FiniteCartPoleBalanceOriginal, FiniteCartPoleBalanceModern
from rlpy.Agents import SARSA, Q_LEARNING
from rlpy.Representations import *
from rlpy.Policies import eGreedy
from rlpy.Experiments import Experiment
import numpy as np
from hyperopt import hp
param_space = {
'... | PypiClean |
/columbia-discord-bot-0.2.1.tar.gz/columbia-discord-bot-0.2.1/docs/_build/html/_static/pygments/lexers/_stata_builtins.py | builtins_special = (
"if", "in", "using", "replace", "by", "gen", "generate"
)
builtins_base = (
"if", "else", "in", "foreach", "for", "forv", "forva",
"forval", "forvalu", "forvalue", "forvalues", "by", "bys",
"bysort", "quietly", "qui", "about", "ac",
"ac_7", "acprplot", "acprplot_7", "adjust", "... | PypiClean |
/minecraft-launcher-lib-6.2.tar.gz/minecraft-launcher-lib-6.2/minecraft_launcher_lib/mrpack.py | "mrpack allows you to install Modpacks from the `Mrpack Format <https://docs.modrinth.com/docs/modpacks/format_definition>`_"
from ._helper import download_file, empty, check_path_inside_minecraft_directory
from .types import MrpackInformation, MrpackInstallOptions, CallbackDict
from ._internal_types.mrpack_types impor... | PypiClean |
/alipay-python-3.3.17.tar.gz/alipay-python-3.3.17/alipay/aop/api/domain/Command.py | import json
from alipay.aop.api.constant.ParamConstants import *
class Command(object):
def __init__(self):
self._commander = None
self._content = None
self._executor = None
self._key = None
@property
def commander(self):
return self._commander
@commander.se... | PypiClean |
/quick_ml-1.3.18.tar.gz/quick_ml-1.3.18/quick_ml/data_preprocessing/remove_imbalance.py |
## Direct Mode (yet to be written)
# def upsample():
# pass
# def downsample():
# pass
# def check_transformations(func):
# acceptable = ['random_crop', 'flip_left_right', 'flip_up_down',
# 'random_hue', 'random_contrast', 'brightness',
# 'random_saturation', 'zoom', 'rotation']
# de... | PypiClean |
/pandeia.engine-3.0.tar.gz/pandeia.engine-3.0/pandeia/engine/hst.py |
from .telescope import Telescope
from .instrument import Instrument
from .custom_exceptions import DataError
from .constants import DEFAULT_DISPERSION, PANDEIA_WAVEUNITS, PANDEIA_FLUXUNITS
import astropy.units as u
from astropy.table import Table
import synphot as syn
import stsynphot as st
import numpy as np
from num... | PypiClean |
/hydratk-ext-datagen-0.1.3.tar.gz/hydratk-ext-datagen-0.1.3/src/hydratk/extensions/datagen/jsongen.py | """
Events:
-------
jsongen_before_import_spec
jsongen_after_import_spec
jsongen_before_write
jsongen_after_write
"""
from hydratk.core.masterhead import MasterHead
from hydratk.core import event
from simplejson import loads, dumps
from os import path
class JSONGen(object):
"""Class JSONGen
"""
_mh = N... | PypiClean |
/cesar_p-2.4.0.tar.gz/cesar_p-2.4.0/src/cesarp/SIA2024/demand_generators/AppliancesDemandGenerator.py | from typing import Callable, Iterable, Protocol, Dict, Optional
import pint
import logging
from cesarp.common.profiles import profile_generation, profile_variability
from cesarp.SIA2024.demand_generators.ValuePerKeyCache import ValuePerKeyCache
from cesarp.SIA2024.demand_generators.BuildingTypeProtocol import Building... | PypiClean |
/itk_filtering-5.4rc1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/itk/itkGeodesicActiveContourLevelSetImageFilterPython.py |
import collections
from sys import version_info as _version_info
if _version_info < (3, 7, 0):
raise RuntimeError("Python 3.7 or later required")
from . import _ITKCommonPython
from . import _ITKLevelSetsPython
from sys import version_info as _swig_python_version_info
if _swig_python_version_info < (2, 7, ... | PypiClean |
/Pycord-Utils-2.3.2.tar.gz/Pycord-Utils-2.3.2/pycord/ext/dl/extractor/digg.py | from __future__ import unicode_literals
from .common import InfoExtractor
from ..utils import js_to_json
class DiggIE(InfoExtractor):
_VALID_URL = r"https?://(?:www\.)?digg\.com/video/(?P<id>[^/?#&]+)"
_TESTS = [
{
# JWPlatform via provider
"url": "http://digg.com/video/sci-fi... | PypiClean |
/plonetheme.barcelonetang-0.5.zip/plonetheme.barcelonetang-0.5/docs/source/options/colors.rst | =======================
Available Color Options
=======================
The theme currently supports the following color options:
- ``aqua``
- ``blue``
- ``brown``
- ``green``
- ``orange``
- ``purple``
- ``red``
The default option is ``blue``:
.. figure:: ../../_images/settings-color_option--default.png
Color ... | PypiClean |
/torch_hd-5.3.0-py3-none-any.whl/torchhd/__init__.py | import torchhd.functional as functional
import torchhd.embeddings as embeddings
import torchhd.structures as structures
import torchhd.models as models
import torchhd.memory as memory
import torchhd.datasets as datasets
import torchhd.utils as utils
from torchhd.tensors.base import VSATensor
from torchhd.tensors.bsc i... | PypiClean |
/opal-azure-cli-relay-0.1.7.tar.gz/opal-azure-cli-relay-0.1.7/azure/cli/command_modules/relay/_params.py |
from azure.cli.core.commands.parameters import tags_type, get_enum_type, resource_group_name_type, name_type, get_location_type, get_resource_name_completion_list, get_three_state_flag
from azure.cli.core.commands.validators import get_default_location_from_resource_group
def load_arguments_sb(self, _):
from azu... | PypiClean |
/CNVkit-0.9.10-py3-none-any.whl/cnvlib/autobin.py | import logging
import os
import tempfile
import numpy as np
import pandas as pd
from skgenome import tabio, GenomicArray as GA
from . import coverage, samutil
from .antitarget import compare_chrom_names
from .descriptives import weighted_median
def midsize_file(fnames):
"""Select the median-size file from sever... | PypiClean |
/tft_artemis-0.0.62-py3-none-any.whl/tft/artemis/tasks/guest_request_watchdog.py | import threading
from typing import cast
import gluetool.log
import sqlalchemy.orm.session
from ..db import DB
from ..drivers import PoolData, WatchdogState
from ..guest import GuestState
from ..knobs import Knob
from . import _ROOT_LOGGER, DoerReturnType, DoerType, ProvisioningTailHandler
from . import Workspace as ... | PypiClean |
/m_n_kappa-0.0.1-py3-none-any.whl/m_n_kappa/solver.py | from .general import str_start_end, print_chapter, print_sections
from .function import Polynominal, Linear
from .log import log_init, logging, log_return
from functools import partial
logger = logging.getLogger(__name__)
logs_init = partial(log_init, logger=logger)
logs_return = partial(log_return, logger=logger)
... | PypiClean |
/ipm_furuta-0.0.4.tar.gz/ipm_furuta-0.0.4/README.md |
# ipm-python
A model of the Furuta pendulum based on the article [Furuta's Pendulum: A
Conservative Nonlinear Model for Theory and
Practise](https://doi.org/10.1155/2010/742894) by J. ́A. Acosta. The model
interface is based on [Interactive Programmatic
Modeling](https://dl.acm.org/doi/10.1145/3431387) by D. Broman.
... | PypiClean |
/djangoldp_hubl_landing-0.0.6-py3-none-any.whl/djangoldp_hubl_landing/models.py | from django.conf import settings
from django.core.mail import send_mail
from django.db import models
from djangoldp.models import Model
from django.db.models.signals import post_save
from django.dispatch import receiver
from django.template import loader
class IntroProfile(Model):
name = models.CharField(max_leng... | PypiClean |
/data_metrics_connectors-0.1.0-py3-none-any.whl/data_metric_connector/connectors/mysql/operations.py | from __future__ import annotations
import loguru
from data_metric_connector.connectors.mysql.connect import ConnectMySql
from data_metric_connector.utils.file_size import convert_size
class MySql(object):
"""This class is used for executing MySql operations."""
def __init__(self, logger: loguru.Logger) -> ... | PypiClean |
/spine-python-1.0b6.tar.gz/spine-python-1.0b6/src/Skeleton.py | from Bone import Bone
from Slot import Slot
class Skeleton(object):
def __init__(self, skeletonData):
super(Skeleton, self).__init__()
self.data = skeletonData
self.skin = None
self.r = 1.0
self.g = 1.0
self.b = 1.0
self.a = 1.0
self.time = 0.0
... | PypiClean |
/pyEMMA-2.5.12.tar.gz/pyEMMA-2.5.12/pyemma/util/annotators.py | import warnings
from decorator import decorator, decorate
from inspect import stack
from pyemma.util.exceptions import PyEMMA_DeprecationWarning
__all__ = ['alias',
'aliased',
'deprecated',
'shortcut',
'fix_docs',
]
def fix_docs(cls):
""" copies docstrings... | PypiClean |
/chalkpy-2.16.10.tar.gz/chalkpy-2.16.10/chalk/_reporting/rich/live.py | from rich import reconfigure
from rich.console import Control
from rich.progress import Live
from chalk._reporting.rich.theme import CHALK_THEME
from chalk.utils.notebook import is_notebook
class ChalkLive(Live):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
reconfigure(... | PypiClean |
/code-RTC-1.0.2.tar.gz/code-RTC-1.0.2/code_rtc/static/lib/monaco-editor/min/vs/basic-languages/restructuredtext/restructuredtext.js | define("vs/basic-languages/restructuredtext/restructuredtext",["require","exports"],(function(e,s){"use strict";Object.defineProperty(s,"__esModule",{value:!0}),s.conf={brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">",notIn:["s... | PypiClean |
/custom-django-graphql-auth-0.2.tar.gz/custom-django-graphql-auth-0.2/graphene_django/debug/middleware.py | from django.db import connections
from promise import Promise
from .sql.tracking import unwrap_cursor, wrap_cursor
from .types import DjangoDebug
class DjangoDebugContext(object):
def __init__(self):
self.debug_promise = None
self.promises = []
self.enable_instrumentation()
self.... | PypiClean |
/getdaft-0.1.15-cp37-abi3-macosx_10_7_x86_64.whl/daft/logical/rust_logical_plan.py | from __future__ import annotations
import pathlib
from typing import TYPE_CHECKING
import fsspec
from daft import DataType, col
from daft.context import get_context
from daft.daft import CountMode, FileFormat, FileFormatConfig, JoinType
from daft.daft import LogicalPlanBuilder as _LogicalPlanBuilder
from daft.daft i... | PypiClean |
/radianceQuantifier-0.4.15.tar.gz/radianceQuantifier-0.4.15/README.md | A image processing pipeline to automatically crop and quantify tumor burdens (radiance) in mice treated with bioluminescent tumors.
Intutitive processing of quantitative radiance data and raw mouse images is supported through a user friendly GUI interface.
PDF tutorial for GUI is hosted on google drive:
https://dri... | PypiClean |
/chem_ant-0.0.8-py3-none-any.whl/chem_ant/similarity_mcts.py | from rdkit import Chem, DataStructs
# from rdkit.Chem.Fingerprints import FingerprintMols
from rdkit.Chem import Descriptors
from rdkit.Chem import AllChem, BRICS
# from rdkit.Chem.AtomPairs import Pairs
import argparse
from copy import deepcopy
# from mcts import mcts
try:
from mcts_solver.mcts_solver import AntLi... | PypiClean |
/jupyterlab_remote_contents-0.1.1.tar.gz/jupyterlab_remote_contents-0.1.1/node_modules/terser/lib/scope.js | "use strict";
import {
defaults,
keep_name,
mergeSort,
push_uniq,
make_node,
return_false,
return_this,
return_true,
string_template,
} from "./utils/index.js";
import {
AST_Arrow,
AST_Block,
AST_Call,
AST_Catch,
AST_Class,
AST_Conditional,
AST_DefClass,
... | PypiClean |
/chinilla-blockchain-1.4.0b6.tar.gz/chinilla-blockchain-1.4.0b6/chinilla/consensus/multiprocess_validation.py | from __future__ import annotations
import asyncio
import logging
import traceback
from concurrent.futures import Executor
from dataclasses import dataclass
from typing import Awaitable, Callable, Dict, List, Optional, Sequence, Tuple
from blspy import AugSchemeMPL, G1Element
from chinilla.consensus.block_header_vali... | PypiClean |
/django_szuprefix-0.10.24-py3-none-any.whl/django_szuprefix/common/admin.py | from __future__ import unicode_literals
from django.contrib import admin
from . import models
from django.contrib.contenttypes.admin import GenericTabularInline
class ImagesInline(GenericTabularInline):
model = models.Image
fields = ("file",)
class SettingInline(GenericTabularInline):
model = models.Se... | PypiClean |
/bbcu.singleCellBamQueries-1.0.4.tar.gz/bbcu.singleCellBamQueries-1.0.4/README.txt | ## Queries on bam file of single cell per genome position for finding rare mutations
single-cell-bam-queries.py --help
usage: single-cell-bam-queries.py [-h] --input-file INPUT_FILE --output-file
OUTPUT_FILE [--coordinates COORDINATES]
[--filtered-c... | PypiClean |
/Frcwp-0.0.7.tar.gz/Frcwp-0.0.7/README.rst | **What is Frcwp**
It means fast risk control with python.It's a lightweight tool that automatic recognize the outliers from a large data pool. ALL u need to do is making the data into a dataframe with columns. This project aims to help people get easily method with abnormal recognition, especially forces password attac... | PypiClean |
/matrix_synapse_jitsi-1.15.1.5-py3-none-any.whl/synapse/storage/_base.py | import logging
import random
from abc import ABCMeta
from typing import Any, Optional
from canonicaljson import json
from synapse.storage.database import LoggingTransaction # noqa: F401
from synapse.storage.database import make_in_list_sql_clause # noqa: F401
from synapse.storage.database import Database
from synap... | PypiClean |
/valuehorizon-companies-1.2.tar.gz/valuehorizon-companies-1.2/companies/migrations/0001_initial.py | from __future__ import unicode_literals
from django.db import models, migrations
import django.core.validators
class Migration(migrations.Migration):
dependencies = [
]
operations = [
migrations.CreateModel(
name='Company',
fields=[
('id', models.AutoFiel... | PypiClean |
/aspose-words-cloud-23.7.0.tar.gz/aspose-words-cloud-23.7.0/asposewordscloud/models/fields_response.py | import pprint
import re # noqa: F401
import datetime
import six
import json
class FieldsResponse(object):
"""The REST response with a collection of fields.
"""
"""
Attributes:
swagger_types (dict): The key is attribute name
and the value is attribute type.
att... | PypiClean |
/dark-matter-4.0.70.tar.gz/dark-matter-4.0.70/bin/relabel-newick-tree.py |
import sys
from ete3 import Tree
import argparse
def readNames(fp):
"""
Read the existing / news names file.
@param fp: A file pointer containing renaming information.
@raise ValueError: If there is a duplicate old name given or if a line
cannot be split into two TAB-separated fields.
@... | PypiClean |
/docstring_parser_fork-0.0.4-py3-none-any.whl/docstring_parser/google.py |
import inspect
import re
import typing as T
from collections import OrderedDict, namedtuple
from enum import IntEnum
from .common import (
EXAMPLES_KEYWORDS,
PARAM_KEYWORDS,
RAISES_KEYWORDS,
RETURNS_KEYWORDS,
YIELDS_KEYWORDS,
Docstring,
DocstringExample,
DocstringMeta,
DocstringPar... | PypiClean |
/toml_argparse-1.0.0-py3-none-any.whl/toml_argparse/argparse.py | import argparse
import sys
from typing import Any, Dict, List, MutableMapping, Tuple
import toml
class ArgumentParser(argparse.ArgumentParser):
"""A warpper of the argparse.ArgumentParser class that adds the ability to
specify the values for arguments using a TOML file.
This class extends the functional... | PypiClean |
/pytpmutils-0.1.2.tar.gz/pytpmutils-0.1.2/README.rst | TPM utils for Python
====================
Simple Trusted Platform Module utils (and example codes) for Python using *pytss* library.
Installation
------------
.. code-block:: bash
pip install pytpmutils
Dependencies
------------
* Debian / Ubuntu
.. code-block:: bash
sudo apt-get install tpm-tools libts... | PypiClean |
/InSilicoSeq-1.6.0-py3-none-any.whl/iss/generator.py |
from iss.util import load, rev_comp
from Bio import SeqIO
from Bio.Seq import Seq
from Bio.SeqUtils import gc_fraction
from Bio.SeqRecord import SeqRecord
from shutil import copyfileobj
import os
import sys
import random
import logging
import numpy as np
def reads(record, ErrorModel, n_pairs, cpu_number, output, s... | PypiClean |
/androguard-en-3.4.5.tar.gz/androguard-en-3.4.5/androguard/core/bytecodes/axml/__init__.py | from androguard.core import bytecode
from androguard.core.resources import public
from androguard.core.bytecodes.axml.types import *
from struct import pack, unpack
from xml.sax.saxutils import escape
import collections
from collections import defaultdict
from lxml import etree
import logging
import re
import sys
im... | PypiClean |
/sicor-0.19.0.tar.gz/sicor-0.19.0/bin/sicor_ac_EnMAP.py | """Command line program to run sicor for EnMAP Level-1B products."""
import argparse
import pprint
import sys
import dill
from enpt.io.reader import L1B_Reader
from enpt.options.config import EnPTConfig, config_for_testing_dlr
from sicor import __version__
from sicor.options import get_options
from sicor.sicor_enmap... | PypiClean |
/flaskxxl-0.10.8.tar.gz/flaskxxl-0.10.8/README.md | ## Flask-XXL
#### - A best practices approach to creating larger web apps with Flask, in an attempt to make Flask feel like it is as capable, if not more, than __Django__.
[](https://badge.fury.io/py/flaskxxl)
[:
__slots__ = ()
_SDM_NAME = "isisPointToPointHelloPDU"
_SDM_ATT_MAP = {
"CommonHeaderIntradomainRoutingProtocolDiscriminator": "isisPointToPointHelloPDU.isisHeader.commonHeader.intr... | PypiClean |
/netos-core-0.3.4.tar.gz/netos-core-0.3.4/netos_core/static/netos_core/js/eol_report.js | (function () {
const report = document.getElementById("report-chart");
const deviceTypeId = report.dataset.devicetypeid;
const devApiUrl = report.dataset.devapiurl;
if (deviceTypeId && devApiUrl) {
fetch(`${devApiUrl}?device_type_id=${deviceTypeId}`)
.then(r => r.json())
... | PypiClean |
/subnetfinder-1.2.1.tar.gz/subnetfinder-1.2.1/README.md | Subnet Finder assists in situations where any of the following apply:
* there are multiple IPAM solutions covering different areas of the enterprise
* connecting two large enterprise networks together in which neither have very many open subnets
* finding blocks which can be considered globally unique
In cases such a... | PypiClean |
/sorl_wmark-1.1.1-py3-none-any.whl/sorl_watermarker/engines/base.py | import os
from functools import wraps
from django.contrib.staticfiles.finders import find
from django.core.exceptions import ImproperlyConfigured
from sorl.thumbnail.engines.base import EngineBase as ThumbnailEngineBase
from ..conf import settings
from ..parsers import parse_geometry
def handle_padding(fn):
@w... | PypiClean |
/seq-tools-1.0.10.tar.gz/seq-tools-1.0.10/seqtools/align.py |
import re, sys
from collections import namedtuple
from seqtools.sequence import rc
from seqtools.range import GenomicRange
from seqtools.structure.transcript import Transcript
#, Exon, Junction
from string import maketrans
AlignmentStats = namedtuple('AlignmentStats',
['matches',
'misMatches',
'repMatches... | PypiClean |
/botbuilder_dialogs-4.14.4-py3-none-any.whl/botbuilder/dialogs/memory/dialog_state_manager.py | import builtins
from inspect import isawaitable
from traceback import print_tb
from typing import (
Callable,
Dict,
Iterable,
Iterator,
List,
Tuple,
Type,
TypeVar,
)
from botbuilder.core import ComponentRegistration
from botbuilder.dialogs.memory.scopes import MemoryScope
from .compo... | PypiClean |
/amundsen_databuilder-7.4.4-py3-none-any.whl/databuilder/filesystem/filesystem.py |
import logging
from typing import List
from pyhocon import ConfigFactory, ConfigTree
from retrying import retry
from databuilder import Scoped
from databuilder.filesystem.metadata import FileMetadata
LOGGER = logging.getLogger(__name__)
CLIENT_ERRORS = {'ClientError', 'FileNotFoundError', 'ParamValidationError'}
... | PypiClean |
/pushi_service-0.1.4.tar.gz/pushi_service-0.1.4/src/pushi/base/apn.py |
# Hive Pushi System
# Copyright (c) 2008-2018 Hive Solutions Lda.
#
# This file is part of Hive Pushi System.
#
# Hive Pushi System is free software: you can redistribute it and/or modify
# it under the terms of the Apache License as published by the Apache
# Foundation, either version 2.0 of the License, or (at your ... | PypiClean |
/azure-servicebus-7.11.1.zip/azure-servicebus-7.11.1/azure/servicebus/_common/message.py |
from __future__ import annotations
import time
import warnings
import datetime
import uuid
from typing import Optional, Dict, List, Union, Iterable, Any, Mapping, cast, TYPE_CHECKING
from .._pyamqp._message_backcompat import LegacyMessage, LegacyBatchMessage
from .._pyamqp.message import Message as pyamqp_Message
fro... | PypiClean |
/winappdbg-1.5.zip/winappdbg-1.5/tools/service.py |
# Service tool
# Copyright (c) 2009-2014, Mario Vilas
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice,
# this... | PypiClean |
/scripts/notGate.py | import numpy as np
from matplotlib import pyplot as plt
# Sigmoid Function
def sigmoid(z):
return 1 / (1 + np.exp(-z))
# Initialization of the neural network parameters
# Initialized all the weights in the range of between 0 and 1
# Bias values are initialized to 0
def initializeParameters(inputFeatures, neuronsInHi... | PypiClean |
/pulumi_azure_nextgen-0.6.2a1613157620.tar.gz/pulumi_azure_nextgen-0.6.2a1613157620/pulumi_azure_nextgen/securityinsights/v20190101preview/__init__.py |
# Export this package's modules as members:
from ._enums import *
from .action import *
from .alert_rule import *
from .bookmark import *
from .bookmark_relation import *
from .data_connector import *
from .get_action import *
from .get_alert_rule import *
from .get_bookmark import *
from .get_bookmark_relation import... | PypiClean |
/awstools_py-0.1.3-py3-none-any.whl/awstools/s3.py | import hmac
import base64
import hashlib
import boto3
from awstools._aws import AwsManager
class S3Manager(AwsManager):
RESOURCE_NAME = 's3'
CLIENT_NAME = 's3'
def get_folder(self, bucket, prefix):
bucket = self.resource.Bucket(bucket)
return bucket.objects.filter(Prefix=prefix.lstrip('/... | PypiClean |
/watson_machine_learning_client_V4-1.0.135-py3-none-any.whl/watson_machine_learning_client/helpers/helpers.py | import json
import os
from configparser import ConfigParser
from typing import Union, Dict
from ..utils.autoai.watson_studio import get_project, get_wmls_credentials_and_space_ids
__all__ = [
"get_credentials_from_config",
"pipeline_to_script",
'get_wmls_configuration'
]
def get_credentials_from_config(... | PypiClean |
/rsl_comm_py-0.1.11.tar.gz/rsl_comm_py-0.1.11/rsl_comm_py/um8_registers.py |
# Author: Dr. Konstantin Selyunin
# License: MIT
# Created: 2021.08.30
import logging
import os.path
import struct
from abc import abstractmethod, ABC
from typing import Union, Tuple
from rsl_xml_svd.rsl_svd_parser import RslSvdParser
class UM8Registers(ABC):
def __init__(self, **kwargs):
self.svd_pa... | PypiClean |
/nhanes-dl-0.0.18.tar.gz/nhanes-dl-0.0.18/nhanes_dl/download.py | from typing import Set, List
import pandas as pd
from urllib.error import HTTPError, URLError
from nhanes_dl.types import ContinuousNHANES, appendCodebooks, appendMortalities, \
codebookURL, Codebook, Mortality, getStartEndYear, joinCodebooks, \
linkCodebookWithMortality, mortalityURL, \
CodebookDownload, D... | PypiClean |
/pyros_interfaces_ros-0.4.2.tar.gz/pyros_interfaces_ros-0.4.2/pyros_interfaces_ros/pyros_ros.py | from __future__ import absolute_import
import logging
import unicodedata
import yaml
import six
from pyros_interfaces_common.basenode import PyrosBase
from pyros_interfaces_common.utils import deprecated
from . import config
_logger = logging.getLogger(__name__)
_logger.addHandler(logging.NullHandler())
class Pyr... | PypiClean |
/fbgradio-3.6.1.tar.gz/fbgradio-3.6.1/gradio/documentation.py | import inspect
from typing import Callable, Dict, List, Optional, Tuple
classes_to_document = {}
documentation_group = None
def set_documentation_group(m):
global documentation_group
documentation_group = m
if m not in classes_to_document:
classes_to_document[m] = []
def document(*fns):
"""... | PypiClean |
/django-cruds-padminlte-0.0.13a5.tar.gz/django-cruds-padminlte-0.0.13a5/cruds_adminlte/static/ckeditor/plugins/specialchar/dialogs/lang/tr.js | /*
Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang("specialchar","tr",{euro:"Euro işareti",lsquo:"Sol tek tırnak işareti",rsquo:"Sağ tek tırnak işareti",ldquo:"Sol çift tırnak işareti",rdquo:"Sağ çift... | PypiClean |
/FactorTest-1.0.8.tar.gz/FactorTest-1.0.8/FactorTestMain.py | from FactorTest.FactorTestPara import *
from FactorTest.FactorTestBox import *
class FactorTest():
def __init__(self):
self.startdate=20000101
self.enddate=21000101
self.factorlist=[]
self.FactorDataBase={'v':pd.DataFrame(columns=['time','code'])}
self.filterStockDF='FULL'
... | PypiClean |
/sol_warp-1.2.0-py3-none-any.whl/warp/yul/parse.py | from __future__ import annotations
from typing import Optional
import warp.yul.ast as ast
from warp.yul.utils import camelize, remove_prefix
from warp.yul.WarpException import WarpException, warp_assert, warp_assert_statement
_node_to_parser = {}
def register_parser(parser):
fun_name = parser.__name__
asse... | PypiClean |
/fw_file-3.0.0-py3-none-any.whl/fw_file/bruker.py | import re
import typing as t
from datetime import datetime
from fw_meta import MetaData
from fw_utils import BinFile, get_datetime
from .base import AnyFile, FieldsMixin, File, ReadOnly
ARRAY_RE = re.compile(r"\( \d+(, \d+)* \)")
VERSION_RE = re.compile(r"(PV|ParaVision) ?(?P<ver>\d+(\.\d+)+)")
class ParaVision(Re... | PypiClean |
/RsCMPX_WcdmaMeas-4.0.185.tar.gz/RsCMPX_WcdmaMeas-4.0.185/RsCMPX_WcdmaMeas/Implementations/WcdmaMeas/MultiEval/State/All.py | from typing import List
from .....Internal.Core import Core
from .....Internal.CommandsGroup import CommandsGroup
from .....Internal import Conversions
from .....Internal.Types import DataType
from .....Internal.ArgSingleList import ArgSingleList
from .....Internal.ArgSingle import ArgSingle
from ..... import enums
... | PypiClean |
/v2/model/create_sub_enterprise_account_request.py |
import pprint
import re
import six
class CreateSubEnterpriseAccountRequest:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and the value ... | PypiClean |
/pulumi_libvirt-0.4.1a1683352653.tar.gz/pulumi_libvirt-0.4.1a1683352653/pulumi_libvirt/pool.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__ = ['PoolArgs', 'Pool']
@pulumi.input_type
class PoolArgs:
def __init__(__self__, *,
t... | PypiClean |
/azure-cli-2.51.0.tar.gz/azure-cli-2.51.0/azure/cli/command_modules/acs/_completers.py |
from azure.cli.core.commands.parameters import get_one_of_subscription_locations
from azure.cli.core.decorators import Completer
@Completer
def get_k8s_upgrades_completion_list(cmd, prefix, namespace, **kwargs): # pylint: disable=unused-argument
"""Return Kubernetes versions available for upgrading an existing ... | PypiClean |
/BTrees-4.11.2.tar.gz/BTrees-4.11.2/.manylinux-install.sh |
set -e -x
# Running inside docker
# Set a cache directory for pip. This was
# mounted to be the same as it is outside docker so it
# can be persisted.
export XDG_CACHE_HOME="/cache"
# XXX: This works for macOS, where everything bind-mounted
# is seen as owned by root in the container. But when the host is Linux
# the... | PypiClean |
/tencentcloud-python-sdk-3.0.960.tar.gz/tencentcloud-python-sdk-3.0.960/tencentcloud/iecp/v20210914/models.py |
import warnings
from tencentcloud.common.abstract_model import AbstractModel
class ApplicationBasicConfig(AbstractModel):
"""应用基本配置
"""
def __init__(self):
r"""
:param _Name: 名称
:type Name: str
:param _Namespace: 命名空间
:type Namespace: str
:param _Workflo... | PypiClean |
/walt_client-8.2-py3-none-any.whl/walt/client/doc/md/log-show.md |
# How to query & display experiment logs
The main entrypoint to display experiment logs is subcommand `walt log show`.
Two kinds of logs exist: platform logs and experiment logs.
For more information about these walt logging features, or about walt logging concepts (log lines, log streams,
log issuers, log checkpoint... | PypiClean |
/paddlesci-1.1.0-py3-none-any.whl/ppsci/constraint/integral_constraint.py |
# 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 under the... | PypiClean |
/pmlab_lite-0.4.9.1.tar.gz/pmlab_lite-0.4.9.1/pmlab_lite/discovery/process_tree.py | import random
import string
from copy import copy
from pmlab_lite.discovery.cut import Cut
from pmlab_lite.helper.graph import Graph
class ProcessTree():
def __init__(self, miner, log: list, level: int = 0,
parent='root', discover = True):
self.miner = miner
self.level = level
self.parent = parent
se... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.