def map_equal_contributions(contributors):
equal_contribution_map = {}<EOL>equal_contribution_keys = []<EOL>for contributor in contributors:<EOL><INDENT>if contributor.get("<STR_LIT>") and "<STR_LIT>" in contributor.get("<STR_LIT>"):<EOL><INDENT>for key in contributor["<STR_LIT>"]["<STR_LIT>"]:<EOL><INDENT>if key not in equal_contribution_keys:<EOL><INDENT>equal_contribution_keys.append(key)<EOL><DEDENT><DEDENT><DEDENT><DEDENT>equal_contribution_keys = sorted(equal_contribution_keys)<EOL>for i, equal_contribution_key in enumerate(equal_contribution_keys):<EOL><INDENT>equal_contribution_map[equal_contribution_key] = i+<NUM_LIT:1><EOL><DEDENT>return equal_contribution_map<EOL>
assign numeric values to each unique equal-contrib id