id
stringlengths
1
265
text
stringlengths
6
5.19M
dataset_id
stringclasses
7 values
/MaterialDjango-0.2.5.tar.gz/MaterialDjango-0.2.5/bower_components/prism/plugins/command-line/prism-command-line.js
(function() { if (typeof self === 'undefined' || !self.Prism || !self.document) { return; } Prism.hooks.add('complete', function (env) { if (!env.code) { return; } // Works only for <code> wrapped inside <pre> (not inline). var pre = env.element.parentNode; var clsReg = /\s*\bcommand-line\b\s*/; if ( !pre...
PypiClean
/COMPAS-1.17.5.tar.gz/COMPAS-1.17.5/src/compas/numerical/descent/descent_numpy.py
from __future__ import absolute_import from __future__ import division from __future__ import print_function from numpy import array from numpy import eye from numpy import finfo from numpy import float64 from numpy import maximum from numpy import mean from numpy import newaxis from numpy import ones from numpy impor...
PypiClean
/LabJackPython-9-20-2010.tar.gz/LabJackPython-9-20-2010/src/u6.py
from LabJackPython import * import struct, ConfigParser def openAllU6(): """ A helpful function which will open all the connected U6s. Returns a dictionary where the keys are the serialNumber, and the value is the device object. """ returnDict = dict() for i in range(deviceCount(6))...
PypiClean
/Docassemble-Pattern-3.6.7.tar.gz/Docassemble-Pattern-3.6.7/docassemble_pattern/vector/stemmer.py
#################################################################################################### # The Porter2 stemming algorithm (or "Porter stemmer") is a process for removing the commoner # morphological and inflexional endings from words in English. # Its main use is as part of a term normalisation process tha...
PypiClean
/IsPycharmRun-1.0.tar.gz/IsPycharmRun-1.0/airtest/core/android/ime.py
import re from airtest.core.android.yosemite import Yosemite from airtest.core.error import AdbError from .constant import YOSEMITE_IME_SERVICE from six import text_type def ensure_unicode(value): """ Decode UTF-8 values Args: value: value to be decoded Returns: decoded valued "...
PypiClean
/NIRCAM_Gsim-1.60.tar.gz/NIRCAM_Gsim-1.60/NIRCAM_Gsim/polyclip/polyclip.py
import os import sys from glob import glob import numpy.ctypeslib as npct import numpy as np import ctypes from ctypes import c_int #print __file__ this_path = os.path.split(__file__)[0] #print(this_path) so_file = glob(os.path.join(this_path,'polyclip_c*.so')) #print(so_file) if len(so_file) >= 1: so_file = so_f...
PypiClean
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/geo/charting/widget/Legend.js.uncompressed.js
define("dojox/geo/charting/widget/Legend", ["dojo/_base/kernel", "dojo/_base/lang","dojo/_base/array", "dojo/_base/declare","dojo/_base/html","dojo/dom", "dojo/dom-construct","dojo/dom-class", "dojo/_base/window", "dijit/_Widget"], function(dojo, lang, arr, declare, html,dom,domConstruct,domClass, win, Widge...
PypiClean
/MaterialDjango-0.2.5.tar.gz/MaterialDjango-0.2.5/materialdjango/static/materialdjango/components/bower_components/prism/components/prism-perl.min.js
Prism.languages.perl={comment:[{pattern:/(^\s*)=\w+[\s\S]*?=cut.*/m,lookbehind:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0}],string:[{pattern:/\b(?:q|qq|qx|qw)\s*([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/,greedy:!0},{pattern:/\b(?:q|qq|qx|qw)\s+([a-zA-Z0-9])(?:(?!\1)[^\\]|\\[\s\S])*\1/,greedy:!0},{pattern:/\b(?:q...
PypiClean
/Django-Pizza-16.10.1.tar.gz/Django-Pizza-16.10.1/pizza/kitchen_sink/static/ks/ckeditor/lang/bg.js
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.lang['bg']={"editor":"Текстов редактор за форматиран текст","editorPanel":"Rich Text Editor panel","common":{"editorHelp":"натиснете ALT 0 за помощ","browseServer":"...
PypiClean
/FlaskCms-0.0.4.tar.gz/FlaskCms-0.0.4/flask_cms/static/js/ace/theme-textmate.js
ace.define("ace/theme/textmate",["require","exports","module","ace/lib/dom"], function(require, exports, module) { "use strict"; exports.isDark = false; exports.cssClass = "ace-tm"; exports.cssText = ".ace-tm .ace_gutter {\ background: #f0f0f0;\ color: #333;\ }\ .ace-tm .ace_print-margin {\ width: 1px;\ background: #e...
PypiClean
/LZBEAT-0.13.1.tar.gz/LZBEAT-0.13.1/econml/_ortho_learner.py
import copy from collections import namedtuple from warnings import warn from abc import abstractmethod import inspect from collections import defaultdict import re import numpy as np from sklearn.base import clone from sklearn.model_selection import KFold, StratifiedKFold, check_cv from sklearn.preprocessing import (...
PypiClean
/OASYS1-ShadowOui-1.5.210.tar.gz/OASYS1-ShadowOui-1.5.210/orangecontrib/shadow/util/shadow_util.py
__author__ = 'labx' import os import random import sys import copy import numpy import xraylib import h5py try: from PyQt5.QtCore import QSettings from PyQt5.QtWidgets import QWidget, QGridLayout, QLabel from PyQt5.QtGui import QFont, QPalette, QColor except: pass from matplotlib.patches import Fanc...
PypiClean
/Flask-CKEditor-0.4.6.tar.gz/Flask-CKEditor-0.4.6/flask_ckeditor/static/full/lang/da.js
/* Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or https://ckeditor.com/license */ CKEDITOR.lang['da']={"editor":"Rich Text Editor","editorPanel":"Rich Text Editor panel","common":{"editorHelp":"Tryk ALT 0 for hjælp","browseServer":"Gennemse...","url":"URL",...
PypiClean
/Multiple%20smi-2.0.3.tar.gz/Multiple smi-2.0.3/multiple_smi/client/menu_frontend/argos.py
from .default_frontend import BaseFrontend from .icon_utils import draw_icon import os import stat import json import sys argos_template = '''#!{python} import re import time import base64 import json import sys with open("{icon_path}", 'rb') as bytes: img_str = base64.b64encode(bytes.read()) print("{name} | ima...
PypiClean
/FHIRkit-0.1.2.tar.gz/FHIRkit-0.1.2/fhirkit/ValueSet.py
from datetime import date, datetime try: from typing import Literal except ImportError: from typing_extensions import Literal # type: ignore from typing import Iterable, List, Optional, Sequence, Union from pydantic import Field, validator from fhirkit.BaseModel import BaseModel from fhirkit.primitive_datatype...
PypiClean
/DI_engine-0.4.9-py3-none-any.whl/dizoo/classic_control/cartpole/entry/cartpole_ppo_offpolicy_main.py
import os import gym from tensorboardX import SummaryWriter from easydict import EasyDict from ding.config import compile_config from ding.worker import BaseLearner, SampleSerialCollector, InteractionSerialEvaluator, NaiveReplayBuffer from ding.envs import BaseEnvManager, DingEnvWrapper from ding.policy import PPOOffP...
PypiClean
/FunID-0.3.16.2.tar.gz/FunID-0.3.16.2/funid/external/mmseqs_Windows/README.md
# MMseqs2: ultra fast and sensitive sequence search and clustering suite MMseqs2 (Many-against-Many sequence searching) is a software suite to search and cluster huge protein and nucleotide sequence sets. MMseqs2 is open source GPL-licensed software implemented in C++ for Linux, MacOS, and (as beta version, via cygwin)...
PypiClean
/NREL_reV-0.8.1-py3-none-any.whl/reV/bespoke/plotting_functions.py
import numpy as np import matplotlib.pyplot as plt def get_xy(A): """separate polygon exterior coordinates to x and y Parameters ---------- A : Polygon.exteroir.coords Exterior coordinates from a shapely Polygon Outputs ---------- x, y : array Boundary polygon x and y coo...
PypiClean
/CleanAdminDjango-1.5.3.1.tar.gz/CleanAdminDjango-1.5.3.1/django/contrib/flatpages/views.py
from django.conf import settings from django.contrib.flatpages.models import FlatPage from django.contrib.sites.models import get_current_site from django.core.xheaders import populate_xheaders from django.http import Http404, HttpResponse, HttpResponsePermanentRedirect from django.shortcuts import get_object_or_404 fr...
PypiClean
/ExpertOp4Grid-0.1.5.post2.tar.gz/ExpertOp4Grid-0.1.5.post2/docs/README.rst
Mentions ======= Quick Overview -------- This is an Expert System which tries to solve a security issue on a power grid, that is on overload over a power line, when it happens. It uses cheap but non-linear topological actions to do so, and does not require any training. For any new overloaded situations, it computes ...
PypiClean
/Ageas-0.0.1a6.tar.gz/Ageas-0.0.1a6/ageas/_main.py
import re import os import sys import copy import time import threading import warnings from pkg_resources import resource_filename import ageas import ageas.tool.json as json import ageas.lib.psgrn_caster as psgrn import ageas.lib.meta_grn_caster as meta_grn import ageas.lib.config_maker as config_maker import ageas.l...
PypiClean
/EnergyCapSdk-8.2304.4743.tar.gz/EnergyCapSdk-8.2304.4743/energycap/sdk/models/savings_meter_bill_daily_response_py3.py
from msrest.serialization import Model class SavingsMeterBillDailyResponse(Model): """SavingsMeterBillDailyResponseDTO - This class is the DTO for a meter's bill's Cost Avoidance savings in daily format It provides the meter, bill, use unit, and then an array of daily savings values Each daily va...
PypiClean
/CodeIntel-2.0.0b19-cp34-cp34m-macosx_10_12_x86_64.whl/codeintel/codeintel2/lib_srcs/node.js/0.12/util.js
var util = {}; /** * Deprecated predecessor of console.error. * @param string */ util.debug = function(string) {} /** * Inherit the prototype methods from one constructor into another. The * prototype of constructor will be set to a new object created from * superConstructor. * @param constructor * @param sup...
PypiClean
/Adafruit_Blinka-8.20.1-py3-none-any.whl/adafruit_blinka/microcontroller/mcp2221/mcp2221.py
"""Chip Definition for MCP2221""" import os import time import atexit import hid # Here if you need it MCP2221_HID_DELAY = float(os.environ.get("BLINKA_MCP2221_HID_DELAY", 0)) # Use to set delay between reset and device reopen. if negative, don't reset at all MCP2221_RESET_DELAY = float(os.environ.get("BLINKA_MCP222...
PypiClean
/ObjectListView2-1.0.0.tar.gz/ObjectListView2-1.0.0/Examples/BatchedUpdateExample.py
import datetime import os import os.path import threading import time import wx # Where can we find the ObjectListView module? import sys sys.path.append("..") from ObjectListView import FastObjectListView, ObjectListView, ColumnDefn, BatchedUpdate # We store our images as python code import ExampleImages class MyF...
PypiClean
/Axelrod-4.13.0.tar.gz/Axelrod-4.13.0/docs/how-to/contributing/strategy/instructions.rst
Instructions ============ Here is the file structure for the Axelrod repository:: . ├── axelrod │ └── __init__.py │ └── ecosystem.py │ └── game.py │ └── player.py │ └── plot.py │ └── result_set.py │ └── round_robin.py │ └── tournament.py │ └── /strategies/...
PypiClean
/Django_patch-2.2.19-py3-none-any.whl/django/db/models/functions/text.py
from django.db.models.expressions import Func, Value from django.db.models.fields import IntegerField from django.db.models.functions import Coalesce from django.db.models.lookups import Transform class BytesToCharFieldConversionMixin: """ Convert CharField results from bytes to str. MySQL returns long d...
PypiClean
/NeodroidVision-0.3.0-py36-none-any.whl/neodroidvision/utilities/skimage_utilities/line_peaks.py
__author__ = "heider" __doc__ = r""" Created on 5/5/22 """ from pathlib import Path import numpy from matplotlib import cm, pyplot from skimage import color, io from skimage.draw import line from skimage.transform import hough_line, hough_line_peaks if __name__ == "__main__": def aushd()...
PypiClean
/DjangoDav-0.0.1b16.tar.gz/DjangoDav-0.0.1b16/djangodav/utils.py
import datetime, time, calendar from wsgiref.handlers import format_date_time from django.utils.feedgenerator import rfc2822_date try: from email.utils import parsedate_tz except ImportError: from email.Utils import parsedate_tz import lxml.builder as lb # Sun, 06 Nov 1994 08:49:37 GMT ; RFC 822, updated b...
PypiClean
/GNN4LP-0.1.0-py3-none-any.whl/src/graph_att_gan/train.py
import scipy.sparse as sp import numpy as np import torch import time import os from configparser import ConfigParser import sys sys.path.append('/home/shiyan/project/gnn4lp/') from src.util.load_data import load_data_with_features, load_data_without_features, sparse_to_tuple, mask_test_edges, preprocess_graph from s...
PypiClean
/AADeepLearning-1.0.8.tar.gz/AAdeepLearning-1.0.8/develop/aa_rnn_mnist.py
from __future__ import print_function import numpy as np np.random.seed(1337) # 生产环境 # from aa_deep_learning.aadeeplearning.aadeeplearning_old import AADeepLearning from aa_deep_learning.AADeepLearning import AADeepLearning from aa_deep_learning.AADeepLearning.datasets import mnist from aa_deep_learning.AADeepLearning...
PypiClean
/Bottlechest-0.7.1-cp34-cp34m-macosx_10_9_x86_64.whl/bottlechest/src/template/func/nanequal.w3d.py
"nanequal template" from copy import deepcopy import bottlechest as bn __all__ = ["nanequal"] FLOAT_DTYPES = [x for x in bn.dtypes if 'float' in x] INT_DTYPES = [x for x in bn.dtypes if 'int' in x] # Float dtypes (not axis=None) ---------------------------------------------- floats = {} floats['dtypes'] = FLOAT_DT...
PypiClean
/DendroPy-4.6.1.tar.gz/DendroPy-4.6.1/src/dendropy/legacy/seqsim.py
############################################################################## ## DendroPy Phylogenetic Computing Library. ## ## Copyright 2010-2015 Jeet Sukumaran and Mark T. Holder. ## All rights reserved. ## ## See "LICENSE.rst" for terms and conditions of usage. ## ## If you use this work or any portion there...
PypiClean
/GaitAnalysisToolKit-0.2.0.tar.gz/GaitAnalysisToolKit-0.2.0/gaitanalysis/markers.py
# builtin from distutils.version import LooseVersion # external import numpy as np from numpy.core.umath_tests import matrix_multiply def det3(ar): """Returns the determinants of an array of 3 x 3 matrices. Parameters ---------- ar : array_like, shape(n, 3, 3) A array of 3 x 3 arrays. ...
PypiClean
/Netfoll_TL-2.0.1-py3-none-any.whl/netfoll_tl/tl/types/storage.py
from ...tl.tlobject import TLObject from typing import Optional, List, Union, TYPE_CHECKING import os import struct from datetime import datetime class FileGif(TLObject): CONSTRUCTOR_ID = 0xcae1aadf SUBCLASS_OF_ID = 0xf3a1e6f3 def to_dict(self): return { '_': 'FileGif' } ...
PypiClean
/DynamicistToolKit-0.5.3.tar.gz/DynamicistToolKit-0.5.3/dtk/process.py
# standard library from distutils.version import LooseVersion # external dependencies import numpy as np from numpy.fft import fft, fftfreq from scipy import __version__ as scipy_version from scipy.integrate import trapz, cumtrapz from scipy.interpolate import UnivariateSpline from scipy.optimize import fmin from sci...
PypiClean
/Nano-CAT-0.7.2.tar.gz/Nano-CAT-0.7.2/nanoCAT/recipes/mol_filter.py
from typing import Union, Iterable, Dict, TypeVar, Callable import numpy as np from scipy.spatial.distance import cdist from scm.plams import Molecule, Atom __all__ = ['get_mol_length', 'filter_mol', 'filter_data'] T = TypeVar('T') def get_mol_length(mol: Union[np.ndarray, Molecule], atom: Union...
PypiClean
/LGNpy-1.0.0-py3-none-any.whl/lgnpy/LinearGaussian.py
import pandas as pd import numpy as np import networkx as nx import copy from .Graph import Graph from .logging_config import Logger class LinearGaussian(Graph): """ Implemented Linear Gaussian Algorithm """ def __init__(self): """ Inherits base graph methods from Graph """ ...
PypiClean
/MarkDo-0.3.0.tar.gz/MarkDo-0.3.0/markdo/static/foundation/js/foundation/foundation.magellan.js
;(function ($, window, document, undefined) { 'use strict'; Foundation.libs.magellan = { name : 'magellan', version : '5.0.3', settings : { active_class: 'active', threshold: 0 }, init : function (scope, method, options) { this.fixed_magellan = $("[data-magellan-expedition]...
PypiClean
/Flask-Actions-0.6.6.tar.gz/Flask-Actions-0.6.6/flaskext/actions/server_actions.py
import sys,os from werkzeug import script def runfcgi(application, before_daemon=None): def action( protocol = 'fcgi', hostname = ('h', ''), port = ('p', 3001), socket = '', method = ...
PypiClean
/Congo-0.0.1.tar.gz/Congo-0.0.1/portfolio/component/static/portfolio/js/portfolio.js
var Portfolio = { /** Google Analytics tracking **/ trackEvent: function(category, action, label, value) { if (typeof ga !== 'undefined') { ga("send", "event", category, action, label, value) } }, //------ /** BASIC Login **/ basic_login: function()...
PypiClean
/Leytonium-10.tar.gz/Leytonium-10/diffuse/viewer/undo.py
# This file is part of Leytonium. # # Leytonium 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. # # Leytonium is distributed in the ho...
PypiClean
/CGF-0.0.7-py3-none-any.whl/CGFCore/opengameframework/deterministic.py
import time import matplotlib.pyplot as plt import numpy as np class OpenGame: def __init__(self, players): self.players = players self.strategies = {player: None for player in players} self.history = [] self.future = [] def set_strategy(self, player, strategy): self.st...
PypiClean
/Flask-Statics-Helper-1.0.0.tar.gz/Flask-Statics-Helper-1.0.0/flask_statics/static/angular/i18n/angular-locale_dyo.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
/FFTA-0.3.5.1-py3-none-any.whl/ffta/gkpfm/transfer_func.py
import time from math import pi import numpy as np import pandas as pd import pyUSID as usid from igor2 import binarywave as bw from matplotlib import pyplot as plt from pyUSID import Dimension from scipy import signal as sg import ffta from ..analysis.fft import get_noise_floor def transfer_function(h5_file, tf_fi...
PypiClean
/utils/huetoolkit.py
import os import numpy as np import pandas as pd def check_reserved_field_name(cols): cols = set(cols) res = {'file_name', 'load_dt'} ident = res.intersection(cols) if len(ident) > 0: print('Reserved Column Name Exists', ident) else: print('No Issue') def check_dup_columns(cols):...
PypiClean
/DOCBRPY-0.1.3.tar.gz/DOCBRPY-0.1.3/src/PYBRDOC/cnpj.py
import re import requests import json from itertools import chain from random import randint from .documentoidentificacao import DocumentoIdentificacao class Cnpj(DocumentoIdentificacao): """docstring for Cnpj""" def __init__(self, arg): super().__init__(arg) def __str__(self): """ Formatará uma string CN...
PypiClean
/0x-sra-client-4.0.0.tar.gz/0x-sra-client-4.0.0/src/zero_ex/sra_client/api_client.py
from __future__ import absolute_import import datetime import json import mimetypes from multiprocessing.pool import ThreadPool import os import re import tempfile # python 2 and python 3 compatibility library import six from six.moves.urllib.parse import quote from zero_ex.sra_client.configuration import Configura...
PypiClean
/Office365-REST-Python-Client-2.4.3.tar.gz/Office365-REST-Python-Client-2.4.3/office365/sharepoint/ui/applicationpages/peoplepicker/query_parameters.py
from office365.runtime.client_value import ClientValue from office365.sharepoint.principal.source import PrincipalSource from office365.sharepoint.principal.type import PrincipalType class ClientPeoplePickerQueryParameters(ClientValue): def __init__(self, query_string, allow_emai_addresses=True, allow_multiple_e...
PypiClean
/BitEx-2.0.0b3.zip/BitEx-2.0.0b3/bitex/pairs.py
import logging # Import Third-Party # Import Homebrew # Init Logging Facilities log = logging.getLogger(__name__) class PairFormatter: """Container Class which features formatting function for all supported exchanges. These Formatter functions apply any changes to make a given pair, pased as quote and ...
PypiClean
/Django_patch-2.2.19-py3-none-any.whl/django/contrib/auth/management/__init__.py
import getpass import unicodedata from django.apps import apps as global_apps from django.contrib.auth import get_permission_codename from django.contrib.contenttypes.management import create_contenttypes from django.core import exceptions from django.db import DEFAULT_DB_ALIAS, router def _get_all_permissions(opts)...
PypiClean
/Mathics-1.0.tar.gz/Mathics-1.0/mathics/builtin/system.py
from __future__ import unicode_literals from __future__ import absolute_import import sys from mathics.core.expression import Expression, String, strip_context from mathics.builtin.base import Builtin, Predefined from mathics import version_string class Version(Predefined): """ <dl> <dt>'$Version' ...
PypiClean
/ConnectorDB-0.3.5.tar.gz/ConnectorDB-0.3.5/connectordb/_stream.py
from __future__ import absolute_import import json import os from ._connectorobject import ConnectorObject from ._datapointarray import DatapointArray from jsonschema import Draft4Validator import json import time # https://github.com/oxplot/fysom/issues/1 try: unicode = unicode except NameError: basestring ...
PypiClean
/Flask-Flacro-0.0.8.tar.gz/Flask-Flacro-0.0.8/flask_flacro/flacro.py
import re from flask import current_app, Blueprint, _app_ctx_stack from werkzeug import LocalProxy, MultiDict, CombinedMultiDict from .compat import with_metaclass from collections import defaultdict import weakref _flacro_jinja = LocalProxy(lambda: current_app.jinja_env) _glo = LocalProxy(lambda: current_app.jinja_...
PypiClean
/Flask-SQLAlchemy-Meiqia-2016.8.1.zip/Flask-SQLAlchemy-Meiqia-2016.8.1/docs/index.rst
:orphan: Flask-SQLAlchemy ================ .. module:: flask_sqlalchemy Flask-SQLAlchemy is an extension for `Flask`_ that adds support for `SQLAlchemy`_ to your application. It requires SQLAlchemy 0.8 or higher. It aims to simplify using SQLAlchemy with Flask by providing useful defaults and extra helpers that ma...
PypiClean
/MASSA_Algorithm-0.9.1-py3-none-any.whl/MASSA_Algorithm/MASSA.py
from MASSA_Algorithm import MASSAlogos from MASSA_Algorithm import MASSAargs from MASSA_Algorithm import MASSAod from MASSA_Algorithm import MASSAopen_files from MASSA_Algorithm import MASSAextraction from MASSA_Algorithm import MASSAdescriptors from MASSA_Algorithm import MASSApreparation from MASSA_Algorithm import M...
PypiClean
/Draugr-1.0.9.tar.gz/Draugr-1.0.9/draugr/opencv_utilities/namespaces/flags.py
__author__ = "heider" __doc__ = r""" Created on 01/02/2022 """ __all__ = [ "ThresholdTypeFlag", "WindowPropertyFlag", "DrawMatchesFlagEnum", "MouseEventFlag", "TermCriteriaFlag", ] from enum import Flag import cv2 class TermCriteriaFlag(Flag): """ """ count = ( ...
PypiClean
/EOxServer-1.2.12-py3-none-any.whl/eoxserver/services/mapserver/wms/feature_info_renderer.py
from eoxserver.core import implements from eoxserver.core.config import get_eoxserver_config from eoxserver.core.decoders import xml from eoxserver.contrib import mapserver as ms from eoxserver.resources.coverages import models from eoxserver.services.ows.common.config import CapabilitiesConfigReader from eoxserver.s...
PypiClean
/GaitAnalysisToolKit-0.2.0.tar.gz/GaitAnalysisToolKit-0.2.0/README.rst
Introduction ============ This is a collection of tools that are helpful for gait analysis. Some are specific to the needs of the Human Motion and Control Lab at Cleveland State University but other portions may have potential for general use. It is relatively modular so you can use what you want. It is primarily stru...
PypiClean
/EARL-pytorch-0.5.1.tar.gz/EARL-pytorch-0.5.1/earl_pytorch/dataset/create_dataset_v3.py
import json import os import subprocess import sys import ballchasing as bc import numpy as np import pandas as pd from earl_pytorch import EARL command = r'carball.exe -i "{}" -o "{}" parquet' ENV = os.environ.copy() ENV["NO_COLOR"] = "1" class CarballAnalysis: METADATA_FNAME = "metadata.json" ANALYZER_F...
PypiClean
/matchengine-V2-2.0.1.tar.gz/matchengine-V2-2.0.1/matchengine/internals/typing/matchengine_types.py
from __future__ import annotations import copy import datetime from itertools import chain from typing import ( NewType, Tuple, Union, List, Dict, Any, Set ) from bson import ObjectId from networkx import DiGraph from matchengine.internals.utilities.object_comparison import nested_object_...
PypiClean
/Flask-RESTbolt-0.1.0.tar.gz/Flask-RESTbolt-0.1.0/docs/installation.rst
.. _installation: Installation ============ .. currentmodule:: flask_restful Install Flask-RESTful with ``pip`` :: pip install flask-restful The development version can be downloaded from `its page at GitHub <https://github.com/flask-restful/flask-restful>`_. :: git clone https://github.com/flask-restful...
PypiClean
/MaterialDjango-0.2.5.tar.gz/MaterialDjango-0.2.5/bower_components/iron-iconset/.github/ISSUE_TEMPLATE.md
<!-- Instructions: https://github.com/PolymerElements/iron-iconset/CONTRIBUTING.md#filing-issues --> ### Description <!-- Example: The `paper-foo` element causes the page to turn pink when clicked. --> ### Expected outcome <!-- Example: The page stays the same color. --> ### Actual outcome <!-- Example: The page tu...
PypiClean
/DMS_APP-0.2.1-py3-none-any.whl/dms_app/resources/login_register/super_login.py
import logging from flask import request, Flask from ...db.db_connection import database_access from flask_restx import Resource, fields from ...namespace import api from ...response_helper import get_response import hashlib import jwt from datetime import datetime, timedelta from ...config import Config sec_key = Con...
PypiClean
/Mathics_Django-6.0.0-py3-none-any.whl/mathics_django/web/media/js/mathjax/jax/output/SVG/fonts/Neo-Euler/Size2/Regular/Main.js
MathJax.OutputJax.SVG.FONTDATA.FONTS.NeoEulerMathJax_Size2={directory:"Size2/Regular",family:"NeoEulerMathJax_Size2",id:"NEOEULERSIZE2",32:[0,0,333,0,0,""],40:[1599,199,596,180,574,"180 700c0 336 89 675 346 899h48l-17 -17c-230 -225 -301 -556 -301 -882s71 -657 301 -882l17 -17h-48c-257 224 -346 563 -346 899"],41:[1599,19...
PypiClean
/Keras28Models-0.1.0.tar.gz/Keras28Models-0.1.0/README.md
# Keras28 Models This is a Python package for easy build deep learning applications by using transfer learning pre trainined 28 models in easy few line code. to avoid wasting time scripting in your deep learning .You can read about keras models in complex code scriptining [keras document for Models API](https://kera...
PypiClean
/Flask-State-test-1.0.2b1.tar.gz/Flask-State-test-1.0.2b1/README.md
![](https://github.com/yoobool/flask-state/blob/master/src/flask_state/static/flask_state.png) [![](https://img.shields.io/badge/Contributions-Welcome-0059b3)](https://github.com/yoobool/flask-state/tree/master/.github/ISSUE_TEMPLATE) [![](https://img.shields.io/badge/Chat-Gitter-ff69b4.svg?label=Chat&logo=gitter)](h...
PypiClean
/LIBTwinSVM-0.3.0-cp35-cp35m-manylinux1_x86_64.whl/libtsvm/estimators.py
# LIBTwinSVM: A Library for Twin Support Vector Machines # Developers: Mir, A. and Mahdi Rahbar # License: GNU General Public License v3.0 """ In this module, Standard TwinSVM and Least Squares TwinSVM estimators are defined. """ from sklearn.base import BaseEstimator from sklearn.utils.validation import check_X_y f...
PypiClean
/Eskapade-1.0.0-py3-none-any.whl/eskapade/tutorials/esk303_hgr_filler_plotter.py
from eskapade import analysis, core_ops, process_manager, resources, visualization, ConfigObject, Chain from eskapade.logger import Logger, LogLevel logger = Logger() logger.debug('Now parsing configuration file esk303_hgr_filler_plotter.py.') #########################################################################...
PypiClean
/BeanCommonUtils-1.1.7.tar.gz/BeanCommonUtils-1.1.7/common_utils/mysql_pool.py
import pymysql from DBUtils.PooledDB import PooledDB class MysqlPool(object): pool = None # 数据库连接池连接 def init_mysql_pool(self, mysql_info): if self.pool is None: self.pool = PooledDB(creator=pymysql, mincached=10, host=mysql_info['host'], user=mysql_...
PypiClean
/Notus-0.0.3-py36-none-any.whl/notus/win10/win10_toaster.py
__author__ = "Christian Heider Nielsen" __doc__ = r""" Created on 25-10-2020 """ __all__ = ["Win10Toaster"] import logging from os import path, remove from pathlib import Path from random import randint from threading import Thread from time import sleep from typing import Optional from pkg_r...
PypiClean
/CouchDB3-1.2.0-py3-none-any.whl/couchdb3/utils.py
import base64 from collections.abc import Generator import re import requests from typing import Any, Dict, Optional, Set from urllib import parse from urllib3.util import Url, parse_url from . import exceptions __all__ = [ "basic_auth", "build_query", "build_url", "user_name_to_id", "validate_a...
PypiClean
/Booktype-1.5.tar.gz/Booktype-1.5/lib/booki/site_static/xinha/modules/Dialogs/XinhaDialog.js
Xinha.Dialog=function(g,k,a,m,f){var r=this;this.id={};this.r_id={};this.editor=g;this.document=document;this.size=m;this.modal=(f&&f.modal===false)?false:true;this.closable=(f&&f.closable===false)?false:true;this.resizable=(f&&f.resizable===false)?false:true;this.layer=(f&&f.layer)?f.layer:0;this.centered=(f&&f.center...
PypiClean
/django-chuck-0.2.3.tar.gz/django-chuck/modules/django-cms/project/apps/cmsplugin_filer_image/migrations/0007_rename_caption_to_caption_text.py
import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): db.rename_column('cmsplugin_filerimage', 'caption', 'caption_text') def backwards(self, orm): db.rename_column('cmsplugin_fil...
PypiClean
/BlueWhale3_Bioinformatics-4.1.32-py3-none-any.whl/orangecontrib/bioinformatics/widgets/OWGEODatasets.py
import sys from types import SimpleNamespace from typing import Any, Optional, DefaultDict from functools import lru_cache from collections import OrderedDict, defaultdict import numpy as np import requests from AnyQt.QtGui import QFont, QColor from AnyQt.QtCore import Qt, QSize, QVariant, QModelIndex from AnyQt.QtWi...
PypiClean
/BCPy2000-1.6.tar.gz/BCPy2000-1.6/src/BCI2000Tools/NIASourceModule.py
import time import numpy import SigTools import pylibusb as usb # NB: the original pynia-0.0.2.py uses a module named usb for usb access, but usb is for python 2.6 only. import ctypes class NIA_Interface(object): """ Attaches the NIA device, and provides low level data collection and information """### de...
PypiClean
/Argonaut-0.3.4.tar.gz/Argonaut-0.3.4/argonaut/public/ckeditor/plugins/clipboard/dialogs/paste.js
/* Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.dialog.add('paste',function(a){var b=a.lang.clipboard,c=CKEDITOR.env.isCustomDomain();function d(e){var f=new CKEDITOR.dom.document(e.document),g=f.$;f.getById('cke...
PypiClean
/Biomatters-Azimuth-2-0.1.tar.gz/Biomatters-Azimuth-2-0.1/azimuth/features/microhomology.py
from math import exp from re import findall def compute_score(seq, tmpfile1="1.before removing duplication.txt", tmpfile2="2.all microhomology patterns.txt", verbose=False): length_weight=20.0 left=30 # Insert the position expected to be broken. right=len(seq)-int(left) #print 'leng...
PypiClean
/Django_patch-2.2.19-py3-none-any.whl/django/contrib/gis/admin/options.py
from django.contrib.admin import ModelAdmin from django.contrib.gis.admin.widgets import OpenLayersWidget from django.contrib.gis.db import models from django.contrib.gis.gdal import OGRGeomType from django.forms import Media spherical_mercator_srid = 3857 class GeoModelAdmin(ModelAdmin): """ The administrat...
PypiClean
/APScheduler-4.0.0a1.tar.gz/APScheduler-4.0.0a1/docs/api.rst
API reference ============= Data structures --------------- .. autoclass:: apscheduler.Task .. autoclass:: apscheduler.Schedule .. autoclass:: apscheduler.Job .. autoclass:: apscheduler.JobInfo .. autoclass:: apscheduler.JobResult .. autoclass:: apscheduler.RetrySettings Schedulers ---------- .. autoclass:: apsched...
PypiClean
/Django-Bootstrap3-Validator-0.3.3.zip/Django-Bootstrap3-Validator-0.3.3/bootstrap_validator/static/validator/js/language/pt_PT.js
(function ($) { /** * Portuguese (Portugal) language package * Translated by @rtbfreitas */ $.fn.bootstrapValidator.i18n = $.extend(true, $.fn.bootstrapValidator.i18n, { base64: { 'default': 'Por favor insira um código base 64 válido' }, between: { ...
PypiClean
/Diofant-0.14.0a2.tar.gz/Diofant-0.14.0a2/docs/modules/vector/coordsys.rst
============================= More about Coordinate Systems ============================= We will now look at how we can initialize new coordinate systems in :mod:`diofant.vector`, positioned and oriented in user-defined ways with respect to already-existing systems. Locating new systems ==================== We alre...
PypiClean
/DESPOTIC-2.1.tar.gz/DESPOTIC-2.1/despotic/chemistry/NL99_old.py
import numpy as np import string from despotic.despoticError import despoticError from shielding import fShield_CO_vDB from despotic.chemistry import abundanceDict from despotic.chemistry import chemNetwork import scipy.constants as physcons import warnings ############################################################...
PypiClean
/Automated_cartography-0.0.2-py3-none-any.whl/robot/robot.py
import time # import LSC_Client from robot import LSC_Client import threading from inspect import signature from functools import wraps def typeassert(*type_args, **type_kwargs): def decorate(func): sig = signature(func) bound_types = sig.bind_partial(*type_args, **type_kwargs).arguments ...
PypiClean
/Eskapade_Core-1.0.0-py3-none-any.whl/escore/core_ops/links/to_ds_dict.py
from escore import DataStore from escore import Link from escore import StatusCode from escore import process_manager class ToDsDict(Link): """Stores one object in the DataStore dict during run time.""" def __init__(self, **kwargs): """Link to store one external object in the DataStore dict during ru...
PypiClean
/DeckenMagicPlugin-0.2.0.tar.gz/DeckenMagicPlugin-0.2.0/deckenmagicplugin/magicplugin.py
from urllib import urlretrieve import urlparse import sqlite3 import os import conjunto formatos = ['', 'Standard', 'Block', 'Extended', 'Legacy', 'Vintage'] standard = ['', 'roe','wwk','zen','m10','arb','cfx','ala' ] extended = standard + ['9e','eve','shm', 'mt','lw','fut','pc','ts','tsts','cs','ai','ia','di','g...
PypiClean
/KalturaApiClient-19.3.0.tar.gz/KalturaApiClient-19.3.0/KalturaClient/Plugins/CuePoint.py
from __future__ import absolute_import from .Core import * from ..Base import ( getXmlNodeBool, getXmlNodeFloat, getXmlNodeInt, getXmlNodeText, KalturaClientPlugin, KalturaEnumsFactory, KalturaObjectBase, KalturaObjectFactory, KalturaParams, KalturaServiceBase, ) ########## enu...
PypiClean
/MPT5.0.1-0.1.tar.gz/MPT5.0.1-0.1/src/MPT5/Database/PostGet.py
import sqlite3 from . import wxsq as sq from . import srcsql as ss from Config.Init import * class Get: def __init__(self, DBF, Data, file): self.DBF = DBF self.Data = Data if file != '': sqlfile = DATABASE_PATH + 'sqls' + SLASH + file #sqlfile = Src_dbf + 'sqls' ...
PypiClean
/Mopidy-Muse-0.0.27.tar.gz/Mopidy-Muse-0.0.27/mopidy_muse/static/client/legacy/client.9a1e6cd3.js
import"core-js/modules/es.array.iterator.js";import"core-js/modules/es.object.to-string.js";import"core-js/modules/es.promise.js";import"core-js/modules/es.string.iterator.js";import"core-js/modules/web.dom-collections.iterator.js";import"core-js/modules/es.array.map.js";import"core-js/modules/web.url.js";import"./clie...
PypiClean
/Corrfunc-2.5.1.tar.gz/Corrfunc-2.5.1/docs/source/development/contributing.rst
.. _contributing: ========================= Contributing to Corrfunc ========================= Corrfunc is written in a very modular fashion with minimal interaction between the various calculations. The algorithm presented in Corrfunc is applicable to a broad-range of astrophysical problems, viz., any situation that ...
PypiClean
/BlackLager-1.0.14.tar.gz/BlackLager-1.0.14/blackLager/textwindow.py
from client_utils import error_handler import curses from datetime import datetime import traceback class TextWindow(object): def __init__(self, name, rows, columns, y1, x1, y2, x2, ShowBorder, BorderColor, TitleColor, stdscr): self.name = name self.rows = rows self.columns = columns ...
PypiClean
/DJModels-0.0.6-py3-none-any.whl/djmodels/contrib/gis/feeds.py
from djmodels.contrib.syndication.views import Feed as BaseFeed from djmodels.utils.feedgenerator import Atom1Feed, Rss201rev2Feed class GeoFeedMixin: """ This mixin provides the necessary routines for SyndicationFeed subclasses to produce simple GeoRSS or W3C Geo elements. """ def georss_coords(...
PypiClean
/Natume-0.1.0.tar.gz/Natume-0.1.0/natume/client.py
import urllib2 import base64 from natume.connection import HTTPConnection, HTTPSConnection, urlsplit, urljoin, urlencode from natume.util import decompress from natume.compat import SimpleCookie from json import loads class WebClient(object): DEFAULT_HEADERS = { 'User-Agent': 'Mozilla/5.0 (X11; Linux x86_...
PypiClean
/DoorPi-2.4.1.8.tar.gz/DoorPi-2.4.1.8/doorpi/status/webserver_lib/session_handler.py
import logging logger = logging.getLogger(__name__) logger.debug("%s loaded", __name__) import time # session timestamp from doorpi.action.base import SingleAction import doorpi CONF_AREA_PREFIX = 'AREA_' class SessionHandler: _Sessions = {} @property def config(self): return doorpi.DoorPi().config ...
PypiClean
/Mathics3-6.0.2.tar.gz/Mathics3-6.0.2/README.rst
Welcome to Mathics Core! ======================== |Pypi Installs| |Latest Version| |Supported Python Versions| |SlackStatus|_ |Packaging status| Mathics is a general-purpose computer algebra system (CAS). However this repository contains just the Python modules for WL Built-in functions, variables, core primitives...
PypiClean
/Babel-2.12.1.tar.gz/Babel-2.12.1/docs/support.rst
.. -*- mode: rst; encoding: utf-8 -*- ============================= Support Classes and Functions ============================= The ``babel.support`` modules contains a number of classes and functions that can help with integrating Babel, and internationalization in general, into your application or framework. The co...
PypiClean
/Bis-Miner-3.11.1.tar.gz/Bis-Miner-3.11.0/Orange/widgets/data/owpurgedomain.py
from AnyQt.QtCore import Qt from Orange.data import Table from Orange.preprocess.remove import Remove from Orange.widgets import gui, widget from Orange.widgets.settings import Setting from Orange.widgets.utils.sql import check_sql_input from Orange.widgets.widget import Input, Output class OWPurgeDomain(widget.OWWid...
PypiClean
/Infomericaclass-1.0.0.tar.gz/Infomericaclass-1.0.0/inf/examples/ethnicolr_app_contrib2000.ipynb
## Application: Illustrating the use of the package by imputing the race of the campaign contributors recorded by FEC for the years 2000 and 2010 a) what proportion of contributors were black, whites, hispanics, asian etc. b) and proportion of total donation given by blacks, hispanics, whites, and asians. ...
PypiClean
/FEADRE_AI-1.0.7.tar.gz/FEADRE_AI-1.0.7/FEADRE_AI/ai/calc/x_nms.py
import numpy as np import random import cv2 def non_max_suppress(predicts_dict, threshold): for object_name, bbox in predicts_dict.items(): # 对每一个类别分别进行NMS;一次读取一对键值(即某个类别的所有框) bbox_array = np.array(bbox, dtype=np.float) # 下面分别获取框的左上角坐标(x1,y1),右下角坐标(x2,y2)及此框的置信度;这里需要注意的是图像左上角可以看做坐标点(0,0),右下角可以看做坐...
PypiClean
/KonFoo-3.0.0-py3-none-any.whl/konfoo/__init__.py
# Categories from .categories import Category # Core classes from .core import ( is_any, is_field, is_container, is_array, is_structure, is_pointer, is_mixin, Patch, Index, Alignment, Container, Structure, Sequence, Array, Field, Stream, String, Float, Double, Decimal, Bit, Byte, Char, S...
PypiClean