id stringlengths 1 8 | text stringlengths 6 1.05M | dataset_id stringclasses 1
value |
|---|---|---|
/lava_nc-0.8.0-py3-none-any.whl/lava/magma/runtime/runtime_services/runtime_service.py | import logging
import typing as ty
from abc import abstractmethod
import numpy as np
from lava.magma.compiler.channels.pypychannel import (
CspSelector,
CspRecvPort,
CspSendPort
)
from lava.magma.core.sync.protocol import AbstractSyncProtocol
from lava.magma.runtime.mgmt_token_enums import (
enum_to_n... | PypiClean |
/ipdb-0.13.13.tar.gz/ipdb-0.13.13/README.rst | IPython `pdb`
=============
.. image:: https://travis-ci.org/gotcha/ipdb.png?branch=master
:target: https://travis-ci.org/gotcha/ipdb
.. image:: https://codecov.io/gh/gotcha/ipdb/branch/master/graphs/badge.svg?style=flat
:target: https://codecov.io/gh/gotcha/ipdb?branch=master
Use
---
ipdb exports functions to a... | PypiClean |
/jupyterlab_remote_contents-0.1.1.tar.gz/jupyterlab_remote_contents-0.1.1/node_modules/internal-slot/README.md | # internal-slot <sup>[![Version Badge][npm-version-svg]][package-url]</sup>
[![dependency status][deps-svg]][deps-url]
[![dev dependency status][dev-deps-svg]][dev-deps-url]
[![License][license-image]][license-url]
[![Downloads][downloads-image]][downloads-url]
[![npm badge][npm-badge-png]][package-url]
Truly privat... | PypiClean |
/msgraph-sdk-1.0.0a3.tar.gz/msgraph-sdk-1.0.0a3/msgraph/generated/users/item/calendars/item/events/item/instances/item/snooze_reminder/snooze_reminder_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, Union
from ..........models import date_time_time_zone
class SnoozeReminderPostRequestBody(AdditionalDataHolder, Parsab... | PypiClean |
/infoblox-netmri-3.8.0.0.tar.gz/infoblox-netmri-3.8.0.0/infoblox_netmri/api/broker/v2_8_0/device_flow_filter_cfg_broker.py | from ..broker import Broker
class DeviceFlowFilterCfgBroker(Broker):
controller = "device_flow_filter_cfgs"
def show(self, **kwargs):
"""Shows the details for the specified device flow filter cfg.
**Inputs**
| ``api version min:`` None
| ``api version max:`` No... | PypiClean |
/cassowary-0.5.2.tar.gz/cassowary-0.5.2/docs/topics/theory.rst | Solving constraint systems
==========================
Constraint solving systems are an algorithmic approach to solving Linear
Programming problems. A linear programming problem is a mathematical problem
where you have a set of non- negative, real valued variables (``x[1], x[2],
... x[n]``), and a series of linear con... | PypiClean |
/iqpp.plone.rotating-0.1b1.tar.gz/iqpp.plone.rotating-0.1b1/iqpp/plone/rotating/portlets/rotating.py | from zope.formlib import form
from zope.interface import implements
from zope import schema
# plone imports
from plone.app.portlets.portlets import base
from plone.portlets.interfaces import IPortletDataProvider
# Five imports
from Products.Five.browser.pagetemplatefile import ViewPageTemplateFile
# CMFCore imports
... | PypiClean |
/brainbox-ibl-1.0.0.tar.gz/brainbox-ibl-1.0.0/ibllib/dsp/fourier.py | import numpy as np
def fscale(ns, si=1, one_sided=False):
"""
numpy.fft.fftfreq returns Nyquist as a negative frequency so we propose this instead
:param ns: number of samples
:param si: sampling interval in seconds
:param one_sided: if True, returns only positive frequencies
:return: fscale:... | PypiClean |
/OpenSRANE-0.0.3.tar.gz/OpenSRANE-0.0.3/opensrane/Plot/Matplot.py | import matplotlib.pyplot as _plt
from scipy.stats import norm as _norm
from scipy.stats import lognorm as _lognorm
import opensrane as _opr
import pandas as _pd
import numpy as _np
# from plotly.offline import download_plotlyjs, init_notebook_mode, plot, iplot
from plotly.offline import iplot as _iplot
import random as... | PypiClean |
/MDSuite-0.2.0-py3-none-any.whl/mdsuite/calculators/green_kubo_thermal_conductivity.py | from abc import ABC
from dataclasses import dataclass
import numpy as np
import tensorflow as tf
import tensorflow_probability as tfp
from bokeh.models import Span
from tqdm import tqdm
from mdsuite.calculators.calculator import call
from mdsuite.calculators.trajectory_calculator import TrajectoryCalculator
from mdsu... | PypiClean |
/ensmallen_graph-0.6.0-cp37-cp37m-manylinux2010_x86_64.whl/ensmallen_graph/datasets/string/deinococcuspimensis.py | from typing import Dict
from ..automatic_graph_retrieval import AutomaticallyRetrievedGraph
from ...ensmallen_graph import EnsmallenGraph # pylint: disable=import-error
def DeinococcusPimensis(
directed: bool = False,
verbose: int = 2,
cache_path: str = "graphs/string",
**additional_graph_kwargs: Di... | PypiClean |
/prefect_snowflake-0.26.1-py3-none-any.whl/prefect_snowflake/database.py |
import asyncio
from typing import Any, Dict, List, Optional, Tuple, Union
from prefect import task
from prefect.blocks.abstract import DatabaseBlock
from prefect.utilities.asyncutils import run_sync_in_worker_thread, sync_compatible
from prefect.utilities.hashing import hash_objects
from pydantic import Field
from sn... | PypiClean |
/tb-rest-client-3.5.tar.gz/tb-rest-client-3.5/tb_rest_client/models/models_pe/alarm_info.py | # Copyright 2023. ThingsBoard
#
# 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 writi... | PypiClean |
/py-pure-client-1.38.0.tar.gz/py-pure-client-1.38.0/pypureclient/flasharray/FA_2_17/models/host_space.py | import pprint
import re
import six
import typing
from ....properties import Property
if typing.TYPE_CHECKING:
from pypureclient.flasharray.FA_2_17 import models
class HostSpace(object):
"""
Attributes:
swagger_types (dict): The key is attribute name
and the value is attr... | PypiClean |
/openpeerpower_frontend-20210523.2-py3-none-any.whl/opp_frontend/frontend_latest/chunk.1de86c48b013a218cc13.js | (self.webpackChunkopenpeerpower_frontend=self.webpackChunkopenpeerpower_frontend||[]).push([[8851],{22098:(e,t,r)=>{"use strict";var i=r(15652);function n(){n=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,t){["method","field"].forEach((function(r){t.for... | PypiClean |
/tensorboard_plugin_customizable_plots-1.1.3-py3-none-any.whl/tensorboard_plugin_customizable_plots/static/libs/config/traces_config.js | function axisPeriod(axis) {
return {
valType: 'any',
dflt: 0,
editType: 'calc',
description: [
'Only relevant when the axis `type` is *date*.',
'Sets the period positioning in milliseconds or *M<n>* on the ' + axis + ' axis.',
'Special values in th... | PypiClean |
/high_vision-0.1-py3-none-any.whl/high_vision/Detection/yolov4/tf/train.py | from os import makedirs, path
import tensorflow as tf
from tensorflow.keras import backend
from tensorflow.keras.callbacks import Callback
from tensorflow.keras.losses import BinaryCrossentropy, Loss, Reduction
class YOLOv4Loss(Loss):
def __init__(self, batch_size, iou_type, verbose=0):
super(YOLOv4Loss,... | PypiClean |
/chartpy-0.1.12.tar.gz/chartpy-0.1.12/chartpy_examples/notebooks/static/js/jquery/src/traversing/findFilter.js | define([
"../core",
"../var/indexOf",
"./var/rneedsContext",
"../selector"
], function( jQuery, indexOf, rneedsContext ) {
var risSimple = /^.[^:#\[\.,]*$/;
// Implement the identical functionality for filter and not
function winnow( elements, qualifier, not ) {
if ( jQuery.isFunction( qualifier ) ) {
return j... | PypiClean |
/adm_osc-0.0.1-py3-none-any.whl/adm_osc/handler.py |
from . import protocol
__all__ = ['extract_indexes', 'adm_handler']
# _ _
# | |__ ___| |_ __ ___ _ __ ___
# | '_ \ / _ \ | '_ \ / _ \ '__/ __|
# | | | | __/ | |_) | __/ | \__ \
# |_| |_|\___|_| .__/ \___|_| |___/
# |_|
def extract_indexes(idx: str):
"""
+ "*" means all o... | PypiClean |
/textgrid_tools-0.0.8-py3-none-any.whl/textgrid_tools/intervals/common.py | from typing import Generator, Iterable, List, Optional, Set, Tuple, Union
from textgrid.textgrid import Interval, IntervalTier
from textgrid_tools.helper import get_mark, interval_is_None_or_whitespace
def merge_intervals(intervals: List[Interval], join_symbol: str, ignore_empty: bool) -> Interval:
assert len(int... | PypiClean |
/UPY-0.35.1.tar.gz/UPY-0.35.1/upy/contrib/cked/static/cked/ckeditor/lang/nb.js | /*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.lang['nb']={"dir":"ltr","editor":"Rikteksteditor","common":{"editorHelp":"Trykk ALT 0 for hjelp","browseServer":"Bla igjennom server","url":"URL","protocol":"Protoko... | PypiClean |
/PyDvi-0.1.0.tar.gz/PyDvi-0.1.0/PyDviGui/Widgets/MainWindowBase.py |
####################################################################################################
#
# PyDvi - A Python Library to Process DVI Stream
# Copyright (C) 2014 Fabrice Salvaire
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License ... | PypiClean |
/unitsnet-py-0.1.57.tar.gz/unitsnet-py-0.1.57/unitsnet_py/units/specific_energy.py | from enum import Enum
import math
from ..abstract_unit import AbstractMeasure
class SpecificEnergyUnits(Enum):
"""
SpecificEnergyUnits enumeration
"""
JoulePerKilogram = 'joule_per_kilogram'
"""
"""
MegaJoulePerTonne = 'mega_... | PypiClean |
/my_santander_finance-0.3.6.tar.gz/my_santander_finance-0.3.6/my_santander_finance/sanfi.py | import logging
import sys
import click
from my_santander_finance.__init__ import __version__
from my_santander_finance.init import (
create_env_example,
download_chromedriver,
init_dir,
init_sqlite,
)
from my_santander_finance.logger import Logger
from my_santander_finance.web_scraping.get_amex import... | PypiClean |
/ccsi-foqus-3.18.0.tar.gz/ccsi-foqus-3.18.0/docs/source/chapt_matlab/reference/matlab_foqus_intro.rst | MATLAB-FOQUS interface
======================
Introduction
------------
MATLAB® is a proprietary interpreted programming language developed by MathWorks, and is highly used in many science and engineering areas for numeric computing.
Some important advantages of MATLAB include its ease of use and the large number o... | PypiClean |
/cubicweb_wireit-1.3.0-py3-none-any.whl/cubicweb_wireit/data/wireit/lib/yui/uploader/uploader-min.js | * SWFObject v1.5: Flash Player detection and embed - http://blog.deconcept.com/swfobject/
*
* SWFObject is (c) 2007 Geoff Stearns and is released under the MIT License:
* http://www.opensource.org/licenses/mit-license.php
* @namespace YAHOO
*/
YAHOO.namespace("deconcept");YAHOO.deconcept=YAHOO.deconcept||{};if(ty... | PypiClean |
/sphinxcontrib-emacs-0.4.tar.gz/sphinxcontrib-emacs-0.4/CHANGES.rst | master (in development)
=======================
0.4 (Jan 22, 2018)
==================
- Updates for more recent Sphinx versions
0.3.1 (Dec 20, 2014)
====================
- Fix `cl-slot` role
0.3 (Nov 17, 2014)
==================
- Prevent installation on Python 3 [GH-16]
- Add new `constant` directive for constan... | PypiClean |
/aim-with-auth-3.14.6.tar.gz/aim-with-auth-3.14.6/aim/storage/structured/sql_engine/utils.py | from abc import ABCMeta
from typing import Iterator, Collection, TypeVar, Union, Callable
from sqlalchemy import text
try:
from typing import GenericMeta
except ImportError:
class GenericMeta(type):
pass
T = TypeVar('T')
class ModelMappedProperty:
def __init__(self, name: str, mapped_name: str =... | PypiClean |
/google-api-python-client-2.97.0.tar.gz/google-api-python-client-2.97.0/googleapiclient/channel.py | from __future__ import absolute_import
import datetime
import uuid
from googleapiclient import _helpers as util
from googleapiclient import errors
# The unix time epoch starts at midnight 1970.
EPOCH = datetime.datetime.utcfromtimestamp(0)
# Map the names of the parameters in the JSON channel description to
# the p... | PypiClean |
/datalab_on_jupyter-2.2.1-py3-none-any.whl/datalab_on_jupyter/dist/30-4c457f23095c8e520fbf.bundle.js | (window.webpackJsonp=window.webpackJsonp||[]).push([[30],{1745:function(e,n,t){"use strict";t.r(n),t.d(n,"conf",(function(){return s})),t.d(n,"language",(function(){return o}));var s={comments:{lineComment:"//",blockComment:["(*","*)"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{op... | PypiClean |
/rmap-7.5.tar.gz/rmap-7.5/rainbo/static/rainbo/js/lib/jqBootstrapValidation.js | (function( $ ){
var createdElements = [];
var defaults = {
options: {
prependExistingHelpBlock: false,
sniffHtml: true, // sniff for 'required', 'maxlength', etc
preventSubmit: true, // stop the form submit event from firing if validation fails
submitError: false, // function called if there is an err... | PypiClean |
/jupyterhub-sdp-0.9.0.1.tar.gz/jupyterhub-sdp-0.9.0.1/share/jupyterhub/static/components/moment/locale/be.js |
;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined'
&& typeof require === 'function' ? factory(require('../moment')) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
... | PypiClean |
/wj_analysis-0.8.2.tar.gz/wj_analysis-0.8.2/wj_analysis/facebook/polarity_distribution.py | import sys
from copy import deepcopy
import pandas as pd
from ..common import general_utils
from ..common.nlp_utils import CleanText, Features, Polarity # , Polarity2
ERR_SYS = "\nSystem error: "
def get_name(pid, dict_page_id_to_name):
try:
out_name = dict_page_id_to_name[pid]
except Exception:
... | PypiClean |
/asocksimap-1.0.3.tar.gz/asocksimap-1.0.3/README.md | # Connect to IMAP through Socks using Python asyncio
## Dependencies
- aioimaplib 1.0.1+
- aiosocks 0.2.6+
## Installation
```bash
pip install asocksimap
```
or
```bash
pip install git+https://github.com/optinsoft/asocksimap.git
```
## Usage
```python
import asyncio
from asocksimap import AsyncSocksIMAP4_SSL
fr... | PypiClean |
/tensorflow_tflex-1.13.1rc1-cp27-cp27mu-manylinux1_x86_64.whl/tensorflow_tflex-1.13.1rc1.data/purelib/tensorflow/contrib/testing/python/framework/fake_summary_writer.py | """Fake summary writer for unit tests."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from tensorflow.core.framework import summary_pb2
from tensorflow.python.framework import test_util
from tensorflow.python.summary.writer import writer
from tensorflow.... | PypiClean |
/kani-0.2.0.tar.gz/kani-0.2.0/docs/engines.rst | Engines
=======
Engines are the means by which kani interact with language models. As you've seen, kani comes with a few engines
included:
.. include:: shared/engine_table.rst
In this section, we'll discuss how to implement your own engine to use any language model or API you can think of.
.. tip::
Built an eng... | PypiClean |
/rvtools_python-0.0.1-py3-none-any.whl/rvtools/rvtools.py | """ Main rvtools module """
import os
import ssl
import argparse
import requests
import urllib3
from pyVim import connect
from rvtools.corerv import *
from rvtools.vinfo.vinfo import *
# requests.packages.urllib3.disable_warnings()
urllib3.disable_warnings()
def get_args():
parser = argparse.ArgumentParser(des... | PypiClean |
/InvokeAI-3.1.0-py3-none-any.whl/invokeai/backend/model_management/models/stable_diffusion_onnx.py | from enum import Enum
from typing import Literal
from diffusers import OnnxRuntimeModel
from .base import (
ModelConfigBase,
BaseModelType,
ModelType,
ModelVariantType,
DiffusersModel,
SchedulerPredictionType,
classproperty,
IAIOnnxRuntimeModel,
)
class StableDiffusionOnnxModelFormat(... | PypiClean |
/ensmallen_graph-0.6.0-cp37-cp37m-manylinux2010_x86_64.whl/ensmallen_graph/datasets/string/paracoccusyeei.py | from typing import Dict
from ..automatic_graph_retrieval import AutomaticallyRetrievedGraph
from ...ensmallen_graph import EnsmallenGraph # pylint: disable=import-error
def ParacoccusYeei(
directed: bool = False,
verbose: int = 2,
cache_path: str = "graphs/string",
**additional_graph_kwargs: Dict
) ... | PypiClean |
/nni_yds-0.3.7-py3-none-any.whl/nni_yds-0.3.7.data/data/nni/node_modules/readable-stream/lib/_stream_readable.js | 'use strict';
module.exports = Readable;
/*<replacement>*/
var processNextTick = require('process-nextick-args');
/*</replacement>*/
/*<replacement>*/
var isArray = require('isarray');
/*</replacement>*/
/*<replacement>*/
var Buffer = require('buffer').Buffer;
/*</replacement>*/
Readable.ReadableState = ReadableSt... | PypiClean |
/NuPlone-2.2.0.tar.gz/NuPlone-2.2.0/plonetheme/nuplone/skin/tools.py | from AccessControl import getSecurityManager
from Acquisition import aq_inner
from plone import api
from plone.memoize.view import memoize
from plonetheme.nuplone import utils
from Products.Five import BrowserView
class Tools(BrowserView):
"""Basic view to expose utilties to templates."""
@property
@memo... | PypiClean |
/monk_gluon_cuda101-0.0.1.tar.gz/monk_gluon_cuda101-0.0.1/monk/pytorch/optimizers/optimizers.py | from monk.pytorch.optimizers.imports import *
from monk.system.imports import *
@accepts(dict, [int, float], momentum=[int, float], momentum_dampening_rate=[int, float], weight_decay=[int, float],
clipnorm=[int, float], clipvalue=[int, float], post_trace=False)
#@TraceFunction(trace_args=False, trace_rv=False)
d... | PypiClean |
/raven_framework-2.3-cp39-cp39-win_amd64.whl/ravenframework/OutStreams/PlotInterfaces/SyntheticCloud.py | import matplotlib.pyplot as plt
from .PlotInterface import PlotInterface
from ...utils import InputData, InputTypes
class SyntheticCloud(PlotInterface):
"""
Plots the training data along with a cloud of sampled data for synthetic histories.
"""
@classmethod
def getInputSpecification(cls):
"""
Me... | PypiClean |
/eko-0.13.5-py3-none-any.whl/ekore/anomalous_dimensions/unpolarized/space_like/as4/gnsp.py | r"""The unpolarized, space-like anomalous dimension :math:`\gamma_{ns,+}^{(3)}`."""
import numba as nb
from .....harmonics import cache as c
from .....harmonics.log_functions import lm11m1, lm12m1, lm13m1
from .gnsm import gamma_ns_nf3
@nb.njit(cache=True)
def gamma_nsp_nf2(n, cache):
r"""Return the parametrized... | PypiClean |
/vertica_python-1.3.4-py3-none-any.whl/vertica_python/vertica/messages/frontend_messages/__init__.py |
# Copyright (c) 2013-2017 Uber Technologies, 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, merge... | PypiClean |
/rexsio_agent-0.0.8-py3-none-any.whl/agent/commands/service_status.py | import docker
from agent.commands.utils import prepare_message_to_send
from agent.constants import SERVICE_DOWN, SERVICE_UP, SERVICES_STATUS
from agent.services.utils import get_services_id_list
def check_service_statuses():
service_id_list = get_services_id_list()
client = docker.from_env()
service_stat... | PypiClean |
/pyphi-1.2.0.tar.gz/pyphi-1.2.0/LICENSE.md | GNU General Public License
==========================
Version 3, 29 June 2007
Copyright © 2007 Free Software Foundation, Inc. <<http://fsf.org/>>
Everyone is permitted to copy and distribute verbatim copies of this license
document, but changing it is not allowed.
## Preamble
The GNU General Public Lice... | PypiClean |
/horovod-adasum-0.18.2a0.tar.gz/horovod-adasum-0.18.2a0/third_party/HTTPRequest/README.md | # HTTPRequest
HTTPRequest is a single-header library for making HTTP requests. You can just include it in your project and use it. HTTPRequest was tested on macOS, Windows and Linux, but it should work on most of the Linux-based platforms. Supports IPv4 and IPv6.
## Usage
```cpp
#include "HTTPRequest.hpp"
try
{
... | PypiClean |
/django-folderless-0.5.0.tar.gz/django-folderless-0.5.0/folderless/static/folderless/js/vendor/jquery.iframe-transport.js |
(function (factory) {
'use strict';
if (typeof define === 'function' && define.amd) {
// Register as an anonymous AMD module:
define(['jquery'], factory);
} else {
// Browser globals:
factory(window.jQuery);
}
}(function ($) {
'use strict';
// Helper variable to... | PypiClean |
/pulumi_alicloud-3.44.0a1693632188.tar.gz/pulumi_alicloud-3.44.0a1693632188/pulumi_alicloud/cms/get_group_metric_rules.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__ = [
'GetGroupMetricRulesResult',
'AwaitableGetGroupMetricRulesResult',
'get_group_metric_rules',
'get_group_metri... | PypiClean |
/django-canjs-0.1.2.tar.gz/django-canjs-0.1.2/canjs/static/canjs/1.1.1/can.mootools.min.js | (function(n,l){var c=n.can||{};if("undefined"===typeof GLOBALCAN||!1!==GLOBALCAN)n.can=c;c.isDeferred=function(a){var b=this.isFunction;return a&&b(a.then)&&b(a.pipe)};c.addEvent=function(a,b){this.__bindEvents||(this.__bindEvents={});var d=a.split(".")[0];this.__bindEvents[d]||(this.__bindEvents[d]=[]);this.__bindEven... | PypiClean |
/gen_doc-0.1.4.tar.gz/gen_doc-0.1.4/gen_doc/commands.py | import click
from gen_doc.doc_generator import DocGenerator
from gen_doc.extensions import GenDocParsers
from gen_doc.serializers import GenDocSerializers
from gen_doc.utils.config_handler import copy_config, load_config
from .utils.command_utils import GroupWithCommandOptions
from .utils.utils import get_version
@... | PypiClean |
/bert_reranker-0.2.1.tar.gz/bert_reranker-0.2.1/bert_reranker/models/bert_encoder.py | import logging
import pickle
import torch
import torch.nn as nn
from transformers import AutoModel
from bert_reranker.models.general_encoder import GeneralEncoder
from bert_reranker.utils.hp_utils import check_and_log_hp
logger = logging.getLogger(__name__)
def get_ffw_layers(
prev_hidden_size, dropout, la... | PypiClean |
/trilium_client-0.1.0-py3-none-any.whl/trilium_client/rest.py | from __future__ import absolute_import
import io
import json
import logging
import re
import ssl
from urllib.parse import urlencode, quote_plus
import urllib3
from trilium_client.exceptions import (
ApiException,
UnauthorizedException,
ForbiddenException,
NotFoundException,
ServiceException,
... | PypiClean |
/gw_matched_filtering_demo-2020.1.tar.gz/gw_matched_filtering_demo-2020.1/README.md | Quick start
===========
* The presentation can be found
[here](http://moble.github.io/MatchedFiltering/Presentation.slides.html).
* A preview of the notebook can be seen
[here](http://nbviewer.ipython.org/github/moble/MatchedFiltering/blob/gh-pages/MatchedFiltering.ipynb),
but note that there are cool ... | PypiClean |
/insanic-framework-0.9.2.tar.gz/insanic-framework-0.9.2/docs/source/insanic/errors_and_exceptions.rst | Error Handling
===============
.. note::
Take a look at Sanic's
`Exceptions <https://sanic.readthedocs.io/en/latest/sanic/exceptions.html>`_
documentation to better understand how Insanic's error handling works.
Insanic's error handling is done with Sanic's error handling
functionality, but with Insanic'... | PypiClean |
/safegate_pro-2021.7.6-py3-none-any.whl/homeassistant/components/tado/binary_sensor.py | import logging
from homeassistant.components.binary_sensor import (
DEVICE_CLASS_BATTERY,
DEVICE_CLASS_CONNECTIVITY,
DEVICE_CLASS_POWER,
DEVICE_CLASS_WINDOW,
BinarySensorEntity,
)
from homeassistant.config_entries import ConfigEntry
from homeassistant.core import HomeAssistant, callback
from homeas... | PypiClean |
/airbyte-cdk-0.51.10.tar.gz/airbyte-cdk-0.51.10/airbyte_cdk/sources/streams/http/requests_native_auth/token.py |
import base64
from itertools import cycle
from typing import List
from airbyte_cdk.sources.streams.http.requests_native_auth.abstract_token import AbstractHeaderAuthenticator
class MultipleTokenAuthenticator(AbstractHeaderAuthenticator):
"""
Builds auth header, based on the list of tokens provided.
Auth... | PypiClean |
/steamers_misago-0.0.2-py3-none-any.whl/misago/categories/views/permsadmin.py | from django.contrib import messages
from django.shortcuts import redirect
from django.utils.translation import gettext_lazy as _
from ...acl.cache import clear_acl_cache
from ...acl.forms import get_permissions_forms
from ...acl.models import Role
from ...acl.views import RoleAdmin, RolesList
from ...admin.views impor... | PypiClean |
/PyFunceble-4.1.3.tar.gz/PyFunceble-4.1.3/README.rst | .. image:: https://raw.githubusercontent.com/PyFunceble/logo/master/Green/HD/RM.png
The tool to check the availability or syntax of domain, IP or URL
-----------------------------------------------------------------
.. image:: https://img.shields.io/badge/code%20style-black-000000.png
:target: https://github.com/... | PypiClean |
/pigweed-0.0.14.tar.gz/pigweed-0.0.14/pw_env_setup/json_visitor.py | """Serializes an Environment into a JSON file."""
import json
# Disable super() warnings since this file must be Python 2 compatible.
# pylint: disable=super-with-arguments
class JSONVisitor(object): # pylint: disable=useless-object-inheritance
"""Serializes an Environment into a JSON file."""
def __init_... | PypiClean |
/experimental.portalfactoryfix-0.4.2.tar.gz/experimental.portalfactoryfix-0.4.2/README.txt | Overview
========
Experimental performance improvements to content creation for Plone. Primarily
this works by trying to ensure that portal factory does not cause writes to the
zodb, via making archetypes content portal factory aware such that they do not
attempt to register themselves in various global catalogs. Pre... | PypiClean |
/msgraph_beta_sdk-1.0.0a9-py3-none-any.whl/msgraph/generated/groups/item/owners/ref/ref_request_builder.py | from __future__ import annotations
from dataclasses import dataclass
from kiota_abstractions.get_path_parameters import get_path_parameters
from kiota_abstractions.method import Method
from kiota_abstractions.request_adapter import RequestAdapter
from kiota_abstractions.request_information import RequestInformation
fro... | PypiClean |
/lizard-ui-5.3.tar.gz/lizard-ui-5.3/lizard_ui/static/bootstrap/docs/assets/js/bootstrap-tooltip.js | !function ($) {
"use strict"; // jshint ;_;
/* TOOLTIP PUBLIC CLASS DEFINITION
* =============================== */
var Tooltip = function (element, options) {
this.init('tooltip', element, options)
}
Tooltip.prototype = {
constructor: Tooltip
, init: function (type, element, options) {
... | PypiClean |
/spinnaker_spinner-2.5.0.tar.gz/spinnaker_spinner-2.5.0/spinner/coordinates.py | from collections import namedtuple
################################################################################
# Base Classes (Internal Use Only)
################################################################################
class _ElementwiseCoordsMixin(object):
"""
Support for common operations on coordina... | PypiClean |
/ezcad_plugins-0.2.4-cp37-cp37m-win_amd64.whl/ezcad_plugins/point_menubar.py |
import os
import sys
if os.path.realpath(os.path.dirname(__file__)) not in sys.path:
sys.path.append(os.path.realpath(os.path.dirname(__file__)))
from ezcad.config.base import _
from ezcad.widgets.mode_switch import PluginMenuBar
from ezcad.utils.qthelpers import MENU_SEPARATOR, create_action, add_actions
from go... | PypiClean |
/llnl_hatchet-2023.1.0-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/hatchet/vis/scripts/cct/cct_menu_view.js | import { makeSignaller, d3, globals } from "./cct_globals";
import View from "../utils/view";
class MenuView extends View{
/**
* View class for the menu portion of the visualization
*
* @param {DOMElement} elem - The current cell of the calling jupyter notebook
* @param {Model} model - The mo... | PypiClean |
/argparse-schema-0.0.7.tar.gz/argparse-schema-0.0.7/README.md | # argparse-schema [](https://travis-ci.com/FebruaryBreeze/argparse-schema) [](https://codecov.io/gh/FebruaryBreeze/argparse-schema) [](https://pypi.python.org/pypi/email-commander)
[](https://pypi.python.org/pypi/email-commander)
[![email-commander python compatibi... | PypiClean |
/al-model-trainer-0.3.0.tar.gz/al-model-trainer-0.3.0/bytegain/custom/data_import/clone_redshift_table.py | import psycopg2
import argparse
import time
import sys
import boto3
import os
import gzip
from datetime import date
class TableCloner(object):
def __init__(self, table_info, where, client, src_region, s3_id, s3_secret_key, dest_dir = None, use_tablename_column = False):
self._table_info = table_info
... | PypiClean |
/ucam-identitylib-2.0.2.tar.gz/ucam-identitylib-2.0.2/identitylib/identifiers.py | from typing import Optional, List, Callable, Dict
from collections import namedtuple
from dataclasses import dataclass
from functools import lru_cache
from frozendict import frozendict
@dataclass(frozen=True, eq=True)
class IdentifierScheme:
"""
A class which containing the information needed to represent an ... | PypiClean |
/cdktf_cdktf_provider_snowflake-9.0.0-py3-none-any.whl/cdktf_cdktf_provider_snowflake/grant_privileges_to_role/__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 GrantPrivilegesToRole(
_cdktf_9a9027ec.TerraformRe... | PypiClean |
/cryptofeed-tks-2.3.0.tar.gz/cryptofeed-tks-2.3.0/cryptofeed/exchanges/independent_reserve.py | import asyncio
from decimal import Decimal
import logging
from typing import Dict, Tuple
from collections import defaultdict
from time import time
from yapic import json
from cryptofeed.connection import AsyncConnection, RestEndpoint, Routes, WebsocketEndpoint
from cryptofeed.defines import BID, BUY, ASK, INDEPENDENT... | PypiClean |
/retro_data_structures-0.23.0-py3-none-any.whl/retro_data_structures/properties/dkc_returns/archetypes/StunnedByGroundPoundBehaviorData.py | import dataclasses
import struct
import typing
from retro_data_structures.game_check import Game
from retro_data_structures.properties.base_property import BaseProperty
@dataclasses.dataclass()
class StunnedByGroundPoundBehaviorData(BaseProperty):
ground_pound_distance_vertical_multiplier: float = dataclasses.fi... | PypiClean |
/tw.dojo-0.9.181.tar.gz/tw.dojo-0.9.181/tw/dojo/static/1.8.1/debug/dojox/editor/plugins/nls/ru/latinEntities.js.uncompressed.js | define(
"dojox/editor/plugins/nls/ru/latinEntities", ({
/* These are already handled in the default RTE
amp:"ampersand",lt:"less-than sign",
gt:"greater-than sign",
nbsp:"no-break space\nnon-breaking space",
quot:"quote",
*/
iexcl:"инвертированный восклицательный знак",
cent:"символ цента",
pound:"символ ф... | PypiClean |
/hdk_pkg_cri-0.0.8-py3-none-any.whl/hdk_pkg/process/func_BarPS.py | import numpy as np
import pandas as pd
from statsmodels.distributions.empirical_distribution import ECDF
#HA_Open = HA_Open_lb
#HA_Close = HA_Close_1b
def func_PS_Level(HA_Open, HA_Close, PS_pct_level=[0.35, 0.5, 0.95, 0.97], combine=False):
"""
0. This function is for calculating the HA bars' bar size level,... | PypiClean |
/jupyterlab_remote_contents-0.1.1.tar.gz/jupyterlab_remote_contents-0.1.1/node_modules/cacache/README.md | # cacache [](https://npm.im/cacache) [](https://npm.im/cacache) [](https://travis-ci.org/npm/cacache) [ -> tuple[str, list[JSON]]:
"""
Deco... | PypiClean |
/ai_flow-0.3.1.tar.gz/ai_flow-0.3.1/airflow/models/connection.py |
import json
import warnings
from json import JSONDecodeError
from typing import Dict, Optional
from urllib.parse import parse_qsl, quote, unquote, urlencode, urlparse
from sqlalchemy import Boolean, Column, Integer, String, Text
from sqlalchemy.ext.declarative import declared_attr
from sqlalchemy.orm import synonym
... | PypiClean |
/azure-mgmt-cognitiveservices-13.5.0.zip/azure-mgmt-cognitiveservices-13.5.0/azure/mgmt/cognitiveservices/operations/_models_operations.py | from typing import Any, Callable, Dict, Iterable, Optional, TypeVar
import urllib.parse
from azure.core.exceptions import (
ClientAuthenticationError,
HttpResponseError,
ResourceExistsError,
ResourceNotFoundError,
ResourceNotModifiedError,
map_error,
)
from azure.core.paging import ItemPaged
fr... | PypiClean |
/django-rest-framework-paginations-0.0.1.tar.gz/django-rest-framework-paginations-0.0.1/README.rst | django-rest-framework-paginations
======================================
|build-status-image| |pypi-version|
Overview
--------
Extra paginations for the rest framework
Requirements
------------
- Python (2.7, 3.3, 3.4)
- Django (1.6, 1.7, 1.8)
- Django REST Framework (2.4, 3.0, 3.1)
Installation
------------
... | PypiClean |
/i3-layouts-fixed-0.13.3.tar.gz/i3-layouts-fixed-0.13.3/i3l/handlers.py | from i3ipc import Connection, TickEvent
from i3ipc.events import WorkspaceEvent, WindowEvent
import logging
from i3l.options import LayoutName
from i3l.splitter import Mark
from i3l.state import State, RebuildCause, is_layout_container, is_floating_container
from i3l.layouts import Layouts
from i3l.ticks import Tick
... | PypiClean |
/mliamlib-1.0.7.tar.gz/mliamlib-1.0.7/mlib/memory.py |
import os
from six.moves import cPickle
import resource
import mlib.formatting
import numpy as N
# Report memory footprint. This is an over-estimation, as Python requests always more memory than currently being used.
def report_current_memory_usage():
return mlib.formatting.SI(resource.getrusage(resource.RUSAGE_... | PypiClean |
/alipay-sdk-python-pycryptodome-3.3.202.tar.gz/alipay-sdk-python-pycryptodome-3.3.202/alipay/aop/api/domain/AlipayEcoMycarMaintainOrderstatusUpdateModel.py | import json
from alipay.aop.api.constant.ParamConstants import *
from alipay.aop.api.domain.MaintainOrderStatusExtParams import MaintainOrderStatusExtParams
class AlipayEcoMycarMaintainOrderstatusUpdateModel(object):
def __init__(self):
self._ext_param = None
self._industry_code = None
s... | PypiClean |
/referredby-0.1.4.tar.gz/referredby-0.1.4/README.rst | referredby
==========
.. image:: https://travis-ci.org/larsyencken/referredby.png
A Python module for parsing referrer URLs, in particular for common search engines.
It's main entry point is the ``referredby.who`` method::
>>> import referredby
>>> referredby.who('http://id.search.yahoo.com/search?fr=mkg030... | PypiClean |
/xicam.SAXS-2.2.2.tar.gz/xicam.SAXS-2.2.2/xicam/SAXS/operations/qbackgroundfit.py | import numpy as np
from astropy.modeling import fitting, models
from astropy.modeling import Fittable1DModel
from xicam.plugins.operationplugin import OperationPlugin
from typing import Tuple
from enum import Enum
from xicam.plugins import manager as pluginmanager
class QBackgroundFit(OperationPlugin):
name = "... | PypiClean |
/itk_rtk-2.4.1-cp37-cp37m-macosx_10_9_x86_64.whl/itk/rtkFieldOfViewImageFilterPython.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 _RTKPython
from sys import version_info as _swig_python_version_info
if _swig_python_version_info < (2, 7, 0):
r... | PypiClean |
/napalm-yang-0.1.0.tar.gz/napalm-yang-0.1.0/napalm_yang/models/openconfig/network_instances/network_instance/protocols/protocol/isis/levels/level/link_state_database/lsp/tlvs/tlv/mt_ipv4_reachability/prefixes/__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 |
/airflow_provider_huawei_cloud_demo-0.0.23-py3-none-any.whl/huawei_cloud_provider/hooks/dli.py |
from __future__ import annotations
import os.path
import huaweicloudsdkdli.v1 as DliSdk
from huaweicloudsdkcore.auth.credentials import BasicCredentials
from huaweicloudsdkdli.v1.region.dli_region import DliRegion
from airflow.exceptions import AirflowException
from huawei_cloud_provider.hooks.base_huawei_cloud imp... | PypiClean |
/np_pipeline_qc-0.0.26-py3-none-any.whl/np_pipeline_qc/legacy/probeSync_qc.py | from __future__ import division
import glob
import json
import logging
import os
import pdb
import re
# for vsync alignment
from typing import Union
from xml.dom.minidom import parse
import numpy as np
import pandas as pd
import scipy.spatial.distance as distance
import visual_behavior
from matplotlib import pyplot ... | PypiClean |
/scikit-bot-0.14.0.tar.gz/scikit-bot-0.14.0/skbot/ignition/sdformat/bindings/v14/scene.py | from dataclasses import dataclass, field
from typing import Optional
__NAMESPACE__ = "sdformat/v1.4/scene.xsd"
@dataclass
class Scene:
"""
Specifies the look of the environment.
Parameters
----------
ambient: Color of the ambient light.
background: Color of the background.
sky: Propertie... | PypiClean |
/alipay-sdk-python-pycryptodome-3.3.202.tar.gz/alipay-sdk-python-pycryptodome-3.3.202/alipay/aop/api/domain/AntMerchantExpandShopModifyModel.py | import json
from alipay.aop.api.constant.ParamConstants import *
from alipay.aop.api.domain.AddressInfo import AddressInfo
from alipay.aop.api.domain.ShopBusinessTime import ShopBusinessTime
from alipay.aop.api.domain.ContactInfo import ContactInfo
from alipay.aop.api.domain.ShopExtInfo import ShopExtInfo
from alipay.... | PypiClean |
/fetch_data-0.2.5.2.tar.gz/fetch_data-0.2.5.2/docs/index.rst | .. gcm-filters documentation master file, created by
sphinx-quickstart on Tue Jan 12 09:24:23 2021.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
Welcome to fetch-data
=====================
Fetch data is a simple tool to quickly download data ... | PypiClean |
/django-simple-utilities-0.8.tar.gz/django-simple-utilities-0.8/utilities/static/utilities/js/models/tinymce/jscripts/tiny_mce/plugins/fullpage/editor_plugin_src.js | (function() {
tinymce.create('tinymce.plugins.FullPagePlugin', {
init : function(ed, url) {
var t = this;
t.editor = ed;
// Register commands
ed.addCommand('mceFullPageProperties', function() {
ed.windowManager.open({
file : url + '/fullpage.htm',
width : 430 + parseInt(ed.getLang('fullpa... | PypiClean |
/adversarial_robustness_toolbox-1.15.1-py3-none-any.whl/art/metrics/privacy/worst_case_mia_score.py | from __future__ import absolute_import, division, print_function, unicode_literals
import logging
from typing import Optional, List, Tuple, Union
import numpy as np
from sklearn.metrics import roc_curve
TPR = float # True Positive Rate
FPR = float # False Positive Rate
THR = float # Threshold of the binary decis... | PypiClean |
/ansys_meshing_prime-0.4.0.tar.gz/ansys_meshing_prime-0.4.0/src/ansys/meshing/prime/internals/json_utils.py | import json
from typing import Union
import numpy as np
import ansys.meshing.prime.internals.config as config
import ansys.meshing.prime.relaxed_json as relaxed_json
__all__ = ['loads', 'dumps']
def try_process_as_iterable(obj):
"""Try if an object is an iterable and return its list.
Parameters
------... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.