id stringlengths 1 8 | text stringlengths 6 1.05M | dataset_id stringclasses 1
value |
|---|---|---|
/pyka-1.3.6.0.tar.gz/pyka-1.3.6.0/kafka/coordinator/consumer.py | from __future__ import absolute_import, division
import collections
import copy
import logging
import time
from kafka.vendor import six
from .base import BaseCoordinator, Generation
from .assignors.range import RangePartitionAssignor
from .assignors.roundrobin import RoundRobinPartitionAssignor
from .protocol import... | PypiClean |
/pyramids-gis-0.4.2.tar.gz/pyramids-gis-0.4.2/pyramids/dem.py | from typing import Dict
import numpy as np
from osgeo import gdal
from pyramids.dataset import Dataset
import sys
sys.setrecursionlimit(5000)
class DEM(Dataset):
"""GISCatchment class contains methods to deal with the MED and generate the flow direction based on the D8 method and process the DEM.
Methods:
... | PypiClean |
/ensmallen_graph-0.6.0-cp37-cp37m-manylinux2010_x86_64.whl/ensmallen_graph/datasets/string/roseivivaxsp22iis10s.py | from typing import Dict
from ..automatic_graph_retrieval import AutomaticallyRetrievedGraph
from ...ensmallen_graph import EnsmallenGraph # pylint: disable=import-error
def RoseivivaxSp22iis10s(
directed: bool = False,
verbose: int = 2,
cache_path: str = "graphs/string",
**additional_graph_kwargs: D... | PypiClean |
/jhc_cf_sdk_test-1.2.5-py3-none-any.whl/jhc_cf_sdk_test/paths/api_v1_admin_access_rules_rule_id_versions/get.py | from dataclasses import dataclass
import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
from jhc_cf_sdk_test import api_client, exceptions
from datetime import date, datetime # noqa: F401
import decimal # noqa: F401
import functools # noqa: F401
import io # noqa: F401
import re #... | PypiClean |
/pysaml2-7.4.2-py3-none-any.whl/saml2/response.py | import calendar
import logging
from saml2 import SAMLError
from saml2 import class_name
from saml2 import extension_elements_to_elements
from saml2 import saml
from saml2 import samlp
from saml2 import time_util
from saml2 import xmldsig as ds
from saml2 import xmlenc as xenc
from saml2.attribute_converter import to_l... | PypiClean |
/OpenCobolIDE-4.7.6.tar.gz/OpenCobolIDE-4.7.6/open_cobol_ide/extlibs/pyqode/core/panels/marker.py | import logging
from pyqode.core.api import TextDecoration
from pyqode.core.api.panel import Panel
from pyqode.core.api.utils import DelayJobRunner, TextHelper
from pyqode.qt import QtCore, QtWidgets, QtGui
def _logger():
""" Gets module's logger """
return logging.getLogger(__name__)
class Marker(QtCore.QO... | PypiClean |
/aws_terraform_casper-0.3.0-py3-none-any.whl/casper/states/aws.py | from casper.states.terraform import TerraformState
import re
import boto3
import json
import tempfile
class AWSState(TerraformState):
def __init__(
self,
profile=None,
bucket=None,
state_file=None,
load_state=False
):
self._resource_group_remap = {
... | PypiClean |
/async-suds-v7k-1.0.8.3.tar.gz/async-suds-v7k-1.0.8.3/asyncsuds/sudsobject.py | from logging import getLogger
from asyncsuds import *
log = getLogger(__name__)
def items(sobject):
"""
Extract the I{items} from a suds object.
Much like the items() method works on I{dict}.
@param sobject: A suds object
@type sobject: L{Object}
@return: A list of items contained in I{sob... | PypiClean |
/africunia-0.7.1.tar.gz/africunia-0.7.1/africuniabase/account.py | import hashlib
import sys
from binascii import hexlify, unhexlify
from graphenebase.account import Address as GPHAddress
from graphenebase.account import BrainKey as GPHBrainKey
from graphenebase.account import PasswordKey as GPHPasswordKey
from graphenebase.account import PrivateKey as GPHPrivateKey
from graphenebas... | PypiClean |
/qiskit-dell-runtime-0.1.4.tar.gz/qiskit-dell-runtime-0.1.4/doc/examples.ipynb | # Qiskit Dell Runtime Examples
## Local Execution
The following program walks through a (simple) example usage of the
Qiskit Dell Runtime in a local execution environment: i.e. potentially
using a locally installed simulator or a remote call directly from a
local machine to a remote simulator or QPU.
```
from... | PypiClean |
/odin-ai-1.2.0.tar.gz/odin-ai-1.2.0/odin/networks/mixture_density_network.py | from __future__ import absolute_import, division, print_function
import collections
import numpy as np
import tensorflow as tf
from sklearn.mixture import GaussianMixture
from tensorflow.python import keras
from tensorflow.python.framework import tensor_shape
from tensorflow.python.keras.layers import Dense
from tens... | PypiClean |
/sardana-3.3.6.tar.gz/sardana-3.3.6/doc/source/devel/api/api_1D.rst | .. currentmodule:: sardana.pool.poolonedexpchannel
.. _sardana-1d-api:
=============================
1D channel API reference
=============================
A 1D represents an experimental channel which acquisition result is a spectrum
value.
A 1D has a ``state``, and a ``value`` attributes. The state indicates at a... | PypiClean |
/theatre_of_spud-0.6.0.tar.gz/theatre_of_spud-0.6.0/build/lib/tos/dlg/act03/message.rst | .. |VERSION| property:: tos.story.version
:author: D E Haynes
:made_at: 2021-02-02
:project: Theatre of Spud
:version: |VERSION|
.. entity:: PLAYER
:types: tos.mixins.types.Character
:states: tos.mixins.types.Mode.playing
.. entity:: EDWARD
:types: tos.mixins.types.Character
:states: tos.types... | PypiClean |
/django-suit-ckeditor-custom-1.0.11.tar.gz/django-suit-ckeditor-custom-1.0.11/suit_ckeditor/static/suit-ckeditor/ckeditor/plugins/specialchar/dialogs/lang/pt-br.js | /*
Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
CKEDITOR.plugins.setLang("specialchar","pt-br",{euro:"Euro",lsquo:"Aspas simples esquerda",rsquo:"Aspas simples direita",ldquo:"Aspas duplas esquerda",rdq... | PypiClean |
/SQLAlchemy_mmeyer724-1.4.0b1-cp27-cp27m-win_amd64.whl/SQLAlchemy_mmeyer724-1.4.0b1.data/purelib/sqlalchemy/dialects/sqlite/json.py | from ... import types as sqltypes
class JSON(sqltypes.JSON):
"""SQLite JSON type.
SQLite supports JSON as of version 3.9 through its JSON1_ extension. Note
that JSON1_ is a
`loadable extension <https://www.sqlite.org/loadext.html>`_ and as such
may not be available, or may require run-time loadin... | PypiClean |
/qinling-5.0.0.tar.gz/qinling-5.0.0/doc/source/contributor/contributing.rst | ============================
So You Want to Contribute...
============================
For general information on contributing to OpenStack, please check out the
`contributor guide <https://docs.openstack.org/contributors/>`_ to get started.
It covers all the basics that are common to all OpenStack projects: the accou... | PypiClean |
/love_course_2016_2019-2023.3.1.0-py3-none-any.whl/LoveCourse20162019/docs/an-xiao-yao/13-安小妖《好男人,你也要学会撩妹》:151-200:173.框架如何维持?我来教你.md | # 13-安小妖《好男人,你也要学会撩妹》:151-200:173.框架如何维持?我来教你
教寗最巧妙的说话方式,征服女人的内心世界。,我是夏洛,欢迎大家点击进度调下方的订阅案内,订阅我的专辑。,我们之前经常提到一个词叫做框架,,意思呢就是说,我们跟女生相处的过程中要有自己的态度,。
不要任何事情都被女生带节奏,尤其是你的情绪,你的状态,,不要轻而易举的收到女生的影响。,我们应该更多的去引导女生来顺从我们的态度与安排,,那么就会有很多男生来问我了。,我该怎么去维持自己的框架呢?。
我的想法经常得不到女生的认同,怎么办?,最简单的,我想简单,我想带她出去玩,,对吧,她总说要学习,要陪朋友,这个时候我该怎么办?,那其实这是一个非常... | PypiClean |
/PyStaticConfiguration-0.11.1-py3-none-any.whl/staticconf/config.py | from collections import namedtuple
import hashlib
import logging
import os
import sys
import time
import weakref
from typing import Any
from typing import Callable
from typing import Dict
from typing import Iterator
from typing import List
from typing import Optional
from typing import Set
from typing import Tuple
from... | PypiClean |
/masstransitpython_byQ96-0.0.5-py3-none-any.whl/masstransitpython/RabbitMQReceiver.py | from pika import BlockingConnection
from pika import ConnectionParameters
import logging
class MetaClass(type):
_instance = {}
def __call__(cls, *args, **kwargs):
""" Singleton Pattern """
if cls not in cls._instance:
cls._instance[cls] = super(MetaClass, cls).__call__(*args, **kw... | PypiClean |
/Modhex-0.1.tar.gz/Modhex-0.1/README.txt | modhex
======
The Yubikey is a one-time password device that acts as a USB
keyboard, emitting a unique sequence of keycodes each time the button
is pressed. These codes produce different characters depending on
your keyboard layout. This can be frustrating if your keyboard layout
is incompatible with the Yubico server... | PypiClean |
/PGPy-0.6.0.tar.gz/PGPy-0.6.0/pgpy/constants.py | import bz2
import hashlib
import imghdr
import os
import zlib
import warnings
from collections import namedtuple
from enum import Enum
from enum import IntEnum
from enum import IntFlag
from pyasn1.type.univ import ObjectIdentifier
from cryptography.hazmat.backends import openssl
from cryptography.hazmat.primitives.a... | PypiClean |
/PICviewer-1.3.0.tar.gz/PICviewer-1.3.0/picviewer/dataplotter/makeplot.py | import matplotlib
import numpy as np
from mpl_toolkits.axes_grid1 import make_axes_locatable
from matplotlib.colors import LogNorm
from .cic_histogram import histogram_cic_2d
import matplotlib.patches as patches
from picviewer.dataloader.load_warpx import LoadWarpx
class MakePlot():
"""
Plot Data class
... | PypiClean |
/msgraph_beta_sdk-1.0.0a9-py3-none-any.whl/msgraph/generated/device_management/reports/get_configuration_policy_settings_device_summary_report/get_configuration_policy_settings_device_summary_report_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
class GetConfigurationPolicySettingsDeviceSummaryReportPostRequestBody(AdditionalDataHolder, Parsab... | PypiClean |
/dyneusr-0.3.11.tar.gz/dyneusr-0.3.11/docs/demo/haxby-umap-supervised/haxby_umap_supervised.py | import numpy as np
import pandas as pd
import networkx as nx
from nilearn.datasets import fetch_haxby
from nilearn.input_data import NiftiMasker
from kmapper import KeplerMapper, Cover
from sklearn.cluster import DBSCAN
from sklearn.decomposition import PCA
from sklearn.manifold import TSNE
from umap.umap_ import U... | PypiClean |
/openbb-3.2.2-py3-none-any.whl/openbb_terminal/cryptocurrency/defi/llama_view.py | __docformat__ = "numpy"
import logging
import os
from typing import Optional, Union
import pandas as pd
from openbb_terminal import OpenBBFigure, theme
from openbb_terminal.cryptocurrency.cryptocurrency_helpers import read_data_file
from openbb_terminal.cryptocurrency.defi import llama_model
from openbb_terminal.dec... | PypiClean |
/mattermost_api_reference_client-4.0.0.post1.tar.gz/mattermost_api_reference_client-4.0.0.post1/mattermost_api_reference_client/models/bot.py | from typing import Any, Dict, List, Type, TypeVar, Union
import attr
from ..types import UNSET, Unset
T = TypeVar("T", bound="Bot")
@attr.s(auto_attribs=True)
class Bot:
"""A bot account
Attributes:
user_id (Union[Unset, str]): The user id of the associated user entry.
create_at (Union[Uns... | PypiClean |
/msgraph_beta_sdk-1.0.0a9-py3-none-any.whl/msgraph/generated/models/windows_updates/content_approval.py | from __future__ import annotations
from kiota_abstractions.serialization import Parsable, ParseNode, SerializationWriter
from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union
if TYPE_CHECKING:
from . import compliance_change, deployable_content, deployment, deployment_settings
from . import... | PypiClean |
/scf-0.2.8.tar.gz/scf-0.2.8/tcfcli/cmds/local/libs/apigw/api_service.py |
import os
import logging
from tcfcli.libs.apis.provider import ApiProvider
from tcfcli.cmds.local.libs.apigw.local_service import LocalService, Route
from tcfcli.common.user_exceptions import NoApiDefinition
logger = logging.getLogger(__name__)
class LocalApiService(object):
_DEFAULT_PORT = 3000
_DEFAULT_HO... | PypiClean |
/requests-toolbelt-1.0.0.tar.gz/requests-toolbelt-1.0.0/requests_toolbelt/adapters/ssl.py | import requests
from requests.adapters import HTTPAdapter
from .._compat import poolmanager
class SSLAdapter(HTTPAdapter):
"""
A HTTPS Adapter for Python Requests that allows the choice of the SSL/TLS
version negotiated by Requests. This can be used either to enforce the
choice of high-security TLS ... | PypiClean |
/laion_clap-1.1.4-py3-none-any.whl/laion_clap/evaluate/eval_linear_probe.py | import logging
import os
import random
from datetime import datetime
import copy
import numpy as np
import torch
import torch.backends.cudnn as cudnn
from torch.cuda.amp import GradScaler
import glob
try:
import wandb
except ImportError:
wandb = None
try:
import torch.utils.tensorboard as tensorboard
exce... | PypiClean |
/pyglet_desper-0.9.0-py3-none-any.whl/pyglet_desper/model.py | import json
import os.path as pt
from typing import Union, Optional, Callable
import desper
import pyglet
from pyglet.graphics import Group
from pyglet.image import Animation, AnimationFrame, AbstractImage
from pyglet.media.codecs import MediaDecoder
from pyglet.image.codecs import ImageDecoder
from pyglet.image.atlas... | PypiClean |
/moser_pylint-2.7.2-py3-none-any.whl/pylint/reporters/ureports/text_writer.py |
# Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
# For details: https://github.com/PyCQA/pylint/blob/master/COPYING
"""Text formatting drivers for ureports"""
from pylint.reporters.ureports import BaseWriter
TITLE_UNDERLINES = ["", "=", "-", "`", ".", "~", "^"]
BULLETS = ["*", "-"]
... | PypiClean |
/mis_modulos-0.1.tar.gz/mis_modulos-0.1/virtualenv/seed/wheels/util.py | from operator import attrgetter
from zipfile import ZipFile
class Wheel:
def __init__(self, path):
# https://www.python.org/dev/peps/pep-0427/#file-name-convention
# The wheel filename is {distribution}-{version}(-{build tag})?-{python tag}-{abi tag}-{platform tag}.whl
self.path = path
... | PypiClean |
/livecellx-0.0.2.tar.gz/livecellx-0.0.2/notebooks/traj_feature.ipynb | ```
from pathlib import Path
import cv2
import sys
import numpy as np
from skimage import feature, measure
import livecell_tracker
from livecell_tracker.core import datasets
from livecell_tracker.core.datasets import LiveCellImageDataset
import livecell_tracker.segment
from livecell_tracker import core
import livecell_... | PypiClean |
/CCC-2.0.1.tar.gz/CCC-2.0.1/ccc/click_to_call/views.py | import json
from collections import OrderedDict, deque
from math import ceil
import xlwt
from django.conf import settings
from django.contrib.auth.decorators import login_required
from django.http import HttpResponse
from django.http.response import HttpResponseRedirect, JsonResponse
from django.shortcuts import get_o... | PypiClean |
/py-pure-client-1.38.0.tar.gz/py-pure-client-1.38.0/pypureclient/flasharray/FA_2_13/models/array_performance.py | import pprint
import re
import six
import typing
from ....properties import Property
if typing.TYPE_CHECKING:
from pypureclient.flasharray.FA_2_13 import models
class ArrayPerformance(object):
"""
Attributes:
swagger_types (dict): The key is attribute name
and the value ... | PypiClean |
/ladybug-comfort-0.16.46.tar.gz/ladybug-comfort-0.16.46/ladybug_comfort/humidex.py | """Utility functions for calculating the Humidex."""
from __future__ import division
import math
def humidex(ta, tdp):
"""Calculate Humidex from air temperature and the Dew Point.
The Humidex is a Canadian innovation first used in 1965.
It combines the temperature and humidity into one number to reflect... | PypiClean |
/python-cpl-0.7.4.tar.gz/python-cpl-0.7.4/cpl/frames.py | from __future__ import absolute_import
import os
from astropy.io import fits
from . import md5sum
class FrameConfig(object):
'''Frame configuration.
Each :class:`FrameConfig` object stores information about one the data
type a recipe can process. They are used for defining the calibration
files. How... | PypiClean |
/relative-addons-system-2.5.4.tar.gz/relative-addons-system-2.5.4/RelativeAddonsSystem/utils/cache.py | import os
from pathlib import Path
from .storage import Storage
class RelativeAddonsSystemCache(Storage):
_instance = None
DATA_KEY = "addons_data"
STATES_KEY = "addons_states"
def __init__(self, path: Path):
super().__init__(path)
self.initialize({self.DATA_KEY: {}, self.STATES_KEY:... | PypiClean |
/custom-awscli-1.27.51.tar.gz/custom-awscli-1.27.51/awscli/examples/securityhub/list-members.rst | **To retrieve a list of member accounts**
The following ``list-members`` example returns the list of member accounts for the requesting administrator account. ::
aws securityhub list-members
Output::
{
"Members": [
{
"AccountId": "123456789111",
"Adminis... | PypiClean |
/py_hcl-0.1.2.tar.gz/py_hcl-0.1.2/py_hcl/firrtl_ir/expr/prim_ops.py | from . import Expression
from ..utils import serialize_num
class Add(Expression):
def __init__(self, args, tpe):
self.args = args
self.tpe = tpe
def serialize(self, output):
output.write(b"add(")
self.args[0].serialize(output)
output.write(b", ")
self.args[1].s... | PypiClean |
/material_zui-0.1.6-py3-none-any.whl/material_zui/image/colorization.py | from cv2 import Mat
import numpy as np
import cv2
import os
"""
Credits:
1. https://github.com/opencv/opencv/blob/master/samples/dnn/colorization.py
2. http://richzhang.github.io/colorization/
3. https://github.com/richzhang/colorization/
Download the model files:
1. colorization_deploy_v2.prototxt: https://gith... | PypiClean |
/sincfold-0.12.tar.gz/sincfold-0.12/README.md | # **sincFold**
This is the repository for sincFold, a new RNA folding prediction tool based on deep learning.
<p align="center">
<img src="abstract.png" alt="abstract">
</p>
SincFold is a fast and accurate RNA secondary structure prediction method. It is an end-to-end approach that predicts the contact matrix usin... | PypiClean |
/torch_yolo3-0.1.1.tar.gz/torch_yolo3-0.1.1/config/create_custom_model.sh |
NUM_CLASSES=$1
echo "
[net]
# Testing
#batch=1
#subdivisions=1
# Training
batch=16
subdivisions=1
width=416
height=416
channels=3
momentum=0.9
decay=0.0005
angle=0
saturation = 1.5
exposure = 1.5
hue=.1
learning_rate=0.001
burn_in=1000
max_batches = 500200
policy=steps
steps=400000,450000
scales=.1,.1
[convolutiona... | PypiClean |
/coinbase4py-0.3.2.tar.gz/coinbase4py-0.3.2/README.md | coinbase4py
===========
python & Django include project for anybody who wants to use coinbase.com
A small Django app that provides a client to coinbase.com
# Installation
- Get a git clone of the source tree:
git clone https://github.com/claytantor/coinbase4py.git
Then you'll need the "lib" subd... | PypiClean |
/tencentcloud_iac_pulumi-0.1.5.tar.gz/tencentcloud_iac_pulumi-0.1.5/tencentcloud_iac_pulumi/dbbrain/db_diag_report_task.py |
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
__all__ = ['DbDiagReportTaskArgs', 'DbDiagReportTask']
@pulumi.input_type
class DbDiagReportTaskArgs:
def __init__(__self__, *,
end_time: pulumi.Inpu... | PypiClean |
/pyf.services-2.0.2.tar.gz/pyf.services-2.0.2/pyf/services/public/scripts/wireit/lib/inputex/build/inputex-min.js | (function(){var B=YAHOO.lang;YAHOO.inputEx=function(C){var D=null;if(C.type){D=YAHOO.inputEx.getFieldClass(C.type);if(D===null){D=YAHOO.inputEx.StringField}}else{D=C.fieldClass?C.fieldClass:A.StringField}var E=new D(C.inputParams);return E};var A=YAHOO.inputEx;B.augmentObject(A,{VERSION:"0.2.1",spacerUrl:"images/space.... | PypiClean |
/selkie-0.21.5.tar.gz/selkie-0.21.5/seal/app/handler.py |
import sys, socket, threading, selectors, ssl, urllib, time
from socketserver import _ServerSelector
from http.server import BaseHTTPRequestHandler
from threading import Thread
from traceback import print_exc
from wsgiref.handlers import read_environ, format_date_time
from wsgiref.headers import Headers
from wsgiref.... | PypiClean |
/PyQt6-Fluent-Widgets-1.1.9.tar.gz/PyQt6-Fluent-Widgets-1.1.9/qfluentwidgets/common/config.py | import json
from enum import Enum
from pathlib import Path
import darkdetect
from PyQt6.QtCore import QObject, pyqtSignal
from PyQt6.QtGui import QColor
from .exception_handler import exceptionHandler
class Theme(Enum):
""" Theme enumeration """
LIGHT = "Light"
DARK = "Dark"
AUTO = "Auto"
class C... | PypiClean |
/dist_probabilty-1.1.tar.gz/dist_probabilty-1.1/dist_probabilty/Binomialdistribution.py | import math
import matplotlib.pyplot as plt
from .Generaldistribution import Distribution
class Binomial(Distribution):
""" Binomial distribution class for calculating and
visualizing a Binomial distribution.
Attributes:
mean (float) representing the mean value of the distribution
std... | PypiClean |
/dsin100daysv35-6.0.1.tar.gz/dsin100daysv35-6.0.1/notebook/static/edit/js/main.js |
requirejs([
'jquery',
'contents',
'base/js/namespace',
'base/js/utils',
'base/js/page',
'base/js/events',
'services/config',
'edit/js/editor',
'edit/js/menubar',
'edit/js/savewidget',
'edit/js/notificationarea',
'bidi/bidi',
], function(
$,
contents_service,
... | PypiClean |
/cdktf-cdktf-provider-azurerm-10.0.1.tar.gz/cdktf-cdktf-provider-azurerm-10.0.1/src/cdktf_cdktf_provider_azurerm/storage_data_lake_gen2_path/__init__.py | import abc
import builtins
import datetime
import enum
import typing
import jsii
import publication
import typing_extensions
from typeguard import check_type
from .._jsii import *
import cdktf as _cdktf_9a9027ec
import constructs as _constructs_77d1e7e8
class StorageDataLakeGen2Path(
_cdktf_9a9027ec.Terraform... | PypiClean |
/tensorflow_cpu_test_package-2.11.0rc0-cp38-cp38-win_amd64.whl/tensorflow/python/profiler/profiler_client.py | """Profiler client APIs."""
from tensorflow.python.framework import errors
from tensorflow.python.profiler.internal import _pywrap_profiler
from tensorflow.python.util.tf_export import tf_export
_GRPC_PREFIX = 'grpc://'
@tf_export('profiler.experimental.client.trace', v1=[])
def trace(service_addr,
logdi... | PypiClean |
/tryp-nvim-7.4.1.tar.gz/tryp-nvim-7.4.1/trypnv/test/spec.py | from typing import Callable, Any
from contextlib import contextmanager
from flexmock import flexmock
from tryp import may, Maybe, List
from tryp.test import Spec
import trypnv
from trypnv.nvim import Buffer, Tab, Window
from trypnv import NvimFacade
class MockNvim(object):
@property
def window(self):
... | PypiClean |
/hetdex_api-0.8.7.tar.gz/hetdex_api-0.8.7/hetdex_api/extinction.py | import numpy as np
from scipy import interpolate
import extinction
from hetdex_api.config import HDRconfig
LATEST_HDR_NAME = HDRconfig.LATEST_HDR_NAME
config = HDRconfig(LATEST_HDR_NAME)
from dustmaps.config import config as dustmaps_config
if dustmaps_config['data_dir'] is None:
print("Populating dustmaps config... | PypiClean |
/matplotlib-3.8.0rc1-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/mpl_toolkits/axes_grid1/inset_locator.py | from matplotlib import _api, _docstring
from matplotlib.offsetbox import AnchoredOffsetbox
from matplotlib.patches import Patch, Rectangle
from matplotlib.path import Path
from matplotlib.transforms import Bbox, BboxTransformTo
from matplotlib.transforms import IdentityTransform, TransformedBbox
from . import axes_siz... | PypiClean |
/torch_hd-5.3.0-py3-none-any.whl/torchhd/datasets/conn_bench_sonar_mines_rocks.py | from typing import List
from torchhd.datasets import DatasetFourFold
class ConnBenchSonarMinesRocks(DatasetFourFold):
"""`Connectionist Bench (Sonar, Mines vs. Rocks) <https://archive.ics.uci.edu/ml/datasets/connectionist+bench+(sonar,+mines+vs.+rocks)>`_ dataset.
.. list-table::
:widths: 10 10 10 10... | PypiClean |
/jupyter_rtc_test-0.0.4.tar.gz/jupyter_rtc_test-0.0.4/jupyter_rtc_test/rtc1/loaders.py |
from __future__ import annotations
import asyncio
from logging import Logger, getLogger
from typing import Any, Callable, Coroutine
from jupyter_server.services.contents.manager import (
AsyncContentsManager,
ContentsManager,
)
from jupyter_server.utils import ensure_async
from jupyter_server_fileid.manager ... | PypiClean |
/ScopeFoundry-1.2.2.tar.gz/ScopeFoundry-1.2.2/plugin_manager/templates/_readout.py | import pyqtgraph as pg
from pyqtgraph.dockarea import DockArea
from qtpy.QtWidgets import QVBoxLayout, QHBoxLayout, QWidget
from ScopeFoundry import Measurement, h5_io
class $READOUT_CLASS_NAME(Measurement):
name = "$READOUT_NAME"
def setup(self):
S = self.settings
S.New("save_h5", bool, i... | PypiClean |
/pulumi_google_native-0.31.2a1689827148.tar.gz/pulumi_google_native-0.31.2a1689827148/pulumi_google_native/iam/v1/get_workforce_pool_provider.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__ = [
'GetWorkforcePoolProviderResult',
'AwaitableGetWorkforcePoolProviderResult',
'get_workforce_pool_provider',
... | PypiClean |
/smart_home_tng-2023.1.3.tar.gz/smart_home_tng-2023.1.3/smart_home_tng/components/media_source/upload_media_view.py | import logging
import pathlib
import shutil
import typing
import voluptuous as vol
from aiohttp import web, web_request
from ... import core
from .const import Const
from .local_source import LocalSource
from .media_source_item import MediaSourceItem
if not typing.TYPE_CHECKING:
class MediaSourceComponent:
... | PypiClean |
/tw2.ace-0.2.1.tar.gz/tw2.ace-0.2.1/tw2/ace/static/ace/theme-mono_industrial.js | ace.define('ace/theme/mono_industrial', ['require', 'exports', 'module' , 'ace/lib/dom'], function(require, exports, module) {
exports.isDark = true;
exports.cssClass = "ace-mono-industrial";
exports.cssText = ".ace-mono-industrial .ace_gutter {\
background: #1d2521;\
color: #C5C9C9\
}\
.ace-mono-industrial .ace_print... | PypiClean |
/model-porter-4.1.1.tar.gz/model-porter-4.1.1/src/model_porter/model_porter.py | import importlib
import sys
from django.apps import apps
from django.contrib.contenttypes.models import ContentType
from .repository import assign_key_value_to_instance
from .support_mixin import ModelPorterSupportMixin
from .config import ModelPorterConfig
mod = sys.modules[__name__]
class WagtailFunctions:
... | PypiClean |
/xotl.ql-0.7.0.tar.gz/xotl.ql-0.7.0/docs/source/api/core.rst | .. _query-lang:
=====================================
`xotl.ql.core`:mod: -- The core API
=====================================
.. module:: xotl.ql.core
The module `xotl.ql.core`:mod: provide the high level API for obtaining a
`query object`:term: from a `query expression`:term:.
.. data:: this
This is an obje... | PypiClean |
/insights-engine-1.0.14.tar.gz/insights-engine-1.0.14/insights_engine/api/groups_api.py | import re # noqa: F401
import sys # noqa: F401
from insights_engine.api_client import ApiClient, Endpoint as _Endpoint
from insights_engine.model_utils import ( # noqa: F401
check_allowed_values,
check_validations,
date,
datetime,
file_type,
none_type,
validate_and_convert_types
)
from i... | PypiClean |
/teenstudy-0.2.1-py3-none-any.whl/TeenStudy/web/pages/addArea.py | from amis import InputText, Form, DisplayModeEnum, Alert, LevelEnum, Select, PageSchema
from amis import Page, ActionType, Dialog, Card, Tpl, Switch, CardsCRUD
detail_form = Form(
title='',
api='put:/TeenStudy/api/change?user_id=${user_id}',
submitText='保存修改',
mode=DisplayModeEnum.horizontal,
label... | PypiClean |
/resoto-plugin-cleanup-aws-alarms-3.6.5.tar.gz/resoto-plugin-cleanup-aws-alarms-3.6.5/resoto_plugin_cleanup_aws_alarms/__init__.py | from resotolib.baseplugin import BaseActionPlugin
from resotolib.core.search import CoreGraph
from resotolib.graph import Graph
from resoto_plugin_aws.resource.cloudwatch import AwsCloudwatchAlarm
from resoto_plugin_aws.resource.ec2 import AwsEc2Instance
from resotolib.logger import log
from resotolib.config import Con... | PypiClean |
/qgis-deployment-toolbelt-0.26.0.tar.gz/qgis-deployment-toolbelt-0.26.0/qgis_deployment_toolbelt/cli.py | # #############################################################################
# ########## Libraries #############
# ##################################
# Standard library
import argparse
import logging
import sys
# submodules
from qgis_deployment_toolbelt.__about__ import (
__author__,
__summary__,
__ti... | PypiClean |
/nifstd-tools-0.0.7.tar.gz/nifstd-tools-0.0.7/nifstd_tools/hbp_parc_output.py | import subprocess
from pathlib import Path
from collections import defaultdict
import rdflib
from ttlser import natsort
from pyontutils.core import qname, makeGraph
from pyontutils.utils import TermColors as tc
from pyontutils.namespaces import NIFRID, ilxtr
from pyontutils.combinators import restriction, annotation
f... | PypiClean |
/sendbird_platform_sdk-0.0.16-py3-none-any.whl/sendbird_platform_sdk/model/add_hms_push_configuration_response_push_configurations_inner.py | import re # noqa: F401
import sys # noqa: F401
from sendbird_platform_sdk.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_ty... | PypiClean |
/django-tastypie-swagger-ng-0.1.3.tar.gz/django-tastypie-swagger-ng-0.1.3/tastypie_swagger/static/tastypie_swagger/js/lib/backbone-min.js |
// (c) 2010-2012 Jeremy Ashkenas, DocumentCloud Inc.
// Backbone may be freely distributed under the MIT license.
// For all details and documentation:
// http://backbonejs.org
(function(){var l=this,y=l.Backbone,z=Array.prototype.slice,A=Array.prototype.splice,g;g="undefined"!==typeof exports?exports:l.Backbone={};g.... | PypiClean |
/django-canjs-0.1.2.tar.gz/django-canjs-0.1.2/canjs/static/canjs/1.1.5/amd/can/observe/list.js | define(['can/util/library', 'can/observe', 'can/observe/compute'], function (can) {
can.extend(can.Observe.List.prototype, {
filter: function (callback) {
// The filtered list
var filtered = new this.constructor();
var self = this;
// Creates the binder for a ... | PypiClean |
/cdk8s_aws_alb_ingress_controller-1.0.0-py3-none-any.whl/cdk8s_aws_alb_ingress_controller/__init__.py | import abc
import builtins
import datetime
import enum
import typing
import jsii
import publication
import typing_extensions
from ._jsii import *
import constructs
class AlbIngressController(
constructs.Construct,
metaclass=jsii.JSIIMeta,
jsii_type="cdk8s-aws-alb-ingress-controller.AlbIngressController... | PypiClean |
/enrich-1.2.6.tar.gz/enrich-1.2.6/README.md | # enrich
Enriched extends [rich](https://pypi.org/project/rich/) library functionality
with a set of changes that were not accepted to rich itself.
## Console with redirect support
Our Console class adds one additional option to rich.Console in order to
redirect `sys.stdout` and `sys.stderr` streams using a FileProx... | PypiClean |
/love_course_2016_2019-2023.3.1.0-py3-none-any.whl/LoveCourse20162019/docs/ai-shang-qing-gan/爱上情感《魅力男神全套》:12超级吸引力(老实人也能拥有让女孩倒追的魅力!):如何真正的学会恋爱学?带你了解一手经验与二手经验!.md | # 爱上情感《魅力男神全套》:12 超级吸引力(老实人也能拥有让女孩倒追的魅力!):如何真正的学会恋爱学?带你了解一手经验与二手经验!
今天给大家带了利机我们这个内议进品课我们去看一下现在要讲的这个图题,现在主题就是说如何真正的去真正的学会内议学,如果真正的学会设交或者说如何真正的能够找到一个你喜欢的女孩,他也是并且能够喜欢你。
打如何去更加高兆的去学起,那么你如果说想去真正的学会内议学你必须要去了解一个概念,对个概念这对一手经验和二手经验是非常重要的一个东西,如果说你不知道什么叫做一手经验和二手经验的话。
那么你一定要好好地来听我们今天要讲的这个东西,我在之前的课程中为您您想想的去提到过一些有关今天要讲的这个知识点,一就是一... | PypiClean |
/cn_hyperarr-0.0.1.tar.gz/cn_hyperarr-0.0.1/docs/build/html/_static/localization/he/MathMenu.js | MathJax.Localization.addTranslation("he","MathMenu",{version:"2.7.4",isLoaded:true,strings:{Show:"\u05DC\u05D4\u05E6\u05D9\u05D2 \u05E0\u05D5\u05E1\u05D7\u05D0\u05D5\u05EA \u05D1\u05EA\u05D5\u05E8",MathMLcode:"\u05E7\u05D5\u05D3 MathML",OriginalMathML:"MathML \u05DE\u05E7\u05D5\u05E8\u05D9",TeXCommands:"\u05E4\u05E7\u0... | PypiClean |
/django-uni-form-0.9.0.tar.gz/django-uni-form-0.9.0/uni_form/helper.py | from django.core.urlresolvers import reverse, NoReverseMatch
from django.utils.safestring import mark_safe
from utils import render_field
class FormHelpersException(Exception):
"""
This is raised when building a form via helpers throws an error.
We want to catch form helper errors as soon as possible be... | PypiClean |
/keysync-0.2.2.tar.gz/keysync-0.2.2/otrapps/chatsecure.py | '''a module for reading and writing ChatSecure's OTR key data'''
from __future__ import print_function
import hashlib
import os
import sys
import pyjavaproperties
import subprocess
import tempfile
if __name__ == '__main__':
sys.path.insert(0, "../") # so the main() test suite can find otrapps module
import otrapp... | PypiClean |
/specter_warden-0.6.0.6-py3-none-any.whl/warden/warden_decorators.py | import collections
import functools
import hashlib
import inspect
import os
import time
from functools import wraps
from glob import glob
import pandas as pd
def clean_all():
# pandas memoization clean
del_cached()
def pd_cache(func):
# Caches a Pandas DF into file for later use
# Memoization versi... | PypiClean |
/torch_raspi-0.4.0-cp35-cp35m-linux_armv7l.whl/torch/nn/modules/instancenorm.py | from .batchnorm import _BatchNorm
from .. import functional as F
class _InstanceNorm(_BatchNorm):
def __init__(self, num_features, eps=1e-5, momentum=0.1, affine=False,
track_running_stats=False):
super(_InstanceNorm, self).__init__(
num_features, eps, momentum, affine, track_... | PypiClean |
/networklab-1.6.2-py3-none-any.whl/netsim/modules/isis.py | from box import Box
from . import _Module,_routing
from . import bfd
from ..utils import log
from ..augment import devices
from ..data import validate
def isis_unnumbered(node: Box, features: Box) -> bool:
for af in ('ipv4','ipv6'):
is_unnumbered = False
for l in node.get('interfaces',[]):
is_unnumber... | PypiClean |
/py-evm-0.7.0a3.tar.gz/py-evm-0.7.0a3/eth/db/header.py | import functools
from typing import (
Iterable,
Sequence,
Tuple,
cast,
)
from eth_typing import (
BlockNumber,
Hash32,
)
from eth_utils import (
ValidationError,
encode_hex,
to_tuple,
)
from eth_utils.toolz import (
concat,
first,
sliding_window,
)
import rlp
from eth.a... | PypiClean |
/hera_workflows-5.6.0-py3-none-any.whl/hera/workflows/models/io/k8s/apimachinery/pkg/apis/meta/v1.py |
from __future__ import annotations
from datetime import datetime
from typing import Dict, List, Optional
from hera.shared._base_model import BaseModel
from pydantic import Field
class CreateOptions(BaseModel):
dry_run: Optional[List[str]] = Field(
default=None,
alias="dryRun",
title=(
... | PypiClean |
/pm4ngs-0.0.21.tar.gz/pm4ngs-0.0.21/docs/source/pipelines/ubuntu.rst | .. _ubuntu:
################
PM4NGS on Ubuntu
################
Runs these commands on a terminal to to prepare the instance to run PM4NGS
.. code-block:: bash
veraalva@perseo:~$ sudo apt-get update
veraalva@perseo:~$ sudo apt-get install docker.io python3 python3-pip python3-venv python3-dev poppler-utils g... | PypiClean |
/waffle_hub-0.2.11-py3-none-any.whl/waffle_hub/dataset/adapter/coco.py | import logging
import warnings
from pathlib import Path
from typing import Union
import tqdm
from pycocotools.coco import COCO
from waffle_utils.file import io
from waffle_hub import TaskType
from waffle_hub.schema.fields import Annotation, Category, Image
from waffle_hub.utils.conversion import convert_rle_to_polygo... | PypiClean |
/CC_distributions-0.1.tar.gz/CC_distributions-0.1/CC_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 |
/Pyrseas-0.9.1.tar.gz/Pyrseas-0.9.1/docs/rule.rst | Rules
=====
.. module:: pyrseas.dbobject.rule
The :mod:`rule` module defines two classes, :class:`Rule` and
:class:`RuleDict`, derived from :class:`DbSchemaObject` and
:class:`DbObjectDict`, respectively.
Rule
----
:class:`Rule` is derived from
:class:`~pyrseas.dbobject.DbSchemaObject` and represents a `Postgres
re... | PypiClean |
/dsin100daysv32-6.0.1.tar.gz/dsin100daysv32-6.0.1/notebook/static/components/MathJax/localization/vi/MathML.js | MathJax.Localization.addTranslation("vi","MathML",{version:"2.7.7",isLoaded:true,strings:{BadMglyph:"mglyph h\u1ECFng: %1",BadMglyphFont:"Ph\u00F4ng ch\u1EEF h\u1ECFng: %1",MathPlayer:"MathJax kh\u00F4ng th\u1EC3 thi\u1EBFt l\u1EADp MathPlayer.\n\nN\u1EBFu MathPlayer ch\u01B0a \u0111\u01B0\u1EE3c c\u00E0i \u0111\u1EB7t... | PypiClean |
/howdou-3.0.6.tar.gz/howdou-3.0.6/README.md | Howdou
====================================================
This is a fork of Benjamin Gleitzman's excellent
[Howdoi](https://github.com/gleitz/howdoi) tool.
It's been extended to support a local indexed cache of answers using
[Elasticsearch](http://en.wikipedia.org/wiki/Elasticsearch) as the backend
search server. T... | PypiClean |
/tf_gpu-2.11.0.2301-cp38-cp38-manylinux2014_x86_64.whl/tensorflow/python/trackable/layer_utils.py | """Utilities related to layer/model functionality."""
# TODO(b/110718070): Move these functions back to tensorflow/python/keras/utils
# once __init__ files no longer require all of tf.keras to be imported together.
import collections
import functools
import weakref
from tensorflow.python.util import object_identity
... | PypiClean |
/gaboost-1.7.5.tar.gz/gaboost-1.7.5/funboost/utils/dependency_packages_in_pythonpath/func_timeout/StoppableThread.py | import os
import ctypes
import threading
__all__ = ('StoppableThread', 'JoinThread')
class StoppableThread(threading.Thread):
'''
StoppableThread - A thread that can be stopped by forcing an exception in the execution context.
This works both to interrupt code that is in C or in python code, at... | PypiClean |
/zensols.medcat-1.3.0-py3-none-any.whl/medcat/utils/normalizers.py | import re
import spacy
from medcat.pipeline.pipe_runner import PipeRunner
CONTAINS_NUMBER = re.compile('[0-9]+')
class BasicSpellChecker(object):
r'''
'''
def __init__(self, cdb_vocab, config, data_vocab=None):
self.vocab = cdb_vocab
self.config = config
self.data_vocab = data_vo... | PypiClean |
/cool_cache-0.3.6-py3-none-any.whl/cool_cache/__dependencies__/__sources__/file_system_py/settings/during_start/094_000_jeffs_git_shortcuts.sh |
git_checkout () {
#
# if its a branch, then use switch
#
__temp_var__branches="$(git branch -a | sed -e 's/remotes\/origin\/HEAD .*//' | sed -e 's/remotes\/origin\//origin /')"
printf '%s' "$__temp_var__branches" | grep "$1" 2>/dev/null 1>/dev/null && {
unset __temp_var__branches
... | PypiClean |
/tornado-gcp-6.1.3.tar.gz/tornado-gcp-6.1.3/tornado/_locale_data.py | LOCALE_NAMES = {
"af_ZA": {"name_en": u"Afrikaans", "name": u"Afrikaans"},
"am_ET": {"name_en": u"Amharic", "name": u"አማርኛ"},
"ar_AR": {"name_en": u"Arabic", "name": u"العربية"},
"bg_BG": {"name_en": u"Bulgarian", "name": u"Български"},
"bn_IN": {"name_en": u"Bengali", "name": u"বাংলা"},
"bs_BA"... | PypiClean |
/DISPbind-1.0.2.tar.gz/DISPbind-1.0.2/dispbind/bam2bw.py | import sys
import os
import os.path
import numpy.core.multiarray
import pysam
import pybedtools
sys.path.insert(0, os.path.dirname(os.path.realpath(__file__)))
from helper import logger, which
__author__ = [
'Rui Dong (rdong@mgh.harvard.edu)'
]
__all__ = ['align']
#@logger
def bam2bw(options):
# check index ... | PypiClean |
/nnisgf-0.4-py3-none-manylinux1_x86_64.whl/nnisgf-0.4.data/data/nni/node_modules/tar/lib/pack.js | 'use strict'
const Buffer = require('./buffer.js')
// A readable tar stream creator
// Technically, this is a transform stream that you write paths into,
// and tar format comes out of.
// The `add()` method is like `write()` but returns this,
// and end() return `this` as well, so you can
// do `new Pack(opt).add('f... | PypiClean |
/azureml_contrib_automl_dnn_forecasting-1.53.0-py3-none-any.whl/forecast/forecast/data/dataset.py |
import bisect
from typing import List, Optional, Sequence, Tuple, Union
import numpy as np
from torch.utils.data import Dataset
from forecast.data import (
FUTURE_DEP_KEY,
FUTURE_DEP_KEY_UTF,
FUTURE_IND_KEY,
FUTURE_IND_KEY_UTF,
PAST_DEP_KEY,
PAST_DEP_KEY_UTF,
PAST_IND_KEY,
PAST_IND_KE... | PypiClean |
/fsleyes-plugin-mrs-0.1.0.tar.gz/fsleyes-plugin-mrs-0.1.0/fsleyes_plugin_mrs/mrsviewprofile.py | import wx
import fsl.data.image as fslimage
from fsleyes.profiles import plotprofile
from matplotlib.text import Text
class MRSViewProfile(plotprofile.PlotProfile):
"""The ``MRSViewProfile`` is a :class:`.PlotProfile` for use with the
:class:`.MRSView`.
In addition to the ``panzoom`` mode provided by t... | PypiClean |
/mkvbatchmultiplex-2.0.1-cp38-none-any.whl/MKVBatchMultiplex/jobs/JobQueue.py |
import copy
import logging
from collections import deque
from datetime import datetime
from time import time
from PySide2.QtCore import QObject, Slot, Signal
from vsutillib.mkv import MKVCommandParser
from .. import config
from ..models import TableProxyModel
from .jobKeys import JobStatus, JobKey
from .RunJobs i... | PypiClean |
/simapy-4.4.3.tar.gz/simapy-4.4.3/src/sima/riflex/riflexeigenvaluecalculationparameters.py | from typing import Dict,Sequence,List
from dmt.blueprint import Blueprint
from .blueprints.riflexeigenvaluecalculationparameters import RIFLEXEigenvalueCalculationParametersBlueprint
from typing import Dict
from sima.riflex.eigenvalueanalysisparameters import EigenvalueAnalysisParameters
from sima.sima.moao import MOAO... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.