id
stringlengths
1
265
text
stringlengths
6
5.19M
dataset_id
stringclasses
7 values
/NeuNorm-1.6.2.tar.gz/NeuNorm-1.6.2/notebooks/ipts-16259.ipynb
``` root_folder = os.path.dirname(os.getcwd()) sys.path.append(root_folder) import NeuNorm as neunorm from NeuNorm.normalization import Normalization from NeuNorm.roi import ROI # data file_1 = '/Volumes/my_book_thunderbolt_duo/IPTS/IPTS-16259/MS-19/20170906_MS-19(2)_0000_0440.tiff' file_2 = '/Volumes/my_book_thunder...
PypiClean
/Acolyte-0.0.1.tar.gz/Acolyte-0.0.1/acolyte/testing/builtin_ext/github.py
import simplejson as json from acolyte.testing import EasemobFlowTestCase, MockContext from acolyte.builtin_ext.github import ( GithubPushJob, TravisCIJob, ) from acolyte.util.lang import get_from_nested_dict class GithubPushJobTestCase(EasemobFlowTestCase): def setUp(self): self._ctx = MockConte...
PypiClean
/Makechr-1.5.tar.gz/Makechr-1.5/makechr/_image_processor.py
import chr_data import collections import extract_indexed_image_palette import errors import guess_best_palette import id_manifest import itertools import math import os import palette import ppu_memory import sys import rgb import wrapped_image_palette from constants import * if sys.version_info < (3,0): range = x...
PypiClean
/JaqalPaq-1.2.0a1.tar.gz/JaqalPaq-1.2.0a1/src/jaqalpaq/core/register.py
from jaqalpaq.error import JaqalError from .parameter import ( ParamType, AnnotatedValue, Parameter, make_item_name, ) from .constant import Constant class Register: """ Represents a qubit register, whether defined by a register statement or a map statement. Can be indexed into (but not sl...
PypiClean
/Axelrod-4.13.0.tar.gz/Axelrod-4.13.0/axelrod/strategies/_strategies.py
import warnings from .adaptive import Adaptive from .adaptor import AdaptorBrief, AdaptorLong from .alternator import Alternator from .ann import EvolvedANN, EvolvedANN5, EvolvedANNNoise05 from .ann import ANN, EvolvableANN # pylint: disable=unused-import from .apavlov import APavlov2006, APavlov2011 from .appeaser i...
PypiClean
/CocoPy-1.1.0rc.zip/CocoPy-1.1.0rc/testSuite/TestOpts_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
/MaterialDjango-0.2.5.tar.gz/MaterialDjango-0.2.5/bower_components/prism/components/prism-haskell.min.js
Prism.languages.haskell={comment:{pattern:/(^|[^-!#$%*+=?&@|~.:<>^\\\/])(?:--[^-!#$%*+=?&@|~.:<>^\\\/].*|{-[\s\S]*?-})/m,lookbehind:!0},"char":/'(?:[^\\']|\\(?:[abfnrtv\\"'&]|\^[A-Z@[\]^_]|NUL|SOH|STX|ETX|EOT|ENQ|ACK|BEL|BS|HT|LF|VT|FF|CR|SO|SI|DLE|DC1|DC2|DC3|DC4|NAK|SYN|ETB|CAN|EM|SUB|ESC|FS|GS|RS|US|SP|DEL|\d+|o[0-7...
PypiClean
/JSONSchema2PoPo2-3.0.3-py3-none-any.whl/jsonschema2popo/python/python.py
import argparse import os import pathlib from typing import Union, Dict, Callable, Any from jsonschema2popo import version from jsonschema2popo.classes import Definition, ListNode, CodeGenPlugin from jsonschema2popo.jsonschema2popo import string_to_type class Python(CodeGenPlugin): def plugin_name(self) -> str: ...
PypiClean
/CleanAdminDjango-1.5.3.1.tar.gz/CleanAdminDjango-1.5.3.1/django/contrib/gis/gdal/srs.py
from ctypes import byref, c_char_p, c_int # Getting the error checking routine and exceptions from django.contrib.gis.gdal.base import GDALBase from django.contrib.gis.gdal.error import SRSException from django.contrib.gis.gdal.prototypes import srs as capi from django.utils import six from django.utils.encoding impo...
PypiClean
/Flask-Email-1.4.4.tar.gz/Flask-Email-1.4.4/flask_email/message.py
import mimetypes import os import random import time from email import charset as Charset, encoders as Encoders from email.generator import Generator from email.mime.text import MIMEText from email.mime.multipart import MIMEMultipart from email.mime.base import MIMEBase from email.header import Header from email.utils ...
PypiClean
/ORTEIL_IDLE_GAME_MAKER_CODE_GENERATOR-1.2-py3-none-any.whl/ORTEIL_IDLE_GAME_MAKER_CODE_GENERATOR/orteil_idle_game_maker_code_generator.py
import sys import os from datetime import datetime # Creating necessary functions to be used throughout the code generator. def clear(): # type: () -> None if sys.platform.startswith('win'): os.system('cls') # For Windows System else: os.system('clear') # For Linux System def lets_...
PypiClean
/Hyperion-0.9.10.tar.gz/Hyperion-0.9.10/docs/api/hyperion.dust.BHDust.rst
=========================== hyperion.dust.BHDust =========================== .. currentmodule:: hyperion.dust .. autoclass:: BHDust .. rubric:: Method .. autosummary:: ~BHDust.set_sublimation_temperature ~BHDust.set_sublimation_specific_energy ~BHDust.set_lte_emissivities ~BHDust.plot...
PypiClean
/Mopidy-dLeyna-2.0.2.tar.gz/Mopidy-dLeyna-2.0.2/docs/license.rst
******* License ******* Mopidy-dLeyna is Copyright (c) 2015-2018 Thomas Kemmer. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this software except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless requi...
PypiClean
/Kivy-2.2.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl/kivy/metrics.py
from os import environ from kivy.utils import platform from kivy.properties import AliasProperty from kivy.event import EventDispatcher from kivy.setupconfig import USE_SDL2 from kivy.context import register_context from kivy._metrics import dpi2px, NUMERIC_FORMATS, dispatch_pixel_scale, \ sync_pixel_scale __all_...
PypiClean
/DI-treetensor-0.4.1.tar.gz/DI-treetensor-0.4.1/treetensor/torch/funcs/autograd.py
import torch from .base import doc_from_base, func_treelize from ...common import return_self __all__ = [ 'detach', 'detach_' ] # noinspection PyShadowingBuiltins @doc_from_base() @func_treelize() def detach(input): """ Detach tensor from calculation graph. Examples:: >>> import torch ...
PypiClean
/LibML-0.1.03.tar.gz/LibML-0.1.03/libml/Classification/DiscriminantAnalysis.py
import numpy as np import numpy.linalg as la from sklearn.utils.extmath import safe_sparse_dot as safedot class DiscriminantAnalysis(): def __init__(self, model = 'Linear'): """ Initializes the Discriminant Analysis Classifier Parameters ---------- model : can be specified...
PypiClean
/Mathics_Django-6.0.0-py3-none-any.whl/mathics_django/web/media/js/mathjax/jax/output/HTML-CSS/fonts/Gyre-Pagella/SansSerif/Regular/Main.js
MathJax.OutputJax["HTML-CSS"].FONTDATA.FONTS.GyrePagellaMathJax_SansSerif={directory:"SansSerif/Regular",family:"GyrePagellaMathJax_SansSerif",testString:"\u00A0\uD835\uDDA0\uD835\uDDA1\uD835\uDDA2\uD835\uDDA3\uD835\uDDA4\uD835\uDDA5\uD835\uDDA6\uD835\uDDA7\uD835\uDDA8\uD835\uDDA9\uD835\uDDAA\uD835\uDDAB\uD835\uDDAC\uD...
PypiClean
/GeoNode-3.2.0-py3-none-any.whl/geonode/static/lib/js/plugins/insertdatetime/plugin.min.js
!function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),u=function(e){return e.getParam("insertdatetime_timeformat",e.translate("%H:%M:%S"))},c=function(e){return e.getParam("insertdatetime_formats",["%H:%M:%S","%Y-%m-%d","%I:%M:%S %p","%D"])},r="Sun Mon Tue Wed Thu Fri Sat Sun".split(" "),a=...
PypiClean
/Djblets-3.3.tar.gz/Djblets-3.3/docs/releasenotes/0.7.18.rst
============================ Djblets 0.7.18 Release Notes ============================ **Release date**: September 15, 2013 Security updates ================ * We now require Django 1.4.8, which has some important security updates to prevent a DoS against the auth module. * Web API resource lists are now more ca...
PypiClean
/NIVESH-3-2.1.0.tar.gz/NIVESH-3-2.1.0/README.md
# `NIVESH` The `nivesh` is a simple testing example to understand the basics of developing your first Python package. ## Install & Usage You can install `nivesh` as follows: ``` pip install --index-url https://test.pypi.org/simple/ --no-deps nivesh ``` Try to have fun with `nivesh`: ``` from multiply.by_three imp...
PypiClean
/AltAnalyze-2.1.3.15.tar.gz/AltAnalyze-2.1.3.15/altanalyze/stats_scripts/mpmath/calculus/extrapolation.py
try: from itertools import izip except ImportError: izip = zip from ..libmp.backend import xrange from .calculus import defun try: next = next except NameError: next = lambda _: _.next() @defun def richardson(ctx, seq): r""" Given a list ``seq`` of the first `N` elements of a slowly convergen...
PypiClean
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/form/CheckedMultiSelect.js.uncompressed.js
require({cache:{ 'url:dojox/form/resources/_CheckedMultiSelectMenuItem.html':"<tr class=\"dijitReset dijitMenuItem\" dojoAttachPoint=\"focusNode\" role=\"menuitemcheckbox\" tabIndex=\"-1\"\n\tdojoAttachEvent=\"onmouseenter:_onHover,onmouseleave:_onUnhover,ondijitclick:_onClick\"\n\t><td class=\"dijitReset dijitMenuItem...
PypiClean
/NDFinance-0.0.8.tar.gz/NDFinance-0.0.8/ndfinance/brokers/base/__init__.py
import time import datetime import numpy as np from ndfinance.brokers.base.order import * from ndfinance.brokers.base.asset import * from ndfinance.brokers.base.data_provider import * from ndfinance.brokers.base.position import * from ndfinance.brokers.base.withdraw import WithDrawConfig, WithDrawTypes from ndfinance.u...
PypiClean
/GQCMS-0.0.4-py3-none-any.whl/build/lib/build/lib/build/lib/build/lib/build/lib/build/lib/build/lib/gqcms/diagonalization/Davidson.py
import numpy as np import pandas as pd import scipy.linalg as sp def generateUnitVectors(amount: int, dim: int) -> np.ndarray: """ Generate the specified amount of unit vectors. :param amount: amount of unit vectors needed :param dim: the dimension of the hamiltonian returns the selected unit vec...
PypiClean
/Chula-0.13.3.tar.gz/Chula-0.13.3/chula/nosql/couch.py
from operator import itemgetter import copy import os import re import time # Third party imports import couchdb # couchdb.http was introduced in 0.7.0 if hasattr(couchdb, 'http'): from couchdb.http import ResourceNotFound else: from couchdb import ResourceNotFound # Project imports from chula.db import data...
PypiClean
/AdjectorTracPlugin-1.0b1.tar.gz/AdjectorTracPlugin-1.0b1/adjector/plugins/trac/adjector_trac.py
from adjector.client import initialize_adjector, render_zone from trac.core import Component, implements from trac.web.api import IRequestFilter class AdjectorTracPlugin(Component): implements(IRequestFilter) #magic self variables: env, config, log def __init__(self): self.log.error('ADJECTO...
PypiClean
/Num6-0.4.0-py3-none-any.whl/num6/charlib.py
charlib = { # Upper Case 'A': '233223', 'B': '332232', 'C': '323232', 'D': '322322', 'E': '323323', 'F': '322233', 'G': '222332', 'H': '322223', 'I': '244244', 'J': '442442', 'K': '424242', 'L': '444422', 'M': '224224', 'N': '422424', 'O': '244442', ...
PypiClean
/NAG-PyPOP-0.3.5.tar.gz/NAG-PyPOP-0.3.5/doc/source/doc.rst
Welcome to PyPOP's documentation! ================================= The PyPOP package is designed to make it easy to perform application performance analyses based on the POP methodology. The primary goals of PyPOP are: * Easy calculation of POP metrics * High quality figure generation * Easy access to underlyi...
PypiClean
/githubkit-0.10.7-py3-none-any.whl/githubkit/rest/search.py
from typing import TYPE_CHECKING, Dict, Literal, Optional, overload from pydantic import BaseModel, parse_obj_as from githubkit.utils import UNSET, Missing, exclude_unset from .models import ( BasicError, ValidationError, SearchCodeGetResponse200, SearchUsersGetResponse200, SearchIssuesGetRespons...
PypiClean
/Ming-0.13.0-py3-none-any.whl/ming/metadata.py
import logging from copy import copy from threading import Lock import pymongo from pymongo.errors import ConnectionFailure from . import schema as S from .base import Object from .utils import fixup_index, LazyProperty from .exc import MongoGone log = logging.getLogger(__name__) class Field: """Represents a F...
PypiClean
/Fom-0.9.10.zip/Fom-0.9.10/examples/objectmapping.py
from fom.dev import sandbox_fluid from fom.mapping import Object, Namespace, tag_value, tag_relation # Use and bind the sandbox (for playing) fluid = sandbox_fluid() # let's start by creating a new Namespace for this application and then some # tags # Use the test user's namespace ns = Namespace(u'test') # create a...
PypiClean
/Flask-KQMaps-0.4.2.tar.gz/Flask-KQMaps-0.4.2/flask_kqmaps/static/kqwebclient/leaflet/3rd_libs/leaflet.motion/leaflet.motion.min.js
!function(t){var n={};function i(e){if(n[e])return n[e].exports;var o=n[e]={i:e,l:!1,exports:{}};return t[e].call(o.exports,o,o.exports,i),o.l=!0,o.exports}i.m=t,i.c=n,i.d=function(t,n,e){i.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:e})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.d...
PypiClean
/FinQuant-0.6.2-py3-none-any.whl/finquant/type_utilities.py
import datetime from typing import Any, Callable, Dict, List, Optional, Tuple, Type, Union import numpy as np import pandas as pd # supress some pylint complaints for this module only # pylint: disable=C0302,R0904,,R0912,W0212 def _check_type( arg_name: str, arg_values: Any, expected_type: Union[Type[An...
PypiClean
/Acolyte-0.0.1.tar.gz/Acolyte-0.0.1/acolyte/core/storage/job_instance.py
import datetime from acolyte.core.storage import AbstractDAO from acolyte.core.job import JobInstance, JobStatus def _mapper(result): result["id_"] = result.pop("id") return JobInstance(**result) class JobInstanceDAO(AbstractDAO): def __init__(self, db): super().__init__(db) def query_by_i...
PypiClean
/Flask-Dance-7.0.0.tar.gz/Flask-Dance-7.0.0/flask_dance/contrib/authentiq.py
from flask import g from werkzeug.local import LocalProxy from flask_dance.consumer import OAuth2ConsumerBlueprint __maintainer__ = "Pieter Ennes <support@authentiq.com>" def make_authentiq_blueprint( client_id=None, client_secret=None, *, scope="openid profile", redirect_url=None, redirect_...
PypiClean
/Flask-PRBAC-0.1.3.tar.gz/Flask-PRBAC-0.1.3/flask_prbac/__init__.py
import itertools from flask import request, abort, _request_ctx_stack try: from flask import _app_ctx_stack except ImportError: _app_ctx_stack = None try: from flask_login import (current_user, AnonymousUserMixin as anonymous_model) except ImportError: current_user, anony...
PypiClean
/Cuckoo-2.0.7a1.tar.gz/Cuckoo-2.0.7a1/cuckoo/common/logo.py
import sys import random from cuckoo.common.colors import color, yellow from cuckoo.misc import version def logo(): """Cuckoo asciiarts. @return: asciiarts array. """ logos = [] logos.append(""" _| _|_|_| _| _| _|_|_| _| _| _|_| _|_| _|...
PypiClean
/DataProfiler-0.10.3-py3-none-any.whl/dataprofiler/profilers/datetime_column_profile.py
from __future__ import annotations import datetime import re import warnings import numpy as np import pandas as pd from . import profiler_utils from .base_column_profilers import BaseColumnPrimitiveTypeProfiler, BaseColumnProfiler from .profiler_options import DateTimeOptions class DateTimeColumn(BaseColumnPrimit...
PypiClean
/Cubane-1.0.11.tar.gz/Cubane-1.0.11/cubane/lib/latlng.py
from __future__ import unicode_literals import math import re """ Constants """ EARTH_RADIUS_KM = 6371 # radius of the earth in km (approx.) KM_IN_MILES = 0.621371192 # the equivilent of 1 km in miles KM_IN_NAUTICAL_MILES = 0.539956803 # the equivilent of 1 km in nautical miles def distance_to(...
PypiClean
/Flask-KQMaps-0.4.2.tar.gz/Flask-KQMaps-0.4.2/flask_kqmaps/static/kqwebclient/leaflet/3rd_libs/Leaflet.AntPath/leaflet-ant-path.js
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("leaflet")):"function"==typeof define&&define.amd?define(["leaflet"],e):"object"==typeof exports?exports["leaflet-ant-path"]=e(require("leaflet")):t["leaflet-ant-path"]=e(t.L)}(window,function(t){return function(t){var e={};functi...
PypiClean
/CASCADe-spectroscopy-1.1.14.tar.gz/CASCADe-spectroscopy-1.1.14/cascade/instruments/Spitzer/Spitzer.py
import os import collections import ast from types import SimpleNamespace import numpy as np from astropy.io import fits import astropy.units as u from astropy.io import ascii from astropy.convolution import Gaussian2DKernel from astropy.convolution import Gaussian1DKernel from astropy.stats import sigma_clipped_stats...
PypiClean
/Flaskel-3.1.0rc2-py3-none-any.whl/flaskel/extra/payments/stripe/repo.py
from datetime import datetime import sqlalchemy as sa from sqlalchemy.ext.declarative import declared_attr from vbcore import json from vbcore.datastruct import ObjectDict from vbcore.db.mixins import CatalogMixin, StandardMixin from vbcore.db.sqla import LoaderModel from vbcore.enums import IntEnum class PaymentSta...
PypiClean
/Gbtestapi0.2-0.1a10.tar.gz/Gbtestapi0.2-0.1a10/src/gailbot/services/converter/payload/videoPayload.py
import os from .payloadObject import PayLoadObject, PayLoadStatus from ...organizer.source import SourceObject from typing import List, Union from gailbot.core.utils.general import get_extension, copy """ NOTE: currently unused and not tested since gailbot does not support for video transcription yet """ ...
PypiClean
/Flask-Ask-alphavideo-2.1.0.tar.gz/Flask-Ask-alphavideo-2.1.0/docs/requests.rst
Handling Requests ================= With the Alexa Skills Kit, spoken phrases are mapped to actions executed on a server. Alexa converts speech into JSON and delivers the JSON to your application. For example, the phrase: "Alexa, Tell HelloApp to say hi to John" produces JSON like the following: .. code-block::...
PypiClean
/morelia-0.9.2-py3-none-any.whl/morelia/visitors.py
import inspect from abc import ABC from typing import Iterable, List from morelia.exceptions import MissingStepError from morelia.grammar import Feature, Node, Scenario, Step, Visitor class VisitorObserver(ABC): def feature_started(self, node: Feature) -> None: self.node_started(node) def feature_fi...
PypiClean
/BO4ML-0.3.1.tar.gz/BO4ML-0.3.1/BanditOpt/ConfigSpace.py
from __future__ import print_function from copy import deepcopy from collections import OrderedDict from typing import Union, List, Dict, Optional from numpy.random import randint import itertools, collections, math import numpy as np import pandas as pd from sklearn.preprocessing import LabelEncoder #import mipego4ml....
PypiClean
/MutationChecker-0.0.1-py3-none-any.whl/MutationChecker.py
import os, sys import requests import warnings import Bio from Bio.PDB import PDBList, PDBParser from Bio.Data.IUPACData import protein_letters_3to1 from Bio.pairwise2 import format_alignment from Bio import pairwise2 import json warnings.filterwarnings("ignore") def GeneToUniprotMapper(gene_id, specie="HUMAN"): ...
PypiClean
/GeoNode-3.2.0-py3-none-any.whl/geonode/monitoring/middleware.py
import logging import pytz import hashlib from datetime import datetime from django.conf import settings from geonode.monitoring.models import Service, Host from geonode.monitoring.utils import MonitoringHandler from django.http import HttpResponse from django.utils.deprecation import MiddlewareMixin FILTER_URLS = ...
PypiClean
/JitsiProvS-0.10b1.tar.gz/JitsiProvS-0.10b1/jitsiprovs/provisioner.py
import sqlobject from flask import request from string import Template from jitsiprovs import dbdata, libprovisioner class Provisioner( object ): """ Implements processing logic for a request Returns the properties. """ req_params = { 'null': '${null}', 'default':...
PypiClean
/CephQeSdk-1.0.0.tar.gz/CephQeSdk-1.0.0/src/RhcsQeSdk/core/cli/rbd/lock.py
import logging from copy import deepcopy import RhcsQeSdk.core.cli.fabfile as fabfile from RhcsQeSdk.core.utilities import core_utils logger = logging.getLogger(__name__) logger.setLevel(logging.DEBUG) formatter = logging.Formatter( "%(asctime)s - %(levelname)s - %(name)s:%(lineno)d - %(message)s" ) stream_hand...
PypiClean
/Djangito-0.0.5.tar.gz/Djangito-0.0.5/djangito_client/views.py
import json import logging import secrets import requests from django.conf import settings from django.contrib import messages from django.contrib.auth import get_user_model, login, logout from django.shortcuts import HttpResponse, redirect from django.urls import reverse from django.views.decorators.csrf import csrf_...
PypiClean
/FireSVM-0.1.3-py3-none-any.whl/firesvm/svm.py
import numpy as np import cvxopt from firesvm.utils import * from firesvm.kernels import * class SVM: def __init__(self, kernel=rbf, C=None, tol = 1e-5, max_iter = 100, verbose = False): self.kernel = kernel self.C = C self.tol = tol self.max_iter = max_iter self.verbose = ...
PypiClean
/LCONF-7.0.0.tar.bz2/LCONF-7.0.0/LICENSE.rst
===================== Copyrights & Licenses ===================== License for LCONF ================= Except where noted below, **LCONF** is released under the following terms: `BSD 3-Clause License <http://opensource.org/licenses/BSD-3-Clause>`_: *LCONF* (c) 2014, `peter1000` https://github.com/peter1000 A...
PypiClean
/Grid2Op-1.9.3-py3-none-any.whl/grid2op/Chronics/handlers/csvHandler.py
import os import pandas as pd import numpy as np import copy from typing import Tuple from grid2op.Exceptions import ( ChronicsError, HandlerError ) from grid2op.dtypes import dt_int, dt_float from grid2op.Chronics.handlers.baseHandler import BaseHandler class CSVHandler(BaseHandler): """Reads and produce ...
PypiClean
/DACBench-0.2.0.tar.gz/DACBench-0.2.0/docs/source/dac.rst
.. _dac: ================================================== Dynamic Algorithm Configuration - A Short Overview ================================================== **Dynamic Algorithm Configuration (DAC)** [`Biedenkapp et al., ECAI 2020 <https://ml.informatik.uni-freiburg.de/wp-content/uploads/papers/20-ECAI-DAC.pdf>`_...
PypiClean
/NebulasSdkPy-0.4.0.tar.gz/NebulasSdkPy-0.4.0/nebpysdk/src/client/Admin.py
from nebpysdk.src.client.HttpRequest import HttpRequest class Admin: def __init__(self, host="https://testnet.nebulas.io", api_version="v1"): self._host = host self._api_version = api_version self._path = "/admin" def set_request(self, host="https://testnet.nebulas.io", api_version="...
PypiClean
/FMLEngine-0.0.5.tar.gz/FMLEngine-0.0.5/README.txt
FML is a Graphics Library like Sdl2 or Sfml but for Python FML is currently in Pre-Apha their will be bugs if your verison of FML isent the newist verison Run this command in your Terminal ``pip install FMLEngine --upgrade`` to check if your on the newist verson import FML and it will output "FMLEngine Verison [what...
PypiClean
/NREL_disco-0.4.2-py3-none-any.whl/disco/sources/source_tree_1/pv_deployments.py
import abc import enum import json import logging import os import random import re import shutil from collections import defaultdict from copy import deepcopy from concurrent.futures import ProcessPoolExecutor from pathlib import Path from tempfile import NamedTemporaryFile from types import SimpleNamespace from typin...
PypiClean
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/layout/ContentPane.js.uncompressed.js
define("dojox/layout/ContentPane", [ "dojo/_base/lang", "dojo/_base/xhr", "dijit/layout/ContentPane", "dojox/html/_base", "dojo/_base/declare" ], function (lang, xhrUtil, ContentPane, htmlUtil, declare) { /*===== var ContentPane = dijit.layout.ContentPane =====*/ return declare("dojox.layout.ContentPane", Content...
PypiClean
/GSEIM-1.4.tar.gz/GSEIM-1.4/src/grc/gui/BlockTreeWindow.py
from __future__ import absolute_import from gi.repository import Gtk, Gdk, GObject from . import Actions, Utils, Constants import shutil import os import sys NAME_INDEX, KEY_INDEX, DOC_INDEX = range(3) def display_message(message): dialog_msg = Gtk.MessageDialog( flags=0, message_type=Gtk.Messa...
PypiClean
/DendroPy-4.6.1.tar.gz/DendroPy-4.6.1/src/dendropy/dataio/nexusprocessing.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
/GenIce-1.0.11.tar.gz/GenIce-1.0.11/genice/lattices/5R.py
desc={"ref": {}, "usage": "No options available.", "brief": "Orthogonalized ice V." } bondlen=3.00000000000215 coord='relative' density=1.23983176668 waters=""" 0.7375 0.1404 0.1618 0.4292 0.1404 0.1715 0.9292 0.8596 0.1715 0.2375 0.8596 0.1618 0.5708 ...
PypiClean
/Argonaut-0.3.4.tar.gz/Argonaut-0.3.4/argonaut/public/ckeditor/_source/lang/af.js
/* Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ /** * @fileOverview Defines the {@link CKEDITOR.lang} object, for the * Afrikaans language. */ /**#@+ @type String @example */ /** * Constains the dictionary of ...
PypiClean
/GangaCK-1.0.0.tar.gz/GangaCK-1.0.0/README.md
GangaCK ======= Improving `Ganga` for better productivity. [![package version](https://img.shields.io/pypi/v/GangaCK.svg)](https://pypi.org/project/GangaCK) [![pipeline status](https://gitlab.com/ckhurewa/GangaCK/badges/master/pipeline.svg)](https://gitlab.com/ckhurewa/GangaCK/commits/master) [![coverage report](http...
PypiClean
/Eliza-1.0.3.tar.gz/Eliza-1.0.3/docs/contribution.rst
How to contribute ================= Eliza is currently in active development and welcomes code improvements and bug fixes. For those of your interested, providing documentation to the lesser know parts would be equally awesome! Pull down the source:: $ git clone git@github.com:redvox/Eliza.git .. note:: Al...
PypiClean
/NBPy-0.1.1.tar.gz/NBPy-0.1.1/nbpy/currencies.py
import json class NBPCurrency(object): """ Helper class holding basic currency info. This class shouldn't be used outside of ``currencies`` from this submodule. """ def __init__(self, code, name, tables): r""" NBPCurrency init. :param code: Currency code ...
PypiClean
/Finance-Ultron-1.0.8.1.tar.gz/Finance-Ultron-1.0.8.1/ultron/ump/technical/line.py
import math, itertools import numpy as np import pandas as pd from collections import Iterable from ultron.kdutils.lazy import LazyFunc from ultron.ump.core.base import FreezeAttrMixin from ultron.kdutils.decorator import arr_to_numpy from ultron.kdutils import regression from ultron.kdutils import stats as stats_util ...
PypiClean
/NEURAL_py_EEG-0.1.4.tar.gz/NEURAL_py_EEG-0.1.4/src/NEURAL_py_EEG/rEEG.py
from NEURAL_py_EEG import utils import math import numpy as np from NEURAL_py_EEG import NEURAL_parameters def mat_percentile(x, q): """ Percentile function to mimic MATLAB :param x: :param q: :return: """ q = np.array(q) / 100 x = np.delete(x, np.where(np.isnan(x))[0]) n = len(x)...
PypiClean
/Explainer/explainer_methods.py
from functools import partial import re from collections import Counter import numpy as np import pandas as pd from dtreeviz.trees import ShadowDecTree from sklearn.metrics import make_scorer from sklearn.base import clone from sklearn.pipeline import Pipeline from sklearn.model_selection import StratifiedKFold fro...
PypiClean
/FPGAflow-esdg-0.3.5.tar.gz/FPGAflow-esdg-0.3.5/fpgaflow/helpers/arguments.py
import os import yaml import argparse import customlogging as log logger = log.config_logger(name=__name__) import version as my_version rev = filter(str.isdigit, "$Rev$") # Do Not Modify this Line version = my_version.Version(0, 8, 0, svn_rev=rev, disable_svn_logging=True) __version__ = version.get_version() __str_...
PypiClean
/APAC%20SCALE-0.1.2.tar.gz/APAC SCALE-0.1.2/torchscale/component/xmoe/routing.py
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. # # This source code is licensed under the BSD license found in the # LICENSE file in the root directory of this source tree. # Implementation of Top2Gating described in https://arxiv.org/pdf/2006.16668.pdf # Code is inspired by Top2GatingOnLogit...
PypiClean
/LbProdRun-1.5.1.tar.gz/LbProdRun-1.5.1/README.md
# LbProdRun LbProdRun provides a stable interface that can be used by LHCbDIRAC for configuring and launching LHCb's various software applications. In order to generate simulated data and reproduce legacy reprocessing it is necessary for LHCbDIRAC to be able to configure applications dating back to 2011. Previously th...
PypiClean
/gobuubstackmodel-0.9-py3-none-any.whl/ml_lib/train_levels/train_levels.py
import pandas as pd from tqdm import tqdm from sklearn.metrics import f1_score, confusion_matrix, cohen_kappa_score,\ precision_score, recall_score def train_levels_models(models: list, X_train:pd.DataFrame, y_train: pd.Series, X_validation:pd.DataFrame, y_validatio...
PypiClean
/lektor-3.4.0b6-py3-none-any.whl/lektor/pagination.py
class Pagination: def __init__(self, record, pagination_config): #: the pagination config self.config = pagination_config #: the current page's record self.current = record #: the current page number (1 indexed) self.page = record.page_num #: the number of ite...
PypiClean
/Barak-0.3.2.tar.gz/Barak-0.3.2/barak/extinction.py
r""" Tools for calculating dust attenuation. **How dust attentuation is expressed in this module** If :math:`I_\lambda` is the observed attenuated intensity of an object, and :math:`I_{\lambda,0}` is the unattenuated intensity modulated by an optical depth :math:`\tau_\lambda` due to dust particles, then: .. math:: ...
PypiClean
/Linum-0.9.12.tar.gz/Linum-0.9.12/linum/svg_renderer/base/cell.py
from typing import Optional, List from uuid import uuid4 from svgwrite import Drawing from svgwrite.masking import ClipPath from svgwrite.path import Path from svgwrite.shapes import Rect from svgwrite.text import Text from linum.color import Color from linum.svg_renderer.base.style import Style class Cell: de...
PypiClean
/ClueDojo-1.4.3-1.tar.gz/ClueDojo-1.4.3-1/src/cluedojo/static/dojox/dtl/README
------------------------------------------------------------------------------- DojoX Django Template Language ------------------------------------------------------------------------------- Version 0.0 Release date: 09/20/2007 ------------------------------------------------------------------------------- Project stat...
PypiClean
/Django_patch-2.2.19-py3-none-any.whl/django/contrib/admin/static/admin/js/actions.js
(function($) { 'use strict'; var lastChecked; $.fn.actions = function(opts) { var options = $.extend({}, $.fn.actions.defaults, opts); var actionCheckboxes = $(this); var list_editable_changed = false; var showQuestion = function() { $(options.acrossClears).h...
PypiClean
/Etherscan-ML-0.12.tar.gz/Etherscan-ML-0.12/etherscan/accounts.py
from .client import Client import re import random import time class Account(Client): def __init__(self, address=Client.dao_address, api_key='YourApiKeyToken'): Client.__init__(self, address=address, api_key=api_key) self.url_dict[self.MODULE] = 'account' def get_balance(self): self.ur...
PypiClean
/EARL-pytorch-0.5.1.tar.gz/EARL-pytorch-0.5.1/earl_pytorch/model/earl_perceiver.py
from typing import Optional import torch from torch import nn as nn from torch.nn.init import xavier_uniform_ from torch.nn.modules.transformer import _get_activation_fn from ..util.constants import DEFAULT_FEATURES from ..util.util import mlp class EARLPerceiverBlock(nn.Module): def __init__(self, n_dims, n_he...
PypiClean
/CredSLayer-0.1.3-py3-none-any.whl/credslayer/core/utils.py
import base64 import re from collections import namedtuple from string import printable as printable_charset from typing import List, Tuple from pyshark.packet.packet import Packet CreditCard = namedtuple("CreditCard", ['name', 'number']) STRING_EXTRACT_REGEX = re.compile(b"[^" + printable_charset.encode() + b"]+")...
PypiClean
/DuHast-1.0.7-py3-none-any.whl/duHast/APISamples/RevitMaterials.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
/Chaturanga-0.1.8.linux-x86_64.tar.gz/usr/local/lib/python2.7/dist-packages/chaturanga/moves.py
from .check import next_point def get_knight_moves(): """Generate a knight's movement range.""" return [(-1, 2), (-1, -2), (2, 1), (2, -1), (-2, 1), (-2, -1), (1, 2), (1, -2)] def get_bishop_moves(points, start): """Generate a given bishop's movement range.""" moves = [] for axis in ...
PypiClean
/Django_patch-2.2.19-py3-none-any.whl/django/db/models/functions/math.py
import math from django.db.models.expressions import Func from django.db.models.fields import FloatField, IntegerField from django.db.models.functions import Cast from django.db.models.functions.mixins import ( FixDecimalInputMixin, NumericOutputFieldMixin, ) from django.db.models.lookups import Transform class ...
PypiClean
/Flask-WaffleConf-0.3.1.tar.gz/Flask-WaffleConf-0.3.1/flask_waffleconf/core.py
from __future__ import absolute_import from . import util from . import watcher import threading import time class _WaffleState(object): """Store configstore for the app state. This object will update its application's configuration and if the ``WAFFLE_MULTIPROC`` setting is set to True, it will also n...
PypiClean
/My-Serializer-For-Json-And-XML-For_Lab3-0.1.0.tar.gz/My-Serializer-For-Json-And-XML-For_Lab3-0.1.0/Serializators/JSON.py
from Core.functions_for_serializer import Serialize from Core.functions_for_deserialize import Deserialize class JsonSerializer: data_serializer = Serialize() data_deserializer = Deserialize() def dumps(self, obj): packed = self.data_serializer.serialize(obj) if isinstance(packed, (list,...
PypiClean
/Nitrous-0.9.3-py3-none-any.whl/turbogears/i18n/data/ar_DZ.py
languages={'el': u'\u0627\u0644\u064a\u0648\u0646\u0627\u0646\u064a\u0629', 'gu': u'\u0627\u0644\u063a\u0648\u062c\u0627\u0631\u0627\u062a\u064a\u0629', 'en': u'\u0627\u0644\u0627\u0646\u062c\u0644\u064a\u0632\u064a\u0629', 'zh': u'\u0627\u0644\u0635\u064a\u0646\u064a\u0629', 'sw': u'\u0627\u0644\u0633\u0648\u0627\u06...
PypiClean
/Hikka_Pyro_New-2.0.103-py3-none-any.whl/hikkapyro/methods/advanced/save_file.py
import asyncio import functools import inspect import io import logging import math import os from hashlib import md5 from pathlib import PurePath from typing import Union, BinaryIO, Callable import hikkapyro from hikkapyro import StopTransmission from hikkapyro import raw from hikkapyro.session import Session log =...
PypiClean
/CMT-0.4.0-py3-none-any.whl/cmt/cmap/v0/entities.py
import struct from enum import Enum from typing import Tuple from cmt import utils from cmt.cmap.a_entity import AEntity class BlockType(Enum): NOTHING = 0 # white FINISH = 1 # red JUMP = 2 # green SPEED = 3 # yellow ICE = 4 # blue CHECKPOINT = 5 # purple class Block(AEntity): def...
PypiClean
/IFEM-to-VT-2.0.2.tar.gz/IFEM-to-VT-2.0.2/ifem_to_vt/fields.py
from abc import ABC, abstractmethod import numpy as np import treelog as log from typing import List, Optional, Iterable, Tuple from .typing import Array2D from .geometry import Patch from .util import ensure_ncomps # Field types # ---------------------------------------------------------------------- class Fie...
PypiClean
/CertGenerator-2.2.1.tar.gz/CertGenerator-2.2.1/certgenerator/cli.py
import click import json import callbacks import decorators from certificate import Certificate from tools import Tools, edit_config tools = Tools() @click.group(context_settings=dict(help_option_names=['-h', '--help'])) @click.option('-V', '--version', is_flag=True, callback=callbacks.print_version, e...
PypiClean
/DisplaceNet-0.1.tar.gz/DisplaceNet-0.1/engine/object_detection_branch/single_shot_detector/models/keras_ssd512.py
from __future__ import division import numpy as np from keras.models import Model from keras.layers import Input, Lambda, Activation, Conv2D, MaxPooling2D, ZeroPadding2D, Reshape, Concatenate from keras.regularizers import l2 import keras.backend as K from keras_layers.keras_layer_AnchorBoxes import AnchorBoxes from k...
PypiClean
/MaterialDjango-0.2.5.tar.gz/MaterialDjango-0.2.5/bower_components/prism/plugins/line-numbers/prism-line-numbers.js
(function () { if (typeof self === 'undefined' || !self.Prism || !self.document) { return; } /** * Plugin name which is used as a class name for <pre> which is activating the plugin * @type {String} */ var PLUGIN_NAME = 'line-numbers'; /** * Regular expression used for determining line breaks * @ty...
PypiClean
/Biosaur-2.0.3.tar.gz/Biosaur-2.0.3/README.md
<!-- PROJECT SHIELDS --> <!-- *** I'm using markdown "reference style" links for readability. *** Reference links are enclosed in brackets [ ] instead of parentheses ( ). *** See the bottom of this document for the declaration of the reference variables *** for contributors-url, forks-url, etc. This is an optional, co...
PypiClean
/Group%20Buy%20Organizer-1.0.3.tar.gz/Group Buy Organizer-1.0.3/groupbuyorganizer/events/utility_objects.py
from flask_login import current_user from groupbuyorganizer import database from groupbuyorganizer.admin.models import User from groupbuyorganizer.events.models import CaseBuy, CasePieceCommit, CaseSplit, Item from groupbuyorganizer.events.utility_functions import fetch_active_event_items, get_active_participants, \ ...
PypiClean
/ChronoNLP-3.0.2-py3-none-any.whl/Chrono/TimePhraseToChrono/TextYear.py
import re import string import Chrono.ChronoUtils.parse_text from nltk import WhitespaceTokenizer from Chrono import chronoEntities as chrono def buildTextYear(s, chrono_id, chrono_list): boo, val, idxstart, idxend = hasTextYear(s) if boo: ref_Sspan, ref_Espan = s.getSpan() abs_Sspan = ref_...
PypiClean
/MTPPy-1.1.1-py3-none-any.whl/mtppy/indicator_elements.py
import logging from mtppy.attribute import Attribute from mtppy.suc_data_assembly import SUCIndicatorElement class AnaView(SUCIndicatorElement): def __init__(self, tag_name: str, tag_description: str = '', v_scl_min: float = 0, v_scl_max: float = 100, v_unit: int = 0): """ Analog...
PypiClean
/Django-4.2.4.tar.gz/Django-4.2.4/django/contrib/gis/gdal/envelope.py
from ctypes import Structure, c_double from django.contrib.gis.gdal.error import GDALException # The OGR definition of an Envelope is a C structure containing four doubles. # See the 'ogr_core.h' source file for more information: # https://gdal.org/doxygen/ogr__core_8h_source.html class OGREnvelope(Structure): ...
PypiClean
/DAH-edinburgh-university-1.0.0.tar.gz/DAH-edinburgh-university-1.0.0/src/DAH/bigIO.1.py
# Copyright 2016-2019 Florian Mueller (contact@petrockblock.com) # # 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...
PypiClean
/Hyperstatic-0.2.0-cp38-cp38-win_amd64.whl/hyperstatic/core/fe_model/model.py
from typing import Dict import numpy as np from scipy.sparse import linalg as sl from hyperstatic.common.tolerance import Tolerance from hyperstatic.core.fe_model.node import Node from hyperstatic.core.fe_model.material import Material from hyperstatic.core.fe_model.material.isotropy import IsotropicMaterial from hyp...
PypiClean