id
stringlengths
1
265
text
stringlengths
6
5.19M
dataset_id
stringclasses
7 values
/FP-SMC-ALS-test1-0.0.1.tar.gz/FP-SMC-ALS-test1-0.0.1/smc/core/engines.py
from smc.core.interfaces import ( ClusterPhysicalInterface, TunnelInterface, Layer3PhysicalInterface, Layer2PhysicalInterface, SwitchPhysicalInterface, ) from smc.core.sub_interfaces import LoopbackInterface from smc.core.engine import Engine from smc.api.exceptions import CreateEngineFailed, Create...
PypiClean
/Flat-0.3.2.tar.gz/Flat-0.3.2/flat/pdf.py
from binascii import hexlify from os import urandom from .color import gray from .misc import chunks, dump, scale from .png import png class null(object): def pdf(self): return b'' class boolean(object): def __init__(self, value): self.value = value def pdf(self): ...
PypiClean
/Django-Pizza-16.10.1.tar.gz/Django-Pizza-16.10.1/pizza/kitchen_sink/static/ks/ckeditor/plugins/a11yhelp/dialogs/lang/ro.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","ro",{title:"Instrucțiuni de accesibilitate",contents:"Cuprins. Pentru a închide acest dialog, apăsați tasta ESC.",legend:[{name:"General"...
PypiClean
/ArangoDjango-0.0.25.tar.gz/ArangoDjango-0.0.25/djara/django/menus/templatetags/menu_tags.py
from django import template from django.template import loader, Context from django.template.base import Template from djara.django.menus.models import GlobalMenu register = template.Library() def show_global_menu(context, menu_template='djara/django/menus/simple_menu.html'): """ """ request = context[...
PypiClean
/Dickbot.py-1.1-py3-none-any.whl/BotAmino/commands.py
from inspect import getfullargspec class Command: def __init__(self): self.commands = {} self.conditions = {} def execute(self, commande, data, type: str = "command"): com = self.commands[type][commande] arg = getfullargspec(com).args arg.pop(0) s = len(arg) ...
PypiClean
/NICpolpy-0.1.5-py3-none-any.whl/nicpolpy/ysfitsutilpy4nicpolpy/imutil/imcombine.py
from pathlib import Path import bottleneck as bn import numpy as np from astropy.io.fits.verify import VerifyError from astropy.nddata import CCDData from astropy.table import Table from astropy.time import Time from astropy.wcs import WCS from ..combutil import group_fits from ..filemgmt import make_summary from ..h...
PypiClean
/Flask-pysnow-0.1.3.tar.gz/Flask-pysnow-0.1.3/README.rst
.. image:: https://travis-ci.org/rbw0/flask-pysnow.svg?branch=master :target: https://travis-ci.org/rbw0/flask-pysnow .. image:: https://badge.fury.io/py/flask-pysnow.svg :target: https://pypi.python.org/pypi/flask-pysnow Installation ------------ $ pip install flask-pysnow Configuration ------------- =======...
PypiClean
/ID_distributions-0.1.tar.gz/ID_distributions-0.1/ID_distributions/Binomialdistribution.py
import math import matplotlib.pyplot as plt from .Generaldistribution import Distribution class Binomial(Distribution): """ Binomial distribution class for calculating and visualizing a Binomial distribution. Attributes: mean (float) representing the mean value of the distribution std...
PypiClean
/GeoNode-3.2.0-py3-none-any.whl/geonode/static/lib/js/bootstrap-select.js
(function (root, factory) { if (root === undefined && window !== undefined) root = window; if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module unless amdModuleId is set define(["jquery"], function (a0) { return (factory(a0)); }); } else if (typeof module ===...
PypiClean
/AyiinXd-0.0.8-cp311-cp311-macosx_10_9_universal2.whl/fipper/node_modules/@types/node/ts4.8/vm.d.ts
declare module 'vm' { interface Context extends NodeJS.Dict<any> {} interface BaseOptions { /** * Specifies the filename used in stack traces produced by this script. * Default: `''`. */ filename?: string | undefined; /** * Specifies the line number of...
PypiClean
/BotEXBotBase-3.1.3.tar.gz/BotEXBotBase-3.1.3/redbot/core/commands/context.py
import asyncio from typing import Iterable, List import discord from discord.ext import commands from .requires import PermState from ..utils.chat_formatting import box from ..utils.predicates import MessagePredicate from ..utils import common_filters TICK = "\N{WHITE HEAVY CHECK MARK}" __all__ = ["Context"] class...
PypiClean
/Flask-TinyMCE-1.0.0.tar.gz/Flask-TinyMCE-1.0.0/flask_tinymce/static/plugins/imagetools/plugin.min.js
!function(){"use strict";function c(e){var t=e;return{get:function(){return t},set:function(e){t=e}}}function h(e){return null!=e}function r(){}function i(e){return function(){return e}}function e(e){return e}function t(){return d}function s(e){return n=typeof(t=e),"array"==(null===t?"null":"object"==n&&(Array.prototyp...
PypiClean
/BIA_OBS-1.0.3.tar.gz/BIA_OBS-1.0.3/BIA/static/dist/node_modules/picomatch/lib/constants.js
'use strict'; const path = require('path'); const WIN_SLASH = '\\\\/'; const WIN_NO_SLASH = `[^${WIN_SLASH}]`; /** * Posix glob regex */ const DOT_LITERAL = '\\.'; const PLUS_LITERAL = '\\+'; const QMARK_LITERAL = '\\?'; const SLASH_LITERAL = '\\/'; const ONE_CHAR = '(?=.)'; const QMARK = '[^/]'; const END_ANCHOR ...
PypiClean
/Flask-RateLimiter-0.2.0.tar.gz/Flask-RateLimiter-0.2.0/README.rst
=================== Flask-RateLimiter =================== .. image:: https://travis-ci.org/inveniosoftware/flask-ratelimiter.png?branch=master :target: https://travis-ci.org/inveniosoftware/flask-ratelimiter .. image:: https://coveralls.io/repos/inveniosoftware/flask-ratelimiter/badge.png?branch=master :targe...
PypiClean
/KPyGithub-1.32a1.tar.gz/KPyGithub-1.32a1/github/GitObject.py
# ########################## Copyrights and license ############################ # # # Copyright 2012 Vincent Jacques <vincent@vincent-jacques.net> # # Copyright 2012 Zearin <zearin@gonk.net> ...
PypiClean
/Files.com-1.0.1051-py3-none-any.whl/files_sdk/models/as2_incoming_message.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 As2IncomingMessage: default_attributes = { 'id': None, # int64 - Id of the AS2 Partner. '...
PypiClean
/NewsLookout-2.1.0-py3-none-any.whl/newslookout/base_plugin.py
# ######################################################################################################### # # # File name: base_plugin.py ...
PypiClean
/FileCrawler-0.1.8.tar.gz/FileCrawler-0.1.8/filecrawler/libs/slice.py
import re from pathlib import Path from ansi2image.ansi2image import Ansi2Image from filecrawler.config import Configuration from filecrawler.libs.color import Color from filecrawler.util.tools import Tools class Slice(object): _filename = None _line_filter = [] _table = '' def __init__(self, file_p...
PypiClean
/Netzob-2.0.0.tar.gz/Netzob-2.0.0/src/netzob/Model/Vocabulary/Domain/Variables/Nodes/all.py
#+---------------------------------------------------------------------------+ #| 01001110 01100101 01110100 01111010 01101111 01100010 | #| | #| Netzob : Inferring communication protocols | #+-...
PypiClean
/Datacenter_leo_client-0.1.tar.gz/Datacenter_leo_client-0.1/Datacenter_leo_client.py
from calendar import c from datetime import datetime, timedelta, date, time from time import sleep from dateutil.relativedelta import relativedelta import psycopg2 import numpy as np import pandas as pd import matplotlib.pylab as plt import influxdb_client from influxdb_client import InfluxDBClient, Point, WritePrecisi...
PypiClean
/LinOTP-2.11.1.tar.gz/LinOTP-2.11.1/linotp/tokens/qrtoken/__init__.py
import struct from collections import namedtuple from linotp.lib.error import ParameterError _QRTokenPairingData = namedtuple('_QRTokenPairingData', ['user_public_key', 'user_token_id', 'serial', 'user_login']) class QRTokenPairingData(_QRTokenPairi...
PypiClean
/MetaCalls-0.0.5-cp310-cp310-manylinux2014_x86_64.whl/metacalls/node_modules/@types/node/ts4.8/http2.d.ts
declare module 'http2' { import EventEmitter = require('node:events'); import * as fs from 'node:fs'; import * as net from 'node:net'; import * as stream from 'node:stream'; import * as tls from 'node:tls'; import * as url from 'node:url'; import { IncomingHttpHeaders as Http1IncomingHttpHea...
PypiClean
/FP-SMC-ALS-test1-0.0.1.tar.gz/FP-SMC-ALS-test1-0.0.1/smc/examples/policy_rule_source_vpn.py
import smc.examples from smc import session from smc.base.util import element_resolver from smc.elements.alerts import CustomAlert from smc.elements.service import TCPService from smc.policy.layer3 import FirewallPolicy from smc.policy.rule_elements import SourceVpn from smc.vpn.policy import PolicyVPN from smc_info i...
PypiClean
/MaterialDjango-0.2.5.tar.gz/MaterialDjango-0.2.5/materialdjango/static/materialdjango/components/bower_components/neon-animation/README.md
# neon-animation `neon-animation` is a suite of elements and behaviors to implement pluggable animated transitions for Polymer Elements using [Web Animations](https://w3c.github.io/web-animations/). *Warning: The API may change.* * [A basic animatable element](#basic) * [Animation configuration](#configuration) * ...
PypiClean
/LFake-18.9.0.tar.gz/LFake-18.9.0/lfake/providers/date_time/ru_RU/__init__.py
from faker.typing import Country from .. import Provider as DateTimeProvider class Provider(DateTimeProvider): DAY_NAMES = { "0": "Воскресенье", "1": "Понедельник", "2": "Вторник", "3": "Среда", "4": "Четверг", "5": "Пятница", "6": "Суббота", } MON...
PypiClean
/LiBai-0.1.1.tar.gz/LiBai-0.1.1/libai/utils/download.py
import logging import os import shutil from typing import Callable, List, Optional from urllib import request def download(url: str, dir: str, *, filename: Optional[str] = None, progress: bool = True) -> str: """ Download a file from a given URL to a directory. If file exists, will not overwrite the e...
PypiClean
/DeePyMoD-20.11b0.tar.gz/DeePyMoD-20.11b0/docs/background/background.md
# Background ## Framework Deep learning-based model discovery typically uses a neural network to construct a noiseless surrogate $\hat{u}$ of the data $u$. A library of potential terms $\Theta$ is constructed using automatic differentiation from $\hat{u}$ and the neural network is constrained to solutions allowed by ...
PypiClean
/OctoPrint-1.9.2.tar.gz/OctoPrint-1.9.2/AUTHORS.md
# Authors The following people have contributed to OctoPrint's code base (ordered roughly by date of first contribution): * [Gina Häußge](https://github.com/foosel) * [Thomas Sanladerer](https://github.com/imitation) * [Alex Ustyantsev](https://github.com/hudbrog) * [Andrew Dalgleish](https://github.com/ajd40...
PypiClean
/ISPy-solar-0.2.3.tar.gz/ISPy-solar-0.2.3/ISPy/util/lineplot.py
import matplotlib.pyplot as plt import scipy.io as sc import numpy as np import ISPy.spec.atlas as atlas from scipy.interpolate import interp1d from scipy.signal import fftconvolve import ISPy.spec.crisp as fpi import ISPy.spec.chromis as ch import sys import astropy.io.fits as f from ipdb import set_trace as stop d...
PypiClean
/MFAProblem-1.0.1b0.tar.gz/MFAProblem-1.0.1b0/bin/run_import_excel_proxy_in_data_base.py
import argparse import sys import os import logging import ast import numpy as np import pandas as pd from shutil import copyfile try: from ..mfa_problem import io_bdd as sqdb except ImportError: import mfa_problem.io_bdd as sqdb def chk_args(): parser = argparse.ArgumentParser() parser.add_argument...
PypiClean
/LAMDA-SSL-1.0.2.tar.gz/LAMDA-SSL-1.0.2/LAMDA_SSL/Augmentation/Text/TFIDFReplacement.py
import math import numpy as np from LAMDA_SSL.Base.Transformer import Transformer from collections import Counter,defaultdict from LAMDA_SSL.Transform.Text.Tokenizer import Tokenizer class TFIDFReplacement(Transformer): def __init__(self,text,p=0.7,tokenizer=None,cache_len=100000): # >> Parameter: #...
PypiClean
/AsciiDotter-2.1.0-py3-none-any.whl/ascii_dotter/__main__.py
'''Command-line interface of the package.''''' import argparse from typing import TextIO, BinaryIO import sys from math import ceil, floor, sqrt from PIL import Image import ascii_dotter.braille_image as braille_image import ascii_dotter.luminance as luminance def main(input_stream: BinaryIO, output_stream: TextIO, ...
PypiClean
/Nikola-8.2.4-py3-none-any.whl/nikola/plugins/compile/rest/thumbnail.py
# Copyright © 2014-2023 Pelle Nilsson and others. # Permission is hereby granted, free of charge, to any # person obtaining a copy of this software and associated # documentation files (the "Software"), to deal in the # Software without restriction, including without limitation # the rights to use, copy, modify, merg...
PypiClean
/EnergyCapSdk-8.2304.4743.tar.gz/EnergyCapSdk-8.2304.4743/energycap/sdk/models/batch_workflow_settings.py
from msrest.serialization import Model class BatchWorkflowSettings(Model): """BatchWorkflowSettings. :param batch_mode_enabled: :type batch_mode_enabled: bool :param due_date: :type due_date: ~energycap.sdk.models.BillHeaderWorkflowChild :param statement_date: :type statement_date: ~ener...
PypiClean
/CudaPyInt-0.0.1.tar.gz/CudaPyInt-0.0.1/doc/build/html/_static/doctools.js
* select a different prefix for underscore */ $u = _.noConflict(); /** * make the code below compatible with browsers without * an installed firebug like debugger if (!window.console || !console.firebug) { var names = ["log", "debug", "info", "warn", "error", "assert", "dir", "dirxml", "group", "groupEnd", "...
PypiClean
/GHEDesigner-1.1-py3-none-any.whl/ghedesigner/domains.py
from math import ceil, floor from ghedesigner.coordinates import rectangle, transpose_coordinates, zoned_rectangle, l_shape, c_shape, lop_u from ghedesigner.feature_recognition import remove_cutout, determine_largest_rectangle def square_and_near_square(lower: int, upper: int, b: float): if lower < 1 or upper < ...
PypiClean
/EPViz-0.0.0.tar.gz/EPViz-0.0.0/visualization/models/sklearnchannelmodels.py
import numpy as np import sklearn.ensemble import sklearn.linear_model import matplotlib.pyplot as plt from models.basemodel import BaseModel class SklearnChannelMixin(): """A mixin for wrapping sklearn classifiers for channel based classification Implements fit, predict_proba, and predict for sklearn chann...
PypiClean
/MambuPy-2.0.0b22.tar.gz/MambuPy-2.0.0b22/mambupy/rest1to2/mambuclient.py
from mambupy.rest.mambuclient import MambuClient as MambuClient1, MambuClients as MambuClients1 from mambupy.rest1to2.mambustruct import MambuStruct, process_filters from mambupy.rest.mamburestutils import MambuStructIterator from ..mambuutil import strip_consecutive_repeated_char as scrc client_filters = [ "bra...
PypiClean
/Clyther-0.4-beta.tar.gz/Clyther-0.4-beta/clyther/rttt.py
from clast import cast from clyther.pybuiltins import builtin_map from inspect import isroutine, isclass, isfunction from meta.asttools.visitors import visit_children, Mutator from meta.asttools.visitors.print_visitor import print_ast from opencl import contextual_memory from opencl.type_formats import type_format, cde...
PypiClean
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/help/_base.js.uncompressed.js
define("dojox/help/_base", ["dijit","dojo","dojox","dojo/require!dojox/rpc/Service,dojo/io/script"], function(dijit,dojo,dojox){ dojo.provide("dojox.help._base"); dojo.require("dojox.rpc.Service"); dojo.require("dojo.io.script"); dojo.experimental("dojox.help"); console.warn("Script causes side effects (on numbers, st...
PypiClean
/Flask-Track-Usage-2.0.0.tar.gz/Flask-Track-Usage-2.0.0/docs/index.rst
Flask-Track-Usage |release| =========================== Basic metrics tracking for your `Flask`_ application. The core of library is very light and focuses more on storing basic metrics such as remote ip address and user agent. No extra cookies or javascript are used for usage tracking. * Simple. It's a Flask extens...
PypiClean
/Eskapade-1.0.0-py3-none-any.whl/eskapade/tutorials/esk208_record_factorizer.py
from eskapade import ConfigObject, resources, Chain from eskapade import core_ops, analysis from eskapade import process_manager from eskapade.logger import Logger, LogLevel logger = Logger() logger.debug('Now parsing configuration file esk208_record_factorizer') #####################################################...
PypiClean
/Foundations-2.1.0.tar.gz/Foundations-2.1.0/foundations/library.py
#********************************************************************************************************************** #*** Future imports. #********************************************************************************************************************** from __future__ import unicode_literals #*****************...
PypiClean
/CellDetection-0.4.3-py3-none-any.whl/celldetection/models/lightning.py
import matplotlib.pyplot as plt import pytorch_lightning as pl import torch from typing import Any, Optional, Dict, List, Tuple, Union, Sequence, Callable from ..util.schedule import Config, conf2scheduler, conf2optimizer from ..util.util import asnumpy, get_tiling_slices, fetch_model, load_model from torch import opti...
PypiClean
/NeodroidVision-0.3.0-py36-none-any.whl/neodroidvision/utilities/torch_utilities/distributing/distributing_utilities.py
__author__ = "Christian Heider Nielsen" __doc__ = r""" Created on 01/03/2020 """ import logging import os import sys from pathlib import Path from typing import Any, List import torch import torch.utils.data from torch import distributed from neodroidvision.utilities.torch_utilities.distribut...
PypiClean
/M2CryptoWin32-0.21.1-3.tar.gz/M2CryptoWin32-0.21.1-3/M2Crypto/PGP/packet.py
# Be liberal in what you accept. # Be conservative in what you send. # Be lazy in what you eval. import struct, time try: from cStringIO import StringIO except ImportError: from StringIO import StringIO from M2Crypto import EVP, RSA from M2Crypto.util import octx_to_num from constants import * _OK_VERSIO...
PypiClean
/Nuitka_winsvc-1.7.10-cp310-cp310-win_amd64.whl/nuitka/build/inline_copy/lib/scons-4.3.0/SCons/Builder.py
from collections import UserDict, UserList import SCons.Action import SCons.Debug import SCons.Executor import SCons.Memoize import SCons.Util import SCons.Warnings from SCons.Debug import logInstanceCreation from SCons.Errors import InternalError, UserError class _Null: pass _null = _Null def match_splitext(pa...
PypiClean
/OERPLib-0.8.4.tar.gz/OERPLib-0.8.4/oerplib/service/osv/osv.py
import sys # to check Python version at runtime import collections from oerplib.tools import v from oerplib import error from oerplib.service.osv import fields, browse class Model(object): """.. versionadded:: 0.5 Represent a data model. .. note:: This class have to be used through the :func:`...
PypiClean
/Cessa-1.2.5rc1.tar.gz/Cessa-1.2.5rc1/pyke/user_question.py
r''' This uses a parser object which is expected to have the following methods: - get_token(check_token=None) - parse_match() - parse_alternatives() - parse_review() ''' from string import Template class user_question(object): match = None review = None def __init__(...
PypiClean
/HavNegpy-1.2.tar.gz/HavNegpy-1.2/docs/_build/doctrees/nbsphinx/_build/html/_build/html/_build/html/hn_module_tutorial.ipynb
# Tutorial for the HN module of HavNegpy package ``` import numpy as np import pandas as pd import matplotlib.pyplot as plt import os import HavNegpy as dd %matplotlib qt os.chdir(r'M:\Marshall_Data\mohamed_data\mohamed_data\n44') def create_dataframe(f): col_names = ['Freq', 'T', 'Eps1', 'Eps2'] #f ...
PypiClean
/CanSNPer-1.1.0-1.1.0.tar.gz/CanSNPer-1.1.0-1.1.0/README.md
[![install with bioconda](https://img.shields.io/badge/install%20with-bioconda-brightgreen.svg?style=flat-square)](http://bioconda.github.io/recipes/cansnper/README.html) ## Installing CanSNPer CanSNPer is written in Python and requires Python installed as well as several dependencies. The easiest way to install CanS...
PypiClean
/MUGAlyser-1.0.6a0.tar.gz/MUGAlyser-1.0.6a0/mugalyser/getgroups.py
import meetup.api import pymongo import pprint from pip._vendor.html5lib.trie import Trie if __name__ == "__main__" : meetup_groups= { "London-MongoDB-User-Group" : None, "DublinMUG" : None, "Paris-MongoDB-User-Group" : None } meetup...
PypiClean
/GPSReader-0.0.2.zip/GPSReader-0.0.2/helpers/serial_scanwin32.py
import ctypes import re def ValidHandle(value): if value == 0: raise ctypes.WinError() return value NULL = 0 HDEVINFO = ctypes.c_int BOOL = ctypes.c_int CHAR = ctypes.c_char PCTSTR = ctypes.c_char_p HWND = ctypes.c_uint DWORD = ctypes.c_ulong PDWORD = ctypes.POINTER(DWORD) ULONG = ctypes.c_ulong ULONG...
PypiClean
/ARGs_OAP-2.3.2.tar.gz/ARGs_OAP-2.3.2/ARGs_OAP/bin/bbmap/pipelines/covid/readme.txt
Written by Brian Bushnell Last modified April 8, 2020 Contents: This directory contains a collection of scripts written for calling variants and generating consensus genomes from SARS-CoV-2 ("Covid") Illumina data using BBTools. They were designed and optimized for several sets of libraries (from NextSeq and NovaSeq ...
PypiClean
/ORMithorynque-0.1.1.tar.bz2/ORMithorynque-0.1.1/doc/querying.rst
Querying ======== ORMithorynque does not provide a specific query language but uses SQL. You can either use the :attr:`database.cursor` plain SQLite3 database cursor, or use the more convenient :meth:`database.select_one()`, :meth:`database.select_all()`, :meth:`database.select_object_one()` and :meth:`database.selec...
PypiClean
/NESTML-5.3.0-py3-none-any.whl/pynestml/cocos/co_co_illegal_expression.py
from pynestml.utils.ast_source_location import ASTSourceLocation from pynestml.meta_model.ast_declaration import ASTDeclaration from pynestml.cocos.co_co import CoCo from pynestml.symbols.error_type_symbol import ErrorTypeSymbol from pynestml.symbols.predefined_types import PredefinedTypes from pynestml.utils.logger i...
PypiClean
/MaterialDjango-0.2.5.tar.gz/MaterialDjango-0.2.5/materialdjango/static/materialdjango/components/bower_components/prism/plugins/previewer-easing/prism-previewer-easing.min.js
!function(){if(("undefined"==typeof self||self.Prism)&&("undefined"==typeof global||global.Prism)){var e={css:!0,less:!0,sass:[{lang:"sass",inside:"inside",before:"punctuation",root:Prism.languages.sass&&Prism.languages.sass["variable-line"]},{lang:"sass",inside:"inside",root:Prism.languages.sass&&Prism.languages.sass[...
PypiClean
/IST411Team1Conway-1.0.0.tar.gz/IST411Team1Conway-1.0.0/IST411Team1/node4.py
import Pyro4, sys, subprocess, pika, zlib, serpent, time, p2p from Crypto.Cipher import AES from Crypto.Hash import SHA256 from node5 import Node5 beginTime = p2p.start() class node4: def __init__(self,name): self.json = None self.name = name self.payloadHash = None self.cipherText = None def receiveJSON(...
PypiClean
/FUNGuildtest-1.2.0.tar.gz/FUNGuildtest-1.2.0/README.rst
A sample Python project ======================= A sample project that exists as an aid to the `Python Packaging User Guide <https://packaging.python.org>`_'s `Tutorial on Packaging and Distributing Projects <https://packaging.python.org/en/latest/distributing.html>`_. This projects does not aim to cover best practice...
PypiClean
/ChIP_R-1.2.0-py3-none-any.whl/chipr/petprocessing.py
from chipr import bed import scipy import numpy as np from chipr import rankprod from chipr import multipletesting """ Dead code soon to be deleted """ def verifyChIAPeaks(chiaData, chipData, filename, alpha): listinters = [] PETs = [] probs = [] inters = {} PETgroups = {} prs = [] fdr = []...
PypiClean
/BigJob2-0.54.post73.tar.gz/BigJob2-0.54.post73/docs/source/tutorial/exsede.rst
############################# XSEDE Simple Ensemble Example ############################# **Note:** If you do not have an `XSEDE account <http://www.xsede.org/>`_, please skip this tutorial. One of the features of BigJob is the ability for application-level programmability by users. Many of the parameters in each scr...
PypiClean
/Cheetah-2.4.4.tar.gz/Cheetah-2.4.4/cheetah/DirectiveAnalyzer.py
import os import pprint try: from functools import reduce except ImportError: # Assume we have reduce pass from Cheetah import Parser from Cheetah import Compiler from Cheetah import Template class Analyzer(Parser.Parser): def __init__(self, *args, **kwargs): self.calls = {} super(An...
PypiClean
/OASYS1-SRW-SOLEIL-1.0.1.tar.gz/OASYS1-SRW-SOLEIL-1.0.1/soleil/wofrysrw/storage_ring/magnetic_structures/srw_infrared_bending_magnet.py
import numpy from srwlib import SRWLMagFldM, SRWLMagFld3D, array from syned.storage_ring.magnetic_structures.bending_magnet import BendingMagnet from wofrysrw.storage_ring.srw_magnetic_structure import SRWMagneticStructure class SRWIRBendingMagnet(BendingMagnet, SRWMagneticStructure): def __init__(self, ra...
PypiClean
/FlaskCms-0.0.4.tar.gz/FlaskCms-0.0.4/flask_cms/static/js/ckeditor/plugins/a11yhelp/dialogs/lang/fa.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","fa",{title:"دستورالعمل‌های دسترسی",contents:"راهنمای فهرست مطالب. برای بستن این کادر محاوره‌ای ESC را فشار دهید.",legend:[{name:"عمومی",i...
PypiClean
/NlvWxPython-4.2.0-cp37-cp37m-win_amd64.whl/wx/lib/agw/thumbnailctrl.py
#---------------------------------------------------------------------- # Beginning Of ThumbnailCtrl wxPython Code #---------------------------------------------------------------------- import wx import os import time from wx.lib.agw.scrolledthumbnail import (ScrolledThumbnail, EVT_THUMBNAILS_CHAR, PILImageHandler, ...
PypiClean
/CatKit-0.5.4-py3-none-any.whl/catkit/enumeration.py
from .gen.surface import get_unique_indices, SlabGenerator from .gen.symmetry import get_standardized_cell import numpy as np def surfaces( bulk, width, miller_indices=(1, 1, 1), terminations=None, sizes=None, vacuum=10, fixed=0, layer_type='angs', ...
PypiClean
/NEURON-9.0a0-cp311-cp311-macosx_10_15_x86_64.whl/neuron/rxd/geometry3d/scalarField.py
import neuron import numpy class ScalarField: """ A scalar field. """ def __init__(self, xlo, xhi, ylo, yhi, zlo, zhi, dx, dtype=None): """ Parameters ---------- xlo : double Minimum x value. xhi : double Maximum x value. ylo : d...
PypiClean
/Notable-0.4.2.tar.gz/Notable-0.4.2/notable/static/lib/ace/src-min/mode-typescript.js
define("ace/mode/typescript",["require","exports","module","ace/lib/oop","ace/mode/javascript","ace/tokenizer","ace/mode/typescript_highlight_rules","ace/mode/behaviour/cstyle","ace/mode/folding/cstyle","ace/mode/matching_brace_outdent"],function(e,t,n){var r=e("../lib/oop"),i=e("./javascript").Mode,s=e("../tokenizer")...
PypiClean
/DI_engine-0.4.9-py3-none-any.whl/dizoo/atari/config/serial/pong/pong_acer_config.py
from easydict import EasyDict pong_acer_config = dict( env=dict( collector_env_num=8, evaluator_env_num=8, n_evaluator_episode=8, stop_value=20, env_id='PongNoFrameskip-v4', #'ALE/Pong-v5' is available. But special setting is needed after gym make. frame_stac...
PypiClean
/CGATReport-0.9.1.tar.gz/CGATReport-0.9.1/doc/GalleryBarplots.rst
.. _bar-plot: ======== bar-plot ======== The :class:`CGATReportPlugins.Plotter.BarPlot` class presents :term:`labeled values` as overlapping bars. .. report:: Trackers.LabeledDataExample :render: bar-plot :layout: row :width: 200 A bar plot with overlapping bars. Options ======= :class:`CGATReportPlug...
PypiClean
/ARGs_OAP-2.3.2.tar.gz/ARGs_OAP-2.3.2/README.md
# ARGs_OAP Python wrapper of [ARGs_OAP](https://github.com/biofuture/Ublastx_stageone) + linux only + no modification of the source code and binaries, pure wrapper ## install + if both python2 and python3 are installed, please explicitly specify python3 ``` git clone https://github.com/xinehc/ARGs_OAP cd ARGs_OAP pyt...
PypiClean
/GTW-1.2.6.tar.gz/GTW-1.2.6/_OMP/_SWP/Random_Picture.py
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from _MOM.import_MOM import * from _GTW import GTW import _GTW._OMP._SWP.Picture from _TFL.I18N import _,...
PypiClean
/IPFX-1.0.8.tar.gz/IPFX-1.0.8/ipfx/stimulus.py
import os import logging import warnings import allensdk.core.json_utilities as ju from enum import Enum class StimulusType(Enum): RAMP = "ramp" LONG_SQUARE = "long_square" COARSE_LONG_SQUARE = "coarse_long_square" SHORT_SQUARE_TRIPLE = "short_square_triple" SHORT_SQUARE = "short_square" CHI...
PypiClean
/Axelrod-4.13.0.tar.gz/Axelrod-4.13.0/docs/tutorials/new_to_game_theory_and_or_python/moran.rst
.. _moran-process: Moran Process ============= The strategies in the library can be pitted against one another in the `Moran process <https://en.wikipedia.org/wiki/Moran_process>`_, a population process simulating natural selection. The process works as follows. Given an initial population of players, the population...
PypiClean
/Cerberus-1.3.5-py3-none-any.whl/cerberus/schema.py
from __future__ import absolute_import from warnings import warn from cerberus import errors from cerberus.platform import ( _str_type, Callable, Hashable, Mapping, MutableMapping, Sequence, ) from cerberus.utils import ( get_Validator_class, validator_factory, mapping_hash, Ty...
PypiClean
/NREL_reVX-0.3.53-py3-none-any.whl/reVX/plexos/dpv_plexos.py
import shutil import os import logging from warnings import warn import numpy as np import pandas as pd from scipy.spatial import cKDTree from reVX.handlers.outputs import Outputs logger = logging.getLogger(__name__) class DpvResource: """Framework to handle and merge multiple reV distributed PV runs.""" d...
PypiClean
/DACBench-0.2.0.tar.gz/DACBench-0.2.0/docs/source/logging.rst
=================== Logging Experiments =================== .. role:: python(code) :language: python As there are many potentially interesting metrics involved in the analysis of DAC methods, DACBench includes the possibility to track and store them. To log information on an environment, you need a logger object...
PypiClean
/ANNarchy-4.7.2.6.tar.gz/ANNarchy-4.7.2.6/examples/hodgkin_huxley/HodgkinHuxley.py
from ANNarchy import * dt = 0.02 setup(dt=dt) HH = Neuron( parameters = """ C = 1.0 # Capacitance VL = -59.387 # Leak voltage VK = -82.0 # Potassium reversal voltage VNa = 45.0 # Sodium reveral voltage gK = 36.0 # Maximal Potassium conductance gNa = 120.0 # Maximal Sodium conductance ...
PypiClean
/NbRisk-35.1.0-py3-none-any.whl/nb_risk/views.py
from netbox.views import generic from dcim.models import Device, Site from tenancy.models import Tenant from virtualization.models import VirtualMachine from extras.plugins.utils import get_plugin_config from utilities.views import ViewTab, register_model_view from django.contrib.contenttypes.models import ContentType...
PypiClean
/0-orchestrator-1.1.0a7.tar.gz/0-orchestrator-1.1.0a7/zeroos/orchestrator/sal/Node.py
from zeroos.core0.client import Client from .Disk import Disks, DiskType from .Container import Containers from .StoragePool import StoragePools from .Network import Network from .healthcheck import HealthCheck from collections import namedtuple from datetime import datetime from io import BytesIO import netaddr Mount...
PypiClean
/Linum-0.9.12.tar.gz/Linum-0.9.12/linum/excel_renderer/base/cell.py
from typing import Optional from xlsxwriter import Workbook from xlsxwriter.format import Format from xlsxwriter.worksheet import Worksheet from linum.excel_renderer.base.style import Style class Cell: def __init__(self, content: str = '', style: Optional[Style] = None): """ Excel base cell. ...
PypiClean
/Incantation-0.4.1.1-py3-none-any.whl/incantation/CSS/Helpers.py
from ..abst import Attribute from ..err import ArgumentError from ..utils import ClassProperty, doc_printer, default_initializer from enum import Enum as enum class Align(Attribute): class Enum(enum): Vertical = 'valign-wrapper' Left = 'left-align' Right = 'right-align' Center = 'c...
PypiClean
/Clorm-1.4.1-py3-none-any.whl/clorm/lib/timeslot.py
import datetime import math from ..orm import ComplexTerm, IntegerField, StringField,\ ConstantField, make_function_asp_callable, make_method_asp_callable #------------------------------------------------------------------------------ # #----------------------------------------------------------------------------...
PypiClean
/Deeplodocus-0.3.0-py3-none-any.whl/deeplodocus/data/load/dataset.py
from typing import List from typing import Optional from typing import Any from typing import Tuple from typing import Union import weakref import numpy as np import random # Deeplodocus imports from deeplodocus.data.load.data_entry import Entry from deeplodocus.utils.notification import Notification from deeplodocus....
PypiClean
/Marmir-0.1.3.tar.gz/Marmir-0.1.3/mm/lib/xlwt_0_7_2/CompoundDoc.py
import sys import struct class Reader: def __init__(self, filename, dump = False): self.dump = dump self.STREAMS = {} doc = file(filename, 'rb').read() self.header, self.data = doc[0:512], doc[512:] del doc self.__build_header() self.__build_MSAT() ...
PypiClean
/Blingalytics-0.2.7.tar.gz/Blingalytics-0.2.7/blingalytics/sources/__init__.py
from datetime import timedelta from decimal import Decimal from blingalytics import formats ADD_TYPES = (int, long, Decimal, float, timedelta) class Source(object): """ Defines the base interface for a report to access a data source. Subclasses should define any or all of the methods: pre_process, get_...
PypiClean
/0x_contract_wrappers-2.0.0-py3-none-any.whl/zero_ex/contract_wrappers/exchange/exceptions.py
from enum import auto, Enum from zero_ex.contract_wrappers.exceptions import RichRevert # pylint: disable=missing-docstring class AssetProxyDispatchErrorCodes(Enum): # noqa: D101 (missing docstring) INVALID_ASSET_DATA_LENGTH = 0 UNKNOWN_ASSET_PROXY = auto() class BatchMatchOrdersErrorCodes(Enum): # noq...
PypiClean
/DeepCellTL-0.12.5.tar.gz/DeepCellTL-0.12.5/deepcell/running.py
"""Functions for running convolutional neural networks""" from __future__ import absolute_import from __future__ import print_function from __future__ import division import numpy as np from tensorflow.keras import backend as K from tensorflow.keras.models import Model from deepcell.utils.data_utils import trim_padd...
PypiClean
/My-CountriesAPI-1234567-1.0.tar.gz/My-CountriesAPI-1234567-1.0/README.md
# Getting started This API retrieve the information of all country names and codes ## How to Build You must have Python ```2 >=2.7.9``` or Python ```3 >=3.4``` installed on your system to install and run this SDK. This SDK package depends on other Python packages like nose, jsonpickle etc. These dependencies are d...
PypiClean
/HibiAPI-0.8.0-py3-none-any.whl/hibiapi/api/sauce/api.py
import random from enum import IntEnum from io import BytesIO from typing import Any, Dict, Optional, overload from httpx import HTTPError from hibiapi.api.sauce.constants import SauceConstants from hibiapi.utils.decorators import enum_auto_doc from hibiapi.utils.exceptions import ClientSideException from hibiapi.uti...
PypiClean
/Mroylib-1.3.0.tar.gz/Mroylib-1.3.0/qlib/data/__db.py
from fabric.api import local try: from bson import ObjectId except ImportError as e: from bson import objectid as ObjectId try: import time from QmongoHelper import Mongo except ImportError as e: import sys print("you should install QmongoHelper from my Github", file=sys.stderr) from redis impo...
PypiClean
/FlexGet-3.9.6-py3-none-any.whl/flexget/components/notify/notifiers/slack.py
from loguru import logger from requests.exceptions import RequestException from flexget import plugin from flexget.event import event from flexget.plugin import PluginWarning from flexget.utils.requests import Session as RequestSession requests = RequestSession(max_retries=3) plugin_name = 'slack' logger = logger.b...
PypiClean
/Bast-1.0.1.tar.gz/Bast-1.0.1/bast/controller.py
import importlib import logging import traceback from tornado.web import RequestHandler from tornado.util import unicode_type from .exception import BastException from .json_ import Json as json_ from .view import TemplateRendering import os from tornado.gen import coroutine from bast import Bast class Controller(R...
PypiClean
/BxTorch-0.7.3.tar.gz/BxTorch-0.7.3/README.md
# BxTorch BxTorch is a high-level library for large-scale machine learning in [PyTorch](https://pytorch.org). It is engineered both to cut obsolete boilerplate code while preserving the flexibility of PyTorch to create just about any deep learning model. ## Installation BxTorch is available on PyPi, so simply run th...
PypiClean
/125softNLP-0.0.1-py3-none-any.whl/pysoftNLP/ner/kashgari/layers/kmax_pool_layer.py
# author: AlexWang # contact: ialexwwang@gmail.com # file: attention_weighted_average.py # time: 2019-06-25 16:35 import kashgari import tensorflow as tf from tensorflow.python import keras from tensorflow.python.keras import backend as K L = keras.layers InputSpec = L.InputSpec class KMaxPoolingLayer(L.Layer): ...
PypiClean
/AutoAsd-0.2.9-py3-none-any.whl/autoasd/spectralon_corrector.py
import matplotlib .pyplot as plt import numpy as np import os def apply_spectralon_correction(file): file2=file #overwrite file you are given correction_coefficients=[] print('Loading data for i=0') print(os.getcwd()) x,y,p=get_data('spec_correction_i0.csv') x1,y1,p1=get_data('spec_correction_i...
PypiClean
/ConfTools-z6-6.0.2.tar.gz/ConfTools-z6-6.0.2/src/conf_tools/global_config.py
import os from typing import List # from contracts import check_isinstance from . import logger from .utils import dir_from_package_name, expand_environment __all__ = [ "GlobalConfig", "ConfigState", "reset_config", ] class GlobalConfig(object): """ To correctly restore configuration with c...
PypiClean
/MPD_sima-0.18.2.tar.gz/MPD_sima-0.18.2/vinstall.py
REQ_VER = (3,6) import sys if sys.version_info < REQ_VER: print('Need at least python {0}.{1} to run this script'.format(*REQ_VER), file=sys.stderr) sys.exit(1) import os import os.path import venv from subprocess import Popen, PIPE from threading import Thread from urllib.parse import urlparse from urllib.r...
PypiClean
/Frontiersman-2.0.2-py3-none-any.whl/frontiersman/client/ClientGraphics.py
import os import sys import pygame import pygame.gfxdraw sys.path.insert(0, '../../frontiersman') from frontiersman.main.DrawHelper import DrawHelper class ClientGraphics: @staticmethod def top_and_bottom_bar(screen_size, small_font): graphics = pygame.Surface(screen_size, flags=pygame.SRCALPHA) ...
PypiClean
/Imaginary-0.0.5.tar.gz/Imaginary-0.0.5/imaginary/wiring/textserver.py
import sys, unicodedata from zope.interface import implements from twisted.cred.portal import IRealm from twisted.conch.insults import insults from twisted.python import log, util from twisted import copyright as tcopyright from axiom.item import Item from axiom.dependency import dependsOn from xmantissa.ixmantiss...
PypiClean