<s> from framework . latentmodule import LatentModule <EOL> class Main ( LatentModule ) : <EOL> def __init__ ( self ) : <EOL> LatentModule . __init__ ( self ) <EOL> self . awake_duration = <NUM_LIT:10> <EOL> self . snooze_duration = <NUM_LIT:10> <EOL> self . wakeup_sound = '<STR_LIT>' <EOL> self . transition_duration = <NUM_LIT> <EOL> self . moviefile = '<STR_LIT>' <EOL> self . begintime = <NUM_LIT:0.0> <EOL> self . endtime = <NUM_LIT> * <NUM_LIT> <EOL> def run ( self ) : <EOL> self . marker ( <NUM_LIT:10> ) <EOL> self . write ( '<STR_LIT>' , '<STR_LIT>' , wordwrap = <NUM_LIT:30> , pos = [ <NUM_LIT:0> , <NUM_LIT> ] ) <EOL> for k in [ <NUM_LIT:3> , <NUM_LIT:2> , <NUM_LIT:1> ] : <EOL> self . write ( '<STR_LIT>' + str ( k ) ) <EOL> self . trials = int ( ( self . endtime - self . begintime ) / self . awake_duration ) <EOL> for t in range ( self . trials ) : <EOL> self . marker ( <NUM_LIT:1> ) <EOL> m = self . movie ( self . moviefile , block = False , scale = [ <NUM_LIT> , <NUM_LIT> ] , aspect = <NUM_LIT> , contentoffset = [ <NUM_LIT:0> , <NUM_LIT:0> ] , volume = <NUM_LIT> , timeoffset = self . begintime + t * self . awake_duration , looping = True ) <EOL> self . crosshair ( self . awake_duration , size = <NUM_LIT> , width = <NUM_LIT> ) <EOL> m [ <NUM_LIT:0> ] . stop ( ) <EOL> m [ <NUM_LIT:2> ] . removeNode ( ) <EOL> self . marker ( <NUM_LIT:2> ) <EOL> self . sleep ( self . transition_duration ) <EOL> self . marker ( <NUM_LIT:3> ) <EOL> self . crosshair ( self . snooze_duration , size = <NUM_LIT> , width = <NUM_LIT> ) <EOL> self . sound ( self . wakeup_sound ) <EOL> self . marker ( <NUM_LIT:4> ) <EOL> self . sleep ( self . transition_duration ) <EOL> self . write ( '<STR_LIT>' ) </s>
