id
stringlengths
1
265
text
stringlengths
6
5.19M
dataset_id
stringclasses
7 values
/MXFusion-0.3.1.tar.gz/MXFusion-0.3.1/mxfusion/components/variables/runtime_variable.py
from mxnet.ndarray.ndarray import NDArray from mxnet.symbol.symbol import Symbol def add_sample_dimension(F, array): """ Add an extra dimension with shape one in the front (axis 0) of an array representing samples. :param F: the execution mode of MXNet. :type F: mxnet.ndarray or mxnet.symbol :p...
PypiClean
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/charting/widget/Legend.js.uncompressed.js
define("dojox/charting/widget/Legend", ["dojo/_base/lang", "dojo/_base/html", "dojo/_base/declare", "dijit/_Widget", "dojox/gfx","dojo/_base/array", "dojox/lang/functional", "dojox/lang/functional/array", "dojox/lang/functional/fold", "dojo/dom", "dojo/dom-construct", "dojo/dom-class","dijit/_base/manager"], fu...
PypiClean
/Euphorie-15.0.2.tar.gz/Euphorie-15.0.2/src/euphorie/client/resources/oira/script/chunks/62382.14d0bf77192074a7b11c.min.js
"use strict";(self.webpackChunk_patternslib_patternslib=self.webpackChunk_patternslib_patternslib||[]).push([[62382],{95807:function(n,e,t){var o=t(87537),r=t.n(o),s=t(23645),a=t.n(s)()(r());a.push([n.id,".hljs-comment,.hljs-quote{color:#969896}.hljs-variable,.hljs-template-variable,.hljs-tag,.hljs-name,.hljs-selector-...
PypiClean
/FlyForms-1.0.0b1.tar.gz/FlyForms-1.0.0b1/docs/build/html/searchindex.js
Search.setIndex({envversion:46,filenames:["api","changes","concept","index","indices"],objects:{"flyforms.core":{Form:[0,2,1,""],FormField:[0,2,1,""],FormMeta:[0,2,1,""],FormMetaOptions:[0,2,1,""],UnboundField:[0,2,1,""],UnboundForm:[0,2,1,""]},"flyforms.core.Form":{"_fields":[0,1,1,""],"_meta":[0,1,1,""],"_raw_data":[...
PypiClean
/Lokai-0.3.tar.gz/Lokai-0.3/lokai/lk_worker/sys_procs/lk_initial_data.py
#----------------------------------------------------------------------- # The program processes a python file that contains certain data sets. # # The process can be repeated. Data already in the database is left # unchanged. New items are added. #--------------------------------------------------------------------...
PypiClean
/IPRA_SESG-3.20.51-py3-none-any.whl/ipra/View2/bootupCTK.py
import time import customtkinter import threading from tkinter.constants import LEFT, NW, TOP import sys import subprocess import pkg_resources from ipra.View2.main import Main class BootupCTK(): required = ['selenium', 'beautifulsoup4', 'webdriver_manager', 'pandas', 'xlsxwriter', 'openpyxl', 'l...
PypiClean
/FlaskCms-0.0.4.tar.gz/FlaskCms-0.0.4/flask_cms/static/js/ace/mode-vala.js
ace.define("ace/mode/vala_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"], function(require, exports, module) { "use strict"; var oop = require("../lib/oop"); var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules; var ValaHighlightRules = function(...
PypiClean
/conpot-0.6.0-py3-none-any.whl/conpot/core/loggers/mysql_log.py
import gevent import logging # import MySQLdb -- change with SQLAlchemy! from warnings import filterwarnings filterwarnings('ignore', category=MySQLdb.Warning) logger = logging.getLogger(__name__) class MySQLlogger(object): def __init__(self, host, port, db, username, passphrase, logdevice, logsocket, sensori...
PypiClean
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/highlight/languages/pygments/javascript.js
define("dojox/highlight/languages/pygments/javascript",["dojox/main","../../_base"],function(_1){ var dh=_1.highlight,_2=dh.constants; dh.languages.javascript={defaultMode:{lexems:["\\b[a-zA-Z]+"],keywords:{"keyword":{"for":1,"in":1,"while":1,"do":1,"break":1,"return":1,"continue":1,"if":1,"else":1,"throw":1,"try":1,"c...
PypiClean
/Bis-Miner-3.11.1.tar.gz/Bis-Miner-3.11.0/Orange/canvas/config.py
import os import sys import logging import pickle as pickle import itertools import pkg_resources from AnyQt.QtGui import ( QPainter, QFont, QFontMetrics, QColor, QPixmap, QIcon ) from AnyQt.QtCore import Qt, QCoreApplication, QPoint, QRect, QSettings from .utils.settings import Settings, config_slot log = log...
PypiClean
/ApeMan-0.1.1.tar.gz/ApeMan-0.1.1/docs/34/replacement.py
# System import os import sys # Types import types # Debugging from pdb import set_trace as db # Inspection import inspect # Iteration from itertools import zip_longest as izip, tee # Imports from importlib import util, abc ,machinery, _bootstrap as bootstrap import imp # Debugging import logging # Local Libraries t...
PypiClean
/BioMine-0.9.5.zip/BioMine-0.9.5/biomine/variant/clinvarvariant.py
from biomine.variant.mafvariant import mafvariant import re from biomine.webapi import webapi class clinvarvariant(mafvariant): pathogenic = "Pathogenic" likelyPathogenic = "Likely Pathogenic" likelyBenign = "Likely Benign" benign = "Benign" uncertain = "Uncertain Significance" def __init__(self , **kwargs): s...
PypiClean
/ETLT-MySQL-0.10.1.tar.gz/ETLT-MySQL-0.10.1/test/writer/MySqlLoaderWriterTest.py
import datetime import math import unittest from decimal import Decimal from os import path from uuid import UUID import pytz from etlt_mysql.writer.MySqlLoaderWriter import MySqlLoaderWriter class MySqlLoaderWriterTest(unittest.TestCase): """ Test cases for MySqlLoaderWriter. """ # ---------------...
PypiClean
/Djaloha-0.4.2.tar.gz/Djaloha-0.4.2/djaloha/static/aloha.0.20/plugins/common/block/lib/editor.js
* @name block.editor * @namespace Block attribute editors */ define(['aloha/jquery', 'aloha/observable'], function(jQuery, Observable) { /** * This is the base class for all editors in the sidebar. You need to extend * this class if you need to write your own editor. In most cases, however, * it is suffice...
PypiClean
/Chrones-1.0.3.tar.gz/Chrones-1.0.3/README.md
<!-- Copyright 2020-2022 Laurent Cabaret Copyright 2020-2022 Vincent Jacques --> *Chrones* is a software development tool to visualize runtime statistics (CPU percentage, GPU percentage, memory usage, *etc.*) about your program and correlate them with the phases of your program. It aims at being very simple to use an...
PypiClean
/K40Silence-0.0.1.tar.gz/K40Silence-0.0.1/src/gui/zmatrix.py
from wx import AffineMatrix2D, Matrix2D, Point2D class ZMatrix(AffineMatrix2D): def __init__(self, matrix=None): AffineMatrix2D.__init__(self) if matrix is not None: self.Set( Matrix2D( matrix.value_scale_x(), matrix.value_skew_x(...
PypiClean
/BubbleDet-1.0.0.tar.gz/BubbleDet-1.0.0/examples/thinwall.py
import numpy as np # arrays and maths import matplotlib.pyplot as plt # plotting from scipy import special # gamma function from cosmoTransitions.tunneling1D import SingleFieldInstanton # bounce from BubbleDet import BubbleConfig, ParticleConfig, BubbleDeterminant # the dimension, dim = 2, 3, ... 7 dim = 4 print(f"{...
PypiClean
/ImageScraper-2.0.7.tar.gz/ImageScraper-2.0.7/image_scraper/progressbar.py
from __future__ import division from __future__ import print_function from builtins import range from past.utils import old_div from builtins import object import sys import time from array import array try: from fcntl import ioctl import termios except ImportError: pass import signal class ProgressBarWid...
PypiClean
/DUI-1.1.0.tar.gz/DUI-1.1.0/README.md
# DUI ## 简介 它用print及一些基础库(sys,os等)制作,当你使用时不需要考虑太多兼容性问题,理论上能运行python解释器的地方就能使用,实际上我们经常会使用很多奇怪的终端界面(这个问题很难解决) 但是你仍然可以用很少的代码获得一个比较美观的界面。 此库尚未完善,只写了一点内容,以后会向更多功能进行制作。有兴趣的同学可联系我邮箱:1071445082@qq.com DUI库可以通过 ```shell pip install DUI ``` 来实现安装库,如果要检查自己的DUI是否正常及其版本号,可以使用 ```python import DUI DUI.showTestWindow() ``` 来获...
PypiClean
/Flask_IPInfo-0.0.5-py3-none-any.whl/flask_ipinfo.py
import re import urllib import json from flask import request __version__ = '0.0.5' __author__ = "borisliu" class IPInfo(object): """IP地址类.""" @property def browser(self): """获得访客浏览器类型.""" ua = request.headers.get('User-Agent') if (ua): browser = ua if (r...
PypiClean
/GTW-1.2.6.tar.gz/GTW-1.2.6/__test__/MF3.py
from __future__ import division, print_function from __future__ import absolute_import, unicode_literals from _GTW import GTW from _MOM.import_MOM import Q import _GTW._OMP._PAP.import_PAP GTW.OMP.PAP.Phone.change_attribute_default ("cc", "+43") from _GTW.__test__.model ...
PypiClean
/ASAPy-1.1.2.tar.gz/ASAPy-1.1.2/ASAP/AutomaticSurfaceAdsorbateStructureProvider.py
import operator from pymatgen.core.sites import PeriodicSite from pymatgen.io.vasp.inputs import Poscar import numpy as np import math from sympy.geometry import Plane, Point3D import sympy as sym from sympy import re from itertools import combinations class ASAP(): # ASAP can currently handle all coordn...
PypiClean
/DLTA-AI-1.1.tar.gz/DLTA-AI-1.1/DLTA_AI_app/mmdetection/mmdet/models/necks/dyhead.py
import torch.nn as nn import torch.nn.functional as F from mmcv.cnn import (build_activation_layer, build_norm_layer, constant_init, normal_init) from mmcv.ops.modulated_deform_conv import ModulatedDeformConv2d from mmcv.runner import BaseModule from ..builder import NECKS from ..utils import DyR...
PypiClean
/Dooders-0.0.3.tar.gz/Dooders-0.0.3/dooders/sdk/core/step.py
from abc import ABC, abstractmethod from dooders.sdk.core.core import Core class Step(Core): """ A step is a point in the simulation to execute logic for a specific object or model during its turn. Attributes ---------- registry : dict A dictionary of all the registered step flows,...
PypiClean
/NeodroidVision-0.3.0-py36-none-any.whl/neodroidvision/data/neodroid_environments/classification/data.py
from typing import Tuple, Union import neodroid from PIL import Image from draugr.multiprocessing_utilities import PooledQueueProcessor, PooledQueueTask from draugr.torch_utilities import global_torch_device from torch.utils.data import Dataset from torchvision import transforms __author__ = "Christian Heider Nielsen...
PypiClean
/EasyLEED-2.5.2.tar.gz/EasyLEED-2.5.2/easyleed/base.py
import numpy as np from scipy import optimize import math from . import config from . import kalman from . import logger class SpotModel: """ Data model for a Spot that stores all the information in various lists. """ def __init__(self): self.x = [] self.y = [] self.intensity = [...
PypiClean
/Flask-MAuth-1.1.tar.gz/Flask-MAuth-1.1/docs/classes.rst
Class Reference *************** flask_mauth =========== .. automodule:: flask_mauth.auth :members: :undoc-members: flask_mauth.cacher ================== .. automodule:: flask_mauth.cacher.security_token_cacher :members: :undoc-members: flask_mauth.mauth ================= .. automodule:: flask_maut...
PypiClean
/Flask-Edits-0.8.tar.gz/Flask-Edits-0.8/README
Flask-Edits ~~~~~~~~~~~ "Can't you just, rewrite it to sound more *edgy?*" Clients blowing up your phone to change some copy on the ``/about`` page? Enter **Flask-Edits**. Mark sections of your templates with ``{% editable %}`` and their content is exposed in a slick admin panel. Never worry about tweaking copy agai...
PypiClean
/AltAnalyze-2.1.3.15.tar.gz/AltAnalyze-2.1.3.15/altanalyze/misopy/misc_utils.py
import os import sys import time import shelve COMPRESS_PREFIX = "misocomp" def inv_dict(mydict): """ Reverse key -> val into val -> key. """ new_dict = {} for k in mydict: new_dict[mydict[k]] = k return new_dict def load_compressed_ids_to_genes(compressed_filename): """ Loa...
PypiClean
/Muntjac-1.1.2.tar.gz/Muntjac-1.1.2/muntjac/ui/panel.py
from warnings import warn from muntjac.terminal.scrollable import IScrollable from muntjac.event.action_manager import ActionManager from muntjac.event import action from muntjac.ui.vertical_layout import VerticalLayout from muntjac.ui.abstract_component_container import AbstractComponentContainer from muntjac.ui imp...
PypiClean
/FEADRE_AI-1.0.7.tar.gz/FEADRE_AI-1.0.7/FEADRE_AI/ai/fmodels/model_modules.py
import torch from torch import nn import torch.nn.functional as F import numpy as np from FEADRE_AI.ai.fmodels.model_subassembly import FConv2d class Bottleneck(nn.Module): # Standard bottleneck def __init__(self, in_ch, dilation=1, e=0.5): super(Bottleneck, self).__init__() inter_ch = int(in...
PypiClean
/LibRecommender-1.3.0-cp38-cp38-macosx_10_9_x86_64.whl/libreco/algorithms/ncf.py
from ..bases import ModelMeta, TfBase from ..layers import dense_nn, embedding_lookup, tf_dense from ..tfops import dropout_config, reg_config, tf from ..torchops import hidden_units_config class NCF(TfBase, metaclass=ModelMeta): """*Neural Collaborative Filtering* algorithm. Parameters ---------- ta...
PypiClean
/FreeClimb-4.5.0-py3-none-any.whl/freeclimb/rest.py
import io import json import logging import re import ssl from urllib.parse import urlencode from urllib.parse import urlparse from urllib.request import proxy_bypass_environment import urllib3 import ipaddress from freeclimb.exceptions import ApiException, UnauthorizedException, ForbiddenException, NotFoundException,...
PypiClean
/cubrid-python-9.3.0.0002.tar.gz/RB-9.3.0/CUBRIDdb/cursors.py
import sys import types from CUBRIDdb import FIELD_TYPE class BaseCursor(object): """ A base for Cursor classes. Useful attributes: description:: A tuple of DB API 7-tuples describing the columns in the last executed query; see PEP-249 for details. arraysize:: default number ...
PypiClean
/BitGlitter-2.0.0.tar.gz/BitGlitter-2.0.0/bitglitter/config/presetfunctions.py
from bitglitter.config.config import session from bitglitter.config.presetmodels import Preset from bitglitter.validation.validatewrite import write_preset_validate def _convert_preset_to_dict(preset): return {'nickname': preset.nickname, 'datetime_created': preset.datetime_created, 'output_mode': preset.output_m...
PypiClean
/FeaSel-Net-0.0.9.tar.gz/FeaSel-Net-0.0.9/src/feasel/linear/lda.py
import numpy as np from .base import ModelContainer from .pca import PCA from .svd import SVD from ..data import classification from ..plot import LinearTransformationVisualizer as Visualizer from ..utils.time import get_timestamp class LDA(ModelContainer): def __init__(self, X, y, features=None, ...
PypiClean
/Incantation-0.4.1.1-py3-none-any.whl/incantation/Component/Cards.py
from ..abst import traits_class, Attribute, Tag, ITraitsAttribute, ITraitsTag from ..utils import default_initializer, doc_printer from .Buttons import Horizontal if False: import incantation as inc class CardModule: @staticmethod @doc_printer def help(self): """ >>> import incantati...
PypiClean
/FLaP-0.6.0.tar.gz/FLaP-0.6.0/flap/latex/macros/graphics.py
# # This file is part of Flap. # # Flap 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. # # Flap is distributed in the hope that it wi...
PypiClean
/ESMValTool-2.9.0-py3-none-any.whl/esmvaltool/diag_scripts/thermodyn_diagtool/fluxogram.py
from matplotlib import pyplot as plt class Fluxogram(): """The diagram flux module. A class to draw and maintain all fluxes and storages from a model or some similiar kind of thing to be drawn as a sequence of storages and fluxes. """ def __init__(self, max_flux, max_storage, grid_size=20): ...
PypiClean
/GO-3-data-model-1.0.2.tar.gz/GO-3-data-model-1.0.2/datamodel/input/staticinner.py
import logging from pydantic import root_validator, validator from datamodel.input.staticinnerbase import * class BusInitialStatus(BusInitialStatusBase): pass class ShuntInitialStatus(ShuntInitialStatusBase): pass class DispatchableDevices_SimpleProducingConsumingDevicesInitialStatus(DispatchableDevices_SimpleProdu...
PypiClean
/NSFWDetection-1.0.2.tar.gz/NSFWDetection-1.0.2/nsfw_detector/model.py
import os import pydload import numpy as np import onnxruntime from .image_utils import load_images # sigmoid function def sig(x): return 1/(1 + np.exp(-x)) class Model: """ Class for loading model and running predictions. For example on how to use take a look the if __name__ == '__main__' part. "...
PypiClean
/Lifetimes-0.11.3-py3-none-any.whl/lifetimes/generate_data.py
import warnings warnings.simplefilter(action="ignore", category=FutureWarning) import numpy as np from numpy import random import pandas as pd def beta_geometric_nbd_model(T, r, alpha, a, b, size=1): """ Generate artificial data according to the BG/NBD model. See [1] for model details Parameters ...
PypiClean
/NREL-erad-0.0.0a0.tar.gz/NREL-erad-0.0.0a0/erad/utils/ditto_utils.py
from pathlib import Path import shutil import logging from typing import List # third-party libraries import boto3 from botocore import UNSIGNED from botocore.config import Config from ditto.store import Store from ditto.readers.opendss.read import Reader from ditto.network.network import Network from ditto.models.pow...
PypiClean
/AyiinXd-0.0.8-cp311-cp311-macosx_10_9_universal2.whl/fipper/node_modules/wrappy/README.md
# wrappy Callback wrapping utility ## USAGE ```javascript var wrappy = require("wrappy") // var wrapper = wrappy(wrapperFunction) // make sure a cb is called only once // See also: http://npm.im/once for this specific use case var once = wrappy(function (cb) { var called = false return function () { if (ca...
PypiClean
/Cibyl-1.0.0.0rc1.tar.gz/Cibyl-1.0.0.0rc1/tripleo/insights/io.py
from dataclasses import dataclass, field from typing import Optional from tripleo.insights.defaults import (DEFAULT_ENVIRONMENT_FILE, DEFAULT_FEATURESET_FILE, DEFAULT_NODES_FILE, DEFAULT_QUICKSTART, DEF...
PypiClean
/MachaTheKing-99.99.99-py3-none-any.whl/secret_santa/conversation.py
import turtle import time import christmas def santa_n_Macha(): screen= turtle.Screen() turtle.title('Santa vs Macha') screen.setup(width=1.0, height=1.0) screen.bgcolor('black') screen.tracer(0) tt = turtle.Turtle() info_turtle = turtle.Turtle() info_turtle.color('red') info...
PypiClean
/MaterialDjango-0.2.5.tar.gz/MaterialDjango-0.2.5/bower_components/prism/components/prism-d.min.js
Prism.languages.d=Prism.languages.extend("clike",{string:[/\b[rx]"(?:\\[\s\S]|[^\\"])*"[cwd]?/,/\bq"(?:\[[\s\S]*?\]|\([\s\S]*?\)|<[\s\S]*?>|\{[\s\S]*?\})"/,/\bq"([_a-zA-Z][_a-zA-Z\d]*)(?:\r?\n|\r)[\s\S]*?(?:\r?\n|\r)\1"/,/\bq"(.)[\s\S]*?\1"/,/'(?:\\'|\\?[^']+)'/,/(["`])(?:\\[\s\S]|(?!\1)[^\\])*\1[cwd]?/],number:[/\b0x\...
PypiClean
/DLTA-AI-1.1.tar.gz/DLTA-AI-1.1/DLTA_AI_app/mmdetection/mmdet/models/seg_heads/panoptic_fusion_heads/maskformer_fusion_head.py
import torch import torch.nn.functional as F from mmdet.core.evaluation.panoptic_utils import INSTANCE_OFFSET from mmdet.core.mask import mask2bbox from mmdet.models.builder import HEADS from .base_panoptic_fusion_head import BasePanopticFusionHead @HEADS.register_module() class MaskFormerFusionHead(BasePanopticFusi...
PypiClean
/LibRecommender-1.3.0-cp38-cp38-macosx_10_9_x86_64.whl/libserving/serialization/redis.py
import contextlib import os import redis import ujson @contextlib.contextmanager def redis_connection(host: str, port: int, db: int): r = None try: r = redis.Redis(host=host, port=port, db=db, decode_responses=True) yield r except (redis.ConnectionError, redis.DataError): raise ...
PypiClean
/OWSLib-0.29.2.tar.gz/OWSLib-0.29.2/owslib/csw.py
from .catalogue import csw2, csw3 from .catalogue.csw2 import CswRecord from .util import clean_ows_url, Authentication def CatalogueServiceWeb(url, lang='en-US', version='2.0.2', timeout=10, skip_caps=False, username=None, password=None, auth=None, headers=None): """ CSW factory funct...
PypiClean
/MJOLNIR-1.3.1.tar.gz/MJOLNIR-1.3.1/docs/Tutorials/MJOLNIRHistory.rst
History of data files ===================== Both during an experiment and especially after, one can lose the overview of which data files contain which data. With a command line tool that prints out the most important properties of data files, this can be overcome. The script *MJOLNIRHistory* and it has the followin...
PypiClean
/Broad_genepy-1.2.6-py3-none-any.whl/genepy/epigenetics/plot.py
import pandas as pd import numpy as np import seaborn as sns import matplotlib.pyplot as plt from matplotlib import cm from genepy.epigenetics import chipseq as chip from genepy.utils import helper as h def plotAverageOfSamples(samples, folder="", showAll=False, maxv=None, minv=None): res = [] plt.figure() plt....
PypiClean
/Harambe-0.10.0.tar.gz/Harambe-0.10.0/harambe/core.py
import re import os import sys import arrow import jinja2 import inspect import logging import functools import pkg_resources import logging.config from six import string_types from werkzeug import import_string from flask_assets import Environment from werkzeug.contrib.fixers import ProxyFix from werkzeug.routing impo...
PypiClean
/Flask-User-AWS-1.0.1.7.tar.gz/Flask-User-AWS-1.0.1.7/flask_user/forms.py
import string from flask import current_app from flask_login import current_user # Flask-WTF v0.13 renamed Flask to FlaskForm try: from flask_wtf import FlaskForm # Try Flask-WTF v0.13+ except ImportError: from flask_wtf import Form as FlaskForm # Fallback to Flask-WTF v0.12 or older from wt...
PypiClean
/ApiLogicServer-9.2.18-py3-none-any.whl/api_logic_server_cli/create_from_model/safrs-react-admin-npm-build/static/js/4877.7cebca37.chunk.js
"use strict";(self.webpackChunkreact_admin_upgrade=self.webpackChunkreact_admin_upgrade||[]).push([[4877],{54877:function(e,t,n){n.r(t),n.d(t,{conf:function(){return s},language:function(){return i}});var s={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineC...
PypiClean
/node_managment_application-0.0.1.tar.gz/node_managment_application-0.0.1/nms_app/api_services/project_app_apis.py
import os import subprocess from rest_framework import status from nms_app.models import SetupProjectDetails from nms_app.nms_services.api_key_valdation import get_node_id from nms_app.nms_services.common_services import run_command, kill_processes_by_cmdline from nms_app.nms_services.get_json_result import get_json_r...
PypiClean
/MAD-0.2.2.zip/MAD-0.2.2/mad/simulation/tasks.py
# # This file is part of MAD. # # MAD 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. # # MAD is distributed in the hope that it will ...
PypiClean
/Flask-Statics-Helper-1.0.0.tar.gz/Flask-Statics-Helper-1.0.0/flask_statics/static/BootstrapValidator/js/language/ar_MA.js
(function ($) { /** * Arabic language package * Translated by @Arkni */ $.fn.bootstrapValidator.i18n = $.extend(true, $.fn.bootstrapValidator.i18n, { base64: { 'default': 'الرجاء إدخال قيمة مشفرة طبقا للقاعدة 64.' }, between: { 'default': 'الرجاء إد...
PypiClean
/Hermes_lnestelroad-1.0.2-py3-none-any.whl/Hermes/Timer.py
import time from typing import Dict, List # NOTE: These objects are examples of handeling events without including zeromq sockets as opposed to how the Message class does things. # https://stackoverflow.com/questions/52722864/python-periodic-timer-interrupt # https://github.com/sankalpjonn/timeloop/tree/d3e58dbe3b36...
PypiClean
/NESTML-5.3.0-py3-none-any.whl/pynestml/meta_model/ast_external_variable.py
from typing import Optional from pynestml.meta_model.ast_variable import ASTVariable class ASTExternalVariable(ASTVariable): r""" This class is used to store a single "external" variable: a variable the value of which is obtained during runtime from a neuron's postsynaptic partner. """ _altscope = N...
PypiClean
/GraKeL-0.1.9-cp310-cp310-macosx_10_9_universal2.whl/grakel/kernels/random_walk.py
# Author: Ioannis Siglidis <y.siglidis@gmail.com> # License: BSD 3 clause import warnings import numpy as np from itertools import product from numpy import ComplexWarning from numpy.linalg import inv from numpy.linalg import eig from numpy.linalg import multi_dot from scipy.linalg import expm from scipy.sparse.lina...
PypiClean
/MarkdownTools2-1.0.1.tar.gz/MarkdownTools2-1.0.1/ez_setup.py
import os import shutil import sys import tempfile import zipfile import optparse import subprocess import platform import textwrap import contextlib from distutils import log try: from site import USER_SITE except ImportError: USER_SITE = None DEFAULT_VERSION = "3.1" DEFAULT_URL = "https://pypi.python.org/p...
PypiClean
/Flask-API-Utils-1.0.2.tar.gz/Flask-API-Utils-1.0.2/README.rst
=============== Flask-API-Utils =============== .. image:: https://travis-ci.org/marselester/flask-api-utils.png :target: https://travis-ci.org/marselester/flask-api-utils Flask-API-Utils helps you to create APIs. It makes responses in appropriate formats, for instance, JSON. All you need to do is to return dictio...
PypiClean
/HTML-as-programming-language-0.1.21.tar.gz/HTML-as-programming-language-0.1.21/htmlc/elements/var_and_const.py
from htmlc.diagnostics import Diagnostic, Severity from htmlc.elements.element import Element from htmlc.utils import hyphenated_to_camel_case class Var(Element): """" HTML: <var b=6/> <var aString="hello"/> <var aChar='b'/> C: int b = 6; String aString = "hello"; char aChar = 'b...
PypiClean
/NitPycker-0.1.tar.gz/NitPycker-0.1/nitpycker/runners.py
import multiprocessing import queue import sys import threading import time import unittest from nitpycker.plugins.manager import Manager from nitpycker.result import InterProcessResult, ResultCollector, ResultAggregator, TestState __author__ = "Benjamin Schubert, ben.c.schubert@gmail.com" class ParallelRunner: ...
PypiClean
/dragonflow-4.0.0.tar.gz/dragonflow-4.0.0/doc/source/specs/services_status.rst
=============== Services Status =============== https://blueprints.launchpad.net/dragonflow/+spec/services-status This spec is introduced to keep the status of all the services available all the time in database. Problem Description =================== This spec solves the following problems * To view services sta...
PypiClean
/HTSQL-2.3.3.tar.gz/HTSQL-2.3.3/src/htsql/tweak/override/introspect.py
from ...core.context import context from ...core.adapter import rank from ...core.introspect import Introspect import threading class UnusedPatternCache(object): def __init__(self): self.patterns = [] self.lock = threading.Lock() def add(self, pattern): with self.lock: ...
PypiClean
/Dick.py-1.7-py3-none-any.whl/amino/client.py
import json import base64 import requests import threading from hashlib import sha1 import names import random import hmac import platform,socket,re,uuid import secmail from bs4 import BeautifulSoup from uuid import UUID from os import urandom from time import timezone, sleep from typing import BinaryIO from binascii ...
PypiClean
/Kr0nOs-3.4.1.tar.gz/Kr0nOs-3.4.1/kronbot/core/bank.py
from __future__ import annotations import asyncio import datetime from functools import wraps from typing import TYPE_CHECKING, List, Optional, Union import discord from kronbot.core.utils.chat_formatting import humanize_number from . import Config, commands, errors from .errors import BankPruneError from .i18n imp...
PypiClean
/Async_Server-0.0.1-py3-none-any.whl/server/core.py
import threading import logging import select import socket import json import hmac import binascii import os from common.metaclasses import ServerMaker from common.descryptors import Port from common.variables import * from common.utils import send_message, get_message from common.decos import login_required # Загруз...
PypiClean
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/grid/_FocusManager.js
define("dojox/grid/_FocusManager",["dojo/_base/array","dojo/_base/lang","dojo/_base/declare","dojo/_base/connect","dojo/_base/event","dojo/_base/sniff","dojo/query","./util","dojo/_base/html"],function(_1,_2,_3,_4,_5,_6,_7,_8,_9){ return _3("dojox.grid._FocusManager",null,{constructor:function(_a){ this.grid=_a; this.c...
PypiClean
/Files.com-1.0.1051-py3-none-any.whl/files_sdk/models/file_comment.py
import builtins import datetime from files_sdk.api import Api from files_sdk.list_obj import ListObj from files_sdk.exceptions import InvalidParameterError, MissingParameterError, NotImplementedError class FileComment: default_attributes = { 'id': None, # int64 - File Comment ID 'body': None, ...
PypiClean
/Blogstrap-0.8.0.tar.gz/Blogstrap-0.8.0/blogstrap/blogstrap.py
import argparse import os import flask import mimerender import six if six.PY2: from exceptions import IOError import sys reload(sys) # noqa sys.setdefaultencoding('utf-8') import builder import context import utils else: import blogstrap.builder as builder import blogstrap.contex...
PypiClean
/MegEngine-1.13.1-cp37-cp37m-macosx_10_14_x86_64.whl/megengine/data/dataset/vision/cityscapes.py
import json import os import cv2 import numpy as np from .meta_vision import VisionDataset class Cityscapes(VisionDataset): r"""`Cityscapes <http://www.cityscapes-dataset.com/>`_ Dataset.""" supported_order = ( "image", "mask", "info", ) def __init__(self, root, image_set, ...
PypiClean
/MultiSim-0.10.0.tar.gz/MultiSim-0.10.0/multisim/parts/pipe_with_valve.py
import numpy as np from .pipe import Pipe from ..precomp_funs import pipe1D_branched_diff class PipeWith3wValve(Pipe): """ type: Single Pipe Can be added to the simulation environment by using the following method: .add_part(Pipe, name, volume=..., grid_points=..., outer_diameter=..., sh...
PypiClean
/Jord-0.1.5.tar.gz/Jord-0.1.5/jord/shapely_utilities/projection.py
from typing import Sequence, Tuple, Optional from shapely.geometry import Polygon, Point, LineString from shapely.geometry.base import BaseGeometry from warg import pairs __all__ = [ "project_point_to_object", "project_point_to_line_points", "project_point_to_line", "nearest_geometry", ] def proje...
PypiClean
/Enarksh-0.9.0.tar.gz/Enarksh-0.9.0/enarksh/xml_reader/XmlReader.py
import logging import os from lxml import etree import enarksh from enarksh.xml_reader.Host import Host from enarksh.xml_reader.node import create_node class XmlReader: # ------------------------------------------------------------------------------------------------------------------ @staticmethod def ...
PypiClean
/Firefly%20III%20API%20Python%20Client-1.5.6.post2.tar.gz/Firefly III API Python Client-1.5.6.post2/firefly_iii_client/model/transaction_link_array.py
import re # noqa: F401 import sys # noqa: F401 from firefly_iii_client.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,...
PypiClean
/CellStar-2.0.3-py3-none-any.whl/cellstar/core/polar_transform.py
import math import threading import numpy as np from cellstar.utils.calc_util import to_int from cellstar.utils.calc_util import sub2ind from cellstar.utils.image_util import image_dilate_with_element, get_circle_kernel class PolarTransform(object): """ Object wrapping polar transform calculations and cache...
PypiClean
/FamcyDev-0.3.71-py3-none-any.whl/Famcy/node_modules/bootstrap-fileinput/js/locales/nl.js
(function ($) { "use strict"; $.fn.fileinputLocales['nl'] = { fileSingle: 'bestand', filePlural: 'bestanden', browseLabel: 'Zoek &hellip;', removeLabel: 'Verwijder', removeTitle: 'Verwijder geselecteerde bestanden', cancelLabel: 'Annuleren', cancelTitle: ...
PypiClean
/NlpToolkit-Classification-1.0.16.tar.gz/NlpToolkit-Classification-1.0.16/Classification/Model/KnnModel.py
from functools import cmp_to_key from io import TextIOWrapper from Classification.DistanceMetric.DistanceMetric import DistanceMetric from Classification.DistanceMetric.EuclidianDistance import EuclidianDistance from Classification.Instance.CompositeInstance import CompositeInstance from Classification.Instance.Instan...
PypiClean
/ARGs_OAP-2.3.2.tar.gz/ARGs_OAP-2.3.2/ARGs_OAP/bin/bbmap/repair.sh
usage(){ echo " Written by Brian Bushnell Last modified November 9, 2016 Description: Re-pairs reads that became disordered or had some mates eliminated. Please read bbmap/docs/guides/RepairGuide.txt for more information. Usage: repair.sh in=<input file> out=<pair output> outs=<singleton output> Input may be fast...
PypiClean
/ElectronCounting-1.0.0.tar.gz/ElectronCounting-1.0.0/CountingNN/archive/transform.py
import math from typing import List, Tuple, Dict, Optional import torch import torch.nn.functional as F import torchvision from torch import Tensor class ImageList: """ Structure that holds a list of images (of possibly varying sizes) as a single tensor. This works by padding the images to the same s...
PypiClean
/Nasdaq%20Data%20Link-1.0.4.tar.gz/Nasdaq Data Link-1.0.4/nasdaqdatalink/connection.py
import re import requests import urllib from urllib3.util.retry import Retry from requests.adapters import HTTPAdapter from .util import Util from .version import VERSION from .api_config import ApiConfig from nasdaqdatalink.errors.data_link_error import ( DataLinkError, LimitExceededError, InternalServerError, ...
PypiClean
/Hector_Observations_Pipeline-1.4-py3-none-any.whl/hop/hexabundle_allocation/hector/magnets/rectangular.py
from ...general_operations.geometry_shapes.rectangle import rectangle from ...hector.constants import rectangle_magnet_length,rectangle_magnet_width,robot_arm_width from math import sin, cos, pi from ...hector.magnets.pickup_areas import inward, outward # from ### SHOULD ALSO INHERIT FROM PROBE CLASS HERE! class rec...
PypiClean
/Flask-Statics-Helper-1.0.0.tar.gz/Flask-Statics-Helper-1.0.0/flask_statics/static/angular/i18n/angular-locale_tzm-latn.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
/Hikka_Pyro_New-2.0.103-py3-none-any.whl/hikkapyro/methods/messages/send_poll.py
from datetime import datetime from typing import Union, List import hikkapyro from hikkapyro import raw, utils from hikkapyro import types, enums class SendPoll: async def send_poll( self: "hikkapyro.Client", chat_id: Union[int, str], question: str, options: List[str], is...
PypiClean
/Bedframe-0.13.5.tar.gz/Bedframe-0.13.5/README.rst
######## Bedframe ######## Bedframe is a resource-oriented web services framework. ************ Installation ************ A Bedframe service runs on an underlying web server. Support for each particular web server is provided via a corresponding plugin. Bedframe releases include some web server plugins, which are...
PypiClean
/Box2D-2.3.2.tar.gz/Box2D-2.3.2/examples/settings.py
class fwSettings(object): # The default backend to use in (can be: pyglet, pygame, etc.) backend = 'pygame' # Physics options hz = 60.0 velocityIterations = 8 positionIterations = 3 # Makes physics results more accurate (see Box2D wiki) enableWarmStarting = True enableContinuous =...
PypiClean
/CynSMS_Python_Package-1.0-py3-none-any.whl/cyn_sms_python_package/http/http_request.py
from cyn_sms_python_package.api_helper import APIHelper class HttpRequest(object): """Information about an HTTP Request including its method, headers, parameters, URL, and Basic Auth details Attributes: http_method (HttpMethodEnum): The HTTP Method that this request should perfor...
PypiClean
/ORR_Optimization-0.2-py3-none-any.whl/orr_optimizer/graph_theory.py
class Graph(object): def __init__(self, graph_dict=None): """ initializes a graph object If no dictionary or None is given, an empty dictionary will be used """ if graph_dict == None: graph_dict = {} self.__graph_dict = graph_dict def copy_...
PypiClean
/DjangoDjangoAppCenter-0.0.11-py3-none-any.whl/DjangoAppCenter/simpleui/static/admin/simpleui-x/elementui/umd/locale/nb-NO.js
(function (global, factory) { if (typeof define === "function" && define.amd) { define('element/locale/nb-NO', ['module', 'exports'], factory); } else if (typeof exports !== "undefined") { factory(module, exports); } else { var mod = { exports: {} }; facto...
PypiClean
/LinOTP-2.11.1.tar.gz/LinOTP-2.11.1/tools/README-migrate.txt
# # LinOTP - the open source solution for two factor authentication # Copyright (C) 2010 - 2019 KeyIdentity GmbH # # This file is part of LinOTP server. # # This program is free software: you can redistribute it and/or # modify it under the terms of the GNU Affero General Public # License, version 3,...
PypiClean
/ClueDojo-1.4.3-1.tar.gz/ClueDojo-1.4.3-1/src/cluedojo/static/dojo/_base/lang.js
if(!dojo._hasResource["dojo._base.lang"]){ dojo._hasResource["dojo._base.lang"]=true; dojo.provide("dojo._base.lang"); (function(){ var d=dojo,_1=Object.prototype.toString; dojo.isString=function(it){ return (typeof it=="string"||it instanceof String); }; dojo.isArray=function(it){ return it&&(it instanceof Array||type...
PypiClean
/NVDA-addonTemplate-0.5.2.zip/NVDA-addonTemplate-0.5.2/NVDAAddonTemplate/data/{{cookiecutter.project_slug}}/scons-local-2.5.0/SCons/SConf.py
__revision__ = "src/engine/SCons/SConf.py rel_2.5.0:3543:937e55cd78f7 2016/04/09 11:29:54 bdbaddog" import SCons.compat import io import os import re import sys import traceback import SCons.Action import SCons.Builder import SCons.Errors import SCons.Job import SCons.Node.FS import SCons.Taskmaster import SCons.Ut...
PypiClean
/Montreal-Forced-Aligner-3.0.0a3.tar.gz/Montreal-Forced-Aligner-3.0.0a3/docs/source/user_guide/workflows/alignment.rst
.. _pretrained_alignment: Align with an acoustic model ``(mfa align)`` ============================================ This is the primary workflow of MFA, where you can use pretrained :term:`acoustic models` to align your dataset. There are a number of :xref:`pretrained_acoustic_models` to use, but you can also adapt...
PypiClean
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dijit/a11y.js.uncompressed.js
define("dijit/a11y", [ "dojo/_base/array", // array.forEach array.map "dojo/_base/config", // defaultDuration "dojo/_base/declare", // declare "dojo/dom", // dom.byId "dojo/dom-attr", // domAttr.attr domAttr.has "dojo/dom-style", // style.style "dojo/_base/sniff", // has("ie") "./_base/manager", // manager._i...
PypiClean
/Nuitka-1.8.tar.gz/Nuitka-1.8/nuitka/code_generation/LocalsDictCodes.py
from .CodeHelpers import ( generateExpressionCode, withObjectCodeTemporaryAssignment, ) from .Emission import SourceCodeCollector from .ErrorCodes import ( getErrorExitBoolCode, getErrorExitCode, getNameReferenceErrorCode, ) from .Indentation import indented from .PythonAPICodes import getReferenceE...
PypiClean
/Nodes-1.2.tar.gz/Nodes-1.2/rfNEAT/population.py
# This file is part of Nodes. # # Nodes 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. # # Nodes is distributed in the hope that it ...
PypiClean
/FAT-Forensics-0.1.2.tar.gz/FAT-Forensics-0.1.2/fatf/utils/metrics/subgroup_metrics.py
import inspect from numbers import Number from typing import Callable, List, Optional, Tuple, Union from typing import Dict # pylint: disable=unused-import import numpy as np import fatf.utils.metrics.metrics as fumm import fatf.utils.metrics.tools as fumt __all__ = ['apply_metric_function', 'apply_met...
PypiClean