<commit_before>import os
import csv
#Aaron hall, fastest way to find a string inside a string
def checkwrds(wrds,stuffs):
    return set(wrds).intersection(stuffs.split())

#Take in text and award points
def points4words (text, bonus):
    bonusinstuff = [text.count(word) for word in bonus]
    points = len(text)
    message = "Your text is worth {} points!"
    print(message.format(int(points)))
    bonuspoints = 0
    for x in bonusinstuff:
        if x >= 1:
            bonuspoints = bonuspoints +1
    if bonuspoints > 0:
        bonusmessage  = "WOAH you earned {} bonus points!"
        print(bonusmessage.format(bonuspoints))

os.chdir("d:/and")
x = open("data.csv")
bonuslist = ["roar", "dumb", "eat"]
for row in csv.reader(x):
    bonuslist.append(row[0])
bonusset = set(bonuslist)
bonusset = list(bonusset)
points4words(input("Enter words: "), bonusset)


#print (bonusinstuff)
#print(bonuspoints)
#stuff = input("Enter words: ")<commit_msg>now bonuslist is turned intoa  set making it unique<commit_after>import os
import csv
#Aaron hall, fastest way to find a string inside a string

#Take in text and award points
def points4words (text, bonus):
    bonusinstuff = [text.count(word) for word in bonus]
    points = len(text)
    message = "Your text is worth {} points!"
    print(message.format(int(points)))
    bonuspoints = 0
    for x in bonusinstuff:
        if x >= 1:
            bonuspoints = bonuspoints +1
    if bonuspoints > 0:
        bonusmessage  = "WOAH you earned {} bonus points!"
        print(bonusmessage.format(bonuspoints))

os.chdir("d:/and")
x = open("data.csv")
bonuslist = ["roar", "dumb", "eat"]
for row in csv.reader(x):
    bonuslist.append(row[0])
bonusset = set(bonuslist)
bonusset = list(bonusset)
points4words(input("Enter words: "), bonusset)


#print (bonusinstuff)
#print(bonuspoints)
#stuff = input("Enter words: ")
{'fraction_non_alphanumeric': 0.12606837606837606, 'fraction_numerical': 0.007478632478632479, 'mean_word_length': 3.827319587628866, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '856241', 'n_tokens_mistral': 632, 'n_tokens_neox': 623, 'n_words': 186}