def METHOD_NAME(parser_list1, parser_list2, filename):
    counter_names = parser_list1.values()[0].counters.keys()
    repository_names = sorted(parser_list1)
    csv = open(filename, "w")
    for repository_name in repository_names:
        pos = repository_name.rfind("/") + 1
        csv.write(";" + repository_name[pos:] + ";;;")
    csv.write("\n")
    for i in range(0, len(parser_list1)):
        csv.write(";origin_avg;origin_std;external_avg;external_std")
    csv.write("\n")
    for counter_name in counter_names:
        csv.write(counter_name + ";")
        for repository_name in repository_names:
            parser1 = parser_list1[repository_name]
            parser2 = parser_list2[repository_name]
            csv.write(str(parser1.counters[counter_name].avg()).replace(".", ",") + ";" +
                      str(parser1.counters[counter_name].std()).replace(".", ",") + ";" +
                      str(parser2.counters[counter_name].avg()).replace(".", ",") + ";" +
                      str(parser2.counters[counter_name].std()).replace(".", ",") + ";")
        csv.write("\n")
    csv.close()