id
stringlengths
1
265
text
stringlengths
6
5.19M
dataset_id
stringclasses
7 values
/HavNegpy-1.2.tar.gz/HavNegpy-1.2/docs/_build/html/_build/doctrees/nbsphinx/_build/html/_build/html/_build/html/_build/html/hn_module_tutorial.ipynb
# Tutorial for the HN module of HavNegpy package ``` import numpy as np import pandas as pd import matplotlib.pyplot as plt import os import HavNegpy as dd %matplotlib qt os.chdir(r'M:\Marshall_Data\mohamed_data\mohamed_data\n44') def create_dataframe(f): col_names = ['Freq', 'T', 'Eps1', 'Eps2'] #f ...
PypiClean
/125softNLP-0.0.1-py3-none-any.whl/pysoftNLP/kashgari/embeddings/bert_embedding.py
# author: BrikerMan # contact: eliyar917@gmail.com # blog: https://eliyar.biz # file: base_embedding.py # time: 2019-05-25 17:40 import os os.environ['TF_KERAS'] = '1' import codecs import logging from typing import Union, Optional, Any, List, Tuple import numpy as np import pysoftNLP.kashgari as kashgari import ...
PypiClean
/Mastodon.py-1.8.1.tar.gz/Mastodon.py-1.8.1/docs/04_auth.rst
App registration, authentication and preferences ================================================ .. py:module:: mastodon .. py:class: Mastodon Before you can use the Mastodon API, you have to register your application (which gets you a client key and client secret) and then log in (which gets you an access token) and...
PypiClean
/OASYS1-SYNED-1.0.45.tar.gz/OASYS1-SYNED-1.0.45/orangecontrib/syned/widgets/scanning/multiple_height_profile_simulator_S.py
import os import orangecanvas.resources as resources try: from mpl_toolkits.mplot3d import Axes3D # necessario per caricare i plot 3D except: pass from oasys.util.oasys_objects import OasysPreProcessorData, OasysErrorProfileData, OasysSurfaceData import oasys.util.oasys_util as OU from oasys.widgets.abstr...
PypiClean
/LovelyPlots-0.0.27.tar.gz/LovelyPlots-0.0.27/README.md
# LovelyPlots ![PyPI Version](https://img.shields.io/pypi/v/LovelyPlots.svg) ![PyPI Downloads](https://static.pepy.tech/badge/LovelyPlots) [![doi](https://img.shields.io/badge/DOI-10.5281%2Fzenodo.6903937-blue)]( http://doi.org/10.5281/zenodo.6903937) LovelyPlots is a repository containing ``matplotlib`` style sheets ...
PypiClean
/MICC-0.1.21.tar.gz/MICC-0.1.21/README.rst
Metric in the Curve Complex: MICC ================================= .. image:: https://travis-ci.org/MICC/MICC.svg?branch=master :target: https://travis-ci.org/MICC/MICC The curve complex is a simplicial complex composed of vertices representing equivalency classes of isotopic simple closed curves on a surface of...
PypiClean
/OCAICM-0.0.2.tar.gz/OCAICM-0.0.2/script/data_pre.py
import os.path import pandas as pd from rdkit.Chem import AllChem import numpy as np from sklearn import preprocessing def saltremover(i): l = i.split('.') d = {len(a):a for a in l } smile = d[max(d.keys())] return smile def stand_smiles(smiles): try: smiles = AllChem.MolToSmiles(AllChem.Mo...
PypiClean
/CaptainSoul-0.1.9.tar.gz/CaptainSoul-0.1.9/cptsoul/netsoul/__init__.py
import logging from time import time from hashlib import md5 from collections import deque from twisted.internet.protocol import connectionDone from twisted.protocols.basic import LineOnlyReceiver from cptsoul.common import CptCommon from cptsoul.netsoul.tools import Rea, ReaList, NsUserCmdInfo, NsWhoResult, NsWhoEn...
PypiClean
/CAMELS_library-0.3.tar.gz/CAMELS_library-0.3/plots/autoencoder/plot.py
from pylab import * import numpy as np from matplotlib.ticker import ScalarFormatter import matplotlib.gridspec as gridspec from mpl_toolkits.axes_grid1.inset_locator import mark_inset from matplotlib.ticker import AutoMinorLocator from matplotlib.colors import LogNorm from matplotlib.patches import Ellipse rcParams["m...
PypiClean
/KratosSwimmingDEMApplication-9.2.0-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/KratosMultiphysics/SwimmingDEMApplication/derivative_recovery/pouliot_2012_recoverer.py
import KratosMultiphysics as Kratos from . import recoverer from . import L2_projection_recoverer import KratosMultiphysics.SwimmingDEMApplication.parameters_tools as PT import sys class Pouliot2012GradientRecoverer(L2_projection_recoverer.L2ProjectionGradientRecoverer): def __init__(self, project_parameters, mode...
PypiClean
/Kallithea-0.7.0.tar.gz/Kallithea-0.7.0/kallithea/lib/vcs/subprocessio.py
import collections import os import subprocess import threading class StreamFeeder(threading.Thread): """ Normal writing into pipe-like is blocking once the buffer is filled. This thread allows a thread to seep data from a file-like into a pipe without blocking the main thread. We close inpipe onc...
PypiClean
/Django_Persistent_Message-1.2-py3-none-any.whl/persistent_message/views/api.py
import unicodedata from persistent_message.models import Message, TagGroup, Tag from persistent_message.decorators import message_admin_required from django.core.exceptions import ValidationError from django.http import HttpResponse from django.views import View from django.utils.decorators import method_decorator fro...
PypiClean
/netket-3.9.2.tar.gz/netket-3.9.2/netket/vqs/base.py
import abc from typing import Optional, Tuple import numpy as np import jax import jax.numpy as jnp from jax.nn.initializers import normal import flax from flax.core.frozen_dict import FrozenDict from flax.core.scope import CollectionFilter, DenyList # noqa: F401 import netket.jax as nkjax from netket.operator im...
PypiClean
/Mesa-2.1.1-py3-none-any.whl/mesa/visualization/templates/external/bootstrap-slider-11.0.2/test/specs/TooltipMouseOverOptionSpec.js
describe("'ticks_tooltip' Option tests", function() { var testSlider; var mouseEventArguments; beforeEach(function() { // Set up default set of mouse event arguments mouseEventArguments = [ 'mousemove', // type true, // canBubble true, // cancelable document, // view, 0, // detail 0, // screen...
PypiClean
/DevContest-0.4.tar.gz/DevContest-0.4/devcontest/controllers/user.py
import logging from pylons import request, response, session, tmpl_context as c from pylons.controllers.util import abort, redirect_to from devcontest.lib.base import BaseController, render from pylons.i18n import get_lang, set_lang, _ log = logging.getLogger(__name__) from sqlalchemy import not_ from devcontest.mo...
PypiClean
/Evmlab-0.3.0.0.1-py3-none-any.whl/evmlab/opcodes.py
from copy import copy import collections import binascii from . import parse_int_or_hex,decode_hex,remove_0x_head,bytearray_to_bytestr,encode_hex # Taken from https://github.com/ethereum/pyethereum/blob/develop/ethereum/opcodes.py # Done this way to reduce dependencies a bit # schema: [opcode, ins, outs, gas] opcode...
PypiClean
/Diofant-0.14.0a2.tar.gz/Diofant-0.14.0a2/docs/modules/tensor/tensor.rst
.. _tensor-tensor: Tensor ====== .. module:: diofant.tensor.tensor .. autoclass:: _TensorManager :members: .. autoclass:: TensorIndexType :members: .. autoclass:: TensorIndex :members: .. autofunction:: tensor_indices .. autoclass:: TensorSymmetry :members: .. autofunction:: tensorsymmetry .. autoc...
PypiClean
/Euphorie-15.0.2.tar.gz/Euphorie-15.0.2/src/euphorie/client/resources/oira/script/chunks/78529.112119b9875822ce8a6f.min.js
(self.webpackChunk_patternslib_patternslib=self.webpackChunk_patternslib_patternslib||[]).push([[78529],{78529:function(e){function n(e){return e?"string"==typeof e?e:e.source:null}function t(...e){return e.map((e=>n(e))).join("")}function s(...e){return"("+e.map((e=>n(e))).join("|")+")"}e.exports=function(e){const n=/...
PypiClean
/Lab-Automation-1.1.tar.gz/Lab-Automation-1.1/lab/tutor_tab.py
from Tkinter import * import json import tkMessageBox from functools import partial head_font = ("Helvetica", 22, "bold") text_font = ("Times New Roman", 18) class assignment(Frame): def __init__(self, parent, controller): #assignment window fort utor to see the asssignments Frame.__init__(self, parent) se...
PypiClean
/EnergyCapSdk-8.2304.4743.tar.gz/EnergyCapSdk-8.2304.4743/energycap/sdk/models/calculated_bill_details_response.py
from msrest.serialization import Model class CalculatedBillDetailsResponse(Model): """Response object containing all the details related to calculated bill setup for a meter. Includes use, cost, meter line items, and account line items. :param version: :type version: ~energycap.sdk.models.Distributi...
PypiClean
/EasyModeler-2.2.6.zip/EasyModeler-2.2.6/README.rst
EasyModeler is a package for calibration and validation of Ordinary Differential Equations ODEs to sample data. Requirements ------------ * Python 2.6 or 2.7 * SciPy and NumPy 2.6 or 2.7 * Matplotlib 2.6 or 2.7 * sas7bdat Features -------- * ODEINT Wrapper Intelligent non-invasive wrapper to SciPy's integrato...
PypiClean
/ESMValTool-2.9.0-py3-none-any.whl/esmvaltool/cmorizers/mip_convert/esmvt_mipconv_setup.py
import argparse import configparser import datetime import logging import os import shutil import subprocess import socket import yaml #################### # global variables # #################### # the tool uses a specially tailored mip_convert Rose suite # locations of the suite depends on the host host_name = so...
PypiClean
/NlvWxPython-4.2.0-cp37-cp37m-win_amd64.whl/wx/aui.py
from ._aui import * import wx def _AuiPaneInfoArray___repr__(self): return "AuiPaneInfoArray: " + repr(list(self)) AuiPaneInfoArray.__repr__ = _AuiPaneInfoArray___repr__ del _AuiPaneInfoArray___repr__ EVT_AUI_PANE_BUTTON = wx.PyEventBinder( wxEVT_AUI_PANE_BUTTON ) EVT_AUI_PANE_CLOSE = wx.PyEventBinder( wxEVT_AUI_...
PypiClean
/FlowTutor-0.9.0.tar.gz/FlowTutor-0.9.0/src/flowtutor/flowchart/node.py
from __future__ import annotations from abc import ABC, abstractmethod from typing import TYPE_CHECKING, Optional, Union from uuid import uuid4 import dearpygui.dearpygui as dpg from shapely.geometry import Polygon from shapely.geometry import Point from flowtutor.gui.themes import theme_colors if TYPE_CHECKING: ...
PypiClean
/MailerLiteSDK-0.0.5.tar.gz/MailerLiteSDK-0.0.5/README.md
This is a very early project for mailer lite # USAGE step 1: Create a connect with your MailerLite API Key ```python from MailerLiteSDK import MailerClient mailer = MailerClient(api_key=os.getenv('MAILER_API_KEY')) ``` Step 2: Let user be subscriber first ```python mailer.subscribe(email=sample_email) >>>>>>> ad4c...
PypiClean
/Assimulo-3.0.tar.gz/Assimulo-3.0/assimulo/solvers/dasp3.py
# Copyright (C) 2011 Modelon AB # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, version 3 of the License. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY...
PypiClean
/FRB-1.1.4.tar.gz/FRB-1.1.4/fred/__init__.py
from fred.clients.categories import CategoriesClient from fred.clients.releases import ReleasesClient from fred.clients.tags import TagsClient from fred.clients.sources import SourcesClient from fred.clients.eseries import ESeriesClient import fred.config as c import weakref ## Establish Federal Reserve Economic Data ...
PypiClean
/CodeIntel-2.0.0b19-cp34-cp34m-macosx_10_12_x86_64.whl/codeintel/codeintel2/database/langlib.py
from __future__ import absolute_import import sys import os from os.path import (join, dirname, exists, expanduser, splitext, basename, split, abspath, isabs, isdir, isfile, normpath) import threading import time from glob import glob from pprint import pprint, pformat import logging from io import...
PypiClean
/AyiinXd-0.0.8-cp311-cp311-macosx_10_9_universal2.whl/fipper/methodcalls/groups/leave_group_call.py
import asyncio from fipper.exception import NoActiveGroupCall from fipper.exception import NodeJSNotRunning from fipper.exception import ClientCallsNotSet from fipper.exception import NotInGroupCallError from fipper.xdcalls import NotInGroupCall from fipper.xdcalls.session import Session from fipper.viper import Viper...
PypiClean
/Nikola-8.2.4-py3-none-any.whl/nikola/plugins/task/listings.py
# Copyright © 2012-2023 Roberto Alsina 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, mer...
PypiClean
/CAL-1.4.5.tar.gz/CAL-1.4.5/Ordinal.py
from __future__ import print_function """ >>> from _CAL.Date import * >>> d1 = Date (1958, 1, 30) >>> d2 = Date (1960, 4, 11) >>> d3 = Date (1959, 9, 26) >>> d4 = Date (1997, 11, 16) >>> d5 = Date (2007, 1, 25) ### week 4 >>> d6 = Date (2007, 4, 25) ### week 17 >>> d7 = Date (2007, 7, 4) ###...
PypiClean
/NJU_jiaowu_helper-0.3.1.tar.gz/NJU_jiaowu_helper-0.3.1/jiaowu/core/function/upload/upload_functions.py
import re from scrapy import Selector from jiaowu.core.function.utils.others import get_values from jiaowu.data.constants.status_code import StatusCode as Code from jiaowu.core.model.spider_model import LoginSpider def apply_for_exam_only(spider: LoginSpider, args): # 申请免修不免靠 values=get_values(args,["cou...
PypiClean
/MAA_PyQT5_messenger_server_app-0.0.4.tar.gz/MAA_PyQT5_messenger_server_app-0.0.4/server/server/remove_user.py
from PyQt5.QtWidgets import QDialog, QLabel, QComboBox, QPushButton, QApplication from PyQt5.QtCore import Qt from PyQt5.QtGui import QStandardItemModel, QStandardItem class DelUserDialog(QDialog): ''' Класс - диалог выбора контакта для удаления. ''' def __init__(self, database, server): supe...
PypiClean
/Comet-3.1.0.tar.gz/Comet-3.1.0/comet/plugins/eventwriter.py
import os import string from contextlib import contextmanager from zope.interface import implementer from twisted.plugin import IPlugin from twisted.python import lockfile from comet.icomet import IHandler, IHasOptions import comet.log as log # Used when building filenames to avoid over-writing. FILENAME_PAD = "_" ...
PypiClean
/CausalInference-0.1.3-py3-none-any.whl/causalinference/causal.py
from __future__ import division import numpy as np from itertools import combinations_with_replacement from .core import Data, Summary, Propensity, PropensitySelect, Strata from .estimators import OLS, Blocking, Weighting, Matching, Estimators class CausalModel(object): """ Class that provides the main tools of C...
PypiClean
/IdracRedfishSupport-0.0.8.tar.gz/IdracRedfishSupport-0.0.8/BiosResetToDefaultsREDFISH.py
import argparse import getpass import json import logging import re import requests import sys import time import warnings from datetime import datetime from pprint import pprint warnings.filterwarnings("ignore") parser=argparse.ArgumentParser(description="Python script using Redfish API DMTF action to reset BIOS t...
PypiClean
/ARGs_OAP-2.3.2.tar.gz/ARGs_OAP-2.3.2/ARGs_OAP/bin/bbmap/bbsplit.sh
usage(){ echo " BBSplit Written by Brian Bushnell, from Dec. 2010 - present Last modified June 11, 2018 Description: Maps reads to multiple references simultaneously. Outputs reads to a file for the reference they best match, with multiple options for dealing with ambiguous mappings. To index: bbsplit.sh build=...
PypiClean
/CodeIntel-2.0.0b19-cp34-cp34m-macosx_10_12_x86_64.whl/codeintel/codeintel2/lang_go.py
from __future__ import absolute_import import os import sys import json import logging import process import time try: from codeintel2.common import LazyClassAttribute except ImportError: import warnings warnings.warn("Unable to import zope.cachedescriptors.property") # Fallback to regular properties. ...
PypiClean
/Beeswarm-0.7.18.tar.gz/Beeswarm-0.7.18/beeswarm/server/webapp/static/js/modernizr-2.6.2-respond-1.1.0.min.js
;window.Modernizr=function(a,b,c){function D(a){j.cssText=a}function E(a,b){return D(n.join(a+";")+(b||""))}function F(a,b){return typeof a===b}function G(a,b){return!!~(""+a).indexOf(b)}function H(a,b){for(var d in a){var e=a[d];if(!G(e,"-")&&j[e]!==c)return b=="pfx"?e:!0}return!1}function I(a,b,d){for(var e in a){var...
PypiClean
/OASYS1-APS-Extensions-1.0.87.tar.gz/OASYS1-APS-Extensions-1.0.87/orangecontrib/aps/shadow/widgets/extension/ow_power_plot_xy.py
import os, sys import time import numpy import scipy.ndimage.filters as filters import scipy.ndimage.interpolation as interpolation import scipy.ndimage.fourier as fourier from PyQt5.QtWidgets import QMessageBox, QFileDialog, QInputDialog from PyQt5.QtGui import QTextCursor from orangewidget import gui from orangewi...
PypiClean
/GALFITools-1.0.0.tar.gz/GALFITools-1.0.0/src/galfitools/galin/xy2fits.py
import numpy as np import os import subprocess as sp import os.path from astropy.io import fits import argparse # code to convert ASCII xy positions to FTIS mask class xy2fits: def MakeFits(self, ImageFile, AsciiFile, Value): root_ext = os.path.splitext(AsciiFile) namefile = roo...
PypiClean
/aimm_simulator-2.0.3.tar.gz/aimm_simulator-2.0.3/src/realtime_plotter.py
__version__='2.0.0' from sys import stdin,stderr,exit,argv from os.path import basename from time import time,sleep,strftime,localtime import numpy from random import random import argparse from matplotlib import animation,use as matplotlib_use from matplotlib import pyplot as plt try: from matplotlib import __vers...
PypiClean
/GQCMS-0.0.4-py3-none-any.whl/gqcms/basis.py
from gqcms import Determinant def seniorityBasis(seniority_number, sites, nalpha, nbeta): """ Create a basis of the seniority number """ if seniority_number == 0 and (nalpha+nbeta)%2 == 1: raise ValueError("seniority number zero not possible with odd number of electrons") ref_det...
PypiClean
/GenIce-1.0.11.tar.gz/GenIce-1.0.11/genice/lattices/ice2rect.py
desc={"ref": {"IId": 'Nakamura, Tatsuya et al. “Thermodynamic Stability of Ice II and Its Hydrogen-Disordered Counterpart: Role of Zero-Point Energy.” The Journal of Physical Chemistry B 120.8 (2015): 1843–1848.', }, "usage": "No options available.", "brief": "Orthogonalized Ice II." } ...
PypiClean
/DLTA-AI-1.1.tar.gz/DLTA-AI-1.1/DLTA_AI_app/mmdetection/mmdet/models/dense_heads/detr_head.py
import torch import torch.nn as nn import torch.nn.functional as F from mmcv.cnn import Conv2d, Linear, build_activation_layer from mmcv.cnn.bricks.transformer import FFN, build_positional_encoding from mmcv.runner import force_fp32 from mmdet.core import (bbox_cxcywh_to_xyxy, bbox_xyxy_to_cxcywh, ...
PypiClean
/Flask-Whiteprint-0.0.1.tar.gz/Flask-Whiteprint-0.0.1/whiteprint/exceptions.py
from werkzeug.exceptions import HTTPException def abort(exception, *args, **kwargs): raise exception(*args, **kwargs) class HTTPExceptionBase(HTTPException): response = None status = 500 code = 1000 message = "Internal server error." def __init__(self, **kwargs): if kwargs: ...
PypiClean
/Captcha-Impulse-0.0.9.tar.gz/Captcha-Impulse-0.0.9/src/impulse/yolov5/utils/loss.py
import torch import torch.nn as nn from utils.metrics import bbox_iou from utils.torch_utils import de_parallel def smooth_BCE(eps=0.1): # https://github.com/ultralytics/yolov3/issues/238#issuecomment-598028441 # return positive, negative label smoothing BCE targets return 1.0 - 0.5 * eps, 0.5 * eps class...
PypiClean
/Congo-0.0.1.tar.gz/Congo-0.0.1/portfolio/component/static/portfolio/vendor/mdeditor/bower_components/codemirror/mode/haskell/haskell.js
CodeMirror.defineMode("haskell", function() { function switchState(source, setState, f) { setState(f); return f(source, setState); } // These should all be Unicode extended, as per the Haskell 2010 report var smallRE = /[a-z_]/; var largeRE = /[A-Z]/; var digitRE = /[0-9]/; var hexitRE = /[0-9A-...
PypiClean
/MetaCalls-0.0.5-cp310-cp310-manylinux2014_x86_64.whl/metacalls/node_modules/make-dir/node_modules/semver/README.md
semver(1) -- The semantic versioner for npm =========================================== ## Install ```bash npm install semver ```` ## Usage As a node module: ```js const semver = require('semver') semver.valid('1.2.3') // '1.2.3' semver.valid('a.b.c') // null semver.clean(' =v1.2.3 ') // '1.2.3' semver.satisfi...
PypiClean
/BigJob2-0.54.post73.tar.gz/BigJob2-0.54.post73/examples/pilot-api/example-pilot-api-multiple.py
import sys import os import time import logging logging.basicConfig(level=logging.DEBUG) sys.path.append(os.path.join(os.path.dirname(__file__), "../..")) sys.path.insert(0, os.getcwd() + "/../") from pilot import PilotComputeService, ComputeDataService, State COORDINATION_URL = "redis://localhost:6379" if __name__ ...
PypiClean
/ChatDocument-2023.4.25.9.50.0-py3-none-any.whl/chatllm/uis/gradio_ui.py
import gradio as gr import mdtex2html ######################################################################## from chatllm.utils import llm_load, llm_load4chat from chatllm.applications import Chat MODEL = '/Users/betterme/PycharmProjects/AI/CHAT_MODEL/chatglm' chat_func = llm_load4chat(MODEL, device='mps') qa = ...
PypiClean
/AGouTI-1.0.3.tar.gz/AGouTI-1.0.3/agouti_pkg/simplejson/decoder.py
from __future__ import absolute_import import re import sys import struct from .compat import PY3, unichr from .scanner import make_scanner, JSONDecodeError def _import_c_scanstring(): try: from ._speedups import scanstring return scanstring except ImportError: return None c_scanstring ...
PypiClean
/HavNegpy-1.2.tar.gz/HavNegpy-1.2/docs/_build/html/_build/html/_build/doctrees/nbsphinx/_build/doctrees/nbsphinx/_build/html/_build/doctrees/nbsphinx/hn_module_tutorial.ipynb
# Tutorial for the HN module of HavNegpy package ``` import numpy as np import pandas as pd import matplotlib.pyplot as plt import os import HavNegpy as dd %matplotlib qt os.chdir(r'M:\Marshall_Data\mohamed_data\mohamed_data\n44') def create_dataframe(f): col_names = ['Freq', 'T', 'Eps1', 'Eps2'] #f ...
PypiClean
/Data_HandWrite-1.1.0.tar.gz/Data_HandWrite-1.1.0/Data_HandWrite/__init__.py
import os from PIL import Image import numpy as np import bz2#bz2file pypi import zipfile import requests #data #https://drive.google.com/file/d/1ZzSeuq-9ICZuFpPKM4H_gU8OGwpqKBAs/view?usp=sharing #paint.exr #https://drive.google.com/file/d/1EPrPilZ4XK80Cq4n9-ynO0yxZfxYTIhP/view?usp=sharing def _save_response_content(...
PypiClean
/GQCMS-0.0.4-py3-none-any.whl/build/lib/build/lib/build/lib/build/lib/build/lib/gqcms/matrices/Hamiltonian.py
import numpy as np from typing import List from gqcms import Hubbard from gqcms.matrices import Determinant def createHamiltonian(H_core: np.ndarray, I: np.ndarray, determinants: list) -> np.ndarray: """ Create the hamiltonian matrix from a list of determinants :param H_core: core Hamiltonian i.e one el...
PypiClean
/MoorPy-1.0.1.tar.gz/MoorPy-1.0.1/moorpy/line.py
import numpy as np from matplotlib import cm from moorpy.Catenary import catenary from moorpy.nonlinear import nonlinear from moorpy.helpers import LineError, CatenaryError, rotationMatrix, makeTower, read_mooring_file, quiver_data_to_segments from os import path class Line(): ...
PypiClean
/Caroline-presentation-0.2.4.tar.gz/Caroline-presentation-0.2.4/caroline/html_dist/js/mathjax/sre/mathmaps/nemeth/symbols/latin-mathfonts-bold-fraktur.js
[{"locale":"nemeth"},{"category":"Lu","mappings":{"default":{"default":"⠸⠀⠸⠠⠁"}},"key":"1D56C"},{"category":"Lu","mappings":{"default":{"default":"⠸⠀⠸⠠⠃"}},"key":"1D56D"},{"category":"Lu","mappings":{"default":{"default":"⠸⠀⠸⠠⠉"}},"key":"1D56E"},{"category":"Lu","mappings":{"default":{"default":"⠸⠀⠸⠠⠙"}},"key":"1D56F"}...
PypiClean
/AISTLAB_nitrotyper-0.6.10.tar.gz/AISTLAB_nitrotyper-0.6.10/README.md
# AISTLAB_nitrotyper > https://www.nitrotype.com/race auto typer using python3 and cv2 > > only supported 1920x1080 Resolution currently. > > winxos, AISTLAB 2017-03-17 ##INSTALL: pip3 install nitrotyper ## USAGE: 1. open https://www.nitrotype.com/race using your web browser 2. open console and run **nitrotyper** co...
PypiClean
/CNVkit-0.9.10-py3-none-any.whl/skgenome/tabio/vcfsimple.py
import logging import numpy as np import pandas as pd from Bio.File import as_handle # TODO save VCF header (as string, the whole text block) in meta{header=} def read_vcf_simple(infile): """Read VCF file without samples.""" # ENH: Make all readers return a tuple (header_string, body_table) # ENH: usecol...
PypiClean
/NanoSplit-0.1.4.tar.gz/NanoSplit-0.1.4/README.rst
NanoSplit ========= Perform splitting of Oxford Nanopore sequencing data in a fail and pass dataset using a user defined quality cutoff. The script can read compressed input and will write to gzip compressed files. INSTALLATION ~~~~~~~~~~~~ :: pip install NanoSplit USAGE ~~~~~ :: NanoSplit [-h] [-q QUALI...
PypiClean
/Dts-OpenFisca-Core-34.8.0.tar.gz/Dts-OpenFisca-Core-34.8.0/openfisca_web_api/handlers.py
import dpath from openfisca_core.simulation_builder import SimulationBuilder from openfisca_core.indexed_enums import Enum from collections import defaultdict def calculate(tax_benefit_system, input_data): simulation = SimulationBuilder().build_from_entities(tax_benefit_system, input_data) requested_comput...
PypiClean
/ApiWrap-0.1.1.tar.gz/ApiWrap-0.1.1/README.md
# ApiWrap Simple HTTP POST API wrapper for Python classes. # Example: Copy the Python code below into a file (eg. `api_server.py`) ```python #!/usr/bin/env python from wrapit.api_wrapper import create_app # The class to be wrapped class Calculator: def add(self, x, y): return x + y def sub(self, x...
PypiClean
/Curare-0.4.5-py3-none-any.whl/curare/report/js/Chart.min.js
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).Chart=e()}(this,(function(){"use strict";const t="undefined"==typeof window?function(t){return t()}:window.requestAnimationFrame;fu...
PypiClean
/DeepCellTL-0.12.5.tar.gz/DeepCellTL-0.12.5/deepcell/model_zoo/fpn.py
"""Feature pyramid network utility functions""" from __future__ import absolute_import from __future__ import print_function from __future__ import division import re from tensorflow.keras import backend as K from tensorflow.keras.models import Model from tensorflow.keras.layers import Conv2D, Conv3D, DepthwiseConv2...
PypiClean
/src/main/python/DMC_GUI.py
try: import IPython shell = IPython.get_ipython() shell.enable_matplotlib(gui='qt') except: pass # choose backend for matplotlib to be Qt5Agg. If not, no plots can be made :'-( import matplotlib matplotlib.use('Qt5Agg') from DMCpy import _tools # Useful tools useful across DMC try: import _tools a...
PypiClean
/CommandTool-0.5.3.tar.gz/CommandTool-0.5.3/doc/source/index.rst
.. CommandTool documentation master file, created by sphinx-quickstart on Mon Jun 29 23:26:13 2009. You can adapt this file completely to your liking, but it should at least contain the root `toctree` directive. 0.5.3 +++++ .. include:: ../index.txt Documentation ============= The code is based on the blog...
PypiClean
/JoUtil-1.3.3-py3-none-any.whl/JoTools/txkj/eagleUtil.py
import time import os import copy import random import shutil from PIL import Image from ..utils.HashlibUtil import HashLibUtil from ..utils.JsonUtil import JsonUtil from ..utils.FileOperationUtil import FileOperationUtil from ..txkjRes.deteRes import DeteRes # fixme 可以主动选择分析颜色,选中需要的图片,右击更多,重新分析颜色 # todo 因为分析时间比较长,将 ...
PypiClean
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/charting/action2d/TouchZoomAndPan.js
define("dojox/charting/action2d/TouchZoomAndPan",["dojo/_base/lang","dojo/_base/declare","dojo/_base/event","dojo/_base/sniff","./ChartAction","../Element","dojox/gesture/tap","../plot2d/common"],function(_1,_2,_3,_4,_5,_6,_7,_8){ var _9=_2("dojox.charting.action2d._GlassView",[_6],{constructor:function(_a){ },render:f...
PypiClean
/Flask-DebugToolbar-0.13.1.tar.gz/Flask-DebugToolbar-0.13.1/src/flask_debugtoolbar/static/codemirror/util/javascript-hint.js
(function () { function forEach(arr, f) { for (var i = 0, e = arr.length; i < e; ++i) f(arr[i]); } function arrayContains(arr, item) { if (!Array.prototype.indexOf) { var i = arr.length; while (i--) { if (arr[i] === item) { return true; } } return false...
PypiClean
/GQCMS-0.0.4-py3-none-any.whl/gqcms/Information.py
import numpy as np import pandas as pd import gqcms def CoefficientMatrix( hubbard: gqcms.Hubbard, state: np.ndarray, system_sites: list ) -> np.ndarray: """ Create the coefficient matrix that expresses the wave function in the two subsystems :param hubbard: a hubbard class object :param state: ...
PypiClean
/FightMan01dc.pymod-2.0.4.tar.gz/FightMan01dc.pymod-2.0.4/discord/reaction.py
from .iterators import ReactionIterator class Reaction: """Represents a reaction to a message. Depending on the way this object was created, some of the attributes can have a value of ``None``. .. container:: operations .. describe:: x == y Checks if two reactions are equal. Thi...
PypiClean
/ComPora-0.1.0-py3-none-any.whl/compora/tokenize.py
import re from yoolkit.xmlscape import encode, decode from yoolkit.text import unicode_category from compora.nb_prefix import nb_prefix def tokenize(sentence, language, split_aggressive_hyphen=True): # seperate out all special characters that are not in 'L' and 'Nd' categories sentence = encode(sentence) ...
PypiClean
/CWR-API-0.0.40.tar.gz/CWR-API-0.0.40/docs/source/other/ipi_number.rst
========== IPI Number ========== There are two fields which appear commonly in records refering to interested parties: IPI Name Number and IPI Base Number. These are references to ISAC's Interested Parties Information system, used by CISAC identify Interested Parties on collective rights management data, and are store...
PypiClean
/Glances-3.4.0.3.tar.gz/Glances-3.4.0.3/glances/outputs/glances_bars.py
from __future__ import division from math import modf class Bar(object): """Manage bar (progression or status). import sys import time b = Bar(10) for p in range(0, 100): b.percent = p print("\r%s" % b), time.sleep(0.1) sys.stdout.flush() """ def __init_...
PypiClean
/JO_AutoMl_Sathishmahi-0.0.5-py3-none-any.whl/JO_AutoMl/combine_all.py
import pandas as pd import numpy as np from JO_AutoMl.classifierTrainer import non_hyper_parameter_classifier_model from JO_AutoMl.handle_missing_value_in_catData import replace_nan_categorical_data from JO_AutoMl.hyper_parameter import hyper_parameter_classifier from JO_AutoMl.detect_outlierANDremove import detect_rem...
PypiClean
/NDFinance-0.0.8.tar.gz/NDFinance-0.0.8/ndfinance/brokers/backtest/data_provider.py
from ndfinance.brokers.base.data_provider import DataProvider, OHLCVT from ndfinance.analysis.technical import TechnicalIndicator from ndfinance.brokers.base import TimeIndexer from ndfinance.utils import array_utils from ndfinance.brokers.base import TimeFrames, asset from ndfinance.data.crawlers import get_yf_ticker_...
PypiClean
/Langton-project-0.3.tar.gz/Langton-project-0.3/README.md
# Projet-Langton I had to model a Langton's ant [1] and exploit some data such as it's distance from it's initial position during the time. In short I initalize a 2D space full of white boxes. I drop an ants on the space, starting from (0,0), and give it the following behavior: - If the box it's standing on is white, c...
PypiClean
/GetPixelColor-0.2.19.tar.gz/GetPixelColor-0.2.19/README.md
# GetPixelColor ## A cross-platform python library for getting the color of a given pixel on screen. ![img](https://github.com/Bobrobot1/GetPixelColor/actions/workflows/tests.yml/badge.svg) - Compatible with MacOS, Windows, and Linux. - Transparency data only available on some platforms. __Examples:__ Get color...
PypiClean
/EtlWorkers-0.0.6.tar.gz/EtlWorkers-0.0.6/README.md
## ETL Workers It is my way to express my love for python and my life passion for data science in general and explicitly for data engineering. ### About the package name: I named it after the famous data-engineering pipeline approach: Extract, Transform, and Load. <hr> ### About the idea and package structure It wil...
PypiClean
/HiCExplorer-2.2.1.1-py3-none-any.whl/hicexplorer/hicPlotViewpoint.py
import warnings warnings.simplefilter(action="ignore", category=RuntimeWarning) warnings.simplefilter(action="ignore", category=PendingDeprecationWarning) import argparse import sys import numpy as np from hicmatrix import HiCMatrix as hm from hicexplorer.utilities import toString import matplotlib matplotlib.use('Agg...
PypiClean
/Demomgr-1.10.1-py3-none-any.whl/demomgr/threads/filter.py
import os import time import queue from demomgr.demo_info import DemoInfo from demomgr.filterlogic import process_filterstring, FILTERFLAGS from demomgr.helpers import readdemoheader from demomgr.threads.read_folder import ThreadReadFolder from demomgr.threads._threadsig import THREADSIG from demomgr.threads._base imp...
PypiClean
/Eskapade_ROOT-0.9.0-py3-none-any.whl/esroofit/tutorials/esk405_simulation_based_on_binned_data.py
from eskapade import ConfigObject, Chain, process_manager from eskapade import core_ops, analysis from eskapade.logger import Logger, LogLevel from esroofit import resources from esroofit.links import RooDataHistFiller, PrintWs, WsUtils logger = Logger() logger.debug('Now parsing configuration file esk405_simulation...
PypiClean
/DB12-1.0.4.tar.gz/DB12-1.0.4/src/db12/benchmark.py
from __future__ import print_function from __future__ import division from __future__ import absolute_import import os import logging import json import sys import random import re import multiprocessing if sys.version_info[0] < 3: # pylint: disable = E, W, R, C # python3 range corresponds to xrange in pytho...
PypiClean
/Client_API_VN-2.11.1.tar.gz/Client_API_VN-2.11.1/docs/apps/examples.rst
======================= Database usage examples ======================= Nature-isere export =================== The following SQL code creates view on the database for Nature-isere. It can be used as a base for defining views on the database, for export. .. code:: sql -- -- Initialisation de la base pour ex...
PypiClean
/OASYS1_HALF_SRW-0.0.3-py3-none-any.whl/orangecontrib/srw/menu/ow_srw_tools_menu.py
__author__ = 'labx' from orangecanvas.scheme.link import SchemeLink from oasys.menus.menu import OMenu from wofry.propagator.propagator import PropagationManager from wofrysrw.propagator.propagators2D.srw_fresnel_native import SRW_APPLICATION from wofrysrw.propagator.propagators2D.srw_propagation_mode import SRWPropa...
PypiClean
/Faker-19.3.1.tar.gz/Faker-19.3.1/faker/providers/company/it_IT/__init__.py
from faker.utils.checksums import calculate_luhn from .. import Provider as CompanyProvider class Provider(CompanyProvider): formats = ( "{{last_name}} {{company_suffix}}", "{{last_name}}-{{last_name}} {{company_suffix}}", "{{last_name}}, {{last_name}} e {{last_name}} {{company_suffix}}",...
PypiClean
/Mathics_Django-6.0.0-py3-none-any.whl/mathics_django/web/media/js/mathjax/localization/mk/MathML.js
MathJax.Localization.addTranslation("mk","MathML",{version:"2.7.9",isLoaded:true,strings:{BadMglyph:"\u0413\u0440\u0435\u0448\u0435\u043D mglyph: %1",BadMglyphFont:"\u0413\u0440\u0435\u0448\u0435\u043D \u0444\u043E\u043D\u0442: %1",MathPlayer:"MathJax \u043D\u0435 \u043C\u043E\u0436\u0435 \u0434\u0430 \u0433\u043E \u04...
PypiClean
/88rest-0.1.9.tar.gz/88rest-0.1.9/rest88/routers.py
from collections import OrderedDict from django.conf.urls import url from rest_framework.routers import ( SimpleRouter as _SimpleRouter, APIRootView, SchemaView, SchemaGenerator ) from rest_framework.settings import api_settings from rest_framework.urlpatterns import format_suffix_patterns from orm88.c...
PypiClean
/HCNetSDK_python-1.0.0-py3-none-win32.whl/HCNetSDK/SDK_Struct.py
import os import platform from ctypes import * sys_platform = platform.system().lower().strip() lib_path_dict = { 'windows': os.path.dirname(__file__) + '\\Libs\\windows\\', 'linux': os.path.dirname(__file__) + '/Libs/linux/', } netsdkdllpath_dict = { 'windows': lib_path_dict['windows'] + 'HCNetSDK.dll'...
PypiClean
/B9gemyaeix-4.14.1.tar.gz/B9gemyaeix-4.14.1/docs/devel/starting.rst
.. _starting: Starting with internationalization ================================== Have a project and want to translate it into several languages? This guide will help you do so. Several typical situations are showcased, but most of the examples are generic and can be applied to other scenarios as well. Before tran...
PypiClean
/GailBot_Testing_Suite-0.1a8-py3-none-any.whl/gailbot/services/converter/payload/audioPayload.py
from typing import List, Union from .payloadObject import PayLoadObject, PayLoadStatus from ...organizer.source import SourceObject from gailbot.core.utils.general import ( get_extension, copy) from gailbot.core.utils.logger import makelogger from gailbot.core.utils.media import AudioHandler import os from g...
PypiClean
/NDETCStemmer_kaenova-1.4.3-py3-none-any.whl/NDETCStemmer/morphology/prefix10rule.py
import re """ ============================================================= PREFIX RULE 10 ============================================================= Rule 10: me{l|r|w|y}V -> me-{l|r|w|y}V Example: melipat meringkas mewarnai meyakinkan """ def prefix10_rule(word, word_candidate, keys): ma...
PypiClean
/Montreal-Forced-Aligner-3.0.0a3.tar.gz/Montreal-Forced-Aligner-3.0.0a3/README.md
# Montreal Forced Aligner ![Continuous Integration](https://github.com/MontrealCorpusTools/Montreal-Forced-Aligner/actions/workflows/main.yml/badge.svg) [![codecov](https://codecov.io/gh/MontrealCorpusTools/Montreal-Forced-Aligner/branch/main/graph/badge.svg?token=GgfM9GXFJ4)](https://codecov.io/gh/MontrealCorpusTools...
PypiClean
/Mathics-1.0.tar.gz/Mathics-1.0/mathics/web/media/js/mathjax/jax/output/HTML-CSS/fonts/TeX/SansSerif/Bold/BasicLatin.js
MathJax.Hub.Insert(MathJax.OutputJax["HTML-CSS"].FONTDATA.FONTS["MathJax_SansSerif-bold"],{32:[0,0,250,0,0],33:[694,0,367,110,256],34:[694,-442,558,37,420],35:[694,193,917,61,855],36:[750,56,550,49,488],37:[750,56,1029,61,966],38:[716,22,831,47,769],39:[694,-442,306,80,226],40:[750,249,428,79,366],41:[750,250,428,61,34...
PypiClean
/IceVolt-0.1.0.tar.gz/IceVolt-0.1.0/icevolt/models.py
import getpass from sqlalchemy.ext.declarative import declarative_base from sqlalchemy.orm import relationship, Session from sqlalchemy import ( create_engine, Column, ForeignKey, Integer, String, Table, Text ) from werkzeug.security import ( generate_password_hash, check_password_hash ) # SQLAlchemy ...
PypiClean
/FreeClimb-4.5.0-py3-none-any.whl/freeclimb/model/account_result_all_of.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
/parts/Top/Glasses/Kurt.py
def Kurt(): return ( '<defs>' ' <filter id="filter0_d_0_1711" x="5.76709" y="2.63634" width="130.465" height="51.3032"' ' filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">' ' <feFlood flood-opacity="0" result="BackgroundImageFix" />' ' <...
PypiClean
/AyiinXd-0.0.8-cp311-cp311-macosx_10_9_universal2.whl/fipper/node_modules/@mapbox/node-pre-gyp/lib/main.js
'use strict'; /** * Set the title. */ process.title = 'node-pre-gyp'; const node_pre_gyp = require('../'); const log = require('npmlog'); /** * Process and execute the selected commands. */ const prog = new node_pre_gyp.Run({ argv: process.argv }); let completed = false; if (prog.todo.length === 0) { if (~p...
PypiClean
/BlazeUtils-0.7.0-py3-none-any.whl/blazeutils/containers.py
class LazyDict(dict): def __init__(self, *args, **kwargs): self._ld_initialized = kwargs.pop('_ld_initialize', True) dict.__init__(self, *args, **kwargs) def __getattr__(self, attr): if attr in self: return self[attr] raise AttributeError("'%s' object has no attribut...
PypiClean
/EnigmaOPTestop-0.0.6.tar.gz/EnigmaOPTestop-0.0.6/src/enigmaop2/cipher buffer.py
# -*- coding: utf-8 -*- """ Created on Mon Dec 20 13:02:36 2021 @author: ninad """ import Rotors wiring=Rotors.Rotor() RotorSettingopz=[] def runThrough(Rotor_num,inputy,Rotor_settingy): inputy = (inputy+Rotor_settingy) % 127; return wiring[Rotor_num][inputy]; def plug(plugboard,key): if plugboard[key]==(...
PypiClean