<s> import sys <EOL> srfile = file ( sys . argv [ <NUM_LIT:1> ] ) <EOL> table = { } <EOL> for line in srfile . xreadlines ( ) : <EOL> clas , repl = line . split ( ) <EOL> if repl [ - <NUM_LIT:1> ] not in '<STR_LIT>' : <EOL> table [ '<STR_LIT:class>' + clas ] = repl <EOL> for line in sys . stdin . xreadlines ( ) : <EOL> fn , clas = line . split ( ) <EOL> if table . has_key ( clas ) : <EOL> print fn , table [ clas ] </s>
