<s> """<STR_LIT>""" <EOL> import sys <EOL> import re <EOL> NONWORD_RE = re . compile ( '<STR_LIT>' ) <EOL> idx = { } <EOL> with open ( sys . argv [ <NUM_LIT:1> ] , encoding = '<STR_LIT:utf-8>' ) as fp : <EOL> for n , line in enumerate ( fp , <NUM_LIT:1> ) : <EOL> for word in NONWORD_RE . split ( line ) : <EOL> if word . strip ( ) : <EOL> idx . setdefault ( word , [ ] ) . append ( n ) <EOL> for word in sorted ( idx , key = str . upper ) : <EOL> print ( word , idx [ word ] ) </s>
