id
stringlengths
1
265
text
stringlengths
6
5.19M
dataset_id
stringclasses
7 values
/Gistpy-0.2.1.tar.gz/Gistpy-0.2.1/gistpy/auth.py
from gistpy.query import Query from gistpy.errors import UnSetUserKeyError, UnauthorizedUser from gistpy.constant import APP_NAME, APP_USER, APP_PASSWORD, APP_TOKEN, GITHUB_AUTHORIZATION_PATH from restkit import BasicAuth import os __all__ = ("Auth",) class Auth(object): def __init__(self, user=None, password=...
PypiClean
/BitEx-2.0.0b3.zip/BitEx-2.0.0b3/bitex/api/REST/bittrex.py
import logging import hashlib import hmac import urllib import urllib.parse # Import Homebrew from bitex.api.REST import RESTAPI log = logging.getLogger(__name__) class BittrexREST(RESTAPI): def __init__(self, key=None, secret=None, version=None, addr=None, timeout=5, config=None): vers...
PypiClean
/COMPAS-1.17.5.tar.gz/COMPAS-1.17.5/src/compas/geometry/transformations/matrices.py
from __future__ import print_function from __future__ import absolute_import from __future__ import division import math from copy import deepcopy from compas.geometry import scale_vector from compas.geometry import normalize_vector from compas.geometry import subtract_vectors from compas.geometry import cross_vecto...
PypiClean
/Flask-CKEditor-0.4.6.tar.gz/Flask-CKEditor-0.4.6/flask_ckeditor/static/basic/lang/es-mx.js
/* Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or https://ckeditor.com/license */ CKEDITOR.lang['es-mx']={"editor":"Editor de texto enriquecido","editorPanel":"Panel del editor de texto","common":{"editorHelp":"Presiona ALT + 0 para ayuda","browseServer":"E...
PypiClean
/Heaty-2020.10b2.tar.gz/Heaty-2020.10b2/README.md
## HEATY ### Author Tom Christiaens. Have a look at [http://www.dirkchristiaens.be](http://www.dirkchristiaens.be). ### About Heaty is a **building heat load calculator** that implements the "standard method" set out in the European standard EN 12831-1:2017, section 6. ### Installation and Usage Heaty's source co...
PypiClean
/Altair%20Smartworks%20SDK-0.0.1.tar.gz/Altair Smartworks SDK-0.0.1/openapi_client/model/action_request_delay.py
import re # noqa: F401 import sys # noqa: F401 from openapi_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
/KayPacha-0.0.3.tar.gz/KayPacha-0.0.3/kaypacha/models/scienti/graph_schema_patent.py
graph_patent = {"MAIN_TABLE": "EN_PATENTE", "CHECKPOINT": {"DB": "__CVLAC__", "KEYS": ["COD_RH", "COD_PATENTE"]}, "SCHEMA_VERSION": 0.1, "GRAPH": [{"EN_PATENTE": [ # autor registrante {"KEYS": ["COD_RH"], "DB":"...
PypiClean
/ANNOgesic-1.1.14.linux-x86_64.tar.gz/usr/local/lib/python3.10/dist-packages/annogesiclib/get_polyT.py
import math from annogesiclib.gff3 import Gff3Parser from annogesiclib.helper import Helper def import_candidate(cands, term_features, strain, start, end, ut, name, total_length, strand, parent_p, parent_m, p_pos, m_pos): cands.append({"strain": strain, "start": start, "end": end, "print": Fa...
PypiClean
/DI_engine-0.4.9-py3-none-any.whl/dizoo/atari/config/serial/pong/pong_trex_offppo_config.py
from easydict import EasyDict pong_trex_ppo_config = dict( exp_name='pong_trex_offppo_seed0', env=dict( collector_env_num=4, evaluator_env_num=4, n_evaluator_episode=8, stop_value=20, env_id='PongNoFrameskip-v4', #'ALE/Pong-v5' is available. But special setting i...
PypiClean
/BioID-1.0.tar.gz/BioID-1.0/README.rst
=============================== BioID =============================== .. image:: https://magnum.travis-ci.com/LeeBergstrand/BioID.svg?token=gFspxRhLX7xmypaS1yi5&branch=master :target: https://magnum.travis-ci.com/LeeBergstrand/BioID .. image:: https://img.shields.io/pypi/v/BioID.svg :target: https://p...
PypiClean
/CAL-1.4.5.tar.gz/CAL-1.4.5/TaT.py
from __future__ import print_function from _TFL import TFL from _CAL import CAL import _TFL._Meta.Object from _TFL.Generators import alt_iter from _TFL.predicate import identity import itertools class TaT_Shifter (TFL.Meta...
PypiClean
/Longbow-1.5.2.tar.gz/Longbow-1.5.2/longbow/staging.py
import logging import os import longbow.exceptions as exceptions import longbow.shellwrappers as shellwrappers LOG = logging.getLogger("longbow.corelibs.staging") def stage_upstream(jobs): """Transfer files for all jobs, to a remote HPC machine. A method for staging files for each job to the target HPC hos...
PypiClean
/Fabric39-1.15.3.post1.tar.gz/Fabric39-1.15.3.post1/sites/www/installing.rst
========== Installing ========== Fabric is best installed via `pip <http://pip-installer.org>`_ (highly recommended) or `easy_install <http://wiki.python.org/moin/CheeseShopTutorial>`_ (older, but still works fine), e.g.:: $ pip install fabric You may also opt to use your operating system's package manager; the ...
PypiClean
/MAnorm2_utils-1.0.0.tar.gz/MAnorm2_utils-1.0.0/MAnorm2_utils/genomic_bin.py
import MAnorm2_utils __version__ = MAnorm2_utils.__version__ def read_bed_line(line, ignore_score=True): """ This function parses a line from a BED file. Return (chrom, start, end, score), where "score" is None if "ignore_score" is True (the default). """ items = line.rstrip("\r\n").split("\t") try: ...
PypiClean
/ML_Methods-0.1.10-py3-none-any.whl/ml_methods/utils.py
import json from decimal import Decimal from data import data from matrix import matx, matutils from cmdexec import Terminate, Comp def pwr(a: Decimal | int, b: Decimal | int) -> Decimal: if a == 0 and b == 0: return Decimal('1') else: d = Comp.tdeciml(pow(a, b)) if d is None: ...
PypiClean
/CursingSpock-0.1.0.tar.gz/CursingSpock-0.1.0/cursingspock.py
import curses import logging import sys import time from collections import namedtuple from spockbot import default_handler from spockbot.mcdata.constants import ( GM_ADVENTURE, GM_CREATIVE, GM_SPECTATOR, GM_SURVIVAL) from spockbot.plugins.base import PluginBase, pl_announce logger = logging.getLogger('spockbot')...
PypiClean
/MNN_FMA-1.0.1-cp27-cp27m-manylinux2010_x86_64.whl/MNN/tools/mnn_fb/DetectionPostProcessParam.py
# namespace: MNN import flatbuffers class DetectionPostProcessParam(object): __slots__ = ['_tab'] @classmethod def GetRootAsDetectionPostProcessParam(cls, buf, offset): n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) x = DetectionPostProcessParam() x.Init(buf,...
PypiClean
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/grid/_Scroller.js.uncompressed.js
define("dojox/grid/_Scroller", [ "dijit/registry", "dojo/_base/declare", "dojo/_base/lang", "./util", "dojo/_base/html" ], function(dijitRegistry, declare, lang, util, html){ var indexInParent = function(inNode){ var i=0, n, p=inNode.parentNode; while((n = p.childNodes[i++])){ if(n == inNode){ return ...
PypiClean
/MuPhyN-0.1.1.post4-py3-none-any.whl/muphyn/libraries/box_library/filter_high_pass_box.py
import numpy as np from typing import List # ----------------------------------- # Functions # ----------------------------------- def _init_high_pass_filter(box, simulation_params) -> None: cut_pulstation = box['cut_frequency'] * 2 * np.pi box['num_vect'] = [1, 0] box['num_vect'].reverse() box['n...
PypiClean
/eatme-0.1.2.tar.gz/eatme-0.1.2/eatme/cli.py
import os import time from collections import namedtuple from functools import wraps from plumbum import colors, cli from plumbum.cli import SwitchAttr from eatme import __version__, __date__ from eatme import hg, git VersionControlSystem = namedtuple('VersionControlSystem', ['GIT', 'HG']) VCS = VersionControlSystem...
PypiClean
/AtmosphericChemistry-0.1.0.tar.gz/AtmosphericChemistry-0.1.0/ac/gasphase/reaction.py
# ** ToDo **: think about making reactants and products Compound objects # and make reaction "model aware" from collections import OrderedDict from copy import deepcopy import re import datetime as dt import numpy as np from ac.utils.mathtree import mathTree import ac.utils.moleweight as mw from ac.utils i...
PypiClean
/EmailSender_GhostPoltergeist-2.1.0-py3-none-any.whl/EmailSender/sender.py
import smtplib import re import os from email.mime.multipart import MIMEMultipart from email.mime.text import MIMEText from email.mime.image import MIMEImage from email.mime.application import MIMEApplication from config import EMAIL_ADDRESS, EMAIL_PASSWORD def getFromConfig(): sender_email = EMAIL_ADDRESS s...
PypiClean
/MambuPy-2.0.0b22.tar.gz/MambuPy-2.0.0b22/mambupy/api/mambuproduct.py
from .entities import (MambuEntity, MambuEntityWritable, MambuEntityAttachable, MambuEntityCommentable) class MambuProduct( MambuEntity, MambuEntityWritable, MambuEntityAttachable, MambuEntityCommentable ): """MambuProduct entity""" ...
PypiClean
/observations-0.1.4.tar.gz/observations-0.1.4/observations/r/galton_families.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 galton_families(path): """Galton's data on the heights of parents and their children, by chil...
PypiClean
/MTGA-0.9.5-py3-none-any.whl/mtga/set_data/ana.py
import sys from mtga.models.card import Card from mtga.models.card_set import Set import inspect BlindingRadiance = Card(name="blinding_radiance", pretty_name="Blinding Radiance", cost=['2', 'W'], color_identity=['W'], card_type="Sorcery", sub_types="", abilities=[12158...
PypiClean
/Nuitka_winsvc-1.7.10-cp310-cp310-win_amd64.whl/nuitka/build/inline_copy/lib/scons-4.3.0/SCons/Subst.py
import collections import re from inspect import signature, Parameter import SCons.Errors from SCons.Util import is_String, is_Sequence # Indexed by the SUBST_* constants below. _strconv = [ SCons.Util.to_String_for_subst, SCons.Util.to_String_for_subst, SCons.Util.to_String_for_signature, ] AllowableExc...
PypiClean
/ConsenSys-Utils-0.2.0b1.tar.gz/ConsenSys-Utils-0.2.0b1/docs/flask.rst
Flask ===== ConsenSys-Utils defines many resources for working with `Flask`_ application. It is highly recommended you have some basic knowledge of `Flask`_ before using ConsenSys-Utils. .. _`Flask`: http://flask.pocoo.org/docs/1.0/ Application Factory ~~~~~~~~~~~~~~~~~~~ ConsenSys-Utils provides useful resources t...
PypiClean
/ITA-test3-2.1.tar.gz/ITA-test3-2.1/hate_tweet_map/util.py
def pre_process_tweets_response(tweet: dict, includes: dict) -> dict: """ This method take an input a dict representing a tweet (in the Twitter original format) and create a dict containing the usefull information of the tweet reorganized usign different criteria and if necessary renaming the fields. Here ...
PypiClean
/Muntjac-1.1.2.tar.gz/Muntjac-1.1.2/muntjac/demo/MuntjacTunesLayout.py
from muntjac.api import Application from muntjac.terminal.sizeable import ISizeable from muntjac.terminal.theme_resource import ThemeResource from muntjac.ui.window import Notification from muntjac.api import \ (Alignment, ComboBox, Embedded, HorizontalLayout, HorizontalSplitPanel, Label, NativeButton, Nati...
PypiClean
/Mathics-1.0.tar.gz/Mathics-1.0/mathics/web/media/js/mathjax/jax/output/HTML-CSS/fonts/STIX/General/Italic/IPAExtensions.js
MathJax.Hub.Insert(MathJax.OutputJax["HTML-CSS"].FONTDATA.FONTS["STIXGeneral-italic"],{592:[460,10,444,19,421],593:[460,10,511,17,487],594:[460,10,511,17,487],595:[683,11,500,23,488],596:[441,11,444,30,425],597:[441,160,444,-3,425],598:[683,233,500,15,527],599:[683,13,500,15,748],600:[441,11,444,31,416],601:[441,11,444...
PypiClean
/Flask-SoftDeletes-1.0.2.tar.gz/Flask-SoftDeletes-1.0.2/README.md
# flask-softdeletes ## 介绍 flask-softdeletes 基于flask-sqlalchemy的软删除实现 ## 使用简介 ### 1.安装 <code>pip install flask-softdeletes</code> ### 2.导入 SoftDeletedMixin <code>from flask_softdeletes import SoftDeletedMixin</code> ### 3.模型类继承 SoftDeletedMixin <code>class DemoModel(SoftDeletedMixin, db.Model):pass</code> ...
PypiClean
/LinOTP-2.11.1.tar.gz/LinOTP-2.11.1/linotp/lib/local.py
from linotp.lib._compat import get_thread_ident from linotp.lib.error import ProgrammingError """ A collection of classes that implement similar behavior as pythons threadlocals. Objects of these classes can be used globally without compromising thread safety. They are 'sandboxed' in the sense that they are unique fo...
PypiClean
/Missing-4.2.tar.gz/Missing-4.2/CHANGES.rst
Changelog ========= 4.2 (2022-11-16) ---------------- - Add support for Python 3.8, 3.9, 3.10, 3.11 4.1 (2018-10-05) ---------------- - Drop support for Python 3.4. - Add support for Python 3.7. 4.0.1 (2017-08-25) ------------------ - Restore `Missing._Missing` module for pickle compatibility with the old C e...
PypiClean
/AxlNLP-0.0.1.tar.gz/AxlNLP-0.0.1/axlnlp/models/lstm_crf.py
import numpy as np import time #pytroch import torch import torch.nn as nn import torch.nn.functional as F import torch.optim as optim from torch.nn.utils.rnn import pad_sequence, pack_padded_sequence, pad_packed_sequence #am from axlnlp.models.base import PyToBase import axlnlp.utils as u # use a torch implementat...
PypiClean
/ACTIONet-0.1.1.tar.gz/ACTIONet-0.1.1/pybind11/docs/advanced/cast/overview.rst
Overview ######## .. rubric:: 1. Native type in C++, wrapper in Python Exposing a custom C++ type using :class:`py::class_` was covered in detail in the :doc:`/classes` section. There, the underlying data structure is always the original C++ class while the :class:`py::class_` wrapper provides a Python interface. Int...
PypiClean
/ActiveReign-1.0.5.tar.gz/ActiveReign-1.0.5/ar3/ops/query/arg_parser.py
import argparse from os import path from getpass import getpass def file_exists(parser, filename): if not path.exists(filename): parser.error("Input file not found: {}".format(filename)) return [x.strip() for x in open(filename)] def query_args(sub_parser): query_parser = sub_parser.add_parser("qu...
PypiClean
/GenIce2-2.1.7.1.tar.gz/GenIce2-2.1.7.1/genice2/lattices/IWV.py
from genice2.cell import cellvectors import genice2.lattices import numpy as np desc = { "ref": { "IWV": "Engel 2018" }, "usage": "No options available.", "brief": "Hypothetical zeolitic ice" } class Lattice(genice2.lattices.Lattice): def __init__(self): self.cell = cellvectors( ...
PypiClean
/Electrum-VTC-2.9.3.3.tar.gz/Electrum-VTC-2.9.3.3/gui/qt/console.py
import sys, os, re import traceback, platform from PyQt4 import QtCore from PyQt4 import QtGui from electrum_vtc import util if platform.system() == 'Windows': MONOSPACE_FONT = 'Lucida Console' elif platform.system() == 'Darwin': MONOSPACE_FONT = 'Monaco' else: MONOSPACE_FONT = 'monospace' class Consol...
PypiClean
/Newcalls-0.0.1-cp37-cp37m-win_amd64.whl/newcalls/node_modules/@types/node/ts4.8/trace_events.d.ts
declare module 'trace_events' { /** * The `Tracing` object is used to enable or disable tracing for sets of * categories. Instances are created using the * `trace_events.createTracing()` method. * * When created, the `Tracing` object is disabled. Calling the * `tracing.enable()` method...
PypiClean
/Brian2-2.5.4-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl/brian2/sphinxext/docscrape.py
import inspect import pydoc import re import textwrap from warnings import warn from sphinx.pycode import ModuleAnalyzer class Reader: """A line-based string reader.""" def __init__(self, data): """ Parameters ---------- data : str String with lines separated by '\...
PypiClean
/ComboJSONAPI-1.1.2.tar.gz/ComboJSONAPI-1.1.2/combojsonapi/spec/apispec/plugins.py
import re import werkzeug.routing from apispec import BasePlugin from apispec.exceptions import PluginMethodNotImplementedError from combojsonapi.spec.compat import APISPEC_VERSION_MAJOR if APISPEC_VERSION_MAJOR == 0: from apispec import Path from apispec.ext import marshmallow as aem # from flask-restplu...
PypiClean
/Flask-Statics-Helper-1.0.0.tar.gz/Flask-Statics-Helper-1.0.0/flask_statics/static/angular/i18n/angular-locale_ha.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
/CTHeadDeformation-0.1.4-py3-none-any.whl/DeformHeadCT/DeformVolume.py
#External Modules import re import shutil import argparse import numpy as np import SimpleITK as sitk from pathlib import Path #Platipy Modules from platipy.imaging.registration.utils import apply_transform from DeformHeadCT.VolumeInfo import VolumeDeformation #Custom Mdules from DeformHeadCT.deformation import ( ...
PypiClean
/aleksis_core-3.1.5-py3-none-any.whl/aleksis/core/static/js/main.js
const pythonToMomentJs = { "%a": "EEE", "%A": "EEEE", "%w": "E", "%d": "dd", "%b": "MMM", "%B": "MMMM", "%m": "MM", "%y": "yy", "%Y": "yyyy", "%H": "HH", "%I": "hh", "%p": "a", "%M": "mm", "%s": "ss", "%f": "SSSSSS", "%z": "ZZZ", "%Z": "z", "%U": "WW", "%j": "ooo", "%W": "WW", ...
PypiClean
/OctoBot-Trading-2.4.23.tar.gz/OctoBot-Trading-2.4.23/octobot_trading/modes/mode_config.py
import octobot_commons.errors as errors import octobot_commons.logging as logging import octobot_commons.enums as common_enums import octobot_commons.constants as common_constants import octobot_commons.configuration as commons_configuration import octobot_commons.tentacles_management as class_inspector import octobot...
PypiClean
/DeepPhysX-22.6.tar.gz/DeepPhysX-22.6/src/Utils/jsonUtils.py
import json from typing import Iterable, Any, Dict, List class CustomJSONEncoder(json.JSONEncoder): """ JSON encoder class. Description: Transform description dictionary into a json file """ indentation_level: int def __init__(self, *args: List[Any], **kwargs: Dict[str, Any])...
PypiClean
/GaitAnalysisToolKit-0.2.0.tar.gz/GaitAnalysisToolKit-0.2.0/docs/gaitanalysis.rst
==================== gaitanalysis Package ==================== The following documentation provides both the pubic and private API for the modules included in the gaitanalysis package. We will try our best to follow `semantic versioning <http://semver.org/>`_ with respect to the public API. The private member function...
PypiClean
/MetaCalls-0.0.5-cp310-cp310-manylinux2014_x86_64.whl/metacalls/node_modules/fs-minipass/node_modules/minipass/index.js
'use strict' const proc = typeof process === 'object' && process ? process : { stdout: null, stderr: null, } const EE = require('events') const Stream = require('stream') const SD = require('string_decoder').StringDecoder const EOF = Symbol('EOF') const MAYBE_EMIT_END = Symbol('maybeEmitEnd') const EMITTED_END = S...
PypiClean
/CStockSpider-0.2.21-py3-none-any.whl/StockSpider/smSpider.py
import pandas as pd import requests class smSpider: """ 获取报表(Statement)信息 """ def __init__(self): """ 初始化 数据成员: url1: 接口url headers: 主要是用于存放UA伪装 encoding: 编码 type_ls: 报表类型 包括:资产负债表、利润表、现金流量表、财务报表摘要、主要财务指标(又包括:偿债能力、营运能力、盈利能力) ...
PypiClean
/Adeepspeed-0.9.2.tar.gz/Adeepspeed-0.9.2/deepspeed/ops/lamb/fused_lamb.py
# DeepSpeed Team """ Copyright NVIDIA/apex This file is adapted from NVIDIA/apex/optimizer/fused_adam and implements the LAMB optimizer """ import types import torch from deepspeed.ops.op_builder import FusedLambBuilder class FusedLamb(torch.optim.Optimizer): """Implements the LAMB algorithm. Currently GPU-only....
PypiClean
/NodeGraphQt_QuiltiX_fork-0.6.0.tar.gz/NodeGraphQt_QuiltiX_fork-0.6.0/NodeGraphQt/base/menu.py
import re from distutils.version import LooseVersion from Qt import QtGui, QtCore from NodeGraphQt.errors import NodeMenuError from NodeGraphQt.widgets.actions import BaseMenu, GraphAction, NodeAction class NodeGraphMenu(object): """ The ``NodeGraphMenu`` is the main context menu triggered from the node gra...
PypiClean
/MeUtils-2023.8.29.13.9.44-py3-none-any.whl/meutils/ai_nlp/word_segmentation.py
from meutils.pipe import * from paddlenlp import Taskflow # 增加停用词 # 增加词频统计 # 增加共现矩阵 # 数据清洗机制 只提取中文 简繁转换 半角全角 大小写 @lru_cache() class WordSegmentation(object): def __init__(self, mode='fast', user_dict=None, batch_size=32, device='cpu', filter_func=None, show_bar=False): """https://github.com/PaddlePadd...
PypiClean
/Graph_State_Machine-2.1-py3-none-any.whl/Graph_State_Machine/Util/generic_util.py
from itertools import chain from functools import reduce from collections import defaultdict import operator as op from typing import TypeVar, Callable, Union, List, Dict, Iterable, Iterator, Generator, Any, Tuple, Set, Generic, Mapping _a = TypeVar('_a') _b = TypeVar('_b') ## Higher-Order Functions def foldq(f: C...
PypiClean
/FightMan01dc.pymod-2.0.4.tar.gz/FightMan01dc.pymod-2.0.4/discord/member.py
import itertools from operator import attrgetter import discord.abc from . import utils from .user import BaseUser, User from .activity import create_activity from .permissions import Permissions from .enums import Status, try_enum from .colour import Colour from .object import Object class VoiceState: """Repres...
PypiClean
/Flask_OpenAPI3_UI-1.6.0-py3-none-any.whl/flask_openapi/ui2/static/lib/jquery.ba-bbq.min.js
!function(e,t){function n(e){return"string"==typeof e}function r(e){var t=g.call(arguments,1);return function(){return e.apply(this,t.concat(g.call(arguments)))}}function o(e){return e.replace(/^[^#]*#?(.*)$/,"$1")}function a(e){return e.replace(/(?:^[^?#]*\?([^#]*).*$)?.*/,"$1")}function i(r,o,a,i,c){var u,s,p,h,d;ret...
PypiClean
/DjangoDjangoAppCenter-0.0.11-py3-none-any.whl/AppCenter/simpleui/static/admin/simpleui-x/elementui/locale/lang/sl.js
'use strict'; exports.__esModule = true; exports.default = { el: { colorpicker: { confirm: 'V redu', clear: 'Počisti' }, datepicker: { now: 'Zdaj', today: 'Danes', cancel: 'Prekliči', clear: 'Počisti', confi...
PypiClean
/LibRecommender-1.3.0-cp38-cp38-macosx_10_9_x86_64.whl/libserving/sanic_serving/online_deploy.py
import os from typing import Any, Dict, List, Optional, Tuple, Union import aiohttp import numpy as np import redis.asyncio as redis import ujson from sanic import Sanic from sanic.exceptions import SanicException from sanic.log import logger from sanic.request import Request from sanic.response import HTTPResponse, j...
PypiClean
/NEURON_gpu_nightly-8.2a7-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/neuron/rxd/geometry.py
import warnings import numpy from neuron import h, nrn from .rxdException import RxDException try: from neuron.rxd import geometry3d has_geometry3d = True except ImportError: has_geometry3d = False class RxDGeometry: def volumes1d(self, sec): raise RxDException("volume1d unimplemented") ...
PypiClean
/ASTFormatter-0.6.4.tar.gz/ASTFormatter-0.6.4/astformatter/__init__.py
import ast import re __all__ = ('ASTFormatter',) import sys # for sys.version ######################################################################## # The ASTFormatter class walks an AST and produces properly formatted # python code for that AST. class ASTFormatter(ast.NodeVisitor): ''' ASTFormatter =...
PypiClean
/FMPy-0.3.11-py3-none-any.whl/fmpy/cswrapper/__init__.py
def add_cswrapper(filename, outfilename=None): from fmpy import read_model_description, extract, sharedLibraryExtension, platform, __version__ from lxml import etree import os from shutil import copyfile, rmtree if outfilename is None: outfilename = filename model_description = read_m...
PypiClean
/NLP_LIB_cpu-0.0.12.tar.gz/NLP_LIB_cpu-0.0.12/NLP_LIB/transforms/bigram_dictionary_wrapper.py
import numpy as np import os from NLP_LIB.nlp_core.data_transform_wrapper import DataTransformWrapper class BiGramDictionaryWrapper(DataTransformWrapper): # When initialize DataTransformWrapper, we pass configuration and dataset object to constructor def __init__(self, config, dataset): super(BiGramDictiona...
PypiClean
/FlaskCms-0.0.4.tar.gz/FlaskCms-0.0.4/flask_cms/static/js/ckeditor/plugins/codemirror/plugin.js
(function() { CKEDITOR.plugins.add('codemirror', { icons: 'searchcode,autoformat,commentselectedrange,uncommentselectedrange,autocomplete', lang: 'af,ar,bg,bn,bs,ca,cs,cy,da,de,el,en-au,en-ca,en-gb,en,eo,es,et,eu,fa,fi,fo,fr-ca,fr,gl,gu,he,hi,hr,hu,is,it,ja,ka,km,ko,ku,lt,lv,mk,mn,ms,nb,nl,no,pl,pt-...
PypiClean
/KalturaApiClient-19.3.0.tar.gz/KalturaApiClient-19.3.0/KalturaClient/Plugins/QuickPlayDistribution.py
from __future__ import absolute_import from .Core import * from .ContentDistribution import * from ..Base import ( getXmlNodeBool, getXmlNodeFloat, getXmlNodeInt, getXmlNodeText, KalturaClientPlugin, KalturaEnumsFactory, KalturaObjectBase, KalturaObjectFactory, KalturaParams, Ka...
PypiClean
/NlpToolkit-Dictionary-1.0.34.tar.gz/NlpToolkit-Dictionary-1.0.34/Dictionary/TxtDictionary.py
from bisect import bisect_left from functools import cmp_to_key import pkg_resources from Dictionary.Trie.Trie import Trie from Dictionary.Dictionary import Dictionary from Dictionary.TxtWord import TxtWord class TxtDictionary(Dictionary): __misspelled_words: dict def __init__(self, fileN...
PypiClean
/BrightPy-0.1.2.tar.gz/BrightPy-0.1.2/brightpy/__init__.py
import argparse import math import json import os import sys from time import sleep from brightpy.argparse_subparser_alias import AliasedSubParsersAction BACKLIGHT_PATH = '/sys/class/backlight/intel_backlight' class Backlight(object): def __init__(self): self.min = 1 with open(os.path.join(BAC...
PypiClean
/Argonaut-0.3.4.tar.gz/Argonaut-0.3.4/argonaut/public/ckeditor/_source/plugins/uicolor/yui/yui.js
/*jsl:ignoreall*/ /* Copyright (c) 2009, Yahoo! Inc. All rights reserved. Code licensed under the BSD License: http://developer.yahoo.net/yui/license.txt version: 2.7.0 */ if(typeof YAHOO=="undefined"||!YAHOO){var YAHOO={};}YAHOO.namespace=function(){var A=arguments,E=null,C,B,D;for(C=0;C<A.length;C=C+1){D=(""+A[C]).s...
PypiClean
/ChemDataExtractor-1.3.0-py3-none-any.whl/chemdataextractor/scrape/selector.py
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from collections import Sequence from copy import deepcopy import logging import re from bs4 import UnicodeDammit from lxml.etree import XMLParser, fromstring, tostring f...
PypiClean
/BlueWhale3_Network-1.4.2-cp38-cp38-macosx_10_9_x86_64.whl/orangecontrib/network/widgets/OWNxFromDistances.py
import numpy as np import scipy.sparse as sp from scipy.sparse import csgraph import pyqtgraph as pg from AnyQt.QtCore import QLineF, QSize, Qt from AnyQt.QtWidgets import QGridLayout, QLabel from Orange.data import Domain, StringVariable, Table from Orange.distance import Euclidean from Orange.misc import DistMatri...
PypiClean
/Editra-0.7.20.tar.gz/Editra-0.7.20/src/eclib/choicedlg.py
__author__ = "Cody Precord <cprecord@editra.org>" __svnid__ = "$Id: choicedlg.py 70230 2012-01-01 01:47:42Z CJP $" __revision__ = "$Revision: 70230 $" __all__ = ['ChoiceDialog',] #--------------------------------------------------------------------------# # Imports import wx import ecbasewin #----------------------...
PypiClean
/Flask-API-3.1.tar.gz/Flask-API-3.1/README.md
# Flask API Browsable web APIs for Flask. [![Unix Build Status](https://img.shields.io/travis/com/flask-api/flask-api.svg)](https://travis-ci.com/flask-api/flask-api) [![Coverage Status](https://img.shields.io/coveralls/flask-api/flask-api.svg)](https://coveralls.io/r/flask-api/flask-api) [![Scrutinizer Code Quality]...
PypiClean
/Flask_Unchained-0.9.0-py3-none-any.whl/flask_unchained/bundles/controller/decorators.py
from enum import Enum from functools import wraps from http import HTTPStatus from flask import abort, request from flask_unchained.string_utils import snake_case from py_meta_utils import _missing try: from sqlalchemy_unchained import BaseModel as Model except ImportError: Model = None from .attr_constants ...
PypiClean
/LipidConverter-0.1.6.tar.gz/LipidConverter-0.1.6/bin/lipid_converter.py
#Lipid-converter.py #Copyright (C) 2014 Per Larsson Peter Kasson #This library is free software; you can redistribute it and/or #modify it under the terms of the GNU Library General Public #License as published by the Free Software Foundation; either #version 2 of the License, or (at your option) any later version...
PypiClean
/Diofant-0.14.0a2.tar.gz/Diofant-0.14.0a2/diofant/tensor/indexed.py
r"""Module that defines indexed objects The classes IndexedBase, Indexed and Idx would represent a matrix element M[i, j] as in the following graph:: 1) The Indexed class represents the entire indexed object. | ___|___ ' ' M[i, j] / \__\______ ...
PypiClean
/Glances-3.4.0.3.tar.gz/Glances-3.4.0.3/docs/aoa/ports.rst
.. _ports: Ports ===== *Availability: All* .. image:: ../_static/ports.png This plugin aims at providing a list of hosts/port and URL to scan. You can define ``ICMP`` or ``TCP`` ports scans and URL (head only) check. The list should be defined in the ``[ports]`` section of the Glances configuration file. .. code...
PypiClean
/Augmented%20Criticism%20Lab%20Toolkit-1.1.9.tar.gz/Augmented Criticism Lab Toolkit-1.1.9/admin_tools/authentication_handler.py
import base64 import requests class Authentication: """Class deals with obtaining and storing an OAuth token. """ AUTH_URL = 'https://api.acriticismlab.org/oauth/authorize' TOKEN_URL = 'https://api.acriticismlab.org/oauth/token' CLIENT_ID = 'databaseAuthentication' CLIENT_SECRET = '' ENCODING...
PypiClean
/energon_prometheus_exporter_test-0.0.1-py3-none-any.whl/torchdistill-test/torchdistill/datasets/transform.py
import random from io import BytesIO import numpy as np import torch from PIL import Image from torchvision import transforms as T from torchvision.transforms import RandomResizedCrop, Resize from torchvision.transforms import functional as F from torchvision.transforms.functional import InterpolationMode from torchd...
PypiClean
/FlaskCms-0.0.4.tar.gz/FlaskCms-0.0.4/flask_cms/static/js/ckeditor/plugins/codemirror/js/mode/shell/shell.js
(function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use s...
PypiClean
/OBITools-1.2.13.tar.gz/OBITools-1.2.13/src/obitools/utils/bioseq.py
def mergeTaxonomyClassification(uniqSeq,taxonomy): for seq in uniqSeq: if seq['merged_taxid']: seq['taxid']=taxonomy.lastCommonTaxon(*seq['merged_taxid'].keys()) tsp = taxonomy.getSpecies(seq['taxid']) tgn = taxonomy.getGenus(seq['taxid']) tfa = taxonomy.getFa...
PypiClean
/CSUMMDET-1.0.23.tar.gz/CSUMMDET-1.0.23/mmdet/models/detectors/base.py
import logging from abc import ABCMeta, abstractmethod import mmcv import numpy as np import pycocotools.mask as maskUtils import torch.nn as nn from mmdet.core import auto_fp16, get_classes, tensor2imgs class BaseDetector(nn.Module): """Base class for detectors""" __metaclass__ = ABCMeta def __init__...
PypiClean
/FlaskCms-0.0.4.tar.gz/FlaskCms-0.0.4/flask_cms/static/js/ace/mode-django.js
ace.define("ace/mode/doc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"], function(require, exports, module) { "use strict"; var oop = require("../lib/oop"); var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules; var DocCommentHighlightRule...
PypiClean
/Flask_Flash-2.0.0-py3-none-any.whl/flask_flash/utils.py
from datetime import datetime import logging from flask import request import urllib.request, urllib.parse, urllib.error from flask_flash.extensions import cache log = logging.getLogger(__name__) TIME_FORMATS = { 'naive': "%Y-%m-%d %H:%M:%S", 'with_timezone': "%Y-%m-%d %H:%M:%S %Z%z" } def print_datetime(dt,...
PypiClean
/dl_track_us-0.1.2.2.tar.gz/dl_track_us-0.1.2.2/DL_Track_US/gui_helpers/do_calculations_video.py
from __future__ import division import math import tkinter as tk from sys import platform import cv2 import matplotlib.pyplot as plt import numpy as np from keras.models import load_model from scipy.signal import savgol_filter from skimage.morphology import skeletonize from skimage.transform import resize from tensor...
PypiClean
/Becky-0.7.tar.gz/Becky-0.7/becky_cli/becky/backups/backup.py
import natsort import time from becky_cli.becky.providers.local_provider import LocalProvider from becky_cli.becky.providers.remote_provider import RemoteProvider from becky_cli.becky.providers.s3_provider import S3Provider from becky_cli.becky.scanners.local_differential_scanner import LocalDifferentialScanner class...
PypiClean
/Mathics_Django-6.0.0-py3-none-any.whl/mathics_django/web/media/js/mathjax/jax/output/SVG/fonts/STIX-Web/DoubleStruck/Bold/Main.js
MathJax.OutputJax.SVG.FONTDATA.FONTS["STIXMathJax_DoubleStruck-bold"]={directory:"DoubleStruck/Bold",family:"STIXMathJax_DoubleStruck",weight:"bold",id:"STIXWEBDOUBLESTRUCKB",32:[0,0,250,0,0,""],160:[0,0,250,0,0,""],8450:[691,19,727,45,672,"626 171l46 -48c-85 -94 -159 -142 -289 -142c-196 0 -338 161 -338 353c0 196 137 3...
PypiClean
/Djimage-0.0.1.tar.gz/Djimage-0.0.1/README.rst
=================== Django Image Field =================== Overview ======== - This Image field Provides functionality for **Compression** and **Dimension** of image at uploading time. Installation ============= - Installation - * Run :: pip install djimage * Add 'djimage' to your INSTALLED_APPS :: ...
PypiClean
/MaTiSSe.py-1.3.3.tar.gz/MaTiSSe.py-1.3.3/matisse/utils/js/MathJax/extensions/MatchWebFonts.js
(function(c,b){var d="2.5.0";var a=MathJax.Hub.CombineConfig("MatchWebFonts",{matchFor:{"HTML-CSS":true,NativeMML:true,SVG:true},fontCheckDelay:500,fontCheckTimeout:15*1000,});MathJax.Extension.MatchWebFonts={version:d,config:a};c.Register.StartupHook("HTML-CSS Jax Ready",function(){var e=MathJax.OutputJax["HTML-CSS"];...
PypiClean
/NanoPlot-1.41.6.tar.gz/NanoPlot-1.41.6/nanoplotter/nanoplotter_main.py
import plotly.graph_objs as go import plotly import logging import sys import os import pandas as pd import numpy as np from nanoplotter.plot import Plot import plotly.express as px import plotly.figure_factory as ff from nanoplotter.spatial_heatmap import spatial_heatmap from nanoplotter.timeplots import time_plots im...
PypiClean
/DIRECT-1.0.1.tar.gz/DIRECT-1.0.1/doc/source/sphinxext/inheritance_diagram.py
import inspect import os import re import subprocess try: from hashlib import md5 except ImportError: from md5 import md5 from docutils.nodes import Body, Element from docutils.parsers.rst import directives from sphinx.roles import xfileref_role def my_import(name): """Module importer - taken from the pyt...
PypiClean
/OPi.GPIO-0.5.2.tar.gz/OPi.GPIO-0.5.2/OPi/GPIO.py
import warnings from OPi.constants import IN, OUT from OPi.constants import LOW, HIGH # noqa: F401 from OPi.constants import NONE, RISING, FALLING, BOTH # noqa: F401 from OPi.constants import BCM, BOARD, SUNXI, CUSTOM from OPi.constants import PUD_UP, PUD_DOWN, PUD_OFF # noqa: F401 from OPi.p...
PypiClean
/AshareFactor-0.0.1.tar.gz/AshareFactor-0.0.1/AShareFactor/AshareFactor.py
import pandas as pd import numpy as np from datetime import datetime from sklearn import linear_model from scipy.stats import rankdata import statsmodels.api as sm from scipy.linalg import inv from tqdm import tqdm import sqlalchemy from sqlalchemy import create_engine import psycopg2 import warnings warnings.filterwa...
PypiClean
/CRIkit2-0.4.4.tar.gz/CRIkit2-0.4.4/crikit/preprocess/crop.py
import numpy as _np import copy as _copy class ZeroColumn: """ Set first or last column that is not all 0's to 0. Parameters ---------- first_or_last : int, optional (default = 0 [first]) Find first (= 0) or last (= -1) zero_col : int, optional (default = None) Zero a specifi...
PypiClean
/NM_LFAK-1.2.tar.gz/NM_LFAK-1.2/NM_LFAK/interp1d/main.py
from pandas import read_csv from scipy.linalg import solve import matplotlib.pyplot as plt import numpy as np from sympy import simplify, expand, Symbol from numpy import vstack, array, polyfit, array, dot, linalg, arange, reshape from math import log, exp def reading_csv(path, header = False, delimiter = ','): ...
PypiClean
/Canto-curses-0.9.9.tar.gz/Canto-curses-0.9.9/canto_curses/tagcore.py
from canto_next.rwlock import RWLock from canto_next.hooks import call_hook, on_hook from .subthread import SubThread from .locks import config_lock from .config import config, story_needed_attrs import traceback import logging log = logging.getLogger("TAGCORE") alltagcores = [] class TagCore(list): def __ini...
PypiClean
/ClueDojo-1.4.3-1.tar.gz/ClueDojo-1.4.3-1/src/cluedojo/static/dojo/cldr/nls/ru/gregorian.js
({"months-format-narrow":["Я","Ф","М","А","М","И","И","А","С","О","Н","Д"],"quarters-standAlone-narrow":["1","2","3","4"],"field-weekday":"День недели","dateFormatItem-yQQQ":"y QQQ","dateFormatItem-yMEd":"EEE, yyyy-M-d","dateFormatItem-yyyyLLLL":"LLLL y","dateFormatItem-MMMEd":"E MMM d","eraNarrow":["до н.э.","н.э."],"...
PypiClean
/FlaskCms-0.0.4.tar.gz/FlaskCms-0.0.4/flask_cms/static/js/ckeditor/plugins/a11yhelp/dialogs/lang/pl.js
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang("a11yhelp","pl",{title:"Instrukcje dotyczące dostępności",contents:"Zawartość pomocy. Wciśnij ESC, aby zamknąć to okno.",legend:[{name:"Informacje og...
PypiClean
/MindTree-1.0.0-a002.zip/MindTree-1.0.0-a002/Plugins/BonsaiXMLImporter/BonsaiXMLImporter.py
import xml.sax import copy from Tree import Tree class OutlineBuilder: def __init__( self, anOutlineName=None ): self._stack = [] self._top = None self._depth = -1 self.beginNested( anOutlineName ) def beginNested( self, name = None ): newItem = Tree( ) self._st...
PypiClean
/NAG-PyPOP-0.3.5.tar.gz/NAG-PyPOP-0.3.5/README.md
# PyPOP Documentation: https://numericalalgorithmsgroup.github.io/pypop/doc.html A python package for calculating POP metrics from application profiles, primarily designed for literate programming using Jupyter notebooks. PyPOP currently consumes Extrae `*.prv` traces, but is designed with a view to adding support f...
PypiClean
/EnergyCapSdk-8.2304.4743.tar.gz/EnergyCapSdk-8.2304.4743/energycap/sdk/models/hierarchical_cost_centers.py
from msrest.serialization import Model class HierarchicalCostCenters(Model): """HierarchicalCostCenters. :param parent_id: The cost center's parent :type parent_id: int :param cost_center_id: The cost center's primary ID :type cost_center_id: int :param cost_center_info: CostCenterInfo :...
PypiClean
/Flask-Ink-3.1.10.tar.gz/Flask-Ink-3.1.10/flask_ink/static/js/ink-ui.min.js
Ink.createModule("Ink.UI.Aux","1",["Ink.Net.Ajax_1","Ink.Dom.Css_1","Ink.Dom.Selector_1","Ink.Util.Url_1"],function(e,t,n,r){"use strict";var i={},o=0,a={Layouts:{SMALL:"small",MEDIUM:"medium",LARGE:"large"},isDOMElement:function(e){return"object"==typeof e&&"nodeType"in e&&1===e.nodeType},isInteger:function(e){return"...
PypiClean
/AaronTools-1.0b14.tar.gz/AaronTools-1.0b14/bin/makeInput.py
import sys from os.path import splitext import argparse from AaronTools.geometry import Geometry from AaronTools.fileIO import FileReader, read_types from AaronTools.theory import * from AaronTools.utils.utils import combine_dicts, get_filename, glob_files theory_parser = argparse.ArgumentParser( description="pr...
PypiClean