id
stringlengths
1
265
text
stringlengths
6
5.19M
dataset_id
stringclasses
7 values
/EasyDeL-0.0.29-py3-none-any.whl/examples/training/causal-lm/mpt.py
from EasyDel import TrainArguments, CausalLMTrainer from datasets import load_dataset from huggingface_hub import HfApi from EasyDel import configs import EasyDel from absl import flags, app from fjutils import get_float_dtype_by_name FLAGS = flags.FLAGS flags.DEFINE_string( name='dataset_name', required=True...
PypiClean
/HTML4Vision-0.4.3.tar.gz/HTML4Vision-0.4.3/html4vision/tile.py
from __future__ import print_function from codecs import open from math import ceil from glob import glob import dominate from dominate.tags import * from dominate.util import text from .common import * def imagetile( # contents content, n_col=3, out_file='index.html', title=...
PypiClean
/Bitcoinprice-notifications-1.0.8.tar.gz/Bitcoinprice-notifications-1.0.8/Bitcoin_Price_Notifications/bitcoin_price_notify.py
import time import argparse import requests import json from requests import Request, Session from requests.exceptions import ConnectionError, Timeout, TooManyRedirects from datetime import datetime from email.mime.multipart import MIMEMultipart from email.mime.text import MIMEText import smtplib # Telegram Webhook if...
PypiClean
/OAM-0.2.3.tar.gz/OAM-0.2.3/oam/image.py
import os, sys, tempfile, re, StringIO from xml.etree.ElementTree import ElementTree try: from hashlib import md5 md5 # pyflakes except ImportError: from md5 import md5 try: from osgeo import gdal, osr gdal, osr # pyflakes except ImportError: try: import gdal, osr gdal, osr # pyf...
PypiClean
/Nuitka_winsvc-1.7.10-cp310-cp310-win_amd64.whl/nuitka/code_generation/DictCodes.py
from nuitka import Options from nuitka.PythonVersions import python_version from nuitka.utils.Jinja2 import renderTemplateFromString from .CallCodes import getCallCodePosArgsQuick from .CodeHelpers import ( assignConstantNoneResult, decideConversionCheckNeeded, generateChildExpressionCode, generateChil...
PypiClean
/ApeMan-0.1.1.tar.gz/ApeMan-0.1.1/docs/34/apeman.rst
==================== Apeman in Python 3.4 ==================== This implementation was really tricky. The python documentation at the time was all over the place and referenced three different import implementations. The final implementation is somewhat of a hack as a result. .. note :: There are currently four...
PypiClean
/Mesa-2.1.1-py3-none-any.whl/mesa/visualization/UserParam.py
import numbers NUMBER = "number" CHECKBOX = "checkbox" CHOICE = "choice" SLIDER = "slider" STATIC_TEXT = "static_text" class UserParam: _ERROR_MESSAGE = "Missing or malformed inputs for '{}' Option '{}'" @property def json(self): result = self.__dict__.copy() result["value"] = result.pop...
PypiClean
/DXR-1.9.4.tar.gz/DXR-1.9.4/Dxr_video/video_server.py
# ============================================================ # import packages # ============================================================ import queue import threading from concurrent import futures import grpc from . import Datas_pb2 from . import Datas_pb2_grpc import time import cv2 import base64 import sys f...
PypiClean
/BlueWhale3-3.31.3.tar.gz/BlueWhale3-3.31.3/Orange/clustering/hierarchical.py
import warnings from collections import namedtuple, deque, defaultdict from operator import attrgetter from itertools import count import heapq import numpy import scipy.cluster.hierarchy import scipy.spatial.distance from Orange.distance import Euclidean, PearsonR __all__ = ['HierarchicalClustering'] _undef = ob...
PypiClean
/EnergyCapSdk-8.2304.4743.tar.gz/EnergyCapSdk-8.2304.4743/energycap/sdk/models/meter_child_include_place_and_serial_number_py3.py
from msrest.serialization import Model class MeterChildIncludePlaceAndSerialNumber(Model): """Class derived from MeterChildIncludePlaceDTO - has this meter's serial number ///. :param parent_place: :type parent_place: ~energycap.sdk.models.PlaceChild :param meter_id: The meter identifier ...
PypiClean
/GeoNode-3.2.0-py3-none-any.whl/geonode/static/lib/js/handlebars.min.js
!function(a,b){"object"==typeof exports&&"object"==typeof module?module.exports=b():"function"==typeof define&&define.amd?define([],b):"object"==typeof exports?exports.Handlebars=b():a.Handlebars=b()}(this,function(){return function(a){function b(d){if(c[d])return c[d].exports;var e=c[d]={exports:{},id:d,loaded:!1};ret...
PypiClean
/Misago-0.36.1.tar.gz/Misago-0.36.1/misago/notifications/views.py
from django.db.models import F from django.http import HttpRequest, HttpResponse from django.shortcuts import get_object_or_404, redirect, render from .models import Notification, WatchedThread from .permissions import allow_use_notifications from .registry import registry def notifications(request: HttpRequest) -> ...
PypiClean
/META_TOOLBOX-2023.3.tar.gz/META_TOOLBOX-2023.3/META_TOOLBOX/META.py
import numpy as np import time import META_TOOLBOX.META_CO_LIBRARY as META_CO import META_TOOLBOX.META_HC_LIBRARY as META_HC import META_TOOLBOX.META_SA_LIBRARY as META_SA import META_TOOLBOX.META_FA_LIBRARY as META_FA import META_TOOLBOX.META_DE_LIBRARY as META_DE import META_TOOLBOX.META_GA_LIBRARY as META_GA import ...
PypiClean
/KalaPy-0.4.2.tar.gz/KalaPy-0.4.2/kalapy/db/engines/relational.py
import re from kalapy.db.engines.interface import IDatabase from kalapy.db.model import Model from kalapy.db.reference import ManyToOne __all__ = ('RelationalDatabase', 'QueryBuilder',) class RelationalDatabase(IDatabase): data_types = {} schema_mime = 'text/x-sql' def __init__(self, name, host=None...
PypiClean
/Kamaelia-0.6.0.tar.gz/Kamaelia-0.6.0/Examples/DVB_Systems/PersonalVideoRecorder.py
# A program designed to record a programme, by specifying its name and channel name # it is on. It records any programmes it sees that match the name - so if there is, # for example, more than one episode they'll all get recorded back to back in the # one file # # Note: # * must be tuned to the right multiplex (the on...
PypiClean
/GQCMS-0.0.4-py3-none-any.whl/build/lib/build/lib/build/lib/build/lib/gqcms/diagonalization/Davidson.py
import numpy as np import pandas as pd import scipy.linalg as sp def generateUnitVectors(amount: int, dim: int) -> np.ndarray: """ Generate the specified amount of unit vectors. :param amount: amount of unit vectors needed :param dim: the dimension of the hamiltonian returns the selected unit vec...
PypiClean
/CMinx-1.1.9.tar.gz/CMinx-1.1.9/docs/source/documenting/index.rst
.. Copyright 2021 CMakePP .. .. 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 .. .. http://www.apache.org/licenses/LICENSE-2.0 .. .. Unless required by applicable law or agreed to in writing,...
PypiClean
/3to2-1.1.1.zip/3to2-1.1.1/lib3to2/fixes/fix_imports2.py
from lib2to3 import fixer_base from lib2to3.fixer_util import Name, String, FromImport, Newline, Comma from ..fixer_util import token, syms, Leaf, Node, Star, indentation, ImportAsName TK_BASE_NAMES = ('ACTIVE', 'ALL', 'ANCHOR', 'ARC','BASELINE', 'BEVEL', 'BOTH', 'BOTTOM', 'BROWSE', 'BUTT', 'CASCADE',...
PypiClean
/MCsniperPY-3.5-py3-none-any.whl/mcsniperpy/sniper.py
import asyncio import os.path import time from typing import List import aiohttp from mcsniperpy.util import announce, request_manager from mcsniperpy.util import utils as util from mcsniperpy.util.classes.config import BackConfig, Config, populate_configs from mcsniperpy.util.name_system import api_timing, namemc_ti...
PypiClean
/McPhysics-1.5.12.tar.gz/McPhysics-1.5.12/functions.py
import numpy as _n from scipy.special import wofz as _wofz from scipy.special import erf as _erf from scipy.special import erfcx as _erfcx import scipy.stats as _stats # Code speedup _ROOT2 = 2.0**0.5 _ROOT2PI = (2.0*_n.pi)**0.5 def gaussian(x, sigma=1): """ Gaussian probability distribution normalized s...
PypiClean
/MoorPy-1.0.1.tar.gz/MoorPy-1.0.1/moorpy/Catenary.py
import numpy as np import matplotlib.pyplot as plt from matplotlib import cm #import moorpy.MoorSolve as msolve from moorpy.helpers import CatenaryError, dsolve2 def catenary(XF, ZF, L, EA, W, CB=0, HF0=0, VF0=0, Tol=0.000001, nNodes=20, MaxIter=100, plots=0): ''' The quasi-static mooring line solver. Adapte...
PypiClean
/LitleSdkPython3-9.3.1b0.tar.gz/LitleSdkPython3-9.3.1b0/litleSdkPythonTest/functional/TestCredit.py
import os, sys from _ast import TryExcept from http.client import EXPECTATION_FAILED lib_path = os.path.abspath('../all') sys.path.append(lib_path) from SetupTest import * import unittest class TestCredit(unittest.TestCase): def testSimpleCreditWithCard(self): credit = litleXmlFields.credit() ...
PypiClean
/MITunaX-0.1.tar.gz/MITunaX-0.1/tuna/tables.py
"""Module that encapsulates the DB representation based on configuration type""" from tuna.find_db import ConvolutionFindDB, BNFindDB from tuna.miopen_tables import ConvolutionJob, ConvolutionConfig, ConvolutionConfigTags from tuna.miopen_tables import ConvPerfDB, ConvPerfConfig from tuna.miopen_tables import ConvJobCa...
PypiClean
/FSlash-0.17.0.tar.gz/FSlash-0.17.0/README.md
# F/ [![PyPI](https://img.shields.io/pypi/v/fslash.svg)](https://pypi.python.org/pypi/FSlash) ![Python package](https://github.com/dbrattli/fslash/workflows/Python%20package/badge.svg) ![Upload Python Package](https://github.com/dbrattli/fslash/workflows/Upload%20Python%20Package/badge.svg) [![codecov](https://codecov...
PypiClean
/M-LOOP-3.3.3.tar.gz/M-LOOP-3.3.3/mloop/controllers.py
from __future__ import absolute_import, division, print_function __metaclass__ = type import os import datetime from importlib import import_module import logging import traceback import numpy as np from mloop import __version__ import mloop.utilities as mlu import mloop.learners as mll import mloop.interfaces as ml...
PypiClean
/Finance-Seleya-1.2.3.tar.gz/Finance-Seleya-1.2.3/seleya/data/DataAPI/http/USER.py
from . import utils try: from StringIO import StringIO except: from io import StringIO import hashlib, json, os, pdb from seleya.utilities import api_base from seleya.config.default_config import * def login(username=None, password=None): http_client = api_base.__get_conn__() request_string = [] ...
PypiClean
/IsPycharmRun-1.0.tar.gz/IsPycharmRun-1.0/airtest/core/android/rotation.py
import threading import traceback from airtest.core.error import AirtestError from airtest.utils.snippet import reg_cleanup, is_exiting, on_method_ready from airtest.utils.logger import get_logger from airtest.core.android.constant import ROTATIONWATCHER_APK, ROTATIONWATCHER_PACKAGE LOGGING = get_logger(__name__) cla...
PypiClean
/NREL-erad-0.0.0a0.tar.gz/NREL-erad-0.0.0a0/README.md
# ERAD (Equitable Resilience Analysis For Power Distribution System) <p align="center"> <img src="logo.svg" width="250" style="display:flex;justify-content:center;"> <p align="center">Graph based python tool for computing equitable resilience. </p> </p> [Visit full documentation here.](https://nrel.github.io/erad/)...
PypiClean
/KB4IT-0.7.8.tar.gz/KB4IT-0.7.8/kb4it/services/database.py
from kb4it.core.service import Service from kb4it.core.util import guess_datetime, sort_dictionary class KB4ITDB(Service): """KB4IT database class.""" db = {} sort_attribute = None sorted_docs = [] blocked_keys = [] ignored_keys = [] def initialize(self): """Initialize database m...
PypiClean
/LiftoffTools-0.4.4.tar.gz/LiftoffTools-0.4.4/liftofftools/cluster_analysis/analyze_clusters.py
from liftofftools.cluster_analysis import clusters,mmseqs_workflow import operator from liftofftools.filepaths import MMSEQS_INTERMEDIATES as MI, CLSUTER_OUTPUTS, build_filepath, make_directory,\ remove_directory, make_file, remove_file import copy def main(ref_proteins, target_proteins, ref_trans, target_trans, ...
PypiClean
/Flask-Fontpicker-0.2.tar.gz/Flask-Fontpicker-0.2/README.md
<h1 align='center'> flask_fontpicker </h1> <h3 align='center'>A Flask extension for Jquery-ui google font picker, it makes adding and customizing multiple font pickers simpler and less time consuming.</h3> ## Install: #### - With pip > - `pip install Flask-Fontpicker` <br /> #### - From the source: > - `git clone htt...
PypiClean
/NeuroTS-3.4.0-py3-none-any.whl/neurots/astrocyte/grower.py
# Copyright (C) 2021 Blue Brain Project, EPFL # # 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 3 of the License, or # (at your option) any later version. # # This program is di...
PypiClean
/Django-Yummy-0.2.6.tar.gz/Django-Yummy-0.2.6/yummy/migrations/0008_auto__add_weekmenu__add_unique_weekmenu_day_even_week.py
import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding model 'WeekMenu' db.create_table('yummy_weekmenu', ( ('id', self.gf('django.db.models.fields.AutoField')(primar...
PypiClean
/ER-Evaluation-2.1.0.tar.gz/ER-Evaluation-2.1.0/er_evaluation/plots/_dtree_plots.py
import numpy as np import plotly.graph_objects as go from er_evaluation.error_analysis import fit_dt_regressor from er_evaluation.plots._dtree_data import create_igraph_tree, build_sunburst_data def make_dt_regressor_plot( error_metrics, weights, features_df, numerical_features, categorical_featur...
PypiClean
/IdracRedfishSupportTest-0.0.7.tar.gz/IdracRedfishSupportTest-0.0.7/SubscriptionManagementREDFISH.py
import argparse import json import getpass import logging import os import platform import re import requests import sys import time import warnings from pprint import pprint warnings.filterwarnings("ignore") parser = argparse.ArgumentParser(description="Python script using Redfish API to either get event service p...
PypiClean
/CodeIntel-2.0.0b19-cp34-cp34m-macosx_10_12_x86_64.whl/codeintel/textinfo.py
from __future__ import unicode_literals r"""Determine information about text files. This module efficiently determines the encoding of text files (see _classify_encoding for details), accurately identifies binary files, and provides detailed meta information of text files. >>> import textinfo >>> path = __f...
PypiClean
/FamcyDev-0.3.71-py3-none-any.whl/Famcy/bower_components/bootstrap-table/src/locale/bootstrap-table-el-GR.js
$.fn.bootstrapTable.locales['el-GR'] = $.fn.bootstrapTable.locales['el'] = { formatCopyRows () { return 'Copy Rows' }, formatPrint () { return 'Print' }, formatLoadingMessage () { return 'Φορτώνει, παρακαλώ περιμένετε' }, formatRecordsPerPage (pageNumber) { return `${pageNumber} αποτελέσμα...
PypiClean
/Mopidy-Mopify-1.7.3.tar.gz/Mopidy-Mopify-1.7.3/mopidy_mopify/static/debug/src/vendor/clipboard/dist/clipboard.min.js
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,t.Clipboard=e()}}(function(){var e,t,n;return function e(...
PypiClean
/Firefly%20III%20API%20Python%20Client-1.5.6.post2.tar.gz/Firefly III API Python Client-1.5.6.post2/firefly_iii_client/model/account.py
import re # noqa: F401 import sys # noqa: F401 from firefly_iii_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
/ITMO_FS-0.3.3.tar.gz/ITMO_FS-0.3.3/ITMO_FS/filters/multivariate/FCBF.py
import numpy as np from ...utils.information_theory import matrix_mutual_information from ...utils import DataChecker, generate_features class FCBFDiscreteFilter(DataChecker): """ Creates FCBF (Fast Correlation Based filter) feature selection filter based on mutual information criteria for data w...
PypiClean
/Mothership-0.0.35.zip/Mothership-0.0.35/mothership/serverinfo/__init__.py
# import some modules import sys import mothership import mothership.kv from mothership.mothership_models import * from sqlalchemy import or_, desc, MetaData class ServerInfoError(Exception): pass def get_host(cfg, hw_tag=None, ip=None, mac=None): """ [description] search for a host based on info sup...
PypiClean
/KL_Audit_supportV2.3-1.0-py3-none-any.whl/AuditModule/common/AppConstants.py
from datetime import datetime from AuditModule.common.configuration_settings import config class AuditLogsConstants: def __init__(self): pass audit_time_date_format = "%Y-%m-%d %H:%M:%S.%f" epoch_date = datetime(1970, 1, 1) application_type_json = {"login_handler": {"application_type": "login...
PypiClean
/Logbook-1.6.0-cp37-cp37m-musllinux_1_1_x86_64.whl/logbook/helpers.py
import errno import os import random import re import sys import time from datetime import datetime, timedelta # this regexp also matches incompatible dates like 20070101 because # some libraries (like the python xmlrpclib modules) use this _iso8601_re = re.compile( # date r"(\d{4})(?:-?(\d{2})(?:-?(\d{2}))?)?...
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/data_structures/sketch.py
Copyright (C) 2016 Turi All rights reserved. This software may be modified and distributed under the terms of the BSD license. See the LICENSE file for details. ''' from .. import connect as _mt from ..connect import main as glconnect from ..cython.cy_sketch import UnitySketchProxy from ..cython.context import debug_t...
PypiClean
/Flask-Monitoring-1.1.2.tar.gz/Flask-Monitoring-1.1.2/flask_monitoringdashboard/views/reporting.py
from datetime import datetime from flask import request from flask_monitoringdashboard import blueprint from flask_monitoringdashboard.core.auth import secure from flask_monitoringdashboard.core.date_interval import DateInterval from flask_monitoringdashboard.core.reporting.questions.average_latency import AverageLat...
PypiClean
/AKCK_LFF-1.0.1-py3-none-any.whl/AKCK_LFF/ra_lff.py
import numpy as np from AKCK_LFF.PW92 import g0_unp_pw92_pade, ec_pw92 pi = np.pi alpha = (4./(9*pi))**(1./3.) def get_lambdas(rs): ec, d_ec_drs, d_ec_drs2, d_ec_dz2 = ec_pw92(rs,0.0) # conversion to Rydberg ec *= 2. d_ec_drs *= 2. d_ec_drs2 *= 2. d_ec_dz2 *= 2. # Eq. 40, corrected by L...
PypiClean
/Draugr-1.0.9.tar.gz/Draugr-1.0.9/draugr/visualisation/matplotlib_utilities/metric_overview_plot.py
import math from typing import Iterable, Iterator, Sequence, Tuple, Any __author__ = "Christian Heider Nielsen" __doc__ = """ Created on 27/04/2019 @author: cnheider """ from matplotlib.figure import Figure from matplotlib.pyplot import matshow, imshow from itertools import cycle from numpy import interp from typin...
PypiClean
/FreeClimb-4.5.0-py3-none-any.whl/freeclimb/model/sms_ten_dlc_partner_campaign_brand.py
import re # noqa: F401 import sys # noqa: F401 from freeclimb.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, ModelSimple, cached_property, change_keys_js_to_python, convert_js_args_to_python_args, date, datetime, file_type, none_type, vali...
PypiClean
/Finance-Jindowin-1.3.3.tar.gz/Finance-Jindowin-1.3.3/jdw/data/DataAPI/db/db_factory.py
import pdb import pandas as pd from sqlalchemy import create_engine, select, and_, or_ from sqlalchemy import outerjoin, join from sqlalchemy.sql.selectable import Join from jdw.kdutils.logger import kd_logger class JoinTable(object): def __init__(self, base_table, left_table, ...
PypiClean
/DjangoDjangoAppCenter-0.0.11-py3-none-any.whl/DjangoAppCenter/simpleui/static/admin/simpleui-x/js/index.js
(function () { if (window.frameElement) { window.frameElement.contentWindow.parent.callback() } window.addEventListener('hashchange', function (e) { if (e.newURL != e.oldURL) { openByHash() } }); function openByHash() { var hash = location.hash; ...
PypiClean
/MasterLinkQuoteH-0.1.7-py3-none-any.whl/PY_Trade_package/SolPYAPI_Model.py
from enum import Enum class RCode(Enum): # 成功 OK = 0 # An API call would block, but non-blocking was requested. SOLCLIENT_WOULD_BLOCK = 1 # The API call is in progress (non-blocking mode). SOLCLIENT_IN_PROGRESS = 2 # The API could not complete because the object is not ready (for example, t...
PypiClean
/Booktype-1.5.tar.gz/Booktype-1.5/lib/booki/messaging/migrations/0001_initial.py
import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding model 'Post' db.create_table('messaging_post', ( ('id', self.gf('django.db.models.fields.AutoField')(pr...
PypiClean
/FamcyDev-0.3.71-py3-none-any.whl/Famcy/bower_components/bootstrap-fileinput/js/locales/lv.js
(function ($) { "use strict"; $.fn.fileinputLocales['lv'] = { fileSingle: 'failu', filePlural: 'faili', browseLabel: 'Izvēlaties &hellip;', removeLabel: 'Dzēst', removeTitle: 'Notīrīt izvēlētos failus', cancelLabel: 'Atcelt', cancelTitle: 'Atcelt pašreizē...
PypiClean
/NSoL-0.1.14.tar.gz/NSoL-0.1.14/nsol/proximal_operators.py
import numpy as np import nsol.tikhonov_linear_solver as tk class ProximalOperators(object): # ######################################################################### # ------------------------------Primal Variables-------------------------- ## # Proximal operator for g(x) = 1/2 ||Ax-b||^2 #...
PypiClean
/DataDoctor-1.0.15.tar.gz/DataDoctor-1.0.15/README.md
# DataDoctor[Beta] `DataDoctor()` is a Python package for data cleaning and preprocessing. It provides various methods to treat common issues in data such as missing values, duplicate records, inconsistent data formats, outliers, inconsistent naming conventions, data entry errors, and more. The package uses popular li...
PypiClean
/Nuitka-1.8.tar.gz/Nuitka-1.8/nuitka/build/inline_copy/lib/scons-3.1.2/SCons/Script/SConscript.py
__revision__ = "src/engine/SCons/Script/SConscript.py bee7caf9defd6e108fc2998a2520ddb36a967691 2019-12-17 02:07:09 bdeegan" import SCons import SCons.Action import SCons.Builder import SCons.Defaults import SCons.Environment import SCons.Errors import SCons.Node import SCons.Node.Alias import SCons.Node.FS import SCo...
PypiClean
/BIA_OBS-1.0.3.tar.gz/BIA_OBS-1.0.3/BIA/static/dist/node_modules/braces/README.md
# braces [![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=W8YFZ425KND68) [![NPM version](https://img.shields.io/npm/v/braces.svg?style=flat)](https://www.npmjs.com/package/braces) [![NPM monthly downloads](https://img.shields.io/npm/d...
PypiClean
/Mopidy_MPD-3.3.0-py3-none-any.whl/mopidy_mpd/actor.py
import logging import pykka from mopidy import exceptions, listener, zeroconf from mopidy.core import CoreListener from mopidy_mpd import network, session, uri_mapper logger = logging.getLogger(__name__) _CORE_EVENTS_TO_IDLE_SUBSYSTEMS = { "track_playback_paused": None, "track_playback_resumed": None, "...
PypiClean
/Gizela-1.0.18.tar.gz/Gizela-1.0.18/gizela/util/Ellipsoid.py
import math from gizela.util.Error import Error class EllipsoidError(Error): """ Exception for class Ellipsoid """ pass class Ellipsoid(object): """ Instance of Ellipsoid Class offers basic calculation on ellipsoid """ ELLIPSOID = { 'wgs84': (6378137.0, 298.257223563, 'Wo...
PypiClean
/DXC-RL-1.0.3.5.tar.gz/DXC-RL-1.0.3.5/dxc/ai/__init__.py
from .AI_guild.AI_guild import guild_member_should_apply_for_badge from .AI_guild.AI_guild import apply_for_an_ai_badge from .AI_guild.AI_guild import AI_Guild_Role from .AI_guild.AI_guild import AI_Badge from .read_data.read_json import flatten_json_into_dataframe from .read_data.read_json import get_file_path_json f...
PypiClean
/ImageManager_EagleProjects-0.0.1.tar.gz/ImageManager_EagleProjects-0.0.1/README.md
# Package Image Manager Il package gestisce gli screenshot\foto indicati manualmente con un path specifico. Prendendoli, in input, puo utilizzare tre funzioni che servono rispettivamente a: la prima, ad aspettare un caricamento, cioe' finche non riesce a fare la comparazione tra la foto\screenshot passato e lo scherm...
PypiClean
/BIT_framework-0.0.2-py3-none-any.whl/BIT_DL/pytorch/data/tokenizers/roberta_tokenizer.py
from typing import Any, Dict, List, Optional, Tuple from texar.torch.data.tokenizers.gpt2_tokenizer import GPT2Tokenizer from texar.torch.utils.utils import truncate_seq_pair __all__ = [ 'RoBERTaTokenizer', ] _ROBERTA_PATH = "https://s3.amazonaws.com/models.huggingface.co/bert/" class RoBERTaTokenizer(GPT2Toke...
PypiClean
/MAGINE-0.1.5.tar.gz/MAGINE-0.1.5/magine/enrichment/enrichr.py
import json import logging import os import re import numpy as np import pandas as pd import requests from magine.enrichment.enrichment_result import EnrichmentResult from magine.logging import get_logger from magine.plotting.species_plotting import write_table_to_html logger = get_logger(__name__, log_level=logging...
PypiClean
/Finance-Seleya-1.2.3.tar.gz/Finance-Seleya-1.2.3/seleya/Toolset/file_util.py
import logging, os, functools, pdb from contextlib import contextmanager import pandas as pd import six as six from seleya.utilities.warning import warnings_filter try: from six.moves import cPickle as pickle except ImportError: from six.moves import cPickle as pickle if six.PY3: Unpickler = pickle._Unpic...
PypiClean
/Art3dUtils-0.3.7.tar.gz/Art3dUtils-0.3.7/art3dutils/models.py
import re import os import locale from sqlalchemy.orm import relationship, mapper from sqlalchemy.sql import and_ from sqlalchemy import (Column, Table, Integer, ForeignKey, Float, MetaData, Boolean, VARCHAR) from sqlalchemy.engine import create_engine from sqlalchemy.orm import scoped_session,...
PypiClean
/CoreMS-1.6.0.tar.gz/CoreMS-1.6.0/support_code/CreateAtomsDescription.py
import pprint, json from collections import namedtuple, OrderedDict from pathlib import Path from pprint import pprint path = str(Path(__file__).parent.absolute()) filepath = str(path)+'/AtomicWeightsAndIsotopicCompNIST2019.txt' Atom = namedtuple('Atom', 'atomic_number symbol mass_number atomic_mass natural_abundanc...
PypiClean
/MutPy-Pynguin-0.7.1.tar.gz/MutPy-Pynguin-0.7.1/mutpy/coverage.py
import ast import copy from mutpy import utils COVERAGE_SET_NAME = '__covered_nodes__' class MarkerNodeTransformer(ast.NodeTransformer): def __init__(self): super().__init__() self.last_marker = 0 def visit(self, node): node.marker = self.last_marker self.last_marker += 1 ...
PypiClean
/EnergyCapSdk-8.2304.4743.tar.gz/EnergyCapSdk-8.2304.4743/energycap/sdk/models/meter_group_digest_ranking_response.py
from msrest.serialization import Model class MeterGroupDigestRankingResponse(Model): """MeterGroupDigestRankingResponse. :param high_cost: :type high_cost: float :param low_cost: :type low_cost: float :param average_cost: :type average_cost: float :param median_cost: :type median...
PypiClean
/MindsDB-23.8.3.0.tar.gz/MindsDB-23.8.3.0/mindsdb/api/mongo/server.py
import socketserver as SocketServer import socket import struct import bson import traceback from bson import codec_options from collections import OrderedDict from abc import abstractmethod from bson.codec_options import CodecOptions from bson.codec_options import TypeCodec from bson.codec_options import TypeRegistry ...
PypiClean
/Gbtestapi0.3-0.1a10-py3-none-any.whl/gailbot/core/engines/watson/am.py
# Standard library imports from typing import Any, BinaryIO, List, TextIO, Tuple, Dict, Callable, Union from enum import IntEnum # Local imports # Third party imports from ibm_watson import SpeechToTextV1, ApiException from ibm_cloud_sdk_core.authenticators import IAMAuthenticator from gailbot.core.engines import ex...
PypiClean
/OctoPyClient-1.0.2.tar.gz/OctoPyClient-1.0.2/README.md
# OctoPyClient An [OctoPrint](https://octoprint.org) client interface for small TFT touch-screen displays. OctoPyClient can be installed on any X11 server either with or without a window-manager. It has been designed to support small displays with at least 480x320 resolution. The Adafruit PiTFT Plus 480x320 3.5" TFT+T...
PypiClean
/Kivy-2.2.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl/kivy/input/postproc/dejitter.py
__all__ = ('InputPostprocDejitter', ) from kivy.config import Config class InputPostprocDejitter(object): ''' Get rid of jitterish BLOBs. Example:: [postproc] jitter_distance = 0.004 jitter_ignore_devices = mouse,mactouch :Configuration: `jitter_distance`: float ...
PypiClean
/ClueDojo-1.4.3-1.tar.gz/ClueDojo-1.4.3-1/src/cluedojo/static/dojox/xmpp/sasl.js
if(!dojo._hasResource["dojox.xmpp.sasl"]){ dojo._hasResource["dojox.xmpp.sasl"]=true; dojo.provide("dojox.xmpp.sasl"); dojo.require("dojox.xmpp.util"); dojo.require("dojo.AdapterRegistry"); dojo.require("dojox.encoding.digests.MD5"); dojox.xmpp.sasl.saslNS="urn:ietf:params:xml:ns:xmpp-sasl"; dojo.declare("dojox.xmpp.sa...
PypiClean
/Django_patch-2.2.19-py3-none-any.whl/django/core/signing.py
import base64 import datetime import json import re import time import zlib from django.conf import settings from django.utils import baseconv from django.utils.crypto import constant_time_compare, salted_hmac from django.utils.encoding import force_bytes from django.utils.module_loading import import_string _SEP_UNS...
PypiClean
/DXR-1.9.4.tar.gz/DXR-1.9.4/Dxr_file/dxr_ssh.py
import asyncio import os import stat import types import re from Dxr_mqtt.dxr_log import * # 判断系统类型,如果是windows则引入wexpect,如果是linux则引入pexpect if os.name == 'nt': import wexpect as pexpect else: import pexpect password_key = '.*assword.*' is_input_yes = '.*yes/no.*' import threading import time # 写一个线程,一直来对比文件大...
PypiClean
/FamcyDev-0.3.71-py3-none-any.whl/Famcy/bower_components/bootstrap-fileinput/js/locales/az.js
(function ($) { "use strict"; $.fn.fileinputLocales['az'] = { fileSingle: 'fayl', filePlural: 'fayl', browseLabel: 'Seç &hellip;', removeLabel: 'Sil', removeTitle: 'Seçilmiş faylları təmizlə', cancelLabel: 'İmtina et', cancelTitle: 'Cari yükləməni dayandı...
PypiClean
/LUASprites-0.0.28.tar.gz/LUASprites-0.0.28/src/spritegen/cli.py
import time import requests from colorama import Fore, Back, Style import colorama import os import sys from PIL import Image IMAGE_SIZE = [1024, 1024]; colorama.init(autoreset=True) BANNER = Fore.CYAN + "Welcome to reteach's SpriteSheet Generator...""" LUA_HEADER = """ local Spritesheet = require(script:FindFirstA...
PypiClean
/Chorus-0.9.0.tar.gz/Chorus-0.9.0/chorus/rdkit.py
from rdkit import Chem from rdkit.Chem import AllChem from rdkit.Chem import rdFMCS from rdkit import DataStructs from chorus.model.graphmol import Compound from chorus.model.atom import Atom, atom_number from chorus.model.bond import Bond from chorus import molutil # TODO: stereo, aromatic etc def to_rdmol(mol): ...
PypiClean
/FlowMaster-0.7.1.tar.gz/FlowMaster-0.7.1/flowmaster/operators/etl/transform/tschema.py
from abc import ABC, abstractmethod from typing import TYPE_CHECKING, Any, Optional, Union import pydantic from datagun import Series from flowmaster.operators.etl.transform.policy import DTypeLiteralT from flowmaster.operators.etl.transform.policy import ErrorPolicyLiteralT if TYPE_CHECKING: from flowmaster.ope...
PypiClean
/Electrum-CHI-3.3.8.tar.gz/Electrum-CHI-3.3.8/packages/dns/rdtypes/ANY/SSHFP.py
# Copyright (C) 2005-2007, 2009-2011 Nominum, Inc. # # Permission to use, copy, modify, and distribute this software and its # documentation for any purpose with or without fee is hereby granted, # provided that the above copyright notice and this permission notice # appear in all copies. # # THE SOFTWARE IS PROVIDED ...
PypiClean
/Blogofile-0.8.3.tar.gz/Blogofile-0.8.3/blogofile/filter.py
from __future__ import print_function import sys import os import logging import imp import uuid import inspect logger = logging.getLogger("blogofile.filter") from .cache import bf from .cache import HierarchicalCache from . import exception bf.filter = sys.modules['blogofile.filter'] default_filter_config = {"name...
PypiClean
/OASYS1-CRYSTALPY-1.33.tar.gz/OASYS1-CRYSTALPY-1.33/orangecontrib/crystalpy/widgets/elements/OWCrystalpy.py
import numpy import sys from orangewidget import gui from orangewidget.settings import Setting from oasys.widgets import gui as oasysgui, congruence from oasys.widgets.exchange import DataExchangeObject from orangecontrib.xoppy.widgets.gui.ow_xoppy_widget import XoppyWidget import scipy.constants as codata import x...
PypiClean
/Auto_FOX-1.0.0b1-py3-none-any.whl/FOX/functions/charge_utils.py
from __future__ import annotations from itertools import chain from collections.abc import Hashable, Collection, Container from typing import SupportsFloat, TypeVar, Any import numpy as np import pandas as pd from nanoutils import TypedDict __all__ = ['update_charge'] T = TypeVar('T') KT = TypeVar('KT', bound=Hash...
PypiClean
/AIFloodMaster-1.1.0-py3-none-any.whl/FloodMaster/controllers/PySwmmDdpgRTC/DdpgEnv.py
import numpy as np from pyswmm import Simulation, Nodes, Links from rl.core import Env # 非本地版本 from gym import spaces # 非本地版本 class PySwmmEnv(Env): """基于 Env 接口的 pyswmm 强化学习环境。 该环境通过加载swmm输入文件初始化pyswmm模型, 并暴露指定的控制对象, 包括水池、孔口和节点。 该环境同时限定了实时控制的方式, 即通过调控孔口对象来维持水池目标水深和减少节点溢流。 """ def __init__(self...
PypiClean
/Flask-Events-0.6.0.tar.gz/Flask-Events-0.6.0/flask_events/events.py
import binascii import codecs import functools import inspect import logging import os import sys import time from collections import OrderedDict import libhoney from flask import current_app, request, _app_ctx_stack as stack from werkzeug.routing import RequestRedirect, MethodNotAllowed, NotFound from . import Unit...
PypiClean
/AIRPrediction-0.0.8.tar.gz/AIRPrediction-0.0.8/docs/build/html/_static/searchtools.js
if (!Scorer) { /** * Simple result scoring code. */ var Scorer = { // Implement the following function to further tweak the score for each result // The function takes a result array [filename, title, anchor, descr, score] // and returns the new score. /* score: function(result) { re...
PypiClean
/Dixit-0.1.1-py3-none-any.whl/dixit/templates/main.js
var TITLE = '{{ display.Labels.TITLE }}'; var ALERT_TITLE = TITLE + ' (!)'; // Refresh each element every X millesconds var GAMELIST_INTERVAL = 10000; var USERLIST_INTERVAL = 20000; var CHATROOM_INTERVAL = 3000; var GAMEBOARD_INTERVAL = 4000; // Summary of game state for an observer var observerMessages = []; obser...
PypiClean
/Django_patch-2.2.19-py3-none-any.whl/django/db/backends/oracle/compiler.py
from django.db import NotSupportedError from django.db.models.sql import compiler class SQLCompiler(compiler.SQLCompiler): def as_sql(self, with_limits=True, with_col_aliases=False): """ Create the SQL for this query. Return the SQL string and list of parameters. This is overridden from th...
PypiClean
/Mako-1.2.4.tar.gz/Mako-1.2.4/mako/util.py
from ast import parse import codecs import collections import operator import os import re import timeit from .compat import importlib_metadata_get def update_wrapper(decorated, fn): decorated.__wrapped__ = fn decorated.__name__ = fn.__name__ return decorated class PluginLoader: def __init__(self, ...
PypiClean
/Dabo-0.9.16.tar.gz/Dabo-0.9.16/dabo/ui/dialogs/WizardPage.py
import dabo.ui dabo.ui.loadUI("wx") from dabo.dLocalize import _ import dabo.dEvents as dEvents import dabo.dConstants as k class WizardPage(dabo.ui.dScrollPanel): def __init__(self, parent, properties=None, *args, **kwargs): self._titleLabel = None self._caption = _("Wizard Page") self._titleFontFace = "" ...
PypiClean
/DjangoDjangoAppCenter-0.0.11-py3-none-any.whl/AppCenter/simpleui/static/admin/js/SelectFilter2.js
SelectFilter2 - Turns a multiple-select box into a filter interface. Requires jQuery, core.js, and SelectBox.js. */ (function ($) { 'use strict'; function findForm(node) { // returns the node of the form containing the given node if (node.tagName.toLowerCase() !== 'form') { return ...
PypiClean
/KnowledgeCore-2.8.10.tar.gz/KnowledgeCore-2.8.10/src/knowledge_core/kb.py
import logging logger = logging.getLogger("KnowledgeCore." + __name__) import time import pathlib from queue import Queue, Empty import traceback try: import rdflib logger.info("Using RDFlib %s" % rdflib.__version__) except ImportError: logger.error("RDFlib is required. Please install it.") import ...
PypiClean
/KL_Audit_supportV2.0-1.0-py3-none-any.whl/AuditModule/common/AppConstants.py
from datetime import datetime from AuditModule.common.configuration_settings import config class AuditLogsConstants: def __init__(self): pass audit_time_date_format = "%Y-%m-%d %H:%M:%S.%f" epoch_date = datetime(1970, 1, 1) application_type_json = {"login_handler": {"application_type": "login...
PypiClean
/DLTA-AI-1.1.tar.gz/DLTA-AI-1.1/DLTA_AI_app/mmdetection/mmdet/core/post_processing/merge_augs.py
import copy import warnings import numpy as np import torch from mmcv import ConfigDict from mmcv.ops import nms from ..bbox import bbox_mapping_back def merge_aug_proposals(aug_proposals, img_metas, cfg): """Merge augmented proposals (multiscale, flip, etc.) Args: aug_proposals (list[Tensor]): pro...
PypiClean
/BGAscraper-0.0.1.tar.gz/BGAscraper-0.0.1/project/cleaning.py
def clean_games_stats(game_details_ele, picture_link, url): """ This module contains functions for cleaning data, it is called by BGA_scraper when run. Keyword arguements: ------------------- game_details - game info to be cleaned, string picture_link - url to game image, passed on without c...
PypiClean
/GeoNode-3.2.0-py3-none-any.whl/geonode/static/lib/js/plugins/quickbars/plugin.js
(function (domGlobals) { 'use strict'; var global = tinymce.util.Tools.resolve('tinymce.PluginManager'); var unique = 0; var generate = function (prefix) { var date = new Date(); var time = date.getTime(); var random = Math.floor(Math.random() * 1000000000); unique++; ret...
PypiClean
/Electrum-VTC-2.9.3.3.tar.gz/Electrum-VTC-2.9.3.3/plugins/ledger/qt.py
import threading from PyQt4.Qt import (QDialog, QInputDialog, QLineEdit, QVBoxLayout, QLabel, SIGNAL) import PyQt4.QtCore as QtCore from electrum_vtc.i18n import _ from .ledger import LedgerPlugin from ..hw_wallet.qt import QtHandlerBase, QtPluginBase from electrum_vtc_gui.qt.util import * from...
PypiClean
/Flask-Assets-2.0.tar.gz/Flask-Assets-2.0/docs/index.rst
Flask-Assets ============ .. currentmodule:: flask_assets Flask-Assets helps you to integrate `webassets`_ into your `Flask`_ application. .. _webassets: http://github.com/miracle2k/webassets .. _Flask: http://flask.pocoo.org/ Installation ------------ Install the extension with one of the following commands:: ...
PypiClean
/EasyForge-0.0.2.tar.gz/EasyForge-0.0.2/README.md
<h1>Forge APS</h1> <p> The forge (APS) package is developed to create Forge APS token create/ delete buckets and others. <br> In this Package the following Forge API:<br> 1.Data Management API<br> 2.Authentication API <br> 3.ModelDerivative API<br> </p> <p>The Following are sample examples.</p> <p> Example 1 (To creat...
PypiClean
/OBITools-1.2.13.tar.gz/OBITools-1.2.13/doc/sphinx/source/attributes/avg_quality.rst
avg_quality =========== A float value indicating the average quality of the raw sequence. .. note:: This tag can be used to investigate why sequences have not been assigned to any sample by :doc:`ngsfilter <../scripts/ngsfilter>` .. seealso:: - :doc:`head_quality <./head...
PypiClean