<s> """<STR_LIT>""" <EOL> import logging <EOL> import os <EOL> import subprocess <EOL> log = logging . getLogger ( '<STR_LIT:html>' ) <EOL> def run ( args , shell = False ) : <EOL> """<STR_LIT>""" <EOL> log . debug ( "<STR_LIT>" , args ) <EOL> p = subprocess . Popen ( args , shell = shell ) <EOL> os . waitpid ( p . pid , <NUM_LIT:0> ) <EOL> def pipe ( args , input ) : <EOL> """<STR_LIT>""" <EOL> log . debug ( "<STR_LIT>" , args ) <EOL> p = subprocess . Popen ( args , stdout = subprocess . PIPE , stdin = subprocess . PIPE ) <EOL> return p . communicate ( input ) [ <NUM_LIT:0> ] . strip ( ) <EOL> def save_output ( args , output_file ) : <EOL> """<STR_LIT>""" <EOL> with file ( output_file , '<STR_LIT:w>' ) as f : <EOL> p = subprocess . Popen ( args , stdout = f ) <EOL> os . waitpid ( p . pid , <NUM_LIT:0> ) </s>
