id
stringlengths
1
265
text
stringlengths
6
5.19M
dataset_id
stringclasses
7 values
/IBSpy-0.4.0rc0.tar.gz/IBSpy-0.4.0rc0/IBSPy/IBSpy_values_matrix.py
import os import string import sys import pandas as pd from pyranges import PyRanges from .IBSpy_options import IBSpyOptions from .IBSpy_results import IBSpyResults class IBSpyValuesMatrix: def __init__(self, result_set) -> None: self.options: IBSpyOptions = result_set.options self.result_set = r...
PypiClean
/KL_Audit_supportV3.6-1.0-py3-none-any.whl/AuditModule/util/LoggerUtil.py
from collections import OrderedDict from logging import Formatter, FileHandler, StreamHandler, getLogger, INFO from json import loads, dumps def logger(name, handler, recordfields=None, level=INFO): """ returns logger object with logging level set and handlers added :param name: logger name :param han...
PypiClean
/ArcWar-2.0.0.tar.gz/ArcWar-2.0.0/wargame/abstractgameunit.py
from __future__ import print_function import random from abc import ABCMeta, abstractmethod from gameutils import print_bold, weighted_random_selection from gameuniterror import GameUnitError class AbstractGameUnit(metaclass=ABCMeta): """Abstract class to represent a game character (or a 'unit')""" def __init...
PypiClean
/NucDetect-0.18.3-py3-none-any.whl/core/roi/ROIHandler.py
from __future__ import annotations import csv import datetime import os from typing import Union, Dict, List, Tuple, Iterable import numpy as np from numba.typed import List as numList from core.roi import AreaAnalysis from core.roi.ROI import ROI class ROIHandler: __slots__ = [ "ident", "main"...
PypiClean
/nudenetupdated-2.2.10.tar.gz/nudenetupdated-2.2.10/README.md
# NudeNet: Neural Nets for Nudity Classification, Detection and selective censoring **Classifier classes:** |class name | Description | |--------|:--------------: |safe | Image is not sexually explicit | |unsafe | Image is sexually explicit| **Detector classes:** |class name | Description | |--------|:---------------...
PypiClean
/FreqDemod-0.2.1.tar.gz/FreqDemod-0.2.1/docs/quickstart.rst
Quickstart ========== .. http://stackoverflow.com/questions/10718767/have-the-same-readme-both-in-markdown-and-restructuredtext * **freqdemod-quickstart-1** [`open html <http://nbviewer.ipython.org/github/JohnMarohn/FreqDemod/blob/master/freqdemod/docs/freqdemod-quickstart-1.ipynb>`_]. Here we apply ``freqdemod`` to...
PypiClean
/Clinamen-0.2.0a1.tar.gz/Clinamen-0.2.0a1/clinamen/descriptors/descriptors.py
import copy import numpy as np import os import h5py from mpi4py import MPI from dscribe.descriptors import (SOAP, MBTR, LMBTR, ACSF, SineMatrix, EwaldSumMatrix) from clinamen.utils import get_structure_id from clinamen.descriptors.finger_descriptors_cython import StructureFingerprint from clinamen.descriptors.u...
PypiClean
/FoLiA-Linguistic-Annotation-Tool-0.11.tar.gz/FoLiA-Linguistic-Annotation-Tool-0.11/flat/converters.py
import json import importlib from django.conf import settings def getusername(request): if hasattr(settings, 'OIDC') and settings.OIDC: return request.user.email return request.user.username class Converter: def __init__(self, id, module, function, name, parameter_help="", parameter_default="", in...
PypiClean
/NativDebugging-35.tar.gz/NativDebugging-35/src/Interfaces.py
from abc import ABCMeta, abstractmethod from .Utilities import * class DebuggerInterface( object ): """ Pure Interface for Debugger """ __metaclass__ = ABCMeta @abstractmethod def __init__(self): """ Pure virtual """ raise NotImplementedError("Pure function call") @abstractmethod...
PypiClean
/Flask-User-AWS-1.0.1.7.tar.gz/Flask-User-AWS-1.0.1.7/flask_user/db_manager.py
from .db_adapters import PynamoDbAdapter, DynamoDbAdapter, MongoDbAdapter, SQLDbAdapter from flask_user import current_user, ConfigError class DBManager(object): """Manage DB objects.""" def __init__(self, app, db, UserClass, UserEmailClass=None, UserInvitationClass=None, RoleClass=None): """Initiali...
PypiClean
/Demo_DAWGI_HBM-0.1.10.tar.gz/Demo_DAWGI_HBM-0.1.10/Pleiades/Marginal_SFH_Bar_NoScale.py
import matplotlib.pyplot as plt import numpy as np import scipy.interpolate import a_statistics_def_fun as st_def plt.style.use('classic') def list_ticks(x): x_tk=[] for i in x: if i%1.==0.: x_tk.append(str(int(i))) else: x_tk.append(str(i)) return x_tk...
PypiClean
/Electrum-VTC-2.9.3.3.tar.gz/Electrum-VTC-2.9.3.3/gui/qt/transaction_dialog.py
import copy import datetime import json import PyQt4 from PyQt4.QtGui import * from PyQt4.QtCore import * import PyQt4.QtCore as QtCore from electrum_vtc import transaction from electrum_vtc.bitcoin import base_encode from electrum_vtc.i18n import _ from electrum_vtc.plugins import run_hook from util import * dial...
PypiClean
/Klampt-0.9.0-cp36-cp36m-win_amd64.whl/klampt/vis/glcommon.py
from . import glinit from OpenGL import GL from .glinterface import GLPluginInterface from .glprogram import GLProgram,GLPluginProgram import math import weakref import warnings class GLWidgetPlugin(GLPluginInterface): """A GL plugin that sends user events to one or more Klamp't widgets. To use, add this to a ...
PypiClean
/MufSim-1.2.2.tar.gz/MufSim-1.2.2/mufsim/insts/io.py
import time import mufsim.stackitems as si import mufsim.gamedb as db from mufsim.logger import log from mufsim.errors import MufRuntimeError from mufsim.interface import network_interface from mufsim.insts.base import Instruction, instr @instr("read_wants_blanks") class InstReadWantsBlanks(Instruction): def exec...
PypiClean
/CCC-2.0.1.tar.gz/CCC-2.0.1/ccc/template_design/migrations/0001_initial.py
import django.contrib.postgres.fields.jsonb import django.db.models.deletion from django.conf import settings from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.ACCOUNT_USER_PROXY_MODEL), ('...
PypiClean
/Adeepspeed-0.9.2.tar.gz/Adeepspeed-0.9.2/deepspeed/module_inject/containers/megatron_gpt.py
# DeepSpeed Team from .base import * from .features.megatron import MegatronContainer from deepspeed.model_implementations.transformers.ds_megatron_gpt import DeepSpeedMegatronGPTInference import torch from ..policy import TransformerPolicy from packaging import version as pkg_version class DS_MegatronGPTContainer(...
PypiClean
/BMeyn-0.19.2.tar.gz/BMeyn-0.19.2/CHANGELOG.md
# Release Notes ## Run Details - Workflow: Python package CI/CD - Head Branch: bugfix/skip-1 - Head SHA: db6c284b7e99af64a0d31ae71a2fa3d49e8ad522 ## Pull Requests **38** Update python-package-cicd.yml ### Commits - **9e9ae0e7c2034cd6a0594da876688c9b17e52572** Update python-package-cicd.yml - **58dd415b52204a02...
PypiClean
/FairMongo-5.2.0.tar.gz/FairMongo-5.2.0/FM/FMRecord.py
from FNLP.Language import Words from F import DICT, DATE, CONVERT from F.TYPE.Dict import fict from F.TYPE.List import fist """ Smart dict:type wrapper for Single MongoDB Record.""" class Record(fict): _id = "" fields = [] original_record = None def __init__(self, record, **kwargs): super()._...
PypiClean
/Dominate_Layui-2020.6.25.post1-py3-none-any.whl/Dominate_Layui/static/layui/lay/modules/table.js
;layui.define(["laytpl","laypage","layer","form","util"],function(e){"use strict";var t=layui.$,i=layui.laytpl,a=layui.laypage,l=layui.layer,n=layui.form,o=(layui.util,layui.hint()),r=layui.device(),d={config:{checkName:"LAY_CHECKED",indexName:"LAY_TABLE_INDEX"},cache:{},index:layui.table?layui.table.index+1e4:0,set:f...
PypiClean
/Markups-4.0.0.tar.gz/Markups-4.0.0/docs/index.rst
=================================== Python-Markups module documentation =================================== Introduction to Python-Markups ============================== Python-Markups is a module that provides unified interface for using various markup languages, such as Markdown, reStructuredText, Textile and Ascii...
PypiClean
/Ax_Handoff-3.1.0.tar.gz/Ax_Handoff-3.1.0/axonchisel/handoff/protocol/a.py
from os import urandom import hashlib import zlib try: from Crypto.Cipher import AES except ImportError as e: print("\n*** Please ensure that PyCrypto is installed! ***\n") raise import axonchisel.handoff.config as config import axonchisel.handoff.util as util import axonchisel.handoff.error as error im...
PypiClean
/Newsroom-1.0-py3-none-any.whl/newsroom/static/dist/company_reports_js.7258ce302725619992f3.js
webpackJsonp([9],{ /***/ 1: /***/ (function(module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.notify = exports.now = undefined; exports.createStore = createStore; exports.render = render; exports.gettext = gettext; exports.getProductQuer...
PypiClean
/FanFicFare-4.27.0.tar.gz/FanFicFare-4.27.0/fanficfare/adapters/adapter_fictionmaniatv.py
from __future__ import absolute_import import re import logging logger = logging.getLogger(__name__) # py2 vs py3 transition from ..six import text_type as unicode from ..six.moves.urllib import parse as urlparse from .base_adapter import BaseSiteAdapter, makeDate def getClass(): return FictionManiaTVAdapter d...
PypiClean
/FlaskCms-0.0.4.tar.gz/FlaskCms-0.0.4/flask_cms/static/js/ckeditor/plugins/specialchar/dialogs/lang/ug.js
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang("specialchar","ug",{euro:"ياۋرو بەلگىسى",lsquo:"يالاڭ پەش سول",rsquo:"يالاڭ پەش ئوڭ",ldquo:"قوش پەش سول",rdquo:"قوش پەش ئوڭ",ndash:"سىزىقچە",mdash:"س...
PypiClean
/Fabric-with-working-dependencies-1.0.1.tar.gz/Fabric-with-working-dependencies-1.0.1/docs/changes/1.0.1.rst
======================== Changes in version 1.0.1 ======================== .. note:: This release also includes all applicable changes from the :doc:`0.9.5 release </changes/0.9.5>`. Bugfixes ======== * :issue:`301`: Fixed a bug in `~fabric.operations.local`'s behavior when ``capture=False`` and ``output.s...
PypiClean
/GitServerGlue-0.3.1.tar.gz/GitServerGlue-0.3.1/gitserverglue/__init__.py
import os import os.path import sys from twisted.internet import reactor from twisted.conch.ssh import keys from twisted.python import log from Crypto.PublicKey import RSA from gitserverglue import ssh, http, git from gitserverglue.streamingweb import make_site_streaming from gitserverglue.wsgihelper import WSGIRes...
PypiClean
/HydPy-5.0.1-cp38-cp38-win_amd64.whl/hydpy/core/propertytools.py
# import... # ...from standard-library from __future__ import annotations import abc import inspect import types from typing import * from typing import Optional, Type, Any from typing_extensions import Protocol # type: ignore[misc] # ...from HydPy from hydpy.core import exceptiontools from hydpy.core import objectt...
PypiClean
/NlvWxPython-4.2.0-cp37-cp37m-win_amd64.whl/wx/lib/pubsub/core/arg1/listenerimpl.py
from .listenerbase import (ListenerBase, ValidatorBase) from .callables import ListenerMismatchError from .. import policies class Message: """ A simple container object for the two components of a topic messages in the pubsub legacy API: the topic and the user data. An instance of Message is given to...
PypiClean
/Oasys-Canvas-Core-1.0.7.tar.gz/Oasys-Canvas-Core-1.0.7/docs/source/orangecanvas/registry.rst
####################### Registry (``registry``) ####################### .. automodule:: orangecanvas.registry :member-order: bysource WidgetRegistry -------------- .. autoclass:: WidgetRegistry :members: :member-order: bysource WidgetDescription ----------------- .. autoclass:: WidgetDescription :membe...
PypiClean
/Abies-0.0.5.tar.gz/Abies-0.0.5/extern/pybind11/docs/benchmark.py
import datetime as dt import os import random nfns = 4 # Functions per class nargs = 4 # Arguments per function def generate_dummy_code_pybind11(nclasses=10): decl = "" bindings = "" for cl in range(nclasses): decl += "class cl%03i;\n" % cl decl += "\n" for cl in range(nclasses): ...
PypiClean
/KDVS-2.0.0.tar.gz/KDVS-2.0.0/kdvs/config/default_cfg.py
# default configuration file from kdvs.core.config import getDefaultDataRootPath from kdvs.core.log import Logger default_config_loaded = True # ---- dynamic components log_name = 'kdvs' log_file = 'kdvs.log' log_type_def_std = 'kdvs.core.log.StreamLogger' log_type_def_file = 'kdvs.core.log.RotatingFileLogger' ex...
PypiClean
/ISPManCCP-0.0.1alpha3.1.tar.bz2/ISPManCCP-0.0.1alpha3.1/ispmanccp/lib/ispman_helpers.py
from formencode.variabledecode import variable_decode from pylons import request, g, cache #from pylons.decorators.cache import beaker_cache from ispmanccp.lib.helpers import to_unicode, asbool from ispmanccp.lib.decorators import perlexcept APP_CONF = g.pylons_config.app_conf ispman_cache = cache.get_cache('ispman'...
PypiClean
/CANberry-0.4.tar.gz/CANberry-0.4/canberry/bower_components/jquery/src/ajax/xhr.js
define([ "../core", "../var/support", "../ajax" ], function( jQuery, support ) { jQuery.ajaxSettings.xhr = function() { try { return new XMLHttpRequest(); } catch( e ) {} }; var xhrId = 0, xhrCallbacks = {}, xhrSuccessStatus = { // file protocol always yields status code 0, assume 200 0: 200, // Suppor...
PypiClean
/MediaValet_SDK-0.0.4-py3-none-any.whl/mvsdk/rest/asset/__init__.py
class Asset: def __init__(self, mv_sdk, base_url: str, domain: str, **kwargs: dict): """ Initialize the Asset Domain """ super(Asset, self) self.mv_sdk = mv_sdk self.base_url = base_url self.domain = domain def get(self, params=None, data=None, heade...
PypiClean
/NlvWxPython-4.2.0-cp37-cp37m-win_amd64.whl/wx/lib/agw/aui/aui_switcherdialog.py
import wx from . import auibook from .aui_utilities import FindFocusDescendant from .aui_constants import SWITCHER_TEXT_MARGIN_X, SWITCHER_TEXT_MARGIN_Y # Define a translation function _ = wx.GetTranslation class SwitcherItem(object): """ An object containing information about one item. """ def __init__(s...
PypiClean
/Booktype-1.5.tar.gz/Booktype-1.5/lib/booki/site_static/js/jquery/ui/jquery.ui.mouse.js
(function( $, undefined ) { $.widget("ui.mouse", { options: { cancel: ':input,option', distance: 1, delay: 0 }, _mouseInit: function() { var self = this; this.element .bind('mousedown.'+this.widgetName, function(event) { return self._mouseDown(event); }) .bind('click.'+this.widgetName, funct...
PypiClean
/ADTthious-0.5.tar.gz/ADTthious-0.5/querytree2.py
import PySimpleGUI as sg from ADT import hbds class Thing(metaclass=hbds.Class): name = str i = int j = 1.2 Contain = hbds.Link(Thing, 'Contain', Thing) t = Thing('t', 0) t1 = Thing('t1', 1) t2 = Thing('t2', 2) Contain(t, t1); Contain(t, t2) t11 = Thing('t11', 11) t12 = Thing('t12', 12) Contain(t1, t11);...
PypiClean
/DLTA-AI-1.1.tar.gz/DLTA-AI-1.1/DLTA_AI_app/mmdetection/mmdet/models/losses/ghm_loss.py
import torch import torch.nn as nn import torch.nn.functional as F from ..builder import LOSSES from .utils import weight_reduce_loss def _expand_onehot_labels(labels, label_weights, label_channels): bin_labels = labels.new_full((labels.size(0), label_channels), 0) inds = torch.nonzero( (labels >= 0)...
PypiClean
/Django_patch-2.2.19-py3-none-any.whl/django/contrib/staticfiles/utils.py
import fnmatch import os from django.conf import settings from django.core.exceptions import ImproperlyConfigured def matches_patterns(path, patterns=None): """ Return True or False depending on whether the ``path`` should be ignored (if it matches any pattern in ``ignore_patterns``). """ return ...
PypiClean
/DragonPyEmulator-0.9.0-py3-none-any.whl/dragonpy/Dragon32/MC6821_PIA.py
import logging import queue from dragonpy import constants from dragonpy.utils.bits import is_bit_set, set_bit from dragonpy.utils.humanize import byte2bit_string log = logging.getLogger(__name__) class PIA_register: def __init__(self, name): self.name = name self.reset() self.value = ...
PypiClean
/My-Serializer-For-Json-And-XML-For_Lab3-2-0.1.1.tar.gz/My-Serializer-For-Json-And-XML-For_Lab3-2-0.1.1/Serializators/JSON.py
from Core.functions_for_serializer import Serialize from Core.functions_for_deserialize import Deserialize class JsonSerializer: data_serializer = Serialize() data_deserializer = Deserialize() def dumps(self, obj): packed = self.data_serializer.serialize(obj) if isinstance(packed, (list,...
PypiClean
/IRescue-1.1.0b1-py3-none-any.whl/irescue/misc.py
import subprocess import os import sys import gzip from datetime import datetime from shutil import which import pysam def run_shell_cmd(cmd): """ Execute a command on bash shell with subprocess. """ p = subprocess.Popen( ['/bin/bash', '-o', 'pipefail'], stdin=subprocess.PIPE, ...
PypiClean
/FlaskCms-0.0.4.tar.gz/FlaskCms-0.0.4/flask_cms/static/js/ckeditor/plugins/codemirror/js/mode/octave/octave.js
(function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use s...
PypiClean
/DFHypercode-0.0.1-py3-none-any.whl/Hypercode/codeblocks/ifs.py
import collections import typing from collections import deque from abc import abstractmethod from ..errors import DFSyntaxError from ..enums import ( PlayerTarget, EntityTarget, BlockType, IfPlayerType, IfEntityType, IfGameType, IfVariableType, SelectionTarget, BracketDirection, BracketType, IfType, Mater...
PypiClean
/17MonIP-0.2.7.tar.gz/17MonIP-0.2.7/IP/ip.py
import os import socket import struct try: import mmap except ImportError: mmap = None __all__ = ['IPv4Database', 'find'] _unpack_V = lambda b: struct.unpack("<L", b)[0] _unpack_N = lambda b: struct.unpack(">L", b)[0] def _unpack_C(b): if isinstance(b, int): return b return struct.unpack("B...
PypiClean
/Adeepspeed-0.9.2.tar.gz/Adeepspeed-0.9.2/deepspeed/runtime/utils.py
# DeepSpeed Team """ Copyright NVIDIA/Megatron Helper functions and classes from multiple sources. """ from collections.abc import Iterable from deepspeed.moe.utils import is_moe_param import os import psutil import gc from math import sqrt from math import floor from bisect import bisect_left import torch from dee...
PypiClean
/Nuitka_fixed-1.1.2-cp310-cp310-win_amd64.whl/nuitka/build/inline_copy/lib/scons-4.4.0/SCons/SConsign.py
import SCons.compat import os import pickle import time import SCons.dblite import SCons.Warnings from SCons.compat import PICKLE_PROTOCOL from SCons.Util import print_time def corrupt_dblite_warning(filename): SCons.Warnings.warn( SCons.Warnings.CorruptSConsignWarning, "Ignoring corrupt .sconsi...
PypiClean
/Django-4.2.4.tar.gz/Django-4.2.4/django/conf/__init__.py
import importlib import os import time import traceback import warnings from pathlib import Path import django from django.conf import global_settings from django.core.exceptions import ImproperlyConfigured from django.utils.deprecation import RemovedInDjango50Warning, RemovedInDjango51Warning from django.utils.functi...
PypiClean
/3y-2.6.4.tar.gz/3y-2.6.4/yz.py
from __init__ import * pai2='π' #下面要用到,提前放上来 def part_yz(): while True: r=input('请输入半径:')#半径输入 try: r=eval(r) except (IOError,ValueError,TypeError,SyntaxError,EOFError,NameError): print('') except ZeroDivisionError: print('除数不能为0,emmm,2年级小孩都知道') ...
PypiClean
/BIA_OBS-1.0.3.tar.gz/BIA_OBS-1.0.3/BIA/static/dist/node_modules/flowbite/src/components/popover.js
import { createPopper } from '@popperjs/core'; const Default = { placement: 'top', offset: 10, triggerType: 'hover', onShow: () => { }, onHide: () => { } } class Popover { constructor(targetEl = null, triggerEl = null, options = {}) { this._targetEl = targetEl this._triggerEl =...
PypiClean
/GeoNode-3.2.0-py3-none-any.whl/geonode/themes/migrations/0002_auto_20181015_1208_squashed_0003_remove_geonodethemecustomization_identifier.py
from django.db import migrations, models class Migration(migrations.Migration): replaces = [('geonode_themes', '0002_auto_20181015_1208'), ('geonode_themes', '0003_remove_geonodethemecustomization_identifier')] dependencies = [ ('geonode_themes', '0001_initial'), ] operations = [ m...
PypiClean
/Listrum-1.3.0b0.tar.gz/Listrum-1.3.0b0/src/listrum/client/https.py
import socket from threading import Thread import json import requests import ssl import urllib.parse class Request: def __init__(self, conn: socket.socket) -> None: self.conn = conn self.closed = False def get(self) -> None: path = self.conn.recv(64000).decode().split(' ') # ...
PypiClean
/HydPy-5.0.1-cp38-cp38-win_amd64.whl/hydpy/core/selectiontools.py
"""This module implements tools for defining subsets of |Node| and |Element| objects of large *HydPy* projects, called "selections".""" # import... # ...from standard library from __future__ import annotations import collections import copy import itertools import types from typing import * from typing_extensions impor...
PypiClean
/DjangoKit-0.13.tar.gz/DjangoKit-0.13/djangokit/middleware/subdomains.py
import time from importlib import import_module from django.conf import settings from django.contrib.sessions.backends.base import UpdateError from django.core.exceptions import SuspiciousOperation from django.utils.cache import patch_vary_headers from django.utils.deprecation import MiddlewareMixin from django.utils....
PypiClean
/Finance-Ultron-1.0.8.1.tar.gz/Finance-Ultron-1.0.8.1/ultron/ump/factor/sell/close_atrn_stop.py
from ultron.ump.factor.sell.base import FactorSellBase, ESupportDirection """外部可通过如:fs.close.g_default_close_atr_n = 2.5来修改默认值""" g_default_close_atr_n = 3 class FactorCloseAtrNStop(FactorSellBase): """示例利润保护因子(止盈)因子""" def _init_self(self, **kwargs): """kwargs中可选参数close_atr_n: 保护利润止赢倍数""" s...
PypiClean
/Electrum-VTC-2.9.3.3.tar.gz/Electrum-VTC-2.9.3.3/packages/google/protobuf/util/json_format_proto3_pb2.py
import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf i...
PypiClean
/Museparation-0.0.1a15.tar.gz/Museparation-0.0.1a15/museparation/waveunet2/dataloader.py
import os import h5py import numpy as np from torch.utils.data import Dataset from sortedcontainers import SortedList from tqdm import tqdm from ..util.load_audio import load_audio class WaveunetShuffleDataset(Dataset): """ """ def __init__(self, dataset, hdf_dir, filename, instruments, sr, channels, shapes, r...
PypiClean
/DRUGseq_tools-0.0.1-py3-none-any.whl/pipeline/drug/trim.py
import subprocess import pandas as pd from pipeline.__init__ import RUN_THREADS from pipeline.drug.__init__ import __STEPS__ from pipeline.toolkits import utils from pipeline.toolkits.report import reporter class TRIM(): """ Features: - Trim the adapter sequence in read. - Trim low-quality bases in ...
PypiClean
/ConTexto-0.2.0-py3-none-any.whl/contexto/utils/auxiliares.py
import os import pickle import re import time def buscar_en_texto(texto, lista=[], sep=None): """ Determina si por lo menos un elemento de una lista de términos o \ expresiones específica está presente en un texto de entrada. :param texto: (str). Texto en el que se desea hacer la búsqueda. :p...
PypiClean
/Akvo-1.7.2-py3-none-any.whl/akvo/gui/Spoiler.py
import sys from PyQt5.QtWidgets import (QPushButton, QDialog, QTreeWidget, QTreeWidgetItem, QVBoxLayout, QHBoxLayout, QFrame, QLabel, QApplication) class SectionExpandButton(QPushButton): """a QPushbutton that can expand or coll...
PypiClean
/Assimulo-3.0.tar.gz/Assimulo-3.0/assimulo/examples/radau5ode_with_disc.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
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/gfx/Moveable.js.uncompressed.js
define("dojox/gfx/Moveable", ["dojo/_base/lang","dojo/_base/declare","dojo/_base/array","dojo/_base/event","dojo/_base/connect", "dojo/dom-class","dojo/_base/window","./Mover"], function(lang,declare,arr,event,connect,domClass,win,Mover){ return declare("dojox.gfx.Moveable", null, { constructor: function(shape, ...
PypiClean
/MSM_PELE-1.1.1-py3-none-any.whl/Helpers/constraints.py
import sys import os import argparse import MSM_PELE.Helpers.template_builder as tb AMINOACIDS = ["VAL", "ASN", "GLY", "LEU", "ILE", "SER", "ASP", "LYS", "MET", "GLN", "TRP", "ARG", "ALA", "THR", "PRO", "PHE", "GLU", "HIS", "HIP", "TYR", "CYS", "HID"] TER_CONSTR...
PypiClean
/GPyReg-1.0.2.tar.gz/GPyReg-1.0.2/gpyreg/noise_functions.py
import numpy as np class GaussianNoise: """ Gaussian noise function. Total noise variance is is obtained by summing the independent contribution of each noise feature. Parameters ========== constant_add : bool, defaults to False Whether to add constant noise. user_provided_a...
PypiClean
/FastNLP-1.0.1.tar.gz/FastNLP-1.0.1/fastNLP/modules/torch/encoder/conv_maxpool.py
__all__ = [ "ConvMaxpool" ] from typing import Union, List import torch import torch.nn as nn import torch.nn.functional as F class ConvMaxpool(nn.Module): r""" 集合了 **Convolution** 和 **Max-Pooling** 于一体的层。给定一个 ``[batch_size, max_len, input_size]`` 的输入,返回 ``[batch_size, sum(output_channels)]`` 大小的 matr...
PypiClean
/EnergyCapSdk-8.2304.4743.tar.gz/EnergyCapSdk-8.2304.4743/energycap/sdk/models/place_digest_energy_use_intensity.py
from msrest.serialization import Model class PlaceDigestEnergyUseIntensity(Model): """PlaceDigestEnergyUseIntensity. :param period_name: The calendar period name :type period_name: str :param calendar_period: The calendar period number :type calendar_period: int :param calendar_year: The cal...
PypiClean
/FlashGBX-3.31.tar.gz/FlashGBX-3.31/README.md
# FlashGBX (by Lesserkuma) for [Windows](https://github.com/lesserkuma/FlashGBX/releases), [Linux](https://github.com/lesserkuma/FlashGBX#run-using-python-linux-macos-windows), [macOS](https://github.com/lesserkuma/FlashGBX#run-using-python-linux-macos-windows) <img src="https://raw.githubusercontent.com/lesserkuma/F...
PypiClean
/Microsoft-AI-Azure-Utility-Samples-0.3.7.tar.gz/Microsoft-AI-Azure-Utility-Samples-0.3.7/azureml_tools/storage.py
from azure.mgmt.storage import StorageManagementClient from azure.mgmt.storage.models import StorageAccountCreateParameters from azure.mgmt.storage.v2019_04_01.models import Kind, Sku, SkuName from deepseismic_interpretation.azureml_tools.resource_group import \ create_resource_group class StorageAccountCreate...
PypiClean
/DjangoDjangoAppCenter-0.0.11-py3-none-any.whl/DjangoAppCenter/simpleui/static/admin/js/core.js
// basic browser identification & version var isOpera = (navigator.userAgent.indexOf("Opera") >= 0) && parseFloat(navigator.appVersion); var isIE = ((document.all) && (!isOpera)) && parseFloat(navigator.appVersion.split("MSIE ")[1].split(";")[0]); // quickElement(tagType, parentReference [, textInChildNode, attribute...
PypiClean
/Flask-Statics-Helper-1.0.0.tar.gz/Flask-Statics-Helper-1.0.0/flask_statics/static/angular/i18n/angular-locale_om-ke.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
/GraphQL_core_next-1.1.1-py3-none-any.whl/graphql/utilities/extend_schema.py
from collections import defaultdict from itertools import chain from typing import Any, Dict, List, Optional, cast from ..language import ( DirectiveDefinitionNode, DocumentNode, OperationType, SchemaExtensionNode, SchemaDefinitionNode, TypeDefinitionNode, TypeExtensionNode, ) from ..pyutil...
PypiClean
/Nuitka_fixed-1.1.2-cp310-cp310-win_amd64.whl/nuitka/Variables.py
from abc import abstractmethod from nuitka.__past__ import getMetaClassBase, iterItems from nuitka.nodes.shapes.StandardShapes import tshape_unknown from nuitka.utils import Utils from nuitka.utils.InstanceCounters import ( counted_del, counted_init, isCountingInstances, ) complete = False class Variabl...
PypiClean
/conpot-0.6.0-py3-none-any.whl/conpot/protocols/kamstrup/meter_protocol/messages.py
import logging import binascii from conpot.helpers import chr_py3 import crc16 from . import kamstrup_constants import conpot.core as conpot_core logger = logging.getLogger(__name__) class KamstrupProtocolBase(object): def __init__(self, communication_address): self.communication_address = communicatio...
PypiClean
/HIRISEimgs-1.0.0.tar.gz/HIRISEimgs-1.0.0/HIRISE_api/preprocessing/Dimension_Reduction.py
from PIL import Image, ImageFile from sklearn.manifold import TSNE from sklearn.decomposition import PCA import os import pandas as pd import matplotlib.pyplot as plt import seaborn as sns import warnings import umap.umap_ as umap os.environ["OPEgrid_columnsV_IO_ENABLE_JASPER"] = "true" Image.MAX_IMAGE_PIXELS = None...
PypiClean
/observations-0.1.4.tar.gz/observations-0.1.4/observations/r/saratoga_houses.py
from __future__ import absolute_import from __future__ import division from __future__ import print_function import csv import numpy as np import os import sys from observations.util import maybe_download_and_extract def saratoga_houses(path): """Houses in Saratoga County (2006) Data on houses in Saratoga Coun...
PypiClean
/Flask-AppBuilder-jwi078-2.1.13.tar.gz/Flask-AppBuilder-jwi078-2.1.13/flask_appbuilder/security/registerviews.py
__author__ = "Daniel Gaspar" import logging from flask import flash, redirect, request, session, url_for from flask_babel import lazy_gettext from flask_openid import OpenIDResponse, SessionWrapper from openid.consumer.consumer import CANCEL, Consumer, SUCCESS from .forms import LoginForm_oid, RegisterUserDBForm, Re...
PypiClean
/Netfoll_TL-2.0.1-py3-none-any.whl/netfoll_tl/events/messagedeleted.py
from .common import EventBuilder, EventCommon, name_inner_event from ..tl import types @name_inner_event class MessageDeleted(EventBuilder): """ Occurs whenever a message is deleted. Note that this event isn't 100% reliable, since Telegram doesn't always notify the clients that a message was deleted. ...
PypiClean
/CROPS-0.1.1-py3-none-any.whl/crops/io/__init__.py
from crops.about import __prog__, __description__, __author__, __date__, __version__, __copyright__ import os import argparse def check_path(path,typeofpath=None): """Returns full path if correct. :param path: Input (local) path. :type path: str :param typeofpath: The type of path, 'dir' or 'file', ...
PypiClean
/AkvoResponseGrouper-1.3.3a0.tar.gz/AkvoResponseGrouper-1.3.3a0/README.md
# Akvo-ResponseGrouper ![PyPI](https://img.shields.io/pypi/v/AkvoResponseGrouper) [![Build Status](https://github.com/akvo/Akvo-ResponseGrouper/actions/workflows/test.yml/badge.svg)](https://github.com/akvo/Akvo-ResponseGrouper/actions) [![Repo Size](https://img.shields.io/github/repo-size/akvo/Akvo-ResponseGrouper)](...
PypiClean
/Django-4.2.4.tar.gz/Django-4.2.4/django/contrib/messages/api.py
from django.contrib.messages import constants from django.contrib.messages.storage import default_storage __all__ = ( "add_message", "get_messages", "get_level", "set_level", "debug", "info", "success", "warning", "error", "MessageFailure", ) class MessageFailure(Exception): ...
PypiClean
/MRFI-2.0.0.tar.gz/MRFI-2.0.0/mrfi/selector.py
import logging from typing import List, Union import numpy as np import scipy.stats import torch def _flatten_position(shape, position: torch.Tensor): assert len(shape) == len(position), \ f"Position should have same Dimision as value tensor shape {shape}({len(shape)}D),"\ " got {len(position)}-D...
PypiClean
/AyiinXd-0.0.8-cp311-cp311-macosx_10_9_universal2.whl/fipper/types/messages_and_media/audio.py
from datetime import datetime from typing import List import fipper from fipper import raw, utils from fipper import types from fipper.file_id import FileId, FileType, FileUniqueId, FileUniqueType from ..object import Object class Audio(Object): """An audio file to be treated as music by the Telegram clients. ...
PypiClean
/Draugr-1.0.9.tar.gz/Draugr-1.0.9/draugr/torch_utilities/exporting/latex_tables.py
__author__ = "Christian Heider Nielsen" __doc__ = r""" Created on 26-06-2021 """ __all__ = [] table_row_name = "tablerow" rows = [ ["Rocket", "Organisation", "LEO Payload (Tonnes)", "Maiden Flight"], ["Saturn V", "NASA", "140", "1967"], ["Space Shuttle", "NASA", "24.4", "1981"], ...
PypiClean
/MAPLEAF-0.8.16.tar.gz/MAPLEAF-0.8.16/README_Dev.md
<p align="center"> <img src="Resources/Draft2Logo.png?raw=true" alt="Logo" title="MAPLEAF" height=150 style="padding-right: 10px;"/> <h1 align="center">MAPLEAF: Modular Aerospace Prediction Lab for Engines and Aero Forces</h1> </p> <p align="center"> <a align="center" href="https://github.com/henrystoldt/maple...
PypiClean
/Flask-Monitoring-1.1.2.tar.gz/Flask-Monitoring-1.1.2/flask_monitoringdashboard/core/config/__init__.py
try: import configparser except ImportError: configparser = None import os import pytz from tzlocal import get_localzone from flask_monitoringdashboard.core.config.parser import ( parse_string, parse_version, parse_bool, parse_literal, ) from flask_monitoringdashboard.core.logger import log ...
PypiClean
/EnergyCapSdk-8.2304.4743.tar.gz/EnergyCapSdk-8.2304.4743/energycap/sdk/models/savings_meter_bill_daily_response.py
from msrest.serialization import Model class SavingsMeterBillDailyResponse(Model): """SavingsMeterBillDailyResponseDTO - This class is the DTO for a meter's bill's Cost Avoidance savings in daily format It provides the meter, bill, use unit, and then an array of daily savings values Each daily va...
PypiClean
/FireWorks-2.0.3.tar.gz/FireWorks-2.0.3/fireworks/utilities/visualize.py
from typing import Any, Dict from monty.dev import requires from fireworks import Firework, Workflow from fireworks.features.fw_report import state_to_color try: from graphviz import Digraph except ImportError: Digraph = None def plot_wf( wf, depth_factor=1.0, breadth_factor=2.0, labels_on=...
PypiClean
/Glances-3.4.0.3.tar.gz/Glances-3.4.0.3/docs/aoa/containers.rst
.. _containers: Containers ========== If you use ``containers``, Glances can help you to monitor your Docker or Podman containers. Glances uses the containers API through the `docker-py`_ and `podman-py`_ libraries. You can install this dependency using: .. code-block:: console pip install glances[containers] ...
PypiClean
/GQCMS-0.0.4-py3-none-any.whl/build/lib/build/lib/build/lib/build/lib/build/lib/gqcms/Information.py
import numpy as np import pandas as pd import gqcms def CoefficientMatrix( hubbard: gqcms.Hubbard, state: np.ndarray, system_sites: list ) -> np.ndarray: """ Create the coefficient matrix that expresses the wave function in the two subsystems :param hubbard: a hubbard class object :param state: ...
PypiClean
/Kato-FlaskAppBuilder-1.1.14.tar.gz/Kato-FlaskAppBuilder-1.1.14/flask_appbuilder/security/decorators.py
import logging import functools from flask import flash, redirect, url_for, make_response, jsonify from .._compat import as_unicode from ..const import LOGMSG_ERR_SEC_ACCESS_DENIED, FLAMSG_ERR_SEC_ACCESS_DENIED, PERMISSION_PREFIX log = logging.getLogger(__name__) def has_access(f): """ Use this ...
PypiClean
/Flask_JSONRPC-2.2.2-py3-none-any.whl/flask_jsonrpc/app.py
import typing as t from flask import Flask from .globals import default_jsonrpc_site, default_jsonrpc_site_api from .helpers import urn from .wrappers import JSONRPCDecoratorMixin from .contrib.browse import create_browse if t.TYPE_CHECKING: from .site import JSONRPCSite from .views import JSONRPCView fr...
PypiClean
/IETK-Ret-0.1.1.tar.gz/IETK-Ret-0.1.1/README.md
# IETK-Ret - Image Enhancement Toolkit for Retinal Fundus Images This repository contains a collection of enhancement methods useful for retinal fundus images, with emphasis on **Pixel Color Amplification**. These methods are very useful as a **pre-processing step to fundus image analysis and machine learning**. Th...
PypiClean
/Flask-Dance-7.0.0.tar.gz/Flask-Dance-7.0.0/flask_dance/contrib/reddit.py
from flask import g from werkzeug.local import LocalProxy from flask_dance import __version__ as _flask_dance_version from flask_dance.consumer import OAuth2ConsumerBlueprint, OAuth2Session __maintainer__ = "Sergey Storchay <r8@r8.com.ua>" DEFAULT_USER_AGENT = f"Flask-Dance/{_flask_dance_version}" class RedditOAu...
PypiClean
/Newcalls-0.0.1-cp37-cp37m-win_amd64.whl/newcalls/node_modules/tar/lib/replace.js
'use strict' // tar -r const hlo = require('./high-level-opt.js') const Pack = require('./pack.js') const fs = require('fs') const fsm = require('fs-minipass') const t = require('./list.js') const path = require('path') // starting at the head of the file, read a Header // If the checksum is invalid, that's our posit...
PypiClean
/ContactMechanics-1.1.1.tar.gz/ContactMechanics-1.1.1/docs/index.rst
.. PyCo documentation master file, created by sphinx-quickstart on Tue Nov 27 17:14:58 2018. You can adapt this file completely to your liking, but it should at least contain the root `toctree` directive. Welcome to ContactMechanics's documentation! ============================================ *Contact mechan...
PypiClean
/Caroline-presentation-0.2.4.tar.gz/Caroline-presentation-0.2.4/caroline/html_dist/js/mathjax/sre/mathmaps/en/symbols/latin-lower-double-accent.js
[{"locale":"en"},{"category":"Ll","key":"01D6","mappings":{"default":{"default":"latin small letter u with diaeresis and macron","alternative":"latin small letter u double overdot overbar","short":"u double overdot overbar"}}},{"category":"Ll","key":"01D8","mappings":{"default":{"default":"latin small letter u with dia...
PypiClean
/EnergyCapSdk-8.2304.4743.tar.gz/EnergyCapSdk-8.2304.4743/energycap/sdk/models/special_adjustment_edit.py
from msrest.serialization import Model class SpecialAdjustmentEdit(Model): """SpecialAdjustmentEdit. All required parameters must be populated in order to send to Azure. :param special_adjustment_method_id: Required. The special adjustment method identifier <span class='property-internal'>Required...
PypiClean
/BIA_OBS-1.0.3.tar.gz/BIA_OBS-1.0.3/BIA/static/dist/node_modules/@popperjs/core/dist/cjs/popper-lite.js
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); function getWindow(node) { if (node == null) { return window; } if (node.toString() !== '[object Window]') { var ownerDocument = node.ownerDocument; return ownerDocument ? ownerDocument.defaultView || window : window; } ...
PypiClean
/Flask_AdminLTE3-1.0.9-py3-none-any.whl/flask_adminlte3/static/plugins/datatables-keytable/js/dataTables.keyTable.js
* @summary KeyTable * @description Spreadsheet like keyboard navigation for DataTables * @version 2.6.4 * @file dataTables.keyTable.js * @author SpryMedia Ltd (www.sprymedia.co.uk) * @contact www.sprymedia.co.uk/contact * @copyright Copyright 2009-2021 SpryMedia Ltd. * * This source f...
PypiClean
/Druid-0.2.1.tar.gz/Druid-0.2.1/druid/image.py
# This file is part of Druid. # # Copyright (C) 2014 OKso (http://okso.me) # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any la...
PypiClean