<s> import os <EOL> import sys <EOL> paths = [ sys . argv [ <NUM_LIT:1> ] ] <EOL> paths1 = [ ] <EOL> paths2 = [ ] <EOL> while paths : <EOL> path = paths . pop ( ) <EOL> for filename in os . listdir ( path ) : <EOL> fullname = os . path . join ( path , filename ) <EOL> if os . path . isdir ( fullname ) : <EOL> paths . append ( fullname ) <EOL> else : <EOL> extension = filename . split ( '<STR_LIT:.>' ) [ - <NUM_LIT:1> ] <EOL> if extension . lower ( ) in ( '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ) : <EOL> paths1 . append ( ( filename , fullname ) ) <EOL> if extension . lower ( ) in ( '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT:html>' ) : <EOL> paths2 . append ( fullname ) <EOL> for filename , fullname in paths1 : <EOL> for otherfullname in paths2 : <EOL> if open ( otherfullname ) . read ( ) . find ( filename ) >= <NUM_LIT:0> : <EOL> break <EOL> else : <EOL> print fullname </s>
