def METHOD_NAME(commits_by_contributor, results):
    output = ""
    dates = sorted(results.keys())
    for d in dates:
        output += "\t{}".format(d)
    output += "\n"
    for email in sorted(commits_by_contributor.keys()):
        output += "'{}".format(email)
        for d in dates:
            if d in commits_by_contributor[email]:
                output += "\t{}".format(commits_by_contributor[email][d])
            else:
                output += "\t"
        output += "\n"
    return output