id
stringlengths
1
265
text
stringlengths
6
5.19M
dataset_id
stringclasses
7 values
/Jug-2.3.0.tar.gz/Jug-2.3.0/jug/io.py
from .task import TaskGenerator, Tasklet __all__ = [ 'NoLoad', 'write_task_out', 'write_metadata', 'print_task_summary_table', ] class NoLoad(Tasklet): ''' NoLoad can be used to decorate a Task result such that when it is passed to another Task, then it is passed dir...
PypiClean
/EasyWidgets-0.4.1-py3-none-any.whl/ew/fields.py
from itertools import chain import traceback import warnings import six from six.moves.collections_abc import Mapping from formencode import schema as fes from formencode.foreach import ForEach from formencode import validators as fev from .validators import TimeConverter, DateConverter, UnicodeString from .widget im...
PypiClean
/GTW-1.2.6.tar.gz/GTW-1.2.6/_Werkzeug/Request.py
from __future__ import absolute_import, division, print_function, unicode_literals from _GTW import GTW from _TFL import TFL from _TFL.pyk import pyk import _GTW.Request_Data import _GTW._Werkzeug from _TFL._Meta.Once_Property import Once_Pro...
PypiClean
/Diofant-0.14.0a2.tar.gz/Diofant-0.14.0a2/diofant/tensor/array/__init__.py
r""" N-dim array module. Four classes are provided to handle N-dim arrays, given by the combinations dense/sparse (i.e. whether to store all elements or only the non-zero ones in memory) and mutable/immutable (immutable classes are Diofant objects, but cannot change after they have been created). Examples ======== T...
PypiClean
/Mathics_Django-6.0.0-py3-none-any.whl/mathics_django/web/media/js/mathjax/jax/output/SVG/fonts/Asana-Math/fontdata-extra.js
(function(x){var z="2.7.9";var o=x.FONTDATA.DELIMITERS;var p="H",d="V";var c="AsanaMathJax_Alphabets",u="AsanaMathJax_Arrows",w="AsanaMathJax_DoubleStruck",A="AsanaMathJax_Fraktur",g="AsanaMathJax_Latin",t="AsanaMathJax_Main",l="AsanaMathJax_Marks",v="AsanaMathJax_Misc",D="AsanaMathJax_Monospace",y="AsanaMathJax_NonUni...
PypiClean
/NlvWxPython-4.2.0-cp37-cp37m-win_amd64.whl/wx/lib/colourutils.py
__author__ = "Cody Precord <cprecord@editra.org>" import wx # Used on OSX to get access to carbon api constants if wx.Platform == '__WXMAC__': try: import Carbon.Appearance except ImportError: CARBON = False else: CARBON = True #----------------------------------------------------...
PypiClean
/DeepCell-CPU-0.12.9.tar.gz/DeepCell-CPU-0.12.9/deepcell/applications/nuclear_segmentation.py
from pathlib import Path import tensorflow as tf from deepcell_toolbox.processing import histogram_normalization from deepcell_toolbox.deep_watershed import deep_watershed from deepcell.applications import Application from deepcell.utils import fetch_data, extract_archive MODEL_KEY = 'models/NuclearSegmentation-75...
PypiClean
/Flask-Scaffold-0.5.1.tar.gz/Flask-Scaffold-0.5.1/app/templates/static/node_modules/angular-grid/src/ts/entities/columnGroup.ts
module awk.grid { export class ColumnGroup { pinned: any; name: any; allColumns: Column[] = []; displayedColumns: Column[] = []; expandable = false; expanded = false; actualWidth: number; constructor(pinned: any, name: any) { this.pinned...
PypiClean
/FlyForms-1.0.0b1.tar.gz/FlyForms-1.0.0b1/docs/build/html/_static/underscore-1.3.1.js
(function() { // Baseline setup // -------------- // Establish the root object, `window` in the browser, or `global` on the server. var root = this; // Save the previous value of the `_` variable. var previousUnderscore = root._; // Establish the object that gets returned to break out of a loop itera...
PypiClean
/Flask-AppBuilder-jwi078-2.1.13.tar.gz/Flask-AppBuilder-jwi078-2.1.13/flask_appbuilder/security/mongoengine/models.py
import datetime from flask import g from mongoengine import ( BooleanField, DateTimeField, Document, IntField, ListField, ReferenceField, StringField ) from ..._compat import as_unicode def get_user_id(): try: return g.user.id except Exception: return None class...
PypiClean
/FoilMesh-0.0.8.tar.gz/FoilMesh-0.0.8/foilmesh/meshio/vtu/_vtu.py
import base64 import re import sys import zlib import numpy as np from ..__about__ import __version__ from .._common import info, join_strings, raw_from_cell_data, replace_space, warn from .._exceptions import CorruptionError, ReadError from .._helpers import register_format from .._mesh import CellBlock, Mesh from ....
PypiClean
/Flask-Statics-Helper-1.0.0.tar.gz/Flask-Statics-Helper-1.0.0/flask_statics/static/angular/i18n/angular-locale_en-lc.js
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; function getDecimals(n) { n = n + ''; var i = n.indexOf('.'); return (i == -1) ? 0 : n.length - i - 1; } function getVF(n, opt_pre...
PypiClean
/HandGestureRec-0.1.7.tar.gz/HandGestureRec-0.1.7/README.md
# HandGestureRec # Short Summary: The library is an open source dynamic hand gesture recognition built using python with a Tkinter GUI and ML. using Tensorflow, Keras Api for TF, OpneCV for camera access and MediaPipe for hand landmarks detection https://github.com/AhmadBodayr/HandGestureRec ## Implementation: The lib...
PypiClean
/NREL-erad-0.0.0a0.tar.gz/NREL-erad-0.0.0a0/erad/utils/overpass.py
import json from typing import List import overpass import polars # Define your polygon coordinates as a string GROCERY_TAGS = [ 'shop=supermarket', 'shop=grocery', 'shop=convenience', 'shop=market', 'shop=healthfood', 'shop=organic' ] HOSPITAL_TAGS = [ 'amenity=hospital', 'healthcare=hospital', 'bu...
PypiClean
/Nuitka-1.8.tar.gz/Nuitka-1.8/nuitka/nodes/VariableAssignNodes.py
from abc import abstractmethod from nuitka.ModuleRegistry import getOwnerFromCodeName from nuitka.Options import isExperimental from .ConstantRefNodes import makeConstantRefNode from .NodeMakingHelpers import ( makeStatementExpressionOnlyReplacementNode, makeStatementsSequenceReplacementNode, ) from .shapes.C...
PypiClean
/Neodroid-0.4.9-py36-none-any.whl/neodroid/utilities/spaces/action_space.py
from neodroid.utilities.spaces.range import Range from neodroid.utilities.spaces.space import Space __author__ = "Christian Heider Nielsen" __all__ = ["ActionSpace"] import numpy from warg import cached_property class ActionSpace(Space): def sample(self): """ @return: @rtype: ...
PypiClean
/MetaGram-2.0.2.tar.gz/MetaGram-2.0.2/pyrogram/types/inline_mode/inline_query_result_photo.py
from typing import Optional, List import pyrogram from pyrogram import raw, types, utils, enums from .inline_query_result import InlineQueryResult class InlineQueryResultPhoto(InlineQueryResult): """Link to a photo. By default, this photo will be sent by the user with optional caption. Alternatively, y...
PypiClean
/HEpigram-0.1.tar.gz/HEpigram-0.1/hepigram/linter.py
import os from hepigram.mkdocs import DEFAULT_THEMES from hepigram.git_handler import CLONE_PATH class HEpigramLinter: @staticmethod def display(errors, warnings): if errors: raise Exception(errors.pop(0)) for warning in warnings: print('[WARNING] - ' + warning) @...
PypiClean
/DocOnce-1.5.15-py3-none-any.whl/doconce/publish_doconce.py
from builtins import str from publish import config _format_venue = config.formatting._format_venue from publish.common import short_author from publish.config.defaults import thesistype_strings import regex as re #------------------------------------------------------------------------------ # DocOnce formatting #---...
PypiClean
/Herring-0.1.49.tar.gz/Herring-0.1.49/herring/parallelize.py
import multiprocessing import threading import sys try: # noinspection PyPep8Naming import Queue as queue except ImportError: # noinspection PyUnresolvedReferences import queue as queue try: # python2 # noinspection PyCompatibility from StringIO import StringIO except ImportError: # ...
PypiClean
/ARS-0.5a2.zip/ARS-0.5a2/demos/IROS/example2_conical_pendulum.py
import ars.app from ars.app import Program, Simulation, logger from ars.model.simulator import signals import ars.utils.mathematical as mut import ars.constants as cts class Example2(Program): # simulation & window parameters CAMERA_POSITION = (6, 3, 6) FPS = 50 STEPS_PER_FRAME = 80 # bodies' parameters DELTA...
PypiClean
/ActiveReign-1.0.5.tar.gz/ActiveReign-1.0.5/ar3/helpers/misc.py
import re import socket from os import path from requests import post from random import choice from base64 import b64encode from datetime import datetime from string import ascii_letters, digits from urllib3 import disable_warnings, exceptions disable_warnings(exceptions.InsecureRequestWarning) def get_local_ip(): ...
PypiClean
/FamcyDev-0.3.71-py3-none-any.whl/Famcy/bower_components/bootstrap/js/src/toast.js
import { defineJQueryPlugin, reflow, typeCheckConfig } from './util/index' import EventHandler from './dom/event-handler' import Manipulator from './dom/manipulator' import BaseComponent from './base-component' /** * ------------------------------------------------------------------------ * Constants * ------...
PypiClean
/CNFgen-0.9.2-py3-none-any.whl/cnfgen/clihelpers/ordering_helpers.py
import argparse from cnfgen.families.ordering import OrderingPrinciple from cnfgen.families.ordering import GraphOrderingPrinciple from cnfgen.clitools import ObtainSimpleGraph from cnfgen.clitools import CLIParser, compose_two_parsers from cnfgen.clitools import make_graph_from_spec, make_graph_doc from .formula_he...
PypiClean
/FlexGet-3.9.6-py3-none-any.whl/flexget/components/managed_lists/lists/movie_list/api.py
import copy from math import ceil from flask import jsonify, request from loguru import logger from sqlalchemy.orm.exc import NoResultFound from flexget.api import APIResource, api from flexget.api.app import ( BadRequest, Conflict, NotFoundError, base_message_schema, etag, pagination_headers,...
PypiClean
/Client_API_VN-2.11.1.tar.gz/Client_API_VN-2.11.1/src/export_vn/regulator.py
import logging from . import _, __version__ from typing import Optional, Tuple logger = logging.getLogger("transfer_vn.regulator") class PID(object): """A simple PID controller. No fuss.""" Limits = Tuple[Optional[float], Optional[float]] Tunings = Tuple[float, float, float] def __init__( ...
PypiClean
/Autologging-1.3.2.zip/Autologging-1.3.2/doc/build/html/_static/js/modernizr.min.js
;window.Modernizr=function(a,b,c){function D(a){j.cssText=a}function E(a,b){return D(n.join(a+";")+(b||""))}function F(a,b){return typeof a===b}function G(a,b){return!!~(""+a).indexOf(b)}function H(a,b){for(var d in a){var e=a[d];if(!G(e,"-")&&j[e]!==c)return b=="pfx"?e:!0}return!1}function I(a,b,d){for(var e in a){var...
PypiClean
/onnx_api/midas.py
from typing import Union import cv2 import numpy as np import onnxruntime as rt from .utils import download_weight WEIGHT_PATH = { "small": "https://github.com/NMZ0429/NaMAZU/releases/download/Checkpoint/mono_depth_small.onnx", "large": "https://github.com/NMZ0429/NaMAZU/releases/download/Checkpoint/mono_dep...
PypiClean
/MindsDB-23.8.3.0.tar.gz/MindsDB-23.8.3.0/mindsdb/integrations/handlers/autokeras_handler/autokeras_handler.py
import random import string from typing import Optional import os import pandas as pd import numpy as np import autokeras as ak from sklearn import preprocessing from mindsdb.integrations.libs.base import BaseMLEngine from tensorflow.keras.models import load_model # Makes this run on systems where this arg isn't spec...
PypiClean
/Helmholtz-0.2.0.tar.gz/Helmholtz-0.2.0/helmholtz/location/models.py
from django.db import models from helmholtz.units.fields import PhysicalQuantityField from helmholtz.neuralstructures.models import BrainRegion#, Atlas from helmholtz.equipment.models import StereotaxicType ap_choices = (('A', 'anterior'), ('M', 'medial'), ('P', 'posterior')) lt_choices = (('L', 'left'), ('R', 'right'...
PypiClean
/Flask-Statics-Helper-1.0.0.tar.gz/Flask-Statics-Helper-1.0.0/flask_statics/static/BootstrapValidator/js/language/it_IT.js
(function ($) { /** * Italian language package * Translated by @maramazza */ $.fn.bootstrapValidator.i18n = $.extend(true, $.fn.bootstrapValidator.i18n, { base64: { 'default': 'Si prega di inserire un valore codificato in Base 64' }, between: { 'def...
PypiClean
/Assimulo-3.0.tar.gz/Assimulo-3.0/assimulo/examples/kinsol_ors.py
# Copyright (C) 2010 Modelon AB # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published by # the Free Software Foundation, version 3 of the License. # # This program is distributed in the hope that it will be useful, # but WITH...
PypiClean
/Heralding-1.0.7.tar.gz/Heralding-1.0.7/heralding/capabilities/vnc.py
# This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along...
PypiClean
/Housing_pred-0.1-py3-none-any.whl/src/score.py
# In[3]: import argparse import logging import os import pickle import mlflow import mlflow.sklearn # In[4]: import numpy as np import pandas as pd from sklearn.base import BaseEstimator, TransformerMixin from sklearn.compose import ColumnTransformer from sklearn.impute import SimpleImputer from sklearn.metrics ...
PypiClean
/OASYS1_HALF_SRW-0.0.3-py3-none-any.whl/orangecontrib/srw/widgets/tools/ow_beamline_renderer.py
import numpy from Shadow import OE, IdealLensOE, CompoundOE from orangecontrib.srw.util.srw_objects import SRWData from wofrysrw.storage_ring.light_sources.srw_bending_magnet_light_source import SRWBendingMagnetLightSource from wofrysrw.storage_ring.light_sources.srw_gaussian_light_source import SRWGaussianLightSour...
PypiClean
/KeralaPyApiV2-2.0.2020.tar.gz/KeralaPyApiV2-2.0.2020/README.md
<b>Telegram MTProto API Framework for Python</b> <br> <a href="https://docs.pyrogram.org"> Documentation </a> • <a href="https://github.com/pyrogram/pyrogram/releases"> Releases </a> • <a href="https://t.me/Pyrogram"> Community </a> </p> ## Program ``` py...
PypiClean
/Heaty-2020.10b2.tar.gz/Heaty-2020.10b2/heaty/quantity/scalar.py
from typing import Union, List from heaty.quantity import _PintQty, unit_registry import pint.errors as errors class Quantity(_PintQty): def __new__( cls, value: Union[float, int, str], unit: str ): value = cls._validate_value(value) return super().__new__(...
PypiClean
/BayGPGO-0.3.2.tar.gz/BayGPGO-0.3.2/GPGO/GaussianProcess/Kernel/Matern.py
from .Kernel import Kernel from numpy import sum, exp from numpy.linalg import norm from numpy import ndarray import numpy as np import matplotlib.pyplot as plt class Matern(Kernel): """ RBF Kernel type class. Type: Kernel, Subtype: RBF Init method require the hyperparameters as an input (normal is sigma:...
PypiClean
/HPCCSystemsECLDOc-2.0.0.tar.gz/HPCCSystemsECLDOc-2.0.0/ecldoc/genXML.py
import os import re import json import subprocess from copy import deepcopy from lxml import etree from lxml.builder import E from .Utils import genPathTree from .Utils import joinpath, relpath, dirname, realpath from .Utils import read_file from .parseDoc import parseDocstring, cleansign, breaksign class ParseXML...
PypiClean
/MindTree-1.0.0-a002.zip/MindTree-1.0.0-a002/Tree.py
import copy import uuid class InvalidPathError( Exception ): def __init__( self, msg=None ): Exception.__init__( self, msg ) class TreePath( object ): SEPARATOR = '.' def __init__( self, aPath=[] ): assert isinstance( aPath, (str,unicode,list,uuid.UUID,TreePath) ) if isinsta...
PypiClean
/MezzanineFor1.7-3.1.10.tar.gz/MezzanineFor1.7-3.1.10/mezzanine/generic/migrations/south/0009_auto__del_field_threadedcomment_email_hash.py
import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models try: from django.contrib.auth import get_user_model except ImportError: # django < 1.5 from django.contrib.auth.models import User else: User = get_user_model() user_orm_label = '%s.%s' % (User._meta...
PypiClean
/KratosStructuralMechanicsApplication-9.4-cp310-cp310-win_amd64.whl/KratosMultiphysics/StructuralMechanicsApplication/structural_mechanics_adjoint_static_solver.py
import KratosMultiphysics # Import applications import KratosMultiphysics.StructuralMechanicsApplication as StructuralMechanicsApplication from KratosMultiphysics.StructuralMechanicsApplication.structural_mechanics_solver import MechanicalSolver def CreateSolver(model, custom_settings): return StructuralMechanic...
PypiClean
/Flootty-3.3.0-py3-none-any.whl/flootty/floo/common/proxy.py
import sys try: from . import shared as G, utils, reactor from .handlers import base from .protocols import floo_proto except (ImportError, ValueError): import msg import shared as G import reactor from handlers import base from protocols import floo_proto # KANS: this should use base...
PypiClean
/Contentstack-1.8.0.tar.gz/Contentstack-1.8.0/contentstack/assetquery.py
r"""This call fetches the list of all the assets of a particular stack. It also returns the content of each asset in JSON format. You can also specify the environment of which you wish to get the assets. """ import json import logging from contentstack.basequery import BaseQuery from contentstack.utility import Utils...
PypiClean
/Moshu_QtMesseger_client-0.1.tar.gz/Moshu_QtMesseger_client-0.1/client/common/metaclasses.py
import dis class ServerMaker(type): ''' Метакласс, проверяющий что в результирующем классе нет клиентских вызовов таких как: connect. Также проверяется, что серверный сокет является TCP и работает по IPv4 протоколу. ''' def __init__(cls, clsname, bases, clsdict): # Список методов, кото...
PypiClean
/JsonNetworkStream-2.0.tar.gz/JsonNetworkStream-2.0/server/my_server.py
import socket import pickle import json import os import threading from secure import * class DataStreamServer: s = None port = None host = None kill_server = False server_encryption_key = None # variables users = [] online_users = [] #contains list of - tuple(stream,username) online_users_username = [] o...
PypiClean
/Blue-DiscordBot-3.2.0.tar.gz/Blue-DiscordBot-3.2.0/bluebot/core/drivers/red_json.py
from pathlib import Path from typing import Tuple import copy import weakref import logging from ..json_io import JsonIO from .red_base import BaseDriver, IdentifierData __all__ = ["JSON"] _shared_datastore = {} _driver_counts = {} _finalizers = [] log = logging.getLogger("bluebot.json_driver") def finalize_dri...
PypiClean
/NREL_reVX-0.3.53-py3-none-any.whl/reVX/setbacks/base.py
import os import logging from copy import deepcopy from warnings import warn from math import floor, ceil from itertools import product from abc import abstractmethod from concurrent.futures import as_completed import numpy as np import geopandas as gpd from shapely.ops import unary_union from shapely.validation impor...
PypiClean
/Flask-CKEditor-0.4.6.tar.gz/Flask-CKEditor-0.4.6/flask_ckeditor/static/full/plugins/a11yhelp/dialogs/lang/fo.js
/* Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ CKEDITOR.plugins.setLang("a11yhelp","fo",{title:"Accessibility Instructions",contents:"Help Contents. To close this dialog press ESC.",legend:[{name:"Gene...
PypiClean
/GridDataFormats-1.0.1.tar.gz/GridDataFormats-1.0.1/README.rst
============================ README for GridDataFormats ============================ |build| |cov| |docs| |zenodo| |conda| The **GridDataFormats** package provides classes to unify reading and writing n-dimensional datasets. One can read grid data from files, make them available as a `Grid`_ object, and write out th...
PypiClean
/Hunabku-0.0.15-py3-none-any.whl/hunabku/templates/plugin/HunabKu_template/README.md
<center><img src="https://raw.githubusercontent.com/colav/colav.github.io/master/img/Logo.png"/></center> # HunabKu template plugin This is a template for xyz project replace template for the name of the plugin everiwhere. # Description Write something meaningful her ;) # Installation ## Dependencies What do I nee...
PypiClean
/Ageas-0.0.1a6.tar.gz/Ageas-0.0.1a6/ageas/classifier/transformer.py
import math import torch import torch.nn as nn import torch.nn.functional as func from torch.nn import TransformerEncoder, TransformerEncoderLayer import ageas.classifier as classifier class Positional_Encoding(nn.Module): """ Inject some information about the relative or absolute position of the tokens i...
PypiClean
/Adeepspeed-0.9.2.tar.gz/Adeepspeed-0.9.2/deepspeed/runtime/config.py
# DeepSpeed Team import os from typing import Union from enum import Enum import torch import json import hjson import copy import base64 from .constants import * from .fp16.loss_scaler import ( INITIAL_LOSS_SCALE, SCALE_WINDOW, DELAYED_SHIFT, MIN_LOSS_SCALE, ) from .config_utils import ( get_sc...
PypiClean
/ClueDojo-1.4.3-1.tar.gz/ClueDojo-1.4.3-1/src/cluedojo/static/dojox/dtl/tag/loop.js
if(!dojo._hasResource["dojox.dtl.tag.loop"]){ dojo._hasResource["dojox.dtl.tag.loop"]=true; dojo.provide("dojox.dtl.tag.loop"); dojo.require("dojox.dtl._base"); dojo.require("dojox.string.tokenize"); (function(){ var dd=dojox.dtl; var _1=dd.tag.loop; _1.CycleNode=dojo.extend(function(_2,_3,_4,_5){ this.cyclevars=_2; th...
PypiClean
/Deliverance.Rewrite-0.6.3.tar.gz/Deliverance.Rewrite-0.6.3/deliverance/stringmatch.py
import fnmatch import re from deliverance.util.converters import asbool __all__ = ['compile_matcher', 'compile_header_matcher', 'MatchSyntaxError'] _prefix_re = re.compile(r'^([a-z_-]+):', re.I) def compile_matcher(s, default=None): """ Compiles the match string to a match object. Match objects are call...
PypiClean
/OASYS1-ESRF-Extensions-0.0.69.tar.gz/OASYS1-ESRF-Extensions-0.0.69/orangecontrib/esrf/shadow/util/python_script.py
__author__ = 'labx' import sys import code import keyword import itertools from PyQt5 import QtGui, QtWidgets from PyQt5.QtCore import QItemSelectionModel from PyQt5.QtGui import ( QTextCursor, QFont, QColor, QPalette ) from PyQt5.QtCore import Qt, QRegExp def text_format(foreground=Qt.black, weight=QFont.Nor...
PypiClean
/AutoDiffpyy-1.0.tar.gz/AutoDiffpyy-1.0/AutoDiffpy/dual.py
import numpy as np class Dual: """Class to implement dual numbers.""" _supported_types = (int, float) def __init__(self, real, dual=1): """Constrctor for Dual class. Parameters ---------- real : int, float Can either take in int or float type objects. ...
PypiClean
/HealthCheckIOAPI-1.0.3.tar.gz/HealthCheckIOAPI-1.0.3/healthcheckio/hc_ping.py
import requests import healthcheckio.hc_log as hc_log class ping(): def __init__(self,uuid,api_key=None,*args,**kwargs): self.uuid=uuid self.api_key = api_key self.log = hc_log.log('HealthCheck.PING',debug=False) self.log.debug(f'Loading PING Object for {self.uuid}') self.BA...
PypiClean
/MistrasDTA-0.1.2.tar.gz/MistrasDTA-0.1.2/README.md
# MistrasDTA Python module to read acoustic emissions hit data and waveforms from Mistras DTA files. The structure of these binary files is detailed in Appendix II of the Mistras user manual. # Usage Read the hit summary table from a DTA file: ``` import MistrasDTA rec, _ = MistrasDTA.read_bin('cluster.DTA', skip_wfm=...
PypiClean
/EDA-assistant-0.0.4.tar.gz/EDA-assistant-0.0.4/eda_assistant/_calc_dataframe_statistics.py
def count_cols(df): """ Returns the number of columns in the dataset. Parameters: df (pandas DataFrame): Dataset to perform calculation on Returns: num_cols (int): Number of columns in df """ num_cols = len(df.columns) return num_cols def count_rows(df): ...
PypiClean
/Nuitka_winsvc-1.7.10-cp310-cp310-win_amd64.whl/nuitka/tree/ReformulationExecStatements.py
from nuitka.nodes.BuiltinRefNodes import ExpressionBuiltinExceptionRef from nuitka.nodes.ComparisonNodes import ExpressionComparisonIs from nuitka.nodes.ConditionalNodes import ( ExpressionConditional, makeStatementConditional, ) from nuitka.nodes.ConstantRefNodes import ( ExpressionConstantNoneRef, mak...
PypiClean
/ImSwitchUC2-2.1.0.tar.gz/ImSwitchUC2-2.1.0/imswitch/imcommon/model/modulesconfigtools.py
import dataclasses import importlib import os import pkgutil from dataclasses import dataclass from typing import List from dataclasses_json import dataclass_json import imswitch from imswitch.imcommon.model import dirtools @dataclass_json @dataclass(frozen=True) class _Modules: enabled: List[str] def getEnab...
PypiClean
/KnitCryption-2.1.0rc1.tar.gz/KnitCryption-2.1.0rc1/KnitCrypter/encrypt_utils/classes/_Needle_Struct.py
from .error_checks._Encrypt_Cases import _verify_file_encrypted from .error_checks._Encrypt_Errors import EncryptionError from abc import ABCMeta, abstractmethod ENCRYPTED = '###_________#FILE_ENCRYPTED#_________###' def _split_tied_string(pattern, string): string = string.strip('\n') string = string.split(p...
PypiClean
/EnergySystemModels-0.1.17.post63-py3-none-any.whl/ThermodynamicCycles/Pump/Pump_m.py
from ThermodynamicCycles.FluidPort.FluidPort import FluidPort from CoolProp.CoolProp import PropsSI class Object: def __init__(self): ####parameter self.eta_is=0.7 self.MecEff = 1 #"rendement mecanique" self.VolEff = 0.99 # "rendement volumetrique"; self.cyl= 0.0...
PypiClean
/Allegra-0.63.zip/Allegra-0.63/lib/async_net.py
"http://laurentszyster.be/blog/async_net/" import collections, socket from allegra import async_core class NetstringError (Exception): pass def collect_net (next, buffer, collect, terminate): "consume a buffer of netstrings into a stallable collector sink" lb = len (buffer) if next > 0: ...
PypiClean
/CodeIntel-2.0.0b19-cp34-cp34m-macosx_10_12_x86_64.whl/codeintel/codeintel2/lib_srcs/node.js/0.12/process.js
var process = {}; process.__proto__ = events.EventEmitter; /** * Note: this function is only available on POSIX platforms (i.e. not * Windows, Android) * @param id */ process.setuid = function(id) {} /** * Once the current event loop turn runs to completion, call the callback * function. * @param callback {Fun...
PypiClean
/JMRPi.Spark.Foundations-1.0.7.tar.gz/JMRPi.Spark.Foundations-1.0.7/JMRPiFoundations/Utiles/OSInfo.py
import subprocess import re class OSInfo: def _cmd(self, cmdParams): cmd = subprocess.Popen( cmdParams, stdout=subprocess.PIPE, stderr=subprocess.PIPE) out,error = cmd.communicate() return out.splitlines() def bytesUnit2HM(self, n): """! bytes2Unit(10000) => '9K...
PypiClean
/Akhet-2.0.tar.gz/Akhet-2.0/docs/library/urlgenerator.rst
URL generator %%%%%%%%%%%%% A class that consolidates Pyramid's various URL-generating functions into one concise API that's convenient for templates. It performs the same job as ``pylons.url`` in Pylons applications, but the API is different. Pyramid has several URL-generation routines but they're scattered between ...
PypiClean
/OASYS1-WONDER-1.0.45.tar.gz/OASYS1-WONDER-1.0.45/orangecontrib/wonder/widgets/wonder/ow_free_input_parameters.py
import sys from PyQt5.QtWidgets import QMessageBox, QScrollArea, QApplication from PyQt5.QtCore import Qt from orangewidget.settings import Setting from orangewidget.widget import OWAction from orangewidget import gui as orangegui from orangecontrib.wonder.widgets.gui.ow_generic_widget import OWGenericWidget from o...
PypiClean
/FastAPI-Mako-0.6.2.tar.gz/FastAPI-Mako-0.6.2/README.md
# fastapi-mako Mako templaye support for FastAPI ## Install ```bash pip install FastAPI-Mako ``` ## Use ```python from fastapi import FastAPI from fastapi_mako import FastAPIMako app = FastAPI() app.__name__ = 'fast_blog' # Your application folder name mako = FastAPIMako(app) @app.get('/', response_class=HTMLRe...
PypiClean
/FatBotSlim-0.2.tar.gz/FatBotSlim-0.2/fatbotslim/irc/colors.py
class ColorMessage(object): """ Allows to create colorized strings. Created objects behave like real strings, allowing to call `str` methods. """ _colors = { 'white': u'\u000300', 'black': u'\u000301', 'dark_blue': u'\u000302', 'dark_green': u'\u000...
PypiClean
/360monitoringcli-1.0.19-py3-none-any.whl/cli360monitoring/lib/nodes.py
import json from prettytable import PrettyTable from .api import apiGet from .config import Config from .functions import printError, printWarn class Nodes(object): def __init__(self, config: Config, format: str = 'table'): self.config = config self.format = format self.nodes = None ...
PypiClean
/django-chuck-0.2.3.tar.gz/django-chuck/modules/feincms/project/static/scripts/libs/tiny_mce/plugins/table/editor_plugin_src.js
(function(tinymce) { var each = tinymce.each; // Checks if the selection/caret is at the start of the specified block element function isAtStart(rng, par) { var doc = par.ownerDocument, rng2 = doc.createRange(), elm; rng2.setStartBefore(par); rng2.setEnd(rng.endContainer, rng.endOffset); elm = doc.createE...
PypiClean
/NeuroDynamics-0.1.1.tar.gz/NeuroDynamics-0.1.1/docs/index.rst
NumpyBrain documentation ======================== ``NumpyBrain`` is a microkernel framework for SNN (spiking neural network) simulation purely based on **native** python. It only relies on `NumPy <https://numpy.org/>`_. However, if you want to get faster performance,you can additionally install `Numba <http://numba.py...
PypiClean
/Banyan-0.1.5.tar.gz/Banyan-0.1.5/banyan/_frozen_set.py
from banyan_c import FrozenSetTree from banyan_c import TreeView from ._common_base import _CommonInitInfo from ._common_base import _updator_metadata from ._common_base import _adopt_updator_methods from ._common_base import RED_BLACK_TREE from ._common_base import SPLAY_TREE from ._common_base import SORTED_LIST from...
PypiClean
/JSRope-0.1.3-py3-none-any.whl/jsrope/flask.py
from functools import wraps, reduce import flask import jsrope def ajax_handler(ajax, data_name="ajax_data"): def _wrapper(f): @wraps(f) def wrapper(*args, **kwargs): if "dataType" in ajax.settings and ajax.settings["dataType"] == "script": method = "GET" ...
PypiClean
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/timing/ThreadPool.js
define("dojox/timing/ThreadPool",["./_base"],function(){ dojo.experimental("dojox.timing.ThreadPool"); var t=dojox.timing; t.threadStates={UNSTARTED:"unstarted",STOPPED:"stopped",PENDING:"pending",RUNNING:"running",SUSPENDED:"suspended",WAITING:"waiting",COMPLETE:"complete",ERROR:"error"}; t.threadPriorities={LOWEST:1,...
PypiClean
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/highlight/languages/pygments/javascript.js.uncompressed.js
define("dojox/highlight/languages/pygments/javascript", ["dojox/main", "../../_base"], function(dojox){ var dh = dojox.highlight, dhc = dh.constants; dh.languages.javascript = { defaultMode: { lexems: ["\\b[a-zA-Z]+"], keywords: { "keyword": { "for": 1, "in": 1, "while": 1, "do": 1, "break": 1, "ret...
PypiClean
/Axelrod-4.13.0.tar.gz/Axelrod-4.13.0/axelrod/strategies/punisher.py
from axelrod.action import Action from axelrod.player import Player C, D = Action.C, Action.D class Punisher(Player): """ A player starts by cooperating however will defect if at any point the opponent has defected, but forgets after meme_length matches, with 1<=mem_length<=20 proportional to the amo...
PypiClean
/ImSwitchUC2-2.1.0.tar.gz/ImSwitchUC2-2.1.0/imswitch/imcontrol/model/interfaces/pyicic/IC_GrabberDLL.py
import ctypes.util from ctypes import * import os import sys from . import IC_Structures as structs class IC_GrabberDLL: """ ctypes funcs to talk to tisgrabber.dll. """ GrabberHandlePtr = POINTER(structs.GrabberHandle) # win32 if sys.maxsize > 2**32: _ic_grabber_dll = windl...
PypiClean
/Async_Server-0.0.1-py3-none-any.whl/server/config_window.py
from PyQt5.QtWidgets import QDialog, QLabel, QLineEdit, QPushButton, QFileDialog, QMessageBox from PyQt5.QtCore import Qt import os class ConfigWindow(QDialog): '''Класс окно настроек.''' def __init__(self, config): super().__init__() self.config = config self.initUI() def initUI...
PypiClean
/CS1Adventure_pkg-0.0.1.tar.gz/CS1Adventure_pkg-0.0.1/packages/parser/parser.py
import os class parser: def __init__(self, world): self.world = world def start(self,isNew): if isNew: print "\nWelcome to " + self.world.name + ". " + self.world.description; if len(self.world.areas) > 0: self.world.displayAreaDescription() else:...
PypiClean
/BigJob2-0.54.post73.tar.gz/BigJob2-0.54.post73/examples/tutorial/barebones-local/local_mandelbrot.py
import os, time, sys from PIL import Image import bliss.saga as saga from pilot import PilotComputeService, ComputeDataService, State # the dimension (in pixel) of the whole fractal imgx = 8192 imgy = 8192 # the number of tiles in X and Y direction tilesx = 2 tilesy = 2 ### This is the number of jobs you want to...
PypiClean
/Amara-2.0.0a6.tar.bz2/Amara-2.0.0a6/test/xslt/borrowed/resources/README.slides.xsl
slides.xsl is a creation of Elliotte Rusty Harold, as explained in the message below. Note that one of the links in the message is wrong. "http://metalab.unc.edu/xml/slides/xmlsig0899/xml.xll" should read "http://metalab.unc.edu/xml/slides/xmlsig0899/xll.xml" =========== From: Elliotte Rusty Harold [mailto:elh...
PypiClean
/FlaskCms-0.0.4.tar.gz/FlaskCms-0.0.4/flask_cms/static/js/ace/mode-d.js
ace.define("ace/mode/doc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"], function(require, exports, module) { "use strict"; var oop = require("../lib/oop"); var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules; var DocCommentHighlightRule...
PypiClean
/IOT3ApiClient-1.0.0.tar.gz/IOT3ApiClient-1.0.0/urllib3/_collections.py
from __future__ import absolute_import try: from collections.abc import Mapping, MutableMapping except ImportError: from collections import Mapping, MutableMapping try: from threading import RLock except ImportError: # Platform-specific: No threads available class RLock: def __enter__(self): ...
PypiClean
/AWSDeploy-0.0.97.tar.gz/AWSDeploy-0.0.97/com/danielcreager/AmazonWebSrvc.py
__all__ = ['AppSpecFactory', 'AWSToolbox'] ''' Copyright 2016 Daniel Ross Creager 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 ...
PypiClean
/Argonaut-0.3.4.tar.gz/Argonaut-0.3.4/argonaut/public/ckeditor/skins/kama/skin.js
/* Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.skins.add('kama',(function(){var a=[],b='cke_ui_color';if(CKEDITOR.env.ie&&CKEDITOR.env.version<7)a.push('icons.png','images/sprites_ie6.png','images/dialog_sides.g...
PypiClean
/kiln-0.1.tar.gz/kiln/bench/basic.py
from cgi import escape import os from StringIO import StringIO import sys import timeit __all__ = ['clearsilver', 'myghty', 'django', 'kid', 'genshi', 'cheetah'] def genshi(dirname, verbose=False): from genshi.template import TemplateLoader loader = TemplateLoader([dirname], auto_reload=False) template = ...
PypiClean
/Levenshtein_search-1.4.6.tar.gz/Levenshtein_search-1.4.6/README.md
# Levenshtein_search By Matt Anderson. 2016-2019 [![Linux build](https://img.shields.io/travis/mattandahalfew/Levenshtein_search.svg?style=flat-square&label=Linux%20build)](https://travis-ci.org/mattandahalfew/Levenshtein_search)[![Mac OS X build](https://img.shields.io/travis/mattandahalfew/Levenshtein_search.svg?sty...
PypiClean
/Dialogs-1.0.tar.gz/Dialogs-1.0/src/dialogs/sentence.py
import logging from dialogs.sentence_types import * from dialogs.helpers.sentence_atoms import * from dialogs.helpers.printers import pprint, level_marker from dialogs.helpers.helpers import colored_print from dialogs.resources_manager import ResourcePool from functools import reduce class Sentence(object): ""...
PypiClean
/Mathics3-6.0.2.tar.gz/Mathics3-6.0.2/mathics/format/svg.py
from mathics.builtin.box.graphics import ( ArrowBox, BezierCurveBox, FilledCurveBox, GraphicsBox, InsetBox, LineBox, PointBox, PolygonBox, RectangleBox, _ArcBox, _RoundBox, ) from mathics.builtin.drawing.graphics3d import Graphics3DElements from mathics.builtin.graphics impor...
PypiClean
/CAMELS_library-0.3.tar.gz/CAMELS_library-0.3/setup/SIMBA/SIMBA_submitter.py
import numpy as np import sys,os ####################################### INPUT ########################################### nodes_per_sim = 1 start = 0 #350 #first realization to do end = 87 #400 #last realization do do ###########################################################################...
PypiClean
/B9gemyaeix-4.14.1.tar.gz/B9gemyaeix-4.14.1/weblate/addons/scripts.py
import os from weblate.addons.base import BaseAddon from weblate.utils.render import render_template from weblate.utils.site import get_site_url class BaseScriptAddon(BaseAddon): """Base class for script executing addons.""" icon = "script.svg" script = None add_file = None alert = "AddonScrip...
PypiClean
/KratosStatisticsApplication-9.4-cp39-cp39-win_amd64.whl/KratosMultiphysics/StatisticsApplication/spatial_statistics_process.py
import KratosMultiphysics as Kratos from KratosMultiphysics.process_factory import KratosProcessFactory from KratosMultiphysics.StatisticsApplication.method_utilities import GetAvailableMethods from KratosMultiphysics.StatisticsApplication.method_utilities import GetNormTypeContainer from KratosMultiphysics.Statistics...
PypiClean
/Costina-0.0.3.zip/Costina-0.0.3/costina/grequests.py
from functools import partial import traceback try: import gevent from gevent import monkey as curious_george from gevent.pool import Pool except ImportError: raise RuntimeError('Gevent is required for grequests.') # Monkey-patch. curious_george.patch_all(thread=False, select=False) from requests impo...
PypiClean
/IdracRedfishSupport-0.0.8.tar.gz/IdracRedfishSupport-0.0.8/RenameVdREDFISH.py
import argparse import getpass import json import logging import re import requests import sys import time import warnings from datetime import datetime from pprint import pprint warnings.filterwarnings("ignore") parser=argparse.ArgumentParser(description="Python script using Redfish API with OEM extension to eithe...
PypiClean
/Netzob-2.0.0.tar.gz/Netzob-2.0.0/src/netzob/Fuzzing/Mutators/all.py
#+---------------------------------------------------------------------------+ #| 01001110 01100101 01110100 01111010 01101111 01100010 | #| | #| Netzob : Inferring communication protocols | #+-...
PypiClean
/JanexPT-0.0.40.tar.gz/JanexPT-0.0.40/README.md
# Janex A free open-source framework which can be used to build Machine Learning tools, LLMs, and Natural Language Processing scripts with full simplicity. This edition of Janex is built reliant on the main Janex library, and utilises PyTorch and the Natural Language Toolkit to attempt a slightly different approach of ...
PypiClean
/MSM_PELE-1.1.1-py3-none-any.whl/AdaptivePELE/AdaptivePELE/analysis/splitTrajectory.py
from __future__ import absolute_import, division, print_function, unicode_literals from AdaptivePELE.utilities import utilities from AdaptivePELE.atomset import atomset import argparse import os try: basestring except NameError: basestring = str def parseArguments(): desc = "Program that writes a trajecto...
PypiClean