<s> import os <EOL> import re <EOL> import subprocess <EOL> import sys <EOL> import tempfile <EOL> _handle , tempfile1 = tempfile . mkstemp ( ) <EOL> temp_out = open ( tempfile1 , "<STR_LIT:wb>" ) <EOL> for line in subprocess . check_output ( [ "<STR_LIT>" , "<STR_LIT>" ] ) . split ( '<STR_LIT:\n>' ) : <EOL> if line : <EOL> values = list ( eval ( line ) ) <EOL> if values [ <NUM_LIT:0> ] [ <NUM_LIT:1> ] in ( "<STR_LIT>" , "<STR_LIT>" ) : <EOL> continue <EOL> if values [ <NUM_LIT:1> ] [ <NUM_LIT:1> ] in ( "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ) : <EOL> continue <EOL> if os . path . isdir ( values [ <NUM_LIT:0> ] [ <NUM_LIT:1> ] ) : <EOL> continue <EOL> print >> temp_out , line <EOL> temp_out . close ( ) <EOL> dot_graph = subprocess . check_output ( [ "<STR_LIT>" ] , stdin = open ( tempfile1 ) ) <EOL> os . unlink ( tempfile1 ) <EOL> temp_out = open ( tempfile1 , "<STR_LIT:wb>" ) <EOL> temp_out . write ( dot_graph ) <EOL> temp_out . close ( ) <EOL> dot_graph = subprocess . call ( [ "<STR_LIT>" , "<STR_LIT>" ] , stdin = open ( tempfile1 ) , stdout = open ( "<STR_LIT>" , "<STR_LIT:wb>" ) ) <EOL> os . unlink ( tempfile1 ) <EOL> subprocess . check_call ( [ "<STR_LIT>" , "<STR_LIT>" ] ) </s>
