id
stringlengths
1
265
text
stringlengths
6
5.19M
dataset_id
stringclasses
7 values
/HVFM-1.0.1.tar.gz/HVFM-1.0.1/README.md
- feature_engineering.py - func.py - generate_dataset.py - model.py - olga_func.py - train.py # demo_work1: Case ## AutoOLGAFleet - mech_case: 1. base 2. config 3. auto_generate 4. other: info ## BiVFM - dataset 1. dataset_0_tpl 2. dataset_1_csv 3. dataset_2_xy 4. dataset_3_pkl - logs 1. logs_Model 1. l...
PypiClean
/BayesDB-0.2.0.tar.gz/BayesDB-0.2.0/bayesdb/parser.py
import utils import os import bql_grammar as bql import pyparsing as pp import functions import operator class Parser(object): def __init__(self): self.reset_root_dir() def pyparse_input(self, input_string): """ Uses the grammar defined in bql_grammar to create a pyparsing object out...
PypiClean
/DjangoDjangoAppCenter-0.0.11-py3-none-any.whl/DjangoAppCenter/simpleui/static/admin/js/vendor/xregexp/xregexp.js
/** * XRegExp provides augmented, extensible JavaScript regular expressions. You get new syntax, * flags, and methods beyond what browsers support natively. XRegExp is also a regex utility belt * with tools to make your client-side grepping simpler and more powerful, while freeing you from * worrying about pesky cr...
PypiClean
/Hotel_Lite-0.6.tar.gz/Hotel_Lite-0.6/Hotel_Lite/Eventos.py
import gi gi.require_version("Gtk", "3.0") from gi.repository import Gtk from Hotel_Lite import FuncionesCompresion, FuncionesServicios, FuncionesHab, FuncionesCli, FuncionesImportExport, \ Conexion, FuncionesIm, FuncionesRes from Hotel_Lite.FuncionesIm import * class Eventos: '''Cierre de la ventana princi...
PypiClean
/Nuitka_fixed-1.1.2-cp310-cp310-win_amd64.whl/nuitka/build/inline_copy/lib/scons-2.3.2/SCons/Scanner/C.py
__revision__ = "src/engine/SCons/Scanner/C.py 2014/07/05 09:42:21 garyo" import SCons.Node.FS import SCons.Scanner import SCons.Util import SCons.cpp class SConsCPPScanner(SCons.cpp.PreProcessor): """ SCons-specific subclass of the cpp.py module's processing. We subclass this so that: 1) we can deal w...
PypiClean
/EnforsML-0.0.3.tar.gz/EnforsML-0.0.3/enforsml/text/utils.py
from enforsml.text import word def normalize(txt): """Return a normalized copy of txt. """ txt = normalize_whitespace(txt) txt = unify_sentence_dividers(txt) return txt def unify_sentence_dividers(txt): """Return copy of txt with ? and ! replaced with . """ for ch in ["!", "?"]: ...
PypiClean
/MultiEncoder-0.0.6.tar.gz/MultiEncoder-0.0.6/mle/multi_layer_encoder.py
from transformers import AutoTokenizer, AutoModel import numpy as np import torch import torch.nn.functional as F class multi_layer_encoder(): def __init__(self, model_dir): self.tokenizer = AutoTokenizer.from_pretrained(model_dir) self.model = AutoModel.from_pretrained(model_dir, output_hidden_st...
PypiClean
/MegEngine-1.13.1-cp37-cp37m-macosx_10_14_x86_64.whl/megengine/tools/compare_binary_iodump.py
import argparse import os import struct import textwrap from pathlib import Path import numpy as np def load_tensor_binary(fobj): """Load a tensor dumped by the :class:`BinaryOprIODump` plugin; the actual tensor value dump is implemented by ``mgb::debug::dump_tensor``. Args: fobj: file object, or ...
PypiClean
/Electrum-CHI-3.3.8.tar.gz/Electrum-CHI-3.3.8/electrum_chi/electrum/base_wizard.py
import os import sys import copy import traceback from functools import partial from typing import List, TYPE_CHECKING, Tuple, NamedTuple, Any, Dict, Optional from . import bitcoin from . import keystore from . import mnemonic from .bip32 import is_bip32_derivation, xpub_type, normalize_bip32_derivation from .keystor...
PypiClean
/Mopidy-Syncprojects-0.0.1.tar.gz/Mopidy-Syncprojects-0.0.1/mopidy_syncprojects/syncprojects.py
import datetime import logging import re import requests import string import time import unicodedata from contextlib import closing from mopidy import httpclient from mopidy.models import Album, Artist, Track from requests.adapters import HTTPAdapter from requests.exceptions import HTTPError from urllib.parse import q...
PypiClean
/Messenger_Desktop_Server_Application-0.7.tar.gz/Messenger_Desktop_Server_Application-0.7/server/gui/config_window.py
import sys from PyQt5.QtWidgets import QApplication, QMessageBox, QDialog, QLabel, \ QLineEdit, QPushButton, QFileDialog class ConfigWindow(QDialog): """ The class describes the settings window. """ def __init__(self): super().__init__() # Call the constructor. self.initUI...
PypiClean
/AtomPy-0.5.1.1.zip/AtomPy-0.5.1.1/atompy/DownloadAPI.py
import httplib2 import sys from httplib2 import Http from urllib import urlencode from apiclient.discovery import build from oauth2client.client import AccessTokenCredentials import gdata.docs import gdata.docs.service import gdata.spreadsheet.service import pandas from StringIO import StringIO def getDriveServic...
PypiClean
/Anisearch-1.1.0.tar.gz/Anisearch-1.1.0/README.md
# Anisearch Anilist API module for python. you only need to copy the Anilist folder to your own script. ### Executing program * How to run the program * Import module ```python from Anisearch import Anilist instance = Anilist() ``` From there you can get information from Anilist using their new GraphQL API. To get...
PypiClean
/NlvWxPython-4.2.0-cp37-cp37m-win_amd64.whl/wx/lib/wxcairo/wx_pycairo.py
import wx from six import PY3 import cairo import ctypes import ctypes.util #---------------------------------------------------------------------------- # A reference to the cairo shared lib via ctypes.CDLL cairoLib = None # A reference to the pycairo C API structure pycairoAPI = None # a convenience function, ...
PypiClean
/ManagerTk-0.3-py3-none-any.whl/ManagerTk.py
from tkinter import * from time import sleep import re coords = [0,0] debug = False boolc = False window = None time_cview = 0 def interface(window): window.bind('<Motion>', move) def move(event): global coords coords[0] = event.x coords[1] = event.y if(boolc): try:sleep(time_cview);print(co...
PypiClean
/MFAProblem-1.0.1b0.tar.gz/MFAProblem-1.0.1b0/mfa_problem/su_trace.py
import os import time import logging import logging.handlers import psutil import pandas as pd logger = logging.getLogger() def logger_init( logname, mode ): global logger logger = logging.getLogger("sumoptimisation") # root logger if len(logger.handlers) > 0: logger.handlers[0].close()...
PypiClean
/ImSwitchUC2-2.1.0.tar.gz/ImSwitchUC2-2.1.0/imswitch/imcontrol/view/widgets/FFTWidget.py
import pyqtgraph as pg from qtpy import QtCore, QtWidgets from imswitch.imcommon.view.guitools import pyqtgraphtools from imswitch.imcontrol.view import guitools from .basewidgets import Widget class FFTWidget(Widget): """ Displays the FFT transform of the image. """ sigShowToggled = QtCore.Signal(bool) # ...
PypiClean
/Flask-Statics-Helper-1.0.0.tar.gz/Flask-Statics-Helper-1.0.0/flask_statics/static/angular/i18n/angular-locale_ky.js
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; $provide.value("$locale", { "DATETIME_FORMATS": { "AMPMS": [ "\u0442\u0430\u04a3\u043a\u044b", "\u0442\u04af\u0448\u044...
PypiClean
/ClueDojo-1.4.3-1.tar.gz/ClueDojo-1.4.3-1/src/cluedojo/static/dijit/nls/dijit-all_th.js
dojo.provide("dijit.nls.dijit-all_th");dojo.provide("dojo.nls.colors");dojo.nls.colors._built=true;dojo.provide("dojo.nls.colors.th");dojo.nls.colors.th={"lightsteelblue":"light steel blue","orangered":"ส้มแกมแดง","midnightblue":"midnight blue","cadetblue":"cadet blue","seashell":"seashell","slategrey":"slate gray","co...
PypiClean
/IsoCon-0.3.3.tar.gz/IsoCon-0.3.3/modules/SW_alignment_module.py
import signal from multiprocessing import Pool import multiprocessing as mp import sys import parasail import re # import ssw # from Bio import pairwise2 # from Bio.SubsMat import MatrixInfo as matlist def cigar_to_seq(cigar, query, ref): cigar_tuples = [] result = re.split(r'[=DXSMI]+', cigar) i = 0 ...
PypiClean
/NNBuilder-0.3.7.tar.gz/NNBuilder-0.3.7/nnbuilder/extensions/saveload.py
import os from basic import * class SaveLoad(ExtensionBase): def __init__(self): ExtensionBase.__init__(self) self.max = 3 self.freq = 10000 self.save = True self.load = True self.epoch = False self.overwrite = True self.loadfile = None def init...
PypiClean
/Balltic-0.2.0.tar.gz/Balltic-0.2.0/balltic/gasdynamics/pneumatic.py
__author__ = 'Anthony Byuraev' __all__ = ['Pneumatic'] import typing import numpy as np from balltic.core.grid import EulerianGrid from balltic.core.guns import AirGun from balltic.core.gas import Gas class Pneumatic(EulerianGrid): """ Класс - решение основной задачи внутренней баллистики в газоди...
PypiClean
/Microservice_ml_classifier-0.0.0.tar.gz/Microservice_ml_classifier-0.0.0/README.md
# Microservice ml classifier This repository is my attempt to play with areas that are sometimes omitted in machine learning projects. Some of them are: - Packaging the machine learning model - Implement a CI/CD pipeline to ensure code works as expected - Deployment to a production environment - Build an API to creat...
PypiClean
/CAuthomatic-0.1.5.tar.gz/CAuthomatic-0.1.5/examples/gae/showcase/static/js/foundation/foundation.reveal.js
;(function ($, window, document, undefined) { 'use strict'; Foundation.libs.reveal = { name: 'reveal', version : '4.0.9', locked : false, settings : { animation: 'fadeAndPop', animationSpeed: 250, closeOnBackgroundClick: true, dismissModalClass: 'close-reveal-modal', ...
PypiClean
/EPViz-0.0.0.tar.gz/EPViz-0.0.0/visualization/image_saving/saveImg_options.py
import sys from PyQt5.QtWidgets import QWidget, QDialogButtonBox, QFileDialog import numpy as np from matplotlib.backends.backend_qt5agg import FigureCanvas from matplotlib.figure import Figure from visualization.plot_utils import check_annotations from visualization.ui_files.saveImg import Ui_Form class SaveImgOpti...
PypiClean
/Flask_RESTful_extend-0.3.3-py3-none-any.whl/flask_restful_extend/error_handling.py
from flask.ext import restful class ErrorHandledApi(restful.Api): """Usage: api = restful_extend.ErrorHandledApi(app) instead of: api = restful.Api(app) """ def handle_error(self, e): """Resolve sometimes the error message specified by programmer won't output to user's probl...
PypiClean
/CryptoLyzer-0.9.1-py3-none-any.whl/cryptolyzer/ssh/server.py
import abc import attr from cryptodatahub.ssh.algorithm import ( SshCompressionAlgorithm, SshEncryptionAlgorithm, SshHostKeyAlgorithm, SshKexAlgorithm, SshMacAlgorithm, ) from cryptoparser.common.classes import LanguageTag from cryptoparser.ssh.record import SshRecordInit from cryptoparser.ssh.s...
PypiClean
/models/MLP/model_maker.py
# Built in import math # Libs import numpy as np # Pytorch module import torch.nn as nn import torch.nn.functional as F import torch from torch import pow, add, mul, div, sqrt class Forward(nn.Module): def __init__(self, flags): super(Forward, self).__init__() self.skip_connection = flags.skip_...
PypiClean
/KegLogin-0.5.4.tar.gz/KegLogin-0.5.4/scripts/release.sh
# VARIABLES SRC_DIR=keg_login REPO_URL="https://github.com/level12/keg-login" # FUNCTIONS confirm () { # call with a prompt string or use a default read -r -p "${1:-Are you sure?} [y/N]: " response case $response in [yY][eE][sS]|[yY]) true ;; *) false ...
PypiClean
/DigLabTools-0.0.2-py3-none-any.whl/redcap_bridge/server_interface.py
import os import warnings import json import pandas as pd import redcap from redcap_bridge.utils import map_header_csv_to_json, compress_record def upload_datadict(csv_file, server_config_json): """ Parameters ---------- csv_file: str Path to the csv file to be used as data dictionary server_...
PypiClean
/FlydraAnalysisTools-0.0.1.tar.gz/FlydraAnalysisTools-0.0.1/flydra_analysis_tools/flydra_analysis_dataset.py
# depends on flydra.analysis and flydra.a2 -- if these are not installed, point to the appropriate path # once you have this dataset class, the data no longer depends on flydra, and therefore, matplotlib 0.99 import numpy as np import pickle import sys import os import time try: import flydra.a2.core_analys...
PypiClean
/ASGIWebDAV-1.3.2.tar.gz/ASGIWebDAV-1.3.2/asgi_webdav/helpers.py
import hashlib import re import xml.parsers.expat from collections.abc import AsyncGenerator, Callable from logging import getLogger from mimetypes import guess_type as orig_guess_type from pathlib import Path import aiofiles import xmltodict from chardet import UniversalDetector from asgi_webdav.config import Config...
PypiClean
/DjangoDjangoAppCenter-0.0.11-py3-none-any.whl/DjangoAppCenter/simpleui/static/admin/simpleui-x/elementui/umd/locale/lv.js
(function (global, factory) { if (typeof define === "function" && define.amd) { define('element/locale/lv', ['module', 'exports'], factory); } else if (typeof exports !== "undefined") { factory(module, exports); } else { var mod = { exports: {} }; factory(...
PypiClean
/CIRpy-1.0.2.tar.gz/CIRpy-1.0.2/docs/source/guide/install.rst
.. _install: Installation ============ CIRpy supports Python versions 2.7, 3.3, 3.4 and 3.5. There are no required dependencies. Option 1: Use pip (recommended) ------------------------------- The easiest and recommended way to install is using pip:: pip install cirpy This will download the latest version of ...
PypiClean
/OASYS1-shadow4-0.0.10.tar.gz/OASYS1-shadow4-0.0.10/orangecontrib/shadow4/widgets/compatibility/ow_shadow_compare_beam3_beam4.py
import os, sys from PyQt5 import QtGui, QtWidgets from PyQt5.QtGui import QPalette, QColor, QFont from PyQt5.QtWidgets import QApplication, QFileDialog from PyQt5.QtCore import QRect from PyQt5.QtGui import QTextCursor from orangewidget import gui from orangewidget.settings import Setting from oasys.widgets import ...
PypiClean
/ConTexto-0.2.0-py3-none-any.whl/contexto/comparacion.py
import jellyfish import numpy as np from scipy.sparse import issparse from sklearn.metrics.pairwise import cosine_similarity from sklearn.metrics import pairwise_distances from lenguajes import definir_lenguaje from vectorizacion import VectorizadorWord2Vec from utils.auxiliares import cargar_objeto # Para que no se m...
PypiClean
/JsOnXmLSe814Rializer749-1.0.tar.gz/JsOnXmLSe814Rializer749-1.0/Lab_3/helpers/functions.py
from __future__ import annotations import re from types import FunctionType, MethodType, CodeType, ModuleType, \ BuiltinMethodType, BuiltinFunctionType, CellType from typing import Any, Collection, Iterable from ..helpers.constants import IGNORED_FIELDS, IGNORED_FIELD_TYPES, TYPE_MAPPING def get_items(obj) -> ...
PypiClean
/Mesa-2.1.1-py3-none-any.whl/mesa/visualization/modules/BarChartVisualization.py
import json from typing import ClassVar from mesa.visualization.ModularVisualization import D3_JS_FILE, VisualizationElement class BarChartModule(VisualizationElement): """Each bar chart can either visualize model-level or agent-level fields from a datcollector with a bar chart. Attributes: ...
PypiClean
/Flask-CKEditor-0.4.6.tar.gz/Flask-CKEditor-0.4.6/flask_ckeditor/static/full/plugins/specialchar/dialogs/lang/km.js
/* Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ CKEDITOR.plugins.setLang("specialchar","km",{euro:"សញ្ញា​អឺរ៉ូ",lsquo:"Left single quotation mark",rsquo:"Right single quotation mark",ldquo:"Left double ...
PypiClean
/DeepPhysX.Torch-22.12-py3-none-any.whl/DeepPhysX/examples/Torch/tutorial/FC.py
import torch from time import time # DeepPhysX's PyTorch imports from DeepPhysX.Torch.FC.FCConfig import FCConfig def main(): # FC configuration fc_config = FCConfig(network_dir=None, # Path with a trained network to load parameters network_name="MyUnet", ...
PypiClean
/MagnetiCalc-1.15.2.tar.gz/MagnetiCalc-1.15.2/magneticalc/About_Dialog.py
# ISC License # # Copyright (c) 2020–2022, Paul Wilhelm, M. Sc. <anfrage@paulwilhelm.de> # # Permission to use, copy, modify, and/or distribute this software for any # purpose with or without fee is hereby granted, provided that the above # copyright notice and this permission notice appear in all copies. # # TH...
PypiClean
/Flask_Unchained-0.9.0-py3-none-any.whl/flask_unchained/bundles/security/config.py
from datetime import datetime, timezone from flask import abort from flask_unchained import BundleConfig from http import HTTPStatus from .forms import ( LoginForm, RegisterForm, ForgotPasswordForm, ResetPasswordForm, ChangePasswordForm, SendConfirmationForm, ) from .models import AnonymousUser...
PypiClean
/Docassemble-Pattern-3.6.7.tar.gz/Docassemble-Pattern-3.6.7/docassemble_pattern/vector/svm/libsvmutil.py
from __future__ import absolute_import from __future__ import unicode_literals from __future__ import print_function from __future__ import division from builtins import str, bytes, dict, int from builtins import object, range from builtins import map, zip, filter import os import sys from .libsvm import * from .lib...
PypiClean
/DendroPy_calver-2023.330.2-py3-none-any.whl/dendropy/utility/processio.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
/Newcalls-0.0.1-cp37-cp37m-win_amd64.whl/newcalls/node_modules/@types/node/ts4.8/stream/web.d.ts
declare module 'stream/web' { // stub module, pending copy&paste from .d.ts or manual impl // copy from lib.dom.d.ts interface ReadableWritablePair<R = any, W = any> { readable: ReadableStream<R>; /** * Provides a convenient, chainable way of piping this readable stream * t...
PypiClean
/C_MTEB-1.0.0.tar.gz/C_MTEB-1.0.0/C_MTEB/tasks/Retrieval.py
from collections import defaultdict from datasets import load_dataset, DatasetDict from mteb import AbsTaskRetrieval def load_retrieval_data(hf_hub_name, eval_splits): eval_split = eval_splits[0] dataset = load_dataset(hf_hub_name) qrels = load_dataset(hf_hub_name + '-qrels')[eval_split] corpus = {e[...
PypiClean
/CPAT-3.0.4.tar.gz/CPAT-3.0.4/.eggs/nose-1.3.7-py3.7.egg/nose/commands.py
try: from setuptools import Command except ImportError: Command = nosetests = None else: from nose.config import Config, option_blacklist, user_config_files, \ flag, _bool from nose.core import TestProgram from nose.plugins import DefaultPluginManager def get_user_options(parser): ...
PypiClean
/LUBEAT-0.13.1-cp38-cp38-macosx_10_9_x86_64.whl/econml/policy/_drlearner.py
from warnings import warn import numpy as np from sklearn.base import clone from ..utilities import check_inputs, filter_none_kwargs, check_input_arrays from ..dr import DRLearner from ..dr._drlearner import _ModelFinal from .._tree_exporter import _SingleTreeExporterMixin from ._base import PolicyLearner from . impor...
PypiClean
/FEV_KEGG-1.1.4.tar.gz/FEV_KEGG-1.1.4/FEV_KEGG/Evolution/Events.py
from typing import Set, Dict, Tuple from FEV_KEGG.Graph.Elements import Enzyme, EcNumber from FEV_KEGG.Graph.SubstanceGraphs import SubstanceEnzymeGraph, SubstanceEcGraph from FEV_KEGG.KEGG import Database from builtins import set from FEV_KEGG.KEGG.Organism import Group from _collections_abc import Iterable from FEV_...
PypiClean
/Finance-Python-0.9.10.tar.gz/Finance-Python-0.9.10/PyFin/Analysis/__init__.py
u""" Created on 2015-8-8 @author: cheng.li """ from PyFin.Analysis.DataProviders import DataProvider from PyFin.Analysis.SecurityValueHolders import SecurityShiftedValueHolder from PyFin.Analysis.SecurityValueHolders import SecurityDeltaValueHolder from PyFin.Analysis.SecurityValueHolders import SecurityIIFValueHolde...
PypiClean
/OBP_security_pillar_2-0.0.4.tar.gz/OBP_security_pillar_2-0.0.4/OBP_security_pillar_2/ec2/vpc_flow_logs_enabled.py
import logging from botocore.exceptions import ClientError logging.basicConfig(level=logging.INFO) logger = logging.getLogger() # Ensure VPC flow logging is enabled in all VPCs (Scored) def vpc_logging_enabled(self) -> dict: logger.info(" ---Inside vpc_logging_enabled()--- ") """Summary Returns: ...
PypiClean
/EOxServer-1.2.12-py3-none-any.whl/eoxserver/services/ows/wps/parameters/allowed_values.py
from math import isinf try: from itertools import chain, ifilterfalse as filterfalse except ImportError: from itertools import filterfalse from .data_types import BaseType, Double, DTYPES class TypedMixIn(object): """ Mix-in class adding date-type to an allowed value range. """ # pylint: disable=too...
PypiClean
/Daarmaan-0.2.2.tar.gz/Daarmaan-0.2.2/daarmaan/server/views/general.py
import json from django.shortcuts import render_to_response as rr from django.shortcuts import redirect, get_object_or_404 from django.template import RequestContext from django.contrib.auth import authenticate, login from django.utils.translation import ugettext as _ from django.core.urlresolvers import reverse from...
PypiClean
/MSM_PELE-1.1.1-py3-none-any.whl/AdaptivePELE/AdaptivePELE/automateRoundsAdaptive.py
from __future__ import absolute_import, division, print_function, unicode_literals from AdaptivePELE.simulation import simulationrunner import AdaptivePELE.adaptiveSampling as adaptiveSampling import argparse import os def automateSimulation(args): """ Run multiple AdaptivePELE simulation with the same pa...
PypiClean
/Djblets-3.3.tar.gz/Djblets-3.3/docs/releasenotes/2.2.rst
.. default-intersphinx:: django1.11 djblets2.x ========================= Djblets 2.2 Release Notes ========================= **Release date**: March 2, 2021 Performance Improvements ======================== * Improved compilation times with our :py:class:`~djblets.pipeline.compilers.less.LessCompiler` for LessC...
PypiClean
/Flask-MDEditor-0.1.4.tar.gz/Flask-MDEditor-0.1.4/flask_mdeditor/static/mdeditor/js/lib/codemirror/addon/comment/continuecomment.js
(function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { var ...
PypiClean
/Mathics_Django-6.0.0-py3-none-any.whl/mathics_django/web/media/js/mathjax/localization/ja/FontWarnings.js
MathJax.Localization.addTranslation("ja","FontWarnings",{version:"2.7.9",isLoaded:true,strings:{webFont:"MathJax \u306F\u3053\u306E\u30DA\u30FC\u30B8\u3067\u3001\u6570\u5F0F\u3092\u8868\u793A\u3059\u308B\u305F\u3081\u306B\u30A6\u30A7\u30D6 \u30D9\u30FC\u30B9\u306E\u30D5\u30A9\u30F3\u30C8\u3092\u4F7F\u7528\u3057\u3066\u...
PypiClean
/Boodler-2.0.3.tar.gz/Boodler-2.0.3/src/boodle/sample.py
import fileinput import os import os.path import aifc import wave import sunau import struct import bisect # Maps File objects, and also str/unicode pathnames, to Samples. cache = {} # We still support $BOODLER_SOUND_PATH, for old times' sake. # But packaged modules should not rely on it. sound_dirs = os.environ.get(...
PypiClean
/BCPy2000-1.6.tar.gz/BCPy2000-1.6/src/AppTools/Displays.py
__all__ = [ 'monitors', 'monitor', 'number_of_monitors', 'init_screen', 'split_33_66', 'fullscreen', 'main_coordinate_frame', 'scr', ] from . import Boxes import platform if platform.system().lower() == 'windows': try: import win32api def monitors(): """ Returns a list of AppTools.Boxes.box objects, one...
PypiClean
/0x-web3-5.0.0a5.tar.gz/0x-web3-5.0.0a5/web3/middleware/validation.py
from eth_utils.curried import ( apply_formatter_at_index, apply_formatter_if, apply_formatters_to_dict, is_null, ) from hexbytes import ( HexBytes, ) from web3._utils.toolz import ( complement, compose, curry, dissoc, ) from web3.exceptions import ( ValidationError, ) from web3....
PypiClean
/GailBot-0.2a0-py3-none-any.whl/gailbot/api.py
from typing import List, Dict, Union, Tuple, Callable from gailbot.services import ServiceController, SettingDict from gailbot.workspace import WorkspaceManager from .plugins.suite import PluginSuite from gailbot.core.utils.logger import makelogger logger = makelogger("gb_api") class GailBot: """ Class for ...
PypiClean
/Mopidy_Multisonic-0.5.2-py3-none-any.whl/mopidy_multisonic/lookup.py
from mopidy import models from .backend import logger from . import cache from . import uri_parser from . import httpclient from . import browser def log_subsonic_error(error): logger.error("Failed to lookup: " + str(error["code"]) + " : " + error["message"]) def build_track_model(song, http_client_config): a...
PypiClean
/NVDA-addonTemplate-0.5.2.zip/NVDA-addonTemplate-0.5.2/NVDAAddonTemplate/data/{{cookiecutter.project_slug}}/scons-local-2.5.0/SCons/Scanner/Dir.py
__revision__ = "src/engine/SCons/Scanner/Dir.py rel_2.5.0:3543:937e55cd78f7 2016/04/09 11:29:54 bdbaddog" import SCons.Node.FS import SCons.Scanner def only_dirs(nodes): is_Dir = lambda n: isinstance(n.disambiguate(), SCons.Node.FS.Dir) return list(filter(is_Dir, nodes)) def DirScanner(**kw): """Return ...
PypiClean
/FightMan01dc.pymod-2.0.4.tar.gz/FightMan01dc.pymod-2.0.4/discord/invite.py
from .asset import Asset from .utils import parse_time, snowflake_time from .mixins import Hashable from .enums import ChannelType, VerificationLevel, try_enum from collections import namedtuple class PartialInviteChannel(namedtuple('PartialInviteChannel', 'id name type')): """Represents a "partial" invite channel...
PypiClean
/EnergyCapSdk-8.2304.4743.tar.gz/EnergyCapSdk-8.2304.4743/energycap/sdk/models/address_child_py3.py
from msrest.serialization import Model class AddressChild(Model): """AddressChild. :param address_type_id: The address type identifier :type address_type_id: int :param line1: The line 1 of the address <span class='property-internal'>Must be between 0 and 100 characters</span> :type line1: ...
PypiClean
/OctoBot-Trading-2.4.23.tar.gz/OctoBot-Trading-2.4.23/octobot_trading/personal_data/trades/trade_pnl.py
import decimal import octobot_trading.constants as constants import octobot_trading.errors as errors import octobot_trading.enums as enums import octobot_trading.personal_data.orders.order_util as order_util import octobot_commons.symbols as symbols class TradePnl: def __init__(self, entries, closes): se...
PypiClean
/EOxServer-1.2.12-py3-none-any.whl/eoxserver/services/ows/common/v20/encoders.py
from django.conf import settings import traceback from itertools import chain from lxml import etree from lxml.builder import ElementMaker from eoxserver.core.util.xmltools import XMLEncoder, NameSpace, NameSpaceMap from eoxserver.services.ows.dispatch import filter_handlers ns_xlink = NameSpace("http://www.w3.org...
PypiClean
/GNS-1.0-py3-none-any.whl/gns/nested_sampler.py
import numpy as np import matplotlib.pyplot as plt import sys import scipy.stats import scipy.integrate #import getdist ##########misc functions def logAddArr(x, y, axis = None): """ logaddexp where x is a scalar and y is an array. Returns a scalar in case that axis = None (exponentiates elements of array then a...
PypiClean
/HCGB-0.5.5.tar.gz/HCGB-0.5.5/README.md
# Description This is a basic python module that contains multiple functions used in different projects. ## Contents HCGB/sampleParser: * files.py * merge.py * samples.py HCGB/functions: * aesthetics_functions.py * fasta_functions.py * main_functions.py * time_functions.py * blast_functions.py ...
PypiClean
/AaronTools-1.0b14.tar.gz/AaronTools-1.0b14/README.md
<a href="https://badge.fury.io/py/AaronTools"><img src="https://badge.fury.io/py/AaronTools.svg" alt="PyPI version" height="18"></a> # AaronTools.py AaronTools provides a collection of tools for automating routine tasks encountered when running quantum chemistry computations. These tools can be used either directly wi...
PypiClean
/DJModels-0.0.6-py3-none-any.whl/djmodels/core/management/commands/compilemessages.py
import codecs import concurrent.futures import glob import os from djmodels.core.management.base import BaseCommand, CommandError from djmodels.core.management.utils import find_command, popen_wrapper def has_bom(fn): with open(fn, 'rb') as f: sample = f.read(4) return sample.startswith((codecs.BOM_U...
PypiClean
/Ajango-1.0.0.tar.gz/Ajango-1.0.0/ajango/core/factory.py
import importlib from django.core.management.base import CommandError from django.core.exceptions import ImproperlyConfigured from django.utils.termcolors import make_style from django.core.management.color import supports_color from django.conf import settings from abc ...
PypiClean
/MAVR-0.93.tar.gz/MAVR-0.93/scripts/sequence/histogram_length.py
__author__ = 'Sergei F. Kliver' import argparse """ from numpy import arange, int32, append import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt from RouToolPa.Collections.General import SynDict """"" from RouToolPa.Routines import DrawingRoutines parser = argparse.ArgumentParser() parser.add_ar...
PypiClean
/DDFacet-0.7.2.0.tar.gz/DDFacet-0.7.2.0/SkyModel/Other/ClassCasaImage.py
from __future__ import division, absolute_import, print_function from pyrap.images import image import os from SkyModel.Other import MyPickle import numpy as np #from SkyModel.Other import MyLogger #log=MyLogger.getLogger("ClassCasaImage") from DDFacet.Other import logger log=logger.getLogger("ClassCasaImage") from Sky...
PypiClean
/CloudFerry-1.55.2.tar.gz/CloudFerry-1.55.2/cloudferry/actions/networking/instance_floatingip_actions.py
import copy from cloudferry.lib.base.action import action from cloudferry.lib.os.network import network_utils from cloudferry.lib.utils import utils as utl class AssociateFloatingip(action.Action): """Associates previously created VM port with floating IP port Depends on: - Identity objects migrated ...
PypiClean
/FlaskCms-0.0.4.tar.gz/FlaskCms-0.0.4/flask_cms/static/js/ace/mode-csharp.js
ace.define("ace/mode/doc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"], function(require, exports, module) { "use strict"; var oop = require("../lib/oop"); var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules; var DocCommentHighlightRule...
PypiClean
/K_AIKO-0.5.2-py3-none-any.whl/kaiko/kerminal.py
import time import itertools import functools import re import contextlib import queue import threading import signal import numpy import pyaudio import audioread from . import cfg from . import datanodes as dn from . import tui @contextlib.contextmanager def nullcontext(value): yield value @contextlib.contextma...
PypiClean
/M2CryptoWin64-0.21.1-3.tar.gz/M2CryptoWin64-0.21.1-3/M2Crypto/EVP.py
from M2Crypto import Err, util, BIO, RSA import m2 class EVPError(Exception): pass m2.evp_init(EVPError) def pbkdf2(password, salt, iter, keylen): """ Derive a key from password using PBKDF2 algorithm specified in RFC 2898. @param password: Derive the key from this password. @type password: st...
PypiClean
/fisinma-0.1.0.tar.gz/fisinma-0.1.0/docs/source/theoretical_overview/theoretical_background/sensitivity_calculation.rst
Sensitivity Calculation ======================= .. note:: In-depth information about the theoretical underlying and the calculation methods will be described in a book chapter releasing in the near future. The Fisher information matrix (FIM) can be easily calculated via the sensitivity matrix :math:`S`: .. math:...
PypiClean
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/charting/DataSeries.js.uncompressed.js
define("dojox/charting/DataSeries", ["dojo/_base/lang", "dojo/_base/declare", "dojo/_base/array", "dojo/_base/connect", "dojox/lang/functional"], function(Lang, declare, ArrayUtil, Hub, df){ return declare("dojox.charting.DataSeries", null, { constructor: function(store, kwArgs, value){ // summary: // Seri...
PypiClean
/Nuitka_fixed-1.1.2-cp310-cp310-win_amd64.whl/nuitka/plugins/standard/NumpyPlugin.py
""" Details see below in class definition. """ import os import re from nuitka import Options from nuitka.plugins.PluginBase import NuitkaPluginBase from nuitka.PythonVersions import getSystemPrefixPath from nuitka.utils.FileOperations import listDir, listDllFilesFromDirectory from nuitka.utils.Utils import isMacOS, i...
PypiClean
/MDP-3.6.tar.gz/MDP-3.6/bimdp/inspection/utils.py
from future import standard_library standard_library.install_aliases() from builtins import next from builtins import object import os import pickle as pickle def robust_pickle(path, filename, obj): """Robust pickle function, creates path if it does not exist.""" filename = os.path.join(path, filename) t...
PypiClean
/Faker-19.3.1.tar.gz/Faker-19.3.1/faker/providers/lorem/th_TH/__init__.py
from typing import Dict from .. import Provider as LoremProvider class Provider(LoremProvider): """Implement lorem provider for ``th_TH`` locale. Word list is randomly drawn from the Thailand's Ministry of Education, removing compound words and long words, adding common words (like prepositions) and...
PypiClean
/MaterialDjango-0.2.5.tar.gz/MaterialDjango-0.2.5/materialdjango/static/materialdjango/components/bower_components/paper-listbox/.github/ISSUE_TEMPLATE.md
<!-- Instructions: https://github.com/PolymerElements/paper-listbox/CONTRIBUTING.md#filing-issues --> ### Description <!-- Example: The `paper-foo` element causes the page to turn pink when clicked. --> ### Expected outcome <!-- Example: The page stays the same color. --> ### Actual outcome <!-- Example: The page t...
PypiClean
/AstroCabTools-1.5.1.tar.gz/AstroCabTools-1.5.1/astrocabtools/fit_line/src/models/lineModelCreation.py
import numpy as np import pandas as pd from lmfit import Parameters, Model import sys import traceback import io from collections import deque from .linePointsData import linePointsData from astrocabtools.fit_line.src.utils.fitting_model_creation import calculate_intercept, calculate_slope, integrated_flux, line_...
PypiClean
/Eureqa-1.76.0.tar.gz/Eureqa-1.76.0/eureqa/analysis_templates/parameters.py
from parameter import Parameter from text_parameter import TextParameter from data_source_parameter import DataSourceParameter from top_level_model_parameter import TopLevelModelParameter from variable_parameter import VariableParameter from data_file_parameter import DataFileParameter from combo_box_parameter import...
PypiClean
/Image2Dia-0.51.tar.gz/Image2Dia-0.51/image2dia/image2dia.py
import os import sys try: from lxml import etree import Image import shutil import cairo import rsvg except: print """ERROR: Some dependencies failed" cairo, rsvg, PIL and lxml needed" """ class Image2Dia(): ''' This class inserts an image file into an DIA sheet. ...
PypiClean
/IPFX-1.0.8.tar.gz/IPFX-1.0.8/docs/installation.rst
.. highlight:: shell ============ Installation ============ The easiest way to install ``ipfx`` is via pip: .. code-block:: bash pip install ipfx We suggest installing ``ipfx`` into a managed Python environment, such as those provided by `anaconda <https://anaconda.org/anaconda/anaconda-project>`_ or `venv <ht...
PypiClean
/HyFetch_testing-1.5.0rc3-py3-none-any.whl/hyfetch/color_util.py
from __future__ import annotations import colorsys from typing import NamedTuple, Callable, Optional from typing_extensions import Literal from .constants import GLOBAL_CFG AnsiMode = Literal['default', 'ansi', '8bit', 'rgb'] LightDark = Literal['light', 'dark'] MINECRAFT_COLORS = ["&0/\033[0;30m", "&1/\033[0;34m...
PypiClean
/hypergraphanalysistoolbox-1.0.20.tar.gz/hypergraphanalysistoolbox-1.0.20/HAT/HAT.py
import itertools from itertools import combinations import numpy as np import scipy as sp import scipy.io import networkx as nx import os import HAT.multilinalg import HAT def directSimilarity(HG1, HG2, measure='Hamming'): """This function computes the direct similarity between two uniform hypergraphs. :para...
PypiClean
/EbookLib-re-0.18.0.tar.gz/EbookLib-re-0.18.0/ebooklib/epub.py
import zipfile import six import logging import uuid import warnings import posixpath as zip_path import os.path from collections import OrderedDict try: from urllib.parse import unquote except ImportError: from urllib import unquote from lxml import etree import ebooklib from ebooklib.utils import parse_s...
PypiClean
/MIAvisual-0.0.6-py3-none-any.whl/matplotlib/animation.py
import abc import base64 import contextlib from io import BytesIO, TextIOWrapper import itertools import logging from pathlib import Path import shutil import subprocess import sys from tempfile import TemporaryDirectory import uuid import warnings import numpy as np from PIL import Image import matplotlib as mpl fr...
PypiClean
/IsPycharmRun-1.0.tar.gz/IsPycharmRun-1.0/poco/utils/simplerpc/jsonrpc/backend/flask.py
from __future__ import absolute_import import copy import json import logging import time from uuid import uuid4 from flask import Blueprint, request, Response from ..exceptions import JSONRPCInvalidRequestException from ..jsonrpc import JSONRPCRequest from ..manager import JSONRPCResponseManager from ..utils import...
PypiClean
/NURBS-Python-3.8.0.tar.gz/NURBS-Python-3.8.0/geomdl/shapes/curve2d.py
from geomdl import NURBS # Generates a NURBS circle from 9 control points def full_circle(radius=1): """ Generates a NURBS full circle from 9 control points. :param radius: radius of the circle :type radius: int, float :return: a NURBS curve :rtype: NURBS.Curve """ if radius <= 0: ...
PypiClean
/Hikka_Pyro-2.0.66-py3-none-any.whl/pyrogram/types/inline_mode/inline_query_result_location.py
import pyrogram from pyrogram import raw, types from .inline_query_result import InlineQueryResult class InlineQueryResultLocation(InlineQueryResult): """A location on a map. By default, the location will be sent by the user. Alternatively, you can use *input_message_content* to send a message with the ...
PypiClean
/ARS-0.5a2.zip/ARS-0.5a2/ars/model/physics/ode_objects_factories.py
import ode from ...constants import G_VECTOR #============================================================================== # Environment #============================================================================== def create_ode_world(gravity=G_VECTOR, ERP=0.8, CFM=1E-10): """Create an ODE world object. :pa...
PypiClean
/Coveralls-HG-2.0.0.2.tar.gz/Coveralls-HG-2.0.0.2/coveralls_hg/api.py
import json import hashlib import requests from coverage import __version__ as coverage_version # coverage 3 and 4 have api changes, since I use pydev which is still stuck # on coverage 3, but the rest of the world has moved on I'll need to support # both. from coverage import coverage as Coverage BASE='https://covera...
PypiClean
/Cubane-1.0.11.tar.gz/Cubane-1.0.11/cubane/backend/static/cubane/backend/tinymce/js/tinymce/plugins/image/plugin.min.js
!function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=tinymce.util.Tools.resolve("tinymce.util.Tools"),n={hasDimensions:function(e){return!1!==e.settings.image_dimensions},hasAdvTab:function(e){return!0===e.settings.image_advtab},getPrependUrl:function(e){return e.getParam("image_prepend_...
PypiClean
/githubkit-0.10.7-py3-none-any.whl/githubkit/rest/secret_scanning.py
from typing import TYPE_CHECKING, Dict, List, Union, Literal, Optional, overload from pydantic import BaseModel, parse_obj_as from githubkit.utils import UNSET, Missing, exclude_unset from .types import ReposOwnerRepoSecretScanningAlertsAlertNumberPatchBodyType from .models import ( BasicError, SecretScannin...
PypiClean
/Bravo-2.0.tar.gz/Bravo-2.0/bravo/utilities/geometry.py
def gen_line_simple(point1, point2): """ An adaptation of Bresenham's line algorithm in three dimensions. This function returns an iterable of integer coordinates along the line from the first point to the second point. No points are omitted. """ # XXX should be done with ints instead of float...
PypiClean