id
stringlengths
1
265
text
stringlengths
6
5.19M
dataset_id
stringclasses
7 values
/Bottleneck-1.3.7rc1-cp36-cp36m-macosx_10_9_x86_64.whl/bottleneck/src/bn_template.py
import ast import os import posixpath as path import re from typing import Dict, List, Optional, Pattern, Tuple def make_c_files( dirpath: Optional[str] = None, modules: Optional[List[str]] = None ) -> None: if modules is None: modules = ["reduce", "move", "nonreduce", "nonreduce_axis"] if dirpath...
PypiClean
/Nuitka_fixed-1.1.2-cp310-cp310-win_amd64.whl/nuitka/build/inline_copy/lib/scons-3.1.2/SCons/Tool/link.py
from __future__ import print_function __revision__ = "src/engine/SCons/Tool/link.py bee7caf9defd6e108fc2998a2520ddb36a967691 2019-12-17 02:07:09 bdeegan" import sys import re import os import SCons.Tool import SCons.Util import SCons.Warnings # Nuitka: Avoid ununused tools # from SCons.Tool.FortranCommon import isf...
PypiClean
/BigchainDBNext-2.2.2.1.tar.gz/BigchainDBNext-2.2.2.1/bigchaindb/lib.py
import logging from collections import namedtuple from uuid import uuid4 import rapidjson try: from hashlib import sha3_256 except ImportError: # NOTE: neeeded for Python < 3.6 from sha3 import sha3_256 import requests import bigchaindb from bigchaindb import backend, config_utils, fastquery from bigcha...
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/budget_limit_store.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
/K40Silence-0.0.1.tar.gz/K40Silence-0.0.1/src/kernel.py
import functools import inspect import re import threading import time from threading import Lock, Thread from .svgelements import Color STATE_UNKNOWN = -1 STATE_INITIALIZE = 0 STATE_IDLE = 1 STATE_ACTIVE = 2 STATE_BUSY = 3 STATE_PAUSE = 4 STATE_END = 5 STATE_WAIT = 7 # Controller is waiting for something. This coul...
PypiClean
/DendroPy_calver-2023.330.2-py3-none-any.whl/dendropy/utility/messaging.py
############################################################################## ## DendroPy Phylogenetic Computing Library. ## ## Copyright 2010-2015 Jeet Sukumaran and Mark T. Holder. ## All rights reserved. ## ## See "LICENSE.rst" for terms and conditions of usage. ## ## If you use this work or any portion there...
PypiClean
/src/main/resources/base/Icons/README.txt
Fugue Icons (C) 2013 Yusuke Kamiyamane. All rights reserved. These icons are licensed under a Creative Commons Attribution 3.0 License. <http://creativecommons.org/licenses/by/3.0/> If you can't or don't want to provide attribution, please purchase a royalty-free license. <http://p.yusukekamiyamane.com/> I'm unavai...
PypiClean
/Indomielibs-2.0.106.tar.gz/Indomielibs-2.0.106/pyrogram/methods/messages/send_audio.py
import os import re from datetime import datetime from typing import Union, BinaryIO, List, Optional, Callable import pyrogram from pyrogram import StopTransmission, enums from pyrogram import raw from pyrogram import types from pyrogram import utils from pyrogram.errors import FilePartMissing from pyrogram.file_id i...
PypiClean
/BioSignalML-0.6.0a.tar.gz/BioSignalML-0.6.0a/biosignalml/model/recording.py
import logging from collections import OrderedDict import biosignalml.rdf as rdf import biosignalml.utils as utils from biosignalml.rdf import XSD, DCT, TL, PROV from .ontology import BSML from .core import AbstractObject from .mapping import PropertyMap from .signal import Signal from .event import Event f...
PypiClean
/FoilMesh-0.0.8.tar.gz/FoilMesh-0.0.8/foilmesh/meshio/su2/_su2.py
from itertools import chain, islice import numpy as np from .._common import _pick_first_int_data, warn from .._exceptions import ReadError from .._files import open_file from .._helpers import register_format from .._mesh import CellBlock, Mesh # follows VTK conventions su2_type_to_numnodes = { 3: 2, # line ...
PypiClean
/FicusFramework-3.1.0.post2.tar.gz/FicusFramework-3.1.0.post2/src/factdatasource/dao/kafka/MultipleKafkaDatasource.py
from confluent_kafka.cimpl import Producer, Consumer from api.exceptions import IllegalArgumentException from api.model.FactDatasource import FactDatasourceTypeEnum from config.annotation import Value from factdatasource.dao.FactDatasource import DatasourceListener, MultipleBaseDatasource, BaseDatasource, \ custom...
PypiClean
/GQCMS-0.0.4-py3-none-any.whl/build/lib/build/lib/gqcms/ConfigurationInteraction.py
import numpy as np import pandas as pd from scipy import linalg from gqcms import HartreeFock from gqcms import Hubbard from gqcms import Determinant from gqcms import createHamiltonianSCI from gqcms import DensityOperator def FCI(hamiltonian: np.ndarray, states: tuple = 0) -> pd.DataFrame: """ Computes the ...
PypiClean
/NlvWxPython-4.2.0-cp37-cp37m-win_amd64.whl/wx/lib/inspection.py
# NOTE: This class was originally based on ideas sent to the # wxPython-users mail list by Dan Eloff. See also # wx.lib.mixins.inspect for a class that can be mixed-in with wx.App # to provide Hot-Key access to the inspection tool. """ This modules provides the :class:`~wx.lib.inspection.InspectionTool` and everythi...
PypiClean
/123_object_detection-0.1.tar.gz/123_object_detection-0.1/object_detection/models/ssd_inception_v3_feature_extractor.py
"""SSDFeatureExtractor for InceptionV3 features.""" import tensorflow.compat.v1 as tf import tf_slim as slim from object_detection.meta_architectures import ssd_meta_arch from object_detection.models import feature_map_generators from object_detection.utils import ops from object_detection.utils import shape_utils fr...
PypiClean
/Nitrous-0.9.3-py3-none-any.whl/turbogears/i18n/data/lt_LT.py
languages={'el': u'Graik\u0173', 'en': u'Angl\u0173', 'zh': u'Kin\u0173', 'it': u'Ital\u0173', 'ar': u'Arab\u0173', 'cs': u'\u010cekijos', 'et': u'Est\u0173', 'es': u'Ispan\u0173', 'ru': u'Rus\u0173', 'nl': u'Oland\u0173', 'pt': u'Portugal\u0173', 'no': u'Norveg\u0173', 'tr': u'Turk\u0173', 'lv': u'Latvi\u0173', 'lt':...
PypiClean
/McsPyDataTools-0.4.3.tar.gz/McsPyDataTools-0.4.3/docs/mcs_hdf5_protocol.rst
MCS HDF5 Format Definitions =========================== Definition of the HDF5 format for raw data ------------------------------------------ MCS-HDF5 Protocol Type: RawData (Raw-Data protocol) Protocol Version: 3 based on the definitions of RawDataFileIO in version 10. All strings are only ASCII-encoded Changelog...
PypiClean
/Heterogeneous_Highway_Env-0.0.3-py3-none-any.whl/src/envs/summon_env.py
from gym.envs.registration import register import numpy as np from highway_env import utils from highway_env.envs import ParkingEnv from highway_env.road.lane import StraightLane, LineType from highway_env.road.road import Road, RoadNetwork from highway_env.vehicle.kinematics import Vehicle from highway_env.vehicle.ob...
PypiClean
/MineSight-1.0.13.tar.gz/MineSight-1.0.13/minesight/lookup.py
import asyncio import json import re import bs4 import httpx from rich.progress import Progress from rich import print from jsonpath_ng import parse from rich.console import Console from rich.tree import Tree from minesight.utils import parse_date_with_formats import pkg_resources NEXT_JSON_SCRIPT_SELECTOR = "script#_...
PypiClean
/NVDA-addonTemplate-0.5.2.zip/NVDA-addonTemplate-0.5.2/NVDAAddonTemplate/data/{{cookiecutter.project_slug}}/scons-local-2.5.0/SCons/Tool/PharLapCommon.py
__revision__ = "src/engine/SCons/Tool/PharLapCommon.py rel_2.5.0:3543:937e55cd78f7 2016/04/09 11:29:54 bdbaddog" import os import os.path import SCons.Errors import SCons.Util import re def getPharLapPath(): """Reads the registry to find the installed path of the Phar Lap ETS development kit. Raises Use...
PypiClean
/Cubane-1.0.11.tar.gz/Cubane-1.0.11/cubane/ishop/apps/merchant/vouchers/forms.py
from __future__ import unicode_literals from django import forms from django.conf import settings from django.forms.formsets import BaseFormSet, formset_factory from django.template.defaultfilters import slugify from cubane.forms import BaseModelForm, DateInput, NumberInput, BootstrapTextInput from cubane.ishop import ...
PypiClean
/AthenaTwitchBot-0.8.1.tar.gz/AthenaTwitchBot-0.8.1/README.md
# - AthenaTwitchBot - [![pypi](https://img.shields.io/pypi/v/AthenaTwitchBot)](https://pypi.org/project/AthenaTwitchBot/) [![GitHub license](https://img.shields.io/github/license/DirectiveAthena/AthenaTwitchBot)](https://github.com/DirectiveAthena/VerSC-AthenaColor/blob/master/LICENSE) [![Discord](https://img.shields.i...
PypiClean
/DjangoDjangoAppCenter-0.0.11-py3-none-any.whl/AppCenter/simpleui/static/admin/simpleui-x/elementui/locale/lang/it.js
'use strict'; exports.__esModule = true; exports.default = { el: { colorpicker: { confirm: 'OK', clear: 'Pulisci' }, datepicker: { now: 'Ora', today: 'Oggi', cancel: 'Cancella', clear: 'Pulisci', confirm: 'O...
PypiClean
/Flask-Foundation-2.1.tar.gz/Flask-Foundation-2.1/flask_foundation/static/js/vendor/modernizr.js
window.Modernizr=function(a,b,c){function d(a){t.cssText=a}function e(a,b){return d(x.join(a+";")+(b||""))}function f(a,b){return typeof a===b}function g(a,b){return!!~(""+a).indexOf(b)}function h(a,b){for(var d in a){var e=a[d];if(!g(e,"-")&&t[e]!==c)return"pfx"==b?e:!0}return!1}function i(a,b,d){for(var e in a){var g...
PypiClean
/Django-4.2.4.tar.gz/Django-4.2.4/django/db/migrations/operations/base.py
from django.db import router class Operation: """ Base class for migration operations. It's responsible for both mutating the in-memory model state (see db/migrations/state.py) to represent what it performs, as well as actually performing it against a live database. Note that some operations...
PypiClean
/BCPy2000-1.6.tar.gz/BCPy2000-1.6/src/SigTools/NumTools.py
__all__ = [ 'whoami', 'isnumpyarray', 'disp', 'cat', 'mad', 'flip', 'project', 'trimtrailingdims', 'isequal', 'unwrapdiff', 'diffx', 'edges', 'refrac', 'epochs', 'summarize', 'sdict', 'reportstruct', 'sstruct', 'ssdiff', 'sscommon', 'loadmat', 'savemat', 'pickle', 'unpickle', ] import numpy import types impo...
PypiClean
/KolejkaJudge-0.1.202211021413-py3-none-any.whl/kolejka/judge/tasks/tools.py
from copy import deepcopy from kolejka.judge import config from kolejka.judge.commands import * from kolejka.judge.paths import * from kolejka.judge.typing import * from kolejka.judge.validators import * from kolejka.judge.tasks.base import TaskBase from kolejka.judge.tasks.build import * from kolejka.judge.tasks.pre...
PypiClean
/dragonflow-4.0.0.tar.gz/dragonflow-4.0.0/doc/source/devrefs/index.rst
.. 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 ...
PypiClean
/DuHast-1.0.7-py3-none-any.whl/duHast/APISamples/RevitWorksets.py
import clr import System # import common library modules import RevitCommonAPI as com import Result as res import Utility as util # import Autodesk import Autodesk.Revit.DB as rdb clr.ImportExtensions(System.Linq) # -------------------------------------------- common variables -------------------- #: header used i...
PypiClean
/DEODR-0.2.1-cp310-cp310-manylinux_2_12_i686.manylinux2010_i686.manylinux_2_17_i686.manylinux2014_i686.whl/deodr/examples/render_mesh.py
import os from typing import Tuple import imageio.v3 as imageio import matplotlib.pyplot as plt import numpy as np from scipy.spatial.transform import Rotation import trimesh import deodr from deodr import differentiable_renderer from deodr.differentiable_renderer import Camera, Scene3D from deodr.triangulated_mesh ...
PypiClean
/GLManager-1.1.6.tar.gz/GLManager-1.1.6/app/domain/use_cases/user_use_case.py
import typing as t import datetime from app.data.repositories import UserRepository from app.domain.dtos import UserDto from app.domain.entities import User from app.utilities.shellscript import exec_command class UserUseCase: def __init__(self, user_repository: UserRepository): self.user_repository = us...
PypiClean
/B9gemyaeix-4.14.1.tar.gz/B9gemyaeix-4.14.1/weblate/utils/requirements.py
import sys # Once we depedend on Python 3.8+ this should be changed to importlib.metadata try: import importlib.metadata as importlib_metadata except ImportError: import importlib_metadata from django.conf import settings from django.core.cache import cache from django.core.exceptions import ImproperlyConfigu...
PypiClean
/ImSwitchUC2-2.1.0.tar.gz/ImSwitchUC2-2.1.0/imswitch/imcontrol/model/managers/LEDMatrixs/ESP32LEDMatrixManager.py
from imswitch.imcommon.model import initLogger from .LEDMatrixManager import LEDMatrixManager import numpy as np import uc2rest class ESP32LEDMatrixManager(LEDMatrixManager): """ LEDMatrixManager for controlling LEDs and LEDMatrixs connected to an ESP32 exposing a REST API Each LEDMatrixManager instance c...
PypiClean
/AyiinXd-0.0.8-cp311-cp311-macosx_10_9_universal2.whl/fipper/types/messages_and_media/message_entity.py
from typing import Optional import fipper from fipper import raw, enums from fipper import types from ..object import Object class MessageEntity(Object): """One special entity in a text message. For example, hashtags, usernames, URLs, etc. Parameters: type (:obj:`~fipper.enums.MessageEntit...
PypiClean
/AmeriResumeParser-1.0.0.tar.gz/AmeriResumeParser-1.0.0/pyresparser/utils.py
import io import os import re import nltk import pandas as pd import docx2txt from datetime import datetime from dateutil import relativedelta from . import constants as cs from pdfminer.converter import TextConverter from pdfminer.pdfinterp import PDFPageInterpreter from pdfminer.pdfinterp import PDFResourceManager f...
PypiClean
/310_notebook-0.1.0-py3-none-any.whl/310_notebook/labextension/static/style_index_js.547b86f938c46e9f74f6.js
"use strict"; (self["webpackChunk_310_notebook"] = self["webpackChunk_310_notebook"] || []).push([["style_index_js"],{ /***/ "./node_modules/css-loader/dist/cjs.js!./style/base.css": /*!**************************************************************!*\ !*** ./node_modules/css-loader/dist/cjs.js!./style/base.css ***! ...
PypiClean
/Mtrax-2.2.07.zip/Mtrax-2.2.07/mtrax/histgmm.py
from matplotlib.mlab import normpdf import numpy as num from scipy.linalg.basic import eps, kron # kron substitutes for repmat import sys PRINT_PROGRESS = False def make_vect( arr ): return arr.reshape( arr.size ) def histgmm( x, w, maxiters=100, minchange=None, minsigma=None ): """Gaussian mixture modeling...
PypiClean
/Flask-Security-Classic-3.0.2.tar.gz/Flask-Security-Classic-3.0.2/docs/api.rst
API === Core ---- .. autoclass:: flask_security.core.Security :members: .. data:: flask_security.core.current_user A proxy for the current user. Protecting Views ---------------- .. autofunction:: flask_security.decorators.login_required .. autofunction:: flask_security.decorators.roles_required .. autofu...
PypiClean
/ImSwitch-2.0.0.tar.gz/ImSwitch-2.0.0/imswitch/imcontrol/model/signaldesigners/basesignaldesigners.py
import importlib from abc import ABC, abstractmethod from imswitch.imcommon.model import pythontools, initLogger from ..errors import InvalidChildClassError class SignalDesigner(ABC): """Parent class for any type of SignalDesigner. Any child should define self._expected_parameters and its own make_signal met...
PypiClean
/Drowsy-0.1.6-py3-none-any.whl/drowsy/query_builder.py
from collections import defaultdict import sqlite3 from drowsy.fields import NestedRelated from drowsy.log import Loggable from drowsy.parser import SortInfo, SubfilterInfo from drowsy.utils import get_field_by_data_key from sqlalchemy import and_, func, or_ from sqlalchemy.inspection import inspect from sqlalchemy.orm...
PypiClean
/crosscat-0.1.55-cp27-none-macosx_10_6_intel.whl/crosscat/LocalEngine.py
from __future__ import print_function from six.moves import range import copy import itertools import collections import numpy import six import crosscat.cython_code.State as State import crosscat.EngineTemplate as EngineTemplate import crosscat.utils.sample_utils as su import crosscat.utils.general_utils as gu import...
PypiClean
/NeXpy-1.0.4-py3-none-any.whl/nexpy/gui/utils.py
import copy import datetime import gc import importlib import io import logging import os import re import sys import traceback as tb from configparser import ConfigParser from datetime import datetime import numpy as np from IPython.core.ultratb import ColorTB from matplotlib import __version__ as mplversion from ma...
PypiClean
/Flask-CKEditor-0.4.6.tar.gz/Flask-CKEditor-0.4.6/flask_ckeditor/static/standard/plugins/table/dialogs/table.js
/* Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ (function(){function w(a){for(var f=0,p=0,n=0,q,d=a.$.rows.length;n<d;n++){q=a.$.rows[n];for(var e=f=0,b,c=q.cells.length;e<c;e++)b=q.cells[e],f+=b.colSpa...
PypiClean
/DI_engine-0.4.9-py3-none-any.whl/ding/model/template/bc.py
from typing import Union, Optional, Dict, Callable, List import torch import torch.nn as nn from easydict import EasyDict from ding.torch_utils import get_lstm from ding.utils import MODEL_REGISTRY, SequenceType, squeeze from ..common import FCEncoder, ConvEncoder, DiscreteHead, DuelingHead, \ MultiHead, Regre...
PypiClean
/Django-4.2.4.tar.gz/Django-4.2.4/django/core/checks/security/sessions.py
from django.conf import settings from .. import Tags, Warning, register def add_session_cookie_message(message): return message + ( " Using a secure-only session cookie makes it more difficult for " "network traffic sniffers to hijack user sessions." ) W010 = Warning( add_session_cookie...
PypiClean
/Hyperion-0.9.10.tar.gz/Hyperion-0.9.10/hyperion/grid/octree_grid.py
from __future__ import print_function, division import struct import hashlib from copy import deepcopy import h5py import numpy as np from ..util.functions import FreezableClass, is_numpy_array, link_or_copy from astropy import log as logger from .grid_helpers import single_grid_dims class OctreeGrid(FreezableClas...
PypiClean
/Electrum-Zcash-Random-Fork-3.1.3b5.tar.gz/Electrum-Zcash-Random-Fork-3.1.3b5/lib/paymentrequest.py
import hashlib import sys import time import traceback import json import requests import urllib.parse try: from . import paymentrequest_pb2 as pb2 except ImportError: sys.exit("Error: could not find paymentrequest_pb2.py. Create it with 'protoc --proto_path=lib/ --python_out=lib/ lib/paymentrequest.proto'")...
PypiClean
/CANberry-0.4.tar.gz/CANberry-0.4/canberry/bower_components/Flot/jquery.flot.image.js
(function ($) { var options = { series: { images: { show: false, alpha: 1, anchor: "corner" // or "center" } } }; $.plot.image = {}; $.plot.image.loadDataImages = function (series, options, callback) { var ...
PypiClean
/GeoAlchemy2-0.14.1-py3-none-any.whl/geoalchemy2/comparator.py
from typing import Union from sqlalchemy import types as sqltypes from sqlalchemy.dialects.postgresql import DOUBLE_PRECISION from sqlalchemy.sql.elements import ColumnElement from sqlalchemy.sql.functions import _FunctionGenerator from sqlalchemy.sql.operators import custom_op from sqlalchemy.types import UserDefined...
PypiClean
/Flask-Security-Too-5.3.0.tar.gz/Flask-Security-Too-5.3.0/flask_security/datastore.py
import datetime import json import typing as t import uuid from .utils import config_value as cv if t.TYPE_CHECKING: # pragma: no cover import flask_sqlalchemy import mongoengine import sqlalchemy.orm.scoping class Datastore: def __init__(self, db): self.db = db def commit(self): ...
PypiClean
/Flask-Statics-Helper-1.0.0.tar.gz/Flask-Statics-Helper-1.0.0/flask_statics/static/angular/i18n/angular-locale_ar-bh.js
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; $provide.value("$locale", { "DATETIME_FORMATS": { "AMPMS": [ "\u0635", "\u0645" ], "DAY": [ "\u0627\u0644...
PypiClean
/JitViewer-0.2.1.tar.gz/JitViewer-0.2.1/_jitviewer/static/canjs/1.1.4/amd/can/view.js
define(['can/util/library'], function (can) { // ## view.js // `can.view` // _Templating abstraction._ var isFunction = can.isFunction, makeArray = can.makeArray, // Used for hookup `id`s. hookupId = 1, $view = can.view = function (view, data, helpers, callback) { // If helpers is a `function`, it is ...
PypiClean
/Firefly_III_API_Client-2.0.5.0-py3-none-any.whl/firefly_iii_client/paths/v1_configuration/get.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
/FSlash-0.17.0.tar.gz/FSlash-0.17.0/fslash/core/option.py
from abc import ABC, abstractmethod from typing import Any, Callable, Generator, Iterable, Iterator, List, Optional, TypeVar, cast, overload from .error import EffectError from .pipe import pipe TSource = TypeVar("TSource") TResult = TypeVar("TResult") T1 = TypeVar("T1") T2 = TypeVar("T2") T3 = TypeVar("T3") T4 = Typ...
PypiClean
/DataSuper-0.11.1-py3-none-any.whl/datasuper/database/base_record.py
from .database_exceptions import ( InvalidRecordStateError, RecordExistsError, ) class BaseRecord: '''Abstract class providing functions common to all records. Attributes: repo (datasuper.Repo): The repo that contains this record. db (datasuper.Database): The database that contains th...
PypiClean
/Auto_Python_2014-14.1.5.zip/Auto_Python_2014-14.1.5/common/COM_httpclient.py
import httplib import urllib from COM_util_trans import Trans from COM_util_tools import COM_tools class COM_postrequest(object): ''' classdocs ''' def __init__(self,url,header={"Content-Type":"application/x-www-form-urlencoded","Connection":"Keep-Alive"}): self.url=url self.method='POS...
PypiClean
/Chertoganov-0.1.0.tar.gz/Chertoganov-0.1.0/CONTRIBUTING.rst
.. highlight:: shell ============ Contributing ============ Contributions are welcome, and they are greatly appreciated! Every little bit helps, and credit will always be given. You can contribute in many ways: Types of Contributions ---------------------- Report Bugs ~~~~~~~~~~~ Report bugs at https://github.com...
PypiClean
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/xml/widgetParser.js.uncompressed.js
define("dojox/xml/widgetParser", [ "dojo/_base/lang", // dojo.getObject "dojo/_base/window", // dojo.doc "dojo/_base/sniff", // dojo.isIE "dojo/query", "dojo/parser", "dojox/xml/parser" ], function(dojo, window, has, query, parser, dxparser){ var dXml = lang.getObject("dojox.xml", true); /** Take some sort of x...
PypiClean
/EnforsML-0.0.3.tar.gz/EnforsML-0.0.3/enforsml/text/nlp.py
from enforsml.text import bagofwords, ngram, utils class NLPError(BaseException): """Generic NLP error. """ pass class IncorrectArg(NLPError): pass class Context(object): """A context that can be triggered by an Intent. """ def __init__(self, name, enabled=False): self.name = ...
PypiClean
/Mopidy-WebLibrary-1.0.0.tar.gz/Mopidy-WebLibrary-1.0.0/mopidy_weblibrary/static/vendors/mopidy/mopidy.min.js
!function(a){if("object"==typeof exports)module.exports=a();else if("function"==typeof define&&define.amd)define(a);else{var b;"undefined"!=typeof window?b=window:"undefined"!=typeof global?b=global:"undefined"!=typeof self&&(b=self),b.Mopidy=a()}}(function(){var a;return function b(a,c,d){function e(g,h){if(!c[g]){if(...
PypiClean
/BioMine-0.9.5.zip/BioMine-0.9.5/biomine/variant/vepconsequencevariant.py
from biomine.variant.mafvariant import mafvariant #{ # "biotype": "retained_intron", # "cdna_end": 392, # "cdna_start": 392, # "consequence_terms": [ # "non_coding_transcript_exon_variant", # "non_coding_transcript_variant" # ], # "exon": "3/3", # "gene_id": "ENSG00000157764", # "gene_symbol": "BRAF", # "gene_symbol_...
PypiClean
/GenIce2-2.1.7.1.tar.gz/GenIce2-2.1.7.1/genice2/formats/rings.py
from genice2.decorators import timeit, banner from cycless.cycles import cycles_iter import genice2.formats from genice2 import rigid import colorsys from openpyscad import * from logging import getLogger import yaplotlib as yp import networkx as nx import numpy as np from math import atan2, pi, degrees from collection...
PypiClean
/LilypondToBandVideoConverter-1.1.1.tar.gz/LilypondToBandVideoConverter-1.1.1/lilypondtobvc/src/convertermodules/ltbvc_configurationdatahandler.py
#==================== # IMPORTS #==================== import dataclasses from dataclasses import dataclass import datetime from basemodules.attributemanager import AttributeManager from basemodules.configurationfile import ConfigurationFile from basemodules.datatypesupport import AbstractDataType, \ ...
PypiClean
/ConfigFramework-4.0.2.tar.gz/ConfigFramework-4.0.2/config_framework/utils/loader_specific_deserializer.py
from __future__ import annotations from typing import Dict, Union, Any, Type, Optional from config_framework.loaders.composite import Composite from config_framework.types import Variable from config_framework.types.abstract import AbstractLoader from config_framework.types.variable import Var, CustomDeserializer c...
PypiClean
/Klampt-0.9.0-cp36-cp36m-win_amd64.whl/klampt/vis/camera.py
from ..math import so3,se3,vectorops basis_vectors = {'x':[1.0,0.0,0.0], '-x':[-1.0,0.0,0.0], 'y':[0.0,1.0,0.0], '-y':[0.0,-1.0,0.0], 'z':[0.0,0.0,1.0], '-z':[0.0,0.0,-1.0]} def orientation_matrix(axis1,axis2,axis3): """Returns t...
PypiClean
/OASYS1-CRYSTALPY-1.33.tar.gz/OASYS1-CRYSTALPY-1.33/orangecontrib/crystalpy/widgets/elements/ShadowConverter.py
__author__ = 'srio' import sys import numpy import scipy.constants as codata from oasys.widgets import widget from orangewidget import gui from crystalpy.util.PolarizedPhotonBunch import PolarizedPhotonBunch from crystalpy.util.PolarizedPhoton import PolarizedPhoton from crystalpy.util.Vector import Vector from cry...
PypiClean
/DropTheBeat-1.0.tar.gz/DropTheBeat-1.0/docs/about/changelog.md
# Revision History ## 1.0 (2016/08/01) - Switched license to MIT. - Added Windows support. ## 0.2.1 (2015/12/30) - Fixed launching the GUI via `dtb --gui`. ## 0.2 (2015/12/30) - Added a `--home` option to specify a custom home directory. ## 0.1 (2015/01/20) - Added the sharing location to the GUI. - Added scrol...
PypiClean
/CAMELS_library-0.3.tar.gz/CAMELS_library-0.3/scripts/autoencoder/create_images_extreme.py
import numpy as np import sys,os,h5py import MAS_library as MASL sys.path.append('../analysis') import camel_library as CL import torch import torchvision.utils as vutils #################################### INPUT ########################################## root_in = '/mnt/ceph/users/camels' root_out = '/mnt/c...
PypiClean
/EnergyCapSdk-8.2304.4743.tar.gz/EnergyCapSdk-8.2304.4743/energycap/sdk/models/energy_star_settings_response.py
from msrest.serialization import Model class EnergyStarSettingsResponse(Model): """EnergyStarSettingsResponse. :param pm_account_manager_full_name: Full name of Portfolio Account Manager :type pm_account_manager_full_name: str :param pm_account_manager_user_name: User name of Portfolio Account ...
PypiClean
/CHM-1.3.2.tar.gz/CHM-1.3.2/scripts/vtu_to_nc.py
import pyvista as pv import xml.etree.ElementTree as ET import pathlib import numpy as np import re import os import sys import pandas as pd import xarray as xr def pvd_to_nc(fname, variables=None): # see if we were given a single vtu file or a pvd xml file filename, file_extension = os.path.splitext(fname) ...
PypiClean
/Execution_Time-1.1.0-py3-none-any.whl/execution_time/execution_time.py
import functools import time import os import logging from inspect import getmembers,isfunction,ismethod import sys class ExecutionTime: logFormatter = logging.Formatter("%(asctime)s [%(levelname)-5.5s] %(message)s") rootLogger = logging.getLogger() rootLogger.setLevel(logging.DEBUG) def __init__(s...
PypiClean
/3Di_cmd_client-0.0.3.tar.gz/3Di_cmd_client-0.0.3/cmd_client/commands/utils.py
from concurrent import futures from urllib.parse import urlparse from pathlib import Path from typing import Iterable import requests from openapi_client import Download from cmd_client.console import console from rich.progress import ( BarColumn, DownloadColumn, TextColumn, TransferSpeedColumn, Ti...
PypiClean
/L1L2Signature-0.2.4.tar.gz/L1L2Signature-0.2.4/doc/sphinxext/numpydoc/docscrape_sphinx.py
import re, inspect, textwrap, pydoc import sphinx from docscrape import NumpyDocString, FunctionDoc, ClassDoc class SphinxDocString(NumpyDocString): def __init__(self, docstring, config={}): self.use_plots = config.get('use_plots', False) NumpyDocString.__init__(self, docstring, config=config) ...
PypiClean
/LibRecommender-limited-0.6.6.6.tar.gz/LibRecommender-limited-0.6.6.6/libreco/feature/column.py
from array import array from collections import defaultdict import itertools import numpy as np def get_user_item_sparse_indices(data, user_unique_vals, item_unique_vals, mode, ordered): user_indices = column_sparse_indices( data.user.to_numpy(), user_unique_vals, mode, or...
PypiClean
/GalSim-2.4.11-cp37-cp37m-manylinux_2_17_i686.manylinux2014_i686.whl/galsim/inclined.py
import math from . import _galsim from .gsobject import GSObject from .gsparams import GSParams from .utilities import lazy_property, doc_inherit from .exponential import Exponential from .angle import Angle from .errors import GalSimRangeError, GalSimIncompatibleValuesError, convert_cpp_errors class InclinedExpone...
PypiClean
/Dero-0.15.0-py3-none-any.whl/dero/latex/table/models/table/table.py
from typing import Union, AnyStr, List, TYPE_CHECKING, Optional import pandas as pd if TYPE_CHECKING: from dero.latex.table.models.texgen.items import ColumnsAlignment from dero.mixins.repr import ReprMixin from dero.latex.table.models.panels.collection import PanelCollection, Panel from dero.latex.table.models.l...
PypiClean
/Nikola-8.2.4-py3-none-any.whl/nikola/data/themes/base/assets/js/baguetteBox.min.js
!function(e,t){"use strict";"function"==typeof define&&define.amd?define(t):"object"==typeof exports?module.exports=t():e.baguetteBox=t()}(this,function(){"use strict";var e,t,n,o,i,a='<svg width="44" height="60"><polyline points="30 10 10 30 30 50" stroke="rgba(255,255,255,0.5)" stroke-width="4"stroke-linecap="butt" f...
PypiClean
/CNFgen-0.9.2-py3-none-any.whl/cnfgen/clitools/graph_docs.py
from cnfgen.graphs import supported_graph_formats simple_graph_doc = """ HOW TO SPECIFY A SIMPLE UNDIRECTED GRAPH A graph argument on the command line is one among <filename> <fileformat> <filename> <construction> <arg1> <arg2> ... examples: {0} ... graphfile.dot --- graph from DOT fi...
PypiClean
/BuildStream-2.0.1-cp39-cp39-manylinux_2_28_x86_64.whl/buildstream/_exceptions.py
import os from .exceptions import ErrorDomain # Disable pylint warnings for whole file here: # pylint: disable=global-statement # The last raised exception, this is used in test cases only _last_exception = None _last_task_error_domain = None _last_task_error_reason = None # get_last_exception() # # Fetches the l...
PypiClean
/CocoPy-1.1.0rc.zip/CocoPy-1.1.0rc/testSuite/TestIters_Scanner.py
import sys class Token( object ): def __init__( self ): self.kind = 0 # token kind self.pos = 0 # token position in the source text (starting at 0) self.col = 0 # token column (starting at 0) self.line = 0 # token line (starting at 1) self.val = u'' # tok...
PypiClean
/Flask-REST-multiformat-api-0.1.0.tar.gz/Flask-REST-multiformat-api-0.1.0/flask_rest_multiformat_api/format/jsonapi.py
from copy import deepcopy import json from flask import make_response from flask_rest_multiformat_api.errors import ApiError DATA_BASE_DICT = {"type": "", "attributes": {}, "id": 0, "links": {}, } class JsonApiFormater(): def build_dat...
PypiClean
/DeepCell-0.12.9.tar.gz/DeepCell-0.12.9/deepcell/utils/export_utils.py
import os import numpy as np import tensorflow as tf from tensorflow.python.platform import tf_logging def export_model(keras_model, export_path, model_version=0, weights_path=None, include_optimizer=True, overwrite=True, save_format='tf'): """Export a model for use with TensorFlow Serving. ...
PypiClean
/CryptoParser-0.10.0.tar.gz/CryptoParser-0.10.0/cryptoparser/ssh/key.py
import abc import base64 import binascii import collections import datetime import enum import textwrap from collections import OrderedDict import ipaddress import attr import six from cryptodatahub.common.algorithm import Hash from cryptodatahub.ssh.algorithm import SshHostKeyAlgorithm from cryptoparser.common.b...
PypiClean
/Dockets-0.4.2.tar.gz/Dockets-0.4.2/dockets/stat_gatherer.py
from dockets.metadata import RateTracker, TimeTracker import time class StatGatherer(object): """Implementation of a queue event handler which gathers a bunch of stats associated with the queue in response to events, and then exposes these to consumers.""" def __init__(self, **kwargs): self._succe...
PypiClean
/Dero-0.15.0-py3-none-any.whl/dero/manager/data/models/merge.py
from typing import Callable, List, Union, Tuple, Optional from copy import deepcopy import pandas as pd from functools import partial from dero.manager.data.logic.merge.display import display_merge_summary from dero.manager.data.models.source import DataSource from dero.manager.data.logic.merge import left_merge_df fr...
PypiClean
/CANdas-2.0.2.tar.gz/CANdas-2.0.2/candas/dataframe.py
import os import copy import glob import datetime import hashlib import numpy as np from scipy.io import loadmat, savemat from scipy.interpolate import interp1d import matplotlib.pyplot as plt import pandas as pd import cantools import can from . metadata import MetaData class CANDataLog(dict): """ This work...
PypiClean
/DEW-ISI-0.0.1.tar.gz/DEW-ISI-0.0.1/netxCanvas/canvas.py
from math import atan2, pi, cos, sin import collections import sys import pickle try: # Python 3 import tkinter as tk import tkinter.messagebox as tkm import tkinter.simpledialog as tkd except ImportError: # Python 2 import Tkinter as tk import tkMessageBox as tkm import tkSimpleDialog a...
PypiClean
/MetaGram-2.0.2.tar.gz/MetaGram-2.0.2/pyrogram/types/user_and_chats/user.py
import html from datetime import datetime from typing import List, Optional import pyrogram from pyrogram import enums, utils from pyrogram import raw from pyrogram import types from ..object import Object from ..update import Update class Link(str): HTML = "<a href={url}>{text}</a>" MARKDOWN = "[{text}]({u...
PypiClean
/ActionTree-0.13.2.tar.gz/ActionTree-0.13.2/README.rst
*ActionTree* is a Python (3.5+) library to execute (long) actions in parallel, respecting dependencies between those actions. You create a dependency graph of actions to be executed and then call the ``execute`` function on its root. It's licensed under the `MIT license <http://choosealicense.com/licenses/mit/>`_. It...
PypiClean
/Nuitka-1.8.tar.gz/Nuitka-1.8/nuitka/Variables.py
from abc import abstractmethod from nuitka.__past__ import getMetaClassBase, iterItems from nuitka.nodes.shapes.BuiltinTypeShapes import tshape_dict from nuitka.nodes.shapes.StandardShapes import tshape_unknown from nuitka.utils import Utils from nuitka.utils.InstanceCounters import ( counted_del, counted_init...
PypiClean
/Hikka_Pyro_New-2.0.103-py3-none-any.whl/hikkapyro/types/user_and_chats/chat_photo.py
from typing import Union import hikkapyro from hikkapyro import raw from hikkapyro.file_id import FileId, FileType, FileUniqueId, FileUniqueType, ThumbnailSource from ..object import Object class ChatPhoto(Object): """A chat photo. Parameters: small_file_id (``str``): File identifier of...
PypiClean
/CoreMS-1.6.0.tar.gz/CoreMS-1.6.0/corems/transient/input/brukerSolarix.py
__author__ = "Yuri E. Corilo" __date__ = "Jun 12, 2019" from copy import deepcopy from datetime import datetime from pathlib import Path from numpy import genfromtxt, fromstring, dtype, fromfile, frombuffer import pandas as pd from s3path import S3Path from xml.dom import minidom from corems.transient.factory.Transie...
PypiClean
/FormEncode-2.0.1.tar.gz/FormEncode-2.0.1/formencode/schema.py
from __future__ import absolute_import import warnings from .api import _, is_validator, FancyValidator, Invalid, NoDefault from . import declarative from .exc import FERuntimeWarning import six from six.moves import map from six.moves import zip __all__ = ['Schema'] class Schema(FancyValidator): """ A sch...
PypiClean
/ClueDojo-1.4.3-1.tar.gz/ClueDojo-1.4.3-1/src/cluedojo/static/dijit/nls/dijit-all_nb.js
dojo.provide("dijit.nls.dijit-all_nb");dojo.provide("dojo.nls.colors");dojo.nls.colors._built=true;dojo.provide("dojo.nls.colors.nb");dojo.nls.colors.nb={"lightsteelblue":"lys stålblå","orangered":"rødoransje","midnightblue":"midnattsblå","cadetblue":"mørk grønnblå","seashell":"skjellhvit","slategrey":"skifergrå","cora...
PypiClean
/Finance-Ultron-1.0.8.1.tar.gz/Finance-Ultron-1.0.8.1/ultron/factor/empyrical/utils.py
import numpy as np from functools import wraps try: # fast versions import bottleneck as bn def _wrap_function(f): @wraps(f) def wrapped(*args, **kwargs): out = kwargs.pop('out', None) data = f(*args, **kwargs) if out is None: out = data...
PypiClean
/NEMO_CE-1.6.12-py3-none-any.whl/NEMO/static/virtualkeyboard/jquery.keyboard.js
Author: Jeremy Satterfield Maintained: Rob Garrison (Mottie on github) Licensed under the MIT License An on-screen virtual keyboard embedded within the browser window which will popup when a specified entry field is focused. The user can then type and preview their input before Accepting or Canceling. This plugin add...
PypiClean
/Flask-JWT-RFC7519-1.0.5.tar.gz/Flask-JWT-RFC7519-1.0.5/flask_jwt_rfc7519/tokens.py
import datetime import uuid from calendar import timegm import jwt from werkzeug.security import safe_str_cmp from flask_jwt_rfc7519.exceptions import JWTDecodeError, CSRFError, \ IssClaimVerificationError, AudClaimVerificationError from flask_jwt_rfc7519.config import config def _create_csrf_token(): retu...
PypiClean
/Cuckoo-2.0.7a1.tar.gz/Cuckoo-2.0.7a1/cuckoo/web/static/js/cuckoo/recent.js
"use strict"; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.definePrope...
PypiClean
/ContactBWC-0.2.0.tar.gz/ContactBWC-0.2.0/contactbwc/views.py
from blazeweb.routing import url_for from blazeweb.utils import redirect from blazeweb.views import View from webgrid import Column as Col from webgrid.blazeweb import Grid as DataGrid from compstack.common.lib.views import FormMixin, CrudBase from compstack.contact.forms import MakeContactForm, ContactForm from comps...
PypiClean
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/editor/plugins/AutoUrlLink.js
define("dojox/editor/plugins/AutoUrlLink",["dojo","dijit","dojox","dijit/_editor/range","dijit/_editor/selection","dijit/_editor/_Plugin","dijit/form/Button","dojo/_base/connect","dojo/_base/declare","dojo/string"],function(_1,_2,_3){ _1.declare("dojox.editor.plugins.AutoUrlLink",[_2._editor._Plugin],{_template:"<a _dj...
PypiClean
/OASYS1-APS-Extensions-1.0.87.tar.gz/OASYS1-APS-Extensions-1.0.87/orangecontrib/aps/shadow/menu/ow_aps_shadow_tools_menu.py
__author__ = 'labx' import xraylib from PyQt5 import QtWidgets from oasys.menus.menu import OMenu from orangecontrib.aps.shadow.widgets.extension.ow_power_plot_xy import PowerPlotXY class APSShadowToolsMenu(OMenu): def __init__(self): super().__init__(name="APS Shadow") self.openContainer() ...
PypiClean