id stringlengths 1 265 | text stringlengths 6 5.19M | dataset_id stringclasses 7
values |
|---|---|---|
/Gratheory-0.1.1-py3-none-any.whl/gratheory.py |
#vertices are labelled 0-(n-1), pass this as an integer n
#edges is a list of lists length 3 containing the starting vertices, the ending vertices and the weights, use weight of 1 for unweighted graphs
#connectFrom and connectTo both specify where any connections come from or to and their weights as a list of lists ... | PypiClean |
/Envelopes-0.4.tar.gz/Envelopes-0.4/docs/api/connstack.rst | Connection stack
================
The connection stack allows you to use Envelopes' SMTP connection wrapper in
threaded apps. Consult the example Flask app to see it in action.
Code of this module has been adapted from `RQ <http://python-rq.org/>`_ by
`Vincent Driessen <http://nvie.com/about/>`_.
.. autofunction:: e... | PypiClean |
/node_managment_application-0.0.1.tar.gz/node_managment_application-0.0.1/nms_app/static/rest_framework/js/coreapi-0.1.1.js | (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.coreapi = f()}... | PypiClean |
/Electrum-CHI-3.3.8.tar.gz/Electrum-CHI-3.3.8/packages/pip/_vendor/urllib3/__init__.py | from __future__ import absolute_import
import warnings
from .connectionpool import (
HTTPConnectionPool,
HTTPSConnectionPool,
connection_from_url
)
from . import exceptions
from .filepost import encode_multipart_formdata
from .poolmanager import PoolManager, ProxyManager, proxy_from_url
from .response imp... | PypiClean |
/Flask_AdminLTE3-1.0.9-py3-none-any.whl/flask_adminlte3/static/plugins/codemirror/addon/hint/html-hint.js |
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS
mod(require("../../lib/codemirror"), require("./xml-hint"));
else if (typeof define == "function" && define.amd) // AMD
define(["../../lib/codemirror", "./xml-hint"], mod);
else // Plain browser env
mod(CodeMirr... | PypiClean |
/FlowMaster-0.7.1.tar.gz/FlowMaster-0.7.1/flowmaster/operators/etl/work.py | from typing import TYPE_CHECKING, Iterator, Optional
from flowmaster.executors import catch_exceptions, ExecutorIterationTask
from flowmaster.models import FlowItem
from flowmaster.operators.base.work import Work, prepare_items_for_order
from flowmaster.service import iter_active_notebook_filenames, get_notebook
from ... | PypiClean |
/DLTA-AI-1.1.tar.gz/DLTA-AI-1.1/DLTA_AI_app/mmdetection/configs/nas_fpn/retinanet_r50_nasfpn_crop640_50e_coco.py | _base_ = [
'../_base_/models/retinanet_r50_fpn.py',
'../_base_/datasets/coco_detection.py', '../_base_/default_runtime.py'
]
cudnn_benchmark = True
# model settings
norm_cfg = dict(type='BN', requires_grad=True)
model = dict(
type='RetinaNet',
backbone=dict(
type='ResNet',
depth=50,
... | PypiClean |
/Lmgeo-1.1.0.tar.gz/Lmgeo-1.1.0/lmgeo/formats/hdf5raster.py | import os.path
from collections import Sequence
from warnings import warn
from .raster import Raster
from .gridenvelope2d import GridEnvelope2D
from .const import Const, constants as const
try:
import tables
from tables.exceptions import NoSuchNodeError
HAS_TABLES = True
except ImportError:
HAS_TABLES =... | PypiClean |
/CartiMorph_nnUNet-1.7.14.tar.gz/CartiMorph_nnUNet-1.7.14/CartiMorph_nnUNet/experiment_planning/DatasetAnalyzer.py |
from batchgenerators.utilities.file_and_folder_operations import *
from multiprocessing import Pool
from CartiMorph_nnUNet.configuration import default_num_threads
from CartiMorph_nnUNet.paths import nnUNet_raw_data, nnUNet_cropped_data
import numpy as np
import pickle
from CartiMorph_nnUNet.preprocessing.cropping im... | PypiClean |
/Bis-Miner-3.11.1.tar.gz/Bis-Miner-3.11.0/Orange/evaluation/clustering.py | import numpy as np
from sklearn.metrics import silhouette_score, adjusted_mutual_info_score, silhouette_samples
from Orange.data import Table
from Orange.evaluation.testing import Results
from Orange.evaluation.scoring import Score
__all__ = ['ClusteringEvaluation']
class ClusteringResults(Results):
def __init... | PypiClean |
/Nano-CAT-0.7.2.tar.gz/Nano-CAT-0.7.2/nanoCAT/ff/match_job.py |
import os
import io
import stat
from typing import Generator, Any, List, Tuple, Hashable, Optional
from os.path import join, isfile
from itertools import chain
from scm.plams.core.private import sha256
from scm.plams import SingleJob, JobError, Results, Settings, Molecule, FileError
try:
from scm.plams import wr... | PypiClean |
/GenomeQAML-0.0.14.tar.gz/GenomeQAML-0.0.14/README.md | [](https://travis-ci.org/OLC-LOC-Bioinformatics)
# GenomeQAML: Genome Quality Assessment with Machine Learning
The GenomeQAML is a script that uses a pre-computed ExtraTreesClassifier model in order to
classify FASTA-formatted _de novo... | PypiClean |
/GQCMS-0.0.4-py3-none-any.whl/build/lib/build/lib/build/lib/build/lib/gqcms/ConfigurationInteraction.py | import numpy as np
import pandas as pd
from scipy import linalg
from gqcms import HartreeFock
from gqcms import Hubbard
from gqcms import Determinant
from gqcms import createHamiltonianSCI
from gqcms import DensityOperator
def FCI(hamiltonian: np.ndarray, states: tuple = 0) -> pd.DataFrame:
"""
Computes the ... | PypiClean |
/Diofant-0.14.0a2.tar.gz/Diofant-0.14.0a2/diofant/concrete/expr_with_intlimits.py | from ..core import oo
from .expr_with_limits import ExprWithLimits
class ReorderError(NotImplementedError):
"""Exception raised when trying to reorder dependent limits."""
def __init__(self, expr, msg):
super().__init__(f'{expr} could not be reordered: {msg}.')
class ExprWithIntLimits(ExprWithLimit... | PypiClean |
/Hebel-0.02.1.tar.gz/Hebel-0.02.1/hebel/layers/logistic_layer.py |
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# bu... | PypiClean |
/MapProxy-1.16.0.tar.gz/MapProxy-1.16.0/mapproxy/config/spec.py |
from __future__ import print_function
import datetime
from mapproxy.util.ext.dictspec.validator import validate, ValidationError
from mapproxy.util.ext.dictspec.spec import one_of, anything, number
from mapproxy.util.ext.dictspec.spec import recursive, required, type_spec, combined
from mapproxy.compat import string... | PypiClean |
/Curtain-0.3.tar.gz/Curtain-0.3/src/curtain/handler.py | import xml.sax.handler, xml.sax.xmlreader
import pkg_resources
from curtain import ns
import processors
class _AttributesNSImpl(xml.sax.xmlreader.AttributesNSImpl):
def __init__(self, dct, extra_attrs):
attrs = dict(dct.items() + extra_attrs.items())
xml.sax.xmlreader.AttributesNSImpl.__init__(se... | PypiClean |
/Exegol-4.2.5.tar.gz/Exegol-4.2.5/exegol-docker-build/sources/install/package_misc.sh |
source common.sh
function install_misc_apt_tools() {
fapt rlwrap imagemagick ascii rsync
add-history rlwrap
add-history imagemagick
add-history ascii
add-history rsync
add-test-command "rlwrap --version" # Reverse shell utility
add-test-command "convert -versio... | PypiClean |
/Flask-Statics-Helper-1.0.0.tar.gz/Flask-Statics-Helper-1.0.0/flask_statics/static/angular/i18n/angular-locale_eo.js | 'use strict';
angular.module("ngLocale", [], ["$provide", function($provide) {
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
function getDecimals(n) {
n = n + '';
var i = n.indexOf('.');
return (i == -1) ? 0 : n.length - i - 1;
}
function getVF(n, opt_pre... | PypiClean |
/CleanAdminDjango-1.5.3.1.tar.gz/CleanAdminDjango-1.5.3.1/django/contrib/auth/__init__.py | import re
from django.core.exceptions import ImproperlyConfigured
from django.utils.importlib import import_module
from django.middleware.csrf import rotate_token
from django.contrib.auth.signals import user_logged_in, user_logged_out, user_login_failed
SESSION_KEY = '_auth_user_id'
BACKEND_SESSION_KEY = '_auth_user_... | PypiClean |
/CherryPy-18.8.0.tar.gz/CherryPy-18.8.0/cherrypy/_cpmodpy.py | import io
import logging
import os
import re
import sys
from more_itertools import always_iterable
import cherrypy
from cherrypy._cperror import format_exc, bare_error
from cherrypy.lib import httputil
# ------------------------------ Request-handling
def setup(req):
from mod_python import apache
# Run a... | PypiClean |
/lektor-3.4.0b6-py3-none-any.whl/lektor/project.py | from __future__ import annotations
import hashlib
import os
import sys
from enum import Enum
from pathlib import Path
from inifile import IniFile
from werkzeug.utils import cached_property
from lektor.environment import Environment
from lektor.utils import comma_delimited
from lektor.utils import get_cache_dir
from ... | PypiClean |
/LabtoolSuite-0.1.3.tar.gz/LabtoolSuite-0.1.3/Labtools/docs/js/osmplayer.default.js | !function(a,b){b.playLoader=b.playLoader||{},b.playLoader[a]=function(a,b){minplayer.playLoader.call(this,a,b)},b.playLoader[a].prototype=new minplayer.playLoader,b.playLoader[a].prototype.constructor=b.playLoader[a],b.playLoader[a].prototype.getDisplay=function(){return this.options.build&&jQuery(".minplayer-"+a,this.... | PypiClean |
/NetworkSim-0.2.2.tar.gz/NetworkSim-0.2.2/examples/transmitter_receiver_and_ram.ipynb | ```
from NetworkSim.simulation.process.ram import RAM
from NetworkSim.simulation.process.transmitter.fixed import FT
from NetworkSim.simulation.process.receiver.tunable import TR
from NetworkSim.architecture.setup.model import Model
from NetworkSim.architecture.base.network import Network
import simpy
env =simpy.Envir... | PypiClean |
/Biryani-0.10.8-py3-none-any.whl/biryani/jsonconv.py |
# Biryani -- A conversion and validation toolbox
# By: Emmanuel Raviart <emmanuel@raviart.com>
#
# Copyright (C) 2009, 2010, 2011, 2012, 2013, 2014, 2015 Emmanuel Raviart
# http://packages.python.org/Biryani/
#
# This file is part of Biryani.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you m... | PypiClean |
/JSON_minify-0.3.0.tar.gz/JSON_minify-0.3.0/json_minify/__init__.py | import re
def json_minify(string, strip_space=True):
tokenizer = re.compile('"|(/\*)|(\*/)|(//)|\n|\r')
end_slashes_re = re.compile(r'(\\)*$')
in_string = False
in_multi = False
in_single = False
new_str = []
index = 0
for match in re.finditer(tokenizer, string):
if not (in... | PypiClean |
/Apppath-1.0.3.tar.gz/Apppath-1.0.3/apppath/__init__.py | import datetime
import os
from importlib.metadata import PackageNotFoundError
from warnings import warn
from typing import Any
from importlib import resources
from warg import package_is_editable
__project__ = "Apppath"
__author__ = "Christian Heider Nielsen"
__version__ = "1.0.3"
__doc__ = r"""
Created on 27/04/201... | PypiClean |
/Beaker-1.12.1.tar.gz/Beaker-1.12.1/README.rst | =========================
Cache and Session Library
=========================
About
=====
Beaker is a web session and general caching library that includes WSGI
middleware for use in web applications.
As a general caching library, Beaker can handle storing for various times
any Python object that can be pickled with... | PypiClean |
/AVOScript-0.11.5.tar.gz/AVOScript-0.11.5/avos.py | from argparse import ArgumentParser
from json import loads, dumps
from os import path
from sys import exit
import subprocess
from typing import Dict, List, Optional
try:
from avoscript.lexer import Lexer
from avoscript.lexer.default import ENV, ENV_CONSTS, LevelIndex
from avoscript import version, AVOSCRIP... | PypiClean |
/EIVideo-0.1a0.tar.gz/EIVideo-0.1a0/paddlevideo/utils/precise_bn.py |
import paddle
import itertools
from EIVideo.paddlevideo.utils import get_logger
logger = get_logger("paddlevideo")
"""
Implement precise bn, which is useful for improving accuracy.
"""
@paddle.no_grad() # speed up and save CUDA memory
def do_preciseBN(model, data_loader, parallel, num_iters=200):
"""
Reco... | PypiClean |
/DjangoDjangoAppCenter-0.0.11-py3-none-any.whl/AppCenter/simpleui/static/admin/js/vendor/xregexp/xregexp.js | /**
* XRegExp provides augmented, extensible JavaScript regular expressions. You get new syntax,
* flags, and methods beyond what browsers support natively. XRegExp is also a regex utility belt
* with tools to make your client-side grepping simpler and more powerful, while freeing you from
* worrying about pesky cr... | PypiClean |
/C-Telethon-1.28.5.tar.gz/C-Telethon-1.28.5/telethon/password.py | import hashlib
import os
from .crypto import factorization
from .tl import types
def check_prime_and_good_check(prime: int, g: int):
good_prime_bits_count = 2048
if prime < 0 or prime.bit_length() != good_prime_bits_count:
raise ValueError('bad prime count {}, expected {}'
.f... | PypiClean |
/MetaCalls-0.0.5-cp310-cp310-manylinux2014_x86_64.whl/metacalls/node_modules/node-fetch/lib/index.js | 'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var Stream = _interopDefault(require('stream'));
var http = _interopDefault(require('http'));
var Url = _interopDefault(requi... | PypiClean |
/Assemyaml-0.3.0.tar.gz/Assemyaml-0.3.0/assemyaml/types.py | from __future__ import absolute_import, print_function
from logging import getLogger
from six.moves import range
from yaml.nodes import MappingNode, ScalarNode, SequenceNode
log = getLogger("assemyaml.types")
# Assemyaml-specific tags
ASSEMYAML_NS = u"tag:assemyaml.nz,2017:"
GLOBAL_ASSEMBLY_TAG = ASSEMYAML_NS + u"Ass... | PypiClean |
/MUGAlyser-1.0.6a0.tar.gz/MUGAlyser-1.0.6a0/mugalyser/audit2.py | from datetime import datetime
from version import __version__, __schemaVersion__
from apikey import get_meetup_key
class AuditSingleton( object ):
class __Audit_Impl( object ):
name="audit"
def __init__(self, mdb ):
self._mdb = mdb
self._auditColl... | PypiClean |
/ImSwitchUC2-2.1.0.tar.gz/ImSwitchUC2-2.1.0/imswitch/imcontrol/controller/controllers/STORMReconController.py | import numpy as np
import time
import tifffile as tif
import os
from datetime import datetime
from imswitch.imcommon.framework import Signal, Thread, Worker, Mutex
from imswitch.imcontrol.view import guitools
from imswitch.imcommon.model import initLogger, dirtools
from ..basecontrollers import LiveUpdatedController
... | PypiClean |
/AutoTransform-1.1.1a8-py3-none-any.whl/autotransform/filter/script.py |
# @black_format
"""The implementation for script based Filters."""
from __future__ import annotations
import json
import subprocess
from tempfile import NamedTemporaryFile as TmpFile
from typing import ClassVar, List, Optional, Sequence, Set
from autotransform.event.handler import EventHandler
from autotransform.e... | PypiClean |
/Basic_Statistical_distributions-0.4.tar.gz/Basic_Statistical_distributions-0.4/Basic_Statistical_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 |
/LUBEAT-0.13.1-cp38-cp38-macosx_10_9_x86_64.whl/econml/solutions/causal_analysis/_causal_analysis.py | import warnings
from collections import OrderedDict, namedtuple
import joblib
import lightgbm as lgb
from numba.core.utils import erase_traceback
import numpy as np
from numpy.lib.function_base import iterable
import pandas as pd
from sklearn.base import BaseEstimator, TransformerMixin
from sklearn.compose import Colu... | PypiClean |
/DjangoDjangoAppCenter-0.0.11-py3-none-any.whl/DjangoAppCenter/simpleui/static/admin/simpleui-x/elementui/umd/locale/fa.js | (function (global, factory) {
if (typeof define === "function" && define.amd) {
define('element/locale/fa', ['module', 'exports'], factory);
} else if (typeof exports !== "undefined") {
factory(module, exports);
} else {
var mod = {
exports: {}
};
factory(... | PypiClean |
/Attest-0.5.3.tar.gz/Attest-0.5.3/attest/collectors.py | from __future__ import with_statement
import inspect
from contextlib import contextmanager, nested
import sys
from functools import wraps
from . import statistics
from .contexts import capture_output
from .reporters import (auto_reporter, get_reporter_by_name,
get_all_reporters, AbstractReport... | PypiClean |
/ORG.asm-1.0.3.tar.gz/ORG.asm-1.0.3/doc/sphinx/source/chroroplast.rst | In [111]: r = Index('../../samples/AA')
Loading global data...
Done.
Reading indexed sequence reads...
25553356 sequences read
Reading indexed pair data...
Done.
Loading reverse index...
Done.
Indexing reverse complement sequences ...
Fast indexing forward reads...
Fast indexing reverse reads...
Done.
I... | PypiClean |
/Electrum-CHI-3.3.8.tar.gz/Electrum-CHI-3.3.8/packages/aiohttp/client_ws.py |
import asyncio
from typing import Any, Optional
import async_timeout
from .client_exceptions import ClientError
from .client_reqrep import ClientResponse
from .helpers import call_later, set_result
from .http import (
WS_CLOSED_MESSAGE,
WS_CLOSING_MESSAGE,
WebSocketError,
WSMessage,
WSMsgType,
)
... | PypiClean |
/GooseSLURM-0.12.4.tar.gz/GooseSLURM-0.12.4/docs/cluster.rst |
########
Clusters
########
Basic cluster layout
--------------------
The basic layout of a cluster is shown in the image below. The cluster consists of a *head-node* and several *compute-nodes*. The head-node is the "computer" you log in to from your own PC. From the head-node, jobs are distributed to the compute-no... | PypiClean |
/CLAchievements-0.1.0.tar.gz/CLAchievements-0.1.0/doc/plugin.rst | .. _plugin:
Write your own achievement
==========================
Achievement without persistent data
-----------------------------------
Suppose you want to create an achievement ``Foo`` awarded when user successfully run a command on a file :file:`foo`. Let's write this achievement.
Meta-information
"""""""""""""... | PypiClean |
/GeminiMotorDrive-0.2.zip/GeminiMotorDrive-0.2/doc/source/GeminiMotorDrive.compilers.move_sequence.rst | GeminiMotorDrive.compilers.move_sequence
========================================
.. currentmodule:: GeminiMotorDrive.compilers.move_sequence
.. automodule:: GeminiMotorDrive.compilers.move_sequence
.. autosummary::
compile_sequence
convert_sequence_to_motor_units
get_sequence_time
move_time
compile_s... | PypiClean |
/FlowSom-0.1.1.tar.gz/FlowSom-0.1.1/flowsom/cluster.py | import numpy as np
from itertools import combinations
import bisect
class ConsensusCluster:
"""
Implementation of Consensus clustering, following the paper
https://link.springer.com/content/pdf/10.1023%2FA%3A1023949509487.pdf
Args:
* cluster -> clustering class
needs ... | PypiClean |
/Feni-1.23-py3-none-any.whl/feni/feni.py | from . import decorator
from . import filehandlers
from . import configuration
from . import articles
from . import preprocessor
from bottle import default_app, route, run, template, static_file, request, auth_basic
import jinja2
import os
import markdown
import logging
from string import Template
import difflib
def ... | PypiClean |
/Electrum-CHI-3.3.8.tar.gz/Electrum-CHI-3.3.8/packages/pip/_vendor/html5lib/treewalkers/base.py | from __future__ import absolute_import, division, unicode_literals
from xml.dom import Node
from ..constants import namespaces, voidElements, spaceCharacters
__all__ = ["DOCUMENT", "DOCTYPE", "TEXT", "ELEMENT", "COMMENT", "ENTITY", "UNKNOWN",
"TreeWalker", "NonRecursiveTreeWalker"]
DOCUMENT = Node.DOCUMEN... | PypiClean |
/LoginRadius-2.8.1.zip/LoginRadius-2.8.1/LoginRadius.py | from datetime import datetime
#Requires Python 2.6>
from collections import namedtuple
#Requires Python 2.7>
from importlib import import_module
import sys
__author__ = "LoginRadius"
__copyright__ = "Copyright 2016-2017, LoginRadius"
__email__ = "developers@loginradius.com"
__status__ = "Production"
__version__ = "2.... | PypiClean |
/NeodroidAgent-0.4.8-py36-none-any.whl/neodroidagent/agents/exclude/model_based/world_model_agent.py |
import numpy
from neodroidagent.sessions.single_agent.parallel import ParallelSession
from neodroidagent.training.procedures import Agent, episodic_training
from tqdm import tqdm
from neodroidagent.agents.torch_agents.model_free import DDPGAgent
from neodroidagent.entry_points import session_entry_point
__author__ ... | PypiClean |
/KratosMultilevelMonteCarloApplication-9.3.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/KratosMultiphysics/MultilevelMonteCarloApplication/XMC/xmc/classDefs_solverWrapper/KratosSolverWrapper.py | import math
import pickle
import warnings
import numpy as np
# Import Kratos
import KratosMultiphysics
from KratosMultiphysics.MultilevelMonteCarloApplication.adaptive_refinement_utilities import AdaptiveRefinement
from KratosMultiphysics.MultilevelMonteCarloApplication.tools import ParametersWrapper
# Import XMC
imp... | PypiClean |
/DoubleRatchet-1.0.3.tar.gz/DoubleRatchet-1.0.3/doubleratchet/recommended/crypto_provider_cryptography.py | from typing_extensions import assert_never
from cryptography.hazmat.backends import default_backend
from cryptography.hazmat.primitives import hashes
from cryptography.hazmat.primitives.ciphers import Cipher, algorithms, modes
from cryptography.hazmat.primitives.hmac import HMAC
from cryptography.hazmat.primitives.kdf... | PypiClean |
/Django_patch-2.2.19-py3-none-any.whl/django/contrib/admin/static/admin/js/collapse.js | (function() {
'use strict';
var closestElem = function(elem, tagName) {
if (elem.nodeName === tagName.toUpperCase()) {
return elem;
}
if (elem.parentNode.nodeName === 'BODY') {
return null;
}
return elem.parentNode && closestElem(elem.parentNode, t... | PypiClean |
/GeoNode-3.2.0-py3-none-any.whl/geonode/monitoring/frontend/monitoring/src/components/cels/geoserver-status/index.js | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import SelectField from 'material-ui/SelectField';
import MenuItem from 'material-ui/MenuItem';
import AverageCPU from '../../molecules/average-cpu';
import AverageMemory from '../../molecules/average-memory';
import s... | PypiClean |
/CulturelandPython-0.1.2.tar.gz/CulturelandPython-0.1.2/README.md | # CulturelandPython
- A Python library for unofficial Cultureland. This Python library can login, and redeem gift cards into your account. **Be advised, this project is UNOFFICIAL you are responsible for everything that might occur due to using this python library.**
- 컬쳐랜드 문화상품권 충전하는 파이썬 라이브러리입니다. 이 라이브러리는 로그인 및 문화상품권... | PypiClean |
/CleanAdminDjango-1.5.3.1.tar.gz/CleanAdminDjango-1.5.3.1/django/contrib/messages/storage/fallback.py | from django.contrib.messages.storage.base import BaseStorage
from django.contrib.messages.storage.cookie import CookieStorage
from django.contrib.messages.storage.session import SessionStorage
class FallbackStorage(BaseStorage):
"""
Tries to store all messages in the first backend, storing any unstored
mes... | PypiClean |
/DjangoDjangoAppCenter-0.0.11-py3-none-any.whl/DjangoAppCenter/simpleui/static/admin/simpleui-x/elementui/color-picker.js | module.exports =
/******/ (function (modules) { // webpackBootstrap
/******/ // The module cache
/******/
var installedModules = {};
/******/
/******/ // The require function
/******/
function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in ... | PypiClean |
/BayNet-0.3.0.tar.gz/BayNet-0.3.0/baynet/utils/visualisation.py | from pathlib import Path
import igraph
import graphviz
class GraphComparison(igraph.Graph):
"""Union of graph_a and graph_b, with edges assigned colours for plotting."""
# pylint: disable=not-an-iterable, unsupported-assignment-operation
def __init__(
self,
graph_a: igraph.Graph,
... | PypiClean |
/ASGIWebDAV-1.3.2.tar.gz/ASGIWebDAV-1.3.2/asgi_webdav/cli.py | from logging import getLogger
import click
try:
import uvicorn
except ImportError:
uvicorn = None
from asgi_webdav.constants import AppEntryParameters, DevMode
from asgi_webdav.server import convert_aep_to_uvicorn_kwargs
logger = getLogger(__name__)
def convert_click_kwargs_to_aep(kwargs: dict) -> AppEntr... | PypiClean |
/Cubane-1.0.11.tar.gz/Cubane-1.0.11/cubane/cms/templatetags/cms_tags.py | from __future__ import unicode_literals
from django.conf import settings
from django.http import HttpResponseRedirect
from django import template
from django.template import Context
from django.contrib import messages
from django.template.loader import TemplateDoesNotExist
from django.template.defaultfilters import slu... | PypiClean |
/FFC-2017.1.0.tar.gz/FFC-2017.1.0/ffc/quadrature/quadratureoptimization.py |
from ufl.utils.sorting import sorted_by_key
# FFC modules
from ffc.log import info, error
from ffc.cpp import format
from ffc.quadrature.symbolics import optimise_code, BASIS, IP, GEO
from ffc.quadrature.symbolics import create_product, create_sum, create_symbol, create_fraction
def optimize_integral_ir(ir, paramet... | PypiClean |
/GPyM-0.60b.tar.gz/GPyM-0.60b/alien/GridCoordinates.py | import os,sys
from numpy import arange, linspace, meshgrid, zeros, fromfile, concatenate
from numpy import loadtxt, argmax
from unique_counts import unique_counts
def conv180to360(lon):
''' convert between -180~180 and 0~360 '''
if hasattr(lon,'__iter__'): return whe... | PypiClean |
/Flask-Statics-Helper-1.0.0.tar.gz/Flask-Statics-Helper-1.0.0/flask_statics/static/angular/i18n/angular-locale_ru-kg.js | 'use strict';
angular.module("ngLocale", [], ["$provide", function($provide) {
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
function getDecimals(n) {
n = n + '';
var i = n.indexOf('.');
return (i == -1) ? 0 : n.length - i - 1;
}
function getVF(n, opt_pre... | PypiClean |
/Auptimizer-2.0.tar.gz/Auptimizer-2.0/src/aup/Proposer/hpbandster/examples/example_4_cluster.py | import logging
logging.basicConfig(level=logging.INFO)
import argparse
import pickle
import time
import hpbandster.core.nameserver as hpns
import hpbandster.core.result as hpres
from hpbandster.optimizers import BOHB as BOHB
from hpbandster.examples.commons import MyWorker
parser = argparse.ArgumentParser(descrip... | PypiClean |
/Newsroom-1.0-py3-none-any.whl/newsroom/static/dist/notifications_js.dd3d41a0820ce20f4ee8.js | webpackJsonp([10],{
/***/ 14:
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; desc... | PypiClean |
/NNGT-2.7.0-cp39-cp39-manylinux_2_17_i686.manylinux2014_i686.whl/nngt/core/nx_graph.py | from collections import OrderedDict, deque
from copy import deepcopy
from itertools import chain
import logging
import sys
import numpy as np
import scipy.sparse as ssp
import nngt
from nngt.lib import InvalidArgument, BWEIGHT, nonstring_container, is_integer
from nngt.lib.connect_tools import (_cleanup_edges, _set_d... | PypiClean |
/MyTact-1.0.1.tar.gz/MyTact-1.0.1/mytact/utils.py | from __future__ import print_function, unicode_literals
import six
import os
import sys
from pyfiglet import Figlet, figlet_format
import re
import json
from PyInquirer import style_from_dict, Token, prompt, print_json, Separator
from PyInquirer import Validator, ValidationError
from pprint import pprint
try:
i... | PypiClean |
/ISPIP-1.13.tar.gz/ISPIP-1.13/ispip/trainingsetstats.py | import pandas as pd
from sklearn.metrics import f1_score, matthews_corrcoef, precision_recall_curve, roc_curve, auc
from .compare_auc_delong_xu import delong_roc_test
def trainningsetstats():
# df = pd.read_csv("/Users/evanedelstein/Desktop/MetaDPIv2/metadpi/input/input_data_all.csv")
test_set = pd.read_csv(
... | PypiClean |
/EasyEquities-1.2.3.tar.gz/EasyEquities-1.2.3/README.md | # [EasyEquities](https://www.easyequities.co.za/) Python Package
This is a Python package for interacting with the [EasyEquities](https://www.easyequities.co.za/) trading platform. It provides a simple way to log in, check account balances, and retrieve your holdings.
## Requirements
- Python 3.x
- Selenium
- pandas
-... | PypiClean |
/NESTML-5.3.0-py3-none-any.whl/pynestml/utils/messages.py | from enum import Enum
from typing import Tuple
class MessageCode(Enum):
"""
A mapping between codes and the corresponding messages.
"""
START_PROCESSING_FILE = 0
START_SYMBOL_TABLE_BUILDING = 1
FUNCTION_CALL_TYPE_ERROR = 2
TYPE_NOT_DERIVABLE = 3
IMPLICIT_CAST = 4
CAST_NOT_POSSIBLE ... | PypiClean |
/MUSE_OS-1.0.2.tar.gz/MUSE_OS-1.0.2/src/muse/sectors/sector.py | from __future__ import annotations
from typing import (
Any,
Callable,
Iterator,
Mapping,
Optional,
Sequence,
Text,
Tuple,
Union,
cast,
)
import pandas as pd
import xarray as xr
from muse.agents import AbstractAgent
from muse.production import PRODUCTION_SIGNATURE
from muse.se... | PypiClean |
/NehorayRapid-0.0.1-py3-none-any.whl/RapidBase/import_all.py | import RapidBase.Basic_Import_Libs
from RapidBase.Basic_Import_Libs import *
from RapidBase.MISC_REPOS.pyloess_regression.pyloess.TorchLoess import *
############# My Scripts: #############
#(1). Utils:
import RapidBase.Utils
import RapidBase.Utils.Tensor_Manipulation.Pytorch_Numpy_Utils
# import RapidBase.Utils.Addi... | PypiClean |
/APASVO-0.0.6.tar.gz/APASVO-0.0.6/apasvo/gui/views/svwidget.py | from PySide import QtGui
from PySide import QtCore
import matplotlib
matplotlib.rcParams['backend'] = 'qt4agg'
matplotlib.rcParams['backend.qt4'] = 'PySide'
matplotlib.rcParams['patch.antialiased'] = False
matplotlib.rcParams['figure.dpi'] = 65
matplotlib.rcParams['agg.path.chunksize'] = 80000
from matplotlib.backends... | PypiClean |
/Office365_REST_with_timeout-0.1.1-py3-none-any.whl/office365/onenote/pages/page.py | from office365.onenote.entity_schema_object_model import OnenoteEntitySchemaObjectModel
from office365.onenote.notebooks.notebook import Notebook
from office365.onenote.pages.page_links import PageLinks
from office365.onenote.sections.section import OnenoteSection
from office365.runtime.client_result import ClientResul... | PypiClean |
/FiPy-3.4.4.tar.gz/FiPy-3.4.4/fipy/viewers/mayaviViewer/mayaviDaemon.py | from __future__ import division
from __future__ import unicode_literals
__docformat__ = 'restructuredtext'
# Standard imports.
import os
import signal
import sys
# Enthought library imports
try:
from mayavi.plugins.app import Mayavi
from mayavi.sources.vtk_file_reader import VTKFileReader
from pyface.time... | PypiClean |
/NeodroidVision-0.3.0-py36-none-any.whl/neodroidvision/mixed/architectures/self_attention_network/self_attention_modules/functions/subtraction2_zeropad.py |
__author__ = "heider"
__doc__ = r"""
Created on 26/01/2022
"""
import torch
from torch.autograd import Function
from torch.nn.modules.utils import _pair
from .self_attention_utilities import (
CUDA_NUM_THREADS,
Stream,
get_blocks_,
get_dtype_str,
kernel_loop,
load_kerne... | PypiClean |
/BloomSky-API-0.3.1.tar.gz/BloomSky-API-0.3.1/docs/index.rst | .. bloomsky_api documentation master file, created by
sphinx-quickstart on Tue Jul 9 22:26:36 2013.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
Welcome to BloomSky API's documentation!
======================================
Contents:
.. to... | PypiClean |
/Mathics_Django-6.0.0-py3-none-any.whl/mathics_django/web/media/js/mathjax/jax/output/HTML-CSS/fonts/Latin-Modern/fontdata.js | (function(r,f,E){var B="2.7.9";var c="LatinModernMathJax_Alphabets",x="LatinModernMathJax_Arrows",z="LatinModernMathJax_DoubleStruck",C="LatinModernMathJax_Fraktur",i="LatinModernMathJax_Latin",w="LatinModernMathJax_Main",o="LatinModernMathJax_Marks",y="LatinModernMathJax_Misc",F="LatinModernMathJax_Monospace",A="Latin... | PypiClean |
/Auxjad-1.0.0.tar.gz/Auxjad-1.0.0/auxjad/core/TenneySelector.py | import random
from typing import Any, Optional, Union
class TenneySelector():
r"""An implementation of the Dissonant Counterpoint Algorithm by James
Tenney. This class can be used to randomly select elements from an input
:obj:`list`, giving more weight to elements which have not been selected in
rece... | PypiClean |
/Aruna-Python-API-1.1.0rc6.tar.gz/Aruna-Python-API-1.1.0rc6/aruna/api/storage/services/v1/info_service_pb2_grpc.py | """Client and server classes corresponding to protobuf-defined services."""
import grpc
from aruna.api.storage.services.v1 import info_service_pb2 as aruna_dot_api_dot_storage_dot_services_dot_v1_dot_info__service__pb2
class ResourceInfoServiceStub(object):
"""ResourceInfoService
This is a generic service t... | PypiClean |
/123_object_detection-0.1.tar.gz/123_object_detection-0.1/object_detection/builders/preprocessor_builder.py | import tensorflow.compat.v1 as tf
from object_detection.core import preprocessor
from object_detection.protos import preprocessor_pb2
def _get_step_config_from_proto(preprocessor_step_config, step_name):
"""Returns the value of a field named step_name from proto.
Args:
preprocessor_step_config: A preprocess... | PypiClean |
/NlpToolkit-MorphologicalAnalysis-1.0.47.tar.gz/NlpToolkit-MorphologicalAnalysis-1.0.47/MorphologicalAnalysis/MorphologicalTag.py | from __future__ import annotations
from enum import Enum, auto
class MorphologicalTag(Enum):
"""
Noun : Alengir
"""
NOUN = auto()
"""
Adverb : Alelacele
"""
ADVERB = auto()
"""
Adjective : Alengirli
"""
ADJECTIVE = auto()
"""
Verb : Alıkoy
"""
VERB = au... | PypiClean |
/MaterialDjango-0.2.5.tar.gz/MaterialDjango-0.2.5/materialdjango/static/materialdjango/components/bower_components/intl-messageformat/src/compiler.js |
export default Compiler;
function Compiler(locales, formats, pluralFn) {
this.locales = locales;
this.formats = formats;
this.pluralFn = pluralFn;
}
Compiler.prototype.compile = function (ast) {
this.pluralStack = [];
this.currentPlural = null;
this.pluralNumberFormat = null;
... | PypiClean |
/MorningstarAutoTestingFramework-0.1.2.zip/MorningstarAutoTestingFramework-0.1.2/Src/UnConfirmCode/Demo2/main.py | import copy
import diff
from lxml import etree
# Heuristic function for the diffing algorithm.
def heuristic(d1, d2):
tags1 = [e.tag for e in d1.xpath("//*")]
tags2 = [e.tag for e in d2.xpath("//*")]
commontags = set(tags1).intersection(set(tags2))
return len(tags1) + len(tags2) - 2 * len(commontags)... | PypiClean |
/JSTools-1.0.tar.gz/JSTools-1.0/jstools/yuicompressor.py | from jstools import utils
from paver.easy import path, info
import tempfile
import subprocess
import os
def compress(input, args, cfg):
"""
writes input to a tempfile, then runs yuicompressor on the tempfile
"""
paths = list(find_paths(args, cfg))
f, tpath = tempfile.mkstemp(suffix=".js")
ope... | PypiClean |
/Gitissius-0.1.6.tar.gz/Gitissius-0.1.6/gitissius/database.py | import os.path
import json
import pickle
import common
import properties
class DbObject(object):
"""
Issue Object. The Mother of All
"""
def __init__(self, *args, **kwargs):
"""
Issue Initializer
"""
self._properties += [properties.Id(name='id')]
for item in se... | PypiClean |
/NucDiff-2.0.3.tar.gz/NucDiff-2.0.3/nucdiff/class_nucmer.py |
from __future__ import print_function
import sys
import subprocess
import os
import getopt
import multiprocessing
from copy import deepcopy
from . import general
from . import class_errors
from . import class_interv_coord
from . import ref_coord
class Nucmer:
def __init__(self, nuc_prefix, reference_fi... | PypiClean |
/Adhesion-0.91.0.tar.gz/Adhesion-0.91.0/helpers/LBFGS_scipy_vsNuMPI.py |
import time
import scipy.optimize
starttime=time.time()
import numpy as np
from ContactMechanics import FreeFFTElasticHalfSpace
from SurfaceTopography import make_sphere
from FFTEngine import PFFTEngine
from NuMPI.Optimization import LBFGS
from NuMPI.Tools.Reduction import Reduction
from Adhesion import VDW82smoo... | PypiClean |
/Caroline-presentation-0.2.4.tar.gz/Caroline-presentation-0.2.4/caroline/html_dist/js/mathjax/sre/mathmaps/nemeth/symbols/math_arrows.js | [{"locale":"nemeth"},{"category":"Sm","mappings":{"default":{"default":"⠀⠫⠪⠒⠒⠀"}},"key":"2190"},{"category":"Sm","mappings":{"default":{"default":"⠀⠫⠣⠒⠒⠕⠀"}},"key":"2191"},{"category":"Sm","mappings":{"default":{"default":"⠀⠫⠕⠀"}},"key":"2192"},{"category":"Sm","mappings":{"default":{"default":"⠀⠫⠩⠒⠒⠕⠀"}},"key":"2193"}... | PypiClean |
/COMPAS-1.17.5.tar.gz/COMPAS-1.17.5/src/compas_blender/artists/lineartist.py | from typing import Any
from typing import List
from typing import Optional
from typing import Union
import bpy
import compas_blender
from compas.artists import PrimitiveArtist
from compas.geometry import Line
from compas.colors import Color
from compas_blender.artists import BlenderArtist
class LineArtist(BlenderAr... | PypiClean |
/AyiinXd-0.0.8-cp311-cp311-macosx_10_9_universal2.whl/fipper/node_modules/https-proxy-agent/dist/agent.js | "use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { t... | PypiClean |
/DjangoDjangoAppCenter-0.0.11-py3-none-any.whl/DjangoAppCenter/simpleui/static/admin/simpleui-x/elementui/form.js | module.exports =
/******/ (function (modules) { // webpackBootstrap
/******/ // The module cache
/******/
var installedModules = {};
/******/
/******/ // The require function
/******/
function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in ... | PypiClean |
/GQCMS-0.0.4-py3-none-any.whl/build/lib/build/lib/build/lib/build/lib/build/lib/build/lib/build/lib/build/lib/gqcms/matrices/Hamiltonian.py | import numpy as np
from typing import List
from gqcms import Hubbard
from gqcms.matrices import Determinant
def createHamiltonian(H_core: np.ndarray, I: np.ndarray, determinants: list) -> np.ndarray:
"""
Create the hamiltonian matrix from a list of determinants
:param H_core: core Hamiltonian i.e one el... | PypiClean |
/JATA_Tools-0.1.9-py3-none-any.whl/UpdatedPixPlot/UpdatedPixPlot.py | from __future__ import division
import warnings;
warnings.filterwarnings('ignore')
from tensorflow.keras.preprocessing.image import save_img, img_to_array, array_to_img
from os.path import join, exists, dirname, realpath
from tensorflow.keras.applications.inception_v3 import preprocess_input
from tensorflow.keras.app... | PypiClean |
/Energy_Pinch-1.0.1-py3-none-any.whl/energy_pinch/module.py | from numpy import array, diff,sort,cumsum,concatenate,linspace,polyfit,polyval,RankWarning
import matplotlib.pyplot as plt
#from scipy.interpolate import interp1d
import warnings
#from scipy import interpolate
def pinch(streams,dt=10,table=False,composites=False,grand_composite=False):
Ts=[] # shifted temperatures
... | PypiClean |
/Hikka_Pyro-2.0.66-py3-none-any.whl/pyrogram/types/inline_mode/inline_query.py |
from typing import List, Match
import pyrogram
from pyrogram import raw
from pyrogram import types, enums
from ..object import Object
from ..update import Update
class InlineQuery(Object, Update):
"""An incoming inline query.
When the user sends an empty query, your bot could return some default or trendin... | PypiClean |
/JaxHankel-0.1.2.tar.gz/JaxHankel-0.1.2/README.md | # JaxHankel
A Hankel transform implementation in jax, based in scipy's implementation
## Examples
In cosmoogy, use to convert power spectrum into correlation functions and vice-versa,
```python
import matplotlib.pyplot as plt
import jax.numpy as jnp
from jax_fht.cosmology import FFTLog
def xi(r, A=1.0):
return ... | PypiClean |
/FragPELE-2.1.1.tar.gz/FragPELE-2.1.1/frag_pele/Helpers/clusterizer.py | import sys
import mdtraj as md
from AdaptivePELE.clustering import clustering, thresholdcalculator
from AdaptivePELE.spawning import spawning, densitycalculator
from AdaptivePELE.constants import constants
from AdaptivePELE.utilities import utilities
import pandas as pd
import glob
import os
def cluster_traject(resna... | PypiClean |
/BatzenCA-0.1.tar.gz/BatzenCA-0.1/batzenca/database/releases.py | import os
import datetime
import warnings
import codecs
import sqlalchemy
from sqlalchemy import Column, Integer, String, Date, Boolean, ForeignKey
from sqlalchemy.orm import relationship, backref, Session
from sqlalchemy.ext.associationproxy import association_proxy
from base import Base, EntryNotFound
from peers i... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.