<s> import sys <EOL> from utils import * <EOL> class OutputLog ( object ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self ) : <EOL> super ( OutputLog , self ) . __init__ ( ) <EOL> self . _stdout = sys . stdout <EOL> sys . stdout = self <EOL> self . _outputLog = "<STR_LIT>" <EOL> def write ( self , text ) : <EOL> self . _outputLog += str ( text ) <EOL> self . _stdout . write ( text ) <EOL> log ( text ) <EOL> def getLog ( self ) : <EOL> """<STR_LIT>""" <EOL> return self . _outputLog </s>
