id
stringlengths
1
265
text
stringlengths
6
5.19M
dataset_id
stringclasses
7 values
/ImSwitchUC2-2.1.0.tar.gz/ImSwitchUC2-2.1.0/imswitch/imcontrol/controller/controllers/WellPlateController.py
from typing import Dict, List from functools import partial from qtpy import QtCore, QtWidgets from imswitch.imcommon.model import APIExport from ..basecontrollers import ImConWidgetController from imswitch.imcontrol.view import guitools as guitools from imswitch.imcommon.model import initLogger, APIExport class Well...
PypiClean
/ISPIP-1.13.tar.gz/ISPIP-1.13/ispip/generate.py
import pandas as pd from sklearn import linear_model import joblib from sklearn.ensemble import RandomForestClassifier, HistGradientBoostingRegressor # from sklearn.neural_network import MLPRegressor def generate(df, feature_cols, annotated_col, output_path_dir, model_name, rf_params, nn, xg): rf_model, tree = ra...
PypiClean
/Mtrax-2.2.07.zip/Mtrax-2.2.07/mtrax/tracking_settings.py
USEGL = False import wx import params import ellipsesk as ell from wx import xrc if USEGL: import motmot.wxglvideo.simple_overlay as wxvideo else: import motmot.wxvideo.wxvideo as wxvideo import motmot.wxvalidatedtext.wxvalidatedtext as wxvt # part of Motmot import numpy as num #from scipy.misc.pilutil import imres...
PypiClean
/hypergraphanalysistoolbox-1.0.20.tar.gz/hypergraphanalysistoolbox-1.0.20/docs/ref.rst
Hypergraph References ===================== .. [1] Amit Surana, Can Chen, and Indika Rajapakse. Hypergraph similarity measures. IEEE Transactions on Network Science and Engineering, pages 1-16, 2022. .. [2] Zvi Drezner. Multirelation—a correlation among more than two variables. Computational Statistics & Data ...
PypiClean
/MACS3-3.0.0a5.tar.gz/MACS3-3.0.0a5/docs/callpeak.md
# Call peaks This is the main function in MACS3. It can be invoked by `macs3 callpeak` . If you type this command with `-h`, you will see a full description of command-line options. Here we only list the essentials. ## Essential Options ### `-t`/`--treatment FILENAME` This is the only REQUIRED parameter for MACS. T...
PypiClean
/GB2260-v2-0.2.1.tar.gz/GB2260-v2-0.2.1/gb2260_v2/data/curated/revision_201710.py
from __future__ import unicode_literals name = '201710' division_schema = { '110000': '北京市', '110101': '东城区', '110102': '西城区', '110105': '朝阳区', '110106': '丰台区', '110107': '石景山区', '110108': '海淀区', '110109': '门头沟区', '110111': '房山区', '110112': '通州区', '110113': '顺义区', '11011...
PypiClean
/Misago-0.36.1.tar.gz/Misago-0.36.1/misago/static/misago/admin/momentjs/de-ch.js
;(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, (function (moment) { 'use strict'; ...
PypiClean
/Hyperstatic-0.2.0-cp38-cp38-win_amd64.whl/hyperstatic/core/fe_model/element/tria/DKT.py
import numpy as np import scipy.sparse as spr from hyperstatic.core.fe_model.meta.plates import metaDKT from hyperstatic.core.fe_model.meta.membranes import T9 from hyperstatic.core.fe_model.node import Node from hyperstatic.core.fe_model.element.tria import Tria from hyperstatic.core.fe_model.section.shell_section i...
PypiClean
/MathCake-0.0.1a3.tar.gz/MathCake-0.0.1a3/cake/abc.py
import math import typing # Types class IntegerType(typing.Protocol): def __int__(self) -> int: ... class FloatType(typing.Protocol): def __float__(self) -> float: ... class ComplexType(typing.Protocol): def __complex__(self) -> complex: ... OPERATORS: typing.Set[str] = {"+", ...
PypiClean
/BIA_OBS-1.0.3.tar.gz/BIA_OBS-1.0.3/BIA/static/dist/node_modules/postcss/lib/node.js
'use strict' let { isClean, my } = require('./symbols') let CssSyntaxError = require('./css-syntax-error') let Stringifier = require('./stringifier') let stringify = require('./stringify') function cloneNode(obj, parent) { let cloned = new obj.constructor() for (let i in obj) { if (!Object.prototype.hasOwnPr...
PypiClean
/ImSwitch-2.0.0.tar.gz/ImSwitch-2.0.0/imswitch/imcontrol/model/managers/lasers/Cobolt0601LaserManager.py
from lantz import Q_ from imswitch.imcommon.model import initLogger from .LantzLaserManager import LantzLaserManager class Cobolt0601LaserManager(LantzLaserManager): """ LaserManager for Cobolt 06-01 lasers. Uses digital modulation mode when scanning. Does currently not support DPL type lasers. Manager ...
PypiClean
/Kloudio-1.0.0.tar.gz/Kloudio-1.0.0/kloudio/rest.py
from __future__ import absolute_import import io import json import logging import re import ssl import certifi # python 2 and python 3 compatibility library import six from six.moves.urllib.parse import urlencode import urllib3 from kloudio.exceptions import ApiException, ApiValueError logger = logging.getLogger(...
PypiClean
/ACO-Pants-0.5.2.tar.gz/ACO-Pants-0.5.2/pants/world.py
import json class World: """The nodes and edges of a particular problem. Each :class:`World` is created from a list of nodes, a length function, and optionally, a name and a description. Additionally, each :class:`World` has a UID. The length function must accept nodes as its first two parameters, ...
PypiClean
/DiffusionEMD-0.5.0.tar.gz/DiffusionEMD-0.5.0/README.rst
Implementation of Diffusion EMD =============================== Diffusion Earth Mover's Distance embeds the Wasserstein distance between two distributions on a graph into `L^1` in log-linear time. Installation ------------ DiffusionEMD is available in `pypi`. Install by running the following:: pip install Diffu...
PypiClean
/FuzzyClassificator-1.3.84-py3-none-any.whl/pybrain/supervised/trainers/rprop.py
__author__ = 'Martin Felder' from scipy import sqrt from pybrain.supervised.trainers import BackpropTrainer class RPropMinusTrainer(BackpropTrainer): """ Train the parameters of a module according to a supervised dataset (possibly sequential) by RProp without weight backtracking (aka RProp-, cf. [Igel&H...
PypiClean
/ChadBot2-0.1.tar.gz/ChadBot2-0.1/ChadBot/generation/rajat_work/qgen/generator/symsub.py
import string from itertools import product import numpy as np from nltk.corpus import stopwords from nltk.corpus import wordnet as wn from tqdm import tqdm from .base import BaseGenerator import sys from ..util.nlp import get_spacy_model class SymSubGenerator(BaseGenerator): """ Generate questions via sense-d...
PypiClean
/Argonaut-0.3.4.tar.gz/Argonaut-0.3.4/argonaut/public/ckeditor/_source/plugins/panel/plugin.js
/* Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.add( 'panel', { beforeInit : function( editor ) { editor.ui.addHandler( CKEDITOR.UI_PANEL, CKEDITOR.ui.panel.handler ); } }); /** * Panel UI element....
PypiClean
/Flask-Redisboard-0.2.0.tar.gz/Flask-Redisboard-0.2.0/flask_redisboard/static/dist/pages/keydetail_zset.js
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.d...
PypiClean
/ClueDojo-1.4.3-1.tar.gz/ClueDojo-1.4.3-1/src/cluedojo/static/dojo/nls/ko/colors.js
({"lightsteelblue":"라이트 스틸 블루(light steel blue)","orangered":"오렌지 레드(orange red)","midnightblue":"미드나잇 블루(midnight blue)","cadetblue":"카뎃 블루(cadet blue)","seashell":"씨쉘(seashell)","slategrey":"슬레이트 그레이(slate gray)","coral":"코랄(coral)","darkturquoise":"다크 터콰즈(dark turquoise)","antiquewhite":"앤틱 화이트(antique white)","medi...
PypiClean
/Flask-Bootstrap-3.3.7.1.tar.gz/Flask-Bootstrap-3.3.7.1/flask_bootstrap/static/jquery.min.js
!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){var c=[],d=a.document,e=c.slice,f=c.concat,g=c.push,h=c...
PypiClean
/Bast-1.0.1.tar.gz/Bast-1.0.1/bast/route.py
import importlib class Route(object): """ Route Class. Appends the URL, Controller Instance and Method to a list instance to be passed on to the server instance """ url_ = None controller = None method = None controller_location = 'controller' url = [] request_type = "" ...
PypiClean
/CAMELS_library-0.3.tar.gz/CAMELS_library-0.3/scripts/GAN/find_best_model.py
import numpy as np import sys,os import torch import torch.nn as nn import torch.nn.parallel import torch.backends.cudnn as cudnn import torch.optim as optim import torchvision.utils as vutils import architecture import Pk_library as PKL # This routine computes the PDF def compute_PDF(T_maps, bins_T, mean_T, fout): ...
PypiClean
/Foundations-2.1.0.tar.gz/Foundations-2.1.0/foundations/exceptions.py
#********************************************************************************************************************** #*** Future imports. #********************************************************************************************************************** from __future__ import unicode_literals #*****************...
PypiClean
/LFake-18.9.0.tar.gz/LFake-18.9.0/lfake/providers/person/he_IL/__init__.py
from collections import OrderedDict from .. import Provider as PersonProvider class Provider(PersonProvider): formats_female = OrderedDict( ( ("{{first_name_female}} {{last_name}}", 0.9), ("{{first_name_female}} {{last_name}}-{{last_name}}", 0.06), ("{{first_name_femal...
PypiClean
/Grammaticomastix-0.0.1rc2-py3-none-any.whl/grammaticomastix/dchars/utilities/sortingvalue.py
################################################################################ class SortingValue(list): """ class SortingValue Class used to compare the "alphabetic" order of two words. A SortingValue object contains the "alphabetical" weight of a word as a list of integers. [1,...
PypiClean
/DriveLink-0.2.3.1.tar.gz/DriveLink-0.2.3.1/drivelink/_diskdict.py
from collections import MutableMapping from os.path import expanduser, join from glob import glob from drivelink import Link from drivelink.hash import hash class _page(dict): currentDepth = 0 class Dict(Link, MutableMapping): """ A dictionary class that maintains O(1) look up and write while keeping R...
PypiClean
/LoProp-0.3.5-py3-none-any.whl/loprop/__main__.py
import argparse import os import pathlib import sys import tarfile import tempfile from util import timing from . import __version__ from .core import penalty_function implementations = {} try: from .dalton import MolFragDalton implementations['dalton'] = MolFragDalton except ImportError: pass try: ...
PypiClean
/Apppath-1.0.3.tar.gz/Apppath-1.0.3/apppath/windows_path_utilities.py
__author__ = "Christian Heider Nielsen" __doc__ = "" __all__ = ["get_win_folder"] from typing import Any from warg.os_utilities.platform_selection import SYSTEM_, is_py3 if is_py3(): unicode = str def _get_win_folder_from_registry(csidl_name: Any) -> Any: """This is a fallback technique at best. I'm not ...
PypiClean
/CITE_seq_Count-1.4.5-py3-none-any.whl/cite_seq_count/secondsToText.py
def pluralizeRussian(number, nom_sing, gen_sing, gen_pl): """ Changes the hours, minutes, seconds to plural """ s_last_digit = str(number)[-1] if int(str(number)[-2:]) in range(11,20): #11-19 return gen_pl elif s_last_digit == '1': #1 return nom_sing elif int(s_last_digit) in range(2,5): #2,3,4 ret...
PypiClean
/Curp-1.3.1.tar.gz/Curp-1.3.1/curp/script/analyze/simplify_tensor.py
from __future__ import print_function import sys import math import numpy class TensorParser: section_end = '%end' def __init__(self, filename): self.__filename = filename def parse(self): with open(self.__filename, 'rb') as file: names, tensors = self.parse_content(file) ...
PypiClean
/LitReview-0.6989ev.tar.gz/LitReview-0.6989ev/src/queries/move_ref.py
from model_old_schema.model import get_first from webapp.litreview_logger import log_it class MoveRefException(Exception): def __init__(self, message): self.message = message def __str__(self): return repr(self.message) class RefDoesNotExistException(MoveRefException): def __init__(sel...
PypiClean
/Mappa-0.1.0.zip/Mappa-0.1.0/mappa/backend/event.py
class EventDispatcher(object): """\ """ def __init__(self): self._handlers = {} def subscribe(self, event_type, handler): """\ Subscribes the `handler` to the specified `event_type`. """ handle = self._handlers.get(event_type, None) if handle is None...
PypiClean
/FixDate-1.13.5.tar.gz/FixDate-1.13.5/README.rst
Fix a date and present it in specified format Attempts to correct dates and convert to standard format ======= Testing ======= This project uses ``pytest`` to run tests and also to test docstring examples. Install the test dependencies. .. code-block:: bash $ pip install -r requirements_test.txt Run the ...
PypiClean
/BlueWhale3_Text-1.6.0-py3-none-any.whl/orangecontrib/text/widgets/owwikipedia.py
from AnyQt.QtCore import Qt from AnyQt.QtWidgets import QApplication, QGridLayout, QLabel from Orange.widgets import gui from Orange.widgets import settings from Orange.widgets.widget import OWWidget, Msg, Output from orangecontrib.text.corpus import Corpus from orangecontrib.text.language_codes import lang2code, code...
PypiClean
/Annalist-0.5.18.tar.gz/Annalist-0.5.18/annalist_root/annalist/views/collection.py
from __future__ import unicode_literals from __future__ import absolute_import, division, print_function """ Annalist collection views """ __author__ = "Graham Klyne (GK@ACM.ORG)" __copyright__ = "Copyright 2014, G. Klyne" __license__ = "MIT (http://opensource.org/licenses/MIT)" import logging log = loggi...
PypiClean
/CmlArabicReaderThird-0.1-py3-none-any.whl/ThirdcamelArabicReader/camel_tools/data/__init__.py
from collections import namedtuple import json import os from pathlib import Path import sys class DataLookupException(ValueError): """Exception thrown when an invalid component or dataset is specified in a dataset lookup operation. Args: msg (:obj:`str`): Exception message to be displayed. "...
PypiClean
/Freetail-GNURadio-0.2.2.tar.gz/Freetail-GNURadio-0.2.2/freetail_gnuradio/target_histogram.py
import numpy as np from scipy import stats import scipy.special import itertools from gnuradio import gr import pmt from matplotlib.backends.backend_qt5agg import FigureCanvasQTAgg from matplotlib.figure import Figure from PyQt5 import QtCore, QtWidgets # Convert warnings to errors, in order to catch poor fit to Ri...
PypiClean
/AS-Object_models-2.3.9.tar.gz/AS-Object_models-2.3.9/as_models/analytics/__init__.py
from google.cloud import bigquery import pandas as pd import jmespath, os, json, logging,sys from datetime import datetime,date, timedelta from .. client_utils import FirestoreClient from .. import ItemReserve, DataStorageType from .. utils import FireStoreBase logger = logging.getLogger('ColorOrchids_DataLoad') cla...
PypiClean
/Finance-Ultron-1.0.8.1.tar.gz/Finance-Ultron-1.0.8.1/ultron/ump/technical/exectue.py
import math from enum import Enum import numpy as np import pandas as pd from scipy import optimize as sco, stats from sklearn.cluster import KMeans from sklearn.linear_model import LinearRegression from ultron.utilities.logger import kd_logger from ultron.ump.core.fixes import xrange from ultron.kdutils.progress impor...
PypiClean
/ChatOCR-2023.4.25.9.49.0-py3-none-any.whl/chatllm/applications/Question2Answer.py
import types from meutils.pipe import * from meutils.docarray_ import DocumentArray from meutils.decorators import clear_cuda_cache from meutils.request_utils.crawler import Crawler class Question2Answer(object): def __init__(self, chat_func, prompt_template=None): self.chat_func = chat_func # se...
PypiClean
/CSTB_core-2.2.1.tar.gz/CSTB_core-2.2.1/README.md
# ENCODING DECODING sgRNA motifs This librairy performs the encoding of sgRNA words into integer and the decoding of integer into sgRNA words. The two strategies used to convert word into integer are the **power of two multipliers** or the **two bits per base** encoding. These general schemes of encoding can be appli...
PypiClean
/IMNN-0.3.2-py3-none-any.whl/imnn/lfi/approximate_bayesian_computation.py
import jax import jax.numpy as np from imnn.lfi import LikelihoodFreeInference from imnn.utils import container from scipy.ndimage import gaussian_filter from imnn.utils.utils import _check_input class ApproximateBayesianComputation(LikelihoodFreeInference): """Approximate Bayesian computation Approximate Ba...
PypiClean
/Mopidy-Plex-0.1.0b.tar.gz/Mopidy-Plex-0.1.0b/mopidy_plex/backend.py
from __future__ import unicode_literals import re import string import unicodedata import urllib from urlparse import parse_qs, urlparse from mopidy import backend, httpclient from mopidy.models import Artist, Album, SearchResult, Track, Ref import pykka from plexapi.server import PlexServer from plexapi import au...
PypiClean
/Authlib-1.2.1.tar.gz/Authlib-1.2.1/authlib/jose/rfc7519/claims.py
import time from authlib.jose.errors import ( MissingClaimError, InvalidClaimError, ExpiredTokenError, InvalidTokenError, ) class BaseClaims(dict): """Payload claims for JWT, which contains a validate interface. :param payload: the payload dict of JWT :param header: the header dict of JWT...
PypiClean
/GeoNode-3.2.0-py3-none-any.whl/geonode/groups/views.py
from django.views import View from geonode.base.views import user_and_group_permission import logging from actstream.models import Action from django.contrib.auth import get_user_model from django.contrib.auth.decorators import login_required from django.urls import reverse from django.http import ( Http404, ...
PypiClean
/Drupdates-1.5.2.tar.gz/Drupdates-1.5.2/drupdates/siteupdate.py
import git, shutil, os, yaml, tempfile, datetime, time, copy from drupdates.utils import Utils from drupdates.settings import Settings from drupdates.settings import DrupdatesError from drupdates.drush import Drush from drupdates.constructors.pmtools import Pmtools from drupdates.sitebuild import Sitebuild from git imp...
PypiClean
/DjangoDjangoAppCenter-0.0.11-py3-none-any.whl/AppCenter/simpleui/static/admin/simpleui-x/elementui/locale/lang/lt.js
'use strict'; exports.__esModule = true; exports.default = { el: { colorpicker: { confirm: 'OK', clear: 'Valyti' }, datepicker: { now: 'Dabar', today: 'Šiandien', cancel: 'Atšaukti', clear: 'Valyti', confirm...
PypiClean
/AsynQueue-0.9.8.tar.gz/AsynQueue-0.9.8/mcmandelbrot/valuer.py
import sys, time, array import png import weave from weave.base_info import custom_info import numpy as np from zope.interface import implements from twisted.internet import defer, reactor from twisted.internet.interfaces import IPushProducer import asynqueue from asynqueue.threads import Consumerator from mcmandel...
PypiClean
/Mantissa-0.9.0.tar.gz/Mantissa-0.9.0/xmantissa/ampserver.py
from zope.interface import implements from twisted.internet.protocol import ServerFactory from twisted.internet import reactor from twisted.cred.portal import Portal from twisted.protocols.amp import IBoxReceiver, Unicode from twisted.protocols.amp import BoxDispatcher, CommandLocator, Command from twisted.python.rand...
PypiClean
/edward-1.3.5.tar.gz/edward-1.3.5/edward/__init__.py
from __future__ import absolute_import from __future__ import division from __future__ import print_function from edward import criticisms from edward import inferences from edward import models from edward import util # Direct imports for convenience from edward.criticisms import ( evaluate, ppc, ppc_density_plo...
PypiClean
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dijit/form/MappedTextBox.js.uncompressed.js
define("dijit/form/MappedTextBox", [ "dojo/_base/declare", // declare "dojo/dom-construct", // domConstruct.place "./ValidationTextBox" ], function(declare, domConstruct, ValidationTextBox){ /*===== var ValidationTextBox = dijit.form.ValidationTextBox; =====*/ // module: // dijit/form/MappedTextBox // summary...
PypiClean
/MetaCalls-0.0.5-cp310-cp310-manylinux2014_x86_64.whl/metacalls/node_modules/minizlib/index.js
'use strict' const assert = require('assert') const Buffer = require('buffer').Buffer const realZlib = require('zlib') const constants = exports.constants = require('./constants.js') const Minipass = require('minipass') const OriginalBufferConcat = Buffer.concat const _superWrite = Symbol('_superWrite') class ZlibE...
PypiClean
/Flask-MDBootstrap-3.0.5.tar.gz/Flask-MDBootstrap-3.0.5/flask_mdbootstrap/static/MDB-Pro/js/popper.min.js
(function(e,t){'object'==typeof exports&&'undefined'!=typeof module?module.exports=t():'function'==typeof define&&define.amd?define(t):e.Popper=t()})(this,function(){'use strict';function e(e){return e&&'[object Function]'==={}.toString.call(e)}function t(e,t){if(1!==e.nodeType)return[];var o=e.ownerDocument.defaultVie...
PypiClean
/Babel-lex-2.0-lex-20150116.tar.gz/Babel-lex-2.0-lex-20150116/docs/index.rst
.. -*- mode: rst; encoding: utf-8 -*- Babel ===== Babel is an integrated collection of utilities that assist in internationalizing and localizing Python applications, with an emphasis on web-based applications. User Documentation ------------------ The user documentation explains some core concept of the library an...
PypiClean
/Kadabra-0.5.0.tar.gz/Kadabra-0.5.0/docs/collecting.rst
.. _collecting: Collecting Metrics ================== This section describes in detail the kinds of metrics you can gather in your application using a :class:`~kadabra.client.MetricsCollector` which can be retrieved via the client's :meth:`~kadabra.Kadabra.metrics` method, and the semantics of using the collector. D...
PypiClean
/ML-Navigator-0.0.32.tar.gz/ML-Navigator-0.0.32/preprocessing/data_science_help_functions.py
import logging import os from typing import Tuple, List, Dict, Set, Union from collections import Counter logger = logging.getLogger(__name__) formatting = ( "%(asctime)s: %(levelname)s: File:%(filename)s Function:%(funcName)s Line:%(lineno)d " "message:%(message)s" ) logging.basicConfig( filename=os.path....
PypiClean
/Mathics_Django-6.0.0-py3-none-any.whl/mathics_django/web/media/js/mathjax/jax/output/SVG/fonts/Latin-Modern/Shapes/Regular/Main.js
MathJax.OutputJax.SVG.FONTDATA.FONTS.LatinModernMathJax_Shapes={directory:"Shapes/Regular",family:"LatinModernMathJax_Shapes",id:"LATINMODERNSHAPES",32:[0,0,332,0,0,""],160:[0,0,332,0,0,""],9250:[694,11,556,28,521,"521 216c0 -129 -104 -227 -223 -227c-74 0 -116 50 -131 73l-36 -62h-25v485l-53 -50c-2 -2 -6 -4 -10 -4c-8 0 ...
PypiClean
/GeneticEngine-0.7.3.tar.gz/GeneticEngine-0.7.3/geneticengine/core/representations/grammatical_evolution/ge.py
from __future__ import annotations from dataclasses import dataclass from typing import Any from geneticengine.core.grammar import Grammar from geneticengine.core.problems import Problem from geneticengine.core.random.sources import Source from geneticengine.core.representations.api import CrossoverOperator from gene...
PypiClean
/Nereid-2.8.0.3.tar.gz/Nereid-2.8.0.3/nereid/application.py
from __future__ import with_statement import os import warnings from flask import Flask from flask.config import ConfigAttribute from flask.globals import _request_ctx_stack from flask.helpers import locked_cached_property from jinja2 import FileSystemLoader, MemcachedBytecodeCache from werkzeug.routing import Map f...
PypiClean
/FastGets-0.3.5.tar.gz/FastGets-0.3.5/fastgets/web/static/dist/plugins/colorpicker/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
/FuzzyClassificator-1.3.84-py3-none-any.whl/pybrain/rl/agents/logging.py
__author__ = 'Thomas Rueckstiess, ruecksti@in.tum.de' from pybrain.rl.agents.agent import Agent from pybrain.datasets import ReinforcementDataSet class LoggingAgent(Agent): """ This agent stores actions, states, and rewards encountered during interaction with an environment in a ReinforcementDataSet (whi...
PypiClean
/LFT-0.1.1-py3-none-any.whl/lft/consensus/messages/vote.py
from abc import ABC, abstractmethod from typing import Iterable from lft.consensus.messages.message import Message, MessagePool __all__ = ("Vote", "VoteFactory", "VotePool", "VoteVerifier") class Vote(Message): @property @abstractmethod def data_id(self) -> bytes: raise NotImplementedError ...
PypiClean
/InformativeFeatureSelection-3.0.0.tar.gz/InformativeFeatureSelection-3.0.0/feature_extractor/features/ICDA.py
from copy import copy from typing import List import numpy as np from feature_extractor.common import DiscriminantAnalysis from feature_extractor.features.Extractor import Extractor class ICDA(Extractor): """ Feature selection using "Individual Criteria Disriminant Analysis" considering One-Vs-Rest cases ...
PypiClean
/Auptimizer-2.0.tar.gz/Auptimizer-2.0/src/aup/EE/Resource/SSHResourceManager.py
import json import logging import os import sys import time import threading import paramiko as pm from .CPUResourceManager import CPUResourceManager from ...utils import check_missing_key, load_default_env, parse_result, DEFAULT_AUPTIMIZER_PATH, block_until_ready from ...utils import open_sftp_with_timeout, parse_on...
PypiClean
/CSUMMDET-1.0.23.tar.gz/CSUMMDET-1.0.23/mmdet/ops/roi_align/roi_align.py
import torch.nn as nn from torch.autograd import Function from torch.autograd.function import once_differentiable from torch.nn.modules.utils import _pair from . import roi_align_cuda class RoIAlignFunction(Function): @staticmethod def forward(ctx, features, rois, out_size, spatial_scale, sample_num=0): ...
PypiClean
/GC-Flask-Blogging-1.1.2.tar.gz/GC-Flask-Blogging-1.1.2/README.rst
Flask-Blogging ============== .. image:: https://travis-ci.org/agiUnderground/Flask-Blogging.svg?branch=gcp_support :target: https://travis-ci.org/agiUnderground/Flask-Blogging This is a Flask extension for adding blog support to your site using Markdown. Please see `Flask-Blogging documentation <http://flask-bl...
PypiClean
/AlbertUnruhUtils.py-2.3.0-py3-none-any.whl/AlbertUnruhUtils/ratelimit/server.py
__all__ = ("ServerRateLimit",) import functools import typing import uuid from redis import Redis from time import time C_IN = typing.TypeVar("C_IN") C_OUT = typing.TypeVar("C_OUT") class ServerRateLimit: """Docs 'll come soon... (If you want docs right now you can take a look into ``__init__``)""" secti...
PypiClean
/Django_patch-2.2.19-py3-none-any.whl/django/views/generic/detail.py
from django.core.exceptions import ImproperlyConfigured from django.db import models from django.http import Http404 from django.utils.translation import gettext as _ from django.views.generic.base import ContextMixin, TemplateResponseMixin, View class SingleObjectMixin(ContextMixin): """ Provide the ability ...
PypiClean
/GelReportModels-7.8.0.tar.gz/GelReportModels-7.8.0/protocols/participant_1_1_2.py
from protocols.protocol import ProtocolElement from protocols.protocol import SearchRequest from protocols.protocol import SearchResponse from protocols.protocol import avro_parse import avro.schema version = '1.1.2' class AdoptedStatus(object): """ adoptedin means adopted into the family adoptedout mea...
PypiClean
/HydPy-5.0.1-cp38-cp38-win_amd64.whl/hydpy/auxs/armatools.py
"""This module provides additional features for module |iuhtools|, related to Autoregressive-Moving Average (ARMA) models.""" # import... # ...from standard library import itertools import warnings from typing import * # ...from site-packages import numpy # ...from HydPy import hydpy from hydpy.core import exceptiont...
PypiClean
/OASYS1-XOPPY-1.2.10.tar.gz/OASYS1-XOPPY-1.2.10/orangecontrib/xoppy/widgets/source/black_body.py
import sys import numpy from PyQt5.QtWidgets import QApplication from orangewidget import gui from orangewidget.settings import Setting from oasys.widgets import gui as oasysgui, congruence from oasys.widgets.exchange import DataExchangeObject from orangecontrib.xoppy.widgets.gui.ow_xoppy_widget import XoppyWidget f...
PypiClean
/Django-4.2.4.tar.gz/Django-4.2.4/django/contrib/staticfiles/handlers.py
from urllib.parse import urlparse from urllib.request import url2pathname from asgiref.sync import sync_to_async from django.conf import settings from django.contrib.staticfiles import utils from django.contrib.staticfiles.views import serve from django.core.handlers.asgi import ASGIHandler from django.core.handlers....
PypiClean
/EasyDeL-0.0.29-py3-none-any.whl/EasyDel/modules/palm/modelling_palm_flax.py
from typing import Union, Optional, Tuple, Any, Mapping import jax import jax.numpy as jnp import numpy as onp import transformers.modeling_flax_outputs from einops import rearrange import flax.linen as nn from flax.core import FrozenDict from jax import numpy as np from transformers.modeling_flax_outputs import Flax...
PypiClean
/Cowpox-6-py3-none-any.whl/cowpox/bundle.py
# This file is part of Cowpox. # # Cowpox 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. # # Cowpox is distributed in the hope that i...
PypiClean
/CO2meter-0.2.6-py3-none-any.whl/co2meter/server.py
import optparse import logging import threading import time import glob import os import socket import signal import json try: from StringIO import StringIO except ImportError: from io import StringIO import flask from flask import request, render_template, jsonify import pandas as pd import co2meter as co2 ...
PypiClean
/Bugs%20Everywhere%20(BEurtle%20fork)-1.5.0.1.-2012-07-16-.zip/Bugs Everywhere (BEurtle fork)-1.5.0.1.-2012-07-16-/libbe/diff.py
import difflib import types import libbe import libbe.bugdir import libbe.bug import libbe.util.tree from libbe.storage.util.settings_object import setting_name_to_attr_name from libbe.util.utility import time_to_str class SubscriptionType (libbe.util.tree.Tree): """Trees of subscription types to allow users to ...
PypiClean
/Helios_Scanner-1.1-py3-none-any.whl/helios/modules/module_stored_xss.py
import random import requests import helios.modules.module_base from helios.core.utils import requests_response_to_dict class Module(helios.modules.module_base.Base): cookies = None headers = None def __init__(self): self.name = "Stored XSS" self.injections = {} self.module_types ...
PypiClean
/CyberQInterface-1.0.tar.gz/CyberQInterface-1.0/cyberqinterface/cyberqinterface_exceptions.py
__author__ = "Bryan Kemp <bryan@thebrilliantidea.com>" __version__ = "A00" __date__ = '11/04/2012' __license__ = "BSD New" __license_text__ = """ Copyright (c) 2012, The Brilliant Idea All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the ...
PypiClean
/Alarmageddon-1.1.2-py3-none-any.whl/alarmageddon/run.py
import time import collections import multiprocessing import warnings from alarmageddon.config import Config from alarmageddon.reporter import Reporter from alarmageddon.publishing import hipchat, pagerduty, graphite, junit from alarmageddon.validations.validation import Priority from alarmageddon.result import Succe...
PypiClean
/NeuroTS-3.4.0-py3-none-any.whl/neurots/astrocyte/space_colonization.py
# Copyright (C) 2021 Blue Brain Project, EPFL # # 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 di...
PypiClean
/InsideTrac-0.2.7.tar.gz/InsideTrac-0.2.7/insidetrac/api.py
import datetime, time import calendar import feedparser import pkg_resources from genshi.builder import tag from trac.core import * from trac.config import ListOption from trac.admin.api import IAdminPanelProvider from trac.timeline.api import ITimelineEventProvider from trac.util import format_datetime from trac.util...
PypiClean
/ColabTurtlePlus-2.0.tar.gz/ColabTurtlePlus-2.0/README.md
# ColabTurtlePlus An extension of the original ColabTurtle by Tolga Atam (tolgaatam) using classes (so multiple turtle are possible). Also includes some code from jaronma ColabTurtle_2 repo. This is a module for drawing classic Turtle figures on Google Colab notebooks. It can also be used in Jupyter Lab notebooks. Th...
PypiClean
/Flask-User4AWS-1.0.2.3.tar.gz/Flask-User4AWS-1.0.2.3/flask_user/decorators.py
from functools import wraps from flask import current_app, g from flask_login import current_user def _is_logged_in_with_confirmed_email(user_manager): """| Returns True if user is logged in and has a confirmed email address. | Returns False otherwise. """ # User must be logged in if user_manager....
PypiClean
/Adafruit_Libraries-0.1.tar.gz/Adafruit_Libraries-0.1/Adafruit/LEDBackpack/Adafruit_8x8.py
import time import datetime from Adafruit_LEDBackpack import LEDBackpack # =========================================================================== # 8x8 Pixel Display # =========================================================================== class EightByEight: disp = None # Constructor def __init__(se...
PypiClean
/ConGen-0.0.5.tar.gz/ConGen-0.0.5/src/congen/layers/rasterLayers/PointRasterLayer.py
import numpy as np from matplotlib.patches import FancyBboxPatch, BoxStyle from layers.Parameter import Parameter from layers.rasterLayers.RasterLayer import RasterLayer class PointRasterLayer(RasterLayer): def __init__(self, **kwargs): super().__init__() self.parameters.append(Parameter(name="fu...
PypiClean
/Nano-Assault-1.0.tar.gz/Nano-Assault-1.0/nanoassault/dungeon.py
# (C) 2017, Eike Jesinghaus # 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 ...
PypiClean
/Django-4.2.4.tar.gz/Django-4.2.4/django/utils/deconstruct.py
from importlib import import_module from django.utils.version import get_docs_version def deconstructible(*args, path=None): """ Class decorator that allows the decorated class to be serialized by the migrations subsystem. The `path` kwarg specifies the import path. """ def decorator(klass)...
PypiClean
/41datastructure-1.5.tar.gz/41datastructure-1.5/README.md
# ENSF338_FinalProject # Final project for Group 41 ``` DataStructure Library ``` * creates Linear, Trees, Heaps, Graphs --- ``` Linear ``` * Single Linked List is created by calling SinglyLL() * Double Linked List is created by calling DoublyLinkedList() * Circular Single Linked List is created by calling Circu...
PypiClean
/MetaGram-2.0.2.tar.gz/MetaGram-2.0.2/pyrogram/methods/messages/edit_inline_media.py
import os import re import io import asyncio import io import pyrogram from pyrogram import raw from pyrogram import types from pyrogram import utils from pyrogram.errors import RPCError, MediaEmpty from pyrogram.file_id import FileType from .inline_session import get_session class EditInlineMedia: MAX_RETRIES ...
PypiClean
/DocumentFeatureSelection-1.5-cp37-cp37m-macosx_10_11_x86_64.whl/examples/huge_data_example.py
from DocumentFeatureSelection import interface from DocumentFeatureSelection.models import PersistentDict from DocumentFeatureSelection.init_logger import logger import logging import time import os import nltk nltk.download('wordnet') from collections import Counter from nltk import stem from typing import List # make...
PypiClean
/Axelrod-4.13.0.tar.gz/Axelrod-4.13.0/docs/how-to/contributing/setting_up_the_environment.rst
Setting up the environment ========================== Installing all dependencies --------------------------- All development dependencies can be installed by running:: $ pip install -r requirements/development.txt It is recommended to do this using a virtual environment tool of your choice. For example, when us...
PypiClean
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/storage/CookieStorageProvider.js.uncompressed.js
define("dojox/storage/CookieStorageProvider", ["dijit","dojo","dojox","dojo/require!dojox/storage/Provider,dojox/storage/manager,dojo/cookie"], function(dijit,dojo,dojox){ dojo.provide("dojox.storage.CookieStorageProvider"); dojo.require("dojox.storage.Provider"); dojo.require("dojox.storage.manager"); dojo.require("d...
PypiClean
/CrossPy-0.0.0a0.tar.gz/CrossPy-0.0.0a0/crosspy/ldevice.py
import functools import inspect from abc import abstractmethod, ABCMeta from functools import reduce from math import floor, ceil from typing import Iterable, List, Optional, Tuple, Collection, Mapping, Union, Any from warnings import warn from .core.ndarray import IndexType from .device import Device, Memory, MemoryK...
PypiClean
/LabToolkit-0.1.3.tar.gz/LabToolkit-0.1.3/README.md
# Labtoolkit Python package for instrument control, data acquisition and automation. ## Demo ``` python # Communicate with Hardware with PyVISA import pyvisa import labtoolkit import labtoolkit.SpectrumAnalyser.AgilentE44nn rm = pyvisa.ResourceManager() sa = labtookit.SpectrumAnalyser.AgilentE44nn( rm.open_re...
PypiClean
/Mathics_Django-6.0.0-py3-none-any.whl/mathics_django/web/media/js/mathjax/extensions/HelpDialog.js
(function(d,f,i,c,j){var e=MathJax.Extension.Help={version:"2.7.9"};var b="http://www.stixfonts.org/";var a=MathJax.Menu;var h,g;d.Register.StartupHook("MathEvents Ready",function(){h=MathJax.Extension.MathEvents.Event.False;g=MathJax.Extension.MathEvents.Event.KEY});var k=d.CombineConfig("HelpDialog",{styles:{"#MathJa...
PypiClean
/Flask-AceEditor-1.0.7.tar.gz/Flask-AceEditor-1.0.7/flask_aceeditor/static/js/theme-monokai.min.js
define("ace/theme/monokai",["require","exports","module","ace/lib/dom"],function(a,e,o){e.isDark=!0,e.cssClass="ace-monokai",e.cssText=".ace-monokai .ace_gutter {background: #2F3129;color: #8F908A}.ace-monokai .ace_print-margin {width: 1px;background: #555651}.ace-monokai {background-color: #272822;color: #F8F8F2}.ace-...
PypiClean
/MyColonyFileParser-1.0.0.tar.gz/MyColonyFileParser-1.0.0/README.md
# mcfp - My Colony File Parser [![DeepSource](https://deepsource.io/gh/MCW-My-Colony-Wiki/MyColonyFileParser.svg/?label=active+issues&show_trend=true&token=zjOyAP4RLEuWcm5YOU1NQJW_)](https://deepsource.io/gh/MCW-My-Colony-Wiki/MyColonyFileParser/?ref=repository-badge) [中文版readme](README_zh.md) current not ...
PypiClean
/Maisie_Sphinx_Theme-0.1.2-py3-none-any.whl/maisie_sphinx_theme/maisie_sphinx_theme/static/js/bootstrap.js
if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript requires jQuery') } /* ======================================================================== * Bootstrap: transition.js v3.1.1 * http://getbootstrap.com/javascript/#transitions * ========================================================...
PypiClean
/ESMValTool-2.9.0-py3-none-any.whl/esmvaltool/cmorizers/data/downloaders/datasets/esacci_cloud.py
from datetime import datetime from dateutil import relativedelta from esmvaltool.cmorizers.data.downloaders.ftp import CCIDownloader def download_dataset(config, dataset, dataset_info, start_date, end_date, overwrite): """Download dataset. Parameters ---------- config : dict ...
PypiClean
/DLTA-AI-1.1.tar.gz/DLTA-AI-1.1/DLTA_AI_app/mmdetection/mmdet/models/roi_heads/bbox_heads/double_bbox_head.py
import torch.nn as nn from mmcv.cnn import ConvModule from mmcv.runner import BaseModule, ModuleList from mmdet.models.backbones.resnet import Bottleneck from mmdet.models.builder import HEADS from .bbox_head import BBoxHead class BasicResBlock(BaseModule): """Basic residual block. This block is a little di...
PypiClean