id
stringlengths
1
265
text
stringlengths
6
5.19M
dataset_id
stringclasses
7 values
/MergePythonSDK.ticketing-2.2.2-py3-none-any.whl/MergePythonSDK/ats/api/webhook_receivers_api.py
import re # noqa: F401 import sys # noqa: F401 from MergePythonSDK.shared.api_client import ApiClient, Endpoint as _Endpoint from MergePythonSDK.shared.model_utils import ( # noqa: F401 check_allowed_values, check_validations, date, datetime, file_type, none_type, validate_and_convert_ty...
PypiClean
/FitBenchmarking-1.0.0.tar.gz/FitBenchmarking-1.0.0/fitbenchmarking/controllers/matlab_opt_controller.py
import matlab import numpy as np from fitbenchmarking.controllers.base_controller import Controller from fitbenchmarking.controllers.matlab_mixin import MatlabMixin class MatlabOptController(MatlabMixin, Controller): """ Controller for MATLAB Optimization Toolbox, implementing lsqcurvefit """ algori...
PypiClean
/Argonaut-0.3.4.tar.gz/Argonaut-0.3.4/README.txt
ARGONAUT ======== Version 0.3.4 (30th March 2011) Author: Jason Robinson jaywink (at) basshero.org http://www.basshero.org 1. Description ============== Argonaut is a blogging engine built with Pylons. It is lightweight and can be deployed on many types of web servers running Python. The application is still v...
PypiClean
/CsuPTMD-1.0.12.tar.gz/CsuPTMD-1.0.12/PTMD/maskrcnn_benchmark/structures/boxlist_ops.py
import torch from .bounding_box import BoxList from PTMD.maskrcnn_benchmark.layers import nms as _box_nms def boxlist_nms(boxlist, nms_thresh, max_proposals=-1, score_field="scores"): """ Performs non-maximum suppression on a boxlist, with scores specified in a boxlist field via score_field. Argume...
PypiClean
/KratosParticleMechanicsApplication-9.4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/KratosMultiphysics/ParticleMechanicsApplication/particle_gid_output_process.py
import KratosMultiphysics # Import applications and dependencies import KratosMultiphysics.ParticleMechanicsApplication as KratosParticle from KratosMultiphysics.deprecation_management import DeprecationManager # Import time library from time import time def Factory(settings, Model): if(type(settings) != Kratos...
PypiClean
/Cahier-0.1.1.tar.gz/Cahier-0.1.1/cahier/config.py
# Copyright 2014-2015 Louis Paternault # # Cahier is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # Cahier is distributed in the hope...
PypiClean
/CmtBasicModelingInterface-0.1.2.tar.gz/CmtBasicModelingInterface-0.1.2/cmt/bmi/interfaces.py
class Error(Exception): """Base class for BMI exceptions""" pass class FatalError(Exception): """ Raise this exception if an unrecoverable error was found """ pass class BadVarNameError(Error): """Exception to indicate a bad input/output variable name""" def __init__(self, name): ...
PypiClean
/FlaskCms-0.0.4.tar.gz/FlaskCms-0.0.4/flask_cms/static/js/ckeditor/plugins/a11yhelp/dialogs/lang/nb.js
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang("a11yhelp","nb",{title:"Instruksjoner for tilgjengelighet",contents:"Innhold for hjelp. Trykk ESC for å lukke denne dialogen.",legend:[{name:"Generel...
PypiClean
/KD_Lib-0.0.32.tar.gz/KD_Lib-0.0.32/KD_Lib/KD/text/BERT2LSTM/bert2lstm.py
import random from copy import deepcopy import matplotlib.pyplot as plt import numpy as np import torch import torch.nn as nn import torch.nn.functional as F from transformers import AdamW, BertForSequenceClassification, BertTokenizer from KD_Lib.KD.common import BaseClass from KD_Lib.KD.text.utils import get_bert_da...
PypiClean
/ApiDoc-1.4.0.tar.gz/ApiDoc-1.4.0/apidoc/object/source_raw.py
from apidoc.lib.util.enum import Enum from apidoc.object import Comparable class Root(): """Root object of sources elements """ def __init__(self): """Class instantiation """ super().__init__() self.configuration = Configuration() self.versions = {} self.c...
PypiClean
/HydPy-5.0.1-cp38-cp38-win_amd64.whl/hydpy/docs/rst/HydPy-C.rst
.. _HydPy-C: HydPy-C (Conv) ============== `HydPy-C` models are no real hydrological models. Instead, they serve as converters that allow connecting different kinds of models providing output and requiring input that does not fit immediately. The most typical use case is interpolating data, which is implemented by ...
PypiClean
/ORE_strhub-0.0.1-py3-none-any.whl/strhub/models/trba/model.py
import torch.nn as nn from strhub.models.modules import BidirectionalLSTM from .feature_extraction import ResNet_FeatureExtractor from .prediction import Attention from .transformation import TPS_SpatialTransformerNetwork class TRBA(nn.Module): def __init__(self, img_h, img_w, num_class, num_fiducial=20, input_...
PypiClean
/LitleSdkPython3-9.3.1b0.tar.gz/LitleSdkPython3-9.3.1b0/litleSdkPythonTestv2/unit/TestConfigOverride.py
import os, sys lib_path = os.path.abspath('../all') sys.path.append(lib_path) from SetupTest import * import unittest from mock import * class TestConfigOverride(unittest.TestCase): def setUp(self): self.seq = list(range(10)) def testUserOverride(self): authorization = litleXmlFields.author...
PypiClean
/KonFoo-3.0.0-py3-none-any.whl/konfoo/core.py
from __future__ import annotations import abc import calendar import copy import csv import datetime import ipaddress import json import math import struct import time from configparser import ConfigParser from operator import attrgetter from typing import ( Any, Callable, Iterable, Iterator, Literal, ...
PypiClean
/Flask-AppBuilder-jack-3.3.4.tar.gz/Flask-AppBuilder-jack-3.3.4/flask_appbuilder/models/generic/filters.py
from flask_babel import lazy_gettext from ..filters import BaseFilter, BaseFilterConverter __all__ = [ "GenericFilterConverter", "FilterNotContains", "FilterEqual", "FilterContains", "FilterIContains", "FilterNotEqual", "FilterGreater", "FilterSmaller", "FilterStartsWith", ] cla...
PypiClean
/AstroAugmentations-0.1.0.tar.gz/AstroAugmentations-0.1.0/astroaugmentations/utils/kernel_creation.py
import albumentations as A import numpy as np def create_vla_psf( save=False, hours=1, t_int=1, frequency=1.4, pixel_resolution=1.8, configuration="B", size=150): """Generates and saves a psf for the VLA. Args: name (str): Output file path to save psf to. hours (float>0): ...
PypiClean
/Mathics_Django-6.0.0-py3-none-any.whl/mathics_django/web/media/js/mathjax/jax/output/SVG/fonts/Asana-Math/DoubleStruck/Regular/Main.js
MathJax.OutputJax.SVG.FONTDATA.FONTS.AsanaMathJax_DoubleStruck={directory:"DoubleStruck/Regular",family:"AsanaMathJax_DoubleStruck",id:"ASANAMATHDOUBLESTRUCK",32:[0,0,249,0,0,""],8450:[709,20,708,22,669,"614 588c0 44 -122 79 -198 79c-61 0 -113 -15 -155 -40v-538c53 -36 120 -55 197 -55c71 0 157 26 203 60l8 -10l-27 -50c-5...
PypiClean
/CoAPthon-4.0.2.tar.gz/CoAPthon-4.0.2/coapthon/layers/forwardLayer.py
import copy from coapthon.messages.request import Request from coapclient import HelperClient from coapthon.messages.response import Response from coapthon import defines from coapthon.resources.remoteResource import RemoteResource from coapthon.utils import parse_uri __author__ = 'Giacomo Tanganelli' class ForwardL...
PypiClean
/Faker-Events-1.6.0.tar.gz/Faker-Events-1.6.0/faker_events/handlers.py
import json from sys import stdout from .text_color import eprint, Palatte __all__ = ['Stream'] class Stream(): """ A Handler for sending events to a Data Steam. By default events are writen to standard out on the console. Parameters ---------- stype: str Stream Type. 'conso...
PypiClean
/NeuralPlayground-0.0.7.tar.gz/NeuralPlayground-0.0.7/neuralplayground/arenas/hafting_2008.py
import copy from typing import Union import matplotlib as mpl import numpy as np from neuralplayground.arenas import Simple2D from neuralplayground.experiments import Hafting2008Data class Hafting2008(Simple2D): """Arena resembling Hafting2008 experimental setting Methods ---------- __init__ ...
PypiClean
/MergePythonSDK.ticketing-2.2.2-py3-none-any.whl/MergePythonSDK/ats/model/attachment_endpoint_request.py
import re # noqa: F401 import sys # noqa: F401 from typing import ( Optional, Union, List, Dict, ) from MergePythonSDK.shared.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, ModelSimple, cached_property, OpenApiModel, change_keys_js_to_python,...
PypiClean
/MNN-0.0.7-cp27-cp27mu-manylinux2010_x86_64.whl/MNNTools/MNN_FB/QuantizedFloatParam.py
# namespace: MNN import flatbuffers class QuantizedFloatParam(object): __slots__ = ['_tab'] @classmethod def GetRootAsQuantizedFloatParam(cls, buf, offset): n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) x = QuantizedFloatParam() x.Init(buf, n + offset) ...
PypiClean
/NeuroTools-0.3.1.tar.gz/NeuroTools-0.3.1/src/visual_logging.py
import zipfile, atexit, os from NeuroTools import check_dependency from datetime import datetime from logging import CRITICAL, DEBUG, ERROR, FATAL, INFO, WARN, WARNING, NOTSET from time import sleep if check_dependency('matplotlib'): import matplotlib matplotlib.use('Agg') if check_dependency('pylab'): ...
PypiClean
/ImageResolver-0.4.2.tar.gz/ImageResolver-0.4.2/imageresolver/plugins/opengraph.py
import re import os import logging from operator import itemgetter from imageresolver import FileExtensionResolver class Plugin(object): def get_image(self, url, soup): ogtags = [{'type': 'facebook', 'attribute': 'property', 'name': 'og:image', 'value': 'content'}, {'type': 'facebook', '...
PypiClean
/Booktype-1.5.tar.gz/Booktype-1.5/lib/booki/site_static/js/jquery/ui/jquery.ui.droppable.js
(function( $, undefined ) { $.widget("ui.droppable", { widgetEventPrefix: "drop", options: { accept: '*', activeClass: false, addClasses: true, greedy: false, hoverClass: false, scope: 'default', tolerance: 'intersect' }, _create: function() { var o = this.options, accept = o.accept; this.isover...
PypiClean
/IF_LICENSE_PLATES_COULD_TALK-0.0.1.tar.gz/IF_LICENSE_PLATES_COULD_TALK-0.0.1/src/if_license_plates_could_talk/data/crime.py
import pandas as pd import os from . import utils from . import population from datetime import datetime crime_categories = { "crimes": ["Straftaten insgesamt"], "fraud": [ "Betrug §§ 263, 263a, 264, 264a, 265, 265a, 265b StGB davon:", "Betrug §§ 263, 263a, 264, 264a, 265, 265a, 265b StGB", "Ur...
PypiClean
/Cfg-Loader-0.2.2.tar.gz/Cfg-Loader-0.2.2/cfg_loader/interpolator.py
import re import string from .exceptions import UnsetRequiredSubstitution, InvalidSubstitution # Brace formatted syntax separators (c.f. https://docs.docker.com/compose/compose-file/#variable-substitution) SEPARATOR_DEFAULT_IF_EMPTY = ':-' SEPARATOR_DEFAULT_IF_UNSET = '-' SEPARATOR_ERROR_IF_EMPTY = ':?' SEPARATOR_ERR...
PypiClean
/Gaussian_Bionomial_Distributions-0.1.tar.gz/Gaussian_Bionomial_Distributions-0.1/Gaussian_Bionomial_Distributions/Gaussiandistribution.py
import math import matplotlib.pyplot as plt from .Generaldistribution import Distribution class Gaussian(Distribution): """ Gaussian distribution class for calculating and visualizing a Gaussian distribution. Attributes: mean (float) representing the mean value of the distribution stdev (float) representing ...
PypiClean
/Montreal-Forced-Aligner-3.0.0a3.tar.gz/Montreal-Forced-Aligner-3.0.0a3/docs/source/user_guide/corpus_creation/index.rst
.. _corpus_creation: ************************* Corpus creation utilities ************************* MFA now contains several command line utilities for helping to create corpora from scratch. The main workflow is as follows: 1. If the corpus made up of long sound file that need segmenting, :ref:`segment the audio fi...
PypiClean
/MIAvisual-0.0.6-py3-none-any.whl/matplotlib/rcsetup.py
import ast from functools import lru_cache, reduce from numbers import Number import operator import os import re import numpy as np from matplotlib import _api, cbook from matplotlib.cbook import ls_mapper from matplotlib.colors import Colormap, is_color_like from matplotlib.fontconfig_pattern import parse_fontconfi...
PypiClean
/GenIce-1.0.11.tar.gz/GenIce-1.0.11/genice/lattices/Struct66.py
pairs=""" 138 34 9 209 168 120 53 71 127 166 31 23 105 122 196 67 143 114 24 171 212 178 115 183 10 188 2 88 1 111 34 49 0 150 174 208 42 195 26 56 197 57 174 142 167 172 41 206 27 98 196 182 20 90 153 123 96 23 39 180 37 175 160 178 29 168 117 186 40 67 197 215 58 139 213 31 187 113 3 132 116 35 80 73 168 154 19 97 2 ...
PypiClean
/Nuitka_fixed-1.1.2-cp310-cp310-win_amd64.whl/nuitka/utils/FileOperations.py
from __future__ import print_function import errno import fnmatch import glob import os import shutil import stat import tempfile import time from contextlib import contextmanager from nuitka.__past__ import ( # pylint: disable=I0021,redefined-builtin WindowsError, basestring, raw_input, ) from nuitka.Py...
PypiClean
/KeralaPyApiV2-2.0.2020.tar.gz/KeralaPyApiV2-2.0.2020/pyrogram/client/methods/messages/edit_message_media.py
import os from typing import Union import pyrogram from pyrogram.api import functions, types from pyrogram.client.ext import BaseClient, utils from pyrogram.client.types import ( InputMediaPhoto, InputMediaVideo, InputMediaAudio, InputMediaAnimation, InputMediaDocument ) from pyrogram.client.types.input_media...
PypiClean
/Data%20Lake-0.0.0.1.tar.gz/Data Lake-0.0.0.1/DataLake/DataLake.py
from abc import ABC, abstractmethod from notebookutils import mssparkutils from delta.tables import * from pyspark.sql.functions import * import json class DataLake(ABC): events = None string_validate_columns = "" input_data = "" mount_data = "" json_load_insert_values = {} colums_validate_mer...
PypiClean
/Office365-REST-Python-Client-2.4.3.tar.gz/Office365-REST-Python-Client-2.4.3/office365/onedrive/termstore/sets/collection.py
from office365.entity_collection import EntityCollection from office365.onedrive.termstore.sets.name import LocalizedName from office365.onedrive.termstore.sets.set import Set from office365.runtime.client_value_collection import ClientValueCollection from office365.runtime.queries.create_entity import CreateEntityQuer...
PypiClean
/GailBot_Testing_Suite-0.1a8-py3-none-any.whl/gailbot/services/organizer/settings/interface/googleInterface.py
import os from pydantic import BaseModel, ValidationError from typing import Dict, Union from .engineSettingInterface import EngineSettingInterface from gailbot.core.utils.logger import makelogger from gailbot.core.engines.google import Google from gailbot.core.utils.general import copy, is_file, is_directory, make_dir...
PypiClean
/CephQeSdk-1.0.0.tar.gz/CephQeSdk-1.0.0/src/RhcsQeSdk/core/cli/ceph/orch/host.py
import logging from copy import deepcopy import RhcsQeSdk.core.cli.fabfile as fabfile from RhcsQeSdk.core.cli.ceph.orch.label import Label from RhcsQeSdk.core.cli.ceph.orch.maintanence import Maintanence from RhcsQeSdk.core.utilities import core_utils logger = logging.getLogger(__name__) logger.setLevel(logging.DEBUG...
PypiClean
/FamcyDev-0.3.71-py3-none-any.whl/Famcy/_items_/input_form/inputList/inputList.py
import Famcy import json class inputList(Famcy.FamcyInputBlock): """ Represents the block to display paragraph. """ def __init__(self, **kwargs): self.value = inputList.generate_template_content() super(inputList, self).__init__(**kwargs) self.init_block() @classmethod...
PypiClean
/Mopidy-Spotmop-2.10.1.tar.gz/Mopidy-Spotmop-2.10.1/mopidy_spotmop/static/app/services/notify/service.js
angular.module('spotmop.services.notify', []) /** * Service to facilitate the creation and management of dialogs globally **/ .factory("NotifyService", ['$rootScope', '$compile', '$interval', '$timeout', 'SettingsService', function( $rootScope, $compile, $interval, $timeout, SettingsService ){ // setup respon...
PypiClean
/Furious-GUI-0.2.4.tar.gz/Furious-GUI-0.2.4/Furious/Core/Configuration.py
from Furious.Core.Core import XrayCore from Furious.Core.Intellisense import Intellisense from Furious.Widget.Widget import MessageBox from Furious.Utility.Constants import APPLICATION_NAME from Furious.Utility.Utility import Base64Encoder, Protocol, bootstrapIcon from Furious.Utility.Translator import gettext as _ im...
PypiClean
/BabitMF_GPU-0.0.8-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/bmf/builder/bmf_graph.py
import json import os import sys import threading import time from bmf.lib._bmf import engine from .bmf_modules import bmf_modules from .bmf_node import BmfNode, BmfEdge from .bmf_stream import BmfStream from .ff_filter import get_filter_para from .graph_config import NodeConfig, GraphConfigEncoder, GraphConfig, Stream...
PypiClean
/Antares_Launcher-1.3.0.tar.gz/Antares_Launcher-1.3.0/doc/source/development_guide.rst
***************** Development Guide ***************** This part of the documentation is for developers. The aim is to have a design doc ready to be shared with any other dev. It should greatly help people getting in the project. The goal is to give you more information about the module : what exactly it does, why an...
PypiClean
/MultiSim-0.10.0.tar.gz/MultiSim-0.10.0/multisim/parts/mixingvalve.py
import numpy as np import pandas as pd from ..simenv import SimEnv from .. import precomp_funs as _pf class MixingValve(SimEnv): """ type: MixingValve class. The MixingValve **mixes or separates** a flow. The flow on the 2-end-side is mixed/separated by the factors n1 and n2, with **n1 + n1 = 1** and...
PypiClean
/MambuPy-2.0.0b22.tar.gz/MambuPy-2.0.0b22/mambupy/rest1to2/mambubranch.py
from mambupy.rest.mambubranch import MambuBranch as MambuBranch1 from mambupy.rest.mambubranch import MambuBranches as MambuBranches1 from mambupy.rest1to2.mambustruct import MambuStruct from mambupy.rest.mamburestutils import MambuStructIterator class MambuBranch(MambuStruct, MambuBranch1): def __init__(self, *a...
PypiClean
/FDmitry_Server-1.0.1.tar.gz/FDmitry_Server-1.0.1/server/server/database.py
from sqlalchemy import create_engine, Table, Column, Integer, String, MetaData, ForeignKey, DateTime, Text from sqlalchemy.orm import mapper, sessionmaker import datetime class ServerStorage: ''' Класс - оболочка для работы с базой данных сервера. Использует SQLite базу данных, реализован с помощью SQ...
PypiClean
/DJModels-0.0.6-py3-none-any.whl/djmodels/db/migrations/operations/base.py
from djmodels.db import router from djmodels.db.models.fields.related import RECURSIVE_RELATIONSHIP_CONSTANT class Operation: """ Base class for migration operations. It's responsible for both mutating the in-memory model state (see db/migrations/state.py) to represent what it performs, as well a...
PypiClean
/dragonflow-4.0.0.tar.gz/dragonflow-4.0.0/doc/source/specs/remote_device_communication.rst
.. This work is licensed under a Creative Commons Attribution 3.0 Unported License. http://creativecommons.org/licenses/by/3.0/legalcode =========================== Remote Device Communication =========================== https://blueprints.launchpad.net/dragonflow/+spec/remote-device-communication This spec prop...
PypiClean
/OTRXMPPChannel-1.0.4.tar.gz/OTRXMPPChannel-1.0.4/README.rst
XMPP-OTR channel for Python =========================== This is a Python library for communicating with XMPP destinations using OTR (`Off-the-Record Messaging`_) encryption. Features -------- - Your internet application can talk securely to you on your PC or smartphone using readily-available chat software with ...
PypiClean
/gramaddict-3.2.5.tar.gz/gramaddict-3.2.5/README.md
<p align="center"> <img src="https://github.com/GramAddict/bot/raw/master/res/logo.png" alt="logo"> <br /> <h1 align="center">GramAddict</h1> <br /> <p align="center">Looking for Instagram automation? I'm proud to present you a <b>100% free and open source Instagram bot</b>. This bot will allow you to grow yo...
PypiClean
/CubicReport-0.4.18.tar.gz/CubicReport-0.4.18/geraldo/generators/pdf.py
import datetime, os from base import ReportGenerator from reportlab.pdfgen.canvas import Canvas from reportlab.lib.styles import ParagraphStyle from reportlab.platypus import Paragraph, KeepInFrame from reportlab.lib.units import cm from reportlab.pdfbase import pdfmetrics from reportlab.pdfbase.ttfonts import TTFont ...
PypiClean
/EasyDataSetToBOP-1.0.2.tar.gz/EasyDataSetToBOP-1.0.2/easydatasettobop/bop_dataset_utils/misc.py
import os import sys import datetime import pytz import math import subprocess import numpy as np from scipy.spatial import distance from easydatasettobop.bop_dataset_utils import transform def log(s): """A logging function. :param s: String to print (with the current date and time). """ # Use UTC t...
PypiClean
/ChemDataExtractor-IDE-1.3.2.tar.gz/ChemDataExtractor-IDE-1.3.2/chemdataextractor/cli/dict.py
from __future__ import absolute_import from __future__ import division from __future__ import print_function import re import click from ..nlp.lexicon import ChemLexicon from ..nlp.tokenize import ChemWordTokenizer from ..nlp.tag import DictionaryTagger from ..nlp.cem import CsDictCemTagger, CiDictCemTagger, STOPLIST...
PypiClean
/aimm_simulator-2.0.3.tar.gz/aimm_simulator-2.0.3/src/AIMM_simulator/AIMM_simulator.py
__version__='2.0.2' '''The AIMM simulator emulates a cellular radio system roughly following 5G concepts and channel models.''' from os.path import basename from sys import stderr,stdout,exit,version as pyversion from math import hypot,atan2,pi as math_pi from time import time,sleep from collections import deque try:...
PypiClean
/Electrum-CHI-3.3.8.tar.gz/Electrum-CHI-3.3.8/electrum_chi/electrum/gui/qt/address_list.py
from enum import IntEnum from PyQt5.QtCore import Qt, QPersistentModelIndex, QModelIndex from PyQt5.QtGui import QStandardItemModel, QStandardItem, QFont from PyQt5.QtWidgets import QAbstractItemView, QComboBox, QLabel, QMenu from electrum.i18n import _ from electrum.util import block_explorer_URL, profiler from ele...
PypiClean
/BlueWhale3-3.31.3.tar.gz/BlueWhale3-3.31.3/Orange/widgets/visualize/owvenndiagram.py
import math import unicodedata from collections import namedtuple, defaultdict from itertools import compress, count from functools import reduce from operator import attrgetter from xml.sax.saxutils import escape from typing import Dict, Any, List, Mapping, Optional import numpy as np from AnyQt.QtWidgets import ( ...
PypiClean
/INDIpy-0.4.0.tar.gz/INDIpy-0.4.0/indi/device/properties/instance/elements.py
from __future__ import annotations import logging from typing import TYPE_CHECKING, Tuple, Type, Union from indi.device import events, values from indi.device.events import EventSource from indi.message import checks, const, def_parts, one_parts if TYPE_CHECKING: from indi.device.driver import Device from in...
PypiClean
/Gnotty-0.2.7.tar.gz/Gnotty-0.2.7/gnotty/static/js/urlize.js
var urlize = (function () { // From http://blog.stevenlevithan.com/archives/cross-browser-split // modified to not add itself to String.prototype. /*! * Cross-Browser Split 1.1.1 * Copyright 2007-2012 Steven Levithan <stevenlevithan.com> * Available under the MIT License * ECMAScript compliant, uniform cross-br...
PypiClean
/MariaDB_SQLBuilder-1.0.0a5-py3-none-any.whl/mariadb_sqlbuilder/builder/insert_builder.py
from json import dumps from typing import Union, Dict, List from .base_builder import BaseBuilder, _transform_value_valid class InsertBuilder(BaseBuilder): """ TODO: add a description This is a dummy docstring. """ def __init__(self, tb, **kwargs): super().__init__(tb, **kwargs) ...
PypiClean
/Kr0nOs_Bot-3.3.11-py3-none-any.whl/redbot/cogs/audio/core/commands/llset.py
import logging import discord from redbot.core import commands from ..abc import MixinMeta from ..cog_utils import CompositeMetaClass, _ log = logging.getLogger("red.cogs.Audio.cog.Commands.lavalink_setup") class LavalinkSetupCommands(MixinMeta, metaclass=CompositeMetaClass): @commands.group(name="llsetup", a...
PypiClean
/ApiLogicServer-9.2.18-py3-none-any.whl/api_logic_server_cli/create_from_model/safrs-react-admin-npm-build/static/js/2478.4e6b45fa.chunk.js
"use strict";(self.webpackChunkreact_admin_upgrade=self.webpackChunkreact_admin_upgrade||[]).push([[2478],{42478:function(e,t,i){i.r(t),i.d(t,{conf:function(){return f},language:function(){return w}});var n,r,o=i(37762),a=i(94389),l=Object.defineProperty,d=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,u=...
PypiClean
/MRUs-0.0.7.tar.gz/MRUs-0.0.7/README.md
# MRUs: Matrix Reduction Utils > Author @MingjunXu ## Use MRUs in your project ```python from MRUs import * ``` ## LU Factorization ```python A = np.array([[0, 1, 1], [1, 1, 1], [1, 1, 1]], dtype=float) L, U = lu_factorization(A) print('A 矩阵') print(A) print('L 矩阵') print(L) print('U 矩...
PypiClean
/OASYS1-WONDER-1.0.45.tar.gz/OASYS1-WONDER-1.0.45/orangecontrib/wonder/widgets/wonder/ow_chebyshev_background.py
import sys from orangewidget.settings import Setting from orangewidget import gui as orangegui from orangecontrib.wonder.widgets.gui.ow_generic_parameter_widget import OWGenericWidget, OWGenericDiffractionPatternParametersWidget, ParameterBox from orangecontrib.wonder.util.gui_utility import gui from orangecontrib.w...
PypiClean
/EMPOL_GUI-2.2.8.tar.gz/EMPOL_GUI-2.2.8/EMPOL_GUI/empol_astrometry.py
import numpy as np #import pyfitsf import os, sys import time import math import time, datetime import string import urllib.request, urllib.parse, urllib.error from astropy.io import fits from astropy.wcs import WCS from astropy.stats import sigma_clipped_stats import glob import subprocess import warnings import matpl...
PypiClean
/GA_kit-0.2.1-py3-none-any.whl/GA_kit/hboa.py
from sys import stderr from math import log, lgamma from .sga import PMBGA, log2 class Bayesian_Network (object) : def __init__ \ ( self, hboa, genes , lgamma = lgamma , do_debug = 0 , verbose = 0 , max_parent = 0 , min_split = 0 # do not split below t...
PypiClean
/MaterialDjango-0.2.5.tar.gz/MaterialDjango-0.2.5/materialdjango/static/materialdjango/components/bower_components/prism/components/prism-handlebars.js
(function(Prism) { var handlebars_pattern = /\{\{\{[\s\S]+?\}\}\}|\{\{[\s\S]+?\}\}/; Prism.languages.handlebars = Prism.languages.extend('markup', { 'handlebars': { pattern: handlebars_pattern, inside: { 'delimiter': { pattern: /^\{\{\{?|\}\}\}?$/i, alias: 'punctuation' }, 'string': /(...
PypiClean
/Amipy-1.0.2.tar.gz/Amipy-1.0.2/amipy/util/http.py
import copy import requests import asyncio from contextlib import closing async def send_async_http(session,method,url,*, retries=1, interval=1, wait_factor=2, timeout=0, pat...
PypiClean
/Kato-FlaskAppBuilder-1.1.14.tar.gz/Kato-FlaskAppBuilder-1.1.14/flask_appbuilder/models/generic/interface.py
from . import filters from ..base import BaseInterface def _include_filters(obj): for key in filters.__all__: if not hasattr(obj, key): setattr(obj, key, getattr(filters, key)) class GenericInterface(BaseInterface): filter_converter_class = filters.GenericFilterConverter def __init...
PypiClean
/EpyNN-1.2.11.tar.gz/EpyNN-1.2.11/epynnlive/dummy_string/prepare_dataset.py
import random def features_string(N_FEATURES=12): """Generate dummy string features. :param N_FEATURES: Number of features, defaults to 12. :type N_FEATURES: int :return: random string features of length N_FEATURES. :rtype: list[str] """ # List of words WORDS = ['A', 'T', 'G', 'C'] ...
PypiClean
/McStasScript-0.0.63.tar.gz/McStasScript-0.0.63/mcstasscript/instrument_diagram/generate_Union.py
from mcstasscript.instrument_diagram.connections import ConnectionList from mcstasscript.instrument_diagram.arrow import Arrow def generate_Union_arrows(components, component_box_dict, box_names, component_categories, color=None): """ Generate Arrow objects related to use of Union components Currently su...
PypiClean
/BenchExec-3.17.tar.gz/BenchExec-3.17/benchexec/baseexecutor.py
import errno import logging import os import subprocess import sys import threading from benchexec import __version__ from benchexec import util sys.dont_write_bytecode = True # prevent creation of .pyc files def add_basic_executor_options(argument_parser): """Add some basic options for an executor to an argp...
PypiClean
/LUBEAT-0.13.1-cp38-cp38-macosx_10_9_x86_64.whl/econml/sklearn_extensions/linear_model.py
import numbers import numpy as np import warnings from collections.abc import Iterable from scipy.stats import norm from econml.sklearn_extensions.model_selection import WeightedKFold, WeightedStratifiedKFold from econml.utilities import ndim, shape, reshape, _safe_norm_ppf, check_input_arrays from sklearn import clone...
PypiClean
/Booktype-1.5.tar.gz/Booktype-1.5/lib/booki/site_static/xinha/lang/ru.js
// LANG: "ru", ENCODING: UTF-8 // Author: Yulya Shtyryakova, <yulya@vdcom.ru> // Some additions by: Alexey Kirpichnikov, <alexkir@kiwistudio.ru> // I took French version as a source of English phrases because French version was the most comprehensive // (fr.js was the largest file, actually) %) // FOR TRANSLATORS: /...
PypiClean
/Bluebook-0.0.1.tar.gz/Bluebook-0.0.1/pylot/component/static/pylot/vendor/mdeditor/bower_components/codemirror/mode/r/r.js
CodeMirror.defineMode("r", function(config) { function wordObj(str) { var words = str.split(" "), res = {}; for (var i = 0; i < words.length; ++i) res[words[i]] = true; return res; } var atoms = wordObj("NULL NA Inf NaN NA_integer_ NA_real_ NA_complex_ NA_character_"); var builtins = wordObj("list q...
PypiClean
/Blackboard_LMS_CLI-1.0.9-py3-none-any.whl/bbcli/commands/contents.py
import json from bbcli.utils.URL_builder import URL_builder from bbcli.utils.utils import format_date from bbcli.utils.error_handler import create_exception_handler, delete_exception_handler, list_exception_handler, update_exception_handler import click from bbcli.entities.content_builder_entitites import FileOptions, ...
PypiClean
/DESlib-0.3.5-py3-none-any.whl/deslib/util/dfp.py
# Author: Rafael Menelau Oliveira e Cruz <rafaelmenelau@gmail.com> # # License: BSD 3 clause import numpy as np from sklearn.neighbors import KNeighborsClassifier def frienemy_pruning(X_query, X_dsel, y_dsel, ensemble, k): """Implements the Online Pruning method (frienemy) which prunes base classifiers tha...
PypiClean
/MnemoPwd-1.2.1-py3-none-any.whl/mnemopwd/server/clients/protocol/StateS21.py
# Copyright (c) 2015-2017, Thierry Lemeunier <thierry at lemeunier dot net> # All rights reserved. # # Redistribution and use in source and binary forms, with or without modification, # are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright n...
PypiClean
/Office365-REST-Python-Client-2.4.3.tar.gz/Office365-REST-Python-Client-2.4.3/office365/sharepoint/files/file.py
from office365.runtime.client_result import ClientResult from office365.runtime.compat import is_string_type from office365.runtime.http.http_method import HttpMethod from office365.runtime.http.request_options import RequestOptions from office365.runtime.queries.function import FunctionQuery from office365.runtime.que...
PypiClean
/DataTig-0.5.0.tar.gz/DataTig-0.5.0/datatig/sqlite.py
import json import sqlite3 from contextlib import closing from datatig.models.siteconfig import SiteConfigModel from .exceptions import DuplicateRecordIdException from .models.error import ErrorModel from .models.record import RecordModel from .models.record_error import RecordErrorModel class DataStoreSQLite: ...
PypiClean
/FastGets-0.3.5.tar.gz/FastGets-0.3.5/fastgets/web/static/dist/plugins/save/plugin.js
(function () { var defs = {}; // id -> {dependencies, definition, instance (possibly undefined)} // Used when there is no 'main' module. // The name is probably (hopefully) unique so minification removes for releases. var register_3795 = function (id) { var module = dem(id); var fragments = id....
PypiClean
/Fanery-0.2.5.tar.gz/Fanery-0.2.5/docs/index.rst
.. Fanery documentation master file, created by sphinx-quickstart on Sun Aug 31 13:49:54 2014. You can adapt this file completely to your liking, but it should at least contain the root `toctree` directive. Welcome to Fanery's documentation! ================================== Contents: .. toctree:: :maxd...
PypiClean
/CartiMorph_nnUNet-1.7.14.tar.gz/CartiMorph_nnUNet-1.7.14/CartiMorph_nnUNet/postprocessing/connected_components.py
import ast from copy import deepcopy from multiprocessing.pool import Pool import numpy as np from CartiMorph_nnUNet.configuration import default_num_threads from CartiMorph_nnUNet.evaluation.evaluator import aggregate_scores from scipy.ndimage import label import SimpleITK as sitk from CartiMorph_nnUNet.utilities.s...
PypiClean
/3d-converter-0.9.0.tar.gz/3d-converter-0.9.0/models_converter/formats/gltf/parser.py
import json from models_converter.formats import universal from models_converter.formats.gltf.chunk import GlTFChunk from models_converter.formats.gltf.gltf import GlTF from models_converter.formats.gltf.node import Node from models_converter.formats.universal import Scene, Geometry from models_converter.interfaces im...
PypiClean
/Flask-Statics-Helper-1.0.0.tar.gz/Flask-Statics-Helper-1.0.0/flask_statics/static/angular/i18n/angular-locale_en-150.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
/MufSim-1.2.2.tar.gz/MufSim-1.2.2/mufsim/insts/directives.py
import mufsim.utils as util import mufsim.gamedb as db from mufsim.logger import log from mufsim.errors import MufCompileError, ReloadAsMuvException from mufsim.insts.base import Instruction, instr @instr("$abort") class InstDollarAbort(Instruction): def compile(self, cmplr, code, src): val, src = cmplr.g...
PypiClean
/MagPy_TMS-1.4.tar.gz/MagPy_TMS-1.4/magpy/magstim.py
from __future__ import division import serial from sys import version_info, platform from os.path import realpath, join, dirname from os import getcwd from queue import Empty from time import sleep from multiprocessing import Queue, Process from functools import partial from yaml import safe_load from ast import litera...
PypiClean
/Demomgr-1.10.1-py3-none-any.whl/demomgr/dialogues/play.py
from itertools import chain, cycle, repeat import os import queue import re import subprocess import tkinter as tk import tkinter.ttk as ttk import tkinter.messagebox as tk_msg from multiframe_list import MultiframeList from multiframe_list.multiframe_list import SELECTION_TYPE import vdf from demomgr import constant...
PypiClean
/CleanAdminDjango-1.5.3.1.tar.gz/CleanAdminDjango-1.5.3.1/django/contrib/localflavor/uy/forms.py
from __future__ import absolute_import, unicode_literals from django.core.validators import EMPTY_VALUES from django.forms.fields import Select, RegexField from django.forms import ValidationError from django.utils.translation import ugettext_lazy as _ from django.contrib.localflavor.uy.util import get_validation_digi...
PypiClean
/LowCostSmartFarmHub-0.1.9.tar.gz/LowCostSmartFarmHub-0.1.9/docs/installation.rst
.. highlight:: shell ============ Installation ============ Stable release -------------- To install Smart Farm Hub, run this command in your terminal: .. code-block:: console $ pip install LowCostSmartFarmHub This is the preferred method to install Smart Farm Hub, as it will always install the most recent s...
PypiClean
/CaMo-0.0.5-py3-none-any.whl/camo/structure/structural_causal_model.py
from typing import Any, Dict, Iterable, Tuple import numpy as np import pandas as pd from sympy import solve, stats from sympy.parsing.sympy_parser import parse_expr from .causal_model import CausalModel from ..backend import DirectedGraph, topological_sort from ..utils import _as_set class StructuralCausalModel(Ca...
PypiClean
/Editra-0.7.20.tar.gz/Editra-0.7.20/src/ed_event.py
__author__ = "Cody Precord <cprecord@editra.org>" __svnid__ = "$Id: ed_event.py 63789 2010-03-30 02:25:17Z CJP $" __revision__ = "$Revision: 63789 $" #-----------------------------------------------------------------------------# # Dependencies import wx #--------------------------------------------------------------...
PypiClean
/DjangoKit-0.13.tar.gz/DjangoKit-0.13/djangokit/db/mixins.py
from djangokit.utils.deep import to_dict, from_dict def _save(instance, save): if save is not False and hasattr(instance, 'save'): fields = set(['details']) if save is not True: fields = fields.union(save) instance.save(update_fields=fields) class DetailsMixin: """Methods...
PypiClean
/Flask-RRBAC-0.3.0.tar.gz/Flask-RRBAC-0.3.0/flask_rrbac/models/acl_role_route_map_mixin.py
from datetime import datetime from sqlalchemy.ext.hybrid import hybrid_property from sqlalchemy import func, case class ACLRoleRouteMapMixin(object): def __init__(self): if not hasattr(self.__class__, 'role'): self.role = None if not hasattr(self.__class__, 'route'): self.r...
PypiClean
/APL_Brochu-0.0.1-py3-none-any.whl/apl/apl.py
from typing import Tuple import numpy as np from numpy.random import default_rng from sklearn.gaussian_process.kernels import Kernel from .posterior_approximation import LogLikelihood, laplace_approximation from .acquisitions import Acquisition from .gaussian_process import gaussian_process_conditional from .utils im...
PypiClean
/MLapp1-0.0.37.tar.gz/MLapp1-0.0.37/src/MLapp/generateScript.py
from .UI.componentIDs import classification_Com_IDS,classification_models,\ undersampling_Com_IDS,underSamp_models,\ overrsampling_Com_IDS, overSamp_models, \ modelEval_Com_IDS,\ scaling_Com_IDS,scaling_models, \ featSel_Com_IDS, featSel_models,featSel_est from ....
PypiClean
/ARGs_OAP-2.3.2.tar.gz/ARGs_OAP-2.3.2/ARGs_OAP/bin/bbmap/rename.sh
usage(){ echo " Written by Brian Bushnell Last modified April 1, 2020 Description: Renames reads to <prefix>_<number> where you specify the prefix and the numbers are ordered. There are other renaming modes too. If reads are paired, pairs should be processed together; if reads are interleaved, the interleaved flag...
PypiClean
/CryptoLyzer-0.9.1-py3-none-any.whl/cryptolyzer/ssh/dhparams.py
import attr import six from cryptodatahub.common.algorithm import KeyExchange from cryptodatahub.ssh.algorithm import SshKexAlgorithm from cryptoparser.common.base import Serializable from cryptoparser.ssh.subprotocol import ( SshDHGroupExchangeGroup, SshDHGroupExchangeReply, SshMessageCode, ) from cr...
PypiClean
/NICpolpy-0.1.5-py3-none-any.whl/nicpolpy/ysfitsutilpy4nicpolpy/hduutil.py
import glob import re from copy import deepcopy from pathlib import Path, PosixPath, WindowsPath from warnings import warn import bottleneck as bn import numpy as np import pandas as pd from astropy import units as u from astropy.coordinates import SkyCoord from astropy.io import fits from astropy.nddata import CCDDat...
PypiClean
/MergePythonSDK.ticketing-2.2.2-py3-none-any.whl/MergePythonSDK/accounting/model/generate_remote_key_request.py
import re # noqa: F401 import sys # noqa: F401 from typing import ( Optional, Union, List, Dict, ) from MergePythonSDK.shared.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, ModelSimple, cached_property, OpenApiModel, change_keys_js_to_python,...
PypiClean
/EMD_signal-1.5.1-py3-none-any.whl/PyEMD/EMD.py
import logging from typing import Optional, Tuple import numpy as np from scipy.interpolate import interp1d from PyEMD.splines import akima, cubic, cubic_hermite, cubic_spline_3pts, pchip from PyEMD.utils import get_timeline FindExtremaOutput = Tuple[np.ndarray, np.ndarray, np.ndarray, np.ndarray, np.ndarray] cla...
PypiClean
/ConSSL-0.0.1-py3-none-any.whl/CSSL/models/regression/linear_regression.py
from argparse import ArgumentParser import pytorch_lightning as pl import torch from torch import nn from torch.nn import functional as F from torch.optim import Adam from torch.optim.optimizer import Optimizer class LinearRegression(pl.LightningModule): """ Linear regression model implementing - with option...
PypiClean