id
stringlengths
1
265
text
stringlengths
6
5.19M
dataset_id
stringclasses
7 values
/easy-openshift-0.5.7.4.tar.gz/easy-openshift-0.5.7.4/easy_openshift/openshift.py
import base64 import json import requests # Disable warning messages requests.packages.urllib3.disable_warnings() class Openshift: # ============================================================================== # # Constructor # # Let...
PypiClean
/observations-0.1.4.tar.gz/observations-0.1.4/observations/r/hair_eye_color.py
from __future__ import absolute_import from __future__ import division from __future__ import print_function import csv import numpy as np import os import sys from observations.util import maybe_download_and_extract def hair_eye_color(path): """Hair and Eye Color of Statistics Students Distribution of hair an...
PypiClean
/Hikka_Pyro_New-2.0.103-py3-none-any.whl/hikkapyro/types/messages_and_media/video.py
from datetime import datetime from typing import List import hikkapyro from hikkapyro import raw, utils from hikkapyro import types from hikkapyro.file_id import FileId, FileType, FileUniqueId, FileUniqueType from ..object import Object class Video(Object): """A video file. Parameters: file_id (``s...
PypiClean
/MandalaArt-0.1.0.tar.gz/MandalaArt-0.1.0/layers/layer1.py
import turtle from math import pi, cos, tan, sin from mandala_art.designs.turtle_math import arc from mandala_art.designs.designs import * def layer11(turt, col1, col2): turt.width(1) turt.pencolor(col1) for _ in range(18): for _ in range(360): forw = pi * 90 / 360 ...
PypiClean
/OctoBot-Trading-2.4.23.tar.gz/OctoBot-Trading-2.4.23/octobot_trading/personal_data/positions/positions_manager.py
import collections import octobot_commons.logging as logging import octobot_commons.enums as commons_enums import octobot_commons.tree as commons_tree import octobot_trading.personal_data.positions.position_factory as position_factory import octobot_trading.util as util import octobot_trading.enums as enums import oc...
PypiClean
/Flask-CKEditor-0.4.6.tar.gz/Flask-CKEditor-0.4.6/flask_ckeditor/static/basic/plugins/codesnippet/lib/highlight/README.md
# Highlight.js Highlight.js highlights syntax in code examples on blogs, forums and, in fact, on any web page. It's very easy to use because it works automatically: finds blocks of code, detects a language, highlights it. Autodetection can be fine tuned when it fails by itself (see "Heuristics"). ## Basic usage Li...
PypiClean
/Flask-Config-Override-0.0.2.tar.gz/Flask-Config-Override-0.0.2/flask_config_override/proxy_config.py
from flask import g, current_app import logging logger = logging.getLogger(__name__) class NonOverridableError(Exception): """ For attempt to override an non extendable config variable. """ def __init__(self, arg): self.args = arg self.message = "Not allowed to override this config: "...
PypiClean
/NNTools-0.1.0.tar.gz/NNTools-0.1.0/nntools/dataset/abstract_image_dataset.py
import ctypes import math import multiprocessing as mp import os import cv2 import matplotlib.pyplot as plt import numpy as np import torch import logging from nntools.dataset.image_tools import resize, pad from nntools.tracker.logger import Log from nntools.utils.io import read_image, path_leaf from nntools.utils.mis...
PypiClean
/2ppy-0.4.0-py3-none-any.whl/tuprolog/solve/library/__init__.py
from functools import reduce from tuprolog import logger # noinspection PyUnresolvedReferences import jpype.imports from tuprolog.core.operators import OperatorSet, operator_set from tuprolog.theory import Theory, theory from tuprolog.solve import Signature from tuprolog.solve.primitive import Primitive from tuprolog.s...
PypiClean
/Liara-2.3.4.tar.gz/Liara-2.3.4/liara/actions.py
from .nodes import DocumentNode from .site import Site import pathlib from typing import Dict, Iterable, List from enum import Enum, auto from collections import defaultdict def _extract_links(document: DocumentNode): """Extract all links from ``<a>`` and ``<img>`` tags in a document. This assumes the docume...
PypiClean
/Deprecated-1.2.14.tar.gz/Deprecated-1.2.14/docs/source/introduction.rst
Introduction ============ What "Deprecated" Means ----------------------- .. _Deprecated Library: https://pypi.python.org/pypi/deprecated A function or class is deprecated when it is considered as it is no longer important. It is so unimportant, in fact, that you should no longer use it, since it has been superseded...
PypiClean
/Montreal-Forced-Aligner-3.0.0a3.tar.gz/Montreal-Forced-Aligner-3.0.0a3/montreal_forced_aligner/command_line/train_ivector_extractor.py
from __future__ import annotations from pathlib import Path import rich_click as click from montreal_forced_aligner import config from montreal_forced_aligner.command_line.utils import common_options from montreal_forced_aligner.ivector.trainer import TrainableIvectorExtractor __all__ = ["train_ivector_cli"] @cli...
PypiClean
/Euphorie-15.0.2.tar.gz/Euphorie-15.0.2/src/euphorie/client/resources/oira/script/chunks/96611.e54f8347916ab382e6e3.min.js
"use strict";(self.webpackChunk_patternslib_patternslib=self.webpackChunk_patternslib_patternslib||[]).push([[96611],{90735:function(n,e,t){var o=t(87537),s=t.n(o),r=t(23645),l=t.n(r)()(s());l.push([n.id,".hljs{display:block;overflow-x:auto;padding:.5em;background:#f0f0f0}.hljs,.hljs-subst{color:#444}.hljs-comment{colo...
PypiClean
/MergePythonSDK.ticketing-2.2.2-py3-none-any.whl/MergePythonSDK/hris/api/deductions_api.py
import re # noqa: F401 import sys # noqa: F401 from MergePythonSDK.shared.api_client import ApiClient, Endpoint as _Endpoint from MergePythonSDK.shared.model_utils import ( # noqa: F401 check_allowed_values, check_validations, date, datetime, file_type, none_type, validate_and_convert_ty...
PypiClean
/Blue2FactorPy-0.1.3.tar.gz/Blue2FactorPy-0.1.3/README.md
#Blue2FactorPy This python page is used for python webservers that use Blue2Factor It can be used with both Django and Flask. You may have to install some packages `python3 -m pip install jwt rsa django flask requests` ###To call in Flask: ``` from Blue2Factor import Authentication companyId = "COMPANY_ID from ht...
PypiClean
/NanoComp-1.23.1.tar.gz/NanoComp-1.23.1/README.rst
NanoComp ======== Compare multiple runs of long read sequencing data and alignments. Creates violin plots or box plots of length, quality and percent identity and creates dynamic, overlaying read length histograms and a cumulative yield plot. As of version 1.1.0 NanoComp will also create a static png image for dynami...
PypiClean
/models/Transformer/utils/data_reader.py
import os import sys import numpy as np import pandas as pd import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt from torch.utils.data import Dataset from sklearn.model_selection import train_test_split import torch TEST_SET_DIR = '/scratch/sr365/ML_MM_Benchmark/testsets' def get_data_into_loaders(d...
PypiClean
/ModelSEEDpy-freiburgermsu-0.3.1.4.tar.gz/ModelSEEDpy-freiburgermsu-0.3.1.4/modelseedpy_freiburgermsu/core/biolog.py
pm1_str = """A01 Negative Control A02 L-Arabinose cpd00224 A03 N-Acetyl-DGlucosamine cpd00122 A04 D-Saccharic Acid cpd00571 A05 Succinic Acid cpd00036 A06 D-Galactose cpd00108 A07 L-Aspartic Acid cpd00041 A08 L-Proline cpd00129 A09 D-Alanine cpd00117 A10 D-Trehalose...
PypiClean
/MetaDR-3.0.0.tar.gz/MetaDR-3.0.0/README.rst
MetaDR is a pipeline that can integrate various information to predict human diseases. MetaDR consists of a predictor and an interpreter. The predictor can embed the taxonomic relationship into microbial features and ensembles the prediction results from multiple perspectives. The interpreter can extract and elucidate...
PypiClean
/MPT5.0.1.2-0.1.2.tar.gz/MPT5.0.1.2-0.1.2/src/MPT5/Database/dbinterface.py
def ForSqlitDb(database): ''' :param database: :return: Connection ''' import sqlite3 mydb = sqlite3.connect(database) mydb.row_factory = sqlite3.Row return mydb def ForMySqldb(database,user,pswrd,host="localhost"): ''' :param database: :param user: :param pswrd: :param host: localhost :return: Connect...
PypiClean
/Flask-MongoMyAdmin-0.1.tar.gz/Flask-MongoMyAdmin-0.1/flask_mongomyadmin/static/mongomyadmin/bootstrap/js/bootstrap.min.js
!function(e){"use strict";e(function(){e.support.transition=function(){var e=function(){var e=document.createElement("bootstrap"),t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},n;for(n in t)if(e.style[n]!==undefined)return ...
PypiClean
/MajoranaNanowires-Quantum_Simulation_Package-1.0.tar.gz/MajoranaNanowires-Quantum_Simulation_Package-1.0/README.md
MajoranaNanowires is a numerical package for Python to model and simulate Majorana nanowire devices and other related semiconductor/superconductor heterostructures. Simulations describe nanowires supporting Majorana bound states (or other related structures) using tight-binding Hamiltonians. It is also possible to inc...
PypiClean
/JumpScale-core-6.0.0.tar.gz/JumpScale-core-6.0.0/lib/JumpScale/core/debugger/Debugger.py
import sys from JumpScale import j # Dictionary containing all known debuggers # Key is name (string), value is a tuple of 2 callables: one to start the actual # debugger (set a breakpoint), one to perform extra configuration work DEBUGGERS = dict() # 'disabled' debugger def disabled_break(frame, depth): #pylint: d...
PypiClean
/EnergyID-0.0.17.tar.gz/EnergyID-0.0.17/energyid/pandasclient.py
from typing import Optional, Dict, Union, List import pandas as pd from .models import Record from .client import JSONClient class PandasClient(JSONClient): def get_meter_readings(self, meter_id: str, **kwargs) -> pd.DataFrame: d = super(PandasClient, self).get_meter_readings(meter_id=meter_id, **kwargs...
PypiClean
/BioTEMPy-2.1.0a0-py3-none-any.whl/TEMPy/protein/rigid_body_parser.py
class RBParser: """A class to read Rigid Body files""" def __init__(self): pass @staticmethod def read_rigid_body_file(file_in): """ Read a rigid body file in Flex-EM format. Each line describes one rigid body by specifying the initial and final residue of ea...
PypiClean
/NeuroTS-3.4.0-py3-none-any.whl/neurots/generate/soma.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
/MaterialDjango-0.2.5.tar.gz/MaterialDjango-0.2.5/materialdjango/static/materialdjango/components/bower_components/paper-fab/.github/ISSUE_TEMPLATE.md
<!-- Instructions: https://github.com/PolymerElements/paper-fab/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 turns...
PypiClean
/Djaloha-0.4.2.tar.gz/Djaloha-0.4.2/djaloha/static/aloha.0.20/plugins/common/table/lib/table-create-layer.js
define( ['aloha/jquery'], function (jQuery) { /** * Initialize of the CreateLayer object */ CreateLayer = function(TablePlugin){ this.TablePlugin = TablePlugin; }; /** * Internal configuration of the create-table panel */ CreateLayer.prototype.parameters = { elemId: 'aloha-table-createLayer', // id of...
PypiClean
/Cubane-1.0.11.tar.gz/Cubane-1.0.11/cubane/backend/static/cubane/backend/js/cubane.backend.heartbeat.js
(function() { "use strict"; /* * List of body class names that would result in NOT running heartbeat, * for example dialog windows or login page... */ var EXCEMPT_CLASSES = [ 'login', 'browse-dialog', 'create-dialog', 'edit-dialog', 'is-dialog' ]; cubane.namespace('cubane.backend'); cubane.re...
PypiClean
/IsPycharmRun-1.0.tar.gz/IsPycharmRun-1.0/pb_py/sc_push_msg_pb2.py
from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() import msg_base_pb2 as ...
PypiClean
/NMR_peaks_picking-0.1-py3-none-any.whl/nmrglue/fileio/convert.py
import datetime from warnings import warn import numpy as np from . import pipe from . import varian from . import bruker from . import sparky from . import rnmrtk from . import fileiobase class converter(object): """ Object which allows conversion between NMR file formats, including low memory data obj...
PypiClean
/MaterialDjango-0.2.5.tar.gz/MaterialDjango-0.2.5/materialdjango/static/materialdjango/components/bower_components/prism/plugins/normalize-whitespace/prism-normalize-whitespace.js
(function() { var assign = Object.assign || function (obj1, obj2) { for (var name in obj2) { if (obj2.hasOwnProperty(name)) obj1[name] = obj2[name]; } return obj1; } function NormalizeWhitespace(defaults) { this.defaults = assign({}, defaults); } function toCamelCase(value) { return value.replace(/-(\w)/g,...
PypiClean
/COMPAS-1.17.5.tar.gz/COMPAS-1.17.5/src/compas/geometry/primitives/frame.py
from __future__ import print_function from __future__ import absolute_import from __future__ import division from compas.geometry import allclose from compas.geometry import argmax from compas.geometry import axis_angle_vector_from_matrix from compas.geometry import basis_vectors_from_matrix from compas.geometry impor...
PypiClean
/Flask-First-0.14.1.tar.gz/Flask-First-0.14.1/README.md
# Flask-First Flask extension for using "specification first" principle. Features: * `Application Factory` supported. * Validating and serializing arguments from `request.headers` to `request.first_headers`. * Validating and serializing arguments from `request.view_args` to `request.first_view_args`. * Validating an...
PypiClean
/EARL-pytorch-0.5.1.tar.gz/EARL-pytorch-0.5.1/rlgym/utils/reward_functions/common_rewards/ball_goal_rewards.py
import numpy as np from rlgym.utils import RewardFunction, math from rlgym.utils.common_values import BLUE_TEAM, ORANGE_TEAM, ORANGE_GOAL_BACK, \ BLUE_GOAL_BACK, BALL_MAX_SPEED, BACK_WALL_Y, BALL_RADIUS, BACK_NET_Y from rlgym.utils.gamestates import GameState, PlayerData class LiuDistanceBallToGoalReward(RewardF...
PypiClean
/FFEAT-1.0.0-py3-none-any.whl/ffeat/_common/crossover/TwoPoint1D.py
from typing import Union import torch as t from ffeat import Pipe, STANDARD_REPRESENTATION from ._Shared import _Shared from ffeat.utils._parental_sampling import randint class TwoPoint1D(Pipe, _Shared): """ Two point crossover. Works only on one dimensional individuals. """ def __init__(self, ...
PypiClean
/ChattrShopifyAPI-8.4.2.tar.gz/ChattrShopifyAPI-8.4.2/shopify/resources/inventory_level.py
from ..base import ShopifyResource import shopify import json class InventoryLevel(ShopifyResource): def __repr__(self): return "%s(inventory_item_id=%s, location_id=%s)" % (self._singular, self.inventory_item_id, self.location_id) @classmethod def _element_path(cls, prefix_options={}, query_opti...
PypiClean
/AnyBlok-2.1.0.tar.gz/AnyBlok-2.1.0/anyblok/scripts.py
import sys import warnings from argparse import RawDescriptionHelpFormatter from logging import getLogger from os import walk from os.path import join from textwrap import dedent from sqlalchemy_utils.functions import create_database import anyblok from anyblok import ( configuration_post_load, load_init_func...
PypiClean
/DomiKnowS-0.533.tar.gz/DomiKnowS-0.533/domiknows/solver/lcLossSampleBooleanMethods.py
import logging import torch from domiknows.solver.ilpBooleanMethods import ilpBooleanProcessor from domiknows.solver.ilpConfig import ilpConfig class lcLossSampleBooleanMethods(ilpBooleanProcessor): def __init__(self, _ildConfig = ilpConfig) -> None: super().__init__() self.grad = False ...
PypiClean
/BlazeWeb-0.6.2-py3-none-any.whl/blazeweb/wrappers.py
import six import werkzeug as wz from blazeutils.decorators import deprecate from blazeutils.jsonh import jsonmod, assert_have_json from blazeweb.globals import rg from blazeweb.utils import registry_has_object class BaseRequest(wz.Request): # we want mutable request objects parameter_storage_class = wz.data...
PypiClean
/NlvWxPython-4.2.0-cp37-cp37m-win_amd64.whl/wx/tools/dbg.py
class Logger: def __init__(self, name=None): import sys self.name = name self._indent = 0 # current number of indentations self._dbg = 0 # enable/disable flag self._suspend = 0 # allows code to "suspend/resume" potential dbg output self._wxLog = 0 #...
PypiClean
/Dililatum-0.1.tar.gz/Dililatum-0.1/dililatum/system.py
# Dililatum: a quest system for simple RPGs # Copyright (C) 2010 Niels Serup # This file is part of Dililatum. # # Dililatum 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, ...
PypiClean
/Nuitka-1.8.tar.gz/Nuitka-1.8/nuitka/freezer/ImportDetection.py
import os import pkgutil import sys from nuitka.importing.StandardLibrary import ( getStandardLibraryPaths, isStandardLibraryNoAutoInclusionModule, isStandardLibraryPath, scanStandardLibraryPath, ) from nuitka.Options import isStandaloneMode from nuitka.PythonVersions import python_version from nuitka....
PypiClean
/covfuzze-0.1.2.tar.gz/covfuzze-0.1.2/covfuzze/covfuzze.py
import numpy as np import pysam import pandas as pd import seaborn as sns import matplotlib import re import os from matplotlib import pyplot as plt from matplotlib import cm from pybedtools import BedTool import sys def fill_coverage(coverage,strand,gene_cov,expn,normalize): if strand == '-': gene_cov = ...
PypiClean
/FlaskCms-0.0.4.tar.gz/FlaskCms-0.0.4/flask_cms/static/js/ckeditor/plugins/a11yhelp/dialogs/lang/ru.js
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang("a11yhelp","ru",{title:"Горячие клавиши",contents:"Помощь. Для закрытия этого окна нажмите ESC.",legend:[{name:"Основное",items:[{name:"Панель инстру...
PypiClean
/CodeIntel-2.0.0b19-cp34-cp34m-macosx_10_12_x86_64.whl/codeintel/reflow.py
# Reflow code -- used by koLanguageCommandHandler, but in # a standalone file to make usable by doctest. r""" >>> sreflow("This is a long paragraph which is useful in testing reflow\n", 30, '\n') 'This is a long paragraph which\nis useful in testing reflow\n' >>> tst = "tomato\n\nbar\n\nasdas\n" >>> sreflow(tst, 30, ...
PypiClean
/Flask-MDEditor-0.1.4.tar.gz/Flask-MDEditor-0.1.4/flask_mdeditor/static/mdeditor/js/lib/codemirror/mode/puppet/puppet.js
(function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use s...
PypiClean
/NESTML-5.3.0-py3-none-any.whl/pynestml/codegeneration/printers/latex_function_call_printer.py
from typing import Tuple from pynestml.codegeneration.printers.function_call_printer import FunctionCallPrinter from pynestml.meta_model.ast_function_call import ASTFunctionCall from pynestml.meta_model.ast_node import ASTNode from pynestml.symbols.predefined_functions import PredefinedFunctions from pynestml.utils.a...
PypiClean
/Bel_messenger_client-0.1.0.tar.gz/Bel_messenger_client-0.1.0/client/client/transport.py
import binascii import hashlib import hmac import json import logging import socket import sys import threading import time from PyQt5.QtCore import QObject, pyqtSignal sys.path.append('../') from common.utils import send_message, get_message from common.variables import ACTION, PRESENCE, TIME, USER, ACCOUNT_NAME, RES...
PypiClean
/Homevee_Dev-0.0.0.0-py3-none-any.whl/Homevee/Manager/scenes.py
from Homevee.Item.Room import Room from Homevee.Item.Status import * from Homevee.Utils.Database import Database def get_all_scenes(user, db): with db: cur = db.cursor() cur.execute("SELECT * FROM ROOMS") rooms = [] for room in cur.fetchall(): if not user.has_permiss...
PypiClean
/KratosPoromechanicsApplication-9.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/KratosMultiphysics/PoromechanicsApplication/apply_scalar_constraint_table_process.py
import KratosMultiphysics import KratosMultiphysics.PoromechanicsApplication as KratosPoro def Factory(settings, Model): if(type(settings) != KratosMultiphysics.Parameters): raise Exception("expected input shall be a Parameters object, encapsulating a json string") return ApplyScalarConstraintTableProc...
PypiClean
/M_challenge-0.0.3.tar.gz/M_challenge-0.0.3/data_etl/data_grab.py
import json from copy import deepcopy import pandas as pd import requests class GetData: """ This class is used to scrape world bank data in a json format. Data extracted is then transformed to a dataframe. class attributes: url (str): this specifies the API data is being extr...
PypiClean
/ARGs_OAP-2.3.2.tar.gz/ARGs_OAP-2.3.2/ARGs_OAP/bin/bbmap/replaceheaders.sh
usage(){ echo " Written by Brian Bushnell Last modified May 23, 2016 Description: Replaces read names with names from another file. The other file can either be sequences or simply names, with one name per line (and no > or @ symbols). If you use one name per line, please give the file a .header extension. Usage: ...
PypiClean
/Galaxy-ML-0.10.0.tar.gz/Galaxy-ML-0.10.0/galaxy_ml/externals/selene_sdk/utils/performance_metrics.py
import logging import os from collections import defaultdict, namedtuple import numpy as np from sklearn.metrics import average_precision_score from sklearn.metrics import precision_recall_curve from sklearn.metrics import roc_auc_score from sklearn.metrics import roc_curve logger = logging.getLogger("selene") Me...
PypiClean
/Dooders-0.0.3.tar.gz/Dooders-0.0.3/dooders/selection.py
import random from typing import Dict, List, Tuple import numpy as np from pydantic import BaseModel from sklearn.decomposition import PCA from dooders.experiment import Experiment from dooders.sdk.modules.recombination import recombine # Global PCA instance for embedding GENE_EMBEDDING = PCA(n_components=3) class...
PypiClean
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dijit/form/_FormMixin.js.uncompressed.js
define("dijit/form/_FormMixin", [ "dojo/_base/array", // array.every array.filter array.forEach array.indexOf array.map "dojo/_base/declare", // declare "dojo/_base/kernel", // kernel.deprecated "dojo/_base/lang", // lang.hitch lang.isArray "dojo/window" // winUtils.scrollIntoView ], function(array, declare, kerne...
PypiClean
/Kr0nOs_Bot-3.3.11-py3-none-any.whl/redbot/cogs/permissions/converters.py
import itertools import re from typing import NamedTuple, Union, Optional import discord from redbot.core import commands from redbot.core.i18n import Translator from redbot.core.utils import AsyncIter _ = Translator("PermissionsConverters", __file__) MENTION_RE = re.compile(r"^<?(?:(?:@[!&]?)?|#)(\d{15,21})>?$") ...
PypiClean
/EnergyCapSdk-8.2304.4743.tar.gz/EnergyCapSdk-8.2304.4743/energycap/sdk/models/channel_edit.py
from msrest.serialization import Model class ChannelEdit(Model): """ChannelEdit. All required parameters must be populated in order to send to Azure. :param interval_minutes: Required. The interval of the channel. The interval is measured in minutes Standard intervals are 15 = FifteenMin...
PypiClean
/GeoNode-3.2.0-py3-none-any.whl/geonode/static/lib/js/plugins/autolink/plugin.min.js
!function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),i=tinymce.util.Tools.resolve("tinymce.Env"),o=function(e,t){if(t<0&&(t=0),3===e.nodeType){var n=e.data.length;n<t&&(t=n)}return t},y=function(e,t,n){1!==t.nodeType||t.hasChildNodes()?e.setStart(t,o(t,n)):e.setStartBefore(t)},k=function(e...
PypiClean
/JKBio-1.1.tar.gz/JKBio-1.1/epigenetics/rose/ROSE_bamToGFF.py
#script to grab reads from a bam that align to a .gff file import sys import re import ROSE_utils from collections import defaultdict import os from string import join,upper,maketrans #===================================================================== #====================MAPPING BAM READS TO GFF REGIONS===...
PypiClean
/Authlib-1.2.1.tar.gz/Authlib-1.2.1/authlib/oauth1/rfc5849/base_server.py
import time from .signature import ( SIGNATURE_HMAC_SHA1, SIGNATURE_PLAINTEXT, SIGNATURE_RSA_SHA1, ) from .signature import ( verify_hmac_sha1, verify_plaintext, verify_rsa_sha1, ) from .errors import ( InvalidRequestError, MissingRequiredParameterError, UnsupportedSignatureMethodErr...
PypiClean
/Dooders-0.0.3.tar.gz/Dooders-0.0.3/dooders/sdk/models/information.py
import sqlite3 import traceback from typing import TYPE_CHECKING, List import pandas as pd from dooders.sdk.utils.logger import get_logger if TYPE_CHECKING: from dooders.sdk.simulation import Simulation class FakeLogger: def info(self, message: str) -> None: pass def log(self, message: str, g...
PypiClean
/FontCollector-2.1.2-py3-none-any.whl/font_collector/helpers.py
import logging import os import shutil from .ass_style import AssStyle from .font_parser import FontParser, NameID from .font import Font from .font_loader import FontLoader from .font_result import FontResult from ._version import __version__ from datetime import date from fontTools.ttLib.ttFont import TTFont from fon...
PypiClean
/ChemDataExtractor-1.3.0-py3-none-any.whl/chemdataextractor/doc/element.py
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from abc import ABCMeta, abstractproperty import json import six from ..utils import python_2_unicode_compatible @python_2_unicode_compatible class BaseElement(six.wit...
PypiClean
/Cahoots-0.5.2.zip/Cahoots-0.5.2/cahoots/parsers/location/__init__.py
import sqlite3 import os class LocationDatabase(object): """Handles the database for location parsing in various submodules""" @classmethod def get_database(cls): """ Gets a sqlite database connection to the location database :return: sqlite3 connection :rtype: _sqlite3.C...
PypiClean
/Code2pdf-1.0.0.tar.gz/Code2pdf-1.0.0/README
Code2pdf -------------- Convert various source code into pdf file with syntax highlighting and many more features `Demo`_ ------- Click above for demo Dependencies ~~~~~~~~~~~~ `PyQt <http://www.riverbankcomputing.com/software/pyqt/download>`__ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~...
PypiClean
/Axelrod-4.13.0.tar.gz/Axelrod-4.13.0/docs/how-to/contributing/strategy/docstrings.rst
Writing docstrings ================== The project takes pride in its documentation for the strategies and its corresponding bibliography. The docstring is a string which describes a method, module or class. The docstrings help the user in understanding the working of the strategy and the source of the strategy. The do...
PypiClean
/Django_patch-2.2.19-py3-none-any.whl/django/contrib/gis/db/backends/spatialite/introspection.py
from django.contrib.gis.gdal import OGRGeomType from django.db.backends.sqlite3.introspection import ( DatabaseIntrospection, FlexibleFieldLookupDict, ) class GeoFlexibleFieldLookupDict(FlexibleFieldLookupDict): """ Sublcass that includes updates the `base_data_types_reverse` dict for geometry field t...
PypiClean
/Inti-0.0.0a0.tar.gz/Inti-0.0.0a0/inti/MA/MAMetadata.py
MAColTypes = {} MAColTypes['mag'] = {} MAColTypes['mag']['long'] = ['EstimatedCitation', 'JournalId', 'FieldOfStudyId2', 'AffiliationId', 'RecommendedPaperId', 'ConferenceIns...
PypiClean
/Mezzanine-6.0.0.tar.gz/Mezzanine-6.0.0/mezzanine/core/management/commands/runserver.py
import platform import sys import django from django.conf import settings from django.contrib.staticfiles.handlers import StaticFilesHandler from django.contrib.staticfiles.management.commands import runserver from django.core.management.color import supports_color from django.db import connection from django.http imp...
PypiClean
/Flashflood-0.13.0.tar.gz/Flashflood-0.13.0/flashflood/lod.py
class ListOfDict(list): """List of dict utility class """ def values(self, key): """Returns record values with the given key""" return map(lambda x: x[key], self) def filter(self, key, value): """Filters by the given key-value pair""" return filter(lambda x: x[key] == va...
PypiClean
/7Wonder-RL-Lib-0.1.1.tar.gz/7Wonder-RL-Lib-0.1.1/docs/_build/html/_static/language_data.js
var stopwords = ["a", "and", "are", "as", "at", "be", "but", "by", "for", "if", "in", "into", "is", "it", "near", "no", "not", "of", "on", "or", "such", "that", "the", "their", "then", "there", "these", "they", "this", "to", "was", "will", "with"]; /* Non-minified version is copied as a separate JS file, is available...
PypiClean
/EpiTator-1.3.5.tar.gz/EpiTator-1.3.5/epitator/importers/import_wikidata.py
from __future__ import absolute_import from __future__ import print_function from ..get_database_connection import get_database_connection import six from six.moves.urllib.request import urlopen from six.moves.urllib.parse import urlencode from six.moves.urllib.error import URLError import json import datetime from ..u...
PypiClean
/MuPhyN-0.1.1.post4-py3-none-any.whl/muphyn/libraries/box_library/transfer_function_box_ode.py
from typing import List from scipy.integrate import odeint # ----------------------------------- # Functions # ----------------------------------- def get_coeff_vector(coeff_vector_string: str) -> List[float]: if coeff_vector_string is None: return [0] vector = [] for sub in coeff_vector_string...
PypiClean
/Eve-2.1.0.tar.gz/Eve-2.1.0/eve/methods/patch.py
from copy import deepcopy from cerberus.validator import DocumentError from flask import abort from flask import current_app as app from werkzeug import exceptions from eve.auth import requires_auth from eve.methods.common import (build_response_document, get_document, marshal_write_re...
PypiClean
/Moose-0.9.9b3.tar.gz/Moose-0.9.9b3/moose/models/dataset.py
import os from datetime import datetime from moose.toolbox.image import common class Dataset(object): """ Dataset is a class to gather relative items into a group. """ data_model = None def __init__(self, queryset, context): self.queryset = queryset self.context = context ...
PypiClean
/2xh_leet-1.0.1-py3-none-any.whl/leet/logging.py
import builtins import logging import progressbar from PIL import ImageColor from sty import fg from .imgcat import imgcat progressbar.streams.wrap_stderr() # TODO: Implement word wrapping # Set to True to have the module name column dynamically resize as it grows # TODO: Set option via different import DYNAMIC_WI...
PypiClean
/Flask-AppBuilder-red-2.1.13.tar.gz/Flask-AppBuilder-red-2.1.13/flask_appbuilder/security/api.py
from flask import request from flask_jwt_extended import ( create_access_token, create_refresh_token, get_jwt_identity, jwt_refresh_token_required, ) from ..api import BaseApi, safe from ..const import ( API_SECURITY_ACCESS_TOKEN_KEY, API_SECURITY_PASSWORD_KEY, API_SECURITY_PROVIDER_DB, ...
PypiClean
/NanoCap-1.0b12.tar.gz/NanoCap-1.0b12/nanocap/core/minimasearch.py
from nanocap.core.globals import * import nanocap.core.globals as globals import os,sys,math,copy,random,time,threading,Queue,ctypes,types import numpy from nanocap.core.util import * from nanocap.clib import clib_interface from nanocap.core import structurelog from nanocap.core import forcefield from nanocap.core i...
PypiClean
/GraphLab_Create-2.1-cp27-none-macosx_10_5_x86_64.macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.macosx_10_11_intel.macosx_10_11_x86_64.whl/graphlab/mxnet/builtin_symbols/symbol_inception_bn_full.py
from .. import symbol def ConvFactory(data, num_filter, kernel, stride=(1,1), pad=(0, 0), name=None, suffix=''): conv = symbol.Convolution(data=data, workspace=512, num_filter=num_filter, kernel=kernel, stride=stride, pad=pad, name='conv_%s%s' %(name, suffix)) bn = symbol.BatchNorm(data=conv, name='bn_%s%s' %(...
PypiClean
/Apywy-0.0.5.tar.gz/Apywy-0.0.5/apywy/fields.py
import abc from typing import Dict, List, Tuple from .constants import exceptions from .constants.const import Constant, ListOfConstants from .utilities.custom_typing import AnyConst class IField: @abc.abstractmethod def _pre_normalize_data(self, expected_data: AnyConst) -> ListOfConstants: raise Not...
PypiClean
/Flask-tinydb-1.1.0.tar.gz/Flask-tinydb-1.1.0/LICENSE.rst
BSD 3-Clause License Copyright (c) 2022, komeil Parseh All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditio...
PypiClean
/FedArtML-0.1.23-py3-none-any.whl/fedartml/fl_split_as_federated_data.py
import numpy as np import pandas as pd from numpy.random import dirichlet from fedartml.function_base import jensen_shannon_distance, hellinger_distance, earth_movers_distance class SplitAsFederatedData: """ Creates federated data from the provided centralized data (features and labels) to exemplify identical...
PypiClean
/Kato-FlaskAppBuilder-1.1.14.tar.gz/Kato-FlaskAppBuilder-1.1.14/flask_appbuilder/fields.py
from __future__ import unicode_literals import operator from wtforms import widgets from wtforms.compat import text_type, string_types from wtforms.fields import SelectFieldBase, Field, SelectField from wtforms.validators import ValidationError class AJAXSelectField(Field): """ Simple class to convert p...
PypiClean
/DropTheBeat-1.0.tar.gz/DropTheBeat-1.0/README.md
Unix: [![Unix Build Status](http://img.shields.io/travis/jacebrowning/dropthebeat/develop.svg)](https://travis-ci.org/jacebrowning/dropthebeat) Windows: [![Windows Build Status](https://img.shields.io/appveyor/ci/jacebrowning/dropthebeat/develop.svg)](https://ci.appveyor.com/project/jacebrowning/dropthebeat)<br>Metrics...
PypiClean
/EnergyCapSdk-8.2304.4743.tar.gz/EnergyCapSdk-8.2304.4743/energycap/sdk/models/meter_digest_savings_yearly_response_py3.py
from msrest.serialization import Model class MeterDigestSavingsYearlyResponse(Model): """MeterDigestSavingsYearlyResponse. :param meter_id: The meter identifier :type meter_id: int :param meter_code: The meter code :type meter_code: str :param meter_info: The meter info :type meter_info:...
PypiClean
/Flasks-Discord-0.1.69.tar.gz/Flasks-Discord-0.1.69/flasks_discord/models/connections.py
from flask import current_app from .base import DiscordModelsBase from .integration import Integration class UserConnection(DiscordModelsBase): """Class representing connections in discord account of the user. Attributes ---------- id : str ID of the connection account. name : str ...
PypiClean
/Flask-LazyViews-0.6.tar.gz/Flask-LazyViews-0.6/flask_lazyviews/lazyviews.py
import sys from functools import partial from flask import render_template from .utils import LazyView __all__ = ('LazyViews', ) string_types = (str, unicode) if sys.version_info[0] < 3 else (str, ) # noqa class LazyViews(object): """ Main instance for adding *lazy* views to Flask application or bluep...
PypiClean
/LiquidIssuer-0.2.tar.gz/LiquidIssuer-0.2/li/issue.py
import configparser from li.bitcoin_rpc_class import RPCHost import json import re import struct import requests import hashlib import sha256 class Issue: def __init__(self, configFile): self.configFile = configFile self.explorerURL = 'https://blockstream.info/liquid/api/tx/' config = c...
PypiClean
/MuPhyN-0.1.1.post4-py3-none-any.whl/muphyn/packages/interface/base/widgets/CodeEditor.py
from PyQt6.QtCore import Qt, QObject from PyQt6.QtGui import QFont, QColor from PyQt6.QtWidgets import QWidget from PyQt6.Qsci import QsciScintilla, QsciLexerPython, QsciAPIs PythonKeywords = [ "from", ] class MuphynPythonLexer(QsciLexerPython): def __init__(self, parent: QObject = None) -> None: supe...
PypiClean
/GF256-0.2.0.tar.gz/GF256-0.2.0/LICENSE.rst
Copyright (c) 2016 by Daniel Neuhäuser Redistribution and use in source and binary forms of the software as well as documentation, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditi...
PypiClean
/Greg-0.4.8.tar.gz/Greg-0.4.8/README.md
# greg A command-line podcast aggregator, written in python. It basically exposes some of the functionality of the excellent [feedparser](http://pypi.python.org/pypi/feedparser). ## Installation Use [pip](https://pip.pypa.io/en/stable/): `pip install --user greg` If you run [Arch Linux](https://archlinux.org/), th...
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/recurrence.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
/DNBC4-test-2.2.1.tar.gz/DNBC4-test-2.2.1/dnbc4tools/software/d2c/bin/CHANGELOG.md
# Change Log ## 1.5.1(2023-05-10) 修复bug: * 当--bf --fb参数指定时会出现cutoff输出文件不存在的问题 ## 1.5.0(2023-04-27) 功能: * 增加参数 --rank 选择barcode rank算法,目前支持knee 和 inflection,默认inflection; 增加R脚本,环境变量PATH要包含Rscript路径 ## 1.4.7(2023-03-31) 功能: * 支持chromap输出的bam文件,此格式qname带后缀/1 /2 ## 1.4.6(2022-12-22) 功能: * 对bed输入文件,支持30bp的barcod...
PypiClean
/Fabric-with-working-dependencies-1.0.1.tar.gz/Fabric-with-working-dependencies-1.0.1/docs/usage/output_controls.rst
=============== Managing output =============== The ``fab`` tool is very verbose by default and prints out almost everything it can, including the remote end's stderr and stdout streams, the command strings being executed, and so forth. While this is necessary in many cases in order to know just what's going on, any n...
PypiClean
/HolmesIV-2021.9.8a1.tar.gz/HolmesIV-2021.9.8a1/mycroft/lock/__init__.py
from signal import getsignal, signal, SIGKILL, SIGINT, SIGTERM, \ SIG_DFL, default_int_handler, SIG_IGN # signals import os # Operating System functions # # Wrapper around chain of handler functions for a specific system level signal. # Often used to trap Ctrl-C for specific application purposes. from mycroft....
PypiClean
/GeobricksRasterCorrelation-0.1.13.tar.gz/GeobricksRasterCorrelation-0.1.13/geobricks_raster_correlation/core/raster_correlation_core.py
import numpy as np import time import rasterio from pysal.esda import mapclassify from scipy.stats import linregress from geobricks_common.core.log import logger from geobricks_common.core.filesystem import get_raster_path from geobricks_raster_correlation.core.colors import get_colors log = logger(__file__) def get...
PypiClean
/Nuitka_winsvc-1.7.10-cp310-cp310-win_amd64.whl/nuitka/code_generation/templates/CodeTemplatesConstants.py
template_constants_reading = r""" #include "nuitka/prelude.h" #include "structseq.h" // Global constants storage PyObject *global_constants[%(global_constants_count)d]; // Sentinel PyObject to be used for all our call iterator endings. It will // become a PyCObject pointing to NULL. It's address is unique, and that's...
PypiClean
/Logria-0.9.14.tar.gz/Logria-0.9.14/logria/utilities/session.py
import json import os from pathlib import Path from typing import List, Union from logria.utilities import fs from logria.utilities.constants import LOGRIA_ROOT, SAVED_SESSIONS_PATH class SessionHandler(): """ Class that manages sessions for the user """ def __init__(self): self._commands: L...
PypiClean
/KalturaApiClient-19.3.0.tar.gz/KalturaApiClient-19.3.0/KalturaClient/Plugins/WatchLater.py
from __future__ import absolute_import from .Core import * from ..Base import ( getXmlNodeBool, getXmlNodeFloat, getXmlNodeInt, getXmlNodeText, KalturaClientPlugin, KalturaEnumsFactory, KalturaObjectBase, KalturaObjectFactory, KalturaParams, KalturaServiceBase, ) ########## enu...
PypiClean