code
stringlengths
1
199k
""" Tests for GTK2 GUI manhole. """ skip = False try: import pygtk pygtk.require("2.0") except: skip = "GTK 2.0 not available" else: try: import gtk except ImportError: skip = "GTK 2.0 not available" except RuntimeError: skip = "Old version of GTK 2.0 requires DISPLAY, an...
from enaml.qt.qt_application import QtApplication import numpy as np from replay.gui.api import make_cross_section_view def change_data(data_lst): nx = np.random.randint(1000)+1 ny = np.random.randint(1000)+1 # model.data = data_lst model.data = [np.random.random((nx, ny)), ] app = QtApplication() model...
""" Test functions for stats module WRITTEN BY LOUIS LUANGKESORN <lluang@yahoo.com> FOR THE STATS MODULE BASED ON WILKINSON'S STATISTICS QUIZ http://www.stanford.edu/~clint/bench/wilk.txt Additional tests by a host of SciPy developers. """ from __future__ import division, print_function, absolute_import...
""" Euler equations solver using the CESE method with CUDA. """ from solvcon.gendata import AttributeDict from solvcon.anchor import Anchor from solvcon.hook import BlockHook from solvcon.kerpak.euler import EulerSolver from solvcon.kerpak.cese import CeseCase from solvcon.kerpak.cese import CeseBC def getcdll(libname)...
from extmods import *
from __future__ import absolute_import, division, print_function import itertools import math import tempfile import inspect import gzip import zlib import bz2 import os import codecs from sys import getdefaultencoding from fnmatch import fnmatchcase from glob import glob from collections import Iterable, Iterator, def...
import sys import os sys.path.append(os.path.dirname(os.path.realpath(__file__)) + '/../../') import unittest import logging from core.router import Router class TestRouter(unittest.TestCase): def test_empty_routes(self): r = Router() self.assertTrue(len(r) == 0) with self.assertRaises(StopI...
""" Twisted Spread Interfaces. """ from zope.interface import Interface class IJellyable(Interface): def jellyFor(jellier): """ Jelly myself for jellier. """ class IUnjellyable(Interface): def unjellyFor(jellier, jellyList): """ Unjelly myself for the jellier. @pa...
import logging from django.conf import settings from django.contrib import messages, auth from django.contrib.auth.decorators import login_required from django.db import transaction from django.http import Http404, HttpResponseForbidden from django.shortcuts import get_object_or_404, redirect from django.template.respo...
from __future__ import print_function import json import re import gdbremote_testcase from lldbsuite.test.decorators import * from lldbsuite.test.lldbtest import * from lldbsuite.test import lldbutil class TestGdbRemoteThreadsInStopReply( gdbremote_testcase.GdbRemoteTestCaseBase): mydir = TestBase.compute_m...
from django.core.urlresolvers import reverse from django.utils.translation import ugettext_noop class BaseMultimediaUploadController(object): """ Media type is the user-facing term for the type of media that the uploader is uploading """ media_type = None uploader_type = None is_multi_file =...
from flask_ext_migrate.startup import startup import flask_ext_migrate as migrate def test_single_file_input_runs_without_failures(runner, tmpdir): import_line = 'from flask.ext.foo import bar' temp_file = tmpdir.join('temp.py') temp_file.write(import_line) result = runner.invoke(startup, [str(temp_file...
from xio import * recver = sp_endpoint(SP_REQREP, SP_REP); host = "tcp://127.0.0.1:1510"; assert (sp_listen(recver, host) == 0); for i in range(1, 1000000) : rc, req = sp_recv(recver) assert (rc == 0); resp = Msg (); resp.data = "Hello you ?"; resp.hdr = req.hdr; assert (sp_send(recver, resp) ==...
""" SQLite backend for the sqlite3 module in the standard library. """ import datetime import decimal import functools import hashlib import math import operator import random import re import statistics import warnings from itertools import chain from sqlite3 import dbapi2 as Database from django.core.exceptions impor...
from django.core.cache import caches from django.core.cache.backends.base import InvalidCacheBackendError try: cache = caches['pages'] except InvalidCacheBackendError: cache = caches['default']
""" unittest for visitors.diadefs and extensions.diadefslib modules """ import os import sys import codecs from os.path import join, dirname, abspath from difflib import unified_diff import unittest from astroid import MANAGER from pylint.pyreverse.inspector import Linker, project_from_files from pylint.pyreverse.diade...
class PartyAnimal: x = 0 name = "" def __init__(self, nam): self.name = nam print self.name,"constructed" def party(self) : self.x = self.x + 1 print self.name,"party count",self.x class FootballFan(PartyAnimal): points = 0 def touchdown(self): self.points = self.points + 7 ...
""" Script to plot density of states (DOS) generated by an FEFF run either by site, element, or orbital """ from __future__ import division __author__ = "Alan Dozier" __credits__= "Anubhav Jain, Shyue Ping Ong" __copyright__ = "Copyright 2012, The Materials Project" __version__ = "1.0" __maintainer__ = "Alan Dozier" __...
__version__ = '0.7.5'
from mailqueue.admin import * from mailqueue.apps import * from mailqueue.defaults import * from mailqueue.models import * from mailqueue.tasks import * from mailqueue.urls import * from mailqueue.utils import * from mailqueue.views import *
from __future__ import print_function import unittest import numpy from theano import gof, tensor, function from theano.tests import unittest_tools as utt class Minimal(gof.Op): # TODO : need description for class # if the Op has any attributes, consider using them in the eq function. # If two Apply nodes h...
import sys import django from django.conf import settings def main(): if not settings.configured: # Dynamically configure the Django settings with the minimum necessary to # get Django running tests settings.configure( INSTALLED_APPS=[ 'django.contrib.auth', ...
""" This script does a few rollouts with an environment and writes the data to an npz file Its purpose is to help with verifying that you haven't functionally changed an environment. (If you have, you should bump the version number.) """ import argparse, numpy as np, collections, sys from os import path class RandomAge...
import unittest import xml.etree.ElementTree as ET from programy.parser.template.nodes.base import TemplateNode from programy.parser.template.nodes.word import TemplateWordNode from programy.parser.template.nodes.star import TemplateStarNode from test.parser.template.graph.test_graph_client import TemplateGraphTestClie...
''' Battleship game demo example. ''' import JeevesLib import Board from Bomb import Bomb from sourcetrans.macro_module import macros, jeeves class Game: class NoSuchUserException(Exception): def __init__(self, u): self.u = u def __init__(self, boards): self.boards = boards self._moves = [] def ...
__author__ = 'ddeconti' class DrugEffects(): def __init__(self, drug_name, se_count, gene_count, smiles): self.drug_name = drug_name self.side_effect_count = se_count self.gene_effect_count = gene_count self.SMILES = smiles # mutable constructs self.rf_prediction_prob...
import logging import os import subprocess from teuthology.parallel import parallel from teuthology.task import ansible from teuthology.exceptions import CommandFailedError log = logging.getLogger(__name__) def vm_setup(ctx, config): """ Look for virtual machines and handle their initialization """ all_...
import document from document import * import fields from fields import * import connection from connection import * import queryset from queryset import * import signals from signals import * from errors import * import errors __all__ = (list(document.__all__) + fields.__all__ + connection.__all__ + list(qu...
"""Tests for the family module.""" from __future__ import absolute_import, unicode_literals __version__ = '$Id$' import pywikibot.site from pywikibot.exceptions import UnknownFamily from pywikibot.family import Family, SingleSiteFamily from pywikibot.tools import StringTypes as basestring from tests.aspects import ( ...
"""This module contains an object that represents a Telegram WebhookInfo.""" from telegram import TelegramObject class WebhookInfo(TelegramObject): """This object represents a Telegram WebhookInfo. Attributes: url (str): Webhook URL, may be empty if webhook is not set up. has_custom_certificate ...
import ipdb N = 5 mat = [[x for x in range(N)] for y in range(N)] print("Before transpose:") for row in mat: print(row) for x in range(N): for y in range(N): mat[x][y] = mat[y][x] mat[y][x] = mat[x][y] print("------------------") print("After transpose:") for row in mat: print(row)
import gzip def get_event_text(eventfile): if eventfile.split('.')[-1] == 'gz': with gzip.open(eventfile, 'rt') as f: filetext = f.read() else: with open(eventfile, 'r') as f: filetext = f.read() return filetext def get_event_filename(name): return(name.replace('/...
""" This document contains the tree widget used to display the editor document outline. """ from pyqode.core.widgets import OutlineTreeWidget class PyOutlineTreeWidget(OutlineTreeWidget): """ Deprecated, use pyqode.core.widgets.OutlineTreeWidget instead. """ pass
from ceph_deploy.util import pkg_managers def uninstall(conn, purge=False): packages = [ 'ceph', 'ceph-release', 'ceph-common', 'ceph-radosgw', ] pkg_managers.yum_remove( conn, packages, ) pkg_managers.yum_clean(conn)
from msrest.paging import Paged class DataLakeAnalyticsAccountPaged(Paged): """ A paging container for iterating over a list of DataLakeAnalyticsAccount object """ _attribute_map = { 'next_link': {'key': 'nextLink', 'type': 'str'}, 'current_page': {'key': 'value', 'type': '[DataLakeAnaly...
from __future__ import print_function from gi.repository import GLib, GObject import sys import dbus import dbus.service import dbus.mainloop.glib IFACE_SETTINGS = 'org.freedesktop.NetworkManager.Settings' IFACE_CONNECTION = 'org.freedesktop.NetworkManager.Settings.Connection' IFACE_DBUS = 'org.freedesktop.DBus' class ...
""" *************************************************************************** SextantePlugin.py --------------------- Date : August 2012 Copyright : (C) 2012 by Victor Olaya Email : volayaf at gmail dot com *************************************************...
"""Unit tests for the search engine.""" __revision__ = \ "$Id$" import unittest from invenio import search_engine from invenio.testutils import make_test_suite, run_test_suite from invenio.config import CFG_CERN_SITE class TestMiscUtilityFunctions(unittest.TestCase): """Test whatever non-data-specific utility f...
import os, pwd, sys, optparse, socket, time, o2tf, pdb, config logfile = config.LOGFILE Usage = 'Usage: %prog [--Debug] \ [-l|--label label] \ [-m|--mountpoint mountpoint] \ [-o|--options mountoptions] \ [--mount] \ [--umount]' if __name__=='__main__': parser = optparse.OptionParser(Usage) parser.add_option('--Debug'...
import os import re import sys from invenio.textutils import encode_for_xml, wash_for_utf8 from invenio.bibrecord import field_xml_output def write_message(message): print message def write_messages(messages): for message in messages: write_message(message) def find_open_and_close_braces(line_index, sta...
from django.shortcuts import (redirect, render as django_render, render_to_response as django_render_to_response) from misago.template.middlewares import process_context from misago.template.theme import prefix_templates from misago.utils.views import redirect_message, json_response def re...
""" InaSAFE Disaster risk assessment tool by AusAid -**InaSAFE Wizard** This module provides: Keyword Wizard Step: Layer Title Contact : ole.moller.nielsen@gmail.com .. note:: 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 ...
from __future__ import print_function import collections import os import numpy import bisect import sys import ctypes from VehicleType import VehicleType, VehicleTypeString class Format(object): '''Data channel format as specified by the FMT lines in the log file''' def __init__(self,msgType,msgLen,name,types,...
import gtk from diagnosis.helpers import get_builder import gettext from gettext import gettext as _ gettext.textdomain('diagnosis') class AboutDiagnosisDialog(gtk.AboutDialog): __gtype_name__ = "AboutDiagnosisDialog" def __new__(cls): """Special static method that's automatically called by Python when ...
from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ['stableinterface'], 'supported_by': 'certified'} DOCUMENTATION = r''' --- module: bigip_gtm_pool short_description: Manages F5 BIG-IP GT...
import logging import deluge.component as component import deluge.pluginmanagerbase from deluge.ui.client import client from deluge.configmanager import ConfigManager log = logging.getLogger(__name__) class PluginManager(deluge.pluginmanagerbase.PluginManagerBase, component.Component): def __init__(self): ...
''' Small script to rewrite McStas trace output to python matplotlib for plotting ''' import sys import numpy as np import matplotlib as mpl import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D from util import parse_multiline, rotate, rotate_points, draw_circle, get_line, debug UC_COMP = 'COMPONENT:...
from __future__ import (absolute_import, division, print_function) __metaclass__ = type import fcntl import textwrap import os import random import subprocess import sys import time import locale import logging import getpass from struct import unpack, pack from termios import TIOCGWINSZ from multiprocessing import Loc...
import sys import time import logging import os from subprocess import Popen from signal import SIGTERM from watchdog.observers import Observer from watchdog.events import LoggingEventHandler, FileSystemEventHandler WATCH_DIRS = ["../data", "common/lib/xmodule/xmodule/js", "common/lib/xmodule/xmodule/css"] EXTENSIONS =...
"""Generic comments module.""" import superdesk from apps.comments.comments import CommentsService, CommentsResource, comments_schema # noqa from apps.comments.user_mentions import on_activity_updated def init_app(app): endpoint_name = 'comments' service = CommentsService(endpoint_name, backend=superdesk.get_b...
""" Video player in the courseware. """ import time import json import requests from selenium.webdriver.common.action_chains import ActionChains from bok_choy.page_object import PageObject from bok_choy.promise import EmptyPromise, Promise from bok_choy.javascript import wait_for_js, js_defined import logging log = log...
from __future__ import unicode_literals import webnotes from webnotes import _ from webnotes.utils import cstr, validate_email_add, cint from webnotes import session, msgprint sql = webnotes.conn.sql from controllers.selling_controller import SellingController class DocType(SellingController): def __init__(self, doc, ...
SRID = 4326
import factory import random from django.db import models from faker import Factory as FakerFactory from meal.models import ( Ingredient, Component, Component_ingredient, Incompatibility, Restricted_item, INGREDIENT_GROUP_CHOICES, COMPONENT_GROUP_CHOICES, RESTRICTED_ITEM_GROUP_CHOICES, Menu, Menu_component ...
""" This is a middleware layer which keeps a log of all requests made to the server. It is responsible for removing security tokens and similar from such events, and relaying them to the event tracking framework. """ import hashlib import json import logging import re import sys import six from django.conf import setti...
from makerbot_pyserial.rfc2217 import Serial
import spack.tengine as tengine from . import writer, PathContext @writer('singularity') class SingularityContext(PathContext): """Context used to instantiate a Singularity definition file""" #: Name of the template used for Singularity definition files template_name = 'container/singularity.def' @prope...
from spack import * class Blogbench(AutotoolsPackage): """A filesystem benchmark tool that simulates a realistic load.""" homepage = "https://openbenchmarking.org/test/pts/blogbench" url = "http://download.pureftpd.org/pub/blogbench/blogbench-1.1.tar.gz" version('1.1', sha256='8cded059bfdbccb7be35b...
from spack import * class PyRpy2(PythonPackage): """rpy2 is a redesign and rewrite of rpy. It is providing a low-level interface to R from Python, a proposed high-level interface, including wrappers to graphical libraries, as well as R-like structures and functions. """ homepage = "http...
import FreeCAD import FreeCADGui import Path import Draft from PySide import QtCore, QtGui from PathScripts import PathUtils """Path Engrave object and FreeCAD command""" try: _encoding = QtGui.QApplication.UnicodeUTF8 def translate(context, text, disambig=None): return QtGui.QApplication.translate(cont...
from spack import * class PyVscBase(PythonPackage): """Common Python libraries tools created by HPC-UGent""" homepage = 'https://github.com/hpcugent/vsc-base/' url = 'https://pypi.io/packages/source/v/vsc-base/vsc-base-2.5.8.tar.gz' version('2.5.8', sha256='7fcd300f842edf4baade7d0b7a3b462ca7dfb2a41...
from pygal import CHARTS, CHARTS_BY_NAME from pygal.test import adapt from pygal.etree import etree from random import sample import timeit import sys sizes = (1, 5, 10, 50, 100, 500, 1000) rands = list(zip( sample(range(1000), 1000), sample(range(1000), 1000))) def perf(chart_name, length, series): chart =...
from distutils.core import setup from catkin_pkg.python_setup import generate_distutils_setup d = generate_distutils_setup( packages=['ist_object_detection'], package_dir={'': 'scripts'} ) setup(**d)
""" Chris's solution through step 3 """ class TextWrapper: """ A simple wrapper that creates a class with a render method for just text This allows the Element classes to render either Element objects or plain text """ def __init__(self, text): self.text = text def render(self, f...
from tempest_lib.common.utils import data_utils from tempest_lib import exceptions as lib_exc from tempest.api.compute import base from tempest.common import tempest_fixtures as fixtures from tempest import test class AggregatesAdminTestJSON(base.BaseV2ComputeAdminTest): """ Tests Aggregates API that require ad...
from uuid import uuid4 from tests.integration.cqlengine.base import BaseCassEngTestCase from cassandra.cqlengine.management import sync_table from cassandra.cqlengine.management import drop_table from cassandra.cqlengine.models import Model from cassandra.cqlengine import columns class TestModel(Model): id = c...
"""Handy utility functions.""" __author__ = 'api.sgrinberg@gmail.com (Stan Grinberg)' import gzip import os import StringIO import time import urllib from adspygoogle.common import SanityCheck from adspygoogle.common import Utils from adspygoogle.common.Errors import ValidationError from adspygoogle.dfp import DEFAULT_...
""" The MatchMaker classes should accept a Topic or Fanout exchange key and return keys for direct exchanges, per (approximate) AMQP parlance. """ from oslo.config import cfg from nova.openstack.common import importutils from nova.openstack.common import log as logging from nova.openstack.common.rpc import matchmaker a...
import os import sys import unittest from shutil import rmtree from StringIO import StringIO from time import time from tempfile import mkdtemp from eventlet import spawn, Timeout, listen import simplejson from webob import Request from swift.container import server as container_server from swift.common.utils import no...
import expect from environment import Directory, File from glslc_test_framework import inside_glslc_testsuite @inside_glslc_testsuite('#line') class TestPoundVersion310InIncludingFile( expect.ReturnCodeIsZero, expect.StdoutMatch, expect.StderrMatch): """Tests that #line directives follows the behavior of versio...
""" Performance Period ================== Performance Periods are updated with every trade. When calling code needs a portfolio object that fulfills the algorithm protocol, use the PerformancePeriod.as_portfolio method. See that method for comments on the specific fields provided (and omitted). +---------------+---...
import os import murano.packages.hot_package import murano.packages.load_utils as load_utils import murano.tests.unit.base as test_base class TestHotPackage(test_base.MuranoTestCase): def test_heat_files_generated(self): package_dir = os.path.abspath( os.path.join(__file__, ...
""" Support for Blink system camera control. For more details about this platform, please refer to the documentation at https://home-assistant.io/components/binary_sensor.blink/ """ from homeassistant.components.blink import DOMAIN from homeassistant.components.binary_sensor import BinarySensorDevice DEPENDENCIES = ['b...
from PyObjCTools.TestSupport import * from Foundation import * class TestNSIndexPath (TestCase): def testMethods(self): self.assertArgIsIn(NSIndexPath.indexPathWithIndexes_length_, 0) self.assertArgSizeInArg(NSIndexPath.indexPathWithIndexes_length_, 0, 1) self.assertArgIsIn(NSIndexPath.initW...
import operator import numpy as np from numpy.core.multiarray import normalize_axis_index from scipy.linalg import (get_lapack_funcs, LinAlgError, cholesky_banded, cho_solve_banded, solve, solve_banded) from . import _bspl from . import _fitpack_impl from . import _fi...
"""test sparse matrix construction functions""" import numpy as np from numpy import array from numpy.testing import (assert_equal, assert_, assert_array_equal, assert_array_almost_equal_nulp) import pytest from pytest import raises as assert_raises from scipy._lib._testutils import check_free_memory from scipy...
''' Created on Mar 27, 2012 @author: bolme ''' import pyvision as pv import os import numpy as np import pyvision.face.CascadeDetector as cd WEIGHTS = np.array([[ 5.62758656e+00], [ 1.43633799e+00], [ 1.64466919e+01], [ 1.39618695e+02], [ 6.65913984e+00], [ -2.92879480e+01], ...
"""Tokenization help for Python programs. generate_tokens(readline) is a generator that breaks a stream of text into Python tokens. It accepts a readline-like method which is called repeatedly to get the next line of input (or "" for EOF). It generates 5-tuples with these members: the token type (see token.py) ...
from framework.dependency_management.dependency_resolver import BaseComponent from framework.dependency_management.interfaces import DBConfigInterface from framework.lib.exceptions import InvalidConfigurationReference from framework.db import models from framework.lib.general import cprint import ConfigParser import lo...
from gzip import GzipFile import os.path as op import re import time import uuid import numpy as np from scipy import linalg, sparse from .constants import FIFF from ..utils import logger from ..externals.jdcal import jcal2jd DATE_NONE = (0, 2 ** 31 - 1) def _write(fid, data, kind, data_size, FIFFT_TYPE, dtype): ""...
""" A test facility to assert call sequences while mocking their behavior. """ import unittest from devil import devil_env with devil_env.SysPath(devil_env.PYMOCK_PATH): import mock # pylint: disable=import-error class TestCase(unittest.TestCase): """Adds assertCalls to TestCase objects.""" class _AssertCalls(obj...
""" pyrseas.augment ~~~~~~~~~~~~~~~ This defines two low level classes. Most Database Augmenter classes are derived from either DbAugment or DbAugmentDict. """ class DbAugment(object): "A database augmentation object" keylist = ['name'] """List of attributes that uniquely identify the objec...
from __future__ import annotations from typing import ( TYPE_CHECKING, Any, ) import numpy as np from pandas._config import get_option from pandas._libs import ( lib, missing as libmissing, ) from pandas._libs.arrays import NDArrayBacked from pandas._typing import ( Dtype, Scalar, type_t, ) ...
import datetime from django.db.models.signals import post_save from django.contrib.auth.models import User from django.utils.timezone import now import mock from factory.django import mute_signals from nose.tools import eq_, ok_ from remo.base.tests import RemoTestCase from remo.events.templatetags.helpers import get_e...
from south.db import db from django.db import models from cms.models import * class Migration: def forwards(self, orm): # Adding ManyToManyField 'GlobalPagePermission.sites' db.create_table('cms_globalpagepermission_sites', ( ('id', models.AutoField(verbose_name='ID', primary_key=True, a...
import rnn import sys if len(sys.argv) < 2: sys.stdout.write ("Usage:\n" "\trnncheck file.xml\n" ) sys.exit(2) db = rnn.Database() rnn.parsefile(db, sys.argv[1]) db.prep() sys.exit(db.estatus)
__author__ = 'Pyt' __version__ = '0.1a' __email__ = "paulqc514@gmail.com" __licence__= "MIT"
from flask import render_template from SoftLayer import MessagingManager from slick.utils.core import get_client def get_widgets(): return [MQSummaryWidget()] class MQSummaryWidget(object): def __init__(self): self.width = 'small' self.height = 'large' self.no_body = True self.ti...
""" *************************************************************************** information.py --------------------- Date : August 2012 Copyright : (C) 2012 by Victor Olaya Email : volayaf at gmail dot com ****************************************************...
import random from symmetricmap import * class Cavemap(SymmetricMap): def __init__(self, **kwargs): kwargs["defaultterrain"]=WATER SymmetricMap.__init__(self, **kwargs) def add_water_randomly(self,percent=0.49): for point in self.size.upto(): self[point]=LAND if r...
from __future__ import (absolute_import, division, print_function) import math from sympy import symbols, exp, S, Poly from sympy.codegen.rewriting import optimize from sympy.codegen.approximations import SumApprox, SeriesApprox def test_SumApprox_trivial(): x = symbols('x') expr1 = 1 + x sum_approx = SumAp...
import os import time import traceback import ssl from httplib import HTTPSConnection try: from urllib.parse import urlparse except ImportError: from urlparse import urlparse try: import ovirtsdk4.types as otypes except ImportError: pass from ansible.module_utils.basic import AnsibleModule from ansible....
from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('flatpages', '0001_initial'), ('ddah_web', '0009_auto_20150512_1325'), ] operations = [ migrations.CreateModel( name='DdahFlatPage', ...
HTTP_TIMEOUT = 10
from bedrock.redirects.util import redirect redirectpatterns = ( # bug 1255785 redirect(r'^styleguide/identity/mozilla/logo-prototype/?$', 'styleguide.home'), # bug 1268847 redirect(r'^styleguide/websites/sandstone/buttons/?$', 'styleguide.websites.sandstone-intro'), redirect(r'^stylegu...
__author__ = "Gina Häußge <osd@foosel.net>" __license__ = 'GNU Affero General Public License http://www.gnu.org/licenses/agpl.html' from flask.ext.login import UserMixin from flask.ext.principal import Identity import hashlib import os import yaml from octoprint.settings import settings class UserManager(object): vali...
{ 'name': 'Account fiscal year and period code extended', 'version': '0.1', 'author': 'ClearCorp S.A.', 'website': 'http://clearcorp.co.cr', 'category': 'General Modules/Accounting', 'description': """Enables up to 64 chars in a fiscal year and period code """, 'depends': ['account'], 'init_xml': [], 'demo_xm...
{ 'sequence': 500, "name" : "Budget Create" , "version" : "1.0" , "author" : "ChriCar Beteiligungs- und Beratungs- GmbH" , "website" : "http://www.chricar.at/ChriCar" , "description" : """ Create budget lines derived from account_move_lines of previous periods. This is helpful for planning fixe...
import os, sys, re, subprocess def findDepApps(dep_names, use_current_only=False): dep_name = dep_names.split('~')[0] app_dirs = [] moose_apps = ['framework', 'moose', 'test', 'unit', 'modules', 'examples'] apps = [] # First see if we are in a git repo p = subprocess.Popen('git rev-parse --show-...
from spack import * class Rose(AutotoolsPackage): """A compiler infrastructure to build source-to-source program transformation and analysis tools. (Developed at Lawrence Livermore National Lab)""" homepage = "http://rosecompiler.org/" url = "https://github.com/rose-compiler/rose/archive/v0.9....