<commit_before>#!python
# This is my first python program, it says hello world!

# List of people
# no longer needed!
peoples = ['Claire', 'Alex', 'Blake', 'Dad','Mom']
# Dictionary of their favorite items
favorite_items = {'Claire':'Pokemon','Alex':'Magic Cards',
                  'Blake':'His spot on the couch',
                  'Mom':'Napping'}

my_string = "{} really loves {}!"

for person in sorted(peoples):
    if person in favorite_items.keys():
        print(my_string.format(person, favorite_items[person]))
    else:
        print "Error, {} has no favorites".format(person)<commit_msg>sets would be better<commit_after>#!python
""" This is my first python program, it says hello world! """
from collections import defaultdict

# List of people
# no longer needed!
my_peoples = ['Claire', 'Alex', 'Blake', 'Dad','Mom', 'Mom', 'Mom', 'Mom']
alex_peoples = ['Alex', 'Blake', 'Dad','Mom', 'Barthomule', 'Ashur']
# Dictionary of their favorite items

for person in my_peoples:
    if person in alex_peoples:
        print("Yes")
    else:
        print("Missing {}".format(person))


peoples = set(my_peoples + alex_peoples)


favorite_items = {'Claire':'Pokemon','Alex':'Magic Cards',
                  'Blake':'His spot on the couch',
                  'Mom':'Napping'}
def fetch_missing_data():
    return "No likes found"
default_favorites = defaultdict(fetch_missing_data, favorite_items)
my_string = "{} really loves {}!"
favorites = []

def main():
    tally_the_data()

def tally_the_data():
    for person in sorted(peoples):
        try:
            favorites.append(my_string.format(person, favorite_items[person]))
        except KeyError:
            favorite_items[person] = fetch_missing_data(person)
        print(my_string.format(person, favorite_items[person]))


if __name__ == '__main__':
    main()
{'fraction_non_alphanumeric': 0.14098360655737704, 'fraction_numerical': 0.0, 'mean_word_length': 3.7190721649484537, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '1899853', 'n_tokens_mistral': 589, 'n_tokens_neox': 555, 'n_words': 156}