def rewrite_elife_datasets_json(json_content, doi):
<EOL>elife_dataset_dates = []<EOL>elife_dataset_dates.append(("<STR_LIT>", "<STR_LIT>", "<STR_LIT>", u"<STR_LIT>"))<EOL>elife_dataset_dates.append(("<STR_LIT>", "<STR_LIT>", "<STR_LIT>", u"<STR_LIT>"))<EOL>elife_dataset_dates.append(("<STR_LIT>", "<STR_LIT>", "<STR_LIT>", u"<STR_LIT>"))<EOL>elife_dataset_dates.append(("<STR_LIT>", "<STR_LIT>", "<STR_LIT>", u"<STR_LIT>"))<EOL>elife_dataset_dates.append(("<STR_LIT>", "<STR_LIT>", "<STR_LIT>", u"<STR_LIT>"))<EOL>elife_dataset_dates.append(("<STR_LIT>", "<STR_LIT>", "<STR_LIT>", u"<STR_LIT>"))<EOL>if doi in map(lambda dataset: dataset[<NUM_LIT:0>], elife_dataset_dates):<EOL><INDENT>for (match_doi, used_or_generated, id, dataset_date) in elife_dataset_dates:<EOL><INDENT>if doi == match_doi:<EOL><INDENT>if json_content.get(used_or_generated):<EOL><INDENT>for dataset in json_content[used_or_generated]:<EOL><INDENT>if dataset.get("<STR_LIT:id>") and dataset["<STR_LIT:id>"] == id:<EOL><INDENT>if not dataset.get("<STR_LIT:date>"):<EOL><INDENT>dataset["<STR_LIT:date>"] = dataset_date<EOL><DEDENT><DEDENT><DEDENT><DEDENT><DEDENT><DEDENT><DEDENT>if doi == "<STR_LIT>":<EOL><INDENT>if json_content.get("<STR_LIT>"):<EOL><INDENT>for dataset in json_content["<STR_LIT>"]:<EOL><INDENT>if dataset.get("<STR_LIT:id>") and dataset["<STR_LIT:id>"] in ["<STR_LIT>", "<STR_LIT>", "<STR_LIT>"]:<EOL><INDENT>if not dataset.get("<STR_LIT:date>"):<EOL><INDENT>dataset["<STR_LIT:date>"] = u"<STR_LIT>"<EOL><DEDENT>if not dataset.get("<STR_LIT>"):<EOL><INDENT>dataset["<STR_LIT>"] = [{"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}]<EOL><DEDENT><DEDENT>if dataset.get("<STR_LIT:id>") and dataset["<STR_LIT:id>"] == "<STR_LIT>":<EOL><INDENT>if not dataset.get("<STR_LIT:date>"):<EOL><INDENT>dataset["<STR_LIT:date>"] = u"<STR_LIT>"<EOL><DEDENT>if not dataset.get("<STR_LIT>"):<EOL><INDENT>dataset["<STR_LIT>"] = [{"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}]<EOL><DEDENT><DEDENT>if dataset.get("<STR_LIT:id>") and dataset["<STR_LIT:id>"] == "<STR_LIT>":<EOL><INDENT>if not dataset.get("<STR_LIT:date>"):<EOL><INDENT>dataset["<STR_LIT:date>"] = u"<STR_LIT>"<EOL><DEDENT>if not dataset.get("<STR_LIT>"):<EOL><INDENT>dataset["<STR_LIT>"] = [{"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}]<EOL><DEDENT><DEDENT>if dataset.get("<STR_LIT:id>") and dataset["<STR_LIT:id>"] in ["<STR_LIT>", "<STR_LIT>"]:<EOL><INDENT>if not dataset.get("<STR_LIT:date>"):<EOL><INDENT>dataset["<STR_LIT:date>"] = u"<STR_LIT>"<EOL><DEDENT>if not dataset.get("<STR_LIT>"):<EOL><INDENT>dataset["<STR_LIT>"] = [{"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}]<EOL><DEDENT><DEDENT><DEDENT><DEDENT><DEDENT>if doi == "<STR_LIT>":<EOL><INDENT>if json_content.get("<STR_LIT>"):<EOL><INDENT>for dataset in json_content["<STR_LIT>"]:<EOL><INDENT>if dataset.get("<STR_LIT:id>") and dataset["<STR_LIT:id>"] == "<STR_LIT>":<EOL><INDENT>if not dataset.get("<STR_LIT>"):<EOL><INDENT>dataset["<STR_LIT>"] = [{"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}]<EOL><DEDENT><DEDENT><DEDENT><DEDENT><DEDENT>if doi == "<STR_LIT>":<EOL><INDENT>if json_content.get("<STR_LIT>"):<EOL><INDENT>for dataset in json_content["<STR_LIT>"]:<EOL><INDENT>if dataset.get("<STR_LIT:id>") and dataset["<STR_LIT:id>"] == "<STR_LIT>":<EOL><INDENT>if dataset.get("<STR_LIT:date>") and dataset.get("<STR_LIT:date>") == "<STR_LIT>":<EOL><INDENT>dataset["<STR_LIT:date>"] = u"<STR_LIT>"<EOL><DEDENT><DEDENT><DEDENT><DEDENT><DEDENT>if doi == "<STR_LIT>":<EOL><INDENT>if json_content.get("<STR_LIT>"):<EOL><INDENT>for dataset in json_content["<STR_LIT>"]:<EOL><INDENT>if dataset.get("<STR_LIT:id>") and dataset["<STR_LIT:id>"] == "<STR_LIT>":<EOL><INDENT>if not dataset.get("<STR_LIT:title>"):<EOL><INDENT>dataset["<STR_LIT:title>"] = u"<STR_LIT>"<EOL><DEDENT><DEDENT><DEDENT><DEDENT><DEDENT>if doi == "<STR_LIT>":<EOL><INDENT>if json_content.get("<STR_LIT>"):<EOL><INDENT>for dataset in json_content["<STR_LIT>"]:<EOL><INDENT>if dataset.get("<STR_LIT:id>") and dataset["<STR_LIT:id>"] == "<STR_LIT>":<EOL><INDENT>if not dataset.get("<STR_LIT:date>"):<EOL><INDENT>dataset["<STR_LIT:date>"] = u"<STR_LIT>"<EOL><DEDENT>if not dataset.get("<STR_LIT>"):<EOL><INDENT>dataset["<STR_LIT>"] = [{"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}, {"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}, {"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}, {"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}, {"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}, {"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}, {"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}, {"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}, {"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}, {"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}, {"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}, {"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}, {"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}, {"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}, {"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}, {"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}, {"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}, {"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}, {"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}]<EOL><DEDENT><DEDENT><DEDENT><DEDENT><DEDENT>if doi == "<STR_LIT>":<EOL><INDENT>if json_content.get("<STR_LIT>"):<EOL><INDENT>for dataset in json_content["<STR_LIT>"]:<EOL><INDENT>if dataset.get("<STR_LIT:id>") and dataset["<STR_LIT:id>"] == "<STR_LIT>":<EOL><INDENT>if not dataset.get("<STR_LIT:date>"):<EOL><INDENT>dataset["<STR_LIT:date>"] = u"<STR_LIT>"<EOL><DEDENT>if not dataset.get("<STR_LIT>"):<EOL><INDENT>dataset["<STR_LIT>"] = [{"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}]<EOL><DEDENT><DEDENT><DEDENT><DEDENT><DEDENT>if doi == "<STR_LIT>":<EOL><INDENT>if json_content.get("<STR_LIT>"):<EOL><INDENT>for dataset in json_content["<STR_LIT>"]:<EOL><INDENT>if dataset.get("<STR_LIT:id>") and dataset["<STR_LIT:id>"] == "<STR_LIT>":<EOL><INDENT>if not dataset.get("<STR_LIT>"):<EOL><INDENT>dataset["<STR_LIT>"] = [{"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}]<EOL><DEDENT><DEDENT><DEDENT><DEDENT><DEDENT>if doi == "<STR_LIT>":<EOL><INDENT>if json_content.get("<STR_LIT>"):<EOL><INDENT>for dataset in json_content["<STR_LIT>"]:<EOL><INDENT>if dataset.get("<STR_LIT:id>") and dataset["<STR_LIT:id>"] == "<STR_LIT>":<EOL><INDENT>if dataset.get("<STR_LIT:date>") and dataset.get("<STR_LIT:date>") == "<STR_LIT>":<EOL><INDENT>dataset["<STR_LIT:date>"] = u"<STR_LIT>"<EOL><DEDENT><DEDENT><DEDENT><DEDENT><DEDENT>if doi == "<STR_LIT>":<EOL><INDENT>if json_content.get("<STR_LIT>"):<EOL><INDENT>for dataset in json_content["<STR_LIT>"]:<EOL><INDENT>if dataset.get("<STR_LIT:id>") and dataset["<STR_LIT:id>"] == "<STR_LIT>":<EOL><INDENT>if dataset.get("<STR_LIT:date>") and dataset.get("<STR_LIT:date>") == "<STR_LIT>":<EOL><INDENT>dataset["<STR_LIT:date>"] = u"<STR_LIT>"<EOL><DEDENT><DEDENT><DEDENT><DEDENT><DEDENT>if doi == "<STR_LIT>":<EOL><INDENT>if json_content.get("<STR_LIT>"):<EOL><INDENT>for dataset in json_content["<STR_LIT>"]:<EOL><INDENT>if dataset.get("<STR_LIT:id>") and dataset["<STR_LIT:id>"] == "<STR_LIT>":<EOL><INDENT>if not dataset.get("<STR_LIT:date>"):<EOL><INDENT>dataset["<STR_LIT:date>"] = u"<STR_LIT>"<EOL><DEDENT>if not dataset.get("<STR_LIT>"):<EOL><INDENT>dataset["<STR_LIT>"] = [{"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}]<EOL><DEDENT><DEDENT><DEDENT><DEDENT><DEDENT>if doi == "<STR_LIT>":<EOL><INDENT>if json_content.get("<STR_LIT>"):<EOL><INDENT>for dataset in json_content["<STR_LIT>"]:<EOL><INDENT>if dataset.get("<STR_LIT:id>") and dataset["<STR_LIT:id>"] == "<STR_LIT>":<EOL><INDENT>if dataset.get("<STR_LIT:date>") and dataset.get("<STR_LIT:date>") == "<STR_LIT>":<EOL><INDENT>dataset["<STR_LIT:date>"] = u"<STR_LIT>"<EOL><DEDENT><DEDENT>if dataset.get("<STR_LIT:id>") and dataset["<STR_LIT:id>"] == "<STR_LIT>":<EOL><INDENT>if dataset.get("<STR_LIT:date>") and dataset.get("<STR_LIT:date>") == "<STR_LIT>":<EOL><INDENT>dataset["<STR_LIT:date>"] = u"<STR_LIT>"<EOL><DEDENT><DEDENT><DEDENT><DEDENT><DEDENT>if doi == "<STR_LIT>":<EOL><INDENT>if json_content.get("<STR_LIT>"):<EOL><INDENT>for dataset in json_content["<STR_LIT>"]:<EOL><INDENT>if dataset.get("<STR_LIT:id>") and dataset["<STR_LIT:id>"] == "<STR_LIT>":<EOL><INDENT>if not dataset.get("<STR_LIT>"):<EOL><INDENT>dataset["<STR_LIT>"] = [{"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}, {"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}, {"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}]<EOL><DEDENT><DEDENT><DEDENT><DEDENT><DEDENT>if doi == "<STR_LIT>":<EOL><INDENT>if json_content.get("<STR_LIT>"):<EOL><INDENT>for dataset in json_content["<STR_LIT>"]:<EOL><INDENT>if dataset.get("<STR_LIT:id>") and dataset["<STR_LIT:id>"] == "<STR_LIT>":<EOL><INDENT>if not dataset.get("<STR_LIT>"):<EOL><INDENT>dataset["<STR_LIT>"] = [{"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}]<EOL><DEDENT><DEDENT><DEDENT><DEDENT><DEDENT>if doi == "<STR_LIT>":<EOL><INDENT>if json_content.get("<STR_LIT>"):<EOL><INDENT>for dataset in json_content["<STR_LIT>"]:<EOL><INDENT>if dataset.get("<STR_LIT:id>") and dataset["<STR_LIT:id>"] == "<STR_LIT>":<EOL><INDENT>if not dataset.get("<STR_LIT>"):<EOL><INDENT>dataset["<STR_LIT>"] = [{"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}]<EOL><DEDENT><DEDENT><DEDENT><DEDENT><DEDENT>if doi == "<STR_LIT>":<EOL><INDENT>if json_content.get("<STR_LIT>"):<EOL><INDENT>for dataset in json_content["<STR_LIT>"]:<EOL><INDENT>if dataset.get("<STR_LIT:id>") and dataset["<STR_LIT:id>"] == "<STR_LIT>":<EOL><INDENT>if not dataset.get("<STR_LIT>"):<EOL><INDENT>dataset["<STR_LIT>"] = [{"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}]<EOL><DEDENT><DEDENT><DEDENT><DEDENT><DEDENT>if doi == "<STR_LIT>":<EOL><INDENT>if json_content.get("<STR_LIT>"):<EOL><INDENT>datasets_authors_for_10856 = [{"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}, {"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}, {"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}, {"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}, {"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}, {"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}, {"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}, {"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}, {"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}, {"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}, {"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}, {"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}, {"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}, {"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}, {"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}, {"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}]<EOL>for dataset in json_content["<STR_LIT>"]:<EOL><INDENT>if dataset.get("<STR_LIT:id>") and dataset["<STR_LIT:id>"] == "<STR_LIT>":<EOL><INDENT>if not dataset.get("<STR_LIT:date>"):<EOL><INDENT>dataset["<STR_LIT:date>"] = u"<STR_LIT>"<EOL><DEDENT>if not dataset.get("<STR_LIT:title>"):<EOL><INDENT>dataset["<STR_LIT:title>"] = u"<STR_LIT>"<EOL><DEDENT>if not dataset.get("<STR_LIT>"):<EOL><INDENT>dataset["<STR_LIT>"] = datasets_authors_for_10856<EOL><DEDENT>if dataset.get("<STR_LIT>") and dataset["<STR_LIT>"] == "<STR_LIT>":<EOL><INDENT>dataset["<STR_LIT>"] = "<STR_LIT>"<EOL><DEDENT><DEDENT>if dataset.get("<STR_LIT:id>") and dataset["<STR_LIT:id>"] == "<STR_LIT>":<EOL><INDENT>if not dataset.get("<STR_LIT:date>"):<EOL><INDENT>dataset["<STR_LIT:date>"] = u"<STR_LIT>"<EOL><DEDENT>if not dataset.get("<STR_LIT:title>"):<EOL><INDENT>dataset["<STR_LIT:title>"] = u"<STR_LIT>"<EOL><DEDENT>if not dataset.get("<STR_LIT>"):<EOL><INDENT>dataset["<STR_LIT>"] = datasets_authors_for_10856<EOL><DEDENT>if dataset.get("<STR_LIT>") and dataset["<STR_LIT>"] == "<STR_LIT>":<EOL><INDENT>dataset["<STR_LIT>"] = "<STR_LIT>"<EOL><DEDENT><DEDENT>if dataset.get("<STR_LIT:id>") and dataset["<STR_LIT:id>"] == "<STR_LIT>":<EOL><INDENT>if not dataset.get("<STR_LIT>"):<EOL><INDENT>dataset["<STR_LIT>"] = datasets_authors_for_10856<EOL><DEDENT><DEDENT><DEDENT><DEDENT><DEDENT>if doi == "<STR_LIT>":<EOL><INDENT>if json_content.get("<STR_LIT>"):<EOL><INDENT>for dataset in json_content["<STR_LIT>"]:<EOL><INDENT>if dataset.get("<STR_LIT:id>") and dataset["<STR_LIT:id>"] == "<STR_LIT>":<EOL><INDENT>if not dataset.get("<STR_LIT:title>"):<EOL><INDENT>dataset["<STR_LIT:title>"] = u"<STR_LIT>"<EOL><DEDENT><DEDENT><DEDENT><DEDENT><DEDENT>if doi == "<STR_LIT>":<EOL><INDENT>if json_content.get("<STR_LIT>"):<EOL><INDENT>for dataset in json_content["<STR_LIT>"]:<EOL><INDENT>if dataset.get("<STR_LIT:id>") and dataset["<STR_LIT:id>"] == "<STR_LIT>":<EOL><INDENT>if not dataset.get("<STR_LIT>"):<EOL><INDENT>dataset["<STR_LIT>"] = [{"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}, {"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}]<EOL><DEDENT><DEDENT><DEDENT><DEDENT>if json_content.get("<STR_LIT>"):<EOL><INDENT>for dataset in json_content["<STR_LIT>"]:<EOL><INDENT>if dataset.get("<STR_LIT:id>") and dataset["<STR_LIT:id>"] == "<STR_LIT>":<EOL><INDENT>if not dataset.get("<STR_LIT>"):<EOL><INDENT>dataset["<STR_LIT>"] = [{"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}, {"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}, {"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}, {"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}]<EOL><DEDENT><DEDENT><DEDENT><DEDENT><DEDENT>if doi == "<STR_LIT>":<EOL><INDENT>if json_content.get("<STR_LIT>"):<EOL><INDENT>for dataset in json_content["<STR_LIT>"]:<EOL><INDENT>if dataset.get("<STR_LIT:id>") and dataset["<STR_LIT:id>"] == "<STR_LIT>":<EOL><INDENT>if not dataset.get("<STR_LIT>"):<EOL><INDENT>dataset["<STR_LIT>"] = [{"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}]<EOL><DEDENT><DEDENT><DEDENT><DEDENT><DEDENT>if doi == "<STR_LIT>":<EOL><INDENT>if json_content.get("<STR_LIT>"):<EOL><INDENT>for dataset in json_content["<STR_LIT>"]:<EOL><INDENT>if dataset.get("<STR_LIT:id>") and dataset["<STR_LIT:id>"] == "<STR_LIT>":<EOL><INDENT>if not dataset.get("<STR_LIT>"):<EOL><INDENT>dataset["<STR_LIT>"] = [{"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}, {"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}, {"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}, {"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}, {"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}, {"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}, {"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}, {"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}, {"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}, {"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}, {"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}, {"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}, {"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}]<EOL><DEDENT><DEDENT>if dataset.get("<STR_LIT:id>") and dataset["<STR_LIT:id>"] == "<STR_LIT>":<EOL><INDENT>if not dataset.get("<STR_LIT>"):<EOL><INDENT>dataset["<STR_LIT>"] = [{"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}, {"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}, {"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}, {"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}, {"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}, {"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}, {"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}, {"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}, {"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}, {"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}]<EOL><DEDENT><DEDENT>if dataset.get("<STR_LIT:id>") and dataset["<STR_LIT:id>"] == "<STR_LIT>":<EOL><INDENT>if not dataset.get("<STR_LIT>"):<EOL><INDENT>dataset["<STR_LIT>"] = [{"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}, {"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}, {"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}, {"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}, {"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}, {"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}, {"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}, {"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}, {"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}, {"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}, {"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}, {"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}, {"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}]<EOL><DEDENT><DEDENT>if dataset.get("<STR_LIT:id>") and dataset["<STR_LIT:id>"] == "<STR_LIT>":<EOL><INDENT>if not dataset.get("<STR_LIT>"):<EOL><INDENT>dataset["<STR_LIT>"] = [{"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}, {"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}, {"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}, {"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"},{"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}]<EOL><DEDENT><DEDENT>if dataset.get("<STR_LIT:id>") and dataset["<STR_LIT:id>"] == "<STR_LIT>":<EOL><INDENT>if not dataset.get("<STR_LIT>"):<EOL><INDENT>dataset["<STR_LIT>"] = [{"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}, {"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}, {"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}, {"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}, {"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}, {"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}, {"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}, {"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}, {"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}, {"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}, {"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}, {"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}, {"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}, {"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}, {"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}, {"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}, {"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}, {"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}, {"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}, {"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}, {"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}, {"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}, {"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}, {"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}, {"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}, {"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}, {"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}, {"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}, {"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}, {"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}, {"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}, {"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}, {"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}, {"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}, {"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}, {"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}, {"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}]<EOL><DEDENT><DEDENT>if dataset.get("<STR_LIT:id>") and dataset["<STR_LIT:id>"] == "<STR_LIT>":<EOL><INDENT>if not dataset.get("<STR_LIT>"):<EOL><INDENT>dataset["<STR_LIT>"] = [{"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}]<EOL><DEDENT><DEDENT>if dataset.get("<STR_LIT:id>") and dataset["<STR_LIT:id>"] == "<STR_LIT>":<EOL><INDENT>if not dataset.get("<STR_LIT>"):<EOL><INDENT>dataset["<STR_LIT>"] = [{"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}, {"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}, {"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}, {"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}, {"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}, {"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}, {"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}, {"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}, {"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}]<EOL><DEDENT><DEDENT>if dataset.get("<STR_LIT:id>") and dataset["<STR_LIT:id>"] == "<STR_LIT>":<EOL><INDENT>if not dataset.get("<STR_LIT>"):<EOL><INDENT>dataset["<STR_LIT>"] = [{"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}]<EOL><DEDENT><DEDENT><DEDENT><DEDENT><DEDENT>if doi == "<STR_LIT>":<EOL><INDENT>if json_content.get("<STR_LIT>"):<EOL><INDENT>for dataset in json_content["<STR_LIT>"]:<EOL><INDENT>if dataset.get("<STR_LIT:id>") and dataset["<STR_LIT:id>"] == "<STR_LIT>":<EOL><INDENT>if not dataset.get("<STR_LIT>"):<EOL><INDENT>dataset["<STR_LIT>"] = [{"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}]<EOL><DEDENT><DEDENT><DEDENT><DEDENT><DEDENT>if doi == "<STR_LIT>":<EOL><INDENT>if json_content.get("<STR_LIT>"):<EOL><INDENT>for dataset in json_content["<STR_LIT>"]:<EOL><INDENT>if dataset.get("<STR_LIT:id>") and dataset["<STR_LIT:id>"] == "<STR_LIT>":<EOL><INDENT>if not dataset.get("<STR_LIT>"):<EOL><INDENT>dataset["<STR_LIT>"] = [{"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}]<EOL><DEDENT><DEDENT><DEDENT><DEDENT><DEDENT>if doi == "<STR_LIT>":<EOL><INDENT>if json_content.get("<STR_LIT>"):<EOL><INDENT>for dataset in json_content["<STR_LIT>"]:<EOL><INDENT>if dataset.get("<STR_LIT:id>") and dataset["<STR_LIT:id>"] == "<STR_LIT>":<EOL><INDENT>if not dataset.get("<STR_LIT:title>"):<EOL><INDENT>dataset["<STR_LIT:title>"] = u"<STR_LIT>"<EOL><DEDENT><DEDENT>if dataset.get("<STR_LIT:id>") and dataset["<STR_LIT:id>"] == "<STR_LIT>":<EOL><INDENT>if not dataset.get("<STR_LIT:title>"):<EOL><INDENT>dataset["<STR_LIT:title>"] = u"<STR_LIT>"<EOL><DEDENT><DEDENT><DEDENT><DEDENT>if json_content.get("<STR_LIT>"):<EOL><INDENT>for dataset in json_content["<STR_LIT>"]:<EOL><INDENT>if dataset.get("<STR_LIT:id>") and dataset["<STR_LIT:id>"] == "<STR_LIT>":<EOL><INDENT>if not dataset.get("<STR_LIT:date>"):<EOL><INDENT>dataset["<STR_LIT:date>"] = u"<STR_LIT>"<EOL><DEDENT><DEDENT><DEDENT><DEDENT><DEDENT>if doi == "<STR_LIT>":<EOL><INDENT>if json_content.get("<STR_LIT>"):<EOL><INDENT>for dataset in json_content["<STR_LIT>"]:<EOL><INDENT>if dataset.get("<STR_LIT:id>") and dataset["<STR_LIT:id>"] == "<STR_LIT>":<EOL><INDENT>if not dataset.get("<STR_LIT>"):<EOL><INDENT>dataset["<STR_LIT>"] = [{"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}, {"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}, {"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}, {"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}, {"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}, {"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}, {"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}, {"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}]<EOL><DEDENT><DEDENT><DEDENT><DEDENT><DEDENT>if doi == "<STR_LIT>":<EOL><INDENT>if json_content.get("<STR_LIT>"):<EOL><INDENT>for dataset in json_content["<STR_LIT>"]:<EOL><INDENT>if dataset.get("<STR_LIT:id>") and dataset["<STR_LIT:id>"] == "<STR_LIT>":<EOL><INDENT>if dataset.get("<STR_LIT:date>") and dataset.get("<STR_LIT:date>") == "<STR_LIT>":<EOL><INDENT>dataset["<STR_LIT:date>"] = u"<STR_LIT>"<EOL><DEDENT><DEDENT><DEDENT><DEDENT><DEDENT>if doi == "<STR_LIT>":<EOL><INDENT>if json_content.get("<STR_LIT>"):<EOL><INDENT>for dataset in json_content["<STR_LIT>"]:<EOL><INDENT>if dataset.get("<STR_LIT:id>") and dataset["<STR_LIT:id>"] == "<STR_LIT>":<EOL><INDENT>if not dataset.get("<STR_LIT:date>"):<EOL><INDENT>dataset["<STR_LIT:date>"] = u"<STR_LIT>"<EOL><DEDENT><DEDENT>if dataset.get("<STR_LIT:id>") and dataset["<STR_LIT:id>"] == "<STR_LIT>":<EOL><INDENT>if not dataset.get("<STR_LIT:date>"):<EOL><INDENT>dataset["<STR_LIT:date>"] = u"<STR_LIT>"<EOL><DEDENT><DEDENT>if dataset.get("<STR_LIT:id>") and dataset["<STR_LIT:id>"] == "<STR_LIT>":<EOL><INDENT>if not dataset.get("<STR_LIT:date>"):<EOL><INDENT>dataset["<STR_LIT:date>"] = u"<STR_LIT>"<EOL><DEDENT>if not dataset.get("<STR_LIT>"):<EOL><INDENT>dataset["<STR_LIT>"] = [{"<STR_LIT:type>": "<STR_LIT>", "<STR_LIT:name>": "<STR_LIT>"}]<EOL><DEDENT><DEDENT><DEDENT><DEDENT><DEDENT>if doi == "<STR_LIT>":<EOL><INDENT>if json_content.get("<STR_LIT>"):<EOL><INDENT>for dataset in json_content["<STR_LIT>"]:<EOL><INDENT>if dataset.get("<STR_LIT:id>") and dataset["<STR_LIT:id>"] == "<STR_LIT>":<EOL><INDENT>if dataset.get("<STR_LIT:date>") and dataset.get("<STR_LIT:date>").startswith("<STR_LIT>"):<EOL><INDENT>dataset["<STR_LIT:date>"] = u"<STR_LIT>"<EOL><DEDENT><DEDENT><DEDENT><DEDENT><DEDENT>return json_content<EOL>
this does the work of rewriting elife datasets json