id
stringlengths
1
265
text
stringlengths
6
5.19M
dataset_id
stringclasses
7 values
/FALCONN-1.3.1.tar.gz/FALCONN-1.3.1/external/pybind11/docs/basics.rst
.. _basics: First steps ########### This sections demonstrates the basic features of pybind11. Before getting started, make sure that development environment is set up to compile the included set of test cases. Compiling the test cases ======================== Linux/MacOS ----------- On Linux you'll need to inst...
PypiClean
/django-chuck-0.2.3.tar.gz/django-chuck/modules/feincms/project/static/scripts/libs/tiny_mce/themes/advanced/js/color_picker.js
tinyMCEPopup.requireLangPack(); var detail = 50, strhex = "0123456789abcdef", i, isMouseDown = false, isMouseOver = false; var colors = [ "#000000","#000033","#000066","#000099","#0000cc","#0000ff","#330000","#330033", "#330066","#330099","#3300cc","#3300ff","#660000","#660033","#660066","#660099", "#6600cc","#660...
PypiClean
/ESMValTool-2.9.0-py3-none-any.whl/esmvaltool/diag_scripts/kcs/global_matching.py
import logging from itertools import product from pathlib import Path import matplotlib.pyplot as plt import pandas as pd import xarray as xr from esmvaltool.diag_scripts.shared import ( ProvenanceLogger, get_diagnostic_filename, get_plot_filename, run_diagnostic, select_metadata, ) logger = logg...
PypiClean
/123_object_detection-0.1.tar.gz/123_object_detection-0.1/object_detection/builders/model_builder.py
import functools import sys from absl import logging from object_detection.builders import anchor_generator_builder from object_detection.builders import box_coder_builder from object_detection.builders import box_predictor_builder from object_detection.builders import hyperparams_builder from object_detection.builde...
PypiClean
/DRAM_bio-1.4.6-py3-none-any.whl/mag_annotator/database_handler.py
from os import path, remove, getenv from pkg_resources import resource_filename import json import gzip import logging from shutil import copy2 import warnings from datetime import datetime from functools import partial from sqlalchemy import create_engine from sqlalchemy.orm import sessionmaker import pandas as pd f...
PypiClean
/Flask-Turbo-Boost-0.2.8.tar.gz/Flask-Turbo-Boost-0.2.8/flask_turbo_boost/cli.py
import sys import os # Insert project root path to sys.path project_path = os.path.abspath(os.path.join(os.path.dirname(__file__), '..')) if project_path not in sys.path: sys.path.insert(0, project_path) import logging import io from logging import StreamHandler, DEBUG from os.path import dirname, abspath from te...
PypiClean
/DarTui-1.1.0.tar.gz/DarTui-1.1.0/dartui/formatters.py
import re def format_percentage(completed, total): p_float = (completed / (total * 1.00)) * 100 p_formatted = "{0:2.1f}".format(p_float) return(p_formatted) def calc_size(n): unit_index = 0 size_reduced = n # we don't want a result in the thousands while size_reduced >= 1000: ...
PypiClean
/MAVR-0.93.tar.gz/MAVR-0.93/scripts/wga/create_last_db_for_fast_wga.py
__author__ = 'Sergei F. Kliver' import argparse from RouToolPa.Tools.WGA import LAST parser = argparse.ArgumentParser() parser.add_argument("-i", "--input_fasta_list", action="store", dest="input_fasta_list", required=True, type=LAST.make_list_of_path_to_files_from_string, hel...
PypiClean
/Flask-MDBootstrap-3.0.5.tar.gz/Flask-MDBootstrap-3.0.5/flask_mdbootstrap/static/MDB-Pro/src/js/vendor/free/waves.js
(function (window, factory) { 'use strict'; // AMD. Register as an anonymous module. Wrap in function so we have access // to root via `this`. if (typeof define === 'function' && define.amd) { define([], function () { window.Waves = factory.call(window); return window.Waves; }); } // ...
PypiClean
/HOGBEN-1.2.1.tar.gz/HOGBEN-1.2.1/hogben/utils.py
import os from typing import Optional, Union import numpy as np from dynesty import NestedSampler, DynamicNestedSampler from dynesty import plotting as dyplot from dynesty import utils as dyfunc import refl1d.experiment import refnx.reflect import refnx.analysis import bumps.parameter import bumps.fitproblem from h...
PypiClean
/Django-4.2.4.tar.gz/Django-4.2.4/django/contrib/gis/db/backends/spatialite/operations.py
from django.contrib.gis.db import models from django.contrib.gis.db.backends.base.operations import BaseSpatialOperations from django.contrib.gis.db.backends.spatialite.adapter import SpatiaLiteAdapter from django.contrib.gis.db.backends.utils import SpatialOperator from django.contrib.gis.geos.geometry import GEOSGeom...
PypiClean
/maxbot-0.3.0b2-py3-none-any.whl/maxbot/maxml/xml_parser.py
import logging from dataclasses import dataclass from xml.sax.handler import ContentHandler, ErrorHandler # nosec from defusedxml.sax import parseString from ..errors import BotError, XmlSnippet from . import fields, markup logger = logging.getLogger(__name__) _ROOT_ELEM_NAME = "root" KNOWN_ROOT_ELEMENTS = frozen...
PypiClean
/EthTx-0.3.22.tar.gz/EthTx-0.3.22/ethtx/models/semantics_model.py
from __future__ import annotations from typing import List, Dict, Optional, TYPE_CHECKING from ethtx.models.base_model import BaseModel if TYPE_CHECKING: from ethtx.providers.semantic_providers import ISemanticsDatabase class TransformationSemantics(BaseModel): transformed_name: Optional[str] transfor...
PypiClean
/BS4_for_aiogram-0.0.0.5-py3-none-any.whl/bs4/element.py
__license__ = "MIT" try: from collections.abc import Callable # Python 3.6 except ImportError as e: from collections import Callable import re import sys import warnings try: import soupsieve except ImportError as e: soupsieve = None warnings.warn( 'The soupsieve package is not installed. C...
PypiClean
/GautamsX-6.0.13.tar.gz/GautamsX-6.0.13/bot/helper/ext_utils/fs_utils.py
import sys from bot import aria2, LOGGER, DOWNLOAD_DIR, ARIA_CHILD_PROC, MEGA_CHILD_PROC import shutil import os import pathlib import magic import tarfile from .exceptions import NotSupportedExtractionArchive def clean_download(path: str): if os.path.exists(path): LOGGER.info(f"Cleaning download: {path}"...
PypiClean
/MetaCalls-0.0.5-cp310-cp310-manylinux2014_x86_64.whl/metacalls/node_modules/@mapbox/node-pre-gyp/CHANGELOG.md
# node-pre-gyp changelog ## 1.0.10 - Upgraded minimist to 1.2.6 to address dependabot alert [CVE-2021-44906](https://nvd.nist.gov/vuln/detail/CVE-2021-44906) ## 1.0.9 - Upgraded node-fetch to 2.6.7 to address [CVE-2022-0235](https://www.cve.org/CVERecord?id=CVE-2022-0235) - Upgraded detect-libc to 2.0.0 to use non-bl...
PypiClean
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/mobile/ProgressIndicator.js.uncompressed.js
define("dojox/mobile/ProgressIndicator", [ "dojo/_base/config", "dojo/_base/declare", "dojo/dom-construct", "dojo/dom-style", "dojo/has" ], function(config, declare, domConstruct, domStyle, has){ // module: // dojox/mobile/ProgressIndicator // summary: // A progress indication widget. var cls = declare("d...
PypiClean
/Bubot_CoAP-1.0.7-py3-none-any.whl/Bubot_CoAP/defines.py
import collections import struct __author__ = 'Giacomo Tanganelli' """ CoAP Parameters """ ACK_TIMEOUT = 2 # standard 2 SEPARATE_TIMEOUT = ACK_TIMEOUT / 2 MULTICAST_TIMEOUT = 15 ACK_RANDOM_FACTOR = 1.5 MAX_RETRANSMIT = 4 MAX_TRANSMIT_SPAN = ACK_TIMEOUT * (pow(2, (MAX_RETRANSMIT + 1)) - 1) * ACK_RANDOM_FACTOR ...
PypiClean
/FoneAstra-3.0.1.tar.gz/FoneAstra-3.0.1/fa/static/fa/flot/README.txt
About ----- Flot is a Javascript plotting library for jQuery. Read more at the website: http://code.google.com/p/flot/ Take a look at the examples linked from above, they should give a good impression of what Flot can do and the source code of the examples is probably the fastest way to learn how to use Flot. ...
PypiClean
/Kamaelia-0.6.0.tar.gz/Kamaelia-0.6.0/Examples/Axon/SynchronousLinks/basic_syncLinksAcceptanceTest.py
from Axon.Component import * import Axon.Component print component.__init__.__doc__ class Consumer(component): Inboxes = ["source"] Outboxes = ["result"] def __init__(self): super(Consumer, self).__init__() print "huh?" #this variable is not used for anything important self...
PypiClean
/HBT_IP_Test-1.0.1-py3-none-any.whl/HBT_IP_Test/libs/isom/python/Macros_pb2.py
import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf i...
PypiClean
/BBA-0.2.0.tar.gz/BBA-0.2.0/bba/client.py
import requests import json from typing import Optional from .objects import ResponseObject from .errors import Unauthorized, TooManyRequests, InternalServerError class Client: """Represent the client that make the request. Parameters ------------ api_key: str The api key, the unique identif...
PypiClean
/HyFetch-1.4.10.tar.gz/HyFetch-1.4.10/hyfetch/presets.py
from __future__ import annotations from typing import Iterable from .color_util import RGB from .constants import GLOBAL_CFG from .types import LightDark, ColorSpacing def remove_duplicates(seq: Iterable) -> list: """ Remove duplicate items from a sequence while preserving the order """ seen = set()...
PypiClean
/LabExT_pkg-2.2.0.tar.gz/LabExT_pkg-2.2.0/docs/gui_wizard_control.md
# Wizard Widget This page describes the tkinter-GUI widget called "Wizard" which we use inside LabExT for various setup dialogs. Check-out this page if you are interested in building small GUI addons for LabExT yourself. ## How to use the widget: ### 1. Basic settings Create a class that inherits from `Wizard`. Call ...
PypiClean
/OCR-Sycophant-0.0.4.tar.gz/OCR-Sycophant-0.0.4/ocr_sycophant/cli.py
import click import csv import os import glob from multiprocessing import Pool from ocr_sycophant.model import NoiseModel from ocr_sycophant.encoder import Encoder from ocr_sycophant.utils import get_dataset @click.group() def cli(): """OCR Simple Noise Evaluator""" def _predict(args): model, file = args ...
PypiClean
/Banzai-NGS-0.0.5.tar.gz/Banzai-NGS-0.0.5/README.rst
Banzai ====== The Banzai Microbial Genomics Pipeline is currently in closed beta. Please `star`_ or `follow`_ this repository to receive updates when it's publicly available. .. _`star`: https://github.com/mscook/Banzai-MicrobialGenomics-Pipeline/star .. _`follow`: https://github.com/mscook/Banzai-MicrobialGenomic...
PypiClean
/Flask-CKEditor-0.4.6.tar.gz/Flask-CKEditor-0.4.6/flask_ckeditor/static/standard/plugins/a11yhelp/dialogs/lang/ku.js
/* Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ CKEDITOR.plugins.setLang("a11yhelp","ku",{title:"ڕێنمای لەبەردەستدابوون",contents:"پێکهاتەی یارمەتی. کلیك ESC بۆ داخستنی ئەم دیالۆگه.",legend:[{name:"گشتی...
PypiClean
/FamcyDev-0.3.71-py3-none-any.whl/Famcy/bower_components/bootstrap/js/src/tab.js
import { defineJQueryPlugin, getElementFromSelector, isDisabled, reflow } from './util/index' import EventHandler from './dom/event-handler' import SelectorEngine from './dom/selector-engine' import BaseComponent from './base-component' /** * -------------------------------------------------------------------...
PypiClean
/ORCHISM.1.0.tar.gz/ORCHISM.1.0/code/ORCHIDEE_AR5_CFG.py
# # ------------------------------------------------------------------------------ # This source code is governed by the CeCILL licence # #******************************************************************************* # --- Initialisation du dictionnaire --- # -------------------------------------- config_defaut = {}...
PypiClean
/Flask_AdminLTE3-1.0.9-py3-none-any.whl/flask_adminlte3/static/plugins/codemirror/addon/hint/sql-hint.js
(function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror"), require("../../mode/sql/sql")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror", "../../mode/sql/sql"], mod); else // Plain browser env ...
PypiClean
/DendroPy_calver-2023.330.2-py3-none-any.whl/dendropy/legacy/seqmodel.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
/GB2260-v2-0.2.1.tar.gz/GB2260-v2-0.2.1/gb2260_v2/data/curated/revision_201705.py
from __future__ import unicode_literals name = '201705' division_schema = { '110000': '北京市', '110101': '东城区', '110102': '西城区', '110105': '朝阳区', '110106': '丰台区', '110107': '石景山区', '110108': '海淀区', '110109': '门头沟区', '110111': '房山区', '110112': '通州区', '110113': '顺义区', '11011...
PypiClean
/Djaloha-0.4.2.tar.gz/Djaloha-0.4.2/djaloha/static/aloha.0.20.20/plugins/extra/browser/vendor/jquery.jstree.js
define(['aloha/jquery'], function(jQuery) { var $ = jQuery; /* * jsTree 1.0-rc3 * http://jstree.com/ * * Copyright (c) 2010 Ivan Bozhanov (vakata.com) * * Licensed same as jquery - under the terms of either the MIT License or the GPL Version 2 License * http://www.opensource.org/licenses/mit-license.php * ...
PypiClean
/Italian%20Tweets%20Analyzer-2.3.tar.gz/Italian Tweets Analyzer-2.3/hate_tweet_map/tweets_searcher/SearchTweets.py
import concurrent import os from concurrent import futures import logging import math import time import pandas as pd from concurrent.futures import Future, as_completed from datetime import datetime, timezone from typing import Optional import requests import yaml from tqdm import tqdm from hate_tweet_map import uti...
PypiClean
/Hypercorn-noteable-0.11.3.tar.gz/Hypercorn-noteable-0.11.3/src/hypercorn/typing.py
from __future__ import annotations from multiprocessing.synchronize import Event as EventType from typing import Any, Awaitable, Callable, Dict, Iterable, Optional, Tuple, Type, Union import h2.events import h11 # Till PEP 544 is accepted try: from typing import Literal, Protocol, TypedDict except ImportError: ...
PypiClean
/Electrum-VTC-2.9.3.3.tar.gz/Electrum-VTC-2.9.3.3/packages/google/protobuf/internal/more_extensions_dynamic_pb2.py
import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) 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 from google.p...
PypiClean
/NeuroTools-0.3.1.tar.gz/NeuroTools-0.3.1/examples/matlab_vs_python/smallnet_inlineC.py
# Modules required import numpy import numpy.random as random # Bug fix for numpy version 1.0.4 for numpy.histogram numpy.lib.function_base.any = numpy.any # For inline C optimization from scipy import weave # For measuring performance import time t1 = time.time() # Excitatory and inhibitory neuron counts Ne = 1000...
PypiClean
/FireDM-2022.4.14.tar.gz/FireDM-2022.4.14/firedm/iconsbase64.py
# APP_ICON 48x48 pixels fire logo APP_ICON = b'iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAaoXpUWHRSYXcgcHJvZmlsZSB0eXBl\nIGV4aWYAAHjarZtpdiQ5kqT/4xRzBKwK4DhY35sbzPHnEzjJjMjKmM5+08FKOuk0N4NBRWUBrNz5\nP//7uv/FPys5u1xqs27m+Zd77nHwQ/Off+N9Dz6/7+9f+voTv//2vvv5Q+St9NeRzb6O/34//Jzg\n8zL4qfxyora+/jB//0PPX+dvfzvR14WSRhT5YX...
PypiClean
/Mathics_Django-6.0.0-py3-none-any.whl/mathics_django/web/media/js/mathjax/jax/output/HTML-CSS/fonts/Asana-Math/Misc/Regular/Main.js
MathJax.OutputJax["HTML-CSS"].FONTDATA.FONTS.AsanaMathJax_Misc={directory:"Misc/Regular",family:"AsanaMathJax_Misc",testString:"\u2070\u2071\u2074\u2075\u2076\u2077\u2078\u2079\u207A\u207B\u207C\u207D\u207E\u207F\u2080",32:[0,0,249,0,0],8304:[696,-271,300,14,286],8305:[685,-271,209,27,183],8308:[690,-271,299,2,296],830...
PypiClean
/Flask-Sijax-0.4.1.tar.gz/Flask-Sijax-0.4.1/examples/chat.py
import os import hmac from hashlib import sha1 from flask import Flask, g, render_template, session, abort, request from werkzeug.security import safe_str_cmp import flask_sijax app = Flask(__name__) app.secret_key = os.urandom(128) @app.template_global('csrf_token') def csrf_token(): """ Generate a token st...
PypiClean
/GeoNode-3.2.0-py3-none-any.whl/geonode/static/geonode/js/ol-2.13/lib/OpenLayers/WPSClient.js
* @requires OpenLayers/SingleFile.js */ /** * @requires OpenLayers/Events.js * @requires OpenLayers/WPSProcess.js * @requires OpenLayers/Format/WPSDescribeProcess.js * @requires OpenLayers/Request.js */ /** * Class: OpenLayers.WPSClient * High level API for interaction with Web Processing Services (WPS). * ...
PypiClean
/ASLPAw-2.2.0.tar.gz/ASLPAw-2.2.0/src/ASLPAw_package/ASLPAw_module.py
import random from networkx.classes.graph import Graph from networkx.classes.digraph import DiGraph from networkx.classes.multigraph import MultiGraph from networkx.classes.multidigraph import MultiDiGraph from multivalued_dict_package import * from shuffle_graph_package import shuffle_graph __all__ = ['ASLPAw'] def ...
PypiClean
/FQTool-1.4.tar.gz/FQTool-1.4/src/ArgParser.py
import argparse ## @brief This function creates a parser for command line arguments # Sets up a parser that accepts the following flags: -i, -l, -q, -f, -a, -v, -h # @return An already configured instance of the ArgumentParser class def create_parser(): parser = argparse.ArgumentParser(prog = 'fqtool', ...
PypiClean
/DJModels-0.0.6-py3-none-any.whl/djmodels/db/models/query_utils.py
import copy import functools import inspect from collections import namedtuple from djmodels.db.models.constants import LOOKUP_SEP from djmodels.utils import tree # PathInfo is used when converting lookups (fk__somecol). The contents # describe the relation in Model terms (model Options and Fields for both # sides of...
PypiClean
/ANNOgesic-1.1.14.linux-x86_64.tar.gz/usr/local/lib/python3.10/dist-packages/annogesiclib/ppi.py
import os import sys import csv import time from subprocess import call from annogesiclib.helper import Helper from annogesiclib.plot_PPI import plot_ppi from annogesiclib.converter import Converter from annogesiclib.gff3 import Gff3Parser class PPINetwork(object): '''detection of PPI''' def __init__(self, o...
PypiClean
/NeodroidVision-0.3.0-py36-none-any.whl/neodroidvision/utilities/visualisation/grad_cam.py
__author__ = "Christian Heider Nielsen" __doc__ = r""" Gradient-weighted Class Activation Mapping Created on 14-02-2021 """ from typing import Sequence import cv2 import numpy import torch __all__ = ["GradientClassActivationMapping"] class GradientClassActivationMapping: """des...
PypiClean
/Editra-0.7.20.tar.gz/Editra-0.7.20/src/ed_book.py
__author__ = "Cody Precord <cprecord@editra.org>" __svnid__ = "$Id: ed_book.py 69245 2011-09-30 17:52:23Z CJP $" __revision__ = "$Revision: 69245 $" #-----------------------------------------------------------------------------# # Imports import wx # Editra Imports import extern.aui as aui import ed_msg from profiler...
PypiClean
/Fo4doG_mess_server-0.0.2-py3-none-any.whl/server/common/metaclasses.py
import dis class ServerMaker(type): ''' Метакласс, проверяющий что в результирующем классе нет клиентских вызовов таких как: connect. Также проверяется, что серверный сокет является TCP и работает по IPv4 протоколу. ''' def __init__(cls, clsname, bases, clsdict): # Список методов, кото...
PypiClean
/JPype1_py3-0.5.5.4-cp37-cp37m-win_amd64.whl/jpype/_jvmfinder.py
import os class JVMFinder(object): """ JVM library finder base class """ def __init__(self): """ Sets up members """ # Library file name self._libfile = "libjvm.so" # Predefined locations self._locations = ("/usr/lib/jvm", "/usr/java") ...
PypiClean
/HATasmota-0.7.0.tar.gz/HATasmota-0.7.0/hatasmota/mqtt.py
from __future__ import annotations import asyncio from collections.abc import Callable, Coroutine from dataclasses import dataclass import logging from typing import Any from .const import COMMAND_BACKLOG DEBOUNCE_TIMEOUT = 1 _LOGGER = logging.getLogger(__name__) class Timer: """Simple timer.""" def __in...
PypiClean
/BigchainDB-2.2.2.tar.gz/BigchainDB-2.2.2/bigchaindb/models.py
from bigchaindb.backend.schema import validate_language_key from bigchaindb.common.exceptions import (InvalidSignature, DuplicateTransaction) from bigchaindb.common.schema import validate_transaction_schema from bigchaindb.common.transaction import Transaction from bigchaindb....
PypiClean
/GenIce-1.0.11.tar.gz/GenIce-1.0.11/genice/load.py
from logging import getLogger import re import os from pathlib import Path from genice.importer import safe_import from genice.cell import rel_wrap import numpy as np from types import SimpleNamespace import pairlist as pl def str2rangevalues(s): values = s.split(":") assert len(values) > 0 if len(values) ...
PypiClean
/Misago-0.36.1.tar.gz/Misago-0.36.1/misago/static/misago/admin/momentjs/eo.js
;(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, (function (moment) { 'use strict'; ...
PypiClean
/CNVpytor-1.3.1.tar.gz/CNVpytor-1.3.1/cnvpytor/annotator.py
from __future__ import absolute_import, print_function, division import requests from .genome import * from .utils import decode_region _logger = logging.getLogger("cnvpytor.annotator") class Annotator: def __init__(self, reference_genome, biotypes=["protein_coding"]): """ Use Ensembl API rest t...
PypiClean
/Melopy3-0.1.3.4.tar.gz/Melopy3-0.1.3.4/README.txt
====== Melopy ====== A python library for playing with sound. by Jordan Scales (http://jordanscales.com) and friends on Github: http://jdan.github.io/Melopy Install it ========== You may need to use `sudo` for this to work. :: $ pip install melopy Load it ======= :: $ python Python 2.7.2 (default, J...
PypiClean
/CleanAdminDjango-1.5.3.1.tar.gz/CleanAdminDjango-1.5.3.1/django/contrib/admindocs/views.py
import inspect import os import re from django import template from django.template import RequestContext from django.conf import settings from django.contrib.admin.views.decorators import staff_member_required from django.db import models from django.shortcuts import render_to_response from django.core.exceptions imp...
PypiClean
/GTW-1.2.6.tar.gz/GTW-1.2.6/_RST/Request.py
from __future__ import absolute_import, division, print_function, unicode_literals from _GTW import GTW from _TFL import TFL import _GTW._RST import _GTW._RST.Signed_Token from _TFL import I18N from _TFL.Decorator import getattr_sa...
PypiClean
/Electrum-Zcash-Random-Fork-3.1.3b5.tar.gz/Electrum-Zcash-Random-Fork-3.1.3b5/gui/qt/transaction_dialog.py
import copy import datetime import json import traceback from PyQt5.QtCore import * from PyQt5.QtGui import * from PyQt5.QtWidgets import * from electrum_zcash.bitcoin import base_encode from electrum_zcash.i18n import _ from electrum_zcash.plugins import run_hook from electrum_zcash import simple_config from electr...
PypiClean
/Flask_AdminLTE3-1.0.9-py3-none-any.whl/flask_adminlte3/static/plugins/codemirror/addon/hint/javascript-hint.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) { var ...
PypiClean
/Flask_AppBuilder-4.3.6-py3-none-any.whl/flask_appbuilder/security/sqla/models.py
import datetime from flask import g from sqlalchemy import ( Boolean, Column, DateTime, ForeignKey, Integer, Sequence, String, Table, UniqueConstraint, ) from sqlalchemy.ext.declarative import declared_attr from sqlalchemy.orm import backref, relationship from ... import Model from...
PypiClean
/OctoBot-Trading-2.4.23.tar.gz/OctoBot-Trading-2.4.23/octobot_trading/personal_data/state.py
import asyncio import contextlib import octobot_commons.logging as logging import octobot_trading.enums as enums import octobot_trading.util as util class State(util.Initializable): PENDING_REFRESH_INTERVAL = 2 def __init__(self, is_from_exchange_data): super().__init__() # default state ...
PypiClean
/FastDataTime-0.0.8.tar.gz/FastDataTime-0.0.8/README.md
# FastDataTime 时间处理包 | Fastdatatime time processing package 使用方法在作者的第三方仓库中,可以自行查看 The usage method is in the author's third-party warehouse and can be used by yourself [codechina.csdn 教程链接|Tutorial links](https://codechina.csdn.net/qq_53280175/fastdatatime) FastDataTime 只是一个简单的时间处理库,可以快速输出时间。 FastDataTime It is ju...
PypiClean
/CiteSoft-0.3.8-py3-none-any.whl/CiteSoft-0.3.8.data/data/README.md
CiteSoft_py is a python implementation of CiteSoft. CiteSoft is a plain text standard consisting of a format and a protocol that exports the citations for the end-users for whichever softwares they have used. CiteSoft has been designed so that software dev-users can rely upon it regardless of coding language or platfo...
PypiClean
/LinOTP-2.11.1.tar.gz/LinOTP-2.11.1/linotp/tokens/__init__.py
from linotp.lib.registry import ClassRegistry from linotp.lib.error import TokenTypeNotSupportedError from linotp.config.environment import get_activated_token_modules from os import path, listdir, walk import logging log = logging.getLogger(__name__) # ---------------------------------------------------------------...
PypiClean
/HavNegpy-1.2.tar.gz/HavNegpy-1.2/docs/_build/html/_build/doctrees/nbsphinx/_build/html/_build/doctrees/nbsphinx/_build/doctrees/nbsphinx/_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
/AuthorizeSauce-0.5.0.tar.gz/AuthorizeSauce-0.5.0/authorize/data.py
import calendar from datetime import datetime import re from authorize.exceptions import AuthorizeInvalidError CARD_TYPES = { 'visa': r'4\d{12}(\d{3})?$', 'amex': r'37\d{13}$', 'mc': r'5[1-5]\d{14}$', 'discover': r'6011\d{12}', 'diners': r'(30[0-5]\d{11}|(36|38)\d{12})$' } class CreditCard(obje...
PypiClean
/Office365_REST_with_timeout-0.1.1-py3-none-any.whl/office365/sharepoint/sharing/role_type.py
class RoleType: """Specifies the types of role definitions that are available for users and groups.""" None_ = 0 """The role definition has no rights on the site (2).""" Guest = 1 """The role definition has limited right to view pages and specific page elements. This role is used to give users...
PypiClean
/Flask_RESTful_DRY-0.3.1-py3-none-any.whl/flask_dry/api/links.py
r'''Global link registry. Links are registered at program startup. First, they need a flask app: >>> from .app import DRY_Flask >>> current_app = DRY_Flask(__name__) # overrides import for testing And some authorization requirements: >>> from .authorization import Requirement, Base_auth_context >...
PypiClean
/Firenado-0.9.0a2.tar.gz/Firenado-0.9.0a2/firenado/service.py
from .sqlalchemy import with_session import functools import importlib import logging logger = logging.getLogger(__name__) class FirenadoService: """ Base class to handle services. A Firenado service is usually connected to a handler or a service. The developer can add extra configuration using the con...
PypiClean
/GeoNode-3.2.0-py3-none-any.whl/geonode/services/serviceprocessors/base.py
import logging from urllib.parse import quote from django.conf import settings from django.urls import reverse from urllib.parse import urlencode, urlparse, urljoin, parse_qs, urlunparse from geonode import geoserver from geonode.utils import check_ogc_backend from .. import enumerations from .. import models if c...
PypiClean
/Adeepspeed-0.9.2.tar.gz/Adeepspeed-0.9.2/deepspeed/comm/utils.py
# DeepSpeed Team import os import inspect from deepspeed.utils import get_caller_func def get_local_rank_from_launcher(): # DeepSpeed launcher will set it so get from there rank = os.environ.get('LOCAL_RANK') if rank is None: rank = os.environ.get('OMPI_COMM_WORLD_LOCAL_RANK') # Make it a...
PypiClean
/Euphorie-15.0.2.tar.gz/Euphorie-15.0.2/src/euphorie/client/resources/oira/script/chunks/27856.874d647f4a8608c8f3b2.min.js
(self.webpackChunk_patternslib_patternslib=self.webpackChunk_patternslib_patternslib||[]).push([[27856],{27856:function(e){ /*! @license DOMPurify 3.0.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.3/LICENSE */ e.export...
PypiClean
/BlueWhale3_Text-1.6.0-py3-none-any.whl/orangecontrib/text/datasets/README.txt
The following files originate from the Ana Cardoso Cachopo's Homepage: [http://ana.cachopo.org/datasets-for-single-label-text-categorization] and primarily focus on single-topic text categorization. * 20newsgroups-train.tab [20Newsgroups dataset] * 20newsgroups-test.tab [20Newsgroups dataset] * reute...
PypiClean
/Flask-Express-0.1.4.tar.gz/Flask-Express-0.1.4/README.md
# flask-express <img src="https://raw.githubusercontent.com/marktennyson/flask-express/main/logos/flask-express-logo.png"> # Downloads [![Downloads](https://pepy.tech/badge/flask-express)](https://pepy.tech/project/flask-express) [![Downloads](https://pepy.tech/badge/flask-express/month)](https://pepy.tech/project/fla...
PypiClean
/MarkdownSuperscript-2.1.1.tar.gz/MarkdownSuperscript-2.1.1/docs/installation.rst
.. highlight:: console ============ Installation ============ Stable release -------------- The easiest way to install Markdown Superscript is to use `pip`_. :: $ python -m pip install MarkdownSuperscript This will install the latest stable version. If you need an older version, you may pin or limit the requir...
PypiClean
/Gbtestapi0.1-0.1a10-py3-none-any.whl/gailbot/core/pipeline/pipeline.py
from typing import List, Dict, Any from dataclasses import dataclass from .component import Component, ComponentState, ComponentResult from gailbot.core.utils.threads import ThreadPool from gailbot.core.utils.logger import makelogger import networkx as nx Failure = ComponentResult(ComponentState.FAILED, None, 0) log...
PypiClean
/BNIAJFI_VitalSigns-0.0.13.tar.gz/BNIAJFI_VitalSigns-0.0.13/README.md
# Vital Signs > Scripts to create our annual, publicly-available, community-focused datasets; for Baltimore City. <img src="https://raw.githubusercontent.com/bniajfi/bniajfi/main/bnia_logo_new.png" height="160px" width="auto" style="max-width: autopx"> <h2>Hi! We are <a href="https://bniajfi.org/">BNIA-JFI</a>.</h2>...
PypiClean
/Flask-AWSCognito-1.3.tar.gz/Flask-AWSCognito-1.3/docs/build/searchindex.js
Search.setIndex({docnames:["auth_code","configure_aws","configure_flask","index","installation"],envversion:{"sphinx.domains.c":1,"sphinx.domains.changeset":1,"sphinx.domains.citation":1,"sphinx.domains.cpp":1,"sphinx.domains.javascript":1,"sphinx.domains.math":2,"sphinx.domains.python":1,"sphinx.domains.rst":1,"sphinx...
PypiClean
/NumParse-0.1.1.tar.gz/NumParse-0.1.1/README.md
# c3-NumParse This package provides a set of tools for parsing a number from a string. It currently suppports: - Parsing numeric values (e.g. "2410") - Parsing number words (e.g. "one hundred forty five thousand two hundred three") - Parsing negative numbers (e.g "negative fifty five") - Parsing mixed numeric values a...
PypiClean
/Grammaticomastix-0.0.1rc2-py3-none-any.whl/grammaticomastix/dchars/languages/hbo/transliterations/basic/ucombinations.py
from dchars.dchars import new_dstring from dchars.languages.hbo.dcharacter import DCharacterHBO from dchars.languages.hbo.transliterations.basic.basic import dchar__get_translit_str import itertools #/////////////////////////////////////////////////////////////////////////// def get_usefull_combinations(): """ ...
PypiClean
/KD_Lib-0.0.32.tar.gz/KD_Lib-0.0.32/README.md
<h1 align="center">KD-Lib</h1> <h3 align="center">A PyTorch model compression library containing easy-to-use methods for knowledge distillation, pruning, and quantization</h3> <div align='center'> [![Downloads](https://pepy.tech/badge/kd-lib)](https://pepy.tech/project/kd-lib) **[Documentation](https://kd-lib.re...
PypiClean
/CocoPy-1.1.0rc.zip/CocoPy-1.1.0rc/testSuite/TestTokens_Scanner.py
import sys class Token( object ): def __init__( self ): self.kind = 0 # token kind self.pos = 0 # token position in the source text (starting at 0) self.col = 0 # token column (starting at 0) self.line = 0 # token line (starting at 1) self.val = u'' # tok...
PypiClean
/DLTA-AI-1.1.tar.gz/DLTA-AI-1.1/DLTA_AI_app/mmdetection/mmdet/models/necks/hrfpn.py
import torch import torch.nn as nn import torch.nn.functional as F from mmcv.cnn import ConvModule from mmcv.runner import BaseModule from torch.utils.checkpoint import checkpoint from ..builder import NECKS @NECKS.register_module() class HRFPN(BaseModule): """HRFPN (High Resolution Feature Pyramids) paper:...
PypiClean
/NetworkSim-0.2.2.tar.gz/NetworkSim-0.2.2/examples/system_clocks.ipynb
``` cd .. from NetworkSim.simulation.tools.clock import TransmitterDataClock from NetworkSim.simulation.tools.clock import ControlClock import simpy dc1 = TransmitterDataClock() cc1 = ControlClock() def clock(env): while True: print(f'Data ticks at {env.now}') yield env.timeout(dc1.clock_cycle) ...
PypiClean
/DBUtils-3.0.3.tar.gz/DBUtils-3.0.3/dbutils/persistent_pg.py
from . import __version__ from .steady_pg import SteadyPgConnection try: # Prefer the pure Python version of threading.local. # The C implementation turned out to be problematic with mod_wsgi, # since it does not keep the thread-local data between requests. from _threading_local import local except Imp...
PypiClean
/Flask-DebugToolbar-0.13.1.tar.gz/Flask-DebugToolbar-0.13.1/src/flask_debugtoolbar/static/codemirror/mode/lua/lua.js
CodeMirror.defineMode("lua", function(config, parserConfig) { var indentUnit = config.indentUnit; function prefixRE(words) { return new RegExp("^(?:" + words.join("|") + ")", "i"); } function wordRE(words) { return new RegExp("^(?:" + words.join("|") + ")$", "i"); } var specials = wordRE(parserCo...
PypiClean
/MindsDB-23.8.3.0.tar.gz/MindsDB-23.8.3.0/mindsdb/integrations/handlers/reddit_handler/reddit_tables.py
import pandas as pd from mindsdb.integrations.libs.api_handler import APITable from mindsdb_sql.parser import ast from mindsdb.integrations.utilities.sql_utils import extract_comparison_conditions class CommentTable(APITable): def select(self, query: ast.Select) -> pd.DataFrame: '''Select data from the co...
PypiClean
/KeSi-1.6.0-py3-none-any.whl/kesi/susia/POJ.py
import unicodedata import re from kesi.butkian.kongiong import KHIN_SIANN_HU from kesi.susia.kongke import thiah, tshiau_tuasiosia, SuSiaTshoNgoo def tsuanPOJ(bun): si_khinsiann = bun.startswith(KHIN_SIANN_HU) if si_khinsiann: bun = bun.replace(KHIN_SIANN_HU, '') try: siann, un, tiau, tua...
PypiClean
/Flask-QiniuStorage-0.9.5.zip/Flask-QiniuStorage-0.9.5/README.rst
Flask-QiniuStorage ================== `七牛云存储 <http://www.qiniu.com/>`_ Flask扩展,Qiniu Storage for Flask 安装 ------------ .. code-block:: python pip install Flask-QiniuStorage 配置 ------------ +------------------------+-------------------+ | 配置项 | 说明 | +========================+=======...
PypiClean
/LargeNumbers-0.1.8.tar.gz/LargeNumbers-0.1.8/README.md
<!--- Copyright 2022 Hamidreza Sadeghi. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agr...
PypiClean
/Espynoza-0.2.5.tar.gz/Espynoza-0.2.5/ESP/handlers/NoiseDetect.py
import machine import time import BaseHandler #################################################################################################### class Handler (BaseHandler.Handler): ''' Target : ESP8266, Description : Read input connected to a digital sound input module, detect noise ...
PypiClean
/ItunesLibrarian-1.0.4-py3-none-any.whl/ituneslibrarian/modify.py
import os.path # import urllib.request import ituneslibrarian.utils as utils from mutagen.easyid3 import EasyID3 from mutagen.mp3 import MP3 def library(library): for track in library: title = track["Name"] tokens = [] # location = urllib.request.unquote( # track["Location"][...
PypiClean
/MAVR-0.93.tar.gz/MAVR-0.93/Pipelines/Sanger.py
import os from collections import OrderedDict import numpy as np from Bio import SeqIO from Pipelines.Abstract import Pipeline from RouToolPa.Collections.General import IdList, TwoLvlDict from RouToolPa.Routines import MatplotlibRoutines class SangerPipeline(Pipeline): def __init__(self, workdir="./", max_thr...
PypiClean
/Hector_Observations_Pipeline-1.4-py3-none-any.whl/hop/hexabundle_allocation/allocate_hexabundles.py
import matplotlib.pyplot as plt import pandas as pd import numpy as np import csv import time start_time = time.time() from problem_operations.conflicts.functions import find_all_blocked_magnets,\ create_list_of_fully_blocked_magnets from problem_operations.conflicts.blocked_magnet ...
PypiClean
/Naver_Series-1.1.3.Beta.tar.gz/Naver_Series-1.1.3.Beta/README.md
Naver Series --- > 🙏sorry for about immature english <h3>Installation</h3> --- requires requests, beautifulsoup4 `python3 -m pip install Naver-Series` > https://pypi.org/project/Naver-Series/1.1.0.Beta/ --- **option** | Symbol | Description ...
PypiClean
/BinTut-0.3.3.tar.gz/BinTut-0.3.3/README.rst
BinTut @@@@@@ .. image:: https://img.shields.io/pypi/v/bintut.svg :target: https://pypi.python.org/pypi/BinTut Dynamic or live demonstration of classical exploitation techniques of typical memory corruption vulnerabilities, from debugging to payload generation and exploitation, for educational purposes :yum:. W...
PypiClean
/Lu_Project_4_C8123-0.0.2.tar.gz/Lu_Project_4_C8123-0.0.2/Lu_Project_4_C8123/base/metrics.py
import numpy as np import torch from torch import Tensor from torch.nn.functional import nll_loss from ..other.uncertain_metrics import uncertain class BaseMetric: """ Abstract metric class, for record history data. define the interface for all metric classes. every subclass should implement 'rec...
PypiClean
/DI_engine-0.4.9-py3-none-any.whl/dizoo/smac/envs/smac_map.py
from pysc2.maps import lib import os class SMACMap(lib.Map): directory = os.path.join(os.path.dirname(__file__), "maps/SMAC_Maps") download = "https://github.com/oxwhirl/smac#smac-maps" players = 2 step_mul = 8 game_steps_per_episode = 0 # Copied from smac/env/starcraft2/maps/smac_maps.py map_pa...
PypiClean
/FastGets-0.3.5.tar.gz/FastGets-0.3.5/fastgets/stats/instance.py
import time import datetime from ..core.client import get_client from ..utils import utc2datetime class InstanceStats(object): @classmethod def check_rate_limit(cls, instance_id, second_rate_limit): now = datetime.datetime.now() key = '{}:rate_limit'.format(instance_id) field = now.s...
PypiClean
/MPT5.0.3.1-0.3.1.tar.gz/MPT5.0.3.1-0.3.1/src/MPT5/Mainpro.py
from Allimp import * import locale from Config.Init import * import GUI.window2 as window2 import GUI.Start as Strt class mainApp(wx.App): def OnInit(self): self.locale = None wx.Locale.AddCatalogLookupPathPrefix(LOCALE_PATH) self.config = self.GetConfig() lang = self.config.Re...
PypiClean