content
stringlengths
4
20k
# -*- coding: utf-8 -*- import logging if __name__ == '__main__': logging.basicConfig() _log = logging.getLogger(__name__) import sys import pyxb.binding.generate import pyxb.utils.domutils xmls = '''<?xml version="1.0"?> <Signature xmlns="http://www.w3.org/2000/09/xmldsig#"> <SignedInfo> <CanonicalizationM...
""" This module offers the family of HTTP-based servers. These are not a single class/functionality, but a set of network stack layers, implementing extendable HTTP protocols. The OpenERP server defines a single instance of a HTTP server, listening at the standard 8069, 8071 ports (well, it is 2 server...
from __future__ import print_function, unicode_literals import datetime from requests.compat import urlencode, urljoin from sickbeard import classes, logger, tvcache from sickrage.helper.exceptions import AuthException from sickrage.providers.torrent.TorrentProvider import TorrentProvider try: import json excep...
from __future__ import absolute_import from __future__ import division from __future__ import print_function import collections import math import numpy from tensorflow.contrib.training.python.training import resample from tensorflow.python.framework import constant_op from tensorflow.python.framework import dtypes f...
# -*- coding: utf-8 -*- """ werkzeug.contrib.testtools ~~~~~~~~~~~~~~~~~~~~~~~~~~ This module implements extended wrappers for simplified testing. `TestResponse` A response wrapper which adds various cached attributes for simplified assertions on various content types. :copyright:...
from os import kill from redis import StrictRedis, WatchError from multiprocessing import Process from threading import Thread from msgpack import Unpacker, packb from types import TupleType from time import time, sleep import logging import settings logger = logging.getLogger("HorizonLog") class Roomba(Thread): ...
{ "name": "HR Payroll Account Operating Unit", "version": "1.0", "license": 'AGPL-3', "author": "Eficent", "category": "Generic Modules/Human Resources", "depends": ["hr_payroll_account", "hr_contract_operating_unit"], "description": """ HR Payroll Account Operating Unit ====================...
from django.contrib.auth.decorators import login_required from django.http import HttpResponse, HttpResponseRedirect from django.shortcuts import get_object_or_404, render_to_response from django.template import RequestContext from django.contrib import messages try: from django.views.decorators.csrf import csrf_e...
#!/usr/bin/env python ''' Camshift tracker ================ This is a demo that shows mean-shift based tracking You select a color objects such as your face and it tracks it. This reads from video camera (0 by default, or the camera number the user enters) http://www.robinhewitt.com/research/track/camshift.html Usage:...
# -*- coding: utf-8 -*- """ *************************************************************************** QgisAlgorithmTests.py --------------------- Date : January 2016 Copyright : (C) 2016 by Matthias Kuhn Email : <EMAIL> ***********************************...
from ImageScripter import * from elan.functions import Get_Device_List_Simple,Diff from elan import * Past_List = ['CentraLite Elegance (single MCP)', 'CentraLite JetStream', 'Clipsal Lighting', 'Dynalite Bridge', 'Electronic Solutions R2D7', 'HAI Lighting Controller', 'HDL Bus Pro Lighting', 'iLight Source Controller...
from mezzanine.pages.models import Page from mezzanine.utils.views import render from mezzanine.blog.models import BlogPost from django.template import Context,loader,RequestContext from django.core.mail import EmailMessage from django.http import HttpResponse from django.template.loader import render_to_string,get_tem...
import os import inspect import logging from openerp import release, tools, SUPERUSER_ID from openerp.osv import orm import openupgrade_tools # The server log level has not been set at this point # so to log at loglevel debug we need to set it # manually here. As a consequence, DEBUG messages from # this file are alwa...
# uncompyle6 version 2.9.10 # Python bytecode 2.7 (62211) # Decompiled from: Python 3.6.0b2 (default, Oct 11 2016, 05:27:10) # [GCC 6.2.0 20161005] # Embedded file name: ScrolledList.py from Tkinter import * class ScrolledList: default = '(None)' def __init__(self, master, **options): self.master = m...
import SLOMenu
from setuptools import setup, find_packages from hueversion import VERSION setup( name = "libzookeeper", version = VERSION, url = 'http://github.com/cloudera/hue', description = "ZooKeeper Libraries", packages = find_packages('src'), package_dir = {'': 'src' }, install_require...
import warnings from datetime import datetime, timedelta from pandas import DataFrame, Panel, date_range class DifferentIndexes(object): def setup(self): self.data_frames = {} start = datetime(1990, 1, 1) end = datetime(2012, 1, 1) for x in range(100): end += timedelta...
import os from optparse import make_option from django.conf import settings from django.core.exceptions import ImproperlyConfigured from django.test import TestCase from django.test.utils import setup_test_environment, teardown_test_environment from django.utils import unittest from django.utils.unittest import TestSu...
"""Hashing algorithms Hash functions take arbitrary binary strings as input, and produce a random-like output of fixed size that is dependent on the input; it should be practically infeasible to derive the original input data given only the hash function's output. In other words, the hash function is *one-way*. It s...
import numpy from chainer import cuda from chainer import function from chainer import utils from chainer.utils import type_check class Sin(function.Function): @property def label(self): return 'sin' def check_type_forward(self, in_types): type_check.expect(in_types.size() == 1) ...
from __future__ import absolute_import, division, unicode_literals try: from collections import OrderedDict except ImportError: try: from ordereddict import OrderedDict except ImportError: OrderedDict = dict import re from pip._vendor.six import string_types from . import base from .._ut...
import hashlib import MySQLdb import MySQLdb.cursors import psycopg2 import psycopg2.extras import binascii import re def sqlCheckSum(dbtype, host, port, user, passwd, db, table, *key): try: nameAndType = getNameAndType(dbtype, host, port, user, passwd, db, table) nameAndType.sort() if dbt...
from collections import defaultdict from datetime import datetime import six from testtools.matchers import Contains, Not import falcon import falcon.testing as testing class StatusTestResource: sample_body = testing.rand_string(0, 128 * 1024) def __init__(self, status): self.status = status d...
"""Tests for the keystone auth backend. Note that these require a keystone instance to be installed and running, with a specific configuration and database contents. The script "ci/keystone/keystone.sh" at the root of the repository can be used to set this up. This is done automatically in our travis config. """ from ...
#!/usr/bin/env python import optparse # colors in cmd line. See - http://stackoverflow.com/questions/287871/print-in-terminal-with-colors-using-python class bcolors: IMPORTANT = '\033[01m' WARNING = '\033[93m' FAIL = '\033[01;93m' ENDC = '\033[0m' def disable(self): self.IMPORTANT = '' ...
import keyword import _jsre as re from browser import html letters = 'abcdefghijklmnopqrstuvwxyz' letters += letters.upper()+'_' digits = '0123456789' builtin_funcs = ("abs|divmod|input|open|staticmethod|all|enumerate|int|ord|str|any|" + "eval|isinstance|pow|sum|basestring|execfile|issubclass|print|super|" +...
""" The :mod:`sklearn.ensemble` module includes ensemble-based methods for classification, regression and anomaly detection. """ from .base import BaseEnsemble from .forest import RandomForestClassifier from .forest import RandomForestRegressor from .forest import RandomTreesEmbedding from .forest import ExtraTreesCla...
from stock import * import partner import product import procurement import report import wizard import res_config import controllers
import collections import itertools from pycoin.encoding.hash import hash160 from pycoin.encoding.hexbytes import b2h from pycoin.encoding.sec import is_sec_compressed, public_pair_to_hash160_sec from pycoin.intbytes import byte2int from pycoin.satoshi.flags import SIGHASH_ALL, SIGHASH_NONE, SIGHASH_SINGLE, SIGHASH_AN...
"""Benchmark script for ImageNet models on GPU. see README.md for the usage and results of this script. """ import argparse import threading import numpy as np import tvm from tvm.contrib.util import tempdir import tvm.contrib.graph_runtime as runtime import nnvm.compiler import nnvm.testing from util import get_net...
"""PyUnit testing that threads honor our signal semantics""" import unittest import signal import os import sys from test.support import run_unittest, import_module thread = import_module('_thread') import time if sys.platform[:3] in ('win', 'os2') or sys.platform=='riscos': raise unittest.SkipTest("Can't test si...
# -*- coding: utf-8 -*- """ /*************************************************************************** Name : Versioning plugin for DB Manager Description : Set up versioning support for a table Date : Mar 12, 2012 copyright : (C) 2012 by Giuseppe Sucameli email ...
from . import about from . import ev from . import gs from collections import namedtuple import os import re import string import sublime import subprocess import time try: STARTUPINFO = subprocess.STARTUPINFO() STARTUPINFO.dwFlags |= subprocess.STARTF_USESHOWWINDOW STARTUPINFO.wShowWindow = subprocess.SW_HIDE exce...
import l10n_ma # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
from __future__ import absolute_import from datetime import date import traceback from django.db import IntegrityError from django.test import TestCase from .models import Person, ManualPrimaryKeyTest class GetOrCreateTests(TestCase): def test_get_or_create(self): p = Person.objects.create( ...
# -*- coding: utf-8 -*- """ *************************************************************************** MinimumBoundingGeometry.py -------------------------- Date : September 2017 Copyright : (C) 2017 by Nyall Dawson Email : nyall dot dawson at gmail dot co...
from django.core.urlresolvers import reverse from django.utils.translation import ugettext_lazy as _ from horizon import exceptions from horizon import forms from horizon import messages from openstack_dashboard.api import cinder class CreateCGroupForm(forms.SelfHandlingForm): name = forms.CharField(max_length=...
from __future__ import (absolute_import, division, print_function) __metaclass__ = type from ansible.compat.tests import unittest from ansible.compat.tests.mock import patch from ansible.playbook.task import Task from ansible.parsing.yaml import objects from ansible import errors basic_command_task = dict( name=...
# -*- coding: utf-8 -*- import pytest @pytest.mark.parametrize("sources,expected", [ # basic ( [ '.', 'foo.json', 'scss', 'css', '/home/foo', ], ( '/home/foo', '/home/foo/foo.json', '/home/f...
"""Opencv plugin for mxnet""" import random import ctypes import cv2 import mxnet as mx from mxnet.base import _LIB from mxnet.base import mx_uint, NDArrayHandle, check_call def imdecode(str_img, flag=1): """Decode image from str buffer. Wrapper for cv2.imdecode that uses mx.nd.NDArray Parameters ----...
from qt import * from qtcanvas import * from lpathtree_qt import * class Point: def __init__(self, *args): if len(args) == 2 and \ (isinstance(args[0],int) or isinstance(args[0],float)) and \ (isinstance(args[1],int) or isinstance(args[0],float)): self.x = float(args[0]) ...
# -*- coding: utf-8 -*- """This module contains functions called from console script entry points.""" import os import sys from os.path import dirname, exists, join import pkg_resources pkg_resources.require("TurboGears") import turbogears import cherrypy cherrypy.lowercase_api = True class Config...
"""Tests for tensorflow.ops.argmax_op.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function import numpy as np import tensorflow as tf class ArgMaxTest(tf.test.TestCase): def _testArg(self, method, x, dimension, expected_values, use_gpu=Fals...
from __future__ import division import unittest import hashlib import random from p2pool.bitcoin import sha256 class Test(unittest.TestCase): def test_all(self): for test in ['', 'a', 'b', 'abc', 'abc'*50, 'hello world']: #print test #print sha256.sha256(test).hexdigest() ...
from .resource import Resource # # The MIT License (MIT) # # Copyright (C) 2014 hellosign.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 without restriction, including without limit...
ANSIBLE_METADATA = {'metadata_version': '1.0', 'status': ['stableinterface'], 'supported_by': 'core'} import datetime import traceback from ansible.module_utils.six import iteritems def main(): module = AnsibleModule(argument_spec=dict( jid=dict(required=True), ...
"""Test mobile app device tracker.""" async def test_sending_location(hass, create_registrations, webhook_client): """Test sending a location via a webhook.""" resp = await webhook_client.post( "/api/webhook/{}".format(create_registrations[1]["webhook_id"]), json={ "type": "update_...
# import cloudstack common from ansible.module_utils.cloudstack import * class AnsibleCloudStackRouter(AnsibleCloudStack): def __init__(self, module): super(AnsibleCloudStackRouter, self).__init__(module) self.returns = { 'serviceofferingname': 'service_offering', 'version'...
import re from urllib2 import urlopen from urllib import urlencode import simplejson from geopy.geocoders.base import Geocoder from geopy.point import Point from geopy.location import Location from geopy import util class VirtualEarth(Geocoder): """Geocoder using Microsoft's Windows Live Local web service, powered...
__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__" import sys try: import io _StringIO = io.StringIO except (ImportError, AttributeError): # Pre-2.6 Python has no "io" module. exec('from cStringIO import StringIO') else: # TODO(2.6): In 2.6 and beyond, the io.StringIO.write() method ...
# This tests the compilation and execution of the source code generated with # utilities.codegen. The compilation takes place in a temporary directory that # is removed after the test. By default the test directory is always removed, # but this behavior can be changed by setting the environment variable # SYMPY_TEST_CL...
""" pydevd_vars deals with variables: resolution/conversion to XML. """ import pickle from pydevd_constants import * #@UnusedWildImport from types import * #@UnusedWildImport from pydevd_custom_frames import getCustomFrame from pydevd_xml import * from _pydev_imps import _pydev_thread try: from StringIO impor...
# # On Unix we run a server process which keeps track of unlinked # semaphores. The server ignores SIGINT and SIGTERM and reads from a # pipe. Every other process of the program has a copy of the writable # end of the pipe, so we get EOF when all other processes have exited. # Then the server process unlinks any remai...
from sympy.core.compatibility import range from sympy.combinatorics.partitions import (Partition, IntegerPartition, RGS_enum, RGS_unrank, RGS_rank, random_integer_partition) from sympy.utilities.pytest import raises from sympy.utili...
# encoding: utf-8 # module gio._gio # from /usr/lib/python2.7/dist-packages/gtk-2.0/gio/_gio.so # by generator 1.135 # no doc # imports import gio as __gio import glib as __glib import gobject as __gobject import gobject._gobject as __gobject__gobject class AppInfo(__gobject.GInterface): # no doc def add_sup...
from openerp.osv import fields, osv from openerp.tools.translate import _ class project_configuration(osv.osv_memory): _name = 'project.config.settings' _inherit = 'res.config.settings' _columns = { 'module_project_mrp': fields.boolean('Generate tasks from sale orders', help ="""This f...
from __future__ import (absolute_import, division) __metaclass__ = type import sys import json import syslog from ansible.compat.tests import unittest from ansible.compat.tests.mock import patch, MagicMock from units.mock.procenv import swap_stdin_and_argv import ansible.module_utils.basic try: # Python 3.4+ ...
from django.contrib.gis import admin from django.contrib.gis.geos import Point from django.test import TestCase, override_settings, skipUnlessDBFeature from django.test.utils import patch_logger from .admin import UnmodifiableAdmin from .models import City, site @skipUnlessDBFeature("gis_enabled") @override_settings...
#!/usr/bin/env python import cv2 # import rospy # import roslib import numpy as np import os.path import zbar from GenericCascade import GenericCascade # roslib.load_manifest('object_detection') # from sensor_msgs.msg import Image # from cv_bridge import CvBridge, CvBridgeError ''' ####################################...
# -*- coding: utf-8 -*- """ What: Reproduces Figures 23 and 24 of Sanz-Leon P., Knock, S. A., Spiegler, A. and Jirsa V. Mathematical framework for large-scale brain network modelling in The Virtual Brain. Neuroimage, 2014, (in review) Needs: A working installation of tvb Run: python region_de...
'''LabCAS RDF Generator. ''' from .rdfgenerator import IRDFGenerator from .utils import validateAccessibleURL from Acquisition import aq_inner from edrn.rdf import _ from pysolr import Solr from rdflib.term import URIRef, Literal from zope import schema import rdflib, logging _logger = logging.getLogger(__name__) # ...
from sympy import (Add, ceiling, cos, E, Eq, exp, factorial, fibonacci, floor, Function, GoldenRatio, I, log, Mul, oo, pi, Pow, Rational, sin, sqrt, sstr, Sum, sympify, S, integrate, atan, product) from sympy.core.evalf import complex_accuracy, PrecisionExhausted, scaled_zero from ...
from ..excel_comparsion_test import ExcelComparisonTest from ...workbook import Workbook class TestCompareXLSXFiles(ExcelComparisonTest): """ Test file created by XlsxWriter against a file created by Excel. """ def setUp(self): self.maxDiff = None filename = 'chart_data_labels08.xls...
"""Tests for masked LM loss.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function import numpy as np import tensorflow as tf from tensorflow.python.keras import keras_parameterized # pylint: disable=g-direct-tensorflow-import from official.nlp.modeling imp...
from PIL import Image, ImageFile, PngImagePlugin from PIL._binary import i8 import io import os import shutil import struct import sys import tempfile enable_jpeg2k = hasattr(Image.core, 'jp2klib_version') if enable_jpeg2k: from PIL import Jpeg2KImagePlugin HEADERSIZE = 8 def nextheader(fobj): return struct...
#!/usr/bin/python from PyQt4.QtCore import * from PyQt4.QtSql import * from blur.Stone import * from blur.Classes import * import blur.email, blur.jabber import sys, time, re, os from math import ceil import traceback if sys.argv.count('-daemonize'): from blur.daemonize import createDaemon createDaemon() app = QCo...
#!/usr/bin/env python # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft=python sts=4 ts=4 sw=4 et: from __future__ import print_function # Python 2/3 compatibility __doc__ = """ Example of script to parcellate the data from one subject, using various algorithms. Note that it can ta...
class Rule(object): """An optional base class for rule implementations. The rule_parser looks for the 'IsType' and 'ApplyRule' methods by name, so rules are not strictly required to extend this class. """ def IsType(self, rule_type_name): """Returns True if the name matches this rule.""" raise NotIm...
"""Vectorized Laplace distribution class, directly using LinearOpeartor.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function import numpy as np from tensorflow.contrib import linalg from tensorflow.contrib.distributions.python.ops import bijectors from tens...
"""Basic Test Extension""" from nova.api.openstack import extensions from nova.api.openstack import wsgi ALIAS = 'test-basic' class BasicController(wsgi.Controller): def index(self, req): data = {'param': 'val'} return data class Basic(extensions.V3APIExtensionBase): """Basic Test Extens...
import urllib2, StringIO, os, time, bz2, sys import re, string import threading import cStringIO from urllib2 import urlparse from xml.sax.saxutils import escape, quoteattr class RaftCaptureProcessor(urllib2.BaseHandler): class _wrapper(StringIO.StringIO): def __init__(self, parent, request, response): ...
#-*- coding: utf-8 -*- import inspect from django.contrib import admin from filer import settings from filer.fields import folder class PermissionAdmin(admin.ModelAdmin): fieldsets = ( (None, {'fields': (('type', 'folder',))}), (None, {'fields': (('user', 'group', 'everybody'),)}), (None, ...
""" Hypermedia Collection extends the Hypermedia Resource class by adding hypermedia based URI routing and senml modeling of items and subresources. Routing uses link relations rel=grp, rel=sub and rel=item routing is done by identifying subresources that match the next uri segment to be routed until the last segm...
from ..six.moves import urllib from ..six.moves.http_client import HTTPConnection, HTTPSConnection import socket import re from . import ntlm class AbstractNtlmAuthHandler: def __init__(self, password_mgr=None, debuglevel=0): if password_mgr is None: password_mgr = urllib.request.HTTPPasswo...
# -*- coding: utf-8 -*- """ Compatibility code to be able to use `cookielib.CookieJar` with requests. requests.utils imports from here, so be careful with imports. """ import time import collections from .compat import cookielib, urlparse, urlunparse, Morsel try: import threading # grr, pyflakes: this fixes...
from misago.core import threadstore CACHE_KEY = 'misago_db_settings' class DBSettings(object): def __init__(self): self._settings = self._read_cache() self._overrides = {} def _read_cache(self): from misago.core.cache import cache data = cache.get(CACHE_KEY, 'nada') ...
from abc import abstractmethod from oslo.config import cfg from neutron.api import extensions from neutron.api.v2 import attributes from neutron.api.v2 import base from neutron import manager from neutron import quota RESOURCE_NAME = "network_gateway" # Use dash for alias and collection name EXT_ALIAS = RESOURCE_NA...
import math from abc import ABCMeta, abstractmethod class PointGetter(metaclass=ABCMeta): def __init__(self, graph): self.graph = graph @abstractmethod def getRange(self, xRange, miscParams, src, tgt): raise NotImplementedError @abstractmethod def getPoint(self, x, miscParams, s...
"""TestSuite""" import sys from . import case from . import util __unittest = True def _call_if_exists(parent, attr): func = getattr(parent, attr, lambda: None) func() class BaseTestSuite(object): """A simple test suite that doesn't provide class or module shared fixtures. """ def __init__(se...
from tkinter import * # 导入 Tkinter 库 import multiwords root = Tk() root.resizable(False,False) root.title("统计对比多个词语") #KCC基本分析组件 #该组件用于列举出包含指定词语的帖子/回帖 ##插件信息定义 KCC_PLUGIN_NAME="multiwordS" KCC_PLUGIN_DESCRIPTION="用来统计多个词语的频率并以条形统计图显示" KCC_PLUGIN_COPYRIGHT="kanch" ##定义结束 def btnclick(): ...
import time from openerp.osv import osv from openerp.report import report_sxw from common_report_header import common_report_header class account_balance(report_sxw.rml_parse, common_report_header): _name = 'report.account.account.balance' def __init__(self, cr, uid, name, context=None): super(accou...
#!/usr/bin/env python """sslstrip is a MITM tool that implements Moxie Marlinspike's SSL stripping attacks.""" __author__ = "Moxie Marlinspike" __email__ = "<EMAIL>" __license__= """ Copyright (c) 2004-2009 Moxie Marlinspike <<EMAIL>> This program is free software; you can redistribute it and/or modify it under t...
import torch import torch.nn as nn import torch.nn.functional as F class Model_BN_ELU(nn.Module): def __init__(self, input_size, output_size, hidden_sizes=[10, 10, 10], drops=[0.4, 0.4, 0.4]): super().__init__() hidden_sizes = [input_size] + hidden_sizes self.hidden_layers = nn.ModuleList...
import numpy as np from numpy.linalg import lstsq from numpy.testing import (assert_allclose, assert_equal, assert_, run_module_suite, assert_raises) from scipy.sparse import rand from scipy.sparse.linalg import aslinearoperator from scipy.optimize import lsq_linear A = np.array([ [0.17...
from __future__ import unicode_literals import re from .common import InfoExtractor from ..utils import ( determine_ext, int_or_none, js_to_json, unescapeHTML, ) class StitcherIE(InfoExtractor): _VALID_URL = r'https?://(?:www\.)?stitcher\.com/podcast/(?:[^/]+/)+e/(?:(?P<display_id>[^/#?&]+?)-)?(...
import smtplib import logging def email_auth(server="smtp.gmail.com:587", domain="@gmail.com", tls_mode=None): """ to use email_login: from gluon.contrib.login_methods.email_auth import email_auth auth.settings.login_methods.append(email_auth("smtp.gmail.com:587", ...
{ 'name': 'Opportunity to Quotation', 'version': '1.0', 'category': 'Hidden', 'description': """ This module adds a shortcut on one or several opportunity cases in the CRM. =========================================================================== This shortcut allows you to generate a sales order bas...
from os import path, listdir from hashlib import sha512, sha256, md5 from base64 import b64encode import re JS_DIR = path.normpath(path.join(__file__, "..", "..")) ''' Yield each file in the javascript directory ''' def js_files(): for f in listdir(JS_DIR): if path.isfile(f) and f.endswith(".js"): yield f...
#!/usr/bin/env python from __future__ import division import matplotlib.pyplot as plt import matplotlib from scipy import constants as const from pylab import * # def planck(T,lambda_i,lambda_f,step=10**(-1)): x ,y = ([] for i in range(2)) for i in arange(lambda_i,lambda_f,step): # i*10**(-9) - correctuin to nm ...
__author__ = "mfreer, ohenry" __date__ = "2017-01-26 13:07" __version__ = "1.2" __all__ = ['MassConcDmt'] import numpy import egads.core.egads_core as egads_core import egads.core.metadata as egads_metadata class MassConcDmt(egads_core.EgadsAlgorithm): """ FILE mass_conc_dmt.py VERSION 1.2 ...
""" Exceptions thrown by KeyStore objects """ class ItemNotFoundError(Exception): pass class ItemWriteConflictError(Exception): pass class InsufficientSpecificationError(Exception): pass class OverSpecificationError(Exception): pass class InvalidLocationError(Exception): pass class NoPat...
from flask import request, jsonify, Response, json, redirect, abort, render_template, session, json from hackhub import app, spaceapi, get_db, DOOR_CODE from member import Member from status import Status, new_status from event import new_event, recent_events from bank import bank from door_code import new_code, add_ur...
from spack import * from glob import glob class Cask(Package): """Cask is a project management tool for Emacs Lisp to automate the package development cycle; development, dependencies, testing, building, packaging and more.""" homepage = "http://cask.readthedocs.io/en/latest/" url = "ht...
import json import re import logging import time import restkit.errors from restkit import Resource from http_parser.http import NoMoreData import friendloc from friendloc.base.models import GeonamesPlace from friendloc.base.utils import in_local_box class GisgraphyResource(Resource): COORD_RE = re.compile('(-?\...
"""Various function for graph rerouting.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function from tensorflow.contrib.graph_editor import subgraph as _subgraph from tensorflow.contrib.graph_editor import util as _util from tensorflow.python.framework import o...
from . import purchase_homologation from . import purchase_order_line
import stock_dropshipping import wizard # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
import unittest from test import test_support import UserDict, random, string import gc, weakref class DictTest(unittest.TestCase): def test_constructor(self): # calling built-in types without argument must return empty self.assertEqual(dict(), {}) self.assert_(dict() is not {}) def ...
# -*- coding: utf-8 -*- from __future__ import unicode_literals, absolute_import import os from fabric import colors from fabric.api import task, run, cd from fabric.contrib.files import exists, contains, append @task def prepare_ssh_autologin(ssh_pub_key='~/.ssh/id_rsa.pub'): """Prepare server for ssh autologi...
"""Invenio module that adds support for user groups.""" import os import sys from setuptools import setup from setuptools.command.test import test as TestCommand readme = open('README.rst').read() history = open('CHANGES.rst').read() requirements = [ 'blinker>=1.3.0', 'Flask-Breadcrumbs>=0.2', 'Flask-Lo...