id
stringlengths
1
265
text
stringlengths
6
5.19M
dataset_id
stringclasses
7 values
/Maxar_Portal_SDK-1.1.2-py3-none-any.whl/Maxar_Portal_SDK/auth/auth.py
import requests import os class Auth: """ This class handles authentication for the MPS SDK. When a config file is not present the user must pass the args below. Please create .MPS-config in home directory. For example: "C:/Users/will/.MPS-config" MPS-config contents: [mps] ...
PypiClean
/EGene-0.2.6.tar.gz/EGene-0.2.6/egene/egene_main.py
import random import math import egene.pygameTools as pgt import pkg_resources from multiprocessing import Pool import statistics as stat import pygame from pygame import gfxdraw import os # Libraries for colored console output from colorama import Fore os.environ["PYGAME_HIDE_SUPPORT_PROMPT"] = "hide" icon = pkg_r...
PypiClean
/Divisi-0.6.10.tar.gz/Divisi-0.6.10/doc/examples/blending.py
import numpy as np from pylab import * from csc.divisi.tensor import DenseTensor from csc.divisi.blend import Blend #NUM_SAMPLES = 25 #factors = np.linspace(0, 1, NUM_SAMPLES) #"Generate a random matrix." #mat1 = DenseTensor(np.random.random((15,15))) #mat2 = DenseTensor(np.random.random((15,15))) #svd = mat1.svd() ...
PypiClean
/Ageas-0.0.1a6.tar.gz/Ageas-0.0.1a6/ageas/tool/gem.py
import os import re import pandas as pd import ageas.tool as tool from warnings import warn class Reader(object): """ Class to read in scRNA-seq or bulk RNA-seq based Gene Expression Matrices Only suppordt .cvs and .txt for now """ def __init__(self, path:str = None, **kwargs): super(Reader, self).__init__() ...
PypiClean
/MangaReaderScraper-0.51.tar.gz/MangaReaderScraper-0.51/scraper/parsers/base.py
import abc import logging import sys from functools import lru_cache from typing import Iterable, List, Optional, Tuple, Type import requests from bs4.element import Tag from scraper.exceptions import MangaParserNotSet from scraper.new_types import SearchResults from scraper.utils import get_html_from_url logger = l...
PypiClean
/Boodler-2.0.3.tar.gz/Boodler-2.0.3/src/booman/create.py
import sys import types import os import os.path import re import inspect import keyword from booman import CommandError from boodle.agent import Agent class ConstructError(CommandError): """ConstructError: represents an error during package construction. """ def __init__(self, dirname, msg): Com...
PypiClean
/ETLT-0.9.6.tar.gz/ETLT-0.9.6/test/cleaner/DateCleanerTest.py
import unittest from etlt.cleaner.DateCleaner import DateCleaner class DateCleanerTest(unittest.TestCase): # ------------------------------------------------------------------------------------------------------------------ def _test(self, expected, dirty, ignore_time=False): clean = DateCleaner.clea...
PypiClean
/Flask-Statics-Helper-1.0.0.tar.gz/Flask-Statics-Helper-1.0.0/flask_statics/static/angular/i18n/angular-locale_nso.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
/MyghtyUtils-0.52.zip/MyghtyUtils-0.52/test/SyncDict.py
from myghtyutils.util import SyncDict import random, time, weakref, sys # this script tests SyncDict for its thread safety, # ability to always return a value even for a dictionary # that loses data randomly, and # insures that when used as a registry, only one instance # of a particular key/value exists at any one...
PypiClean
/MegEngine-1.13.1-cp37-cp37m-macosx_10_14_x86_64.whl/megengine/distributed/group.py
import time from contextlib import contextmanager from typing import List, Optional, Tuple from mprop import mproperty from ..device import _sh, set_default_device, what_is_xpu from ..random import seed from .server import Client, Server class StaticData: server = None client = None master_ip = None ...
PypiClean
/Hikka_Pyro_New-2.0.103-py3-none-any.whl/hikkapyro/types/inline_mode/inline_query_result_cached_video.py
from typing import Optional, List import hikkapyro from hikkapyro import raw, types, utils, enums from .inline_query_result import InlineQueryResult from ...file_id import FileId class InlineQueryResultCachedVideo(InlineQueryResult): """A link to a video file stored on the Telegram servers. By default, thi...
PypiClean
/MediaWiki_Tools-0.1.1-py3-none-any.whl/mwtools/mediawikitools.py
# %% import requests from bs4 import BeautifulSoup from bs4.element import PageElement from urllib.parse import urlparse, quote import re from typing import Union from warnings import warn from mediawiki import MediaWiki # from pprint import pprint # import mwparserfromhell as mwp class MediaWikiTools: """MediaWikiT...
PypiClean
/Flask-Odoo-0.4.2.tar.gz/Flask-Odoo-0.4.2/src/flask_odoo/types.py
import schematics.types from schematics.exceptions import ConversionError from schematics.translator import _ from schematics.types import BooleanType __all__ = [ "BooleanType", "StringType", "IntType", "FloatType", "DecimalType", "DateType", "DateTimeType", "UTCDateTimeType", "Tim...
PypiClean
/Electrum-CHI-3.3.8.tar.gz/Electrum-CHI-3.3.8/packages/pip/_vendor/idna/uts46data.py
__version__ = "11.0.0" def _seg_0(): return [ (0x0, '3'), (0x1, '3'), (0x2, '3'), (0x3, '3'), (0x4, '3'), (0x5, '3'), (0x6, '3'), (0x7, '3'), (0x8, '3'), (0x9, '3'), (0xA, '3'), (0xB, '3'), (0xC, '3'), (0xD, '3'), (0xE, '3'), (0xF, '3'), (0x10, '3'...
PypiClean
/netket-3.9.2.tar.gz/netket-3.9.2/netket/optimizer/qgt/qgt_jacobian_common.py
from functools import partial import jax import jax.numpy as jnp from netket.utils import mpi, warn_deprecation def sanitize_diag_shift(diag_shift, diag_scale, rescale_shift): """Sanitises different inputs for diag_shift etc. Also raises a deprecation warnings for `rescale_shift`. Returns: t...
PypiClean
/energon_prometheus_exporter_main-0.0.1.tar.gz/energon_prometheus_exporter_main-0.0.1/torchdistill-test/examples/legacy/hf_transformers/custom/dataset.py
from datasets import load_dataset from transformers import PretrainedConfig, default_data_collator from torchdistill.common.constant import def_logger from torchdistill.datasets.collator import register_collate_func logger = def_logger.getChild(__name__) GLUE_TASK2KEYS = { 'ax': ('premise', 'hypothesis'), 'c...
PypiClean
/CmtStandardNames-0.2.2.tar.gz/CmtStandardNames-0.2.2/standard_names/standardname.py
import re class Error(Exception): """Base class for exceptions from this module.""" pass class BadNameError(Error): """ Error to indicate a poorly-formed standard name. """ def __init__(self, name): super(BadNameError, self).__init__() self._name = name def __str__(self)...
PypiClean
/MatchZoo-test-1.0.tar.gz/MatchZoo-test-1.0/README.md
<div align='center'> <img src="./artworks/matchzoo-logo.png" width = "400" alt="logo" align="center" /> </div> # MatchZoo-py [![Tweet](https://img.shields.io/twitter/url/http/shields.io.svg?style=social)](https://twitter.com/intent/tweet?text=MatchZoo-py:%20deep%20learning%20for%20semantic%20matching&url=https://gith...
PypiClean
/Chu-0.2.0.tar.gz/Chu-0.2.0/chu/rpc.py
from datetime import timedelta, datetime from functools import partial from threading import Lock from weakref import WeakValueDictionary import numbers import uuid from tornado import gen from tornado.gen import Task, Callback, Wait from tornado.ioloop import IOLoop from tornado import stack_context import pika imp...
PypiClean
/Django-Pizza-16.10.1.tar.gz/Django-Pizza-16.10.1/pizza/kitchen_sink/static/ks/ckeditor/lang/hu.js
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.lang['hu']={"editor":"HTML szerkesztő","editorPanel":"Rich Text szerkesztő panel","common":{"editorHelp":"Segítségért nyomjon ALT 0","browseServer":"Böngészés a szer...
PypiClean
/DjangoDE-0.2.tar.gz/DjangoDE-0.2/djangode/data/autocomplete/autocompleter.py
import compiler import glob import logging import os import sys from djangode.data.autocomplete.builtins import builtins from djangode.data.autocomplete._class import Class from djangode.data.autocomplete.function import Function from djangode.data.autocomplete.value import Value from djangode.data.autocomplete.varia...
PypiClean
/KratosPoromechanicsApplication-9.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/KratosMultiphysics/PoromechanicsApplication/poromechanics_initial_stress_utility.py
import KratosMultiphysics import KratosMultiphysics.LinearSolversApplication import KratosMultiphysics.FluidDynamicsApplication import KratosMultiphysics.StructuralMechanicsApplication import KratosMultiphysics.PoromechanicsApplication as KratosPoro from importlib import import_module class InitialStressUtility(objec...
PypiClean
/B9gemyaeix-4.14.1.tar.gz/B9gemyaeix-4.14.1/weblate/vcs/git.py
"""Git based version control system abstraction for Weblate needs.""" import logging import os import os.path import random import urllib.parse from configparser import NoOptionError, NoSectionError, RawConfigParser from datetime import datetime from json import JSONDecodeError, dumps from time import sleep from typin...
PypiClean
/Flask_OpenAPI-0.1.0a0-py3-none-any.whl/flask_openapi/utils.py
import re from werkzeug.routing import parse_rule #: A mapping of werkzeug URL rule types to swagger path formats. #: #: See http://flask.pocoo.org/docs/0.11/quickstart/#variable-rules and #: http://swagger.io/specification/#dataTypeFormat for details. WERKZEUG_URL_SWAGGER_TYPE_MAP = { 'default': 'string', # 'd...
PypiClean
/LAMDA-SSL-1.0.2.tar.gz/LAMDA-SSL-1.0.2/LAMDA_SSL/Algorithm/Classification/MeanTeacher.py
from LAMDA_SSL.Base.DeepModelMixin import DeepModelMixin from LAMDA_SSL.Base.InductiveEstimator import InductiveEstimator from LAMDA_SSL.utils import Bn_Controller from sklearn.base import ClassifierMixin import numpy as np import torch import copy import LAMDA_SSL.Config.MeanTeacher as config from LAMDA_SSL.Loss.Cross...
PypiClean
/FLORIS-3.4.1.tar.gz/FLORIS-3.4.1/floris/simulation/flow_field.py
# Licensed under the Apache License, Version 2.0 (the "License"); you may not # use this file except in compliance with the License. You may obtain a copy of # the License at http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the Licens...
PypiClean
/FlaskCms-0.0.4.tar.gz/FlaskCms-0.0.4/flask_cms/static/js/ckeditor/plugins/a11yhelp/dialogs/lang/mk.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","mk",{title:"Инструкции за пристапност",contents:"Содржина на делот за помош. За да го затворите овој дијалот притиснете ESC.",legend:[{na...
PypiClean
/OBITools-1.2.13.tar.gz/OBITools-1.2.13/distutils.ext/obidistutils/serenity/pip/_vendor/requests/packages/chardet/euctwfreq.py
# EUCTW frequency table # Converted from big5 work # by Taiwan's Mandarin Promotion Council # <http:#www.edu.tw:81/mandr/> # 128 --> 0.42261 # 256 --> 0.57851 # 512 --> 0.74851 # 1024 --> 0.89384 # 2048 --> 0.97583 # # Idea Distribution Ratio = 0.74851/(1-0.74851) =2.98 # Random Distribution Ration = 512/(5401-512...
PypiClean
/FFmpyg_DavidRodriguezSoaresCUI-0.0.6.tar.gz/FFmpyg_DavidRodriguezSoaresCUI-0.0.6/src/FFmpyg/ffile.py
from collections import namedtuple from pathlib import Path from typing import List from DRSlib.utils import assertTrue from .enums import FfprobeInfoKey, StreamType from .ffprobe import file_stream_info from .stream import FutureStream, Stream StreamCriteria = namedtuple("StreamCriteria", "codec_type codec") clas...
PypiClean
/CoAPthon-4.0.2.tar.gz/CoAPthon-4.0.2/coapthon/resources/resource.py
from coapthon import defines __author__ = 'Giacomo Tanganelli' class Resource(object): """ The Resource class. Represents the base class for all resources. """ def __init__(self, name, coap_server=None, visible=True, observable=True, allow_children=True): """ Initialize a new Resource...
PypiClean
/BuildStream-2.0.1-cp39-cp39-manylinux_2_28_x86_64.whl/buildstream/_protos/build/bazel/remote/execution/v2/remote_execution_pb2_grpc.py
"""Client and server classes corresponding to protobuf-defined services.""" import grpc from buildstream._protos.build.bazel.remote.execution.v2 import remote_execution_pb2 as build_dot_bazel_dot_remote_dot_execution_dot_v2_dot_remote__execution__pb2 from buildstream._protos.google.longrunning import operations_pb2 as...
PypiClean
/ClueDojo-1.4.3-1.tar.gz/ClueDojo-1.4.3-1/src/cluedojo/static/dojo/nls/ar/colors.js
({"lightsteelblue":"أزرق معدني فاتح","orangered":"أحمر مائل للبرتقالي","midnightblue":"أزرق بحري","cadetblue":"أزرق ملون بالرمادي","seashell":"أبيض مائل للأصفر فاتح","slategrey":"رمادي اردوازي","coral":"مرجاني","darkturquoise":"تركواز داكن","antiquewhite":"أبيض عتيق","mediumspringgreen":"أخضر ربيعي متوسط","salmon":"برت...
PypiClean
/Nuitka_winsvc-1.7.10-cp310-cp310-win_amd64.whl/nuitka/nodes/ClassNodes.py
from nuitka.PythonVersions import python_version from .ChildrenHavingMixins import ( ChildrenExpressionBuiltinType3Mixin, ChildrenHavingMetaclassBasesMixin, ) from .ExpressionBases import ExpressionBase from .ExpressionShapeMixins import ExpressionDictShapeExactMixin from .IndicatorMixins import MarkNeedsAnnot...
PypiClean
/BiblioPixel-3.4.46.tar.gz/BiblioPixel-3.4.46/bibliopixel/control/routing.py
from .. project import construct from .. util import deprecated, flatten from . action import ActionList from . receiver import Receiver class Routing(Receiver): """ A dict that routes a message to an ActionList. """ def __init__(self, routing, default, python_path): """ :param dict r...
PypiClean
/Auptimizer-2.0.tar.gz/Auptimizer-2.0/src/aup/compression/torch/quantization/quantizers.py
# Modified work Copyright (c) 2018 LG Electronics Inc. # SPDX-License-Identifier: GPL-3.0-or-later import logging import copy import torch from schema import Schema, And, Or, Optional from ..utils.config_validation import CompressorSchema from ..compressor import Quantizer, QuantGrad, QuantType __all__ = ['NaiveQuan...
PypiClean
/BlueWhale3-3.31.3.tar.gz/BlueWhale3-3.31.3/Orange/widgets/visualize/utils/widget.py
from xml.sax.saxutils import escape import numpy as np from AnyQt.QtCore import QSize, Signal, Qt from AnyQt.QtWidgets import QApplication from orangewidget.utils.visual_settings_dlg import VisualSettingsDialog from Orange.data import ( Table, ContinuousVariable, Domain, Variable, StringVariable ) from Orange.d...
PypiClean
/DPark-0.5.0.tar.gz/DPark-0.5.0/dpark/dstream.py
from __future__ import absolute_import from __future__ import print_function import os import time import socket import shutil import itertools import threading import random from functools import reduce from collections import deque from contextlib import closing import six from six.moves import range try: import...
PypiClean
/FreeClimb-4.5.0-py3-none-any.whl/freeclimb/model/account_result.py
import re # noqa: F401 import sys # noqa: F401 from freeclimb.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, ModelSimple, cached_property, change_keys_js_to_python, convert_js_args_to_python_args, date, datetime, file_type, none_type, vali...
PypiClean
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/editor/plugins/nls/sk/latinEntities.js
define( "dojox/editor/plugins/nls/sk/latinEntities", //begin v1.x content ({ /* These are already handled in the default RTE amp:"ampersand",lt:"less-than sign", gt:"greater-than sign", nbsp:"no-break space\nnon-breaking space", quot:"quote", */ iexcl:"invertovaný výkričník", cent:"znak centu", pound:"znak...
PypiClean
/B9gemyaeix-4.14.1.tar.gz/B9gemyaeix-4.14.1/weblate/machinery/forms.py
import json from django import forms from django.core.exceptions import ValidationError from django.utils.translation import gettext, gettext_lazy, pgettext_lazy class BaseMachineryForm(forms.Form): def __init__(self, machinery, *args, **kwargs): self.machinery = machinery super().__init__(*args...
PypiClean
/Booktype-1.5.tar.gz/Booktype-1.5/lib/booki/utils/pages.py
from django.http import HttpResponse from django.template import RequestContext, loader from django.shortcuts import render_to_response def ErrorPage(request, templateFile, args = {}, status=200, content_type='text/html'): """ Returns nicely formated Error page. @type request: C{django.http.HttpRequest}...
PypiClean
/Akara-2.0.0a4.tar.gz/Akara-2.0.0a4/lib/demo/collection.py
#Detailed license and copyright information: http://4suite.org/COPYRIGHT from __future__ import with_statement SAMPLE_QUERIES_DOC = ''' = Some sample queries = Get a list of files: curl http://localhost:8880/collection Add a file: curl --request POST --data-binary "@foo.txt" --header "Content-Type: text/p...
PypiClean
/EnergyCapSdk-8.2304.4743.tar.gz/EnergyCapSdk-8.2304.4743/energycap/sdk/models/meter_group_response_py3.py
from msrest.serialization import Model class MeterGroupResponse(Model): """MeterGroupResponse. :param meter_group_id: The meter group identifier :type meter_group_id: int :param meter_group_code: The meter group code :type meter_group_code: str :param meter_group_info: The meter group info ...
PypiClean
/CsuPTMD-1.0.12.tar.gz/CsuPTMD-1.0.12/PTMD/maskrcnn_benchmark/apex/apex/contrib/optimizers/distributed_fused_adam_v3.py
import math import torch import importlib import amp_C from apex.multi_tensor_apply import multi_tensor_applier class DistributedFusedAdamV3(torch.optim.Optimizer): """Implements Adam algorithm. Currently GPU-only. Requires Apex to be installed via ``python setup.py install --cuda_ext --cpp_ext``. It ha...
PypiClean
/Eliza-1.0.3.tar.gz/Eliza-1.0.3/CHANGELOG.md
# Change Log All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org/). ## [Unreleased] ## [1.0.0] - 2016-07-18 ### Changed - default.yaml is not required and will not loaded automatically. - environment configs can be a list of files. - N...
PypiClean
/NiMARE-0.2.0rc2.tar.gz/NiMARE-0.2.0rc2/nimare/estimator.py
from abc import abstractmethod from nimare.base import NiMAREBase from nimare.results import MetaResult class Estimator(NiMAREBase): """Estimators take in Datasets and return MetaResults. All Estimators must have a ``_fit`` method implemented, which applies algorithm-specific methods to a Dataset and re...
PypiClean
/CocoPy-1.1.0rc.zip/CocoPy-1.1.0rc/testSuite/cocopTester.py
import os import os.path import fnmatch from glob import glob import difflib import sys import traceback import shutil TARGET = '' NEEDS = [ ] def expandGlob( aPathPattern ): '''Given a pathname pattern, return a list of all the paths on the local filesystem that match the pattern.''' return glob( os.path....
PypiClean
/LabPype-0.7.8.tar.gz/LabPype-0.7.8/labpype/main/locale.py
from DynaUI import Locale __all__ = ["Locale"] Locale.DEFAULT = { "TITLE" : "LabPype", "GROUP_NONE" : "---- Not grouped ----", # value is used as a key for widget group "GROUP_NEW" : "New Group", "WIDGET_FAIL" : "Task failed", "WIDGET_DONE" : "T...
PypiClean
/FamcyDev-0.3.71-py3-none-any.whl/Famcy/bower_components/bootstrap-table/src/locale/bootstrap-table-fr-BE.js
$.fn.bootstrapTable.locales['fr-BE'] = { formatCopyRows () { return 'Copy Rows' }, formatPrint () { return 'Print' }, formatLoadingMessage () { return 'Chargement en cours' }, formatRecordsPerPage (pageNumber) { return `${pageNumber} lignes par page` }, formatShowingRows (pageFrom, pag...
PypiClean
/Hypy-1.0.1.tar.gz/Hypy-1.0.1/src/hypy/lib.py
import six from _estraiernative import (Condition as CCondition, Database as CDatabase, Document as CDocument, EstError as CError) DEFAULT_ENCODING = 'utf-8' class FlushFailed(Exception): """ Could not remove the specified doc from the database. """ def __init__(self, msg): self.msg = m...
PypiClean
/COMPAS-1.17.5.tar.gz/COMPAS-1.17.5/src/compas/datastructures/network/operations/join.py
from __future__ import print_function from __future__ import absolute_import from __future__ import division from compas.utilities import pairwise from compas.utilities import geometric_key __all__ = ["network_join_edges", "network_polylines"] def network_join_edges(network, key): """Join the edges incidental o...
PypiClean
/BigJob2-0.54.post73.tar.gz/BigJob2-0.54.post73/docs/source/tutorial/rst-tables.py
import os import sys def main(): array = [ [ 'Resource (Hostname)', 'SAGA Adaptor', 'Queue Names', 'Number of Processes', 'Max Walltime (if known)', 'Project Accounts' ], [ 'All machines', 'fork,...
PypiClean
/AutoTransform-1.1.1a8-py3-none-any.whl/autotransform/scripts/migrations/p1_0_1.py
# @black_format """A script to perform a migration of a Manager JSON file from 1.0.0 to 1.0.1.""" import json from argparse import ArgumentParser from typing import Any, Dict from autotransform.config import get_repo_config_relative_path from autotransform.step.condition.base import ConditionName from autotransform...
PypiClean
/LiPydomics-1.6.8-py3-none-any.whl/lipydomics/test/util.py
import os from lipydomics.test import run_tests from lipydomics.data import Dataset from lipydomics.stats import add_log2fc from lipydomics.identification import add_feature_ids from lipydomics.util import abbreviate_sheet, fetch_lipid_class_log2fc def abbrev_xl_sheet_names(): """ abbrev_xl_sheet_names descr...
PypiClean
/Hydrawiser-0.2.tar.gz/Hydrawiser-0.2/hydrawiser/helpers.py
import requests REQUESTS_TIMEOUT = 10 def status_schedule(token): """ Returns the json string from the Hydrawise server after calling statusschedule.php. :param token: The users API token. :type token: string :returns: The response from the controller. If there was an error returns ...
PypiClean
/Gizela-1.0.18.tar.gz/Gizela-1.0.18/gizela/data/GamaCoordStatus.py
from gizela.util.Error import Error class GamaCoordStatusError(Error): pass class GamaCoordStatus: ''' status of coordinates x, y, z and orientation shift for gama-local''' unused = 0 fix_x = 1 adj_x = 2 con_x = 4 adj_X = 4 fix_y = 8 adj_y...
PypiClean
/ALMAFE-Lib-0.0.13.tar.gz/ALMAFE-Lib-0.0.13/ALMAFE/database/DriverMySQL.py
import mysql.connector from mysql.connector import Error class DriverMySQL(): ''' Driver wrapper for mysql-connector-python Provides a uniform interface to SQL user code ''' TIMESTAMP_FORMAT = '%Y-%m-%d %H:%M:%S' def __init__(self, connectionInfo): ''' Constructor :para...
PypiClean
/LAD_SOMPY-1.1-py3-none-any.whl/sompy/visualization/histogram.py
from .view import MatplotView from matplotlib import pyplot as plt from matplotlib import cm from matplotlib.colors import LogNorm import numpy as np class Hist2d(MatplotView): def _fill_hist(self, x, y, mapsize, data_coords, what='train'): x = np.arange(.5, mapsize[1]+.5, 1) y = np.arange(.5, ma...
PypiClean
/implib2-1.0.1.tar.gz/implib2-1.0.1/implib2/imp_bus.py
import time from .imp_device import Device, DeviceError from .imp_datatypes import DataTypes from .imp_packages import Package from .imp_commands import Command from .imp_responces import Responce from .imp_tables import Tables from .imp_helper import _imprange class BusError(Exception): pass class Bus: "...
PypiClean
/Attention_and_Transformers-0.0.15-py3-none-any.whl/Attention_and_Transformers/MobileViT_v1/multihead_self_attention_2D.py
import tensorflow as tf from tensorflow.keras.layers import Layer, Dropout from tensorflow.keras.layers import EinsumDense class MultiHeadSelfAttentionEinSum2D(Layer): def __init__( self, num_heads: int = 2, embedding_dim: int = 64, projection_dim: int = None, qkv_bias: boo...
PypiClean
/MegEngine-1.13.1-cp37-cp37m-macosx_10_14_x86_64.whl/megengine/xla/dtype.py
from functools import lru_cache, partial import numpy as np from ..tensor import Parameter as MgeParameter from ..tensor import Tensor as MgeTensor from .lib import xla_client as xc _python_scalar_dtype_to_npdtypes = { bool: np.dtype("bool"), int: np.dtype("int64"), float: np.dtype("float64"), comple...
PypiClean
/CleverHarold-0.1.tar.gz/CleverHarold-0.1/harold/lib/debug.py
# Copyright 2006 The Incorporated Wizzo Widget Works # Distributed under the terms of the GNU General Public License v2 # Author: Troy Melhase <troy@gci.net> ## # Module that defines simple debugging middleware. # # Two classes are provided here, one for writing the WSGI environment # to an HTML document as a comment...
PypiClean
/Flask-Bootstrap3-3.1.1.3.tar.gz/Flask-Bootstrap3-3.1.1.3/flask_bootstrap3/static/js/bootstrap.min.js
if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");+function(a){"use strict";function b(){var a=document.createElement("bootstrap"),b={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var...
PypiClean
/BIA_OBS-1.0.3.tar.gz/BIA_OBS-1.0.3/BIA/static/dist/node_modules/picomatch/CHANGELOG.md
# Release history **All notable changes to this project will be documented in this file.** The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). <details> <summary><strong>Guiding Principles</strong></su...
PypiClean
/DjangoPackage-v0.0.4-0.0.4.tar.gz/DjangoPackage-v0.0.4-0.0.4/README.rst
===== DjangoAWS ===== Polls is a simple Django app to conduct Web-based polls. For each question, visitors can choose between a fixed number of answers. Detailed documentation is in the "docs" directory. Quick start ----------- 1. Add "blog" to your INSTALLED_APPS setting like this:: INSTALLED_APPS = [ ...
PypiClean
/Mopidy_YouTube-3.7-py3-none-any.whl/mopidy_youtube/apis/youtube_api.py
from mopidy_youtube import logger from mopidy_youtube.comms import Client from mopidy_youtube.youtube import Video class API(Client): """ Direct access to YouTube Data API see https://developers.google.com/youtube/v3/docs/ """ youtube_api_key = None endpoint = "https://www.googleapis.com/yout...
PypiClean
/Montreal-Forced-Aligner-3.0.0a3.tar.gz/Montreal-Forced-Aligner-3.0.0a3/docs/source/user_guide/data_validation.rst
.. _validating_data: *************** Validating data *************** The validation utility will perform the basic set up that alignment would perform, but analyzes and reports any issues that the user may want to fix. First, the utility parses the corpus and dictionary, prints out summary information about the cor...
PypiClean
/Mesa_Adapted-0.8.7.3-py3-none-any.whl/mesa_adapted/visualization/modules/BarChartVisualization.py
import json from mesa_adapted.visualization.ModularVisualization import VisualizationElement class BarChartModule(VisualizationElement): """ Each bar chart can either visualize model-level or agent-level fields from a datcollector with a bar chart. Attributes: scope: wheter to visualize agent...
PypiClean
/20220429_pdfminer_jameslp310-0.0.2-py3-none-any.whl/pdfminer/pdfdocument.py
import itertools import logging import re import struct from hashlib import sha256, md5, sha384, sha512 from typing import ( Any, Callable, Dict, Iterable, Iterator, KeysView, List, Optional, Sequence, Tuple, Type, Union, cast, ) from cryptography.hazmat.backends imp...
PypiClean
/DjangoDjangoAppCenter-0.0.11-py3-none-any.whl/DjangoAppCenter/simpleui/static/admin/simpleui-x/elementui/select.js
module.exports = /******/ (function (modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in ...
PypiClean
/AstroCabTools-1.5.1.tar.gz/AstroCabTools-1.5.1/astrocabtools/fit_line/src/models/pseudoVoigtModelCreation.py
import numpy as np import pandas as pd from lmfit import Parameters, Model import sys import traceback import io from collections import deque from .pseudoVoigtPointsData import pseudoVoigtPointsData from .linePointsData import linePointsData from .quadraticPointsData import quadraticPointsData from .exponentialPoi...
PypiClean
/NEMO_keycloak-1.3.1-py3-none-any.whl/NEMO_keycloak/middleware.py
import logging import re from django.conf import settings from django.contrib.auth import authenticate from django.contrib.auth.models import AnonymousUser from django.utils.deprecation import MiddlewareMixin from django.utils.functional import SimpleLazyObject from NEMO_keycloak.models import Realm from NEMO_keycloa...
PypiClean
/MovingBot-0.0.1.tar.gz/MovingBot-0.0.1/src/MovingBot_XKMR/MoveBot.py
from time import sleep #Function to Turn in a given direction def turn(directionToTurn, currentDirection): ''' turnes the object by 90 degrees clockwise or counterclockwise Parameters: directionToTurn (str): `CW` or `CC` currentDirection (str): `up` , `down`...
PypiClean
/CLAM-3.2.6.tar.gz/CLAM-3.2.6/clam/config/defaults.py
############################################################### # CLAM: Computational Linguistics Application Mediator # -- Settings -- # by Maarten van Gompel (proycon) # http://ilk.uvt.nl/~mvgompel # Induction for Linguistic Knowledge Research Group # Universiteit van Tilburg # # Licens...
PypiClean
/Newgram-0.0.5.tar.gz/Newgram-0.0.5/newgram/types/bots_and_keyboards/login_url.py
from newgram import raw from ..object import Object class LoginUrl(Object): """Represents a parameter of the inline keyboard button used to automatically authorize a user. Serves as a great replacement for the Telegram Login Widget when the user is coming from Telegram. All the user needs to do is tap/...
PypiClean
/LabtoolSuite-0.1.3.tar.gz/LabtoolSuite-0.1.3/Labtools/custom_widgets.py
import sip,os os.environ['QT_API'] = 'pyqt' sip.setapi("QString", 2) sip.setapi("QVariant", 2) # Import the core and GUI elements of Qt from PyQt4.QtGui import * from PyQt4.QtCore import * import interface from widgets.sliding import Ui_Form as Ui_Sliding from widgets.clicking import Ui_Form as Ui_Clicking from wid...
PypiClean
/Nuitka_fixed-1.1.2-cp310-cp310-win_amd64.whl/nuitka/build/inline_copy/lib/scons-4.4.0/SCons/Tool/MSCommon/MSVC/Registry.py
import os from SCons.Util import ( HKEY_LOCAL_MACHINE, HKEY_CURRENT_USER, RegGetValue, ) from .. common import ( debug, ) from . import Util from . import Dispatcher Dispatcher.register_modulename(__name__) # A null-terminated string that contains unexpanded references to environment variables. RE...
PypiClean
/GSEIMIITB-1.1.tar.gz/GSEIMIITB-1.1/src/grc/gui/Config.py
from __future__ import absolute_import, print_function import sys import os from ..core.Config import Config as CoreConfig from . import Constants import configparser HEADER = """\ # This contains only GUI settings for GRC and is not meant for users to edit. # # GRC settings not accessible through the GUI are in gn...
PypiClean
/Box2D-2.3.2.tar.gz/Box2D-2.3.2/examples/pgu/gui/table.py
import sys from .const import * from . import container class Table(container.Container): """A table style container widget. Example: t = gui.Table() # This starts a new row of the table t.tr() # The 'td' call creates a new table cell t.td(gui.Label("Name:...
PypiClean
/CGATReport-0.9.1.tar.gz/CGATReport-0.9.1/doc/ComplexDocuments.rst
================== Complex documents ================== Almost any analysis will grow and it might be useful to think about code and document organization for complex reports. Separation of data, report code and report document =================================================== The data, the code for the report and...
PypiClean
/FP-SMC-ALS-test1-0.0.1.tar.gz/FP-SMC-ALS-test1-0.0.1/smc/examples/servers.py
import time import requests import smc.examples from smc import session from smc.administration.certificates.tls import TLSServerCredential, TLSCryptographySuite, \ TLSProfile from smc.elements.network import Host from smc.elements.other import FilterExpression from smc.elements.servers import LogServer, DataConte...
PypiClean
/BSPEC-0.1.10-py3-none-any.whl/bspec/components/pd_input_file_csv/pd_input_file_csv.py
import sys import os.path import os from dataclasses import dataclass as component from collections import ( defaultdict, ) from typing import ( Any, Callable, Literal, Sequence, TypeVar, Union, ) import csv from deprecated.sphinx import versionadded from bspec.components import component_...
PypiClean
/DelegatorBot-1.1.8.tar.gz/DelegatorBot-1.1.8/delegatorbot/delegatorbot.py
import json import re import os import importlib from screenlogger.screenlogger import Msg from simplesteem.simplesteem import SimpleSteem from datetime import datetime from delegatorbot.botdb import BotDB class DelegatorBot(): ''' Main class holds functions for running the bot ''' def __init__(s...
PypiClean
/Flask-Via-2015.1.1.tar.gz/Flask-Via-2015.1.1/flask_via/routers/admin.py
from flask_via.routers import BaseRouter class AdminRoute(BaseRouter): """ The Admin router allows you to define Flask-Admin routes and have those views added to the application automatically. For this to work you must at ``init_app`` time pass a optional keyword argument ``flask_admin`` to ``init_app...
PypiClean
/Lokai-0.3.tar.gz/Lokai-0.3/lokai/lk_worker/ui/link_widget.py
#----------------------------------------------------------------------- import urllib import types from werkzeug import html from lokai.tool_box.tb_forms.widget import Widget from lokai.tool_box.tb_forms.form_shapes import field_set_widget from lokai.lk_worker.ui.widget import CompositeWidget, ButtonRow, RowWidget...
PypiClean
/django-chuck-0.2.3.tar.gz/django-chuck/doc/customization/writing_templates.rst
################### Writing templates ################### Every file in every module will get parsed and rendered through the template engine. Template can create new files or extend block in existing files and you can use variables that get replaces by its real values. Here is an overview about all available variab...
PypiClean
/Mopidy-Bookmarks-0.1.4.tar.gz/Mopidy-Bookmarks-0.1.4/README.rst
**************************** Mopidy-Bookmarks **************************** .. image:: https://img.shields.io/pypi/v/Mopidy-Bookmarks :target: https://pypi.org/project/Mopidy-Bookmarks/ :alt: Latest PyPI version .. image:: https://img.shields.io/circleci/build/gh/sapristi/mopidy-bookmarks :target: https://...
PypiClean
/Longbow-1.5.2.tar.gz/Longbow-1.5.2/longbow/apps/charmm.py
import os import re import longbow.exceptions as exceptions EXECDATA = { "charmm": { "subexecutables": [], "requiredfiles": ["<"], }, "charmm_mpi": { "subexecutables": [], "requiredfiles": ["<"], }, "charmm_cuda": { "subexecutables": [], "requiredfi...
PypiClean
/Flask-Statics-Helper-1.0.0.tar.gz/Flask-Statics-Helper-1.0.0/flask_statics/static/angular/i18n/angular-locale_ak.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
/CoAPthon-4.0.2.tar.gz/CoAPthon-4.0.2/coapthon/caching/cache.py
import time from coaplrucache import CoapLRUCache from coapthon import utils from coapthon.messages.request import * __author__ = 'Emilio Vallati' class Cache(object): def __init__(self, mode, max_dim): """ :param max_dim: max number of elements in the cache :param mode: used to differe...
PypiClean
/CellPhoneDBu-1.1.1.7-py3-none-any.whl/cellphonedb/src/core/database/sqlalchemy_repository/MultidataRepository.py
import pandas as pd from cellphonedb.src.core.database.Repository import Repository from cellphonedb.src.core.database.sqlalchemy_models.db_model_complex import Complex from cellphonedb.src.core.database.sqlalchemy_models.db_model_gene import Gene from cellphonedb.src.core.database.sqlalchemy_models.db_model_multidata...
PypiClean
/MTGProxyPrinter-0.25.0.tar.gz/MTGProxyPrinter-0.25.0/mtg_proxy_printer/decklist_parser/re_parsers.py
# This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # This program is distributed in the hope that it will be useful, # bu...
PypiClean
/MegaMess_client-0.8.5.tar.gz/MegaMess_client-0.8.5/client/database_client.py
from sqlalchemy import create_engine, Column, String, Integer, DateTime, Text from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import sessionmaker import datetime Base = declarative_base() class ClientDB: """Create tables in database. Interacts with the database of this client""" c...
PypiClean
/CtrlF_TF-1.0b1.tar.gz/CtrlF_TF-1.0b1/README.md
# CtrlF-TF CtrlF-TF is a python library and command line tool that calls transcription factor binding sites in DNA sequences. It does this by taking in high-throughput k-mer data and compiling them into ranked aligned sequences containing binding sites. These sequences are then searched in a given string (ctrl-f) for ...
PypiClean
/BigchainDBNext-2.2.2.1.tar.gz/BigchainDBNext-2.2.2.1/bigchaindb/web/views/transactions.py
import dataclasses import logging from enum import Enum from flask import current_app, request, jsonify from flask_restful import Resource, reqparse from bigchaindb.common.exceptions import SchemaValidationError, ValidationError, InvalidHash from bigchaindb.common.transaction_mode_types import BROADCAST_TX_ASYNC from ...
PypiClean
/Djblets-3.3.tar.gz/Djblets-3.3/djblets/htdocs/static/djblets/js/extensions/models/extensionHookModel.js
"use strict"; /** * Base class for hooks that an extension can use to augment functionality. * * Each type of hook represents a point in the codebase that an extension * is able to plug functionality into. * * Subclasses are expected to set a hookPoint field in the prototype to an * instance of ExtensionPoint. ...
PypiClean
/Fathom-Workloads-1.0rc0.tar.gz/Fathom-Workloads-1.0rc0/fathom/imagenet/mnist.py
from __future__ import print_function import gzip import os import urllib import numpy SOURCE_URL = 'http://yann.lecun.com/exdb/mnist/' def maybe_download(filename, work_directory): """Download the data from Yann's website, unless it's already here.""" if not os.path.exists(work_directory): os.mkdir(work_direc...
PypiClean
/Mantissa-0.9.0.tar.gz/Mantissa-0.9.0/xmantissa/test/acceptance/scrolltable.py
from zope.interface import implements import time from epsilon.extime import Time from axiom.store import Store from axiom.item import Item from axiom.attributes import integer, text, timestamp from nevow.athena import LiveElement from nevow import loaders, tags from xmantissa.scrolltable import ScrollingElement...
PypiClean
/Chiplotle3-0.4.3-py3-none-any.whl/chiplotle3/examples/abstract_masterpiece.py
from __future__ import division from __future__ import print_function from builtins import input from builtins import range from past.utils import old_div from chiplotle3 import * import random def main(): plotter = instantiate_plotters( )[0] width = plotter.margins.soft.width height = plotter.margins.soft...
PypiClean
/NREL_disco-0.4.2-py3-none-any.whl/disco/models/upgrade_cost_analysis_generic_output_model.py
import enum import logging from typing import List, Optional, Set, Dict, Any from pydantic import Field from disco.models.upgrade_cost_analysis_equipment_model import UpgradeParamsBaseModel, ExtraLineParams, ExtraTransformerParams from disco.models.upgrade_cost_analysis_generic_input_model import OpenDSSLineModel, Ope...
PypiClean