id
stringlengths
1
265
text
stringlengths
6
5.19M
dataset_id
stringclasses
7 values
/GraphAlViz-0.5.0.tar.gz/GraphAlViz-0.5.0/graphalviz/core.py
import networkx as nx from .tools import num, nonblank_lines import logging logger = logging.getLogger('graphalviz.core') def normalize_value(value): """ Normalizacja wartosci do przedziału 0-1 """ return 1.0 / (1.0 + abs(value)) def number_of_intersections(data): """ Obliczenie ilosci punk...
PypiClean
/ArchiveNews-0.2.tar.gz/ArchiveNews-0.2/LICENSE.rst
Copyright (c) 2012-2022 Scott Chacon and others Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, d...
PypiClean
/DoorPi-2.4.1.8.tar.gz/DoorPi-2.4.1.8/doorpi/keyboard/from_usb_plain.py
import logging logger = logging.getLogger(__name__) logger.debug("%s loaded", __name__) import threading import serial import time from os import linesep as OS_LINESEP from doorpi.keyboard.AbstractBaseClass import KeyboardAbstractBaseClass, HIGH_LEVEL, LOW_LEVEL import doorpi CONFIG = doorpi.DoorPi().config def g...
PypiClean
/NoticeSlackLine-0.2.1b0-py3-none-any.whl/noticesl/noticeapp.py
import requests import os import json class NoticeSlackLine(): default_api_url = { "slack": "https://hooks.slack.com/services/", "line": 'https://notify-api.line.me/api/notify' } def __init__(self, app="slack", token=None): """ Notice to Slack or LINE. Paramete...
PypiClean
/DAG-0.tar.gz/DAG-0/ez_setup.py
import sys DEFAULT_VERSION = "0.6c6" DEFAULT_URL = "http://cheeseshop.python.org/packages/%s/s/setuptools/" % sys.version[:3] md5_data = { 'setuptools-0.6b1-py2.3.egg': '8822caf901250d848b996b7f25c6e6ca', 'setuptools-0.6b1-py2.4.egg': 'b79a8a403e4502fbb85ee3f1941735cb', 'setuptools-0.6b2-py2.3.egg': '5...
PypiClean
/Office365-REST-Python-Client-2.4.3.tar.gz/Office365-REST-Python-Client-2.4.3/office365/sharepoint/client_context.py
import copy from office365.runtime.auth.authentication_context import AuthenticationContext from office365.runtime.auth.client_credential import ClientCredential from office365.runtime.auth.user_credential import UserCredential from office365.runtime.client_runtime_context import ClientRuntimeContext from office365.ru...
PypiClean
/Django_patch-2.2.19-py3-none-any.whl/django/core/exceptions.py
class FieldDoesNotExist(Exception): """The requested model field does not exist""" pass class AppRegistryNotReady(Exception): """The django.apps registry is not populated yet""" pass class ObjectDoesNotExist(Exception): """The requested object does not exist""" silent_variable_failure = True...
PypiClean
/HCTest_WechatRobot-0.1.tar.gz/HCTest_WechatRobot-0.1/HCTest_WechatRobot/WechatRobot.py
import requests import json import base64 import hashlib class WechatRobot: API_URL = "https://qyapi.weixin.qq.com/cgi-bin/webhook" def __init__(self, access_token): self.webhook_url = self.API_URL + "/send?key=" + access_token def send_text(self, content, mentioned_list=None, mentioned_mobile_...
PypiClean
/DobbyStockSimulation-0.1.1.tar.gz/DobbyStockSimulation-0.1.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
/BlueWhale3-DataFusion-0.1.11.tar.gz/BlueWhale3-DataFusion-0.1.11/orangecontrib/datafusion/widgets/owlatentfactors.py
from Orange.widgets import widget, gui, settings from Orange.widgets.utils.itemmodels import PyTableModel from Orange.widgets.widget import Input, Output from skfusion import fusion from orangecontrib.datafusion.widgets.owfusiongraph import rel_shape, rel_cols from orangecontrib.datafusion.models import Relation, Fitt...
PypiClean
/ChirpSounder-2.0.4.tar.gz/ChirpSounder-2.0.4/src/chirpsounder/chirp_config.py
import numpy as n import os try: import configparser except ImportError as e: import configparser2 as configparser import json class chirp_config: def __init__(self,fname=None): c=configparser.ConfigParser() # initialize with default values c["config"]={"channel":'"cha"', ...
PypiClean
/Blue-DiscordBot-3.2.0.tar.gz/Blue-DiscordBot-3.2.0/bluebot/core/developer.py
import asyncio import inspect import io import textwrap import traceback import re from contextlib import redirect_stdout from copy import copy import discord from . import checks, commands from .i18n import Translator from .utils.chat_formatting import box, pagify from .utils.predicates import MessagePredicate from ...
PypiClean
/DARTSeg-1.0.0-py3-none-any.whl/DARTS/utils.py
import pickle import numpy as np import torch import nibabel import torch import torch.nn as nn import torch.nn.functional as F def pickling(file,path): pickle.dump(file,open(path,'wb')) def unpickling(path): file_return=pickle.load(open(path,'rb')) return file_return def dice_score(pred,gt, ep= 1e-4): ...
PypiClean
/BioCantor-0.4.5.tar.gz/BioCantor-0.4.5/inscripta/biocantor/exc.py
class BioCantorException(Exception): """ Base exception class for BioCantor. """ pass class InvalidStrandException(BioCantorException): """ Raised when an operation is performed on an invalid strand -- usually this is when an operation is strand-specific but the provided Strand is Unstran...
PypiClean
/Diofant-0.14.0a2.tar.gz/Diofant-0.14.0a2/diofant/printing/pretty/pretty_symbology.py
from __future__ import annotations import typing import unicodedata from ...core.alphabets import greeks from ..conventions import split_super_sub # first, setup unicodedate environment def U(name): """Unicode character by name or None if not found.""" try: u = unicodedata.lookup(name) except K...
PypiClean
/3DCORE-1.1.4.tar.gz/3DCORE-1.1.4/py3dcore/_extcuda.py
import logging import numba.cuda as cuda import numpy as np from functtools import lru_cache @lru_cache def get_threads_blocks(length, max_thread_size=9): """Calculate thread/block sizes for launching CUDA kernels. Parameters ---------- length : int Number of threads. max_thread_size : i...
PypiClean
/HexagonSC-0.3-py3-none-any.whl/source/HexagonSC.py
from tabulate import tabulate from GetInfo import * import os #%% #qq[:][1].extend("1") #[[], ['1', '1']] #append to add list(()) (rows) #extend at address to add columns clear = lambda: os.system('cls') clear() while True: while True: #%% info=getInfo() maxorgs=0 orgs=0 if ...
PypiClean
/MACS_virtual_experiment-0.168.tar.gz/MACS_virtual_experiment-0.168/MACS_virtual_experiment/macsdata/macsdata_validation.ipynb
## Notebook to double check functionality of the macsdata class ``` import sys import os import numpy as np basedir = os.getcwd().replace('/macsdata','/') sys.path.append(basedir) from virtualMACS import virtualMACS from macsdata import Data import glob test_instrument = virtualMACS('macsdata_test',cifName=os.getcwd...
PypiClean
/Diofant-0.14.0a2.tar.gz/Diofant-0.14.0a2/diofant/matrices/dense.py
import itertools import random from ..core import Basic, Expr, Integer, Symbol, count_ops from ..core.compatibility import as_int, is_sequence from ..core.decorators import call_highest_priority from ..core.sympify import sympify from ..functions import cos, sin, sqrt from ..logic import true from ..simplify import si...
PypiClean
/NEURON_gpu_nightly-8.2a7-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/neuron/nonvint_block_supervisor.py
import sys import ctypes import neuron import numpy from neuron import h import traceback # reducing the indirection improves performance try: _numpy_core_multiarray_int_asbuffer = numpy.core.multiarray.int_asbuffer except: pass _ctypes_addressof = ctypes.addressof _numpy_array = numpy.array _numpy_frombuffer ...
PypiClean
/EOxServer-1.2.12-py3-none-any.whl/eoxserver/resources/coverages/management/commands/browse.py
from django.core.management.base import CommandError, BaseCommand from django.db import transaction from eoxserver.resources.coverages import models from eoxserver.resources.coverages.management.commands import ( CommandOutputMixIn, SubParserMixIn ) from eoxserver.resources.coverages.registration.browse import Br...
PypiClean
/CleanAdminDjango-1.5.3.1.tar.gz/CleanAdminDjango-1.5.3.1/django/contrib/localflavor/ca/forms.py
from __future__ import absolute_import, unicode_literals import re from django.core.validators import EMPTY_VALUES from django.forms import ValidationError from django.forms.fields import Field, CharField, Select from django.utils.encoding import smart_text from django.utils.translation import ugettext_lazy as _ ph...
PypiClean
/Lokai-0.3.tar.gz/Lokai-0.3/lokai/tool_box/tb_common/exception_format.py
#----------------------------------------------------------------------- import sys import StringIO import traceback #----------------------------------------------------------------------- def get_print_exc(): """ Return a printable version of the traceback from the current error """ buf = Stri...
PypiClean
/Md-Notes-api-1.0.0.tar.gz/Md-Notes-api-1.0.0/mdnotes/models/note.py
class Note(object): """Implementation of the 'Note' model. TODO: type model description here. Attributes: id (long|int): TODO: type description here. title (string): TODO: type description here. body (string): TODO: type description here. user_id (long|int): TODO: type des...
PypiClean
/AsynQueue-0.9.8.tar.gz/AsynQueue-0.9.8/asynqueue/threads.py
import threading from zope.interface import implementer from twisted.internet import defer, reactor from twisted.python import threadable, threadpool from twisted.python.failure import Failure from twisted.internet.interfaces import IConsumer, IPushProducer threadable.init() from asynqueue.base import TaskQueue from ...
PypiClean
/Mopidy-Tubeify-0.1.0.tar.gz/Mopidy-Tubeify-0.1.0/mopidy_tubeify/tidal.py
import re from bs4 import BeautifulSoup as bs from mopidy_tubeify import logger from mopidy_tubeify.serviceclient import ServiceClient from mopidy_tubeify.yt_matcher import search_and_get_best_match class Tidal(ServiceClient): def _get_tidal_soup(self, url): headers = { "User-Agent": ( ...
PypiClean
/DLTA-AI-1.1.tar.gz/DLTA-AI-1.1/DLTA_AI_app/mmdetection/mmdet/models/roi_heads/bbox_heads/bbox_head.py
import torch import torch.nn as nn import torch.nn.functional as F from mmcv.runner import BaseModule, auto_fp16, force_fp32 from torch.nn.modules.utils import _pair from mmdet.core import build_bbox_coder, multi_apply, multiclass_nms from mmdet.models.builder import HEADS, build_loss from mmdet.models.losses import a...
PypiClean
/MuPhyN-0.1.1.post4-py3-none-any.whl/muphyn/packages/interface/models/links_model/abstract_node_model.py
from typing import Generic, Iterable, Type, TypeVar, List, Any # PyQt6 Imports from PyQt6 import QtGui from PyQt6.QtCore import QPointF, QSizeF, pyqtSignal from PyQt6.QtWidgets import QGraphicsItem, QStyleOptionGraphicsItem # Project Imports from muphyn.packages.interface.models.graphical_models.abstract_moveable_gra...
PypiClean
/CellphoneDB-4.0.0-py3-none-any.whl/cellphonedb/src/core/methods/cpdb_statistical_analysis_method.py
from typing import Tuple import pandas as pd from cellphonedb.src.core.methods import cpdb_statistical_analysis_complex_method from cellphonedb.src.core.exceptions.MissingRequiredArgumentsException import MissingRequiredArgumentsException from cellphonedb.utils import db_utils, file_utils from cellphonedb.src.core.uti...
PypiClean
/FigureGenerator-0.0.4.tar.gz/FigureGenerator-0.0.4/SECURITY.md
# Security Policy ## Supported Versions Use this section to tell people about which versions of your project are currently being supported with security updates. | Version | Supported | | ------- | ------------------ | | 0.0.x | :white_check_mark: | ## Reporting a Vulnerability Use this section to tell ...
PypiClean
/Keras28Models-0.1.0.tar.gz/Keras28Models-0.1.0/keras28models/models28.py
import inspect from keras.preprocessing import image from keras.preprocessing.image import ImageDataGenerator from keras.models import Sequential import numpy as np from glob import glob import matplotlib.pyplot as plt import tensorflow as tf import tensorflow_datasets as tfds import pandas as pd import inspect from tq...
PypiClean
/Nuitka_winsvc-1.7.10-cp310-cp310-win_amd64.whl/nuitka/build/inline_copy/tqdm/tqdm/utils.py
import os import re import sys from functools import wraps from warnings import warn # py2/3 compat try: _range = xrange except NameError: _range = range try: _unich = unichr except NameError: _unich = chr try: _unicode = unicode except NameError: _unicode = str try: _basestring = basest...
PypiClean
/Django_patch-2.2.19-py3-none-any.whl/django/contrib/auth/management/commands/changepassword.py
import getpass from django.contrib.auth import get_user_model from django.contrib.auth.password_validation import validate_password from django.core.exceptions import ValidationError from django.core.management.base import BaseCommand, CommandError from django.db import DEFAULT_DB_ALIAS UserModel = get_user_model() ...
PypiClean
/CosmoTech_Acceleration_Library-0.3.0.tar.gz/CosmoTech_Acceleration_Library-0.3.0/CosmoTech_Acceleration_Library/Accelerators/scenario_download/scenario_downloader.py
import csv import io import json import multiprocessing import os import tempfile from typing import Union import cosmotech_api from azure.digitaltwins.core import DigitalTwinsClient from azure.identity import DefaultAzureCredential from cosmotech_api.api.dataset_api import DatasetApi from cosmotech_api.api.scenario_a...
PypiClean
/ImSwitchUC2-2.1.0.tar.gz/ImSwitchUC2-2.1.0/imswitch/imblockly/view/BlocklyView.py
import uuid from PyQt5.QtWebEngineWidgets import * from qtpy import QtCore, QtGui, QtWidgets from PyQt5.QtCore import * from PyQt5.QtWidgets import * from PyQt5.QtGui import * from .guitools import BetterPushButton class BlocklyView(QtWidgets.QTabWidget): """ View that displays a variable amount of blockly ins...
PypiClean
/BearFramework-1.1.0-py3-none-any.whl/bear/log/logger.py
import logging import bear.RunUnittest as rut def write(msg, level='INFO', html=False): lger=_initlogger() level = {'TRACE': logging.DEBUG // 2, 'DEBUG': logging.DEBUG, 'INFO': logging.INFO, 'HTML': logging.INFO, 'WARN': logging.WARN, ...
PypiClean
/Block_Fund_Trading-1.0.tar.gz/Block_Fund_Trading-1.0/Scrappers/Scrapper_SALT:ETH.py
import sqlite3 import sqlalchemy from sqlalchemy import create_engine from twisted.internet import task from twisted.internet import reactor from binance.client import Client import time import matplotlib from matplotlib import cm import matplotlib.pyplot as plt from binance.enums import * import save_historical_data_t...
PypiClean
/Djblets-3.3.tar.gz/Djblets-3.3/docs/releasenotes/0.8.9.rst
=========================== Djblets 0.8.9 Release Notes =========================== **Release date**: August 20, 2014 Security Updates ================ This release depends on Django 1.6.6 or higher, which fixes a number of `security vulnerabilities <https://www.djangoproject.com/weblog/2014/aug/20/security/>`_. ...
PypiClean
/LinOTP-2.11.1.tar.gz/LinOTP-2.11.1/linotp/useridresolver/__init__.py
# # LinOTP - the open source solution for two factor authentication # Copyright (C) 2010 - 2019 KeyIdentity GmbH # # This file is part of LinOTP userid resolvers. # # This program is free software: you can redistribute it and/or # modify it under the terms of the GNU Affero General Public # License, ...
PypiClean
/Mathics_Django-6.0.0-py3-none-any.whl/mathics_django/web/media/js/mathjax/localization/cs/FontWarnings.js
MathJax.Localization.addTranslation("cs","FontWarnings",{version:"2.7.9",isLoaded:true,strings:{webFont:"MathJax pou\u017E\u00EDv\u00E1 k zobrazen\u00ED matematiky na t\u00E9to str\u00E1nce webov\u00E1 p\u00EDsma. T\u011Bm trv\u00E1 sta\u017Een\u00ED n\u011Bjakou dobu, tak\u017Ee str\u00E1nka by se vykreslila rychleji,...
PypiClean
/Flask-Scrypt-0.1.3.6.tar.gz/Flask-Scrypt-0.1.3.6/flask_scrypt.py
from __future__ import print_function, unicode_literals import sys import base64 import hmac from os import urandom try: from itertools import izip except ImportError: izip = zip _builtin_safe_str_cmp = getattr(hmac, 'compare_digest', None) __version_info__ = ('0', '1', '3', '6') __version__ = '.'.join(__ver...
PypiClean
/Cython_GLDA-0.0.2.tar.gz/Cython_GLDA-0.0.2/Cython_GLDA/GLDA.py
import numpy as np from numpy.linalg import slogdet, cholesky from Cython_GLDA.cython_trainer._cython_trainer import GLDA_trainer import os """ Gaussian LDA using Gibbs sampling. Draws from Allen Riddell's LDA library https://github.com/ariddell/lda and Savvy Sherpa's SLDA library https://github.com/Savvysherpa/slda...
PypiClean
/Dovetail-1.0beta2.tar.gz/Dovetail-1.0beta2/dovetail/model.py
from dovetail.util import NoSuchTask, Logger, tree from dovetail.util.trim import trim from dovetail.loader import BuildModule from os import path from types import FunctionType NOT_LOADED = "Task.find('{0}') was not called from a file loaded by Dovetail. \ Did you use dovetail.load()?" class TaskWrapper(object): ...
PypiClean
/MLMath-0.0.0rc1.tar.gz/MLMath-0.0.0rc1/mlm/math/backend/_profile.py
import inspect import json from contextlib import contextmanager from time import perf_counter from typing import Optional, Callable from ._backend import Backend, BACKENDS, _DEFAULT class BackendCall: def __init__(self, start: float, stop: float, backend: 'ProfilingBackend', function_name): self._start...
PypiClean
/AyiinXd-0.0.8-cp311-cp311-macosx_10_9_universal2.whl/fipper/errors/exceptions/forbidden_403.py
from ..rpc_error import RPCError class Forbidden(RPCError): """Forbidden""" CODE = 403 """``int``: RPC Error Code""" NAME = __doc__ class BroadcastForbidden(Forbidden): """The request can't be used in channels""" ID = "BROADCAST_FORBIDDEN" """``str``: RPC Error ID""" MESSAGE = __doc...
PypiClean
/Muntjac-1.1.2.tar.gz/Muntjac-1.1.2/muntjac/data/util/abstract_container.py
from muntjac.util import EventObject from muntjac.data.container import \ (IContainer, IItemSetChangeEvent, IPropertySetChangeEvent, IPropertySetChangeListener, IItemSetChangeListener) class AbstractContainer(IContainer): """Abstract container class that manages event listeners and sending events to...
PypiClean
/ICalculationManager-ncn-0.0.23.tar.gz/ICalculationManager-ncn-0.0.23/src/ISimulationNode/simulation_node_pb2_grpc.py
"""Client and server classes corresponding to protobuf-defined services.""" import grpc from . import simulation_node_pb2 as simulation__node__pb2 class SimulationNodeStub(object): """The SimulationNode service definition. """ def __init__(self, channel): """Constructor. Args: ...
PypiClean
/Adafruit_Blinka-8.20.1-py3-none-any.whl/adafruit_blinka/microcontroller/generic_linux/sysfs_analogout.py
import os from adafruit_blinka import ContextManaged try: from microcontroller.pin import analogOuts except ImportError: raise RuntimeError("No Analog Outputs defined for this board") from ImportError class AnalogOut(ContextManaged): """Analog Output Class""" # Sysfs paths _sysfs_path = "/sys/bu...
PypiClean
/LZBEAT-0.13.1.tar.gz/LZBEAT-0.13.1/econml/iv/sieve/_tsls.py
import numpy as np from copy import deepcopy from sklearn import clone from sklearn.linear_model import LinearRegression from ...utilities import (shape, transpose, reshape, cross_product, ndim, size, _deprecate_positional, check_input_arrays) from ..._cate_estimator import BaseCateEstimator, ...
PypiClean
/MaterialDjango-0.2.5.tar.gz/MaterialDjango-0.2.5/bower_components/app-layout/README.md
# App Layout [![Build Status](https://travis-ci.org/PolymerElements/app-layout.svg?branch=master)](https://travis-ci.org/PolymerElements/app-layout) [![Published on webcomponents.org](https://img.shields.io/badge/webcomponents.org-published-blue.svg)](https://beta.webcomponents.org/element/PolymerElements/app-layout) ...
PypiClean
/AaronTools-1.0b14.tar.gz/AaronTools-1.0b14/pathway.py
import numpy as np from scipy.integrate import quad as integrate class Pathway: """ interpolating between multiple Geometries Attributes: geometry - structure for which coordinates are interpolated num_geom - number of geometries n_cart - number of Cartesian coordinates ba...
PypiClean
/FuzzManager-0.5.1-py3-none-any.whl/FTB/CoverageHelper.py
import re def merge_coverage_data(r, s): # These variables are mainly for debugging purposes. We count the number # of warnings we encounter during merging, which are mostly due to # bugs in GCOV. These statistics can be included in the report description # to track the status of these bugs. stats...
PypiClean
/ModelSEEDpy-0.3.0.tar.gz/ModelSEEDpy-0.3.0/modelseedpy/community/mscommunity.py
from modelseedpy.fbapkg.mspackagemanager import MSPackageManager from modelseedpy.core.msmodelutl import MSModelUtil from modelseedpy.core.msgapfill import MSGapfill from modelseedpy.core.fbahelper import FBAHelper # from modelseedpy.fbapkg.gapfillingpkg import default_blacklist from modelseedpy.core import MSATPCorre...
PypiClean
/Colbert-0.30.tar.gz/Colbert-0.30/src/colbert/compte_de_resultat.py
import datetime from decimal import Decimal from itertools import zip_longest from .common import titre_principal_rst from .common import (SOLDE_DEBITEUR, SOLDE_CREDITEUR, DATE_DEBUT, DATE_FIN, LABEL, NUMERO, COMPTES) from .utils import fmt_number, rst_table from .utils import DATE_FMT TOTAL_CHAR...
PypiClean
/Kallithea-0.7.0.tar.gz/Kallithea-0.7.0/kallithea/controllers/journal.py
import logging import traceback from itertools import groupby from sqlalchemy import or_ from sqlalchemy.orm import joinedload from tg import request, response from tg import tmpl_context as c from tg.i18n import ugettext as _ from webob.exc import HTTPBadRequest import kallithea.lib.helpers as h from kallithea.contr...
PypiClean
/CustomPipeline-0.0.3-py3-none-any.whl/rplibs/yaml/yaml_py3/events.py
class Event(object): def __init__(self, start_mark=None, end_mark=None): self.start_mark = start_mark self.end_mark = end_mark def __repr__(self): attributes = [key for key in ['anchor', 'tag', 'implicit', 'value'] if hasattr(self, key)] arguments = ', '.join(['%...
PypiClean
/Muntjac-1.1.2.tar.gz/Muntjac-1.1.2/muntjac/demo/sampler/features/commons/Icons.py
from muntjac.ui.component import IComponent from muntjac.demo.sampler.features.commons.PackageIcons import PackageIcons from muntjac.demo.sampler.features.embedded.ImageEmbed import ImageEmbed from muntjac.demo.sampler.APIResource import APIResource from muntjac.demo.sampler.Feature import Feature, Version from muntj...
PypiClean
/Auptimizer-2.0.tar.gz/Auptimizer-2.0/src/aup/dashboard/frontend/febuild/auptimizer-dashboard/runtime.29a333e72cc7398676d0.js
!function(e){function r(r){for(var n,i,a=r[0],c=r[1],l=r[2],p=0,s=[];p<a.length;p++)i=a[p],Object.prototype.hasOwnProperty.call(o,i)&&o[i]&&s.push(o[i][0]),o[i]=0;for(n in c)Object.prototype.hasOwnProperty.call(c,n)&&(e[n]=c[n]);for(f&&f(r);s.length;)s.shift()();return u.push.apply(u,l||[]),t()}function t(){for(var e,r...
PypiClean
/Artemix2-1.0.0.tar.gz/Artemix2-1.0.0/Artemix/__init__.py
import sympy as sy import IPython global DatosList, Orden DatosList = [] Orden = 8 def Redondear(expr): if isinstance(expr, sy.Expr) or isinstance(expr, sy.Float): Aproximacion = expr.xreplace(sy.core.rules.Transform(lambda x: x.round(Orden), lambda x: isinstance(x, sy.Float))) elif isinstance(expr,float) or ...
PypiClean
/2vyper-0.3.0.tar.gz/2vyper-0.3.0/src/twovyper/ast/names.py
from twovyper.vyper import select_version # Constants for names in the original AST # Decorators PUBLIC = select_version({'^0.2.0': 'external', '>=0.1.0-beta.16 <0.1.0': 'public'}) PRIVATE = select_version({'^0.2.0': 'internal', '>=0.1.0-beta.16 <0.1.0': 'private'}) PAYABLE = 'payable' CONSTANT = select_version({'^0....
PypiClean
/Flask-CKEditor-0.4.6.tar.gz/Flask-CKEditor-0.4.6/flask_ckeditor/static/full/plugins/a11yhelp/dialogs/lang/el.js
/* Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ CKEDITOR.plugins.setLang("a11yhelp","el",{title:"Οδηγίες Προσβασιμότητας",contents:"Περιεχόμενα Βοήθειας. Πατήστε ESC για κλείσιμο.",legend:[{name:"Γενικά...
PypiClean
/KiMoPack-7.0.14.tar.gz/KiMoPack-7.0.14/Tutorial_Notebooks/KiMoPack_tutorial_4_ScanHandling_local_use.ipynb
# Standard Features ## Working with single measurement scans ``` import os,sys import pandas as pd import numpy as np import matplotlib,lmfit import matplotlib.pyplot as plt try: import KiMoPack.plot_func as pf except: print("General installation did not work, try to import from the same folder as a workaroun...
PypiClean
/DataProfiler-0.10.3-py3-none-any.whl/dataprofiler/labelers/character_level_cnn_model.py
from __future__ import annotations import copy import json import os import sys import time from collections import defaultdict import numpy as np import tensorflow as tf from sklearn import decomposition from dataprofiler._typing import DataArray from .. import dp_logging from . import labeler_utils from .base_mod...
PypiClean
/C3-0.1.tar.gz/C3-0.1/c3/utils/graphite.py
''' This module sends metrics directly to graphite. ''' import re import socket import time from c3.utils import logging class Graphite(object): ''' This class sends metrics to graphite. ''' def __init__(self, server=None, port=2003, debug=False): self.server = server self.port = port ...
PypiClean
/BioCantor-0.4.5.tar.gz/BioCantor-0.4.5/inscripta/biocantor/location/location_impl.py
from functools import total_ordering, reduce from typing import Optional, List, Iterator, Union from Bio.SeqFeature import FeatureLocation, CompoundLocation from inscripta.biocantor.util.ordering import RelativeOrder from inscripta.biocantor.util.types import ParentInputType from inscripta.biocantor.exc import ( ...
PypiClean
/Eskapade_ROOT-0.9.0-py3-none-any.whl/esroofit/decorators/histograms.py
import numpy from ROOT import TH1 from ROOT import TH1C, TH1S, TH1I, TH1F, TH1D from ROOT import TH2C, TH2S, TH2I, TH2F, TH2D from ROOT import TH3C, TH3S, TH3I, TH3F, TH3D # TH1 (Note: all root histograms inherit from TH1) @property def datatype(self): # noqa """Data type of histogram variable. Return da...
PypiClean
/Bootstrap-Flask-2.3.0.tar.gz/Bootstrap-Flask-2.3.0/flask_bootstrap/static/bootstrap4/js/bootstrap.min.js
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("jquery"),require("popper.js")):"function"==typeof define&&define.amd?define(["exports","jquery","popper.js"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).bootstrap={},t.jQuery,t.Popper)}(this,(function(t,e,n){"use stric...
PypiClean
/DataSynthesizer-0.1.11.tar.gz/DataSynthesizer-0.1.11/README.md
[![PyPi Shield](https://img.shields.io/pypi/v/DataSynthesizer.svg)](https://pypi.python.org/pypi/DataSynthesizer) [![Travis CI Shield](https://travis-ci.com/DataResponsibly/DataSynthesizer.svg?branch=master)](https://travis-ci.com/DataResponsibly/DataSynthesizer) # DataSynthesizer DataSynthesizer generates synthetic ...
PypiClean
/MercyIdeas-1.0.0a2-py3-none-any.whl/MercyStudy/dec_convert.py
from MercyIdeas.MercyStudy import get_num def check_float(_num): if not isinstance(_num, float): raise TypeError("输入内容非浮点数或整数") return True # convert float part of float num from decimal to dec which you pointed, return float num <type: String> def float_dec_convert(_float_input, _dec, _precision=8)...
PypiClean
/CC-CataLog-0.1.330.tar.gz/CC-CataLog-0.1.330/catalog/gendata/traj_to_job.py
import typing as typ if typ.TYPE_CHECKING: from catalog.jobs.jobs import Job #external modules import json,pickle,copy import ase # type: ignore from ase.io import read # type: ignore from ase.visualize import view #internal modules from catalog.jobs.jobs import Job from catalog.misc.utilities ...
PypiClean
/Hom4PSpy-1.0.tar.gz/Hom4PSpy-1.0/hom4pspy.py
import hom4ps def _do_solve (system, solver, acc): if isinstance(system,list) or isinstance(system,tuple): polys = map (lambda x: str(x) + ';', system) system = "{\n" + "\n".join(polys) + "\n}" hom = solver() hom.solve_string (system) var = list (hom.variables) soln = [] for k in rang...
PypiClean
/MAVR-0.93.tar.gz/MAVR-0.93/scripts/sequence/get_general_data_from_genbank_file.py
__author__ = 'Sergei F. Kliver' import argparse import os from Bio import SeqIO from RouToolPa.Routines.Sequence import find_gaps parser = argparse.ArgumentParser() parser.add_argument("-i", "--input_file", action="store", dest="input_file", help="Input genbank file with sequences") parser.add_a...
PypiClean
/ORR_Optimization-0.2-py3-none-any.whl/orr_optimizer/dynamic_cat.py
import random import numpy as np import copy # Atomic simulation envirnoment (ASE) dependency from ase.io import read from ase.io import write from ase.build import fcc111, fcc100 class dynamic_cat(object): ''' Template for defected catalyst facets to be optimized. Handles (111) and (100) facets. ...
PypiClean
/OctoBot-Backtesting-1.9.1.tar.gz/OctoBot-Backtesting-1.9.1/README.md
# OctoBot-Backtesting [1.9.1](https://github.com/Drakkar-Software/OctoBot-Backtesting/blob/master/CHANGELOG.md) [![Codacy Badge](https://api.codacy.com/project/badge/Grade/aa0b156e99604b3c98923fffeaea6a49)](https://app.codacy.com/gh/Drakkar-Software/OctoBot-Backtesting?utm_source=github.com&utm_medium=referral&utm_cont...
PypiClean
/NeuroTools-0.3.1.tar.gz/NeuroTools-0.3.1/doc/spike2.rst
The ``spike2`` module ========================= The ``spike2`` module offers an easy way for reading data from CED's Spike2 Son files into the NeuroTools environment. The main interaction with with Spike2 files is provided by the SON Library which was written by:: Antonio Gonzalez Department of Neuroscience Karol...
PypiClean
/FishFishJump-0.2.3.tar.gz/FishFishJump-0.2.3/fish_dashboard/static/jquery-easing/jquery.easing.min.js
(function(factory){if(typeof define==="function"&&define.amd){define(["jquery"],function($){return factory($)})}else if(typeof module==="object"&&typeof module.exports==="object"){exports=factory(require("jquery"))}else{factory(jQuery)}})(function($){$.easing.jswing=$.easing.swing;var pow=Math.pow,sqrt=Math.sqrt,sin=Ma...
PypiClean
/Mogistics-0.1.tar.gz/Mogistics-0.1/README.md
# Mogistics ## What is Mogistics ? Mogistics is a designed app to help u manage and supervise the different services of your logistics company . With Mogistics installed your smartphone and computer become the point where the office meets the field. ## Author : ZITOUNI Sarah ## Structure Let's put you in context,...
PypiClean
/BotEXBotBase-3.1.3.tar.gz/BotEXBotBase-3.1.3/discord/activity.py
import datetime from .enums import ActivityType, try_enum from .colour import Colour __all__ = ["Activity", "Streaming", "Game", "Spotify"] """If curious, this is the current schema for an activity. It's fairly long so I will document it here: All keys are optional. state: str (max: 128), details: str (max: 128) ...
PypiClean
/MergePythonSDK.ticketing-2.2.2-py3-none-any.whl/MergePythonSDK/ticketing/model/ticket_response.py
import re # noqa: F401 import sys # noqa: F401 from typing import ( Optional, Union, List, Dict, ) from MergePythonSDK.shared.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, ModelSimple, cached_property, OpenApiModel, change_keys_js_to_python,...
PypiClean
/GenomeQAML-0.0.14.tar.gz/GenomeQAML-0.0.14/genomeqaml/extract_features.py
from genewrappers.biotools import mash from Bio.SeqUtils import GC import multiprocessing from Bio import SeqIO from glob import glob import subprocess import shutil import click import time import os __author__ = 'adamkoziol', 'andrewlow' def main(sequencepath, report, refseq_database, num_threads=12): """ R...
PypiClean
/Newcalls-0.0.1-cp37-cp37m-win_amd64.whl/newcalls/node_modules/agent-base/dist/src/index.js
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; const events_1 = require("events"); const debug_1 = __importDefault(require("debug")); const promisify_1 = __importDefault(require("./promisify")); const debug = debug...
PypiClean
/DEL.py-1.1.0.tar.gz/DEL.py-1.1.0/delpy/client.py
import json import time import discord import logging import asyncio from . import errors from datetime import datetime from aiohttp import ClientSession, ClientResponse from asyncio import get_event_loop_policy, AbstractEventLoop from typing import Optional, Union class Client: """ API wrapper for discordex...
PypiClean
/Azimuth-2.0.tar.gz/Azimuth-2.0/azimuth/model_comparison.py
import azimuth.predict as pd import copy import os import numpy as np import azimuth.util import shutil import pickle import pylab as plt import pandas import azimuth.local_multiprocessing import azimuth.load_data import azimuth.features.featurization as feat def check_feature_set_dims(feature_sets): F2 = None ...
PypiClean
/Gnosis-0.1.1.tar.gz/Gnosis-0.1.1/gnosis/xml/objectify/utils.py
from __future__ import generators from gnosis.xml.objectify._objectify import _XO_ from gnosis.xml.objectify._objectify import * from exceptions import TypeError from types import * from itertools import islice from sys import maxint, stdout def addChild(parent, child): "Add a child xmlObject to a parent xmlObject...
PypiClean
/NestedRecord-0.3.0.tar.gz/NestedRecord-0.3.0/doc/source/manual.rst
NestedRecord Manual +++++++++++++++++++ .. contents:: Tools for handling the NestedRecord encoding, a useful way of representing nested structures of dictionaries and lists as flat key-value pairs by using a convention for key names. Relationship with RecordConvert =============================== NestedRecord is pa...
PypiClean
/EnergyCapSdk-8.2304.4743.tar.gz/EnergyCapSdk-8.2304.4743/energycap/sdk/models/meter_digest_actual_and_calendarized_monthly_response.py
from msrest.serialization import Model class MeterDigestActualAndCalendarizedMonthlyResponse(Model): """MeterDigestActualAndCalendarizedMonthlyResponse. :param meter_code: The meter code :type meter_code: str :param meter_info: The meter info :type meter_info: str :param meter_id: The meter ...
PypiClean
/OTLModel/Classes/Rack.py
from OTLMOW.OTLModel.BaseClasses.OTLAttribuut import OTLAttribuut from OTLMOW.OTLModel.Classes.AIMNaamObject import AIMNaamObject from OTLMOW.OTLModel.Datatypes.DtcDocument import DtcDocument from OTLMOW.OTLModel.Datatypes.IntegerField import IntegerField from OTLMOW.OTLModel.Datatypes.KlRackMerk import KlRackMerk from...
PypiClean
/Flaskel-3.1.0rc2-py3-none-any.whl/flaskel/wsgi/wsgi_gunicorn.py
import sys import threading import traceback import typing as t from multiprocessing import cpu_count from gunicorn.app.base import BaseApplication as WSGIServer from flaskel import Flaskel from flaskel.config import config from .base import BaseApplication class WSGIGunicorn(BaseApplication, WSGIServer): defa...
PypiClean
/Camelot-13.04.13-gpl-pyqt.tar.gz/Camelot-13.04.13-gpl-pyqt/camelot/view/controls/editors/localfileeditor.py
import os.path from PyQt4 import QtGui, QtCore from PyQt4.QtCore import Qt from customeditor import CustomEditor, set_background_color_palette from camelot.view.art import Icon from camelot.core.utils import ugettext as _ from camelot.view.controls.decorated_line_edit import DecoratedLineEdit class LocalFileEdito...
PypiClean
/CellDetection-0.4.3-py3-none-any.whl/celldetection/models/features.py
import torch import torch.nn as nn import numpy as np from ..models.filters import EdgeFilter2d, GaussianFilter2d from ..ops.features import texture_filter __all__ = ['MultiscaleBasicFeatures'] class MultiscaleBasicFeatures(nn.Module): def __init__( self, in_channels, intensit...
PypiClean
/ChatterBot-1.1.0.tar.gz/ChatterBot-1.1.0/chatterbot/conversation.py
from pytz import UTC from datetime import datetime from dateutil import parser as date_parser class StatementMixin(object): """ This class has shared methods used to normalize different statement models. """ statement_field_names = [ 'id', 'text', 'search_text', 'c...
PypiClean
/Booktype-1.5.tar.gz/Booktype-1.5/lib/booki/site_static/js/jquery/ui/minified/jquery.ui.draggable.min.js
(function(d){d.widget("ui.draggable",d.ui.mouse,{widgetEventPrefix:"drag",options:{addClasses:true,appendTo:"parent",axis:false,connectToSortable:false,containment:false,cursor:"auto",cursorAt:false,grid:false,handle:false,helper:"original",iframeFix:false,opacity:false,refreshPositions:false,revert:false,revertDuratio...
PypiClean
/G31_KID_design-1.0.3.tar.gz/G31_KID_design-1.0.3/src/G31_KID_design/Patterns.py
import numpy as np import matplotlib.pyplot as plt from matplotlib.patches import Rectangle, Circle from matplotlib.textpath import TextPath from matplotlib.patches import PathPatch from matplotlib.font_manager import FontProperties def circularTriangleLattice(radius, pitch, element_dimension, rotation=0): ''' ...
PypiClean
/Electrum-VTC-2.9.3.3.tar.gz/Electrum-VTC-2.9.3.3/packages/google/protobuf/descriptor_database.py
__author__ = 'matthewtoia@google.com (Matt Toia)' class Error(Exception): pass class DescriptorDatabaseConflictingDefinitionError(Error): """Raised when a proto is added with the same name & different descriptor.""" class DescriptorDatabase(object): """A container accepting FileDescriptorProtos and maps Des...
PypiClean
/ESMValTool-2.9.0-py3-none-any.whl/esmvaltool/diag_scripts/weighting/climwip/io_functions.py
import logging import os from collections import defaultdict from datetime import datetime import natsort import numpy as np import xarray as xr from esmvaltool.diag_scripts.shared import ProvenanceLogger, group_metadata, io logger = logging.getLogger(os.path.basename(__file__)) def get_provenance_record(caption: ...
PypiClean
/EMD_signal-1.5.1-py3-none-any.whl/PyEMD/visualisation.py
import numpy as np from scipy.signal import hilbert from PyEMD.compact import filt6, pade6 # Visualisation is an optional module. To minimise installation, `matplotlib` is not added # by default. Please install extras with `pip install -r requirement-extra.txt`. try: import pylab as plt except ImportError: pa...
PypiClean
/CartiMorph_nnUNet-1.7.14.tar.gz/CartiMorph_nnUNet-1.7.14/CartiMorph_nnUNet/network_architecture/generic_modular_residual_UNet.py
import numpy as np import torch from CartiMorph_nnUNet.network_architecture.custom_modules.conv_blocks import BasicResidualBlock, ResidualLayer from CartiMorph_nnUNet.network_architecture.generic_UNet import Upsample from CartiMorph_nnUNet.network_architecture.generic_modular_UNet import PlainConvUNetDecoder, get_def...
PypiClean
/Kapok-0.2.1-cp35-cp35m-win_amd64.whl/Kapok-0.2.1.dist-info/DESCRIPTION.rst
[![License: GPL v3](https://img.shields.io/badge/License-GPL%20v3-blue.svg)](http://www.gnu.org/licenses/gpl-3.0) [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.167040.svg)](https://doi.org/10.5281/zenodo.167040) # Kapok: An Open Source Python Library for PolInSAR Forest Height Estimation Using UAVSAR Data Kapok...
PypiClean
/GeoNode-3.2.0-py3-none-any.whl/geonode/static/geonode/js/ol-2.13/lib/OpenLayers/Handler.js
* @requires OpenLayers/BaseTypes/Class.js * @requires OpenLayers/Events.js */ /** * Class: OpenLayers.Handler * Base class to construct a higher-level handler for event sequences. All * handlers have activate and deactivate methods. In addition, they have * methods named like browser events. When a h...
PypiClean
/MTfit-1.0.6a5.tar.gz/MTfit-1.0.6a5/docs/source/tutorial.rst
*************************** Tutorial: Using MTfit *************************** :mod:`MTfit` is a bayesian approach to moment tensor inversion, allowing rigorous inclusion of uncertainties. This section shows a simple series of examples for running :mod:`MTfit`. The example data is included in :download:`examples/examp...
PypiClean