id
stringlengths
1
8
text
stringlengths
6
1.05M
dataset_id
stringclasses
1 value
/sagemath-standard-10.0b0.tar.gz/sagemath-standard-10.0b0/sage/functions/error.py
r""" Error functions This module provides symbolic error functions. These functions use the `mpmath library` for numerical evaluation and Maxima, Pynac for symbolics. The main objects which are exported from this module are: * :meth:`erf <Function_erf>` -- The error function * :meth:`erfc <Function_erfc>` -- The c...
PypiClean
/retro_data_structures-0.23.0-py3-none-any.whl/retro_data_structures/properties/corruption/archetypes/TweakGui/ScanVisor.py
import dataclasses import struct import typing from retro_data_structures.game_check import Game from retro_data_structures.properties.base_property import BaseProperty from retro_data_structures.properties.corruption.core.Color import Color from retro_data_structures.properties.corruption.core.Spline import Spline ...
PypiClean
/Glances-3.4.0.3.tar.gz/Glances-3.4.0.3/glances/secure.py
from glances.compat import nativestr from subprocess import Popen, PIPE import re def secure_popen(cmd): """A more or less secure way to execute system commands Multiple command should be separated with a && :return: the result of the commands """ ret = '' # Split by multiple commands '&&' ...
PypiClean
/flexNetSim-0.26.tar.gz/flexNetSim-0.26/flexnetsim/bitrate.py
import json class Bitrate(): def __init__(self, bit_rate): self.__bit_rate = bit_rate self.__modulation = [] self.__slots = [] self.__reach = [] @property def bit_rate(self): return self.__bit_rate @property def modulation(self): return self.__modu...
PypiClean
/Orange3-zh-3.33.1.tar.gz/Orange3-zh-3.33.1/Orange/widgets/data/owoutliers.py
from typing import Dict, Tuple from types import SimpleNamespace import numpy as np from AnyQt.QtCore import Signal, Qt from AnyQt.QtWidgets import QWidget, QVBoxLayout from orangewidget.settings import SettingProvider from Orange.base import Learner from Orange.classification import OneClassSVMLearner, EllipticEnv...
PypiClean
/django_handyhelpers-0.3.9-py3-none-any.whl/handyhelpers/static/node_modules/clipboard/readme.md
# clipboard.js ![Build Status](https://github.com/zenorocha/clipboard.js/workflows/build/badge.svg) ![Killing Flash](https://img.shields.io/badge/killing-flash-brightgreen.svg?style=flat) > Modern copy to clipboard. No Flash. Just 3kb gzipped. <a href="https://clipboardjs.com/"><img width="728" src="https://cloud.gi...
PypiClean
/GalSim-2.4.11-cp37-cp37m-manylinux_2_17_i686.manylinux2014_i686.whl/galsim/phase_psf.py
from heapq import heappush, heappop import numpy as np from .gsobject import GSObject from .gsparams import GSParams from .angle import radians, degrees, arcsec, Angle, AngleUnit from .image import Image, _Image from .bounds import _BoundsI from .wcs import PixelScale from .interpolatedimage import InterpolatedImage ...
PypiClean
/msgraph_beta_sdk-1.0.0a9-py3-none-any.whl/msgraph/generated/device_management/user_experience_analytics_device_scope/trigger_device_scope_action/trigger_device_scope_action_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
/pycallibri_ecg-1.0.1.tar.gz/pycallibri_ecg-1.0.1/callibri_ecg/callibri_ecg_lib.py
import ctypes import pathlib import platform import sys _libname = None _filters_lib = None if sys.platform == "win32": arc = platform.architecture() if arc[0].__contains__("64"): _libname = pathlib.Path(__file__).parent.resolve() / "libs" / "x64" / "callibri_utils-x64.dll" _filters_lib = pathl...
PypiClean
/napari-unicell-0.0.1.post2.tar.gz/napari-unicell-0.0.1.post2/src/napari_unicell/_widget.py
from typing import TYPE_CHECKING from magicgui import magic_factory, magicgui from qtpy.QtWidgets import QHBoxLayout, QPushButton, QWidget from napari.utils.notifications import show_info if TYPE_CHECKING: import napari from typing import List import os join = os.path.join import time import numpy as np from enu...
PypiClean
/ensmallen_graph-0.6.0-cp37-cp37m-manylinux2010_x86_64.whl/ensmallen_graph/datasets/string/thermosynechococcuselongatus.py
from typing import Dict from ..automatic_graph_retrieval import AutomaticallyRetrievedGraph from ...ensmallen_graph import EnsmallenGraph # pylint: disable=import-error def ThermosynechococcusElongatus( directed: bool = False, verbose: int = 2, cache_path: str = "graphs/string", **additional_graph_k...
PypiClean
/ensmallen_graph-0.6.0-cp37-cp37m-manylinux2010_x86_64.whl/ensmallen_graph/datasets/networkrepository/pkustk07.py
from typing import Dict from ..automatic_graph_retrieval import AutomaticallyRetrievedGraph from ...ensmallen_graph import EnsmallenGraph # pylint: disable=import-error def Pkustk07( directed: bool = False, verbose: int = 2, cache_path: str = "graphs/networkrepository", **additional_graph_kwargs: Di...
PypiClean
/evernote-1.25.3.tar.gz/evernote-1.25.3/lib/thrift/server/TServer.py
import logging import sys import os import traceback import threading import Queue from thrift.Thrift import TProcessor from thrift.transport import TTransport from thrift.protocol import TBinaryProtocol class TServer: """Base interface for a server, which must have a serve method.""" """ 3 constructors for al...
PypiClean
/Products.TinyMCE-1.4.3.tar.gz/Products.TinyMCE-1.4.3/Products/TinyMCE/skins/tinymce/plugins/xhtmlxtras/langs/hy_dlg.js
tinyMCE.addI18n('hy.xhtmlxtras_dlg',{"attribs_title":"\u054f\u0565\u0572\u0561\u0564\u0580\u0565\u056c / \u0583\u0578\u0583\u0578\u056d\u0565\u056c \u0561\u057f\u0580\u056b\u0562\u0578\u0582\u057f\u0576\u0565\u0580","option_rtl":"\u0531\u057b\u056b\u0581 \u0571\u0561\u056d","option_ltr":"\u0541\u0561\u056d\u056b\u0581 ...
PypiClean
/zensols.zotsite-0.8.1-py3-none-any.whl/zensols/zotsite/resources/site/lib/js/bootstrap-treeview.min.js
!function(a,b,c,d){"use strict";var e="treeview",f={};f.settings={injectStyle:!0,levels:2,expandIcon:"glyphicon glyphicon-plus",collapseIcon:"glyphicon glyphicon-minus",emptyIcon:"glyphicon",nodeIcon:"",selectedIcon:"",checkedIcon:"glyphicon glyphicon-check",uncheckedIcon:"glyphicon glyphicon-unchecked",color:d,backCol...
PypiClean
/ActiveReign-1.0.5.tar.gz/ActiveReign-1.0.5/ar3/ops/query/arg_parser.py
import argparse from os import path from getpass import getpass def file_exists(parser, filename): if not path.exists(filename): parser.error("Input file not found: {}".format(filename)) return [x.strip() for x in open(filename)] def query_args(sub_parser): query_parser = sub_parser.add_parser("qu...
PypiClean
/mindspore_gpu-1.10.0-cp39-cp39-manylinux1_x86_64.whl/mindspore/ops/_op_impl/aicpu/scatter.py
"""Scatter op""" from mindspore.ops.op_info_register import op_info_register, AiCPURegOp, DataType scatter_op_info = AiCPURegOp("Scatter") \ .fusion_type("OPAQUE") \ .input(0, "target", "required") \ .input(1, "dim", "required") \ .input(2, "index", "required") \ .input(3, "src", "required") \ ...
PypiClean
/Sutekh-2.0.0.tar.gz/Sutekh-2.0.0/sutekh/base/core/BaseFilters.py
# pylint: disable=super-init-not-called, abstract-method, too-many-lines # the base classes don't have useful __init__ methods, so we # generally don't call __init__ when creating a new filter # not every abstract method is immediately overridden # the module is long, but keeping the filters together is the best # opt...
PypiClean
/fortuna_uq-0.1.0.tar.gz/fortuna_uq-0.1.0/fortuna/model/resnet.py
from functools import partial from typing import Any, Callable, Sequence, Tuple import flax.linen as nn import jax.numpy as jnp from fortuna.typing import Array ModuleDef = Any class ResNetBlock(nn.Module): """ Residual network block. Attributes ---------- filters: int Number of filte...
PypiClean
/alipay-python-3.3.17.tar.gz/alipay-python-3.3.17/alipay/aop/api/domain/KoubeiRetailWmsSupplierQueryModel.py
import json from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.OperateContext import OperateContext class KoubeiRetailWmsSupplierQueryModel(object): def __init__(self): self._operate_context = None self._supplier_ids = None @property def operate_context(self...
PypiClean
/cloud-scheduler-1.13.2.tar.gz/cloud-scheduler-1.13.2/cloudscheduler/configstatus.py
import os import sys import ConfigParser # Cloud Scheduler Status Options Module. # Set default values info_server_port = 8111 def setup(path=None): """Setup cloudscheduler using config file. setup will look for a configuration file specified on the command line, or in ~/.cloudscheduler.conf or /...
PypiClean
/Arky-1.3.1.tar.gz/Arky-1.3.1/arky/ark/aip11.py
from .. import slots from .. import rest from .. import cfg from . import __PY3__ from . import crypto from . import init import struct C = 0.0001*100000000 rest.POST.createEndpoint(rest.POST, rest.post, "/peer/transactions/v1") class Payload: @staticmethod def setArkPerByteFees(value): global C C = valu...
PypiClean
/pyutopia-plugins-common-3.1.0.10.tar.gz/pyutopia-plugins-common-3.1.0.10/utopia/plugins/common/ieee.py
import urllib2 import urlparse import utopia.citation from lxml import etree from StringIO import StringIO class IEEEResolver(utopia.citation.Resolver): """Resolve PDF link from an IEEE page""" def resolve(self, citations, document = None): citation = {} if not utopia.citation.has_link(citat...
PypiClean
/custom-awscli-1.27.51.tar.gz/custom-awscli-1.27.51/awscli/examples/redshift/describe-orderable-cluster-options.rst
Describing All Orderable Cluster Options ---------------------------------------- This example returns descriptions of all orderable cluster options. By default, the output is in JSON format. Command:: aws redshift describe-orderable-cluster-options Result:: { "OrderableClusterOptions": [ ...
PypiClean
/OpenCoweb-1.0.tar.gz/OpenCoweb-1.0/coweb/bot/wrapper/object.py
import tornado.ioloop # std lib import logging import time import weakref import functools # coweb from .base import BotWrapperBase log = logging.getLogger('coweb.bot') class ObjectBotWrapper(BotWrapperBase): def __init__(self, manager, botClass, serviceName, serviceToken, appData): self.serviceName = ser...
PypiClean
/socialoauth-0.3.3.tar.gz/socialoauth-0.3.3/example/helper.py
import json import random import hashlib class SingletonGuard(type): def __init__(self, name, parent, class_dict): super(SingletonGuard, self).__init__(name, parent, class_dict) self.instance = None def __call__(self, *args, **kwargs): if self.instance is None: ...
PypiClean
/wxPython-zombie-3.1.5.6.tar.gz/wxPython-zombie-3.1.5.6/wx/lib/agw/balloontip.py
import wx import time import wx.adv from wx.lib.buttons import GenButton # Define The Values For The BalloonTip Frame Shape BT_ROUNDED = 1 """ :class:`BalloonTip` will have a rounded rectangular shape. """ BT_RECTANGLE = 2 """ :class:`BalloonTip` will have a rectangular shape. """ # Define The Value For The BalloonT...
PypiClean
/alibi-detect-0.11.4.tar.gz/alibi-detect-0.11.4/alibi_detect/cd/tensorflow/mmd_online.py
from tqdm import tqdm import numpy as np import tensorflow as tf from typing import Any, Callable, Optional, Union from alibi_detect.cd.base_online import BaseMultiDriftOnline from alibi_detect.utils.tensorflow.kernels import GaussianRBF from alibi_detect.utils.tensorflow import zero_diag, quantile, subset_matrix from ...
PypiClean
/scikit_ued-2.1.14-py3-none-any.whl/skued/affine.py
import math import numpy as np # standard basis e1, e2, e3 = np.eye(3) def affine_map(array): """ Extends 3x3 transform matrices to 4x4, i.e. general affine transforms. Parameters ---------- array : ndarray, shape {(3,3), (4,4)} Transformation matrix. If shape = (4,4), returned intact. ...
PypiClean
/django-tinymce4-3.0.2.tar.gz/django-tinymce4-3.0.2/tinymce/static/tinymce/langs/gd.js
tinymce.addI18n('gd',{ "Cut": "Gearr \u00e0s", "Heading 5": "Ceann-sgr\u00ecobhadh 5", "Header 2": "Bann-cinn 2", "Your browser doesn't support direct access to the clipboard. Please use the Ctrl+X\/C\/V keyboard shortcuts instead.": "Chan eil am brabhsair agad a' cur taic ri inntrigeadh d\u00ecreach dhan st\u00f2r-bh\...
PypiClean
/zapp-0.0.2.tar.gz/zapp-0.0.2/README.rst
.. Introduction ============ Build ``zipapp`` single file Python applications easily. Usage ===== Standalone application ---------------------- .. code:: zapp ~/bin/myapp myapp.cli:main 'myapp==1.2.3' 'mylib==3.2.1' python3 -m zapp ~/bin/myapp myapp.cli:main 'myapp==1.2.3' 'mylib==3.2.1' zapp tool...
PypiClean
/pyfalco-3.0.2.tar.gz/pyfalco-3.0.2/falco/thinfilm.py
import numpy as np from os.path import isfile import os import numpy as np import falco from falco.check import real_scalar, real_positive_scalar,\ real_nonnegative_scalar, scalar_integer,\ positive_scalar_integer, real_array,\ oneD_ar...
PypiClean
/dsin100daysv34-6.0.1.tar.gz/dsin100daysv34-6.0.1/notebook/static/components/codemirror/mode/cmake/cmake.js
(function(mod) { if (typeof exports == "object" && typeof module == "object") mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) define(["../../lib/codemirror"], mod); else mod(CodeMirror); })(function(CodeMirror) { "use strict"; CodeMirror.defineMode("cmake", ...
PypiClean
/cctbx_base-2020.8-0_py38h167b89d-cp38-cp38m-manylinux2010_x86_64.whl/rstbx/slip_viewer/uc_frame.py
from __future__ import absolute_import, division, print_function # -*- Mode: Python; c-basic-offset: 2; indent-tabs-mode: nil; tab-width: 8 -*- # # $Id import wx, math class UCSettingsFrame(wx.MiniFrame): def __init__(self, *args, **kwds): super(UCSettingsFrame, self).__init__(*args, **kwds) szr = wx.BoxSiz...
PypiClean
/pyelasticache_client-0.1.3.tar.gz/pyelasticache_client-0.1.3/pymemcache/pool.py
import collections import contextlib import sys import threading import six class ObjectPool(object): """A pool of objects that release/creates/destroys as needed.""" def __init__(self, obj_creator, after_remove=None, max_size=None, lock_generator=None): self._used...
PypiClean
/dask-image-2023.8.1.tar.gz/dask-image-2023.8.1/dask_image/ndmorph/_utils.py
import numbers import dask.array as da import numpy as np from ..dispatch._dispatch_ndmorph import dispatch_binary_structure from ..ndfilters._utils import (_get_depth, _get_depth_boundary, _get_origin, _update_wrapper) _update_wrapper = _update_wrapper _get_depth_boundary = _get_de...
PypiClean
/quinteng-chaoyue-1.0.0.tar.gz/quinteng-chaoyue-1.0.0/quinteng/synthesis/evolution/qdrift.py
from typing import Union, Optional, Callable import numpy as np from quinteng.circuit.quantumcircuit import QuantumCircuit from quinteng.quantum_info.operators import SparsePauliOp, Pauli from quinteng.utils import algorithm_globals from .product_formula import ProductFormula from .lie_trotter import LieTrotter clas...
PypiClean
/file_type_identifier-0.2.3.tar.gz/file_type_identifier-0.2.3/fti/getters.py
import httpx from . import FileTypes from .file_type_getters import ( get_file_types_by_content, get_file_types_by_content_disposition, get_file_types_by_mime, get_file_types_by_url, ) def get_file_types(url: str, timeout: float = 5) -> set[FileTypes]: if result := get_file_types_by_url(url): ...
PypiClean
/PolTools-1.0.7.tar.gz/PolTools-1.0.7/main_programs/TES_fold_change_heatmap.py
import glob import os import sys import argparse import multiprocessing from PolTools.main_programs import TES_heatmap from PolTools.utils.constants import generate_heatmap_location from PolTools.utils.heatmap_utils.generate_heatmap import generate_heatmap, Ticks, make_ticks_matrix from PolTools.utils.heatmap_utils.m...
PypiClean
/dsin100daysv30-6.0.1.tar.gz/dsin100daysv30-6.0.1/notebook/static/components/MathJax/localization/pt/MathMenu.js
MathJax.Localization.addTranslation("pt","MathMenu",{version:"2.7.5",isLoaded:true,strings:{Show:"Mostrar f\u00F3rmulas como",MathMLcode:"C\u00F3digo MathML",OriginalMathML:"MathML original",TeXCommands:"Comandos TeX",AsciiMathInput:"Entrada AsciiMathML",Original:"Formato original",ErrorMessage:"Mensagem de erro",Annot...
PypiClean
/OAuthClientUser-0.1.2.tar.gz/OAuthClientUser-0.1.2/OAuthUser/authentication.py
import json from datetime import datetime, timedelta from django.core.exceptions import ObjectDoesNotExist from django.contrib.auth import get_user_model from django.conf import settings from rest_framework.exceptions import AuthenticationFailed from rest_framework.authentication import BaseAuthentication, get_authoriz...
PypiClean
/picoapi-0.1.5.tar.gz/picoapi-0.1.5/README.md
Picoapi ======= A wrapper around FastAPI to simplify microservice creation. Very opinionated but also simple to fork if you would like to add your own version of service registration and configuration to FastAPI. Usage ===== create a .env file or export the following variables: | ENV variable | Required ...
PypiClean
/reprep-z6-6.0.5.tar.gz/reprep-z6-6.0.5/src/reprep/plot_utils/spines.py
def turn_off_all_axes(pylab): turn_off_bottom_and_top(pylab) turn_off_left_and_right(pylab) def turn_off_bottom_and_top(pylab): ax = pylab.gca() for loc, spine in ax.spines.items(): if loc in ["bottom", "top"]: spine.set_color("none") # don't draw spine pylab.xticks([], []) ...
PypiClean
/slither_analyzer-0.9.6-py3-none-any.whl/slither/tools/possible_paths/__main__.py
import sys import logging from argparse import ArgumentParser, Namespace from crytic_compile import cryticparser from slither import Slither from slither.core.declarations import FunctionContract from slither.utils.colors import red from slither.tools.possible_paths.possible_paths import ( find_target_paths, ...
PypiClean
/sage-conf-10.0b0.tar.gz/sage-conf-10.0b0/sage_root/build/pkgs/_prereq/SPKG.rst
_prereq: Represents system packages required for installing SageMath from source ================================================================================ Description ----------- This dummy package represents the minimal requirements (system packages) for installing SageMath from source. In addition to standa...
PypiClean
/p360_contact_manager-1.2.0-py3-none-any.whl/p360_contact_manager/usecases/synchronize.py
"""Synchronize data with p360 through SynchronizeEnterprise api endpoint.""" import json import logging from typing import Callable from attr import dataclass from returns.curry import partial from returns.pipeline import flow, is_successful from returns.pointfree import bind from returns.result import ResultE, safe ...
PypiClean
/midtools-1.0.3.tar.gz/midtools-1.0.3/bin/create-reads.py
from __future__ import print_function import sys from random import uniform, normalvariate from math import log10 from dark.reads import ( Read, addFASTACommandLineOptions, parseFASTACommandLineOptions) from midtools.mutate import mutateRead from midtools.utils import s def makeRead(genome, meanLength, sdLeng...
PypiClean
/huobi-client-pundix-2.0.0.tar.gz/huobi-client-pundix-2.0.0/huobi/model/generic/symbol.py
class Symbol: """ The Huobi supported symbols. :member base_currency: The base currency in a trading symbol. quote_currency: The quote currency in a trading symbol. price_precision: The quote currency precision when quote price (decimal places). amount_precision: The base cu...
PypiClean
/mars-gym-0.1.0.tar.gz/mars-gym-0.1.0/docs/quick_start.rst
Quick Start ================================ In this tutorial we will present a simple example using MARS. Each module will be explained in a superficial way with focus on the application. .. image:: ../images/img2.jpg :width: 700 :align: center Three main components make the framework: * The first one is a hig...
PypiClean
/ais_dom-2023.7.2-py3-none-any.whl/homeassistant/components/unifi/device_tracker.py
from __future__ import annotations from collections.abc import Callable, Mapping from dataclasses import dataclass from datetime import timedelta import logging from typing import Any, Generic import aiounifi from aiounifi.interfaces.api_handlers import ItemEvent from aiounifi.interfaces.clients import Clients from ...
PypiClean
/ppb-1.1rc3.tar.gz/ppb-1.1rc3/examples/external_event_loop_integration/README.md
# External Event Loop Integration This example demonstrates embedding ppb in an external event loop, in this case Twisted. In order to run this example, you'll need to install the requirements.txt in this directory. Otherwise, it's behavior is similar to the keyboard_and_mouse_controls example: A space ship in the c...
PypiClean
/c65faucet-1.0.59.tar.gz/c65faucet-1.0.59/faucet/__main__.py
# Copyright (C) 2015 Brad Cowie, Christopher Lorier and Joe Stringer. # Copyright (C) 2015 Research and Education Advanced Network New Zealand Ltd. # Copyright (C) 2015--2019 The Contributors # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the Li...
PypiClean
/INDIpy-0.4.0.tar.gz/INDIpy-0.4.0/indi/routing/router.py
import logging from typing import Dict, List, Optional, Union, cast from indi.message import EnableBLOB, IndiMessage, NewBLOBVector, const from indi.routing import Client, Device logger = logging.getLogger(__name__) SenderType = Optional[Union[Client, Device]] class Router: """Message router Passess mess...
PypiClean
/js_sdk-12.0.0.tar.gz/js_sdk-12.0.0/jumpscale/tools/qrcode/__init__.py
import pyqrcode def _get_qr_object(content, version, mode, encoding): return pyqrcode.create(content, version=version, mode=mode, encoding=encoding) def png_get(content, file_path, version=None, mode=None, encoding=None, scale=1): """Writes QR code to file in PNG format Args: content (str): con...
PypiClean
/dfipy-2.0.1.tar.gz/dfipy-2.0.1/dfi/validate.py
import json import logging from datetime import datetime from typing import List, Optional, Union import pandas as pd import requests from dfi import models _logger = logging.getLogger(__name__) class DFIDataFrameColumnsNameError(Exception): """Raised when the column names of a dataframe are not as expected"""...
PypiClean
/scs_core-2.8.9-py3-none-any.whl/scs_core/control/control_receipt.py
import hashlib from collections import OrderedDict from scs_core.control.command import Command from scs_core.data.datetime import LocalizedDatetime from scs_core.data.json import JSONable, JSONify from scs_core.sample.sample import Sample # ------------------------------------------------------------------------...
PypiClean
/thrill-0.0.1.tar.gz/thrill-0.0.1/extlib/googletest/googlemock/scripts/generator/README.cppclean
Goal: ----- CppClean attempts to find problems in C++ source that slow development in large code bases, for example various forms of unused code. Unused code can be unused functions, methods, data members, types, etc to unnecessary #include directives. Unnecessary #includes can cause considerable extra compi...
PypiClean
/hikari_yuyo-1.19.0.tar.gz/hikari_yuyo-1.19.0/docs/usage/components.md
# Message Components Message components are the interactive buttons and select menus you'll see on some messages sent by bots. ### Making a Component Client The Component client keeps track of registered components and handles executing them. This can be created with any of the following class methods: * [Componen...
PypiClean
/dionysus-2.0.9.tar.gz/dionysus-2.0.9/bindings/python/pybind11/docs/advanced/pycpp/object.rst
Python types ############ .. _wrappers: Available wrappers ================== All major Python types are available as thin C++ wrapper classes. These can also be used as function parameters -- see :ref:`python_objects_as_args`. Available types include :class:`handle`, :class:`object`, :class:`bool_`, :class:`int_`,...
PypiClean
/deriva-catalog-manage-0.9.1.tar.gz/deriva-catalog-manage-0.9.1/deriva/utils/catalog/manage/dump_catalog.py
from __future__ import print_function from urllib.parse import urlparse import ast import logging import os import re import sys import traceback import requests from requests.exceptions import HTTPError from deriva.core import format_exception from deriva.core.utils import eprint from deriva.core.base_cli import B...
PypiClean
/fastllama_python_test-0.1.tar.gz/fastllama_python_test-0.1/scripts/convert-unversioned-ggml-to-ggml.py
import argparse import glob import os import struct import sys from sentencepiece import SentencePieceProcessor HPARAMS = keys = ["vocab_size", "dim", "multiple_of", "n_heads", "n_layers"] def parse_args(): parser = argparse.ArgumentParser(description='Upgrade old ggml model files to the current format') pars...
PypiClean
/acc_lib-0.0.29-py3-none-any.whl/acc_lib/acc_lib.py
import numpy as np import pandas as pd import matplotlib.pyplot as plt import matplotlib as mpl import matplotlib.patches import matplotlib.collections import scipy.constants as constants from scipy.fft import fft, fftfreq import NAFFlib # Numerical Analysis of the Fundamental Frequencies # Define plotting parame...
PypiClean
/servierpck-0.1.tar.gz/servierpck-0.1/Package/model2.py
import pandas as pd import pandas as pd from feature_extractor import * import pandas from keras.models import Sequential from keras.layers import Dense from keras.wrappers.scikit_learn import KerasClassifier from sklearn.model_selection import cross_val_score from sklearn.preprocessing import LabelEncoder from sklearn...
PypiClean
/python-sources-3.10.5.tar.gz/python-sources-3.10.5/Python-3.10.5/Lib/distutils/command/build_py.py
import os import importlib.util import sys import glob from distutils.core import Command from distutils.errors import * from distutils.util import convert_path, Mixin2to3 from distutils import log class build_py (Command): description = "\"build\" pure Python modules (copy to build directory)" user_options...
PypiClean
/pysit-0.5b3.zip/pysit-0.5b3/examples/HorizontalReflector2DFrequency.py
import time import numpy as np import matplotlib.pyplot as plt from pysit import * from pysit.gallery import horizontal_reflector if __name__ == '__main__': # Setup hybrid=True # Define Domain pmlx = PML(0.1, 100) pmlz = PML(0.1, 100) x_config = (0.1, 1.0, pmlx, pmlx) z_config = (0.1, 0.8, pmlz, pmlz) d ...
PypiClean
/airflow_hdinsight-0.0.1.3-py3-none-any.whl/airflowhdi/operators/azure_hdinsight_create_cluster_operator.py
from airflow import settings, AirflowException from azure.mgmt.hdinsight.models import ClusterCreateProperties, ClusterDefinition, ComputeProfile, Role, \ LinuxOperatingSystemProfile, OsProfile, \ StorageProfile, StorageAccount, OSType, Tier, HardwareProfile from airflowhdi.hooks import AzureHDInsightHook from...
PypiClean
/ez_webdriver-1.1.7-py3-none-any.whl/ez_webdriver/__init__.py
from . import ez_webdriver def chrome(version="auto", path=None, name="chromedriver", os_type=None, is_arm=False) -> str: """ version: 三种参数 auto(匹配当前版本) latest(最新版本) x.x(指定版本,2级就够,太细的版本可能匹配不到) path: 可以是目录(指定放置驱动文件的目录),可以是文件(指定驱动文件的路径) name: 下载的驱动文件名称(下载的文件名,除非镜像源的文件改名了,否则不要改动) os_type: 默认自动,手动填入...
PypiClean
/Faker-19.3.1.tar.gz/Faker-19.3.1/faker/providers/color/bn_BD/__init__.py
from collections import OrderedDict from .. import Provider as ColorProvider localized = True class Provider(ColorProvider): """Implement color provider for ``bn_BD`` locale.""" all_colors = OrderedDict( ( ("এলিস নীল", "#F0F8FF"), ("এন্টিক সাদা", "#FAEBD7"), ("জল...
PypiClean
/ComponentDB-CLI-3.15.5.tar.gz/ComponentDB-CLI-3.15.5/cdbCli/service/cli/cdbCliCmnds/setItemLogById.py
import sys import re import click import csv from cdbApi import LogEntryEditInformation from cdbApi import ApiException from datetime import datetime from cdbCli.common.cli.cliBase import CliBase ############################################################################################## # ...
PypiClean
/holoviews-1.17.1.tar.gz/holoviews-1.17.1/examples/gallery/demos/bokeh/dropdown_economic.ipynb
Most examples work across multiple plotting backends, this example is also available for: * [Matplotlib - dropdown_economic](../matplotlib/dropdown_economic.ipynb) ``` import pandas as pd import holoviews as hv from holoviews import opts, dim hv.extension('bokeh') ``` ## Declaring data ``` macro_df = pd.read_csv('...
PypiClean
/templite-0.2.1.tar.gz/templite-0.2.1/templite.py
import sys, os import re class Templite(object): autowrite = re.compile('(^[\'\"])|(^[a-zA-Z0-9_\[\]\'\"]+$)') delimiters = ('${', '}$') cache = {} def __init__(self, text=None, filename=None, encoding='utf-8', delimiters=None, caching=False): """Loads a template from st...
PypiClean
/webviz-subsurface-0.2.22.tar.gz/webviz-subsurface-0.2.22/webviz_subsurface/plugins/_rft_plotter/_views/_sim_vs_obs_view/_view.py
from typing import List, Union import webviz_core_components as wcc from dash import Input, Output, callback from webviz_config.utils import StrEnum, callback_typecheck from webviz_config.webviz_plugin_subclasses import ViewABC from ..._reusable_settings import FilterLayout from ..._reusable_view_element import Gener...
PypiClean
/Firenado-0.9.0a2.tar.gz/Firenado-0.9.0a2/firenado/tornadoweb.py
from . import data from . import session from . import uimodules from .config import get_class_from_config from cartola import fs from cartola.config import load_yaml_file import firenado.conf import inspect import logging import os from tornado.httpclient import HTTPRequest from tornado.template import Loader import ...
PypiClean
/sedatatools-1.1.5.tar.gz/sedatatools-1.1.5/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
/ressources/lib/node_modules/highcharts/js/modules/pattern-fill.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) { /** * Module ...
PypiClean
/mdshare-0.4.2.tar.gz/mdshare-0.4.2/bin/mdshare-index-maker.py
# This file is part of the markovmodel/mdshare project. # Copyright (C) 2017-2019 Computational Molecular Biology Group, # Freie Universitaet Berlin (GER) # # 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 So...
PypiClean
/xuzhao_markdown_editor-1.1.2-py3-none-any.whl/xuzhao_markdown/static/xuzhao_markdown/plugins/link-dialog/link-dialog.js
(function() { var factory = function (exports) { var pluginName = "link-dialog"; exports.fn.linkDialog = function() { var _this = this; var cm = this.cm; var editor = this.editor; var settings = this.settings; var selection = cm.getSelecti...
PypiClean
/ScatPy-0.1.1.tar.gz/ScatPy-0.1.1/README.txt
************************************** ScatPy -- A Python interface to DDSCAT ************************************** ScatPy is a Python package for interfacing to the popular scattering simulator `DDSCAT <http://www.astro.princeton.edu/~draine/DDSCAT.html>`_. ScatPy provides a rich toolset to: * Create standard DDS...
PypiClean
/depthai_pipeline_graph-0.0.5-py3-none-any.whl/depthai_pipeline_graph/NodeGraphQt/widgets/scene.py
from Qt import QtGui, QtCore, QtWidgets from ..constants import ViewerEnum class NodeScene(QtWidgets.QGraphicsScene): def __init__(self, parent=None): super(NodeScene, self).__init__(parent) self._grid_mode = ViewerEnum.GRID_DISPLAY_LINES.value self._grid_color = ViewerEnum.GRID_COLOR.va...
PypiClean
/repair_seq-1.0.3.tar.gz/repair_seq-1.0.3/repair_seq/arrayed_experiment_group.py
import gzip import itertools import time import shutil import warnings from pathlib import Path from collections import defaultdict, Counter import numpy as np import pandas as pd import pysam from ipywidgets import Layout, Select import knock_knock.explore import knock_knock.outcome from hits import utilities, sam ...
PypiClean
/google-cloud-aiplatform-1.31.1.tar.gz/google-cloud-aiplatform-1.31.1/google/cloud/aiplatform_v1beta1/services/pipeline_service/async_client.py
from collections import OrderedDict import functools import re from typing import ( Dict, Mapping, MutableMapping, MutableSequence, Optional, Sequence, Tuple, Type, Union, ) from google.cloud.aiplatform_v1beta1 import gapic_version as package_version from google.api_core.client_opt...
PypiClean
/slurm_rest-0.0.37.1-py3-none-any.whl/slurm_rest/model/dbv0037_response_qos_delete.py
import re # noqa: F401 import sys # noqa: F401 from slurm_rest.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, val...
PypiClean
/nb_offline_convert-0.1.1.tar.gz/nb_offline_convert-0.1.1/share/jupyter/nbconvert/templates/lab_offline/static/MathJax/extensions/a11y/mathmaps/en/symbols/greek-symbols.js
[{"locale":"en"},{"category":"Ll","mappings":{"default":{"default":"greek beta symbol","alternative":"greek small letter curled beta","short":"beta"}},"key":"03D0"},{"category":"Ll","mappings":{"default":{"default":"greek theta symbol","alternative":"greek small letter script theta","short":"theta"}},"key":"03D1"},{"ca...
PypiClean
/django-dojo-0.0.1.tar.gz/django-dojo-0.0.1/dojo/static/dojo/dojox/grid/enhanced/plugins/exporter/_ExportWriter.js
define([ "dojo/_base/declare" ], function(declare){ //require Exporter here, so the implementations only need to require this file, //and the users only need to require the implementation file. return declare("dojox.grid.enhanced.plugins.exporter._ExportWriter", null, { // summary: // This is an abstract class for...
PypiClean
/openlmai-0.27.8.tar.gz/openlmai-0.27.8/openai/util.py
import logging import os import re import sys from enum import Enum from typing import Optional import openai OPENAI_LOG = os.environ.get("OPENAI_LOG") logger = logging.getLogger("openai") __all__ = [ "log_info", "log_debug", "log_warn", "logfmt", ] api_key_to_header = ( lambda api, key: {"Auth...
PypiClean
/nni_upload_test-0.7.1904290925-py3-none-win_amd64.whl/nni_upload_test-0.7.1904290925.data/data/nni/node_modules/sshpk/lib/formats/x509.js
module.exports = { read: read, verify: verify, sign: sign, signAsync: signAsync, write: write }; var assert = require('assert-plus'); var asn1 = require('asn1'); var Buffer = require('safer-buffer').Buffer; var algs = require('../algs'); var utils = require('../utils'); var Key = require('../key'); var PrivateKe...
PypiClean
/ab12phylo-0.5.21b0-py3-none-any.whl/ab12phylo-0.5.21b0.dist-info/LICENSE.md
GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/> Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamb...
PypiClean
/tensorflow_cpu-2.14.0rc1-cp311-cp311-macosx_10_15_x86_64.whl/tensorflow/python/util/protobuf/compare.py
import difflib import math from ..compat import collections_abc import six from google.protobuf import descriptor from google.protobuf import descriptor_pool from google.protobuf import message from google.protobuf import text_format # TODO(alankelly): Distinguish between signalling and quiet NaNs. def isClose(x, y...
PypiClean
/hidefix-0.6.2.tar.gz/hidefix-0.6.2/README.md
[![Crates.io](https://img.shields.io/crates/v/hidefix.svg)](https://crates.io/crates/hidefix) [![PyPI](https://img.shields.io/pypi/v/hidefix.svg)](https://pypi.org/project/hidefix/) [![Documentation](https://docs.rs/hidefix/badge.svg)](https://docs.rs/hidefix/) [![Build (rust)](https://github.com/gauteh/hidefix/workflo...
PypiClean
/dslogparser-1.0.3.tar.gz/dslogparser-1.0.3/dslog2csv.py
# Note: should work correctly with either Python 2 or 3 from __future__ import print_function # Parse the FRC drive station logs which are packed binary data import sys import os import os.path import csv from dslogparser import DSLogParser, DSEventParser # Python 2 CSV writer wants binary output, but Py3 want regu...
PypiClean
/vioneta_agro_frontend-20230809.1-py3-none-any.whl/hass_frontend/frontend_es5/41826-q6ZNQz_QxCU.js
"use strict";(self.webpackChunkvioneta_agro_frontend=self.webpackChunkvioneta_agro_frontend||[]).push([[41826,4631],{12198:function(n,t,e){e.d(t,{D_:function(){return Z},NC:function(){return _},Nh:function(){return v},U8:function(){return w},WB:function(){return f},mn:function(){return s},p6:function(){return c},pU:fun...
PypiClean
/sample-factory-2.1.1.tar.gz/sample-factory-2.1.1/sf_examples/vizdoom/doom/doom_params.py
import os from os.path import join from sample_factory.cfg.arguments import parse_full_cfg, parse_sf_args from sample_factory.utils.utils import str2bool def add_doom_env_args(parser): p = parser p.add_argument( "--num_agents", default=-1, type=int, help="Allows to set number...
PypiClean
/llamac2py-0.1.4.tar.gz/llamac2py-0.1.4/README.md
# llamac2py llamac2py is a Python package that provides a wrapper for running inference using the Llama-2 Transformer model. The package includes a C executable (run.c) from [Karpathy's llama2.c](https://github.com/karpathy/llama2.c) that performs the inference, and the package allows easy inference for the same. --- ...
PypiClean
/odoo_addon_l10n_fr_ecotaxe-15.0.1.0.0.15-py3-none-any.whl/odoo/addons/l10n_fr_ecotaxe/models/account_ecotaxe_classification.py
from odoo import api, fields, models class AccountEcotaxeClassification(models.Model): _name = "account.ecotaxe.classification" _description = "Account Ecotaxe Classification" @api.model def _default_company_id(self): return self.env.company name = fields.Char(required=True) code = ...
PypiClean
/certora_cli_alpha_oz_gambitlinux-20230710.11.11.234001-py3-none-macosx_10_9_universal2.whl/certora_cli/EVMVerifier/Compiler/CompilerCollectorFactory.py
import os from Shared.certoraUtils import run_solc_cmd from pathlib import Path from functools import lru_cache from typing import Tuple, Dict, Set import re import logging from EVMVerifier.Compiler.CompilerCollector import CompilerLang, CompilerCollector from EVMVerifier.Compiler.CompilerCollectorSol import CompilerC...
PypiClean
/enigma-catalyst-0.5.21.tar.gz/enigma-catalyst-0.5.21/catalyst/lib/labelarray.py
from functools import partial, total_ordering from operator import eq, ne import re import numpy as np from numpy import ndarray import pandas as pd from toolz import compose from catalyst.utils.compat import unicode from catalyst.utils.functional import instance from catalyst.utils.preprocess import preprocess from ...
PypiClean
/pandokia-2.3.0.tar.gz/pandokia-2.3.0/stsci_regtest/configuration.py
import os import types import os.path xml_symbol = ("<", ">", "&") xml_name = ("&lt;", "&gt;", "&amp;") # CONFIGURATION: Contains functions to read and write configuration files. #============================================================================== # Version 1.1: H.Bushouse 2001/05/04: Initial configured ve...
PypiClean
/pytorch_to_tensorflow-1.0.3.tar.gz/pytorch_to_tensorflow-1.0.3/pytorch_to_tensorflow/pytorch_to_tensorflow.py
import torch import tensorflow as tf import numpy as np def convert_pytorch_to_tensorflow(pytorch_model: torch.nn.Module) -> tf.keras.Model: # Convert the PyTorch model to a TensorFlow model tensorflow_model = tf.keras.Sequential() for layer in pytorch_model.children(): if isinstance...
PypiClean
/prometheus_client_gc-0.9.1.tar.gz/prometheus_client_gc-0.9.1/prometheus_client_gc/decorator.py
# Copyright (c) 2005-2016, Michele Simionato # All rights reserved. # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # Redistributions of source code must retain the above copyright # notice, this list of conditio...
PypiClean
/mxnet_cu100-1.9.0-py3-none-manylinux2014_x86_64.whl/mxnet/symbol/numpy/random.py
from ...context import current_context from . import _internal as _npi __all__ = ['randint', 'uniform', 'normal', 'multivariate_normal', 'logistic', 'gumbel', 'rayleigh', 'rand', 'shuffle', 'gamma', 'beta', 'chisquare', 'exponential', 'lognormal', 'weibull', 'pareto', 'power'] def r...
PypiClean