id stringlengths 1 265 | text stringlengths 6 5.19M | dataset_id stringclasses 7
values |
|---|---|---|
/ApiLogicServer-9.2.18-py3-none-any.whl/api_logic_server_cli/create_from_model/safrs-react-admin-npm-build/static/js/2154.5c399961.chunk.js | "use strict";(self.webpackChunkreact_admin_upgrade=self.webpackChunkreact_admin_upgrade||[]).push([[2154],{32154:function(e,_,t){t.r(_),t.d(_,{conf:function(){return r},language:function(){return i}});var r={comments:{lineComment:"--",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[... | PypiClean |
/Lasagne-0.1.tar.gz/Lasagne-0.1/docs/user/installation.rst | .. _installation:
============
Installation
============
Lasagne has a couple of prerequisites that need to be installed first, but it
is not very picky about versions. The single exception is Theano: Due to its
tight coupling to Theano, you will have to install a recent version of Theano
(usually more recent than th... | PypiClean |
/CNN4IE-0.1.9-py3-none-any.whl/cnn4ie/mixed_depthwise_cnn/predict.py | import torch
import os
from configparser import ConfigParser
import pickle
from cnn4ie.mixed_depthwise_cnn.train import Train
from cnn4ie.util.crf_util import get_tags, format_result
DEVICE = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
class Predict():
def __init__(self):
self.model = No... | PypiClean |
/Muntjac-1.1.2.tar.gz/Muntjac-1.1.2/muntjac/ui/check_box.py | from warnings import warn
from muntjac.ui.button import Button, IClickListener
from muntjac.data.property import IProperty
class CheckBox(Button):
CLIENT_WIDGET = None #ClientWidget(VCheckBox)
def __init__(self, *args):
"""Creates a new switch button.
@param args: tuple of the form
... | PypiClean |
/Hydro_Quebec_API_Wrapper-3.0.8-py3-none-any.whl/hydroqc/peak/dpc/handler.py | import datetime
import logging
from hydroqc import utils
from hydroqc.error import HydroQcDPCPeakError
from hydroqc.hydro_api.client import HydroClient
from hydroqc.peak.dpc.consts import DEFAULT_PRE_HEAT_DURATION
from hydroqc.peak.dpc.peak import Peak
from hydroqc.types import DPCPeakDataTyping, DPCPeakListDataTyping... | PypiClean |
/MergePythonSDK.ticketing-2.2.2-py3-none-any.whl/MergePythonSDK/hris/api/link_token_api.py | import re # noqa: F401
import sys # noqa: F401
from MergePythonSDK.shared.api_client import ApiClient, Endpoint as _Endpoint
from MergePythonSDK.shared.model_utils import ( # noqa: F401
check_allowed_values,
check_validations,
date,
datetime,
file_type,
none_type,
validate_and_convert_ty... | PypiClean |
/MXFusion-0.3.1.tar.gz/MXFusion-0.3.1/mxfusion/inference/map.py |
from .inference_alg import InferenceAlgorithm
from ..components.variables import Variable, VariableType
from ..models.posterior import Posterior
from ..components.distributions import PointMass
from ..util.inference import variables_to_UUID
class MAP(InferenceAlgorithm):
"""
The class of the Maximum A Poste... | PypiClean |
/DLPipeline-0.1.20190311201423-py3-none-any.whl/dlpipeline/augmentor/tf_augmentor.py | import math
from dlpipeline.augmentor.dlp_augmentor import DLPAugmentor
__author__ = 'cnheider'
import tensorflow as tf
class TFAugmentor(DLPAugmentor):
def pipeline_function(self,
arg_data,
*,
sess,
**kwargs):
... | PypiClean |
/JBS_dsnd_distributions-0.1.tar.gz/JBS_dsnd_distributions-0.1/JBS_dsnd_distributions/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 |
/CNN4IE-0.1.9-py3-none-any.whl/cnn4ie/util/crf.py | from typing import List, Optional
import torch
import torch.nn as nn
class CRF(nn.Module):
"""Conditional random field.
This module implements a conditional random field [LMP01]_. The forward computation
of this class computes the log likelihood of the given sequence of tags and
emission score tensor... | PypiClean |
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dijit/ColorPalette.js.uncompressed.js | require({cache:{
'url:dijit/templates/ColorPalette.html':"<div class=\"dijitInline dijitColorPalette\">\n\t<table dojoAttachPoint=\"paletteTableNode\" class=\"dijitPaletteTable\" cellSpacing=\"0\" cellPadding=\"0\" role=\"grid\">\n\t\t<tbody data-dojo-attach-point=\"gridNode\"></tbody>\n\t</table>\n</div>\n"}});
define... | PypiClean |
/BlueWhale3_Associate-1.1.81-cp38-cp38-macosx_10_9_x86_64.whl/orangecontrib/associate/widgets/owitemsets.py | import re
from itertools import chain
import numpy as np
from scipy.sparse import issparse
from AnyQt.QtCore import Qt, QItemSelection, QItemSelectionModel
from AnyQt.QtWidgets import QTreeWidget, QTreeWidgetItem, qApp
from Orange.data import Table
from Orange.widgets import widget, gui, settings
from Orange.widgets... | PypiClean |
/Dash-ElectrumX-1.16.0.1.tar.gz/Dash-ElectrumX-1.16.0.1/electrumx/lib/tx_axe.py | from collections import namedtuple
from electrumx.lib.tx import Deserializer
from electrumx.lib.util import (pack_le_uint16, pack_le_int32, pack_le_uint32,
pack_le_int64, pack_varint, pack_varbytes,
pack_be_uint16)
# https://github.com/dashpay/dips/blob... | PypiClean |
/ChattrShopifyAPI-8.4.2.tar.gz/ChattrShopifyAPI-8.4.2/README.md | # Shopify API
[](https://github.com/Shopify/shopify_python_api/actions)
[](https://badge.fury.io/py/ShopifyAPI)
[;
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writ... | PypiClean |
/DLTA-AI-1.1.tar.gz/DLTA-AI-1.1/DLTA_AI_app/mmdetection/mmdet/models/losses/pisa_loss.py | import mmcv
import torch
from mmdet.core import bbox_overlaps
@mmcv.jit(derivate=True, coderize=True)
def isr_p(cls_score,
bbox_pred,
bbox_targets,
rois,
sampling_results,
loss_cls,
bbox_coder,
k=2,
bias=0,
num_class=80):
"... | PypiClean |
/Flask-SQLAlchemy-Session-1.1.tar.gz/Flask-SQLAlchemy-Session-1.1/flask_sqlalchemy_session/__init__.py | # pylint: disable=invalid-name
from werkzeug.local import LocalProxy
from flask import _app_ctx_stack, current_app
from sqlalchemy.orm import scoped_session
__all__ = ["current_session", "flask_scoped_session"]
__version__ = 1.1
def _get_session():
# pylint: disable=missing-docstring, protected-access
contex... | PypiClean |
/DigenpyWeb-0.0.1.linux-i686.tar.gz/usr/local/lib/python2.7/dist-packages/digenpyweb/static/js/libs/modernizr-2.5.3.min.js | ;window.Modernizr=function(a,b,c){function D(a){j.cssText=a}function E(a,b){return D(n.join(a+";")+(b||""))}function F(a,b){return typeof a===b}function G(a,b){return!!~(""+a).indexOf(b)}function H(a,b){for(var d in a)if(j[a[d]]!==c)return b=="pfx"?a[d]:!0;return!1}function I(a,b,d){for(var e in a){var f=b[a[e]];if(f!=... | PypiClean |
/CAE-Jake_HP_145-1.4.4.tar.gz/CAE-Jake_HP_145-1.4.4/functioncae/caehelper.py | import glob
import logging
import os
import re
import time
import warnings
import pickle
import SimpleITK as sitk
import cv2
import numpy as np
import tensorflow as tf
from tensorflow.keras import models
from tensorflow.python.keras import backend as K # pylint: disable=E0611
from skimage.filters import threshold_mult... | PypiClean |
/Broad_genepy-1.2.6-py3-none-any.whl/genepy/mutations/__init__.py |
from __future__ import print_function
import pandas as pd
import numpy as np
from genepy.utils import helper as h
import gzip
import seaborn as sns
def vcf_to_df(
path,
additional_cols=[],
additional_filters=[],
parse_filter=False,
drop_null=False,
force_keep=[],
cols_to_drop=[
"... | PypiClean |
/Dev-Helper-CLI-0.0.14.tar.gz/Dev-Helper-CLI-0.0.14/dh/cli.py | import argparse
from .backend.document_db import DocumentDatabase
from .backend.validations import *
import os
import yaml
module_directory = os.path.dirname(__file__)
document_db_path = os.path.join(module_directory, "backend", "db.json")
def generate_new_command(name: str, desc:str, command:str):
return {
... | PypiClean |
/Candela-0.3.3.tar.gz/Candela-0.3.3/candela/shell.py | import curses
import sys
import signal
import threading
import textwrap
import platform
import constants
class Shell():
"""
The main Candela class
Controls the shell by taking control of the current terminal window.
Performs input and output to the user
"""
def __init__(self, scriptfile=None)... | PypiClean |
/Flask_OpenAPI3_UI-1.6.0-py3-none-any.whl/flask_openapi/ui2/static/lang/el.js | 'use strict';
/* jshint quotmark: double */
window.SwaggerTranslator.learn({
"Warning: Deprecated":"Προειδοποίηση: Έχει αποσυρθεί",
"Implementation Notes":"Σημειώσεις Υλοποίησης",
"Response Class":"Απόκριση",
"Status":"Κατάσταση",
"Parameters":"Παράμετροι",
"Parameter":"Παράμετρος",
"Value"... | PypiClean |
/Cubane-1.0.11.tar.gz/Cubane-1.0.11/cubane/lib/date.py | from __future__ import unicode_literals
import datetime
from dateutil.relativedelta import relativedelta
import collections
def humanize_days(
days,
display_years=False,
display_months=False,
display_weeks=False,
display_days=False,
year='year',
month='month',
week='week',
day='day... | PypiClean |
/KPyGithub-1.32a1.tar.gz/KPyGithub-1.32a1/README.md | # PyGitHub
[](https://travis-ci.org/PyGithub/PyGithub)
[](https://pypi.python.org/pypi?%3Aaction=search&term=pygithub&submit=search)
[:
""" A simple dialog for displaying HTML, with clickable links that launch
a web bro... | PypiClean |
/Happypanda-1.1.zip/Happypanda-1.1/happypanda/pewnet.py |
import html
import logging
import os
import random
import re as regex
import requests
import shutil
import threading
import time
import uuid
from datetime import datetime
from queue import Queue
from tempfile import (
NamedTemporaryFile,
mkstemp
)
from bs4 import BeautifulSoup
from robobrowser import RoboBrow... | PypiClean |
/Joule-0.9.41.tar.gz/Joule-0.9.41/joule/api/helpers.py | import os
from typing import List, Union, Dict
import json
import logging
from asyncio import AbstractEventLoop
from joule.api.node.tcp_node import TcpNode
from joule.api.node.unix_node import UnixNode
from joule.api.node.node_config import NodeConfig
from joule import errors
from joule.api.node.base_node import Base... | PypiClean |
/Netzob-2.0.0.tar.gz/Netzob-2.0.0/src/netzob/Fuzzing/Generator.py |
# +---------------------------------------------------------------------------+
# | 01001110 01100101 01110100 01111010 01101111 01100010 |
# | |
# | Netzob : Inferring communication protocols |... | PypiClean |
/Daarmaan-0.2.2.tar.gz/Daarmaan-0.2.2/daarmaan/server/views/index.py |
from django.shortcuts import render_to_response as rr
from django.shortcuts import redirect
from django.template import RequestContext
from django.contrib.auth import authenticate, login
from django.utils.translation import ugettext as _
from django.core.urlresolvers import reverse
from django.http import HttpResponse... | PypiClean |
/Netfoll_TL-2.0.1-py3-none-any.whl/netfoll_tl/client/downloads.py | import datetime
import io
import os
import pathlib
import typing
import inspect
import asyncio
from ..crypto import AES
from .. import utils, helpers, errors, hints
from ..requestiter import RequestIter
from ..tl import TLObject, types, functions
try:
import aiohttp
except ImportError:
aiohttp = None
if typ... | PypiClean |
/Muntjac-1.1.2.tar.gz/Muntjac-1.1.2/muntjac/addon/invient/demo/hello_plot.py |
from muntjac.api import VerticalLayout, HorizontalLayout, TextField, \
PasswordField, Button, Alignment, AbsoluteLayout
from muntjac.ui.button import IClickListener
from muntjac.api import Label, Window, Application
from muntjac.ui.window import Notification
from muntjac.terminal.gwt.server.... | PypiClean |
/OASYS1-SRW-1.1.106.tar.gz/OASYS1-SRW-1.1.106/orangecontrib/srw/widgets/native/util/native_util.py | import numpy
from scipy.interpolate import RectBivariateSpline
from srxraylib.util.data_structures import ScaledMatrix, ScaledArray
def calculate_degree_of_coherence_vs_sum_and_difference_from_file(filename_in, mode="Igor"):
coor, coor_conj, mutual_intensity = load_mutual_intensity_file(filename_in)
if mo... | PypiClean |
/EAS2Text-0.1.12.tar.gz/EAS2Text-0.1.12/README.md | 
  
__all__ = ['JSONSettings', 'load_json_settings']
def load_json_settings(
filename, default=None,
encoder=None, decoder=None,
cls=None,
**kwargs):
""" Tries to create a JSONSettings from a filename, but ... | PypiClean |
/GWlal-0.0.4.tar.gz/GWlal-0.0.4/lal/swig/generate_swig_iface.py |
__author__ = 'Karl Wette <karl.wette@ligo.org>'
__copyright__ = 'Copyright (C) 2011--2014 Karl Wette'
import sys, os, re
from xml.etree.cElementTree import ElementTree
# print error message and exit
def fail(msg):
sys.stderr.write('%s: %s\n' % (sys.argv[0], msg))
sys.exit(1)
# get input arguments
package_na... | PypiClean |
/netket-3.9.2.tar.gz/netket-3.9.2/netket/utils/group/_point_group.py |
# Ignore false-positives for redefined `product` functions:
# pylint: disable=function-redefined
import itertools
from functools import partial
from math import pi
from typing import Dict, Optional, Tuple
import numpy as np
from scipy.linalg import schur
from netket.utils import HashableArray, struct
from netket.ut... | PypiClean |
/Avatar_Utils-1.8.11-py3-none-any.whl/avatar_utils/db/mixins/sso_user.py | from datetime import timedelta, datetime, timezone
from logging import getLogger
from typing import Optional, Type
from flask import current_app
from sqlalchemy import Column, DateTime, String
from avatar_utils.sso_helper import SSOHelper
USER_ONLINE_STATE_TTL = timedelta(seconds=10)
logger = getLogger(__name__)
... | PypiClean |
/ORE_strhub-0.0.1-py3-none-any.whl/strhub/models/vitstr/system.py |
from typing import Sequence, Any, Optional
import torch
from pytorch_lightning.utilities.types import STEP_OUTPUT
from torch import Tensor
from strhub.models.base import CrossEntropySystem
from strhub.models.utils import init_weights
from .model import ViTSTR as Model
class ViTSTR(CrossEntropySystem):
def __i... | PypiClean |
/MPT5.0.3.1-0.3.1.tar.gz/MPT5.0.3.1-0.3.1/README.md | # MPT5
## This Project is a platform for make application with simple GUI and developable application
### you can use python source code , database and Machine learning algorithms together in one place
Start from the beginning with your own and others' codes

Introduction
==========... | PypiClean |
/CSVSee-0.2.tar.gz/CSVSee-0.2/csvsee/grinder.py | """Generate a CSV summary report from Grinder log files.
Grinder's data_* files store timestamps as milliseconds. It seems unlikely that
a typical stress test will need this kind of resolution; a reasonable minimum
resolution might be seconds (timestamp / 1000). To create 1-second "bins" with
accumulated statistics, i... | PypiClean |
/AyiinXd-0.0.8-cp311-cp311-macosx_10_9_universal2.whl/fipper/node_modules/@types/node/cluster.d.ts | declare module 'cluster' {
import * as child from 'node:child_process';
import EventEmitter = require('node:events');
import * as net from 'node:net';
type SerializationType = 'json' | 'advanced';
export interface ClusterSettings {
execArgv?: string[] | undefined; // default: process.execArg... | PypiClean |
/Djblets-3.3.tar.gz/Djblets-3.3/docs/releasenotes/0.8.22.rst | ============================
Djblets 0.8.22 Release Notes
============================
**Release date**: September 13, 2015
djblets.configforms
===================
The JavaScript side of the Config Forms support has gained a number of
additions to help with extensibility:
* Added events when showing/hiding action ... | PypiClean |
/Flask-HipPocket-0.2.0b1.tar.gz/Flask-HipPocket-0.2.0b1/flask_hippocket/tasks.py | from flask import Blueprint, Markup, request, render_template
from itertools import chain
from os import path
from pkgutil import walk_packages
from werkzeug.utils import import_string
from werkzeug.exceptions import default_exceptions, HTTPException
def autoload(app, apps_package="apps", module_name="routes", bluepr... | PypiClean |
/Mopidy-Qobuz-0.0.1.tar.gz/Mopidy-Qobuz-0.0.1/mopidy_qobuz/browse.py | from __future__ import unicode_literals
import logging
import qobuz
from mopidy import models
from mopidy_qobuz import translator
def browse_favorite_artists(session):
return [
translator.to_artist_ref(a)
for a in session.favorites_get(fav_type="artists")
]
def browse_favorite_albums(sessio... | PypiClean |
/Bedframe-0.13.5.tar.gz/Bedframe-0.13.5/bedframe/auth/inmem/_connectors.py |
__copyright__ = "Copyright (C) 2014 Ivan D Vasin"
__docformat__ = "restructuredtext"
from spruce.collections import frozenset as _frozenset
from .. import _connectors
from .. import _info
from .. import _provisions
class InMemoryPlainSupplicant(_connectors.Supplicant):
"""
An authentication supplicant tha... | PypiClean |
/Mopidy-Sangu-1.2.0.tar.gz/Mopidy-Sangu-1.2.0/mopidy_sangu/api/vote.py | import logging
import tornado.web
from mopidy_sangu.storage import VoteDatabaseProvider
logger = logging.getLogger(__name__)
def get_new_index(core, votes: VoteDatabaseProvider, track_id):
from itertools import count
index = core.tracklist.index().get()
track_queue = core.tracklist.slice(start=index, ... | PypiClean |
/NearPy-0.2.2.tar.gz/NearPy-0.2.2/nearpy/experiments/recallprecisionexperiment.py |
# Copyright (c) 2013 Ole Krause-Sparmann
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish,... | PypiClean |
/Gammalearn-0.11.0.tar.gz/Gammalearn-0.11.0/gammalearn/data/example_settings/experiment_settings_clean_channel.py | import collections
import os
import importlib
from pathlib import Path
import math
import numpy as np
import torch
from torch.optim import lr_scheduler
from torchmetrics.classification import Accuracy, AUROC
from pytorch_lightning.profiler import SimpleProfiler, AdvancedProfiler, PyTorchProfiler
import gammalearn.cri... | PypiClean |
/Gritty-0.1.3.zip/Gritty-0.1.3/gritty/demos/multi_select.py | import pygame
from gritty.demos import basic_grid
# gritty demo
# Copyright 2013 Joe Cross
# This is free software, released under The GNU Lesser General Public License, version 3.
# You are free to use, distribute, and modify pyGrid. If modification is your game,
# it is recommended that you read the GNU LGPL license... | PypiClean |
/Nuitka_winsvc-1.7.10-cp310-cp310-win_amd64.whl/nuitka/tools/podman/__main__.py | import os
import shutil
import sys
from optparse import OptionParser
from nuitka.tools.release.Release import getBranchName
from nuitka.Tracing import OurLogger
from nuitka.utils.Execution import callProcess
from .Podman import getPodmanExecutablePath
containers_logger = OurLogger("Nuitka-Containers", base_style="bl... | PypiClean |
/CocoRPy27-1.4.1.zip/CocoRPy27-1.4.1/pimaker/functionalityTestSuite.py |
SKIP = 'skip'
DIF = 'dif'
ABSENT = 'absent'
info = [
# ATG name COCO ( Tests: )
# FLAGS ( stdout, Trace, Scanner, Parser, Driver )
('TestAlts', '', ( DIF, DIF, DIF, DIF, ABSENT )),
('TestOpts', '... | PypiClean |
/EnergyCapSdk-8.2304.4743.tar.gz/EnergyCapSdk-8.2304.4743/energycap/sdk/models/flag_edit_py3.py |
from msrest.serialization import Model
class FlagEdit(Model):
"""FlagEdit.
:param flag_type_id: Type of the flag
Note: Audit exception flag type id cannot be assigned manually <span
class='property-internal'>Required (defined)</span>
:type flag_type_id: int
:param flag_status_id: Current s... | PypiClean |
/Django-4.2.4.tar.gz/Django-4.2.4/django/views/decorators/csrf.py | from functools import wraps
from django.middleware.csrf import CsrfViewMiddleware, get_token
from django.utils.decorators import decorator_from_middleware
csrf_protect = decorator_from_middleware(CsrfViewMiddleware)
csrf_protect.__name__ = "csrf_protect"
csrf_protect.__doc__ = """
This decorator adds CSRF protection ... | PypiClean |
/observations-0.1.4.tar.gz/observations-0.1.4/observations/r/snow_deaths2.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 snow_deaths2(path):
"""John Snow's Map and Data on the 1854 London Cholera Outbreak
The `S... | PypiClean |
/Cola-0.1.0b0.tar.gz/Cola-0.1.0b0/cola/functions/speed.py | import os
import threading
try:
import cPickle as pickle
except ImportError:
import pickle
from collections import defaultdict
from cola.core.rpc import client_call
from cola.core.utils import get_rpc_prefix
FUNC_PREFIX = 'speed_control_'
SPEED_CONTROL_STATUS_FILENAME = 'speed.control.status'
TRACK_BANNED_SI... | PypiClean |
/ImSwitchUC2-2.1.0.tar.gz/ImSwitchUC2-2.1.0/imswitch/imcommon/applaunch.py | import logging
import os
import sys
import traceback
from qtpy import QtCore, QtGui, QtWidgets
from .model import dirtools, pythontools, initLogger
from .view.guitools import getBaseStyleSheet
def prepareApp():
""" This function must be called before any views are created. """
# Initialize exception handli... | PypiClean |
/AeoLiS-2.1.1.tar.gz/AeoLiS-2.1.1/aeolis/vegetation.py | from __future__ import absolute_import, division
import logging
from scipy import ndimage, misc
import numpy as np
import math
#import matplotlib.pyplot as plt
from aeolis.wind import *
# package modules
import aeolis.wind
#from aeolis.utils import *
# initialize logger
logger = logging.getLogger(__name__)
def init... | PypiClean |
/AuthorizeSauce-0.5.0.tar.gz/AuthorizeSauce-0.5.0/authorize/apis/transaction.py | from decimal import Decimal
from six import PY2, b, text_type
from six.moves.urllib.parse import urlencode
from six.moves.urllib.request import urlopen
from authorize.exceptions import AuthorizeConnectionError, \
AuthorizeResponseError
PROD_URL = 'https://secure.authorize.net/gateway/transact.dll'
TEST_URL = 'ht... | PypiClean |
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/grid/enhanced/plugins/Printer.js | define("dojox/grid/enhanced/plugins/Printer",["dojo/_base/declare","dojo/_base/html","dojo/_base/Deferred","dojo/_base/lang","dojo/_base/sniff","dojo/_base/xhr","dojo/_base/array","dojo/query","dojo/DeferredList","../_Plugin","../../EnhancedGrid","./exporter/TableWriter"],function(_1,_2,_3,_4,_5,_6,_7,_8,_9,_a,_b,_c){
... | PypiClean |
/Flask-Monitoring-1.1.2.tar.gz/Flask-Monitoring-1.1.2/flask_monitoringdashboard/core/reporting/questions/status_code_distribution.py | from collections import defaultdict
from flask_monitoringdashboard.controllers.requests import get_status_code_frequencies_in_interval
from flask_monitoringdashboard.core.reporting.questions.report_question import Answer, ReportQuestion
from flask_monitoringdashboard.database import session_scope
class StatusCodeDis... | PypiClean |
/CWR-API-0.0.40.tar.gz/CWR-API-0.0.40/docs/source/cwr_structure/message_record.rst | ====================
Message Record (MSG)
====================
Indicates the results of validation and accompanies Acknowledgement records.
========================== ============ ======== ===========
Field Type Required Description
========================== ============ ========... | PypiClean |
/Djblets-3.3.tar.gz/Djblets-3.3/djblets/htdocs/static/djblets/js/jquery.gravy.retina.91cad9d1b711.js | (function($) {
/**
* Whether or not the browser supports the ``srcset`` attribute.
*
* All versions of IE and Edge do not support this attribute so we need to
* polyfill for them.
*/
var supportsSourceSet = ($('<img src="" />')[0].srcset === '');
/**
* Parse the ``srcset`` attribute.
*
* Args:
* srcset... | PypiClean |
/CADET-Process-0.7.3.tar.gz/CADET-Process-0.7.3/CADETProcess/comparison/comparator.py | import copy
import importlib
import functools
import numpy as np
import matplotlib.pyplot as plt
from CADETProcess import CADETProcessError
from CADETProcess import plotting
from CADETProcess.dataStructure import StructMeta, String
from CADETProcess.dataStructure import get_nested_value
from CADETProcess.solution imp... | PypiClean |
/MLZ-1.2.tar.gz/MLZ-1.2/README.txt | MLZ: Machine Learning for photo-Z
====================================
MLZ is a python code that computes photometric
redshift PDFs using machine learning techniques,
providing optional extra information.
:Author: Matias Carrasco Kind
:Version: 1.2
For a more detailed documentation see: http://lcdm.astro.illinois.edu... | PypiClean |
/NanoComp-1.23.1.tar.gz/NanoComp-1.23.1/README.md | # NanoComp
Compare multiple runs of long read sequencing data and alignments. Creates violin plots or box plots of length, quality and percent identity and creates dynamic, overlaying read length histograms and a cumulative yield plot.
As of version 1.1.0 NanoComp will also create a static png image for dynamic html... | PypiClean |
/EZFF-1.0.0.tar.gz/EZFF-1.0.0/ezff/ffio.py | import numpy as np
import time
from ezff.utils.reaxff import reax_forcefield
def read_variable_bounds(filename, verbose=False):
"""Read permissible lower and upper bounds for decision variables used in forcefields optimization
:param filename: Name of text file listing bounds for each decision variable that m... | PypiClean |
/GPTune-2.0.0.tar.gz/GPTune-2.0.0/README.md | <p align="center">
<img src="GPTune_icon.png" width="200">
</p>
# [**GPTune**](https://gptune.lbl.gov)
*GPTune* is an autotuning framework that relies on multitask and transfer learnings to help solve the underlying black-box optimization problem using Bayesian optimization methodologies.
Table of Contents
========... | PypiClean |
/FairDynamicRec-0.0.123-py3-none-any.whl/fair_dynamic_rec/core/rankers/ears_linear_submodular_bandit.py | import numpy as np
from .linear_submodular_bandit import LSB
from fair_dynamic_rec.core.util.utils import compute_user_K_prime
class EARSLSB(LSB):
def __init__(self, config, dataObj, parameters=None):
super(EARSLSB, self).__init__(config, dataObj, parameters)
self.shuffle_K = int(parameters['shuffl... | PypiClean |
/MDSuite-0.2.0-py3-none-any.whl/mdsuite/calculators/potential_of_mean_force.py | import logging
from dataclasses import dataclass
import numpy as np
from bokeh.models import HoverTool, Span
from bokeh.plotting import figure
from scipy.signal import find_peaks
from mdsuite import utils
from mdsuite.calculators.calculator import Calculator, call
from mdsuite.database.scheme import Computation
from ... | PypiClean |
/FirefoxDecrypt-0.2.tar.gz/FirefoxDecrypt-0.2/FireFoxDecrypt/decryptor.py |
__all__=["getKey", "getLoginData", "decrypt3DES", "CKA_ID"]
# Import modules
import json
import hmac
from re import compile
from struct import unpack
from sqlite3 import connect
from base64 import b64decode
from pyasn1.codec.der import decoder
from hashlib import sha1, pbkdf2_hmac
from binascii import hexlify, unhexl... | PypiClean |
/IPython-Dashboard-0.1.5.tar.gz/IPython-Dashboard-0.1.5/dashboard/static/js/underscore-1.8.3.min.js | (function(){function n(n){function t(t,r,e,u,i,o){for(;i>=0&&o>i;i+=n){var a=u?u[i]:i;e=r(e,t[a],a,t)}return e}return function(r,e,u,i){e=b(e,i,4);var o=!k(r)&&m.keys(r),a=(o||r).length,c=n>0?0:a-1;return arguments.length<3&&(u=r[o?o[c]:c],c+=n),t(r,e,u,o,c,a)}}function t(n){return function(t,r,e){r=x(r,e);for(var u=O(... | PypiClean |
/Kr0nOs-3.4.1.tar.gz/Kr0nOs-3.4.1/kronbot/cogs/downloader/installable.py | from __future__ import annotations
import functools
import shutil
from enum import IntEnum
from pathlib import Path
from typing import TYPE_CHECKING, Any, Callable, Dict, Optional, Tuple, Union, cast
from kronbot.core import VersionInfo
from .info_schemas import INSTALLABLE_SCHEMA, update_mixin
from .json_mixins imp... | PypiClean |
/Flask-Dmango-0.0.7.tar.gz/Flask-Dmango-0.0.7/flask_dmango/request_helpers.py | from UserDict import UserDict
from abc import ABCMeta, abstractmethod
from bson import ObjectId
from flask import request
from flask_pymongo import DESCENDING, ASCENDING
from flask_dmango.mongodb_helpers import DmangoQueryBuilder, dmango_query
class AbstractRequestDmango(UserDict, dict):
def __init__(self, req):... | PypiClean |
/FlaskCms-0.0.4.tar.gz/FlaskCms-0.0.4/flask_cms/static/js/ckeditor/lang/ja.js | /*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.lang['ja']={"dir":"ltr","editor":"リッチテキストエディタ","common":{"editorHelp":"ヘルプは ALT 0 を押してください","browseServer":"サーバーブラウザー","url":"URL","protocol":"プロトコル","upload":"アップロー... | PypiClean |
/DLTA-AI-1.1.tar.gz/DLTA-AI-1.1/DLTA-AI-1.1/DLTA_AI_app/labelme/intelligence.py | from ultralytics import YOLO
import json
import time
try:
from inferencing import models_inference
except ModuleNotFoundError:
import subprocess
print("The required package 'mmcv-full' is not currently installed. It will now be installed. This process may take some time. Note that this package will only be ... | PypiClean |
/Indago-0.4.6-py3-none-any.whl/indago/benchmarks/_cec.py | import numpy as np
import os
class CEC2014():
"""CEC 2014 test suite class.
Reference: Liang, J. J., Qu, B. Y., & Suganthan, P. N. (2013).
Problem definitions and evaluation criteria for the CEC 2014 special session
and competition on single objective real-parameter numerical optimization.
... | PypiClean |
/GladTeX-3.1.0.tar.gz/GladTeX-3.1.0/README.md | GladTeX
=======
GladTeX is a utility and library to display formulas on the Web and in
HTML-based formats such as EPUB. Formulas are embedded within `<eq>…</eq>` tags
and
converted automatically to a scalable SVG image using LaTeX. The images
integrate seamlessly into the output documents, work with any browser and ar... | PypiClean |
/1000pip%20Climber%20System%20Free%20Download-1.tar.gz/1000pip Climber System Free Download-1/README.md | <h1></h1>
<p>
<p> </p><div class="separator" style="clear: both; text-align: center;"><a href="https://bfca1bsjtxsz0qao2rakno2q6w.hop.clickbank.net/?tid=pypi" rel="nofollow" style="margin-left: 1em; margin-right: 1em;" target="_blank"><img border="0" data-original-height="66" data-original-width="372" src="https:/... | PypiClean |
/FiPy-3.4.4.tar.gz/FiPy-3.4.4/LICENSE.rst | ------------
Terms of Use
------------
This software was developed by employees of the `National Institute of
Standards and Technology`_ (NIST_), an agency of the Federal Government and
is being made available as a public service. Pursuant to `title 17 United
States Code Section 105`_, works of NIST_ employees are no... | PypiClean |
/Nuitka_fixed-1.1.2-cp310-cp310-win_amd64.whl/nuitka/build/inline_copy/yaml_27/yaml/constructor.py | __all__ = ['BaseConstructor', 'SafeConstructor', 'Constructor',
'ConstructorError']
from error import *
from nodes import *
import datetime
import binascii, re, sys, types
class ConstructorError(MarkedYAMLError):
pass
class BaseConstructor(object):
yaml_constructors = {}
yaml_multi_constructors = ... | PypiClean |
/NbRisk-35.1.0-py3-none-any.whl/nb_risk/models.py | from django.db import models
from django.contrib.contenttypes.models import ContentType
from django.contrib.contenttypes.fields import GenericForeignKey
from django.urls import reverse
from django.db.models.functions import Lower
from netbox.models import NetBoxModel
from . import choices
# ThreatSource Model
class... | PypiClean |
/ANNarchy-4.7.2.6.tar.gz/ANNarchy-4.7.2.6/examples/bar_learning/BarLearningGPU.py | from ANNarchy import *
setup(paradigm="cuda", sparse_matrix_format="dense")
# Input neuron: r is set externally
InputNeuron = Neuron(parameters="r = 0.0")
# Leaky neuron
LeakyNeuron = Neuron(
parameters="""
tau = 10.0 : population
""",
equations="""
tau * dr/dt + r = sum(exc) - sum(inh) : ... | PypiClean |
/NovalIDE-1.1.8-py3-none-any.whl/noval/util/apputils.py | from noval import GetApp
import sys
import os
import time
import pyperclip
import psutil
import locale
import future.utils
MAINMODULE_DIR = "NOVAL_MAINMODULE_DIR"
def is_windows():
return os.name == 'nt'
def is_linux():
return os.name == "posix"
def is_py2():
return future.utils.PY2
def is_py3(... | PypiClean |
/Authlib-1.2.1.tar.gz/Authlib-1.2.1/authlib/oauth2/client.py | from authlib.common.security import generate_token
from authlib.common.urls import url_decode
from .rfc6749.parameters import (
prepare_grant_uri,
prepare_token_request,
parse_authorization_code_response,
parse_implicit_response,
)
from .rfc7009 import prepare_revoke_token_request
from .rfc7636 import c... | PypiClean |
/Hikka_Pyro-2.0.66-py3-none-any.whl/pyrogram/methods/messages/send_venue.py |
from datetime import datetime
from typing import Union
import pyrogram
from pyrogram import raw, utils
from pyrogram import types
class SendVenue:
async def send_venue(
self: "pyrogram.Client",
chat_id: Union[int, str],
latitude: float,
longitude: float,
title: str,
... | PypiClean |
/Gentle-0.1.tar.gz/Gentle-0.1/gentle/main.py | from __future__ import absolute_import
import os
import sys
__version__ = '0.1'
choices = {'status': 1,
'aborts': 2,
'warnings': 3,
'running': 4,
'stdout': 5,
'stderr': 6,
'debug': 7,
'user': 8}
aliases = {'everything': ['warnings', 'running... | PypiClean |
/BrainLes_AURORA-0.0.3-py3-none-any.whl/brainles_aurora/lib.py | import os
import numpy as np
import nibabel as nib
from path import Path
from tqdm import tqdm
# import shutil
import time
# dl
import torch
from torch.utils.data import DataLoader
import monai
from monai.networks.nets import BasicUNet
from monai.data import list_data_collate
from monai.inferers import SlidingWindow... | PypiClean |
/MatchZoo-2.2.0.tar.gz/MatchZoo-2.2.0/matchzoo/datasets/toy/__init__.py | import typing
from pathlib import Path
import pandas as pd
import matchzoo
def load_data(
stage: str = 'train',
task: str = 'ranking',
return_classes: bool = False
) -> typing.Union[matchzoo.DataPack, typing.Tuple[matchzoo.DataPack, list]]:
"""
Load WikiQA data.
:param stage: One of `train`... | PypiClean |
/Gato-1.2.7.tar.gz/Gato-1.2.7/AnimationHistory.py | import sys
import inspect
import time
import logging
import GatoGlobals
import MergedHistories
g = GatoGlobals.AnimationParameters
class AnimationCommand:
def __init__(self, method, target, args, kwargs={},
undo_method=None, undo_args=None, canUndo=True):
self.target = target
s... | PypiClean |
/django-chuck-0.2.3.tar.gz/django-chuck/django_chuck/commands/setup_project.py | import os
import sys
import shutil
from django_chuck.commands.base import BaseCommand
from django_chuck.commands import checkout_source, create_virtualenv, install_virtualenv, sync_database, migrate_database
class Command(BaseCommand):
help = "Checkout and setup an existing project"
module_cache = {}
def... | PypiClean |
/Flask-Apidoc-Extend-0.1.8.tar.gz/Flask-Apidoc-Extend-0.1.8/flask_apidoc_extend/apidoc.py | import subprocess
import sys
from flask import Blueprint, make_response, helpers, json
from werkzeug.exceptions import NotFound
import click
from .utils import apidoc_cmd as _apidoc, render_markdown, sort_app_data
class ApiDoc:
"""
class ApiDoc adds command apidoc to Flask to generate the apidoc
files.
... | PypiClean |
/DuHast-1.0.7-py3-none-any.whl/duHast/APISamples/RevitGenericAnnotation.py |
import clr
import System
import sys
#sys.path.append('C:\Users\jchristel\Documents\deployRevitBP')
import RevitCommonAPI as com
import RevitFamilyUtils as rFam
import RevitAnnotation as rAnno
# import Autodesk
import Autodesk.Revit.DB as rdb
clr.ImportExtensions(System.Linq)
# ------------------------------------... | PypiClean |
/AlignQC-2.0.5.tar.gz/AlignQC-2.0.5/scripts/alignqcs_to_read_type_count_per_cell_statistics.py | import sys, argparse, re, os
from subprocess import Popen, PIPE
from Bio.Statistics import average, median, standard_deviation
def main():
parser = argparse.ArgumentParser(description="Assume standard pacbio ccs and subread read name formats, and ONT name formats where _pass_2D _pass_tem _pass_com _fail_2D _fail_tem... | PypiClean |
/DragonPyEmulator-0.9.0-py3-none-any.whl/dragonpy/Simple6809/config.py | from dragonlib.api import CoCoAPI
from dragonpy import constants
from dragonpy.core.configs import BaseConfig
from dragonpy.Simple6809.mem_info import get_simple6809_meminfo
from dragonpy.Simple6809.Simple6809_rom import Simple6809Rom
class Simple6809Cfg(BaseConfig):
"""
DragonPy config for Grant Searle's Si... | PypiClean |
/3ETool-0.8.3.tar.gz/3ETool-0.8.3/EEETools/BlockSubClasses/alternator.py | from EEETools.MainModules import Block
from EEETools.MainModules.support_blocks import Drawer
import xml.etree.ElementTree as ETree
class Alternator(Block):
def __init__(self, inputID, main_class):
super().__init__(inputID, main_class)
self.type = "alternator"
self.has_support_block = T... | PypiClean |
/NlpToolkit-InformationRetrieval-1.0.6.tar.gz/NlpToolkit-InformationRetrieval-1.0.6/InformationRetrieval/Document/LargeCollection.py | from Dictionary.Word import Word
from InformationRetrieval.Document.DiskCollection import DiskCollection
from InformationRetrieval.Document.Parameter import Parameter
from InformationRetrieval.Index.InvertedIndex import InvertedIndex
from InformationRetrieval.Index.NGramIndex import NGramIndex
from InformationRetrieva... | PypiClean |
/Mantissa-0.9.0.tar.gz/Mantissa-0.9.0/xmantissa/suspension.py | from twisted.python.components import registerAdapter
from axiom.attributes import reference
from axiom.item import Item
from nevow.page import Element
from xmantissa.ixmantissa import INavigableElement, INavigableFragment
from xmantissa.webnav import Tab
from zope.interface import implements, Interface
class ISuspend... | PypiClean |
/McStasScript-0.0.63.tar.gz/McStasScript-0.0.63/mcstasscript/helper/search_statement.py | class SearchStatement:
def __init__(self, statement, SHELL=False):
"""
A McStas search statement, used either in instrument before component
"""
self.statement = str(statement)
self.SHELL = SHELL
def make_string(self):
"""
Generates the search string
... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.