<commit_before>import numpy

"""Dictionary of Donors and Amounts Donated"""

donors = {"<NAME>": [12312, 34230, 38593],
          "<NAME>": [49203, 5023, 9052],
          "<NAME>": [9503, 2093, 10932, 40923],
          "<NAME>": [209, 50912, 9026],
          "<NAME>": [20968, 2091, 8934],
          "<NAME>": [29092, 5906, 8734]}

# Print donor list #

def print_donor_list():
    for donor, donation in sorted(donors.items()):
        print(donor)

# Print total donor donations #

def print_donation_total():
    totals_results=[]
    for donor, donations in sorted(donors.items()):
        totals_results.append((sum(donations)))
    print(totals_results)


# Print total number of donations #

def print_num_donations():
    num_results=[]
    for donor, donations in sorted(donors.items()):
        num_results.append(len(donations))
    print(num_results)


# Print average donation #

def print_avg_donation():
    avg_results=[]
    for donor, donations in sorted(donors.items()):
        avg_results.append(int(numpy.mean(donations)))
    print(avg_results)


print_donor_list()

print_donation_total()

print_num_donations()

print_avg_donation()<commit_msg>Working on generating lists for tabulate<commit_after>import numpy

"""Dictionary of Donors and Amounts Donated"""

donors = {"<NAME>": [12312, 34230, 38593],
          "<NAME>": [49203, 5023, 9052],
          "<NAME>": [9503, 2093, 10932, 40923],
          "<NAME>": [209, 50912, 9026],
          "<NAME>": [20968, 2091, 8934],
          "<NAME>": [29092, 5906, 8734]}

# Print donor list #

def print_donor_list():
    for donor, donation in sorted(donors.items()):
        print(donor)

# Print total donor donations #

def print_donation_total():
    totals_results = []
    for donor, donations in sorted(donors.items()):
        totals_results.append((sum(donations)))
    print(totals_results)


# Print total number of donations #

def print_num_donations():
    num_results = []
    for donor, donations in sorted(donors.items()):
        num_results.append(len(donations))
    print(num_results)


# Print average donation #

def print_avg_donation():
    avg_results = []
    for donor, donations in sorted(donors.items()):
        avg_results.append(int(numpy.mean(donations)))
    print(avg_results)


print_donor_list()

print_donation_total()

print_num_donations()

print_avg_donation()
{'fraction_non_alphanumeric': 0.13918177983973007, 'fraction_numerical': 0.07085617882749895, 'mean_word_length': 3.7063492063492065, 'pattern_counts': {'":': 12, '<': 15, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1446103', 'n_tokens_mistral': 948, 'n_tokens_neox': 800, 'n_words': 186}