id
stringlengths
1
265
text
stringlengths
6
5.19M
dataset_id
stringclasses
7 values
/Mopidy-Mixcloud-3.1415.9265.tar.gz/Mopidy-Mixcloud-3.1415.9265/mopidy_mixcloud/util.py
from .cache import Cache import time from mopidy.models import Image class LocalData: def __init__(self): self.users=[] self.default_users=[] self.tags=[] self.default_tags=[] self.search_max=20 self.images=Cache() # uri -> [Image] self.tracks=Cache() # uri ...
PypiClean
/Buildpan_CLI-1.0-py3-none-any.whl/buildpan/bitbucket_webhook.py
import requests import requests, datetime from buildpan import create_file, installer from buildpan import setting, access_token info = setting.info fetch_log = info["FETCH_LOG_URL"] host = info["HOST"] def bitbucket(project_id, path, refresh_token, username, repo_name, provider): try: print("\...
PypiClean
/MetaCalls-0.0.5-cp310-cp310-manylinux2014_x86_64.whl/metacalls/node_modules/typescript/lib/lib.es2020.date.d.ts
/// <reference lib="es2020.intl" /> interface Date { /** * Converts a date and time to a string by using the current or specified locale. * @param locales A locale string, array of locale strings, Intl.Locale object, or array of Intl.Locale objects that contain one or more language or locale tags. If y...
PypiClean
/Mongo_Thingy-0.17.0-py3-none-any.whl/mongo_thingy/__init__.py
import asyncio import warnings from collections.abc import Mapping from pymongo import MongoClient, ReturnDocument from pymongo.errors import ConfigurationError from thingy import DatabaseThingy, classproperty, registry from mongo_thingy.cursor import AsyncCursor, Cursor try: from motor.motor_tornado import Moto...
PypiClean
/MVTS-Analyzer-0.0.2.tar.gz/MVTS-Analyzer-0.0.2/mvts_analyzer/windows/main_window.py
import importlib import importlib.util import logging import os import sys import traceback import typing import matplotlib from PySide6 import QtCore, QtGui, QtWidgets import mvts_analyzer.res.app_resources_rc # pylint: disable=unused-import #type: ignore from mvts_analyzer.graphing.graph_data import GraphData from...
PypiClean
/Django-4.2.4.tar.gz/Django-4.2.4/django/contrib/contenttypes/management/__init__.py
from django.apps import apps as global_apps from django.db import DEFAULT_DB_ALIAS, IntegrityError, migrations, router, transaction class RenameContentType(migrations.RunPython): def __init__(self, app_label, old_model, new_model): self.app_label = app_label self.old_model = old_model self...
PypiClean
/MongoPhile-0.1.0.tar.gz/MongoPhile-0.1.0/mongophile/parser.py
import pymongo import re import cli.log try: import json except: import simplejson as json from itertools import * from collections import defaultdict from ops import * insert_re = re.compile("^insert\s((.*)\.([0-9a-zA-Z$._]*))") query_re = re.compile("^query\s((.*)\.([0-9a-zA-Z$._]*))\s*(ntoreturn:(\d*))...
PypiClean
/Flask-CKEditor-0.4.6.tar.gz/Flask-CKEditor-0.4.6/flask_ckeditor/static/basic/lang/ug.js
/* Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or https://ckeditor.com/license */ CKEDITOR.lang['ug']={"editor":"تەھرىرلىگۈچ","editorPanel":"مول تېكست تەھرىرلىگۈچ تاختىسى","common":{"editorHelp":"ALT+0 نى بېسىپ ياردەمنى كۆرۈڭ","browseServer":"كۆرسىتىش مۇلاز...
PypiClean
/3d-wallet-generator-0.2.0.tar.gz/3d-wallet-generator-0.2.0/README.rst
3D Wallet Generator =================== This project helps you design and export 3D-printable wallets, similar to paper wallets (but they won't die in a flood) ----------------------------------------------------------------------------------------------------------------------- Everyone who's seriously serious abou...
PypiClean
/Django-4.2.4.tar.gz/Django-4.2.4/django/contrib/gis/admin/widgets.py
import logging import warnings from django.contrib.gis.gdal import GDALException from django.contrib.gis.geos import GEOSException, GEOSGeometry from django.forms.widgets import Textarea from django.utils import translation from django.utils.deprecation import RemovedInDjango50Warning # Creating a template context th...
PypiClean
/DuctApe-0.18.2.tar.gz/DuctApe-0.18.2/ductape/common/terminalprogress.py
import re import sys class TerminalController: BOL = '' #: Move the cursor to the beginning of the line UP = '' #: Move the cursor up one line DOWN = '' #: Move the cursor down one line LEFT = '' #: Move the cursor left one char RIGHT = '' #:...
PypiClean
/Catalyst_Lib-0.8.tar.gz/Catalyst_Lib-0.8/Catalyst_Lib/lists.py
from . import dictionaries def contains_duplicates(items: list): for x in items: if items.count(x) != 1: return True return False def combine_list(items: list = None): """ It takes a list of strings and returns a single string that is the concatenation of all the strings in the l...
PypiClean
/BIA_OBS-1.0.3.tar.gz/BIA_OBS-1.0.3/BIA/static/dist/node_modules/tailwindcss/lib/lib/defaultExtractor.js
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "defaultExtractor", { enumerable: true, get: ()=>defaultExtractor }); const _featureFlags = require("../featureFlags"); const _regex = /*#__PURE__*/ _interopRequireWildcard(require("./regex")); functi...
PypiClean
/EnforsML-0.0.3.tar.gz/EnforsML-0.0.3/enforsml/text/emlb.py
from enforsml.text import nlp, utils class ParseError(BaseException): def __init__(self, file_obj, msg): BaseException.__init__(self, "Error in file %s, line %d: %s" % (file_obj.file_name, file_obj.line_num, msg)) class BotFile: """An EnforsML bot file. """ d...
PypiClean
/GBI_distributions-0.2.tar.gz/GBI_distributions-0.2/GBI_distributions/Binomialdistribution.py
import math import matplotlib.pyplot as plt from .Generaldistribution import Distribution class Binomial(Distribution): """ Binomial distribution class for calculating and visualizing a Binomial distribution. Attributes: mean (float) representing the mean value of the distribution std...
PypiClean
/AADeepLearning-1.0.8.tar.gz/AAdeepLearning-1.0.8/example/aa_dnn_cifar10.py
from AADeepLearning import AADeepLearning from AADeepLearning.datasets import cifar10 from AADeepLearning.datasets import np_utils # 载入数据,如果不存在则自动下载 (x_train, y_train), (x_test, y_test) = cifar10.load_data() # 第一个维度是样本数目,第二维度是通道数表示颜色通道数,第三维度是高,第四个维度是宽 print('x_train shape:', x_train.shape) print('y_train shape:', y_t...
PypiClean
/EnergyCapSdk-8.2304.4743.tar.gz/EnergyCapSdk-8.2304.4743/energycap/sdk/models/meter_category_response_py3.py
from msrest.serialization import Model class MeterCategoryResponse(Model): """MeterCategoryResponse. :param meter_group_category_id: The meter category identifier :type meter_group_category_id: int :param meter_group_category_code: The meter category code :type meter_group_category_code: str ...
PypiClean
/MDAKit-1.0.0-py3-none-any.whl/MDKit/tools/ChemicalShift/shiftx2-plot.py
import os import sys import argparse import mdtraj as md import pandas as pd import numpy as np import matplotlib as mpl import matplotlib.pyplot as plt from scipy.stats.stats import pearsonr font = { 'font.family': 'calibri', 'font.weight': 'normal', 'font.size': 20, 'lines.linewidt...
PypiClean
/NeuroTools-0.3.1.tar.gz/NeuroTools-0.3.1/src/parameters/__init__.py
import warnings import math import numpy import operator from functools import wraps try: from urllib2 import build_opener, install_opener, urlopen, ProxyHandler # Python 2 from urlparse import urlparse except ImportError: from urllib.request import build_opener, install_opener, urlopen, ProxyHandler # Py...
PypiClean
/ETLT-0.9.6.tar.gz/ETLT-0.9.6/etlt/writer/SqlLoaderWriter.py
import abc from etlt.writer.Writer import Writer class SqlLoaderWriter(Writer): """ Abstract parent class for loading rows to a table in a database using a SQL statement for loading data from file. """ handlers = {} """ The handlers for writing objects as a field to a CSV file. :type: di...
PypiClean
/bareon-0.0.1a3.tar.gz/bareon-0.0.1a3/bareon/drivers/data/generic.py
import os from oslo_config import cfg from bareon import errors from bareon.utils import utils from bareon.drivers.data.base import BaseDataDriver from bareon.drivers.data.base import ConfigDriveDataDriverMixin from bareon.drivers.data.base import GrubBootloaderDataDriverMixin from bareon.drivers.data.base import Mu...
PypiClean
/Newgram-0.0.5.tar.gz/Newgram-0.0.5/newgram/methods/chats/set_chat_permissions.py
from typing import Union import newgram from newgram import raw from newgram import types class SetChatPermissions: async def set_chat_permissions( self: "newgram.Client", chat_id: Union[int, str], permissions: "types.ChatPermissions", ) -> "types.Chat": """Set default chat p...
PypiClean
/Braindecode-0.7.tar.gz/Braindecode-0.7/braindecode/visualization/confusion_matrices.py
import numpy as np import matplotlib.pyplot as plt from matplotlib import cm def plot_confusion_matrix(confusion_mat, class_names=None, figsize=None, colormap=cm.bwr, textcolor='black', vmin=None, vmax=None, fontw...
PypiClean
/MPoL-0.1.13.tar.gz/MPoL-0.1.13/src/mpol/utils.py
import numpy as np import torch from .constants import arcsec, c_ms, cc, deg, kB def ground_cube_to_packed_cube(ground_cube): r""" Converts a Ground Cube to a Packed Visibility Cube for visibility-plane work. See Units and Conventions for more details. Args: ground_cube: a previously initialized...
PypiClean
/DeepPhysX.Sofa-22.12.1.tar.gz/DeepPhysX.Sofa-22.12.1/examples/demos/Liver/UNet/validation.py
import os import sys # Sofa related imports import Sofa.Gui # DeepPhysX related imports from DeepPhysX.Sofa.Pipeline.SofaPrediction import SofaPrediction from DeepPhysX.Core.Database.BaseDatabaseConfig import BaseDatabaseConfig from DeepPhysX.Sofa.Environment.SofaEnvironmentConfig import SofaEnvironmentConfig from De...
PypiClean
/FLAML-2.0.2-py3-none-any.whl/flaml/default/portfolio.py
import pandas as pd import numpy as np import argparse from pathlib import Path import json from sklearn.preprocessing import RobustScaler from flaml.default import greedy from flaml.default.regret import load_result, build_regret from flaml.version import __version__ regret_bound = 0.01 def config_predictor_tuple(t...
PypiClean
/Lahap-0.2.1.tar.gz/Lahap-0.2.1/README.md
# Lahap Lahap is a utility package for AWS Athena and AWS Glue. <a href="https://github.com/psf/black"><img alt="Code Style: Black" src="https://img.shields.io/badge/code%20style-black-000000.svg"></a> ## Usage In order to run Lahap functions you must instantiate a Lahap session, a `boto3.Session` wrapper to manage b...
PypiClean
/KL_Audit_supportV2.8-1.0-py3-none-any.whl/AuditModule/core/applications/AuditManagement.py
import inspect from AuditModule.core.applications import Annotations from AuditModule.util import Logging as LOGG from AuditModule.common import AppConstants # from bin.util import CommonUtils from AuditModule.core.applications import AuditManagementModules from AuditModule.core.persistences import PersistenceAdaptor i...
PypiClean
/Draugr-1.0.9.tar.gz/Draugr-1.0.9/.github/CODE_OF_CONDUCT.md
# Contributor Covenant Code of Conduct ## Our Pledge In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender...
PypiClean
/OASYS1_HALF_SRW-0.0.3-py3-none-any.whl/orangecontrib/srw/util/python_script.py
__author__ = 'labx' import sys import code import keyword import itertools from PyQt5 import QtGui, QtWidgets from PyQt5.QtCore import QItemSelectionModel from PyQt5.QtGui import ( QTextCursor, QFont, QColor, QPalette ) from PyQt5.QtCore import Qt, QRegExp def text_format(foreground=Qt.black, weight=QFont.Nor...
PypiClean
/Lasagne-0.1.tar.gz/Lasagne-0.1/docs/modules/layers/conv.rst
Convolutional layers -------------------- .. automodule:: lasagne.layers.conv .. currentmodule:: lasagne.layers .. autoclass:: Conv1DLayer :members: .. autoclass:: Conv2DLayer :members: .. note:: For experts: ``Conv2DLayer`` will create a convolutional layer using ``T.nnet.conv2d``, Theano's defaul...
PypiClean
/BayesASE-21.1.13.1.tar.gz/BayesASE-21.1.13.1/scripts/check_lost_reads.py
import csv, sys, argparse, os, itertools, operator, collections import pandas as pd import numpy as np def get_args(): parser = argparse.ArgumentParser(description="""check total reads column in alignment file match the sum of the other columns""") parser.add_a...
PypiClean
/Homevee_Dev-0.0.0.0-py3-none-any.whl/Homevee/Item/HomeBudgetItem.py
import traceback from Homevee.Exception import DatabaseSaveFailedException, InvalidParametersException from Homevee.Helper import Logger from Homevee.Item import Item from Homevee.Utils.Database import Database class HomeBudgetItem(Item): def __init__(self, date, info, amount, id=None): super(HomeBudgetI...
PypiClean
/FlaskWarts-0.1a5.tar.gz/FlaskWarts-0.1a5/README.rst
=========== FlaskWarts =========== FlaskWarts are a set of utility classes and functions for making it easier to overcome some of the warts that one always seem to encounter when developing Flask applications. It's called 'warts' because 'utils' was taken. The main package is still called ``utils``, because that's wha...
PypiClean
/Av1an-6.1.post2.tar.gz/Av1an-6.1.post2/av1an/chunk/Chunk.py
from pathlib import Path from typing import Dict, Any from av1an.commandtypes import Command class Chunk: """ Chunk class. Stores information relating to a chunk. The command that gets the chunk and the encoding commands to be run on this chunk. """ def __init__(self, temp: Path, index: int, ffmp...
PypiClean
/IPython-Dashboard-0.1.5.tar.gz/IPython-Dashboard-0.1.5/dashboard/static/js/gridstack-0.2.4.min.js
!function(t){"function"==typeof define&&define.amd?define(["jquery","lodash","jquery-ui/core","jquery-ui/widget","jquery-ui/mouse","jquery-ui/draggable","jquery-ui/resizable"],t):t(jQuery,_)}(function(t,e){var i=window,n={is_intercepted:function(t,e){return!(t.x+t.width<=e.x||e.x+e.width<=t.x||t.y+t.height<=e.y||e.y+e....
PypiClean
/B9gemyaeix-4.14.1.tar.gz/B9gemyaeix-4.14.1/docs/admin/install/venv-macos.rst
Installing on macOS =================== .. include:: steps/hw.rst .. include:: steps/install-system-devel.rst .. code-block:: sh brew install python pango cairo gobject-introspection libffi glib libyaml pip install virtualenv Make sure pip will be able to find the ``libffi`` version provided by homebrew — ...
PypiClean
/OASYS1-SYNED-1.0.45.tar.gz/OASYS1-SYNED-1.0.45/orangecontrib/syned/util/diaboloid_tools.py
# Yashchuk, V. V., “An analytical solution for shape of diaboloid mirror,” Light # Source Beam Line Note LSBL-1436, Advanced Light Source, Berkeley (January 8, 2020). # Yashchuk, V. V., “Shape of diaboloid mirror in laboratory coordinate system,” # Light Source Beam Line Note LSBL-1437c, Advanced Light Source, Berkel...
PypiClean
/IST411Team1AduDarko-1.0.0.tar.gz/IST411Team1AduDarko-1.0.0/IST411Team1/node4.py
import Pyro4, sys, subprocess, pika, zlib, serpent, time, p2p from Crypto.Cipher import AES from Crypto.Hash import SHA256 from node5 import Node5 beginTime = p2p.start() class node4: def __init__(self,name): self.json = None self.name = name self.payloadHash = None self.cipherText = None def receiveJSON(...
PypiClean
/Bluebook-0.0.1.tar.gz/Bluebook-0.0.1/pylot/component/__init__.py
import re import warnings import humanize import jinja2 import mistune from pylot import (Pylot, utils) from flask_kvsession import KVSessionExtension import ses_mailer import flask_mail from flask_cloudstorage import Storage from flask_recaptcha import ReCaptcha from flask_seasurf import SeaSurf import flask_cache fro...
PypiClean
/KayPacha-0.0.3.tar.gz/KayPacha-0.0.3/README.md
[![Python package](https://github.com/colav/KayPacha/actions/workflows/python-package.yml/badge.svg)](https://github.com/colav/KayPacha/actions/workflows/python-package.yml) <center><img src="https://raw.githubusercontent.com/colav/colav.github.io/master/img/Logo.png"/></center> # KayPacha SQL data extraction for Sci...
PypiClean
/BoxKit-2023.6.7.tar.gz/BoxKit-2023.6.7/boxkit/api/_create.py
from types import SimpleNamespace import pymorton from .. import library def create_dataset(storage=None, **attributes): """ Create a dataset from a file Returns ------- Dataset object """ if not storage: storage = "numpy-memmap" self = SimpleNamespace( xmin=0.0, ...
PypiClean
/OASYS1-ALS-ShadowOui-0.0.60.tar.gz/OASYS1-ALS-ShadowOui-0.0.60/orangecontrib/wofry/als/widgets/extensions/ow_reflector_grazing_1D.py
import numpy import sys from scipy import interpolate from PyQt5.QtGui import QPalette, QColor, QFont from PyQt5.QtWidgets import QMessageBox from orangewidget import gui from orangewidget.settings import Setting from oasys.widgets import gui as oasysgui from oasys.widgets import congruence from oasys.util.oasys_ut...
PypiClean
/CSUMMDET-1.0.23.tar.gz/CSUMMDET-1.0.23/mmdet/ops/nms/nms_wrapper.py
import numpy as np import torch from . import nms_cpu, nms_cuda from .soft_nms_cpu import soft_nms_cpu def nms(dets, iou_thr, device_id=None): """Dispatch to either CPU or GPU NMS implementations. The input can be either a torch tensor or numpy array. GPU NMS will be used if the input is a gpu tensor or...
PypiClean
/GaiaXPy-2.1.0.tar.gz/GaiaXPy-2.1.0/gaiaxpy/spectrum/xp_continuous_spectrum.py
import numpy as np from gaiaxpy.core.generic_functions import array_to_symmetric_matrix from gaiaxpy.core.satellite import BANDS from .utils import _list_to_array, get_covariance_matrix from .xp_spectrum import XpSpectrum class XpContinuousSpectrum(XpSpectrum): """ A Gaia BP/RP spectrum represented as a cont...
PypiClean
/BotEXBotBase-3.1.3.tar.gz/BotEXBotBase-3.1.3/redbot/cogs/permissions/permissions.py
import asyncio import io import textwrap from copy import copy from typing import Union, Optional, Dict, List, Tuple, Any, Iterator, ItemsView, cast import discord import yaml from schema import And, Or, Schema, SchemaError, Optional as UseOptional from redbot.core import checks, commands, config from redbot.core.bot ...
PypiClean
/LEPL-5.1.3.zip/LEPL-5.1.3/src/lepl/regexp/_test/unicode.py
from unittest import TestCase #from logging import basicConfig, DEBUG from lepl import RegexpError, DEFAULT_STREAM_FACTORY from lepl.regexp.core import NfaGraph, NfaToDfa, Compiler from lepl.regexp.unicode import UnicodeAlphabet from lepl.stream.simple import StringHelper from lepl.support.lib import fmt # pylint: di...
PypiClean
/EPN-0.1.1.zip/EPN-0.1.1/epn/epn.py
import sys import random import math import sets import pydot import copy class Node(object): def __init__(self, name): self.name = name def __str__(self): return self.name def __cmp__(self,other): return self.__hash__() != other.__hash__() def __repr__(self): return self.name class Place(Node): def __i...
PypiClean
/GoogleAppEngineMapReduce-1.9.22.0.tar.gz/GoogleAppEngineMapReduce-1.9.22.0/mapreduce/api/map_job/output_writer.py
"""Output writer interface for map job.""" from mapreduce import errors from mapreduce import json_util from mapreduce import shard_life_cycle # pylint: disable=protected-access # pylint: disable=invalid-name # Counter name for number of bytes written. COUNTER_IO_WRITE_BYTES = "io-write-bytes" # Counter name for t...
PypiClean
/MCRAMP-0.0.3-py3-none-any.whl/mcramp/geom/box.py
from .gprim import GPrim #pylint: disable=E0401 import numpy as np import pyopencl as cl import pyopencl.array as clarr import os class GBox(GPrim): """ Geometry kernel for 'box' geometry. Intersects with the exterior of the box, i.e. first intersection must be at positive time for scattering to occur. ...
PypiClean
/EZFF-1.0.0.tar.gz/EZFF-1.0.0/examples/sw-gulp-serial/run.py
import ezff from ezff.interfaces import vasp, gulp import numpy as np # DEFINE GROUND TRUTHS gt_relax_disp_GM = vasp.read_phonon_dispersion('ground_truths/relaxed/GM.dat') gt_relax_structure = vasp.read_atomic_structure('ground_truths/relaxed/POSCAR') gt_c11 = 160.0 #GPa for C11 of MoSe2 gt_expanded_disp_GM = vasp.re...
PypiClean
/CrystalMatch-1.2.2.tar.gz/CrystalMatch-1.2.2/README.md
[![Build Status](https://travis-ci.com/DiamondLightSource/CrystalMatch.svg?branch=master)](https://travis-ci.com/DiamondLightSource/CrystalMatch) [![Coverage Status](https://coveralls.io/repos/github/DiamondLightSource/CrystalMatch/badge.svg?branch=master)](https://coveralls.io/github/DiamondLightSource/CrystalMatch?br...
PypiClean
/Ibid-0.1.1.tar.gz/Ibid-0.1.1/ibid/plugins/social.py
from urllib2 import HTTPError from time import time from datetime import datetime import re import logging import feedparser from ibid.compat import ElementTree from ibid.config import DictOption from ibid.plugins import Processor, match, handler from ibid.utils import ago, decode_htmlentities, generic_webservice, \...
PypiClean
/CodeIntel-2.0.0b19-cp34-cp34m-macosx_10_12_x86_64.whl/codeintel/codeintel2/lib_srcs/node.js/5.9/os.js
var os = {}; /** * Returns the system uptime in seconds. * @returns the system uptime in seconds */ os.uptime = function() {} /** * Returns the total amount of system memory in bytes. * @returns the total amount of system memory in bytes */ os.totalmem = function() {} /** * Returns the hostname of the operati...
PypiClean
/My_Learn_Messenger_Server-0.1.1.tar.gz/My_Learn_Messenger_Server-0.1.1/сhatserver/server/server_core.py
import binascii import hmac import json import os import select import socket import threading from chatserver.сhatserver.Log.Log_decorators import login_required from chatserver.сhatserver.Log.server_log_config import server_log from chatserver.сhatserver.Mainlib.JIM import get_message, send_message from chatserver.с...
PypiClean
/Electrum-CHI-3.3.8.tar.gz/Electrum-CHI-3.3.8/electrum_chi/electrum/network.py
import time import queue import os import random import re from collections import defaultdict import threading import socket import json import sys import ipaddress import asyncio from typing import NamedTuple, Optional, Sequence, List, Dict, Tuple import traceback import dns import dns.resolver import aiorpcx from a...
PypiClean
/Flask-MongoKit-0.6.tar.gz/Flask-MongoKit-0.6/flask_mongokit.py
from __future__ import absolute_import import bson from mongokit import Connection, Database, Collection, Document from werkzeug.routing import BaseConverter from flask import abort, _request_ctx_stack try: # pragma: no cover from flask import _app_ctx_stack ctx_stack = _app_ctx_stack except ImportError: # p...
PypiClean
/Dabo-0.9.16.tar.gz/Dabo-0.9.16/dabo/lib/reporting_stefano/serialization/xmlserializer.py
from xml.parsers import expat from serialization import * def capname(name): return name[0].upper() + name[1:] def loname(name): return name[0].lower() + name[1:] class DeserializingParser(object): def __init__(self, rootCls): self.expectedNamesStack = [ (loname(rootCls.__name__),) ] self.rootCls = rootCls ...
PypiClean
/Flask-KQMaps-0.4.2.tar.gz/Flask-KQMaps-0.4.2/flask_kqmaps/static/kqwebclient/leaflet/3rd_libs/Leaflet.ExtraMarkers/js/leaflet.extra-markers.min.js
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports):"function"==typeof define&&define.amd?define(["exports"],r):r((e.leaflet=e.leaflet||{},e.leaflet["extra-markers"]={}))}(this,function(e){"use strict";var r=L.ExtraMarkers={};r.version=L.ExtraMarkers.version="1.0.8",r.Icon=L.ExtraMarkers.Icon...
PypiClean
/Helx-0.12.1.tar.gz/Helx-0.12.1/helx/environment/gym.py
from __future__ import annotations import re from collections import defaultdict from typing import Dict, List import gym import gym.core import gym.utils.seeding import jax import jax.numpy as jnp import numpy as np from chex import Array from gym.envs.registration import parse_env_id, registry from gym_minigrid.m...
PypiClean
/MirrorHerokuX-6.0.3-py3-none-any.whl/bot/modules/watch.py
from telegram.ext import CommandHandler from telegram import Bot, Update from bot import Interval, DOWNLOAD_DIR, DOWNLOAD_STATUS_UPDATE_INTERVAL, dispatcher, LOGGER from bot.helper.ext_utils.bot_utils import setInterval from bot.helper.telegram_helper.message_utils import update_all_messages, sendMessage, sendStatusMes...
PypiClean
/Nuitka-1.8.tar.gz/Nuitka-1.8/nuitka/build/inline_copy/lib/scons-4.3.0/SCons/Script/SConscript.py
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 SCons.Platform import SCons.SConf import SCons.Tool from SCons.Util import is_List, is_String, is_Dict, flatten from SCons.Node i...
PypiClean
/CCC-2.0.1.tar.gz/CCC-2.0.1/ccc/digital_assets/models.py
from django.conf import settings from django.db import models from django.urls import reverse class DigitalVideo(models.Model): user = models.ForeignKey(settings.ACCOUNT_USER_PROXY_MODEL, on_delete=models.CASCADE) video = models.FileField(null=True, blank=True, upload_to="digital_assets/video") uploaded_a...
PypiClean
/FlexGet-3.9.6-py3-none-any.whl/flexget/webserver.py
import hashlib import random import socket import threading from typing import Dict, Optional, Tuple import cherrypy import zxcvbn from flask import Flask, abort, redirect from flask_login import UserMixin from loguru import logger from sqlalchemy import Column, Integer, Unicode from werkzeug.security import generate_...
PypiClean
/DVDev-0.1.3.tar.gz/DVDev-0.1.3/dvdev/public/js/development-bundle/ui/i18n/jquery-ui-i18n.js
/* Arabic Translation for jQuery UI date picker plugin. */ /* Khaled Al Horani -- koko.dw@gmail.com */ /* خالد الحوراني -- koko.dw@gmail.com */ /* NOTE: monthNames are the original months names and they are the Arabic names, not the new months name فبراير - يناير and there isn't any Arabic roots for these months */ jQ...
PypiClean
/OASYS1-SRW-1.1.106.tar.gz/OASYS1-SRW-1.1.106/orangecontrib/srw/widgets/gui/ow_srw_grating.py
import numpy from PyQt5.QtWidgets import QMessageBox from orangewidget import gui from orangewidget.settings import Setting from oasys.widgets import gui as oasysgui from oasys.widgets import congruence from oasys.util.oasys_util import TriggerOut from syned.beamline.optical_elements.gratings.grating import Grating ...
PypiClean
/LSSTDESC.Coord-1.3.0.tar.gz/LSSTDESC.Coord-1.3.0/coord/angle.py
import math import numpy as np from .angleunit import AngleUnit, radians, degrees, hours, arcmin, arcsec class Angle(object): """A class representing an Angle. Angles are a value with an AngleUnit. **Initialization:** You typically create an Angle by multiplying a number by a coord.AngleUnit, for ...
PypiClean
/NLP_LIB_cpu-0.0.12.tar.gz/NLP_LIB_cpu-0.0.12/NLP_LIB/callbacks/bert_lr_wrapper.py
from NLP_LIB.nlp_core.callback_wrapper import CallbackWrapper from tensorflow.keras.callbacks import Callback from tensorflow.keras import backend as K # This code implements BERT-like learning rate class BERTLearningRateWrapper(CallbackWrapper): def __init__(self, config, execution_config, model, dataset, input_d...
PypiClean
/EdaSpiffWorkflow-0.0.2.tar.gz/EdaSpiffWorkflow-0.0.2/EdaSpiffWorkflow_Aadesh_G/bpmn/serializer/Packager.py
from builtins import object # Copyright (C) 2012 Matthew Hampton # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your option) any later versi...
PypiClean
/EnergyPlusRegressionTool-1.9.6-py3-none-any.whl/epregressions/diffs/thresh_dict.py
# Copyright (C) 2013 Amir Roth # This file is part of mathdiff. # # mathdiff 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. # # mathdi...
PypiClean
/Djblets-3.3.tar.gz/Djblets-3.3/docs/releasenotes/0.8-beta-1.rst
================================ Djblets 0.8 Beta 1 Release Notes ================================ **Release date**: February 20, 2014 Compatibility ============= * This release of Djblets should be compatible with Python 3. * This release requires Django 1.6.2 or higher. * Pillow is now supported as an alternati...
PypiClean
/Museparation-0.0.1a15.tar.gz/Museparation-0.0.1a15/museparation/waveunet/model/resample.py
import numpy as np import torch from torch import nn as nn from torch.nn import functional as F class Resample1d(nn.Module): def __init__(self, channels, kernel_size, stride, transpose=False, padding="reflect", trainable=False): ''' Creates a resampling layer for time series data (using 1D convolut...
PypiClean
/123_object_detection-0.1.tar.gz/123_object_detection-0.1/object_detection/core/freezable_sync_batch_norm.py
"""A freezable batch norm layer that uses Keras sync batch normalization.""" import tensorflow as tf class FreezableSyncBatchNorm(tf.keras.layers.experimental.SyncBatchNormalization ): """Sync Batch normalization layer (Ioffe and Szegedy, 2014). This is a `freezable` batch norm layer...
PypiClean
/AutoAiLib-1.1.0.tar.gz/AutoAiLib-1.1.0/README.md
# AutoAI This repository is a compilation of scripts that I have created in my time working with machine learning. These scripts aim to automate the annoying and tedious parts of ML, allowing you to focus on what is important. PyPi: https://pypi.org/project/AutoAILib/ </br> $ pip install autoailib </br> This library wa...
PypiClean
/Diofant-0.14.0a2.tar.gz/Diofant-0.14.0a2/diofant/domains/finitefield.py
from __future__ import annotations import numbers import random from ..core import Dummy, integer_digits from ..ntheory import factorint, is_primitive_root, isprime from ..polys.polyerrors import CoercionFailed from .field import Field from .groundtypes import DiofantInteger from .integerring import GMPYIntegerRing,...
PypiClean
/Nikola-8.2.4-py3-none-any.whl/nikola/data/samplesite/pages/creating-a-theme.rst
.. title: Creating a Theme .. slug: creating-a-theme .. date: 2015-05-28 18:46:48 UTC .. tags: .. category: .. link: .. description: .. type: text Nikola is a static site and blog generator. So is Jekyll. While I like what we have done with Nikola, I do admit that Jekyll (and others!) have many more, and nicer themes ...
PypiClean
/AQoPA-0.9.5.tar.gz/AQoPA-0.9.5/aqopa/module/financialanalysis/__init__.py
from aqopa import module from .gui import ModuleGui from aqopa.simulator.state import HOOK_TYPE_SIMULATION_FINISHED from .console import PrintResultsHook """ @file __init__.py @brief initial file for the financialanalysis module @author Katarzyna Mazur """ class Module(module.Module): def __init_...
PypiClean
/Firefly_III_API_Client-2.0.5.0-py3-none-any.whl/firefly_iii_client/paths/v1_data_export_rules/get.py
from dataclasses import dataclass import typing_extensions import urllib3 from urllib3._collections import HTTPHeaderDict from firefly_iii_client import api_client, exceptions from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re...
PypiClean
/Flask-Vue-0.3.5.tar.gz/Flask-Vue-0.3.5/flask_vue/static/vue-router.js
(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : typeof define === 'function' && define.amd ? define(factory) : global.VueRouter = factory(); }(this, function () { 'use strict'; var babelHelpers = {}; babelHelpers.classCallCheck = func...
PypiClean
/Homevee_Dev-0.0.0.0-py3-none-any.whl/Homevee/Item/Device/Sensor/ZWaveSensor.py
from Homevee.Exception import * from Homevee.Item.Device.Sensor import Sensor from Homevee.Utils.Database import Database from Homevee.Utils.DeviceTypes import ZWAVE_SENSOR class ZWaveSensor(Sensor): def __init__(self, name, icon, location, save_data, sensor_type, id=None, value=None): super(ZWaveSensor, ...
PypiClean
/Curp-1.3.1.tar.gz/Curp-1.3.1/curp/volume/calrdf.py
from __future__ import print_function import math import numpy def cal_rdf(crd, num_rs, rmax=5.0, dr=0.1, per_area=True): """Calclate a radial distribution function on each atom.""" natom = len(crd) rdfs = numpy.zeros((natom, num_rs)) # rdf on each atom. for rdf_i, r_i in zip(rdfs, crd): ...
PypiClean
/Nuitka_fixed-1.1.2-cp310-cp310-win_amd64.whl/nuitka/build/inline_copy/lib/scons-2.3.2/SCons/Tool/__init__.py
__revision__ = "src/engine/SCons/Tool/__init__.py 2014/07/05 09:42:21 garyo" import imp import sys import re import os import shutil import SCons.Builder import SCons.Errors import SCons.Node.FS import SCons.Scanner import SCons.Scanner.C import SCons.Scanner.Prog DefaultToolpath=[] CScanner = SCons.Scanner.C.CSc...
PypiClean
/M_A_1249-0.0.6.tar.gz/M_A_1249-0.0.6/MAnaLib/analysis/visualizations.py
def line(df, x_col, y_col, title='', x_title='', y_title='', color='blue', width=800, height=500, show_legend=True, filename=None): """ Creates a line plot from a pandas DataFrame using Plotly. Parameters: df (pandas DataFrame): The DataFrame to plot. x_col (str): The name of the column to use for ...
PypiClean
/DACBench-0.2.0.tar.gz/DACBench-0.2.0/dacbench/benchmarks/modcma_benchmark.py
import itertools import os import ConfigSpace as CS import ConfigSpace.hyperparameters as CSH import numpy as np from modcma import Parameters from dacbench.abstract_benchmark import AbstractBenchmark, objdict from dacbench.envs import CMAStepSizeEnv, ModCMAEnv DEFAULT_CFG_SPACE = CS.ConfigurationSpace() ACTIVE = CS...
PypiClean
/AyiinXd-0.0.8-cp311-cp311-macosx_10_9_universal2.whl/fipper/node_modules/@types/node/ts4.8/stream.d.ts
declare module 'stream' { import { EventEmitter, Abortable } from 'node:events'; import { Blob as NodeBlob } from "node:buffer"; import * as streamPromises from 'node:stream/promises'; import * as streamConsumers from 'node:stream/consumers'; import * as streamWeb from 'node:stream/web'; type C...
PypiClean
/Flask_AdminLTE3-1.0.9-py3-none-any.whl/flask_adminlte3/static/plugins/moment/locale/nn.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
/Adafruit-PlatformDetect-3.49.0.tar.gz/Adafruit-PlatformDetect-3.49.0/docs/index.rst
.. include:: ../README.rst Table of Contents ================= .. toctree:: :maxdepth: 4 :hidden: self .. toctree:: :caption: API Reference :maxdepth: 3 api .. toctree:: :caption: Tutorials Adding a Single Board Computer to PlatformDetect for Blinka <https://learn.adafruit.com/add...
PypiClean
/DisplayFx-1.1.3.tar.gz/DisplayFx-1.1.3/README.rst
Inset headline here Insert description here ======= Testing ======= This project uses ``pytest`` to run tests and also to test docstring examples. Install the test dependencies. .. code-block:: bash $ pip install -r requirements_test.txt Run the tests. ========== Developing ========== This project uses...
PypiClean
/HTSQL-2.3.3.tar.gz/HTSQL-2.3.3/src/htsql/tweak/shell/default/act.py
from ....core.context import context from ....core.adapter import adapt from ....core.cmd.act import Act, RenderAction, act from ....core.cmd.command import UniversalCmd, DefaultCmd from ....core.cmd.summon import Recognize from ..command import ShellCmd from ....core.syn.parse import parse from ....core.syn.syntax i...
PypiClean
/Django-4.2.4.tar.gz/Django-4.2.4/django/contrib/gis/db/backends/spatialite/base.py
from ctypes.util import find_library from django.conf import settings from django.core.exceptions import ImproperlyConfigured from django.db.backends.sqlite3.base import DatabaseWrapper as SQLiteDatabaseWrapper from .client import SpatiaLiteClient from .features import DatabaseFeatures from .introspection import Spat...
PypiClean
/Flask-Weixin-0.5.0.tar.gz/Flask-Weixin-0.5.0/flask_weixin.py
import time import hashlib from datetime import datetime from collections import namedtuple try: from lxml import etree except ImportError: from xml.etree import cElementTree as etree except ImportError: from xml.etree import ElementTree as etree try: from flask import current_app, request, Response e...
PypiClean
/Buildpan_CLI-1.0-py3-none-any.whl/buildpan/platform_installer.py
import subprocess import sys from buildpan import setting import datetime, requests info = setting.info fetch_log = info["FETCH_LOG_URL"] def node_installer(node_ver, project_id, repo_name, username): ''' node installer this function to be called for Linux machine ''' try: client_os=sys.p...
PypiClean
/Evmlab-0.3.0.0.1-py3-none-any.whl/evmlab/genesis.py
import json def mktemp(prefix = "", suffix=""): import random, string, tempfile rand = ''.join([random.choice(string.ascii_letters + string.digits) for n in range(8)]) temp_path = "%s/%s%s%s" % (tempfile.gettempdir(), prefix, rand, suffix) return temp_path class Genesis(object): """ Utility to cre...
PypiClean
/FairNLP-5.1.0.tar.gz/FairNLP-5.1.0/FNLP/LanguageEngines/__init__.py
from datetime import datetime from F import LIST from F.CLASS import FairClass from FNLP import Merge class BaseModel(FairClass): input_models = [] webpage_models = [] def add_input_models(self, input_models:list): self.input_models = input_models def get_content(self, model): retur...
PypiClean
/Gbtestapi0.4-0.1a10.tar.gz/Gbtestapi0.4-0.1a10/src/gailbot/services/organizer/settings/interface/googleInterface.py
import os from pydantic import BaseModel, ValidationError from typing import Dict, Union from .engineSettingInterface import EngineSettingInterface from gailbot.core.utils.logger import makelogger from gailbot.core.engines.google import Google from gailbot.core.utils.general import ( copy, is_file, is_direc...
PypiClean
/123_object_detection-0.1.tar.gz/123_object_detection-0.1/object_detection/models/ssd_mobilenet_v1_fpn_feature_extractor.py
from __future__ import absolute_import from __future__ import division from __future__ import print_function import copy import functools from six.moves import range import tensorflow.compat.v1 as tf import tf_slim as slim from object_detection.meta_architectures import ssd_meta_arch from object_detection.models impo...
PypiClean
/DobbyStock-0.1.tar.gz/DobbyStock-0.1/step2- test files/Test_Stock.ipynb
``` import unittest from main_package.Stock_main import * class TestStock(unittest.TestCase): @classmethod def setUpClass(cls): print('setupClass') def setUp(self): print('Set up') def test_get_high_price(self): stock = Stock() ...
PypiClean
/CubeLang-0.1.4-py3-none-any.whl/libcube/parser.py
from typing import Iterator, Dict from string import whitespace from .actions import Turn, Action, Rotate from .orientation import Side SIDE_LETTERS: Dict[str, Side] = { "L": Side.LEFT, "R": Side.RIGHT, "F": Side.FRONT, "B": Side.BACK, "U": Side.TOP, "D": Side.BOTTOM } ROTATE_LETTERS: Dict[s...
PypiClean
/GandB-distributions-chauhan.shi-0.0.1.tar.gz/GandB-distributions-chauhan.shi-0.0.1/distributions/Binomialdistribution.py
import math import matplotlib.pyplot as plt from .Generaldistribution import Distribution class Binomial(Distribution): """ Binomial distribution class for calculating and visualizing a Binomial distribution. Attributes: mean (float) representing the mean value of the distribution std...
PypiClean
/MatchZoo-test-1.0.tar.gz/MatchZoo-test-1.0/matchzoo/modules/attention.py
import typing import torch import torch.nn as nn import torch.nn.functional as F class Attention(nn.Module): """ Attention module. :param input_size: Size of input. :param mask: An integer to mask the invalid values. Defaults to 0. Examples: >>> import torch >>> attention = Atte...
PypiClean