original_docstring: 
    <Purpose>
      Executes code with only safe builtins.
      If context is passed in, those keys will be available to the code.
    
    <Arguments>
      code: A string representation of python code
      context: A dictionary of variables to execute 'in'
      
    <Exceptions>
      exception_hierarchy.RunBuiltinException if an unsafe call is made
      Whatever else the source code may raise
    
    <Return>
      None
    
docstring: 
  Executes code with only safe builtins.
  If context is passed in, those keys will be available to the code.
  
  
  code: A string representation of python code
  context: A dictionary of variables to execute 'in'
  
  
  exception_hierarchy.RunBuiltinException if an unsafe call is made
  Whatever else the source code may raise
  
  
  None
docstring_tokens: Executes code with only safe builtins . If context is passed in those keys will be available to the code . code : A string representation of python code context : A dictionary of variables to execute ' in ' exception_hierarchy . RunBuiltinException if an unsafe call is made Whatever else the source code may raise None
code: def safe_run(code,context=None):
    """
    <Purpose>
      Executes code with only safe builtins.
      If context is passed in, those keys will be available to the code.
    
    <Arguments>
      code: A string representation of python code
      context: A dictionary of variables to execute 'in'
      
    <Exceptions>
      exception_hierarchy.RunBuiltinException if an unsafe call is made
      Whatever else the source code may raise
    
    <Return>
      None
    """
    global BUILTINS_DESTROYED
   
    if context == None:
      context = {}
    
    # Destroy the builtins if needed
    if not BUILTINS_DESTROYED:
      BUILTINS_DESTROYED = True
      _builtin_destroy()
     
    try:
      context['__builtins__'] = _builtin_globals
      exec(code, context)
    finally:
      _builtin_restore()
code_tokens: def safe_run ( code , context = None ) : global BUILTINS_DESTROYED if context == None : context = { } if not BUILTINS_DESTROYED : BUILTINS_DESTROYED = True _builtin_destroy ( ) try : context [ '__builtins__' ] = _builtin_globals exec ( code , context ) finally : _builtin_restore ( )
short_docstring: <Purpose>
  Executes code with only safe builtins.
short_docstring_tokens: <Purpose > Executes code with only safe builtins .
comment: """
    <Purpose>
      Executes code with only safe builtins.
      If context is passed in, those keys will be available to the code.
    
    <Arguments>
      code: A string representation of python code
      context: A dictionary of variables to execute 'in'
      
    <Exceptions>
      exception_hierarchy.RunBuiltinException if an unsafe call is made
      Whatever else the source code may raise
    
    <Return>
      None
    """$SEP$# Destroy the builtins if needed