id stringlengths 1 8 | text stringlengths 6 1.05M | dataset_id stringclasses 1
value |
|---|---|---|
/autora-experimentalist-sampler-uncertainty-1.0.1.tar.gz/autora-experimentalist-sampler-uncertainty-1.0.1/docs/Basic Usage.ipynb | # Import Modules
```
import numpy as np
import matplotlib.pyplot as plt
from sklearn.linear_model import LogisticRegression
from autora.experimentalist.sampler.uncertainty import uncertainty_sampler
```
# Define Meta-Space
We will here define X values of interest as well as a ground truth model to derive y values.
... | PypiClean |
/mpl-interact-0.0.1.tar.gz/mpl-interact-0.0.1/mpl_interact/zoom.py | import abc
from typing import Optional
from mpl_events import mpl, MplObject_Type
from .base import InteractorBase, AxisType, KeyModifier
from .utils import scale_to_log, scale_from_log
class AxesZoomable(abc.ABC):
"""Axes zoomable interface
"""
@abc.abstractmethod
def begin(self, event: mpl.Locati... | PypiClean |
/neural_compressor-2.2.1-py3-none-any.whl/neural_compressor/experimental/nas/search_algorithms.py |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (c) 2021 Intel Corporation
#
# 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
#
# Un... | PypiClean |
/PyQt6_Frameless_Window-0.3.2-py3-none-any.whl/qframelesswindow/linux/__init__.py | from PyQt6.QtCore import QCoreApplication, QEvent, Qt
from PyQt6.QtGui import QMouseEvent
from PyQt6.QtWidgets import QWidget
from ..titlebar import TitleBar
from ..utils.linux_utils import LinuxMoveResize
from .window_effect import LinuxWindowEffect
class LinuxFramelessWindow(QWidget):
""" Frameless window for ... | PypiClean |
/tricubic-1.0.3.tar.gz/tricubic-1.0.3/thirdparty/pybind11/docs/advanced/pycpp/numpy.rst | .. _numpy:
NumPy
#####
Buffer protocol
===============
Python supports an extremely general and convenient approach for exchanging
data between plugin libraries. Types can expose a buffer view [#f2]_, which
provides fast direct access to the raw internal data representation. Suppose we
want to bind the following sim... | PypiClean |
/zombie_calculator-0.0.4.3-py3-none-any.whl/zombie_calculator/pack_resources/help/help.md | # **出怪计算器** #
----------
## 前言 ##
本计算器是在[@SKOSKX版](https://tieba.baidu.com/p/7713362872)基础上制作的魔改版。相较于原版,有以下特性:
1. **更更更更更高的效率**(高了多少请自行体会)
2. 将原模式1与模式3合并为新模式1,将原模式2与模式4合并为新模式2,原模式5有朝一日不咕的话……(
3. 加了gui(废话
4. 如果觉得该程序不错,不如star一个吧!
## 模式1使用示例 ##
计算1号玩家,PE(存档编号为13)在种子114514下2021-2030旗的出怪:
<img src="mode1.png" title="模式... | PypiClean |
/Agrothon-1.3.2.tar.gz/Agrothon-1.3.2/agrothon/tgbot/translations/tamil.py | class Language(object):
# Main Menu
MAIN_MENU = "<b>முதன்மை பட்டியல்</b>"
# Open Weather
WEATHER_FETCH = "விவரங்களைப் பெறுதல் தயவுசெய்து காத்திருங்கள்"
WEATHER = """
<b>📍 இடம் :</b><code> {}</code>
<b>🌡️ வெப்ப நிலை : </b><code>{} °C</code>
<b>💨 அழுத்தம் : </b><code>{} Pa</code>
<b>💧 ஈரப்பதம் : ... | PypiClean |
/melmac-76693-py3-none-any.whl/mlmc/models/lm_mogrifier.py | import string
import torch
from .abstracts_lm import LanguageModelAbstract
from ..layers import MogrifierLSTM
from ..representation import map_vocab
class MogrifierLMCharacter(LanguageModelAbstract):
def __init__(self, alphabet=string.ascii_letters+string.punctuation+"1234567890",
hidden_size=1... | PypiClean |
/pymc3-3.11.5.tar.gz/pymc3-3.11.5/GOVERNANCE.md | # Main Governance Document
The Project
===========
The PyMC3 Project (The Project) is an open source software project
affiliated with the 501c3 NumFocus Foundation. The goal of The Project is to
develop open source software and deploy open and public websites and services
for reproducible, exploratory and interactiv... | PypiClean |
/asv_runner-0.0.9-py3-none-any.whl/asv_runner/benchmarks/mark.py | import functools
import inspect
class SkipNotImplemented(NotImplementedError):
"""
Exception raised to indicate a skipped benchmark.
This exception inherits from `NotImplementedError`. It's used within an ASV
benchmark to skip the current benchmark for certain parameters or conditions
that are no... | PypiClean |
/pathlib_mate-1.2.1.tar.gz/pathlib_mate-1.2.1/pathlib_mate/mate_mutate_methods.py | import os
import shutil
# for type hint only
try: # pragma: no cover
from typing import TYPE_CHECKING, Union
if TYPE_CHECKING:
from .pathlib2 import Path
except ImportError: # pragma: no cover
pass
class MutateMethods(object):
"""
Provide methods to mutate the Path instance.
"""
... | PypiClean |
/alipay-sdk-python-pycryptodome-3.3.202.tar.gz/alipay-sdk-python-pycryptodome-3.3.202/alipay/aop/api/domain/KoubeiCateringPosSidedishbatchSaveModel.py | import json
from alipay.aop.api.constant.ParamConstants import *
from alipay.aop.api.domain.PosDishMaterialModel import PosDishMaterialModel
class KoubeiCateringPosSidedishbatchSaveModel(object):
def __init__(self):
self._dish_ids = None
self._dish_material_list = None
self._merchant_id ... | PypiClean |
/haruhi_dl-2021.8.1.tar.gz/haruhi_dl-2021.8.1/haruhi_dl/extractor/line.py | from __future__ import unicode_literals
import re
from .common import InfoExtractor
from ..compat import compat_str
from ..utils import (
ExtractorError,
int_or_none,
js_to_json,
str_or_none,
)
class LineTVIE(InfoExtractor):
_VALID_URL = r'https?://tv\.line\.me/v/(?P<id>\d+)_[^/]+-(?P<segment>ep... | PypiClean |
/django_amis_render-0.0.8-py3-none-any.whl/django_amis_render/static/amis-editor-demo/n/monaco-editor/min/vs/basic-languages/markdown/markdown.js | define("vs/basic-languages/markdown/markdown",["require","exports"],(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.language=t.conf=void 0,t.conf={comments:{blockComment:["\x3c!--","--\x3e"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"... | PypiClean |
/pyspnego-0.9.2-cp311-cp311-win32.whl/spnego/_asn1.py |
import collections
import datetime
import enum
import struct
import typing
from spnego._text import to_bytes, to_text
ASN1Value = collections.namedtuple("ASN1Value", ["tag_class", "constructed", "tag_number", "b_data"])
"""A representation of an ASN.1 TLV as a Python object.
Defines the ASN.1 Type Length Value (TLV... | PypiClean |
/h2o_pysparkling_2.4-3.42.0.2.post1.tar.gz/h2o_pysparkling_2.4-3.42.0.2.post1/h2o/estimators/rulefit.py |
from h2o.utils.metaclass import deprecated_params, deprecated_property
import h2o
from h2o.estimators.estimator_base import H2OEstimator
from h2o.exceptions import H2OValueError
from h2o.frame import H2OFrame
from h2o.utils.typechecks import assert_is_type, Enum, numeric
class H2ORuleFitEstimator(H2OEstimator):
... | PypiClean |
/cmsplugin-form-handler-0.2.0.tar.gz/cmsplugin-form-handler-0.2.0/docs/reference/templatetags.rst | --------------------------------------------------------------
:mod:`cmsplugin_form_handler.templatetags.cmsplugin_form_tags`
--------------------------------------------------------------
.. module:: cmsplugin_form_handler.templatetags.cmsplugin_form_tags
This module contains template tags that are provided by this ... | PypiClean |
/baiduads_sdk_auto-2023.1.0-py3-none-any.whl/baiduads/platproduct/model/get_product_list_response_wrapper.py | import re # noqa: F401
import sys # noqa: F401
from baiduads.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,
valid... | PypiClean |
/ftw.publisher.sender-2.14.6.tar.gz/ftw.publisher.sender-2.14.6/ftw/publisher/sender/workflows/subscribers.py | from Acquisition import aq_inner
from Acquisition import aq_parent
from ftw.publisher.core import belongs_to_parent
from ftw.publisher.sender.utils import is_temporary
from ftw.publisher.sender.workflows.interfaces import DELETE_ACTIONS
from ftw.publisher.sender.workflows.interfaces import IPublisherContextState
from f... | PypiClean |
/static_data_dp-0.1.1.tar.gz/static_data_dp-0.1.1/static_data_dp/DataStore.py | class DataStore:
def __init__(self, data):
self.data = {
"image": data["image"],
"name": data["name"],
"id": data["image"]["full"].split(".")[0],
}
def setImageUrl(self, imageUrl):
self.imageUrl = imageUrl
@property
def image(self):
r... | PypiClean |
/django-fluent-contents-3.0.tar.gz/django-fluent-contents-3.0/fluent_contents/utils/html.py | import warnings
from html5lib import HTMLParser, treebuilders, treewalkers
from html5lib.serializer import HTMLSerializer
try:
from html5lib.sanitizer import HTMLSanitizer
except ImportError:
HTMLSanitizer = None
def clean_html(input, sanitize=False):
"""
Takes an HTML fragment and processes it usin... | PypiClean |
/POT-0.9.1-cp39-cp39-win_amd64.whl/ot/plot.py |
import numpy as np
import matplotlib.pylab as pl
from matplotlib import gridspec
def plot1D_mat(a, b, M, title=''):
r""" Plot matrix :math:`\mathbf{M}` with the source and target 1D distribution
Creates a subplot with the source distribution :math:`\mathbf{a}` on the left and
target distribution :math:... | PypiClean |
/SentinelOne-1.2.1.tar.gz/SentinelOne-1.2.1/management/mgmtsdk_v2_1/entities/threat_action.py | class Enrichments(object):
def __init__(self, **kwargs):
self.id = kwargs.get('id', None)
self.createdAt = kwargs.get('createdAt', None)
self.updatedAt = kwargs.get('updatedAt', None)
self.interfaceType = kwargs.get('interfaceType', None)
self.interfaceGroupingKey = kwargs.g... | PypiClean |
/bpy_cuda-2.82-cp37-cp37m-win_amd64.whl/bpy_cuda-2.82.data/scripts/2.82/scripts/addons/add_mesh_extra_objects/__init__.py |
bl_info = {
"name": "Extra Objects",
"author": "Multiple Authors",
"version": (0, 3, 6),
"blender": (2, 80, 0),
"location": "View3D > Add > Mesh",
"description": "Add extra mesh object types",
"warning": "",
"wiki_url": "https://docs.blender.org/manual/en/dev/addons/"
"... | PypiClean |
/muarch-0.0.6.tar.gz/muarch-0.0.6/README.md | MUArch
======
###### Continuous Integration
[](https://travis-ci.com/DanielBok/muarch)
[](https://ci.appveyor.com/project/DanielBok/muarch)
###### Documentati... | PypiClean |
/gamification-engine-0.4.0.tar.gz/gamification-engine-0.4.0/gengine/app/jsscripts/node_modules/eslint/node_modules/inquirer/lib/objects/choices.js | 'use strict';
var assert = require('assert');
var _ = require('lodash');
var Separator = require('./separator');
var Choice = require('./choice');
/**
* Choices collection
* Collection of multiple `choice` object
* @constructor
* @param {Array} choices All `choice` to keep in the collection
*/
var Choices = mo... | PypiClean |
/notebooksmz-7.0.0-py3-none-any.whl/notebook/static/components/codemirror/src/edit/commands.js | import { deleteNearSelection } from "./deleteNearSelection.js"
import { runInOp } from "../display/operations.js"
import { ensureCursorVisible } from "../display/scrolling.js"
import { endOfLine } from "../input/movement.js"
import { clipPos, Pos } from "../line/pos.js"
import { visualLine, visualLineEnd } from "../lin... | PypiClean |
/file_groups-0.1.0.tar.gz/file_groups-0.1.0/src/file_handler_compare.py | from __future__ import annotations
import os
from pathlib import Path
import re
import logging
from typing import Sequence
from .compare_files import CompareFiles
from .types import FsPath
from .file_handler import FileHandler
_LOG = logging.getLogger(__name__)
class FileHandlerCompare(FileHandler):
"""Extend... | PypiClean |
/gautomator2-contrib-0.1.10.tar.gz/gautomator2-contrib-0.1.10/ga2/uiimage/tmplatematcher.py | import os
import cv2
import time
import logging
import numpy as np
from .utils import MatchResult,_getPosition,transparent,judge_SimpleColor
from . import cv2helper
_DEBUG_HANDLERS = {}
logger = logging.getLogger('cvmatcher')
logger.setLevel(logging.DEBUG)
_filter = logging.Filter(name='cvmatcher')
def addHandler(hd... | PypiClean |
/lbt-recipes-0.26.0.tar.gz/lbt-recipes-0.26.0/lbt_recipes/cumulative_radiation/flow/main_49ddb174.py | import luigi
import pathlib
from queenbee_local import QueenbeeTask
from queenbee_local import load_input_param as qb_load_input_param
from . import _queenbee_status_lock_
from .dependencies.cumulative_radiation_postprocess import _CumulativeRadiationPostprocess_49ddb174Orchestrator as CumulativeRadiationPostprocess_49... | PypiClean |
/xs_transformers-1.0.7-py3-none-any.whl/xs_transformers/models/squeezebert/tokenization_squeezebert_fast.py | """Tokenization classes for SqueezeBERT."""
import json
from typing import List, Optional, Tuple
from tokenizers import normalizers
from ...tokenization_utils_fast import PreTrainedTokenizerFast
from ...utils import logging
from .tokenization_squeezebert import SqueezeBertTokenizer
logger = logging.get_logger(__nam... | PypiClean |
/codat-sync-for-commerce-0.31.0.tar.gz/codat-sync-for-commerce-0.31.0/src/codatsynccommerce/models/shared/companysyncstatus.py |
from __future__ import annotations
import dataclasses
from codatsynccommerce import utils
from dataclasses_json import Undefined, dataclass_json
from typing import Optional
@dataclass_json(undefined=Undefined.EXCLUDE)
@dataclasses.dataclass
class CompanySyncStatus:
r"""Success"""
company_id: Optional[str] =... | 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_ipv4_hsrp_cfg.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 |
/tmlt_core-0.11.0-cp38-cp38-macosx_11_0_x86_64.whl/tmlt/core/transformations/chaining.py |
# SPDX-License-Identifier: Apache-2.0
# Copyright Tumult Labs 2023
from typing import Any, Callable, Optional
from typeguard import typechecked
from tmlt.core.exceptions import DomainMismatchError, MetricMismatchError
from tmlt.core.transformations.base import Transformation
class ChainTT(Transformation):
"""... | PypiClean |
/acsoo-3.3.0.tar.gz/acsoo-3.3.0/CHANGES.rst | Changes
~~~~~~~
.. Future (?)
.. ----------
.. -
3.1.0 (2021-01-04)
------------------
- pr-status: detect PR status from github pull requests URLs found in requirement files;
useful to detect them in comments
- Various improvements to the project template (in gitlab-ci.yml, and
pre-commit config, mostly) `#75 <... | PypiClean |
/async_dash-0.1.0a0-py3-none-any.whl/dash/html/Details.py |
from dash.development.base_component import Component, _explicitize_args
class Details(Component):
"""A Details component.
Details is a wrapper for the <details> HTML5 element.
For detailed attribute info see:
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/details
Keyword arguments:
- children (a li... | PypiClean |
/kis-0.10.0.tar.gz/kis-0.10.0/keras_segmentation/data_utils/augmentation.py | import numpy as np
try:
import imgaug as ia
from imgaug import augmenters as iaa
except ImportError:
print("Error in loading augmentation, can't import imgaug."
"Please make sure it is installed.")
IMAGE_AUGMENTATION_SEQUENCE = None
IMAGE_AUGMENTATION_NUM_TRIES = 10
loaded_augmentation_name = ... | PypiClean |
/lino-xl-23.9.1.tar.gz/lino-xl-23.9.1/lino_xl/lib/extensible/static/extensible-1.0.1/examples/calendar/remote.js | Ext.onReady(function(){
var today = new Date().clearTime();
apiRoot = 'remote/php/app.php/events/';
Ext.Msg.minWidth = 300;
// Let's load the calendar store remotely also. All you have to do to get
// color-coding is include this store with the CalendarPanel.
var calendarStore... | PypiClean |
/SAPL_Base-0.3.5-py3-none-any.whl/sapl_base/authorization_subscriptions.py | import json
class AuthorizationSubscription:
"""
AuthorizationSubscriptions are sent to the PolicyDecisionPoint and based on their data a Decision is returned.
"""
def __init__(self, subject, action, resource, environment=None,
subscription_id: int = None):
"""
Create... | PypiClean |
/ingestion-api-1.3.4.tar.gz/ingestion-api-1.3.4/ingestion/configuration.py | from __future__ import absolute_import
import copy
import logging
import multiprocessing
import sys
import urllib3
import six
from six.moves import http_client as httplib
class TypeWithDefault(type):
def __init__(cls, name, bases, dct):
super(TypeWithDefault, cls).__init__(name, bases, dct)
cls.... | PypiClean |
/Products.SilvaPoll-3.0.tar.gz/Products.SilvaPoll-3.0/Products/SilvaPoll/ServicePollsMySQL.py |
from AccessControl import ClassSecurityInfo
from App.class_init import InitializeClass
from Products.SilvaPoll.ServicePolls import ServicePolls
from Products.SilvaPoll.sqldb import SQLDB
class ServicePollsMySQL(ServicePolls):
"""Service that manages poll data
"""
security = ClassSecurityInfo()
meta_... | PypiClean |
/infomedia-python-1.2.tar.gz/infomedia-python-1.2/src/infomedia/hash2cfg/defines.py |
##
## This file is part of infomedia framework library
##
## Copyright (c) 2011-2012 Infomedia Foundation
##
## Author: Emmanuele Somma (emmanuele_DOT_somma_AT_infomedia_DOT_it)
##
## Any parts of this program derived from this project,
## or contributed by third-party developers are copyrighted by their
## ... | PypiClean |
/django-jutil-3.12.5.tar.gz/django-jutil-3.12.5/jutil/files.py | import os
from typing import List
from django.utils.translation import gettext as _
from jutil.format import is_media_full_path, strip_media_root
def list_files(dir_name: str, suffix: str = "", ignore_case: bool = True, use_media_root: bool = False, recurse: bool = False) -> List[str]:
"""Lists all files under sp... | PypiClean |
/ztfy.myams-0.1.33.tar.gz/ztfy.myams-0.1.33/src/ztfy/myams/resources/js/ext/bootstrap-treeview.min.js | !function(e,t,o,s){"use strict";var n={};n.settings={injectStyle:!0,levels:2,expandIcon:"glyphicon glyphicon-plus",collapseIcon:"glyphicon glyphicon-minus",emptyIcon:"glyphicon",nodeIcon:"",selectedIcon:"",checkedIcon:"glyphicon glyphicon-check",uncheckedIcon:"glyphicon glyphicon-unchecked",color:void 0,backColor:void ... | PypiClean |
/pulumi_azure_native-2.5.1a1693590910.tar.gz/pulumi_azure_native-2.5.1a1693590910/pulumi_azure_native/apimanagement/v20220901preview/list_workspace_policy_fragment_references.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
__all__ = [
'ListWorkspacePolicyFragmentReferencesResult',
'AwaitableListWorkspacePolicyFragmentReferencesResult',
'list_wor... | PypiClean |
/openerp-core-7.0.406.tar.gz/openerp-core-7.0.406/openerp/tools/which.py | __docformat__ = 'restructuredtext en'
__all__ = 'which which_files pathsep defpath defpathext F_OK R_OK W_OK X_OK'.split()
import sys
from os import access, defpath, pathsep, environ, F_OK, R_OK, W_OK, X_OK
from os.path import exists, dirname, split, join
windows = sys.platform.startswith('win')
defpath = environ.ge... | PypiClean |
/napari_mm3-0.0.14-py3-none-any.whl/napari_mm3/_deriving_widgets.py | from datetime import datetime
from magicgui.widgets import (
Container,
FileEdit,
LineEdit,
PushButton,
RangeEdit,
ComboBox,
)
from pathlib import Path
from .utils import TIFF_FILE_FORMAT_NO_PEAK, TIFF_FILE_FORMAT_PEAK
import h5py
import pickle
import yaml
import json
import tifffile as tiff
imp... | PypiClean |
/applepy-ui-0.0.5.tar.gz/applepy-ui-0.0.5/applepy/scenes/window.py | from typing import Callable, Optional, Union
from uuid import uuid4
from .. import Scene, Size, Point
from ..views.menu import MainMenu
from ..base.binding import AbstractBinding, bindable
from ..base.mixins import Modifiable
from ..base.utils import attachable, try_call
from ..base.view import View
from ..backend imp... | PypiClean |
/python-sunlightapi-1.1.1.tar.gz/python-sunlightapi-1.1.1/README.rst | ==================
python-sunlightapi
==================
.. warning::
This library is deprecated in favor of the more comprehensive `python-sunlight <http://python-sunlight.readthedocs.org>`_.
Python library for interacting with the Sunlight Labs API.
The Sunlight Labs API provides legislator information and di... | PypiClean |
/mypy-boto3-kms-1.28.37.tar.gz/mypy-boto3-kms-1.28.37/mypy_boto3_kms/type_defs.py | import sys
from datetime import datetime
from typing import IO, Any, Dict, List, Mapping, Sequence, Union
from botocore.response import StreamingBody
from .literals import (
AlgorithmSpecType,
ConnectionErrorCodeTypeType,
ConnectionStateTypeType,
CustomerMasterKeySpecType,
CustomKeyStoreTypeType,
... | PypiClean |
/cuckoo_db-0.2.2-py3-none-any.whl/cuckoo/cuckoo.py | from cuckoo.migration import Migration
from peewee import ProgrammingError
from playhouse.reflection import Introspector
from playhouse.migrate import PostgresqlMigrator
import importlib.util
import os
class Migrator(object):
def __init__(self, db, path):
self.db = db
self._path = path
... | PypiClean |
/rockset_v2-2.0.2.tar.gz/rockset_v2-2.0.2/rockset_v2/model/s3_collection_creation_request.py | import re # noqa: F401
import sys # noqa: F401
from rockset_v2.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,
val... | PypiClean |
/imperva-sdk-0.2.0.tar.gz/imperva-sdk-0.2.0/imperva_sdk/ADCUploader.py | import re
import requests
import os
import json
import threading
from time import sleep
from imperva_sdk.core import *
class ADCUploader(MxObject):
"""A simple example class"""
def __init__(self, connection):
self.cookies = {'JSESSIONID': str(connection._MxConnection__Headers['Cookie'])[11:],
... | PypiClean |
/brain_py-2.1.20-py3-none-any.whl/brainpy/math/operators/pre2post.py |
from functools import partial
from typing import Union, Tuple
import jax.numpy as jnp
from jax import vmap, jit
from jax.lax import cond
from brainpy.errors import MathError
from brainpy.math.jaxarray import JaxArray
from brainpy.math.numpy_ops import as_device_array
from brainpy.types import Array
from .pre2syn imp... | PypiClean |
/dogapi-1.11.1.tar.gz/dogapi-1.11.1/src/dogshell/tag.py | import sys
try:
import simplejson as json
except ImportError:
import json
from dogshell.common import report_errors, report_warnings, CommandLineClient
class TagClient(CommandLineClient):
def setup_parser(self, subparsers):
parser = subparsers.add_parser('tag', help='View and modify host tags.')... | PypiClean |
/condor-ir-1.2.2.tar.gz/condor-ir-1.2.2/condor/scripts/evaluate.py | import collections
import json
import click
import numpy
from condor.dbutil import requires_db, find_one
from condor.models.ranking_matrix import RankingMatrix
PerformanceResult = collections.namedtuple(
'PerformanceResult',
[
'true_positives',
'true_negatives',
'false_positives',
... | PypiClean |
/Transcrypt-3.7.16.tar.gz/Transcrypt-3.7.16/transcrypt/demos/parcel_demo/node_modules/postcss-discard-unused/node_modules/postcss/lib/list.js | 'use strict';
exports.__esModule = true;
/**
* Contains helpers for safely splitting lists of CSS values,
* preserving parentheses and quotes.
*
* @example
* const list = postcss.list;
*
* @namespace list
*/
var list = {
split: function split(string, separators, last) {
var array = [];
var ... | PypiClean |
/askbot-tuan-1.5.tar.gz/askbot-tuan-1.5/askbot/setup_templates/static/tiny_mce/plugins/table/langs/kl_dlg.js | tinyMCE.addI18n('kl.table_dlg',{"rules_border":"border","rules_box":"box","rules_vsides":"vsides","rules_rhs":"rhs","rules_lhs":"lhs","rules_hsides":"hsides","rules_below":"below","rules_above":"above","rules_void":"void",rules:"Rules","frame_all":"all","frame_cols":"cols","frame_rows":"rows","frame_groups":"groups","f... | PypiClean |
/counter_caller-2.0.3rc5-py3-none-any.whl/counter_caller/bower_components/howler.js/LICENSE.md | Copyright (c) 2013-2014 James Simpson and GoldFire Studios, Inc.
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, ... | PypiClean |
/tw.dojo-0.9.181.tar.gz/tw.dojo-0.9.181/tw/dojo/static/1.8.1/min/dojox/highlight/languages/xquery.js.uncompressed.js | define("dojox/highlight/languages/xquery", ["../_base"], function(dh){
// Very simple XQuery language file. Would be nice
// to eventually handle more of the enclosed expressions
// and direct XML element construction
var XQUERY_COMMENT = {
className: 'comment',
begin: '\\(\\:', end: '\\:\\)'
};
var XQUER... | PypiClean |
/aifs_nni-1.9.5-py3-none-manylinux1_x86_64.whl/aifs_nni-1.9.5.data/data/nni/node_modules/node-jose/lib/algorithms/rsassa.js | "use strict";
var forge = require("../deps/forge.js"),
CONSTANTS = require("./constants"),
helpers = require("./helpers.js"),
rsaUtil = require("./rsa-util.js");
function nodePSSsupport() {
return helpers.nodeCrypto && helpers.nodeCrypto.constants && helpers.nodeCrypto.constants.RSA_PSS_SALTLEN_DIGEST;
... | PypiClean |
/online_node2vec-0.1.1-py3-none-any.whl/online_node2vec/online/w2v_learners.py | from gensim.models import Word2Vec
from .npw2v import NPWord2Vec
import pandas as pd
import numpy as np
from collections import Counter, deque
class Word2VecBase():
def __init__(self):
self.all_words = None
self.model = None
def set_all_words(self, all_words):
self.all_words = all_... | PypiClean |
/merlin-sok-1.2.0.tar.gz/merlin-sok-1.2.0/third_party/json/doc/mkdocs/docs/home/exceptions.md | # Exceptions
## Overview
### Base type
All exceptions inherit from class `json::exception` (which in turn inherits from `std::exception`). It is used as the base class for all exceptions thrown by the `basic_json` class. This class can hence be used as "wildcard" to catch exceptions.
```plantuml
std::exception <|--... | PypiClean |
/beeswax-wrapper-1.1.9.tar.gz/beeswax-wrapper-1.1.9/beeswax_wrapper/modules/segments.py | from __future__ import unicode_literals
import ujson
from beeswax_wrapper.core.base_classes import BaseAPI
class Segment(BaseAPI):
"""Beeswax Segment API class"""
paths = ['segment']
def __init__(self, *args, **kwargs):
super(Segment, self).__init__(*args, **kwargs)
self.tags = Segment... | PypiClean |
/azure_mgmt_kubernetesconfiguration-3.0.0-py3-none-any.whl/azure/mgmt/kubernetesconfiguration/v2022_11_01/aio/_source_control_configuration_client.py |
from copy import deepcopy
from typing import Any, Awaitable, TYPE_CHECKING
from azure.core.rest import AsyncHttpResponse, HttpRequest
from azure.mgmt.core import AsyncARMPipelineClient
from .. import models as _models
from ..._serialization import Deserializer, Serializer
from ._configuration import SourceControlCon... | PypiClean |
/eric-ide-22.7.1.tar.gz/eric-ide-22.7.1/eric7/EricWidgets/EricTreeWidget.py |
# Copyright (c) 2009 - 2022 Detlev Offenbach <detlev@die-offenbachs.de>
#
"""
Module implementing specialized tree views.
"""
import enum
from PyQt6.QtCore import pyqtSignal, Qt
from PyQt6.QtWidgets import QTreeWidget, QTreeWidgetItem, QAbstractItemView
class EricTreeWidgetItemsState(enum.Enum):
"""
Class... | PypiClean |
/sqre-codekit-github3.py-1.0.0a4.tar.gz/sqre-codekit-github3.py-1.0.0a4/github3/git.py | from __future__ import unicode_literals
from json import dumps
from base64 import b64decode
from .models import GitHubCore, BaseCommit
from .decorators import requires_auth
class Blob(GitHubCore):
"""The :class:`Blob <Blob>` object.
See also: http://developer.github.com/v3/git/blobs/
"""
def _upd... | PypiClean |
/pulumi_oci-1.9.0a1693465256.tar.gz/pulumi_oci-1.9.0a1693465256/pulumi_oci/usageproxy/get_subscription_redeemable_users.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__ = [
'GetSubscriptionRedeemableUsersResult',
'AwaitableGetSubscriptionRedeemableUsersResult',
'... | PypiClean |
/taskcc-alipay-sdk-python-3.3.398.tar.gz/taskcc-alipay-sdk-python-3.3.398/alipay/aop/api/domain/UpdateCodeResult.py | import json
from alipay.aop.api.constant.ParamConstants import *
class UpdateCodeResult(object):
def __init__(self):
self._biz_id = None
self._code_token = None
self._context_data = None
self._error_code = None
self._error_message = None
self._success = None
... | PypiClean |
/walt_client-8.2-py3-none-any.whl/walt/client/doc/md/help-intro.md |
# Welcome to WalT documentation!
The [WalT project](https://walt-project.liglab.fr) allows to easily build and use your own WalT testbed.
Up to now, WalT testbeds have been used for research experiments, medium-sized (e.g., 100 nodes) industrial testing infrastructures, and mobile demo setups.
## Scope and design no... | PypiClean |
/AlignQC-2.0.5.tar.gz/AlignQC-2.0.5/alignqc/annotate_from_genomic_features.py | import sys, argparse, gzip, re, os, inspect, itertools
from multiprocessing import Pool, cpu_count
from seqtools.format.gpd import GPDStream
from seqtools.range.multi import merge_ranges, subtract_ranges, BedArrayStream, sort_ranges
from seqtools.range import GenomicRange
from seqtools.stream import MultiLocusStream
... | PypiClean |
/displaylang_sympy-0.10.4-py3-none-any.whl/sympy/physics/continuum_mechanics/beam.py | from sympy.core import S, Symbol, diff, symbols
from sympy.core.add import Add
from sympy.core.expr import Expr
from sympy.core.function import (Derivative, Function)
from sympy.core.mul import Mul
from sympy.core.relational import Eq
from sympy.core.sympify import sympify
from sympy.solvers import linsolve
from sympy.... | PypiClean |
/pyprika_client-0.2.1-py3-none-any.whl/pyprika/framework/specifications.py | from abc import ABC
class Specification:
def __and__(self, other):
return And(self, other)
def __or__(self, other):
return Or(self, other)
def __xor__(self, other):
return Xor(self, other)
def __invert__(self):
return Invert(self)
def is_satisfied_by(self, cand... | PypiClean |
/prob_dis-1.0.tar.gz/prob_dis-1.0/prob_dis/gauss_dis.py | import math
import matplotlib.pyplot as plt
from .general_dis 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 the stan... | PypiClean |
/polyglot-code-1.0.10.tar.gz/polyglot-code-1.0.10/README.rst | Polyglot Code!
==============
|python| |javascript|
Clone me!
---------------
Clone or download the project:
.. code:: sh
git clone https://github.com/cosasdepuma/polyglot-code.git Polyglot
[ or ]
git clone https://gitlab.com/cosasdepuma/polyglot-code.git Polyglot
cd Polyglot
Test it!
----------... | PypiClean |
/azure-communication-identity-1.4.0b1.zip/azure-communication-identity-1.4.0b1/azure/communication/identity/_generated/_configuration.py |
from typing import Any
from azure.core.configuration import Configuration
from azure.core.pipeline import policies
VERSION = "unknown"
class CommunicationIdentityClientConfiguration(Configuration): # pylint: disable=too-many-instance-attributes
"""Configuration for CommunicationIdentityClient.
Note that ... | PypiClean |
/pulumi_aws-6.1.0a1693529760.tar.gz/pulumi_aws-6.1.0a1693529760/pulumi_aws/ses/template.py |
import copy
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
__all__ = ['TemplateArgs', 'Template']
@pulumi.input_type
class TemplateArgs:
def __init__(__self__, *,
html: Optional[pulumi.Input[str]]... | PypiClean |
/dayu_ffmpeg-0.5.1.tar.gz/dayu_ffmpeg-0.5.1/README.rst | dayu_ffmpeg
===========
|pypi| |python| |build status| |github license|
dayu_ffmpeg 是针对ffmpeg 命令行的python 封装。 ffmpeg
的功能相当强大,但是复杂的终端指令往往让人无法使用。dayu_ffmpeg
正好解决了这个问题。 用户可以使用简单的 “流”
的概念搭建自己的处理方式,同时具有下面的特点:
- 通过 >> 运算符,表示stream 的操作
- 拥有ad-hoc 和network 两种操作模式
- 支持ffmpeg complex filter
- 如果用户需要使用的filter 不在默认的filter cl... | PypiClean |
/splunk-appinspect-2.37.0.tar.gz/splunk-appinspect-2.37.0/splunk_appinspect/checks/check_python_files.py | import ast
import logging
import os
import platform
import re
import semver
import splunk_appinspect
from splunk_appinspect.check_messages import FailMessage, WarningMessage
from splunk_appinspect.check_routine.python_ast_searcher.ast_searcher import AstSearcher
from splunk_appinspect.check_routine.python_ast_searche... | PypiClean |
/mroylib_min-2.2.5.tar.gz/mroylib_min-2.2.5/qlib/io/tracepoint.py | import functools
import requests
import time
import argparse
class TracePoint:
classes = []
funcs = []
flow = []
@staticmethod
def clear():
TracePoint.classes = []
TracePoint.funcs = []
TracePoint.flow = []
def __init__(self, cls, func, t):
if cls not ... | PypiClean |
/zerospeech-benchmarks-0.9.4.tar.gz/zerospeech-benchmarks-0.9.4/zerospeech/leaderboards/exporters/tde17.py | import argparse
import functools
import sys
from io import StringIO
from pathlib import Path
from typing import Optional, List, Dict
import pandas as pd
from rich.console import Console
from zerospeech.leaderboards.tde17 import TDE17Leaderboard, TDE17Entry
from zerospeech.leaderboards.utils import open_json, clean_la... | PypiClean |
/cw_testtool-0.1.41.tar.gz/cw_testtool-0.1.41/cw_testtool/RSAtool.py |
import os,sys
import base64
import requests
# from Crypto import Random
# from Crypto.Hash import SHA
# from Crypto.Cipher import PKCS1_v1_5 as Cipher_pkcs1_v1_5
# from Crypto.Signature import PKCS1_v1_5 as Signature_pkcs1_v1_5
# from Crypto.PublicKey import RSA
import rsa
# https://www.cnblogs.com/hhh5460/p/524341... | PypiClean |
/NehorayRapid-0.0.1-py3-none-any.whl/mmedit/datasets/sr_vimeo90k_multiple_gt_dataset.py | import os.path as osp
from .base_sr_dataset import BaseSRDataset
from .registry import DATASETS
crf_test = {
0 : "BD_start_1",
15: "BD_start_1_crf_15",
25: "BD_start_1_crf_25",
35: "BD_start_1_crf_35",
}
@DATASETS.register_module()
class SRVimeo90KMultipleGTDataset(BaseSRDataset):
"""Vimeo90K dat... | PypiClean |
/amundsen_databuilder-7.4.4-py3-none-any.whl/databuilder/extractor/base_postgres_metadata_extractor.py |
import abc
import logging
from collections import namedtuple
from itertools import groupby
from typing import (
Any, Dict, Iterator, Union,
)
from pyhocon import ConfigFactory, ConfigTree
from databuilder import Scoped
from databuilder.extractor.base_extractor import Extractor
from databuilder.extractor.sql_alch... | PypiClean |
/pulumi_azure_native-2.5.1a1693590910.tar.gz/pulumi_azure_native-2.5.1a1693590910/pulumi_azure_native/web/list_web_app_site_push_settings.py |
import copy
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
__all__ = [
'ListWebAppSitePushSettingsResult',
'AwaitableListWebAppSitePushSettingsResult',
'list_web_app_site_push_settings',
'list_web_app_s... | PypiClean |
/msgraph_beta_sdk-1.0.0a9-py3-none-any.whl/msgraph/generated/information_protection/sensitivity_labels/evaluate/evaluate_post_request_body.py | from __future__ import annotations
from kiota_abstractions.serialization import AdditionalDataHolder, Parsable, ParseNode, SerializationWriter
from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union
if TYPE_CHECKING:
from ....models import current_label, discovered_sensitive_type
class Evalua... | PypiClean |
/rxn_chem_utils-1.3.0-py3-none-any.whl/rxn/chemutils/smiles_augmenter.py | import logging
import random
from typing import Callable, List
from .miscellaneous import apply_to_any_smiles, apply_to_smiles_groups
logger = logging.getLogger(__name__)
logger.addHandler(logging.NullHandler())
class SmilesAugmenter:
"""
Class to augment any kind of SMILES string with the help of randomiza... | PypiClean |
/text_animator-0.1.0-py3-none-any.whl/text_animator/animator.py | import random
from time import sleep
from enum import Enum
from ascii_animator import Animator, Animation, Speed
class Effect(Enum):
RANDOM = 1
LEFT_TO_RIGHT = 2
RIGHT_TO_LEFT = 3
class Border():
def __init__(self, tm=1, bm=1, lm=1, rm=1, tp=1, bp=1, lp=1, rp=1):
self.tm = tm
self.b... | PypiClean |
/yt-dlp-2023.7.6.tar.gz/yt-dlp-2023.7.6/yt_dlp/extractor/alsace20tv.py | from .common import InfoExtractor
from ..utils import (
clean_html,
dict_get,
get_element_by_class,
int_or_none,
unified_strdate,
url_or_none,
)
class Alsace20TVBaseIE(InfoExtractor):
def _extract_video(self, video_id, url=None):
info = self._download_json(
'https://www... | PypiClean |
/nni_daily-1.5.2005180104-py3-none-manylinux1_x86_64.whl/nni_daily-1.5.2005180104.data/data/nni/node_modules/ssh2/README.md | # Description
SSH2 client and server modules written in pure JavaScript for [node.js](http://nodejs.org/).
Development/testing is done against OpenSSH (7.1 currently).
[Changes from v0.4.x-v0.5.x](https://github.com/mscdex/ssh2/wiki/Changes-from-0.4.x-to-0.5.x)
[:
"""
Triangular arbitrage... | PypiClean |
/cmus-notify-1.4.1.tar.gz/cmus-notify-1.4.1/cmus_notify/options.py |
from argparse import (RawDescriptionHelpFormatter,
ArgumentParser,
SUPPRESS)
from .constants import DEFAULT_CONFIGURATION_FILE
def parse_arguments():
"""Create an :class:`argparse.ArgumentParser` and parse the command-line arguments."""
parser = ArgumentParser(fo... | PypiClean |
/wavestate.model-0.1.1.tar.gz/wavestate.model-0.1.1/src/wavestate/model/system/algo_alm/mm_overlapper.py | import numpy as np
from .plot_alm import OverlapperPlotter
from wavestate.bunch import Bunch
from . import mm_annotate
from wavestate.utilities.strings import table
from ... import optics
class ModeMatchingOverlapper(object):
plotter = OverlapperPlotter()
def __init__(
self,
algo_pa,
... | PypiClean |
/102003712-0.0.6-py3-none-any.whl/topsisLibrary/topsis.py | import pandas as pd
import sys
import math
# read_file.to_csv("102003712-data.csv",
# index = None,
# header=True)
def main():
try:
read_file = pd.read_csv(sys.argv[1])
df = pd.DataFrame(read_file)
df1 = df.drop(df.columns[0], axis=1)
w = sys.arg... | PypiClean |
/bert_multitask_server-0.1.2-py3-none-any.whl/bert_multitask_serving/server/result_parser.py | import numpy as np
def remove_special_tokens(l1, l2):
l2 = l2[1:]
l2 = l2[:len(l1)]
return l1, l2
def merge_entity(tokens, labels):
merged_tokens = []
merged_labels = []
for token, label in zip(tokens, labels):
if label == 'O':
merged_tokens.append(token)
merg... | PypiClean |
/invz_package-0.0.9.tar.gz/invz_package-0.0.9/innerverz_package/face_color_transfer/sub_nets/warp_net.py | import sys
import torch
import torch.nn as nn
import torch.nn.functional as F
class WTA_scale(torch.autograd.Function):
"""
We can implement our own custom autograd Functions by subclassing
torch.autograd.Function and implementing the forward and backward passes
which operate on Tensors.
"""
... | PypiClean |
/brawlstats-4.1.1.tar.gz/brawlstats-4.1.1/README.rst | .. image:: https://i.imgur.com/5uUkTrn.png
:alt: Brawl Stats
Brawl Stats
===========
.. image:: https://img.shields.io/pypi/v/brawlstats.svg
:target: https://pypi.org/project/brawlstats/
:alt: PyPi
.. image:: https://travis-ci.com/SharpBit/brawlstats.svg?branch=master
:target: https://travis-ci.com/S... | PypiClean |
/aio_openapi-3.2.1.tar.gz/aio_openapi-3.2.1/openapi/pagination/offset.py | from dataclasses import dataclass
from typing import Dict, NamedTuple, Optional, Type
from multidict import MultiDict
from yarl import URL
from openapi.data.fields import Choice, integer_field, str_field
from openapi.utils import docjoin
from .pagination import (
DEF_PAGINATION_LIMIT,
MAX_PAGINATION_LIMIT,
... | PypiClean |
/fuzzy_rough_learn-0.2.2-py3-none-any.whl/frlearn/base.py |
from __future__ import annotations
from abc import ABC, abstractmethod
from inspect import signature
import numpy as np
from sklearn.base import BaseEstimator, ClassifierMixin
class SoftMachine(ABC):
"""
Abstract base class for machine learning algorithms.
Once initialised with hyperparameters, effect... | PypiClean |
/xpublish-host-1.1.5.tar.gz/xpublish-host-1.1.5/xpublish_host/config.py | import ipaddress as ip
import logging
import os
import typing as t
from pprint import pformat
from goodconf import GoodConf
from pydantic import (
BaseModel,
PositiveInt,
PyObject,
)
import xpublish
L = logging.getLogger(__name__)
class ClusterConfig(BaseModel):
module: PyObject
# Plugin argume... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.