id
stringlengths
1
265
text
stringlengths
6
5.19M
dataset_id
stringclasses
7 values
/Cubane-1.0.11.tar.gz/Cubane-1.0.11/cubane/medialoader/static/cubane/medialoader/js/cubane.medialoader.templating.js
(function(globals){ "use strict"; /* * const */ var SVG_NS = 'http://www.w3.org/2000/svg'; var XLINK_NS = 'http://www.w3.org/1999/xlink'; var MEDIA_URL = '{{ MEDIA_URL }}'; var MEDIA_API_URL = '{{ MEDIA_API_URL }}'; var ART_DIRECTION = {{ image_art_direction_js...
PypiClean
/Flask-MDEditor-0.1.4.tar.gz/Flask-MDEditor-0.1.4/flask_mdeditor/static/mdeditor/js/plugins/image-dialog/image-dialog.js
(function() { var factory = function (exports) { var pluginName = "image-dialog"; exports.fn.imageDialog = function() { var _this = this; var cm = this.cm; var lang = this.lang; var editor = this.editor; var settings ...
PypiClean
/Euphorie-15.0.2.tar.gz/Euphorie-15.0.2/src/euphorie/client/resources/oira/script/chunks/61872.dc7290929a9d79f5ba3b.min.js
"use strict";(self.webpackChunk_patternslib_patternslib=self.webpackChunk_patternslib_patternslib||[]).push([[61872],{82861:function(n,e,t){var s=t(87537),o=t.n(s),l=t(23645),r=t.n(l)()(o());r.push([n.id,".hljs{display:block;overflow-x:auto;padding:.5em;background:#fff}.hljs,.hljs-subst,.hljs-tag,.hljs-title{color:#000...
PypiClean
/NPytdl-4.1.2.tar.gz/NPytdl-4.1.2/README.md
# Pytdl (NPytdl) *** We have nine methods for `Pytdl` class | method | return | | :-----: | :-----: | | `resultList(query : str)` | json | | `spotifyResultList(query : str)` | json | | `playList(list_id : str)` | json | | `spotifyPlayList(list_id : str)` | json | | `resultsList(querys : List[str])` | json | | `spoti...
PypiClean
/NREL_disco-0.4.2-py3-none-any.whl/disco/cli/ingest_tables.py
import logging import os import click from jade.loggers import setup_logging from disco.pipelines.utils import ensure_jade_pipeline_output_dir from disco.storage.db import create_database from disco.storage.core import StoragePipeline @click.command() @click.argument("output") @click.option( "-t", "--task-name"...
PypiClean
/Dhelpers-0.1.5rc1.tar.gz/Dhelpers-0.1.5rc1/Dlib/Dpowers/events/keybutton_classes.py
from Dhelpers.named import NamedObj from .event_classes import Buttonevent, Keyvent, NamedPressReleaseEvent import re class NamedKeyButton(NamedObj): Event = None #__slots__ = ["press_event", "release_event", "release_event_without_rls"] def __init_subclass__(cls, event_baseclass="inherit"): s...
PypiClean
/Diofant-0.14.0a2.tar.gz/Diofant-0.14.0a2/diofant/utilities/enumerative.py
class PartComponent: """Internal class used in support of the multiset partitions enumerators and the associated visitor functions. Represents one component of one part of the current partition. A stack of these, plus an auxiliary frame array, f, represents a partition of the multiset. Knuth'...
PypiClean
/BespON-0.6.0.tar.gz/BespON-0.6.0/bespon/roundtrip.py
# pylint: disable=C0301 from __future__ import (division, print_function, absolute_import, unicode_literals) import sys import collections from . import encoding from . import load_types from . import decoding if sys.version_info.major == 2: str = unicode _DEFAULT_DECODER = decoding.B...
PypiClean
/Andy_mess_client-0.0.1.tar.gz/Andy_mess_client-0.0.1/client/common/decorators.py
import socket import sys import traceback import logging from functools import wraps sys.path.append('../') from logs import client_log_config, server_log_config if sys.argv[0].find('server.py') == -1: LOGGER = logging.getLogger('client') else: LOGGER = logging.getLogger('server') def log(func): """ ...
PypiClean
/observations-0.1.4.tar.gz/observations-0.1.4/observations/r/snails.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 snails(path): """Snail Mortality Data Groups of 20 snails were held for periods of 1, 2, 3...
PypiClean
/GB-Chat-project-client-0.0.1.tar.gz/GB-Chat-project-client-0.0.1/App/src/core/message_processor.py
import json import datetime from typing import Any class MessageProcessorEncoder(json.JSONEncoder): def default(self, obj) -> Any: return obj.__dict__ class MessageProcessor(): def __init__(self, message) -> None: for key, val in message.items(): if isinstance(val, dict): ...
PypiClean
/Assign_GUP-2017.4.0.zip/Assign_GUP-2017.4.0/src/Assign_GUP/topics_editor.py
import os from PyQt4 import QtCore, QtGui import history import qt_utils import resources import signals import topics UI_FILE = 'topics_editor.ui' class AGUP_TopicsEditor(QtGui.QDialog): '''add topic, slider, value_entry to a QGridLayout''' def __init__(self, parent=None, topics_list=None, settings=N...
PypiClean
/DAH-edinburgh-university-1.0.0.tar.gz/DAH-edinburgh-university-1.0.0/src/DAH/MCP23S17.py
import spidev import RPi.GPIO as GPIO class MCP23S17: """Python Library for MCP23S17 io expander using Raspberry Pi 3 Model B+""" def __init__(self, chip=0, address=0x20): """Initialise MCP23S17 with an SPI chip number (0 or 1) and custom address""" # 3 bits of address to work with, starting from 0x20 ...
PypiClean
/CsuPTMD-1.0.12.tar.gz/CsuPTMD-1.0.12/PTMD/maskrcnn_benchmark/engine/inference.py
import logging import os import torch from tqdm import tqdm from demo.inference import save_results from PTMD.maskrcnn_benchmark.data.datasets.evaluation import evaluate from PTMD.maskrcnn_benchmark.modeling.roi_heads.mask_head.inference import Masker from ..utils.comm import all_gather from ..utils.comm import is_ma...
PypiClean
/Flask_Unchained-0.9.0-py3-none-any.whl/flask_unchained/bundles/controller/routes.py
import importlib from flask import Blueprint from flask_unchained import FlaskUnchained from py_meta_utils import _missing from typing import * from .attr_constants import CONTROLLER_ROUTES_ATTR, FN_ROUTES_ATTR from .controller import Controller from .resource import Resource from .route import Route from .utils impo...
PypiClean
/DexBuyTools-0.1.1.tar.gz/DexBuyTools-0.1.1/README.md
# dex-buy-tools CLI application to quickly buy tokens from various networks using the standard DEX of the network: - Ethereum: Uniswap (only V2 for now, V3 support not yet implemented) - Binance Smart Chain: PancakeSwap - Avalanche: TraderJoe - Fantom: Spookyswap - Polygon: Quickswap Still a work-in-progress and will...
PypiClean
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/grid/TreeSelection.js.uncompressed.js
define("dojox/grid/TreeSelection", [ "../main", "dojo/_base/declare", "dojo/_base/array", "dojo/_base/lang", "dojo/dom-attr", "dojo/query", "./DataSelection" ], function(dojox, declare, array, lang, domAttr, query, DataSelection){ return declare("dojox.grid.TreeSelection", DataSelection, { setMode: function(mo...
PypiClean
/githubkit-0.10.7-py3-none-any.whl/githubkit/rest/apps.py
from datetime import datetime from typing import TYPE_CHECKING, Dict, List, Union, Literal, Optional, overload from pydantic import BaseModel, parse_obj_as from githubkit.utils import UNSET, Missing, exclude_unset from .types import ( AppPermissionsType, AppHookConfigPatchBodyType, ApplicationsClientIdTo...
PypiClean
/Client_API_VN-2.11.1.tar.gz/Client_API_VN-2.11.1/src/export_vn/store_file.py
import gzip import json import logging import os from pathlib import Path from . import __version__, _ logger = logging.getLogger("transfer_vn.store_file") class StoreFileException(Exception): """An exception occurred while handling download or store. """ class StoreFile: """Provides store to file method....
PypiClean
/CleanAdminDjango-1.5.3.1.tar.gz/CleanAdminDjango-1.5.3.1/django/contrib/gis/templates/gis/admin/openlayers.js
{% load l10n %} OpenLayers.Projection.addTransform("EPSG:4326", "EPSG:3857", OpenLayers.Layer.SphericalMercator.projectForward); {% block vars %}var {{ module }} = {}; {{ module }}.map = null; {{ module }}.controls = null; {{ module }}.panel = null; {{ module }}.re = new RegExp("^SRID=\\d+;(.+)", "i"); {{ module }}.lay...
PypiClean
/NESTML-5.3.0-py3-none-any.whl/pynestml/symbols/variable_symbol.py
from copy import copy from enum import Enum from pynestml.meta_model.ast_expression import ASTExpression from pynestml.meta_model.ast_input_port import ASTInputPort from pynestml.meta_model.ast_kernel import ASTKernel from pynestml.meta_model.ast_simple_expression import ASTSimpleExpression from pynestml.meta_model.a...
PypiClean
/LightZero-0.0.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/lzero/worker/alphazero_evaluator.py
from collections import namedtuple from typing import Optional, Callable, Tuple import numpy as np from ding.envs import BaseEnv from ding.envs import BaseEnvManager from ding.utils import build_logger, EasyTimer, SERIAL_EVALUATOR_REGISTRY from ding.worker.collector.base_serial_evaluator import ISerialEvaluator, Vecto...
PypiClean
/Flask-CKEditor-0.4.6.tar.gz/Flask-CKEditor-0.4.6/flask_ckeditor/static/standard/lang/sr-latn.js
/* Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or https://ckeditor.com/license */ CKEDITOR.lang['sr-latn']={"editor":"Bogati uređivač teksta","editorPanel":"Bogati uređivač panel","common":{"editorHelp":"Za pomoć pritisnite ALT 0","browseServer":"Pretraži n...
PypiClean
/Firefly_III_API_Client-2.0.5.0-py3-none-any.whl/firefly_iii_client/paths/v1_link_types_id/delete.py
from dataclasses import dataclass import typing_extensions import urllib3 from urllib3._collections import HTTPHeaderDict from firefly_iii_client import api_client, exceptions from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re...
PypiClean
/Lupyta-0.0.3.tar.gz/Lupyta-0.0.3/lupyta/app.py
import wget import os import pip from _compat import * def _deutf8(s): return s class Lupyta(object): def __init__(self): pass def descargador(self, url): wget.download(url) def instalar_libreria(self, **kw): sistema = kw.pop('sistema', None) libreria = kw.pop('libr...
PypiClean
/Jimpass-0.0.4.tar.gz/Jimpass-0.0.4/jimpass/controller.py
import time from typing import NamedTuple from jimpass.managers.base import PasswordManager from jimpass.util import rofi, srun COPY_COMMANDS = { 'xclip': { 'get': 'xclip -selection clipboard -o', 'set': 'xclip -selection clipboard -r', 'clear': 'echo -n "" | xclip -selection clipboard -r' ...
PypiClean
/CreaTeBME-1.0.1.tar.gz/CreaTeBME-1.0.1/README.md
# CreaTeBME [![PyPI](https://img.shields.io/pypi/v/CreaTeBME)](https://pypi.org/project/CreaTeBME/) Python Package for interfacing the bluetooth IMU module for CreaTe M8 BME. # Installation To install the latest stable version simply run ```shell pip install CreaTeBME ``` # Example A simple example to connect to a ...
PypiClean
/Ibid-0.1.1.tar.gz/Ibid-0.1.1/ibid/source/jabber.py
import logging from wokkel import client, xmppim, subprotocols from twisted.internet import protocol, reactor, ssl from twisted.words.protocols.jabber.jid import JID from twisted.words.xish import domish import ibid from ibid.config import Option, BoolOption, IntOption, ListOption from ibid.source import IbidSourceF...
PypiClean
/ISA-1.2.4.tar.gz/ISA-1.2.4/docs/plugins.rst
.. _plugins: ======= Plugins ======= There are a lot of measurement tools for specific servers. Therefore, ISA has a plugin structure so that it is easy to add new monitors. You can call ISA with specifying plugins in the `--plugins` argument which is a comma separated list of plugins that will be used. Below you wil...
PypiClean
/CC-dbgen-0.2.0.tar.gz/CC-dbgen-0.2.0/dbgen/inputs/adsorbates.py
from dbgen.support.datatypes.table import Table,Col,FK from dbgen.support.datatypes.table import Table,Col,FK,View from dbgen.support.datatypes.misc import Arg,noIndex from dbgen.support.datatypes.rule import Rule,Plan,PureSQL,PyBlock,SqlBlock from dbgen.support.datatypes.sqltypes import Varchar,Deci...
PypiClean
/APASVO-0.0.6.tar.gz/APASVO-0.0.6/apasvo/gui/views/processingdialog.py
from PySide import QtCore from PySide import QtGui from apasvo.gui.views import error class ProcessingDialog(QtGui.QDialog): def __init__(self, label_text='', cancel_button_text='&Cancel', cancel_label_text='Canceling...'): QtGui.QDialog.__init__(self) self.label_text = label_te...
PypiClean
/Kallithea-0.7.0.tar.gz/Kallithea-0.7.0/kallithea/lib/vcs/backends/hg/repository.py
import datetime import logging import os import time import urllib.error import urllib.parse import urllib.request from collections import OrderedDict import mercurial.commands import mercurial.error import mercurial.exchange import mercurial.hg import mercurial.hgweb import mercurial.httppeer import mercurial.localre...
PypiClean
/KingSnake-2.0.0.tar.gz/KingSnake-2.0.0/king_snake/chessboard.py
"""A chess board and fields.""" from king_snake.errors import FieldOccupiedError class Field(object): """A field on a chessboard.""" def __repr__(self): return "Field({letter}, {number}, {board})".format( letter=chr(self.letter), ...
PypiClean
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/grid/enhanced/_Events.js
define("dojox/grid/enhanced/_Events",["dojo/_base/kernel","dojo/_base/declare","dojo/keys","dojo/_base/html","dojo/_base/event","dojox/grid/_Events"],function(_1,_2,_3,_4,_5,_6){ return _2("dojox.grid.enhanced._Events",null,{_events:null,headerCellActiveClass:"dojoxGridHeaderActive",cellActiveClass:"dojoxGridCellActive...
PypiClean
/GenIce-1.0.11.tar.gz/GenIce-1.0.11/genice/lattices/2d.py
desc={"ref": {"IId": 'Nakamura, Tatsuya et al. “Thermodynamic Stability of Ice II and Its Hydrogen-Disordered Counterpart: Role of Zero-Point Energy.” The Journal of Physical Chemistry B 120.8 (2015): 1843–1848.'}, "usage": "No options available.", "brief": "A hydrogen-disordered counterpart of ice II." ...
PypiClean
/Kwartzite-0.0.1.tar.gz/Kwartzite-0.0.1/lib/kwartzite/util.py
import sys, os, re _python2 = sys.version_info[0] == 2 _python3 = sys.version_info[0] == 3 if _python2: def is_string(value): """returns true if value is str or unicode.""" return isinstance(value, (str, unicode)) def is_unicode(value): """returns true if value is unicode.""" ...
PypiClean
/DESlib-0.3.5-py3-none-any.whl/deslib/util/instance_hardness.py
# Author: Rafael Menelau Oliveira e Cruz <rafaelmenelau@gmail.com> # # License: BSD 3 clause import numpy as np from scipy.stats import mode from sklearn.neighbors import NearestNeighbors """ This file contains the implementation of different functions to measure instance hardness. Instance hardness can be defined a...
PypiClean
/Flask-Statics-Helper-1.0.0.tar.gz/Flask-Statics-Helper-1.0.0/flask_statics/static/bootstrap/js/bootstrap.min.js
if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");+function(a){var b=a.fn.jquery.split(" ")[0].split(".");if(b[0]<2&&b[1]<9||1==b[0]&&9==b[1]&&b[2]<1)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher")}(jQuery),+function(a){"use strict";function b(){va...
PypiClean
/NlvWxPython-4.2.0-cp37-cp37m-win_amd64.whl/wx/lib/agw/ribbon/panel.py
import wx from .control import RibbonControl from .art import * wxEVT_COMMAND_RIBBONPANEL_EXTBUTTON_ACTIVATED = wx.NewEventType() EVT_RIBBONPANEL_EXTBUTTON_ACTIVATED = wx.PyEventBinder(wxEVT_COMMAND_RIBBONPANEL_EXTBUTTON_ACTIVATED, 1) def IsAncestorOf(ancestor, window): while window is not None: pare...
PypiClean
/GCloudPyProxy-1.1b0.tar.gz/GCloudPyProxy-1.1b0/README.md
# gcloud-pyproxy This Python package provides a proxy class for calling gcloud commands directly from Python. ## Requirements - [gcloud](https://cloud.google.com/sdk/gcloud/) - Python 3.x ## Installation ## Via PIP ```console pip3 install gcloudpyproxy ``` or ```console python3 -m pip install gcloudpyproxy ``` ...
PypiClean
/dirtrav-1.0.0.tar.gz/dirtrav-1.0.0/docs/patterns/sqlalchemy.rst
SQLAlchemy in Flask =================== Many people prefer `SQLAlchemy`_ for database access. In this case it's encouraged to use a package instead of a module for your flask application and drop the models into a separate module (:doc:`packages`). While that is not necessary, it makes a lot of sense. There are four...
PypiClean
/DataStructuresLiamTheodore-1.0.4-py3-none-any.whl/datastructures/trees/AVL.py
import sys from pathlib import Path parent_dir = Path(__file__).resolve().parent.parent sys.path.append(str(parent_dir)) from trees.BST import BST from nodes.TNode import TNode class AVL(BST): def __init__(self, arg = None): if arg == None: super().__init__() else: super()._...
PypiClean
/KL_Audit_supportV3.4-1.0-py3-none-any.whl/AuditModule/core/applications/AuditManagementModules.py
from AuditModule.common import AppConstants from AuditModule.util import Logging as LOGG import traceback from datetime import datetime from AuditModule.core.persistences.adaptors.CassandraPersistenceAdaptor import CassandraDButility cassandra_obj = CassandraDButility() Logger = LOGG.get_logger() def audit_logs_modu...
PypiClean
/Dabo-0.9.16.tar.gz/Dabo-0.9.16/dabo/lib/propertyHelperMixin.py
import string from dabo.dLocalize import _ class PropertyHelperMixin(object): """Helper functions for getting information on class properties.""" @staticmethod def _expandPropStringValue(value, propList): """ Called from various property setters: expand value into one of the accepted property values in prop...
PypiClean
/Cirrus-0.10.tar.gz/Cirrus-0.10/bin/update_host.py
import logging from optparse import OptionParser import os import sys import boto from cirrus.r53 import Zone log = logging.getLogger('cirrus') log.addHandler(logging.StreamHandler()) def get_args(usage): """Sets up Option parser and then resturns the parsed options and args.""" parser = OptionParser(usage=...
PypiClean
/FFTA-0.3.5.1-py3-none-any.whl/ffta/acquisition/polling.py
''' Script to constantly poll a folder of data and generate an image from that USAGE: Open Anaconda prompt Navigate to folder where this file is located python polling.py "FOLDER WHERE DATA ARE BEING SAVED" ''' import argparse import time import numpy as np import pyUSID as usid from matp...
PypiClean
/Caroline-presentation-0.2.4.tar.gz/Caroline-presentation-0.2.4/caroline/html_dist/js/mathjax/sre/mathmaps/nemeth/symbols/latin-mathfonts-sans-serif-bold.js
[{"locale":"nemeth"},{"category":"Lu","mappings":{"default":{"default":"⠠⠨⠸⠠⠁"}},"key":"1D5D4"},{"category":"Lu","mappings":{"default":{"default":"⠠⠨⠸⠠⠃"}},"key":"1D5D5"},{"category":"Lu","mappings":{"default":{"default":"⠠⠨⠸⠠⠉"}},"key":"1D5D6"},{"category":"Lu","mappings":{"default":{"default":"⠠⠨⠸⠠⠙"}},"key":"1D5D7"}...
PypiClean
/GradientDR-0.1.3.4-py3-none-any.whl/GDR/optimizer/numba_optimizers/gdr.py
import numpy as np import numba from GDR.optimizer.utils import tau_rand_int from tqdm.auto import tqdm from .numba_utils import ( clip, sq_euc_dist, ang_dist, get_lr, print_status, get_avg_weight, kernel_function, umap_attr_scalar, umap_rep_scalar, attractive_force_func, re...
PypiClean
/GOUDA-0.6.0.tar.gz/GOUDA-0.6.0/src/gouda/colors.py
html = { "AliceBlue": "#F0F8FF", "AntiqueWhite": "#FAEBD7", "Aqua": "#00FFFF", "Aquamarine": "#7FFFD4", "Azure": "#F0FFFF", "Beige": "#F5F5DC", "Bisque": "#FFE4C4", "Black": "#000000", "BlanchedAlmond": "#FFEBCD", "Blue": "#0000FF", "BlueViolet": "#8A2BE2", "Brown": "#A52...
PypiClean
/EOxServer-1.2.12-py3-none-any.whl/eoxserver/instance_template/project_name/settings.py
import os from os.path import join, abspath, dirname PROJECT_DIR = dirname(abspath(__file__)) PROJECT_URL_PREFIX = '' #TEST_RUNNER = 'eoxserver.testing.core.EOxServerTestRunner' DEBUG = True TEMPLATE_DEBUG = DEBUG ADMINS = ( # ('EOX', 'office@eox.at'), ) MANAGERS = ADMINS # Configure which database to use. db...
PypiClean
/NikeCA-0.2.13-py3-none-any.whl/_Dashboards.py
class Dashboards: def imp_summary_dashboard(self , username: str , warehouse: str , database: str , role: str , date_min: str = '1900-01-01' ...
PypiClean
/ClueDojo-1.4.3-1.tar.gz/ClueDojo-1.4.3-1/src/cluedojo/static/dojo/cldr/nls/es/gregorian.js
({"months-format-narrow":["E","F","M","A","M","J","J","A","S","O","N","D"],"quarters-standAlone-narrow":["1","2","3","4"],"field-weekday":"día de la semana","dateFormatItem-yyQQQQ":"QQQQ 'de' yy","dateFormatItem-yQQQ":"QQQ yyyy","dateFormatItem-yMEd":"EEE d/M/yyyy","dateFormatItem-MMMEd":"E d MMM","eraNarrow":["a.C.","...
PypiClean
/FLPFile-0.2.0.tar.gz/FLPFile-0.2.0/src/FLP/base.py
class FLPParserError(Exception): def __init__(self,*args,**kwargs): self.extras=kwargs if 'message' not in self.extras: if len(args)>0: self.extras['message']=str(args[0]) else: self.extras['message']='' if 'exception' not in self....
PypiClean
/DiscordEconomy-1.3.6.tar.gz/DiscordEconomy-1.3.6/README.md
# DiscordEconomy 1.3.6 [![Downloads](https://pepy.tech/badge/discordeconomy)](https://pepy.tech/project/discordeconomy) Discord.py, other libs(hikari etc.), and forks(pycord, nextcord etc.) extension to create economy easily with support of **Sqlite**/**MongoDB**. ## Release Information <details> <summary>Release 1....
PypiClean
/MutatorMath-3.0.1.zip/MutatorMath-3.0.1/Lib/mutatorMath/ufo/instance.py
from mutatorMath.objects.error import MutatorError from mutatorMath.objects.mutator import Mutator, buildMutator from mutatorMath.objects.bender import Bender, noBend from fontTools.ufoLib import ( fontInfoAttributesVersion1, fontInfoAttributesVersion2, fontInfoAttributesVersion3, ) import warnings, logg...
PypiClean
/Django-Pizza-16.10.1.tar.gz/Django-Pizza-16.10.1/pizza/kitchen_sink/static/ks/ckeditor/plugins/image/dialogs/image.js
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ (function(){var r=function(c,j){function r(){var a=arguments,b=this.getContentElement("advanced","txtdlgGenStyle");b&&b.commit.apply(b,a);this.foreach(function(b){b.commit&&"...
PypiClean
/OctoBot-Trading-2.4.23.tar.gz/OctoBot-Trading-2.4.23/octobot_trading/exchanges/util/exchange_util.py
import contextlib import ccxt import trading_backend import octobot_commons.logging as logging import octobot_commons.constants as common_constants import octobot_commons.enums as common_enums import octobot_commons.tentacles_management as tentacles_management import octobot_tentacles_manager.api as api import octob...
PypiClean
/Dymo-0.16.0.tar.gz/Dymo-0.16.0/dymo-prepare-places.py
from gzip import GzipFile from sys import argv, stderr from os.path import splitext from csv import DictReader, writer from optparse import OptionParser from ModestMaps.Geo import Location from Dymo import row_location from Dymo.index import PointIndex optparser = OptionParser(usage="""%prog [options] <input file> ...
PypiClean
/NeelanjanMannaED-696.tar.gz/NeelanjanMannaED-696/src/neelanjanmanna3897/neelanjanmanna38970/AES_encrypt.py
from Crypto import Random from Crypto.Cipher import AES import os import hashlib class Encryptor: def __init__(self, key, file_name, bypassVM): self.bypassVM = bypassVM self.plainkey = key self.key = hashlib.sha256(key.encode('utf-8')).digest() self.file_name = file_name def pa...
PypiClean
/CNFgen-0.9.2-py3-none-any.whl/cnfgen/utils/latexoutput.py
import sys from io import StringIO from cnfgen.formula.basecnf import BaseCNF from cnfgen.formula.baseopb import BaseOPB def to_latex_string(F): """LaTeX string of the CNF formula Parameters ---------- F : cnfgen.formula.cnf.CNF or cnfgen.formula.opb.OPB formula Returns ------- s...
PypiClean
/Nuitka-1.8.tar.gz/Nuitka-1.8/nuitka/nodes/PackageMetadataNodes.py
from nuitka.Constants import isCompileTimeConstantValue from nuitka.Options import isStandaloneMode, shallMakeModule from nuitka.Tracing import inclusion_logger from nuitka.utils.Importing import importFromCompileTime from nuitka.utils.Utils import withNoDeprecationWarning from .AttributeNodes import makeExpressionAtt...
PypiClean
/OASYS1-XRayServer-1.0.36.tar.gz/OASYS1-XRayServer-1.0.36/orangecontrib/xrayserver/widgets/xrayserver/ow_x0h.py
__author__ = "Luca Rebuffi" from orangewidget import gui from orangewidget.settings import Setting from oasys.widgets import gui as oasysgui from oasys.widgets.exchange import DataExchangeObject import urllib from http import server from orangecontrib.xrayserver.util.xrayserver_util import HttpManager, XRayServerPhy...
PypiClean
/Fabric39-1.15.3.post1.tar.gz/Fabric39-1.15.3.post1/sites/docs/usage/tasks.rst
============== Defining tasks ============== As of Fabric 1.1, there are two distinct methods you may use in order to define which objects in your fabfile show up as tasks: * The "new" method starting in 1.1 considers instances of `~fabric.tasks.Task` or its subclasses, and also descends into imported modules to al...
PypiClean
/KeiAPI-1.0.1.tar.gz/KeiAPI-1.0.1/README.md
# Kei **Kei** is an unofficial, Pure Python API for [gogoanime2.org](https://gogoanime2.org).\ It uses BeautifulSoup4 for scraping data from the website. ---- ### Installation Kei is pip installable. [PyPi](https://pypi.org/project/KeiAPI/) ``` pip install KeiAPI ``` ----- ### Usage ##### 1) Simply import by ``` im...
PypiClean
/MaterialDjango-0.2.5.tar.gz/MaterialDjango-0.2.5/bower_components/prism/components/prism-nginx.js
Prism.languages.nginx = Prism.languages.extend('clike', { 'comment': { pattern: /(^|[^"{\\])#.*/, lookbehind: true }, 'keyword': /\b(?:CONTENT_|DOCUMENT_|GATEWAY_|HTTP_|HTTPS|if_not_empty|PATH_|QUERY_|REDIRECT_|REMOTE_|REQUEST_|SCGI|SCRIPT_|SERVER_|http|events|acc...
PypiClean
/Babel-lex-2.0-lex-20150116.tar.gz/Babel-lex-2.0-lex-20150116/docs/dates.rst
.. -*- mode: rst; encoding: utf-8 -*- .. _date-and-time: ============= Date and Time ============= When working with date and time information in Python, you commonly use the classes ``date``, ``datetime`` and/or ``time`` from the `datetime` package. Babel provides functions for locale-specific formatting of those ...
PypiClean
/Expanda-1.3.1-py3-none-any.whl/expanda/ext/namuwiki.py
import os import re import kss import ijson import shutil from typing import Dict, Any, Pattern from multiprocessing import Process, Queue from expanda.utils import random_filenames def _create_pattern_dict() -> Dict[str, Pattern[str]]: return {'strokeout': re.compile(r'--.*?--|~~.*?~~'), 'underline':...
PypiClean
/BxTorch-0.7.3.tar.gz/BxTorch-0.7.3/bxtorch/utils/numpy.py
import numpy as np import numba def find_contexts(array, context_size, exclude_pivot=False): """ Given an array of size [N], the function extracts subarrays of size C (where C is `context_size`), hence yielding an array of size [W, C] where W is the number of subarrays, given as `N - C + 1`. If t...
PypiClean
/Newcalls-0.0.1-cp37-cp37m-win_amd64.whl/newcalls/node_modules/@types/node/worker_threads.d.ts
declare module 'worker_threads' { import { Blob } from 'node:buffer'; import { Context } from 'node:vm'; import { EventEmitter } from 'node:events'; import { EventLoopUtilityFunction } from 'node:perf_hooks'; import { FileHandle } from 'node:fs/promises'; import { Readable, Writable } from 'node...
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/meta.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
/LiPD-0.2.8.9.tar.gz/LiPD-0.2.8.9/lipd/doi_resolver.py
import urllib.error from collections import OrderedDict import json import requests from .blanks import EMPTY from .misc import rm_empty_fields, clean_doi from .loggers import create_logger logger_doi_resolver = create_logger("doi_resolver") class DOIResolver(object): """ Use DOI id(s) to pull updated publ...
PypiClean
/Draugr-1.0.9.tar.gz/Draugr-1.0.9/draugr/os_utilities/resource_utilities/cpu.py
__author__ = "Christian Heider Nielsen" __doc__ = r""" Small path_utilities to keep track of cores dedicated to workers threads Created on 07-12-2020 """ import os from typing import MutableMapping from warg import AlsoDecorator, passes_kws_to CORE_COUNT: int = os.cpu_count() IN_...
PypiClean
/Geraldo-0.4.17.tar.gz/Geraldo-0.4.17/geraldo/generators/text.py
import datetime from base import ReportGenerator from geraldo.base import cm, TA_CENTER, TA_RIGHT from geraldo.utils import get_attr_value, calculate_size from geraldo.widgets import Widget, Label, SystemField from geraldo.graphics import Graphic, RoundRect, Rect, Line, Circle, Arc,\ Ellipse, Image from gerald...
PypiClean
/Discord_Anti_Spam_Fixed-0.8.0-py3-none-any.whl/AntiSpam/AntiSpamHandler.py
import inspect import logging from copy import deepcopy from typing import Optional, Union from unittest.mock import AsyncMock import discord from discord.ext import commands from AntiSpam.Guild import Guild from AntiSpam.Exceptions import ( DuplicateObject, BaseASHException, MissingGuildPermissions, ...
PypiClean
/ChemistryTool-0.0.1.zip/ChemistryTool-0.0.1/chemistrytool/util/Parser.py
from . import Character, Constants def is_pressure(given: str): """Checks whether a given quantity is pressure or not.""" if given.endswith('atm') or given.endswith('pas'): return True else: return False def is_volume(given: str): """Checks whether a given quantity is volume or no...
PypiClean
/FitBenchmarking-1.0.0.tar.gz/FitBenchmarking-1.0.0/fitbenchmarking/controllers/base_controller.py
from abc import ABCMeta, abstractmethod import numpy from fitbenchmarking.utils.exceptions import (ControllerAttributeError, IncompatibleHessianError, IncompatibleJacobianError, Inc...
PypiClean
/LWD_utils-1.0.0.tar.gz/LWD_utils-1.0.0/LWD_utils/proxypool/storages/proxy_dict.py
import os import pickle import random from LWD_utils.proxypool.exceptions import PoolEmptyException from LWD_utils.proxypool.schemas import Proxy from random import choice from typing import List from loguru import logger from LWD_utils.proxypool.utils.proxy import is_valid_proxy, convert_proxy_or_proxies from LWD_uti...
PypiClean
/GooeyDev-1.0.8b2.tar.gz/GooeyDev-1.0.8b2/gooey/gui/components/options/options.py
from gooey.gui.components.filtering.prefix_filter import PrefixTokenizers def _include_layout_docs(f): """ Combines the layout_options docsstring with the wrapped function's doc string. """ f.__doc__ = (f.__doc__ or '') + LayoutOptions.__doc__ return f def _include_global_option_docs(f): ...
PypiClean
/102053042TOPSIS-0.0.1-py3-none-any.whl/Topsis_102053042/Topsis_102053042.py
import pandas as pd import numpy as np import sys def topsis(): if len(sys.argv)!=5: print("Wrong command line input") exit() try: with open(sys.argv[1], 'r') as filee: df=pd.read_csv(filee) except FileNotFoundError: print("File not found") exit() punctuation...
PypiClean
/Fletxible-0.7.1-py3-none-any.whl/utilities/fx_main.py
import flet as ft from config import config from pages._error import Error404 import importlib import gc import os def get_list_of_pages_from_directory() -> list: pages_list = set() def loop_over_sub_folders(path: str): for item in os.listdir(path): item_path = os.path.join(path, item) ...
PypiClean
/DigitalRover-0.0.1.tar.gz/DigitalRover-0.0.1/src/database/database.py
import json from typing import Optional, List from doltpy.core import Dolt from mysql.connector import conversion from pypika import Query, Table, Order from pypika.enums import Matching, Comparator from pypika.functions import Lower, Count from pypika.queries import QueryBuilder, CreateQueryBuilder, Column from pypik...
PypiClean
/FLAML-2.0.2-py3-none-any.whl/flaml/automl/task/generic_task.py
import logging import time from typing import List, Optional import numpy as np from flaml.automl.data import TS_TIMESTAMP_COL, concat from flaml.automl.ml import EstimatorSubclass, get_val_loss, default_cv_score_agg_func from flaml.automl.task.task import ( Task, get_classification_objective, TS_FORECAST,...
PypiClean
/Nuitka-1.8.tar.gz/Nuitka-1.8/nuitka/Serialization.py
import os import pickle import sys from nuitka import OutputDirectories from nuitka.__past__ import ( # pylint: disable=I0021,redefined-builtin BaseExceptionGroup, ExceptionGroup, GenericAlias, UnionType, basestring, to_byte, xrange, ) from nuitka.Builtins import ( builtin_anon_codes, ...
PypiClean
/DLMS_SPODES-0.40.11.tar.gz/DLMS_SPODES-0.40.11/src/DLMS_SPODES/types/implementations/long_unsigneds.py
from dataclasses import dataclass from ...types import common_data_types as cdt from ...cosem_interface_classes import overview class ClassId(cdt.LongUnsigned): """ Class ID type """ DEFAULT = 1 def validate(self): if not int(self) in overview.ClassID.get_all_id(): raise ValueError(F'...
PypiClean
/Flask-Boost-0.7.5.tar.gz/Flask-Boost-0.7.5/flask_boost/project/application/forms/account.py
from flask_wtf import Form from wtforms import StringField, PasswordField from wtforms.validators import DataRequired, Email, EqualTo from ..models import User class SigninForm(Form): """Form for signin""" email = StringField('Email', validators=[ DataRequir...
PypiClean
/DLTA-AI-1.1.tar.gz/DLTA-AI-1.1/DLTA_AI_app/mmdetection/tools/model_converters/upgrade_model_version.py
import argparse import re import tempfile from collections import OrderedDict import torch from mmcv import Config def is_head(key): valid_head_list = [ 'bbox_head', 'mask_head', 'semantic_head', 'grid_head', 'mask_iou_head' ] return any(key.startswith(h) for h in valid_head_list) def parse_co...
PypiClean
/INGInious-0.8.7.tar.gz/INGInious-0.8.7/inginious/frontend/static/js/audiences.js
"use strict"; function audiences_prepare_submit() { var students = []; $(".group-entry").each(function(i) { var username = $(this).data('username'); students.push(String(username)); }); var tutors = []; $(".tutor").each(function(i) { var tutor = $(this).find("input"...
PypiClean
/EnergyCapSdk-8.2304.4743.tar.gz/EnergyCapSdk-8.2304.4743/energycap/sdk/models/account_digest_actual_yearly_response.py
from msrest.serialization import Model class AccountDigestActualYearlyResponse(Model): """AccountDigestActualYearlyResponse. :param account_code: The account code :type account_code: str :param account_info: The account info :type account_info: str :param account_id: The account identifier ...
PypiClean
/Cuckoo-2.0.7a1.tar.gz/Cuckoo-2.0.7a1/cuckoo/private/html/static/js/jquery.stupid-table.js
(function ($) { $.fn.stupidtable = function (sortFns) { return this.each(function () { var $table = $(this); sortFns = sortFns || {}; sortFns = $.extend({}, $.fn.stupidtable.default_sort_fns, sortFns); $table.data('sortFns', sortFns); $table.on("...
PypiClean
/Nuitka-1.8.tar.gz/Nuitka-1.8/nuitka/build/inline_copy/lib/scons-2.3.2/SCons/CacheDir.py
__revision__ = "src/engine/SCons/CacheDir.py 2014/07/05 09:42:21 garyo" __doc__ = """ CacheDir support """ import os.path import stat import sys import SCons.Action cache_enabled = True cache_debug = False cache_force = False cache_show = False cache_readonly = False def CacheRetrieveFunc(target, source, env): ...
PypiClean
/BrainGB-1.0.4.tar.gz/BrainGB-1.0.4/README.md
# BrainGB BrainGB is a python package for testing Graph Neural Networks on Brain Networks. # Installation To install BrainGB as a package, simply run ```shell pip install BrainGB ``` Alternatively, you can also download the repository from Github. The main package is under the src folder. If you choose to go with ...
PypiClean
/Nescient-0.9.0-cp36-cp36m-win_amd64.whl/nescient/packer.py
""" The Packer class, used to pack and unpack Nescient containers, as well as packer-specific exceptions. """ # TODO: Documentation, version handling import os import hmac # Generating authentication tags with SHA-2 # TODO: Re-implement this in Cython from contextlib import ExitStack from hashlib import pbkdf2_hmac #...
PypiClean
/dragonflow-4.0.0.tar.gz/dragonflow-4.0.0/dragonflow/controller/apps/dnat.py
import collections from neutron_lib import constants as n_const from oslo_log import log from ryu.lib.packet import ethernet from ryu.lib.packet import icmp from ryu.lib.packet import in_proto from ryu.lib.packet import ipv4 from ryu.lib.packet import packet from ryu.ofproto import ether from ryu.ofproto import nicir...
PypiClean
/MegEngine-1.13.1-cp37-cp37m-macosx_10_14_x86_64.whl/megengine/hub/hub.py
import functools import hashlib import os import sys import types from typing import Any, List from urllib.parse import urlparse from megengine.utils.http_download import download_from_url from ..distributed import is_distributed from ..logger import get_logger from ..serialization import load as _mge_load_serialized...
PypiClean
/DjangoPackage-v0.1.0-0.1.0.tar.gz/DjangoPackage-v0.1.0-0.1.0/README.rst
===== DjangoAWS ===== Polls is a simple Django app to conduct Web-based polls. For each question, visitors can choose between a fixed number of answers. Detailed documentation is in the "docs" directory. Quick start ----------- 1. Add "blog" to your INSTALLED_APPS setting like this:: INSTALLED_APPS = [ ...
PypiClean
/AutoQPF-0.1.7.tar.gz/AutoQPF-0.1.7/auto_qpf/qpf.py
from pathlib import Path from pymediainfo import MediaInfo from typing import Union import platform from auto_qpf.long_path import check_for_long_path from auto_qpf.qpf_exceptions import ( ImproperChapterError, NoChapterDataError, ChapterIndexError, ) from auto_qpf.generate_chapters import ChapterGenerator...
PypiClean
/Mathics3-6.0.2.tar.gz/Mathics3-6.0.2/mathics/builtin/box/uniform_polyhedra.py
no_doc = True import numbers from mathics.builtin.box.graphics3d import Coords3D from mathics.builtin.colors.color_directives import Opacity, _ColorObject from mathics.builtin.drawing.graphics_internals import GLOBALS3D, _GraphicsElementBox from mathics.core.exceptions import BoxExpressionError from mathics.core.symb...
PypiClean
/HtmlList-2.2.2.zip/HtmlList-2.2.2/htmllist/break_html_page2.py
import re from collections import deque from break_page_seq import BreakPageSeq from utills import iter2tuple # An Element "Struct" class ElmStruct(object): def __repr__(self): """ For debugging """ if self.attrs_dict: attrs = ' ' + ','.join('%s="%s"' % (name, val) for \ name, val in self.attrs_dict.items...
PypiClean
/Adeepspeed-0.9.2.tar.gz/Adeepspeed-0.9.2/deepspeed/autotuning/scheduler.py
# DeepSpeed Team import copy from numpy import BUFSIZE import json import subprocess import sys import threading import time import base64 import os import hjson from tqdm import tqdm from ..utils import logger from .constants import AUTOTUNING, AUTOTUNING_METRIC_PATH from .utils import get_val_by_key, search_erro...
PypiClean
/GxSphinx-1.0.0.tar.gz/GxSphinx-1.0.0/sphinx/search/non-minified-js/hungarian-stemmer.js
var JSX = {}; (function (JSX) { /** * extends the class */ function $__jsx_extend(derivations, base) { var ctor = function () {}; ctor.prototype = base.prototype; var proto = new ctor(); for (var i in derivations) { derivations[i].prototype = proto; } } /** * copies the implementations from source interface ...
PypiClean