id
stringlengths
1
8
text
stringlengths
6
1.05M
dataset_id
stringclasses
1 value
/lizard-ui-5.3.tar.gz/lizard-ui-5.3/lizard_ui/static/openlayers/1.12-r7/lib/OpenLayers/Format/ArcXML.js
* @requires OpenLayers/Format/XML.js * @requires OpenLayers/Geometry/Polygon.js * @requires OpenLayers/Geometry/Point.js * @requires OpenLayers/Geometry/MultiPolygon.js * @requires OpenLayers/Geometry/LinearRing.js */ /** * Class: OpenLayers.Format.ArcXML * Read/Wite ArcXML. Create a new instance with the <Ope...
PypiClean
/llm_toys-0.1.1-py3-none-any.whl/llm_toys/hf/transformers/models/t5/tokenization_t5.py
import os import re import warnings from shutil import copyfile from typing import TYPE_CHECKING, Any, Dict, List, Optional, Tuple import sentencepiece as spm from ...tokenization_utils import PreTrainedTokenizer if TYPE_CHECKING: from ...tokenization_utils_base import TextInput from ...utils import logging l...
PypiClean
/zcc-helper-3.2rc1.tar.gz/zcc-helper-3.2rc1/README.md
# ZCC-HELPER The ZIMI library is a basic python API and command line tool that supports the zimi Cloud Connect device to manage Powermesh home network equipment. ## Installation You can install zimi from PyPi: ``` pip install zcc-helper ``` The module is only supported in python3. ## How to use The module can be...
PypiClean
/hnzhu010506-0.0.1-py3-none-any.whl/setuptools/_distutils/file_util.py
import os from distutils.errors import DistutilsFileError from distutils import log # for generating verbose output in 'copy_file()' _copy_action = { None: 'copying', 'hard': 'hard linking', 'sym': 'symbolically linking' } def _copy_file_contents(src, dst, buffer_size=16*1024): ...
PypiClean
/pysnmp-bw-5.0.3.tar.gz/pysnmp-bw-5.0.3/docs/source/examples/hlapi/v3arch/asyncore/sync/agent/ntforg/common-notifications.rst
.. toctree:: :maxdepth: 2 Common notifications -------------------- .. include:: /../../examples/hlapi/v3arch/asyncore/sync/agent/ntforg/v2c-trap-with-notification-objects.py :start-after: """ :end-before: """# .. literalinclude:: /../../examples/hlapi/v3arch/asyncore/sync/agent/ntforg/v2c-trap-with-notific...
PypiClean
/inte_edc-0.1.74-py3-none-any.whl/inte_screening/forms/daily_closing_log_form.py
from django import forms from django.conf import settings from django.core.exceptions import ObjectDoesNotExist from edc_utils import convert_php_dateformat from inte_prn.icc_registered import ( InterventionSiteNotRegistered, is_icc_registered_site, ) from inte_prn.models import IntegratedCareClinicRegistratio...
PypiClean
/pou-shap-0.41.0.tar.gz/pou-shap-0.41.0/shap/benchmark/models.py
import numpy as np import sklearn import sklearn.ensemble from sklearn.preprocessing import StandardScaler class KerasWrap: """ A wrapper that allows us to set parameters in the constructor and do a reset before fitting. """ def __init__(self, model, epochs, flatten_output=False): self.model = mod...
PypiClean
/pulumi_aws-6.1.0a1693529760.tar.gz/pulumi_aws-6.1.0a1693529760/pulumi_aws/autoscaling/traffic_source_attachment.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__ = ['TrafficSourceAttachmentArgs', 'TrafficSourceAttachment'] @pulumi.input_type class TrafficSourceAttach...
PypiClean
/pyramid_bootstrap-4.1.0.tar.gz/pyramid_bootstrap-4.1.0/pyramid_bootstrap/library.py
from copy import deepcopy from .spec import ASSET_SPECS class LibraryFactory(object): """ Design: * Each library version has its own Library class. * Static assets of each library are prepared in build process. """ libraries = [] @classmethod def build(clso, library, version, use_...
PypiClean
/calibration-belt-0.1.41.tar.gz/calibration-belt-0.1.41/calibration.py
__author__ = "Lucas Bulgarelli <lucas1@mit.edu>" __version__ = "0.1.41" import numpy as np from tqdm import tqdm from textwrap import dedent import matplotlib.pyplot as plt from scipy.stats import chi2 from scipy.special import logit, xlogy, expit from scipy.integrate import quad as integrate from scipy.optimize impo...
PypiClean
/py-seed-0.3.0.tar.gz/py-seed-0.3.0/README.rst
Py-SEED ======= .. image:: https://github.com/seed-platform/py-seed/actions/workflows/ci.yml/badge.svg?branch=develop :target: https://github.com/seed-platform/py-seed/actions/workflows/ci.yml/badge.svg .. image:: https://badge.fury.io/py/py-seed.svg :target: https://pypi.python.org/pypi/py-seed/ A python AP...
PypiClean
/argrelay-0.2.0.tar.gz/argrelay-0.2.0/docs/dev_notes/term_dictionary.md
TODO: reformat, sort, populate, link to `feature_story`-ies. * token: substring of command line (split by one or more delimiter chars), see usage of `SpecialChar`. * argument = arg: one or more command line token interpreted as a function argument, see usage of `TokenType`. * curr, prev, next: current, previous...
PypiClean
/PPlus-0.5.2.tar.gz/PPlus-0.5.2/doc/installation.rst
.. _installation: Installation ============ ``PPlus`` is available on `PyPI <http://pypi.python.org/pypi/PPlus>`_ and may be easily installed using standard python setup tools like `pip <http://www.pip-installer.org/>`_. .. or .. `easy_install <http://packages.python.org/distribute/easy_install.html>`_. Anyway, we r...
PypiClean
/fern_proficient-0.0.1-py3-none-any.whl/proficient/types/integration_type.py
import enum import typing T_Result = typing.TypeVar("T_Result") class IntegrationType(str, enum.Enum): """ An enumeration. """ SLACK = "SLACK" EMAIL = "EMAIL" DATADOG = "DATADOG" WEBHOOK = "WEBHOOK" JIRA = "JIRA" DATAHUB = "DATAHUB" PAGERDUTY = "PAGERDUTY" SEEMPLICITY = ...
PypiClean
/tw.dojo-0.9.181.tar.gz/tw.dojo-0.9.181/tw/dojo/static/1.8.1/debug/dojox/gfx/svg_attach.js
define("dojox/gfx/svg_attach", ["dojo/_base/kernel", "dojo/_base/lang", "dojo/_base/array","dojo/_base/Color", "./_base","./svg","./matrix"], function(kernel, lang, arr, Color, g, svg, Matrix){ kernel.experimental("dojox.gfx.svg_attach"); svg.attachNode = function(node){ // summary: // creates a shape from...
PypiClean
/alfredcmd-0.1.7.tar.gz/alfredcmd-0.1.7/CONTRIBUTING.rst
.. highlight:: shell ============ Contributing ============ Contributions are welcome, and they are greatly appreciated! Every little bit helps, and credit will always be given. You can contribute in many ways: Types of Contributions ---------------------- Report Bugs ~~~~~~~~~~~ Report bugs at https://github.com...
PypiClean
/django-dojo-0.0.1.tar.gz/django-dojo-0.0.1/dojo/static/dojo/dojox/grid/_FocusManager.js
define([ "dojo/_base/array", "dojo/_base/lang", "dojo/_base/declare", "dojo/_base/connect", "dojo/_base/event", "dojo/_base/sniff", "dojo/query", "./util", "dojo/_base/html" ], function(array, lang, declare, connect, event, has, query, util, html){ // focus management return declare("dojox.grid._FocusManager"...
PypiClean
/vyper-0.3.9.tar.gz/vyper-0.3.9/docs/installing-vyper.rst
Installing Vyper ################ Take a deep breath, follow the instructions, and please `create an issue <https://github.com/vyperlang/vyper/issues>`_ if you encounter any errors. .. note:: The easiest way to experiment with the language is to use the `Remix online compiler <https://remix.ethereum.org>`_. ...
PypiClean
/c_lancet-0.0.1.tar.gz/c_lancet-0.0.1/c_lancet/func.py
from .utils import * class CFunc: def __init__(self, *, src = None) -> None: self.name = None self.para = None self.type = None self.src = src if self.src: self.func_sig() def set_src(self, src: str): self.src = src if src: self...
PypiClean
/volume_segmantics_vsui-0.3.6.tar.gz/volume_segmantics_vsui-0.3.6/README.md
# Volume Segmantics A toolkit for semantic segmentation of volumetric data using PyTorch deep learning models. [![DOI](https://joss.theoj.org/papers/10.21105/joss.04691/status.svg)](https://doi.org/10.21105/joss.04691) ![example workflow](https://github.com/DiamondLightSource/volume-segmantics/actions/workflows/tests...
PypiClean
/databricks_rocket-2.0.0-py3-none-any.whl/rocket/rocket.py
import os from typing import Optional import fire from rocket.file_watcher import FileWatcher from rocket.logger import logger from rocket.utils import ( execute_shell_command, extract_python_package_dirs, extract_python_files_from_folder, execute_for_each_multithreaded, ) class Rocket: """Entry...
PypiClean
/examples/widgets/itemviews/editabletreemodel/mainwindow.py
import sys from pathlib import Path from PySide6.QtCore import (QAbstractItemModel, QItemSelectionModel, QModelIndex, Qt, Slot) from PySide6.QtWidgets import (QAbstractItemView, QMainWindow, QTreeView, QWidget) from PySide6.QtTest import QAbstractItemModelTes...
PypiClean
/ansible-kkvesper-2.3.2.0.tar.gz/ansible-kkvesper-2.3.2.0/lib/ansible/modules/packaging/language/easy_install.py
# (c) 2012, Matt Wright <matt@nobien.net> # # This file is part of Ansible # # Ansible 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....
PypiClean
/lifesospy-0.10.0.tar.gz/lifesospy-0.10.0/README.md
# LifeSOSpy [![PyPI version](https://badge.fury.io/py/lifesospy.svg)](https://badge.fury.io/py/lifesospy) A Python library to communicate with [LifeSOS](http://lifesos.com.tw) alarm systems. In some markets, they may also be labelled under the name of the distributor; eg. SecurePro in Australia, WeBeHome in northern ...
PypiClean
/msgraph-sdk-1.0.0a3.tar.gz/msgraph-sdk-1.0.0a3/msgraph/generated/models/bundle.py
from __future__ import annotations from kiota_abstractions.serialization import AdditionalDataHolder, Parsable, ParseNode, SerializationWriter from typing import Any, Callable, Dict, List, Optional, Union from . import album class Bundle(AdditionalDataHolder, Parsable): @property def additional_data(self,) ->...
PypiClean
/indy_plenum-1.13.1rc1-py3-none-any.whl/plenum/test/spy_helpers.py
from typing import Tuple, List, Optional, Any, Union, Callable from plenum.server.replica import Replica from plenum.common.request import Request from plenum.common.util import getCallableName from plenum.server.node import Node from plenum.test.testable import SpyableMethod def getLastMsgReceivedForNode(node, met...
PypiClean
/maetl-population-0.8.tar.gz/maetl-population-0.8/population/views/reportb1.py
from django.shortcuts import render,redirect from django.contrib.auth.decorators import login_required from population.models import Population,DetailFamily,Deficient,Language,Family,Religion,Profession,Citizen,Aldeia,Village,User,Migration,Death,Migrationout,Level_Education from population.utils import getnewidp,getn...
PypiClean
/mercury_engine_data_structures-0.23.2-py3-none-any.whl/mercury_engine_data_structures/formats/brfld.py
import functools import logging from typing import Iterator, List, Tuple import construct from mercury_engine_data_structures.formats import BaseResource, standard_format from mercury_engine_data_structures.game_check import Game logger = logging.getLogger(__name__) _BRFLD = standard_format.game_model('CScenario', 0...
PypiClean
/aiohttp_admin2-0.0.5-py3-none-any.whl/aiohttp_admin2/mappers/fields/abc.py
import typing as t from abc import ABC from abc import abstractmethod from aiohttp_admin2.mappers.validators import required as required_validator from aiohttp_admin2.mappers.validators import length __all__ = ['AbstractField', ] class AbstractField(ABC): type_name: str = 'string' def __init__( sel...
PypiClean
/youtube_transcript_downloader-0.1.2-py3-none-any.whl/youtube_transcript_downloader/yt_transcript_downloader.py
import requests as req import json import re from typing import Dict, Optional, Tuple, Any class MissingTranscriptError(Exception): def __init__(self, key, param) -> None: self.key = key self.param = param self.message = f'key: "{self.key}", param: "{self.param}"' super().__init__(...
PypiClean
/wyze_sdk-2.0.0-py3-none-any.whl/wyze_sdk/service/venus_service.py
from __future__ import annotations import datetime from typing import Optional, Sequence, Tuple, Union from wyze_sdk.models import datetime_to_epoch from wyze_sdk.models.devices.vacuums import VacuumDeviceControlRequestType, VacuumDeviceControlRequestValue from .base import ExServiceClient, WyzeResponse class Venu...
PypiClean
/jupyterhub_url_sharing-0.1.0.tar.gz/jupyterhub_url_sharing-0.1.0/node_modules/codemirror/addon/search/matchesonscrollbar.js
(function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror"), require("./searchcursor"), require("../scroll/annotatescrollbar")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror", "./searchcursor", ".....
PypiClean
/sdss-target-selection-1.0.0.tar.gz/sdss-target-selection-1.0.0/docs/sphinx/database.rst
.. _database-server: The database server =================== For SDSS-V target selection we use a Postgresql database server running on a dedicated machine, ``operations.sdss.org``, at University of Utah. Details on the server and its configuration are given below. The parent catalogues and the results of :ref:`cro...
PypiClean
/DriverPower-1.0.2.tar.gz/DriverPower-1.0.2/driverpower/interface.py
import logging import argparse import os import sys from driverpower import __version__ from driverpower.model import run_bmr from driverpower.infer import make_inference logging.basicConfig(stream=sys.stdout, level=logging.INFO, format='%(asctime)s | %(levelname)s: %(message)s', ...
PypiClean
/nteract_on_jupyter-2.1.3.tar.gz/nteract_on_jupyter-2.1.3/nteract_on_jupyter/dist/23-38792e8742f775c20ecb.bundle.js
(window.webpackJsonp=window.webpackJsonp||[]).push([[23],{1631:function(e,t,n){"use strict";n.r(t),n.d(t,"conf",function(){return o}),n.d(t,"language",function(){return s});var o={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\#\$\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:[...
PypiClean
/st4sd_runtime_core-2.0.0a10-py3-none-any.whl/experiment/runtime/interpreters/cwl_cmdline.py
from __future__ import print_function import argparse import os import pprint import traceback import uuid from typing import Any, Dict, List, Optional, Tuple import yaml from experiment.runtime.interpreters.cwl import (evaluate_javascript_expression, expand_object, ...
PypiClean
/BlurWal-1.1.1.tar.gz/BlurWal-1.1.1/blurwal/x11.py
import logging from typing import Any, List import Xlib from Xlib import display, error from Xlib.display import drawable class XConnection: """A connection to the X server for retrieving properties.""" def __init__(self) -> None: """Open a connection to X and retrieve the root window.""" se...
PypiClean
/funkify-0.4.5.tar.gz/funkify-0.4.5/README.md
<a href="https://github.com/dynamic-graphics-inc/dgpy-libs"> <img align="right" src="https://github.com/dynamic-graphics-inc/dgpy-libs/blob/main/docs/images/dgpy_banner.svg?raw=true" alt="drawing" height="120" width="300"/> </a> # funkify [![Wheel](https://img.shields.io/pypi/wheel/funkify.svg)](https://img.shields.i...
PypiClean
/dem_stitcher-2.5.0.tar.gz/dem_stitcher-2.5.0/dem_stitcher/dateline.py
from typing import List, Tuple from shapely.affinity import translate from shapely.geometry import box from .exceptions import DoubleDatelineCrossing, Incorrect4326Bounds def check_4326_bounds(bounds: list) -> bool: xmin, ymin, xmax, ymax = bounds if (xmin > xmax) or (ymin > ymax): raise Incorrect...
PypiClean
/vivarium-core-1.6.0.tar.gz/vivarium-core-1.6.0/vivarium/library/units.py
from typing import Any import pint # noinspection PyProtectedMember from pint import Unit try: from pint.quantity import _Quantity as Quantity except ImportError: from pint import Quantity #: Units registry that stores the units used throughout Vivarium units = pint.UnitRegistry() # We need to set this regi...
PypiClean
/django-templateselector-0.2.0.tar.gz/django-templateselector-0.2.0/.tox/py27-dj111/lib/python2.7/_abcoll.py
from abc import ABCMeta, abstractmethod import sys __all__ = ["Hashable", "Iterable", "Iterator", "Sized", "Container", "Callable", "Set", "MutableSet", "Mapping", "MutableMapping", "MappingView", "KeysView", "ItemsView", "ValuesView", "Sequence", "MutableSequence...
PypiClean
/google-cloud-compute-1.14.0.tar.gz/google-cloud-compute-1.14.0/google/cloud/compute_v1/services/global_addresses/pagers.py
from typing import ( Any, AsyncIterator, Awaitable, Callable, Iterator, Optional, Sequence, Tuple, ) from google.cloud.compute_v1.types import compute class ListPager: """A pager for iterating through ``list`` requests. This class thinly wraps an initial :class:`google.cl...
PypiClean
/transition_neural_parser-0.5.1002-py3-none-any.whl/fairseq_ext/roberta/binarize_embeddings.py
import numpy as np import torch import shutil import time from ..data import indexed_dataset from ..utils import time_since def dataset_dest_prefix(args, output_prefix, lang): base = "{}/{}".format(args.embdir, output_prefix) lang_part = ( ".{}-{}.{}".format(args.source_lang, args.target_lang, lang) ...
PypiClean
/rekall-core-1.7.2rc1.zip/rekall-core-1.7.2rc1/rekall/plugins/linux/check_modules.py
from rekall.plugins.overlays import basic from rekall.plugins.linux import common class CheckModules(common.LinuxPlugin): """Compares module list to sysfs info, if available. Sysfs contains a kset objects for a number of kernel objects (kobjects). One of the ksets is the "module_kset" which holds referen...
PypiClean
/hubspot_api_client-8.1.0-py3-none-any.whl/hubspot/crm/extensions/videoconferencing/rest.py
from __future__ import absolute_import import io import json import logging import re import ssl # python 2 and python 3 compatibility library import six from six.moves.urllib.parse import urlencode import urllib3 from hubspot.crm.extensions.videoconferencing.exceptions import ApiException, UnauthorizedException, Fo...
PypiClean
/jupyterhub-sdp-0.9.0.1.tar.gz/jupyterhub-sdp-0.9.0.1/jupyterhub/handlers/base.py
# Copyright (c) Jupyter Development Team. # Distributed under the terms of the Modified BSD License. import copy import re import time from datetime import datetime, timedelta from http.client import responses from urllib.parse import urlparse, urlunparse, parse_qs, urlencode import uuid from jinja2 import TemplateN...
PypiClean
/gpt_jupyterlab-0.1.4.tar.gz/gpt_jupyterlab-0.1.4/gpt_jupyterlab/labextension/static/977.960403d3967b615d6a50.js
"use strict";(self.webpackChunkgpt_jupyterlab=self.webpackChunkgpt_jupyterlab||[]).push([[977],{977:(e,t,o)=>{o.r(t),o.d(t,{GPTButtonExtension:()=>u,continueIcon:()=>s.runIcon,default:()=>g,gptIcon:()=>i,terminateIcon:()=>s.stopIcon});var n=o(923),a=o(667),r=o(172),c=o(859),p=o(671),l=o(878),s=o(152);const i=new s.LabI...
PypiClean
/atto-1.1.9.tar.gz/atto-1.1.9/README.md
## atto - Simple curses text editor ### Installation ``` pip install atto ``` ### Usage #### As script ``` [user@localhost ~] atto "<filename>" ``` #### In your code ```python import atto atto.edit('filename.txt') ``` ### Keys 1. i to switch to insert mode 1. ESC to return from insert mode 1. F4 to exit without savin...
PypiClean
/bbrc-validator-0.5.17.tar.gz/bbrc-validator-0.5.17/bbrc/validation/processing/dtifit.py
from ..test import ExperimentTest, Results class HasCorrectNumberOfItems(ExperimentTest): """Passes if a TOPUP_DTIFIT resource is found and such resource contains the correct number of items (i.e. 48).""" passing = 'BBRCDEV_E02949', failing = 'BBRCDEV_E02824', CORRECT_NUMBER = 48 def run(sel...
PypiClean
/airbyte-cdk-velocity-amazon-0.1.1.tar.gz/airbyte-cdk-velocity-amazon-0.1.1/airbyte_cdk/sources/utils/schema_helpers.py
import json import os import pkgutil import sys from typing import Any, Dict, Mapping import pkg_resources from airbyte_cdk.logger import AirbyteLogger from airbyte_cdk.models import ConnectorSpecification from jsonschema import RefResolver, validate from jsonschema.exceptions import ValidationError class JsonSche...
PypiClean
/ais_dom_frontend-20230831.0-py3-none-any.whl/hass_frontend/frontend_latest/91038-K82bfUcBTz8.js
export const id=91038;export const ids=[91038];export const modules={85157:(e,t,i)=>{i.d(t,{t:()=>o});class s{constructor(e=window.localStorage){this.storage=void 0,this._storage={},this._listeners={},this.storage=e,e===window.localStorage&&window.addEventListener("storage",(e=>{e.key&&this.hasKey(e.key)&&(this._storag...
PypiClean
/drypatrick-2021.7.5.tar.gz/drypatrick-2021.7.5/homeassistant/components/bosch_shc/binary_sensor.py
from boschshcpy import SHCBatteryDevice, SHCSession, SHCShutterContact from homeassistant.components.binary_sensor import ( DEVICE_CLASS_BATTERY, DEVICE_CLASS_DOOR, DEVICE_CLASS_WINDOW, BinarySensorEntity, ) from .const import DATA_SESSION, DOMAIN from .entity import SHCEntity async def async_setup_...
PypiClean
/cockatoo-0.6.2.tar.gz/cockatoo-0.6.2/docs/examples/index.rst
Examples ======== .. highlight:: bash cockatoo command line ---------------------- cockatoo comes with a command line utility for computing distances. To get a list of commands run:: $ cockatoo --help Usage: cockatoo [OPTIONS] COMMAND [ARGS]... Options: -v, --verbose Turn on verbose logging --help ...
PypiClean
/django-admin-508-0.0.3.tar.gz/django-admin-508-0.0.3/admin_interface/static/ckeditor/ckeditor/skins/light/skin.js
skin.js ========= In this file we interact with the CKEditor JavaScript API to register the skin and enable additional skin related features. The level of complexity of this file depends on the features available in the skin. There is only one mandatory line of code to be included here, which is setting CKEDIT...
PypiClean
/qm_qua-1.1.3.tar.gz/qm_qua-1.1.3/qm/program/_validate_config_schema.py
from marshmallow import ValidationError from qm.exceptions import ConfigValidationException def validate_timetagging_parameters(data): if "outputPulseParameters" in data: pulseParameters = data["outputPulseParameters"] neededParameters = [ "signalThreshold", "signalPolarit...
PypiClean
/dnnv-0.6.0.tar.gz/dnnv-0.6.0/third_party/VeriNet/src/neural_networks/cifar10.py
import torch import torch.nn as nn import torch.optim as optim from torch.utils.data import DataLoader from torch.utils.data import sampler import torchvision.datasets as dset import torchvision.transforms as T import torch.nn.functional as F from src.neural_networks.verinet_nn import VeriNetNN class Cifar10(VeriN...
PypiClean
/DearBagPlayer-0.2.2.tar.gz/DearBagPlayer-0.2.2/dearbagplayer/timeline_widgets.py
try: from .timeline import Timeline, TimelineWithSeries except: raise ImportError('Classes Timeline, TimelineWithSeries not found.') import dearpygui.dearpygui as dpg class TimelineWidgets: """Create Timeline Wigets given Start Time and Duration Usage examples: # Init DearPyGui and create Timel...
PypiClean
/lsst-ctrl-bps-26.0.0a20230200.tar.gz/lsst-ctrl-bps-26.0.0a20230200/doc/lsst.ctrl.bps/CHANGES.rst
lsst-ctrl-bps v24.0.0 (2022-08-29) ================================== New Features ------------ - Plugins have been moved to separate packages. These new packages are ``ctrl_bps_htcondor``, ``ctrl_bps_pegasus`` (not currently supported) and ``ctrl_bps_panda``. (`DM-33521 <https://jira.lsstcorp.org/browse/DM-33521...
PypiClean
/retro_data_structures-0.23.0-py3-none-any.whl/retro_data_structures/properties/dkc_returns/archetypes/SpringConvergence.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 SpringConvergence(BaseProperty): critically_dampened: bool = dataclasses.field(default=True) spring_constant:...
PypiClean
/dnamlops-0.0.3-py3-none-any.whl/mlopsdna/nannyml/performance_calculation/calculator.py
from __future__ import annotations from typing import Dict, List, Optional, Union import numpy as np import pandas as pd from pandas import MultiIndex from mlopsdna.nannyml._typing import ModelOutputsType, ProblemType from mlopsdna.nannyml.base import AbstractCalculator from mlopsdna.nannyml.chunk import Chunk, Chun...
PypiClean
/leopy-stat-0.9.3.tar.gz/leopy-stat-0.9.3/examples/example_norm_MCAR.py
import numpy as np import pandas as pd import scipy.stats import scipy.optimize import pytest import leopy np.random.seed(10) dist = scipy.stats.norm Ndata = 300 rho = 0.5 R = np.array([[1., rho], [rho, 1.]]) loc_true = np.array([0., 2.]) scale_true = np.array([1., 3.]) print('population parameters: [{} {} {} {} {...
PypiClean
/tiamat_pip-1.11.0-py3-none-any.whl/tiamatpip/ext/pip/_vendor/rich/_spinners.py
SPINNERS = { "dots": { "interval": 80, "frames": "⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏", }, "dots2": {"interval": 80, "frames": "⣾⣽⣻⢿⡿⣟⣯⣷"}, "dots3": { "interval": 80, "frames": "⠋⠙⠚⠞⠖⠦⠴⠲⠳⠓", }, "dots4": { "interval": 80, "frames": "⠄⠆⠇⠋⠙⠸⠰⠠⠰⠸⠙⠋⠇⠆", }, "dots5": { ...
PypiClean
/py-pure-client-1.38.0.tar.gz/py-pure-client-1.38.0/pypureclient/flashblade/FB_2_6/models/dns.py
import pprint import re import six import typing from ....properties import Property if typing.TYPE_CHECKING: from pypureclient.flashblade.FB_2_6 import models class Dns(object): """ Attributes: swagger_types (dict): The key is attribute name and the value is attribute t...
PypiClean
/rezdy_api_for_suppliers_client-1.0.1.tar.gz/rezdy_api_for_suppliers_client-1.0.1/rezdy_api_for_suppliers_client/models/booking_item_create.py
import datetime from typing import Any, Dict, List, Type, TypeVar, Union import attr from dateutil.parser import isoparse from ..models.extra import Extra from ..models.participant import Participant from ..models.pickup_location import PickupLocation from ..models.quantity import Quantity from ..types import UNSET, ...
PypiClean
/vrt_lss_universal-6.13.2112-py3-none-any.whl/vrt_lss_universal/models/version_result.py
from __future__ import annotations from inspect import getfullargspec import pprint import re # noqa: F401 import json from pydantic import BaseModel, Field, conint, constr class VersionResult(BaseModel): """ Service version. """ major: conint(strict=True, le=100, ge=1) = Field(..., description="Pr...
PypiClean
/terrascript_aws-1.0.5.tar.gz/terrascript_aws-1.0.5/src/terrascript_aws/ec2/host.py
import terrascript.core as core @core.resource(type="aws_ec2_host", namespace="ec2") class Host(core.Resource): """ The ARN of the Dedicated Host. """ arn: str | core.StringOut = core.attr(str, computed=True) """ (Optional) Indicates whether the host accepts any untargeted instance launches ...
PypiClean
/sifflet_sdk-0.3.2-py3-none-any.whl/client/model/search_collection_dataset_light_dto.py
import re # noqa: F401 import sys # noqa: F401 from 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, validat...
PypiClean
/stoobly_agent-0.30.6-py3-none-any.whl/stoobly_agent/public/37-es2015.50d0c2d3fe4d0a74fc8f.js
(window.webpackJsonp=window.webpackJsonp||[]).push([[37],{"6qw8":function(l,n){n.__esModule=!0,n.default={body:'<path opacity=".3" d="M20 6H4l8 4.99zM4 8v10h16V8l-8 5z" fill="currentColor"/><path d="M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 2l-8 4.99L4 6h16zm0 12H4V8l8 5l8-5v10z" fi...
PypiClean
/autotest-0.16.4.tar.gz/autotest-0.16.4/client/base_utils.py
import commands import fnmatch import logging import os import pickle import platform import re import shutil from autotest.client.shared import error, utils, magic, base_packages def grep(pattern, file): """ This is mainly to fix the return code inversion from grep Also handles compressed files. re...
PypiClean
/ka-lite-static-0.17.6b2.tar.gz/ka-lite-static-0.17.6b2/kalite/packages/dist/requests/__init__.py
# __ # /__) _ _ _ _ _/ _ # / ( (- (/ (/ (- _) / _) # / """ Requests HTTP library ~~~~~~~~~~~~~~~~~~~~~ Requests is an HTTP library, written in Python, for human beings. Basic GET usage: >>> import requests >>> r = requests.get('https://www.python.org') >>> r.status_code 200 ...
PypiClean
/pulumi_akamai-6.3.0a1693459280.tar.gz/pulumi_akamai-6.3.0a1693459280/pulumi_akamai/get_cps_enrollments.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__ = [ 'GetCPSEnrollmentsResult', 'AwaitableGetCPSEnrollmentsResult', 'get_cps_enrollments', 'get_cps_enrollments_out...
PypiClean
/allink-core-2.8.2.tar.gz/allink-core-2.8.2/allink_core/core_apps/allink_image/migrations/0001_initial.py
import cms.models.fields from django.conf import settings import django.contrib.postgres.fields from django.db import migrations, models import django.db.models.deletion import djangocms_attributes_field.fields import filer.fields.file import filer.fields.image class Migration(migrations.Migration): initial = T...
PypiClean
/clutchserver-0.1.0.tar.gz/clutchserver-0.1.0/dashboard/actions.py
import uuid from django.db import transaction from django_ext.http import JSONResponse from dashboard.models import Device, AppKey, App, Member, Version from dashboard.utils import norm_bundle def device_make_primary(request): device = Device.objects.get(id=request.GET['device']) # First make all of the o...
PypiClean
/imcsdk_ecoen66-0.9.20.tar.gz/imcsdk_ecoen66-0.9.20/imcsdk/mometa/activate/ActivatePIDCatalog.py
from ...imcmo import ManagedObject from ...imccoremeta import MoPropertyMeta, MoMeta from ...imcmeta import VersionMeta class ActivatePIDCatalogConsts: ADMIN_STATE_TRIGGER = "trigger" ADMIN_STATE_TRIGGERED = "triggered" class ActivatePIDCatalog(ManagedObject): """This is ActivatePIDCatalog class.""" ...
PypiClean
/ecmind_blue_client-0.6.0.tar.gz/ecmind_blue_client-0.6.0/ecmind_blue_client/com_client.py
import os from comtypes import COMError from comtypes.client import CreateObject from .blue_exception import BlueException from .client import Client from .const import ParamTypes from .job import Job from .result import Result from .result_file import ResultFile, ResultFileType class ComClient(Client): def __i...
PypiClean
/PyQtAds-3.8.1.tar.gz/PyQtAds-3.8.1/sipdistutils.py
import distutils.command.build_ext from distutils.dep_util import newer, newer_group import os import sys from hashlib import sha1 build_ext_base = distutils.command.build_ext.build_ext def replace_suffix(path, new_suffix): return os.path.splitext(path)[0] + new_suffix class build_ext (build_ext_base): de...
PypiClean
/dataset_viewer-1.0.0-py3-none-any.whl/dataset_viewer/dataset.py
from glob import glob import os from pathlib import Path from PIL.Image import Image, open, fromarray import numpy as np DEFAULT_PATH = Path('..', '..', 'data') VALID_FILE_TYPES = ["jpg", "jpeg", "png"] def image_name(img): '''Gets the image name without extension''' return Path(img.filename).name def ima...
PypiClean
/RsCMPX_NiotMeas-4.0.185-py3-none-any.whl/RsCMPX_NiotMeas/Implementations/Configure/NiotMeas/MultiEval/Modulation/EePeriods/Npusch.py
from .......Internal.Core import Core from .......Internal.CommandsGroup import CommandsGroup from .......Internal import Conversions from ....... import enums # noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection class NpuschCls: """Npusch commands group definition. 2 total commands, 0 Subgroup...
PypiClean
/newthon_fixed-1.27.6.tar.gz/newthon_fixed-1.27.6/telethon/client/uploads.py
import hashlib import io import itertools import os import pathlib import re import typing from io import BytesIO from ..crypto import AES from .. import utils, helpers, hints from ..tl import types, functions, custom try: import PIL import PIL.Image except ImportError: PIL = None if typing.TYPE_CHECKI...
PypiClean
/v2/model/resize_post_paid_server_request_body.py
import pprint import re import six class ResizePostPaidServerRequestBody: """ 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...
PypiClean
/xchk_git_content-0.1.11-py3-none-any.whl/xchk_git_content/contentviews.py
import regex from xchk_core.contentviews import ContentView from xchk_core.strats import * from xchk_regex_strategies.strats import RegexCheck, UnhelpfulRegexCheck from xchk_multiple_choice_strategies.strats import MultipleChoiceFormatCheck, MultipleChoiceAnswerCheck class WhatIsGitView(ContentView): uid = '...
PypiClean
/sc_downloader-0.3.4.tar.gz/sc_downloader-0.3.4/soundcloud/__init__.py
import requests import os, sys version = "0.3.4" class Track(object): def __init__(self,json): self.json = json self.ID = json["id"] self.duration = json["duration"]/1000 self.title = json["title"] self.genre = json["genre"] self.artwork_url = json["artwork_url"] ...
PypiClean
/TFL-2.0.5.tar.gz/TFL-2.0.5/relative_to_search_path.py
from _TFL import TFL from _TFL.pyk import pyk from _TFL import sos import _TFL._Meta.Object import _TFL.CAO import sys class Relative_To_Search_Path (TFL.Meta.Object) : """Return `abs_path` as path relative to one of the elements in `search_path`, if possible. """ if sos.path.altsep : ...
PypiClean
/pybufrkit-0.2.20.tar.gz/pybufrkit-0.2.20/docs/api.rst
.. _api: API reference ============= .. automodule:: pybufrkit .. automodule:: pybufrkit.bufr :members: .. automodule:: pybufrkit.descriptors :members: .. automodule:: pybufrkit.tables :members: .. automodule:: pybufrkit.coder :members: .. automodule:: pybufrkit.decoder :members: .. automod...
PypiClean
/molkitten-0.0.7.tar.gz/molkitten-0.0.7/moleculekit/util.py
import numpy as np import ctypes as ct import os from moleculekit.home import home import platform import tempfile import logging from unittest import TestCase logger = logging.getLogger(__name__) try: libdir = home(libDir=True) if platform.system() == "Windows": tmalignlib = ct.cdll.LoadLibrary(os.p...
PypiClean
/mriqc_learn-0.0.2-py3-none-any.whl/mriqc_learn/datasets/__init__.py
"""Public API for MRIQC-learn datasets.""" from pathlib import Path from pkg_resources import resource_filename as pkgrf import numpy as np from numpy.random import default_rng import pandas as pd def load_dataset( dataset="abide", split_strategy="random", test_split=0.2, seed=None, site=None, ):...
PypiClean
/claret-assistant-frontend-20210707.0.tar.gz/claret-assistant-frontend-20210707.0/hass_frontend/frontend_latest/chunk.b44b02042a2a853a3341.js
(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([[9448],{69448:(t,e,r)=>{"use strict";var i=r(50424),o=r(55358),s=r(76666),n=r(56007),a=r(44817);r(10983);function l(){l=function(){return t};var t={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:func...
PypiClean
/reportlab2-3.6.11.tar.gz/reportlab2-3.6.11/src/reportlab/lib/validators.py
__version__='3.5.33' __doc__="""Standard verifying functions used by attrmap.""" import codecs, re from reportlab.lib.utils import isSeq, isBytes, isStr from reportlab.lib import colors try: _re_Pattern = re.Pattern except AttributeError: _re_Pattern = re._pattern_type class Percentage(float): pass class...
PypiClean
/collective.controlpanel.edit_css-0.4.0.zip/collective.controlpanel.edit_css-0.4.0/collective/controlpanel/edit_css/browser/edit_css.py
from Products.Five.browser import BrowserView from Products.Five.browser.pagetemplatefile import ViewPageTemplateFile from Products.CMFCore.utils import getToolByName try: # >= Plone 4.3 from zope.component.hooks import getSite except: # < Plone 4.3 from zope.app.component.hooks import getSite from Prod...
PypiClean
/nni-3.0rc1-py3-none-macosx_10_9_x86_64.whl/nni_node/common/trial_keeper/rpc.js
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.RemoteTrialKeeper = exports.registerTrialKeeperOnChannel = void 0; const node_events_1 = require("node:events"); const rpc_util_1 = require("common/command_channel/rpc_util"); const deferred_1 = require("common/deferred"); const keeper...
PypiClean
/boot-synth-1.2.0.tar.gz/boot-synth-1.2.0/synth/projects_master/nginx_router/frontend/react/node_modules/uuid/lib/sha1-browser.js
'use strict'; function f(s, x, y, z) { switch (s) { case 0: return (x & y) ^ (~x & z); case 1: return x ^ y ^ z; case 2: return (x & y) ^ (x & z) ^ (y & z); case 3: return x ^ y ^ z; } } function ROTL(x, n) { return (x << n) | (x>>> (32 - n)); } function sha1(bytes) { var K = [0x5a827999, 0x6...
PypiClean
/get_music_lizhanqi-1.2.11-py3-none-any.whl/get_music/get_music.py
from get_music import kugou from get_music import netease from get_music import qq from get_music import kuwo from get_music import migu from get_music import baidu from get_music import oneting from get_music import fivesing from get_music import singbz from get_music import download from rich.console import Console f...
PypiClean
/wagtail_mautic-0.2.1.tar.gz/wagtail_mautic-0.2.1/example/settings/base.py
import os PROJECT_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) BASE_DIR = os.path.dirname(PROJECT_DIR) # Quick-start development settings - unsuitable for production # See https://docs.djangoproject.com/en/3.1/howto/deployment/checklist/ # Application definition INSTALLED_APPS = [ "wagtai...
PypiClean
/django_ndr_core-0.15.1-py3-none-any.whl/ndr_core/static/ndr_core/plugins/image-picker/image-picker.js
"use strict"; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.definePrope...
PypiClean
/modular_sdk-2.2.2-py3-none-any.whl/modular_sdk/commons/__init__.py
import copy from datetime import datetime from uuid import uuid4 from boto3.dynamodb.types import TypeDeserializer, TypeSerializer import dataclasses from functools import partial from modular_sdk.commons.exception import ModularException RESPONSE_BAD_REQUEST_CODE = 400 RESPONSE_UNAUTHORIZED = 401 RESPONSE_FORBIDDEN...
PypiClean
/Webware-for-Python-3.0.10.tar.gz/Webware-for-Python-3.0.10/webware/MiscUtils/Tests/TestMixIn.py
import unittest from MiscUtils.MixIn import MixIn class TestMixIn(unittest.TestCase): def setUp(self): class Base: attr0 = 'this is Base.attr0' attr1 = 'this is Base.attr1' def foo(self): return 'this is Base.foo' class PyClass(Base): ...
PypiClean
/otxdeploy-0.12.1.tar.gz/otxdeploy-0.12.1/mmdeploy/codebase/mmaction/deploy/video_recognition_model.py
from typing import List, Optional, Sequence, Union import mmcv import numpy as np import torch from mmcv.utils import Registry from mmdeploy.codebase.base import BaseBackendModel from mmdeploy.utils import (Backend, get_backend, get_codebase_config, load_config) def __build_backend_model...
PypiClean
/enpraxis.staticsite-2.2.tar.gz/enpraxis.staticsite-2.2/enpraxis/staticsite/browser/controlpanel.py
__author__ = '''Brent Lambert, David Ray, Jon Thomas''' __version__ = '$ Revision 0.0 $'[11:-2] from zope.interface import Interface, implements from zope.component import adapts, getUtility from zope.schema import TextLine, List, Tuple from zope.schema.vocabulary import SimpleVocabulary from Products.CMFDefault.form...
PypiClean
/odoo_addon_account_banking_ach_base-15.0.1.0.1.6-py3-none-any.whl/odoo/addons/account_banking_ach_base/models/account_banking_mandate.py
from odoo import _, api, fields, models from odoo.exceptions import UserError class AccountBankingMandate(models.Model): _inherit = "account.banking.mandate" delay_days = fields.Integer( string="Days to Delay", required=True, default=10, help="""Number of days to wait after in...
PypiClean
/Skyway_cloud-1.0.0.tar.gz/Skyway_cloud-1.0.0/src/skyway_ndtrung/cloud/service.py
from . import * from skyway import cfg from skyway.slurm import slurm from skyway.billing import Billing import skyway.account from skyway.service import ServiceBase import math import logging, time class Service(ServiceBase): def __init__(self, **kwargs): logging.info('Cloud service started.') ...
PypiClean