id
stringlengths
1
265
text
stringlengths
6
5.19M
dataset_id
stringclasses
7 values
/Fanery-0.2.5.tar.gz/Fanery-0.2.5/fanery/_wsgi.py
__all__ = ['build_handler'] from mimetypes import guess_type, add_type add_type('application/json', '.json') from webob import Response from webob.dec import wsgify from webob.static import FileApp, DirectoryApp from webob.exc import HTTPBadRequest, HTTPNotFound, HTTPNotImplemented from _term import ( Hict, norm...
PypiClean
/AppPathy-0.0.1-py36-none-any.whl/apppath/__init__.py
import datetime import os from warnings import warn import pkg_resources from pip._internal.utils.misc import dist_is_editable from .app_path import AppPath __author__ = "cnheider" __version__ = "0.0.1" __doc__ = r""" Created on 27/04/2019 A class and a set of functions for providing for system-consensual path for...
PypiClean
/Diofant-0.14.0a2.tar.gz/Diofant-0.14.0a2/diofant/core/basic.py
from collections import defaultdict from collections.abc import Mapping from itertools import zip_longest from ..utilities import ordered from .cache import cacheit from .compatibility import iterable from .decorators import _sympifyit from .evaluate import evaluate from .sympify import SympifyError, sympify class ...
PypiClean
/MapProxy-1.16.0.tar.gz/MapProxy-1.16.0/doc/seed.rst
Seeding ======= Introduction ------------ The MapProxy creates all tiles on demand. To improve the performance for commonly requested areas it is possible to pre-generate these tiles. The ``mapproxy-seed`` script does this task. The tool can seed one or more polygon or BBOX areas for each cache. It can seed missing ...
PypiClean
/NAG-PyPOP-0.3.5.tar.gz/NAG-PyPOP-0.3.5/pypop/examples/AutoMetrics.ipynb
``` from ipywidgets import Tab from pypop.bokeh_widget import BokehWidget from pypop.notebook_interface import AutoMetricsGUI from pypop.metrics import Judit_Hybrid_Metrics, MPI_OpenMP_Metrics from time import sleep filelist = [ "/home/phil/POP/perf_asses/344_gloria/omp_mpi/strong_scaling_8x_instr_r8_c6/1_node/glo...
PypiClean
/Hector_Observations_Pipeline-1.4-py3-none-any.whl/hop/hexabundle_allocation/AyoanPC_main_hexabundleAllocation.py
if __name__ == '__main__': #!/usr/bin/env python3 import matplotlib.pyplot as plt import pandas as pd import numpy as np import csv import time start_time = time.time() from hop.hexabundle_allocation.problem_operations import extract_data, file_arranging, hexabundle, offsets, plots, \ ...
PypiClean
/Liblabtest-1.0.6-py3-none-any.whl/liblabtest/models/ArtifactResponse.py
from __future__ import annotations from .base import BaseModel from enum import Enum from .DocResponse import DocResponse from .SdkResponse import SdkResponse class Status(Enum): IN_PROGRESS = "IN_PROGRESS" FAIL = "FAIL" SUCCESS = "SUCCESS" def list(): return list(map(lambda x: x.value, Stat...
PypiClean
/DeepGMAP-0.2.0.tar.gz/DeepGMAP-0.2.0/deepgmap/misc/bed_file_compare.py
import sys import subprocess as sp import networkx as nx import os from itertools import combinations import glob file_list=glob.glob(sys.argv[1]) file_combination=[] node_list={} peak_counts={} path_sep=os.path.sep G=nx.MultiDiGraph() G.peak_count={} peak_count_dict={} for i in file_list: with open(i, 'r') as j:...
PypiClean
/ClueDojo-1.4.3-1.tar.gz/ClueDojo-1.4.3-1/src/cluedojo/static/dijit/ColorPalette.js
if(!dojo._hasResource["dijit.ColorPalette"]){ dojo._hasResource["dijit.ColorPalette"]=true; dojo.provide("dijit.ColorPalette"); dojo.require("dijit._Widget"); dojo.require("dijit._Templated"); dojo.require("dojo.colors"); dojo.require("dojo.i18n"); dojo.requireLocalization("dojo","colors",null,"ROOT,ar,ca,cs,da,de,el,e...
PypiClean
/DKUtils-2.11.6.tar.gz/DKUtils-2.11.6/dkutils/validation.py
import inspect import json import logging import os import pathlib from typing import Dict, Union from dkutils.constants import CHANGE_ME GLOBALS_CONFIG_PATH: pathlib.Path = pathlib.Path(os.getcwd()) / 'globals_config.json' ConfigDict = Dict[str, Union[str, int]] def get_globals_config(global_var_names, cur_globals...
PypiClean
/CsuPTMD-1.0.12.tar.gz/CsuPTMD-1.0.12/PTMD/maskrcnn_benchmark/apex/apex/amp/frontend.py
import torch from ._initialize import _initialize from ._amp_state import _amp_state, warn_or_err, maybe_print from collections import OrderedDict class Properties(object): """ This class has two purposes: to establish a set of default properties, and to route setting of these attributes through __setattr...
PypiClean
/DLMS_SPODES-0.40.11.tar.gz/DLMS_SPODES-0.40.11/src/DLMS_SPODES/cosem_interface_classes/script_table.py
from .__class_init__ import * from ..types import choices class ServiceId(cdt.Enum, elements=(1, 2)): """defines which action to be applied to the referenced object.""" class ActionSpecification(cdt.Structure): """ Specifies the different scripts, i.e. the lists of actions. The first attribute (logical_name...
PypiClean
/medl-0.1.10.tar.gz/medl-0.1.10/medl/main/classes/music_toolbox.py
from pathlib import Path from typing import List, Optional from medl.common import BaseLogger, SongData, BaseInitializer from medl.main.interfaces import ( BaseParallelizer, BaseMetadataFetcher, BaseDownloadUrlFinder, BaseLyricsFetcher, BaseMetadataEmbedder, BaseTrackConverter, BaseTrackDow...
PypiClean
/Crypto-Factory-0.0.9.tar.gz/Crypto-Factory-0.0.9/crypto_factory/interface.py
# TODO: Check Crypto service 'features' to ensure method is implemented __all__ = [ 'CryptoFactory', ] from .factory import CryptoServicesManager from .utils import CryptoUtils from .exceptions import CryptoFactoryError from .templates import CryptoBuilder, CryptoService class CryptoFactory: """ Clien...
PypiClean
/Mopidy-radio-de-0.2.0.tar.gz/Mopidy-radio-de-0.2.0/README.rst
*************** Mopidy-radio-de *************** .. image:: https://pypip.in/v/Mopidy-radio-de/badge.png :target: https://pypi.python.org/pypi/Mopidy-radio-de/ :alt: Latest PyPI version .. image:: https://pypip.in/d/Mopidy-radio-de/badge.png :target: https://pypi.python.org/pypi/Mopidy-radio-de/ :alt: ...
PypiClean
/Dabo-0.9.16.tar.gz/Dabo-0.9.16/dabo/ui/uiwx/uiApp.py
import sys import os import time import logging import wx import dabo import dabo.ui as ui import dabo.dColors as dColors import dabo.dEvents as dEvents import dabo.lib.utils as utils from dabo.dObject import dObject from dabo.dLocalize import _, n_ from dabo.lib.utils import cleanMenuCaption import dabo.dConstants as ...
PypiClean
/CCAgT_utils-0.2.4a0.tar.gz/CCAgT_utils-0.2.4a0/CCAgT_utils/converters/utils.py
from __future__ import annotations import json import os from datetime import datetime from typing import Any import pandas as pd from CCAgT_utils import categories from CCAgT_utils.converters.CCAgT import CCAgT from CCAgT_utils.converters.CCAgT import read_parquet from CCAgT_utils.converters.LabelBox import LabelBo...
PypiClean
/AmeriResumeParser-1.0.0.tar.gz/AmeriResumeParser-1.0.0/pyresparser/custom_t.py
import os import io import spacy import docx2txt import constants as cs from pdfminer.converter import TextConverter from pdfminer.pdfinterp import PDFPageInterpreter from pdfminer.pdfinterp import PDFResourceManager from pdfminer.layout import LAParams from pdfminer.pdfpage import PDFPage from pdfminer.pdfparser impor...
PypiClean
/Hikka_TL-1.24.14-py3-none-any.whl/telethon/client/bots.py
import typing from .. import hints from ..tl import types, functions, custom if typing.TYPE_CHECKING: from .telegramclient import TelegramClient class BotMethods: async def inline_query( self: "TelegramClient", bot: "hints.EntityLike", query: str, *, entity: "hints.En...
PypiClean
/FFTA-0.3.5.1-py3-none-any.whl/ffta/analysis/svd_utils.py
from __future__ import division, print_function, absolute_import import time from multiprocessing import cpu_count import h5py import numpy as np from matplotlib import pyplot as plt from pyUSID import Dimension from pyUSID import USIDataset from pyUSID.io.anc_build_utils import calc_chunks from pyUSID.io.hdf_utils i...
PypiClean
/Flask-Storm-1.0.0.tar.gz/Flask-Storm-1.0.0/flask_storm/utils.py
import os import sys from flask import current_app from functools import partial from werkzeug.local import LocalProxy def find_flask_storm(app): """ Find and return :py:class:`FlaskStorm` instance for the given application. :param app: Application to look for FlaskStorm instance in. :return: FlaskS...
PypiClean
/Notable-0.4.2.tar.gz/Notable-0.4.2/notable/static/lib/ace/src-min/ext-whitespace.js
define("ace/ext/whitespace",["require","exports","module","ace/lib/lang"],function(e,t,n){var r=e("../lib/lang");t.$detectIndentation=function(e,t){function h(e){var t=0;for(var r=e;r<n.length;r+=e)t+=n[r]||0;return t}var n=[],r=[],i=0,s=0,o=Math.min(e.length,1e3);for(var u=0;u<o;u++){var a=e[u];if(!/^\s*[^*+\-\s]/.tes...
PypiClean
/Flask_AdminLTE3-1.0.9-py3-none-any.whl/flask_adminlte3/static/plugins/jquery-mapael/maps/world_countries_miller.js
(function (factory) { if (typeof exports === 'object') { // CommonJS module.exports = factory(require('jquery'), require('jquery-mapael')); } else if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. define(['jquery', 'mapael'], factory); ...
PypiClean
/observations-0.1.4.tar.gz/observations-0.1.4/observations/r/nsw74psid1.py
from __future__ import absolute_import from __future__ import division from __future__ import print_function import csv import numpy as np import os import sys from observations.util import maybe_download_and_extract def nsw74psid1(path): """Labour Training Evaluation Data This data frame contains 2675 rows an...
PypiClean
/KeepInterfaceSimple2Plugin-2.5.tar.gz/KeepInterfaceSimple2Plugin-2.5/kis2/htdocs/bluebird.min.js
* bluebird build version 3.4.5 * Features enabled: core, race, call_get, generators, map, nodeify, promisify, props, reduce, settle, some, using, timers, filter, any, each */ !function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([]...
PypiClean
/MindsDB-23.8.3.0.tar.gz/MindsDB-23.8.3.0/mindsdb/integrations/handlers/hackernews_handler/hn_handler.py
import requests import pandas as pd from mindsdb.utilities import log from mindsdb.utilities.config import Config from mindsdb_sql.parser import ast from mindsdb.integrations.libs.api_handler import APIHandler, APITable from mindsdb.integrations.libs.response import HandlerStatusResponse as StatusResponse, HandlerRespo...
PypiClean
/Graph_RL-0.1.2.tar.gz/Graph_RL-0.1.2/graph_rl/algorithms/hac.py
from copy import deepcopy import numpy as np import torch from ..data import FlatTransition from . import OffPolicyAlgorithm from .goal_sampling_strategy import GoalSamplingStrategy class HAC(OffPolicyAlgorithm): """Hierarchical Actor-Critic.""" supported_goal_sampling_strategies = {"future", "episode", "fi...
PypiClean
/MarkdownWriter-1.1.tar.gz/MarkdownWriter-1.1/pythonToMarkdown/markdownwriter/MarkdownWriter.py
try: from MarkdownTable import MarkdownTable except ImportError: # Python 3 from .MarkdownTable import MarkdownTable class MarkdownWriter(): def __init__( self, stream="" ): self.stream = stream self.textStyles = ['normal','italic','bold'] def getStream( self ): return self.stream; def getStylizedT...
PypiClean
/ApiTestEz-1.0.30.tar.gz/ApiTestEz-1.0.30/api_test_ez/ez/http/http.py
from enum import Enum import requests import urllib3 urllib3.disable_warnings() class Method: GET = 'GET' POST = 'POST' HEAD = 'HEAD' OPTIONS = 'OPTIONS' DELETE = 'DELETE' PUT = 'PUT' PATCH = 'PATCH' class Http: def __init__(self, headers=None, timeout=3, allow_redirects=False, ver...
PypiClean
/OTLModel/Classes/Seinbrug.py
from OTLMOW.OTLModel.BaseClasses.OTLAttribuut import OTLAttribuut from OTLMOW.OTLModel.Classes.VRIDraagconstructie import VRIDraagconstructie from OTLMOW.OTLModel.Datatypes.BooleanField import BooleanField from OTLMOW.OTLModel.Datatypes.DtcDocument import DtcDocument from OTLMOW.OTLModel.Datatypes.FloatOrDecimalField i...
PypiClean
/BlueWhale3_Network-1.4.2-cp38-cp38-macosx_10_9_x86_64.whl/orangecontrib/network/network/layout/__init__.py
import time import numpy as np from ._fr_layout import fruchterman_reingold_step TEST_ITERATIONS = 10 def fruchterman_reingold(pos, edges, weighted: bool, allowed_time, k, init_temp=0.05, sa...
PypiClean
/Gpxity-1.7.2-py3-none-any.whl/gpxity/backends/mailer.py
# Copyright (c) 2019 Wolfgang Rohdewald <wolfgang@rohdewald.de> # See LICENSE for details. """This implements :class:`gpxity.mailer.Mailer`: a mailing backend. It can only write.""" # pylint: disable=protected-access import datetime from threading import Timer import smtplib import socket import logging from email....
PypiClean
/EnergyCapSdk-8.2304.4743.tar.gz/EnergyCapSdk-8.2304.4743/energycap/sdk/models/bill_response_py3.py
from msrest.serialization import Model class BillResponse(Model): """BillResponse. :param bill_id: The bill identifier :type bill_id: int :param batch: :type batch: ~energycap.sdk.models.BatchChild :param account: :type account: ~energycap.sdk.models.AccountChild :param begin_date: T...
PypiClean
/Dero-0.15.0-py3-none-any.whl/dero/latex/table/models/mixins/addvalues/row.py
from typing import Iterable class RowAddMixin: def __add__(self, other): return RowAddMixin.add(self, other) def __radd__(self, other): return RowAddMixin.radd(self, other) def _add_class(self, other): from dero.latex.table.models.table.row import Row # keep same class if...
PypiClean
/MaterialDjango-0.2.5.tar.gz/MaterialDjango-0.2.5/bower_components/prism/plugins/autoloader/prism-autoloader.js
(function () { if (typeof self === 'undefined' || !self.Prism || !self.document || !document.createElement) { return; } // The dependencies map is built automatically with gulp var lang_dependencies = /*languages_placeholder[*/{"javascript":"clike","actionscript":"javascript","arduino":"cpp","aspnet":"markup","b...
PypiClean
/Ibid-0.1.1.tar.gz/Ibid-0.1.1/ibid/auth.py
from time import time from random import choice import string import logging import re from sqlalchemy import or_ import ibid from ibid.compat import hashlib from ibid.db.models import Credential, Permission chars = string.letters + string.digits permission_re = re.compile('^([+-]?)(\S+)$') def hash(password, salt...
PypiClean
/Newgram-0.0.5.tar.gz/Newgram-0.0.5/README.md
<p align="center"> <a href="https://github.com/jokokendi/newgram"> <img src="https://docs.pyrogram.org/_static/pyrogram.png" alt="Pyrogram" width="128"> </a> <br> <b>Telegram MTProto API Framework for Python</b> <br> <a href="https://pyrogram.org"> Homepage </a> • <a ...
PypiClean
/FEV_KEGG-1.1.4.tar.gz/FEV_KEGG-1.1.4/FEV_KEGG/Experiments/40.py
from FEV_KEGG.Evolution.Clade import Clade, CladePair from FEV_KEGG.KEGG.File import cache from FEV_KEGG.Graph.Elements import EcNumber from FEV_KEGG.Drawing import Export @cache(folder_path = 'experiments/40/', file_name = 'archaea_clade') def getArchaeaClade(): clade = Clade('/Archaea') # pre-fetch collectiv...
PypiClean
/BlockChainExplorer-0.0.3.tar.gz/BlockChainExplorer-0.0.3/README.md
This package is a simple library to access the blockchain scanners for Ethereum, Binance Smart Chain, Polygon and Avalanche. ### getABI(self, address: str) Takes contract address as a string and returns the json of the ABI ### getBalance(self, address: str) Takes a single address as a string or a list of upto 20 a...
PypiClean
/FairDynamicRec-0.0.123-py3-none-any.whl/fair_dynamic_rec/core/rankers/ea_hybrid_lsb_linucb_itemweighting.py
from .ea_linear_submodular_bandit import EALSB import numpy as np import math class EAHybridLSBLinUCBItemWeight(EALSB): def __init__(self, config, dataObj, parameters=None): """ The first part of features are for the diversity and the second part is for relevance. :param args: :para...
PypiClean
/BFG-Y2H-0.1.2.tar.gz/BFG-Y2H-0.1.2/bfg_analysis/create_fasta.py
# Author: Roujia Li # email: Roujia.li@mail.utoronto.ca # Making fasta reference for different input reference sequences import pandas as pd import os #from legacy import # Padding sequences used # Padding sequences are the same for human and yeast # DB down tags DB_Dn1 = "TCGATAGGTGCGTGTGAAGG" DB_Dn2 = "CCTCAGTCGCT...
PypiClean
/LFake-18.9.0.tar.gz/LFake-18.9.0/lfake/providers/person/__init__.py
from faker.utils.datasets import add_ordereddicts from .. import BaseProvider, ElementsType localized = True class Provider(BaseProvider): formats: ElementsType[str] = ["{{first_name}} {{last_name}}"] first_names: ElementsType[str] = ["John", "Jane"] last_names: ElementsType[str] = ["Doe"] # http...
PypiClean
/FreeClimb-4.5.0-py3-none-any.whl/freeclimb/model/send_digits.py
import re # noqa: F401 import sys # noqa: F401 from freeclimb.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, vali...
PypiClean
/ConGen-0.0.5.tar.gz/ConGen-0.0.5/src/python-congen-git/src/congen/layers/Parameter.py
import sys class TypeDefaults(dict): def __init__(self, default, min, max): super().__init__(default = default, min = min, max = max) class Parameter(dict): parameterDefaults = { str: TypeDefaults("N/A", None, None), int: TypeDefaults(0, -(sys.maxsize-1), sys.maxsize), float:...
PypiClean
/MUSE_OS-1.0.2.tar.gz/MUSE_OS-1.0.2/src/muse/outputs/mca.py
from operator import attrgetter from pathlib import Path from typing import ( Any, Callable, Hashable, Iterable, List, Mapping, MutableMapping, Optional, Sequence, Text, Union, cast, ) import numpy as np import pandas as pd import xarray as xr from mypy_extensions import...
PypiClean
/NuGridpy-0.7.5.tar.gz/NuGridpy-0.7.5/nugridpy/ascii_table.py
from __future__ import print_function from __future__ import absolute_import from builtins import input from builtins import str from builtins import range from numpy import * from .data_plot import * import matplotlib.pylab as pyl import matplotlib.pyplot as pl import os class ascii_table(DataPlot): ''' Data...
PypiClean
/ClueDojo-1.4.3-1.tar.gz/ClueDojo-1.4.3-1/src/cluedojo/static/dojo/fx.js
if(!dojo._hasResource["dojo.fx"]){ dojo._hasResource["dojo.fx"]=true; dojo.provide("dojo.fx"); dojo.require("dojo.fx.Toggler"); (function(){ var d=dojo,_1={_fire:function(_2,_3){ if(this[_2]){ this[_2].apply(this,_3||[]); } return this; }}; var _4=function(_5){ this._index=-1; this._animations=_5||[]; this._current=thi...
PypiClean
/Electrum-CHI-3.3.8.tar.gz/Electrum-CHI-3.3.8/packages/setuptools/command/setopt.py
from distutils.util import convert_path from distutils import log from distutils.errors import DistutilsOptionError import distutils import os from setuptools.extern.six.moves import configparser from setuptools import Command __all__ = ['config_file', 'edit_config', 'option_base', 'setopt'] def config_file(kind="...
PypiClean
/FrAG-1.1.0.tar.gz/FrAG-1.1.0/frag_pele/AdaptivePELE_repo/AdaptivePELE/freeEnergies/cluster.py
from __future__ import absolute_import, division, print_function, unicode_literals import os import numpy as np import glob import pyemma.coordinates as coor from pyemma.coordinates.clustering import AssignCenters import scipy class Cluster: def __init__(self, numClusters, trajectoryFolder, trajectoryBasename, st...
PypiClean
/DTMC/spatialModel/PeriodicMovement/periodicSEIRSD.py
import numpy as np import pandas as pd from matplotlib import pyplot as plt from math import cos, sin, pi from ..randomMovement.randMoveSEIRSD import RandMoveSEIRSD from Eir.utility import Person2 as Person from Eir.utility import randEvent, dist from Eir.DTMC.spatialModel.simul_details import Simul_Details class Pe...
PypiClean
/Flask_Multipass-0.4.9-py3-none-any.whl/flask_multipass/providers/sqlalchemy.py
from flask_wtf import FlaskForm from sqlalchemy import inspect from wtforms.fields import PasswordField, StringField from wtforms.validators import DataRequired from flask_multipass import AuthInfo, AuthProvider, IdentityInfo, IdentityProvider, InvalidCredentials, NoSuchUser class LoginForm(FlaskForm): identifi...
PypiClean
/DLMS_SPODES-0.40.11.tar.gz/DLMS_SPODES-0.40.11/src/DLMS_SPODES/cosem_interface_classes/limiter.py
from .. import cosem_interface_classes from .. import ITE_exceptions as exc from .__class_init__ import * from ..types import choices from ..types.implementations import structs, long_unsigneds, double_long_usingneds threshold_scaler_unit = cdt.ScalUnitType(b'\x02\x02\x0f\x00\x16\x07') class ValueDefinitionType(cdt.S...
PypiClean
/MaterialDjango-0.2.5.tar.gz/MaterialDjango-0.2.5/bower_components/intl-messageformat/src/core.js
import {extend, hop} from './utils'; import {defineProperty, objCreate} from './es5'; import Compiler from './compiler'; import parser from 'intl-messageformat-parser'; export default MessageFormat; // -- MessageFormat -------------------------------------------------------- function MessageFormat(message, locales,...
PypiClean
/Misago-0.36.1.tar.gz/Misago-0.36.1/misago/users/models/user.py
from hashlib import md5 from typing import Optional, Union from django.contrib.auth.models import AbstractBaseUser from django.contrib.auth.models import AnonymousUser as DjangoAnonymousUser from django.contrib.auth.models import PermissionsMixin from django.contrib.auth.models import UserManager as BaseUserManager fr...
PypiClean
/Flask-Security-Utils-1.0.2.tar.gz/Flask-Security-Utils-1.0.2/security_utils/DinamicBlockedIPList.py
from datetime import datetime as dt import logging import csv traza = logging.getLogger(__name__) class DinamicBlockedIPList(): """ This class allows to manage all blocked IPs from one single point. """ __IPBlocked = [] __instance = None __ip_blocked_file = None def __ne...
PypiClean
/ConSSL-0.0.1-py3-none-any.whl/CSSL/models/self_supervised/simclr/transforms.py
import numpy as np from CSSL.utils import _OPENCV_AVAILABLE, _TORCHVISION_AVAILABLE from CSSL.utils.warnings import warn_missing_pkg if _TORCHVISION_AVAILABLE: from torchvision import transforms as transforms else: # pragma: no cover warn_missing_pkg('torchvision') if _OPENCV_AVAILABLE: import cv2 else:...
PypiClean
/JoshMokuro-0.2.tar.gz/JoshMokuro-0.2/mokuro/assets/panzoom.min.js
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.panzoom=f()}})...
PypiClean
/Nitrous-0.9.3-py3-none-any.whl/turbogears/i18n/data/en_PH.py
languages={'gv': 'Manx', 'gu': 'Gujarati', 'rom': 'Romany', 'alg': 'Algonquian Languages', 'ale': 'Aleut', 'sco': 'Scots', 'mni': 'Manipuri', 'gd': 'Scottish Gaelic', 'ga': 'Irish', 'mno': 'Manobo Languages', 'osa': 'Osage', 'gn': 'Guarani', 'gl': 'Gallegan', 'mwr': 'Marwari', 'ty': 'Tahitian', 'tw': 'Twi', 'tt': 'Tat...
PypiClean
/ModelSEEDpy-0.3.0.tar.gz/ModelSEEDpy-0.3.0/modelseedpy/fbapkg/basefbapkg.py
from __future__ import absolute_import import logging import re from optlang.symbolics import Zero, add import json as _json from cobra.core import Gene, Metabolite, Model, Reaction from modelseedpy.fbapkg.mspackagemanager import MSPackageManager from modelseedpy.core.msmodelutl import MSModelUtil # Adding a few ex...
PypiClean
/InowasFlopyAdapter-1.5.0.tar.gz/InowasFlopyAdapter-1.5.0/FlopyAdapter/Read/InowasFlopyReadAdapter.py
from FlopyAdapter.Read.ReadBudget import ReadBudget from FlopyAdapter.Read.ReadConcentration import ReadConcentration from FlopyAdapter.Read.ReadDrawdown import ReadDrawdown from FlopyAdapter.Read.ReadHead import ReadHead from FlopyAdapter.Read.ReadFile import ReadFile class InowasFlopyReadAdapter: """The Flopy C...
PypiClean
/KubunConfector-0.1.3.post4.tar.gz/KubunConfector-0.1.3.post4/README.md
<h2> <p align="center"><img src="./assets/logo.png" width="auto" height="80"></p> <p align="center">Kubun Data-Preparation Utility</p> </h2> <br/> KubunConfector is a utility that aids users in preparing datasets for use with [Kubun](https://kubun.io).<br/> This tool is intended for internal use and is very much in ...
PypiClean
/FAPSDemonstratorAPI-0.0.7.tar.gz/FAPSDemonstratorAPI-0.0.7/example/demonstrator_optimizer.py
import math import numpy as np import random from deap import algorithms from deap import base from deap import creator from deap import tools class DemonstratorOptimizer: def __init__(self): self.stats = None self.toolbox = None self.weigth_matrix = [2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2.5, 2...
PypiClean
/HelpPython-0.0.0.0.1.tar.gz/HelpPython-0.0.0.0.1/PYR.py
import os import tqdm import requests import traceback import random import sys all_var = {"Size":[],"Math":["pi_string","pi","tau"],"Random":[]} all_func = [{"Size":["find_all_size","all_file_size","__get_all_size","__size_small"]},{"Math":["evolution","power","cipher"]},{"Random":["random_number","random_choice","r...
PypiClean
/Adeepspeed-0.9.2.tar.gz/Adeepspeed-0.9.2/deepspeed/accelerator/real_accelerator.py
# DeepSpeed Team try: from accelerator.abstract_accelerator import DeepSpeedAccelerator as dsa1 except ImportError as e: dsa1 = None try: from deepspeed.accelerator.abstract_accelerator import DeepSpeedAccelerator as dsa2 except ImportError as e: dsa2 = None ds_accelerator = None def _validate_acce...
PypiClean
/NEMO_CE-1.6.12-py3-none-any.whl/NEMO/models.py
from __future__ import annotations import datetime import os import sys from copy import deepcopy from datetime import timedelta from enum import Enum from html import escape from json import loads from logging import getLogger from re import match from typing import Iterable, List, Optional, Set, Union from django.c...
PypiClean
/Electrum-CHI-3.3.8.tar.gz/Electrum-CHI-3.3.8/packages/pkg_resources/_vendor/packaging/requirements.py
from __future__ import absolute_import, division, print_function import string import re from pkg_resources.extern.pyparsing import stringStart, stringEnd, originalTextFor, ParseException from pkg_resources.extern.pyparsing import ZeroOrMore, Word, Optional, Regex, Combine from pkg_resources.extern.pyparsing import L...
PypiClean
/Cuckoo-2.0.7a1.tar.gz/Cuckoo-2.0.7a1/cuckoo/data/analyzer/windows/lib/core/privileges.py
from ctypes import wintypes, POINTER from lib.common.defines import ADVAPI32, KERNEL32, SE_PRIVILEGE_ENABLED from lib.common.defines import LUID, TOKEN_PRIVILEGES from lib.common.defines import TOKEN_ALL_ACCESS, LUID_AND_ATTRIBUTES def grant_privilege(privilege): """Grant debug privileges. @param pid: PID. ...
PypiClean
/MarkDo-0.3.0.tar.gz/MarkDo-0.3.0/markdo/static/bower/codemirror/mode/less/less.js
CodeMirror.defineMode("less", function(config) { var indentUnit = config.indentUnit, type; function ret(style, tp) {type = tp; return style;} //html tags var tags = "a abbr acronym address applet area article aside audio b base basefont bdi bdo big blockquote body br button canvas caption cite code col colgroup...
PypiClean
/Django_patch-2.2.19-py3-none-any.whl/django/contrib/gis/geos/mutable_list.py
from functools import total_ordering @total_ordering class ListMixin: """ A base class which provides complete list interface. Derived classes must call ListMixin's __init__() function and implement the following: function _get_single_external(self, i): Return single item with index i for...
PypiClean
/Gnosis_Utils-1.2.2.tar.gz/Gnosis_Utils-1.2.2/gnosis/xml/indexer.py
__shell_usage__ = """ Shell Usage: [python] xml_indexer.py [options] [xml_file [xml_file2 [...]]] -h, /h, -?, /?, ?, --help: Show this help screen """ __version__ = "Mon 02-24-2003" __author__=["David Mertz (mertz@gnosis.cx)",] __thanks_to__=[] __copyright__=""" This file is released to the public domain. ...
PypiClean
/NlvWxPython-4.2.0-cp37-cp37m-win_amd64.whl/wx/py/introspect.py
__author__ = "Patrick K. O'Brien <pobrien@orbtech.com>" import sys import inspect import tokenize import types import wx from six import BytesIO, PY3, string_types def getAutoCompleteList(command='', locals=None, includeMagic=1, includeSingle=1, includeDouble=1): """Return list of auto-com...
PypiClean
/HTTPolice-0.9.0.tar.gz/HTTPolice-0.9.0/doc/api.rst
Python API ========== HTTPolice can be used as a Python library: for example, to analyze requests or responses as part of a test suite. It is **not intended** to be used inside live production processes. Example ------- .. literalinclude:: api_example.py API reference ------------- .. autoclass:: httpolice.Request...
PypiClean
/CloudFerry-1.55.2.tar.gz/CloudFerry-1.55.2/cloudferry/model/compute.py
from cloudferry import model from cloudferry.model import identity from cloudferry.model import image as image_model from cloudferry.model import storage @model.type_alias('flavors') class Flavor(model.Model): object_id = model.PrimaryKey() flavor_id = model.String(required=True) is_deleted = model.Boolea...
PypiClean
/DevContest-0.4.tar.gz/DevContest-0.4/devcontest/public/jsmath/plugins/tex2math.js
if (!jsMath.tex2math) {jsMath.tex2math = {}} // make sure jsMath.tex2math is defined if (!jsMath.tex2math.loaded) { // only load it once if (!jsMath.Controls) {jsMath.Controls = {}} if (!jsMath.Controls.cookie) {jsMath.Controls.cookie = {}} jsMath.Add(jsMath.tex2math,{ loaded: 1, window: window...
PypiClean
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojo/data/ItemFileReadStore.js
define("dojo/data/ItemFileReadStore",["../_base/kernel","../_base/lang","../_base/declare","../_base/array","../_base/xhr","../Evented","../_base/window","./util/filter","./util/simpleFetch","../date/stamp"],function(_1,_2,_3,_4,_5,_6,_7,_8,_9,_a){ var _b=_3("dojo.data.ItemFileReadStore",[_6],{constructor:function(_c){...
PypiClean
/NBA_AllTimePTS_API-0.0.6.tar.gz/NBA_AllTimePTS_API-0.0.6/NBA_AllTimePTS_API/NBA_AllTime_API.py
import pandas as pd import seaborn as sns from selenium import webdriver import time class NBA_AllTime: def __init__(self, driver, n_pages): self.driver=driver self.n_pages=n_pages url = 'https://www.nba.com/stats/alltime-leaders/?SeasonType=Regular%20Season' self.driver.get(url) ...
PypiClean
/GRADitude-0.1.3-py3-none-any.whl/graditudelib/silhouette_prova.py
from __future__ import print_function from sklearn.datasets import make_blobs from sklearn.cluster import KMeans from sklearn.metrics import silhouette_samples, silhouette_score import matplotlib.pyplot as plt import matplotlib.cm as cm import numpy as np import pandas as pd print(__doc__) def main(): table = ...
PypiClean
/DACBench-0.2.0.tar.gz/DACBench-0.2.0/dacbench/benchmarks/sigmoid_benchmark.py
import csv import os import ConfigSpace as CS import ConfigSpace.hyperparameters as CSH import numpy as np from dacbench.abstract_benchmark import AbstractBenchmark, objdict from dacbench.envs import ContinuousSigmoidEnv, ContinuousStateSigmoidEnv, SigmoidEnv ACTION_VALUES = (5, 10) DEFAULT_CFG_SPACE = CS.Configura...
PypiClean
/IRonPyB-0.2.1.tar.gz/IRonPyB-0.2.1/Phi/finished_methods.py
import ctypes from itertools import chain import sys import os import numpy as np import pandas as pd from numpy import double from numpy.ctypeslib import ndpointer from sklearn.model_selection import train_test_split import matplotlib.pyplot as plt from rpy2.robjects.packages import importr from rpy2 import robjects a...
PypiClean
/Equity_Analyst-1.0.2-py3-none-any.whl/equityanalyst/__main__.py
import pandas_datareader as web import matplotlib.pyplot as plt def get_stock_data(company): start = input("\nEnter the start date in the dd-mm-yy format\t") end = input("\nEnter the end date in the dd-mm-yy format\t") data = web.DataReader(company, 'yahoo', start, end) return data def plot_stock_...
PypiClean
/InvokeAI-3.1.0-py3-none-any.whl/invokeai/app/services/invocation_stats.py
import psutil import time from abc import ABC, abstractmethod from contextlib import AbstractContextManager from dataclasses import dataclass, field from typing import Dict import torch import invokeai.backend.util.logging as logger from ..invocations.baseinvocation import BaseInvocation from .graph import GraphExec...
PypiClean
/fastmbar-1.4.1.tar.gz/fastmbar-1.4.1/docs/build/_static/underscore-1.13.1.js
(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : typeof define === 'function' && define.amd ? define('underscore', factory) : (global = typeof globalThis !== 'undefined' ? globalThis : global || self, (function () { var current = global....
PypiClean
/Flask-Ask-alphavideo-2.1.0.tar.gz/Flask-Ask-alphavideo-2.1.0/docs/user_contributions.rst
User Contributions ================== Have an article or video to submit? Please send it to john@johnwheeler.org `Flask-Ask: A New Python Framework for Rapid Alexa Skills Kit Development <https://developer.amazon.com/public/community/post/Tx14R0IYYGH3SKT/Flask-Ask-A-New-Python-Framework-for-Rapid-Alexa-Skills-Kit-Dev...
PypiClean
/CloudFerry-1.55.2.tar.gz/CloudFerry-1.55.2/cloudferry/condensation/algorithms.py
def accurate(flavors_list, max_ram, max_core): """ This is implementation of bounded multiobjective multidimension knapsack solution with dynamic programming Good place to start with one dimensional problem: http://rosettacode.org/wiki/Knapsack_problem/Bounded#Python """ # allocate hu...
PypiClean
/Flask-Select2-0.1.tar.gz/Flask-Select2-0.1/flask_select2/static/js/form.js
(function() { var AdminForm = function() { // Field converters var fieldConverters = []; /** * Process AJAX fk-widget */ function processAjaxWidget($el, name) { var multiple = $el.attr('data-multiple') == '1'; var opts = { width: 'resolve', m...
PypiClean
/Bempp-cl-0.3.1.tar.gz/Bempp-cl-0.3.1/bempp/api/external/viewers.py
import numpy as _np def visualize(obj, mode=None, transformation=None): """ Create a visualisation. Attributes ---------- obj : Grid or GridFunction object A grid or grid function to plot mode : string One of 'element' or 'node'. If 'element' is chosen the color is det...
PypiClean
/CocoRPy27-1.4.1.zip/CocoRPy27-1.4.1/testSuite/TestOpts1_parserBaseline.py
import sys from Scanner import Token from Scanner import Scanner from Scanner import Position class ErrorRec( object ): def __init__( self, l, c, s ): self.line = l self.col = c self.num = 0 self.str = s class Errors( object ): errMsgFormat = "file %(file)s : (%(line)d, %(c...
PypiClean
/Dnpr-0.1.0-py3-none-any.whl/backup/clsDnpr_M.py
import re import json import pandas as p import numpy as np class clsDnpr: def __init__(self): pass def distinct(self, inputJson): try: res_json = '' dfSrc = p.DataFrame() # Normalizing JSON dfSrc = p.io.json.json_normalize(inputJson) ...
PypiClean
/MathCake-0.0.1a3.tar.gz/MathCake-0.0.1a3/cake/core/number/number.py
from math import ceil from ..unknown import Unknown import typing from .ops import evaluate class Number(object): r""" Base class for creating digits, unknowns etc. If creating an unknown, its best to use the `Unknown` class instead of this . Mainly due to the handling of an unknown is implemented i...
PypiClean
/BlueWhale3-3.31.3.tar.gz/BlueWhale3-3.31.3/Orange/widgets/unsupervised/owdistancetransformation.py
import numpy as np from Orange.util import scale from Orange.misc import DistMatrix from Orange.widgets import widget, gui, settings from Orange.widgets.utils.widgetpreview import WidgetPreview from Orange.widgets.widget import Input, Output from Orange.i18n_config import * def __(key): return i18n.t("widget.uns...
PypiClean
/Explainer/dashboard_components/decisiontree_components.py
__all__ = [ 'DecisionTreesComponent', 'DecisionPathTableComponent', 'DecisionPathGraphComponent', ] import dash import dash_core_components as dcc import dash_bootstrap_components as dbc import dash_html_components as html import dash_table from dash.dependencies import Input, Output, State from dash.exce...
PypiClean
/InvokeAI-3.1.0-py3-none-any.whl/invokeai/app/services/config/base.py
from __future__ import annotations import argparse import os import pydoc import sys from argparse import ArgumentParser from omegaconf import OmegaConf, DictConfig, ListConfig from pathlib import Path from pydantic import BaseSettings from typing import ClassVar, Dict, List, Literal, Union, get_origin, get_type_hints,...
PypiClean
/NativDebugging-35.tar.gz/NativDebugging-35/src/MemoryDump/MiniDump.py
from __future__ import print_function from builtins import range from ..Interfaces import ReadError from ..MemReaderBase import * from ..GUIDisplayBase import * from collections import namedtuple from ..ObjectWithStream import ObjectWithStream from bisect import bisect_left try: import distorm3 IS_DISASSEMBLE...
PypiClean
/Cmdopt-0.2.0.tar.gz/Cmdopt-0.2.0/README.txt
================ Cmdopt.py README ================ Release: 0.2.0 About ----- Cmdopt.py is command-line option parser for Python. Cmdopt.py support Python 2.4 or later, including Python 3. Install ------- :: $ easy_install cmdopt Usage ----- Example:: ## create parser import cmdopt parser = cmdopt.Pars...
PypiClean
/CensusData-1.15.tar.gz/CensusData-1.15/docs/rst/example1.rst
Example 1: Downloading Block Group Data and Exporting to CSV ============================================================ As a first example, let’s suppose we’re interested in unemployment and high school dropout rates for block groups in Cook County, Illinois, which contains Chicago, IL. We begin by importing the c...
PypiClean
/Nuitka-1.8.tar.gz/Nuitka-1.8/nuitka/build/inline_copy/yaml/yaml/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
/ChemDataExtractor-IDE-1.3.2.tar.gz/ChemDataExtractor-IDE-1.3.2/chemdataextractor/nlp/cem.py
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import logging import re import six from ..text import bracket_level from .lexicon import ChemLexicon from .tag import BaseTagger, CrfTagger, DictionaryTagger log = lo...
PypiClean
/AGouTI-1.0.3.tar.gz/AGouTI-1.0.3/agouti_pkg/gffutils/bins.py
# kent src: "How much to shift to get to next larger bin." # So each level splits by 2**3 = 8 fold (octree?) NEXT_SHIFT = 3 # kent src: "How much to shift to get to finest bin." # 2 ** FIRST_SHIFT is the size of the smallest bin. FIRST_SHIFT = 17 # These offsets are the bin numbers at the beginning of each level. ...
PypiClean
/HtmlList-2.2.2.zip/HtmlList-2.2.2/htmllist/pattern_quality.py
from tag_tools import Tag def _print_matrix(matrix): """ Debugging function """ for i in range(len(matrix)): print '\t'.join(str(elm) for elm in matrix[i]) def _deviation(lst): """ Return an inverse normalized deviation in a list of numbers. lst - A list of numbers Returns a number between 0 and 1 (1 = no d...
PypiClean
/NVDA-addonTemplate-0.5.2.zip/NVDA-addonTemplate-0.5.2/NVDAAddonTemplate/data/{{cookiecutter.project_slug}}/scons-local-2.5.0/SCons/Tool/sunc++.py
__revision__ = "src/engine/SCons/Tool/sunc++.py rel_2.5.0:3543:937e55cd78f7 2016/04/09 11:29:54 bdbaddog" import SCons import os import re import subprocess cplusplus = __import__('c++', globals(), locals(), []) package_info = {} def get_package_info(package_name, pkginfo, pkgchk): try: return package...
PypiClean