<s> import json <EOL> import sys <EOL> """<STR_LIT>""" <EOL> with open ( sys . argv [ <NUM_LIT:1> ] ) as fin : <EOL> hits = json . load ( fin ) [ '<STR_LIT>' ] [ '<STR_LIT>' ] <EOL> with open ( sys . argv [ <NUM_LIT:2> ] , '<STR_LIT:w>' ) as fout : <EOL> for h in hits : <EOL> source = h [ '<STR_LIT>' ] <EOL> del h [ '<STR_LIT>' ] <EOL> del h [ '<STR_LIT>' ] <EOL> if '<STR_LIT>' in source : <EOL> source [ '<STR_LIT>' ] = source [ '<STR_LIT>' ] . split ( '<STR_LIT:/>' ) <EOL> del source [ '<STR_LIT>' ] <EOL> json . dump ( { '<STR_LIT:index>' : h } , fout ) <EOL> fout . write ( '<STR_LIT:\n>' ) <EOL> json . dump ( source , fout ) <EOL> fout . write ( '<STR_LIT:\n>' ) </s>
