def get_totals(path_sha_loc):
    """Returns: total numbers of files, commits, LoC for files in `path_sha_loc`
    """
    all_commits = set()
    total_loc = 0
    for sha_loc in path_sha_loc.values():
        all_commits.update(sha_loc.keys())
        total_loc += sum(sha_loc.values())

    return len(path_sha_loc), len(all_commits), total_loc