id
stringlengths
1
8
text
stringlengths
6
1.05M
dataset_id
stringclasses
1 value
/v3/model/v3_data_volume.py
import pprint import re import six class V3DataVolume: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in defini...
PypiClean
/matrix-angular-sdk-0.6.8.tar.gz/matrix-angular-sdk-0.6.8/README.rst
Matrix Angular SDK ================== .. DANGER:: **matrix-angular-sdk is not currently being maintained or developed by the core team, and whilst stable it has some serious performance issues; Angular makes it a bit too easy to shoot yourself in the foot and doesn't help you escape when you do so. All o...
PypiClean
/fake_bge_module_0.2.5-20200804-py3-none-any.whl/bge/texture.py
import sys import typing import bpy.context class DeckLink: ''' Certain DeckLink devices can be used to playback video: the host sends video frames regularly for immediate or scheduled playback. The video feed is outputted on HDMI or SDI interfaces. This class supports the immediate playback mode: it has a source...
PypiClean
/code-RTC-1.0.2.tar.gz/code-RTC-1.0.2/code_rtc/static/lib/monaco-editor/esm/vs/editor/standalone/browser/inspectTokens/inspectTokens.js
var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] =...
PypiClean
/skytime-0.16.1-py3-none-any.whl/sktime/annotation/ggs.py
import logging import math from typing import Dict, List, Tuple import numpy as np import numpy.typing as npt from attrs import asdict, define, field from sklearn.utils.validation import check_random_state from sktime.base import BaseEstimator logger = logging.getLogger(__name__) @define class GGS: """ Gre...
PypiClean
/upt-pypi-0.6.tar.gz/upt-pypi-0.6/upt_pypi/upt_pypi.py
import pkg_resources import re import tempfile from urllib import request import pkginfo import requests import upt from .licenses import guess_licenses class PyPIPackage(upt.Package): pass class PyPIFrontend(upt.Frontend): name = 'pypi' @staticmethod def get_archive_info(release, kind): ...
PypiClean
/tess-locator-0.5.0.tar.gz/tess-locator-0.5.0/README.rst
tess-locator ============ **Where is my favorite star or galaxy in NASA's TESS Full Frame Image data set?** |pypi| |pytest| |black| |flake8| |mypy| .. |pypi| image:: https://img.shields.io/pypi/v/tess-locator :target: https://pypi.python.org/pypi/tess-locator .. |pytest| image:: https://github.com/SS...
PypiClean
/gphotos-sync-3.1.3.tar.gz/gphotos-sync-3.1.3/src/gphotos_sync/DatabaseMedia.py
from datetime import datetime from pathlib import Path from typing import Optional, TypeVar from gphotos_sync import Utils from gphotos_sync.BaseMedia import BaseMedia from gphotos_sync.Checks import get_check # this allows self reference to this class in its factory methods D = TypeVar("D", bound="DatabaseMedia") ...
PypiClean
/benchling_api_client-2.0.207-py3-none-any.whl/benchling_api_client/v2/beta/models/dna_sequence_bulk_upsert_request.py
from typing import Any, cast, Dict, List, Optional, Type, TypeVar, Union import attr from ..extensions import NotPresentError from ..models.archive_record_set import ArchiveRecordSet from ..models.custom_fields import CustomFields from ..models.dna_annotation import DnaAnnotation from ..models.dna_sequence_part impor...
PypiClean
/django-shpaml-template-loader-0.2.3.tar.gz/django-shpaml-template-loader-0.2.3/shpaml_loader/shpaml.py
import re __version__ = '1.00b' def convert_text(in_body): ''' You can call convert_text directly to convert shpaml markup to HTML markup. ''' return convert_shpaml_tree(in_body) PASS_SYNTAX = 'PASS' FLUSH_LEFT_SYNTAX = '|| ' FLUSH_LEFT_EMPTY_LINE = '||' TAG_WHITESPACE_ATTRS = re.compile('(\S+)(...
PypiClean
/django-jsgettext-0.5.tar.gz/django-jsgettext-0.5/djsgettext/views.py
from django.views.decorators.cache import cache_page from django.views.generic import View from django.http import HttpResponse from django.utils.decorators import method_decorator from django.utils.text import javascript_quote from django.utils import six from django.utils.encoding import smart_text from django.utils...
PypiClean
/pyjx-html5-0.1.0.tar.gz/pyjx-html5-0.1.0/pyjswidgets/pyjamas/DOM.pywebkitdfb.py
def getAbsoluteLeft(elem): # Unattached elements and elements (or their ancestors) with style # 'display: none' have no offsetLeft. if (elem.offsetLeft is None) : return 0 left = 0 curr = elem.parentNode if (curr) : # This intentionally excludes body which has a None offsetParen...
PypiClean
/django_extjs4-1.2.0-extjs4.2.1.tar.gz/django_extjs4-1.2.0-extjs4.2.1/extjs4/static/extjs4/packages/ext-locale/build/ext-locale-et-dev.js
* Estonian Translations * By Rene Saarsoo (2012-05-28) */ Ext.onReady(function() { if (Ext.Date) { Ext.Date.monthNames = ["Jaanuar", "Veebruar", "Märts", "Aprill", "Mai", "Juuni", "Juuli", "August", "September", "Oktoober", "November", "Detsember"]; // Month names aren't shortened to strictly t...
PypiClean
/azure-cli-2.51.0.tar.gz/azure-cli-2.51.0/azure/cli/command_modules/cognitiveservices/_help.py
from knack.help_files import helps # pylint: disable=unused-import # pylint: disable=line-too-long, too-many-lines helps['cognitiveservices'] = """ type: group short-summary: Manage Azure Cognitive Services accounts. long-summary: This article lists the Azure CLI commands for Azure Cognitive Services account and sub...
PypiClean
/love_course_2016_2019-2023.3.1.0-py3-none-any.whl/LoveCourse20162019/docs/chris/chris《搭讪达人》:解惑篇09废物测试(下).md
# chris《搭讪达人》:解惑篇09 废物测试(下) 那麼歡迎來到我們的菲律測試的第三集,OK我們為什麼會花三集會餃費測呢,因為菲律的東西真的是,給我們當中非常非常非常非常重要的一個環節,他直接可以決定你搭上的結果,還是不好的這個東西直接可以決定你的結果。 而且我們的老用戶都應該知道,就是柯老師也有人是比較喜歡講底層邏輯的,就探究一個事務的底層邏輯,然後講出來讓他能夠聽懂,菲律測試也會隨著一個人的認知,以他的認知水平,他看待菲律測試的意義是不同的。 像最早期的時候傳統認為女生,給那個男的菲律測試就測試,他是不是一個廢物嗎,但是其實當我們了解到紅藥完以後,其實廢物測試就是女生,他確立他是一個性選擇者的位置,用來這個判斷,或者是...
PypiClean
/msgraph_beta_sdk-1.0.0a9-py3-none-any.whl/msgraph/generated/groups/item/team/members/add/add_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
/realms-wiki-0.9.3.tar.gz/realms-wiki-0.9.3/realms/static/vendor/ace-builds/src-noconflict/mode-html.js
ace.define("ace/mode/doc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"], function(require, exports, module) { "use strict"; var oop = require("../lib/oop"); var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules; var DocCommentHighlightRule...
PypiClean
/pm2mp-0.0.98-py3-none-any.whl/pm2mp-0.0.98.data/data/node_modules/autocomplete.js
'use strict'; const Select = require('./select'); const highlight = (input, color) => { let val = input.toLowerCase(); return str => { let s = str.toLowerCase(); let i = s.indexOf(val); let colored = color(str.slice(i, i + val.length)); return i >= 0 ? str.slice(0, i) + colored + str.slice(i + val...
PypiClean
/eeg-to-fmri-0.0.9.tar.gz/eeg-to-fmri-0.0.9/src/eeg_to_fmri/regularizers/path_sgd.py
import tensorflow as tf import gc OPTIMIZER=tf.keras.optimizers.Adam def optimizer(name, input_shape, model, lr): if(name=="PathAdam"): return PathOptimizer(input_shape, model, lr) elif(name=="Adam"): return tf.keras.optimizers.Adam(lr) else: raise NotImplementedError class PathOptimizer(OPTIMIZER): """...
PypiClean
/plato-draw-1.12.0.tar.gz/plato-draw-1.12.0/doc/source/troubleshooting.rst
======================= Troubleshooting and FAQ ======================= .. note:: Depending on which backends you want to use, there may be additional steps required for installation; consult the advice `here <https://bitbucket.org/snippets/glotzer/nMg8Gr/plato-dependency-installation-tips>`_. Jupyter No...
PypiClean
/theogravity_pulumi-fusionauth-3.0.5.tar.gz/theogravity_pulumi-fusionauth-3.0.5/theogravity_pulumi-fusionauth/fusion_auth_idp_open_id_connect.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__ = ['FusionAuthIdpOpenIdConnectArgs', 'FusionAuthIdpOpenIdConnect'] @pulumi.input_type class FusionAuthIdpO...
PypiClean
/ship_messenger_server-0.8.7.tar.gz/ship_messenger_server-0.8.7/packets/server/add_user.py
from PyQt5.QtWidgets import QDialog, QPushButton, QLineEdit, QApplication, \ QLabel, QMessageBox from PyQt5.QtCore import Qt import hashlib import binascii class RegisterUser(QDialog): """ Класс диалог регистрации пользователя на сервере. """ def __init__(self, database, server): super().__init__...
PypiClean
/yt-dlp-cp-2.9.9.tar.gz/yt-dlp-cp-2.9.9/yt_dlp/extractor/netverse.py
import itertools from .common import InfoExtractor, SearchInfoExtractor from .dailymotion import DailymotionIE from ..utils import smuggle_url, traverse_obj class NetverseBaseIE(InfoExtractor): _ENDPOINTS = { 'watch': 'watchvideo', 'video': 'watchvideo', 'webseries': 'webseries', ...
PypiClean
/bpy_cuda-2.82-cp37-cp37m-win_amd64.whl/bpy_cuda-2.82.data/scripts/2.82/scripts/addons/system_blend_info.py
bl_info = { "name": "Scene Information", "author": "uselessdreamer", "version": (0, 3, 1), "blender": (2, 80, 0), "location": "Properties > Scene > Blend Info Panel", "description": "Show information about the .blend", "warning": "", "wiki_url": "https://docs.blender.org/manual/en/dev/a...
PypiClean
/ecreall_daceui-1.0.4.tar.gz/ecreall_daceui-1.0.4/daceui/static/flot/jquery.colorhelpers.js
(function($) { $.color = {}; // construct color object with some convenient chainable helpers $.color.make = function (r, g, b, a) { var o = {}; o.r = r || 0; o.g = g || 0; o.b = b || 0; o.a = a != null ? a : 1; o.add = function (c, d) { for (var...
PypiClean
/DeepGProp-1.0.8-py3-none-any.whl/dgp/ga_optimizer/toolbox.py
import random import time from os import environ from typing import Callable, Tuple, Union import numpy as np from deap import base, creator, tools from sklearn.metrics import accuracy_score, fbeta_score from dgp.dgp_logger import DGPLOGGER from dgp.ga_optimizer.types import Layer, MLPIndividual from dgp.utils impo...
PypiClean
/tencentcloud-python-sdk-3.0.960.tar.gz/tencentcloud-python-sdk-3.0.960/tencentcloud/faceid/v20180301/models.py
import warnings from tencentcloud.common.abstract_model import AbstractModel class BankCard2EVerificationRequest(AbstractModel): """BankCard2EVerification请求参数结构体 """ def __init__(self): r""" :param _Name: 姓名 :type Name: str :param _BankCard: 银行卡 :type BankCard: ...
PypiClean
/zelos-demeter-0.2.1.tar.gz/zelos-demeter-0.2.1/demeter/uniswap/liquitidy_math.py
from decimal import Decimal # -*- coding: utf-8 -*- """ !!! IMPORTANT this module is developed and enhanced from active-strategy-framework of GammaStrategies source code: https://github.com/GammaStrategies/active-strategy-framework/blob/main/UNI_v3_funcs.py Original author information: ============================...
PypiClean
/classla-2.1.tar.gz/classla-2.1/README.md
# A [CLASSLA](http://www.clarin.si/info/k-centre/) Fork of [Stanza](https://github.com/stanfordnlp/stanza) for Processing Slovenian, Croatian, Serbian, Macedonian and Bulgarian ## Description This pipeline allows for processing of standard Slovenian, Croatian, Serbian and Bulgarian on the levels of - tokenization an...
PypiClean
/baiduads-sdk-auto-snapshot-2022.2.1.5.tar.gz/baiduads-sdk-auto-snapshot-2022.2.1.5/baiduads/rtafeed/model/update_rta_setting_request_wrapper.py
import re # noqa: F401 import sys # noqa: F401 from baiduads.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, ModelSimple, cached_property, change_keys_js_to_python, convert_js_args_to_python_args, date, datetime, file_type, none_type, valid...
PypiClean
/alipay-sdk-python-pycryptodome-3.3.202.tar.gz/alipay-sdk-python-pycryptodome-3.3.202/alipay/aop/api/domain/SceneExtParam.py
import json from alipay.aop.api.constant.ParamConstants import * class SceneExtParam(object): def __init__(self): self._apply_reason = None self._contract_no = None self._discountamt = None self._firstpayamt = None self._interestrate = None self._lastpayamt = None...
PypiClean
/nni_upload_test-0.7.1904290925-py3-none-win_amd64.whl/nni_upload_test-0.7.1904290925.data/data/nni/node_modules/node-forge/lib/task.js
var forge = require('./forge'); require('./debug'); require('./log'); require('./util'); // logging category var cat = 'forge.task'; // verbose level // 0: off, 1: a little, 2: a whole lot // Verbose debug logging is surrounded by a level check to avoid the // performance issues with even calling the logging code reg...
PypiClean
/trans_video_data-0.13.tar.gz/trans_video_data-0.13/db-controllers/db_crud_pb2_grpc.py
"""Client and server classes corresponding to protobuf-defined services.""" import grpc import db_crud_pb2 as db__crud__pb2 class DataServiceStub(object): """Missing associated documentation comment in .proto file.""" def __init__(self, channel): """Constructor. Args: channel: A...
PypiClean
/GRR-M2Crypto-0.22.6.tar.gz/GRR-M2Crypto-0.22.6/M2Crypto/EC.py
import util, BIO, m2 class ECError(Exception): pass m2.ec_init(ECError) # Curve identifier constants NID_secp112r1 = m2.NID_secp112r1 NID_secp112r2 = m2.NID_secp112r2 NID_secp128r1 = m2.NID_secp128r1 NID_secp128r2 = m2.NID_secp128r2 NID_secp160k1 = m2.NID_secp160k1 NID_secp160r1 = m2.NID_secp160r1 NID_secp160r2 = m2...
PypiClean
/tren-1.239.tar.gz/tren-1.239/tren.py
# Program Information PROGNAME = "tren.py" BASENAME = PROGNAME.split(".py")[0] PROGENV = BASENAME.upper() INCLENV = PROGENV + "INCL" RCSID = "$Id: tren.py,v 1.239 2010/10/07 17:34:23 tundra Exp $" VERSION = RCSID.split()[2] # Copyright Information CPRT = "(c)" DATE = "2010" OWNER = "TundraW...
PypiClean
/coconut-3.0.3.tar.gz/coconut-3.0.3/HELP.md
# Coconut Tutorial ```{contents} --- local: --- ``` ## Introduction Welcome to the tutorial for the [Coconut Programming Language](http://evhub.github.io/coconut/)! Coconut is a variant of [Python](https://www.python.org/) built for **simple, elegant, Pythonic functional programming**. But those are just words; what...
PypiClean
/drf_shop_api-0.0.3-py3-none-any.whl/drf_shop_api/orders/models.py
from django.conf import settings from django.core.validators import MinValueValidator from django.db import models from drf_shop_api.abstract_models import OwnershipMultipleModel, TimeStampedModel from drf_shop_api.orders.constants import OrderStatus, PaymentStatus, ShipmentStatus from drf_shop_api.products.models imp...
PypiClean
/Findex_GUI-0.2.18-py3-none-any.whl/findex_gui/static/js/findex/findex_core.js
$('#help').css('display', 'none'); function endsWith(str, suffix) { return str.indexOf(suffix, str.length - suffix.length) !== -1; } function historyBack(){ history.back() } function file_icons(){ var file_icons = { "bluray": "" } } function errorBox(errors){ var text = ''; for(var...
PypiClean
/boot-synth-1.2.0.tar.gz/boot-synth-1.2.0/synth/projects_master/nginx_router/frontend/react/node_modules/workbox-build/node_modules/fs-extra/lib/move/index.js
'use strict' // most of this code was written by Andrew Kelley // licensed under the BSD license: see // https://github.com/andrewrk/node-mv/blob/master/package.json // this needs a cleanup const u = require('universalify').fromCallback const fs = require('graceful-fs') const ncp = require('../copy/ncp') const path ...
PypiClean
/bertserini_on_telegram-1.2.tar.gz/bertserini_on_telegram-1.2/bertserini_on_telegram/utils/base.py
from typing import List, Union, Optional, Mapping, Any import abc __all__ = ['Question', 'Context', 'Reader', 'Answer', 'TextType'] TextType = Union['Question', 'Context', 'Answer'] class Question: """ A wrapper around a question text. Can contain other metadata. Args: text (str): The ques...
PypiClean
/Wryten-1.42.10-py3-none-any.whl/suplemon/main.py
import os import sys from . import ui from . import module_loader from . import themes from . import helpers from .file import File from .logger import logger from .config import Config from .editor import Editor __version__ = "1.42.10" class App: def __init__(self, filenames=None, config_file=None): "...
PypiClean
/Django-Template-Preprocess-1.0.2.tar.gz/Django-Template-Preprocess-1.0.2/template_preprocess/test/extend_block.py
from django.test import TestCase from django.test.utils import override_settings from template_preprocess.processor import process_template_content from template_preprocess.test import get_test_template_settings template_settings = get_test_template_settings() @override_settings(**template_settings) class TestExten...
PypiClean
/robinhood_commons-1.0.44.tar.gz/robinhood_commons-1.0.44/robinhood_commons/entity/option.py
from copy import deepcopy from dataclasses import dataclass from datetime import datetime from typing import Any, Dict, Optional from robinhood_commons.entity.option_type import OptionType from robinhood_commons.entity.state import State from robinhood_commons.entity.tick import Tick, clean_tick from robinhood_commons...
PypiClean
/PyOpenGL-3.1.7-py3-none-any.whl/OpenGL/GL/EXT/separate_shader_objects.py
from OpenGL import platform, constant, arrays from OpenGL import extensions, wrapper import ctypes from OpenGL.raw.GL import _types, _glgets from OpenGL.raw.GL.EXT.separate_shader_objects import * from OpenGL.raw.GL.EXT.separate_shader_objects import _EXTENSION_NAME def glInitSeparateShaderObjectsEXT(): '''Return ...
PypiClean
/featureform-enterprise-0.10.3.tar.gz/featureform-enterprise-0.10.3/src/featureform/dashboard/out/_next/static/chunks/react-syntax-highlighter_languages_refractor_racket.bee31c56faa733b2.js
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4213,5085],{32168:function(a,b,c){var d=c(9997);function e(a){a.register(d),a.languages.racket=a.languages.extend("scheme",{"lambda-parameter":{pattern:/([(\[]lambda\s+[(\[])[^()\[\]'\s]+/,lookbehind:!0}}),a.languages.insertBefore("racket","string",{...
PypiClean
/imerit_ango-1.2.3-py3-none-any.whl/imerit_ango/plugins.py
import datetime import logging import os import time from io import BytesIO from typing import Callable, Tuple import queue from urllib.parse import urlparse import requests import socketio from apscheduler.schedulers.background import BackgroundScheduler from imerit_ango.plugin_logger import PluginLogger from imerit...
PypiClean
/DeCAF-2.0.0.tar.gz/DeCAF-2.0.0/decaf/toolkits/ob.py
"""OpenBabel toolkit for DeCAF""" from decaf import PHARS, Pharmacophore import pybel import openbabel as ob import numpy as np from collections import deque import math PATTERNS = {phar: pybel.Smarts(smarts) for (phar, smarts) in PHARS.items()} def __count_bonds(a1, a2, exclude): """Count number of bonds betw...
PypiClean
/py_lav-1.12.1.tar.gz/py_lav-1.12.1/pylav/storage/migrations/low_level/v_1_0_0.py
from __future__ import annotations import contextlib from collections import defaultdict from typing import TYPE_CHECKING import asyncpg from asyncpg import Connection from dacite import from_dict from packaging.version import parse from pylav.compat import json from pylav.constants.playlists import BUNDLED_PLAYLIST...
PypiClean
/injective_py-0.8rc0-py3-none-any.whl/pyinjective/proto/cosmos/autocli/v1/query_pb2_grpc.py
"""Client and server classes corresponding to protobuf-defined services.""" import grpc from cosmos.autocli.v1 import query_pb2 as cosmos_dot_autocli_dot_v1_dot_query__pb2 class QueryStub(object): """RemoteInfoService provides clients with the information they need to build dynamically CLI clients for remote...
PypiClean
/qpid-python-1.36.0.tar.gz/qpid-python-1.36.0/qpid/messaging/driver.py
import socket, struct, sys, time from logging import getLogger, DEBUG from qpid import compat from qpid import sasl from qpid.concurrency import synchronized from qpid.datatypes import RangedSet, Serial from qpid.framing import OpEncoder, SegmentEncoder, FrameEncoder, \ FrameDecoder, SegmentDecoder, OpDecoder from...
PypiClean
/langchain_xfyun-0.0.275b2-py3-none-any.whl/langchain_xfyun/document_loaders/sitemap.py
import itertools import re from typing import Any, Callable, Generator, Iterable, List, Optional from langchain_xfyun.document_loaders.web_base import WebBaseLoader from langchain_xfyun.schema import Document def _default_parsing_function(content: Any) -> str: return str(content.get_text()) def _default_meta_f...
PypiClean
/msgraph_beta_sdk-1.0.0a9-py3-none-any.whl/msgraph/generated/device_management/managed_devices/item/shut_down/shut_down_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
/niconico.py-1.2.4-py3-none-any.whl/niconico/base.py
from __future__ import annotations from typing import TYPE_CHECKING, Generic, TypeVar, Type, Optional if TYPE_CHECKING: from .niconico import NicoNico __all__ = ("DictFromAttribute", "BaseClient") SuperT = TypeVar("SuperT") class DictFromAttribute(Generic[SuperT]): """辞書を属性からアクセスできるようにするものです。 属性からアクセ...
PypiClean
/genpipes-suite-0.0a0.tar.gz/genpipes-suite-0.0a0/genpipes/bfx/picard2.py
# Python Standard Modules import re # MUGQIC Modules from ..core.config import global_conf from ..core.job import Job from . import picard from . import gatk4 def build_bam_index(input, output): if global_conf.get('build_bam_index', 'module_picard').split("/")[2] < "2": return picard.build_bam_index(inp...
PypiClean
/virtual_assistant_generator-0.1.0-py3-none-any.whl/va_generator/back_end/node_modules/@types/node/worker_threads.d.ts
declare module "worker_threads" { import { Context } from "vm"; import { EventEmitter } from "events"; import { Readable, Writable } from "stream"; const isMainThread: boolean; const parentPort: null | MessagePort; const threadId: number; const workerData: any; class MessageChannel { ...
PypiClean
/client-library-for-chaos-mesh-1.2.14.tar.gz/client-library-for-chaos-mesh-1.2.14/chaosmesh/experiments/base/k8s/stress/cpu.py
from abc import ABC from dataclasses import asdict from chaosmesh.experiments.base.k8s.stress import StressTest from chaosmesh.k8s.selector import Selector class BasePodStressCPUExperiment(StressTest, ABC): """ BasePodStressCPUExperiment is a class that implements the abstract base class StressTest and is us...
PypiClean
/react-frontend-20230406083236.tar.gz/react-frontend-20230406083236/react_frontend/f67ce0a0.js
"use strict";(self.webpackChunkreact_frontend=self.webpackChunkreact_frontend||[]).push([[1480],{81480:function(e,t,n){function r(e,t,n){return(t=d(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super...
PypiClean
/seaborn_image-0.7.0-py3-none-any.whl/seaborn_image/_grid.py
import itertools import warnings from typing import Iterable import matplotlib.pyplot as plt import numpy as np from copy import copy from ._filters import filterplot from ._general import imgplot from .utils import despine __all__ = ["ParamGrid", "ImageGrid", "rgbplot", "FilterGrid"] class ImageGrid: """ ...
PypiClean
/ressources/lib/node_modules/highcharts/modules/series-label.src.js
'use strict'; (function (factory) { if (typeof module === 'object' && module.exports) { module.exports = factory; } else if (typeof define === 'function' && define.amd) { define(function () { return factory; }); } else { factory(Highcharts); } }(function (Highcharts) { (function (H) { /** * (c) 200...
PypiClean
/CLAchievements-0.1.0.tar.gz/CLAchievements-0.1.0/clachievements/reset/__main__.py
# Command Line Achievements # Copyright 2016 Louis Paternault # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # Thi...
PypiClean
/plaid-python-15.5.0.tar.gz/plaid-python-15.5.0/plaid/model/liabilities_get_request.py
import re # noqa: F401 import sys # noqa: F401 from plaid.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, validate...
PypiClean
/caisson-0.0.4.tar.gz/caisson-0.0.4/README.rst
`caisson`: The Recursive Decompressor ===================================== Extract all compressed files recursively using external decompressors found in the system. Installation ------------ .. code-block:: shell $ pip3 install caisson Usage ----- .. code-block:: $ caisson --help usage: caisson [-h]...
PypiClean
/Django-4.2.4.tar.gz/Django-4.2.4/django/contrib/postgres/aggregates/general.py
import json import warnings from django.contrib.postgres.fields import ArrayField from django.db.models import Aggregate, BooleanField, JSONField, TextField, Value from django.utils.deprecation import RemovedInDjango50Warning, RemovedInDjango51Warning from .mixins import OrderableAggMixin __all__ = [ "ArrayAgg",...
PypiClean
/fds.sdk.NewsAPIforDigitalPortals-0.10.9-py3-none-any.whl/fds/sdk/NewsAPIforDigitalPortals/model/inline_response2009_data.py
import re # noqa: F401 import sys # noqa: F401 from fds.sdk.NewsAPIforDigitalPortals.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, ...
PypiClean
/flask-hsrpc-0.2.0.tar.gz/flask-hsrpc-0.2.0/flask_hsrpc/consul.py
from consul import Consul as BaseConsul from consul.base import CB, Check from uuid import uuid4 as uuid import random import json import os def _is_node_health(node): checks = node["Checks"] return len(list(filter(lambda c: c["Status"] != "passing", checks))) == 0 def random_balance(health_nodes): retu...
PypiClean
/mmdet_taeuk4958-1.0.9-py3-none-any.whl/mmdet_taeuk4958/datasets/pipelines/formatting.py
from collections.abc import Sequence import mmcv import numpy as np import torch from mmcv.parallel import DataContainer as DC from ..builder import PIPELINES def to_tensor(data): """Convert objects of various python types to :obj:`torch.Tensor`. Supported types are: :class:`numpy.ndarray`, :class:`torch.T...
PypiClean
/musma_ray-1.0.0.2-py3-none-any.whl/release/ray_release/result.py
import enum from dataclasses import dataclass from typing import Optional, Dict, Tuple @dataclass class Result: results: Optional[Dict] = None status: str = "invalid" return_code: int = 0 last_logs: Optional[str] = None runtime: Optional[float] = None stable: bool = True buildkite_url: ...
PypiClean
/django-simple-permissions-0.7.0.tar.gz/django-simple-permissions-0.7.0/src/simple_permissions/utils/logics.py
from simple_permissions.logics import PermissionLogic from simple_permissions.utils.filters import add_permission_filter def add_permission_logic(model, permission_logic): """ Add permission logic to the model Parameters ---------- model : django model class A django model class which wil...
PypiClean
/parsec_cloud-2.16.0rc2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/parsec/core/fs/remote_loader.py
from __future__ import annotations import math from contextlib import contextmanager from typing import TYPE_CHECKING, Awaitable, Callable, Iterable, Iterator import trio from trio import MemoryReceiveChannel, MemorySendChannel, open_memory_channel from parsec import FEATURE_FLAGS from parsec._parsec import Authenti...
PypiClean
/certora-cli-alpha-mike-migration-script-20230516.16.51.788505.tar.gz/certora-cli-alpha-mike-migration-script-20230516.16.51.788505/certora_cli/EVMVerifier/certoraNodeFilters.py
from typing import Any, Dict import os import sys sys.path.insert(0, os.path.dirname(os.path.abspath(__file__))) from Shared.certoraUtils import NoValEnum class NodeFilters: class NodeType(NoValEnum): def is_this_node_type(self, type_name_node: Dict[str, Any]) -> bool: return type_name_node...
PypiClean
/fasttest-1.0.0.tar.gz/fasttest-1.0.0/README.md
`fasttest` 在`macaca`、`appium`、`selenium`的基础上做了一层关键字的封装与解析,通过`yaml`编写自动化用例,即使无代码基础的同学也已可以很快上手自动化测试 ![](https://img.shields.io/badge/python-3.7-green) #### 我能做什么 - 支持`IDEA`关键字联想输入,在`yaml`文件上写用例像写代码一样舒畅 - 支持实时`debug`用例步骤,无需重复运行验证 - 支持现有关键字组合、自定义关键字,拥有无限扩展性 - 支持`PO`模式、支持`iOS`、`Android`两端共用一份用例 - 支持`if`、`while`、`for`等语法用...
PypiClean
/openlmi-0.4.1.tar.gz/openlmi-0.4.1/lmi/providers/TimerManager.py
import ctypes import threading import Queue from lmi.base import singletonmixin from lmi.providers import cmpi_logging LOG = cmpi_logging.get_logger(__name__) class TimerException(Exception): pass class MonotonicClock(object): """ Monotonic clock, represented by clock_gettime() and CLOCK_MONOTONIC. ...
PypiClean
/ONEmSDK-0.8.0.tar.gz/ONEmSDK-0.8.0/HISTORY.md
# History --- ## 0.8.0 - JSON Schema & Python API: - make `FormItem.description` optional - Rename `FormItem.confirmation_needed` to `FormItem.skip_confirmation`, which says the opposite and defaults to `false` - Add `FormItem.pattern` attribute - Add `FormItemType.regex` (used only with not null `Form...
PypiClean
/apache-superset-johan078-0.35.2-patch8277.tar.gz/apache-superset-johan078-0.35.2/superset/migrations/versions/fb13d49b72f9_better_filters.py
import json import logging from alembic import op from sqlalchemy import Column, Integer, String, Text from sqlalchemy.ext.declarative import declarative_base from superset import db # revision identifiers, used by Alembic. revision = "fb13d49b72f9" down_revision = "de021a1ca60d" Base = declarative_base() class S...
PypiClean
/music_assistant-2.0.0b5.tar.gz/music_assistant-2.0.0b5/music_assistant/server/providers/url/__init__.py
from __future__ import annotations import os from collections.abc import AsyncGenerator from music_assistant.common.models.enums import ContentType, ImageType, MediaType from music_assistant.common.models.media_items import ( Artist, MediaItemImage, MediaItemType, ProviderMapping, Radio, Strea...
PypiClean
/EOxServer-1.2.12-py3-none-any.whl/eoxserver/services/ows/wps/processes/get_dem_processing.py
from uuid import uuid4 import json import numpy as np from eoxserver.core import Component import eoxserver.render.browse.functions as functions from eoxserver.contrib import gdal from eoxserver.contrib.vsi import open as vsi_open from eoxserver.services.ows.wps.parameters import ( LiteralData, ComplexData, For...
PypiClean
/XStatic-DataTables-1.10.15.1.tar.gz/XStatic-DataTables-1.10.15.1/xstatic/pkg/datatables/data/js/dataTables.foundation.js
* DataTables integration for Foundation. This requires Foundation 5 and * DataTables 1.10 or newer. * * This file sets the defaults and adds options to DataTables to style its * controls using Foundation. See http://datatables.net/manual/styling/foundation * for further information. */ (function( factory ){ if ...
PypiClean
/intel_tensorflow_avx512-2.13.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/tensorflow/python/ops/histogram_ops.py
from tensorflow.python.framework import dtypes from tensorflow.python.framework import ops from tensorflow.python.ops import array_ops from tensorflow.python.ops import clip_ops from tensorflow.python.ops import control_flow_assert from tensorflow.python.ops import control_flow_ops from tensorflow.python.ops import gen...
PypiClean
/klaviyo-sdk-beta-1.0.3.20220907.tar.gz/klaviyo-sdk-beta-1.0.3.20220907/src/openapi_client/model/included_variants_links.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
/pulumi_azure_native-2.5.1a1693590910.tar.gz/pulumi_azure_native-2.5.1a1693590910/pulumi_azure_native/graphservices/v20230413/get_account.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__ = [ 'GetAccountResult', 'AwaitableGetAccountResult', 'get_account', 'get_account_output', ] @pulumi.output_type...
PypiClean
/pandas_utility-0.1.4.tar.gz/pandas_utility-0.1.4/pandas_utility/pandas_utility.py
import numpy as np import pandas as pd class PandasUtilities: """Some useful functions for dealing with Pandas DataFrames """ __version__ = pd.__version__ @staticmethod def show_version(): return pd.show_versions() @staticmethod def create_random_df(rows, cols, cols_name=None):...
PypiClean
/dash_grocery-0.0.6.tar.gz/dash_grocery-0.0.6/dash_grocery/Masonry.py
from dash.development.base_component import Component, _explicitize_args class Masonry(Component): """A Masonry component. Wrapped from [react-masonry-component](https://github.com/eiriklv/react-masonry-component). Keyword arguments: - children (a list of or a singular dash component, string or number; optiona...
PypiClean
/Electrum-CHI-3.3.8.tar.gz/Electrum-CHI-3.3.8/packages/google/protobuf/wrappers_pb2.py
import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database # @@protoc_in...
PypiClean
/pvpcbill-1.0.0.tar.gz/pvpcbill-1.0.0/README.md
[![PyPi](https://pypip.in/v/pvpcbill/badge.svg)](https://pypi.org/project/pvpcbill/) [![Wheel](https://pypip.in/wheel/pvpcbill/badge.svg)](https://pypi.org/project/pvpcbill/) [![Travis Status](https://travis-ci.org/azogue/pvpcbill.svg?branch=master)](https://travis-ci.org/azogue/pvpcbill) [![codecov](https://codecov.io...
PypiClean
/Miscoto-3.1.2.tar.gz/Miscoto-3.1.2/miscoto/miscoto_mincom.py
# Copyright (C) 2018-2021 Clémence Frioux & Arnaud Belcour - Inria Dyliss - Pleiade # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option)...
PypiClean
/looking_glass-1.0.4-py3-none-any.whl/looking_glass/static/js/vis-4.21.0/lib/network/modules/components/nodes/shapes/Text.js
'use strict'; import NodeBase from '../util/NodeBase' /** * A text-based replacement for the default Node shape. * * @extends NodeBase */ class Text extends NodeBase { /** * @param {Object} options * @param {Object} body * @param {Label} labelModule */ constructor(options, body, labelModule) { ...
PypiClean
/customgpt_client-1.1.6.tar.gz/customgpt_client-1.1.6/customgpt_client/models/get_settings_response_401.py
from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar, Union import attr from ..models.get_settings_response_401_status import GetSettingsResponse401Status from ..types import UNSET, Unset if TYPE_CHECKING: from ..models.get_settings_response_401_data import GetSettingsResponse401Data T = TypeVar("T...
PypiClean
/mne-icalabel-0.4.tar.gz/mne-icalabel-0.4/mne_icalabel/features/topomap.py
from typing import Dict, Union import numpy as np from mne.channels.layout import _find_topomap_coords from mne.defaults import _BORDER_DEFAULT, _EXTRAPOLATE_DEFAULT, _INTERPOLATION_DEFAULT from mne.io import Info from mne.io.pick import _get_channel_types, _pick_data_channels, _picks_to_idx, pick_info from mne.prepro...
PypiClean
/fast_rl-1.0.1.tar.gz/fast_rl-1.0.1/fast_rl/core/Interpreter.py
import io from functools import partial from typing import List, Tuple, Dict import matplotlib.pyplot as plt import numpy as np import scipy.stats as st import torch from PIL import Image from fastai.train import Interpretation, DatasetType, copy from gym.spaces import Box from itertools import product from matplotlib...
PypiClean
/streamlit-code-editor-0.1.10.tar.gz/streamlit-code-editor-0.1.10/code_editor/frontend/build/2c3161ab5238bbc74841c24d33a784a0.js
ace.define("ace/mode/terraform_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],(function(e,t,r){"use strict";var n=e("../lib/oop"),o=e("./text_highlight_rules").TextHighlightRules,i=function(){this.$rules={start:[{token:["storage.function.terraform"],regex:"\\b(output|resou...
PypiClean
/refinitiv-dataplatform-1.0.0a15.tar.gz/refinitiv-dataplatform-1.0.0a15/refinitiv/dataplatform/legacy/tools.py
import json from datetime import date, datetime, timedelta from typing import Union, Tuple import dateutil.parser from dateutil import tz __all__ = [ "get_default_session", "set_default_session", "close_session", "set_app_key", "set_log_level", ] def is_string_type(value): try: retur...
PypiClean
/psat-server-web-0.1.9.tar.gz/psat-server-web-0.1.9/psat_server_web/atlas/atlas/urls.py
from django.urls import re_path as url from django.urls import path, include from django.contrib import admin from atlas import views from django.conf import settings from django.conf.urls.static import static admin.autodiscover() urlpatterns = [ # 2016-02-24 KWS Introduced the Django Admin URL path('admin/'...
PypiClean
/alipay-python-3.3.17.tar.gz/alipay-python-3.3.17/alipay/aop/api/domain/AlipayMarketingCampaignDiscountOperateModel.py
import json from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.DiscountDstCampPrizeModel import DiscountDstCampPrizeModel from alipay.aop.api.domain.DstCampRuleModel import DstCampRuleModel from alipay.aop.api.domain.DateAreaModel import DateAreaModel from alipay.aop.api.domain.RandomDisco...
PypiClean
/increc-0.0.16.tar.gz/increc-0.0.16/algorithms/collaborative_filtering/matrix_factorization/explicit_feedback/matrix_factorization_prep.py
from algorithms.collaborative_filtering.matrix_factorization import SGD from .preprocess_matrix import PreprocessMatrix class MFExplicitPrepSGD(PreprocessMatrix, SGD): """ Description The explicit matrix factorization algorithm with matrix preprocessing and stochastic gradient descent ...
PypiClean
/circuitpython-ticstepper-2.0.3.tar.gz/circuitpython-ticstepper-2.0.3/circuitpython_ticstepper/i2c.py
import struct from micropython import const from adafruit_bus_device.i2c_device import I2CDevice from adafruit_register.i2c_struct import Struct from circuitpython_ticstepper import TicMotor from circuitpython_ticstepper.constants import StepMode, OperationMode try: from typing import Optional, Type, List from...
PypiClean
/future-nodefix-0.17.0.tar.gz/future-nodefix-0.17.0/src/past/builtins/misc.py
from __future__ import unicode_literals import sys import inspect from collections import Mapping from future.utils import PY3, exec_ if PY3: import builtins def apply(f, *args, **kw): return f(*args, **kw) from past.builtins import str as oldstr def chr(i): """ Return a by...
PypiClean
/cupy_cuda111-12.2.0-cp39-cp39-manylinux2014_x86_64.whl/cupy/_creation/matrix.py
import numpy import cupy from cupy import _core def diag(v, k=0): """Returns a diagonal or a diagonal array. Args: v (array-like): Array or array-like object. k (int): Index of diagonals. Zero indicates the main diagonal, a positive value an upper diagonal, and a negative value a...
PypiClean
/reportlab_x-3.4.0.2-cp34-cp34m-macosx_10_10_x86_64.whl/reportlab/pdfbase/_fontdata_enc_zapfdingbats.py
ZapfDingbatsEncoding = ( None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, 'space', 'a1', 'a2', 'a202', 'a3', 'a4', 'a5', 'a119', 'a118'...
PypiClean
/django-url-sso-0.9.tar.gz/django-url-sso-0.9/url_sso/utils.py
from django.conf import settings as django_settings from django.utils.importlib import import_module from django.core.cache import cache from suds.cache import Cache class Singleton(type): """ Singleton metaclass. Source: http://stackoverflow.com/questions/6760685/creating-a-singleton-in-python ...
PypiClean
/box_embeddings-0.1.0.tar.gz/box_embeddings-0.1.0/box_embeddings/initializations/uniform_boxes.py
from typing import List, Tuple import numpy as np import torch from box_embeddings.parameterizations.box_tensor import BoxFactory, BoxTensor from .initializer import BoxInitializer def uniform_boxes( dimensions: int, num_boxes: int, minimum: float = 0.0, maximum: float = 1.0, delta_min: float = 0....
PypiClean