def references_json_authors(ref_authors, ref_content):
all_authors = references_authors(ref_authors)<EOL>if all_authors != {}:<EOL><INDENT>if ref_content.get("<STR_LIT:type>") in ["<STR_LIT>", "<STR_LIT>", "<STR_LIT>",<EOL>"<STR_LIT>", "<STR_LIT>", "<STR_LIT>", "<STR_LIT>"]:<EOL><INDENT>for author_type in ["<STR_LIT>", "<STR_LIT>"]:<EOL><INDENT>set_if_value(ref_content, author_type, all_authors.get(author_type))<EOL><DEDENT><DEDENT>elif ref_content.get("<STR_LIT:type>") in ["<STR_LIT>", "<STR_LIT>"]:<EOL><INDENT>for author_type in ["<STR_LIT>", "<STR_LIT>", "<STR_LIT>", "<STR_LIT>"]:<EOL><INDENT>set_if_value(ref_content, author_type, all_authors.get(author_type))<EOL><DEDENT><DEDENT>elif ref_content.get("<STR_LIT:type>") in ["<STR_LIT>"]:<EOL><INDENT>for author_type in ["<STR_LIT>", "<STR_LIT>", "<STR_LIT>"]:<EOL><INDENT>if "<STR_LIT>" not in ref_content and all_authors.get(author_type):<EOL><INDENT>set_if_value(ref_content, "<STR_LIT>", all_authors.get(author_type))<EOL>set_if_value(ref_content, "<STR_LIT>", all_authors.get(author_type + "<STR_LIT>"))<EOL>ref_content["<STR_LIT>"] = author_type<EOL><DEDENT><DEDENT><DEDENT>elif ref_content.get("<STR_LIT:type>") in ["<STR_LIT:data>", "<STR_LIT>"]:<EOL><INDENT>for author_type in ["<STR_LIT>", "<STR_LIT>",<EOL>"<STR_LIT>", "<STR_LIT>", "<STR_LIT>", "<STR_LIT>"]:<EOL><INDENT>set_if_value(ref_content, author_type, all_authors.get(author_type))<EOL><DEDENT><DEDENT>elif ref_content.get("<STR_LIT:type>") in ["<STR_LIT>"]:<EOL><INDENT>for author_type in ["<STR_LIT>", "<STR_LIT>", "<STR_LIT>", "<STR_LIT>"]:<EOL><INDENT>set_if_value(ref_content, author_type, all_authors.get(author_type))<EOL><DEDENT><DEDENT>elif ref_content.get("<STR_LIT:type>") in ["<STR_LIT>"]:<EOL><INDENT>if all_authors.get("<STR_LIT>") and len(all_authors.get("<STR_LIT>")) > <NUM_LIT:0>:<EOL><INDENT>ref_content["<STR_LIT>"] = all_authors.get("<STR_LIT>")[<NUM_LIT:0>]<EOL><DEDENT><DEDENT><DEDENT>return ref_content<EOL>
build the authors for references json here for testability