id
stringlengths
1
265
text
stringlengths
6
5.19M
dataset_id
stringclasses
7 values
/Bugs%20Everywhere%20(BEurtle%20fork)-1.5.0.1.-2012-07-16-.zip/Bugs Everywhere (BEurtle fork)-1.5.0.1.-2012-07-16-/libbe/storage/util/upgrade.py
import codecs import os, os.path import sys import libbe import libbe.bug import libbe.storage.util.mapfile as mapfile from libbe.storage import STORAGE_VERSIONS, STORAGE_VERSION #import libbe.storage.vcs # delay import to avoid cyclic dependency import libbe.ui.util.editor import libbe.util import libbe.util.encoding...
PypiClean
/AADeepLearning-1.0.8.tar.gz/AAdeepLearning-1.0.8/AADeepLearning/datasets/generic_utils.py
from __future__ import absolute_import from __future__ import division from __future__ import print_function import binascii import numpy as np import time import sys import six import marshal import types as python_types import inspect import codecs import collections _GLOBAL_CUSTOM_OBJECTS = {} class CustomObjec...
PypiClean
/Electrum-VTC-2.9.3.3.tar.gz/Electrum-VTC-2.9.3.3/packages/google/protobuf/any_pb2.py
import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.p...
PypiClean
/Flask-MDEditor-0.1.4.tar.gz/Flask-MDEditor-0.1.4/flask_mdeditor/static/mdeditor/js/lib/codemirror/mode/tiki/tiki.js
(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 browser env mod(CodeMirror); })(function(CodeMirror) { "use s...
PypiClean
/django-chuck-0.2.3.tar.gz/django-chuck/modules/feincms/project/static/scripts/libs/tiny_mce/plugins/table/js/row.js
tinyMCEPopup.requireLangPack(); function init() { tinyMCEPopup.resizeToInnerSize(); document.getElementById('backgroundimagebrowsercontainer').innerHTML = getBrowserHTML('backgroundimagebrowser','backgroundimage','image','table'); document.getElementById('bgcolor_pickcontainer').innerHTML = getColorPickerHTML('bgc...
PypiClean
/Flask-Saved-1.0.6.tar.gz/Flask-Saved-1.0.6/flask_saved/__init__.py
from werkzeug.utils import import_string from flask import current_app _DRIVES = { 'local':'flask_saved.providers.local.LocalStorage', 'oss': 'flask_saved.providers.oss.OssStorage' } class Storage: def __init__(self, app=None): self.default_provider = None if app is not None: ...
PypiClean
/FreezeUI_U-0.0.5.tar.gz/FreezeUI_U-0.0.5/FreezeUI_U/msi_win.py
from PyQt6.QtGui import * from PyQt6.QtCore import * from PyQt6.QtWidgets import * from FreezeUI_U.editor_window import * import os assets_folder = os.path.join(os.path.dirname(os.path.realpath(__file__)), "assets") include_folder_list = [] include_file_list = [] scroll_bar_stylesheet = """QScrollBar:vertical { ...
PypiClean
/Anilius-2.0.3rc1.tar.gz/Anilius-2.0.3rc1/src/anilius/core/serializer.py
from collections import OrderedDict from anilius.core.serializer_field import SerializerField from google.protobuf.message import Message from google.protobuf.internal.containers import RepeatedScalarFieldContainer class SerializerMetaclass(type): """ This metaclass sets a dictionary named `_declared_fields`...
PypiClean
/Ax_Metrics-0.9.2.tar.gz/Ax_Metrics-0.9.2/py/axonchisel/metrics/io/emfetch/base.py
import collections from axonchisel.metrics.foundation.ax.obj import AxObj from axonchisel.metrics.foundation.ax.plugin import AxPluginBase from axonchisel.metrics.foundation.chrono.timerange import TimeRange from axonchisel.metrics.foundation.metricdef.metricdef import MetricDef from axonchisel.metrics.foundation.d...
PypiClean
/Gitbigcommits-1.0.3-py3-none-any.whl/gitbigcommits/report_layer/git_html_report.py
from Cheetah.Template import Template from datetime import datetime from gitbigcommits.core.git_commit_utility import GitFatCheckutility import os import sys import pkg_resources import logging logging.basicConfig() def get_output_list(git_folder=None, threshold_size=None): ''' :param git_folder: Location of...
PypiClean
/MetaSBT-0.1.2.tar.gz/MetaSBT-0.1.2/metasbt/modules/utils.py
__author__ = "Fabio Cumbo (fabio.cumbo@gmail.com)" __version__ = "0.1.0" __date__ = "Apr 28, 2023" import argparse as ap import errno import logging import os import re import shutil import subprocess import sys import tempfile from ast import literal_eval from collections.abc import Callable from logging import Logge...
PypiClean
/Flask_AdminLTE3-1.0.9-py3-none-any.whl/flask_adminlte3/static/plugins/moment/locale/en-gb.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
/Flask-MDEditor-0.1.4.tar.gz/Flask-MDEditor-0.1.4/flask_mdeditor/static/mdeditor/js/lib/codemirror/addon/selection/mark-selection.js
// Because sometimes you need to mark the selected *text*. // // Adds an option 'styleSelectedText' which, when enabled, gives // selected text the CSS class given as option value, or // "CodeMirror-selectedtext" when the value is not a string. (function(mod) { if (typeof exports == "object" && typeof module == "ob...
PypiClean
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dijit/form/_AutoCompleterMixin.js.uncompressed.js
define("dijit/form/_AutoCompleterMixin", [ "dojo/_base/connect", // keys keys.SHIFT "dojo/data/util/filter", // patternToRegExp "dojo/_base/declare", // declare "dojo/_base/Deferred", // Deferred.when "dojo/dom-attr", // domAttr.get "dojo/_base/event", // event.stop "dojo/keys", "dojo/_base/lang", // lang.clone...
PypiClean
/Kr0nOs-3.4.1.tar.gz/Kr0nOs-3.4.1/kronbot/core/bot.py
import asyncio import contextlib import inspect import logging import os import platform import re import shutil import sys from collections import namedtuple from datetime import datetime from enum import IntEnum from importlib.machinery import ModuleSpec from pathlib import Path from types import MappingProxyType fro...
PypiClean
/AutoRequirements-0.1.0.tar.gz/AutoRequirements-0.1.0/src/__init__.py
from os import name as _name, system as _system, get_terminal_size as _terminal_size, terminal_size from sys import stdout as _stdout from time import sleep as _sleep from threading import Thread as _thread if _name == 'nt': from ctypes import c_int, c_byte, Structure, byref, windll class _CursorInfo(Structu...
PypiClean
/HSTools-0.0.3-py3-none-any.whl/hstools/funcs/describe.py
import sys import json import yaml import argparse from itertools import groupby from hstools import hydroshare, log logger = log.logger def get_tree(group, items, path): sep = lambda i: i.split('/', 1) head = [i for i in items if len(sep(i)) == 2] tail = [i for i in items if len(sep(i)) == 1] gv = ...
PypiClean
/Faker-19.3.1.tar.gz/Faker-19.3.1/faker/providers/lorem/cs_CZ/__init__.py
from typing import Dict from .. import Provider as LoremProvider class Provider(LoremProvider): """Implement lorem provider for ``cs_CZ`` locale. Word list is drawn from the SYN2015. (representative corpus of contemporary written Czech published in December 2015) The word list is a list of the 2000...
PypiClean
/GRR-M2Crypto-0.22.6.tar.gz/GRR-M2Crypto-0.22.6/M2Crypto/httpslib.py
import string, sys import socket from urlparse import urlsplit, urlunsplit import base64 from httplib import * from httplib import HTTPS_PORT # This is not imported with just '*' import SSL class HTTPSConnection(HTTPConnection): """ This class allows communication via SSL using M2Crypto. """ default...
PypiClean
/Flask_AdminLTE3-1.0.9-py3-none-any.whl/flask_adminlte3/static/plugins/ekko-lightbox/ekko-lightbox.js
+function ($) { 'use strict'; var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; ...
PypiClean
/Dooders-0.0.3.tar.gz/Dooders-0.0.3/dooders/sdk/utils/short_id.py
"""Concise UUID generation.""" import binascii import math import os import uuid as _uu from typing import List, Optional def int_to_string( number: int, alphabet: List[str], padding: Optional[int] = None ) -> str: """ Convert a number to a string, using the given alphabet. The output has the most si...
PypiClean
/FastNLP-1.0.1.tar.gz/FastNLP-1.0.1/fastNLP/io/loader/conll.py
__all__ = [ "ConllLoader", "Conll2003Loader", "Conll2003NERLoader", "OntoNotesNERLoader", "CTBLoader", "CNNERLoader", "MsraNERLoader", "WeiboNERLoader", "PeopleDailyNERLoader" ] import glob import os import random import shutil import time from typing import List from .loader impor...
PypiClean
/BOHB_HPO-0.5.2.tar.gz/BOHB_HPO-0.5.2/README.md
Bayesian Optimization Hyperband Hyperparameter Optimization =========================================================== Implementation for [BOHB](http://proceedings.mlr.press/v80/falkner18a.html) ## Requirements - numpy - scipy - statsmodels - dask - torch (example) ## Installation ```bash pip3 i...
PypiClean
/AIKIF-0.2.2.tar.gz/AIKIF-0.2.2/aikif/toolbox/interface_windows_tools.py
import os try: import win32gui except Exception as ex: print('Cant import win32gui (probably CI build on linux)' + str(ex)) try: import win32con except Exception as ex: print('Cant import win32gui (probably CI build on linux)') try: import win32api except Exception as ex: print('Cant import ...
PypiClean
/Flashcards%20Terminal%20App-0.0.1.tar.gz/Flashcards Terminal App-0.0.1/flashcardscode/main.py
import accountlogin import studyoptions import setcreation as sc import deletion import config as cg def menu_input(): option = -1 while True: option = input('\nEnter 1-7: ') try: if 1 <= int(option) <= 7: break else: print('Error: Please enter a number 1-7') except: p...
PypiClean
/GeneLearn-0.0.0.tar.gz/GeneLearn-0.0.0/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 JS is _stemmer.js if file is provided */ /** * Porter Stemmer */ var Stemm...
PypiClean
/AeroSandbox-4.1.1.tar.gz/AeroSandbox-4.1.1/aerosandbox/numpy/rotations.py
from aerosandbox.numpy import sin, cos, linalg from aerosandbox.numpy.array import array import numpy as _onp from typing import Union, List def rotation_matrix_2D( angle, as_array: bool = True, ): """ Gives the 2D rotation matrix associated with a counterclockwise rotation about an angle. ...
PypiClean
/MR-OCTOPUS-0.2.7.tar.gz/MR-OCTOPUS-0.2.7/OCTOPUS/recon/imtransforms.py
import numpy.fft as npfft import numpy as np import pynufft from math import pi def im2ksp(M, cartesian_opt, NufftObj=None, params=None): '''Image to k-space transformation Parameters ---------- M : numpy.ndarray Image data cartesian_opt : int Cartesian = 1, Non-Cartesian = 0. ...
PypiClean
/Annalist-0.5.18.tar.gz/Annalist-0.5.18/annalist_root/utils/uri_builder.py
from __future__ import unicode_literals from __future__ import absolute_import, division, print_function __author__ = "Graham Klyne (GK@ACM.ORG)" __copyright__ = "Copyright 2014, G. Klyne" __license__ = "MIT (http://opensource.org/licenses/MIT)" import logging log = logging.getLogger(__name__) import re ...
PypiClean
/Cactus-3.3.3.tar.gz/Cactus-3.3.3/cactus/utils/helpers.py
import hashlib from functools import partial import six class CaseInsensitiveDict(dict): def __init__(self, obj = None, **kwargs): if obj is not None: if isinstance(obj, dict): for k, v in obj.items(): self[k] = v else: for k, v ...
PypiClean
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dijit/MenuBar.js.uncompressed.js
require({cache:{ 'url:dijit/templates/MenuBar.html':"<div class=\"dijitMenuBar dijitMenuPassive\" data-dojo-attach-point=\"containerNode\" role=\"menubar\" tabIndex=\"${tabIndex}\" data-dojo-attach-event=\"onkeypress: _onKeyPress\"></div>\n"}}); define("dijit/MenuBar", [ "dojo/_base/declare", // declare "dojo/_base/...
PypiClean
/DLTKDL-51.0.8-py3-none-any.whl/dltkdl/text/shallownlp/ner.py
from .imports import * class NER: def __init__(self, lang='en', predictor_path=None): """ pretrained NER. Only English and Chinese are currenty supported. Args: lang(str): Currently, one of {'en', 'zh', 'ru'}: en=English , zh=Chinese, or ru=Russian """ if...
PypiClean
/LARRY_dataset-0.0.2rc0-py3-none-any.whl/larry/_analysis/_growth_rate_grouped_violin_plot.py
__module_name__ = "_violin_plot.py" __author__ = ", ".join(["Michael E. Vinyard"]) __email__ = ", ".join(["vinyard@g.harvard.edu"]) # import packages: ------------------------------------------------------------ import matplotlib.pyplot as plt import vinplots import numpy as np import anndata # data prep function: ...
PypiClean
/Mathics_Django-6.0.0-py3-none-any.whl/mathics_django/web/media/js/mathjax/README.md
# MathJax <img alt="GitHub package.json version (branch)" src="https://img.shields.io/github/package-json/v/mathjax/MathJax/legacy-v2.svg"> ## Beautiful math in all browsers MathJax is an open-source JavaScript display engine for LaTeX, MathML, and AsciiMath notation that works in all modern browsers. It was design...
PypiClean
/HydroSensorReader-1.7.6.tar.gz/HydroSensorReader-1.7.6/docs/README.md
# HydroSensorReader [![Python 3.6](https://img.shields.io/badge/python-3.6-blue.svg)](https://www.python.org/downloads/release/python-360/) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![pypi version](https://img.shields.io/pypi/v/HydroSensorReader.svg)]...
PypiClean
/FFC-2017.1.0.tar.gz/FFC-2017.1.0/ffc/wrappers.py
# Copyright (C) 2010-2016 Anders Logg # # This file is part of FFC. # # FFC 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, either version 3 of the License, or # (at your option) any later version. # #...
PypiClean
/Authlib-1.2.1.tar.gz/Authlib-1.2.1/authlib/integrations/base_client/async_app.py
import time import logging from authlib.common.urls import urlparse from .errors import ( MissingRequestTokenError, MissingTokenError, ) from .sync_app import OAuth1Base, OAuth2Base log = logging.getLogger(__name__) __all__ = ['AsyncOAuth1Mixin', 'AsyncOAuth2Mixin'] class AsyncOAuth1Mixin(OAuth1Base): a...
PypiClean
/Cantonese-1.0.7-py3-none-any.whl/src/can_parser.py
from src.keywords import * import src.can_ast as can_ast class ParserBase(object): def __init__(self, token_list : list) -> None: self.pos = 0 self.tokens = token_list def look_ahead(self, step = 1) -> list: return self.tokens[self.pos + step] def current(self) -> list: re...
PypiClean
/Firefly%20III%20API%20Python%20Client-1.5.6.post2.tar.gz/Firefly III API Python Client-1.5.6.post2/firefly_iii_client/model/autocomplete_object_group.py
import re # noqa: F401 import sys # noqa: F401 from firefly_iii_client.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, ModelSimple, cached_property, change_keys_js_to_python, convert_js_args_to_python_args, date, datetime, file_type, none_type,...
PypiClean
/Benker-0.5.4.tar.gz/Benker-0.5.4/benker/box.py
u""" Box === A *Box* is a rectangular area defined by two coordinates: - the top-left corner of the rectangle: the *min* coord, - the bottom-right corner of the rectangle: the *max* coord. .. doctest:: box_demo :hide: >>> from benker.box import Box >>> from benker.coord import Coord To instantiate a :c...
PypiClean
/Netfoll_TL-2.0.1-py3-none-any.whl/netfoll_tl/tl/custom/adminlogevent.py
from ...tl import types from ...utils import get_input_peer class AdminLogEvent: """ Represents a more friendly interface for admin log events. Members: original (:tl:`ChannelAdminLogEvent`): The original :tl:`ChannelAdminLogEvent`. entities (`dict`): A dictionary...
PypiClean
/3ETool-0.8.3.tar.gz/3ETool-0.8.3/README.md
# 3ETool __3ETool__ contains some useful tools developed by the [SERG research group](https://www.dief.unifi.it/vp-177-serg-group-english-version.html) of the [University of Florence](https://www.unifi.it/changelang-eng.html) for performing exergo-economic and exergo environmental analysis. The __user manual__ can be...
PypiClean
/Flask-PagedList-0.2.1.zip/Flask-PagedList-0.2.1/README.rst
Flask-PagedList =============== Flask-PagedList bundles features from pypagedlist into a blueprint named 'PagedList'. Installation ------------ Flask-PagedList can be installed using ``pip`` from `PyPI`_. `virtualenv`_ is highly recommended: .. code-block:: bash pip install -U flask-pagedlist .. _PyPI: https:...
PypiClean
/5gasp_cli-0.4.0.tar.gz/5gasp_cli-0.4.0/src/DescriptorParser/parser.py
import yaml from typing import List class ConnectionPointsParser: """ Injected Tags Parser Class """ validated_connection_points = None _interfaces = None def __init__(self, nsd_filepaths: List[str]): """ Constructor """ self.base_nsd_filepaths = set(nsd_filep...
PypiClean
/MDP-3.6.tar.gz/MDP-3.6/mdp/graph/graph.py
from builtins import map from builtins import object # inspired by some code by Nathan Denny (1999) # see http://www.ece.arizona.edu/~denny/python_nest/graph_lib_1.0.1.html try: # use reduce against BDFL's will even on python > 2.6 from functools import reduce except ImportError: pass class GraphException...
PypiClean
/Muntjac-1.1.2.tar.gz/Muntjac-1.1.2/muntjac/addon/colorpicker/color_picker_popup.py
import sys import traceback from colorsys import hsv_to_rgb from muntjac.ui.window import Window from muntjac.ui.button import IClickListener, Button from muntjac.ui.tab_sheet import TabSheet from muntjac.ui.vertical_layout import VerticalLayout from muntjac.addon.colorpicker.color import Color from muntjac.addon...
PypiClean
/MergePythonSDK.ticketing-2.2.2-py3-none-any.whl/MergePythonSDK/ats/model/issue.py
import re # noqa: F401 import sys # noqa: F401 from typing import ( Optional, Union, List, Dict, ) from MergePythonSDK.shared.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, ModelSimple, cached_property, OpenApiModel, change_keys_js_to_python,...
PypiClean
/NotebookProv-0.3.tar.gz/NotebookProv-0.3/notebookprov/NotebookProvenance.py
import sys import inspect import parser import logging import ast import copy import csv #logging.basicConfig(level=logging.DEBUG) logging.basicConfig(level=logging.INFO) class NotebookRecorder(): __instance = None @staticmethod def getInstance(): """ Static access method. """ if Noteboo...
PypiClean
/FireWorks-2.0.3.tar.gz/FireWorks-2.0.3/fireworks/core/launchpad.py
import datetime import json import os import random import shutil import time import traceback import warnings from collections import defaultdict from itertools import chain import gridfs from bson import ObjectId from monty.os.path import zpath from monty.serialization import loadfn from pymongo import ASCENDING, DE...
PypiClean
/NebulasSdkPy-0.4.0.tar.gz/NebulasSdkPy-0.4.0/nebpysdk/src/proto/generated/google/protobuf/internal/wire_format.py
__author__ = 'robinson@google.com (Will Robinson)' import struct from google.protobuf import descriptor from google.protobuf import message TAG_TYPE_BITS = 3 # Number of bits used to hold type info in a proto tag. TAG_TYPE_MASK = (1 << TAG_TYPE_BITS) - 1 # 0x7 # These numbers identify the wire type of a protocol ...
PypiClean
/KiKit-1.3.0-py3-none-any.whl/kikit/common.py
from __future__ import annotations from typing import List, Optional, Tuple, Union, Callable from kikit.defs import Layer from kikit.typing import Box from pcbnewTransition import pcbnew, isV7 from kikit.intervals import AxialLine from pcbnewTransition.pcbnew import BOX2I, VECTOR2I, EDA_ANGLE import os from itertools i...
PypiClean
/Newcalls-0.0.1-cp37-cp37m-win_amd64.whl/newcalls/node_modules/@mapbox/node-pre-gyp/lib/util/compile.js
'use strict'; module.exports = exports; const fs = require('fs'); const path = require('path'); const win = process.platform === 'win32'; const existsSync = fs.existsSync || path.existsSync; const cp = require('child_process'); // try to build up the complete path to node-gyp /* priority: - node-gyp on ENV:npm_con...
PypiClean
/Flask-Sessionstore-0.4.5.tar.gz/Flask-Sessionstore-0.4.5/README.md
Flask-Sessionstore ================== [![Build Status](https://travis-ci.org/mcrowson/flask-sessionstore.svg?branch=master)](https://travis-ci.org/mcrowson/flask-sessionstore) [![Documentation Status](https://readthedocs.org/projects/flask-sessionstore/badge/?version=latest)](http://flask-sessionstore.readthedocs.io/en...
PypiClean
/CSUMMDET-1.0.23.tar.gz/CSUMMDET-1.0.23/mmdet/models/anchor_heads/fovea_head.py
import torch import torch.nn as nn from mmcv.cnn import normal_init from mmdet.core import multi_apply, multiclass_nms from mmdet.ops import DeformConv from ..builder import build_loss from ..registry import HEADS from ..utils import ConvModule, bias_init_with_prob INF = 1e8 class FeatureAlign(nn.Module): def ...
PypiClean
/AltAnalyze-2.1.3.15.tar.gz/AltAnalyze-2.1.3.15/altanalyze/stats_scripts/ICGS_NMF.py
#Copyright 2017 Cincinnati Children's Hospital Medical Center, Research Foundation #Author Meenakshi Venkatasubramanian - altanalyze@gmail.com #Permission is hereby granted, free of charge, to any person obtaining a copy #of this software and associated documentation files (the "Software"), to deal #in the Software...
PypiClean
/CLAM-3.2.6.tar.gz/CLAM-3.2.6/clam/clients/textstats.py
import sys import os import time import glob import random import codecs #We may need to do some path magic in order to find the clam.* imports sys.path.append(sys.path[0] + '/../../') os.environ['PYTHONPATH'] = sys.path[0] + '/../../' #Import the CLAM Client API and CLAM Data API and other dependencies from clam.co...
PypiClean
/JBS_dsnd_distributions-0.1.tar.gz/JBS_dsnd_distributions-0.1/JBS_dsnd_distributions/Binomialdistribution.py
import math import matplotlib.pyplot as plt from .Generaldistribution import Distribution class Binomial(Distribution): """ Binomial distribution class for calculating and visualizing a Binomial distribution. Attributes: mean (float) representing the mean value of the distribution std...
PypiClean
/Dabo-0.9.16.tar.gz/Dabo-0.9.16/dabo/ui/uiwx/dHyperLink.py
import wx import wx.lib.hyperlink as hyperlink import dabo from dabo.dLocalize import _ from dabo.ui import makeDynamicProperty if __name__ == "__main__": dabo.ui.loadUI("wx") import dControlMixin as dcm import dabo.dEvents as dEvents import dabo.dColors as dColors from alignmentMixin import AlignmentMixin class dH...
PypiClean
/FMPy-0.3.11-py3-none-any.whl/fmpy/gui/MainWindow.py
from os.path import dirname try: from . import compile_resources compile_resources() except Exception as e: print("Failed to compiled resources. %s" % e) import os import sys from PyQt5.QtCore import QCoreApplication, QDir, Qt, pyqtSignal, QUrl, QSettings, QPoint, QTimer, QStandardPaths, \ QPointF, Q...
PypiClean
/Eskapade_Spark-1.0.0-py3-none-any.whl/eskapadespark/tutorials/esk606_convert_spark_df.py
import pyspark from eskapade import process_manager, ConfigObject, DataStore, Chain from eskapade.logger import Logger from eskapadespark import SparkManager, SparkDfConverter logger = Logger() logger.debug('Now parsing configuration file esk606_convert_spark_df.') ##################################################...
PypiClean
/Gletscher-0.0.1.tar.gz/Gletscher-0.0.1/gletscher/config.py
import logging import os import uuid import configparser from Crypto import Random from gletscher.crypto import Crypter from gletscher import hex class BackupConfiguration(object): @staticmethod def _Prompt(prompt, verifier): while True: line = input("%s: " % prompt) try: ...
PypiClean
/Babel-Thrive-1.11.tar.gz/Babel-Thrive-1.11/json_extractor.py
from collections import deque from babel.messages.jslexer import tokenize, unquote_string # This helper is copied to all necessary files because once again python imports are being a pain def reopen_normal_read(file_obj, encoding): """Re-open a file obj in plain read mode""" return open(file_obj.name, "r", en...
PypiClean
/BetterScratchAPI-0.1.3.tar.gz/BetterScratchAPI-0.1.3/betterscratchapi/user.py
try: import requests except ModuleNotFoundError: exit("Could not import the requests module!") import warnings class user: # Allow Defining User, Ex. Command: u = user("ScratchToolBox") def __init__(self, u): self.user = u # Get User ID (integer) Ex. 44834297 def id(self): URL...
PypiClean
/ITI1480A-linux-3.0.tar.gz/ITI1480A-linux-3.0/README.rst
User-space driver and tools for ITI1480A USB analyser. Home: http://github.com/vpelletier/ITI1480A-linux Disclaimer ========== I am not affiliated with International Test Instruments in any way. ITI kindly accepted that I start reverse-engineering their windows-only software so I could use with Linux the I bought fr...
PypiClean
/mrv-1.0.2-stable.zip/mrv-1.0.2-stable/mrv/maya/scene.py
__docformat__ = "restructuredtext" import util as mutil import mrv.util as util import maya.OpenMaya as api import maya.cmds as cmds from mrv.path import make_path import inspect __all__ = [ 'Scene' ] class _SceneEvent( mutil.CallbackEventBase ): """ Implements Scene Callbacks""" _checkCBSet = set( ( api.MScen...
PypiClean
/Datargsing-0.2.15-py3-none-any.whl/datargsing/datargsing.py
from datargsing.datargsing_core import datargsing_Complete, datargsing_Error, JSON_Manage as jmC, CSV_Manage as cmC, CSV_JSON_Convert as cjcC from datargsing.datargsing_tools import datargsing_Failure, Datargsing_Engine from random import randint from datargsing.datargsing_version import __version__ class CSV_JSON_Man...
PypiClean
/CudaPyInt-0.0.1.tar.gz/CudaPyInt-0.0.1/doc/build/html/_static/websupport.js
(function($) { $.fn.autogrow = function() { return this.each(function() { var textarea = this; $.fn.autogrow.resize(textarea); $(textarea) .focus(function() { textarea.interval = setInterval(function() { $.fn.autogrow.resize(textarea); }, 500); }) .blur(fu...
PypiClean
/6D657461666C6F77-0.0.17.tar.gz/6D657461666C6F77-0.0.17/metaflow/multicore_utils.py
import sys import os import traceback from itertools import islice from multiprocessing import cpu_count from tempfile import NamedTemporaryFile try: # Python 2 import cPickle as pickle except: # Python 3 import pickle # This module reimplements select functions from the standard # Python multiprocess...
PypiClean
/BitGlitter-2.0.0.tar.gz/BitGlitter-2.0.0/bitglitter/read/scan/scanutilities.py
import numpy import math def return_distance(raw_frame_rgb, expected_value): return math.sqrt(((raw_frame_rgb[0] - expected_value[0]) ** 2) + ((raw_frame_rgb[1] - expected_value[1]) ** 2) + ((raw_frame_rgb[2] - expected_value[2]) ** 2)) def color_snap(raw_frame_rgb, palette_color_list): ...
PypiClean
/BlueWhale3_Bioinformatics-4.1.32-py3-none-any.whl/orangecontrib/bioinformatics/widgets/OWdictyExpress.py
from typing import Optional from requests.exceptions import ConnectionError from AnyQt.QtGui import QFont from AnyQt.QtCore import Qt, QSize from AnyQt.QtWidgets import QLabel, QTreeWidget, QTreeWidgetItem from Orange.data import Table, StringVariable from Orange.widgets import gui, settings from Orange.widgets.widg...
PypiClean
/ChecklistDSL-0.0.1.alpha.3.tar.gz/ChecklistDSL-0.0.1.alpha.3/checklistdsl/lex.py
import re class Token(object): """ Represents a token matched by the lexer. """ def __init__(self, token, value, roles=None, size=None): """ token - the type of token this is. value - the matched value. roles - named roles who have authority to action the item. ...
PypiClean
/LFPy-2.3.tar.gz/LFPy-2.3/examples/bioRxiv281717/figure_7_8/example_parallel_network_parameters.py
import matplotlib import os if 'DISPLAY' not in os.environ.keys(): matplotlib.use('agg') import os import numpy as np from scipy import stats from glob import glob import json from parameters import ParameterSet from mpi4py import MPI import neuron import sys from urllib.request import urlopen from example_parallel...
PypiClean
/DeepPhysX.Sofa-22.12.1.tar.gz/DeepPhysX.Sofa-22.12.1/examples/demos/Liver/FC/dataset.py
import os import sys # DeepPhysX related imports from DeepPhysX.Core.Pipelines.BaseDataGeneration import BaseDataGeneration from DeepPhysX.Core.Database.BaseDatabaseConfig import BaseDatabaseConfig from DeepPhysX.Sofa.Environment.SofaEnvironmentConfig import SofaEnvironmentConfig # Session related imports from downlo...
PypiClean
/EARL-pytorch-0.5.1.tar.gz/EARL-pytorch-0.5.1/rlgym/utils/state_setters/random_state.py
from rlgym.utils.state_setters import StateSetter from rlgym.utils.state_setters import StateWrapper from rlgym.utils.math import rand_vec3 import numpy as np from numpy import random as rand X_MAX = 7000 Y_MAX = 9000 Z_MAX_BALL = 1850 Z_MAX_CAR = 1900 PITCH_MAX = np.pi/2 YAW_MAX = np.pi ROLL_MAX = np.pi class Rando...
PypiClean
/observations-0.1.4.tar.gz/observations-0.1.4/observations/r/nass_cds.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 nass_cds(path): """Airbag and other influences on accident fatalities US data, for 1997-20...
PypiClean
/Oasys-Canvas-Core-1.0.7.tar.gz/Oasys-Canvas-Core-1.0.7/orangecanvas/application/schemeinfo.py
import six from PyQt5.QtWidgets import ( QWidget, QDialog, QLabel, QTextEdit, QCheckBox, QFormLayout, QVBoxLayout, QHBoxLayout, QDialogButtonBox, QSizePolicy ) from PyQt5.QtCore import Qt from ..gui.lineedit import LineEdit from ..gui.utils import StyledWidget_paintEvent, StyledWidget class SchemeInfoEdit(...
PypiClean
/EnergyCapSdk-8.2304.4743.tar.gz/EnergyCapSdk-8.2304.4743/energycap/sdk/models/calculate_savings_request_py3.py
from msrest.serialization import Model class CalculateSavingsRequest(Model): """CalculateSavingsRequest. :param bill_selection_option: Determines which option will be used to select the bills for this instance of the cost avoidance processor to process - "AllBills" means all bills will be pro...
PypiClean
/ESMValTool_sample_data-0.0.3-py3-none-any.whl/esmvaltool_sample_data/__init__.py
from pathlib import Path import cf_units import iris base_dir = Path(__file__).parent VERBOSE = False # This ignore list is used to help with debugging only # for a more permanent solution, add # problematic datasets the `ignore` section in `../datasets.yml`. ignore_list = [ # 'CMIP6/CMIP/AWI/AWI-ESM-1-1-LR/his...
PypiClean
/EnergySystemModels-0.1.17.post63-py3-none-any.whl/NodeEditor/nodeeditor/node_graphics_view.py
from PyQt5.QtWidgets import QGraphicsView, QApplication from PyQt5.QtCore import * from PyQt5.QtGui import * from NodeEditor.nodeeditor.node_graphics_socket import QDMGraphicsSocket from NodeEditor.nodeeditor.node_graphics_edge import QDMGraphicsEdge from NodeEditor.nodeeditor.node_edge_dragging import EdgeDragging fr...
PypiClean
/GraphQL_core_next-1.1.1-py3-none-any.whl/graphql/language/print_location.py
import re from typing import Optional, Tuple, cast from .ast import Location from .location import SourceLocation, get_location from .source import Source __all__ = ["print_location", "print_source_location"] def print_location(location: Location) -> str: """Render a helpful description of the location in the ...
PypiClean
/Cohen-0.7.4.tar.gz/Cohen-0.7.4/coherence/transcoder.py
# Licensed under the MIT license # http://opensource.org/licenses/mit-license.php # Copyright 2008, Frank Scholz <coherence@beebits.net> """ transcoder classes to be used in combination with a Coherence MediaServer using GStreamer pipelines for the actually work and feeding the output into a http respon...
PypiClean
/CodeIntel-2.0.0b19-cp34-cp34m-macosx_10_12_x86_64.whl/codeintel/codeintel2/lib_srcs/node.js/0.6/tls.js
var tls = {}; /** * Creates a new tls.Server. * @param options * @param secureConnectionListener * @returns {tls.Server} a new tls.Server */ tls.createServer = function(options, secureConnectionListener) {} /** * Creates a new client connection to the given port and host. (If host * defaults to localhost.) opt...
PypiClean
/Bluebook-0.0.1.tar.gz/Bluebook-0.0.1/pylot/component/static/pylot/vendor/mdeditor/bower_components/codemirror/mode/less/less.js
CodeMirror.defineMode("less", function(config) { var indentUnit = config.indentUnit, type; function ret(style, tp) {type = tp; return style;} var selectors = /(^\:root$|^\:nth\-child$|^\:nth\-last\-child$|^\:nth\-of\-type$|^\:nth\-last\-of\-type$|^\:first\-child$|^\:last\-child$|^\:first\-of\-type$|^\:last\-of\-...
PypiClean
/DeepCell-CPU-0.12.9.tar.gz/DeepCell-CPU-0.12.9/deepcell/image_generators/__init__.py
import warnings import numpy as np from tensorflow.keras import backend as K from tensorflow.keras.utils import to_categorical from deepcell.utils import transform_utils def _transform_masks(y, transform, data_format=None, **kwargs): """Based on the transform key, apply a transform function to the masks. ...
PypiClean
/Flask_AdminLTE3-1.0.9-py3-none-any.whl/flask_adminlte3/static/plugins/jquery-validation/localization/messages_nl.js
(function( factory ) { if ( typeof define === "function" && define.amd ) { define( ["jquery", "../jquery.validate"], factory ); } else if (typeof module === "object" && module.exports) { module.exports = factory( require( "jquery" ) ); } else { factory( jQuery ); } }(function( $ ) { /* * Translated default ...
PypiClean
/ESMValCore-2.9.0rc1.tar.gz/ESMValCore-2.9.0rc1/esmvalcore/preprocessor/_io.py
import copy import logging import os import shutil import warnings from itertools import groupby from warnings import catch_warnings, filterwarnings import iris import iris.aux_factory import iris.exceptions import yaml from cf_units import suppress_errors from esmvalcore.exceptions import ESMValCoreDeprecationWarnin...
PypiClean
/Homie4-0.4.0.tar.gz/Homie4-0.4.0/homie/mqtt/mqtt_base.py
#from homie.support.network_information import Network_Information #network_info = Network_Information() import logging logger = logging.getLogger(__name__) class MQTT_Base(object): def __init__(self, mqtt_settings, last_will): logger.debug("MQTT client Settings {}".format(mqtt_settings)) sel...
PypiClean
/NEURON_gpu_nightly-8.2a7-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/neuron/rxd/dimension3.py
import bisect import numpy from .geometry3d.graphicsPrimitives import Cylinder, Cone from neuron import h # TODO: remove indirection (e.g. use _h_x3d instead of h.x3d) def centroids_by_segment(sec): """ given a section, returns a dictionary whose entries are lists of cylinders of radius 0 that should be ...
PypiClean
/Emonic-1.0.1.tar.gz/Emonic-1.0.1/emonic/contrib/BaseModal.py
from werkzeug.exceptions import HTTPException, NotFound from werkzeug.utils import send_from_directory, safe_join from ..core.branch import Emonic, Response, json, SharedDataMiddleware, Environment, FileSystemLoader, url_encode, Map, base64, os from ..globals import csrf from urllib.parse import urljoin, urlencode app...
PypiClean
/MolVS-0.1.1.tar.gz/MolVS-0.1.1/CONTRIBUTING.rst
Contributing ============ .. sectionauthor:: Matt Swain <m.swain@me.com> Contributions of any kind are greatly appreciated! Feedback -------- The `Issue Tracker`_ is the best place to post any feature ideas, requests and bug reports. The following are especially welcome: - General feedback on whether any standard...
PypiClean
/DLMS_SPODES-0.40.11.tar.gz/DLMS_SPODES-0.40.11/src/DLMS_SPODES/hdlc/frame.py
from __future__ import annotations from abc import ABC, abstractmethod from struct import unpack, pack from functools import cached_property from typing import Deque from enum import IntFlag import logging logger = logging.getLogger(__name__) logger.level = logging.INFO _FLAG: int = 0x7e class NotEnoughDataError(Ex...
PypiClean
/NehorayRapid-0.0.1-py3-none-any.whl/mmedit/models/common/contextual_attention.py
from functools import partial import torch import torch.nn as nn import torch.nn.functional as F class ContextualAttentionModule(nn.Module): """Contexture attention module. The details of this module can be found in: Generative Image Inpainting with Contextual Attention Args: unfold_raw_ker...
PypiClean
/FAST-2.5.tar.gz/FAST-2.5/server/dbload/README
Stefan Chakerian Notes on tables.sql tables.sql has the table structures. The fields are fairly self-explanatory. If the field names of different tables are the same, chances are good that one table (e.g. scenario_id in the study table) is designed to reference the other table with joins. You should run mysql to...
PypiClean
/MetaCerberus-1.1.tar.gz/MetaCerberus-1.1/lib/metacerberus_parser.py
def warn(*args, **kwargs): pass import warnings warnings.warn = warn import os from pathlib import Path import pandas as pd def parseHmmer(hmm_tsv, config, subdir): path = Path(config['DIR_OUT'], subdir) path.mkdir(exist_ok=True, parents=True) done = path / "complete" if not config['REPLACE'] an...
PypiClean
/CodeIntel-2.0.0b19-cp34-cp34m-macosx_10_12_x86_64.whl/codeintel/kotaclib.py
from __future__ import absolute_import import re class KoTACSearch(object): """Base class for all KoTAC*Search classes. All bases classes must override: - all _reg_*_ and _com_interfaces_ attributes - startSearch() method Utility methods: - parseSearchParam() """ #_com_i...
PypiClean
/EDA-assistant-0.0.4.tar.gz/EDA-assistant-0.0.4/eda_assistant/eda_assistant.py
import pandas as pd import matplotlib.pyplot as plt from matplotlib.backends.backend_pdf import PdfPages from eda_assistant import _create_tables from eda_assistant import _create_graphs from eda_assistant import _format_eda_report import os import webbrowser class EDA: """ A class representing an instance of...
PypiClean
/FLORIS-3.4.1.tar.gz/FLORIS-3.4.1/floris/tools/optimization/legacy/scipy/yaw_wind_rose_clustered.py
# Licensed under the Apache License, Version 2.0 (the "License"); you may not # use this file except in compliance with the License. You may obtain a copy of # the License at http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the Licens...
PypiClean
/Js2Py-0.74.tar.gz/Js2Py-0.74/js2py/internals/constructors/jsdate.py
from ..base import * from .time_helpers import * TZ_OFFSET = (time.altzone // 3600) ABS_OFFSET = abs(TZ_OFFSET) TZ_NAME = time.tzname[1] ISO_FORMAT = '%s-%s-%sT%s:%s:%s.%sZ' @Js def Date(year, month, date, hours, minutes, seconds, ms): return now().to_string() Date.Class = 'Date' def now(): return PyJsDa...
PypiClean
/LAMDA-SSL-1.0.2.tar.gz/LAMDA-SSL-1.0.2/LAMDA_SSL/Config/SSVAE.py
import torch.nn as nn from LAMDA_SSL.Opitimizer.Adam import Adam from LAMDA_SSL.Dataloader.UnlabeledDataloader import UnlabeledDataLoader from LAMDA_SSL.Dataloader.LabeledDataloader import LabeledDataLoader from LAMDA_SSL.Sampler.RandomSampler import RandomSampler from LAMDA_SSL.Sampler.SequentialSampler import Sequent...
PypiClean
/Flask-KQMaps-0.4.2.tar.gz/Flask-KQMaps-0.4.2/flask_kqmaps/static/kqwebclient/leaflet/include-leaflet.js
(function () { var r = new RegExp("(^|(.*?\\/))(include-leaflet\.js)(\\?|$)"), s = document.getElementsByTagName('script'), targetScript; for (var i = 0; i < s.length; i++) { var src = s[i].getAttribute('src'); if (src) { var m = src.match(r); if (m) { targetScript = s[i]; ...
PypiClean