id stringlengths 1 265 | text stringlengths 6 5.19M | dataset_id stringclasses 7
values |
|---|---|---|
/MoonNectar-0.6.0.tar.gz/MoonNectar-0.6.0/mnectar/library/column.py | import copy
import logging
import operator
from dataclasses import dataclass, field
from mnectar.util.signal import Signal
_logger = logging.getLogger(__name__)
@dataclass
class Column:
name: str # Column name in database (unique)
description: str ... | PypiClean |
/BoxKit-2023.6.7.tar.gz/BoxKit-2023.6.7/boxkit/resources/read/_flash.py |
import h5py
import h5pickle
from boxkit.library import Action
def read_flash(
filename, server, nthreads, batch, monitor, backend
): # pylint: disable=too-many-locals disable=too-many-arguments
"""
Read dataset from FLASH output file
Parameters
----------
filename : string containing file ... | PypiClean |
/Flask_AdminLTE3-1.0.9-py3-none-any.whl/flask_adminlte3/static/plugins/jquery-validation/additional-methods.js | (function( factory ) {
if ( typeof define === "function" && define.amd ) {
define( ["jquery", "./jquery.validate"], factory );
} else if (typeof module === "object" && module.exports) {
module.exports = factory( require( "jquery" ) );
} else {
factory( jQuery );
}
}(function( $ ) {
( function() {
function ... | PypiClean |
/CesarValiente_MSWL_WebCrawler-1.0.tar.gz/CesarValiente_MSWL_WebCrawler-1.0/pymycraaawler/HtmlParser.py | from Log import Log
from Settings import Settings
from BeautifulSoup import BeautifulSoup as Soup
class HtmlParser:
''' Created on 06/11/2011
@author: Cesar Valiente Gordo
@mail: cesar.valiente@gmail.com
This class is used to parser an entire html document and get the objects
we want to ... | PypiClean |
/NREL_disco-0.4.2-py3-none-any.whl/disco/postprocess/plots.py | import logging
import os
import sys
import pandas as pd
import matplotlib.pyplot as plt
logger = logging.getLogger(__name__)
def plot_voltage(output_dir, scenario=None):
"""
Create 3 plots based on the first feeder,
1. compare voltage primary and secondary.
2. compare pf1 and volt-var
3. heatma... | PypiClean |
/Editobj3-0.2.tar.gz/Editobj3-0.2/doc/html/_static/_sphinx_javascript_frameworks_compat.js | * select a different prefix for underscore
*/
$u = _.noConflict();
/**
* small helper function to urldecode strings
*
* See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/decodeURIComponent#Decoding_query_parameters_from_a_URL
*/
jQuery.urldecode = function(x) {
if (!x) {
... | PypiClean |
/IDEAL_NPU-0.4.3-cp37-cp37m-win_amd64.whl/IDEAL_NPU/cluster/_pcn.py | import time
import numpy as np
import numba as nb
nb.config.NUMBA_DEFAULT_NUM_THREADS = 6
import warnings
from scipy import sparse
from scipy.sparse.csgraph import connected_components
class PCN(object):
def __init__(self, NN, NND):
self.N, self.knn = NN.shape
self.NN = NN
self.NND = NND
... | PypiClean |
/HIRISEimgs-1.0.0.tar.gz/HIRISEimgs-1.0.0/docs/html/_static/underscore-1.13.1.js | (function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define('underscore', factory) :
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, (function () {
var current = global.... | PypiClean |
/CeLEryPy-1.1.1-py3-none-any.whl/CeLEry/util_Mouse.py | import pandas as pd
import numpy as np
import scipy
import os
import scanpy as sc
from tqdm import tqdm
from skimage.metrics import structural_similarity as ssim
import pickle
from math import floor
import json
from . util import *
import matplotlib.pyplot as plt
import matplotlib.colors as clr
def get_SSIM (coords, ... | PypiClean |
/Gask-0.4.tar.gz/Gask-0.4/gask/taskutils/taskspace.py | import json
from gask.fileutils.directory import get_top_directory
from gask.fileutils.directory import get_repos_path
class Taskspace:
"""A class to store information about taskspaces."""
name: str
filepath: str
is_current: bool
def create_dict(self):
"""Turning a taskspace into a dictio... | PypiClean |
/Mesa-2.1.1-py3-none-any.whl/mesa/model.py | from __future__ import annotations
import random
# mypy
from typing import Any
from mesa.datacollection import DataCollector
class Model:
"""Base class for models."""
def __new__(cls, *args: Any, **kwargs: Any) -> Any:
"""Create a new model object and instantiate its RNG automatically."""
... | PypiClean |
/MangaReaderScraper-0.51.tar.gz/MangaReaderScraper-0.51/scraper/manga.py | import logging
from dataclasses import dataclass, field
from multiprocessing.pool import Pool, ThreadPool
from pathlib import Path
from typing import Dict, Generator, List, Optional
from scraper.exceptions import (
PageAlreadyPresent,
VolumeAlreadyExists,
VolumeAlreadyPresent,
VolumeDoesntExist,
)
from... | PypiClean |
/KalturaApiClient-19.3.0.tar.gz/KalturaApiClient-19.3.0/KalturaClient/Plugins/ScheduleDropFolder.py | from __future__ import absolute_import
from .Core import *
from .ScheduleBulkUpload import *
from .DropFolder import *
from ..Base import (
getXmlNodeBool,
getXmlNodeFloat,
getXmlNodeInt,
getXmlNodeText,
KalturaClientPlugin,
KalturaEnumsFactory,
KalturaObjectBase,
KalturaObjectFactory,
... | PypiClean |
/BiblioPixel-3.4.46.tar.gz/BiblioPixel-3.4.46/bibliopixel/colors/conversions.py | from .. import util
import colorsys
def hsv2rgb_raw(hsv):
"""
Converts an HSV tuple to RGB. Intended for internal use.
You should use hsv2rgb_spectrum or hsv2rgb_rainbow instead.
"""
HSV_SECTION_3 = 0x40
h, s, v = hsv
# The brightness floor is minimum number that all of
# R, G, and ... | PypiClean |
/Mathics-1.0.tar.gz/Mathics-1.0/mathics/web/media/js/mathjax/jax/output/SVG/fonts/TeX/Main/Italic/GeneralPunctuation.js | MathJax.Hub.Insert(MathJax.OutputJax.SVG.FONTDATA.FONTS["MathJax_Main-italic"],{8211:[285,-248,511,91,554,"98 248Q91 252 91 259Q91 279 100 284Q102 285 324 285H442H500Q536 285 545 283T554 274Q554 260 548 254Q546 250 538 249Q520 248 319 248H98"],8212:[285,-248,1022,117,1038,"124 248Q117 252 117 259Q117 279 126 284Q128 28... | PypiClean |
/Nikippe-0.1.11.tar.gz/Nikippe-0.1.11/nikippe/renderer/renderer.py | from PIL import Image
import threading
import os
from nikippe.renderer.elementfactory import ElementFactory
import pelops.logging.mylogger
class Renderer:
"""
Renderer controls the single elements and generates an updated image whenever requested. To denote that at least
one of the elements has received n... | PypiClean |
/Dooders-0.0.3.tar.gz/Dooders-0.0.3/LICENSE.md | Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
... | PypiClean |
/FireDM-2022.4.14.tar.gz/FireDM-2022.4.14/firedm/config.py | from queue import Queue
import os
import sys
import platform
from .version import __version__
# settings parameters to be saved on disk
settings_keys = [
'active_video_extractor', 'auto_rename', 'autoscroll_download_tab', 'check_for_update', 'checksum', 'current_theme',
'custom_user_agent', 'disable_log_popup... | PypiClean |
/GalSim-2.4.11-cp37-cp37m-manylinux_2_17_i686.manylinux2014_i686.whl/galsim/gsobject.py |
import numpy as np
import math
from . import _galsim
from .gsparams import GSParams
from .position import _PositionD, _PositionI, Position
from .utilities import lazy_property, parse_pos_args
from .errors import GalSimError, GalSimRangeError, GalSimValueError, GalSimIncompatibleValuesError
from .errors import GalSimF... | PypiClean |
/FrAG-1.1.0.tar.gz/FrAG-1.1.0/frag_pele/AdaptivePELE_repo/AdaptivePELE/constants/constants.py | from __future__ import absolute_import, division, print_function, unicode_literals
import os
import socket
machine = socket.getfqdn()
print("MACHINE", machine)
if "bsccv" in machine:
PELE_EXECUTABLE = "/data/EAPM/PELE/PELE++/bin/rev12360/Pele_rev12360_mpi"
DATA_FOLDER = "/data/EAPM/PELE/PELE++/data/rev12360/Da... | PypiClean |
/CLCR-1.0.0-py3-none-any.whl/CLCR_func/assembly_healing.py |
"""This file contains the functions for the healing of the genome assembly"""
__author__ = "6947325: Johannes Zieres"
__credits__ = ""
__email__ = "johannes.zieres@gmail.com"
import time
import os
import argparse
import CLCR_func.output_processing as output_processing
import CLCR_func.query_creation as query_creation... | PypiClean |
/MJOLNIR-1.3.1.tar.gz/MJOLNIR-1.3.1/docs/Introduction.rst | Introduction
============
This is the introduction page for the MJOLNIR software package. The main purpose of this document is to give an overview of different features of the software and how you can contribute to it.
The software is currently developed by Jakob Lass, PhD student at both the Niels Bohr Institute, Co... | PypiClean |
/AltAnalyze-2.1.3.15.tar.gz/AltAnalyze-2.1.3.15/altanalyze/stats_scripts/mpmath/functions/zeta.py | from ..libmp.backend import xrange
from .functions import defun, defun_wrapped, defun_static
@defun
def stieltjes(ctx, n, a=1):
n = ctx.convert(n)
a = ctx.convert(a)
if n < 0:
return ctx.bad_domain("Stieltjes constants defined for n >= 0")
if hasattr(ctx, "stieltjes_cache"):
stieltjes_c... | PypiClean |
/MacSyFinder-2.1.2.tar.gz/MacSyFinder-2.1.2/macsypy/database.py | from itertools import groupby
from collections import namedtuple
import os.path
import logging
from macsypy.error import MacsypyError, EmptyFileError
_log = logging.getLogger(__name__)
def fasta_iter(fasta_file):
"""
:param fasta_file: the file containing all input sequences in fasta format.
:type fasta_f... | PypiClean |
/Clinamen2-2023.5.1.tar.gz/Clinamen2-2023.5.1/clinamen2/utils/plot_functions.py | import pathlib
from numbers import Number
from typing import Tuple
import matplotlib
import matplotlib.pyplot as plt
import numpy as np
import numpy.typing as npt
from clinamen2.utils.file_handling import CMAFileHandler
class CMAPlotHelper:
"""Setup figure parameters and plot common results.
Args:
... | PypiClean |
/GeoNode-3.2.0-py3-none-any.whl/geonode/static/geonode/js/ol-2.13/lib/OpenLayers/Control/ScaleLine.js | * @requires OpenLayers/Control.js
*/
/**
* Class: OpenLayers.Control.ScaleLine
* The ScaleLine displays a small line indicator representing the current
* map scale on the map. By default it is drawn in the lower left corner of
* the map.
*
* Inherits from:
* - <OpenLayers.Control>
*
* Is a very close c... | PypiClean |
/MultiInstanceLinux-1.3.5.tar.gz/MultiInstanceLinux-1.3.5/README.md | # MultiInstanceLinux
Multi Instance Macro Handler for Minecraft on Linux.
# Features
- 1.16.1 RSG support.
- Wall support.
- OBS integration for Wall Resetting.
- Full keyboard support.
- Distributed through pip for easy installation.
- Multi Threading for better script performance.
- An "almost" drop-in repleacement ... | PypiClean |
/Mathics3-6.0.2.tar.gz/Mathics3-6.0.2/mathics/builtin/drawing/plot.py | import itertools
import numbers
from functools import lru_cache
from math import cos, pi, sin, sqrt
from typing import Callable, Optional
import palettable
from mathics.builtin.base import Builtin
from mathics.builtin.drawing.graphics3d import Graphics3D
from mathics.builtin.graphics import Graphics
from mathics.buil... | PypiClean |
/ClueDojo-1.4.3-1.tar.gz/ClueDojo-1.4.3-1/src/cluedojo/static/dojo/io/iframe.js | if(!dojo._hasResource["dojo.io.iframe"]){
dojo._hasResource["dojo.io.iframe"]=true;
dojo.provide("dojo.io.iframe");
dojo.io.iframe={create:function(_1,_2,_3){
if(window[_1]){
return window[_1];
}
if(window.frames[_1]){
return window.frames[_1];
}
var _4=null;
var _5=_3;
if(!_5){
if(dojo.config["useXDomain"]&&!dojo.conf... | PypiClean |
/Mini-AMF-0.9.1.tar.gz/Mini-AMF-0.9.1/doc/architecture/overview.rst | ========
Features
========
Here's a brief description of the features in Mini-AMF. The
:doc:`CHANGES <../changelog>` document contains a more detailed
summary of all new features.
- :mod:`AMF0 <miniamf.amf0>` encoder/decoder for legacy Adobe Flash
Players (version 6-8)
- :mod:`AMF3 <miniamf.amf3>` encoder/decoder f... | PypiClean |
/2048-0.3.3.tar.gz/2048-0.3.3/README.md | # 2048 [](https://travis-ci.org/quantum5/2048) [](https://codecov.io/gh/quantum5/2048) [](https://pypi.org/project/2048/) [![P... | PypiClean |
/Nuitka-1.8.tar.gz/Nuitka-1.8/nuitka/build/inline_copy/lib/scons-2.3.2/SCons/Tool/cc.py |
__revision__ = "src/engine/SCons/Tool/cc.py 2014/07/05 09:42:21 garyo"
import SCons.Tool
import SCons.Defaults
import SCons.Util
CSuffixes = ['.c', '.m']
if not SCons.Util.case_sensitive_suffixes('.c', '.C'):
CSuffixes.append('.C')
def add_common_cc_variables(env):
"""
Add underlying common "C compiler... | PypiClean |
/FrAG-1.1.0.tar.gz/FrAG-1.1.0/frag_pele/AdaptivePELE_repo/AdaptivePELE/utilities/utilities.py | from __future__ import absolute_import, division, print_function, unicode_literals
from builtins import range
from six import reraise as raise_
import os
import sys
import shutil
import numpy as np
import string
import json
from scipy import linalg
try:
import cPickle as pickle
except ImportError:
import pickle... | PypiClean |
/BlueWhale3_Bioinformatics-4.1.32-py3-none-any.whl/orangecontrib/bioinformatics/kegg/__init__.py | from __future__ import absolute_import
import os
import sys
import threading
from datetime import datetime
from functools import reduce
from itertools import chain
from contextlib import contextmanager
from collections import defaultdict
from orangecontrib.bioinformatics.kegg import api, conf, entry, pathway, databas... | PypiClean |
/B9gemyaeix-4.14.1.tar.gz/B9gemyaeix-4.14.1/docs/devel/integration.rst | Integrating with Weblate
========================
.. include:: /snippets/basics.rst
Importing localization project into Weblate
+++++++++++++++++++++++++++++++++++++++++++
Weblate has been developed with VCS integration in mind as it’s core feature, so the easiest way is
to grant Weblate the access to your repositor... | PypiClean |
/CloudFerry-1.55.2.tar.gz/CloudFerry-1.55.2/cloudferry/lib/os/compute/instances.py | from fabric.api import run
from fabric.api import settings
from cloudferry.lib.base import clients
from cloudferry.lib.utils import log
LOG = log.getLogger(__name__)
def update_user_ids_for_instance(db, instance_id, user_id):
sql = ("UPDATE nova.instances "
"SET nova.instances.user_id = '{user_id}' ... | PypiClean |
/CsuPTMD-1.0.12.tar.gz/CsuPTMD-1.0.12/PTMD/maskrcnn_benchmark/modeling/rpn/inference.py | import torch
from PTMD.maskrcnn_benchmark.modeling.box_coder import BoxCoder
from PTMD.maskrcnn_benchmark.structures.bounding_box import BoxList
from PTMD.maskrcnn_benchmark.structures.boxlist_ops import cat_boxlist
from PTMD.maskrcnn_benchmark.structures.boxlist_ops import boxlist_nms
from PTMD.maskrcnn_benchmark.str... | PypiClean |
/ESG%20Engine-0.1.7.tar.gz/ESG Engine-0.1.7/ESG_Engine/client/renderer.py | import pygame
import math
class Renderer:
def __init__(self, wd_size, core):
self.window = pygame.display.set_mode(wd_size)
self.wd_size = wd_size
self.engineCore = core
self.tiles = []
self.base_tile_size = core.map.base_tile_size
self.anims = {}
self.backgrounds = []
self.resized_bg = self.backgrou... | PypiClean |
/DJModels-0.0.6-py3-none-any.whl/djmodels/db/models/query.py | import copy
import operator
import warnings
from collections import OrderedDict, namedtuple
from functools import lru_cache
from itertools import chain
from djmodels.conf import settings
from djmodels.core import exceptions
from djmodels.db import (
DJANGO_VERSION_PICKLE_KEY, IntegrityError, connections, router,
... | PypiClean |
/NoseXUnit-0.3.3.tar.gz/NoseXUnit-0.3.3/ez_setup.py | import sys
DEFAULT_VERSION = "0.6a8"
DEFAULT_URL = "http://cheeseshop.python.org/packages/%s/s/setuptools/" % sys.version[:3]
md5_data = {
'setuptools-0.5a13-py2.3.egg': '85edcf0ef39bab66e130d3f38f578c86',
'setuptools-0.5a13-py2.4.egg': 'ede4be600e3890e06d4ee5e0148e092a',
'setuptools-0.6a1-py2.3.egg': ... | PypiClean |
/Montreal-Forced-Aligner-3.0.0a3.tar.gz/Montreal-Forced-Aligner-3.0.0a3/docs/source/user_guide/server/index.rst |
.. _server:
***********
MFA Servers
***********
MFA database servers
====================
By default, MFA starts or creates a PostgreSQL servers when a command is invoked, and stops the server at the end of processing. The goal here is to have as unobtrusive of a database server as possible, however there are use ... | PypiClean |
/HolmesV-2021.10.8.tar.gz/HolmesV-2021.10.8/mycroft/skills/skill_loader.py | """Periodically run by skill manager to load skills into memory."""
import gc
import importlib
import os
from os.path import dirname
import sys
from time import time
from mycroft.configuration import Configuration
from mycroft.messagebus import Message
from mycroft.skills.settings import save_settings
from mycroft.uti... | PypiClean |
/LightZero-0.0.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/lzero/worker/muzero_evaluator.py | import time
import copy
from collections import namedtuple
from typing import Optional, Callable, Tuple
import numpy as np
import torch
from easydict import EasyDict
from ding.envs import BaseEnvManager
from ding.torch_utils import to_ndarray
from ding.utils import build_logger, EasyTimer
from ding.worker.collector.b... | PypiClean |
/Netfoll_TL-2.0.1-py3-none-any.whl/netfoll_tl/client/account.py | import functools
import inspect
import typing
from .users import _NOT_A_REQUEST
from .. import helpers, utils
from ..tl import functions, TLRequest
if typing.TYPE_CHECKING:
from .telegramclient import TelegramClient
# TODO Make use of :tl:`InvokeWithMessagesRange` somehow
# For that, we need to use :tl:`Ge... | PypiClean |
/Fabric3-1.14.post1.tar.gz/Fabric3-1.14.post1/fabric/io.py | import sys
import time
import re
import socket
import six
from collections import deque
from select import select
from fabric.state import env, output, win32
from fabric.auth import get_password, set_password
import fabric.network
from fabric.network import ssh, normalize
from fabric.exceptions import CommandTimeout
... | PypiClean |
/Nuitka-1.8.tar.gz/Nuitka-1.8/nuitka/build/inline_copy/lib/scons-4.3.0/SCons/Node/__init__.py | import collections
import copy
from itertools import chain, zip_longest
import SCons.Debug
import SCons.Executor
import SCons.Memoize
from SCons.compat import NoSlotsPyPy
from SCons.Debug import logInstanceCreation, Trace
from SCons.Util import hash_signature, is_List, UniqueList, render_tree
print_duplicate = 0
def... | PypiClean |
/MJOLNIR-1.3.1.tar.gz/MJOLNIR-1.3.1/docs/notebooks/ReciprocalLatticeUnitAxis.ipynb | # The Reciprocal Lattice Units Axis
The main object to plot data in reciprocal lattice units is the <code>RLUAxis</code> which takes care of conversion between the calculated ($Q_x$,$Q_y$) and the scattering plane in ($H$,$K$,$L$) units with the correct grid. This can at times prove difficult when dealing with non-ort... | PypiClean |
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/mvc/Generate.js | define("dojox/mvc/Generate",["dojo/_base/lang","dojo/_base/declare","./_Container","./Group","dijit/form/TextBox"],function(_1,_2,_3){
return _2("dojox.mvc.Generate",[_3],{_counter:0,_defaultWidgetMapping:{"String":"dijit.form.TextBox"},_defaultClassMapping:{"Label":"generate-label-cell","String":"generate-dijit-cell",... | PypiClean |
/ModelSEEDpy-freiburgermsu-0.3.1.4.tar.gz/ModelSEEDpy-freiburgermsu-0.3.1.4/modelseedpy_freiburgermsu/community/mscommunity.py | from modelseedpy_freiburgermsu.fbapkg.mspackagemanager import MSPackageManager
from modelseedpy_freiburgermsu.core.msmodelutl import MSModelUtil
from modelseedpy_freiburgermsu.community.mssteadycom import MSSteadyCom
from modelseedpy_freiburgermsu.community.commhelper import build_from_species_models
from modelseedpy_f... | PypiClean |
/GenIce2-2.1.7.1.tar.gz/GenIce2-2.1.7.1/genice2/lattices/ice13.py |
import numpy as np
from genice2 import CIF
from genice2.cell import cellvectors
import genice2.lattices
desc = {"ref": {"13": 'Salzmann 2006'},
"usage": "No options available.",
"brief": "Ice XIII, a hydrogen-ordered counterpart of ice V."
}
class Lattice(genice2.lattices.Lattice):
def __... | PypiClean |
/Altair%20Smartworks%20SDK-0.0.1.tar.gz/Altair Smartworks SDK-0.0.1/openapi_client/model/action_response_element3.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 |
/3to2-1.1.1.zip/3to2-1.1.1/lib3to2/fixes/fix_print.py | from __future__ import with_statement # Aiming for 2.5-compatible code
from lib2to3 import fixer_base
from lib2to3.pytree import Node, Leaf
from lib2to3.pygram import python_symbols as syms, token
from lib2to3.fixer_util import (Name, FromImport, Newline, Call, Comma, Dot,
LParen, RPare... | PypiClean |
/FLAML-2.0.2-py3-none-any.whl/flaml/automl/nlp/huggingface/trainer.py | import os
try:
from transformers import Seq2SeqTrainer
except ImportError:
Seq2SeqTrainer = object
class TrainerForAuto(Seq2SeqTrainer):
def predict(
self,
test_dataset,
ignore_keys=None,
metric_key_prefix=None,
max_length=None,
num_beams=None,
):
... | PypiClean |
/Gestus-0.3.4.tar.gz/Gestus-0.3.4/gestus/rest/serializers.py | import ast, json
from django.forms import widgets
from rest_framework import serializers
from gestus.models import Website, WebsiteEnvironment, Egg, EggVersion
class EggVersionSerializer(serializers.ModelSerializer):
"""
Serializer for ``EggVersion`` resumed model
"""
class Meta:
model = Eg... | PypiClean |
/Historic_Crypto-0.1.6.tar.gz/Historic_Crypto-0.1.6/Historic_Crypto/Cryptocurrencies.py |
import requests
import json
import sys
import pandas as pd
class Cryptocurrencies(object):
"""
This class provides methods for finding all available Cryptocurrency products within
the CoinBase pro API.
:param: extended_output: displays either a condensed or extended output, Default = False (Bool).
... | PypiClean |
/Django_patch-2.2.19-py3-none-any.whl/django/core/mail/backends/smtp.py | import smtplib
import socket
import ssl
import threading
from django.conf import settings
from django.core.mail.backends.base import BaseEmailBackend
from django.core.mail.message import sanitize_address
from django.core.mail.utils import DNS_NAME
class EmailBackend(BaseEmailBackend):
"""
A wrapper that mana... | PypiClean |
/Nuitka_fixed-1.1.2-cp310-cp310-win_amd64.whl/nuitka/build/inline_copy/lib/scons-4.4.0/SCons/Tool/yacc.py | import os.path
import sys
from typing import Optional
import SCons.Defaults
import SCons.Tool
import SCons.Warnings
from SCons.Platform.mingw import MINGW_DEFAULT_PATHS
from SCons.Platform.cygwin import CYGWIN_DEFAULT_PATHS
from SCons.Platform.win32 import CHOCO_DEFAULT_PATH
from SCons.Util import CLVar, to_String
DE... | PypiClean |
/GladTeX-3.1.0.tar.gz/GladTeX-3.1.0/gleetex/__main__.py | import argparse
import multiprocessing
import os
import posixpath
import sys
from . import *
from .htmlhandling import HtmlImageFormatter
class HelpfulCmdParser(argparse.ArgumentParser):
"""This variant of arg parser always prints the full help whenever an error
occurs."""
def error(self, message):
... | PypiClean |
/DI_engine-0.4.9-py3-none-any.whl/ding/model/template/q_learning.py | from typing import Union, Optional, Dict, Callable, List
import torch
import torch.nn as nn
from ding.torch_utils import get_lstm
from ding.utils import MODEL_REGISTRY, SequenceType, squeeze
from ..common import FCEncoder, ConvEncoder, DiscreteHead, DuelingHead, MultiHead, RainbowHead, \
QuantileHead, FQFHead, QRD... | PypiClean |
/FeaSel-Net-0.0.9.tar.gz/FeaSel-Net-0.0.9/src/feasel/parameter/train.py | from tensorflow import keras
from .base import BaseParams
class TrainParamsNN(BaseParams):
def __init__(self,
batch_size=32,
epochs=100,
eta=1e-4,
optimizer='adam',
loss='categorical_crossentropy',
activation='relu',
... | PypiClean |
/GxSphinx-1.0.0.tar.gz/GxSphinx-1.0.0/utils/bump_version.py |
import argparse
import os
import re
import sys
from contextlib import contextmanager
from datetime import datetime
script_dir = os.path.dirname(__file__)
package_dir = os.path.abspath(os.path.join(script_dir, '..'))
RELEASE_TYPE = {'a': 'alpha', 'b': 'beta'}
def stringify_version(version_info, in_develop=True):
... | PypiClean |
/observations-0.1.4.tar.gz/observations-0.1.4/observations/r/breaches.py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import csv
import numpy as np
import os
import sys
from observations.util import maybe_download_and_extract
def breaches(path):
"""Cyber Security Breaches
`data.frame` of cyber security breaches involvi... | PypiClean |
/NatNetClient-0.8.3.tar.gz/NatNetClient-0.8.3/natnetclient/tracker.py | __author__ = 'nickdg'
import math
from collections import namedtuple
Position = namedtuple("Position", "x y z")
RotationEuler = namedtuple("RotationEuler", "x y z")
RotationQuaternion = namedtuple("RotationQuaternion", "x y z w")
def quaternion_to_euler(qx, qy, qz, qw):
"""Convert quaternion (qx, qy, qz, qw) an... | PypiClean |
/Dozer-0.8.tar.gz/Dozer-0.8/dozer/media/javascript/jquery-1.2.6.min.js | (function(){var _jQuery=window.jQuery,_$=window.$;var jQuery=window.jQuery=window.$=function(selector,context){return new jQuery.fn.init(selector,context);};var quickExpr=/^[^<]*(<(.|\s)+>)[^>]*$|^#(\w+)$/,isSimple=/^.[^:#\[\.]*$/,undefined;jQuery.fn=jQuery.prototype={init:function(selector,context){selector=selector||... | PypiClean |
/Newcalls-0.0.1-cp37-cp37m-win_amd64.whl/newcalls/node_modules/typescript/lib/lib.es2015.iterable.d.ts |
/// <reference lib="es2015.symbol" />
interface SymbolConstructor {
/**
* A method that returns the default iterator for an object. Called by the semantics of the
* for-of statement.
*/
readonly iterator: unique symbol;
}
interface IteratorYieldResult<TYield> {
done?: false;
value: TY... | PypiClean |
/NREL-jade-0.9.9.tar.gz/NREL-jade-0.9.9/jade/hpc/fake_manager.py |
import logging
import multiprocessing
import tempfile
import time
from pathlib import Path
from filelock import SoftFileLock
from jade.enums import Status
from jade.hpc.common import HpcJobStatus, HpcJobInfo
from jade.hpc.hpc_manager_interface import HpcManagerInterface
from jade.utils.subprocess_manager import Subp... | PypiClean |
/Ion-0.6.4.tar.gz/Ion-0.6.4/ion/console/providers.py |
# Copyright Bernardo Heynemann <heynemann@gmail.com>
# Licensed under the Open Software License ("OSL") v. 3.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.opensource.org/licenses/osl-3.0.php
# Unless required by appli... | PypiClean |
/Eureqa-1.76.0.tar.gz/Eureqa-1.76.0/eureqa/analysis/components/binned_mean_plot.py |
from eureqa.analysis.components.base import _TwoVariablePlotComponent
from eureqa.utils.jsonrest import _JsonREST
class BinnedMeanPlot(_TwoVariablePlotComponent):
"""Represents a binned mean plot component on the server.
For example::
p = BinnedMeanPlot(d, axis_labels={'x': 'the x var', 'y' : 'the y... | PypiClean |
/LIB-ADTECH-1.1.1.tar.gz/LIB-ADTECH-1.1.1/Adlib/funcoes.py | def importar_bibliotecas():
import pandas as pd
from typing import Text
from bs4 import element
from bs4.element import ProcessingInstruction
from numpy import SHIFT_DIVIDEBYZERO, False_, exp
from pandas.io import html
from selenium import webdriver
from selenium.webdriver.common.keys im... | PypiClean |
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojo/nls/ja/colors.js | define(
"dojo/nls/ja/colors", //begin v1.x content
({
// local representation of all CSS3 named colors, companion to dojo.colors. To be used where descriptive information
// is required for each color, such as a palette widget, and not for specifying color programatically.
//Note: due to the SVG 1.0 spec additions, s... | PypiClean |
/ESMValTool-2.9.0-py3-none-any.whl/esmvaltool/diag_scripts/climate_metrics/create_table.py | import logging
import os
from pprint import pformat
import iris
import numpy as np
import pandas as pd
from esmvaltool.diag_scripts.shared import (
ProvenanceLogger,
get_diagnostic_filename,
io,
run_diagnostic,
)
logger = logging.getLogger(os.path.basename(__file__))
EXCLUDE_VAL = 0
PANDAS_PRINT_OPT... | PypiClean |
/ANNOgesic-1.1.14.linux-x86_64.tar.gz/usr/local/lib/python3.10/dist-packages/annogesiclib/lib_reader.py | import sys
import os, gc
import numpy as np
from annogesiclib.parser_wig import WigParser
def read_libs(input_libs, wig_folder):
libs = []
texs = {}
for lib in input_libs:
datas = lib.split(":")
name = None
for wig in os.listdir(wig_folder):
if wig == datas[0]:
... | PypiClean |
/ConfigSpaceX-0.4.12.tar.gz/ConfigSpaceX-0.4.12/ConfigSpace/read_and_write/pcs_new.py |
##
# wrapping: A program making it easy to use hyperparameter
# optimization software.
# Copyright (C) 2013 Katharina Eggensperger and Matthias Feurer
#
# 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 Foun... | PypiClean |
/Itachi-0.0.1rc1-py3-none-any.whl/itachi/models/text_classifier/bert_text_classifier_model.py | import codecs
import csv
import pickle
import tensorflow as tf
import collections
from bakend.bert import tokenization
from bakend.bert import modeling, optimization
import os
tf.logging.set_verbosity(tf.logging.INFO)
# os.environ['CUDA_VISIBLE_DEVICES'] = '1'
class DataProcessor(object):
"""Base class for dat... | PypiClean |
/MetaPhlAn-4.0.6-py3-none-any.whl/metaphlan/utils/treeshrink/treeshrink.py |
from .scripts import PROGRAM_VERSION, PROGRAM_NAME
from .scripts import __file__ as treeshrink_file
from .scripts.sequence_lib import sample_from_list
from .scripts.optimal_filter_lib import TreeFilter
from .scripts.tree_lib import prune_tree, get_taxa,tree_as_newick
from sys import argv, stdout,setrecursionlimit
from... | PypiClean |
/IPRA_SESG-3.20.51-py3-none-any.whl/ipra/Model/Robot/axaRobot.py | from selenium.webdriver.common.keys import Keys
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
from selenium.co... | PypiClean |
/EpiTator-1.3.5.tar.gz/EpiTator-1.3.5/epitator/geoname_annotator.py | """Geoname Annotator"""
from __future__ import absolute_import
import math
import re
import sqlite3
from collections import defaultdict
from .annotator import Annotator, AnnoTier, AnnoSpan
from .ngram_annotator import NgramAnnotator
from .ne_annotator import NEAnnotator
from .spacy_annotator import SpacyAnnotator
from... | PypiClean |
/IntraSOM-1.0-py3-none-any.whl/intrasom/intrasom.py | import sys
import tempfile
import os
import itertools
import numpy as np
from multiprocessing.dummy import Pool
from multiprocessing import cpu_count
from scipy.sparse import csr_matrix
from scipy import sparse as sp
from joblib import load, dump
from sklearn.metrics.pairwise import nan_euclidean_distances
from sklearn... | PypiClean |
/FlaskCms-0.0.4.tar.gz/FlaskCms-0.0.4/flask_cms/static/js/ace/theme-clouds_midnight.js | ace.define("ace/theme/clouds_midnight",["require","exports","module","ace/lib/dom"], function(require, exports, module) {
exports.isDark = true;
exports.cssClass = "ace-clouds-midnight";
exports.cssText = ".ace-clouds-midnight .ace_gutter {\
background: #232323;\
color: #929292\
}\
.ace-clouds-midnight .ace_print-marg... | PypiClean |
/DLTA-AI-1.1.tar.gz/DLTA-AI-1.1/DLTA_AI_app/trackers/strongsort/deep/models/senet.py | from __future__ import division, absolute_import
import math
from collections import OrderedDict
import torch.nn as nn
from torch.utils import model_zoo
__all__ = [
'senet154', 'se_resnet50', 'se_resnet101', 'se_resnet152',
'se_resnext50_32x4d', 'se_resnext101_32x4d', 'se_resnet50_fc512'
]
"""
Code imported fr... | PypiClean |
/funencryptions-1.0.2.tar.gz/funencryptions/README.md | FunEncryptions – A collection of string obfuscation algorithms to be used for fun
=================================================================================
Not intended for applications where security is important. Merely for fun, riddles, experiments, whatever.
License
-------
This program is licensed under t... | PypiClean |
/C-Telethon-1.28.5.tar.gz/C-Telethon-1.28.5/telethon/tl/functions/channels.py | from ...tl.tlobject import TLObject
from ...tl.tlobject import TLRequest
from typing import Optional, List, Union, TYPE_CHECKING
import os
import struct
from datetime import datetime
if TYPE_CHECKING:
from ...tl.types import TypeChannelAdminLogEventsFilter, TypeChannelParticipantsFilter, TypeChatAdminRights, TypeCh... | PypiClean |
/Ecarx_smart_project-1.0-py3-none-any.whl/Ecarx_smart_project/base_function.py | import os, time, subprocess, re
from platform8155.lib.canoe import canoe_sync
from platform8155.conf.read_config import readConfig
class BaseFunction(object):
def __init__(self):
pass
"""
:param module_name : 功能模块
:param methodName: 方法名字
:param select_func:
:param s... | PypiClean |
/BigJob2-0.54.post73.tar.gz/BigJob2-0.54.post73/bigjob/job_plugin/yarn/yarn.py |
from bigjob import logger
import httplib2
import os
import uuid
import time
import saga
import subprocess
import threading
import tempfile
from bigjob.state import Running, New, Failed, Done, Unknown
""" HADOOP/JAVA Configuration"""
JAVA_HOME="/Library/Java/JavaVirtualMachines/jdk1.7.0_40.jdk/Contents/Home"
if os.... | PypiClean |
/BlueWhale3_Bioinformatics-4.1.32-py3-none-any.whl/orangecontrib/bioinformatics/widgets/utils/settings.py | from typing import Tuple
from Orange.widgets import settings
class SetContextHandler(settings.ContextHandler):
def __init__(self, match_imperfect=False):
super().__init__()
self.match_imperfect = match_imperfect
def match(self, context, items):
items = set(items)
if self.mat... | PypiClean |
/AyiinXd-0.0.8-cp311-cp311-macosx_10_9_universal2.whl/fipper/node_modules/@types/node/ts4.8/punycode.d.ts | declare module 'punycode' {
/**
* The `punycode.decode()` method converts a [Punycode](https://tools.ietf.org/html/rfc3492) string of ASCII-only
* characters to the equivalent string of Unicode codepoints.
*
* ```js
* punycode.decode('maana-pta'); // 'mañana'
* punycode.decode('--dqo34... | PypiClean |
/Flask-CKEditor-0.4.6.tar.gz/Flask-CKEditor-0.4.6/flask_ckeditor/static/standard/lang/hi.js | /*
Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/license
*/
CKEDITOR.lang['hi']={"editor":"रिच टेक्स्ट एडिटर","editorPanel":"Rich Text Editor panel","common":{"editorHelp":"मदद के लिये ALT 0 दबाए","browseServer":"सर्वर ब्राउज़ करें","ur... | PypiClean |
/Misago-0.36.1.tar.gz/Misago-0.36.1/misago/static/misago/admin/momentjs/zh-cn.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 |
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dijit/_MenuBase.js.uncompressed.js | define("dijit/_MenuBase", [
"./popup",
"dojo/window",
"./_Widget",
"./_KeyNavContainer",
"./_TemplatedMixin",
"dojo/_base/declare", // declare
"dojo/dom", // dom.isDescendant domClass.replace
"dojo/dom-attr",
"dojo/dom-class", // domClass.replace
"dojo/_base/lang", // lang.hitch
"dojo/_base/array" // array.i... | PypiClean |
/Axelrod-4.13.0.tar.gz/Axelrod-4.13.0/axelrod/player.py | import copy
import inspect
import itertools
import types
import warnings
from typing import Any, Dict
import numpy as np
from axelrod import _module_random
from axelrod.action import Action
from axelrod.game import DefaultGame
from axelrod.history import History
from axelrod.random_ import RandomGenerator
C, D = Acti... | PypiClean |
/Flask-Header-Session-0.0.7.tar.gz/Flask-Header-Session-0.0.7/flask_header_session/__init__.py | __version__ = '0.0.7'
import os
from .sessions import NullSessionInterface, RedisSessionInterface, \
MemcachedSessionInterface, FileSystemSessionInterface, \
MongoDBSessionInterface, SqlAlchemySessionInterface
class Session(object):
"""This class is used to add Server-side Session to one or more Flask
... | PypiClean |
/ConfigViper-0.5.tar.gz/ConfigViper-0.5/doc/source/index.rst | .. ConfigViper documentation master file, created by
sphinx-quickstart on Sat Mar 10 20:05:06 2012.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
Welcome to ConfigViper
======================
ConfigViper is a set of `Python`_ classes for hand... | PypiClean |
/HeartSounds-0.0.2-py3-none-any.whl/heartsounds/find_t_peak_ends.py | import neurokit2 as nk
import numpy as np
from dataclasses import dataclass
from .find_agreeing_points import find_agreeing_points, Agree_reduce_method
from .find_t_peak_ends_minima_gap import find_t_peak_ends_minima_gap
@dataclass
class ECG_t_end_peaks:
t_peak_ends: np.ndarray
t_peak_ends_by_detector: dict
... | PypiClean |
/GQCConstraints-1.1.1-py3-none-any.whl/GQCC/SpinResolvedConstraints/FCI.py | import gqcpy
import numpy as np
from GQCC.Optimization.SpinResolvedOptimizer import SpinResolvedOptimizer
class FCI(SpinResolvedOptimizer):
"""
A constructor that sets up everything needed for spin resolved constrained CI calculations.
:param molecule: The GQCP molecule used for the ca... | PypiClean |
/Dick.py-1.7-py3-none-any.whl/amino/lib/util/exceptions.py | class UnsupportedService(Exception):
"""
- **API Code** : 100
- **API Message** : Unsupported service. Your client may be out of date. Please update it to the latest version.
- **API String** : ``Unknown String``
"""
def __init__(*args, **kwargs):
Exception.__init__(*args, **kwargs)
cla... | PypiClean |
/KalturaApiClient-19.3.0.tar.gz/KalturaApiClient-19.3.0/KalturaClient/Plugins/DropFolderXmlBulkUpload.py | from __future__ import absolute_import
from .Core import *
from .BulkUploadXml import *
from .DropFolder import *
from ..Base import (
getXmlNodeBool,
getXmlNodeFloat,
getXmlNodeInt,
getXmlNodeText,
KalturaClientPlugin,
KalturaEnumsFactory,
KalturaObjectBase,
KalturaObjectFactory,
K... | PypiClean |
/FlaskCms-0.0.4.tar.gz/FlaskCms-0.0.4/flask_cms/static/js/ckeditor/plugins/specialchar/dialogs/lang/lv.js | /*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang("specialchar","lv",{euro:"Euro zīme",lsquo:"Kreisā vienkārtīga pēdiņa",rsquo:"Labā vienkārtīga pēdiņa",ldquo:"Kreisā dubult pēdiņa",rdquo:"Labā du... | PypiClean |
/Finance-Jindowin-1.3.3.tar.gz/Finance-Jindowin-1.3.3/jdw/mfc/entropy/pascal/score/base.py | import pdb
import pandas as pd
from jdw.kdutils.logger import kd_logger
from ultron.tradingday import *
from ultron.factor.data.transformer import Transformer
from ultron.factor.analysis.quantile_analysis import er_quantile_analysis
from ultron.factor.fitness.score import ScoreTuple
from ultron.factor.fitness.score imp... | PypiClean |
/Boruta-0.3.tar.gz/Boruta-0.3/README.md | # boruta_py #
This project hosts Python implementations of the [Boruta all-relevant feature selection method](https://m2.icm.edu.pl/boruta/).
[Related blog post] (http://danielhomola.com/2015/05/08/borutapy-an-all-relevant-feature-selection-method/)
## Dependencies ##
* numpy
* scipy
* scikit-learn
## How to use #... | PypiClean |
/ELDAM_LCA-1.0-py3-none-any.whl/eldam/gui/widgets/copy_elda_metadata.py | from eldam.gui.widgets import EldamWidgetWithProgressBar
from eldam.gui.dialogs import EldaOpenDialog, ErrorDialog
from eldam.core.elda import Elda
from eldam.core.parameters import ATTRIBUTES_TO_COPY
from eldam.gui.gui_parameters import *
from eldam.utils.exceptions import ExcelFormulaError
from eldam.utils.misc im... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.