# Path: antioch/core/errors.py
# class UserError(Exception):
# class TestError(Exception):
# class UsageError(UserError):
# class AmbiguousObjectError(UserError):
# class AmbiguousVerbError(UserError):
# class PermissionError(UserError):
# class AccessError(PermissionError):
# class RecursiveError(UserError):
# class QuotaError(UserError):
# class NoSuchObjectError(UserError):
# class NoSuchPrepositionError(UserError):
# class NoSuchVerbError(UserError):
# class NoSuchPropertyError(UserError):
# class ExecutionError(UserError):
#     def __init__(self, message, data=None):
#     def __str__(self):
#     def __repr__(self):
#     def __init__(self, message=None, data=None):
#     def __str__(self):
#     def __repr__(self):
#     def __init__(self, name, matches, message=None):
#     def __init__(self, name, matches):
#     def __init__(self, accessor, access_str, subject):
#     def __init__(self, name):
#     def __init__(self, prep):
#     def __init__(self, name):
#     def __init__(self, name, origin=None):
#     def __init__(self, code, e):
# 
# Path: antioch/util/ason.py
# def loads(j, exchange=None):
#     def to_entity(d):
# def dumps(obj):
#     def from_entity(o):


import time
import sys
import os.path
import logging
import argparse
import shlex
from RestrictedPython import compile_restricted
from RestrictedPython.Guards import safe_builtins
from RestrictedPython.Guards import guarded_unpack_sequence
from antioch.core import errors
from antioch.util import ason
        from antioch.core import interface
        from antioch.core import exchange
        from antioch import test
        from antioch.core import bootstrap
    from antioch import plugins
    from antioch.core import tasks
    for name in ['dict', 'getattr', 'hasattr']:
        safe_builtins[name] = __builtins__[name]
    
    env = dict(
        _apply_           = lambda f,*a,**kw: f(*a, **kw),
        _print_           = lambda x: _print_(),
        _write_           = _write_,
        _getattr_         = get_protected_attribute,
        _getitem_         = lambda obj, key: obj[key],
        _getiter_         = lambda obj: iter(obj),
        _inplacevar_      = inplace_var_modification,
        _unpack_sequence_ = guarded_unpack_sequence,
        __import__        = restricted_import,
        __builtins__      = safe_builtins,
    )
    
    for plugin in plugins.iterate():
        for name, func in list(plugin.get_environment().items()):
            if(hasattr(func, 'im_func')):
                func.__func__.__name__ = name
            else:
                func.__name__ = name
            api(func) if callable(func) else None
    
    for name, func in list(api.locals.items()):
        env[name] = func(p)
    
    for name in dir(errors):
        if not(name.endswith('Error')):
            continue

# Path: antioch/core/errors.py
# class UserError(Exception):
# class TestError(Exception):
# class UsageError(UserError):
# class AmbiguousObjectError(UserError):
# class AmbiguousVerbError(UserError):
# class PermissionError(UserError):
# class AccessError(PermissionError):
# class RecursiveError(UserError):
# class QuotaError(UserError):
# class NoSuchObjectError(UserError):
# class NoSuchPrepositionError(UserError):
# class NoSuchVerbError(UserError):
# class NoSuchPropertyError(UserError):
# class ExecutionError(UserError):
#     def __init__(self, message, data=None):
#     def __str__(self):
#     def __repr__(self):
#     def __init__(self, message=None, data=None):
#     def __str__(self):
#     def __repr__(self):
#     def __init__(self, name, matches, message=None):
#     def __init__(self, name, matches):
#     def __init__(self, accessor, access_str, subject):
#     def __init__(self, name):
#     def __init__(self, prep):
#     def __init__(self, name):
#     def __init__(self, name, origin=None):
#     def __init__(self, code, e):
# 
# Path: antioch/util/ason.py
# def loads(j, exchange=None):
#     def to_entity(d):
# def dumps(obj):
#     def from_entity(o):


# Path: antioch/core/code.py
import time
import sys
import os.path
import logging
import argparse
import shlex
from RestrictedPython import compile_restricted
from RestrictedPython.Guards import safe_builtins
from RestrictedPython.Guards import guarded_unpack_sequence
from antioch.core import errors
from antioch.util import ason
        from antioch.core import interface
        from antioch.core import exchange
        from antioch import test
        from antioch.core import bootstrap
    from antioch import plugins
    from antioch.core import tasks

    for name in ['dict', 'getattr', 'hasattr']:
        safe_builtins[name] = __builtins__[name]
    
    env = dict(
        _apply_           = lambda f,*a,**kw: f(*a, **kw),
        _print_           = lambda x: _print_(),
        _write_           = _write_,
        _getattr_         = get_protected_attribute,
        _getitem_         = lambda obj, key: obj[key],
        _getiter_         = lambda obj: iter(obj),
        _inplacevar_      = inplace_var_modification,
        _unpack_sequence_ = guarded_unpack_sequence,
        __import__        = restricted_import,
        __builtins__      = safe_builtins,
    )
    
    for plugin in plugins.iterate():
        for name, func in list(plugin.get_environment().items()):
            if(hasattr(func, 'im_func')):
                func.__func__.__name__ = name
            else:
                func.__name__ = name
            api(func) if callable(func) else None
    
    for name, func in list(api.locals.items()):
        env[name] = func(p)
    
    for name in dir(errors):
        if not(name.endswith('Error')):
            continue

        cls = getattr(errors, name)