<s> """<STR_LIT>""" <EOL> from retdec . exceptions import AnalysisFailedError <EOL> from retdec . resource import Resource <EOL> class Analysis ( Resource ) : <EOL> """<STR_LIT>""" <EOL> def wait_until_finished ( self , on_failure = AnalysisFailedError ) : <EOL> """<STR_LIT>""" <EOL> while not self . has_finished ( ) : <EOL> self . _wait_until_state_can_be_updated ( ) <EOL> if self . _failed : <EOL> self . _handle_failure ( on_failure , self . _error ) <EOL> def get_output ( self ) : <EOL> """<STR_LIT>""" <EOL> file_path = '<STR_LIT>' . format ( self . id ) <EOL> return self . _get_file_contents ( file_path , is_text_file = True ) <EOL> def __repr__ ( self ) : <EOL> return '<STR_LIT>' . format ( <EOL> __name__ + '<STR_LIT:.>' + self . __class__ . __name__ , <EOL> self . id <EOL> ) </s>
