<s> import os , sys <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> assert len ( sys . argv ) == <NUM_LIT:11> , "<STR_LIT>" % ( len ( sys . argv ) , '<STR_LIT:U+0020>' . join ( sys . argv ) ) <EOL> assert sys . argv [ <NUM_LIT:1> ] == '<STR_LIT>' <EOL> assert sys . argv [ <NUM_LIT:2> ] == '<STR_LIT:-c>' <EOL> assert sys . argv [ <NUM_LIT:3> ] [ - <NUM_LIT:4> : ] . lower ( ) == '<STR_LIT>' <EOL> assert sys . argv [ <NUM_LIT:4> ] == '<STR_LIT>' <EOL> assert sys . argv [ <NUM_LIT:5> ] [ - <NUM_LIT:5> : ] . lower ( ) == '<STR_LIT>' <EOL> assert sys . argv [ <NUM_LIT:6> ] == '<STR_LIT:U+002C>' <EOL> assert sys . argv [ <NUM_LIT:7> ] == '<STR_LIT>' <EOL> assert sys . argv [ <NUM_LIT:8> ] == '<STR_LIT>' <EOL> assert sys . argv [ <NUM_LIT:9> ] == '<STR_LIT>' <EOL> assert sys . argv [ <NUM_LIT:10> ] == '<STR_LIT>' <EOL> fname = sys . argv [ <NUM_LIT:5> ] [ : - <NUM_LIT:1> ] <EOL> try : <EOL> f = open ( fname , '<STR_LIT:w>' ) <EOL> source_lines = "<STR_LIT>" <EOL> stdout_lines = "<STR_LIT>" <EOL> for i in xrange ( <NUM_LIT:50> ) : <EOL> stdout_lines += "<STR_LIT>" % i <EOL> source_lines = """<STR_LIT>""" <EOL> f . write ( """<STR_LIT>""" % <EOL> ( stdout_lines , source_lines ) ) <EOL> f . close ( ) <EOL> except Exception , e : <EOL> import traceback <EOL> print traceback . print_stack ( e ) <EOL> if hasattr ( os , '<STR_LIT>' ) : <EOL> try : <EOL> os . chmod ( fname , <NUM_LIT:0> <NUM_LIT> ) <EOL> except : <EOL> pass </s>
