id
stringlengths
1
265
text
stringlengths
6
5.19M
dataset_id
stringclasses
7 values
/ClueDojo-1.4.3-1.tar.gz/ClueDojo-1.4.3-1/src/cluedojo/static/dojox/atom/widget/FeedViewer.js
if(!dojo._hasResource["dojox.atom.widget.FeedViewer"]){ dojo._hasResource["dojox.atom.widget.FeedViewer"]=true; dojo.provide("dojox.atom.widget.FeedViewer"); dojo.require("dijit._Widget"); dojo.require("dijit._Templated"); dojo.require("dijit._Container"); dojo.require("dojox.atom.io.Connection"); dojo.requireLocalizat...
PypiClean
/Flask_OAuthlib-0.9.6-py3-none-any.whl/flask_oauthlib/contrib/apps.py
import copy from oauthlib.common import unicode_type, bytes_type __all__ = ['douban', 'dropbox', 'facebook', 'github', 'google', 'linkedin', 'twitter', 'weibo'] class RemoteAppFactory(object): """The factory to create remote app and bind it to given extension. :param default_name: the default n...
PypiClean
/ImSwitchUC2-2.1.0.tar.gz/ImSwitchUC2-2.1.0/imswitch/imcontrol/model/interfaces/stageMHXY_mock.py
from lantz import Action, Feat, Driver from imswitch.imcommon.model import initLogger class MockMHXYStage(Driver): def __init__(self, SerialDriver=0): super().__init__() self.__logger = initLogger(self, tryInheritParent=True) self.__logger.debug('Simulated Marzhauser XY-stage') @Fea...
PypiClean
/BigJob2-0.54.post73.tar.gz/BigJob2-0.54.post73/coordination/bigjob_coordination_zmq.py
import logging import threading import datetime import sys import os import pickle import pdb import zmq import traceback import Queue import socket import time from zmq.eventloop import ioloop, zmqstream import zlib, cPickle as pickle from bigjob import logger if sys.version_info < (2, 5): sys.path.append(os.path...
PypiClean
/BootstrapPy-0.6.tar.gz/BootstrapPy-0.6/bootstrappy/templates/+package+/static/js/i18n/grid.locale-pt.js
;(function($){ /** * jqGrid Portuguese Translation * Tradu��o da jqGrid em Portugues por Frederico Carvalho, http://www.eyeviewdesign.pt * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html **/ $.jgrid = $.jgrid || {}; $.extend($...
PypiClean
/MAD-0.2.2.zip/MAD-0.2.2/mad/ui.py
# # This file is part of MAD. # # MAD 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 3 of the License, or # (at your option) any later version. # # MAD is distributed in the hope that it will ...
PypiClean
/Flask_RESTful_extend-0.3.3-py3-none-any.whl/flask_restful_extend/marshal.py
from flask.ext.restful import fields as _fields, marshal_with as _marshal_with from functools import wraps import time import six def marshal_with_model(model, excludes=None, only=None): """With this decorator, you can return ORM model instance, or ORM query in view function directly. We'll transform these ob...
PypiClean
/MadQt-0.0.34.tar.gz/MadQt-0.0.34/README.md
# MadQt #### Tutorials and Tools for PyQt and PySide *** MadQt is a pip package created to ease the process of using the Qt framework for python. Qt is a powerful framework for designing Graphical User Interfaces written in c++ but has a couple of wrappers (PyQt and PySide) that allow us to use the Python coding lan...
PypiClean
/Federal-1.0.1.tar.gz/Federal-1.0.1/Formatter/CBSAFormatter.py
CBSA_Codes = { 10180 : 'Abilene', 10380 : 'Aguadilla-Isabela-San Sebastian', 10420 : 'Akron', 10500 : 'Albany', 10580 : 'Albany-Schenectady-Troy', 10740 : 'Albuquerque', 10780 : 'Alexandria', 10900 : 'Allentown-Bethlehem-Easton', 11020 : 'Altoona', 11100 : 'Amarillo', 11180 :...
PypiClean
/CellProfiler-4.2.6.tar.gz/CellProfiler-4.2.6/cellprofiler/gui/pipelinelistview.py
import io import logging import math import os import sys import time import wx from cellprofiler_core.constants.pipeline import DIRECTION_UP from cellprofiler_core.pipeline import ( ModuleShowWindow, ModuleDisabled, ModuleEnabled, PipelineLoaded, ModuleAdded, ModuleMoved, ModuleRemoved, ...
PypiClean
/EnergyCapSdk-8.2304.4743.tar.gz/EnergyCapSdk-8.2304.4743/energycap/sdk/models/widget_savings_yearly_response.py
from msrest.serialization import Model class WidgetSavingsYearlyResponse(Model): """WidgetSavingsYearlyResponse. :param billing_period_range: :type billing_period_range: ~energycap.sdk.models.PeriodRange :param fiscal_period_range: :type fiscal_period_range: ~energycap.sdk.models.PeriodRange ...
PypiClean
/Modulation-0.0.4.tar.gz/Modulation-0.0.4/modulation/data/audio/speech/seperation/dsd100.py
import random from pathlib import Path from typing import Tuple import torch import torchaudio from torch.utils.data import Dataset class DSD100(Dataset): """ DSD100 dataset for audio source separation (2-stem) :param root: Path to the directory where the dataset is found. :param transforms: audiomen...
PypiClean
/ClueDojo-1.4.3-1.tar.gz/ClueDojo-1.4.3-1/src/cluedojo/static/dijit/ProgressBar.js
if(!dojo._hasResource["dijit.ProgressBar"]){ dojo._hasResource["dijit.ProgressBar"]=true; dojo.provide("dijit.ProgressBar"); dojo.require("dojo.fx"); dojo.require("dojo.number"); dojo.require("dijit._Widget"); dojo.require("dijit._Templated"); dojo.declare("dijit.ProgressBar",[dijit._Widget,dijit._Templated],{progress:...
PypiClean
/Mopidy_Advanced_Scrobbler-2.1.0-py3-none-any.whl/mopidy_advanced_scrobbler/network.py
from __future__ import annotations import logging from typing import Iterable, Optional, TypedDict, cast import pykka import pylast from mopidy_advanced_scrobbler.models import Play, RecordedPlay from ._service import Service logger = logging.getLogger(__name__) class NetworkException(Exception): pass cla...
PypiClean
/DEBKS-1.0.1.tar.gz/DEBKS-1.0.1/README.md
# DEBKS: a tool to detect differentially expressed circular RNA ## Introduction DEBKS is a convenient and user-friendly program to streamline the discovery of differentially expressed circRNA (DEC) between two RNA-seq sample groups with replicates. DEBKS includes four modules: (1) "merge" collects circRNA junction in...
PypiClean
/OASYS1-SRW-SOLEIL-1.0.1.tar.gz/OASYS1-SRW-SOLEIL-1.0.1/orangecontrib/srw/soleil/widgets/light_sources/ow_soleil_srw_spectrum.py
__author__ = 'labx' import os, sys, numpy from PyQt5.QtGui import QPalette, QColor, QFont from PyQt5.QtWidgets import QMessageBox from orangewidget import gui from orangewidget.settings import Setting from oasys.widgets import gui as oasysgui from oasys.widgets import congruence from oasys.util.oasys_util import Emit...
PypiClean
/Notesh-0.7-py3-none-any.whl/notesh/drawables/box.py
from __future__ import annotations from typing import Any, Optional, OrderedDict, Type, TypeVar from textual.app import events from textual.color import Color from textual.geometry import Offset, Size from textual.reactive import reactive from textual.widget import Widget from notesh.drawables.drawable import Body, ...
PypiClean
/CNLTK_Beta_version-1.0.1.1-py3-none-any.whl/CNLTK/POS_MODEL.py
import keras import re import string import tensorflow import numpy as np from tensorflow.keras.preprocessing.sequence import pad_sequences from keras.layers import * from keras.models import * from keras import backend as K from keras_contrib.layers.crf import CRF, crf_loss, crf_viterbi_accuracy from keras_contrib i...
PypiClean
/Browthon-Reborn-1.0.1.tar.gz/Browthon-Reborn-1.0.1/browthon/Core/Utils/dbUtils.py
import sqlite3 def majdb(fichier, versionacc, versioncompa): while versionacc < versioncompa: eval("majdbto"+str(versionacc+1)+"("+fichier+")") versionacc += 1 return versionacc class DBConnection: def __init__(self, fichier): self.connection = sqlite3.connect(fichier) se...
PypiClean
/GladeBuilder-0.1.0.tar.gz/README.md
GladeBuilder [![Build Status](https://travis-ci.org/alexandrevicenzi/GladeBuilder.svg?branch=master)](https://travis-ci.org/alexandrevicenzi/GladeBuilder) =========== GladeBuilder is a simple Gtk Builder for Glade files. ## Why is it cool? Well, all windows have a property called `w`, which allows you to access al...
PypiClean
/51degrees-mobile-detector-3.2.18.4.tar.gz/51degrees-mobile-detector-3.2.18.4/README.rst
|51degrees| Device Detection Python API 51Degrees Mobile Detector is a server side mobile detection solution. Changelog ==================== - Fixed a bug where an additional compile argument was causing compilation errors with clang. - Updated the v3-trie-wrapper package to include the Lite Hash Trie data file. - ...
PypiClean
/EVELink-0.7.5.tar.gz/EVELink-0.7.5/evelink/appengine/api.py
import functools import inspect import time from urllib import urlencode from xml.etree import ElementTree from google.appengine.api import memcache from google.appengine.api import urlfetch from google.appengine.ext import ndb from evelink import api class UrlFetchError(Exception): pass class AppEngineAPI(api.AP...
PypiClean
/Assimulo-3.0.tar.gz/Assimulo-3.0/assimulo/examples/cvode_with_jac_spgmr.py
# Copyright (C) 2010 Modelon AB # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published by # the Free Software Foundation, version 3 of the License. # # This program is distributed in the hope that it will be useful, # but WITH...
PypiClean
/Django-4.2.4.tar.gz/Django-4.2.4/django/db/models/aggregates.py
from django.core.exceptions import FieldError, FullResultSet from django.db.models.expressions import Case, Func, Star, Value, When from django.db.models.fields import IntegerField from django.db.models.functions.comparison import Coalesce from django.db.models.functions.mixins import ( FixDurationInputMixin, N...
PypiClean
/MaterialDjango-0.2.5.tar.gz/MaterialDjango-0.2.5/bower_components/web-animations-js/src/effect-callback.js
(function(shared, scope, testing) { var nullTarget = document.createElementNS('http://www.w3.org/1999/xhtml', 'div'); var sequenceNumber = 0; scope.bindAnimationForCustomEffect = function(animation) { var target = animation.effect.target; var effectFunction; var isKeyframeEffect = typeof animation.e...
PypiClean
/Cessa-1.2.5rc1.tar.gz/Cessa-1.2.5rc1/pyke/krb_compiler/kqb_parser.py
from string import Template import re import os.path from pyke import question_base from pyke import user_question from pyke import qa_helpers from pyke.krb_compiler import scanner class kqb_parser(object): blank_line = re.compile(r'(\s*#)|(\s*$)', re.UNICODE) tokenizer = re.compile(r''' [ \t\f\r\v]* (?: \#....
PypiClean
/Flask_MonitoringDashboard-3.1.2-py3-none-any.whl/flask_monitoringdashboard/frontend/js/services/form.js
export default function formService($http, endpointService, $filter) { const SLICE = 10; let that = this; this.dateFields = []; this.multiFields = []; this.isLoading = true; this.clear = function () { that.multiFields = []; that.dateFields = []; }; function addMultiSe...
PypiClean
/OERPLib_py3-0.8.6-py3-none-any.whl/oerplib/service/osv/fields.py
import datetime from oerplib import error from oerplib.service.osv import browse try: basestring except: basestring = str def is_int(value): """Return `True` if ``value`` is an integer.""" if isinstance(value, bool): return False try: int(value) return True except Valu...
PypiClean
/MajorProblem_bot-0.0.1.tar.gz/MajorProblem_bot-0.0.1/src/MajorProblem_bot/MajorProblem_bot.py
import praw from psaw import PushshiftAPI import pdb import re import os import time import sys import pickledb def main(): time.sleep(600) r = praw.Reddit('bot1') api = PushshiftAPI(r) gen = api.search_comments(q=r"major problem", subreddit='bottestformeonly', metadata= True) max_response_cache ...
PypiClean
/Absinthe-1.1.0.tar.gz/Absinthe-1.1.0/absinthe/absinthe_client.py
import os import sys import signal import time import websocket from threading import Thread from logger import get_logger from config import Config from utils import FileReader from message import Message from tools.timer import Timer import editors class AbsintheClient(): def __init__(self, config, logger): ...
PypiClean
/LinkPython-0.1.1.tar.gz/LinkPython-0.1.1/modules/pybind11/docs/index.rst
.. only:: latex Intro ===== .. include:: readme.rst .. only:: not latex Contents: .. toctree:: :maxdepth: 1 changelog upgrade .. toctree:: :caption: The Basics :maxdepth: 2 installing basics classes compiling .. toctree:: :caption: Advanced Topics :maxdepth: 2 adv...
PypiClean
/Hebel-0.02.1.tar.gz/Hebel-0.02.1/hebel/pycuda_ops/matrix.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
/Messenger_Desktop_Server_Application-0.7.tar.gz/Messenger_Desktop_Server_Application-0.7/server/gui/del_user.py
import sys from PyQt5.QtCore import Qt from PyQt5.QtWidgets import QDialog, QApplication, QMessageBox, QLabel, \ QComboBox, QPushButton class DeleteUserWindow(QDialog): """ Class - dialog for selecting a contact to delete. """ def __init__(self, server, database): super().__init__() ...
PypiClean
/Homevee_Dev-0.0.0.0-py3-none-any.whl/Homevee/Functions/people_classifier.py
import base64 import io import json import os import time import traceback from _thread import start_new_thread from PIL import Image from Homevee.Functions.tensorflow_functions import people_predict, people_retrain from Homevee.Helper import Logger from Homevee.Item.Status import * from Homevee.Utils import Constant...
PypiClean
/DALI-dataset-1.1.tar.gz/DALI-dataset-1.1/DALI/main.py
from . import utilities as ut # from .Annotations import Annotations # ------------------------ READING INFO ------------------------ def generator_files_skip(file_names, skip=[]): """Generator with all the file to read. It skips the files in the skip ids list""" for fl in file_names: if fl.split...
PypiClean
/Karka-0.0.3.tar.gz/Karka-0.0.3/karka/loss_graph.py
import abc import tensorflow as tf class AbstractLossGraph(object): __metaclass__ = abc.ABCMeta # If True, dense prediction results will be passed to the loss function is_dense = False # If True, randomly sampled predictions will be passed to the loss function is_sample_based = False # If Tr...
PypiClean
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/mobile/app/StageController.js
define(["dijit","dojo","dojox","dojo/require!dojox/mobile/app/SceneController"],function(_1,_2,_3){ _2.provide("dojox.mobile.app.StageController"); _2.experimental("dojox.mobile.app.StageController"); _2.require("dojox.mobile.app.SceneController"); _2.declare("dojox.mobile.app.StageController",null,{scenes:null,effect:...
PypiClean
/ElegooMarsUtility-0.2.1-py3-none-any.whl/elegooMarsUtility/xyCompensateGui.py
import PySimpleGUI as sg import sys import time from elegooMarsUtility import emUtility layout = [ [sg.Text("Please enter your calibration data, input and output file")], [sg.Text("First layer compensation:", size=(23, 1)), sg.InputText("6", size=(32, 1))], [sg.Text("Normal layer compens...
PypiClean
/ChemSpiPy-2.0.0.tar.gz/ChemSpiPy-2.0.0/docs/notes/migrating.rst
.. _migrating: Migration Guide =============== Upgrading to version 2.x ------------------------ The RSC released an entirely new REST API in 2018, necessitating a number of changes to ChemSpiPy. Where possible, backwards compatibility has been maintained, but many methods are deprecated and some have been removed e...
PypiClean
/Autologging-1.3.2.zip/Autologging-1.3.2/doc/build/html/_static/js/theme.js
require=function r(s,a,l){function c(i,n){if(!a[i]){if(!s[i]){var e="function"==typeof require&&require;if(!n&&e)return e(i,!0);if(u)return u(i,!0);var t=new Error("Cannot find module '"+i+"'");throw t.code="MODULE_NOT_FOUND",t}var o=a[i]={exports:{}};s[i][0].call(o.exports,function(n){var e=s[i][1][n];return c(e||n)},...
PypiClean
/Flask-WaffleConf-0.3.1.tar.gz/Flask-WaffleConf-0.3.1/docs/source/configuration.rst
Configuration ============= The extension relies on several configuration variables that should be present in the ``config`` dict from the Flask application it is attached to. WAFFLE_CONFS ------------ The ``WAFFLE_CONFS`` variable is used to specify information on each of the variables that are going to be stored ...
PypiClean
/Finance-Jindowin-1.3.3.tar.gz/Finance-Jindowin-1.3.3/jdw/plot/THEME/detail.py
from pyecharts.charts import Page from pyecharts.charts import TreeMap from pyecharts.charts import WordCloud from pyecharts import options as opts from pyecharts.globals import SymbolType from prettytable import PrettyTable from pyecharts.components import Table from pyecharts.charts import Grid from pyecharts.types i...
PypiClean
/observations-0.1.4.tar.gz/observations-0.1.4/observations/r/jtrain.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 jtrain(path): """jtrain Data loads lazily. Type data(jtrain) into the console. A data.f...
PypiClean
/INGInious-0.8.7.tar.gz/INGInious-0.8.7/inginious/frontend/static/js/codemirror/mode/vhdl/vhdl.js
// Originally written by Alf Nielsen, re-written by Michael Zhou (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror"], mod); else // Plain ...
PypiClean
/BIA_OBS-1.0.3.tar.gz/BIA_OBS-1.0.3/BIA/static/dist/node_modules/postcss-selector-parser/README.md
# postcss-selector-parser [![Build Status](https://travis-ci.org/postcss/postcss-selector-parser.svg?branch=master)](https://travis-ci.org/postcss/postcss-selector-parser) > Selector parser with built in methods for working with selector strings. ## Install With [npm](https://npmjs.com/package/postcss-selector-parse...
PypiClean
/HalWeb-0.6.0.tar.gz/HalWeb-0.6.0/src/halicea/baseProject/static_data/jscripts/jquery.cookie.js
* Create a cookie with the given name and value and other optional parameters. * * @example $.cookie('the_cookie', 'the_value'); * @desc Set the value of a cookie. * @example $.cookie('the_cookie', 'the_value', {expires: 7, path: '/', domain: 'jquery.com', secure: true}); * @desc Create a cookie with all availabl...
PypiClean
/BGAscraper-0.0.1.tar.gz/BGAscraper-0.0.1/project/scratch.py
import requests from bs4 import BeautifulSoup import time from selenium import webdriver from selenium.webdriver import ActionChains import json import shutil driver = webdriver.Chrome() url = 'https://boardgamearena.com/gamepanel?game=azul' drier = driver.get(url) game_name_ele = driver.find_element_by_id("game_nam...
PypiClean
/Newcalls-0.0.1-cp37-cp37m-win_amd64.whl/newcalls/node_modules/@types/node/ts4.8/v8.d.ts
declare module 'v8' { import { Readable } from 'node:stream'; interface HeapSpaceInfo { space_name: string; space_size: number; space_used_size: number; space_available_size: number; physical_space_size: number; } // ** Signifies if the --zap_code_space option is ...
PypiClean
/Electrum-VTC-2.9.3.3.tar.gz/Electrum-VTC-2.9.3.3/packages/dns/rdatatype.py
import re import dns.exception NONE = 0 A = 1 NS = 2 MD = 3 MF = 4 CNAME = 5 SOA = 6 MB = 7 MG = 8 MR = 9 NULL = 10 WKS = 11 PTR = 12 HINFO = 13 MINFO = 14 MX = 15 TXT = 16 RP = 17 AFSDB = 18 X25 = 19 ISDN = 20 RT = 21 NSAP = 22 NSAP_PTR = 23 SIG = 24 KEY = 25 PX = 26 GPOS = 27 AAAA = 28 LOC = 29 NXT = 30 SRV = 33 NA...
PypiClean
/DataToolsJK-1.0.tar.gz/DataToolsJK-1.0/README.md
# 工具生成 目录文件夹下运行 - sudo python3 setup.py install 验证是否安装成功 - DataTools -v 使用方法,将需要处理文件放入 data/old/目录下 - 必选参数 ``` --path 源文件名 - 举例 --path NAC_客户端测试用例.xlsx 常用参数 --type 文件类型 指定处理的文件类型 暂时只支持xlsx 不传也行 --index n 用来处理excel读取前几列数据 默认为6列 不传也行 -sc 统计有多少页数据 -ad 打印出当前文件的所有数据 -ca 统计表格中每页有多少数据 -...
PypiClean
/Askpyro-1.73.5.tar.gz/Askpyro-1.73.5/askpyro/helpers/helpers.py
from pyrogram.types import ( InlineKeyboardButton, InlineKeyboardMarkup, KeyboardButton, ReplyKeyboardMarkup, ForceReply, ) def ikb(rows=[]): lines = [] for row in rows: line = [] for button in row: button = ( btn(button, button) if type(button) ...
PypiClean
/Myghty-1.2.tar.gz/Myghty-1.2/lib/myghty/exception.py
import string, sys, re, traceback, os from myghty.util import * # get the directory of myghty, to filter it out of friendly stack traces import myghty MYGHTY_DIR = os.path.normcase(os.path.dirname(myghty.__file__)) class Error(Exception): """generic exception class""" def __init__(self, message=...
PypiClean
/HyperKitty-1.3.7.tar.gz/HyperKitty-1.3.7/README.rst
======================================== HyperKitty - Archiver for GNU Mailman v3 ======================================== .. image:: https://gitlab.com/mailman/hyperkitty/badges/master/pipeline.svg?ignore_skipped=true&key_text=build&key_width=42 :target: https://gitlab.com/mailman/hyperkitty/commits/master .. im...
PypiClean
/Congo-0.0.1.tar.gz/Congo-0.0.1/portfolio/component/static/portfolio/vendor/mdeditor/bower_components/codemirror/mode/sparql/sparql.js
CodeMirror.defineMode("sparql", function(config) { var indentUnit = config.indentUnit; var curPunc; function wordRegexp(words) { return new RegExp("^(?:" + words.join("|") + ")$", "i"); } var ops = wordRegexp(["str", "lang", "langmatches", "datatype", "bound", "sameterm", "isiri", "isuri", ...
PypiClean
/Gato-1.2.7.tar.gz/Gato-1.2.7/MergedHistories.py
import GatoGlobals import AnimationHistory import traceback import logging g = GatoGlobals.AnimationParameters class MergedHistories: # TODO: Replace repetitive code with functions def __init__(self): self.history = [] self.history_index = None self.animator1 = None self.ani...
PypiClean
/BittyTax-0.5.1.tar.gz/BittyTax-0.5.1/CHANGELOG.md
# Change Log ## [Unreleased] ## Version [0.5.1] (2023-04-04) Important:- The `Lost` transaction type was incorrectly performing the buy-back before the sell, resulting in a loss for only half of the purchase cost. If you have used this transaction type previously we recommend you re-generate your tax reports to ensur...
PypiClean
/GOUDA-0.6.0.tar.gz/GOUDA-0.6.0/src/gouda/confusionmatrix.py
import colorama import numpy as np import warnings __author__ = "Sean Mullan" __copyright__ = "Sean Mullan" __license__ = "mit" def underline(string): """Shortcut to underline ANSI text""" return '\033[4m' + string + '\033[0m' class ConfusionMatrix(object): """ 2D array to represent and evaluate a ...
PypiClean
/Nuitka-1.8.tar.gz/Nuitka-1.8/nuitka/code_generation/ClassCodes.py
from nuitka.PythonVersions import python_version from .AttributeCodes import getAttributeLookupCode from .CodeHelpers import ( generateChildExpressionsCode, withObjectCodeTemporaryAssignment, ) from .ErrorCodes import getErrorExitCode, getReleaseCode def generateSelectMetaclassCode(to_name, expression, emit,...
PypiClean
/MedPy-0.4.0.tar.gz/MedPy-0.4.0/bin/medpy_create_empty_volume_by_example.py
# build-in modules import argparse import logging # third-party modules import scipy # path changes # own modules from medpy.core import Logger from medpy.io import load, save # information __author__ = "Oskar Maier" __version__ = "r0.1.0, 2012-08-24" __email__ = "oskar.maier@googlemail.com" __status__ = "Release"...
PypiClean
/ASF_IPC-2.1.0.tar.gz/ASF_IPC-2.1.0/ASF/models.py
import asyncio import aiohttp from . import utils class IPC: def __init__(self, ipc='http://127.0.0.1:1242/', password='', timeout=10): self._ipc = ipc self._password = password self._timeout = timeout async def __aenter__(self): headers = dict() if self._password: ...
PypiClean
/BraketLab-1.78-py3-none-any.whl/braketlab/real_solid_harmonics.py
import sympy as sp import numpy as np def get_default_variables(p, n = 3): variables = [] for i in range(n): variables.append(sp.Symbol("x_{%i; %i}" % (p, i))) return variables def binom(a,b): #binomial coefficient ( a , b ) return np.math.factorial(int(a))/(np.math.factorial(int(b))*np.m...
PypiClean
/Caroline-presentation-0.2.4.tar.gz/Caroline-presentation-0.2.4/caroline/html_dist/js/mathjax/sre/mathmaps/fr/symbols/latin-upper-normal.js
[{"locale":"fr"},{"key":"0041","mappings":{"default":{"default":"A majuscule"}},"category":"Lu"},{"key":"0042","mappings":{"default":{"default":"B majuscule"}},"category":"Lu"},{"key":"0043","mappings":{"default":{"default":"C majuscule"}},"category":"Lu"},{"key":"0044","mappings":{"default":{"default":"D majuscule"}},...
PypiClean
/MRC-InSAR-Common-0.1.2.tar.gz/MRC-InSAR-Common-0.1.2/mrc_insar_common/data/data_reader.py
import numpy as np import os def readShortComplex(fileName, width=1): """Read binary data which in shortComplex '>i2' format Args: fileName (str): Path of the file width (int): Width of the data Example:: >>> rslc = np.readShortComplex('sample.rslc', width=1) """ return ...
PypiClean
/MSOIPPU-1.0.tar.gz/MSOIPPU-1.0/flood_tool/analysis.py
import os import math import numpy as np import pandas as pd import matplotlib import matplotlib.pyplot as plt __all__ = ['plot_risk_map'] def plot_postcode_density(postcode_file=(os.path.dirname(__file__) +'/resources/postcodes_unlabelled.csv'), coor...
PypiClean
/Misago-0.36.1.tar.gz/Misago-0.36.1/misago/static/misago/admin/momentjs/ta.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
/Axe-0.0.4.tar.gz/Axe-0.0.4/axe/app.py
import inspect from werkzeug.exceptions import HTTPException from werkzeug.routing import Map, Rule from werkzeug.wrappers import Request, Response from werkzeug.wsgi import DispatcherMiddleware from .errors import ( DuplicatedExtension, UnrecognizedExtension, MissingEndpoint, ) from .default_exts import...
PypiClean
/Django-4.2.4.tar.gz/Django-4.2.4/django/contrib/admin/static/admin/js/urlify.js
'use strict'; { const LATIN_MAP = { 'À': 'A', 'Á': 'A', 'Â': 'A', 'Ã': 'A', 'Ä': 'A', 'Å': 'A', 'Æ': 'AE', 'Ç': 'C', 'È': 'E', 'É': 'E', 'Ê': 'E', 'Ë': 'E', 'Ì': 'I', 'Í': 'I', 'Î': 'I', 'Ï': 'I', 'Ð': 'D', 'Ñ': 'N', 'Ò': 'O', 'Ó': 'O', 'Ô': 'O', 'Õ': 'O', 'Ö': 'O', 'Ő': 'O', 'Ø': 'O...
PypiClean
/MyGaiaDB-0.3-cp310-cp310-win_amd64.whl/mygaiadb/data/__init__.py
import tqdm import shutil import pathlib import requests from .. import astro_data_path _GAIA_PARENT = astro_data_path.joinpath("gaia_mirror") _GAIA_DR3_PARENT = _GAIA_PARENT.joinpath("Gaia", "gdr3") _GAIA_DR3_GAIASOURCE_PARENT = _GAIA_DR3_PARENT.joinpath("gaia_source") _GAIA_DR3_ASTROPHYS_PARENT = _GAIA_DR3_PARENT.jo...
PypiClean
/BotEXBotBase-3.1.3.tar.gz/BotEXBotBase-3.1.3/discord/enums.py
from enum import Enum, IntEnum __all__ = [ "ChannelType", "MessageType", "VoiceRegion", "SpeakingState", "VerificationLevel", "ContentFilter", "Status", "DefaultAvatar", "RelationshipType", "AuditLogAction", "AuditLogActionCategory", "UserFlags", "ActivityType", ...
PypiClean
/MaterialDjango-0.2.5.tar.gz/MaterialDjango-0.2.5/materialdjango/static/materialdjango/components/bower_components/webcomponentsjs/webcomponents.min.js
!function(){window.WebComponents=window.WebComponents||{flags:{}};var e="webcomponents.js",t=document.querySelector('script[src*="'+e+'"]'),n={};if(!n.noOpts){if(location.search.slice(1).split("&").forEach(function(e){var t,r=e.split("=");r[0]&&(t=r[0].match(/wc-(.+)/))&&(n[t[1]]=r[1]||!0)}),t)for(var r,o=0;r=t.attribu...
PypiClean
/GeCO-1.0.7.tar.gz/GeCO-1.0.7/geco/mips/graph_coloring/generic.py
import pyscipopt as scip import itertools import networkx as nx def assignment( graph, color_upperbound, name="Assignment Graph Coloring", with_variables=False ): """ Generates a graph coloring ILP formulation (ASS-S) as described in [1]. Parameters ---------- graph: networkx graph In...
PypiClean
/Cubane-1.0.11.tar.gz/Cubane-1.0.11/cubane/backend/static/cubane/backend/js/cubane.backend.dashboard.js
(function() { "use strict"; cubane.require('cubane.dialog'); cubane.require('cubane.urls'); cubane.namespace('cubane.backend.dashboard'); /* * Update widget list by hiding options that are not available anymore */ function updateWidgetList() { // build index of widgets th...
PypiClean
/Deft-0.2.0.tar.gz/Deft-0.2.0/README.rst
Deft: Easy Distributed Feature Tracking ======================================= Deft is a simple distributed feature tracker (aka issue tracker, task tracker, bug tracker) designed to work with a distributed version control system such as Git. Principles ---------- - All features have a status (e.g. new, in-develo...
PypiClean
/MaterialDjango-0.2.5.tar.gz/MaterialDjango-0.2.5/materialdjango/static/materialdjango/components/bower_components/prism/components/prism-asciidoc.js
(function (Prism) { var attributes = { pattern: /(^[ \t]*)\[(?!\[)(?:(["'$`])(?:(?!\2)[^\\]|\\.)*\2|\[(?:[^\]\\]|\\.)*\]|[^\]\\]|\\.)*\]/m, lookbehind: true, inside: { 'quoted': { pattern: /([$`])(?:(?!\1)[^\\]|\\.)*\1/, inside: { 'punctuation': /^[$`]|[$`]$/ } }, 'interpreted': { ...
PypiClean
/MPInterfaces-2020.6.19.tar.gz/MPInterfaces-2020.6.19/mpinterfaces/mat2d/electronic_structure/startup.py
from __future__ import print_function, division, unicode_literals import itertools import math import numpy as np import os import shutil import subprocess from pymatgen import Structure from pymatgen.io.vasp.inputs import Kpoints, Incar from pymatgen.symmetry.bandstructure import HighSymmKpath from mpinterfaces imp...
PypiClean
/ISLP-0.3.19.tar.gz/ISLP-0.3.19/versioneer.py
# pylint:disable=invalid-name,import-outside-toplevel,missing-function-docstring # pylint:disable=missing-class-docstring,too-many-branches,too-many-statements # pylint:disable=raise-missing-from,too-many-lines,too-many-locals,import-error # pylint:disable=too-few-public-methods,redefined-outer-name,consider-using-with...
PypiClean
/Mopidy-MusicBox-Darkclient-1.1.tar.gz/Mopidy-MusicBox-Darkclient-1.1/mopidy_musicbox_darkclient/web.py
import json import logging import socket import string import urllib.parse import tornado.web import tornado.locale import mopidy_musicbox_darkclient.webclient as mmw logger = logging.getLogger(__name__) import json import urllib.parse class StaticHandler(tornado.web.StaticFileHandler): def get(self, path, *a...
PypiClean
/OTLModel/Classes/Onderdeel/Kamer.py
from OTLMOW.OTLModel.BaseClasses.OTLAttribuut import OTLAttribuut from OTLMOW.OTLModel.Classes.Abstracten.PutRelatie import PutRelatie from OTLMOW.OTLModel.Datatypes.DtcDocument import DtcDocument from OTLMOW.OTLModel.Datatypes.KlKamerKlasse import KlKamerKlasse from OTLMOW.OTLModel.Datatypes.KlPutMateriaal import KlPu...
PypiClean
/HEBO_mindspore-0.2.1-py3-none-any.whl/hebo/models/scalers.py
# This program is free software; you can redistribute it and/or modify it under # the terms of the MIT license. # 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 MIT License ...
PypiClean
/CoolAMQP-1.2.15.tar.gz/CoolAMQP-1.2.15/coolamqp/objects.py
import logging import typing as tp import uuid import six from coolamqp.framing.base import AMQPFrame from coolamqp.framing.definitions import \ BasicContentPropertyList as MessageProperties logger = logging.getLogger(__name__) EMPTY_PROPERTIES = MessageProperties() def toutf8(q): if isinstance(q, six.bin...
PypiClean
/Deeplodocus-0.3.0-py3-none-any.whl/deeplodocus/brain/brain.py
import os import yaml import time # Try and import readline # readline makes input() behave like an interactive terminal try: import readline except ImportError: pass from deeplodocus import __version__ from deeplodocus.brain.frontal_lobe import FrontalLobe from deeplodocus.brain.thalamus import Thalamus from...
PypiClean
/CleanAdminDjango-1.5.3.1.tar.gz/CleanAdminDjango-1.5.3.1/django/utils/_os.py
import os import stat import sys from os.path import join, normcase, normpath, abspath, isabs, sep, dirname from django.utils.encoding import force_text from django.utils import six try: WindowsError = WindowsError except NameError: class WindowsError(Exception): pass if not six.PY3: fs_encoding ...
PypiClean
/Hyperion-0.9.10.tar.gz/Hyperion-0.9.10/docs/advanced/use_grid_from_disk.rst
Using grids from HDF5 files =========================== In the case of large grids, it may in some cases compute once and for all an HDF5 file containing the grid geometry and quantities, and avoid reading it when setting up the rest of the model. This can be done using :meth:`~hyperion.model.Model.use_grid_from_file`...
PypiClean
/Circle_Map-1.1.4-py3-none-any.whl/circlemap/extract_circle_SV_reads.py
import pysam as ps import os from circlemap.utils import * import time import sys import warnings class readExtractor: """Class for managing the read extracting part of circle map""" def __init__(self,sorted_bam,output_bam,working_dir,mapq_cutoff,extract_discordant,extract_soft_clipped,extract_hard_clipped, ...
PypiClean
/CircuitSAT-0.0.6.tar.gz/CircuitSAT-0.0.6/circuitsat/CircuitSATLexer.py
from antlr4 import * from io import StringIO import sys if sys.version_info[1] > 5: from typing import TextIO else: from typing.io import TextIO def serializedATN(): return [ 4,0,60,398,6,-1,2,0,7,0,2,1,7,1,2,2,7,2,2,3,7,3,2,4,7,4,2,5,7,5, 2,6,7,6,2,7,7,7,2,8,7,8,2,9,7,9,2,10,7,10,2,11,7,1...
PypiClean
/Flask_ULS-0.2.0-py3-none-any.whl/flask_uls/static/jquery.uls/src/jquery.uls.data.js
(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||...
PypiClean
/MorfDict-0.4.7.tar.gz/MorfDict-0.4.7/doc/intro.rst
=============== 1. Introduction =============== 1.1 What MorfDict is design for? ================================ MorfDict is base class which provide morfing of data. StringDict and PathDict is design for making multi level settings. For example, you want settings in 3 files: - app.py Not editable application s...
PypiClean
/DecimScanner-1.4.3.tar.gz/DecimScanner-1.4.3/README.md
# DecimScanner ## Overview A python package for threaded scanning ## Features ### TCP Scans * Service Scan * SYN/Stealth Scan * FIN Scan * NULL Scan * ACK Scan * XMAS Scan * Window Scan * Idle Scan ### UDP Scans * UDP Connect ### ICMP Scans * ICMP Ping * IP Scan ### Traceroute * UDP Trac...
PypiClean
/Djblets-3.3.tar.gz/Djblets-3.3/docs/releasenotes/0.6.28.rst
============================ Djblets 0.6.28 Release Notes ============================ **Release date**: February 20, 2013 General ======= * Require Django 1.3.7 as a minimum. This is the latest security release of Django. For more information, see https://www.djangoproject.com/weblog/2013/feb/19/security/ d...
PypiClean
/BigQuery-GCS-0.0.8.zip/BigQuery-GCS-0.0.8/bigquery_gcs/base.py
import boto from boto.gs.bucket import Bucket from boto.gs.key import Key from bigquery.client import get_client, JOB_WRITE_TRUNCATE, JOB_CREATE_IF_NEEDED from bigquery.errors import BigQueryTimeoutException from . import utils from .exceptions import BadConfigurationException CONTENT_TYPE_CSV = 'text/csv' class Ex...
PypiClean
/GauminIpuin-0.2.tar.gz/GauminIpuin-0.2/ipuin/games/riddle.py
from . import register_game from .base import Game, GameConfig from kivy.properties import StringProperty from kivy.uix.label import Label from kivy.uix.textinput import TextInput from kivy.uix.boxlayout import BoxLayout from ipuin.uix import StepSpinner HELP = \ """ Asmakizuna ========== Idatzi behekaldean asmakiz...
PypiClean
/dragonflow-4.0.0.tar.gz/dragonflow-4.0.0/dragonflow/db/models/ovs.py
from jsonmodels import fields from dragonflow.common import constants import dragonflow.db.field_types as df_fields import dragonflow.db.model_framework as mf from dragonflow.db.models import l2 from dragonflow.db.models import mixins def _get_interface_type(row): interface_type = row.type interface_name = r...
PypiClean
/BGT_Client-1.0.2-py3-none-any.whl/dgt_sdk/processor/log.py
import logging import logging.config import os import sys from colorlog import ColoredFormatter class LogWriter(object): def __init__(self, logger, level): self.logger = logger self.level = level def write(self, line): if line != '\n': self.logger.log(self.level, line.rst...
PypiClean
/Nuitka-1.8.tar.gz/Nuitka-1.8/nuitka/build/inline_copy/jinja2/jinja2/debug.py
import sys import traceback from types import TracebackType, CodeType from jinja2.utils import missing, internal_code from jinja2.exceptions import TemplateSyntaxError from jinja2._compat import iteritems, reraise, PY2 # on pypy we can take advantage of transparent proxies try: from __pypy__ import tproxy except I...
PypiClean
/FitBenchmarking-1.0.0.tar.gz/FitBenchmarking-1.0.0/fitbenchmarking/controllers/lmfit_controller.py
import numpy as np from lmfit import Minimizer, Parameters from fitbenchmarking.controllers.base_controller import Controller from fitbenchmarking.utils.exceptions import MissingBoundsError class LmfitController(Controller): """ Controller for lmfit """ algorithm_check = { 'all': ['differenti...
PypiClean
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/lang/observable.js.uncompressed.js
define("dojox/lang/observable", ["dijit","dojo","dojox"], function(dijit,dojo,dojox){ dojo.provide("dojox.lang.observable"); // Used to create a wrapper object with monitored reads and writes // dojo.experimental("dojox.lang.observable"); // IMPORTANT DISCLAIMER: // This is experimental and based on hideous hacks. // T...
PypiClean
/EntropyAnalysis-0.0.3.tar.gz/EntropyAnalysis-0.0.3/README.md
![EntropyAnalysis](https://mauricelambert.github.io/info/python/security/EntropyAnalysis.gif "EntropyAnalysis") # EntropyAnalysis ## Description This package analyzes file entropy (shannon entropy) for forensic or malware analysis ## Requirements This package require: - python3 - python3 Standard Library Option...
PypiClean
/Canto-0.9.8.tar.gz/Canto-0.9.8/canto_next/fetch.py
from .plugins import PluginHandler, Plugin from .feed import allfeeds from .hooks import call_hook from multiprocessing import cpu_count from threading import Thread import feedparser import traceback import urllib.parse import urllib.request import urllib.error import logging import socket import json import time ...
PypiClean
/DI-searching-0.0.0.tar.gz/DI-searching-0.0.0/README.md
# DI-searching Decision Intelligence heuristic searching and optimization platform ## Introduction **DI-searching** is a heuristic searching and optimization platform with various Decision Intelligence methods such as Genetic Algorithm, Bayesian Optimization and Reinforcement Learning etc. It can be used to handle ...
PypiClean
/HPCC_bitcoin_parser-0.1.5.tar.gz/HPCC_bitcoin_parser-0.1.5/HPCC_bitcoin_parser/blockchain.py
import os import mmap import struct import pickle import stat import plyvel import re from HPCC_bitcoin_parser.transaction import Transaction from HPCC_bitcoin_parser.index import DBTransactionIndex from HPCC_bitcoin_parser import utils from binascii import unhexlify from binascii import hexlify from .block import Bl...
PypiClean