id stringlengths 1 265 | text stringlengths 6 5.19M | dataset_id stringclasses 7
values |
|---|---|---|
/MaterialDjango-0.2.5.tar.gz/MaterialDjango-0.2.5/bower_components/shadycss/src/document-watcher.js | 'use strict';
import {nativeShadow} from './style-settings.js';
import StyleTransformer from './style-transformer.js';
import {getIsExtends} from './style-util.js';
export let flush = function() {};
/**
* @param {HTMLElement} element
* @return {!Array<string>}
*/
function getClasses(element) {
let classes = [];... | PypiClean |
/KratosCompressiblePotentialFlowApplication-9.4-cp311-cp311-win_amd64.whl/KratosMultiphysics/CompressiblePotentialFlowApplication/compute_embedded_lift_process.py | import KratosMultiphysics
import KratosMultiphysics.CompressiblePotentialFlowApplication as CPFApp
from KratosMultiphysics.CompressiblePotentialFlowApplication.compute_lift_process import ComputeLiftProcess
def Factory(settings, Model):
if( not isinstance(settings,KratosMultiphysics.Parameters) ):
raise Ex... | PypiClean |
/LAMDA-SSL-1.0.2.tar.gz/LAMDA-SSL-1.0.2/LAMDA_SSL/Config/PseudoLabel.py | from LAMDA_SSL.Augmentation.Vision.RandomHorizontalFlip import RandomHorizontalFlip
from LAMDA_SSL.Augmentation.Vision.RandomCrop import RandomCrop
from LAMDA_SSL.Opitimizer.SGD import SGD
from LAMDA_SSL.Scheduler.CosineAnnealingLR import CosineAnnealingLR
from LAMDA_SSL.Network.WideResNet import WideResNet
from LAMDA_... | PypiClean |
/Markdown-Editor-1.0.7.tar.gz/Markdown-Editor-1.0.7/markdown_editor/libs/bootstrap-3.1.1-dist/js/bootstrap.min.js | if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");+function(a){"use strict";function b(){var a=document.createElement("bootstrap"),b={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var... | PypiClean |
/NeuNorm-1.6.2.tar.gz/NeuNorm-1.6.2/documentation/source/notebook.rst | *****************************
Using library from a Notebook
*****************************
If you run the library from a notebook, you have the option to display a progress bar showing you the progress
of the loading or normalization processes (NB: progress bar will not show up when loading one file at a time)
>>> sa... | PypiClean |
/Flask-AppBuilder-red-2.1.13.tar.gz/Flask-AppBuilder-red-2.1.13/flask_appbuilder/filemanager.py | import logging
import os
import os.path as op
import re
import uuid
from flask.globals import _request_ctx_stack
from werkzeug.datastructures import FileStorage
from wtforms import ValidationError
try:
from flask import _app_ctx_stack
except ImportError:
_app_ctx_stack = None
app_stack = _app_ctx_stack or _r... | PypiClean |
/Flask_Authlib-1.6.0-py3-none-any.whl/flask_authlib/utils.py | import rich
import json
import click
import secrets
from typing import Union
from typing import Callable
from flask import Flask
from flask import request
from flask import redirect
from flask import Response
from flask.views import View
from werkzeug.security import generate_password_hash
from flask_login import ... | PypiClean |
/BuildStream-external-0.30.0.tar.gz/BuildStream-external-0.30.0/bst_external/elements/tar_element.py | import tarfile
import os
from buildstream import Element, Scope, ElementError
class TarElement(Element):
# The tarball's output is its dependencies, so
# we must rebuild if they change
BST_STRICT_REBUILD = True
# Tarballs don't need runtime dependencies
BST_FORBID_RDEPENDS = True
# Our only... | PypiClean |
/AutoTorch-0.0.2b20200818.tar.gz/AutoTorch-0.0.2b20200818/autotorch/scheduler/remote/dask_scheduler.py | import atexit
import logging
import gc
import os
import re
import shutil
import sys
import tempfile
import warnings
import click
from tornado.ioloop import IOLoop
from tornado.util import TimeoutError
from distributed import Scheduler
from distributed.preloading import validate_preload_argv
from distributed.security... | PypiClean |
/Dockets-0.4.2.tar.gz/Dockets-0.4.2/dockets/metadata.py | import os
import time
from dockets.pipeline import PipelineObject
METADATA_TIMEOUT = 24*60*60
class CappedList(PipelineObject):
def __init__(self, redis, key_name, size):
super(CappedList, self).__init__(redis)
self.key_name = key_name
self.size = size
@PipelineObject.with_pipeline
... | PypiClean |
/OccuPy-0.1.13.tar.gz/OccuPy-0.1.13/docs/Tutorials/case/supp_solv.md | # Supress solvent
<div class="admonition hint">
<p class="admonition-title">Recommendation</p>
<p>
Please read the GUI overview and conduct the intro tutorial first.
</p>
</div>
To accurately suppress solvent you primarily have to make sure that the solvent model and confidence is accurate.
The following steps high... | PypiClean |
/NAStools-0.2.1.tar.gz/NAStools-0.2.1/src/nastools/_core.py |
##### MODULES ###
import numpy as np
import pandas
import datetime
import gzip
import bz2
import os
import re
import struct
import warnings
import md5
import pytz
utc = pytz.UTC
#### SUB-MODULE DEPENDENCIES
import ict
import nas
##### CLASS DEFINITIONS #####
class Naspy(object):
"""Naspy cla... | PypiClean |
/Flask_AdminLTE3-1.0.9-py3-none-any.whl/flask_adminlte3/static/plugins/datatables-responsive/js/dataTables.responsive.min.js | var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.findInternal=function(b,k,m){b instanceof String&&(b=String(b));for(var n=b.length,p=0;p<n;p++){var y=b[p];if(k.call(m,y,p,b))return{i:p,v:y}}return{i:-1,v:void 0}};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.SIMPLE_FROUN... | PypiClean |
/bevy-2.0.1-py3-none-any.whl/bevy/providers/provider.py | from typing import Callable, Generic, TypeVar
from bevy.options import Option, Null, Value
from bevy.provider_state import ProviderState as _ProviderState
_K = TypeVar("_K")
_V = TypeVar("_V")
Factory = Callable[[], _V]
class NotFound(Null):
"""Null option for when a key isn't found in a provider's cache."""
... | PypiClean |
/MetaPathways-3.1.6.tar.gz/MetaPathways-3.1.6/metapathways/pipeline/context.py |
__author__ = "Kishori M Konwar"
__copyright__ = "Copyright 2013, MetaPathways"
__credits__ = ["r"]
__version__ = "1.0"
__maintainer__ = "Kishori M Konwar"
__status__ = "Release"
"""Contains general utility code for the metapaths project"""
try:
import os, re
from shutil import rmtree
from optparse impor... | PypiClean |
/Diofant-0.14.0a2.tar.gz/Diofant-0.14.0a2/diofant/printing/fcode.py | from __future__ import annotations
import string
import typing
from ..core import Add, Function, I, N
from ..logic import true
from .codeprinter import Assignment, CodePrinter
from .precedence import precedence
known_functions = {
'sin': 'sin',
'cos': 'cos',
'tan': 'tan',
'asin': 'asin',
'acos':... | PypiClean |
/Chips-CNC-Toolmanager-0.1.a1.tar.gz/Chips-CNC-Toolmanager-0.1.a1/chips/application_admin.py |
##This file is part of Chips - CNC tool test and management suite
##Copyright (C) 2016 Sebastian Stetter
##https://bitbucket.org/sebste/chips
##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; e... | PypiClean |
/CT3-3.3.2-cp310-cp310-macosx_10_9_x86_64.whl/Cheetah/Templates/SkeletonPage.py | ##################################################
## DEPENDENCIES
import sys
import os
import os.path
try:
import builtins as builtin
except ImportError:
import __builtin__ as builtin
from os.path import getmtime, exists
import time
import types
from Cheetah.Version import MinCompatibleVersion as RequiredCheet... | PypiClean |
/Amara-2.0.0a6.tar.bz2/Amara-2.0.0a6/lib/xslt/tree/copy_element.py | from amara import tree
from amara.xslt import XsltError
from amara.xslt.tree import xslt_element, content_model, attribute_types
__all__ = ['copy_element']
class copy_element(xslt_element):
content_model = content_model.template
attribute_types = {
'use-attribute-sets': attribute_types.qnames(),
... | PypiClean |
/InterpretableMLWrappers-0.0.2.1.tar.gz/InterpretableMLWrappers-0.0.2.1/interpretability/SLIMCLASS.py | import pandas as pd
import numpy as np
from .model.SLIM.train import main
import os
import datetime
class SLIM():
def __init__(self, time_limit = 300, dataset = None, logging = True, verbose = False, epsilon = .001, logs = None, C0 = .001, bound = 5):
self.name = "Rudin-SLIM"
cwd = os.getcwd()
... | PypiClean |
/Mikado-2.3.4.tar.gz/Mikado-2.3.4/util/add_transcript_feature_to_gtf.py | import sys
from Mikado.parsers.GTF import GTF, GtfLine
from Mikado.transcripts import Transcript
from Mikado.utilities import overlap
from sys import maxsize
import operator
import argparse
from collections import defaultdict
from typing import List, Generator
from collections import deque
class Obj(object):
""" ... | PypiClean |
/CreateManifest-0.1.1.tar.gz/CreateManifest-0.1.1/README.rst | Project to create manifest file
-------
Instructions:
Update the mozart_ids.txt file with the list of mozard ids. These ids can be categorized by the device type by adding the separate
such as '[Raven]'. This will create a manifest file Raven_manifest.xml. You can add multiple separators in the file and that will
g... | PypiClean |
/JEMSVIDEOSDXL-0.8.1.tar.gz/JEMSVIDEOSDXL-0.8.1/stable_diffusion_videos/app.py | from pathlib import Path
import gradio as gr
from stable_diffusion_videos import generate_images, generate_images_flax
class Interface:
def __init__(self, pipeline, params=None):
self.pipeline = pipeline
self.params = params # params in case we are using Flax pipeline
self.interface_ima... | PypiClean |
/Adafruit-Micropython-Blinka-1.0.0.tar.gz/Adafruit-Micropython-Blinka-1.0.0/README.rst | Introduction
============
.. image:: https://readthedocs.org/projects/adafruit-micropython-blinka/badge/?version=latest
:target: https://circuitpython.readthedocs.io/projects/blinka/en/latest/
:alt: Documentation Status
.. image:: https://img.shields.io/discord/327254708534116352.svg
:target: https://disc... | PypiClean |
/OctoBot-Trading-2.4.23.tar.gz/OctoBot-Trading-2.4.23/octobot_trading/exchange_data/ohlcv/channel/ohlcv_updater.py | import asyncio
import time
import decimal
import octobot_commons.constants as common_constants
import octobot_commons.enums as common_enums
import octobot_trading.errors as errors
import octobot_trading.constants as constants
import octobot_trading.enums as enums
import octobot_trading.exchange_data.ohlcv.channel.ohl... | PypiClean |
/Authlib-1.2.1.tar.gz/Authlib-1.2.1/authlib/oauth2/rfc6749/resource_protector.py | from .util import scope_to_list
from .errors import MissingAuthorizationError, UnsupportedTokenTypeError
class TokenValidator(object):
"""Base token validator class. Subclass this validator to register
into ResourceProtector instance.
"""
TOKEN_TYPE = 'bearer'
def __init__(self, realm=None, **ext... | PypiClean |
/Aston-0.7.1.tar.gz/Aston-0.7.1/aston/trace/trace.py | import struct
import json
import zlib
import numpy as np
import scipy.io.wavfile
import scipy.signal
import scipy.sparse
from scipy.interpolate import interp1d
from aston.spectra import Scan
class Trace(object):
def __init__(self, data, index=None, name=''):
# TODO: reenable this without having to import ... | PypiClean |
/IconFonts-0.0.3.tar.gz/IconFonts-0.0.3/iconfonts/fonts.py | from iconfonts import utils
string = utils.string
class IconsFont(object):
__metaclass__ = utils.RegisterLeafClasses
name = ''
shortcut = ''
css_url = ''
tag = 'i'
tag_classes = ''
tag_attributes = {}
prefix = ''
registry = set()
def __init__(self):
if not self.name... | PypiClean |
/CrossMap-0.6.6-py3-none-any.whl/cmmodule/SAM.py | '''manipulate SAM file.'''
#import built-in modules
import os,sys
import re
import string
from optparse import OptionParser
import warnings
import string
import collections
import math
import sets
import random
#import third-party modules
from bx.bitset import *
from bx.bitset_builders import *
from bx.intervals impo... | PypiClean |
/GTW-1.2.6.tar.gz/GTW-1.2.6/_OMP/_SRM/Attr_Type.py |
from __future__ import unicode_literals
from _GTW import GTW
from _MOM.import_MOM import *
from _MOM.import_MOM import _A_Composite_, _A_Named_Object_
import _GTW._OMP._SRM
from _TFL.I18N import _, _T, _Tn
class A_Nation (A_Enum) :
""... | PypiClean |
/MutPy-Pynguin-0.7.1.tar.gz/MutPy-Pynguin-0.7.1/mutpy/operators/arithmetic.py | import ast
from mutpy.operators.base import MutationResign, MutationOperator, AbstractUnaryOperatorDeletion
class ArithmeticOperatorDeletion(AbstractUnaryOperatorDeletion):
def get_operator_type(self):
return ast.UAdd, ast.USub
class AbstractArithmeticOperatorReplacement(MutationOperator):
def shou... | PypiClean |
/EMalign-1.0.5.tar.gz/EMalign-1.0.5/src/emalign_input.py | from pathlib import Path
import sys
import subprocess
import argparse
import os
DEFAULT_DOWNSAMPLE = 64
DEFAULT_N_PROJS = 30
def parse_args():
parser = argparse.ArgumentParser(formatter_class=argparse.ArgumentDefaultsHelpFormatter)
parser.add_argument('-v1', '--vol1', help='Full path of first mrc input ... | PypiClean |
/Django-Pizza-16.10.1.tar.gz/Django-Pizza-16.10.1/pizza/kitchen_sink/static/ks/ckeditor/plugins/a11yhelp/dialogs/lang/hi.js | /*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang("a11yhelp","hi",{title:"Accessibility Instructions",contents:"Help Contents. To close this dialog press ESC.",legend:[{name:"सामान्य",items:[{name:"E... | PypiClean |
/Cheetah-2.4.4.tar.gz/Cheetah-2.4.4/cheetah/Utils/statprof.py |
## 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 version.
##
## This library is distributed in the hope that it will... | PypiClean |
/Chameleon-4.1.0.tar.gz/Chameleon-4.1.0/docs/integration.rst | .. _framework-integration:
Integration
===========
Integration with Chameleon is available for a number of popular web
frameworks. The framework will usually provide loading mechanisms and
translation (internationalization) configuration.
Pyramid
-------
`pyramid_chameleon
<http://docs.pylonsproject.org/projects/py... | PypiClean |
/MezzanineFor1.7-3.1.10.tar.gz/MezzanineFor1.7-3.1.10/mezzanine/template/__init__.py | from __future__ import unicode_literals
from functools import wraps
from django import template
from django.template.context import Context
from django.template.loader import get_template, select_template
from mezzanine.utils.device import templates_for_device
class Library(template.Library):
"""
Extends `... | PypiClean |
/EasyAIScaffolding-1.0.0.tar.gz/EasyAIScaffolding-1.0.0/EasyAI/TextClassifier/transformer/models/bert_multi_label_classification_model.py |
import sys
from abc import ABC
import torch
from torch import nn
from torch.nn import BCEWithLogitsLoss, CrossEntropyLoss, MSELoss
from transformers import (
BertModel,
BertPreTrainedModel,
DistilBertModel,
ElectraForMaskedLM,
ElectraForPreTraining,
FlaubertModel,
LongformerModel,
RemB... | PypiClean |
/CleanAdminDjango-1.5.3.1.tar.gz/CleanAdminDjango-1.5.3.1/django/utils/ipv6.py | from django.core.exceptions import ValidationError
from django.utils.six.moves import xrange
def clean_ipv6_address(ip_str, unpack_ipv4=False,
error_message="This is not a valid IPv6 address"):
"""
Cleans a IPv6 address string.
Validity is checked by calling is_valid_ipv6_address() - if an
inv... | PypiClean |
/Aofex_SDK-1.1.1-py3-none-any.whl/Aofex_SDK/Aofex_SDK.py | import asyncio
import hashlib
import json
import random
import string
import sys
import time
import aiohttp
from pythonds3.graphs import Graph
class AofexApi:
A_apis = [] # 全部实例
contract_url = 'http://oapi-contract.aofex.io'
@classmethod
def get_session(cls, session: aiohttp.ClientSession):
... | PypiClean |
/DRAM_bio-1.4.6-py3-none-any.whl/mag_annotator/annotate_vgfs.py | from datetime import datetime
from os import path, mkdir
import re
import warnings
import logging
import pandas as pd
import numpy as np
from skbio.io import read as read_sequence
from skbio.io import write as write_sequence
from mag_annotator.database_handler import DatabaseHandler
from mag_annotator.annotate_bins im... | PypiClean |
/ClueDojo-1.4.3-1.tar.gz/ClueDojo-1.4.3-1/src/cluedojo/static/dojox/data/KeyValueStore.js | if(!dojo._hasResource["dojox.data.KeyValueStore"]){
dojo._hasResource["dojox.data.KeyValueStore"]=true;
dojo.provide("dojox.data.KeyValueStore");
dojo.require("dojo.data.util.filter");
dojo.require("dojo.data.util.simpleFetch");
dojo.declare("dojox.data.KeyValueStore",null,{constructor:function(_1){
if(_1.url){
this.ur... | PypiClean |
/ArangoPy-0.5.7.tar.gz/ArangoPy-0.5.7/arangodb/query/simple.py |
from arangodb.api import Client
from arangodb.query.utils.document import create_document_from_result_dict
class SimpleQuery(object):
"""
Simple queries collection
"""
@classmethod
def all(cls, collection, skip=None, limit=None):
"""
Returns all documents of the collecti... | PypiClean |
/Flask-Resize-2.0.4.tar.gz/Flask-Resize-2.0.4/flask_resize/utils.py | import errno
import itertools
import os
from . import constants, exc
from ._compat import string_types
def mkdir_p(path):
"""Creates all non-existing directories encountered in the passed in path
Args:
path (str):
Path containing directories to create
Raises:
OSError:
... | PypiClean |
/Electrum-CHI-3.3.8.tar.gz/Electrum-CHI-3.3.8/electrum_chi/electrum/plugins/safe_t/transport.py | from electrum.logging import get_logger
_logger = get_logger(__name__)
class SafeTTransport:
@staticmethod
def all_transports():
"""Reimplemented safetlib.transport.all_transports so that we can
enable/disable specific transports.
"""
# NOTE: the bridge and UDP transports ar... | PypiClean |
/LibRecommender-1.3.0-cp38-cp38-macosx_10_9_x86_64.whl/libreco/algorithms/caser.py | from ..bases import DynEmbedBase, ModelMeta
from ..layers import conv_nn, embedding_lookup, max_pool, normalize_embeds, tf_dense
from ..tfops import dropout_config, reg_config, tf
from ..utils.misc import count_params
class Caser(DynEmbedBase, metaclass=ModelMeta, backend="tensorflow"):
"""*Caser* algorithm.
... | PypiClean |
/EACheadtracker-0.0.1.tar.gz/EACheadtracker-0.0.1/README.md | # Head tracker using webcam for auralization
<p align="left">
<a href="https://github.com/eac-ufsm/webcam-headtracker/releases/" target="_blank">
<img alt="GitHub release" src="https://img.shields.io/github/v/release/eac-ufsm/webcam-headtracker?include_prereleases&style=flat-square">
</a>
<a href="https://gi... | PypiClean |
/NQPV-0.4b1-py3-none-any.whl/nqpv/vsystem/content/proof_term.py |
from __future__ import annotations
from typing import Any, List, Dict, Tuple
from nqpv.vsystem.log_system import RuntimeErrorWithLog
from nqpv.vsystem.var_scope import VVar
from .qvarls_term import QvarlsTerm
from .opt_pair_term import OptPairTerm, MeaPairTerm
from .qpre_term import QPreTerm
from .prog_term import *... | PypiClean |
/Mopidy-Audioteka-0.3.1.tar.gz/Mopidy-Audioteka-0.3.1/README.rst | ****************************
Mopidy-Audioteka
****************************
.. image:: https://img.shields.io/pypi/v/Mopidy-Audioteka.svg?style=flat
:target: https://pypi.python.org/pypi/Mopidy-Audioteka/
:alt: Latest PyPI version
.. image:: https://img.shields.io/travis/jedrus2000/mopidy-audioteka/master.svg?... | PypiClean |
/GameBenchAPI-PyClient-BigFish-1.0.3.tar.gz/GameBenchAPI-PyClient-BigFish-1.0.3/gamebench_api_client/api/response/response_retriever.py | from abc import ABC, abstractmethod
from gamebench_api_client.api.requests_retriever.builder.request_director import RequestDirector
from gamebench_api_client.api.requests_retriever.request_adapter.adapter import RequestsAdapter
class AbstractRetriever(ABC):
""" Abstract retriever class for contacting the Reques... | PypiClean |
/D-Analyst-1.0.6.tar.gz/D-Analyst-1.0.6/main/analyst/visuals/sprite_visual.py | import numpy as np
from .visual import Visual
from .plot_visual import process_coordinates
from analyst import get_color, get_next_color
class SpriteVisual(Visual):
"""Template displaying one texture in multiple positions with
different colors."""
def initialize(self, x=None, y=None, color=None, a... | PypiClean |
/MaterialDjango-0.2.5.tar.gz/MaterialDjango-0.2.5/bower_components/app-layout/.github/ISSUE_TEMPLATE.md | <!-- Instructions: https://github.com/PolymerElements/app-layout/CONTRIBUTING.md#filing-issues -->
### Description
<!-- Example: The `paper-foo` element causes the page to turn pink when clicked. -->
### Expected outcome
<!-- Example: The page stays the same color. -->
### Actual outcome
<!-- Example: The page turn... | PypiClean |
/LoginRadius-v2-11.5.0.tar.gz/LoginRadius-v2-11.5.0/LoginRadius/api/advanced/webhook_api.py |
class WebHookApi:
def __init__(self, lr_object):
"""
:param lr_object: this is the reference to the parent LoginRadius object.
"""
self._lr_object = lr_object
def get_web_hook_subscribed_u_r_ls(self, event):
"""This API is used to fatch all the subscribed URLs, for pa... | PypiClean |
/Booktype-1.5.tar.gz/Booktype-1.5/lib/booki/site_static/js/tiny_mce/plugins/bookilink/js/dialog.js | function setAttrib(elm, attrib, value) {
var dom = tinyMCEPopup.editor.dom;
dom.setAttrib(elm, attrib, value);
}
var BookiLinkDialog = {
init : function() {
var inst = tinyMCEPopup.editor;
var elm = inst.selection.getNode();
var action = "insert";
var f = document.forms[0];
elm = ins... | PypiClean |
/MyGNUHealth-1.0.5.tar.gz/MyGNUHealth-1.0.5/mygnuhealth/lifestyle.py |
import io
from PySide2.QtCore import QObject, Signal, Property
from tinydb import TinyDB
import matplotlib.pyplot as plt
import base64
from mygnuhealth.core import datefromisotz
from mygnuhealth.myghconf import dbfile
class GHLifestyle(QObject):
def __init__(self):
QObject.__init__(self)
self.c... | PypiClean |
/ChiMera_ModelBuilder-2.0.15-py3-none-any.whl/ChiMera/tools/silencer.py | import pandas as pd
import cobra
from cobra.flux_analysis import (
single_gene_deletion, single_reaction_deletion, double_gene_deletion,
double_reaction_deletion)
class Silencer:
"""This class control the knockout module
"""
def __init__(self, model, composition, targets):
self.model = co... | PypiClean |
/Newcalls-0.0.1-cp37-cp37m-win_amd64.whl/newcalls/node_modules/@types/node/ts4.8/readline/promises.d.ts | declare module 'readline/promises' {
import { Interface as _Interface, ReadLineOptions, Completer, AsyncCompleter, Direction } from 'node:readline';
import { Abortable } from 'node:events';
class Interface extends _Interface {
/**
* The rl.question() method displays the query by writing it... | PypiClean |
/MirahezeBot_Plugins-9.1.5-py3-none-any.whl/MirahezeBots/plugins/status.py |
from MirahezeBots_jsonparser import jsonparser as jp
from sopel.config.types import StaticSection, ValidatedAttribute
from sopel.module import commands, example, require_admin
from sopel.tools import SopelMemory
from MirahezeBots.utils import mwapihandler as mwapi
pages = ''
class StatusSection(StaticSection):
... | PypiClean |
/LAMDA-SSL-1.0.2.tar.gz/LAMDA-SSL-1.0.2/LAMDA_SSL/Algorithm/Classification/SSVAE.py | import copy
import torch.nn.functional as F
from LAMDA_SSL.Base.InductiveEstimator import InductiveEstimator
from LAMDA_SSL.Base.DeepModelMixin import DeepModelMixin
import LAMDA_SSL.Network.SSVAE as VAE
import random
from sklearn.base import ClassifierMixin
import torch
from LAMDA_SSL.utils import one_hot
from torch.a... | PypiClean |
/DiaVirtualPicture-1.1.4.tar.gz/DiaVirtualPicture-1.1.4/DiaVirtualPicture.py | from DiaLogger import Logger
import win32gui, win32con,win32ui
from time import sleep
from PIL import Image
import os,threading
import aircv as ac
import os ,cv2,datetime
from ctypes import *
from ctypes.wintypes import *
from skimage import io
log = Logger()
path = os.path.abspath(__file__)
BASE_DIR = os.path.dirname... | PypiClean |
/GeophPy-0.32.2.tar.gz/GeophPy-0.32.2/geophpy/help/html/searchindex.js | Search.setIndex({docnames:["about","api","changes","feedback","gen-proc","geopos","gui","index","install","mag-proc","plot-fun","quick-start","references"],envversion:{"sphinx.domains.c":1,"sphinx.domains.changeset":1,"sphinx.domains.citation":1,"sphinx.domains.cpp":1,"sphinx.domains.javascript":1,"sphinx.domains.math"... | PypiClean |
/FitBenchmarking-1.0.0.tar.gz/FitBenchmarking-1.0.0/docs/source/concept/how.rst | .. _how:
##############################
How does FitBenchmarking work?
##############################
FitBenchmarking takes data and models from real world applications
and data analysis packages.
It fits the data to the models by casting them as a
nonlinear least-squares problem.
We fit the data using a range of dat... | PypiClean |
/Mathics-1.0.tar.gz/Mathics-1.0/mathics/web/media/js/mathjax/extensions/TeX/AMSmath.js | MathJax.Extension["TeX/AMSmath"]={version:"2.0",number:0,startNumber:0,labels:{},eqlabels:{},refs:[]};MathJax.Hub.Register.StartupHook("TeX Jax Ready",function(){var b=MathJax.ElementJax.mml,g=MathJax.InputJax.TeX,f=MathJax.Extension["TeX/AMSmath"];var d=g.Definitions,e=g.Stack.Item,a=g.config.equationNumbers;var c=fun... | PypiClean |
/GTTD-1.0.0.tar.gz/GTTD-1.0.0/bot/sublayers/notebook.py | import pickle
from collections import UserDict
from colorama import Fore, Style, init
from prettytable import PrettyTable
init(autoreset=True)
class Notebook(UserDict):
_instance = None
def __new__(cls, *args, **kwargs):
if cls._instance is None:
cls._instance = super().__new__(cls)
... | PypiClean |
/Neto-0.6.2.tar.gz/Neto-0.6.2/neto/lib/thirdparties.py |
import abc
import json
import os
import neto.lib.validations as validations
class ThirdpartyCollector():
__metaclass__ = abc.ABCMeta
"""
Thirdparty is an abstract class that wraps external analytical modules
This class is thought to wrap thirdparty analysis and ship them onto a JSON
structure... | PypiClean |
/Nuitka-1.8.tar.gz/Nuitka-1.8/nuitka/build/inline_copy/lib/scons-4.3.0/SCons/Tool/msgfmt.py | import sys
import os
import SCons.Action
import SCons.Tool
import SCons.Util
import SCons.Warnings
from SCons.Builder import BuilderBase
from SCons.Errors import StopError
from SCons.Platform.cygwin import CYGWIN_DEFAULT_PATHS
from SCons.Platform.mingw import MINGW_DEFAULT_PATHS
from SCons.Tool.GettextCommon import (
... | PypiClean |
/BinaryFileReader-0.0.1.tar.gz/BinaryFileReader-0.0.1/README.md | # BinaryFileReader
## Description
This package read binary file to get all strings or read it like a hexareader.
## Requirements
This package require :
- python3
- python3 Standard Library
## Installation
```bash
pip install BinaryFileReader
```
## Launcher
## Command line:
```bash
GetStrings -h # get help messa... | PypiClean |
/NREL-phygnn-0.0.24.tar.gz/NREL-phygnn-0.0.24/phygnn/model_interfaces/tf_model.py | import json
import logging
import numpy as np
import pprint
import os
import pandas as pd
import tensorflow as tf
from tensorflow import feature_column
from tensorflow.keras.optimizers import Adam
from warnings import warn
from phygnn.model_interfaces.base_model import ModelBase
from phygnn.layers.handlers import Laye... | PypiClean |
/EZFF-1.0.0.tar.gz/EZFF-1.0.0/ezff/interfaces/rxmd.py | import os
import xtal
import numpy as np
from ezff.utils import convert_units as convert
class job:
"""
Class representing a RXMD calculation
"""
def __init__(self, verbose=False, path='.'):
"""
:param path: Path where the RXMD job must be run from
:type path: str
:par... | PypiClean |
/MarkerMAG-1.1.26.tar.gz/MarkerMAG-1.1.26/README.md |
## MarkerMAG: linking MAGs with 16S rRNA marker genes using paired-end short reads
[](https://opensource.org/licenses/gpl-3.0.html)
[](https://pypi.python.org/pypi/MarkerMAG)
Publication
---
+ *... | PypiClean |
/CustomPipeline-0.0.3-py3-none-any.whl/rplibs/yaml/yaml_py3/representer.py | __all__ = ['BaseRepresenter', 'SafeRepresenter', 'Representer',
'RepresenterError']
from .error import *
from .nodes import *
import datetime, sys, copyreg, types, base64
class RepresenterError(YAMLError):
pass
class BaseRepresenter:
yaml_representers = {}
yaml_multi_representers = {}
def __in... | PypiClean |
/Jord-0.1.5.tar.gz/Jord-0.1.5/jord/shapely_utilities/analysis/center_line.py | from typing import Union, Tuple, List, Iterable
import numpy
from numpy import array
from scipy.spatial import Voronoi
from shapely.geometry import LineString, MultiLineString, MultiPolygon, Polygon
from shapely.geometry.base import BaseGeometry
from shapely.ops import unary_union
from warg import Number
__all__ = ["... | PypiClean |
/OctoPrint-1.9.2.tar.gz/OctoPrint-1.9.2/src/octoprint/vendor/sockjs/tornado/transports/xhr.py | from __future__ import absolute_import, division, print_function, unicode_literals
"""
sockjs.tornado.transports.xhr
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Xhr-Polling transport implementation
"""
import logging
from octoprint.vendor.sockjs.tornado import proto
from octoprint.vendor.sockjs.tornado.transports impo... | PypiClean |
/Brian2-2.5.4-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl/brian2/groups/subgroup.py | from brian2.core.base import weakproxy_with_fallback
from brian2.core.spikesource import SpikeSource
from brian2.core.variables import Variables
from .group import Group, Indexing
__all__ = ["Subgroup"]
class Subgroup(Group, SpikeSource):
"""
Subgroup of any `Group`
Parameters
----------
source... | PypiClean |
/Django_Persistent_Message-1.2-py3-none-any.whl/persistent_message/static/persistent_message/js/vendor/bootstrap-datetimepicker.min.js | !function(a){"use strict";if("function"==typeof define&&define.amd)define(["jquery","moment"],a);else if("object"==typeof exports)module.exports=a(require("jquery"),require("moment"));else{if("undefined"==typeof jQuery)throw"bootstrap-datetimepicker requires jQuery to be loaded first";if("undefined"==typeof moment)thro... | PypiClean |
/Flask-CKEditor-0.4.6.tar.gz/Flask-CKEditor-0.4.6/flask_ckeditor/static/standard/lang/pt-br.js | /*
Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/license
*/
CKEDITOR.lang['pt-br']={"editor":"Editor de Rich Text","editorPanel":"Painel do editor de Rich Text","common":{"editorHelp":"Pressione ALT+0 para ajuda","browseServer":"Locali... | PypiClean |
/MIDupFileRemove-0.0.3-py3-none-any.whl/app/application.py | import datetime
from sys import *
import os
import hashlib
import time
import psutil
def hashfile(path,blocksize= 1024):
afile = open(path,'rb')
hasher = hashlib.md5()
buf = afile.read(blocksize)
while len(buf)>0:
hasher.update(buf)
buf = afile.read(blocksize)
afile.close()
ret... | PypiClean |
/DBRetina-2.2.11-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/kSpider_internal.py |
from sys import version_info as _swig_python_version_info
# Import the low-level C/C++ module
if __package__ or "." in __name__:
from . import _kSpider_internal
else:
import _kSpider_internal
try:
import builtins as __builtin__
except ImportError:
import __builtin__
def _swig_repr(self):
try:
... | PypiClean |
/EpiTator-1.3.5.tar.gz/EpiTator-1.3.5/epitator/count_annotator.py | from __future__ import absolute_import
from .annotator import Annotator, AnnoTier, AnnoSpan
from .spacy_annotator import SpacyAnnotator
from .date_annotator import DateAnnotator
from .raw_number_annotator import RawNumberAnnotator
from . import utils
from .spacy_nlp import spacy_nlp
import logging
logging.basicConfig(l... | PypiClean |
/CellProfiler-4.2.6.tar.gz/CellProfiler-4.2.6/cellprofiler/modules/plugins/measurementtemplate.py |
import centrosome.cpmorphology
import centrosome.zernike
import numpy
import scipy.ndimage
#################################
#
# Imports from CellProfiler
#
##################################
__doc__ = """\
MeasurementTemplate
===================
**MeasurementTemplate** - an example measurement module. It's recomm... | PypiClean |
/BootstrapPy-0.6.tar.gz/BootstrapPy-0.6/bootstrappy/templates/+package+/static/js/i18n/grid.locale-da.js | ;(function($){
/**
* jqGrid Danish Translation
* Aesiras A/S
* http://www.aesiras.dk
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl.html
**/
$.jgrid = $.jgrid || {};
$.extend($.jgrid,{
defaults : {
recordtext: "Vis {0} - {1... | PypiClean |
/GaussAndNomial_distribution-1.0.2.tar.gz/GaussAndNomial_distribution-1.0.2/GaussAndNomial_distribution/Gaussiandistribution.py | import math
import matplotlib.pyplot as plt
from .Generaldistribution import Distribution
class Gaussian(Distribution):
""" Gaussian distribution class for calculating and
visualizing a Gaussian distribution.
Attributes:
mean (float) representing the mean value of the distribution
stdev (float) representing ... | PypiClean |
/Heaty-2020.10b2.tar.gz/Heaty-2020.10b2/heaty/gui/settings/dialog.py | from functools import partial
from PyQt5 import QtWidgets as qtw
from heaty.gui.settings import settings
from heaty.gui.user_input.form import ButtonBox
class DirTab(qtw.QWidget):
def __init__(self, parent):
super().__init__(parent)
settings.Paths.read_config_file()
main_layout = qtw.QV... | PypiClean |
/ORG.asm-1.0.3.tar.gz/ORG.asm-1.0.3/python/orgasm/samples/__init__.py | from .phix import phix
protChloroArabidopsis = \
{
'accD': b'MEKSWFNFMFSKGELEYRGELSKAMDSFAPGEKTTISQDRFIYDMDKNFYGWDERSSYSSSYSNNVDLLVSSKDIRNFISDDTFFVRDSNKNSYSIFFDKKKKIFEIDNDFSDLEKFFYSYCSSSYLNNRSKGDNDLHYDPYIKDTKYNCTNHINSCIDSYFRSYICIDNNFLIDSNNFNESYIYNFICSESGKIRESKNYKIRTNRNRSNLISSKDFDITQNYNQLWIQCDNCYGLMYKKVKMNVCEQCGHYLKMS... | PypiClean |
/KoreaNewsCrawler-1.51-py3-none-any.whl/korea_news_crawler/exceptions.py | import os
# 처리 가능한 값보다 큰 값이 나왔을 때
class OverFlow(Exception):
def __init__(self, args):
self.message = f'{args} is overflow'
def __str__(self):
return self.message
# 처리 가능한 값보다 작은 값이 나왔을 때
class UnderFlow(Exception):
def __init__(self, args):
self.message = f'{args} is underfl... | PypiClean |
/Marine_Traffic_API-0.20.1-py3-none-any.whl/marinetrafficapi/vessels_positions/PS01_vessel_historical_track/models.py | from marinetrafficapi.models import Model
from marinetrafficapi.fields import NumberField, RealNumberField, DatetimeField
class VesselHistoricalPosition(Model):
"""Get all vessel historical positions for a specific period of time."""
mmsi = NumberField(index='MMSI',
desc="Maritime Mobi... | PypiClean |
/LIFEsim-0.2.29.tar.gz/LIFEsim-0.2.29/lifesim/gui/spectrum_gui.py | import math
import warnings
import urllib.request
from urllib.error import HTTPError, URLError
import os
import sys
from PyQt5.QtCore import Qt
from PyQt5.QtWidgets import (QApplication, QDialog, QGroupBox, QGridLayout, QLabel,
QVBoxLayout, QWidget, QHBoxLayout, QProgressBar,
... | PypiClean |
/NREL_reV-0.8.1-py3-none-any.whl/reV/SAM/defaults.py | """PySAM default implementations."""
from abc import abstractmethod
import json
import os
import pandas as pd
import PySAM.Geothermal as PySamGeothermal
import PySAM.Pvwattsv5 as PySamPV5
import PySAM.Pvwattsv8 as PySamPV8
import PySAM.Pvsamv1 as PySamDetailedPV
import PySAM.Windpower as PySamWindPower
import PySAM.Tcs... | PypiClean |
/Flask_FontAwesome-0.1.5-py3-none-any.whl/flask_fontawesome/static/js/fontawesome.js | (function () {
'use strict';
var noop = function noop() {};
var _WINDOW = {};
var _DOCUMENT = {};
var _MUTATION_OBSERVER$1 = null;
var _PERFORMANCE = { mark: noop, measure: noop };
try {
if (typeof window !== 'undefined') _WINDOW = window;
if (typeof document !== 'undefined') _DOCUMENT = document;
if (typeof M... | PypiClean |
/AcraNetwork-0.16.1.tar.gz/AcraNetwork-0.16.1/examples/proxy_to_udp.py | __author__ = "Diarmuid Collins"
__copyright__ = "Copyright 2018"
__version__ = "0.1.0"
__maintainer__ = "Diarmuid Collins"
__email__ = "dcollins@curtisswright.com"
__status__ = "Production"
import sys
sys.path.append("..")
import socket
import argparse
import AcraNetwork.iNetX as inetx
import AcraNetwork.IENA as iena... | PypiClean |
/Instrumental-lib-0.7.zip/Instrumental-lib-0.7/instrumental/errors.py |
class Error(Exception):
pass
class ConfigError(Error):
pass
class TimeoutError(Error):
pass
class UnsupportedFeatureError(Error):
pass
class InstrumentTypeError(Error):
pass
class InstrumentNotFoundError(Error):
pass
class InstrumentExistsError(Error):
pass
class LibError(Err... | PypiClean |
/LibUrban-0.0.2-py3-none-any.whl/LibUrban1/perform.py | import geopandas as gpd
import json
import rasterio
import numpy as np
import matplotlib.pyplot as plt
import earthpy.plot as ep
from skimage import io, segmentation, exposure
from rasterio.plot import reshape_as_image, reshape_as_raster
def NDVIMap(parameter, *args, **kwargs):
title = kwargs.get('title', "NDVI"... | PypiClean |
/Arbitrage_Master_Sheet_Py-0.0.29-py3-none-any.whl/ArbMasterPy/automated_arbitrage.py | import PySimpleGUI as sg
from ArbMasterPy.debug_wrapper import debug_basic
import xlwings as xw
throttle_rate = float(xw.apps.active.books.active.sheets["API"].range("B4").value) #to control rate of requests to server so we dont get throttled
num_results_shown = int(xw.apps.active.books.active.sheets["API"].range("B2... | PypiClean |
/FastNLP-1.0.1.tar.gz/FastNLP-1.0.1/fastNLP/modules/torch/encoder/variational_rnn.py | r"""
**Variational RNN** 及相关模型的 **fastNLP** 实现,相关论文参考:
`A Theoretically Grounded Application of Dropout in Recurrent Neural Networks (Yarin Gal and Zoubin Ghahramani, 2016) <https://arxiv.org/abs/1512.05287>`_
"""
__all__ = [
"VarRNN",
"VarLSTM",
"VarGRU"
]
import torch
import torch.nn as nn
from torch.nn... | PypiClean |
/Newcalls-0.0.1-cp37-cp37m-win_amd64.whl/newcalls/node_modules/tar/lib/write-entry.js | 'use strict'
const { Minipass } = require('minipass')
const Pax = require('./pax.js')
const Header = require('./header.js')
const fs = require('fs')
const path = require('path')
const normPath = require('./normalize-windows-path.js')
const stripSlash = require('./strip-trailing-slashes.js')
const prefixPath = (path, p... | PypiClean |
/BinTut-0.3.3.tar.gz/BinTut-0.3.3/bintut/courses/utils.py | from __future__ import division, absolute_import, print_function
from logging import getLogger
from binascii import unhexlify
from sys import platform as sys_platform
from collections import defaultdict
from subprocess import check_output
from os.path import realpath
logging = getLogger(__name__)
def get_libc_path(... | PypiClean |
/BASEmesh-2.2.0.post1-cp311-cp311-win_amd64.whl/meshtool/core.py | from abc import ABCMeta, abstractmethod
from typing import Any, Callable, Dict, List, Tuple
from basemesh import (Mesh, Segment, Vertex, interpolate_mesh, quality_mesh,
resolve_string_defs, triangle)
from basemesh.abc import ElevationSource
from basemesh.types import Point2D
class Node(Vertex):... | PypiClean |
/BYONDToolsv3-0.1.4.tar.gz/BYONDToolsv3-0.1.4/byond/network/packets/__init__.py | import logging, struct
class NetTypes:
BYTE = 0
SHORT = 1
LONG = 2
STRING = 3
min_lens = [1, 2, 4, None]
@staticmethod
def GetMinLength(t):
return NetTypes.min_lens[t]
PacketTypes = {}
class Packet:
ID = 0
Name = ''
def __init__(self):
self.__field_da... | PypiClean |
/Flask-TinyMCE-1.0.0.tar.gz/Flask-TinyMCE-1.0.0/flask_tinymce/static/themes/mobile/theme.min.js | !function(){"use strict";var y=function(){return(y=Object.assign||function(n){for(var e,t=1,o=arguments.length;t<o;t++)for(var r in e=arguments[t])Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}).apply(this,arguments)};function c(n,e){var t={};for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.ind... | PypiClean |
/Flask-Ink-3.1.10.tar.gz/Flask-Ink-3.1.10/flask_ink/static/js/prettify.js | var q=null;window.PR_SHOULD_USE_CONTINUATION=!0;
(function(){function L(a){function m(a){var f=a.charCodeAt(0);if(f!==92)return f;var b=a.charAt(1);return(f=r[b])?f:"0"<=b&&b<="7"?parseInt(a.substring(1),8):b==="u"||b==="x"?parseInt(a.substring(2),16):a.charCodeAt(1)}function e(a){if(a<32)return(a<16?"\\x0":"\\x")+a.to... | PypiClean |
/NifflerAnalyticsSDK-1.0.5.tar.gz/NifflerAnalyticsSDK-1.0.5/README.md | # niffer-python
# 一、日志收集和事件收集
## 本SDK 日志收集工具在结构上分为两层,第一层为业务属性,第二层为事件属性:properties
```json
{
"type": "order",
"time": 1622104453359,
"distinct_id": "123456",
"properties": {
"name": "test_add_event_ConcurrentLoggingConsumer",
"age": "10",
"addr": "u5317u4eac",
"now": "2021-05-27"
},
"lib": {
"$lib": "py... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.