<s> from AnalyzerEnvironment import * <EOL> import Trace <EOL> cls = "<STR_LIT>" <EOL> for traceName in args : <EOL> trace = traces [ traceName ] <EOL> pixmap = None <EOL> n = <NUM_LIT:0> <EOL> for event in trace . events : <EOL> for name , value in event . values . items ( ) : <EOL> if isinstance ( value , Trace . Object ) and value . cls . name == cls : <EOL> if not pixmap : <EOL> pixmap = value <EOL> else : <EOL> event . values [ name ] = pixmap <EOL> if value in event . modifiedObjects : <EOL> event . modifiedObjects . remove ( value ) <EOL> event . modifiedObjects . append ( pixmap ) <EOL> n += <NUM_LIT:1> <EOL> print "<STR_LIT>" % n </s>
