<s> """<STR_LIT>""" <EOL> import guv <EOL> guv . monkey_patch ( ) <EOL> from guv import gyield , patcher <EOL> import threading <EOL> import greenlet <EOL> threading_orig = patcher . original ( '<STR_LIT>' ) <EOL> greenlet_ids = { } <EOL> def debug ( i ) : <EOL> print ( '<STR_LIT>' . format ( threading . current_thread ( ) ) ) <EOL> print ( '<STR_LIT>' . format ( i , greenlet_ids ) ) <EOL> def f ( ) : <EOL> greenlet_ids [ <NUM_LIT:1> ] = greenlet . getcurrent ( ) <EOL> debug ( <NUM_LIT:2> ) <EOL> print ( '<STR_LIT>' ) <EOL> gyield ( ) <EOL> print ( '<STR_LIT>' ) <EOL> gyield ( ) <EOL> print ( '<STR_LIT>' ) <EOL> def main ( ) : <EOL> greenlet_ids [ <NUM_LIT:0> ] = greenlet . getcurrent ( ) <EOL> debug ( <NUM_LIT:1> ) <EOL> t = threading . Thread ( target = f ) <EOL> t . start ( ) <EOL> gyield ( ) <EOL> debug ( <NUM_LIT:3> ) <EOL> print ( '<STR_LIT>' ) <EOL> gyield ( ) <EOL> print ( '<STR_LIT>' ) <EOL> gyield ( ) <EOL> print ( '<STR_LIT>' ) <EOL> t . join ( ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> main ( ) </s>
