id
stringlengths
1
265
text
stringlengths
6
5.19M
dataset_id
stringclasses
7 values
/Dreamy_Utilities-1.2.0-py3-none-any.whl/dreamy_utilities/Text.py
# # # # Imports. # # # # Standard packages. from datetime import date, datetime import re from typing import Any, List, Optional, Tuple # Non-standard packages. from babel.dates import format_date from babel.numbers import format_decimal from titlecase import titlecase # # # # Constants. # # # VALID_ROMAN_NUMERA...
PypiClean
/Juno-0.1.2.tar.gz/Juno-0.1.2/juno.py
import mimetypes import re import os import sys # Server imports import urlparse import cgi class Juno(object): def __init__(self, configuration=None): """Takes an optional configuration dictionary. """ global _hub if _hub is not None: print >>sys.stderr, 'Warning: there is alre...
PypiClean
/KratosConvectionDiffusionApplication-9.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/KratosMultiphysics/ConvectionDiffusionApplication/convection_diffusion_analysis.py
import KratosMultiphysics from KratosMultiphysics.ConvectionDiffusionApplication import python_solvers_wrapper_convection_diffusion as solver_wrapper # Importing the base class from KratosMultiphysics.analysis_stage import AnalysisStage # Other imports import sys class ConvectionDiffusionAnalysis(AnalysisStage): ...
PypiClean
/Akvo-1.7.2-py3-none-any.whl/akvo/tressel/logbarrier.py
from __future__ import division import numpy as np from scipy.sparse.linalg import iterative as iter from scipy.sparse import eye as seye import pylab import pprint from scipy.optimize import nnls import matplotlib.pyplot as plt from akvo.tressel.SlidesPlot import * def PhiB(mux, minVal, x): phib = mux * np...
PypiClean
/FuckItPy-0.0.2.tar.gz/FuckItPy-0.0.2/README.md
FuckItPy ======== ### Python Error Steamroller FuckItPy uses state-of-the-art technology to make sure your python code runs whether your compiler likes it or not. Technology ---------- Through a process known as *Exec-Rinse-Reload-And-Repeat*, FuckItPy repeatedly execs your code, detecting errors and slicing those l...
PypiClean
/Gravelamps-2.3.tar.gz/Gravelamps-2.3/gravelamps/generate_lens.py
import os from gravelamps.core.gravelog import gravelogger, setup_logger from gravelamps.core.graveparser import create_graveparser from gravelamps.core.file_handling import (get_config, retrieve_interpolator_files, grid_file_handler, ...
PypiClean
/Docassemble-Pattern-3.6.7.tar.gz/Docassemble-Pattern-3.6.7/docassemble_pattern/text/en/inflect_quantify.py
#################################################################################################### # Transforms numeral strings to numbers, and numbers (int, float) to numeral strings. # Approximates quantities of objects ("dozens of chickens" etc.) from __future__ import unicode_literals from __future__ import div...
PypiClean
/JAQK-0.0.3.1.0-py3-none-any.whl/jaqk/operations/Format.py
import numpy as _np import re def _decimal(array): """Eliminate ',' in numbers, e.g. 10,000 to 10000 Using numpy vectorization to map filter to the input array Args: array: list/np.ndarray - array that needs to be formated """ d = _np.vectorize(lambda x: float(re.compile(',').sub('', x))...
PypiClean
/NeuralPlayground-0.0.7.tar.gz/NeuralPlayground-0.0.7/neuralplayground/config/plot_config.py
from .main_config import NPGConfig class TrajectoryConfig(NPGConfig): """Config object for trajectory plots Attributes ---------- FIGURE_SIZE: tuple Figure size TRAJECTORY_COLORMAP: str Colormap for trajectory plots TRAJECTORY_ALPHA: float Alpha value for the trajector...
PypiClean
/Muxpy-v0.0.1.tar.gz/Muxpy-v0.0.1/README.rst
Muxpy ===== A light-weight python tmux session handler, for saving and restoring potentially elaborate tmux session setups. Usage ===== 1. Save your current awesome setup to ``foobar``. Assuming uid 1000, replace as neccessary. ``muxpy -S /tmp/tmux-1000/default create foo`` This will create a file called ``~...
PypiClean
/Flask_Boot-0.0.1.tar.gz/Flask_Boot-0.0.1/flask_boot/flask_cli.py
import os import io from os.path import ( dirname, abspath ) import logging import errno import shutil from tempfile import mkstemp from logging import StreamHandler, DEBUG from docopt import docopt from flask_boot import __version__ logger = logging.getLogger(__name__) logger.setLevel(DEBUG) logger.addHandler...
PypiClean
/Jianmu-0.0.12.tar.gz/Jianmu-0.0.12/README.md
<div align="center"> <br> <img width="640" src="https://raw.githubusercontent.com/frederick-wang/jianmu/main/docs/images/jianmu-preview-without-border.png" alt="Jianmu Framework"> <br> <br> </div> <p align="center" color="#262626"> A simple desktop app development framework combining Python, Vue.js, Element Plus and E...
PypiClean
/ITA-test-2.1.tar.gz/ITA-test-2.1/hate_tweet_map/util.py
def pre_process_tweets_response(tweet: dict, includes: dict) -> dict: """ This method take an input a dict representing a tweet (in the Twitter original format) and create a dict containing the usefull information of the tweet reorganized usign different criteria and if necessary renaming the fields. Here ...
PypiClean
/GenIce-1.0.11.tar.gz/GenIce-1.0.11/genice/lattices/Struct62.py
pairs=""" 147 181 234 270 15 108 33 259 220 49 35 261 234 57 297 91 146 11 241 107 61 30 158 289 185 210 211 154 110 177 141 268 135 175 50 249 264 58 70 122 120 176 0 235 110 151 214 200 82 92 291 213 103 141 65 154 216 31 47 30 69 77 249 258 294 215 294 213 166 174 1 269 155 178 290 252 34 134 117 96 178 291 12 270 6...
PypiClean
/AK_SSL-0.0.1-py3-none-any.whl/AK_SSL/models/moco.py
import copy import torch import torch.nn as nn from AK_SSL.models.modules.heads import SimCLRProjectionHead, BYOLPredictionHead class MoCov3(nn.Module): """ MoCo v3: Momentum Contrast v3 Link: https://arxiv.org/abs/2104.02057 Implementation: https://github.com/facebookresearch/moco-v3 """ de...
PypiClean
/DI_engine-0.4.9-py3-none-any.whl/dizoo/overcooked/config/overcooked_ppo_config.py
from easydict import EasyDict import torch.nn as nn overcooked_ppo_config = dict( exp_name="overcooked_ppo_seed0", env=dict( collector_env_num=8, evaluator_env_num=10, n_evaluator_episode=10, concat_obs=False, # stack 2 agents' obs in channel dim stop_value=80, ), ...
PypiClean
/CAMELS_library-0.3.tar.gz/CAMELS_library-0.3/scripts/neural_nets/params_2_SFRH/main.py
import numpy as np import sys, os, time import torch import torch.nn as nn import torch.backends.cudnn as cudnn sys.path.append('../') import data as data import architecture as architecture ##################################### INPUT ########################################## root_in = '/mnt/ceph/users/camels' ...
PypiClean
/Cryptonet-0.0.5.tar.gz/Cryptonet-0.0.5/cryptonet/standard.py
import time from binascii import unhexlify from encodium import * import pycoin.ecdsa from cryptonet.utilities import global_hash, time_as_int from cryptonet.statemaker import StateMaker from cryptonet.rpcserver import RPCServer from cryptonet.datastructs import MerkleLeavesToRoot from cryptonet.dapp import TxPrism, ...
PypiClean
/Flask-Turbo-Boost-0.2.8.tar.gz/Flask-Turbo-Boost-0.2.8/flask_turbo_boost/project/application/forms/account.py
from flask_wtf import Form from wtforms import StringField, PasswordField from wtforms.validators import DataRequired, Email, EqualTo from ..models import User class SigninForm(Form): """Form for signin""" email = StringField('Email', validators=[ DataRequir...
PypiClean
/Editra-0.7.20.tar.gz/Editra-0.7.20/src/extern/stcprint.py
import os import wx import wx.stc _ = wx.GetTranslation class STCPrintout(wx.Printout): """Specific printing support of the wx.StyledTextCtrl for the wxPython framework This class can be used for both printing to a printer and for print preview functions. Unless otherwise specified, the print is...
PypiClean
/Cessa-1.2.5rc1.tar.gz/Cessa-1.2.5rc1/pyke/fact_base.py
import itertools import contextlib from pyke import knowledge_base, contexts class fact_base(knowledge_base.knowledge_base): ''' Not much to fact_bases. The real work is done in fact_list! ''' def __init__(self, engine, name, register = True): super(fact_base, self).__init__(engine, name, fact_list, r...
PypiClean
/BakalariAPI-4.0.0-py3-none-any.whl/bakalarishell/main.py
from __future__ import annotations import argparse import asyncio import getpass import inspect import json import logging import logging.config import os import threading import time import traceback import warnings import webbrowser from dataclasses import dataclass, field from datetime import datetime, timedelta fr...
PypiClean
/Argonaut-0.3.4.tar.gz/Argonaut-0.3.4/argonaut/public/ckeditor/_source/plugins/enterkey/plugin.js
/* Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ (function() { CKEDITOR.plugins.add( 'enterkey', { requires : [ 'keystrokes', 'indent' ], init : function( editor ) { var specialKeys = editor.specialKeys; spe...
PypiClean
/Altair%20Smartworks%20SDK-0.0.1.tar.gz/Altair Smartworks SDK-0.0.1/openapi_client/api/events_api.py
import re # noqa: F401 import sys # noqa: F401 from openapi_client.api_client import ApiClient, Endpoint as _Endpoint from openapi_client.model_utils import ( # noqa: F401 check_allowed_values, check_validations, date, datetime, file_type, none_type, validate_and_convert_types ) from ope...
PypiClean
/Misago-0.36.1.tar.gz/Misago-0.36.1/misago/static/misago/admin/momentjs/ru.js
;(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, (function (moment) { 'use strict'; ...
PypiClean
/Faker-Events-1.6.0.tar.gz/Faker-Events-1.6.0/faker_events/profiles.py
import json from random import choice from types import SimpleNamespace from faker import Faker from .text_color import eprint, Palatte class ProfileGenerator(): def __init__(self, fake: Faker = Faker()): """ The Profile Generator instances are used by the Event Generator for access to pr...
PypiClean
/32blit-0.7.3-py3-none-any.whl/ttblit/core/blitserial.py
import logging import pathlib import struct import time import serial.tools.list_ports from construct.core import ConstructError from tqdm import tqdm from ..core.struct import struct_blit_meta_standalone class BlitSerialException(Exception): pass class BlitSerial(serial.Serial): def __init__(self, port):...
PypiClean
/EggLib-3.3.0.tar.gz/EggLib-3.3.0/src/egglib/alphabets.py
from . import eggwrapper as _eggwrapper class Alphabet(object): """ Define acceptable lists of alleles for a type of data. This class is designed to be associated to EggLib objects holding diversity data (:class:`~Align`, :class:`~Container`, and :class:`~Site`). It defines the lists of exploitable...
PypiClean
/Django-4.2.4.tar.gz/Django-4.2.4/django/db/models/sql/query.py
import copy import difflib import functools import sys from collections import Counter, namedtuple from collections.abc import Iterator, Mapping from itertools import chain, count, product from string import ascii_uppercase from django.core.exceptions import FieldDoesNotExist, FieldError from django.db import DEFAULT_...
PypiClean
/Curare-0.4.5-py3-none-any.whl/curare/snakefiles/mapping/bowtie/lib/pe_mapping_stats_tsv_to_xlsx.py
import csv import matplotlib matplotlib.use('Agg') matplotlib.rcParams.update({'figure.autolayout': True}) import matplotlib.pyplot as plt import pandas as pd import sys from pathlib import Path from typing import Dict, List, Union def get_col_widths(df: pd.DataFrame) -> List[int]: return [max(y) for y in [[len(...
PypiClean
/Editra-0.7.20.tar.gz/Editra-0.7.20/src/extern/pygments/lexer.py
import re from pygments.filter import apply_filters, Filter from pygments.filters import get_filter_by_name from pygments.token import Error, Text, Other, _TokenType from pygments.util import get_bool_opt, get_int_opt, get_list_opt, \ make_analysator __all__ = ['Lexer', 'RegexLexer', 'ExtendedRegexLexer', 'Dele...
PypiClean
/OApackage-2.7.8-cp310-cp310-win_amd64.whl/oapackage/conference.py
import itertools import numpy as np import oapackage # %% def momentMatrix(k: int) -> np.ndarray: """Return the moment matrix of a conference design Args: k (int): number of columns of the conference design Returns: array: moment matrix """ pk = int(1 + 0.5 * k * (k + 1) + k) ...
PypiClean
/Megatron-0.5.1.tar.gz/Megatron-0.5.1/megatron/nodes/auxiliary.py
from .core import Node, TransformationNode class MetricNode(Node): """A Node that holds an evaluation metric. These are not run like other nodes. They do not factor into fit and transform. They are only used when the Pipeline's evaluate() method is invoked. Parameters ---------- metric : fun...
PypiClean
/BioPro-0.1.7.tar.gz/BioPro-0.1.7/Team3/star.py
import subprocess import signal class STAR: def __init__(self, parameters): self.genome_ref = parameters['genome_ref'] self.inter_folder = parameters['inter_folder'] self.genome_annot = parameters['genome_annot'] def CallSTAR(self): try: command_gene_index = "STAR -...
PypiClean
/Bis-Miner-3.11.1.tar.gz/Bis-Miner-3.11.0/Orange/data/io.py
import contextlib import csv import locale import pickle import re import subprocess import sys import warnings from ast import literal_eval from collections import OrderedDict, Counter from functools import lru_cache from importlib import import_module from itertools import chain, repeat from math import isnan from n...
PypiClean
/ConSSL-0.0.1-py3-none-any.whl/CSSL/datamodules/cifar10_datamodule.py
from typing import Any, Callable, Optional, Sequence, Union from CSSL.datamodules.vision_datamodule import VisionDataModule from CSSL.datasets import TrialCIFAR10 from CSSL.transforms.dataset_normalizations import cifar10_normalization from CSSL.utils import _TORCHVISION_AVAILABLE from CSSL.utils.warnings import warn_...
PypiClean
/LR_scheduler-0.1.tar.gz/LR_scheduler-0.1/LR_exploration_tf/HtdLR.py
from tensorflow.keras.callbacks import * from tensorflow.keras import backend as K import numpy as np import math class HtdLR(Callback): def __init__(self, base_lr=0.001, max_lr=0.006, step_size=2000., mode='triangular', gamma=1., scale_fn=None, scale_mode='cycle'): super(HtdLR, self).__i...
PypiClean
/Flask-CuddlyRest-0.1.15.tar.gz/Flask-CuddlyRest-0.1.15/flask_cuddlyrest/ext/sphinxext.py
import sys from importlib import import_module import docutils from docutils import nodes, core from docutils.parsers.rst import Directive, directives from docutils.writers.html4css1 import Writer, HTMLTranslator from mongoengine.base.fields import BaseField from mongoengine.fields import StringField, EmbeddedDocument...
PypiClean
/Nuitka-1.8.tar.gz/Nuitka-1.8/nuitka/build/inline_copy/lib/scons-4.3.0/SCons/Tool/msvs.py
import base64 import uuid import ntpath import os import pickle import re import sys import SCons.Builder import SCons.Node.FS import SCons.Platform.win32 import SCons.Script.SConscript import SCons.PathList import SCons.Util import SCons.Warnings from SCons.Defaults import processDefines from SCons.compat import PICK...
PypiClean
/MetricTool-0.1.5.tar.gz/MetricTool-0.1.5/MetricTools/vendor/tree-sitter-java/script/run-javaparser/README.md
# Run-Javaparser This is a command-line program for running the [`Javaparser`](https://javaparser.org/) library on a Java source file. In developing this grammar, it is helpful to compare the syntax trees to those produced by `Javaparser`, the most popular Java-parsing library in the Java ecosystem. Unlike the Java l...
PypiClean
/Bis-Miner-3.11.1.tar.gz/Bis-Miner-3.11.0/Orange/widgets/model/owloadmodel.py
import os import pickle from AnyQt.QtCore import QTimer from AnyQt.QtWidgets import ( QSizePolicy, QHBoxLayout, QComboBox, QStyle, QFileDialog ) from Orange.base import Model from Orange.widgets import widget, gui from Orange.widgets.model import owsavemodel from Orange.widgets.settings import Setting from Orange...
PypiClean
/Firmant-0.2.3a1.tar.gz/Firmant-0.2.3a1/firmant/paginate.py
class Paginated(object): '''An object representing keys in paginated lists. The key used for each of the lists is stored in the properties ``prev``, ``cur``, ``next``. Instances are just nice containers in place of 3-tuples:: .. doctest:: >>> p = Paginated(1, 2, 3) >>> p Pag...
PypiClean
/MOM-Tapyr-1.6.2.tar.gz/MOM-Tapyr-1.6.2/_Meta/M_Attr_Type.py
from __future__ import unicode_literals, print_function from _MOM import MOM from _TFL import TFL from _TFL.pyk import pyk import _MOM._Meta.M_Prop_Type import _TFL._Meta.Once_Property class Root (MOM.Meta.M_Prop_Type) : """Meta class for MOM.Attr.Type ...
PypiClean
/Candela-0.3.3.tar.gz/Candela-0.3.3/candela/command.py
import constants class Command(object): """ The representation of a single command available to the user A command exists within one menu at a time. A single command object can be used in multiple menus. """ def __init__(self, definition, description): """ Creates a new generic...
PypiClean
/LightZero-0.0.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/lzero/worker/muzero_collector.py
import time from collections import deque, namedtuple from typing import Optional, Any, List import numpy as np import torch from ding.envs import BaseEnvManager from ding.torch_utils import to_ndarray from ding.utils import build_logger, EasyTimer, SERIAL_COLLECTOR_REGISTRY from ding.worker.collector.base_serial_coll...
PypiClean
/Flask-Swag-0.1.2.tar.gz/Flask-Swag-0.1.2/flask_swag/resources/swagger-ui/lib/jsoneditor.min.js
!function(){var a;!function(){var b=!1,c=/xyz/.test(function(){window.postMessage("xyz")})?/\b_super\b/:/.*/;return a=function(){},a.extend=function(a){function d(){!b&&this.init&&this.init.apply(this,arguments)}var e=this.prototype;b=!0;var f=new this;b=!1;for(var g in a)f[g]="function"==typeof a[g]&&"function"==typeo...
PypiClean
/Congo-0.0.1.tar.gz/Congo-0.0.1/portfolio/cmd.py
import os import argparse import pkg_resources import portfolio PACKAGE = portfolio CWD = os.getcwd() SKELETON_DIR = "app-skel" APPLICATION_DIR = "%s/application" % CWD APPLICATION_DATA_DIR = "%s/data" % APPLICATION_DIR APPLICATION_UPLOAD_DIR = "%s/uploads" % APPLICATION_DATA_DIR def get_project_dir_path(project_name...
PypiClean
/OBITools-1.2.13.tar.gz/OBITools-1.2.13/doc/sphinx/source/attributes/species_name.rst
species_name ============ A string value indicating the species scientific name of the :doc:`taxid <./taxid>` stored into the :doc:`taxid <taxid>`. If the species is not defined for this :doc:`taxid <./taxid>`, this value is *None*. .. warning:: This taxonomic information is just added to the sequen...
PypiClean
/LinkChecker_GUI-10.0.0a2-py3-none-any.whl/linkcheck_gui/editor_qt.py
from PyQt5 import QtWidgets, QtGui, QtCore from . import syntax # Map MIME type to QSyntaxHighlighter class ContentTypeLexers = { "text/html": syntax.HtmlHighlighter, "application/xml": syntax.XmlHighlighter, "text/plain+ini": syntax.IniHighlighter, } class LineNumberArea(QtWidgets.QWidget): """Displ...
PypiClean
/Flask-Statics-Helper-1.0.0.tar.gz/Flask-Statics-Helper-1.0.0/flask_statics/static/angular/i18n/angular-locale_kkj.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
/ISYlib-0.1.20150912c.tar.gz/ISYlib-0.1.20150912c/ISY/IsyEvent.py
__author__ = 'Peter Shipley <peter.shipley@gmail.com>' __copyright__ = "Copyright (C) 2015 Peter Shipley" __license__ = "BSD" import time import sys # import os # import traceback import warnings # import re import base64 import socket import select import xml.etree.ElementTree as ET from ISY.IsyEventData import ...
PypiClean
/Beat_ML1-0.13.1.tar.gz/Beat_ML1-0.13.1/econml/data/dynamic_panel_dgp.py
import numpy as np from econml.utilities import cross_product from statsmodels.tools.tools import add_constant import pandas as pd import scipy as sp from scipy.stats import expon from sklearn.linear_model import LinearRegression import matplotlib.pyplot as plt import joblib import os dir = os.path.dirname(__file__) ...
PypiClean
/Nuitka-1.8.tar.gz/Nuitka-1.8/nuitka/importing/Importing.py
import collections import hashlib import os import sys import zipfile from nuitka import Options, SourceCodeReferences from nuitka.__past__ import iter_modules from nuitka.containers.Namedtuples import makeNamedtupleClass from nuitka.containers.OrderedSets import OrderedSet from nuitka.importing import StandardLibrary...
PypiClean
/FFTA-0.3.5.1-py3-none-any.whl/ffta/pixel_utils/tfp_calc.py
import numpy as np from scipy import interpolate as spi from scipy import optimize as spo from . import fitting def find_minimum(pix, cut): """ Finds when the minimum of instantaneous frequency happens using spline fitting :param pix: pixel object to analyze :type pix: ffta.pixel.Pixel object ...
PypiClean
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/gfx/gradient.js
define("dojox/gfx/gradient",["dojo/_base/lang","./matrix","dojo/_base/Color"],function(_1,m,_2){ var _3=_1.getObject("dojox.gfx.gradient",true); var C=_2; _3.rescale=function(_4,_5,to){ var _6=_4.length,_7=(to<_5),_8; if(_7){ var _9=_5; _5=to; to=_9; } if(!_6){ return []; } if(to<=_4[0].offset){ _8=[{offset:0,color:_4[...
PypiClean
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/editor/plugins/LocalImage.js.uncompressed.js
define("dojox/editor/plugins/LocalImage", [ "dojo",//FIXME "dijit",//FIXME "dijit/registry", "dijit/_base/popup", "dijit/_editor/_Plugin", "dijit/_editor/plugins/LinkDialog", "dijit/TooltipDialog", "dijit/form/_TextBoxMixin", "dijit/form/Button", "dijit/form/ValidationTextBox", "dijit/form/DropDownButton", ...
PypiClean
/HfCh4Levi-1.0.0.tar.gz/HfCh4Levi-1.0.0/HfCh4Levi.py
import os; os.chdir('/Users/AnQiuPing/Documents/Python/HfCh4Levi') import sys import pickle man = [] other = [] def printNestList(tatgetList, indent = False, tapNumber = 0, fh = sys.stdout): for each_item in tatgetList: if isinstance(each_item, list): printNestList(each_item, indent, tapNumber ...
PypiClean
/Durus-4.2.tar.gz/Durus-4.2/durus/persistent.py
from durus.utils import str_to_int8, iteritems, as_bytes from sys import stderr # these must match the constants in _persistent.c UNSAVED = 1 SAVED = 0 GHOST = -1 try: from durus._persistent import PersistentBase, ConnectionBase from durus._persistent import _setattribute, _delattribute from durus._persi...
PypiClean
/dirtrav-1.0.0.tar.gz/dirtrav-1.0.0/src/flask/ctx.py
import contextvars import sys import typing as t from functools import update_wrapper from types import TracebackType from werkzeug.exceptions import HTTPException from . import typing as ft from .globals import _cv_app from .globals import _cv_request from .signals import appcontext_popped from .signals import appco...
PypiClean
/Hyperion-0.9.10.tar.gz/Hyperion-0.9.10/docs/api/hyperion.model.ModelOutput.rst
================================= hyperion.model.ModelOutput ================================= .. currentmodule:: hyperion.model .. autoclass:: ModelOutput .. rubric:: Methods .. autosummary:: ~ModelOutput.get_sed ~ModelOutput.get_image ~ModelOutput.get_quantities ~ModelOutput.get_ava...
PypiClean
/GeoNDT-0.4.0.tar.gz/GeoNDT-0.4.0/docs/.build/html/_static/searchtools.js
if (!Scorer) { /** * Simple result scoring code. */ var Scorer = { // Implement the following function to further tweak the score for each result // The function takes a result array [filename, title, anchor, descr, score] // and returns the new score. /* score: function(result) { re...
PypiClean
/AnalysisProjectDependencies-0.1.tar.gz/AnalysisProjectDependencies-0.1/bower_components/jquery/external/sizzle/dist/sizzle.min.js
!function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u="sizzle"+1*new Date,v=a.document,w=0,x=0,y=ha(),z=ha(),A=ha(),B=function(a,b){return a===b&&(l=!0),0},C={}.hasOwnProperty,D=[],E=D.pop,F=D.push,G=D.push,H=D.slice,I=function(a,b){for(var c=0,d=a.length;c<d;c++)if(a[c]===b)return c;return-1},J="checked|selected|as...
PypiClean
/GooblerPKG-2.0.35.tar.gz/GooblerPKG-2.0.35/README.md
# Goobler API Wrapper for Python The all new Goobler API wrapper which you may host your bot on! > ⚠️ This package is still in development, so please be patient! # Basics: ## Sending a simple message ```py @GooblerPKG.basic.command() def ...(interaction): interaction.send("Hello world!") ``` # Math...
PypiClean
/E.S.P.-Hadouken-0.2.1.tar.gz/E.S.P.-Hadouken-0.2.1/esp_hadouken/levels/diortem/void/Road.py
from random import randint from pygame import Surface, Color, Rect from esp_hadouken.GameChild import * from Segment import * class Road(GameChild, Surface): def __init__(self, parent): GameChild.__init__(self, parent) self.init_surface() self.set_background() self.set_x_range() ...
PypiClean
/IRonTeste-0.0.6-py3-none-any.whl/Phi/__init__.py
import ctypes from itertools import chain import sys import os import numpy as np import pandas as pd from numpy import double from numpy.ctypeslib import ndpointer from sklearn.model_selection import train_test_split import matplotlib.pyplot as plt from rpy2.robjects.packages import importr from ctypes import * phiMet...
PypiClean
/CardioWave-0.2.3.tar.gz/CardioWave-0.2.3/cdwave/param.py
# This software and algorithm was developed as part of the Cambridge Alliance # for Medicines Safety (CAMS) initiative, funded by AstraZeneca and # GlaxoSmithKline # This program is made available under the terms of the GNU General Public # License as published by the Free Software Foundation, either version 3 of the...
PypiClean
/Djblets-3.3.tar.gz/Djblets-3.3/djblets/gravatars/templatetags/gravatars.py
from django import template from django.utils.html import format_html from djblets.gravatars import (get_gravatar_url, get_gravatar_url_for_email) register = template.Library() @register.simple_tag def gravatar(user, size=None): """Return HTML for displaying a user's Gravatar. ...
PypiClean
/EMMO-1.0.1-py3-none-any.whl/emmo/factpluspluswrapper/factppgraph.py
from rdflib import URIRef, OWL, RDF, RDFS from .owlapi_interface import OwlApiInterface class FactPPError: """Postprocessing error after reasoning with FaCT++.""" class FaCTPPGraph: """Class for running the FaCT++ reasoner (using OwlApiInterface) and postprocessing the resulting inferred ontology. ...
PypiClean
/LitleSdkPython3-9.3.1b0.tar.gz/LitleSdkPython3-9.3.1b0/litleSdkPythonTestv2/functional/TestToken.py
import os, sys lib_path = os.path.abspath('../all') sys.path.append(lib_path) from SetupTest import * import unittest class TestToken(unittest.TestCase): def testSimpleToken(self): token = litleXmlFields.registerTokenRequest() token.orderId = '12344' token.accountNumber = '1233456789...
PypiClean
/Booktype-1.5.tar.gz/Booktype-1.5/lib/booki/site_static/xinha/plugins/TableOperations/lang/nl.js
{ "Align": "Uitlijning", "All four sides": "Alle 4 zijden", "Background": "Achtergrond", "Baseline": "Basis", "Border": "Rand", "Borders": "Randen", "Bottom": "Onder", "Style [CSS]": "CSS Style", "Caption": "Opmerking", "Cell Properties": "Celeigenschappen", "Center": "Centreren", "Char": "Karak...
PypiClean
/MuPhyN-0.1.1.post4-py3-none-any.whl/muphyn/packages/interface/base/shapes/electric_components/electric_scheme_part/electrical_connector.py
from enum import Enum from PyQt6.QtCore import QLineF, QPointF, QSizeF from PyQt6.QtWidgets import QGraphicsItem from PyQt6.QtGui import QColor from muphyn.packages.interface.base.shapes.basic_shape import Square, Line, GroupedShapes class ElectricalConnector(GroupedShapes): # Elecrtical node type class Elec...
PypiClean
/Bempp-cl-0.3.1.tar.gz/Bempp-cl-0.3.1/bempp/api/operators/boundary/helmholtz.py
import numpy as _np from bempp.api.operators.boundary import common as _common from bempp.api.assembly.boundary_operator import BoundaryOperator as _BoundaryOperator def single_layer( domain, range_, dual_to_range, wavenumber, parameters=None, assembler="default_nonlocal", device_interfac...
PypiClean
/Helios_Scanner-1.1-py3-none-any.whl/helios/modules/module_uploads.py
import re import requests try: import urlparse except ImportError: import urllib.parse as urlparse import helios.modules.module_base from helios.core.utils import requests_response_to_dict, random_string from bs4 import BeautifulSoup class Module(helios.modules.module_base.Base): def __init__(self): ...
PypiClean
/AUDUSD_xiaxin-0.1.1-py3-none-any.whl/AUDUSD/audusd.py
import datetime import time from polygon import RESTClient from sqlalchemy import create_engine from sqlalchemy import text import pandas as pd from math import sqrt from math import isnan import matplotlib.pyplot as plt from numpy import mean from numpy import std from math import floor class AUDUSD_return(object): ...
PypiClean
/GBT_parser-1.0.3-py3-none-any.whl/cantools/database/can/environment_variable.py
class EnvironmentVariable: """A CAN environment variable. """ def __init__(self, name, env_type, minimum, maximum, unit, initial_value, env_id, access_type, ...
PypiClean
/FoneAstra-3.0.1.tar.gz/FoneAstra-3.0.1/fa/static/fa/plugin/jquery.flot.threshold.multiple.js
(function($){ function init(plot){ function plotWithMultipleThresholds(plot,s,datapoints){ if(s.data && s.data.length > 0 && s.constraints && s.constraints.length>0){ var series = new Graph(s.data,s.constraints).getPlotData(); for(var i=0;i<series.length;i++){ var ss = $.extend({},s);...
PypiClean
/Espynoza-0.2.5.tar.gz/Espynoza-0.2.5/ESP/handlers/Oled.py
import framebuf import machine import time from micropython import const import BaseHandler #################################################################################################### class Handler (BaseHandler.Handler): ''' Target : ESP8266, Description : Set OLED using I2C ...
PypiClean
/GSAS-II-WONDER_linux-1.0.1.tar.gz/GSAS-II-WONDER_linux-1.0.1/GSAS-II-WONDER/imports/G2img_MAR.py
from __future__ import division, print_function import platform import time import GSASIIobj as G2obj import GSASIIpath import numpy as np GSASIIpath.SetVersionNumber("$Revision: 4112 $") class MAR_ReaderClass(G2obj.ImportImage): '''Routine to read several MAR formats, .mar3450,.mar2300,.mar2560 ''' def __i...
PypiClean
/Office365_REST_with_timeout-0.1.1-py3-none-any.whl/office365/sharepoint/principal/user_collection.py
from office365.runtime.queries.create_entity_query import CreateEntityQuery from office365.runtime.queries.service_operation_query import ServiceOperationQuery from office365.runtime.resource_path_service_operation import ResourcePathServiceOperation from office365.sharepoint.base_entity_collection import BaseEntityCol...
PypiClean
/cim-14.12a1.tar.gz/cim-14.12a1/CDPSM/CDPSMTreeNodeEditor.py
#------------------------------------------------------------------------------ # Imports: #------------------------------------------------------------------------------ from enthought.traits.api \ import HasTraits, Str, Property, Instance from enthought.traits.ui.api \ import View, Item, Group, TreeEditor,...
PypiClean
/HBT_IP_Test-1.0.1-py3-none-any.whl/HBT_IP_Test/libs/sparkplug_b.py
import sparkplug_b_pb2 import time from sparkplug_b_pb2 import Payload seqNum = 0 bdSeq = 0 class DataSetDataType: Unknown = 0 Int8 = 1 Int16 = 2 Int32 = 3 Int64 = 4 UInt8 = 5 UInt16 = 6 UInt32 = 7 UInt64 = 8 Float = 9 Double = 10 Boolean = 11 String = 12 DateTi...
PypiClean
/MAVR-0.93.tar.gz/MAVR-0.93/scripts/sequence/extract_region.py
__author__ = 'Sergei F. Kliver' import os import sys import argparse from Bio import SeqIO from Bio.SeqRecord import SeqRecord from RouToolPa.Routines.File import make_list_of_path_to_files def get_regions_from_string(s): regions_list = s.split(",") for i in range(0, len(regions_list)): regions_list[...
PypiClean
/AnyBlok-2.1.0.tar.gz/AnyBlok-2.1.0/anyblok/model/table_and_mapper.py
import warnings from sqlalchemy import CheckConstraint, ForeignKeyConstraint from sqlalchemy.exc import NoInspectionAvailable from sqlalchemy.ext.declarative import declared_attr from ..common import sgdb_in from .exceptions import ModelException from .plugins import ModelPluginBase def check_deprecated_foreign_key...
PypiClean
/FMCAPIClient-0.0.2.tar.gz/FMCAPIClient-0.0.2/README.md
# FMCAPIClient [Firepower REST API Guides](https://www.cisco.com/c/en/us/support/security/defense-center/products-programming-reference-guides-list.html 'Firepower REST API Guides')<br /> --- ![PyPI - Status](https://img.shields.io/pypi/status/FMCAPIClient) ![PyPI - Format](https://img.shields.io/pypi/format/FMCAPICl...
PypiClean
/ETSProjectTools-0.6.0.tar.gz/ETSProjectTools-0.6.0/enthought/ets/ets.py
import ConfigParser import os import stat import sys from enthought.ets import argparse, version from enthought.ets.bdist import BDist from enthought.ets.checkout import Checkout from enthought.ets.clean import Clean from enthought.ets.depends import Depends from enthought.ets.develop import Develop from enthought.ets...
PypiClean
/FrAG-1.1.0.tar.gz/FrAG-1.1.0/frag_pele/AdaptivePELE_repo/AdaptivePELE/adaptiveSampling.py
from __future__ import absolute_import, division, print_function, unicode_literals import sys import shutil import os import json import time import glob import argparse import atexit import ast import numpy as np from builtins import range from AdaptivePELE.constants import blockNames, constants from AdaptivePELE.atom...
PypiClean
/FamcyDev-0.3.71-py3-none-any.whl/Famcy/node_modules/bootstrap-fileinput/js/plugins/sortable.js
(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : typeof define === 'function' && define.amd ? define(factory) : (global = global || self, global.Sortable = factory()); }(this, function () { 'use strict'; function _typeof(obj) { if (ty...
PypiClean
/Mathics_Django-6.0.0-py3-none-any.whl/mathics_django/web/media/js/mathjax/jax/output/SVG/fonts/Latin-Modern/Main/Regular/Main.js
MathJax.OutputJax.SVG.FONTDATA.FONTS.LatinModernMathJax_Main={directory:"Main/Regular",family:"LatinModernMathJax_Main",id:"LATINMODERNMAIN",32:[0,0,332,0,0,""],33:[716,0,278,86,192,"192 665l-39 -456c-1 -17 -4 -22 -14 -22c-12 0 -13 8 -14 23l-39 455c0 33 27 51 53 51s53 -18 53 -51zM192 53c0 -29 -24 -53 -53 -53s-53 24 -53...
PypiClean
/NEMO_CE-1.6.12-py3-none-any.whl/NEMO/migrations/0045_version_4_5_0.py
import django.db.models.deletion from django.conf import settings from django.db import migrations, models from django.db.models import F class Migration(migrations.Migration): dependencies = [ ('contenttypes', '0002_remove_content_type_name'), ('NEMO', '0044_version_4_4_0'), ] def migr...
PypiClean
/NeoDym-0.2.1.tar.gz/NeoDym-0.2.1/neodym/connection.py
__author__ = "Brian Wiborg <baccenfutter@c-base.org" __date__ = "2013/08/31" __license__ = "GNU/AGPL-3.0" import asyncore import logging import Queue from neodym.exceptions import MalformedMessage from neodym.message import Message class Connection(asyncore.dispatcher): """neodym.connection.Connection A co...
PypiClean
/FIRSTBEATLU-0.13.1.tar.gz/FIRSTBEATLU-0.13.1/econml/tree/_tree_classes.py
import abc import numbers from math import ceil import numpy as np from sklearn.base import BaseEstimator from sklearn.utils.validation import check_is_fitted from ._tree import Tree, DepthFirstTreeBuilder from ._splitter import Splitter, BestSplitter from ._criterion import Criterion from . import _tree from ..utiliti...
PypiClean
/Django-Pizza-16.10.1.tar.gz/Django-Pizza-16.10.1/pizza/kitchen_sink/static/ks/ckeditor/lang/ru.js
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.lang['ru']={"editor":"Визуальный текстовый редактор","editorPanel":"Rich Text Editor panel","common":{"editorHelp":"Нажмите ALT-0 для открытия справки","browseServer...
PypiClean
/Montreal-Forced-Aligner-3.0.0a3.tar.gz/Montreal-Forced-Aligner-3.0.0a3/docs/source/user_guide/implementations/fine_tune.md
(fine_tune_alignments)= # Fine-tuning alignments By default and standard in ASR, the frame step between feature frames is set to 10 ms, which limits the accuracy of MFA to a minimum of 0.01 seconds. When the `--fine_tune` flag is specified, the aligner does an extra fine-tuning step following alignment. The audio su...
PypiClean
/Jouvence-0.4.2.tar.gz/Jouvence-0.4.2/docs/api.rst
API === .. module:: jouvence :synopsis: Jouvence API The Jouvence API is fairly simple, and includes: * A Fountain parser that returns a screenplay object. * Several renderers, for formatting a screenplay object into something you can display on screen or elsewhere. * A screenplay object that you c...
PypiClean
/Django_patch-2.2.19-py3-none-any.whl/django/contrib/gis/geoip2/base.py
import socket from pathlib import Path import geoip2.database from django.conf import settings from django.core.exceptions import ValidationError from django.core.validators import validate_ipv46_address from .resources import City, Country # Creating the settings dictionary with any settings, if needed. GEOIP_SETT...
PypiClean
/KratosRANSApplication-9.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/KratosMultiphysics/RANSApplication/formulations/turbulence_models/k_omega_rans_formulation.py
import KratosMultiphysics as Kratos # import RANS import KratosMultiphysics.RANSApplication as KratosRANS # import formulation interfaces from KratosMultiphysics.RANSApplication.formulations.turbulence_models.scalar_turbulence_model_rans_formulation import ScalarTurbulenceModelRansFormulation from KratosMultiphysics....
PypiClean
/FamcyDev-0.3.71-py3-none-any.whl/Famcy/node_modules/bootstrap-fileinput/themes/explorer-fa/theme.js
(function ($) { 'use strict'; $.fn.fileinputThemes['explorer-fa'] = { layoutTemplates: { footer: '<div class="file-details-cell">' + '<div class="explorer-caption" title="{caption}">{caption}</div> ' + '{size}{progress}' + '</div>' + '<div clas...
PypiClean
/Fabric-with-working-dependencies-1.0.1.tar.gz/Fabric-with-working-dependencies-1.0.1/docs/installation.rst
============ Installation ============ Fabric is best installed via `pip <http://pip.openplans.org>`_ (highly recommended) or `easy_install <http://wiki.python.org/moin/CheeseShopTutorial>`_ (older, but still works fine). You may also opt to use your operating system's package manager (the package is typically called ...
PypiClean
/Contacts-2.0b8.tar.gz/Contacts-2.0b8/contacts/cli.py
"""usage: python -m contacts.cli [option] {command}""" import argparse import sys import contacts VERSION = f'''Contacts {contacts.__version__} {contacts.COPYRIGHT}''' def delete(args): """Delete contacts.""" people = load() modified = False # Delete the named contacts. for name in ( ...
PypiClean
/Booktype-1.5.tar.gz/Booktype-1.5/lib/booki/messaging/README.txt
Booki Messaging --------------- Booki Messaging is a Django application for providing microblogging-like messaging functions. It provides template tags for including message entry forms, message display timelines and "follow" buttons in the user interface of a web site. Messages can include file attachments and users...
PypiClean