<s> from . cache import clear_cache <EOL> from contextlib import contextmanager <EOL> class _global_evaluate ( list ) : <EOL> """<STR_LIT>""" <EOL> def __setitem__ ( self , key , value ) : <EOL> clear_cache ( ) <EOL> super ( _global_evaluate , self ) . __setitem__ ( key , value ) <EOL> global_evaluate = _global_evaluate ( [ True ] ) <EOL> @ contextmanager <EOL> def evaluate ( x ) : <EOL> """<STR_LIT>""" <EOL> old = global_evaluate [ <NUM_LIT:0> ] <EOL> global_evaluate [ <NUM_LIT:0> ] = x <EOL> yield <EOL> global_evaluate [ <NUM_LIT:0> ] = old </s>
