id
stringlengths
1
8
text
stringlengths
6
1.05M
dataset_id
stringclasses
1 value
/intrinio-sdk-6.25.0.tar.gz/intrinio-sdk-6.25.0/intrinio_sdk/api_client.py
from __future__ import absolute_import import datetime import time import json import mimetypes from multiprocessing.pool import ThreadPool import os import re import tempfile from retrying import retry # python 2 and python 3 compatibility library import six from six.moves.urllib.parse import quote from intrinio_sd...
PypiClean
/ml_base-0.2.2-py3-none-any.whl/ml_base/decorator.py
from typing import Optional, Any from ml_base.ml_model import MLModel from pydantic import BaseModel class MLModelDecorator(MLModel): """Base class for ML model decorator code. !!! note The default behavior of the MLModelDecorator base class is to do nothing and to forward the method call to ...
PypiClean
/mira-multiome-2.1.0.tar.gz/mira-multiome-2.1.0/docs/source/tutorials.rst
User Guide ========== ------------ Setting up ---------- To use MIRA, you need a single-cell multiomics, scRNA-seq, or scATAC-seq experiment preprocessed and formatted as a **peaks by cells count matrix for scATAC-seq** and **genes by cells count matrix for scRNA-seq**. Before starting with MIRA, make sure to filter...
PypiClean
/doapfiend-0.3.3.tar.gz/doapfiend-0.3.3/docs/api/epydoc.js
function toggle_private() { // Search for any private/public links on this page. Store // their old text in "cmd," so we will know what action to // take; and change their text to the opposite action. var cmd = "?"; var elts = document.getElementsByTagName("a"); for(var ...
PypiClean
/msgraph-sdk-1.0.0a3.tar.gz/msgraph-sdk-1.0.0a3/msgraph/generated/groups/item/get_member_groups/get_member_groups_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
/dscan_api_client-1.1.7-py3-none-any.whl/dscan_api_client/api/programs/programs_subdomain_detail_save_create.py
from http import HTTPStatus from typing import Any, Dict, Optional import httpx from ... import errors from ...client import AuthenticatedClient, Client from ...models.program_subdomain_detail_save_check import ProgramSubdomainDetailSaveCheck from ...types import Response def _get_kwargs( id: int, *, cl...
PypiClean
/aifs_nni-1.9.5-py3-none-manylinux1_x86_64.whl/aifs_nni-1.9.5.data/data/nni/node_modules/rx/dist/rx.backpressure.js
;(function (factory) { var objectTypes = { 'function': true, 'object': true }; function checkGlobal(value) { return (value && value.Object === Object) ? value : null; } var freeExports = (objectTypes[typeof exports] && exports && !exports.nodeType) ? exports : null; var freeModule = (objectTy...
PypiClean
/mapservice_clientlib-2.3.0-py3-none-any.whl/clients/exceptions.py
import requests from parserutils.collections import wrap_value from restle.exceptions import MissingFieldException class ClientError(Exception): """ A class to represent the set of specific errors that can occur during a client request, with a level of detail sufficient for a caller to generate a user f...
PypiClean
/ShapeYModular-2.0.3.tar.gz/ShapeYModular-2.0.3/shapeymodular/visualization/correlation_fall_off.py
import matplotlib.pyplot as plt import numpy as np def make_corr_fall_off_single_sample(row_info, excaxis): figure, ax = plt.subplots(figsize=(1.6 * 5, 1.6 * 4)) best_matching_x = np.linspace(1, 11, 11) ax.set_xticks(best_matching_x) ax.hlines(row_info[1][0][0], 0.5, 11.5, colors="b", linestyle="--",...
PypiClean
/pyappnvn-0.0.4.tar.gz/pyappnvn-0.0.4/pynvn/autoscrollbar/autoscrbar.py
import tkinter as tk class AutoScrollbar(tk.Scrollbar): """ Defining set method with all """ # its parameter def set(self, low, high): if float(low) <= 0.0 and float(high) >= 1.0: # Using grid_remove self.tk.call("grid", "remove", self) else: ...
PypiClean
/nm_transformers-1.5.1.42301-py3-none-any.whl/transformers/models/switch_transformers/modeling_switch_transformers.py
import copy import math import warnings from typing import Optional, Tuple, Union import torch import torch.nn as nn from torch.nn import CrossEntropyLoss from torch.utils.checkpoint import checkpoint from ...activations import ACT2FN from ...modeling_outputs import ( MoEModelOutput, MoEModelOutputWithPastAnd...
PypiClean
/tencentcloud_iac_pulumi-0.1.5.tar.gz/tencentcloud_iac_pulumi-0.1.5/tencentcloud_iac_pulumi/dcx/_inputs.py
import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import _utilities __all__ = [ 'ExtraConfigBfdInfoArgs', 'ExtraConfigBgpPeerArgs', 'ExtraConfigNqaInfoArgs', 'ExtraConfigRouteFilterPrefixesArgs', ] @pulumi.input_type class...
PypiClean
/python-sources-3.10.5.tar.gz/python-sources-3.10.5/Python-3.10.5/Doc/library/custominterp.rst
.. _custominterp: ************************** Custom Python Interpreters ************************** The modules described in this chapter allow writing interfaces similar to Python's interactive interpreter. If you want a Python interpreter that supports some special feature in addition to the Python language, you sh...
PypiClean
/ovirt-engine-sdk-python-4.6.1.tar.gz/examples/asynchronous_inventory.py
# # Copyright (c) 2017 Red Hat, Inc. # # 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 wr...
PypiClean
/cohesity_management_sdk-1.10.1.tar.gz/cohesity_management_sdk-1.10.1/cohesity_management_sdk/models/mount_volume_result_details.py
import cohesity_management_sdk.models.request_error class MountVolumeResultDetails(object): """Implementation of the 'MountVolumeResultDetails' model. Specifies the result of mounting an individual mount volume in a Restore Task. Attributes: mount_error (RequestError): Specifies the caus...
PypiClean
/Kr0nOs-3.4.1.tar.gz/Kr0nOs-3.4.1/kronbot/core/utils/tunnel.py
import io import weakref from datetime import datetime from typing import List, Optional import discord from kronbot.core.utils.chat_formatting import pagify from .common_filters import filter_mass_mentions _instances = weakref.WeakValueDictionary({}) class TunnelMeta(type): """ lets prevent having multip...
PypiClean
/confine-controller-1.0.2.tar.gz/confine-controller-1.0.2/controller/apps/tinc/migrations/0030_auto__chg_field_host_name__add_unique_host_name.py
from south.utils import datetime_utils as datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Changing field 'Host.name' db.alter_column(u'tinc_host', 'name', self.gf('django.db.models.fie...
PypiClean
/PySwitchbot-0.39.1.tar.gz/PySwitchbot-0.39.1/switchbot/discovery.py
from __future__ import annotations import asyncio import logging import bleak from bleak.backends.device import BLEDevice from bleak.backends.scanner import AdvertisementData from .adv_parser import parse_advertisement_data from .const import DEFAULT_RETRY_COUNT, DEFAULT_RETRY_TIMEOUT, DEFAULT_SCAN_TIMEOUT from .mo...
PypiClean
/selene-sdk-0.5.1.tar.gz/selene-sdk-0.5.1/selene_sdk/samplers/file_samplers/bed_file_sampler.py
import numpy as np from .file_sampler import FileSampler class BedFileSampler(FileSampler): """ A sampler for which the dataset is loaded directly from a `*.bed` file. Parameters ---------- filepath : str The path to the file to load the data from. reference_sequence : selene_sdk.sequ...
PypiClean
/django-geoprisma-0.0.1.tar.gz/django-geoprisma-0.0.1/geoprisma/static/geoprisma/lib/OpenLayers/lib/OpenLayers/Format/WFST/v1_0_0.js
* @requires OpenLayers/Format/WFST/v1.js * @requires OpenLayers/Format/Filter/v1_0_0.js */ /** * Class: OpenLayers.Format.WFST.v1_0_0 * A format for creating WFS v1.0.0 transactions. Create a new instance with the * <OpenLayers.Format.WFST.v1_0_0> constructor. * * Inherits from: * - <OpenLayers.Format.F...
PypiClean
/scaraplate-0.5.tar.gz/scaraplate-0.5/README.md
# scaraplate [![GitHub Actions Build status][gha-badge]][gha-link] [![scaraplate on pypi][pypi-badge]][pypi-link] [![docs at readthedocs][docs-badge]][docs-link] [![Licensed under MIT][license-badge]][license-link] [![Code style: black][black-badge]][black-link] [gha-badge]: https://img.shields.io/github/actions/work...
PypiClean
/django-multimedia-0.2.0.tar.gz/django-multimedia-0.2.0/docs/settings.rst
.. _settings: Settings ======== .. currentmodule:: django.conf.settings .. attribute:: MULTIMEDIA_FILE_STORAGE Defines the `django-storages`_ backend that is used to upload encoded media. This is specified as a dotted path to the desired backend module. For example:: MULTIMEDIA_FILE_STORAGE = 'stora...
PypiClean
/cly_why-0.3.12-py3-none-any.whl/cly_why/main.py
import os import re import sys import typing def colorize(string: str, color: str="RED"): """ ANSI color codes """ color = color.upper() ansi = { "BLACK": "\033[0;30m", "RED": "\033[0;31m", "GREEN": "\033[0;32m", "BROWN": "\033[0;33m", "BLUE": "\033[0;34m", ...
PypiClean
/slalom.dataops-2.0.0.124.tar.gz/slalom.dataops-2.0.0.124/slalom/dataops/jobs.py
import datetime from distutils.util import strtobool import hashlib # import inspect import os from pathlib import Path import sys import tempfile import time from logless import logged, get_logger, flush_buffers import runnow import uio sys.path.append("../src/") if __name__ == "__main__" and __package__ is None: ...
PypiClean
/cdktf_cdktf_provider_aws-17.0.2-py3-none-any.whl/cdktf_cdktf_provider_aws/data_aws_networkfirewall_resource_policy/__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 DataAwsNetworkfirewallResourcePolicy( _cdktf_9a902...
PypiClean
/raven_framework-2.3-cp39-cp39-win_amd64.whl/ravenframework/CodeInterfaceClasses/MooseBasedApp/MooseInputParser.py
import os import sys from ravenframework.utils import utils, TreeStructure multiIndicators = ('\'', '\"') validIndicators = ('=', '[') def preprocessGetpot(getpot): """ Minimize user readability to accentuate computer readability Note all comments will be removed, as they aren't computer read @ In, get...
PypiClean
/processfamily-0.9.tar.gz/processfamily-0.9/README.md
processfamily ============= A library for launching, maintaining, and terminating a family of long-lived python child processes on Windows and *nix. The child processes can be launched from a console application or a Windows service / *nix daemon. A simple line-oriented text-based control protocol is implemented over...
PypiClean
/datasette-surveys-1.1.8.tar.gz/datasette-surveys-1.1.8/datasette_surveys/static/lib/tinymce/plugins/link/plugin.min.js
tinymce.PluginManager.add("link",function(a){function b(b){return function(){var c=a.settings.link_list;"string"==typeof c?tinymce.util.XHR.send({url:c,success:function(a){b(tinymce.util.JSON.parse(a))}}):"function"==typeof c?c(b):b(c)}}function c(a,b,c){function d(a,c){return c=c||[],tinymce.each(a,function(a){var e={...
PypiClean
/baiduads_sdk_auto-2023.1.0-py3-none-any.whl/baiduads/cyctemplate/model/get_template_response_wrapper_body.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
/kelvin_sdk_client-7.13.0-py3-none-any.whl/kelvin/sdk/client/retry.py
from __future__ import annotations from random import random from typing import Any, Tuple, Union import requests from requests.adapters import Retry class APIRetry(Retry): """API retrier.""" def __init__(self, *args: Any, **kwargs: Any) -> None: """Initialise retry.""" # overrides ...
PypiClean
/TinyMCE-on-pyqt-0.1.12.tar.gz/TinyMCE-on-pyqt-0.1.12/TinyMCE_on_Pyqt/tinymce/js/tinymce/plugins/quickbars/plugin.min.js
!function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager");const t=e=>t=>typeof t===e,o=("string",e=>"string"===(e=>{const t=typeof e;return null===e?"null":"object"===t&&Array.isArray(e)?"array":"object"===t&&(o=n=e,(r=String).prototype.isPrototypeOf(o)||(null===(i=n.constructor)||void 0===i?vo...
PypiClean
/bell-avr-pymavlink-2.4.25.tar.gz/bell-avr-pymavlink-2.4.25/tools/magfit_delta.py
from __future__ import print_function from builtins import range import sys # command line option handling from argparse import ArgumentParser parser = ArgumentParser(description=__doc__) parser.add_argument("--no-timestamps", dest="notimestamps", action='store_true', help="Log doesn't have timestamps") parser.add_ar...
PypiClean
/kumuniverse-0.9.3.tar.gz/kumuniverse-0.9.3/README.md
# <img src="./assets/karlito.png" alt="Karlito" width="50"/> KUMUniverse Python shared library for accessing Kumu Data Team's services. ## Prerequisites 1. Python 2. Pip ## Installation ```bash pip install -U kumuniverse ``` ## Usage ```python from kumuniverse.<module_name> import <class_or_function_name> # MongoDB...
PypiClean
/jupyterhub_url_sharing-0.1.0.tar.gz/jupyterhub_url_sharing-0.1.0/node_modules/stylelint/lib/rules/block-no-empty/index.js
'use strict'; const beforeBlockString = require('../../utils/beforeBlockString'); const hasBlock = require('../../utils/hasBlock'); const optionsMatches = require('../../utils/optionsMatches'); const report = require('../../utils/report'); const ruleMessages = require('../../utils/ruleMessages'); const { isStylelintCo...
PypiClean
/bluefog-0.3.0.tar.gz/bluefog-0.3.0/third_party/boost/iterator/doc/iterator_concepts.rst
.. Distributed under the Boost .. Software License, Version 1.0. (See accompanying .. file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) ++++++++++++++++++ Iterator Concepts ++++++++++++++++++ :Author: David Abrahams, Jeremy Siek, Thomas Witt :Contact: dave@boost-consulting.com, jsiek@osl.iu.edu, ...
PypiClean
/qute_style-1.0.6.tar.gz/qute_style-1.0.6/qute_style/style.py
import logging from typing import Optional, cast from PySide6.QtCore import QRect, QSettings, QSize from PySide6.QtGui import QColor, QPainter, QPixmap log = logging.getLogger( f"qute_style.{__name__}" ) # pylint: disable=invalid-name # Use this variable when referencing a default style so that adapting to a n...
PypiClean
/gatenlp-1.0.8.tar.gz/gatenlp-1.0.8/docs/installation.md
# Installation Make sure you have Python 3.7 or later installed. The recommended way to install Python is to use Conda by installing one of * [Anaconda](https://www.anaconda.com/products/individual) or * [Miniconda](https://docs.conda.io/en/latest/miniconda.html) Alternately, * [Miniforge](https://github.com/co...
PypiClean
/redner_gpu-0.4.28-cp38-cp38-manylinux1_x86_64.whl/pyredner/load_mitsuba.py
import torch import xml.etree.ElementTree as etree import numpy as np import redner import os import pyredner import pyredner.transform as transform from typing import Optional import math def parse_transform(node): ret = torch.eye(4) for child in node: if child.tag == 'matrix': value = tor...
PypiClean
/pgsync-fork-2.7.3.tar.gz/pgsync-fork-2.7.3/pgsync/urls.py
import logging from typing import Optional from urllib.parse import quote_plus from .plugin import Plugins from .settings import ( ELASTICSEARCH_HOST, ELASTICSEARCH_PASSWORD, ELASTICSEARCH_PORT, ELASTICSEARCH_SCHEME, ELASTICSEARCH_USER, PG_DRIVER, PG_HOST, PG_PASSWORD, PG_PORT, ...
PypiClean
/python-ta-2.6.1.tar.gz/python-ta-2.6.1/python_ta/upload.py
import hashlib import json import uuid from typing import Dict, List, NamedTuple import requests def errors_to_dict(errors: List[NamedTuple]) -> Dict[str, List[str]]: """Convert PyTA errors from MessageSet format to a json format Dictionary.""" error_info = ["msg_id", "msg", "symbol", "module", "category", "...
PypiClean
/jupyterlab_remote_contents-0.1.1.tar.gz/jupyterlab_remote_contents-0.1.1/node_modules/moment/dist/locale/es-do.js
import moment from '../moment'; var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split( '_' ), monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'), monthsParse = [ /^ene/i, /^feb/i, /^mar/i, /^abr/i, /...
PypiClean
/dumpulator-0.2.5.tar.gz/dumpulator-0.2.5/src/minidump/streams/MemoryInfoListStream.py
import io import enum from minidump.common_structs import * class AllocationProtect(enum.Flag): NONE = 0 PAGE_EXECUTE = 0x10 #Enables execute access to the committed region of pages. An attempt to write to the committed region results in an access violation. #This flag is not supported by the CreateFileMapping...
PypiClean
/ReText-8.0.0.tar.gz/ReText-8.0.0/configuration.md
ReText stores all of its configuration in a text file. A path to that file is printed to stdout during ReText startup. Possible configuration options ============================== Configuration options that you can set to improve your experience: option name | type | description ----------- ...
PypiClean
/gsk-1.0.1-py3-none-any.whl/selenium/seleniumFacebook.py
import os import time from awgp.selenium.seleniumLib import * from awgp.common.json import JSON class SeleniumFacebookPost: def __init__(self,facebook): self.facebook = facebook self.document = self.facebook.document self.post = self.document.getElementByClass(".notranslate._5rpu") ...
PypiClean
/odoo12_addon_hr_timesheet_sheet-12.0.3.7.6-py3-none-any.whl/odoo/addons/hr_timesheet_sheet/readme/CONFIGURE.rst
If you want other default ranges different from weekly, you need to go: * In the menu `Configuration` -> `Settings` -> **Timesheet Options**, and select in **Timesheet Sheet Range** the default range you want. * When you have a weekly range you can also specify the **Week Start Day**. To change who reviews submitte...
PypiClean
/rlbtf-0.1.0.tar.gz/rlbtf-0.1.0/README.md
# RLBTF Opinionated RL baselines in Tensorflow ## Python environment Create your python environment using `poetry install -E all` ## Adding documentation 1. Run `mkdocs new .` to create the documentation structure (after customizing template) 2. Change theme in `mkdocs.yml` to `material` ### Useful resources 1. ...
PypiClean
/kivy-automate-0.1.tar.gz/kivy-automate-0.1/automate/server.py
import socket import struct import threading import json import base64 import os from time import time COMMAND_SIZE = struct.calcsize("I") COMMANDS = {} def command(f): COMMANDS[f.__name__] = f @command def screenshot(*args): """Do a screenshot of the window, and return it as a PNG: (width, height, "RG...
PypiClean
/django_ckeditor-6.7.0-py3-none-any.whl/ckeditor_uploader/utils.py
import os.path import random import re import string from django.conf import settings from django.template.defaultfilters import slugify from django.utils.encoding import force_str from django.utils.module_loading import import_string # Non-image file icons, matched from top to bottom fileicons_path = "{}/file-icon...
PypiClean
/give_me_python-3.10.4-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/give_me_python/data/lib/python3.10/importlib/_common.py
import os import pathlib import tempfile import functools import contextlib import types import importlib from typing import Union, Any, Optional from .abc import ResourceReader, Traversable from ._adapters import wrap_spec Package = Union[types.ModuleType, str] def files(package): # type: (Package) -> Travers...
PypiClean
/odoo_addon_report_label-16.0.1.0.0.2-py3-none-any.whl/odoo/addons/report_label/readme/ROADMAP.rst
Known issues: * This module depends on `base_automation` only because this module extends `ir.actions.server` with a new kind of action, and `base.automation` inherits from `ir.actions.server` by delegation in such a way that the modules cannot be loaded in another order. To do when migrating in version > 16 :...
PypiClean
/panther_utils-0.2.0.tar.gz/panther_utils-0.2.0/panther_utils/match_filters.py
import typing from panther_sdk import detection, PantherEvent __all__ = ["deep_equal", "deep_equal_pattern", "deep_in"] def deep_exists(path: str) -> detection.PythonFilter: """Returns True when a value at the provided path exists""" def _deep_exists(event: PantherEvent) -> bool: import functools ...
PypiClean
/linkml_dataops-0.1.0.tar.gz/linkml_dataops-0.1.0/linkml_dataops/generators/pyapigenerator.py
import logging import re import operator as op from collections import defaultdict from copy import copy from dataclasses import dataclass from typing import Any import click import yaml from jinja2 import Template from linkml_runtime.utils.formatutils import camelcase, underscore from linkml_runtime.utils.schemaview...
PypiClean
/bbo_acm_traingui-0.11.7-py3-none-any.whl/ACMtraingui/labeling_gui.py
import copy import numpy as np import os import sys import calibcamlib from PyQt5 import QtCore from PyQt5.QtCore import Qt from PyQt5.QtGui import QGuiApplication, QIntValidator, QCursor from PyQt5.QtWidgets import QAbstractItemView, \ QApplication, \ QComboBox...
PypiClean
/mini-youtube-player-1.0.3.tar.gz/mini-youtube-player-1.0.3/README.md
## mini-youtube-player **Search and play videos on youtube in cli** Main features: * Search for Videos or Playlists on youtube * View the search results * Play a video or only listen to audio * View a history of recently played videos * Download audio or video file from search results That's it. mini-youtube-pl...
PypiClean
/bluebeam_rel-4.0.0.tar.gz/bluebeam_rel-4.0.0/src/bluebeam/objects/SplitBomb.py
import pygame, math from bluebeam.objects import EnemyBullet class SplitBomb(EnemyBullet): def __init__(self, g_, l_, pos_=None): super().__init__(g_, l_, pos_) self._splits = 1 self._initvv = -750 self.gravity = 35 self.vel = pygame.math.Vector2(0, self._initvv) se...
PypiClean
/plone.app.workflowmanager-overhaul-1.2a1.tar.gz/plone.app.workflowmanager-overhaul-1.2a1/src/plone/app/workflowmanager/browser/resources/workflowmanager.js
var CURRENT_OVERLAY = null; var OVERLAYS = []; Array.prototype.contains = function(item){ for(var i = 0; i < this.length; i++){ if(this[i] == item){ return true; } } return false; } /** * Cookie plugin * * Copyright (c) 2006 Klaus Hartl (stilbuero.de) * Dual licensed under the MIT and GPL lice...
PypiClean
/intelino-trainlib-async-1.0.4.tar.gz/intelino-trainlib-async-1.0.4/intelino/trainlib_async/train_ble_packet.py
from typing import Iterable, Optional, Type, TypeVar, Union from .exc import TrainMessageTypeError, TrainlibError from .messages import TrainMsg, TrainMsgBase from .message_builder import MessageBuilder T = TypeVar("T", bound="TrainMsgBase") class TrainBlePacket: """Train BLE Packet class (over a bytearray).""...
PypiClean
/pecs_framework-1.2.1.tar.gz/pecs_framework-1.2.1/pecs_framework/entities/utils.py
from __future__ import annotations from beartype.typing import * if TYPE_CHECKING: from pecs_framework._types import CompId from pecs_framework.domain import Domain from .entity import Entity from pecs_framework.utils import has_bit, subtract_bit, add_bit from pecs_framework.component import Component, Co...
PypiClean
/violas_client-0.0.2-py3-none-any.whl/libra/shell/client_proxy.py
from canoser import Uint64 import libra from libra import Client, WalletLibrary from libra.account import AccountStatus from libra.account_address import Address from libra.transaction import Script, Module, TransactionPayload, TransactionArgument from libra.bytecode import get_code_by_filename import subprocess import...
PypiClean
/third/pycompat/evaluator.py
import code import pathlib import subprocess from datetime import datetime, timedelta from logging import Logger from pathlib import Path from typing import Callable from uuid import uuid1 from aexpy import getCacheDirectory, json from aexpy.differing.default import Differ as BaseDiffer from aexpy.environments.conda i...
PypiClean
/NetEase-MusicBox-0.3.1.tar.gz/NetEase-MusicBox-0.3.1/NEMbox/api.py
import json import platform import time from collections import OrderedDict from http.cookiejar import Cookie from http.cookiejar import LWPCookieJar import requests import requests_cache from .config import Config from .const import Constant from .encrypt import encrypted_request from .logger import getLogger from ....
PypiClean
/torch_points3d-1.3.0-py3-none-any.whl/torch_points3d/modules/KPConv/convolution_ops.py
import torch from torch_points3d.core.common_modules.gathering import gather def radius_gaussian(sq_r, sig, eps=1e-9): """ Compute a radius gaussian (gaussian of distance) :param sq_r: input radiuses [dn, ..., d1, d0] :param sig: extents of gaussians [d1, d0] or [d0] or float :return: gaussian of...
PypiClean
/gitreview_gpt-0.1.4.tar.gz/gitreview_gpt-0.1.4/README.md
<div align="center"> # Let your code changes get reviewed by AI with codereview-agi [![Build](https://github.com/fynnfluegge/gitreview-gpt/actions/workflows/build.yml/badge.svg?branch=main)](https://github.com/fynnfluegge/gitreview-gpt/actions/workflows/build.yml) [![Publish](https://github.com/fynnfluegge/codereview...
PypiClean
/ntnx_storage_py_client-4.0.2a3-py3-none-any.whl/ntnx_storage_py_client/configuration.py
from __future__ import absolute_import import copy import logging from logging.handlers import TimedRotatingFileHandler 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(TypeWit...
PypiClean
/t0-3.0.5a1.tar.gz/t0-3.0.5a1/src/python/T0/RunConfig/RunConfigAPI.py
import logging import threading import os.path import time from datetime import datetime from Utils.Utilities import rootUrlJoin from WMCore.DAOFactory import DAOFactory from WMCore.WorkQueue.WMBSHelper import WMBSHelper from WMCore.WMBS.Fileset import Fileset from WMCore.ReqMgr.DataStructs.RequestStatus import REQ...
PypiClean
/ensmallen_graph-0.6.0-cp37-cp37m-manylinux2010_x86_64.whl/ensmallen_graph/datasets/string/cladophialophorapsammophila.py
from typing import Dict from ..automatic_graph_retrieval import AutomaticallyRetrievedGraph from ...ensmallen_graph import EnsmallenGraph # pylint: disable=import-error def CladophialophoraPsammophila( directed: bool = False, verbose: int = 2, cache_path: str = "graphs/string", **additional_graph_kw...
PypiClean
/ethpector-0.1.8.tar.gz/ethpector-0.1.8/experiments/privileged-parties/calibrate_cutoff.py
import os from utils import score_accuracy import pandas as pd FOLDER = "validation_set" COMPUTE = False CUTOFFS = [ 5, 10, 20, 30, 40, 50, 75, 100, 125, 150, 175, 200, 250, 300, 350, 400, 500, 600, 700, 800, ] def clean_output(): os...
PypiClean
/apache-superset-11680-1000-1.3.1.tar.gz/apache-superset-11680-1000-1.3.1/superset/migrations/versions/1f6dca87d1a2_security_converge_dashboards.py
# revision identifiers, used by Alembic. revision = "1f6dca87d1a2" down_revision = "4b84f97828aa" from alembic import op from sqlalchemy.exc import SQLAlchemyError from sqlalchemy.orm import Session from superset.migrations.shared.security_converge import ( add_pvms, get_reversed_new_pvms, get_reversed_p...
PypiClean
/ymxadmin-1.0.9.tar.gz/ymxadmin-1.0.9/xadmin/static/xadmin/vendor/flot/jquery.flot.navigate.js
(function(a){function e(h){var k,j=this,l=h.data||{};if(l.elem)j=h.dragTarget=l.elem,h.dragProxy=d.proxy||j,h.cursorOffsetX=l.pageX-l.left,h.cursorOffsetY=l.pageY-l.top,h.offsetX=h.pageX-h.cursorOffsetX,h.offsetY=h.pageY-h.cursorOffsetY;else if(d.dragging||l.which>0&&h.which!=l.which||a(h.target).is(l.not))return;switc...
PypiClean
/dse_driver-2.11.1-cp36-cp36m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl/dse/graph/graphson.py
import datetime import base64 import uuid import re import json from decimal import Decimal from collections import OrderedDict import six if six.PY3: import ipaddress from dse.util import Polygon, Point, LineString from dse.graph.types import Vertex, VertexProperty, Edge, Path __all__ = ['GraphSON1Serializer'...
PypiClean
/alipay_sdk_python-3.6.740-py3-none-any.whl/alipay/aop/api/request/AlipayOpenOperationOpenbizmockSendRequest.py
import json from alipay.aop.api.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.AlipayOpenOperationOpenbizmockSendModel import AlipayOpenOperationOpenbizmockSendModel class AlipayOpenOperationOpenbizmockSendRequest(object): def __init__(self, biz_model=...
PypiClean
/llama_hub-0.0.26-py3-none-any.whl/llama_hub/web/readability_web/Readability.js
* This code is heavily based on Arc90's readability.js (1.7.1) script * available at: http://code.google.com/p/arc90labs-readability */ /** * Public constructor. * @param {HTMLDocument} doc The document to parse. * @param {Object} options The options object. */ function Readability(doc, options) { /...
PypiClean
/plone.schemaeditor-4.0.4.tar.gz/plone.schemaeditor-4.0.4/plone/schemaeditor/browser/schema/listing.py
from plone.autoform.form import AutoExtensibleForm from plone.memoize.instance import memoize from plone.schemaeditor import _ from plone.schemaeditor.interfaces import IFieldFactory from plone.schemaeditor.utils import SchemaModifiedEvent from plone.supermodel.interfaces import FIELDSETS_KEY from plone.z3cform.layout ...
PypiClean
/json-fingerprint-0.14.0.tar.gz/json-fingerprint-0.14.0/README.md
# json-fingerprint ![](https://img.shields.io/github/license/cobaltine/json-fingerprint) [![](https://img.shields.io/pypi/v/json-fingerprint)](https://pypi.org/project/json-fingerprint/) ![](https://img.shields.io/pypi/pyversions/json-fingerprint) ![](https://img.shields.io/github/actions/workflow/status/cobaltine/jso...
PypiClean
/pynad-3.0.1.tar.gz/pynad-3.0.1/README.rst
##### pynad ##### An application to download, sync, organize and prepare the microdata and metadata of the Brazilian National Household Survey, **Pesquisa Nacional por Amostra de Domicílios Contínua** - **Pnadc** - fielded by the Instituto Brasileiro de Geografia e Estatística, `IBGE <http://www.ibge.gov.br>`_. The **...
PypiClean
/onegramcoin-1.0.5-py3-none-any.whl/onegram/asset.py
import json from onegram.account import Account from onegrambase import operations from onegrambase.asset_permissions import ( asset_permissions, force_flag, test_permissions, todict ) from .exceptions import AssetDoesNotExistsException from .blockchainobject import BlockchainObject class Asset(Blockc...
PypiClean
/django_sotp-1.0.2.tar.gz/django_sotp-1.0.2/README.md
Django SOTP 🔐 ================ Generate a secured base32 one time password to authenticate your user! <br /> ## Case Study 📑 Before I mention why you should use django-sotp in your next project, have you every had to build from scratch; every time, a layer of your authentication system? Ah, yesss - me too, I kno...
PypiClean
/group-based-policy-2015.2.8.tar.gz/group-based-policy-2015.2.8/gbpservice/neutron/services/servicechain/plugins/ncp/node_plumbers/admin_owned_resources_apic_tscp.py
from keystoneclient import exceptions as k_exceptions from keystoneclient.v2_0 import client as keyclient from oslo_config import cfg from oslo_log import log as logging from oslo_utils import excutils from gbpservice.common import utils from gbpservice.neutron.services.servicechain.plugins.ncp.node_plumbers import( ...
PypiClean
/codeformer-0.0.11-py3-none-any.whl/basicsr/data/data_util.py
import cv2 import numpy as np import torch from os import path as osp from torch.nn import functional as F from basicsr.data.transforms import mod_crop from basicsr.utils import img2tensor, scandir def read_img_seq(path, require_mod_crop=False, scale=1): """Read a sequence of images from a given folder path. ...
PypiClean
/simpleblogging-2.0.13.tar.gz/simpleblogging-2.0.13/simple/static/js/vendor/modernizr-2.6.2.custom.min.js
;window.Modernizr=function(a,b,c){function z(a){j.cssText=a}function A(a,b){return z(m.join(a+";")+(b||""))}function B(a,b){return typeof a===b}function C(a,b){return!!~(""+a).indexOf(b)}function D(a,b){for(var d in a){var e=a[d];if(!C(e,"-")&&j[e]!==c)return b=="pfx"?e:!0}return!1}function E(a,b,d){for(var e in a){var...
PypiClean
/chatkitty-server-side-sdk-1.0.0.tar.gz/chatkitty-server-side-sdk-1.0.0/openapi_client/model/message_link_preview_properties.py
import re # noqa: F401 import sys # noqa: F401 from openapi_client.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, ModelSimple, cached_property, change_keys_js_to_python, convert_js_args_to_python_args, date, datetime, file_type, none_type, ...
PypiClean
/dlmhelper-1.0.0b1.tar.gz/dlmhelper-1.0.0b1/docs/build/html/_static/js/html5shiv-printshiv.min.js
!function(a,b){function c(a,b){var c=a.createElement("p"),d=a.getElementsByTagName("head")[0]||a.documentElement;return c.innerHTML="x<style>"+b+"</style>",d.insertBefore(c.lastChild,d.firstChild)}function d(){var a=y.elements;return"string"==typeof a?a.split(" "):a}function e(a,b){var c=y.elements;"string"!=typeof c&&...
PypiClean
/pulumi_aviatrix-0.0.11.tar.gz/pulumi_aviatrix-0.0.11/pulumi_aviatrix/aviatrix_firewall_tag.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__ = ['AviatrixFirewallTagArgs', 'AviatrixFirewallTag'] @pulumi.input_type class AviatrixFirewallTagArgs: ...
PypiClean
/msgraph_beta_sdk-1.0.0a9-py3-none-any.whl/msgraph/generated/models/planner_task.py
from __future__ import annotations from datetime import datetime from kiota_abstractions.serialization import Parsable, ParseNode, SerializationWriter from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union if TYPE_CHECKING: from . import business_scenario_task, identity_set, planner_applied_c...
PypiClean
/pvextractor-0.3.tar.gz/pvextractor-0.3/docs/plotting.rst
Plotting PV diagrams -------------------- Once you have extracted a position-velocity diagram, you likely want to plot it with appropriate units. This can be done using the WCS associated with the PV data: .. code-block:: python import pylab as pl from spectral_cube import SpectralCube from pvextractor i...
PypiClean
/np_config-0.4.25-py3-none-any.whl/np_config/config.py
from __future__ import annotations import atexit import collections import contextlib import datetime import itertools import json import logging import pathlib import platform import subprocess import sys import threading from typing import Any, Generator, Mapping import appdirs import yaml from kazoo.client import ...
PypiClean
/flasgger-0.9.7.1.tar.gz/flasgger-0.9.7.1/examples/swagger_config_3_with_components_schemas.py
from flask import Flask from flasgger import Swagger app = Flask(__name__) swagger_config = { "headers": [], "openapi": "3.0.2", "components": { "securitySchemes": { "oAuthSample": { "type": "oauth2", "flows": { "clientCredentials": {...
PypiClean
/pulpfiction-0.3.0-py3-none-any.whl/pulpfiction-0.3.0.dist-info/DESCRIPTION.rst
***** PulpFiction ***** .. image:: ./images/jules.png *English, *****! Do you speak it?* A simple tool to detect non-English commments in a code base (directory). Inspired by the fictional character, `Jules Winnfield, played by Samuel L Jackson in the film, Pulp Fiction`__. .. __: https://www.urbandictionary.com/d...
PypiClean
/factorio-draftsman-1.0.6.tar.gz/factorio-draftsman-1.0.6/draftsman/classes/vector.py
from __future__ import unicode_literals, division from typing import Union, Callable PrimitiveVector = "Sequence[float, float]" class Vector(object): """ A simple 2d vector class, used to aid in developent and user experience. """ def __init__(self, x, y): """ Constructs a new :py:c...
PypiClean
/ensmallen_graph-0.6.0-cp37-cp37m-manylinux2010_x86_64.whl/ensmallen_graph/datasets/string/prevotellaoulorumf0390.py
from typing import Dict from ..automatic_graph_retrieval import AutomaticallyRetrievedGraph from ...ensmallen_graph import EnsmallenGraph # pylint: disable=import-error def PrevotellaOulorumF0390( directed: bool = False, verbose: int = 2, cache_path: str = "graphs/string", **additional_graph_kwargs:...
PypiClean
/HydPy-5.0.1-cp38-cp38-win_amd64.whl/hydpy/__init__.py
# import... # ...from standard library from __future__ import annotations import importlib import os import warnings from typing import * # ...from site-packages import numpy from numpy import nan # ...from HydPy from hydpy.core import ( pubtools, ) pub = pubtools.Pub("pub") from hydpy import ( config, ) fr...
PypiClean
/card_scrnaseq_pipeline-1.0.0.tar.gz/card_scrnaseq_pipeline-1.0.0/README.md
[![PyPI version](https://badge.fury.io/py/card-scrnaseq-pipeline.svg)](https://badge.fury.io/py/card-scrnaseq-pipeline) The scPipeline is a pipeline using scanpy to do single-cell analysis. We hope to make new additions to that soon. ## Installation There are two installation methods: 1. Install the full CLI tool: ...
PypiClean
/zipline_tej-0.0.48-cp38-cp38-win_amd64.whl/zipline/finance/metrics/core.py
from functools import partial from zipline.utils.compat import mappingproxy def _make_metrics_set_core(): """Create a family of metrics sets functions that read from the same metrics set mapping. Returns ------- metrics_sets : mappingproxy The mapping of metrics sets to load functions. ...
PypiClean
/h2o_engine_manager-0.5.3-py3-none-any.whl/h2o_engine_manager/gen/dai_engine_service/model/v1_dai_engine_service_download_logs_response.py
import re # noqa: F401 import sys # noqa: F401 from h2o_engine_manager.gen.dai_engine_service.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, ModelSimple, cached_property, change_keys_js_to_python, convert_js_args_to_python_args, date, datetime, fi...
PypiClean
/sktime-backup-0.16.1.tar.gz/sktime-backup-0.16.1/sktime/forecasting/base/_delegate.py
# copyright: sktime developers, BSD-3-Clause License (see LICENSE file) __author__ = ["fkiraly"] __all__ = ["_DelegatedForecaster"] from sktime.forecasting.base import BaseForecaster class _DelegatedForecaster(BaseForecaster): """Delegator mixin that delegateas all methods to wrapped forecaster. Delegates ...
PypiClean
/fds.sdk.FactSetConcordance-0.23.5-py3-none-any.whl/fds/sdk/FactSetConcordance/model/create_universe_request.py
import re # noqa: F401 import sys # noqa: F401 from fds.sdk.FactSetConcordance.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, no...
PypiClean
/qitian_module-2.0.5-py3-none-any.whl/usercenter/static/global/plugins/bootstrap-switch/README.md
# Bootstrap Switch [![Dependency Status](https://david-dm.org/nostalgiaz/bootstrap-switch.svg?style=flat)](https://david-dm.org/nostalgiaz/bootstrap-switch) [![devDependency Status](https://david-dm.org/nostalgiaz/bootstrap-switch/dev-status.svg?style=flat)](https://david-dm.org/nostalgiaz/bootstrap-switch#info=devDepe...
PypiClean
/cogen-0.2.1.zip/cogen-0.2.1/examples/cogen-irc/CogenIrcApp/cogenircapp/public/irc-app.js
window.con = { 'log': function() {}, 'info': function() {}, 'error': function() {}, 'debug': function() {} }; function scroll_bottom(){ window.scrollBy(0, window.innerHeight); } var Connection = new Class({ options: { onServerMessage: Class.empty, onPrivateMessage: Class.e...
PypiClean
/salesforce-merlion-2.0.2.tar.gz/salesforce-merlion-2.0.2/merlion/dashboard/callbacks/data.py
import json import logging import os import traceback import numpy as np import dash from dash import Input, Output, State, callback, dcc from merlion.dashboard.pages.data import create_stats_table, create_metric_stats_table from merlion.dashboard.utils.file_manager import FileManager from merlion.dashboard.models.dat...
PypiClean
/mms-networkx-1.12rc1.tar.gz/mms-networkx-1.12rc1/networkx/algorithms/bipartite/generators.py
# Copyright (C) 2006-2011 by # Aric Hagberg <hagberg@lanl.gov> # Dan Schult <dschult@colgate.edu> # Pieter Swart <swart@lanl.gov> # All rights reserved. # BSD license. import math import random import networkx from functools import reduce import networkx as nx __author__ = """\n""".join(['Aric Hagbe...
PypiClean