<s> from jug import TaskGenerator <EOL> from time import sleep <EOL> @ TaskGenerator <EOL> def double ( x ) : <EOL> sleep ( <NUM_LIT:4> ) <EOL> return <NUM_LIT:2> * x <EOL> @ TaskGenerator <EOL> def add ( a , b ) : <EOL> return a + b <EOL> @ TaskGenerator <EOL> def print_final_result ( oname , value ) : <EOL> with open ( oname , '<STR_LIT:w>' ) as output : <EOL> output . write ( "<STR_LIT>" . format ( value ) ) <EOL> input = <NUM_LIT:2> <EOL> y = double ( input ) <EOL> z = double ( y ) <EOL> y2 = double ( <NUM_LIT:7> ) <EOL> z2 = double ( y2 ) <EOL> print_final_result ( '<STR_LIT>' , add ( z , z2 ) ) </s>
