import json

with open('mcq_split_0.jsonl', 'r') as infile, open('mcq_split_0_merged.jsonl', 'w') as outfile:
    for line in infile:
        data = json.loads(line)
        data['text'] = data['prompt'] + data['completion']
        json.dump(data, outfile)
        outfile.write('\n')
