id
stringlengths
1
265
text
stringlengths
6
5.19M
dataset_id
stringclasses
7 values
/FlexGet-3.9.6-py3-none-any.whl/flexget/components/bittorrent/convert_magnet.py
import os import time from urllib.parse import quote from loguru import logger from flexget import plugin from flexget.event import event from flexget.utils.pathscrub import pathscrub from flexget.utils.tools import parse_timedelta logger = logger.bind(name='convert_magnet') class ConvertMagnet: """Convert mag...
PypiClean
/AutoTransform-1.1.1a8-py3-none-any.whl/autotransform/input/directory.py
# @black_format """The implementation for the DirectoryInput.""" from __future__ import annotations import os from functools import cached_property from pathlib import Path from typing import Any, ClassVar, Dict, List, Sequence from autotransform.input.base import Input, InputName from autotransform.item.file impo...
PypiClean
/NudeNetClassifier-2.1.1.tar.gz/NudeNetClassifier-2.1.1/nudenet/classifier.py
import os import numpy as np import onnxruntime from .image_utils import load_images class Classifier: """ Class for loading model and running predictions. For example on how to use take a look the if __name__ == '__main__' part. """ nsfw_model = None def __init__(self): """ ...
PypiClean
/FlaskCms-0.0.4.tar.gz/FlaskCms-0.0.4/flask_cms/static/js/ckeditor/plugins/iframe/dialogs/iframe.js
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ (function(){function c(b){var c=this instanceof CKEDITOR.ui.dialog.checkbox;b.hasAttribute(this.id)&&(b=b.getAttribute(this.id),c?this.setValue(e[this.id]["true"]==b.toLowerC...
PypiClean
/FlaskCms-0.0.4.tar.gz/FlaskCms-0.0.4/flask_cms/static/js/ace/snippets/haskell.js
ace.define("ace/snippets/haskell",["require","exports","module"], function(require, exports, module) { "use strict"; exports.snippetText = "snippet lang\n\ {-# LANGUAGE ${1:OverloadedStrings} #-}\n\ snippet info\n\ -- |\n\ -- Module : ${1:Module.Namespace}\n\ -- Copyright : ${2:Author} ${3:2011-2012}\n\ ...
PypiClean
/ESMValTool-2.9.0-py3-none-any.whl/esmvaltool/diag_scripts/emergent_constraints/ecs_scatter.py
import logging import os from copy import deepcopy from inspect import isfunction from pprint import pformat import dask.array as da import iris import matplotlib.pyplot as plt import numpy as np import pandas as pd import seaborn as sns from esmvalcore.cmor.fixes import add_plev_from_altitude from iris import NameCon...
PypiClean
/GeoNode-3.2.0-py3-none-any.whl/geonode/static/geonode/js/ol-2.13/lib/OpenLayers/Control/DrawFeature.js
* @requires OpenLayers/Control.js * @requires OpenLayers/Feature/Vector.js */ /** * Class: OpenLayers.Control.DrawFeature * The DrawFeature control draws point, line or polygon features on a vector * layer when active. * * Inherits from: * - <OpenLayers.Control> */ OpenLayers.Control.DrawFeature = OpenLayer...
PypiClean
/Climind-0.1-py3-none-any.whl/climind/readers/reader_noaa_ts.py
from pathlib import Path import climind.data_types.timeseries as ts from climind.readers.generic_reader import get_last_modified_time from climind.data_manager.metadata import CombinedMetadata import copy def find_latest(out_dir: Path, filename_with_wildcards: str) -> str: """ Find the most recent file that ...
PypiClean
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/mvc/Repeat.js.uncompressed.js
define("dojox/mvc/Repeat", [ "dojo/_base/declare", "dojo/dom", "./_Container" ], function(declare, dom, _Container){ /*===== declare = dojo.declare; dom = dojo.dom; _Container = dojox.mvc._Container; =====*/ return declare("dojox.mvc.Repeat", [_Container], { // summary: // A model-bound container whic...
PypiClean
/HalRing-2.0.4-py3-none-any.whl/halring/log/halring_logging.py
import logging import sys import time from os import makedirs from os.path import dirname, exists class LoggingUtil(object): def __init__(self, mode: str = "MODE_SIMPLE_DEV", logfile: str = None): """ 初始化Logging工具 Args: mode: 1. MODE_DEV ...
PypiClean
/DobbyStock-0.1.tar.gz/DobbyStock-0.1/README.md
# Dobbyrandom simulator Group member : - Yiwei Gan : gavinyw@outlook.com - Viji Rajagopalan : vijayalakshmi_r.here@yahoo.com ## Directory layout: | Section | Details| | -----------| -----------| |Project repository:| https://github.com/vijina17/InClassCI2022N | |Main package:| main_package. Modules: Stock_main.py,...
PypiClean
/Newcalls-0.0.1-cp37-cp37m-win_amd64.whl/newcalls/node_modules/gauge/CHANGELOG.md
### v3.0.0 * Drops support for Node v4, v6, v7 and v8 ### v2.7.4 * Reset colors prior to ending a line, to eliminate flicker when a line is trucated between start and end color sequences. ### v2.7.3 * Only create our onExit handler when we're enabled and remove it when we're disabled. This stops us from creati...
PypiClean
/BEAT_Guang-1.0.1-py3-none-any.whl/econml/data/dgps.py
import os import numpy as np import pandas as pd from sklearn.preprocessing import StandardScaler from sklearn.utils import check_random_state _ihdp_sim_file = os.path.join(os.path.dirname(__file__), "ihdp", "sim.csv") _ihdp_sim_data = pd.read_csv(_ihdp_sim_file) def ihdp_surface_A(random_state=None): """ Genera...
PypiClean
/AsyncServerKate-0.0.1.tar.gz/AsyncServerKate-0.0.1/server/database.py
from sqlalchemy import create_engine, Table, Column, Integer, String, MetaData, ForeignKey, DateTime, Text from sqlalchemy.orm import mapper, sessionmaker from sqlalchemy.sql import default_comparator import datetime class ServerStorage: ''' Класс - оболочка для работы с базой данных сервера. Использует S...
PypiClean
/BRAILS-3.0.1.tar.gz/BRAILS-3.0.1/brails/modules/NumFloorDetector/lib/efficientdet/utils.py
import itertools import torch import torch.nn as nn import numpy as np class BBoxTransform(nn.Module): def forward(self, anchors, regression): """ decode_box_outputs adapted from https://github.com/google/automl/blob/master/efficientdet/anchors.py Args: anchors: [batchsize, bo...
PypiClean
/Hummingbird-XFEL-1.3b0.tar.gz/Hummingbird-XFEL-1.3b0/hummingbird/analysis/patterson.py
from __future__ import (absolute_import, # Compatibility with python 2 and 3 print_function) import numpy from hummingbird import utils from hummingbird.backend.record import add_record def patterson(evt, type, key, mask=None, threshold=None, diameter_pix=None, crop=None, full_output=False,...
PypiClean
/Annalist-0.5.18.tar.gz/Annalist-0.5.18/annalist_root/login/login_utils.py
from __future__ import unicode_literals from __future__ import absolute_import, division, print_function __author__ = "Graham Klyne (GK@ACM.ORG)" __copyright__ = "Copyright 2016, G. Klyne" __license__ = "MIT (http://opensource.org/licenses/MIT)" import logging log = logging.getLogger(__name__) import copy...
PypiClean
/AyiinXd-0.0.8-cp311-cp311-macosx_10_9_universal2.whl/fipper/methods/messages/send_media_group.py
import logging import os import re from datetime import datetime from typing import Union, List import fipper from fipper import raw from fipper import types from fipper import utils from fipper.file_id import FileType log = logging.getLogger(__name__) class SendMediaGroup: # TODO: Add progress parameter a...
PypiClean
/GeoNode-3.2.0-py3-none-any.whl/geonode/static/geonode/js/ol-2.13/lib/OpenLayers/Control/DragFeature.js
* @requires OpenLayers/Control.js * @requires OpenLayers/Handler/Drag.js * @requires OpenLayers/Handler/Feature.js */ /** * Class: OpenLayers.Control.DragFeature * The DragFeature control moves a feature with a drag of the mouse. Create a * new control with the <OpenLayers.Control.DragFeature> constructor. * ...
PypiClean
/AtoD-0.1.2-py3-none-any.whl/atod/utils/pick.py
import os import json import numpy as np import pandas as pd from itertools import combinations, product from atod import Hero, Heroes, files # number of heroes in the game _n_heroes = 115 # minimum number of matches for pair of heroes to be included in dataset min_matches_played = 10 # all winrates above this will ...
PypiClean
/AltAnalyze-2.1.3.15.tar.gz/AltAnalyze-2.1.3.15/altanalyze/visualization_scripts/VennDiagram.py
import platform useDefaultBackend=False if platform.system()=='Darwin': if platform.mac_ver()[0] == '10.14.6': useDefaultBackend=True try: import warnings with warnings.catch_warnings(): warnings.filterwarnings("ignore",category=UserWarning) ### hides import warnings import matplot...
PypiClean
/Djblets-3.3.tar.gz/Djblets-3.3/docs/releasenotes/0.5.7.rst
=========================== Djblets 0.5.7 Release Notes =========================== **Release date**: February 14, 2010 djblets.datagrid ================ * Columns in datagrids can now augment the queryset before actually querying the database. This allows them to prefetch information instead of having to do a ...
PypiClean
/Flask-Statics-Helper-1.0.0.tar.gz/Flask-Statics-Helper-1.0.0/flask_statics/static/angular/i18n/angular-locale_en-dm.js
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; function getDecimals(n) { n = n + ''; var i = n.indexOf('.'); return (i == -1) ? 0 : n.length - i - 1; } function getVF(n, opt_pre...
PypiClean
/GenIce2-2.1.7.1.tar.gz/GenIce2-2.1.7.1/genice2/cli/genice.py
import sys import argparse as ap import logging from collections import defaultdict from genice2.plugin import safe_import, descriptions from genice2 import __version__ from genice2.cli import SmartFormatter, logger_setup, help_water, help_format from genice2.genice import GenIce from genice2.valueparser import plugin_...
PypiClean
/EOxServer-1.2.12-py3-none-any.whl/eoxserver/backends/access.py
import os import hashlib import logging from fnmatch import fnmatch from eoxserver.core.util.iteratortools import pairwise_iterative from eoxserver.contrib import vsi, gdal from eoxserver.backends.cache import get_cache_context from eoxserver.backends.storages import get_handler_class_for_model from eoxserver.backend...
PypiClean
/OBITools-1.2.13.tar.gz/OBITools-1.2.13/distutils.ext/obidistutils/command/build_cexe.py
from obidistutils.command.build_ctools import build_ctools from distutils.errors import DistutilsSetupError class build_cexe(build_ctools): description = "build C/C++ executable distributed with Python extensions" def initialize_options(self): build_ctools.initialize_options(self) self.buil...
PypiClean
/CTHeadDeformation-0.1.4-py3-none-any.whl/DeformHeadCT/DataPreparation.py
import os import glob from shutil import copy2 from pathlib import Path def MoveDCMFiles(Input_dcm_dir,Output_dcm_dir): """ Copies the dicom files across from Input_dcm_dir to Output_dcm_dir, and makes sure the files are in the correct format (.dcm extension) Parameters ---------- Input_dcm_...
PypiClean
/CouchDB-1.2.tar.gz/CouchDB-1.2/couchdb/loader.py
from __future__ import unicode_literals, absolute_import import os.path import pprint import codecs import json class DuplicateKeyError(ValueError): pass def load_design_doc(directory, strip=False, predicate=lambda x: True): """ Load a design document from the filesystem. strip: remove leading and t...
PypiClean
/Electrum-VTC-2.9.3.3.tar.gz/Electrum-VTC-2.9.3.3/lib/msqr.py
def modular_sqrt(a, p): """ Find a quadratic residue (mod p) of 'a'. p must be an odd prime. Solve the congruence of the form: x^2 = a (mod p) And returns x. Note that p - x is also a root. 0 is returned is no square root exists for these a and p. The Tonelli-Shanks algorithm is used...
PypiClean
/FastNLP-1.0.1.tar.gz/FastNLP-1.0.1/fastNLP/core/metrics/backend/oneflow_backend/backend.py
from typing import List import numpy as np from fastNLP.core.metrics.backend import Backend from fastNLP.core.metrics.utils import AggregateMethodError from fastNLP.core.utils import is_in_oneflow_dist from fastNLP.envs.imports import _NEED_IMPORT_ONEFLOW from fastNLP.core.drivers.oneflow_driver.dist_utils import fas...
PypiClean
/Fumagalli_Motta_Tarantino_2020-0.5.3.tar.gz/Fumagalli_Motta_Tarantino_2020-0.5.3/Fumagalli_Motta_Tarantino_2020/Configurations/StoreConfig.py
import Fumagalli_Motta_Tarantino_2020.Models.Types as Types class ParameterModel: """ Holds all parameters (excluding the asset distribution) for a Fumagalli_Motta_Tarantino_2020.Models.OptimalMergerPolicy model and all child classes using the same parameters. """ def __init__( self, ...
PypiClean
/HBT_IP_Test-1.0.1-py3-none-any.whl/HBT_IP_Test/libs/isom/python/PIRs_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
/Cubane-1.0.11.tar.gz/Cubane-1.0.11/cubane/payment/gc/gocardless/resources.py
import datetime import re import sys import types import utils import cubane.payment.gc.gocardless from cubane.payment.gc.gocardless.exceptions import ClientError class ResourceMetaClass(type): def __new__(meta, name, bases, attrs): #resoures inherit date fields from superclasses for base in bas...
PypiClean
/JGB_distributions-1.3.tar.gz/JGB_distributions-1.3/JGB_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 ...
PypiClean
/DLTA-AI-1.1.tar.gz/DLTA-AI-1.1/DLTA_AI_app/trackers/strongsort/deep/models/mobilenetv2.py
from __future__ import division, absolute_import import torch.utils.model_zoo as model_zoo from torch import nn from torch.nn import functional as F __all__ = ['mobilenetv2_x1_0', 'mobilenetv2_x1_4'] model_urls = { # 1.0: top-1 71.3 'mobilenetv2_x1_0': 'https://mega.nz/#!NKp2wAIA!1NH1pbNzY_M2hVk_hdsxNM1NU...
PypiClean
/GalSim-2.4.11-cp37-cp37m-manylinux_2_17_i686.manylinux2014_i686.whl/galsim/config/input_powerspectrum.py
import math import warnings import logging from .input import InputLoader, GetInputObj, RegisterInputType from .util import LoggerWrapper, SetupConfigRNG, GetRNG from .value import ParseValue, GetAllParams, CheckAllParams, RegisterValueType from .stamp import ParseWorldPos from ..errors import GalSimConfigError, GalS...
PypiClean
/FastFlask-1.2.32-py3-none-any.whl/flask/wrappers.py
import typing as t from werkzeug.exceptions import BadRequest from werkzeug.wrappers import Request as RequestBase from werkzeug.wrappers import Response as ResponseBase from . import json from .globals import current_app from .helpers import _split_blueprint_path if t.TYPE_CHECKING: import typing_extensions as ...
PypiClean
/NooLite_F-0.1.3.tar.gz/NooLite_F-0.1.3/NooLite_F/Modules.py
from NooLite_F import NooLiteFController, ModuleMode, Direction, ModuleConfig, DimmerCorrectionConfig from NooLite_F import ResponseBaseInfo, ResponseExtraInfo, ResponseChannelsInfo, ResponseModuleConfig, ResponseDimmerCorrectionConfig class Switch(object): def __init__(self, controller: NooLiteFController, modu...
PypiClean
/Glashammer-0.2.1.tar.gz/Glashammer-0.2.1/docs/source/introduction.rst
.. _introduction: Introduction ============ Glashammer Python web framework. Yes, yet another one. Glashammer has lofty goals. Firstly something simple such as "hello world" should be very simple, yet adding extra ready-components (such as an admin interface) should also be very easy, and thus, batteries are very mu...
PypiClean
/Office_helper_functions-0.1.131.tar.gz/Office_helper_functions-0.1.131/Office_helper_functions/Word/form_field.py
from bs4 import BeautifulSoup import os import zipfile import io def set_checkbox_value(xlsx_data, checkbox_value, checkbox_location): """Takes a Word document as a bytes object as input (from file.read() for example), returns a BytesIO to be opened by various libraries with one checkbox ticked. Args: ...
PypiClean
/Flask-CKEditor-0.4.6.tar.gz/Flask-CKEditor-0.4.6/flask_ckeditor/static/standard/plugins/specialchar/dialogs/lang/ja.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("specialchar","ja",{euro:"ユーロ記号",lsquo:"左シングル引用符",rsquo:"右シングル引用符",ldquo:"左ダブル引用符",rdquo:"右ダブル引用符",ndash:"半角ダッシュ",mdash:"全角ダッシュ",...
PypiClean
/Newcalls-0.0.1-cp37-cp37m-win_amd64.whl/newcalls/node_modules/@types/node/console.d.ts
declare module 'console' { import console = require('node:console'); export = console; } declare module 'node:console' { import { InspectOptions } from 'node:util'; global { // This needs to be global to avoid TS2403 in case lib.dom.d.ts is present in the same build interface Console { ...
PypiClean
/DynectDNS-proxy-0.5.tar.gz/DynectDNS-proxy-0.5/README.md
Dyn Inc, Integration Team Deliverable "Copyright © 2013, Dyn Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistribution of source code must retain the above copyright notice, this list of...
PypiClean
/Flask-Twilio-0.0.6.tar.gz/Flask-Twilio-0.0.6/example.py
import os import socket from flask import flash, Flask, render_template, request from flask_twilio import Twilio, Response from twilio.base.exceptions import TwilioRestException from twilio.twiml.messaging_response import Message from twilio.twiml.voice_response import Say from jinja2 import DictLoader # A standard t...
PypiClean
/CCBUpgrade-0.2.0.tar.gz/CCBUpgrade-0.2.0/bin/ccbup.py
import plistlib import argparse import logging import copy import os try: import dimensions except ImportError: logging.critical('Please install the \'dimensions\' Python package: sudo pip install dimensions') exit(1) kCCBSizeTypeAbsolute = 0 kCCBSizeTypePercent = 1 kCCBSizeTypeRelativeContainer = 2 kCCBSizeTypeH...
PypiClean
/observations-0.1.4.tar.gz/observations-0.1.4/observations/r/crohn.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 crohn(path): """Crohn's disease data The data set consist of 103 common (>5% minor allele ...
PypiClean
/MergePythonSDK.ticketing-2.2.2-py3-none-any.whl/MergePythonSDK/hris/api/passthrough_api.py
import re # noqa: F401 import sys # noqa: F401 from MergePythonSDK.shared.api_client import ApiClient, Endpoint as _Endpoint from MergePythonSDK.shared.model_utils import ( # noqa: F401 check_allowed_values, check_validations, date, datetime, file_type, none_type, validate_and_convert_ty...
PypiClean
/Mathics_Django-6.0.0-py3-none-any.whl/mathics_django/web/media/js/mathjax/jax/output/HTML-CSS/fonts/STIX-Web/SansSerif/Regular/Main.js
MathJax.OutputJax["HTML-CSS"].FONTDATA.FONTS.STIXMathJax_SansSerif={directory:"SansSerif/Regular",family:"STIXMathJax_SansSerif",testString:"\u00A0\uE17C\uE17D\uE17E\uE17F\uE180\uE181\uE182\uE183\uE184\uE185\uE186\uE187\uE188\uE189",32:[0,0,250,0,0],160:[0,0,250,0,0],57724:[683,10,499,28,471],57725:[674,0,666,31,635],5...
PypiClean
/MarkdownWriter-1.1.tar.gz/MarkdownWriter-1.1/pythonToLatex/latexwriter/LatexTable.py
class LatexTable(): def __init__( self ): self.data = [] self.size = [0,0] self.title = "" self.alignmentList = ['left','center','right'] self.tableAlignment = "center" self.rowAlignment = [] self.textStyles = ['normal','italic','bold'] self.textColors = ['black','white','red','green','blue','cya...
PypiClean
/Joule-0.9.41.tar.gz/Joule-0.9.41/joule/cli/stream/info.py
import click from tabulate import tabulate import datetime import asyncio from joule.models import data_stream from joule import errors from joule.cli.config import pass_config @click.command(name="info") @click.option('-e', "--elements", help="show element information", is_flag=True) @click.argument("path") @pass_c...
PypiClean
/CleverHarold-0.1.tar.gz/CleverHarold-0.1/harold/publishers/__init__.py
# Copyright 2006 The Incorporated Wizzo Widget Works # Distributed under the terms of the GNU General Public License v2 # Author: Troy Melhase <troy@gci.net> ## # The harold.publishers package provides WSGI middleware for # publishing templates and markup from the filesystem. # # Synopsis # -------- # # Use like this...
PypiClean
/GenIce-1.0.11.tar.gz/GenIce-1.0.11/genice/lattices/Struct19.py
pairs=""" 64 89 67 79 8 54 18 75 19 32 124 111 67 113 122 58 52 96 34 63 28 123 110 133 90 89 100 78 33 122 135 21 75 131 41 66 67 65 46 64 70 133 82 114 16 49 84 115 124 96 27 9 77 97 134 117 66 116 77 116 81 50 27 89 13 85 25 95 31 94 18 134 121 72 92 113 102 126 111 129 1 34 16 123 32 109 104 76 103 4 104 6 105 6 81...
PypiClean
/Muntjac-1.1.2.tar.gz/Muntjac-1.1.2/muntjac/terminal/gwt/server/application_servlet.py
from muntjac.terminal.gwt.server.exceptions import ServletException from muntjac.terminal.gwt.server.abstract_application_servlet import \ AbstractApplicationServlet class ApplicationServlet(AbstractApplicationServlet): """This servlet connects a Muntjac Application to Web. @author: Vaadin Ltd. @aut...
PypiClean
/FicusFramework-3.1.0.post2.tar.gz/FicusFramework-3.1.0.post2/src/api/handler/ce/IMessageCE.py
import threading from confluent_kafka.cimpl import Consumer, KafkaError, KafkaException from api.exceptions import IllegalArgumentException from api.handler.message.IMessageHandler import IMessageHandler from api.model.ResultVO import ResultVO, FAIL_CODE, SUCCESS from api.model.FactDatasource import FactDatasourceTyp...
PypiClean
/FamcyDev-0.3.71-py3-none-any.whl/Famcy/bower_components/bootstrap/site/content/docs/5.0/getting-started/javascript.md
--- layout: docs title: JavaScript description: Bring Bootstrap to life with our optional JavaScript plugins. Learn about each plugin, our data and programmatic API options, and more. group: getting-started toc: true --- ## Individual or compiled Plugins can be included individually (using Bootstrap's individual `js/...
PypiClean
/Fake%20Mesh-0.4.0.tar.gz/Fake Mesh-0.4.0/src/fake_mesh/server.py
from __future__ import absolute_import, print_function import argparse import logging import logging.handlers import os import signal import ssl from cheroot.wsgi import Server from cheroot.ssl.builtin import BuiltinSSLAdapter from .wsgi_app import FakeMeshApplication from .wsgi_helpers import DebugMiddleware, Loggi...
PypiClean
/Booktype-1.5.tar.gz/Booktype-1.5/lib/booki/site_static/xinha/plugins/SpellChecker/readme-tech.html
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 3.2//EN"> <html> <head> <title>HTMLArea Spell Checker</title> </head> <body> <h1>HTMLArea Spell Checker</h1> <p>The HTMLArea Spell Checker subsystem consists of the following files:</p> <ul> <li>spell-checker.js &mdash; the spell checker plu...
PypiClean
/CC-dbgen-0.2.0.tar.gz/CC-dbgen-0.2.0/dbgen/new_inputs/objects.py
from typing import Any # Internal Modules from dbgen.support.datatypes.object import new_model,NOTNULL,FK,UNIQUE,DEFAULT from dbgen.support.datatypes.sqltypes import SQLType,Int,Varchar,Text,Decimal ############################################################################# kris = new_model('kris') # type: Any ...
PypiClean
/Djaloha-0.4.2.tar.gz/Djaloha-0.4.2/djaloha/static/aloha.0.20/plugins/common/commands/lib/inserthtml.js
define( ['aloha/core', 'aloha/jquery', 'aloha/command', 'aloha/selection', 'util/dom', 'aloha/contenthandlermanager', 'aloha/console'], function(Aloha, jQuery, command, selection, dom, ContentHandlerManager, console) { // Exported commands command.register( 'inserthtml', { action: function(value, range) { var...
PypiClean
/MolVS-0.1.1.tar.gz/MolVS-0.1.1/docs/source/guide/intro.rst
.. _introduction: Introduction ============ .. sectionauthor:: Matt Swain <m.swain@me.com> Building a collection of chemical structures from various different sources is difficult. There are differing file formats, molecular representations, drawing conventions, and things that are just plain wrong. A lot of this a...
PypiClean
/ImageD11-1.9.9.tar.gz/ImageD11-1.9.9/sandbox/fazit.py
from __future__ import print_function, division """ fast radial regrouping method proposed by Peter Boesecke """ import numpy as np, pylab as pl import timeit, sys from ImageD11 import cImageD11 timer = timeit.default_timer try: from numba import jit, prange GOTNUMBA = True print("Got numba") except: p...
PypiClean
/CartiMorph_nnUNet-1.7.14.tar.gz/CartiMorph_nnUNet-1.7.14/CartiMorph_nnUNet/network_architecture/generic_UNet.py
from copy import deepcopy from CartiMorph_nnUNet.utilities.nd_softmax import softmax_helper from torch import nn import torch import numpy as np from CartiMorph_nnUNet.network_architecture.initialization import InitWeights_He from CartiMorph_nnUNet.network_architecture.neural_network import SegmentationNetwork import...
PypiClean
/Mappa-0.1.0.zip/Mappa-0.1.0/mappa/_internal/mergeutils.py
from itertools import chain from mappa import ModelConstraintViolation from mappa.predicates import parent from mappa._internal.constraints import check_same_topicmap def merge_topicmaps(source, target): """\ Merges the `source´ topic map with the `target` topic map. The `source` stays unmodified, onl...
PypiClean
/20221206.1418-3.0.tar.gz/20221206.1418-3.0/eyes_recognition_module/face_eyes_recognition_ops.py
import face_recognition import pickle import cv2 import imutils from imutils import paths import os known_faces_encodings = {} def encode_faces(imagePathsStr, database="database.pickle", detection_method="cnn"): print("[INFO] quantifying faces...") imagePaths = list(paths.list_images(imagePathsStr)) know...
PypiClean
/19CS30055_Q2-0.0.6.tar.gz/19CS30055_Q2-0.0.6/my_package/data/dataset.py
import numpy as np import json from matplotlib import image from matplotlib import pyplot from pathlib import Path class Dataset(object): ''' A class for the dataset that will return data items as per the given index ''' def __init__(self, annotation_file, transforms = None): self.annotati...
PypiClean
/GSAS-II-WONDER_linux-1.0.1.tar.gz/GSAS-II-WONDER_linux-1.0.1/GSAS-II-WONDER/CifFile/YappsStarParser_1_0.py
from __future__ import print_function from __future__ import unicode_literals from __future__ import division from __future__ import absolute_import from .StarFile import StarBlock,StarFile,StarList,StarDict from io import StringIO # An alternative specification for the Cif Parser, based on Yapps2 # by Amit Patel (htt...
PypiClean
/MDP-3.6.tar.gz/MDP-3.6/mdp/utils/_symeig.py
from __future__ import division from builtins import str from past.utils import old_div import mdp from mdp import numx, numx_linalg class SymeigException(mdp.MDPException): pass # the following functions and classes were part of the scipy_emulation.py file _type_keys = ['f', 'd', 'F', 'D'] _type_conv = {('f','d...
PypiClean
/ObjectListView2-1.0.0.tar.gz/ObjectListView2-1.0.0/Examples/ExampleImages.py
from wx.lib.embeddedimage import PyEmbeddedImage Group16 = PyEmbeddedImage( "iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAIAAACQkWg2AAAAA3NCSVQICAjb4U/gAAAA70lE" "QVQokYWSwXXDMAxDETdTaA10Da1BzkTMkTUwR8dQD7JdNc/PwUmW+AGJ5mOMAUCSbQBVhXuN" "MapqjDHGiIiIGIeqav2c2iZ2JpySFBEkM3Pd32wDlJyZKzJ5km9GXwB6j957a0H21rqUrTUr" "f...
PypiClean
/ocn-xmlchecker.env.tar.gz/env (copy)/lib/python2.7/encodings/iso8859_7.py
"""#" import codecs ### Codec APIs class Codec(codecs.Codec): def encode(self,input,errors='strict'): return codecs.charmap_encode(input,errors,encoding_table) def decode(self,input,errors='strict'): return codecs.charmap_decode(input,errors,decoding_table) class IncrementalEncoder(codecs...
PypiClean
/MarkWiki-1.6.tar.gz/MarkWiki-1.6/docs/releases.rst
Releases ======== Version 1.6, Released February 7, 2016 -------------------------------------- * Integrate with Git to provide version history for wiki pages. * Add the option to re-index the search engine from the command line or the administrator interface. Version 1.5, Released May 8, 2015 --------------------...
PypiClean
/FanFicFare-4.27.0.tar.gz/FanFicFare-4.27.0/fanficfare/adapters/adapter_phoenixsongnet.py
# Copyright 2011 Fanficdownloader team, 2018 FanFicFare team # # 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 applica...
PypiClean
/DESlib-0.3.5-py3-none-any.whl/deslib/base.py
# Author: Rafael Menelau Oliveira e Cruz <rafaelmenelau@gmail.com> # # License: BSD 3 clause import functools import math import warnings from abc import abstractmethod, ABCMeta import numpy as np from scipy.stats import mode from sklearn.base import BaseEstimator, ClassifierMixin from sklearn.ensemble import BaseE...
PypiClean
/Mopidy-NeoPixel-0.1.1.tar.gz/Mopidy-NeoPixel-0.1.1/mopidy_neopixel/frontend.py
from __future__ import unicode_literals import logging import colorsys import threading from time import sleep from mopidy import core from mopidy.audio import PlaybackState from colorthief import ColorThief from urllib import request import pykka import board import neopixel logger = logging.getLogger(__name__) c...
PypiClean
/AstroCabTools-1.5.1.tar.gz/AstroCabTools-1.5.1/astrocabtools/fit_line/src/models/exponentialModelCreation.py
import numpy as np import pandas as pd import math from lmfit import Parameters, Model import sys import traceback import io from collections import deque from .exponentialPointsData import exponentialPointsData from astrocabtools.fit_line.src.utils.fitting_model_creation import calculate_intercept, calculate_slo...
PypiClean
/Flask-Cache-Latest-0.12.tar.gz/Flask-Cache-Latest-0.12/flask_cache/__init__.py
__version__ = '0.12' __versionfull__ = __version__ import base64 import uuid import hashlib import inspect import functools import warnings import logging from werkzeug import import_string from flask import request, current_app logger = logging.getLogger(__name__) TEMPLATE_FRAGMENT_KEY_TEMPLATE = '_template_fragm...
PypiClean
/JKBio-1.1.tar.gz/JKBio-1.1/epigenetics/rose/ROSE_geneMapper.py
#ROSE_geneMapper.py #main method wrapped script to take the enhancer region table output of ROSE_Main and map genes to it #will create two outputs a gene mapped region table where each row is an enhancer #and a gene table where each row is a gene #does this by default for super-enhancers only import sys import RO...
PypiClean
/OASYS1-ESRF-Extensions-0.0.69.tar.gz/OASYS1-ESRF-Extensions-0.0.69/orangecontrib/esrf/xoppy/widgets/extension/ID24_HP_Attenuators.py
import numpy from PyQt5.QtWidgets import QApplication, QMessageBox, QSizePolicy from orangewidget import gui from orangewidget.settings import Setting from oasys.widgets import gui as oasysgui, congruence from oasys.widgets.exchange import DataExchangeObject from xoppylib.power.xoppy_calc_power import xoppy_calc_powe...
PypiClean
/LightZero-0.0.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/lzero/mcts/buffer/game_buffer.py
import copy import time from abc import ABC, abstractmethod from typing import Any, List, Tuple, Optional, Union, TYPE_CHECKING import numpy as np from ding.torch_utils.data_helper import to_list from ding.utils import BUFFER_REGISTRY from easydict import EasyDict if TYPE_CHECKING: from lzero.policy import MuZero...
PypiClean
/Gbtestapi0.4-0.1a10.tar.gz/Gbtestapi0.4-0.1a10/src/gailbot/services/organizer/settings/objects/settingObject.py
from typing import Dict, List, Union, TypedDict, Optional from .engineObject import EngineSetObj from .pluginObject import PluginSuiteSetObj from ..interface import ( load_watson_setting, load_whisper_setting, load_google_setting, EngineSettingInterface, PluginSettingsInterface, ) from gailbot.core....
PypiClean
/Joule-0.9.41.tar.gz/Joule-0.9.41/joule/models/data_store/timescale_inserter.py
import asyncio import numpy as np import random import logging import asyncpg import socket from joule.models import DataStream, pipes from joule.models.data_store import psql_helpers from joule.models.data_store.errors import DataError import joule.utilities Loop = asyncio.AbstractEventLoop log = logging.getLogger('...
PypiClean
/dl_track_us-0.1.2.2.tar.gz/dl_track_us-0.1.2.2/docs/source/index.rst
.. DL_Track_US documentation master file, created by sphinx-quickstart on Mon Nov 7 13:31:24 2022. You can adapt this file completely to your liking, but it should at least contain the root `toctree` directive. DL_Track_US =========== *Automated analysis of human lower limb ultrasonography images* So, what ...
PypiClean
/OBITools-1.2.13.tar.gz/OBITools-1.2.13/src/oligotag.py
import sys from obitools.options import getOptionManager from obitools import word from obitools.word.options import addOligoOptions from obitools.word.options import dnaWordIterator from obitools.word import wordDist,decodeWord from obitools.graph.algorithms.clique import cliqueIterator from obitools.graph import...
PypiClean
/Annalist-0.5.18.tar.gz/Annalist-0.5.18/annalist_root/annalist/views/fields/render_fieldvalue.py
from __future__ import unicode_literals from __future__ import absolute_import, division, print_function """ RenderFieldValue class for returning field renderers. This class works for fields that can be rendered using supplied renderer objects (which may be compiled templates). The class provides for wrapping the ...
PypiClean
/Muntjac-1.1.2.tar.gz/Muntjac-1.1.2/muntjac/public/VAADIN/widgetsets/org.muntiacus.MuntjacWidgetSet/mode/markdown/markdown.js
CodeMirror.defineMode("markdown", function(cmCfg, modeCfg) { var htmlMode = CodeMirror.getMode(cmCfg, { name: 'xml', htmlMode: true }); var header = 'header' , code = 'comment' , quote = 'quote' , list = 'string' , hr = 'hr' , linktext = 'link' , linkhref = 'string' , ...
PypiClean
/KratosParticleMechanicsApplication-9.4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/KratosMultiphysics/ParticleMechanicsApplication/particle_vtk_condition_output_process.py
import numpy as np import KratosMultiphysics import KratosMultiphysics.ParticleMechanicsApplication as KratosParticle from KratosMultiphysics.ParticleMechanicsApplication.particle_vtk_output_process import ParticleVTKOutputProcess # Import time library from time import time def Factory(settings, Model): if(type(...
PypiClean
/Flask-Statics-Helper-1.0.0.tar.gz/Flask-Statics-Helper-1.0.0/flask_statics/static/angular/i18n/angular-locale_sw-ke.js
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; function getDecimals(n) { n = n + ''; var i = n.indexOf('.'); return (i == -1) ? 0 : n.length - i - 1; } function getVF(n, opt_pre...
PypiClean
/Fabric-with-working-dependencies-1.0.1.tar.gz/Fabric-with-working-dependencies-1.0.1/fabric/version.py
from subprocess import Popen, PIPE from os.path import abspath, dirname def git_sha(): loc = abspath(dirname(__file__)) p = Popen( "cd \"%s\" && git log -1 --format=format:%%h" % loc, shell=True, stdout=PIPE, stderr=PIPE ) return p.communicate()[0] VERSION = (1, 0, 1,...
PypiClean
/Bravo-2.0.tar.gz/Bravo-2.0/bravo/beta/structures.py
from collections import namedtuple BuildData = namedtuple("BuildData", "block, metadata, x, y, z, face") """ A named tuple representing data for a block which is planned to be built. """ Level = namedtuple("Level", "seed, spawn, time") """ A named tuple representing the level data for a world. """ Settings = namedtu...
PypiClean
/Electrum-CHI-3.3.8.tar.gz/Electrum-CHI-3.3.8/packages/pip/_vendor/pytoml/parser.py
import string, re, sys, datetime from .core import TomlError from .utils import rfc3339_re, parse_rfc3339_re if sys.version_info[0] == 2: _chr = unichr else: _chr = chr def load(fin, translate=lambda t, x, v: v, object_pairs_hook=dict): return loads(fin.read(), translate=translate, object_pairs_hook=objec...
PypiClean
/GuardiPy-0.5.0.tar.gz/GuardiPy-0.5.0/README.md
# GuardiPy GuardiPy is a Guardicore Centra™ API client currently under development, written around api v3.0, under release 35.x, static-declared, for Python 3.6+, type-hinted. # Howto GuardiPy can be install by running the following command: ``` pip install GuardiPy ``` You can find exa...
PypiClean
/AioCrypto-1.0.6.tar.gz/AioCrypto-1.0.6/aiocrypto/types.py
from dataclasses import dataclass from typing import Optional @dataclass class Assets: BTC: str = 'BTC' TON: str = 'TON' ETH: str = 'ETH' USDT: str = 'USDT' USDC: str = 'USDC' BUSD: str = 'BUSD' @dataclass class Balance: currency_code: str available: float def __post_init__(self...
PypiClean
/Godot-0.1.1.zip/Godot-0.1.1/godot/xdot_parser.py
#------------------------------------------------------------------------------ # Imports: #------------------------------------------------------------------------------ from enthought.enable.api import Component from pyparsing import __version__ as pyparsing_version from colorsys import hsv_to_rgb from pyparsing...
PypiClean
/ModelFlowIb-1.56-py3-none-any.whl/modelnet.py
from __future__ import print_function import networkx as nx from itertools import groupby, chain from collections import OrderedDict,Counter import numpy as np from matplotlib import pyplot, patches import matplotlib.pyplot as plt import matplotlib as mpl import pandas as pd import seaborn as sns from matplotlib im...
PypiClean
/Flask-Sessionstore-0.4.5.tar.gz/Flask-Sessionstore-0.4.5/flask_sessionstore/sessions.py
import sys import time from datetime import datetime from uuid import uuid4 from flask.sessions import SessionInterface as FlaskSessionInterface from flask.sessions import SessionMixin, TaggedJSONSerializer from werkzeug.datastructures import CallbackDict from itsdangerous import Signer, BadSignature, want_bytes PY2...
PypiClean
/NeuroR-1.6.4.tar.gz/NeuroR-1.6.4/examples/cut-plane-detection.ipynb
# Cut plane detection The cut plane detection aims at find the spatial plane where the morphology was experimentally cut. The librairy offers two ways of detecting cut planes, depending of whether or not they are along the X,Y or Z axis or on a arbitrary one. ## Detection along X, Y or Z axes ``` %%capture !pip ...
PypiClean
/FlaskCms-0.0.4.tar.gz/FlaskCms-0.0.4/flask_cms/static/js/ckeditor/plugins/specialchar/dialogs/lang/hr.js
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang("specialchar","hr",{euro:"Euro znak",lsquo:"Lijevi jednostruki navodnik",rsquo:"Desni jednostruki navodnik",ldquo:"Lijevi dvostruki navodnik",rdquo:"...
PypiClean
/Appium-Python-Client-2.11.1.tar.gz/Appium-Python-Client-2.11.1/appium/webdriver/common/touch_action.py
# 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 agreed to in writing, software # distributed under t...
PypiClean
/Auxjad-1.0.0.tar.gz/Auxjad-1.0.0/auxjad/core/_LooperParent.py
import random from typing import Union import abjad from .. import get, mutate class _LooperParent(): r"""This is the parent class of all Looper classes. It implements all common methods and properties, and initialises those using their @setter methods. """ ### CLASS VARIABLES ### __slots_...
PypiClean
/Nuitka_fixed-1.1.2-cp310-cp310-win_amd64.whl/nuitka/build/inline_copy/jinja2_35/jinja2/ext.py
import re from jinja2 import nodes from jinja2.defaults import BLOCK_START_STRING, \ BLOCK_END_STRING, VARIABLE_START_STRING, VARIABLE_END_STRING, \ COMMENT_START_STRING, COMMENT_END_STRING, LINE_STATEMENT_PREFIX, \ LINE_COMMENT_PREFIX, TRIM_BLOCKS, NEWLINE_SEQUENCE, \ KEEP_TRAILING_NEWLINE, LSTRIP...
PypiClean
/FMPy-0.3.11-py3-none-any.whl/fmpy/validation.py
from typing import List from fmpy.model_description import ModelDescription def validate_fmu(filename: str) -> List[str]: """ Validate the following aspects of an FMU modelDescription.xml: - validation against the XML schema - uniqueness and validity of variable names - completeness and integri...
PypiClean