id stringlengths 1 265 | text stringlengths 6 5.19M | dataset_id stringclasses 7
values |
|---|---|---|
/CTPreprocessing-3.0.0-py3-none-any.whl/preprocess.py | import SimpleITK as sitk
import numpy as np
import cv2
from scipy import ndimage
from skimage import morphology
import typing
from pathlib import Path
from pydicom import dcmread
from pydicom.dataset import FileDataset
from pydicom.dicomdir import DicomDir
class PreProcessor:
"""
this class uses preprocessing... | PypiClean |
/Electrum-CHI-3.3.8.tar.gz/Electrum-CHI-3.3.8/packages/pip/_vendor/html5lib/treebuilders/__init__.py | from __future__ import absolute_import, division, unicode_literals
from .._utils import default_etree
treeBuilderCache = {}
def getTreeBuilder(treeType, implementation=None, **kwargs):
"""Get a TreeBuilder class for various types of trees with built-in support
:arg treeType: the name of the tree type requi... | PypiClean |
/HTTPolice-0.9.0.tar.gz/HTTPolice-0.9.0/httpolice/reports/html.py | from functools import singledispatch
import pkgutil
import dominate
import dominate.tags as H
from dominate.util import text as text_node
from httpolice import known, message, notice, structure
from httpolice.__metadata__ import homepage, version
from httpolice.citation import Citation
from httpolice.header import He... | PypiClean |
/BifacialSimu-1.2.0-py3-none-any.whl/BifacialSimu_src/Scripts/bifacialRadiance/alt/main.py | import logging
logging.basicConfig()
LOGGER = logging.getLogger(__name__)
LOGGER.setLevel(logging.DEBUG)
import os, datetime
from subprocess import Popen, PIPE # replacement for os.system()
import pandas as pd
import numpy as np
#from input import *
# Mutual parameters across all processes
#daydate=sys.argv[1]
gl... | PypiClean |
/GQCMS-0.0.4-py3-none-any.whl/build/lib/build/lib/build/lib/build/lib/build/lib/build/lib/build/lib/gqcms/General.py | from abc import abstractmethod
from collections import deque
import numpy as np
import scipy.sparse.linalg as sparse_linalg
import warnings
class IterativeAlgorithm:
def __init__(self, env, init_steps: list = [], steps: list = []):
self._env = env
self._init_steps = init_steps
self._steps... | PypiClean |
/Glances-3.4.0.3.tar.gz/Glances-3.4.0.3/glances/plugins/glances_smart.py | from glances.plugins.glances_plugin import GlancesPlugin
from glances.logger import logger
from glances.main import disable
from glances.compat import is_admin
# Import plugin specific dependency
try:
from pySMART import DeviceList
except ImportError as e:
import_error_tag = True
logger.warning("Missing Py... | PypiClean |
/ConfigValidator-0.2.0.tar.gz/ConfigValidator-0.2.0/configvalidator/tools/configValidator.py | import abc
import six
import json
import logging
from configvalidator.tools.basics import load_section_feature
from configvalidator.tools.parser import ParseObj
from configvalidator.tools.exceptions import InitException
logger = logging.getLogger(__name__)
class ConfigValidator(object):
"""ConfigValidator
... | PypiClean |
/Cohorte-Herald-0.0.3.tar.gz/Cohorte-Herald-0.0.3/herald/transports/xmpp/utils.py | # Module version
__version_info__ = (0, 0, 3)
__version__ = ".".join(str(x) for x in __version_info__)
# Documentation strings format
__docformat__ = "restructuredtext en"
# ------------------------------------------------------------------------------
# SleekXMPP
import sleekxmpp
# Standard library
import logging
... | PypiClean |
/OdooRPC-0.10.1.tar.gz/OdooRPC-0.10.1/doc/source/tuto_report.rst | .. _tuto-download-report:
Download reports
****************
Another nice feature is the reports generation with the
:attr:`report <odoorpc.ODOO.report>` property.
The :func:`list <odoorpc.report.Report.list>` method allows you to list
all reports available on your `Odoo` server (classified by models), while the
:func... | PypiClean |
/Grid2Op-1.9.3-py3-none-any.whl/grid2op/Converter/ConnectivityConverter.py | import numpy as np
from grid2op.Converter.Converters import Converter
from grid2op.dtypes import dt_int, dt_float
# TODO: use the "last_obs" and the "change_bus" in case of "set_bus" not available
class ConnectivityConverter(Converter):
"""
In this converter, you have as many output as pairs of object that ... | PypiClean |
/EZprofanity-0.0.5.tar.gz/EZprofanity-0.0.5/README.md | # EZprofanity
Quickly detect profane, innapropriate and disgusting language!
Example:
```
from ezprofanity import check
text = "I shit a lot."
if check(text):
for i in check(text):
print(f"You said {i}! That is profane!")
>> You said shit! That is profane!
```
Try and edit the text to include multiple swear word... | PypiClean |
/FamcyDev-0.3.71-py3-none-any.whl/Famcy/bower_components/bootstrap-fileinput/js/locales/id.js | (function ($) {
"use strict";
$.fn.fileinputLocales['id'] = {
fileSingle: 'berkas',
filePlural: 'berkas',
browseLabel: 'Pilih berkas …',
removeLabel: 'Hapus',
removeTitle: 'Hapus berkas terpilih',
cancelLabel: 'Batal',
cancelTitle: 'Batalkan proses... | PypiClean |
/Lekha-0.2.1.tar.gz/Lekha-0.2.1/lekha/app.py |
from __future__ import print_function
import time
import logging
import argparse
import json
import os
from threading import Thread
import mimetypes
try:
from urllib import unquote
except ImportError:
from urllib.parse import unquote
from efl.ecore import Idler, Timer
import efl.evas as evas
from efl.evas i... | PypiClean |
/MindsDB-23.8.3.0.tar.gz/MindsDB-23.8.3.0/mindsdb/integrations/libs/base.py | from typing import Any, Optional, Dict
import pandas as pd
from mindsdb_sql.parser.ast.base import ASTNode
from mindsdb.integrations.libs.response import HandlerResponse, HandlerStatusResponse
class BaseHandler:
""" Base class for database handlers
Base class for handlers that associate a source of informat... | PypiClean |
/Cubane-1.0.11.tar.gz/Cubane-1.0.11/cubane/management/commands/deploy.py | from __future__ import unicode_literals
from django.conf import settings
from django.core.management import call_command
from django.core.management.base import BaseCommand, CommandError
from cubane.lib.resources import *
from cubane.lib.deploy import save_deploy_timestamp
from cubane.lib.minify import minify_files
fro... | PypiClean |
/Nuitka_fixed-1.1.2-cp310-cp310-win_amd64.whl/nuitka/nodes/OperatorNodesUnary.py | from nuitka import PythonOperators
from .ConstantRefNodes import makeConstantRefNode
from .ExpressionBases import ExpressionChildHavingBase
from .ExpressionShapeMixins import (
ExpressionBoolShapeExactMixin,
ExpressionStrOrUnicodeDerivedShapeMixin,
)
class ExpressionOperationUnaryBase(ExpressionChildHavingBa... | PypiClean |
/Henson_S3-0.1.0-py3-none-any.whl/henson_s3.py |
import os as _os
import pkg_resources as _pkg_resources
from boto3.session import Session
from botocore.exceptions import ClientError
from henson import Extension
__all__ = ('S3',)
try:
_dist = _pkg_resources.get_distribution(__name__)
if not __file__.startswith(_os.path.join(_dist.location, __name__)):
... | PypiClean |
/DendroPy-4.6.1.tar.gz/DendroPy-4.6.1/src/dendropy/legacy/coalescent.py |
##############################################################################
## DendroPy Phylogenetic Computing Library.
##
## Copyright 2010-2015 Jeet Sukumaran and Mark T. Holder.
## All rights reserved.
##
## See "LICENSE.rst" for terms and conditions of usage.
##
## If you use this work or any portion there... | PypiClean |
/LFake-18.9.0.tar.gz/LFake-18.9.0/lfake/providers/ssn/lv_LV/__init__.py | import datetime
from .. import Provider as SsnProvider
class Provider(SsnProvider):
def ssn(self, min_age: int = 0, max_age: int = 105) -> str:
"""
Returns 11 character Latvian personal identity code (Personas kods).
This function assigns random age to person.
Personal code consi... | PypiClean |
/Fiona-1.9.4.post1-cp311-cp311-macosx_10_15_x86_64.whl/fiona/fio/load.py |
from functools import partial
import click
import cligj
import fiona
from fiona.fio import options, with_context_env
from fiona.model import Feature, Geometry
from fiona.schema import FIELD_TYPES_MAP_REV
from fiona.transform import transform_geom
@click.command(short_help="Load GeoJSON to a dataset in another form... | PypiClean |
/123_object_detection-0.1.tar.gz/123_object_detection-0.1/object_detection/models/center_net_mobilenet_v2_feature_extractor.py | import tensorflow.compat.v1 as tf
from object_detection.meta_architectures import center_net_meta_arch
from object_detection.models.keras_models import mobilenet_v2 as mobilenetv2
class CenterNetMobileNetV2FeatureExtractor(
center_net_meta_arch.CenterNetFeatureExtractor):
"""The MobileNet V2 feature extractor ... | PypiClean |
/FreeClimb-4.5.0-py3-none-any.whl/freeclimb/model/application_list_all_of.py | import re # noqa: F401
import sys # noqa: F401
from freeclimb.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,
vali... | PypiClean |
/AltAnalyze-2.1.3.15.tar.gz/AltAnalyze-2.1.3.15/altanalyze/misopy/kde_subclass.py | import numpy as np
import scipy
from scipy import stats
import matplotlib.pylab as plt
class gaussian_kde_set_covariance(stats.gaussian_kde):
'''
from Anne Archibald in mailinglist:
http://www.nabble.com/Width-of-the-gaussian-in-stats.kde.gaussian_kde---td19558924.html#a19558924
'''
def __init__(se... | PypiClean |
/GammaLab-0.6.3.tar.gz/GammaLab-0.6.3/src/gammalab/analysis/count.py | import sys
import pickle
import numpy
from ..service import ReceivingService, ThreadService, SourceService
from ..wire import PulseWire, CountWire
class Count(ThreadService, ReceivingService, SourceService):
input_wire_class=PulseWire
output_wire_class=CountWire
def __init__(self, outfile=None, runt... | PypiClean |
/OctoBot-Evaluators-1.9.1.tar.gz/OctoBot-Evaluators-1.9.1/octobot_evaluators/evaluators/channel/evaluators.py |
import async_channel.constants as channel_constants
import octobot_commons.logging as logging
import octobot_evaluators.evaluators.channel as evaluator_channels
class EvaluatorsChannelConsumer(evaluator_channels.EvaluatorChannelConsumer):
"""
EvaluatorChannelConsumer adapted for EvaluatorsChannel
"""
... | PypiClean |
/CWGP-2.0.7-py3-none-any.whl/cwgp/phi.py | from autograd import elementwise_grad, grad
import autograd.numpy as np
import copy
from scipy.optimize import minimize
import GPy
import itertools
from cwgp.kernel import RBF, OU, Matern32
from cwgp.transformations import sal, sa, asinh, box_cox, affine, inv_sal, inv_sa, inv_asinh, inv_box_cox, inv_affine, d_sal, d_s... | PypiClean |
/Argonaut-0.3.4.tar.gz/Argonaut-0.3.4/argonaut/config/middleware.py | from beaker.middleware import SessionMiddleware
from paste.cascade import Cascade
from paste.registry import RegistryManager
from paste.urlparser import StaticURLParser
from paste.deploy.converters import asbool
from pylons.middleware import ErrorHandler, StatusCodeRedirect
from pylons.wsgiapp import PylonsApp
from rou... | PypiClean |
/aleksis_app_kort-0.2.1.tar.gz/aleksis_app_kort-0.2.1/LICENCE.rst | ======================================
EUROPEAN UNION PUBLIC LICENCE v. 1.2
======================================
--------------------------------------
EUPL © the European Union 2007, 2016
--------------------------------------
This European Union Public Licence (the ‘EUPL’) applies to the Work
(as defined below) ... | PypiClean |
/Hypy-1.0.1.tar.gz/Hypy-1.0.1/README.md | # Hypy [](https://travis-ci.org/corydodt/Hypy)
Hypy is a fulltext search interface for Python applications. Use it to index
and search your documents from Python code.
Hypy is based on the estraiernative bindings by Yusuke Yoshida.
The estraiern... | PypiClean |
/GalSim-2.4.11-cp37-cp37m-manylinux_2_17_i686.manylinux2014_i686.whl/galsim/lensing_ps.py |
import numpy as np
from .angle import arcsec, AngleUnit
from .position import PositionD, PositionI
from .bounds import BoundsD, BoundsI
from .interpolant import Quintic, Lanczos
from .image import Image, ImageD
from .random import GaussianDeviate
from .table import LookupTable, LookupTable2D
from . import utilities
f... | PypiClean |
/Authlib-1.2.1.tar.gz/Authlib-1.2.1/authlib/oauth2/rfc6750/errors.py | from ..base import OAuth2Error
__all__ = [
'InvalidTokenError', 'InsufficientScopeError'
]
class InvalidTokenError(OAuth2Error):
"""The access token provided is expired, revoked, malformed, or
invalid for other reasons. The resource SHOULD respond with
the HTTP 401 (Unauthorized) status code. The cl... | PypiClean |
/BIA_OBS-1.0.3.tar.gz/BIA_OBS-1.0.3/BIA/static/dist/node_modules/@popperjs/core/dist/esm/utils/validateModifiers.js | import format from "./format.js";
import { modifierPhases } from "../enums.js";
var INVALID_MODIFIER_ERROR = 'Popper: modifier "%s" provided an invalid %s property, expected %s but got %s';
var MISSING_DEPENDENCY_ERROR = 'Popper: modifier "%s" requires "%s", but "%s" modifier is not available';
var VALID_PROPERTIES = [... | PypiClean |
/MutPy-0.6.1.tar.gz/MutPy-0.6.1/mutpy/controller.py | import random
import sys
import time
from mutpy import views, utils
class TestsFailAtOriginal(Exception):
def __init__(self, result=None):
self.result = result
class MutationScore:
def __init__(self):
self.killed_mutants = 0
self.timeout_mutants = 0
self.incompetent_mutant... | PypiClean |
/Bugs%20Everywhere%20(BEurtle%20fork)-1.5.0.1.-2012-07-16-.zip/Bugs Everywhere (BEurtle fork)-1.5.0.1.-2012-07-16-/libbe/command/comment.py |
import os
import sys
import libbe
import libbe.command
import libbe.command.util
import libbe.comment
import libbe.ui.util.editor
import libbe.util.id
class Comment (libbe.command.Command):
"""Add a comment to a bug
>>> import time
>>> import libbe.bugdir
>>> import libbe.util.id
>>> bd = libbe... | PypiClean |
/Avenue-0.2.2.tar.gz/Avenue-0.2.2/CHANGELOG.rst | Changelog
=========
Version 0.2.1
-------------
Released on Jul 1st 2016
- Fixed changelog date.
- Fixed missing coveragerc.
Version 0.2.0
-------------
Released on Jul 1st 2016
- Added example documentation.
- Added Exceptions.
- Added logger (`logging.getLogger('avenue')`).
- Added more code coverage.
- Added ... | PypiClean |
/HiCExplorer-2.2.1.1-py3-none-any.whl/hicexplorer/hicPlotMatrix.py | from __future__ import division
import warnings
warnings.simplefilter(action="ignore", category=RuntimeWarning)
warnings.simplefilter(action="ignore", category=PendingDeprecationWarning)
import sys
from hicmatrix import HiCMatrix
from hicexplorer.utilities import writableFile
from hicexplorer.utilities import toString,... | PypiClean |
/Nasdaq%20Data%20Link-1.0.4.tar.gz/Nasdaq Data Link-1.0.4/nasdaqdatalink/model/data_mixin.py | import pandas as pd
from nasdaqdatalink.errors.data_link_error import ColumnNotFound
class DataMixin(object):
# DataFrame will respect order of input list of list
def to_pandas(self, keep_column_indexes=[]):
data = self.to_list()
# ensure pandas gets a list of lists
if data and isinst... | PypiClean |
/MambuPy-2.0.0b22.tar.gz/MambuPy-2.0.0b22/mambupy/api/mambustruct.py | import copy
from datetime import datetime
from importlib import import_module
from .classes import MambuMapObj
from ..mambuutil import MambuPyError, date_format
class MambuStruct(MambuMapObj):
"""Basic Struct for Mambu Objects with basic connection functionality."""
_attrs = {}
"""Properties of the Mamb... | PypiClean |
/AeroSandbox-4.1.1.tar.gz/AeroSandbox-4.1.1/aerosandbox/dynamics/point_mass/point_3D/speed_gamma_track.py | from aerosandbox.dynamics.point_mass.common_point_mass import _DynamicsPointMassBaseClass
from aerosandbox.weights.mass_properties import MassProperties
import aerosandbox.numpy as np
from typing import Union, Dict, Tuple
class DynamicsPointMass3DSpeedGammaTrack(_DynamicsPointMassBaseClass):
"""
Dynamics inst... | PypiClean |
/CC-dbgen-0.2.0.tar.gz/CC-dbgen-0.2.0/README.md | # DbGen - A database generator
Note that this is very much a work in progress. Install with ```pip install CC-dbgen```
## Summary
This library is geared towards facilitating scientific modeling by providing an
interface between a domain expert's knowledge (a set of facts that can be
extended) and a knowledge base th... | PypiClean |
/L1test-3.1.0-py3-none-any.whl/thonnycontrib/frontend/docstring_generator/doc_generator.py | from .doc_template import *
from thonnycontrib.properties import CANNOT_GENERATE_THE_DOCSTRING
from thonnycontrib.frontend import get_l1test_runner
from thonnycontrib.exceptions import DocGeneratorParserException, FrontendException, NoFunctionSelectedToDocumentException
from thonnycontrib.utils import replace_error_lin... | PypiClean |
/InsideMe-0.2.2.tar.gz/InsideMe-0.2.2/README.md | InsideMe [](https://travis-ci.org/JulienPeloton/InsideMe)
==
### The package
InsideMe is a simple yet effective python module for monitoring
memory consumption and duration of python codes.
Work for both serial codes and parallel programmin... | PypiClean |
/Flask-Administration-0.1.42.tar.gz/Flask-Administration-0.1.42/flask_administration/static/js/library/raphael.js | (function(a){var b="0.3.4",c="hasOwnProperty",d=/[\.\/]/,e="*",f=function(){},g=function(a,b){return a-b},h,i,j={n:{}},k=function(a,b){var c=j,d=i,e=Array.prototype.slice.call(arguments,2),f=k.listeners(a),l=0,m=!1,n,o=[],p={},q=[],r=h,s=[];h=a,i=0;for(var t=0,u=f.length;t<u;t++)"zIndex"in f[t]&&(o.push(f[t].zIndex),f[... | PypiClean |
/LEPL-5.1.3.zip/LEPL-5.1.3/src/lepl/_example/separators.py |
# pylint: disable-msg=W0401,C0111,W0614,W0622,C0301,C0321,C0324,C0103
#@PydevCodeAnalysisIgnore
# (the code style is for documentation, not "real")
'''
This is an example that generates some tables showing how the different
separators handle spaces in a variety of different cases. The output
fmt is restructured text... | PypiClean |
/Compyler-0.4.4.tar.gz/Compyler-0.4.4/compyler/parser.py |
from .tree import Tree
from .error import Error
from termcolor import colored
class Parser:
def __init__(self, tokens, verbose, printmode, program):
# Reverses tokens so I can use pop...cleans
# up the code significantly
self.__tokens = tokens[::-1]
self.cst = Tree(printmode)
... | PypiClean |
/Nitrous-0.9.3-py3-none-any.whl/turbogears/i18n/data/es_CO.py |
languages={'gv': u'ga\xe9lico man\xe9s', 'gu': u'goujarat\xed', 'gd': u'ga\xe9lico escoc\xe9s', 'ga': u'irland\xe9s', 'gl': 'gallego', 'la': u'lat\xedn', 'ln': 'lingala', 'lo': 'laosiano', 'tt': u't\xe1taro', 'tr': 'turco', 'ts': 'tsonga', 'lv': 'letonio', 'lt': 'lituano', 'th': u'tailand\xe9s', 'ti': 'tigrinya', 'te'... | PypiClean |
/lassalib-3.1.2.tar.gz/lassalib-3.1.2/README.md | # LassaLib
#### _Convenient function set_
Author:
-------
- [Axelle (LassaInora) VIANDIER](mailto:axelleviandier@lassainora.fr)
License:
--------
- GNU General Public License v3.0
Version:
--------
- `3.1.2`
--------
## Summary
- **[Links](#links)**
- **[Contacts](#contacts)**
- **[Methods](#methods)**
- ***[de... | PypiClean |
/Flask_Caching-2.0.2-py3-none-any.whl/flask_caching/contrib/googlecloudstoragecache.py | import datetime
import json
import logging
from flask_caching.backends.base import BaseCache
logger = logging.getLogger(__name__)
try:
from google.auth.credentials import AnonymousCredentials
from google.cloud import storage, exceptions
except ImportError as e:
raise RuntimeError("no google-cloud-stora... | PypiClean |
/20CS30064MyPackage-0.0.1-py3-none-any.whl/my_package/analysis/visualize.py | from PIL import Image, ImageDraw, ImageFont
import numpy as np
from itertools import chain
import os
def plot_visualization(image_dict, segmentor, relative_filepath):
'''
The function plots the predicted segmentation maps and the bounding boxes on the images and save them.
Arguments:
image_dict: Dictionary r... | PypiClean |
/Kunai-0.9.tar.gz/Kunai-0.9/kunai/perfdata.py |
# -*- coding: utf-8 -*-
#==> need to rewrite or at least have a common lib with shinken or nagios
import re
perfdata_split_pattern = re.compile('([^=]+=\S+)')
metric_pattern = re.compile('^([^=]+)=([\d\.\-\+eE]+)([\w\/%]*);?([\d\.\-\+eE:~@]+)?;?([\d\.\-\+eE:~@]+)?;?([\d\.\-\+eE]+)?;?([\d\.\-\+eE]+)?;?\s*')
def ... | PypiClean |
/NLP_LIB_cpu-0.0.12.tar.gz/NLP_LIB_cpu-0.0.12/NLP_LIB/transforms/bigram_random_mask_wrapper.py | import numpy as np
import os
import random
from NLP_LIB.nlp_core.data_transform_wrapper import DataTransformWrapper
class BigramRandomMaskWrapper(DataTransformWrapper):
# When initialize DataTransformWrapper, we pass configuration and dataset object to constructor
def __init__(self, config, dataset):
super(... | PypiClean |
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/gfx/canvasWithEvents.js.uncompressed.js | define("dojox/gfx/canvasWithEvents", ["dojo/_base/lang", "dojo/_base/declare", "dojo/_base/connect", "dojo/_base/Color", "dojo/dom",
"dojo/dom-geometry", "./_base","./canvas", "./shape", "./matrix"],
function(lang, declare, hub, Color, dom, domGeom, g, canvas, shapeLib, m){
/*=====
dojox.gfx.canvasWithEvents = ... | PypiClean |
/AutoTorch-0.0.2b20200818.tar.gz/AutoTorch-0.0.2b20200818/autotorch/scheduler/reporter.py | import os
import sys
import time
import json
import logging
import threading
import multiprocessing as mp
from ..utils import save, load, AutoTorchEarlyStop
import distributed
from distributed import Queue, Variable
from distributed.comm.core import CommClosedError
logger = logging.getLogger(__name__)
__all__ = ['Dis... | PypiClean |
/Deliverance-0.6.1.tar.gz/Deliverance-0.6.1/deliverance/editor/media/editarea/edit_area/search_replace.js | EditArea.prototype.show_search = function(){
if($("area_search_replace").style.visibility=="visible"){
this.hidden_search();
}else{
this.open_inline_popup("area_search_replace");
var text= this.area_get_selection();
var search= text.split("\n")[0];
$("area_search").value= search;
$("area_search").... | PypiClean |
/AyiinXd-0.0.8-cp311-cp311-macosx_10_9_universal2.whl/fipper/node_modules/@types/node/ts4.8/dom-events.d.ts | export {}; // Don't export anything!
//// DOM-like Events
// NB: The Event / EventTarget / EventListener implementations below were copied
// from lib.dom.d.ts, then edited to reflect Node's documentation at
// https://nodejs.org/api/events.html#class-eventtarget.
// Please read that link to understand important imple... | PypiClean |
/GaitAnalysisToolKit-0.2.0.tar.gz/GaitAnalysisToolKit-0.2.0/docs/motek.rst | ============
Motek Module
============
`Motek Medical`_ sells hardware/software packages which include treadmills with
force plate measurement capabilities and motion bases, motion capture systems,
visual displays, and other sensors for various measurements. Their software,
D-Flow_, manages the data streams from the v... | PypiClean |
/MambuPy-2.0.0b22.tar.gz/MambuPy-2.0.0b22/mambupy/api/interfaces.py | from abc import ABC, abstractmethod
class MambuWritable(ABC):
"""An entity which allows basic write operations"""
@abstractmethod
def update(self): # pragma: no cover
"""updates a mambu entity
Uses the current values of the _attrs to send to Mambu.
Pre-requires that CustomFields... | PypiClean |
/EsiPysi-0.10.2.tar.gz/EsiPysi-0.10.2/esipysi/op.py | import asyncio
import aiohttp
import re
import urllib
import json
from enum import Enum
from urllib.parse import urlencode
from urllib.error import HTTPError
from json.decoder import JSONDecodeError
from .cache.cache import EsiCache
from .auth import EsiAuth
from .esiresponse import EsiResponse
import logging
logge... | PypiClean |
/DiscordFilter-0.0.3.tar.gz/DiscordFilter-0.0.3/README.md | # DiscordFilter
Use This To Find Filtered Discord Words Like Nitro Scams
[](https://pepy.tech/project/DiscordFilter)
[](https://pepy.tech/project/DiscordFilter)
[:
tx_types = ['spend', 'mint']
IDLE = 1
... | PypiClean |
/MicroPython-Dashboard-carlsonrocco-0.0.1.tar.gz/MicroPython-Dashboard-carlsonrocco-0.0.1/dashboard/dashboard.py | import neopixel, machine, network, urequests, gc, math
from time import sleep_ms
def Dashboard(length = 10):
# Define length and initiate NeoPixel object
np = neopixel.NeoPixel(machine.Pin(4), length)
# Startup animation
for i in range(length):
np[i] = (64, 64, 64)
np.write()
s... | PypiClean |
/EndlessParser-0.3-py3-none-any.whl/endlessparser/datatypes/Basic.py | from dataclasses import dataclass
from typing import List, Iterable, Type, TypeVar, Optional, Callable, Any
from endlessparser.globals import QUOTES
def _indent(s: str) -> str:
buffer = ""
for line in s.splitlines():
buffer += "\t%s\n" % line
return buffer.rstrip()
@dataclass
class Node:
no... | PypiClean |
/LabtoolSuite-0.1.3.tar.gz/LabtoolSuite-0.1.3/Labtools/packet_handler.py | from commands_proto import *
import serial
class Singleton(type):
_instances = {}
def __call__(cls, *args, **kwargs):
if cls not in cls._instances:
cls._instances[cls] = super(Singleton, cls).__call__(*args, **kwargs)
return cls._instances[cls]
class Handler(object):
__metaclass_... | PypiClean |
/MongoAlchemyVoltron-0.12.1.tar.gz/MongoAlchemyVoltron-0.12.1/mongoalchemy/session.py | from pymongo.connection import Connection
from mongoalchemy.query import Query, QueryResult, RemoveQuery
from mongoalchemy.document import FieldNotRetrieved
from mongoalchemy.query_expression import FreeFormDoc
from itertools import chain
class Session(object):
def __init__(self, database, safe=False):
''... | PypiClean |
/CodeIntel-2.0.0b19-cp34-cp34m-macosx_10_12_x86_64.whl/codeintel/test2/bits/rails/habitual-readers/public/javascripts/dragdrop.js | var Droppables = {
drops: [],
remove: function(element) {
this.drops = this.drops.reject(function(d) { return d.element==$(element) });
},
add: function(element) {
element = $(element);
var options = Object.extend({
greedy: true,
hoverclass: null,
tree: false
}, arg... | PypiClean |
/DuyanUtils-1.0.4.tar.gz/DuyanUtils-1.0.4/src/DuyanCommon/Error.py | class Error(Exception):
def __init__(self, code, message):
super().__init__(f"{message}[CODE:{code}]")
class TimeError(Error):
"""
时间类的错误 code 10300 - 10399
"""
pass
class TimeNoFormatError(TimeError):
def __init__(self):
"""
时间格式确实
"""
super()... | PypiClean |
/Iris_heureka_code-1.2.0-py3-none-any.whl/Iris_heureka_code/Event.py | class Event:
def __init__(self, *funcs):
"""
Klasse für eventbasierte Kommunikation.
:param funcs: Eine Aufzählung von Funktionspointern, die an das Event gebunden werden sollen.
"""
self.__functions: list = []
self.add_function(funcs)
pass
def add_funct... | PypiClean |
/Bluebook-0.0.1.tar.gz/Bluebook-0.0.1/pylot/component/static/pylot/vendor/mdeditor/bower_components/underscore/underscore-min.js | (function(){var n=this,t=n._,r=Array.prototype,e=Object.prototype,u=Function.prototype,i=r.push,a=r.slice,o=r.concat,l=e.toString,c=e.hasOwnProperty,f=Array.isArray,s=Object.keys,p=u.bind,h=function(n){return n instanceof h?n:this instanceof h?void(this._wrapped=n):new h(n)};"undefined"!=typeof exports?("undefined"!=ty... | PypiClean |
/Nevow-0.14.5.tar.gz/Nevow-0.14.5/examples/todo/controller.py | from zope.interface import implements
from nevow import rend, loaders, tags as t
from formless import annotate, webform
from time import time as now
import itodo
class ITodo(annotate.TypedInterface):
def insert(ctx=annotate.Context(),
description=annotate.String(required=True,
... | PypiClean |
/DNBC4-test-2.2.1.tar.gz/DNBC4-test-2.2.1/dnbc4tools/rna/src/scanpy_cluster.py | import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
import scanpy as sc
from typing import Tuple, List
import pandas as pd
import numpy as np
import seaborn as sns
import math
from anndata import AnnData
from sklearn.metrics import pairwise_distances
from dnbc4tools.__init__ import __root_dir__
cla... | PypiClean |
/GxSphinx-1.0.0.tar.gz/GxSphinx-1.0.0/sphinx/directives/other.py | import re
from typing import Any, Dict, List
from typing import cast
from docutils import nodes
from docutils.nodes import Element, Node
from docutils.parsers.rst import directives
from docutils.parsers.rst.directives.admonitions import BaseAdmonition
from docutils.parsers.rst.directives.misc import Class
from docutil... | PypiClean |
/BALISTICA-1.0.0.tar.gz/BALISTICA-1.0.0/balistica/GUI/NumericalV.py | import numpy as np
import matplotlib
import tkinter as tk
from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg
matplotlib.use("TkAgg")
from matplotlib import pyplot as plt
plt.rcParams.update({'figure.max_open_warning': 0})
from matplotlib.figure import Figure
from balistica.PhysicsEngine.NumericalVPhysicsHa... | PypiClean |
/FlexGet-3.9.6-py3-none-any.whl/flexget/ui/v1/src/plugins/execute/components/execute-stream/execute-stream.component.spec.js | describe('Plugin: Execute-stream.component', function () {
var controller;
beforeEach(function () {
bard.appModule('plugins.execute');
/* global $componentController, executeService, $rootScope */
bard.inject('$componentController', 'executeService', '$rootScope');
sinon.spy(e... | PypiClean |
/OctoPrint-FirmwareCheck-2021.10.11.tar.gz/OctoPrint-FirmwareCheck-2021.10.11/octoprint_firmware_check/checks/__init__.py | from __future__ import absolute_import, division, print_function, unicode_literals
__license__ = "GNU Affero General Public License http://www.gnu.org/licenses/agpl.html"
__copyright__ = "Copyright (C) 2019 The OctoPrint Project - Released under terms of the AGPLv3 License"
import logging
from octoprint.util import ... | PypiClean |
/Euphoria_CLI-0.3.0-py3-none-any.whl/src/abi/staking.py | import web3
address = web3.Web3().toChecksumAddress("0x95066025af40f7f7832f61422802cd1e13c23753")
ABI = [
{
"inputs": [
{"internalType": "address", "name": "_WAGMI", "type": "address"},
{"internalType": "address", "name": "_sWAGMI", "type": "address"},
{"internalType": "... | PypiClean |
/LabExT_pkg-2.2.0.tar.gz/LabExT_pkg-2.2.0/LabExT/Movement/Stages/DummyStage.py | from LabExT.Movement.Stage import Stage
class DummyStage(Stage):
"""
Simple Stage implementation for testing purposes.
"""
#
# Class description and properties
#
driver_loaded = True
driver_specifiable = False
description = "Dummy Stage Vendor"
@classmethod
def find_st... | PypiClean |
/0x-web3-5.0.0a5.tar.gz/0x-web3-5.0.0a5/web3/_utils/abi.py | import binascii
from collections import (
namedtuple,
)
import itertools
import re
from eth_abi import (
decoding,
encoding,
)
from eth_abi.codec import (
ABICodec,
)
from eth_abi.grammar import (
parse as parse_type_string,
)
from eth_abi.registry import (
BaseEquals,
registry as default_r... | PypiClean |
/Bubot_AdminPanel-0.0.2-py3-none-any.whl/BubotObj/OcfDevice/subtype/AdminPanel/static/ui/js/chunk-eff4bfa8.0b6a2a47.js | (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-eff4bfa8"],{"22da":function(t,e,i){"use strict";var a=i("490a");e["a"]=a["a"]},"490a":function(t,e,i){"use strict";i("99af"),i("a9e3"),i("8d4f");var a=i("a9ad"),s=i("80d2");e["a"]=a["a"].extend({name:"v-progress-circular",props:{button:Boolean,indetermin... | PypiClean |
/AMON-bio-1.0.0.tar.gz/AMON-bio-1.0.0/README.md | # AMON
[](https://pypi.python.org/pypi/AMON) [](https://travis-ci.org/lozuponelab/AMON) [](https://www.codacy.com/app/loz... | PypiClean |
/ECmean4-0.1.4.tar.gz/ECmean4-0.1.4/ecmean/global_mean.py | __author__ = "Paolo Davini (p.davini@isac.cnr.it), Sep 2022."
import os
import sys
import logging
import argparse
from multiprocessing import Process, Manager
from time import time
from tabulate import tabulate
import numpy as np
import xarray as xr
import yaml
import dask
from ecmean import Diagnostic, Supporter, Un... | PypiClean |
/DeepPhysX.Sofa-22.12.1.tar.gz/DeepPhysX.Sofa-22.12.1/examples/demos/Liver/UNet/Environment/utils.py | import math
import vedo
import os
os.environ['OPENBLAS_NUM_THREADS'] = '1'
os.environ['MKL_NUM_THREADS'] = '1'
import numpy as np
import Sofa.SofaBaseTopology
def compute_grid_resolution(max_bbox, min_bbox, cell_size, print_log=False):
"""
Compute the grid resolution from the desired cell size and the grid di... | PypiClean |
/FlaskCms-0.0.4.tar.gz/FlaskCms-0.0.4/flask_cms/static/js/ace/mode-autohotkey.js | ace.define("ace/mode/autohotkey_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 AutoHotKeyHighlightRules... | PypiClean |
/Ceygen-0.3.tar.gz/Ceygen-0.3/README.rst | ======
Ceygen
======
About
=====
Ceygen is a binary Python extension module for linear algebra with Cython_ `typed
memoryviews`_. Ceygen is built atop the `Eigen C++ library`_. Ceygen is **not** a Cython
wrapper or an interface to Eigen!
The name Ceygen is a rather poor wordplay on Cython + Eigen; it has nothing to ... | PypiClean |
/MarkDo-0.3.0.tar.gz/MarkDo-0.3.0/markdo/static/bower/codemirror/mode/sparql/sparql.js | CodeMirror.defineMode("sparql", function(config) {
var indentUnit = config.indentUnit;
var curPunc;
function wordRegexp(words) {
return new RegExp("^(?:" + words.join("|") + ")$", "i");
}
var ops = wordRegexp(["str", "lang", "langmatches", "datatype", "bound", "sameterm", "isiri", "isuri",
... | PypiClean |
/CMRESHandler-NtlmAuth-1.0.1.tar.gz/CMRESHandler-NtlmAuth-1.0.1/LICENSE.md | Copyright 2016 Carlos Manzanedo Rueda
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, soft... | PypiClean |
/Nuitka_fixed-1.1.2-cp310-cp310-win_amd64.whl/nuitka/nodes/StringConcatenationNodes.py | from .ConstantRefNodes import makeConstantRefNode
from .ExpressionBases import ExpressionChildTupleHavingBase
from .ExpressionShapeMixins import ExpressionStrOrUnicodeExactMixin
class ExpressionStringConcatenation(
ExpressionStrOrUnicodeExactMixin, ExpressionChildTupleHavingBase
):
kind = "EXPRESSION_STRING_C... | PypiClean |
/Cuckoo-2.0.7a1.tar.gz/Cuckoo-2.0.7a1/cuckoo/data/analyzer/darwin/lib/core/packages.py |
from ..dtrace.apicalls import apicalls
import inspect
from sets import Set
from os import sys, path
def choose_package_class(file_type, file_name, suggestion=None):
if suggestion is not None:
name = suggestion
else:
name = _guess_package_name(file_type, file_name)
if not name:
... | PypiClean |
/Adafruit_Blinka-8.20.1-py3-none-any.whl/adafruit_blinka/board/stm32/osd32mp1_brk.py | """Pin definitions for the Octavo OSD32MP1 BRK board."""
# See: https://octavosystems.com/octavosystems.com/wp-content/uploads/2020/05/Default-Pin-Mapping.pdf # pylint: disable=line-too-long
from adafruit_blinka.microcontroller.stm32.stm32mp157 import pin
# Board pin name = OSD32MP1 pin name = STM32MP1 pin name
# ... | PypiClean |
/BlendSCAD-20170429.0.0.2.zip/BlendSCAD-20170429.0.0.2/blendscad/primitives.py | import bpy
#import bpy_types
from mathutils import Vector
import blenderscad # for "global" variables fn, defColor,...
#from blenderscad.math import * # true, false required...
mylayers=blenderscad.mylayers
#mat=blenderscad.mat
# Construct a cube mesh
# bpy.ops.mesh.primitive_cube_add(view_align=False, enter_edi... | PypiClean |
/ESMValTool-2.9.0-py3-none-any.whl/esmvaltool/diag_scripts/land_carbon_cycle/shared.py | import os
import iris
import numpy as np
from iris import NameConstraint
from esmvaltool.diag_scripts.shared import select_metadata
def _apply_common_mask(*args):
"""
Apply common mask to all arrays passed as argument.
Argument:
--------
arrays
Return:
------
an array with ... | PypiClean |
/Flask-Split-JS-0.2.1.tar.gz/Flask-Split-JS-0.2.1/README.rst | Flask-Split-JS version 0.2.1
============================
.. image:: https://travis-ci.org/FelixLoether/flask-split-js.png?branch=master
Flask-Split-JS offers utilities for using
`Flask-Split <http://github.com/jpvanhal/flask-split>`_ from the browser
using JavaScript.
Setup
-----
On top of the Flask-Split setup, y... | PypiClean |
/Cosmos_Coin_Masternode_Setup-1.1.0-py3-none-any.whl/MasternodeSetup/vps.py |
# MIT License
#
# Copyright (c) 2018 Cosmos Coin Developers, https://cosmoscoin.co/
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the ri... | PypiClean |
/Editra-0.7.20.tar.gz/Editra-0.7.20/src/eclib/filterdlg.py | __author__ = "Cody Precord <cprecord@editra.org>"
__svnid__ = "$Id: filterdlg.py 65202 2010-08-06 15:49:23Z CJP $"
__revision__ = "$Revision: 65202 $"
__all__ = ["FilterDialog",]
#-----------------------------------------------------------------------------#
# Imports
import wx
# Eclib Imports
import ecbasewin
#---... | PypiClean |
/Bluebook-0.0.1.tar.gz/Bluebook-0.0.1/pylot/component/static/pylot/vendor/mdeditor/bower_components/codemirror/addon/edit/closebrackets.js | (function() {
var DEFAULT_BRACKETS = "()[]{}''\"\"";
var DEFAULT_EXPLODE_ON_ENTER = "[]{}";
var SPACE_CHAR_REGEX = /\s/;
CodeMirror.defineOption("autoCloseBrackets", false, function(cm, val, old) {
if (old != CodeMirror.Init && old)
cm.removeKeyMap("autoCloseBrackets");
if (!val) return;
var ... | PypiClean |
/Hasta-0.0.0a1.tar.gz/Hasta-0.0.0a1/LICENSE.md | Copyright (c) 2021-2021 Anoki Youssou
----------------------------------------------------------------------
**MIT LICENSE** :
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction... | PypiClean |
/Cryptem-0.1.1.tar.gz/Cryptem-0.1.1/cryptem.py | import hashlib
import os
import traceback
from ecies.utils import generate_key
import ecies
import coincurve
from cryptography.fernet import Fernet
class Crypt:
"""Encryption/decryption engine for bytearrays.
Can be used for single-session public-key/private-key cryptography
as well as for password secure... | PypiClean |
/BIA_OBS-1.0.3.tar.gz/BIA_OBS-1.0.3/BIA/static/dist/node_modules/flowbite/dist/datepicker.js | var __webpack_exports__ = {};
;// CONCATENATED MODULE: ./node_modules/flowbite-datepicker/js/lib/utils.js
function hasProperty(obj, prop) {
return Object.prototype.hasOwnProperty.call(obj, prop);
}
function lastItemOf(arr) {
return arr[arr.length - 1];
}
// push only the items not included in the array
function ... | PypiClean |
/IHEWAdataanalysis-0.0.1.tar.gz/IHEWAdataanalysis-0.0.1/docs/index.rst | =================
IHEWAdataanalysis
=================
This is the documentation of **IHEWAdataanalysis**.
**IHEWAdataanalysis** is a Reportion of tools to write standard report.
This project is fully developed by Water Accounting team at IHE-Delft.
`MiKTeX <https://miktex.org/>`_ is required to generate tex and pdf ... | PypiClean |
/NEURON-9.0a0-cp311-cp311-macosx_10_15_x86_64.whl/neuron/rxd/geometry.py | import warnings
import numpy
from neuron import h, nrn
from .rxdException import RxDException
try:
from neuron.rxd import geometry3d
has_geometry3d = True
except ImportError:
has_geometry3d = False
class RxDGeometry:
def volumes1d(self, sec):
raise RxDException("volume1d unimplemented")
... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.