id stringlengths 1 265 | text stringlengths 6 5.19M | dataset_id stringclasses 7
values |
|---|---|---|
/LASExplanation-0.0.1.tar.gz/LASExplanation-0.0.1/README.md | # LAS
This package is a brief wrap-up toolkit built based on 2 explanation packages: LIME and SHAP. The package contains 2 explainers: LIMEBAG and SHAP. It takes data and fitted models as input and returns explanations about feature importance ranks and/or weights. (etc. what attributes matter most within the predictio... | PypiClean |
/Mesa-Geo-0.5.0.tar.gz/Mesa-Geo-0.5.0/mesa_geo/visualization/templates/js/MapModule.js | const MapModule = function (view, zoom, map_width, map_height, tiles, scale_options) {
// Create the map tag
const map_tag = document.createElement("div");
map_tag.style.width = map_width + "px";
map_tag.style.height = map_height + "px";
map_tag.style.border = "1px dotted";
map_tag.id = "mapid"
... | PypiClean |
/Jalapeno-Lite-0.1.3.tar.gz/Jalapeno-Lite-0.1.3/Jalapeno/lib/siteMgr.py | import os
import pickle
from Jalapeno.lib.pardir import *
APP_DIR = no_dot(par_dir())
SITES_FOLDER = APP_DIR+os.sep+'Jalapeno_data'+os.sep+'Sites'
class Site():
def __init__(self,sitename):
self.sitename = sitename
@staticmethod
def site_create(sitename):
base_dir = SITES_FOLDER
sitefolder = os.path.join(... | PypiClean |
/Azimuth-2.0.tar.gz/Azimuth-2.0/azimuth/corrstats.py | from __future__ import division
__author__ = 'psinger'
import numpy as np
from scipy.stats import t, norm
from math import atanh, pow
from numpy import tanh
def rz_ci(r, n, conf_level = 0.95):
zr_se = pow(1/(n - 3), .5)
moe = norm.ppf(1 - (1 - conf_level)/float(2)) * zr_se
zu = atanh(r) + moe
zl = at... | PypiClean |
/AyiinXd-0.0.8-cp311-cp311-macosx_10_9_universal2.whl/fipper/storage/sqlite_storage.py |
import inspect
import sqlite3
import time
from threading import Lock
from typing import List, Tuple, Any
from fipper import raw
from .storage import Storage
from .. import utils
# language=SQLite
SCHEMA = """
CREATE TABLE sessions
(
dc_id INTEGER PRIMARY KEY,
api_id INTEGER,
test_mode INTEGER,
... | PypiClean |
/Friendly-Iter-0.0.1.tar.gz/Friendly-Iter-0.0.1/friendly_iter/iters.py | from multiprocessing import Process, Queue
from multiprocessing.queues import Empty
from .iterator_modifiers import flatten, skip, step, take
DEFAULT_NUMBER_OF_WORKERS = 4
class Iterator:
"""The friendly convenience wrapper over Python iterators."""
def __init__(self, iterable):
self.iter = iter(it... | PypiClean |
/fangnao-0.1.0.tar.gz/FangNao-0.1.0/docs/apis/core.rst | npbrain.core package
====================
.. currentmodule:: npbrain.core
.. automodule:: npbrain.core
.. contents::
:local:
:depth: 2
Numerical integration methods
-----------------------------
The most commonly used function is `integrate`:
.. autosummary::
:toctree: _autosummary
integrate
Me... | PypiClean |
/HiCAssembler-1.1.1.tar.gz/HiCAssembler-1.1.1/hicassembler/HiCAssembler.py | import numpy as np
import networkx as nx
import time
import os.path
import copy
import sys
import hicexplorer.HiCMatrix as HiCMatrix
import hicexplorer.hicMergeMatrixBins
import hicexplorer.hicFindTADs as hicFindTADs
from functools import wraps
from hicassembler.Scaffolds import Scaffolds
import logging
log = logging... | PypiClean |
/Django_Verify_Email-2.0.3-py3-none-any.whl/verify_email/app_configurations.py | from django.conf import settings
class GetFieldFromSettings:
"""
This class fetches the attributes that are defined in settings.py of your project by user OR Django itself.
self.default_configs : is a dict with keys as the names used in this app and values being a tuple of
attr... | PypiClean |
/AdjectorClient-1.0b1.tar.gz/AdjectorClient-1.0b1/adjector/model/entities.py | import logging
from datetime import datetime
from elixir import using_options, using_table_options, BLOB, Boolean, ColumnProperty, \
DateTime, Entity, EntityMeta, Field, Float, Integer, ManyToMany, ManyToOne, \
OneToMany, OneToOne, SmallInteger, String, UnicodeText
from genshi i... | PypiClean |
/NeodroidVision-0.3.0-py36-none-any.whl/neodroidvision/data/detection/coco/coco_evaluation.py |
__author__ = "Christian Heider Nielsen"
__doc__ = r"""
Created on 22/03/2020
"""
import copy
import json
import logging
from collections import defaultdict, namedtuple
from datetime import datetime
from enum import Enum
from pathlib import Path
from typing import Any, Dict, List, Sequence, Tupl... | PypiClean |
/KailWeb-0.5.tar.gz/KailWeb-0.5/README.md | Module and HTML Template Renderer Classes
This Python module contains two classes: Start and Renderer.
The Start class is used to start the default web browser and load a specified HTML file. The constructor takes an optional page parameter, which specifies the path to the HTML file to load. The open_page() method ope... | PypiClean |
/Flask-User-AWS-1.0.1.7.tar.gz/Flask-User-AWS-1.0.1.7/flask_user/email_adapters/sendgrid_email_adapter.py |
from __future__ import print_function
# Non-system imports are moved into the methods to make them an optional requirement
from flask_user import current_app, ConfigError
from flask_user.email_adapters import EmailAdapterInterface
SENDGRID_IMPORT_ERROR_MESSAGE = 'The sendgrid package is missing. Install sendgrid wi... | PypiClean |
/MirrorX-6.0.13-py3-none-any.whl/bot/helper/ext_utils/fs_utils.py | import sys
from bot import aria2, LOGGER, DOWNLOAD_DIR, ARIA_CHILD_PROC, MEGA_CHILD_PROC
import shutil
import os
import pathlib
import magic
import tarfile
from .exceptions import NotSupportedExtractionArchive
def clean_download(path: str):
if os.path.exists(path):
LOGGER.info(f"Cleaning download: {path}"... | PypiClean |
/Inukshuk-0.1.2.tar.gz/Inukshuk-0.1.2/inukshuk/nodes/expression.py | from ..lexer import (
TOKEN_ID_WHITESPACE,
TOKEN_ID_IDENTIFIER, TOKEN_ID_INTEGER, TOKEN_ID_FLOAT,
TOKEN_ID_STRING_SINGLE_QUOTES, TOKEN_ID_STRING_DOUBLE_QUOTES,
TOKEN_ID_SYMBOL)
from .base import (
ParserError, ParserNode, MultiChildrenParserNode)
from .const import (
StringNode, FloatNode, Integ... | PypiClean |
/Discohook-1.0.0.tar.gz/Discohook-1.0.0/discohook/client.py | import logging
import json
import time
import datetime
import requests
logger = logging.getLogger(__name__)
__all__ = ["Discohook", "DiscohookEmbed", "DiscohookException"]
class Discohook:
"""
Webhook for Discord
"""
def __init__(self, url, **kwargs):
"""
Init Discohook
- p... | PypiClean |
/Axelrod-4.13.0.tar.gz/Axelrod-4.13.0/axelrod/moran.py |
from collections import Counter
from typing import Callable, List, Optional, Set, Tuple
import matplotlib.pyplot as plt
import numpy as np
from axelrod import DEFAULT_TURNS, EvolvablePlayer, Game, Player
from axelrod.deterministic_cache import DeterministicCache
from axelrod.graph import Graph, complete_graph
from ax... | PypiClean |
/2Keys-0.5.1.tar.gz/2Keys-0.5.1/twokeys/add_keyboard/add_keyboard.py | import asyncio
from os import path, listdir, getcwd, system
import colorful
from ..util.constants import KEYBOARDS_PATH_BASE, KEYBOARD_EVENT_FORMAT, KEYBOARD_EVENT_SIZE, SCRIPTS_ROOT, MODULE_NAME
from ..util.logger import Logger
from ..util.config import load_config
from ..watcher import AsyncKeyboard as AsyncKeyboardW... | PypiClean |
/KoreaTrain-0.0.1.tar.gz/KoreaTrain-0.0.1/koreatrain/koreatrain.py | from SRT import *
from korail2 import *
from .tools import get_time
from .constants import Platform
from .dataclass import Parameter, SRParameter, KorailParameter
from .errors import KoreaTrainError, KoreaTrainLoginError, KoreaTrainNotLoginError
class KoreaTrain:
def __init__(
self,
platf... | PypiClean |
/FamcyDev-0.3.71-py3-none-any.whl/Famcy/node_modules/jquery/src/css/showHide.js | define( [
"../core",
"../data/var/dataPriv",
"../css/var/isHiddenWithinTree"
], function( jQuery, dataPriv, isHiddenWithinTree ) {
"use strict";
var defaultDisplayMap = {};
function getDefaultDisplay( elem ) {
var temp,
doc = elem.ownerDocument,
nodeName = elem.nodeName,
display = defaultDisplayMap[ nodeNa... | PypiClean |
/Eureqa-1.76.0.tar.gz/Eureqa-1.76.0/eureqa/analysis/components/modal.py |
import os.path
from eureqa.analysis.analysis_file import AnalysisFile
from eureqa.analysis.components.modal_link import ModalLink
from eureqa.analysis.components.base import _Component
class Modal(_Component):
"""Represents a popup window (modal) which can contain other components.
Example:
# create a m... | PypiClean |
/Flask_AdminLTE3-1.0.9-py3-none-any.whl/flask_adminlte3/static/plugins/moment/locale/de-ch.js |
;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined'
&& typeof require === 'function' ? factory(require('../moment')) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
... | PypiClean |
/Argonaut-0.3.4.tar.gz/Argonaut-0.3.4/argonaut/public/ckeditor/_source/plugins/smiley/plugin.js | /*
Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.add( 'smiley',
{
requires : [ 'dialog' ],
init : function( editor )
{
editor.config.smiley_path = editor.config.smiley_path || ( this.path + 'images/'... | PypiClean |
/Flask-Mix-0.0.2.tar.gz/Flask-Mix-0.0.2/flask_mix.py | import json
import os
from flask import current_app
class Mix:
"""
Mix extends a Flask app by adding a `mix` template helper for including
static files managed by Laravel Mix.
See https://laravel-mix.com for more information on Laravel Mix.
"""
def __init__(self, app=None):
self.ap... | PypiClean |
/ClueMapperSecure-0.6.3.tar.gz/ClueMapperSecure-0.6.3/src/clue/secure/htpasswd.py |
# Adapted from:
# http://svn.edgewall.org/repos/trac/trunk/contrib/htpasswd.py
import crypt
import os
import random
class HtpasswdFile:
"""A class for manipulating htpasswd files.
>>> import tempfile
>>> h, t = tempfile.mkstemp()
>>> passwd = HtpasswdFile(t, True)
>>> passwd.update('... | PypiClean |
/GloboNetworkAPI-0.9.6.tar.gz/GloboNetworkAPI-0.9.6/networkapiclient/ApiVipRequest.py | import urllib
from networkapiclient.ApiGenericClient import ApiGenericClient
from networkapiclient.utils import build_uri_with_ids
class ApiVipRequest(ApiGenericClient):
def __init__(self, networkapi_url, user, password, user_ldap=None, log_level='INFO'):
"""Class constructor receives parameters to conn... | PypiClean |
/MaterialDjango-0.2.5.tar.gz/MaterialDjango-0.2.5/bower_components/prism/components/prism-rest.js | Prism.languages.rest = {
'table': [
{
pattern: /(\s*)(?:\+[=-]+)+\+(?:\r?\n|\r)(?:\1(?:[+|].+)+[+|](?:\r?\n|\r))+\1(?:\+[=-]+)+\+/,
lookbehind: true,
inside: {
'punctuation': /\||(?:\+[=-]+)+\+/
}
},
{
pattern: /(\s*)(?:=+ +)+=+(?:(?:\r?\n|\r)\1.+)+(?:\r?\n|\r)\1(?:=+ +)+=+(?=(?:\r?\n|\r){2}|\... | PypiClean |
/Flask-Migrate-4.0.4.tar.gz/Flask-Migrate-4.0.4/src/flask_migrate/templates/aioflask-multidb/env.py | import asyncio
import logging
from logging.config import fileConfig
from sqlalchemy import MetaData
from flask import current_app
from alembic import context
USE_TWOPHASE = False
# this is the Alembic Config object, which provides
# access to the values within the .ini file in use.
config = context.config
# Interp... | PypiClean |
/FreeGS-0.8.0-py3-none-any.whl/freegs/_divgeo.py | import numpy as np
from freeqdsk._fileutils import ChunkOutput, write_1d, write_2d
def write(data, fh, label=None):
"""
Write a DivGeo file, given a dictionary of data
data - dictionary
nx, ny Number of points in R (x), Z (y)
rcentr Reference value of R
bcentr Vacu... | PypiClean |
/LARRY_dataset-0.0.2rc0-py3-none-any.whl/larry/_datasets/klein_lab_pp_recipe/_remove_cell_cycle_correlated_genes.py | from tqdm.notebook import tqdm
import numpy as np
import scipy
# -- import local dependencies: --------------------------------------------------
from ._cell_cycle_genes import cell_cycle_genes
from ..._utils import sparse_zscore
def remove_cell_cycle_correlated_genes(adata, min_corr=0.1, key_added = "use_genes"):
... | PypiClean |
/AyiinXd-0.0.8-cp311-cp311-macosx_10_9_universal2.whl/fipper/methods/mongo/manage/warn.py |
# ========================×========================
# Jangan Hapus Credit Ngentod
# ========================×========================
from typing import Optional, Tuple
import fipper
class Warn:
async def get_warn_action(self: "fipper.Client", chat_id: int) -> Tuple[Optional[str], bool]:
wa... | PypiClean |
/ACNLogger2-1.1.0-py3-none-any.whl/ACNLogger/__init__.py |
import logging
import time
import os
import sys
import inspect
from html import escape
class ACNLogger:
def check(self, message):
if self.ENV == "DEV":
return message
else:
newstr = message.replace("./", "")
... | PypiClean |
/Newcalls-0.0.1-cp37-cp37m-win_amd64.whl/newcalls/node_modules/@types/node/zlib.d.ts | declare module 'zlib' {
import * as stream from 'node:stream';
interface ZlibOptions {
/**
* @default constants.Z_NO_FLUSH
*/
flush?: number | undefined;
/**
* @default constants.Z_FINISH
*/
finishFlush?: number | undefined;
/**
... | PypiClean |
/CustomPipeline-0.0.3-py3-none-any.whl/rpcore/rpobject.py |
from __future__ import print_function
import sys
# Load and init colorama, used to color the output
from rplibs.colorama import init as init_colorama
from rplibs.colorama import Fore, Style
init_colorama()
class RPObject(object):
""" This is the base class for every object in the render pipeline. It
provi... | PypiClean |
/Flask-Scaffold-0.5.1.tar.gz/Flask-Scaffold-0.5.1/app/templates/static/node_modules/angular-grid/src/ts/virtualDom/vHtmlElement.ts |
module awk.vdom {
var _ = awk.grid.Utils;
export class VHtmlElement extends VElement {
private type: string;
private classes: string[];
private eventListeners: VEventListener[];
private attributes: {[key: string]: string};
private children: VElement[];
private... | PypiClean |
/FireWorks-2.0.3.tar.gz/FireWorks-2.0.3/fireworks/user_objects/firetasks/dataflow_tasks.py |
__author__ = "Ivan Kondov"
__email__ = "ivan.kondov@kit.edu"
__copyright__ = "Copyright 2016, Karlsruhe Institute of Technology"
import sys
from fireworks import Firework
from fireworks.core.firework import FiretaskBase, FWAction
from fireworks.utilities.fw_serializers import load_object
if sys.version_info[0] > 2:... | PypiClean |
/LaptopControlPanel-0.1.0.tar.gz/LaptopControlPanel-0.1.0/setup_data.py |
####################################################################################################
import os
####################################################################################################
def merge_include(src_lines, doc_path, included_rst_files=None):
if included_rst_files is None:
... | PypiClean |
/GaitAnalysisToolKit-0.2.0.tar.gz/GaitAnalysisToolKit-0.2.0/docs/gait.rst | ===========
Gait Module
===========
The :py:mod:`gaitanalysis.gait` module provides tools to process and analyze
with typical data collected during the measurement of human locomotion (gait).
In general, the three dimensional coordinates throughout time of a set of
markers which are attached to anatomical features on ... | PypiClean |
/11l-2021.3-py3-none-any.whl/python_to_11l/tokenizer.py | from typing import List, Tuple
Char = str
from enum import IntEnum
keywords = [ # https://docs.python.org/3/reference/lexical_analysis.html#keywords
'False', 'await', 'else', 'import', 'pass',
'None', 'break', 'except', 'in', 'raise',
'Tru... | PypiClean |
/CalimaPython-2.2.0-py3-none-any.whl/pycalima/cmdline.py |
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not ... | PypiClean |
/BuilT-0.0.4-py3-none-any.whl/built/registry.py | from __future__ import print_function
import logging
import torch
import torch.nn as nn
import torch.optim as optim
from torch.utils.data import DataLoader
from easydict import EasyDict as edict
from collections import defaultdict
from torchvision import datasets, transforms
from built.singleton_decorator import Sin... | PypiClean |
/HIRISEimgs-1.0.0.tar.gz/HIRISEimgs-1.0.0/HIRISE_api/hirise/utils.py | import requests
from bs4 import BeautifulSoup
def file_parameters_list():
"""
Function that returns file parameters list
"""
return [
"FILE_NAME",
"REQUIRED_STORAGE_BYTES",
"MISSION_PHASE_NAME",
"ORBIT_NUMBER",
]
def image_map_parameters_list():
"""
Functi... | PypiClean |
/CocoRPy27-1.4.1.zip/CocoRPy27-1.4.1/pimaker/piBuilder.py | from fileTools import *
class Rule( object ):
def __init__( self, target, dependancies, action, description=None ):
global TARGET, NEEDS
self._target = target
self._description = description
self._dependancies = { } # dependency to rule
self._action = None
... | PypiClean |
/Eve-SQLAlchemy-0.7.1.tar.gz/Eve-SQLAlchemy-0.7.1/eve_sqlalchemy/config/domainconfig.py | from __future__ import unicode_literals
from eve.utils import config
class DomainConfig(object):
"""Create an Eve `DOMAIN` dict out of :class:`ResourceConfig`s.
Upon rendering the `DOMAIN` dictionary, we will first collect all given
:class:`ResourceConfig` objects and pass them as `related_resource_conf... | PypiClean |
/FaceChannelV1/Model.py | import numpy
from keras.models import load_model, Model, Input
from keras.models import Input
from keras.layers import Dense, Dropout, Flatten, Lambda
from keras.layers.convolutional import Conv2D, MaxPooling2D, AveragePooling2D
from keras.layers.core import Activation
from keras.layers.normalization import BatchNor... | PypiClean |
/EpyNN-1.2.11.tar.gz/EpyNN-1.2.11/epynn/convolution/parameters.py | import math
# Related third party imports
import numpy as np
def convolution_compute_shapes(layer, A):
"""Compute forward shapes and dimensions for layer.
"""
X = A # Input of current layer
layer.fs['X'] = X.shape # (m, h, w, d)
layer.d['m'] = layer.fs['X'][0] # Number of samples (m)... | PypiClean |
/mynewspaper-4.0.tar.gz/mynewspaper-4.0/tools/migrate_db_from_v3_to_v4.py |
# CAUTION: this script migrates a MyNewspaper database from
# v3.x to v4.x format
# Copyright (C) 2013 Iñigo Serna
#
# 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
... | PypiClean |
/MagnetiCalc-1.15.2.tar.gz/MagnetiCalc-1.15.2/magneticalc/QtWidgets2/QLayouted.py |
# ISC License
#
# Copyright (c) 2020–2022, Paul Wilhelm, M. Sc. <anfrage@paulwilhelm.de>
#
# Permission to use, copy, modify, and/or distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
# TH... | PypiClean |
/NeurIPS22-CellSeg-0.0.1.tar.gz/NeurIPS22-CellSeg-0.0.1/README.md | # NeurIPS-CellSeg
A naive baseline and submission demo for the [microscopy image segmentation challenge in NeurIPS 2022](https://neurips22-cellseg.grand-challenge.org/)
## Requirements
```python
MONAI version: 0.9
Numpy version: 1.21.2
Pytorch version: 1.10.1
Nibabel version: 3.2.1
scikit-image version: 0.19.2
Pillow... | PypiClean |
/observations-0.1.4.tar.gz/observations-0.1.4/observations/r/beav2.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 beav2(path):
"""Body Temperature Series of Beaver 2
Reynolds (1994) describes a small part... | PypiClean |
/Flask-User-AWS-1.0.1.7.tar.gz/Flask-User-AWS-1.0.1.7/flask_user/password_manager.py |
from __future__ import print_function
from flask import current_app
from passlib.context import CryptContext
class PasswordManager(object):
"""Hash and verify user passwords using passlib """
def __init__(self, app):
"""
Create a passlib CryptContext.
Args:
password_has... | PypiClean |
/Lagranto-0.3.1.tar.gz/Lagranto-0.3.1/docs/tutorial_lagranto.rst | Tutorial
--------
The goal of this section is show how to calculate trajectories, analyzed them and plot them using the :ref:`lagranto-package`.
* `Calculation`_
* `Analyze`_
* `Plotting`_
* `Writing`_
Calculation
^^^^^^^^^^^
The :ref:`lagranto-package` provide a class, :class:`lagranto.LagrantoRun`, to wrap the La... | PypiClean |
/BIT_framework-0.0.2-py3-none-any.whl/BIT_DL/pytorch/modules/encoders/xlnet_encoder.py | import sys
from typing import Any, Dict, List, Optional, Tuple, Union
import torch
from torch import nn
from torch.nn import functional as F
from BIT_DL.pytorch.modules.encoders.encoder_base import EncoderBase
from BIT_DL.pytorch.modules.pretrained.xlnet import PretrainedXLNetMixin
from BIT_DL.pytorch.modules.pretrai... | PypiClean |
/CI_CloudConnector-0.60.zip/CI_CloudConnector-0.60/README.txt | Cloud Connector Python
-----------------------------
Created by Idop - 21.6.2016
reads Modbuc TCP \ EtherNetIP \ Simulation tags and send to web service using OAuth authentication
Runs on Python 2.7.9 and tested on raspberi Pi3 - debian Jesi OS
How to Operate:
------------------------------
After installing correctl... | PypiClean |
/564bff00ff_strawberry_graphql-0.168.2-py3-none-any.whl/strawberry/extensions/tracing/datadog.py | from __future__ import annotations
import hashlib
from inspect import isawaitable
from typing import TYPE_CHECKING, Any, Generator, Iterator, Optional
from ddtrace import tracer
from strawberry.extensions import SchemaExtension
from strawberry.extensions.tracing.utils import should_skip_tracing
from strawberry.utils... | PypiClean |
/Arachne-0.5.0.tar.gz/Arachne-0.5.0/CHANGES.md | Changelog
=========
Here you will find the full list of changes between each Arachne release
Version 0.5.0 (Nov 20th 2016)
---------------------
- Add support for Scrapy 1.0 ([#4](https://github.com/kirankoduru/arachne/issues/4))
Version 0.4.0 (Mar 17th 2016)
-----------------------------
- Renamed the endpoints `/... | PypiClean |
/Bis-Miner-3.11.1.tar.gz/Bis-Miner-3.11.0/Orange/widgets/data/owsql.py | import sys
from collections import OrderedDict
from AnyQt.QtWidgets import (
QLineEdit, QComboBox, QTextEdit, QMessageBox, QSizePolicy, QApplication)
from AnyQt.QtGui import QCursor
from AnyQt.QtCore import Qt, QTimer
from Orange.canvas import report
from Orange.data import Table
from Orange.data.sql.backend impo... | PypiClean |
/MTGA-0.9.5-py3-none-any.whl/mtga/set_data/eld.py | import sys
from mtga.models.card import Card
from mtga.models.card_set import Set
import inspect
AllThatGlitters = Card(name="all_that_glitters", pretty_name="All That Glitters", cost=['1', 'W'],
color_identity=['W'], card_type="Enchantment", sub_types="Aura",
abilities=[... | PypiClean |
/15five-django-ajax-selects-1.5.2.155.tar.gz/15five-django-ajax-selects-1.5.2.155/CHANGELOG.md | # Change Log
## [1.5.2](https://github.com/crucialfelix/django-ajax-selects/tree/1.5.2) (2016-10-19)
[Full Changelog](https://github.com/crucialfelix/django-ajax-selects/compare/1.5.1...1.5.2)
**Fixed bugs:**
- Occasionally: $.ui.autocomplete is undefined [\#188](https://github.com/crucialfelix/django-ajax-selects/i... | PypiClean |
/Flask-Multi-Redis-0.1.5.tar.gz/Flask-Multi-Redis-0.1.5/LICENSE.rst | GNU Affero General Public License
=================================
*Version 3, 19 November 2007*
*Copyright © 2007 Free Software Foundation, In* <http://www.fsf.org>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
--------
The GNU Affe... | PypiClean |
/GRImpulsiveWaves-0.3.2-py3-none-any.whl/grimpulsivewaves/plotting/dynamic.py | import numpy as np
import plotly
import plotly.graph_objects as go
from plotly.io import write_image
import random
class PlotlyDynamicPlotter:
def __init__(self, labels=["x", "y", "z"], title="", aspectratio=None, xrange=None, yrange=None, zrange=None, showSpikes=True, spikeColor="#000000", bgcolor="#fff", fontsiz... | PypiClean |
/Flask-Perm-0.2.8.tar.gz/Flask-Perm-0.2.8/flask_perm/app.py |
import logging
from functools import wraps
from flask import session, request
from sqlalchemy.exc import IntegrityError
from werkzeug.security import generate_password_hash
from werkzeug.security import check_password_hash
from .core import db, bcrypt
class Perm(object):
class Denied(Exception):
pass
... | PypiClean |
/Nuitka_fixed-1.1.2-cp310-cp310-win_amd64.whl/nuitka/build/inline_copy/lib/scons-2.3.2/SCons/Tool/msgmerge.py |
__revision__ = "src/engine/SCons/Tool/msgmerge.py 2014/07/05 09:42:21 garyo"
#############################################################################
def _update_or_init_po_files(target, source, env):
""" Action function for `POUpdate` builder """
import SCons.Action
from SCons.Tool.GettextCommon import _... | PypiClean |
/NeodroidVision-0.3.0-py36-none-any.whl/neodroidvision/data/classification/nlet/triplet_dataset.py |
__author__ = "Christian Heider Nielsen"
__doc__ = r"""
Created on 30/06/2020
"""
import random
from pathlib import Path
from typing import Tuple
import numpy
import torch
__all__ = ["TripletDataset"]
from draugr.torch_utilities import global_pin_memory
from torch.utils.data import DataLoader... | PypiClean |
/Jin-Py-1.0.31.tar.gz/Jin-Py-1.0.31/jin/composer.py | import os
import sys
pushCommandTemplate = ["rsync", "-vzaPr"]
clearCommandTemplate = ["rsync", "-vPr", "--delete", "--existing", "--ignore-existing"]
class Composer():
"""Composes an rsync command from system arguements and jinconfig file"""
def __init__(self, args, config):
self.args = args
... | PypiClean |
/Firefly_III_API_Client-2.0.5.0-py3-none-any.whl/firefly_iii_client/paths/v1_tags_tag/put.py | from dataclasses import dataclass
import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
from firefly_iii_client import api_client, exceptions
from datetime import date, datetime # noqa: F401
import decimal # noqa: F401
import functools # noqa: F401
import io # noqa: F401
import re... | PypiClean |
/Djblets-3.3.tar.gz/Djblets-3.3/djblets/htdocs/static/djblets/js/avatars/views/avatarSettingsFormView.js | "use strict";
(function () {
const [readyPromise, resolve] = Promise.withResolver();
/**
* A form for managing the settings of avatar services.
*
* This form lets you select the avatar service you wish to use, as well as
* configure the settings for that avatar service.
*/
Djblets.Avatars.Setting... | PypiClean |
/MIAvisual-0.0.6-py3-none-any.whl/matplotlib/type1font.py | import binascii
import enum
import itertools
import logging
import re
import struct
import numpy as np
from matplotlib.cbook import _format_approx
from . import _api
_log = logging.getLogger(__name__)
# token types
_TokenType = enum.Enum('_TokenType',
'whitespace name string delimiter number'... | PypiClean |
/NucDetect-0.18.3-py3-none-any.whl/core/roi/ROI.py | from __future__ import annotations
import hashlib
import math
import warnings
from typing import Union, Dict, List, Tuple, Iterable
import numpy as np
from numba.typed import List as numList
from core.roi.AreaAnalysis import get_bounding_box, get_center, get_surface, get_ellipse_radii, get_orientation_angle, \
g... | PypiClean |
/BlueWhale3_Network-1.4.2-cp38-cp38-macosx_10_9_x86_64.whl/orangecontrib/network/widgets/OWNxClustering.py | from Orange.data import Table
from Orange.data.util import get_unique_names
from Orange.widgets import gui, widget, settings
from Orange.widgets.widget import Input, Output
from orangecontrib.network import Network
from orangecontrib.network.network import community as cd
from orangewidget.settings import rename_settin... | PypiClean |
/AnalysisProjectDependencies-0.1.tar.gz/AnalysisProjectDependencies-0.1/bower_components/cytoscape/snippets/images.js | yourDiv.style.left = 0;
yourDiv.style.top = 0;
yourDiv.style.width = "100%";
yourDiv.style.height = "100%";
yourDiv.style.position = "absolute";
var cytoscape = require("cytoscape");
var cy = cytoscape({
container: yourDiv,
style: cytoscape.stylesheet()
.selector('node')
.style({
'height': 80,
... | PypiClean |
/Beer_Advocate_API-1.1.0.tar.gz/Beer_Advocate_API-1.1.0/BA/user.py | import requests
from BA.tools import reg_sandwich, is_date, ba_parser, ba_base
class User:
"""Stores and retrieves data from Beer Advocate for a particular user
Attributes
----------
username : str
The user's username
user_id : str
The user's user_id if the user's p... | PypiClean |
/Django-Pizza-16.10.1.tar.gz/Django-Pizza-16.10.1/pizza/kitchen_sink/static/ks/ckeditor/lang/en-ca.js | /*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.lang['en-ca']={"editor":"Rich Text Editor","editorPanel":"Rich Text Editor panel","common":{"editorHelp":"Press ALT 0 for help","browseServer":"Browse Server","url":... | PypiClean |
/OSG-Gratia-Viewer-0.1.tar.gz/OSG-Gratia-Viewer-0.1/src/gratia/web/__init__.py | from graphtool.base.xml_config import XmlConfig
from gratia.database.query_handler import displayName
from graphtool.web.security import DenyAll
from Cheetah.Template import Template
from xml.dom.minidom import parse
import cherrypy, os, urllib, urllib2, re, sys
# Helper functions
class Gratia(XmlConfig):
def __... | PypiClean |
/Flask-AdminLTE2-1.0.0.tar.gz/Flask-AdminLTE2-1.0.0/flask_adminlte2/static/plugins/morris/morris.js | (function() {
var $, Morris, minutesSpecHelper, secondsSpecHelper,
__slice = [].slice,
__bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; },
__hasProp = {}.hasOwnProperty,
__extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) chi... | PypiClean |
/NeuroUnits-0.1.2.tar.gz/NeuroUnits-0.1.2/src/neurounits/importers/neuroml/neuroml_xml_data.py |
# -------------------------------------------------------------------------------
# Copyright (c) 2012 Michael Hull. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# - Redistributions of sourc... | PypiClean |
/Nuitka_winsvc-1.7.10-cp310-cp310-win_amd64.whl/nuitka/build/inline_copy/tqdm/tqdm/gui.py | from __future__ import absolute_import, division
import re
from warnings import warn
# to inherit from the tqdm class
from .std import TqdmExperimentalWarning
from .std import tqdm as std_tqdm
# import compatibility functions and utilities
from .utils import _range
__author__ = {"github.com/": ["casperdcl", "lrq3000... | PypiClean |
/AtmosphericChemistry-0.1.0.tar.gz/AtmosphericChemistry-0.1.0/README.txt | =============================
Atmospheric Chemistry Package
=============================
This collection of python classes and routines facilitates the exploration,
construction, and conversion of (gas-phase) chemical mechanisms
(the system of differential equations that are solved in numerical models
of atmospheri... | PypiClean |
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/form/uploader/plugins/Flash.js | define("dojox/form/uploader/plugins/Flash",["dojo/dom-form","dojo/dom-style","dojo/dom-construct","dojo/dom-attr","dojo/_base/declare","dojo/_base/config","dojo/_base/connect","dojo/_base/lang","dojo/_base/array","dojox/form/uploader/plugins/HTML5","dojox/embed/Flash"],function(_1,_2,_3,_4,_5,_6,_7,_8,_9,_a,_b){
var _c... | PypiClean |
/GithubStat-1.2.tar.gz/GithubStat-1.2/README.md | # GithubStat
**A Simple Github User Statistics Meter based on Github-API.**
[](https://github.com/htr-tech)
[](#)
[](https://badge.fury.io/p... | PypiClean |
/Mathics-1.0.tar.gz/Mathics-1.0/mathics/web/media/js/mathjax/jax/output/SVG/fonts/TeX/Typewriter/Regular/BasicLatin.js | MathJax.Hub.Insert(MathJax.OutputJax.SVG.FONTDATA.FONTS.MathJax_Typewriter,{32:[0,0,250,0,0,""],33:[622,0,525,206,320,"206 565Q206 590 222 606T265 622Q287 621 303 606T319 565T314 392L308 216Q299 194 273 194H262Q247 194 241 195T228 200T217 216L211 392Q206 539 206 565ZM206 56Q206 83 223 99T265 115Q288 113 304 99T320 58Q3... | PypiClean |
/CoDocParser-0.2.49.tar.gz/CoDocParser-0.2.49/docparser/plugins/data_type_behavior.py | import re
import time
import traceback
from docparser.core.behavior_base import BehaviorBase
class DataTypeBehavior(BehaviorBase):
"""
数据类型转换处理行为
=================
配置说明:主节点下
"data_type_format": {
# table:对应表格模板中的column中的列名,
# data_type 对应执行转换方法
... | PypiClean |
/ApiMeter-1.2.8.tar.gz/ApiMeter-1.2.8/apimeter/locusts.py |
import io
import multiprocessing
import os
import sys
from locust.main import main
from apimeter.logger import color_print
from apimeter.testcase import TestcaseLoader
def parse_locustfile(file_path):
""" parse testcase file and return locustfile path.
if file_path is a Python file, assume it is a locus... | PypiClean |
/Miscoto-3.1.2.tar.gz/Miscoto-3.1.2/miscoto/query.py |
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License for more details.
# You should have received a copy of the GNU Lesser General Public Lic... | PypiClean |
/EulerPy-1.4.0.tar.gz/EulerPy-1.4.0/README.rst | **********************************
EulerPy |Travis| |PyPI| |Homebrew|
**********************************
EulerPy is a command line tool designed to streamline the process of solving
Project Euler problems using Python. The package focuses on two main tasks:
firstly, to create Python "template" files with a docstring c... | PypiClean |
/Appium-Python-Client-2.11.1.tar.gz/Appium-Python-Client-2.11.1/docs/_build/html/_static/language_data.js | var stopwords = ["a","and","are","as","at","be","but","by","for","if","in","into","is","it","near","no","not","of","on","or","such","that","the","their","then","there","these","they","this","to","was","will","with"];
/* Non-minified version is copied as a separate JS file, is available */
/**
* Porter Stemmer
*/
v... | PypiClean |
/MaterialDjango-0.2.5.tar.gz/MaterialDjango-0.2.5/materialdjango/static/materialdjango/components/bower_components/app-localize-behavior/.github/ISSUE_TEMPLATE.md | <!-- Instructions: https://github.com/PolymerElements/app-localize-behavior/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: Th... | PypiClean |
/CouchDB-1.2.tar.gz/CouchDB-1.2/couchdb/mapping.py | import copy
from calendar import timegm
from datetime import date, datetime, time
from decimal import Decimal
from time import strptime, struct_time
from couchdb.design import ViewDefinition
from couchdb import util
__all__ = ['Mapping', 'Document', 'Field', 'TextField', 'FloatField',
'IntegerField', 'Lon... | PypiClean |
/Captcha-Impulse-0.0.9.tar.gz/Captcha-Impulse-0.0.9/src/impulse/yolov5/utils/general.py | import contextlib
import glob
import logging
import math
import os
import platform
import random
import re
import shutil
import signal
import time
import urllib
from itertools import repeat
from multiprocessing.pool import ThreadPool
from pathlib import Path
from subprocess import check_output
from zipfile import ZipFi... | PypiClean |
/MetaGram-2.0.2.tar.gz/MetaGram-2.0.2/pyrogram/crypto/aes.py |
import logging
log = logging.getLogger(__name__)
try:
import tgcrypto
log.info("Using TgCrypto")
def ige256_encrypt(data: bytes, key: bytes, iv: bytes) -> bytes:
return tgcrypto.ige256_encrypt(data, key, iv)
def ige256_decrypt(data: bytes, key: bytes, iv: bytes) -> bytes:
return ... | PypiClean |
/JWaves-0.0.1.tar.gz/JWaves-0.0.1/src/S02_firstTestsB.py | import numpy as np
from scipy.io import loadmat
import matplotlib.pyplot as plt
import sys
sys.path.append('.')
from RPA import Lattice, System, Units
from MagneticFormFactor import formFactor
from scipy.ndimage import gaussian_filter
import time
start = time.time()
#########
lat=[10.088,11.943,3.42]#
... | PypiClean |
/GraphLab_Create-2.1-cp27-none-macosx_10_5_x86_64.macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.macosx_10_11_intel.macosx_10_11_x86_64.whl/graphlab/toolkits/feature_engineering/_numeric_imputer.py | import graphlab as _gl
# Toolkit utils.
from graphlab.toolkits.feature_engineering._feature_engineering import Transformer
from graphlab.toolkits._model import _get_default_options_wrapper
from graphlab.toolkits._internal_utils import _toolkit_repr_print
from graphlab.toolkits._internal_utils import _precomputed_field... | PypiClean |
/netket-3.9.2.tar.gz/netket-3.9.2/netket/graph/lattice.py |
from dataclasses import dataclass
from math import pi
from netket.utils.types import Array
from typing import Callable, Dict, Sequence, Tuple, Union, Optional, TYPE_CHECKING
import warnings
import numpy as _np
from netket.utils.deprecation import deprecated as _deprecated
from netket.utils import HashableArray
from... | PypiClean |
/BIT_Online_Code_Helper-1.0.4-py3-none-any.whl/bit-online-code-helper/bitonline/LocalTestCodeManager.py | import subprocess
import os
from log.LogManager import *
from tqdm import tqdm
class _LocalTestCodeManager:
def __remove_existed_exe(self):
if os.path.exists('a.exe'):
os.remove('a.exe')
def __compile_source_file(self, source_file_path):
self.__remove_existed_exe()
if not... | PypiClean |
/Faker-19.3.1.tar.gz/Faker-19.3.1/faker/providers/address/fr_FR/__init__.py | from typing import Tuple
from .. import Provider as AddressProvider
class Provider(AddressProvider):
city_suffixes = (
"Ville",
"Bourg",
"-les-Bains",
"-sur-Mer",
"-la-Forêt",
"boeuf",
"nec",
"dan",
)
city_prefixes = ("Saint", "Sainte")
... | PypiClean |
/MedPy-0.4.0.tar.gz/MedPy-0.4.0/bin/medpy_graphcut_voxel.py | # build-in modules
from argparse import RawTextHelpFormatter
import argparse
import logging
import os
# third-party modules
import scipy
# path changes
# own modules
from medpy.core import ArgumentError, Logger
from medpy.io import load, save, header
from medpy import graphcut
from medpy.graphcut.wrapper import spli... | PypiClean |
/B9gemyaeix-4.14.1.tar.gz/B9gemyaeix-4.14.1/weblate/trans/views/settings.py |
from django.conf import settings
from django.contrib.auth.decorators import login_required
from django.core.exceptions import ObjectDoesNotExist, PermissionDenied, ValidationError
from django.http import FileResponse, Http404, JsonResponse
from django.shortcuts import get_object_or_404, redirect
from django.utils.deco... | PypiClean |
/DocOnce-1.5.15-py3-none-any.whl/doconce/plaintext.py | from __future__ import absolute_import
from builtins import str
from builtins import range
from past.builtins import basestring
import sys
import regex as re
from .common import default_movie, plain_exercise, bibliography, \
cite_with_multiple_args2multiple_cites, fix_ref_section_chapter
from .misc import option
... | PypiClean |
/CNFgen-0.9.2-py3-none-any.whl/cnfgen/families/cliquecoloring.py | from itertools import combinations
from cnfgen.formula.cnf import CNF
from cnfgen.localtypes import non_negative_int
def CliqueColoring(n, k, c, formula_class=CNF):
r"""Clique-coloring CNF formula
The formula claims that a graph :math:`G` with :math:`n` vertices
simultaneously contains a clique of size :m... | PypiClean |
/Cubane-1.0.11.tar.gz/Cubane-1.0.11/cubane/ishop/static/cubane/ishop/js/default.js | (function(){
"use strict";
cubane.require('cubane.dialog');
if ( window['ishop'] === undefined ) window.ishop = {};
/*******************************************************************************
* Calculate and round price and convert from net to gross based on current vat
* rate.
***************************... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.