id
stringlengths
1
265
text
stringlengths
6
5.19M
dataset_id
stringclasses
7 values
/Flask-Statics-Helper-1.0.0.tar.gz/Flask-Statics-Helper-1.0.0/flask_statics/static/angular/i18n/angular-locale_uk.js
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; function getDecimals(n) { n = n + ''; var i = n.indexOf('.'); return (i == -1) ? 0 : n.length - i - 1; } function getVF(n, opt_pre...
PypiClean
/AnDOviewer-0.1-py3-none-any.whl/script/AnDOviewer.py
import pandas as pd import argparse import os import sys def show_struct(directory): """ Show the structure of the directory given in argument Args: directory ([Path]): [Path of the directory to show] """ cmd = "tree -d "+directory os.system(cmd) def show_experiments(directory): ...
PypiClean
/LumberMill-0.9.5.7-py3-none-any.whl/lumbermill/modifier/AddDateTime.py
import time import datetime from lumbermill.BaseThreadedModule import BaseThreadedModule from lumbermill.utils.Decorators import ModuleDocstringParser @ModuleDocstringParser class AddDateTime(BaseThreadedModule): """ Add a field with a datetime. If source_fields is not set, datetime will be based on cu...
PypiClean
/AICON-2.0.1-py3-none-any.whl/aicon/myemc.py
import numpy as np import sys import time class EffectMass(object): '''This class is used to calculate band effective mass at specific point and store the data. ''' EMC_VERSION = '1.51py' STENCIL = 5 #3 or 5 Bohr = 0.52917721092 def __init__(self): ###############################...
PypiClean
/CDS-1.0.1.tar.gz/CDS-1.0.1/cds/modules/deposit/views.py
from __future__ import absolute_import, print_function from flask import Blueprint, current_app, url_for, render_template from flask_security import current_user from invenio_records_ui.signals import record_viewed from cds.modules.records.permissions import has_admin_permission, \ has_read_record_eos_path_permis...
PypiClean
/Attendance%20Module-0.3.tar.gz/Attendance Module-0.3/Attendance/static/scripts/index.js
function getRoute(route, route_prepend = window.location.pathname) { if (route.startsWith("/")) { return route_prepend + route.substring(1); } else { return route_prepend + route; } } function getClasslist() { logConsole("Getting Class List"); const Url = getRoute('api/classlist...
PypiClean
/Menus-0.2.0.tar.gz/Menus-0.2.0/menus/example.py
import logging from menus.menu import BaseMenu log = logging.getLogger(__name__) class Cool(BaseMenu): def __init__(self): # An option is a tuple which consists of ('Display Name', function) commands = [('Speak', self.speak)] super(Cool, self).__init__(commands=commands) def speak...
PypiClean
/Dragline-2.4.3-py3-none-any.whl/dragline/crawl.py
from dragline import __version__, runtime import six import time from uuid import uuid4 from pytz import timezone from datetime import datetime from requests.compat import urlsplit from six import b from gevent.lock import BoundedSemaphore from . import redisds from .http import Request, RequestError from .utils impor...
PypiClean
/BubbleDet-1.0.0.tar.gz/BubbleDet-1.0.0/examples/derivative_expansion.py
import numpy as np # arrays and maths import matplotlib.pyplot as plt # plots from scipy.optimize import curve_fit # fitting from cosmoTransitions.tunneling1D import SingleFieldInstanton # bounce from BubbleDet import BubbleConfig, ParticleConfig, BubbleDeterminant # dimension dim = 4 print(f"dim = {dim}") # Lagr...
PypiClean
/MuPhyN-0.1.1.post4-py3-none-any.whl/muphyn/packages/core/application/plci_core_scheduler_exception.py
import traceback from typing import List from muphyn.packages.core.base import LogManager from muphyn.packages.core.application.plci_core_diagram import Diagram from muphyn.packages.core.application.plci_core_box import Box from muphyn.packages.core.application.plci_core_signal_event import SignalEvent #-----------...
PypiClean
/KL_Audit_supportV1.3-1.3-py3-none-any.whl/AuditModule/core/applications/AuditManagementModules.py
from AuditModule.common import AppConstants from AuditModule.util import Logging as LOGG import traceback import json from AuditModule.core.applications import AuditUserManagementStrategies Logger = LOGG.get_logger() def audit_logs_modules(application_type, content_type, application_data, op_type): try: ...
PypiClean
/AFQ-Browser-0.3.tar.gz/AFQ-Browser-0.3/afqbrowser/gh_pages.py
import os import os.path as op import getpass import tempfile import pandas as pd import github as gh import git def upload(target, repo_name, uname=None, upass=None, token=None, org=None, to_vault=True): """ Upload an assembled AFQ-Browser site to a github pages website. Parameters -----...
PypiClean
/MarkDo-0.3.0.tar.gz/MarkDo-0.3.0/markdo/static/bower/codemirror/mode/rust/rust.js
CodeMirror.defineMode("rust", function() { var indentUnit = 4, altIndentUnit = 2; var valKeywords = { "if": "if-style", "while": "if-style", "else": "else-style", "do": "else-style", "ret": "else-style", "fail": "else-style", "break": "atom", "cont": "atom", "const": "let", "resource": "fn", "let": ...
PypiClean
/Buycoins%20Python%20SDK-0.0.1.tar.gz/Buycoins Python SDK-0.0.1/README.md
# Buycoins Python SDK Python SDK for Buycoins ![Python Package Workflow](https://github.com/GoZaddy/buycoins_sdk/workflows/Python%20package/badge.svg) # Introduction Buycoins SDK is a Python SDK for the Buycoins API With this SDK, you gain access to all the functionality of [the official Buycoins API](https://devel...
PypiClean
/observations-0.1.4.tar.gz/observations-0.1.4/observations/r/mroz.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 mroz(path): """U.S. Women's Labor-Force Participation The `Mroz` data frame has 753 rows a...
PypiClean
/CheckMates-0.2.0-py3-none-any.whl/checkmates/utils/woodwork_utils.py
import numpy as np import pandas as pd import woodwork as ww numeric_and_boolean_ww = [ ww.logical_types.Integer.type_string, ww.logical_types.Double.type_string, ww.logical_types.Boolean.type_string, ww.logical_types.Age.type_string, ww.logical_types.AgeFractional.type_string, ww.logical_types...
PypiClean
/EpyNN-1.2.11.tar.gz/EpyNN-1.2.11/epynn/gru/parameters.py
import numpy as np def gru_compute_shapes(layer, A): """Compute forward shapes and dimensions from input for layer. """ X = A # Input of current layer layer.fs['X'] = X.shape # (m, s, e) layer.d['m'] = layer.fs['X'][0] # Number of samples (m) layer.d['s'] = layer.fs['X'][1] # Ste...
PypiClean
/HPPPM-0.1.tar.gz/HPPPM-0.1/hpppm/demand_management.py
import re from datetime import datetime from httplib import * from jinja2 import * from hpppm.error_handler import * __version__ = '0.1' class DemandManagement(ErrorHandler): """ A framework that helps automate the Web service interaction offered by HP Project and Portfolio Management(aka - HPPPM...
PypiClean
/NICpolpy-0.1.5-py3-none-any.whl/nicpolpy/ysfitsutilpy4nicpolpy/astroim.py
# from astropy import units as u # from astropy.io import fits # from astropy.nddata import CCDData # from .hduutil import _parse_extension, load_ccd, set_ccd_gain_rdnoise # try: # import fitsio # HAS_FITSIO = True # except ImportError: # HAS_FITSIO = False # # class AstroImageMixin: # # @classmetho...
PypiClean
/KratosStructuralMechanicsApplication-9.4-cp310-cp310-win_amd64.whl/KratosMultiphysics/StructuralMechanicsApplication/trilinos_structural_mechanics_implicit_dynamic_solver.py
import KratosMultiphysics # Import applications import KratosMultiphysics.StructuralMechanicsApplication as StructuralMechanicsApplication import KratosMultiphysics.TrilinosApplication as TrilinosApplication # Import base class file from KratosMultiphysics.StructuralMechanicsApplication.trilinos_structural_mechanics_...
PypiClean
/Mathics_Django-6.0.0-py3-none-any.whl/mathics_django/web/media/js/mathjax/extensions/MathML/mml3.js
MathJax.Extension["MathML/mml3"]={version:"2.7.9"};MathJax.Hub.Register.StartupHook("MathML Jax Ready",function(){var d=MathJax.InputJax.MathML,g=d.Parse.prototype;d.prefilterHooks.Add(function(j){if(!d.mml3XSLT){return}if(!d.ParseXML){d.ParseXML=d.createParser()}var k=d.ParseXML(g.preProcessMath(j.math));var i=d.mml3X...
PypiClean
/Django-4.2.4.tar.gz/Django-4.2.4/django/contrib/gis/gdal/raster/band.py
from ctypes import byref, c_double, c_int, c_void_p from django.contrib.gis.gdal.error import GDALException from django.contrib.gis.gdal.prototypes import raster as capi from django.contrib.gis.gdal.raster.base import GDALRasterBase from django.contrib.gis.shortcuts import numpy from django.utils.encoding import force...
PypiClean
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/mobile/app/compat.js.uncompressed.js
This is an optimized version of Dojo, built for deployment and not for development. To get sources and documentation, please visit: http://dojotoolkit.org */ //>>built require({cache:{ 'dojox/main':function(){ define(["dojo/_base/kernel"], function(dojo) { // module: // dojox/main // summary: // The dojox p...
PypiClean
/DUlib-0.9.3.tar.gz/DUlib-0.9.3/du/conv/models.py
# Todo: # - ConvFFNet and others(?) only works with 1 channel input # to the first conv layer (so only b&w images??). # - ConvFFNet likely breaks(?) with strides and paddings other # than the default # - add options to change for example the nonlinearities. # - check stuff in init of classes with assert...
PypiClean
/Crestify_Unalix-0.6.1.tar.gz/Crestify_Unalix-0.6.1/unalix/_http.py
from http.client import HTTPConnection, HTTPSConnection from http.cookiejar import CookieJar, DefaultCookiePolicy import os from urllib.parse import urlparse, urlunparse from ._config import ( allowed_cookies, httpopt ) from ._exceptions import InvalidScheme from ._utils import requote_uri def create_connecti...
PypiClean
/Django-Org-Associations-0.1.4.tar.gz/Django-Org-Associations-0.1.4/django_associations/migrations/0001_initial.py
from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion import uuid class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] ...
PypiClean
/Brian2-2.5.4-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl/brian2/sphinxext/generate_examples.py
import fnmatch import glob import os import shutil from collections import defaultdict class GlobDirectoryWalker: # a forward iterator that traverses a directory tree def __init__(self, directory, pattern="*"): self.stack = [directory] self.pattern = pattern self.files = [] se...
PypiClean
/FLAML-2.0.2-py3-none-any.whl/flaml/autogen/code_utils.py
import signal import subprocess import sys import os import pathlib from typing import List, Dict, Tuple, Optional, Union, Callable import re import time from hashlib import md5 import logging from flaml.autogen import oai try: import docker except ImportError: docker = None DEFAULT_MODEL = "gpt-4" FAST_MODEL...
PypiClean
/Adyan_test-0.2.9-py3-none-any.whl/Adyan/Utils/Mongo_conn.py
from datetime import datetime from pymongo import MongoClient class MongoConn(object): def __init__(self, db_name, config): """ :param db_name: :param config: { "host": "192.168.20.211", # "host": "47.107.86.234", "port": 27017 } "...
PypiClean
/FIXation-0.0.4.tar.gz/FIXation-0.0.4/README.md
Generate nice looking documents from your FIX repository. ### Command-line interface `fix-parse [--base fixation/fix_repository_2010_edition_20140507] [--document] [--fiximate]` `--base` points to where you're storing your fix repository. `--document` generates a single-page document.html suitable for turning into ...
PypiClean
/FamcyDev-0.3.71-py3-none-any.whl/Famcy/bower_components/jquery/src/queue.js
define( [ "./core", "./data/var/dataPriv", "./deferred", "./callbacks" ], function( jQuery, dataPriv ) { "use strict"; jQuery.extend( { queue: function( elem, type, data ) { var queue; if ( elem ) { type = ( type || "fx" ) + "queue"; queue = dataPriv.get( elem, type ); // Speed up dequeue by getti...
PypiClean
/Hyperstatic-0.2.0-cp38-cp38-win_amd64.whl/hyperstatic/core/fe_model/element/quad/DKGQ.py
import numpy as np import scipy.sparse as spr from hyperstatic.core.fe_model.meta.membranes import GQ12 from hyperstatic.core.fe_model.meta.plates import metaDKQ from hyperstatic.core.fe_model.node import Node from hyperstatic.core.fe_model.element.quad import Quad from hyperstatic.core.fe_model.section.shell_section i...
PypiClean
/Exegol-4.2.5.tar.gz/Exegol-4.2.5/README.md
<div align="center"> <img alt="latest commit on master" width="600" src="https://raw.githubusercontent.com/ThePorgs/Exegol-docs/main/.assets/rounded_social_preview.png"> <br><br> <a target="_blank" rel="noopener noreferrer" href="https://pypi.org/project/Exegol" title=""><img src="https://img.shields.io/pypi/v/Ex...
PypiClean
/Ace_todolist-2.1-py3-none-any.whl/Ace_todolist/search.py
# todo table에 존재하는 todo 항목을 검색하여 찾는 함수... import sqlite3 from Ace_todolist import list_todo as printer def search(option=None): conn = sqlite3.connect("ace.db") cur = conn.cursor() # 검색한 항목을 담은 list search_list = [] search_answer_list = ["i", "d", "t", "c"] # 어떤 방법으로 찾고 싶은 지에 대한 input 함수 / ...
PypiClean
/BakalariAPI-4.0.0-py3-none-any.whl/bakalariapi/bakalari.py
from __future__ import annotations import json import logging import warnings from datetime import datetime, timedelta from enum import Enum from typing import Any, Callable, Literal, overload import requests from .utils import parseHTML LOGGER = logging.getLogger("bakalariapi") LOGGER.addHandler(logging.NullHandle...
PypiClean
/OTLModel/Classes/SteunStandaard.py
from OTLMOW.OTLModel.BaseClasses.OTLAttribuut import OTLAttribuut from abc import abstractmethod from OTLMOW.OTLModel.Classes.AIMNaamObject import AIMNaamObject from OTLMOW.OTLModel.Classes.EMDraagconstructie import EMDraagconstructie from OTLMOW.OTLModel.Datatypes.DteKleurRAL import DteKleurRAL from OTLMOW.OTLModel.Da...
PypiClean
/FNEtodo-0.1.1-py3-none-any.whl/todo/commandline.py
import os import sys from argparse import ArgumentParser import todo FILE_NAME = sys.argv[0].split('/')[-1] STORAGE = { 'active_path': f'{os.environ.get("HOME")}/.todo-list-active', 'completed_path': f'{os.environ.get("HOME")}/.todo-list-completed', } HELPS = { 'command': f'{FILE_NAME} add | list | compl...
PypiClean
/3ETool-0.8.3.tar.gz/3ETool-0.8.3/EEETools/BlockSubClasses/mixer.py
from EEETools.MainModules import Block import xml.etree.ElementTree as ETree from EEETools import costants class Mixer(Block): def __init__(self, inputID, main_class): Block.__init__(self, inputID, main_class) self.type = "mixer" def is_ready_for_calculation(self): return len(self.i...
PypiClean
/DukeDSClient-2.0.2.tar.gz/DukeDSClient-2.0.2/ddsc/sdk/client.py
import os from collections import OrderedDict from ddsc.core.ddsapi import DataServiceAuth, DataServiceApi from ddsc.config import create_config from ddsc.core.remotestore import DOWNLOAD_FILE_CHUNK_SIZE from ddsc.core.fileuploader import FileUploadOperations, ParallelChunkProcessor, ParentData from ddsc.core.localstor...
PypiClean
/Marketingtool-0.0.1.tar.gz/Marketingtool-0.0.1/README.md
# Marketing Tool This package is a tool help you do follow marketing job: 1. Transcribe the speech in video 2. Insert a video into antho video 3. Translate subtitle files 4. Insert text into video (todo) ### Install requirement This program require python 3.9 installed ### How to use Transcribe the speech in video `...
PypiClean
/Adeepspeed-0.9.2.tar.gz/Adeepspeed-0.9.2/deepspeed/runtime/activation_checkpointing/checkpointing.py
# DeepSpeed Team """ Use to partition the activations stored for backward propagation Therefore reduces the memory consumption Also implements CPU checkpointing and contiguous memory checkpointing Reduces memory consumption and memory fragmentation Code for rng checkpointing taken from NVIDIA Megatron-LM mpu/random.p...
PypiClean
/Lantz-0.3.zip/Lantz-0.3/lantz/drivers/sutter/lambda103.py
from lantz import Feat, DictFeat, Action from lantz.messagebased import MessageBasedDriver def logged(func): return func class Lambda103(MessageBasedDriver): """High performance, microprocessor-controlled multi-filter wheel system for imaging applications requiring up to 3 filter wheels. """ DE...
PypiClean
/ImSwitchUC2-2.1.0.tar.gz/ImSwitchUC2-2.1.0/imswitch/imcontrol/model/interfaces/gxipy/gxwrapper.py
#!/usr/bin/python # -*-mode:python ; tab-width:4 -*- ex:set tabstop=4 shiftwidth=4 expandtab: -*- # -*- coding:utf-8 -*- from ctypes import * import sys import os if sys.platform == 'linux2' or sys.platform == 'linux': try: dll = CDLL('/usr/lib/libgxiapi.so') except OSError: print("Cannot fin...
PypiClean
/HippodamiaAgent-0.1.12.tar.gz/HippodamiaAgent-0.1.12/hippodamia_agent/states/state_machine.py
from hippodamia_agent.states.machinelogger import MachineLogger from tantamount.fsm2dot import GetDotNotation from hippodamia_agent.states.active import Active from hippodamia_agent.states.initialized import Initialized from hippodamia_agent.states.onboarding import Onboarding from hippodamia_agent.states.onboarded im...
PypiClean
/ChemDataExtractor_c-1.0.0-py3-none-any.whl/chemdataextractor/biblio/person.py
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import re import string from ..text import QUOTES from ..text.latex import latex_to_unicode ORCID_RE = re.compile(r'^\d{4}-\d{4}-\d{4}-\d{4}$') TITLES = { 'ms', '...
PypiClean
/IDEA%20Wrapper-0.0.1.tar.gz/IDEA Wrapper-0.0.1/idea_wrapper/record_set.py
import re import os import win32com.client from idea_wrapper.table_def import TableDef from datetime import date, time class RecordSet: def _generate_regex(self): string_regex = r"\"(.*)\"" date_regex = r"(?:\")?(\d\d\d\d\d\d\d\d)(?:\")?" time_regex = r"(?:\")?(\d\d\:\d\d\:\d\d)(?:\")?" ...
PypiClean
/Nuitka_fixed-1.1.2-cp310-cp310-win_amd64.whl/nuitka/plugins/standard/DataFilesPlugin.py
import os import pkgutil from nuitka import Options from nuitka.containers.OrderedSets import OrderedSet from nuitka.plugins.PluginBase import NuitkaPluginBase from nuitka.PythonFlavors import isDebianPackagePython from nuitka.utils.FileOperations import ( getFileList, resolveShellPatternToFilenames, ) from nu...
PypiClean
/MtxDrawer-0.0.15.tar.gz/MtxDrawer-0.0.15/README.md
# Draw Mtx As Thumbnail - 将 Mtx 画为缩略图 ![help](https://cos.rhythmlian.cn/ImgBed/a9cdf3bef0655d1d6e2563c40069938b.png) ## 样例 | ![aver](./img/ash85_aver.png)<br />平均值 | ![real](./img/ash85_real.png)<br />不处理 | | :-------------------------------------------------: | :--------------------------------------...
PypiClean
/MCdeck-0.6.3-py3-none-any.whl/mcdeck/script.py
from argparse import ArgumentParser import hashlib import http.client import os.path import pathlib import posixpath import sys import tempfile import urllib.request import zipfile from PySide6 import QtWidgets, QtCore, QtGui from lcgtools import LcgException from lcgtools.graphics import LcgCardPdfGenerator, LcgImag...
PypiClean
/DMT_core-2.0.0-py3-none-any.whl/DMT/core/sim_con.py
import copy import logging import time import subprocess import itertools from joblib import Parallel, delayed from reprint import output from pathlib import Path, PurePosixPath, PureWindowsPath import multiprocessing from DMT.core import Singleton, print_progress_bar from DMT.config import DATA_CONFIG from DMT.except...
PypiClean
/Markdown-3.4.4-py3-none-any.whl/markdown/extensions/__init__.py
from ..util import parseBoolValue class Extension: """ Base class for extensions to subclass. """ # Default configuration -- to be overridden by a subclass # Must be of the following format: # { # 'key': ['value', 'description'] # } # Note that `Extension.setConfig` will rai...
PypiClean
/MySQL-python-vincent-1.2.5.tar.gz/MySQL-python-vincent-1.2.5/_mysql_exceptions.py
try: from exceptions import Exception, StandardError, Warning except ImportError: # Python 3 StandardError = Exception class MySQLError(StandardError): """Exception related to operation with MySQL.""" class Warning(Warning, MySQLError): """Exception raised for important warnings like data ...
PypiClean
/Discode.py-1.1.1.tar.gz/Discode.py-1.1.1/discode/intents.py
class Intents: r"""Discord requires you to set the amount of gateway intents your bot uses.""" def __init__(self, **intents): self.value = 0 for k, v in intents.items(): if v: intent = getattr(self, k, None) if not intent: raise V...
PypiClean
/FastGets-0.3.5.tar.gz/FastGets-0.3.5/fastgets/web/static/dist/plugins/visualchars/plugin.js
(function () { var defs = {}; // id -> {dependencies, definition, instance (possibly undefined)} // Used when there is no 'main' module. // The name is probably (hopefully) unique so minification removes for releases. var register_3795 = function (id) { var module = dem(id); var fragments = id....
PypiClean
/20220429_pdfminer_jameslp310-0.0.2-py3-none-any.whl/pdfminer/fontmetrics.py
# # Adobe Core 35 AFM Files with 314 Glyph Entries - ReadMe # # This file and the 35 PostScript(R) AFM files it accompanies may be # used, copied, and distributed for any purpose and without charge, # with or without modification, provided that all copyright notices # are retained; that the AFM files are not distribut...
PypiClean
/ANYstructure-4.10.tar.gz/ANYstructure-4.10/any_files/example_data.py
try: import any_files.calc_loads as load import any_files.calc_structure as calc_structure import any_files.make_grid_numpy as grid except ModuleNotFoundError: import ANYstructure.any_files.calc_loads as load import ANYstructure.any_files.calc_structure as calc_structure import ANYstructure.any...
PypiClean
/GNN4LP-0.1.0-py3-none-any.whl/src/graph_att_gan/predict.py
import os from configparser import ConfigParser import numpy as np import scipy.sparse as sp import sys sys.path.append(r'/home/shiyan/project/gnn4lp/') from src.util.load_data import load_data_with_features, load_data_without_features class Predict(): def __init__(self): self.hidden_emb = None s...
PypiClean
/Dans_Diffraction-3.0.0-py3-none-any.whl/Dans_Diffraction/functions_plotting.py
import sys, os import numpy as np import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D from matplotlib.patches import FancyArrowPatch from mpl_toolkits.mplot3d import proj3d from . import functions_general as fg from . import functions_crystallography as fc __version__ = '2.1' DEFAULT_FONT = 'Time...
PypiClean
/OctoBot-0.4.54.tar.gz/OctoBot-0.4.54/octobot/community/errors_upload/errors_uploader.py
import asyncio import aiohttp import octobot_commons.logging class ErrorsUploader: """ ErrorsUploader manages errors posts to the error url """ def __init__(self, upload_url): self.upload_url = upload_url self.loop = None self.upload_delay = 5 self._to_upload_errors ...
PypiClean
/CatLearn-0.6.2.tar.gz/CatLearn-0.6.2/catlearn/regression/gpfunctions/io.py
import pickle import h5py import numpy as np from catlearn.regression import GaussianProcess def write(filename, model, ext='pkl'): """Function to write a pickle of model object. Parameters ---------- filename : str The name of the save file. model : obj Python GaussianProcess ob...
PypiClean
/BIO-PEPPA-1.2.1.tar.gz/BIO-PEPPA-1.2.1/modules/clust.py
import argparse, tempfile, glob, os, subprocess, sys, shutil try: from configure import externals, uopen, xrange, logger, transeq except : from .configure import externals, uopen, xrange, logger, transeq def readFasta(fasta) : sequence = [] with uopen(fasta) as fin : for line in fin : ...
PypiClean
/Flickr_Mirror_Ngoc_Dang-1.0.3-py3-none-any.whl/mirroring_flickr/parser.py
"""Modules""" import argparse import mirroring_flickr.constants as constants import os import logging import json from mirroring_flickr.cache_strategy import CachingStrategy import stat import getpass import requests # Waypoint 8 def path(string): """ A function to check whether a string is a path of not....
PypiClean
/Aglyph-3.0.0.tar.gz/Aglyph-3.0.0/test/__init__.py
# Copyright (c) 2006, 2011, 2013-2017 Matthew Zipay. # # 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, ...
PypiClean
/GelReportModels-7.8.0.tar.gz/GelReportModels-7.8.0/protocols/reports_5_0_0.py
from protocols.protocol import ProtocolElement from protocols.protocol import SearchRequest from protocols.protocol import SearchResponse from protocols.protocol import avro_parse import avro.schema version = '5.0.0' class ACMGClassification(object): """ No documentation """ pathogenic_variant = "pa...
PypiClean
/42Points-1.2.7-py3-none-any.whl/ftptsgame/expr_utils.py
import ast import itertools from copy import deepcopy from fractions import Fraction class Node(object): """An expression tree.""" NODE_TYPE_NUMBER = 0 NODE_TYPE_OPERATOR = 1 def __init__(self, _type=NODE_TYPE_NUMBER, ch=None, left=None, right=None): """Initialize the node.""" self....
PypiClean
/Flask-WaffleConf-0.3.1.tar.gz/Flask-WaffleConf-0.3.1/docs/source/index.rst
Welcome to Flask-WaffleConf's documentation! ============================================ WaffleConf is a Flask extension that enables storage of configuration variables in the database as well as runtime modification of said variables. **Released under GPLv2+ license.** Latest version: **0.3.0** Contents: .. toct...
PypiClean
/CAM2ImageArchiver-2.0.3.tar.gz/CAM2ImageArchiver-2.0.3/README.md
# CAM2 Image Archiver ![image](https://raw.githubusercontent.com/PurdueCAM2Project/CameraDatabaseClient/master/CAM2_logo.jpg) ### Citation ### If you use this software, please include the following statement in acknowledgments "The image archiving program is provided by the CAM2 (Continuous Analysis of Many CAMeras)...
PypiClean
/LumberMill-0.9.5.7-py3-none-any.whl/lumbermill/assets/webserver_docroot/static/js/gambolputty_web.js
$(document).ready(function() { updateServerSystemInfo() setInterval(updateServerSystemInfo,5000); updateLogs() }) function updateLogs() { // Select all log divs. $("div:regex(id, .*_log)").each(function(idx) { // Extract hostname. var hostname = $(this).attr('id').replace('_log', ''); var container = this ...
PypiClean
/Gpyts-1.0.3-py3-none-any.whl/gpyts/asyncGpyts/__init__.py
#MIT License #Copyright (c) 2021 Ripe import asyncio, aiohttp, aiofiles, asyncio, random, json, os, io, re from .. import config, errors from typing import Union, List from .. types import Translation, TextToSpeech class Gpyts(): """Gpyts is a library for Google translation and gTTS using Google Translation API. ...
PypiClean
/Bashkort_messenger-0.0.1-py3-none-any.whl/client/client_DB.py
import os from sqlalchemy import create_engine, Table, Column, Integer, String, MetaData, DateTime, Text from sqlalchemy.orm import mapper, sessionmaker import datetime from server.server_DB import ServerStorage global client_name dir_path = os.path.dirname(os.path.realpath(__file__)) database_server = ServerStorage( ...
PypiClean
/Chiplotle-0.4.1.tar.gz/Chiplotle-0.4.1/chiplotle/fonts/dorkbot.py
a = [ [0,0,0,], [0,0,0,], [1,1,1,], [1,0,1,], [1,1,1,], [0,0,1,], [0,0,0,], ] a_ = [ [0,0,0,], [0,0,0,], [1,1,1,], [1,0,1,], [1,1,1,], [1,0,0,], [0,0,0,], ] b= [ [1,0,0,], [1,0,0,], [1,1,1,], [1,0,1,], [1,1,1,], [0,0,0,], [0,0,0,], ] b_= [ [0,0,1,], ...
PypiClean
/Nutter-Tools-0.0.32.tar.gz/Nutter-Tools-0.0.32/README.md
# API for finding same type of files and copy in a specific path [![forthebadge made-with-python](http://ForTheBadge.com/images/badges/made-with-python.svg)](https://www.python.org/) [![Python 3.6](https://img.shields.io/badge/python-3.6-blue.svg)](https://www.python.org/downloads/release/python-360/)...
PypiClean
/Nuitka-1.8.tar.gz/Nuitka-1.8/nuitka/build/inline_copy/lib/scons-3.1.2/SCons/Tool/filesystem.py
__revision__ = "src/engine/SCons/Tool/filesystem.py bee7caf9defd6e108fc2998a2520ddb36a967691 2019-12-17 02:07:09 bdeegan" import SCons from SCons.Tool.install import copyFunc copyToBuilder, copyAsBuilder = None, None def copyto_emitter(target, source, env): """ changes the path of the source to be under the tar...
PypiClean
/DerPyBooruPhi-0.10.3.tar.gz/DerPyBooruPhi-0.10.3/derpibooru/posts.py
# Copyright (c) 2014, Joshua Stone # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copyright notice, this # list of conditions and the...
PypiClean
/BuilT-0.0.4-py3-none-any.whl/built/metric.py
from __future__ import absolute_import from __future__ import division from __future__ import print_function import abc import logging import numpy as np import torch from typing import Dict class MetricBase(object): __metaclass__ = abc.ABCMeta class MetricStore(object): def __init__(self): ...
PypiClean
/MetPy-1.5.1-py3-none-any.whl/metpy/interpolate/one_dimension.py
"""Interpolate data along a single axis.""" import numpy as np from .. import _warnings from ..cbook import broadcast_indices from ..package_tools import Exporter from ..xarray import preprocess_and_wrap exporter = Exporter(globals()) @exporter.export @preprocess_and_wrap() def interpolate_nans_1d(x, y, kind='linea...
PypiClean
/Nxpy-0.6.0.tar.gz/Nxpy-0.6.0/nxpy/etree/util.py
# Copyright Nicola Musatti 2010 - 2017 # Use, modification, and distribution are subject to the Boost Software # License, Version 1.0. (See accompanying file LICENSE.txt or copy at # http://www.boost.org/LICENSE_1_0.txt) # See http://nxpy.sourceforge.net for library home page. --------------------- r""" ElemenTree r...
PypiClean
/Active-SQLAlchemy-0.4.0.tar.gz/Active-SQLAlchemy-0.4.0/README.md
#Active-SQLAlchemy **Version 0.3.*** --- Active-SQLAlchemy is a framework agnostic wrapper for SQLAlchemy that makes it really easy to use by implementing a simple active record like api, while it still uses the db.session underneath. Inspired by Flask-SQLAlchemy. Works with Python 2.6, 2.7, 3.3, 3.4 and pypy. --...
PypiClean
/HalWeb-0.6.0.tar.gz/HalWeb-0.6.0/src/halicea/baseProject/models/ShellModels.py
import pickle from google.appengine.ext import db class Session(db.Model): """A shell session. Stores the session's globals. Each session globals is stored in one of two places: If the global is picklable, it's stored in the parallel globals and global_names list properties. (They're parallel lists to...
PypiClean
/Flask_Unchained-0.9.0-py3-none-any.whl/flask_mail.py
import blinker import re import smtplib import time import unicodedata from contextlib import contextmanager from email import charset from email.encoders import encode_base64 from email.header import Header from email.mime.base import MIMEBase from email.mime.multipart import MIMEMultipart from email.mime.text import...
PypiClean
/DBigBang-0.2.tar.gz/DBigBang-0.2/dbigbang/twopeople.py
from pprint import pprint as pp import matplotlib.pyplot as plt import networkx as nx import numpy as np import pandas as pd import pytz import dbigbang.graph as graph import dbigbang.mailman as mailman import dbigbang.parse as parse import dbigbang.process as process from dbigbang.archive import Archive # Gets th...
PypiClean
/MIDIUtil-1.2.1.tar.gz/MIDIUtil-1.2.1/documentation/_build/html/_static/underscore-1.3.1.js
(function() { // Baseline setup // -------------- // Establish the root object, `window` in the browser, or `global` on the server. var root = this; // Save the previous value of the `_` variable. var previousUnderscore = root._; // Establish the object that gets returned to break out of a loop itera...
PypiClean
/CaseRecommender-1.1.1.tar.gz/CaseRecommender-1.1.1/caserec/recommenders/rating_prediction/base_nsvd1.py
# © 2019. Case Recommender (MIT License) import numpy as np from caserec.recommenders.rating_prediction.base_rating_prediction import BaseRatingPrediction __author__ = 'Arthur Fortes <fortes.arthur@gmail.com>' class BaseNSVD1(BaseRatingPrediction): def __init__(self, train_file, test_file, output_file=None, fa...
PypiClean
/FlaskCms-0.0.4.tar.gz/FlaskCms-0.0.4/flask_cms/static/js/ace/mode-svg.js
ace.define("ace/mode/xml_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 XmlHighlightRules = function(no...
PypiClean
/NREL-rex-0.2.84.tar.gz/NREL-rex-0.2.84/rex/joint_pd/joint_pd.py
from concurrent.futures import as_completed import gc import logging import h5py import numpy as np import os import pandas as pd from warnings import warn from rex.version import __version__ from rex.renewable_resource import WindResource from rex.resource import Resource from rex.utilities.execution import SpawnProc...
PypiClean
/Gizela-1.0.18.tar.gz/Gizela-1.0.18/gizela/test/PointDictTest.py
from gizela.data.PointDict import * from gizela.data.Coord import * import unittest class PointDictTestCase(unittest.TestCase): def setUp(self): self.c1=Coord() self.c2=Coord(z=1) self.c3=Coord(1,2) self.c4=Coord(1,2,3) self.c5=Coord(z=1) self.c6=Coord(ori=40) def tearDown(self): pass def test_ins...
PypiClean
/CountryGoogleScraper-0.2.10.tar.gz/CountryGoogleScraper-0.2.10/GoogleScraper/scrape_jobs.py
import logging logger = logging.getLogger(__name__) """ The core logic of GoogleScraper is handled here. By default, every keyword is scraped on all given search engines for the supplied number of pages. Example: keywords = ('one', 'two') search_eninges = ('google, 'yandex') num_pages = 5 Then the following requ...
PypiClean
/CloeePy-Redis-0.0.0.tar.gz/CloeePy-Redis-0.0.0/README.md
# CloeePy-Redis Redis Plugin for the CloeePy Framework Attaches a Redis connection to CloeePy application context. ## Installation `pip install CloeePy-Redis` ## Configuration ### Configuration Basics CloeePy-Redis configuration must be placed under `CloeePy.Plugins.cloeepy_redis` in your config file. The paramete...
PypiClean
/Antares_Launcher-1.3.0.tar.gz/Antares_Launcher-1.3.0/antareslauncher/parameters_reader.py
import json import os.path from pathlib import Path from typing import Dict, Any import yaml import getpass from antareslauncher.main import MainParameters from antareslauncher.main_option_parser import ParserParameters ALT2_PARENT = Path.home() / "antares_launcher_settings" ALT1_PARENT = Path.cwd() DEFAULT_JSON_DB_N...
PypiClean
/NeuroDynamics-0.1.1.tar.gz/NeuroDynamics-0.1.1/brainpy/tools/dicts.py
import copy __all__ = [ 'DictPlus' ] class DictPlus(dict): """Python dictionaries with advanced dot notation access. For example: >>> d = DictPlus({'a': 10, 'b': 20}) >>> d.a 10 >>> d['a'] 10 >>> d.c # this will raise a KeyError KeyError: 'c' >>> d.c = 30 # but you ca...
PypiClean
/CASTLE-tools-1.1.tar.gz/CASTLE-tools-1.1/CASTLE/loc_alignment.py
import os import numpy as np import anndata as ad import matplotlib.pyplot as plt from .location.align_init import initial_alignment from .location.align_fine import fine_alignment from .location.edge_detection import alpha_shape, calcu_lisi, select_clustered_domains, detect_edge_of_domains from .utils import MakeLogC...
PypiClean
/HPI-0.3.20230327.tar.gz/HPI-0.3.20230327/my/telegram/telegram_backup.py
from dataclasses import dataclass from datetime import datetime, timezone from struct import unpack_from, calcsize import sqlite3 from typing import Dict, Iterator, Optional from my.core import datetime_aware, PathIsh from my.core.sqlite import sqlite_connection from my.config import telegram as user_config @datacl...
PypiClean
/Netzob-2.0.0.tar.gz/Netzob-2.0.0/src/netzob/Model/Grammar/States/State.py
#+---------------------------------------------------------------------------+ #| 01001110 01100101 01110100 01111010 01101111 01100010 | #| | #| Netzob : Inferring communication protocols | #+-...
PypiClean
/Credentials_Validator-0.0.4.tar.gz/Credentials_Validator-0.0.4/Credentials_Validator/Validators.py
class Validator: def __init__(self, length, chars, Chars, nums, symbols, **kwargs): self.text = '' # will be the .verify() input self.length = length if len(self.length) < 2: self.length.append(float('inf')) # set length second element to infinity if not present self....
PypiClean
/Mathics_Django-6.0.0-py3-none-any.whl/mathics_django/web/media/js/mathjax/jax/output/HTML-CSS/fonts/STIX-Web/Misc/BoldItalic/Main.js
MathJax.OutputJax["HTML-CSS"].FONTDATA.FONTS["STIXMathJax_Misc-bold-italic"]={directory:"Misc/BoldItalic",family:"STIXMathJax_Misc",weight:"bold",style:"italic",testString:"\u00A0\u0250\u0251\u0252\u0253\u0254\u0255\u0256\u0257\u0258\u0259\u025A\u025B\u025C\u025D",32:[0,0,250,0,0],160:[0,0,250,0,0],592:[473,14,512,13,4...
PypiClean
/GRFloodMaster-1.1.0-py3-none-any.whl/FloodMaster/utils/DataScaler.py
from sklearn.preprocessing import StandardScaler import pandas as pd import numpy as np import os import joblib import json class StdScaler(): """ 采用 sklearn 的 StandardScaler 的数据标准化工具,其归一化原理为: 先通过计算数据集中特征的均值、标准差,对每个特征进行独立居中和缩放; 然后,将平均值和标准偏差存储起来,在以后的测试集上有相同比例来缩放。 标准化是对列操作的,一维数组每列中只有一个值,无法计算。解决办法是...
PypiClean
/Nuitka_fixed-1.1.2-cp310-cp310-win_amd64.whl/nuitka/optimizations/OptimizeBuiltinCalls.py
from nuitka.__past__ import xrange from nuitka.Errors import NuitkaAssumptionError from nuitka.nodes.AttributeNodes import ( ExpressionBuiltinGetattr, ExpressionBuiltinHasattr, ExpressionBuiltinSetattr, makeExpressionAttributeLookup, ) from nuitka.nodes.BuiltinAllNodes import ExpressionBuiltinAll from n...
PypiClean
/AnkiServer-2.0.6.tar.gz/AnkiServer-2.0.6/anki-bundled/anki/notes.py
from anki.utils import fieldChecksum, intTime, \ joinFields, splitFields, stripHTMLMedia, timestampID, guid64 class Note(object): def __init__(self, col, model=None, id=None): assert not (model and id) self.col = col if id: self.id = id self.load() else...
PypiClean
/ChanChanAuth-0.0.4.tar.gz/ChanChanAuth-0.0.4/src/chanchanauth/client.py
import json from uuid import uuid4 import requests from cryptography.fernet import Fernet, InvalidToken from chanchanauth.types import AuthenticationResponse, RegistrationResponse, HWIDResetResponse class Client(object): def __init__(self, aid: str, apikey: str, secret: str = None): self.aid = aid ...
PypiClean
/Fern2-1.4.1.tar.gz/Fern2-1.4.1/fern/models/model.py
""""model file""" import logging from tensorflow.keras import Model, layers logger = logging.getLogger() class FernModel(object): model: Model def __init__(self, output_shape, max_seq_len, library_len, initializer='he_normal'): """ model builder Parameters ---------- ...
PypiClean