id
stringlengths
1
265
text
stringlengths
6
5.19M
dataset_id
stringclasses
7 values
/Flask_AppBuilder-4.3.6-py3-none-any.whl/flask_appbuilder/upload.py
from flask_babel import gettext from markupsafe import Markup from werkzeug.datastructures import FileStorage from wtforms import fields, ValidationError from wtforms.widgets import html_params from .filemanager import FileManager, ImageManager try: from wtforms.fields.core import _unset_value as unset_value exce...
PypiClean
/CleanAdminDjango-1.5.3.1.tar.gz/CleanAdminDjango-1.5.3.1/django/utils/text.py
from __future__ import unicode_literals import re import unicodedata import warnings from gzip import GzipFile from io import BytesIO from django.utils.encoding import force_text from django.utils.functional import allow_lazy, SimpleLazyObject from django.utils import six from django.utils.six.moves import html_entit...
PypiClean
/Kaylee-0.3.tar.gz/Kaylee-0.3/kaylee/node.py
import time import binascii import struct import threading import hashlib from datetime import datetime from abc import ABCMeta, abstractmethod from .errors import (warn, InvalidNodeIDError, NodeNotSubscribedError, ApplicationCompletedError) from .util import parse_timedelta #: The hex string for...
PypiClean
/FastGets-0.3.5.tar.gz/FastGets-0.3.5/fastgets/web/static/dist/plugins/autoresize/plugin.js
(function () { var defs = {}; // id -> {dependencies, definition, instance (possibly undefined)} // Used when there is no 'main' module. // The name is probably (hopefully) unique so minification removes for releases. var register_3795 = function (id) { var module = dem(id); var fragments = id....
PypiClean
/Office365-REST-Python-Client-2.4.3.tar.gz/Office365-REST-Python-Client-2.4.3/office365/onedrive/termstore/sets/set.py
from office365.entity import Entity from office365.entity_collection import EntityCollection from office365.onedrive.internal.paths.children import ChildrenPath from office365.onedrive.termstore.sets.name import LocalizedName from office365.onedrive.termstore.relation import Relation from office365.onedrive.termstore.t...
PypiClean
/CheeseFramework-1.4.95-py3-none-any.whl/Cheese/cheeseTests.py
import os import sys import time from Cheese.resourceManager import ResMan from Cheese.Logger import Logger from Cheese.metadata import Metadata from Cheese.ErrorCodes import Error from Cheese.testError import * from Cheese.cheeseRepository import CheeseRepository from Cheese.mockManager import MockManager class Che...
PypiClean
/Nuitka_winsvc-1.7.10-cp310-cp310-win_amd64.whl/nuitka/build/inline_copy/lib/scons-4.3.0/SCons/Script/__init__.py
import time start_time = time.time() import collections import os from io import StringIO import sys # Special chicken-and-egg handling of the "--debug=memoizer" flag: # # SCons.Memoize contains a metaclass implementation that affects how # the other classes are instantiated. The Memoizer may add shim methods # to ...
PypiClean
/HTSplotter-2.11.tar.gz/HTSplotter-2.11/README.md
# HTSplotter HTSplotter allows an end-to-end data processing and analysis of chemical and genetic in vitro perturbation screens. It also available as a [web tool](https://htsplotter.cmgg.be/). HTSplotter is tailored to analyse drug, drug combination, genetic perturbagen and combinations of genetic-chemical perturbage...
PypiClean
/OTLModel/Classes/Afsluiter.py
from OTLMOW.OTLModel.BaseClasses.OTLAttribuut import OTLAttribuut from OTLMOW.OTLModel.Classes.LinkendElement import LinkendElement from OTLMOW.OTLModel.Datatypes.KlAfsluiterType import KlAfsluiterType from OTLMOW.OTLModel.Datatypes.KlTsklepAfsluiterMateriaal import KlTsklepAfsluiterMateriaal from OTLMOW.OTLModel.Datat...
PypiClean
/MarkdownWriter-1.1.tar.gz/MarkdownWriter-1.1/pythonToHtml/htmlwriter/HtmlTable.py
import xml.etree.ElementTree as ET class HtmlTable(): def __init__( self ): self.data = [] self.size = [0,0] self.title = "" self.alignmentList = ['left','center','right'] self.tableAlignment = "center" self.columnAlignment = [] self.columnWidth = [] self.textStyles = ['normal','italic','bold'] ...
PypiClean
/DjangoDjangoAppCenter-0.0.11-py3-none-any.whl/DjangoAppCenter/simpleui/static/admin/simpleui-x/elementui/time-picker.js
module.exports = /******/ (function (modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in ...
PypiClean
/Flaskel-3.1.0rc2-py3-none-any.whl/flaskel/standalone.py
import os import typing as t import click from vbcore import yaml from vbcore.datastruct import ObjectDict from vbcore.misc import parse_value from .builder import AppBuilder from .config import config as configurator from .wsgi import BaseApplication, DEFAULT_WSGI_SERVERS, WSGIFactory def option_as_dict(ctx, param...
PypiClean
/NotifyDesk-1.0.0.tar.gz/NotifyDesk-1.0.0/README.md
# NotifyDesk EN: The NotifyDesk library provides an easy way to send notifications in Linux. To work, notify-send is used from the libnotify-bin package, which is preinstalled on most Linux systems. The library is able to work together with QT/GTK. You can use it to output important information, to notify about an er...
PypiClean
/Catactor-0.1.2.tar.gz/Catactor-0.1.2/shell_scripts/preprocessing_one_to_multi/visualization_GSE1303990_multi.sh
set -euxo pipefail GSE=GSE1303990 sf_marker='GABAergic_markers_fc.txt,Glutamatergic_markers_fc.txt,Non.Neuronal_markers_fc.txt' ta_marker='tasic2016_gaba.csv,tasic2016_glu.csv,tasic2016_gli.csv' cu_marker='cusanovich2018_inh.txt,cusanovich2018_ext.txt,cusanovich2018_gli.txt' tn_marker='tasic2018_gaba.txt,tasic2018_glu...
PypiClean
/GQCMS-0.0.4-py3-none-any.whl/build/lib/build/lib/build/lib/gqcms/Heisenberg.py
import numpy as np import scipy.linalg as sp class heisenberg(): def __init__(self, sites, S=0.5): """ Will initialize the Heisenberg object sites: the amount of sites S: the total spin per site """ self.sites = sites self.S = S self.degeneracy = int...
PypiClean
/3to2-1.1.1.zip/3to2-1.1.1/lib3to2/main.py
from __future__ import print_function import sys import os import difflib import logging import shutil import optparse from lib2to3 import refactor from lib2to3 import pygram def diff_texts(a, b, filename): """Return a unified diff of two strings.""" a = a.splitlines() b = b.splitlines() return diffli...
PypiClean
/NVDA-addonTemplate-0.5.2.zip/NVDA-addonTemplate-0.5.2/NVDAAddonTemplate/data/{{cookiecutter.project_slug}}/scons-local-2.5.0/SCons/Tool/linkloc.py
__revision__ = "src/engine/SCons/Tool/linkloc.py rel_2.5.0:3543:937e55cd78f7 2016/04/09 11:29:54 bdbaddog" import os.path import re import SCons.Action import SCons.Defaults import SCons.Errors import SCons.Tool import SCons.Util from SCons.Tool.MSCommon import msvs_exists, merge_default_version from SCons.Tool.Pha...
PypiClean
/FlaskCms-0.0.4.tar.gz/FlaskCms-0.0.4/flask_cms/static/js/ckeditor/lang/pt-br.js
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.lang['pt-br']={"dir":"ltr","editor":"Editor de Texto","common":{"editorHelp":"Pressione ALT+0 para ajuda","browseServer":"Localizar no Servidor","url":"URL","protoco...
PypiClean
/Gluino-0.4.tar.gz/Gluino-0.4/gluino/decoder.py
import codecs, encodings """Caller will hand this library a buffer and ask it to either convert it or auto-detect the type. Based on http://code.activestate.com/recipes/52257/ Licensed under the PSF License """ # None represents a potentially variable byte. "##" in the XML spec... autodetect_dict={ # bytepattern ...
PypiClean
/AsynCluster-0.3.tar.gz/AsynCluster-0.3/asyncluster/master/jobs.py
import os.path, textwrap from zope.interface import implements from twisted.internet import defer, reactor from twisted.spread import pb from asynqueue import workers, TaskQueue class JobClient(object): """ I connect to the master TCP server via a UNIX socket and provide an interface for running jobs de...
PypiClean
/Fantastic_game_about_Sir_Foo-2.0.0.tar.gz/Fantastic_game_about_Sir_Foo-2.0.0/wargame/knight.py
from wargame.abstractgameunit import AbstractGameUnit from wargame.gameutils import print_bold class Knight(AbstractGameUnit): """ Class that represents the game character 'Knight' The player instance in the game is a Knight instance. Other Knight instances are considered as 'friends' of the player and is...
PypiClean
/kiramibot-0.2.0.tar.gz/kiramibot-0.2.0/kirami/utils/utils.py
import asyncio import inspect import json from collections.abc import Callable, Coroutine from datetime import datetime, time, timedelta, tzinfo from functools import wraps from io import BytesIO from pathlib import Path from typing import Any, Literal, ParamSpec, TypeVar, overload import arrow import yaml from flower...
PypiClean
/3DCORE-1.1.4.tar.gz/3DCORE-1.1.4/py3dcore/raytracing/raytracing.py
import itertools import multiprocessing import numba import numpy as np class Raytracing(object): def __init__(self, camera, target, angle, resolution, plane_d=0.1, mask_sun=None): """Initialize raytracing class Parameters ---------- camera_position : np.ndarray Camera...
PypiClean
/FlaskBB-2.0.2.tar.gz/FlaskBB-2.0.2/flaskbb/plugins/spec.py
from pluggy import HookspecMarker spec = HookspecMarker('flaskbb') # Setup Hooks @spec def flaskbb_extensions(app): """Hook for initializing any plugin loaded extensions.""" @spec def flaskbb_load_translations(): """Hook for registering translation folders.""" @spec def flaskbb_load_migrations(): """...
PypiClean
/AyiinXd-0.0.8-cp311-cp311-macosx_10_9_universal2.whl/fipper/types/user_and_chats/chat_privileges.py
from fipper import raw from ..object import Object class ChatPrivileges(Object): """Describes privileged actions an administrator is able to take in a chat. Parameters: can_manage_chat (``bool``, *optional*): True, if the administrator can access the chat event log, chat statistics, mess...
PypiClean
/BlueWhale3-3.31.3.tar.gz/BlueWhale3-3.31.3/CONTRIBUTING.md
Contributing ============ Thanks for taking the time to contribute to Orange! This document outlines our guidelines and standards of contributing to Orange. If anything is unclear, feel free to join our [Discord server] for a chat. Please submit contributions in accordance with the flow explained in the [GitHub Guid...
PypiClean
/GloboNetworkAPI-0.9.6.tar.gz/GloboNetworkAPI-0.9.6/networkapiclient/ApiIPv6.py
from networkapiclient.ApiGenericClient import ApiGenericClient from networkapiclient.utils import build_uri_with_ids class ApiIPv6(ApiGenericClient): def __init__(self, networkapi_url, user, password, user_ldap=None): """Class constructor receives parameters to connect to the networkAPI. :param n...
PypiClean
/Electrum-VTC-2.9.3.3.tar.gz/Electrum-VTC-2.9.3.3/packages/dns/rdtypes/ANY/RP.py
import dns.exception import dns.rdata import dns.name class RP(dns.rdata.Rdata): """RP record @ivar mbox: The responsible person's mailbox @type mbox: dns.name.Name object @ivar txt: The owner name of a node with TXT records, or the root name if no TXT records are associated with this RP. @...
PypiClean
/KolejkaCommon-0.1.202308091427-py3-none-any.whl/kolejka/common/nvidia.py
from kolejka.common import settings import logging import pathlib import subprocess import sys import xml.etree.ElementTree as ET class NvidiaSMILog: class GPULog: def __init__(self, element=None): self.id = element.get('id') self.uuid = element.find('uuid').text self....
PypiClean
/Dabo-0.9.16.tar.gz/Dabo-0.9.16/dabo/db/dConnectInfo.py
import random import dabo from dabo.lib.connParser import importConnections from dabo.dObject import dObject from dabo.dLocalize import _ from dabo.lib.SimpleCrypt import SimpleCrypt class dConnectInfo(dObject): """ Holder for the properties for connecting to the backend. Each backend may have different names for ...
PypiClean
/KFlask-AppBuilder-1.0.1.tar.gz/KFlask-AppBuilder-1.0.1/flask_appbuilder/base.py
import logging from flask import Blueprint, url_for, current_app from .views import IndexView, UtilView from .filters import TemplateFilters from .menu import Menu from .babel.manager import BabelManager from .version import VERSION_STRING from .const import LOGMSG_WAR_FAB_VIEW_EXISTS, \ LOGMSG_ERR_...
PypiClean
/Meneco-2.0.2.tar.gz/Meneco-2.0.2/README.md
# Meneco [![PyPI version](https://img.shields.io/pypi/v/meneco.svg)](https://pypi.org/project/meneco/) ## Installation Requires **Python >= 3.7** Required packages (starting from version 2.0 of the package): * [``Clyngor``](https://github.com/Aluriak/clyngor) or [``Clyngor_with_clingo``](https://github.com/Aluriak/...
PypiClean
/Dabo-0.9.16.tar.gz/Dabo-0.9.16/dabo/ui/uiwx/dPage.py
import dabo from dabo.ui import makeDynamicProperty dabo.ui.loadUI("wx") import dabo.dEvents as dEvents from dabo.dLocalize import _ class dPage(dabo.ui.dScrollPanel): """Creates a page to appear as a tab in a pageframe.""" def __init__(self, *args, **kwargs): self._caption = "" self._pendingUpdates = False s...
PypiClean
/Hatta-1.6.7.tar.gz/Hatta-1.6.7/hatta/search.py
import os import re import sqlite3 import thread import hatta.error import hatta.page class WikiSearch(object): """ Responsible for indexing words and links, for fast searching and backlinks. Uses a cache directory to store the index files. """ word_pattern = re.compile(ur"""\w[-~&\w]+\w""", re....
PypiClean
/Electrum-CHI-3.3.8.tar.gz/Electrum-CHI-3.3.8/packages/pip/_vendor/requests/exceptions.py
from pip._vendor.urllib3.exceptions import HTTPError as BaseHTTPError class RequestException(IOError): """There was an ambiguous exception that occurred while handling your request. """ def __init__(self, *args, **kwargs): """Initialize RequestException with `request` and `response` objects."...
PypiClean
/Canto-curses-0.9.9.tar.gz/Canto-curses-0.9.9/canto_curses/reader.py
from canto_next.plugins import Plugin from canto_next.hooks import on_hook, remove_hook, unhook_all from .command import register_commands, register_arg_types, unregister_all, _int_range from .theme import prep_for_display from .html import htmlparser from .text import TextBox from .tagcore import tag_updater from .c...
PypiClean
/Multiple%20smi-2.0.3.tar.gz/Multiple smi-2.0.3/README.md
# Multiple smi ### Look up GPU/CPU/RAM usage on multiple machines at the same time ! intended to work with python 3+ Based on [pyNVML](https://pypi.python.org/pypi/nvidia-ml-py3), and `psutil`. ### Features - Allows you to get `nvidia-smi` output and `pustil`information for multiple connected computers at once, and ...
PypiClean
/EnergyModels-0.0.9.tar.gz/EnergyModels-0.0.9/Energy_Models/Informer.py
from typing import Any, Callable, Dict, Optional, Tuple, Type, Union import tensorflow as tf import numpy as np from tensorflow.keras.layers import ( Activation, BatchNormalization, Conv1D, Dense, Dropout, LayerNormalization, MaxPool1D, Input, Flatten, ) class FullAttention(tf.kera...
PypiClean
/mysmile-0.7.2.tar.gz/mysmile-0.7.2/docs/source/REST API/REST API v1/Resources/Contact.rst
Contact ------- Contact resource [#f1]_ returns structured contact information such as phone, email, skype. .. tabularcolumns:: |p{2.5cm}|p{4cm}|p{8.5cm}| .. list-table:: :header-rows: 1 * - Resource - GET - Example * - /contact - list of contact data - :: { ...
PypiClean
/Flask-Security-Classic-3.0.2.tar.gz/Flask-Security-Classic-3.0.2/flask_security/forms.py
import inspect from flask import Markup, current_app, flash, request from flask_login import current_user from flask_wtf import FlaskForm as BaseForm from speaklater import make_lazy_gettext from wtforms import BooleanField, Field, HiddenField, PasswordField, \ StringField, SubmitField, ValidationError, validators...
PypiClean
/DCA-0.3.4.tar.gz/DCA-0.3.4/dca/train.py
from __future__ import absolute_import from __future__ import division from __future__ import print_function import os import random from . import io from .network import AE_types from .hyper import hyper import numpy as np import tensorflow as tf import keras.optimizers as opt from keras.callbacks import TensorBoa...
PypiClean
/IMMP-0.12.1.tar.gz/IMMP-0.12.1/immp/core/message.py
from copy import copy from datetime import datetime, timezone from enum import Enum import re from textwrap import wrap from urllib.parse import urlparse, urlunparse from .error import PlugError from .util import _no_escape, escape, pretty_str, unescape @pretty_str class User: """ Generic class to represent ...
PypiClean
/MPInterfaces-2020.6.19.tar.gz/MPInterfaces-2020.6.19/mpinterfaces/rest.py
from __future__ import division, unicode_literals """ This is essentially just a clone of the MPRester object in pymatgen with slight modifications to work with MaterialsWeb. This module provides classes to interface with the MaterialsWeb REST API v2 to enable the creation of data structures and pymatgen objects usin...
PypiClean
/Dumbdans-Adventure-0.0.2.tar.gz/Dumbdans-Adventure-0.0.2/README.md
# Dumbdan's Adventure Game ## Description #### Dumbdan's Adventure is a arcade game, made with python using the module pygame. This project was concerned because a project in the UFCG (Federal University of Campina Grande). Easy to play, and with a joyful story, Dumbdan can easly delight players of all ages. ## Syno...
PypiClean
/HavNegpy-1.2.tar.gz/HavNegpy-1.2/docs/_build/doctrees/nbsphinx/_build/doctrees/nbsphinx/_build/html/_build/html/_build/doctrees/nbsphinx/_build/html/hn_module_tutorial.ipynb
# Tutorial for the HN module of HavNegpy package ``` import numpy as np import pandas as pd import matplotlib.pyplot as plt import os import HavNegpy as dd %matplotlib qt os.chdir(r'M:\Marshall_Data\mohamed_data\mohamed_data\n44') def create_dataframe(f): col_names = ['Freq', 'T', 'Eps1', 'Eps2'] #f ...
PypiClean
/NehorayRapid1-0.0.1-py3-none-any.whl/mmedit/models/common/aspp.py
import torch from mmcv.cnn import ConvModule from torch import nn from torch.nn import functional as F from .separable_conv_module import DepthwiseSeparableConvModule class ASPPPooling(nn.Sequential): def __init__(self, in_channels, out_channels, conv_cfg, norm_cfg, act_cfg): super().__init__( ...
PypiClean
/CLEMENTDNA-1.0.4.tar.gz/CLEMENTDNA-1.0.4/CLEMENT/visualizationeachstep.py
import palettable import matplotlib import extract import numpy as np import seaborn as sns import pandas as pd from scipy.stats import kde from sklearn.decomposition import TruncatedSVD, PCA def drawfigure_1d_hard(bunch, np_vaf, output_filename, **kwargs): if kwargs["OPTION"] in ["Hard", "hard"]: matplot...
PypiClean
/EDDIE-Tool-1.0.0.tar.gz/EDDIE-Tool-1.0.0/eddietool/commands.py
__copyright__ = 'Copyright (c) Chris Miles 2008' __author__ = 'Chris Miles' __url__ = 'http://eddie-tool.psychofx.com/' __license__ = ''' 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;...
PypiClean
/Flask_AdminLTE3-1.0.9-py3-none-any.whl/flask_adminlte3/static/plugins/codemirror/mode/go/go.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
/BioFlow-0.2.3.tar.gz/BioFlow-0.2.3/bioflow/configs_manager.py
from os.path import join, abspath, expanduser import os from shutil import copy as copy_file from string import lower from bioflow.utils.general_utils.dict_like_configs_parser import ini_configs2dict, dict2init_configs from bioflow.utils.general_utils.high_level_os_io import mkdir_recursive from bioflow.utils.general_u...
PypiClean
/Gemtools-1.7.1.tar.gz/Gemtools-1.7.1/distribute_setup.py
import os import shutil import sys import time import fnmatch import tempfile import tarfile import optparse from distutils import log try: from site import USER_SITE except ImportError: USER_SITE = None try: import subprocess def _python_cmd(*args): args = (sys.executable,) + args r...
PypiClean
/EdaSpiffWorkflow-0.0.2.tar.gz/EdaSpiffWorkflow-0.0.2/EdaSpiffWorkflow_Aadesh_G/task.py
import copy import warnings from builtins import str from builtins import hex from builtins import object # Copyright (C) 2007 Samuel Abels # # This library 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 Foundatio...
PypiClean
/DrawFigure-0.0.3-py3-none-any.whl/zzz/DrawFigure.py
import matplotlib import ttkbootstrap as ttk from ttkbootstrap.constants import * matplotlib.use('TkAgg') from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg from matplotlib.figure import Figure import matplotlib.pyplot as plt import tkinter as tk from tkinter.colorchooser import * import pandas as pd impor...
PypiClean
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/editor/plugins/nls/kk/latinEntities.js
define( "dojox/editor/plugins/nls/kk/latinEntities", //begin v1.x content ({ /* These are already handled in the default RTE amp:"ampersand",lt:"less-than sign", gt:"greater-than sign", nbsp:"no-break space\nnon-breaking space", quot:"quote", */ iexcl:"аударылған леп белгісі", cent:"цент белгісі", pound:"ф...
PypiClean
/COMPAS-1.17.5.tar.gz/COMPAS-1.17.5/src/compas/datastructures/mesh/conway.py
from __future__ import print_function from __future__ import absolute_import from __future__ import division __all__ = [ "mesh_conway_dual", "mesh_conway_join", "mesh_conway_ambo", "mesh_conway_kis", "mesh_conway_needle", "mesh_conway_zip", "mesh_conway_truncate", "mesh_conway_ortho", ...
PypiClean
/MetaCalls-0.0.5-cp310-cp310-manylinux2014_x86_64.whl/metacalls/node_modules/@types/node/ts4.8/fs/promises.d.ts
declare module 'fs/promises' { import { Abortable } from 'node:events'; import { Stream } from 'node:stream'; import { ReadableStream } from 'node:stream/web'; import { BigIntStats, BufferEncodingOption, constants as fsConstants, CopyOptions, Dir, Dirent, ...
PypiClean
/Mathics3-6.0.2.tar.gz/Mathics3-6.0.2/mathics/builtin/numbers/calculus.py
from itertools import product from typing import Optional import numpy as np import sympy from mathics.algorithm.integrators import ( _fubini, _internal_adaptative_simpsons_rule, decompose_domain, eval_D_to_Integral, ) from mathics.algorithm.series import ( build_series, series_derivative, ...
PypiClean
/KratosSwimmingDEMApplication-9.2.0-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/KratosMultiphysics/SwimmingDEMApplication/derivative_recovery/derivative_recovery_strategy.py
import sys from . import recoverer from . import standard_recoverer from . import zhang_guo_recoverer from . import L2_projection_recoverer from . import pouliot_2012_recoverer from . import pouliot_2012_edge_recoverer from . import lagrangian_recoverer import weakref class DerivativeRecoveryStrategy: def __init...
PypiClean
/CloudFerry-1.55.2.tar.gz/CloudFerry-1.55.2/cloudferry/lib/utils/bases.py
import sys from cloudferry.lib.utils import utils def compute_hash(obj): """ Hash function that is able to compute hashes for lists and dictionaries. """ if isinstance(obj, dict): return hash_iterable(sorted(obj.items())) elif hasattr(obj, '__iter__'): return hash_iterable(obj) ...
PypiClean
/Exh-1.1.2.tar.gz/Exh-1.1.2/README.md
Exh ==================== You can find a Jupyter notebook tutorial *Tutorial.ipynb* under *examples/tutorial/* to get a headstart on using the library. ## Description *Exh* can represent first-order logic formula and can compute the result of applying innocent exclusion exahsutification to the formulas. Internally, i...
PypiClean
/DtCrawlEngine-1.2.6.tar.gz/DtCrawlEngine-1.2.6/engine/utils.py
import sys import os from .sqlite import JsonSqliteDict from subprocess import Popen, PIPE import six from six import iteritems from six.moves.configparser import NoSectionError import json from twisted.web import resource from engine.spiderqueue import SqliteSpiderQueue from engine.config import Config class JsonRe...
PypiClean
/INGInious-0.8.7.tar.gz/INGInious-0.8.7/inginious/frontend/static/js/codemirror/mode/apl/apl.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
/Muntjac-1.1.2.tar.gz/Muntjac-1.1.2/muntjac/public/VAADIN/widgetsets/org.muntiacus.MuntjacWidgetSet/mode/groovy/groovy.js
CodeMirror.defineMode("groovy", function(config, parserConfig) { function words(str) { var obj = {}, words = str.split(" "); for (var i = 0; i < words.length; ++i) obj[words[i]] = true; return obj; } var keywords = words( "abstract as assert boolean break byte case catch char class const continue ...
PypiClean
/Django_patch-2.2.19-py3-none-any.whl/django/contrib/admin/models.py
import json from django.conf import settings from django.contrib.admin.utils import quote from django.contrib.contenttypes.models import ContentType from django.db import models from django.urls import NoReverseMatch, reverse from django.utils import timezone from django.utils.text import get_text_list from django.uti...
PypiClean
/DjangoDjangoAppCenter-0.0.11-py3-none-any.whl/DjangoAppCenter/simpleui/static/admin/simpleui-x/elementui/alert.js
module.exports = /******/ (function (modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in ...
PypiClean
/Nuitka-1.8.tar.gz/Nuitka-1.8/nuitka/specs/BuiltinUnicodeOperationSpecs.py
"""Unicode operation specs, Python2 only. """ from .BuiltinParameterSpecs import ( BuiltinMethodParameterSpecBase, BuiltinMethodParameterSpecNoKeywordsBase, ) class UnicodeMethodSpecNoKeywords(BuiltinMethodParameterSpecNoKeywordsBase): __slots__ = () method_prefix = "unicode" class UnicodeMethodSp...
PypiClean
/Mathics_Django-6.0.0-py3-none-any.whl/mathics_django/web/media/js/mathjax/extensions/TeX/AMSsymbols.js
MathJax.Extension["TeX/AMSsymbols"]={version:"2.7.9"};MathJax.Hub.Register.StartupHook("TeX Jax Ready",function(){var a=MathJax.ElementJax.mml,b=MathJax.InputJax.TeX.Definitions;b.Add({mathchar0mi:{digamma:"03DD",varkappa:"03F0",varGamma:["0393",{mathvariant:a.VARIANT.ITALIC}],varDelta:["0394",{mathvariant:a.VARIANT.IT...
PypiClean
/Conanmail-1.0.19-py3-none-any.whl/conan/utils.py
import requests from jinja2 import Environment, FileSystemLoader from http.server import SimpleHTTPRequestHandler from config import PROVIDERS_URL, JDM_URL, WEB_PORT import json import os import imaplib from tqdm import tqdm import email import http.server import datetime import mailbox from collections import defaultd...
PypiClean
/Flask_AdminLTE3-1.0.9-py3-none-any.whl/flask_adminlte3/static/plugins/summernote/lang/summernote-cs-CZ.js
(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(); else if(typeof define === 'function' && define.amd) define([], factory); else { var a = factory(); for(var i in a) (typeof exports === 'object' ? exports : roo...
PypiClean
/Caroline-presentation-0.2.4.tar.gz/Caroline-presentation-0.2.4/caroline/html_dist/js/mathjax/input/tex/extensions/bussproofs.js
!function(r){var o={};function n(e){if(o[e])return o[e].exports;var t=o[e]={i:e,l:!1,exports:{}};return r[e].call(t.exports,t,t.exports,n),t.l=!0,t.exports}n.m=r,n.c=o,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.d...
PypiClean
/MAVR-0.93.tar.gz/MAVR-0.93/scripts/draw/draw_barplot.py
__author__ = 'Sergei F. Kliver' import argparse import numpy as np import scipy.stats as stats import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt plt.ioff() parser = argparse.ArgumentParser() parser.add_argument("-i", "--input_file", action="store", dest="input_file", help...
PypiClean
/LibRecommender-limited-0.6.6.6.tar.gz/LibRecommender-limited-0.6.6.6/libreco/algorithms/wide_deep.py
from itertools import islice import os import numpy as np import pandas as pd import tensorflow.compat.v1 as tf from tensorflow.keras.initializers import ( truncated_normal as tf_truncated_normal ) from .base import Base, TfMixin from ..data.data_generator import DataGenFeat from ..evaluation.evaluate import EvalMi...
PypiClean
/Joule-0.9.41.tar.gz/Joule-0.9.41/joule/api/session/tcp_session.py
import ssl import aiohttp import asyncio from .base_session import BaseSession from joule import errors # import logging # logging.basicConfig(filename='/home/vagrant/app.log', filemode='w', format='%(name)s - %(levelname)s - %(message)s') class TcpSession(BaseSession): def __init__(self, url: str, key: str, ca...
PypiClean
/564bff00ff_strawberry_graphql-0.168.2-py3-none-any.whl/strawberry/codegen/plugins/typescript.py
from __future__ import annotations import textwrap from typing import TYPE_CHECKING, List from strawberry.codegen import CodegenFile, QueryCodegenPlugin from strawberry.codegen.types import ( GraphQLEnum, GraphQLList, GraphQLObjectType, GraphQLOptional, GraphQLScalar, GraphQLUnion, ) if TYPE_...
PypiClean
/Bigsansar-0.1.4.tar.gz/Bigsansar-0.1.4/README.md
# How to get Bigsansar Bigsansar is available open-source under the [MIT](https://en.wikipedia.org/wiki/MIT_License) license. We recommend using the latest version of Python 3. Bigsansar is Fully based on django. You can use [bigsansar](https://bigsansar.com) for install packaged. view our tutorials in [youtube](h...
PypiClean
/KivyCalendar-0.1.3.tar.gz/KivyCalendar-0.1.3/README.rst
KivyCalendar ============ KivyCalendar is module with additional widgets for `Kivy`_: CalendarWidget and DatePicker. **CalendarWidget** based on RelativeLayout. It allow to switch months by buttons in left-top and right-top widget’s corners. .. figure:: https://lh5.googleusercontent.com/-jX3AJQrONFY/VPkMU9cQ6zI/AAAA...
PypiClean
/Kwartzite-0.0.1.tar.gz/Kwartzite-0.0.1/lib/kwartzite/parser/ElementTreeParser.py
import re try: ## cElementTree.XMLParser doesn't support 'doctype' handler #import xml.etree.cElementTree as ET import xml.etree.ElementTree as ET except ImportError: import elementtree.ElementTree as ET from kwartzite.config import ElementTreeParserConfig from kwartzite.util import OrderedDict, def...
PypiClean
/CatKit-0.5.4-py3-none-any.whl/catkit/gen/adsorption.py
from . import defaults from . import utils from . import symmetry import catkit import matplotlib.pyplot as plt import itertools import networkx as nx import numpy as np import scipy radii = defaults.get('radii') from ase import Atom, Atoms class AdsorptionSites(): """Adsorption site object.""" def __init__(...
PypiClean
/Dashboard_Probability-0.1.12-py3-none-any.whl/dashboard_probability/GuiTest1.py
from dashboard_probability.dashboard_probability import Data,List,Addrees,Director import random,tkinter def TestingRoulette(Mode, Frame=None, Roulette=None): arg = {'argClassData': {'Data': Class['List'].Part(List=random.sample(list(range(37)), 37), Part=1),'Addrees': list(Class['Addrees'].CreateAddrees(ListNumTa...
PypiClean
/AICON-2.0.1-py3-none-any.whl/aicon/relaxtime.py
import numpy as np import scipy.constants from scipy.integrate import quad from aicon.myemc import EffectMass from aicon.deformatpotent import DeformatPotentC from aicon.dielectric import DielConst from aicon.elastic import ElasticConst Planck = scipy.constants.hbar EPlanck = scipy.constants.physical_constants['Planc...
PypiClean
/88rest-0.1.9.tar.gz/88rest-0.1.9/rest88/serializers.py
from collections import OrderedDict from typing import Dict from rest_framework import serializers from orm88.connector import ORM88 class ModelSerializer(serializers.Serializer): map_fields = { 'AutoField': serializers.IntegerField, 'CharField': serializers.CharField, 'IntegerField': se...
PypiClean
/calsim-0.0.15.tar.gz/calsim-0.0.15/README.md
# CalSim Multi-purpose educational robotics simulator built for the Berkeley courses 106/206 AB. ## Building Package To build a new version of the package, first open the pyproject.toml file and increment the version number by 1 - say, for example, that the version number is now 0.0.2. Once you've done this, enter the...
PypiClean
/NotAOrm-1.2.1.tar.gz/NotAOrm-1.2.1/README.md
# NotAOrm A sample python library for managing a SQLite database ## Download and Install `pip install NotAOrm` or `git clone https://github.com/ludel/NotAOrm.git` in your project There are no hard dependencies other than the Python standard library. NotAOrm run with python 3.6+. ## Documentation ### Data types lis...
PypiClean
/Aj_Zsl_nlu-4.2.0-py3-none-any.whl/nlu/pipe/viz/vis_utils.py
from sparknlp.annotator import * from nlu.pipe.viz.vis_utils_OS import VizUtilsOS import random class VizUtils(): """Utils for interfacing with the Spark-NLP-Display lib""" @staticmethod def get_random(): return random.randint(0, 1333333333337) @staticmethod def infer_viz_type(pipe) -> s...
PypiClean
/DJModels-0.0.6-py3-none-any.whl/djmodels/core/files/uploadhandler.py
from io import BytesIO from djmodels.conf import settings from djmodels.core.files.uploadedfile import ( InMemoryUploadedFile, TemporaryUploadedFile, ) from djmodels.utils.module_loading import import_string __all__ = [ 'UploadFileException', 'StopUpload', 'SkipFile', 'FileUploadHandler', 'TemporaryFileUp...
PypiClean
/Nevow-0.14.5.tar.gz/Nevow-0.14.5/doc/howto/chattutorial/part01/index.rst
Simple Chat and Two-Way Communications ====================================== Architecture ------------ We'll assume that you've read all the preceding sections of this tutorial and have just finished the "Echo" application example. As such, we don't need to do any more "mental preparation" and can skip straight to a...
PypiClean
/MPCdata-Aplysia-0.0.2.1.tar.gz/MPCdata-Aplysia-0.0.2.1/MPCdata/MPC_parser.py
import xlsxwriter import numpy as np import pandas as pd import re import os import datetime import itertools class MPCData(object): def __init__(self): self.StartDate = None self.EndDate = None self.Subject = None self.Experiment = None self.Group = None self.Bo...
PypiClean
/Flask-Statics-Helper-1.0.0.tar.gz/Flask-Statics-Helper-1.0.0/flask_statics/static/BootstrapValidator/js/language/he_IL.js
(function($) { /** * Hebrew language package * Translated by @yakidahan */ $.fn.bootstrapValidator.i18n = $.extend(true, $.fn.bootstrapValidator.i18n, { base64: { 'default': 'נא להזין ערך המקודד בבסיס 64' }, between: { 'default': 'נא להזין ערך בין %...
PypiClean
/Djaloha-0.4.2.tar.gz/Djaloha-0.4.2/djaloha/static/aloha.0.20.20/lib/aloha/repositorymanager.js
* Aloha Editor is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version.* * * Aloha Editor is distributed in the hope that it will be usef...
PypiClean
/CSUMMDET-1.0.23.tar.gz/CSUMMDET-1.0.23/mmdet/core/bbox/transforms.py
import mmcv import numpy as np import torch def bbox2delta(proposals, gt, means=[0, 0, 0, 0], stds=[1, 1, 1, 1]): assert proposals.size() == gt.size() proposals = proposals.float() gt = gt.float() px = (proposals[..., 0] + proposals[..., 2]) * 0.5 py = (proposals[..., 1] + proposals[..., 3]) * 0....
PypiClean
/Muntjac-1.1.2.tar.gz/Muntjac-1.1.2/muntjac/ui/qtui2mj.py
from decimal import Decimal import sys import re import os import xml.sax.handler import traceback from muntjac.api import * from mjextras import * class TreeBuilder(xml.sax.handler.ContentHandler): def __init__(self,parent): self.stack = [] self.root = DataNode() self.curr...
PypiClean
/CleverHarold-0.1.tar.gz/CleverHarold-0.1/harold/armor/validatorlib.py
# Copyright 2006 The Incorporated Wizzo Widget Works # Distributed under the terms of the GNU General Public License v2 # Author: Troy Melhase <troy@gci.net> ## # A library of ready-to-use validators for Harold. # # Synopsis # -------- # Don't use this module yet; I'm not particularly happy with it in # it's present ...
PypiClean
/FContin-0.1.tar.gz/FContin-0.1/README.md
# FContin ![Made with Love in India](https://madewithlove.org.in/badge.svg) Solve F(**u**, λ) = 0 over λ with just F! This repository contains [natural](https://en.wikipedia.org/wiki/Numerical_continuation#Natural_parameter_continuation) and [pseudo-arclength/Euler-Newton](https://en.wikipedia.org/wiki/Numerical_con...
PypiClean
/Eskapade_Spark-1.0.0-py3-none-any.whl/eskapadespark/resources.py
import pathlib import sys from pkg_resources import resource_filename import eskapadespark as package # Fixtures _FIXTURE = {_.name: _ for _ in pathlib.Path(resource_filename(package.__name__, 'data')).glob('*')} # C/C++ libraries that are shipped with eskapade. if sys.platform == 'darwin': _LIBS = {_.name: _ f...
PypiClean
/MetaPathways-3.1.6.tar.gz/MetaPathways-3.1.6/metapathways/utils/pathwaytoolsutils.py
import socket, re, sys, traceback from os import _exit, path, remove import re from metapathways.utils.sysutil import getstatusoutput from multiprocessing import Process from metapathways.utils.utils import fprintf, printf, eprintf import time class PythonCyc: _organism = "meta" soc = None _ptoolsExec =...
PypiClean
/Axelrod-4.13.0.tar.gz/Axelrod-4.13.0/axelrod/strategies/cooperator.py
from axelrod.action import Action from axelrod.player import Player C, D = Action.C, Action.D class Cooperator(Player): """A player who only ever cooperates. Names: - Cooperator: [Axelrod1984]_ - ALLC: [Press2012]_ - Always cooperate: [Mittal2009]_ """ name = "Cooperator" classifie...
PypiClean
/CSG_test-0.1.2.tar.gz/CSG_test-0.1.2/clientAPI/base.py
import importlib import pprint import textwrap from types import ModuleType from typing import Any, Dict, Iterable, NamedTuple, Optional, Tuple, Type, Union # import scripts.clientAPI as csgenome # from gitlab import types as g_types # from gitlab.exceptions import GitlabParsingError # from .client import Gitlab, Gi...
PypiClean
/BlueWhale3-ImageAnalytics-0.6.1.tar.gz/BlueWhale3-ImageAnalytics-0.6.1/doc/widgets/importimages.md
Import Images ============= Import images from a directory(s). **Outputs** - Data: Dataset describing one image in each row. **Import Images** walks through a directory and returs one row per located image. Columns include image name, path to image, width, height and image size. Column with image path is later used...
PypiClean
/LBForum-2.0.1.tar.gz/LBForum-2.0.1/lbforum/models.py
from __future__ import unicode_literals from django.db import models from django.db.models.signals import post_save from django.utils.translation import ugettext_lazy as _ from django.conf import settings from easy_thumbnails.fields import ThumbnailerImageField from easy_thumbnails.files import get_thumbnailer from el...
PypiClean
/CAVA-2.0.7-py3-none-any.whl/cava/utils/core.py
# Collection of basic classes and functions ####################################################################################################################### import gzip import logging import os import sys import time import re from . import csn ##############################################################...
PypiClean