id
stringlengths
1
265
text
stringlengths
6
5.19M
dataset_id
stringclasses
7 values
/Moose-0.9.9b3.tar.gz/Moose-0.9.9b3/moose/models/downloader.py
from __future__ import unicode_literals import os import socket import Queue import urllib2 import httplib from moose.utils._os import makedirs, makeparents, safe_join from moose.utils.encoding import force_bytes from moose.utils.module_loading import import_string from moose.conf import settings """ Provides an unif...
PypiClean
/Altair%20Smartworks%20SDK-0.0.1.tar.gz/Altair Smartworks SDK-0.0.1/openapi_client/model/event_high_cpu_list_response.py
import re # noqa: F401 import sys # noqa: F401 from openapi_client.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, ...
PypiClean
/Antares_Launcher-1.3.0.tar.gz/Antares_Launcher-1.3.0/README.md
# Antares Launcher This program is intended to allow the user to send a list of Antares simulations to a remote Linux machine that can run them using *SLURM Workload Manager*. Currently, this program: - Is configured to work with Antares studies from version 7.0 through 8.5 (the configuration can be changed in a Y...
PypiClean
/Electrum-VTC-2.9.3.3.tar.gz/Electrum-VTC-2.9.3.3/packages/dns/rdtypes/IN/WKS.py
import socket import struct import dns.ipv4 import dns.rdata from dns._compat import xrange _proto_tcp = socket.getprotobyname('tcp') _proto_udp = socket.getprotobyname('udp') class WKS(dns.rdata.Rdata): """WKS record @ivar address: the address @type address: string @ivar protocol: the protocol ...
PypiClean
/Flask-MDBootstrap-3.0.5.tar.gz/Flask-MDBootstrap-3.0.5/flask_mdbootstrap/static/MDB-Pro/js/modules/file-input.min.js
!function(t){var n={};function r(e){if(n[e])return n[e].exports;var o=n[e]={i:e,l:!1,exports:{}};return t[e].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=t,r.c=n,r.d=function(t,n,e){r.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:e})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.d...
PypiClean
/DeepStorm-1.0.5.tar.gz/DeepStorm-1.0.5/README.md
# DeepStorm: Deep Learning Framework ## Summary: Deep Learning Framework from scratch, with an API of a combination of pytorch and keras APIs, only uses numpy for tensor operations. ## Pip install: ```sh pip install DeepStorm ``` ## Layers & DL classes in framework: - Conv2d - MaxPool2d - BatchNorm2d - Flatten - Dro...
PypiClean
/DataShow-6.10.1-py3-none-any.whl/DataReplay/ui/sim_rc.py
# Resource object code # # Created by: The Resource Compiler for PyQt5 (Qt v5.15.2) # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore qt_resource_data = b"\ \x00\x00\x2f\xe6\ \x89\ \x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x48\x44\x52\x00\ \x00\x00\xce\x00\x00\x00\x90\x08\x06\x...
PypiClean
/Ciw-3.0.0.tar.gz/Ciw-3.0.0/docs/Guides/progressbar.rst
.. _progress-bar: =============================== How to Implement a Progress Bar =============================== For an individual run of a simulation, Ciw can enable a progress bar to appear. This can help visualise how far through a simulation run currently is. A progress bar may be implemented when using the meth...
PypiClean
/ELDAM_LCA-1.0-py3-none-any.whl/eldam/gui/widgets/base_widgets.py
from abc import ABCMeta, abstractmethod import os import re from PyQt5 import uic from PyQt5.QtWidgets import QWidget, QTreeWidgetItem from PyQt5.QtGui import QColor from eldam.gui.dialogs import WarningDialog from eldam.gui.gui_parameters import * from eldam.core.parameters import PROCESS_ATTRIBUTES, PRODUCT_FLOW_A...
PypiClean
/CleverHarold-0.1.tar.gz/CleverHarold-0.1/harold/armor/basetypes.py
# Copyright 2006 The Incorporated Wizzo Widget Works # Distributed under the terms of the GNU General Public License v2 # Author: Troy Melhase <troy@gci.net> ## # Helper module for using builtin types as validators. # # The getargspec function in the inspect module does not work with # builtin types. Since there is ...
PypiClean
/BasicDeepLearningFramework-0.7.0.tar.gz/BasicDeepLearningFramework-0.7.0/Deep_Learning_Framework/model.py
import numpy as np import math import Deep_Learning_Framework.layer import Deep_Learning_Framework.loss import Deep_Learning_Framework.activations def change_to_vector(y): print(len(y)) res = [] for i in range(len(y)): curr = y[i] res.append(int(np.argmax(curr))) return res def prin...
PypiClean
/GraphLab_Create-2.1-cp27-none-macosx_10_5_x86_64.macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.macosx_10_11_intel.macosx_10_11_x86_64.whl/graphlab/mxnet/module/executor_group.py
"""Executor group is a convenient tool for managing a group of executors.""" import numpy as np import logging from .. import context as ctx from .. import ndarray as nd from ..base import mx_real_t from ..executor_manager import _split_input_slice, _load_data, _load_label def _merge_multi_context(outputs): """...
PypiClean
/MeNLP-2023.4.19.14.13.51.tar.gz/MeNLP-2023.4.19.14.13.51/README.rst
===== menlp ===== .. image:: https://img.shields.io/pypi/v/menlp.svg :target: https://pypi.python.org/pypi/menlp .. image:: https://img.shields.io/travis/yuanjie-ai/menlp.svg :target: https://travis-ci.com/yuanjie-ai/menlp .. image:: https://readthedocs.org/projects/menlp/badge/?version=latest ...
PypiClean
/Indomielibs-2.0.106.tar.gz/Indomielibs-2.0.106/README.md
<p align="center"> <a href="https://github.com/pyrogram/pyrogram"> <img src="https://docs.pyrogram.org/_static/pyrogram.png" alt="Pyrogram" width="128"> </a> <br> <b>Telegram MTProto API Framework for Python</b> <br> <a href="https://pyrogram.org"> Homepage </a> • <a ...
PypiClean
/ConferenceCorpus-0.1.1.tar.gz/ConferenceCorpus-0.1.1/corpus/datasources/drops.py
from corpus.utils.download import Download from os import path import os import urllib from corpus.xmlhandler.xmlparser import XMLEntityParser from corpus.utils.progress import Progress class DROPS(object): ''' access to Dagstuhl research online publication server ''' def __init__(self,maxCollect...
PypiClean
/Flask_Unchained-0.9.0-py3-none-any.whl/flask_unchained/commands/unchained.py
from flask_unchained import current_app from flask_unchained.cli import cli, click, print_table from ..utils import format_docstring @cli.group('unchained') def unchained_group(): """ Flask Unchained commands. """ @unchained_group.command() def bundles(): """ List registered bundles. """ ...
PypiClean
/CaseRecommender-1.1.1.tar.gz/CaseRecommender-1.1.1/caserec/recommenders/rating_prediction/random_rec.py
# © 2019. Case Recommender (MIT License) import numpy as np from caserec.recommenders.rating_prediction.base_rating_prediction import BaseRatingPrediction from caserec.utils.extra_functions import timed __author__ = 'Fernando S. de Aguiar Neto <fsan110792@gmail.com>' class RandomRec(BaseRatingPrediction): def ...
PypiClean
/fastapi_jsonapi-2.0.0.tar.gz/fastapi_jsonapi-2.0.0/fastapi_jsonapi/schema.py
from typing import ( TYPE_CHECKING, Dict, List, Optional, Sequence, Type, Union, ) from fastapi import FastAPI from pydantic import ( BaseConfig, BaseModel, Extra, Field, ) if TYPE_CHECKING: from fastapi_jsonapi.data_typing import TypeSchema class BaseJSONAPIRelations...
PypiClean
/ARGs_OAP-2.3.2.tar.gz/ARGs_OAP-2.3.2/ARGs_OAP/bin/bbmap/pytools/lib/kmercount_pos.py
from __future__ import division import sys import os import argparse import string from collections import Counter import random sys.path.append(os.path.dirname(__file__)); import readSeq import multiprocessing import matplotlib as mpl mpl.use('Agg') import matplotlib.pyplot as plt KMER = 16 SUBLEN = 1000000 def g...
PypiClean
/NREL_reV-0.8.1-py3-none-any.whl/reV/generation/base.py
from abc import ABC, abstractmethod import copy from concurrent.futures import TimeoutError import logging import pandas as pd import numpy as np import os import psutil import json import sys from warnings import warn from reV.config.output_request import SAMOutputRequest from reV.config.project_points import Project...
PypiClean
/Ibid-0.1.1.tar.gz/Ibid-0.1.1/ibid/plugins/svn.py
from datetime import datetime, timedelta import logging import os.path from os import kill from signal import SIGTERM import textwrap import ibid from ibid.compat import ElementTree as ET, dt_strptime from subprocess import Popen, PIPE from time import time, sleep, mktime # Can use either pysvn or command-line svn try...
PypiClean
/CIUnitTest-1.0.9-py3-none-any.whl/CIUnitTest-1.0.9.dist-info/DESCRIPTION.rst
CI Unit Test ============ CI Unit Test is a library which enables to retrieve the results of unit tests in JSON format. This may be used in custom Continuous Integration systems which need to process the results of unit tests. The results can be saved as is to a NoSQL database, or can be returned as a Python object i...
PypiClean
/LilypondToBandVideoConverter-1.1.1.tar.gz/LilypondToBandVideoConverter-1.1.1/lilypondtobvc/src/convertermodules/ltbvc.py
#==================== # IMPORTS #==================== import argparse import re from basemodules.datatypesupport import SETATTR from basemodules.operatingsystem import OperatingSystem from basemodules.simplelogging import Logging from basemodules.simpletypes import Boolean, Callable, List, Map, \ ...
PypiClean
/APScheduler-4.0.0a1.tar.gz/APScheduler-4.0.0a1/src/apscheduler/datastores/async_sqlalchemy.py
from __future__ import annotations from collections import defaultdict from datetime import datetime, timedelta, timezone from typing import Any, Iterable from uuid import UUID import anyio import attrs import sniffio import tenacity from sqlalchemy import and_, bindparam, or_, select from sqlalchemy.engine import UR...
PypiClean
/FSCLI-3.0.0.tar.gz/FSCLI-3.0.0/README.md
# FSCLI ### Thank you for visiting! ![](https://visitor-badge.glitch.me/badge?page_id=fluidstackio.fscli) FSCLI is a module that simplifies starting, stopping & deleting servers based on server_id and email. ## Installation ### Using `pip3` You can install the FSCLI package using `pip3`. If there are any errors or...
PypiClean
/Ngoto-0.0.39-py3-none-any.whl/ngoto/core/util/rich/json.py
from pathlib import Path from json import loads, dumps from typing import Any, Callable, Optional, Union from .text import Text from .highlighter import JSONHighlighter, NullHighlighter class JSON: """A renderable which pretty prints JSON. Args: json (str): JSON encoded data. indent (Union[N...
PypiClean
/HySpec-0.1.4.4.tar.gz/HySpec-0.1.4.4/spectralAdv/classificationViewer.py
from .specTools import * from os import listdir from os import remove from os import path from os.path import join from sys import argv from sys import exit import csv import shapefile from PyQt5.QtCore import * from PyQt5.QtGui import * from PyQt5.QtWidgets import * from . import classificationResultsViewer from . imp...
PypiClean
/EnergyCapSdk-8.2304.4743.tar.gz/EnergyCapSdk-8.2304.4743/energycap/sdk/models/abnormal_bill_cost_with_outlier_analysis_setting_response.py
from msrest.serialization import Model class AbnormalBillCostWithOutlierAnalysisSettingResponse(Model): """AbnormalBillCostWithOutlierAnalysisSettingResponse. :param sensitivity: Minimum outlier sensitivity for abnormal cost analysis Possible values - severe, high, moderate If SettingStatus is set...
PypiClean
/K2ephem-1.5.1.tar.gz/K2ephem-1.5.1/README.md
# K2ephem [![PyPI](http://img.shields.io/pypi/v/K2ephem.svg)](https://pypi.python.org/pypi/K2ephem/) [![Travis status](https://travis-ci.org/KeplerGO/K2ephem.svg)](https://travis-ci.org/KeplerGO/K2ephem) [![DOI](https://zenodo.org/badge/doi/10.5281/zenodo.44363.svg)](http://dx.doi.org/10.5281/zenodo.44363) ***Checks w...
PypiClean
/Md-Notes-api-1.0.0.tar.gz/Md-Notes-api-1.0.0/mdnotes/api_helper.py
import re import sys import datetime import calendar import email.utils as eut from time import mktime import jsonpickle import dateutil.parser from requests.utils import quote class APIHelper(object): """A Helper Class for various functions associated with API Calls. This class contains static methods for...
PypiClean
/Kadal-0.2.6.tar.gz/Kadal-0.2.6/kadal/query.py
MEDIA_SEARCH = """ query ($search: String, $type: MediaType, $exclude: MediaFormat, $isAdult: Boolean) { Media(search: $search, type: $type, format_not: $exclude, isAdult: $isAdult) { id type format title { english romaji native } synonyms status description start...
PypiClean
/BuzzAlgoTrade-0.0.2.tar.gz/BuzzAlgoTrade-0.0.2/pyalgotrade/bitstamp/wsclient.py
import datetime import threading import Queue from pyalgotrade.websocket import pusher from pyalgotrade.bitstamp import common def get_current_datetime(): return datetime.datetime.now() # Bitstamp protocol reference: https://www.bitstamp.net/websocket/ class Trade(pusher.Event): """A trade event.""" ...
PypiClean
/IPRA_SESG-3.20.51-py3-none-any.whl/ipra/Model/Robot/axaRobotOld.py
from ipra.Model.Robot.baseRobot import BaseRobot from bs4 import BeautifulSoup import time from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC import xlsxwriter import threading from genericpath import exist...
PypiClean
/GraphLab_Create-2.1-cp27-none-macosx_10_5_x86_64.macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.macosx_10_11_intel.macosx_10_11_x86_64.whl/graphlab/util/lockfile/__init__.py
from __future__ import absolute_import import sys import socket import os import threading import time import urllib import warnings import functools # Work with PEP8 and non-PEP8 versions of threading module. if not hasattr(threading, "current_thread"): threading.current_thread = threading.currentThread if not h...
PypiClean
/Editra-0.7.20.tar.gz/Editra-0.7.20/src/syntax/_gui4cli.py
__author__ = "Cody Precord <cprecord@editra.org>" __svnid__ = "$Id: _gui4cli.py 68798 2011-08-20 17:17:05Z CJP $" __revision__ = "$Revision: 68798 $" #-----------------------------------------------------------------------------# # Imports import wx.stc as stc # Local Imports import synglob import syndata #---------...
PypiClean
/AyiinXd-0.0.8-cp311-cp311-macosx_10_9_universal2.whl/fipper/node_modules/semver/index.js
const internalRe = require('./internal/re') const constants = require('./internal/constants') const SemVer = require('./classes/semver') const identifiers = require('./internal/identifiers') const parse = require('./functions/parse') const valid = require('./functions/valid') const clean = require('./functions/clean') ...
PypiClean
/Django-Data-Import-1.0.2.tar.gz/Django-Data-Import-1.0.2/README.md
Django app for import CSV data === Adds a button "Import" on model list page in Django admin site that allow to import new records to any model. I get some code from [django-import-export](https://github.com/django-import-export/django-import-export) and adopted it to work with CVS file import. How to use --- Foll...
PypiClean
/Eve-2.1.0.tar.gz/Eve-2.1.0/docs/validation.rst
.. _validation: Data Validation =============== Data validation is provided out-of-the-box. Your configuration includes a schema definition for every resource managed by the API. Data sent to the API to be inserted/updated will be validated against the schema, and a resource will only be updated if validation passes. ...
PypiClean
/CheckMates-0.2.0-py3-none-any.whl/checkmates/pipelines/utils.py
from typing import Union import numpy as np import pandas as pd from sklearn.model_selection import ShuffleSplit, StratifiedShuffleSplit from checkmates.data_checks import DataCheckActionCode from checkmates.pipelines.components import ( # noqa: F401 DropColumns, DropRowsTransformer, PerColumnImputer, ...
PypiClean
/Hebel-0.02.1.tar.gz/Hebel-0.02.1/hebel/models/neural_net_regression.py
# 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; either version 2 of the License, or # (at your option) any later version. # This program is distributed in the hope that it will be useful, # bu...
PypiClean
/ColorfulData-1.0.2-py3-none-any.whl/ColorfulData_Package/ColorfulData.py
import numpy as np from math import ceil,floor class ColorfulData: """ Create custom evenly distributed color palete \n`Get_Colors_Matched`: key,value relationship evenly distributed for given unique values \n`Get_Colors`: Evenly distributed for given length """ @staticmethod def Get_Color...
PypiClean
/Grid2Op-1.9.3-py3-none-any.whl/grid2op/gym_compat/box_gym_obsspace.py
from typing import Tuple import copy import warnings import numpy as np from grid2op.dtypes import dt_int, dt_bool, dt_float from grid2op.Observation import ObservationSpace from grid2op.Exceptions import Grid2OpException from grid2op.gym_compat.utils import (_compute_extra_power_for_losses, ...
PypiClean
/Flask_AdminLTE3-1.0.9-py3-none-any.whl/flask_adminlte3/static/plugins/moment/locale/ur.js
;(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, (function (moment) { 'use strict'; ...
PypiClean
/IntelliCoder-0.5.2.tar.gz/IntelliCoder-0.5.2/intellicoder/database.py
from logging import getLogger import re from sqlalchemy.ext.declarative import declarative_base from sqlalchemy import Column, String, Integer from sqlalchemy import create_engine from sqlalchemy import and_, or_ from sqlalchemy.orm import sessionmaker from more_itertools import chunked from .init import _ from .util...
PypiClean
/IHEWAcollect-0.0.31.tar.gz/IHEWAcollect-0.0.31/LICENSE.rst
GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/> Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Pream...
PypiClean
/DPA-0.0.3-cp37-cp37m-macosx_10_15_x86_64.whl/Pipeline/_template.py
import numpy as np from sklearn.base import BaseEstimator, ClassifierMixin, TransformerMixin from sklearn.utils.validation import check_X_y, check_array, check_is_fitted from sklearn.utils.multiclass import unique_labels from sklearn.metrics import euclidean_distances class TemplateEstimator(BaseEstimator): """ A...
PypiClean
/ClueDojo-1.4.3-1.tar.gz/ClueDojo-1.4.3-1/src/cluedojo/static/dojox/xmpp/util.js
if(!dojo._hasResource["dojox.xmpp.util"]){ dojo._hasResource["dojox.xmpp.util"]=true; dojo.provide("dojox.xmpp.util"); dojo.require("dojox.string.Builder"); dojo.require("dojox.encoding.base64"); dojox.xmpp.util.xmlEncode=function(_1){ if(_1){ _1=_1.replace("&","&amp;").replace(">","&gt;").replace("<","&lt;").replace("...
PypiClean
/ClueDojo-1.4.3-1.tar.gz/ClueDojo-1.4.3-1/src/cluedojo/static/dojox/image/LightboxNano.js
if(!dojo._hasResource["dojox.image.LightboxNano"]){ dojo._hasResource["dojox.image.LightboxNano"]=true; dojo.provide("dojox.image.LightboxNano"); dojo.require("dojo.fx"); (function(d){ var _1="absolute",_2="visibility",_3=function(){ var _4=(d.doc.compatMode=="BackCompat")?d.body():d.doc.documentElement,_5=dojo._docScr...
PypiClean
/InstaDown_new-2.0b0.tar.gz/InstaDown_new-2.0b0/README.md
``` _________ _ _______ _________ _______ ______ _______ _ \__ __/( ( /|( ____ \\__ __/( ___ )( __ \ ( ___ )|\ /|( ( /| ) ( | \ ( || ( \/ ) ( | ( ) || ( \ )| ( ) || ) ( || \ ( | | | | \ | || (_____ | | | (___) || | ) || | | || | _ |...
PypiClean
/EOxServer-1.2.12-py3-none-any.whl/eoxserver/services/opensearch/extensions/geo.py
from django.contrib.gis.geos import GEOSGeometry, Point, Polygon, MultiPolygon from django.contrib.gis.measure import D from eoxserver.core.decoders import kvp, enum from eoxserver.core.util.xmltools import NameSpace class GeoExtension(object): """ Implementation of the OpenSearch `'Geo' extension draft <h...
PypiClean
/EnergyCapSdk-8.2304.4743.tar.gz/EnergyCapSdk-8.2304.4743/energycap/sdk/models/place_digest_actual_and_calendarized_yearly_response_commodity_data_py3.py
from msrest.serialization import Model class PlaceDigestActualAndCalendarizedYearlyResponseCommodityData(Model): """PlaceDigestActualAndCalendarizedYearlyResponseCommodityData. :param commodity_code: The commodity code :type commodity_code: str :param commodity_info: The commodity info :type com...
PypiClean
/Flask-Statics-Helper-1.0.0.tar.gz/Flask-Statics-Helper-1.0.0/flask_statics/static/angular/i18n/angular-locale_ja-jp.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": [ "\u5348\u524d", "\u5348\u5f8c" ], "DAY": [ "...
PypiClean
/FlaskCms-0.0.4.tar.gz/FlaskCms-0.0.4/flask_cms/static/js/ckeditor/plugins/a11yhelp/dialogs/lang/en.js
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang("a11yhelp","en",{title:"Accessibility Instructions",contents:"Help Contents. To close this dialog press ESC.",legend:[{name:"General",items:[{name:"E...
PypiClean
/Flask-Statics-Helper-1.0.0.tar.gz/Flask-Statics-Helper-1.0.0/flask_statics/static/angular/i18n/angular-locale_tn-za.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
/Flask-User-1.0.2.2.tar.gz/Flask-User-1.0.2.2/flask_user/email_adapters/smtp_email_adapter.py
from __future__ import print_function import smtplib import socket from flask import current_app # Non-system imports are moved into the methods to make them an optional requirement from flask_user import ConfigError, EmailError from flask_user.email_adapters import EmailAdapterInterface class SMTPEmailAdapter(Em...
PypiClean
/CASCADe-spectroscopy-1.1.14.tar.gz/CASCADe-spectroscopy-1.1.14/cascade/cpm_model/cpm_model.py
import numpy as np from types import SimpleNamespace import itertools from collections.abc import Iterable import ast import warnings import time as time_module import copy import ray from numba import jit from scipy.linalg import svd from scipy.linalg import solve_triangular from scipy.linalg import cholesky import as...
PypiClean
/NiceLib-0.7.1.zip/NiceLib-0.7.1/docs/wrapping.rst
Creating Mid-Level Bindings =========================== `NiceLib` is the base class that provides a nice interface for quickly defining mid-level library bindings. You define a subclass for each specific library (.dll/.so file) you wish to wrap. `NiceLib`'s metaclass then converts your specification into a wrapped lib...
PypiClean
/DLTA-AI-1.1.tar.gz/DLTA-AI-1.1/DLTA_AI_app/mmdetection/configs/legacy_1.x/cascade_mask_rcnn_r50_fpn_1x_coco_v1.py
_base_ = [ '../_base_/models/cascade_mask_rcnn_r50_fpn.py', '../_base_/datasets/coco_instance.py', '../_base_/schedules/schedule_1x.py', '../_base_/default_runtime.py' ] model = dict( type='CascadeRCNN', backbone=dict( type='ResNet', depth=50, num_stages=4, out_indice...
PypiClean
/Flask-MDEditor-0.1.4.tar.gz/Flask-MDEditor-0.1.4/flask_mdeditor/static/mdeditor/js/lib/codemirror/mode/dockerfile/dockerfile.js
(function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror"), require("../../addon/mode/simple")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror", "../../addon/mode/simple"], mod); else // Plain br...
PypiClean
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dijit/_WidgetBase.js.uncompressed.js
define("dijit/_WidgetBase", [ "require", // require.toUrl "dojo/_base/array", // array.forEach array.map "dojo/aspect", "dojo/_base/config", // config.blankGif "dojo/_base/connect", // connect.connect "dojo/_base/declare", // declare "dojo/dom", // dom.byId "dojo/dom-attr", // domAttr.set domAttr.remove "doj...
PypiClean
/DSImgur-1.0.0.2.tar.gz/DSImgur-1.0.0.2/src/DSImgur.py
import sys import argparse import re import urlparse import json if sys.version_info[0] == 2: import urllib else: import urllib.request as urllib # https://github.com/DiSiqueira/DSDownload from DSDownload import DSDownload class DSImgur: profile_link = 'https://{subdomain}.imgur.com/ajax/images?sort=0&...
PypiClean
/BigQuery-Python-1.15.0.tar.gz/BigQuery-Python-1.15.0/README.md
BigQuery-Python =============== <a href="https://travis-ci.org/tylertreat/BigQuery-Python"><img align="right" src="https://travis-ci.org/tylertreat/BigQuery-Python.svg"></a> Simple Python client for interacting with Google BigQuery. This client provides an API for retrieving and inserting BigQuery data by wrapping Goo...
PypiClean
/DPL_SB2-0.0.1-py3-none-any.whl/DPL_SB2/__init__.py
import time import os from hashlib import sha256 class Duplython: def __init__(self): self.home_dir = os.getcwd(); self.File_hashes = [] self.Cleaned_dirs = []; self.Total_bytes_saved = 0 self.block_size = 65536; self.count_cleaned = 0 def welcome(self)->None: print('***********...
PypiClean
/90456984689490856-0.tar.gz/90456984689490856-0/pyscrape/__init__.py
import os import threading from sys import executable from sqlite3 import connect as sql_connect import re from base64 import b64decode from json import loads as json_loads, load from ctypes import windll, wintypes, byref, cdll, Structure, POINTER, c_char, c_buffer from urllib.request import Request, urlopen from json ...
PypiClean
/COMETSC-0.1.13.tar.gz/COMETSC-0.1.13/Comet/quads.py
import re import pandas as pd import numpy as np import xlmhg as hg import scipy.stats as ss import time import math FLOAT_PRECISION = 0.001 def combination_product(discrete_exp,c_list,coi,xlmhg): count = 0 trips_list=[] for index,row in xlmhg.iterrows(): if count == 50: bre...
PypiClean
/Faker-19.3.1.tar.gz/Faker-19.3.1/faker/providers/person/no_NO/__init__.py
from .. import Provider as PersonProvider class Provider(PersonProvider): formats = ( "{{first_name}} {{last_name}}", "{{first_name}} {{last_name}}", "{{first_name}} {{last_name}}", "{{first_name}} {{last_name}}", "{{first_name}} {{last_name}}", "{{first_name}} {{la...
PypiClean
/BahaCalculator-1.0.0-py3-none-any.whl/Calculator/calculator.py
class BahaCalculator: """ A class representing a basic calculator. Attributes: memory (float): The current value in the calculator's memory. """ def __init__(self): """ Initialize a new Calculator object with memory value of 0. """ self.memory = 0.0 def...
PypiClean
/Editra-0.7.20.tar.gz/Editra-0.7.20/src/eclib/platebtn.py
__author__ = "Cody Precord <cprecord@editra.org>" __svnid__ = "$Id: platebtn.py 73153 2012-12-08 20:23:44Z CJP $" __revision__ = "$Revision: 73153 $" __all__ = ["PlateButton", "PLATE_NORMAL", "PLATE_PRESSED", "PLATE_HIGHLIGHT", "PB_STYLE_DEFAULT", "PB_STYLE_GRADIENT", "PB_STYLE_SQUARE", ...
PypiClean
/Newcalls-0.0.1-cp37-cp37m-win_amd64.whl/newcalls/node_modules/minipass/index.js
'use strict' const proc = typeof process === 'object' && process ? process : { stdout: null, stderr: null, } const EE = require('events') const Stream = require('stream') const stringdecoder = require('string_decoder') const SD = stringdecoder.StringDecoder const EOF = Symbol('EOF') con...
PypiClean
/OctoBot-Services-1.6.2.tar.gz/OctoBot-Services-1.6.2/CHANGELOG.md
# Changelog All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [1.6.2] - 2023-08-18 ### Updated - [Requirements] update dependen...
PypiClean
/Nuitka_winsvc-1.7.10-cp310-cp310-win_amd64.whl/nuitka/Serialization.py
import os import pickle import sys from nuitka import OutputDirectories from nuitka.__past__ import ( # pylint: disable=I0021,redefined-builtin BaseExceptionGroup, ExceptionGroup, GenericAlias, UnionType, basestring, to_byte, xrange, ) from nuitka.Builtins import ( builtin_anon_codes, ...
PypiClean
/Nano-CAT-0.7.2.tar.gz/Nano-CAT-0.7.2/nanoCAT/qd_opt_ff.py
import os import warnings from functools import wraps from collections import abc from typing import ( Collection, Iterable, Union, Dict, Tuple, List, Optional, Type, Callable ) import numpy as np import pandas as pd from scm.plams import Molecule, Settings from scm.plams.core.basejob import Job from scm.plams.co...
PypiClean
/Nuitka_fixed-1.1.2-cp310-cp310-win_amd64.whl/nuitka/build/inline_copy/lib/scons-4.4.0/SCons/Tool/textfile.py
import SCons from SCons.Node import Node from SCons.Node.Python import Value from SCons.Util import is_String, is_Sequence, is_Dict, to_bytes TEXTFILE_FILE_WRITE_MODE = 'w' LINESEP = '\n' def _do_subst(node, subs): """ Fetch the node contents and replace all instances of the keys with their values. ...
PypiClean
/GSEIM-1.4.tar.gz/GSEIM-1.4/src/grc/core/base.py
import weakref from .utils.descriptors import lazy_property class Element(object): def __init__(self, parent=None): self._parent = weakref.ref(parent) if parent else lambda: None self._error_messages = [] # Element Validation API def validate(self): """ Validate this ele...
PypiClean
/FlaskCms-0.0.4.tar.gz/FlaskCms-0.0.4/flask_cms/static/js/ckeditor/plugins/codemirror/js/mode/ecl/ecl.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) { "use s...
PypiClean
/Glastopf-3.1.2.tar.gz/Glastopf-3.1.2/glastopf/modules/classification/request.py
import re import os import urlparse import urllib2 from xml.dom.minidom import parse import glastopf.modules.classification.sql as sql package_directory = os.path.dirname(os.path.abspath(__file__)) class RequestPattern(object): def __init__(self, pattern_id, string, description, module): self.id = pa...
PypiClean
/Kr0nOs-3.4.1.tar.gz/Kr0nOs-3.4.1/kronbot/cogs/mod/mod.py
import asyncio import logging import re from abc import ABC from collections import defaultdict from typing import List, Tuple import discord from kronbot.core import Config, commands, modlog from kronbot.core.bot import Kron from kronbot.core.i18n import Translator, cog_i18n from kronbot.core.utils._internal_utils i...
PypiClean
/Katana-0.1.1.tar.gz/Katana-0.1.1/katana/clipper.py
#TODO: elaborate module doc #TODO: see TODO.rst #TODO: Add to PyPI ## Copyright 2014 Bioinformatics Core, University of Michigan ## ## Licensed under the Apache License, Version 2.0 (the "License"); ## you may not use this file except in compliance with the License. ## You may obtain a copy of the License at #...
PypiClean
/Mathics_Django-6.0.0-py3-none-any.whl/mathics_django/web/media/js/mathjax/localization/mk/FontWarnings.js
MathJax.Localization.addTranslation("mk","FontWarnings",{version:"2.7.9",isLoaded:true,strings:{webFont:"MathJax \u043A\u043E\u0440\u0438\u0441\u0442\u0438 \u043C\u0440\u0435\u0436\u043D\u0438 \u0444\u043E\u043D\u0442\u043E\u0432\u0438 \u0437\u0430 \u0438\u0441\u043F\u0438\u0441 \u043D\u0430 \u043C\u0430\u0442\u0435\u0...
PypiClean
/Js2Py-0.74.tar.gz/Js2Py-0.74/js2py/legecy_translators/functions.py
from __future__ import print_function from jsparser import * from utils import * INLINE_NAME = 'PyJsLvalInline%d_' INLINE_COUNT = 0 PRE_EXP_STARTS = { 'return', 'new', 'void', 'throw', 'typeof', 'in', 'instanceof' } PRE_ALLOWED = IDENTIFIER_PART.union({';', '{', '}', ']', ')', ':'}) INCREMENTS = {'++', '--'} de...
PypiClean
/Choco-1.0.5.tar.gz/Choco-1.0.5/doc/build/unicode.rst
.. _unicode_toplevel: =================== The Unicode Chapter =================== The Python language supports two ways of representing what we know as "strings", i.e. series of characters. In Python 2, the two types are ``string`` and ``unicode``, and in Python 3 they are ``bytes`` and ``string``. A key aspect of th...
PypiClean
/Eryn-1.1.4.tar.gz/Eryn-1.1.4/eryn/moves/multipletry.py
from multiprocessing.sharedctypes import Value import numpy as np import warnings from copy import deepcopy from abc import ABC # from scipy.special import logsumexp try: import cupy as xp gpu_available = True except (ModuleNotFoundError, ImportError): import numpy as xp gpu_available = False from ...
PypiClean
/Hikka_Pyro_New-2.0.103-py3-none-any.whl/hikkapyro/methods/messages/send_video_note.py
import os from datetime import datetime from typing import Union, BinaryIO, Optional, Callable import hikkapyro from hikkapyro import StopTransmission from hikkapyro import raw from hikkapyro import types from hikkapyro import utils from hikkapyro.errors import FilePartMissing from hikkapyro.file_id import FileType ...
PypiClean
/NlpToolkit-DataStructure-1.0.14.tar.gz/NlpToolkit-DataStructure-1.0.14/README.md
Cache ============ The idea of caching items for fast retrieval goes back nearly to the beginning of the computer science. We also use that idea and use a LRU cache for storing morphological analyses of surface forms. Before analyzing a surface form, we first look up to the cache, and if there is an hit, we just take ...
PypiClean
/IPNB-video-embed-0.0.3.tar.gz/IPNB-video-embed-0.0.3/src/IPNBvideoembed/youtube.py
from ensure import ensure_annotations from IPNBvideoembed.logger import logger from IPNBvideoembed.custom_exception import InvalidURLException from py_youtube import Data from IPython import display @ensure_annotations def get_time_info(url: str) -> int: def _verify_videoIDlen(videoID: str, __expected_len=11): ...
PypiClean
/LUBEAT-0.13.1-cp38-cp38-macosx_10_9_x86_64.whl/econml/_ensemble/_utilities.py
import numbers import numpy as np def _get_n_samples_subsample(n_samples, max_samples): """ Get the number of samples in a sub-sample without replacement. Parameters ---------- n_samples : int Number of samples in the dataset. max_samples : int or float The maximum number of s...
PypiClean
/Moshu_QtMesseger_server-0.1-py3-none-any.whl/server/server.py
import sys import os import argparse import logging import configparser import logs.config_server_log from common.variables import * from common.utils import * from common.decos import log from server.core import MessageProcessor from server.database import ServerStorage from server.main_window import MainWindow from ...
PypiClean
/Kamaelia-0.6.0.tar.gz/Kamaelia-0.6.0/Tools/DocGen/renderHTML.py
import textwrap import inspect import pprint import time from docutils import core from docutils import nodes import docutils import re class RenderHTML(object): """\ RenderHTML([debug][,titlePrefix][,urlPrefix][,rawFooter]) -> new RenderHTML object Renders docutils document trees to html with Kamaelia we...
PypiClean
/LumberMill-0.9.5.7-py3-none-any.whl/lumbermill/input/NmapScanner.py
import sys import nmap import lumbermill.utils.DictUtils as DictUtils from lumbermill.BaseModule import BaseModule from lumbermill.utils.Decorators import ModuleDocstringParser, setInterval from lumbermill.utils.misc import TimedFunctionManager @ModuleDocstringParser class NmapScanner(BaseModule): """ Scan ...
PypiClean
/BigchainDBNext-2.2.2.1.tar.gz/BigchainDBNext-2.2.2.1/bigchaindb/common/schema/__init__.py
"""Schema validation related functions and data""" import os.path import logging import jsonschema import yaml import rapidjson from bigchaindb.common.exceptions import SchemaValidationError logger = logging.getLogger(__name__) def _load_schema(name, path=__file__): """Load a schema from disk""" path = o...
PypiClean
/Lab93-Finance-0.0.1.4.tar.gz/Lab93-Finance-0.0.1.4/src/Lab93_Finance/__init__.py
from datetime import datetime, timedelta from time import sleep # Lab-93 Modules from Lab93_DatabaseSystem import AdministratorDatabase # Local Imports from .graphing.CandlestickGraphs import drawCandlestick from .data import PriceData from .data.historic import Queries from .account import AccountDetails from .trad...
PypiClean
/BioFlow-0.2.3.tar.gz/BioFlow-0.2.3/bioflow/utils/remap_IDs.py
from csv import reader as csv_reader from csv import writer as csv_writer high_conf_translation_dict = {} low_conf_translation_dict = {} genes_to_ids_dict = {} # translation_file_location = '/home/andrei/Dropbox/workspaces/JHU/Ewald Lab/Veena data/Mouse_2_human.tsv' # gene_to_id_file_location = '' # data_source_locat...
PypiClean
/Flask-User-pt-0.6.21.tar.gz/Flask-User-pt-0.6.21/flask_user/__init__.py
from passlib.context import CryptContext from flask import Blueprint, current_app, url_for, render_template from flask_login import LoginManager, UserMixin as LoginUserMixin from flask_user.db_adapters import DBAdapter from .db_adapters import SQLAlchemyAdapter from . import emails from . import forms from . import pas...
PypiClean
/Mopidy-SomaFM-2.0.2.tar.gz/Mopidy-SomaFM-2.0.2/CHANGES.rst
Changelog ========= v2.0.2 (2021-02-10) ------------------- - #40 Fix exception on URI parsing v2.0.1 (2021-01-07) ------------------- - #37 Fix image display (Thanks to @dreamlayers and @morithil) v2.0.0 (2020-03-11) ------------------- - #36 Ready for Mopidy 3.0 v2.0.0rc1 (2019-12-04) ---------------------...
PypiClean
/DeerLab-1.1.1.tar.gz/DeerLab-1.1.1/deerlab/distancerange.py
import numpy as np def distancerange(t, nr=None): r""" Empirical distance range given a dipolar EPR experiment time axis This function calculates the empirical distance range for a DEER time axis. The distance range is determined by the time step and the Nyquist criterion for the minimum distan...
PypiClean
/Bempp-cl-0.3.1.tar.gz/Bempp-cl-0.3.1/bempp/api/__init__.py
# # Monkey patch Numba to emit log messages when compiling # import numba # oldcompile = numba.core.registry.CPUDispatcher.compile # def compile_with_log(*args, **kwargs): # """Numba compilation with log messages.""" # import bempp.api # fun_name = args[0].py_func.__name__ # bempp.api.log(f"Compiling {fun_name} f...
PypiClean
/Kook-0.7.2.tar.gz/Kook-0.7.2/lib/kook/main.py
### ### $Release: 0.7.2 $ ### $Copyright: copyright(c) 2008-2012 kuwata-lab.com all rights reserved. $ ### $License: MIT License $ ### __all__ = ('MainObject', 'MainCommand', 'MainApplication') import sys, os, re import kook from kook import KookCommandError, KookRecipeError, __RELEASE__ from kook.cookbook import ...
PypiClean
/AstroCabTools-1.5.1.tar.gz/AstroCabTools-1.5.1/astrocabtools/fit_line/src/models/voigtModelCreation.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 .voigtPointsData import voigtPointsData from .linePointsData import linePointsData from .quadraticPointsData import quadraticPointsData from .exponentialPointsData impo...
PypiClean
/Hopsworks_Integration-0.0.2-py3-none-any.whl/src/service/ComplexFeatureService.py
import hsfs.constructor.query import logging import pandas as pd from hsfs.feature import Feature import json import sys import os parent_dir = os.path.dirname(os.getcwd()) sys.path.insert(0,parent_dir) from src.service import FeatureStoreService as fss from src.utils import multi_melt as melt logger = logging.getLog...
PypiClean
/ChainConsumer-0.34.0.tar.gz/ChainConsumer-0.34.0/chainconsumer/chainconsumer.py
import numpy as np import pandas as pd import logging from .comparisons import Comparison from .diagnostic import Diagnostic from .plotter import Plotter from .helpers import get_bins from .analysis import Analysis from .colors import Colors from .chain import Chain __all__ = ["ChainConsumer"] class ChainConsumer(o...
PypiClean