def _insert_data(con, data):
with con:<EOL><INDENT>cur = con.cursor()<EOL>cur.execute("<STR_LIT>")<EOL>cur.execute("<STR_LIT>")<EOL>for c in data[<NUM_LIT:0>]:<EOL><INDENT>locus = json.dumps(data[<NUM_LIT:0>][c]['<STR_LIT>'])<EOL>annotation = json.dumps(data[<NUM_LIT:0>][c]['<STR_LIT>'])<EOL>description = _get_description(data[<NUM_LIT:0>][c]['<STR_LIT>'])<EOL>sequences = json.dumps(_get_sequences(data[<NUM_LIT:0>][c]))<EOL>keys = data[<NUM_LIT:0>][c]['<STR_LIT>'][<NUM_LIT:0>].values()[<NUM_LIT:0>].keys()<EOL>profile = "<STR_LIT>"<EOL>if '<STR_LIT>' in data[<NUM_LIT:0>][c]:<EOL><INDENT>profile = json.dumps(_set_format(data[<NUM_LIT:0>][c]['<STR_LIT>']))<EOL><DEDENT>precursor = json.dumps(data[<NUM_LIT:0>][c].get('<STR_LIT>'))<EOL>cur.execute("<STR_LIT>" % (c, description, locus, annotation, sequences, profile, precursor))<EOL><DEDENT><DEDENT>
insert line for each cluster