id stringlengths 1 265 | text stringlengths 6 5.19M | dataset_id stringclasses 7
values |
|---|---|---|
/Mesa_Adapted-0.8.7.3-py3-none-any.whl/mesa_adapted/visualization/templates/js/InteractionHandler.js | var InteractionHandler = function(width, height, gridWidth, gridHeight, ctx){
// Find cell size:
const cellWidth = Math.floor(width / gridWidth);
const cellHeight = Math.floor(height / gridHeight);
const lineHeight = 10;
// list of standard rendering features to ignore (and key-values in the portrayal will ... | PypiClean |
/Kloudio-1.0.0.tar.gz/Kloudio-1.0.0/kloudio/api/license_api.py | from __future__ import absolute_import
import re # noqa: F401
# python 2 and python 3 compatibility library
import six
from kloudio.api_client import ApiClient
from kloudio.exceptions import ( # noqa: F401
ApiTypeError,
ApiValueError
)
class LicenseApi(object):
def __init__(self, api_client=None):
... | PypiClean |
/FamcyDev-0.3.71-py3-none-any.whl/Famcy/bower_components/bootstrap/js/src/offcanvas.js | import {
defineJQueryPlugin,
getElementFromSelector,
isDisabled,
isVisible,
typeCheckConfig
} from './util/index'
import ScrollBarHelper from './util/scrollbar'
import EventHandler from './dom/event-handler'
import BaseComponent from './base-component'
import SelectorEngine from './dom/selector-engine'
import... | PypiClean |
/JobHunter-0.0.2.tar.gz/JobHunter-0.0.2/libname/scripts/spreadsheets/question.py | import os, json, requests
from typing import List, Dict, Callable, Tuple
from dotenv import load_dotenv
from core.googlesheet import BaseSpreadsheet
class QuestionsSpreadsheet(BaseSpreadsheet):
def __init__(self):
super(QuestionsSpreadsheet, self).__init__()
self.hide_column(3) # Type
sel... | PypiClean |
/OPi.GPIOtest-0.5.0.tar.gz/OPi.GPIOtest-0.5.0/OPi/sysfs.py |
from contextlib import contextmanager
from OPi.constants import HIGH, LOW, IN, OUT, \
NONE, RISING, FALLING, BOTH
import os
import time
# Allow to wait up to 1 second for the file have the correct permissions
WAIT_PERMISSION_TIMEOUT = 1.
def await_permissions(path):
start_time = time.time()
def timed_... | PypiClean |
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/form/README | -------------------------------------------------------------------------------
dojox.form Collection
-------------------------------------------------------------------------------
Version 1.0
Release date: 02/26/2008
-------------------------------------------------------------------------------
Project state:
experi... | PypiClean |
/MazgaDB-1.1.2.tar.gz/MazgaDB-1.1.2/README.md | # Documentation MazgaDB
Library made for testing.
## Import
You can use 2 types of imports: ```from mazga_db import MazgaDB``` or ```import mazga_db.MazgaDB```
## Class
| Field | Type | Description |
|-------|----------|---------|
| db | ```str``` | database name |
| data_classes | ```dict``` |... | PypiClean |
/BifacialSimu-1.2.0-py3-none-any.whl/BifacialSimu_src/Vendor/bifacial_radiance/load.py | ''' DEPRECATED - doesn't work with python3
def load_inputvariablesfile(inputfile):
"""
Loads inputfile which must be in the bifacial_radiance directory,
and must be a ``.py`` file with all the variables, and organizes the variables
into dictionaries that it returns
Parameters
----------
inp... | PypiClean |
/MathBench-1.1.0.tar.gz/MathBench-1.1.0/doc/doc-install.rst | ===========
MathBench
===========
Installation
============
.. _home: ./index.html
.. image:: artwork/mathbench-big.png
:alt: mathbench-icon
:class: logo-img
.. |mathbench| replace:: **MathBench**
.. |mathbench-icon| image:: artwork/mathbench.png
.. |SourceForge.net| image:: http://sflogo.sourceforge.net/s... | PypiClean |
/Auptimizer-2.0.tar.gz/Auptimizer-2.0/src/aup/compression/torch/_graph_utils.py |
import logging
import queue
import re
from collections import defaultdict
import torch
from torch.utils.tensorboard._pytorch_graph import NodePy, NodePyIO, NodePyOP, GraphPy
CLASSTYPE_KIND = 'ClassType'
GETATTR_KIND = 'prim::GetAttr'
CAT_KIND = 'aten::cat'
LIST_CONSTRUCT_KIND = 'prim::ListConstruct'
LIST_UNPACK_KIND ... | PypiClean |
/LabPype-0.7.8.tar.gz/LabPype-0.7.8/labpype/main/images.py | from wx.lib.embeddedimage import PyEmbeddedImage
# ----------------------------------------------------------------------
LabPype = PyEmbeddedImage(
b'iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAAAsTAAALEwEAmpwY'
b'AAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAALOSURBVHja'
b'xJdL... | PypiClean |
/Docassemble-Pattern-3.6.7.tar.gz/Docassemble-Pattern-3.6.7/docassemble_pattern/text/it/__init__.py |
####################################################################################################
# Italian linguistical tools using fast regular expressions.
from __future__ import unicode_literals
from __future__ import division
from builtins import str, bytes, dict, int
from builtins import map, zip, filter
fr... | PypiClean |
/CHASM_NuSpacesim-1.0.0.tar.gz/CHASM_NuSpacesim-1.0.0/src/CHASM/cherenkov_photon_array.py | from importlib.resources import as_file, files
import numpy as np
from scipy.interpolate import RegularGridInterpolator
# class CherenkovPhotonArray:
# def __init__(self,npzfile):
# """Create a CherenkovPhotonArray object from a npz file. The
# npz file should contain the Cherenkov angular distrib... | PypiClean |
/EnergyCapSdk-8.2304.4743.tar.gz/EnergyCapSdk-8.2304.4743/energycap/sdk/models/accrual_processor_request_py3.py |
from msrest.serialization import Model
class AccrualProcessorRequest(Model):
"""AccrualProcessorRequest.
All required parameters must be populated in order to send to Azure.
:param batch_code: Required. The batch to create for accrual bills <span
class='property-internal'>Required</span> <span
... | PypiClean |
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojo/date.js | define("dojo/date",["./_base/kernel","./_base/lang"],function(_1,_2){
_2.getObject("date",true,_1);
_1.date.getDaysInMonth=function(_3){
var _4=_3.getMonth();
var _5=[31,28,31,30,31,30,31,31,30,31,30,31];
if(_4==1&&_1.date.isLeapYear(_3)){
return 29;
}
return _5[_4];
};
_1.date.isLeapYear=function(_6){
var _7=_6.getFul... | PypiClean |
/Misago-0.36.1.tar.gz/Misago-0.36.1/misago/static/misago/admin/momentjs/be.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 |
/DP3-6.0.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/__init__.py |
from . import parameterset
from . import pydp3
import numpy as np
"""
DP3 Python interface
This module provides the Python interface to DP3 functionality.
The purpose of this module is two fold
1) Make DP3 functionality available from Python
2) Allow to implement DP3 steps in Python, to be used
... | PypiClean |
/Explainer/AMLBID_Dashboard.py |
__all__ = ['ExplainerTabsLayout',
'ExplainerPageLayout',
'ExplainerDashboard',
'ExplainerHub',
'JupyterExplainerDashboard',
'ExplainerTab',
'JupyterExplainerTab',
'InlineExplainer']
import sys
import re
import json
import inspect
imp... | PypiClean |
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/data/AtomReadStore.js | define("dojox/data/AtomReadStore",["dojo","dojox","dojo/data/util/filter","dojo/data/util/simpleFetch","dojo/date/stamp"],function(_1,_2){
_1.experimental("dojox.data.AtomReadStore");
_1.declare("dojox.data.AtomReadStore",null,{constructor:function(_3){
if(_3){
this.url=_3.url;
this.rewriteUrl=_3.rewriteUrl;
this.label... | PypiClean |
/NDBD_distributions-0.1.tar.gz/NDBD_distributions-0.1/NDBD_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 |
/Flask_Admin_Subview-0.1.2-py3-none-any.whl/flask_admin_subview/subview.py | import os
from flask import Blueprint, url_for
from markupsafe import Markup
class Subview(object):
EXT_NAME = "subview"
JINJA_NAME = "Subview"
JS_FILE_NAME = "subview.js"
CSS_FILE_NAME = "subview.css"
DEFAULT_STATIC_URL_PREFIX = "/static/admin/subview"
DEFAULT_JS_PATH = "{}/js/{}".format(DEF... | PypiClean |
/django-chuck-0.2.3.tar.gz/django-chuck/doc/index.rst | .. Django Chuck documentation master file, created by
sphinx-quickstart on Mon May 14 11:50:54 2012.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
Welcome to Django Chuck's documentation!
========================================
Django Chuck i... | PypiClean |
/KeralaPyApiV2-2.0.2020.tar.gz/KeralaPyApiV2-2.0.2020/pyrogram/connection/transport/tcp/tcp.py |
import asyncio
import ipaddress
import logging
import socket
try:
import socks
except ImportError as e:
e.msg = (
"PySocks is missing and Pyrogram can't run without. "
"Please install it using \"pip3 install pysocks\"."
)
raise e
log = logging.getLogger(__name__)
class TCP:
TIM... | PypiClean |
/NeuroTools-0.3.1.tar.gz/NeuroTools-0.3.1/src/optimize/optimizers.py | __author__="Michael Schmuker"
__date__ ="$23.12.2008 11:17:16$"
from NeuroTools.optimize import parameter_search
from NeuroTools.parameters import ParameterSpace
class GridSearcher():
"""
Simple grid search algorithm. Calls the error function func with all
parameters in grid. Returns the first parameter c... | PypiClean |
/Canto-0.9.8.tar.gz/Canto-0.9.8/canto_next/format.py |
#Canto - RSS reader backend
# Copyright (C) 2016 Jack Miller <jack@codezen.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
import logging
log = logging.getLogger("FO... | PypiClean |
/AyiinXd-0.0.8-cp311-cp311-macosx_10_9_universal2.whl/fipper/node_modules/@types/node/child_process.d.ts | declare module 'child_process' {
import { ObjectEncodingOptions } from 'node:fs';
import { EventEmitter, Abortable } from 'node:events';
import * as net from 'node:net';
import { Writable, Readable, Stream, Pipe } from 'node:stream';
import { URL } from 'node:url';
type Serializable = string | o... | PypiClean |
/AC-Flask-HipChat-0.2.12.tar.gz/AC-Flask-HipChat-0.2.12/ac_flask/hipchat/installable.py | import json
import logging
from ac_flask.hipchat.events import events
from ac_flask.hipchat.db import mongo, redis
from .tenant import Tenant
from flask import request
import requests
_log = logging.getLogger(__name__)
def _invalid_install(msg):
_log.error("Installation failed: %s" % msg)
return msg, 400
... | PypiClean |
/Flask-MDEditor-0.1.4.tar.gz/Flask-MDEditor-0.1.4/flask_mdeditor/static/mdeditor/js/lib/marked.min.js | (function(){var block={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:noop,hr:/^( *[-*_]){3,} *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *#* *(?:\n+|$)/,nptable:noop,lheading:/^([^\n]+)\n *(=|-){2,} *(?:\n+|$)/,blockquote:/^( *>[^\n]+(\n(?!def)[^\n]+)*\n*)+/,list:/^( *)(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n... | PypiClean |
/Booktype-1.5.tar.gz/Booktype-1.5/lib/booki/site_static/js/tiny_mce/classes/util/Quirks.js | (function(tinymce) {
var VK = tinymce.VK, BACKSPACE = VK.BACKSPACE, DELETE = VK.DELETE;
/**
* Fixes a WebKit bug when deleting contents using backspace or delete key.
* WebKit will produce a span element if you delete across two block elements.
*
* Example:
* <h1>a</h1><p>|b</p>
*
* Will produce this o... | PypiClean |
/Flask-Goat-0.2.1.tar.gz/Flask-Goat-0.2.1/flask_goat/__init__.py | import os
import requests
import redis
import simplejson as json
from functools import wraps
from uuid import uuid4
from flask import current_app, request, abort, session,\
redirect, url_for, render_template
try:
from urllib import urlencode
from urlparse import urlparse
except:
from urllib.parse impor... | PypiClean |
/BlueWhale3-3.31.3.tar.gz/BlueWhale3-3.31.3/Orange/widgets/utils/__init__.py | import enum
import inspect
import sys
from collections import deque
from typing import (
TypeVar, Callable, Any, Iterable, Optional, Hashable, Type, Union
)
from xml.sax.saxutils import escape
from AnyQt.QtCore import QObject
from Orange.data.variable import TimeVariable
from Orange.util import deepgetattr
def ... | PypiClean |
/IOT3ApiClient-1.0.0.tar.gz/IOT3ApiClient-1.0.0/IOT3/__init__.py | import requests
import json
class Thing():
def __init__(self,username, thing ,dev_secret,thing_secret):
self.user = username
self.thing = thing
self.dev_secret = dev_secret
self.thing_secret = thing_secret
def __setitem__(self, key, item):
requests.post(... | PypiClean |
/DocOnce-1.5.15-py3-none-any.whl/doconce/ipynb.py | from __future__ import absolute_import
from builtins import str
from builtins import range
import hashlib
import sys, shutil, os
import regex as re
import shlex
import hashlib
from .common import default_movie, plain_exercise, table_analysis, indent_lines, \
bibliography, fix_ref_section_chapter, cite_with_multiple... | PypiClean |
/Argonaut-0.3.4.tar.gz/Argonaut-0.3.4/argonaut/public/ckeditor/lang/uk.js | /*
Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.lang.uk={dir:'ltr',editorTitle:'Rich text editor, %1, press ALT 0 for help.',toolbar:'Toolbar',editor:'Rich Text Editor',source:'Джерело',newPage:'Нова сторінка',sa... | PypiClean |
/Collectfast-2.2.0.tar.gz/Collectfast-2.2.0/README.md | # Collectfast
A faster collectstatic command.
[](https://github.com/antonagestam/collectfast/actions?query=workflow%3A%22Test+Suite%22+branch%3Amaster)
[
{
function init(plot) // this is the "body" of the plugin
{
var canvas = null;
var target = null;
var maxRadius = null;
var centerLeft = null;
var centerTop = null;
var total = 0;
var redraw = true;
var redrawAttempts = 10;
var shrink = 0.95;
var legendWidth = 0;
var processed = f... | PypiClean |
/NinjaTools-0.68-py3-none-any.whl/ninja_tools/multiprocessing_node.py | import multiprocessing.managers as managers
from contextlib import contextmanager
from multiprocessing import Manager
class Node:
def __init__(self, namespace):
"""
Initialize a Node object with a shared namespace.
:param namespace: A shared namespace object.
"""
self.name... | PypiClean |
/Allegra-0.63.zip/Allegra-0.63/lib/loginfo.py |
"http://laurentszyster.be/blog/loginfo/"
import sys
from allegra import netstring, prompt
def _write_maybe_flush (file):
assert hasattr (file, 'write')
if hasattr (file, 'flush'):
def write (data):
file.write (data)
file.flush ()
... | PypiClean |
/Editra-0.7.20.tar.gz/Editra-0.7.20/src/ed_cmdbar.py | __author__ = "Cody Precord <cprecord@editra.org>"
__svnid__ = "$Id: ed_cmdbar.py 70229 2012-01-01 01:27:10Z CJP $"
__revision__ = "$Revision: 70229 $"
#--------------------------------------------------------------------------#
# Imports
import os
import sys
import re
import wx
# Local Imports
import util
import ed_g... | PypiClean |
/BIA_OBS-1.0.3.tar.gz/BIA_OBS-1.0.3/BIA/static/dist/node_modules/yaml/browser/dist/PlainValue-b8036b75.js | function _typeof(obj) {
"@babel/helpers - typeof";
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
_typeof = function (obj) {
return typeof obj;
};
} else {
_typeof = function (obj) {
return obj && typeof Symbol === "function" && obj.constructor === Symbol && ob... | PypiClean |
/AyiinXd-0.0.8-cp311-cp311-macosx_10_9_universal2.whl/fipper/node_modules/@types/node/stream/promises.d.ts | declare module 'stream/promises' {
import { FinishedOptions, PipelineSource, PipelineTransform, PipelineDestination, PipelinePromise, PipelineOptions } from 'node:stream';
function finished(stream: NodeJS.ReadableStream | NodeJS.WritableStream | NodeJS.ReadWriteStream, options?: FinishedOptions): Promise<void>;... | PypiClean |
/GeoNode-3.2.0-py3-none-any.whl/geonode/static/lib/js/plugins/visualblocks/plugin.js | (function () {
'use strict';
var Cell = function (initial) {
var value = initial;
var get = function () {
return value;
};
var set = function (v) {
value = v;
};
return {
get: get,
set: set
};
};
var global = tinymce.util.Tools.... | PypiClean |
/FamcyDev-0.3.71-py3-none-any.whl/Famcy/bower_components/bootstrap-fileinput/js/locales/uk.js | (function ($) {
"use strict";
$.fn.fileinputLocales['uk'] = {
fileSingle: 'файл',
filePlural: 'файли',
browseLabel: 'Обрати …',
removeLabel: 'Видалити',
removeTitle: 'Видалити вибрані файли',
cancelLabel: 'Скасувати',
cancelTitle: 'Скасувати поточн... | PypiClean |
/InvestOpenDataTools-1.0.2.tar.gz/InvestOpenDataTools-1.0.2/opendatatools/fx/fx_interface.py |
from .chinamoney_agent import ChinaMoneyAgent
from opendatatools.common import date_convert, get_current_day, get_target_date, get_target_date2
import pandas as pd
chinamoney_agent = ChinaMoneyAgent()
def format_date_param(start_date, end_date):
if end_date is None:
end_date = get_current_day()
if s... | PypiClean |
/NlvWxPython-4.2.0-cp37-cp37m-win_amd64.whl/wx/lib/agw/artmanager.py | import wx
import random
from six import BytesIO
from .fmresources import *
# ---------------------------------------------------------------------------- #
# Class DCSaver
# ---------------------------------------------------------------------------- #
_ = wx.GetTranslation
_libimported = None
if wx.Platform == "... | PypiClean |
/MdNotes_ROPC-1.0-py3-none-any.whl/md_notes_ropc/http/http_request.py | from md_notes_ropc.api_helper import APIHelper
class HttpRequest(object):
"""Information about an HTTP Request including its method, headers,
parameters, URL, and Basic Auth details
Attributes:
http_method (HttpMethodEnum): The HTTP Method that this request should
perform when ca... | PypiClean |
/BaseExtensions-1.2.6.tar.gz/BaseExtensions-1.2.6/.github/PULL_REQUEST_TEMPLATE.md | <!-- WAIT! Before you submit this PR, make sure you're building on and targeting the right branch!
- If this is an enhancement or contains API changes or breaking changes, target master.
- If the issue you're working on has a milestone, target the corresponding branch.
- If this is a bug fix, target the ... | PypiClean |
/mcmc_au-1.0.0-py3-none-any.whl/MCMC_AU/Sampling.py | from .McmcFile import McmcFile
from .McmcException import SamplingException
import json, random
class Sampling(McmcFile):
"""
La Classe Sampling réalise un échantillonage sur self._data, elle compte pour chaque lettre entre [a, z] combien de fois elle est suivie par chaque lettre dans [a, z] d'apres le co... | PypiClean |
/CCC-2.0.1.tar.gz/CCC-2.0.1/ccc/static/social_media/js/social/facebook.js | const SMMFacebook = {
data: {
facebook: {
users: [],
groups: [],
pages: [],
},
all_facebook_accounts: []
},
methods: {
getConnectedFacebookAccounts () {
navBarInstance.isLoading = true
return new Promise((resolve, re... | PypiClean |
/Flask-GSA-0.1.1.tar.gz/Flask-GSA-0.1.1/README.rst | Flask-GSA
=========
A Flask extension for interacting with `Google OAuth2 Service
Accounts <https://developers.google.com/identity/protocols/OAuth2ServiceAccount>`__.
| |Build Status|
| |Coverage Status|
| |PyPI Version|
| |PyPI Downloads|
Getting Started
===============
Requirements
------------
- Python 2.6+
- ... | PypiClean |
/Babel-2.12.1.tar.gz/Babel-2.12.1/docs/setup.rst | .. -*- mode: rst; encoding: utf-8 -*-
.. _setup-integration:
================================
Distutils/Setuptools Integration
================================
Babel provides commands for integration into ``setup.py`` scripts, based on
either the ``distutils`` package that is part of the Python standard library,
or ... | PypiClean |
/Djblets-3.3.tar.gz/Djblets-3.3/docs/releasenotes/1.0.13.rst | .. default-intersphinx:: django1.6 djblets1.0
============================
Djblets 1.0.13 Release Notes
============================
**Release date**: June 30, 2020
Packaging
=========
* Added a new JavaScript build-time dependency on
babel-plugin-django-gettext_.
.. _babel-plugin-django-gettext:
https://w... | PypiClean |
/HalRing-2.0.4-py3-none-any.whl/halring/log/halring_loguru.py | from loguru import logger
import time
class LoguruUtil:
def __init__(self,
mode: str = "MODE_SIMPLE_DEV",
logfile: str = None
):
"""
初始化Loguru工具
Args:
mode: 1. MODE_DEV
2. MODE_PROD
3. MODE_... | PypiClean |
/MeteoGalicia-API-0.1.1.tar.gz/MeteoGalicia-API-0.1.1/LICENSE.md | GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Pream... | PypiClean |
/IERNA-1.0.0-py3-none-any.whl/era/View/main_view.py | import customtkinter
from tkinter import DISABLED, NORMAL ,ttk
from era.Database.Repository.databaseRepository import GetDBRepositorySingletion
from era.Service.emailService import EmailService
from era.Logger.logger import Logger
from era.Utility.ConfigUtility import GetConfigSingletion
from era.Utility.StringUtility... | PypiClean |
/Misago-0.36.1.tar.gz/Misago-0.36.1/misago/users/serializers/user.py | from django.contrib.auth import get_user_model
from django.urls import reverse
from rest_framework import serializers
from . import RankSerializer
from ...core.serializers import MutableFields
User = get_user_model()
__all__ = ["StatusSerializer", "UserSerializer", "UserCardSerializer"]
class StatusSerializer(seri... | PypiClean |
/Avalara%20Python%20SDK-1.0.0.tar.gz/Avalara Python SDK-1.0.0/src/client_methods.py | import requests
from _str_version import str_type
class Mixin:
"""Mixin class contain methods attached to Client class."""
r"""
Reset this account's license key
Resets the existing license key for this account to a new key.
To reset your account, you must specify the ID of the account you wi... | PypiClean |
/NNBuilder-0.3.7.tar.gz/NNBuilder-0.3.7/nnbuilder/extensions/tensorboard.py | import timeit
import copy
import numpy as np
import nnbuilder
import os
import thread
from basic import *
from saveload import *
from earlystop import *
from collections import OrderedDict
from nnbuilder.tools import plotter
class TensorBoard(ExtensionBase):
def __init__(self):
ExtensionBase.__init__(self... | PypiClean |
/Lantz-0.3.zip/Lantz-0.3/docs/overview.rst | .. _overview:
========
Overview
========
A minimal script to control a function generator using Lantz might look like this::
from lantz import Q_
from lantz.drivers.aeroflex import A2023a
fungen = A2023a('COM1')
fungen.initialize()
print(fungen.idn)
fungen.frequency = Q_(20, 'MHz')
pri... | PypiClean |
/AuthTkt-0.3.3.tar.gz/AuthTkt-0.3.3/doc/source/manual.rst | Manual
++++++
Introduction
============
What is AuthTkt
---------------
AuthTkt is three different things:
* a *sign in handler* - a piece of software to handle user sign ins and set
a special signed cookie
* a *ticket checker* - a piece of software which on each request looks at the
special signed cookie to ... | PypiClean |
/Newcalls-0.0.1-cp37-cp37m-win_amd64.whl/newcalls/node_modules/node-fetch/lib/index.es.js | process.emitWarning("The .es.js file is deprecated. Use .mjs instead.");
import Stream from 'stream';
import http from 'http';
import Url from 'url';
import whatwgUrl from 'whatwg-url';
import https from 'https';
import zlib from 'zlib';
// Based on https://github.com/tmpvar/jsdom/blob/aa85b2abf07766ff7bf5c1f6daafb37... | PypiClean |
/Kotti-2.0.9.tar.gz/Kotti-2.0.9/docs/developing/basic/security.rst | .. _security:
Security
========
Kotti security is based on the concepts of users, groups, roles, permissions and workflow.
.. image:: /_static/user-group-role-permission.svg
User
A user is an entity that can authenticate himself.
Group
A group is a collection of users or other groups.
Permission
A per... | PypiClean |
/MufSim-1.2.2.tar.gz/MufSim-1.2.2/mufsim/insts/arrays.py | import re
import copy
import random
from functools import cmp_to_key
import mufsim.utils as util
import mufsim.gamedb as db
import mufsim.stackitems as si
from mufsim.errors import MufRuntimeError
from mufsim.insts.base import Instruction, instr
@instr("array_default_pinning")
class InstArrayDefaultPinning(Instructi... | PypiClean |
/GO-3-data-model-1.0.2.tar.gz/GO-3-data-model-1.0.2/datamodel/input/staticinnerbase.py | import logging
from datetime import datetime, timedelta
import json
import os
from pathlib import Path
from pydantic import BaseModel, Field, root_validator, StrictInt, conint, confloat
from pydantic.json import isoformat, timedelta_isoformat
from typing import Dict, List, Optional, Union, Tuple
from datamodel.base i... | PypiClean |
/CLAM-3.2.6.tar.gz/CLAM-3.2.6/clam/common/auth.py | import sys
import os
from functools import wraps
from hashlib import md5
from random import Random, SystemRandom
from glob import glob
import time
import flask
import clam.common.oauth
from clam.common.digestauth import pwhash
try:
from requests_oauthlib import OAuth2Session
except ImportError:
print( "WARNIN... | PypiClean |
/BIA_OBS-1.0.3.tar.gz/BIA_OBS-1.0.3/BIA/static/dist/node_modules/to-regex-range/README.md | # to-regex-range [](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=W8YFZ425KND68) [](https://www.npmjs.com/package/to-regex-range) [:
# tropDryNominal = 1.013*2.27*np.exp((-0.116e-03)*altr)
# tropWetNominal = 0.10
# tropo_dry=tropDryNominal*mfunc_tropo_dry
# tropo_wet=tropWetNominal*mfunc_tropo_wet
... | PypiClean |
/JumpScale-core-6.0.0.tar.gz/JumpScale-core-6.0.0/lib/JumpScale/baselib/jsdeveltools/JSDevelToolsInstaller.py | from JumpScale import j
import JumpScale.baselib.mercurial
class JSDevelToolsInstaller:
def __init__(self):
self._do=j.system.installtools
self.login=""
self.passwd=""
def initMercurial(self,login=None,password=None,force=False):
if j.system.platform.ubuntu.check():
... | PypiClean |
/MufSim-1.2.2.tar.gz/MufSim-1.2.2/mufsim/stackitems.py | import copy
import mufsim.utils as util
from mufsim.errors import MufRuntimeError
from functools import cmp_to_key, total_ordering
class Item(object):
value = 0
def __init__(self, value):
self.value = value
def __nonzero__(self):
return self.__bool__()
def __bool__(self):
re... | PypiClean |
/netket-3.9.2.tar.gz/netket-3.9.2/netket/models/ndm.py |
from typing import Union, Any
import numpy as np
import jax
from jax import numpy as jnp
from flax import linen as nn
from jax.nn.initializers import zeros, normal
from netket.utils import deprecate_dtype
from netket.utils.types import NNInitFunc
from netket import jax as nkjax
from netket import nn as nknn
defaul... | PypiClean |
/Nevow-0.14.5.tar.gz/Nevow-0.14.5/examples/db/db.py | from zope.interface import implements
from nevow import inevow
from nevow import loaders
from nevow import rend
from nevow import tags
from nevow.url import here
from formless import annotate
from formless import webform
whole = [(1, 'one'), (2, 'two'), (3, 'buckle'), (4, 'my'), (5, 'shoe')]
def doQuery(q, *args)... | PypiClean |
/OASYS1-1.2.130.tar.gz/OASYS1-1.2.130/oasys/widgets/loop_management/ow_node_point.py | import sys
from orangewidget.widget import OWAction
from oasys.widgets import widget
from oasys.widgets import gui as oasysgui
from oasys.widgets.gui import ConfirmDialog
from orangewidget import gui
from PyQt5.QtGui import QFont, QPalette, QColor
from PyQt5.QtWidgets import QMessageBox
from orangewidget.settings imp... | PypiClean |
/MarkovMixing-0.0.2.tar.gz/MarkovMixing-0.0.2/markovmixing/distributions.py | import numpy
import random
def is_distribution(mu,n=None):
"""
Check whether mu is a probability distribution.
x: a numpy ndarray
n: the size of the space (optional, defaults to None)
"""
# essentialy has to be a single row
if mu.ndim != 1 and numpy.prod(mu.shape) != mu.shape[1]:
return False
# needs to ... | PypiClean |
/FlexGet-3.9.6-py3-none-any.whl/flexget/plugins/input/rottentomatoes_list.py | from loguru import logger
from flexget import plugin
from flexget.entry import Entry
from flexget.event import event
from flexget.utils.cached_input import cached
try:
# NOTE: Importing other plugins is discouraged!
from flexget.plugins.internal import api_rottentomatoes as plugin_api_rottentomatoes
except Im... | PypiClean |
/FisheyeWarping-1.0.1-py3-none-any.whl/fisheyewarping/cli.py | import time
import argparse
from pathlib import Path
import cv2
from fisheyewarping import FisheyeWarping
def main():
parser = argparse.ArgumentParser()
parser.add_argument('--panorama_output', type=str, default='./dewarp-output.png', help='Specific path for `output`. Default is `./dewarp-output.png`.')
... | PypiClean |
/OASYS1-WONDER-1.0.45.tar.gz/OASYS1-WONDER-1.0.45/orangecontrib/wonder/widgets/structural/ow_debye_waller.py |
import sys, copy
from PyQt5.QtWidgets import QMessageBox, QApplication
from PyQt5.QtCore import Qt
from orangewidget.settings import Setting
from orangewidget import gui as orangegui
from orangewidget.widget import OWAction
from orangecontrib.wonder.widgets.gui.ow_generic_widget import OWGenericWidget
from orangeco... | PypiClean |
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/lang/functional/tailrec.js.uncompressed.js | define("dojox/lang/functional/tailrec", ["dijit","dojo","dojox","dojo/require!dojox/lang/functional/lambda,dojox/lang/functional/util"], function(dijit,dojo,dojox){
dojo.provide("dojox.lang.functional.tailrec");
dojo.require("dojox.lang.functional.lambda");
dojo.require("dojox.lang.functional.util");
// This module p... | PypiClean |
/ImageD11-1.9.9.tar.gz/ImageD11-1.9.9/sandbox/segmenter.py | from __future__ import print_function
""" Does segmentation from a master file to produce an _sparse.h5 with
segmented images in it """
import sys
# Code to clean the 2D image and reduce it to a sparse array:
# things we might edit
class Options:
CUT = 1 # keep values abuve cut in first look at image
HOWMAN... | PypiClean |
/KiwiCoder-0.3.tar.gz/KiwiCoder-0.3/kiwi/util/tree.py | from kiwi.common.exception import NodeNotFoundException
from typing import List
from abc import ABCMeta, abstractmethod
class TreeNode(metaclass=ABCMeta):
def __init__(self, key, children=None):
if children is None:
children = []
self.key = key
self.children = children
def... | PypiClean |
/CANberry-0.4.tar.gz/CANberry-0.4/canberry/bower_components/jquery/src/manipulation.js | define([
"./core",
"./var/concat",
"./var/push",
"./core/access",
"./manipulation/var/rcheckableType",
"./manipulation/support",
"./data/var/data_priv",
"./data/var/data_user",
"./core/init",
"./data/accepts",
"./traversing",
"./selector",
"./event"
], function( jQuery, concat, push, access, rcheckableTyp... | PypiClean |
/Chips-0.1.2.tar.gz/Chips-0.1.2/chips/VHDL_plugin/serial_in.py | from __future__ import division
"""VHDL generation of the SerialIn primitive"""
import common
__author__ = "Jon Dawson"
__copyright__ = "Copyright 2010, Jonathan P Dawson"
__license__ = "MIT"
__version__ = "0.1.2"
__maintainer__ = "Jon Dawson"
__email__ = "chips@jondawson.org.uk"
__status__ = "Prototype"
def write... | PypiClean |
/Nuitka-1.8.tar.gz/Nuitka-1.8/nuitka/build/inline_copy/lib/scons-4.3.0/SCons/Platform/posix.py | import platform
import subprocess
from SCons.Platform import TempFileMunge
from SCons.Platform.virtualenv import ImportVirtualenv
from SCons.Platform.virtualenv import ignore_virtualenv, enable_virtualenv
exitvalmap = {
2 : 127,
13 : 126,
}
def escape(arg):
"""escape shell special characters"""
slash... | PypiClean |
/MSM_PELE-1.1.1-py3-none-any.whl/PPP/mut_prep4pele.py | import sys
from prody import *
import os
import MSM_PELE.Helpers.constraints as ct
from MSM_PELE.PPP.adjustments_module import WritingAtomNames, FixStructureResnames, FixAtomNames, SolveClashes
from MSM_PELE.PPP.checks_module import CheckMutation, CheckClashes
from MSM_PELE.PPP.checks_module import CheckStructure, Che... | PypiClean |
/GB2260-v2-0.2.1.tar.gz/GB2260-v2-0.2.1/gb2260_v2/data/curated/revision_201503.py | from __future__ import unicode_literals
name = '201503'
division_schema = {
'110000': '北京市',
'110101': '东城区',
'110102': '西城区',
'110105': '朝阳区',
'110106': '丰台区',
'110107': '石景山区',
'110108': '海淀区',
'110109': '门头沟区',
'110111': '房山区',
'110112': '通州区',
'110113': '顺义区',
'11011... | PypiClean |
/Django-dj-0.3.0.tar.gz/Django-dj-0.3.0/README.rst | Django-dj
=========
Django-dj is a console command which removes the need to use Django's
``manage.py`` script.
Old way
-------
::
$ django-project> python manage.py runserver/syncdb/etc
::
$ django-project/some/dir> python ../../manage.py runserver/syncdb/etc
New Way
-------
::
$ django-project> dj run... | PypiClean |
/Django-Pizza-16.10.1.tar.gz/Django-Pizza-16.10.1/pizza/kitchen_sink/static/ks/ckeditor/lang/es.js | /*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.lang['es']={"editor":"Editor de texto enriquecido","editorPanel":"Rich Text Editor panel","common":{"editorHelp":"Pulse ALT 0 para ayuda","browseServer":"Ver Servido... | PypiClean |
/Flask-Security-Elucidata-1.0.0.tar.gz/Flask-Security-Elucidata-1.0.0/README.rst | Flask-Security
===================
.. image:: https://img.shields.io/travis/mattupstate/flask-security.svg
:target: https://travis-ci.org/mattupstate/flask-security
.. image:: https://img.shields.io/coveralls/mattupstate/flask-security.svg
:target: https://coveralls.io/r/mattupstate/flask-security
.. image::... | PypiClean |
/NlvWxPython-4.2.0-cp37-cp37m-win_amd64.whl/wx/lib/graphics.py | import math
import six
import wx
import wx.lib.wxcairo as wxcairo
import cairo
# Other ideas:
# 1. TextToPath (or maybe make this part of the Path class
# 3. Relative moves, lines, curves, etc.
# 5. maybe expose cairo_paint, cairo_paint_with_alpha, cairo_mask?
#-----------------------------------------------------... | PypiClean |
/CloudReg-1.0.1-py3-none-any.whl/cloudreg/scripts/ingest_image_stack.py | from tqdm import tqdm
import tifffile as tf
import numpy as np
import argparse
import os
import SimpleITK as sitk
import math
from cloudvolume import CloudVolume
import tinybrain
from psutil import virtual_memory
import joblib
from joblib import Parallel, delayed
def create_cloud_volume(
precomputed_path,
img... | PypiClean |
/BHPTNRremnant-0.0.2.tar.gz/BHPTNRremnant-0.0.2/README.md | # BHPTNR_Remnant
```BHPTNR_Remnant``` is an easy-to-use python package to efficiently predict the remnant mass, remnant spin, peak luminosity and the final kick imparted on the remnant black hole directly from the gravitational radiation using GPR fits. These fits have been built on the remnant data calculated from nu... | PypiClean |
/Grid2Op-1.9.3-py3-none-any.whl/grid2op/Chronics/multifolderWithCache.py | import numpy as np
from datetime import timedelta, datetime
from grid2op.dtypes import dt_int
from grid2op.Chronics.multiFolder import Multifolder
from grid2op.Chronics.gridStateFromFile import GridStateFromFile
from grid2op.Exceptions import ChronicsError
class MultifolderWithCache(Multifolder):
"""
This cl... | PypiClean |
/DisplaceNet-0.1.tar.gz/DisplaceNet-0.1/engine/object_detection_branch/retina_net/keras_retinanet/models/vgg.py | import keras
from . import Backbone
from . import retinanet
class VGGBackbone(Backbone):
""" Describes backbone information and provides utility functions.
"""
def retinanet(self, *args, **kwargs):
""" Returns a retinanet model using the correct backbone.
"""
return vgg_retinanet... | PypiClean |
/Aesthetics-0.1.1.tar.gz/Aesthetics-0.1.1/aesthetics/fisher/descriptors.py | import glob
from concurrent.futures import ProcessPoolExecutor
import cv2 # v3.2.0
import numpy as np
import tqdm
class Descriptors(object):
"""
Convert image to features
Key Methods:
* image(self, img): Given a img array, returns its descriptors
* image_file(self, filename): Given a image file... | PypiClean |
/EveryStamp-1.3.0.tar.gz/EveryStamp-1.3.0/src/everystamp/everystamp.py | ''' Python library aiming to provide a wrapper around various astronomical surveys that offer cutouts.'''
__version__ = '1.3.0'
__author__ = 'Frits Sweijen'
__license__ = 'GPLv3'
from typing import Generator
import argparse
import logging
logging.basicConfig(format='[%(name)s] %(asctime)s - %(levelname)s: %(message)s'... | PypiClean |
/OctoBot-Trading-2.4.23.tar.gz/OctoBot-Trading-2.4.23/octobot_trading/personal_data/portfolios/channel/balance.py | import asyncio
import octobot_trading.exchanges as exchanges
import octobot_trading.exchange_channel as exchanges_channel
import octobot_trading.constants as constants
class BalanceProducer(exchanges_channel.ExchangeChannelProducer):
async def push(self, balance, is_diff_update=False):
await self.perform... | PypiClean |
/LabtoolSuite-0.1.3.tar.gz/LabtoolSuite-0.1.3/Labtools/docs/SPI_class.py | from commands_proto import *
class SPI():
"""
Methods to interact with the SPI port. An instance of Packet_Handler must be passed to the init function
"""
def __init__(self,H):
self.H = H
def set_parameters(self,primary_prescaler=0,secondary_prescaler=2,CKE=1,CKP=0,SMP=1):
"""
sets SPI parameters.
==... | PypiClean |
/CMCpy-0.3.tar.gz/CMCpy-0.3/doc/html/_static/searchtools.js | * helper function to return a node containing the
* search summary for a given text. keywords is a list
* of stemmed words, hlwords is the list of normal, unstemmed
* words. the first one is used to find the occurance, the
* latter for highlighting it.
*/
jQuery.makeSearchSummary = function(text, keywords, hlwor... | PypiClean |
/ConceptNet-5.7.0.tar.gz/ConceptNet-5.7.0/conceptnet5/languages.py | import re
import langcodes
from langcodes.tag_parser import LanguageTagError
# There are various cases of language codes that we want to merge or redirect
# to another language code. To promote data alignment, when there is
# uncertainty about whether multiple language codes are just variations of the
# "same languag... | PypiClean |
/GeoNode-3.2.0-py3-none-any.whl/geonode/static/lib/js/plugins/codesample/plugin.js | (function (domGlobals) {
'use strict';
var global = tinymce.util.Tools.resolve('tinymce.PluginManager');
var noop = function () {
};
var constant = function (value) {
return function () {
return value;
};
};
var never = constant(false);
var always = constant(true);
... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.