<commit_before>
import os
import limerick

cmudict_path = "cmudict.0.7a.txt"
if os.path.isfile(cmudict_path):
    cmudict = open(cmudict_path, "r")
    for line in cmudict:
        if not line.startswith(";;;"):
            limerick.Word(line)


limmerick = limerick.Limmerick()
limmerick.printOut()<commit_msg>nantucket.py generates limericks on loop<commit_after>
import os
import limerick

print("Welcome to Nantucket!")
print("loading cmu dictionary...")
cmudict_path = "cmudict.0.7a.txt"
if os.path.isfile(cmudict_path):
    cmudict = open(cmudict_path, "r")
    for line in cmudict:
        if not line.startswith(";;;"):
            limerick.Word(line)


while True:
    reply = raw_input("press enter for a limerick. press q to quit.\n")
    if reply == "q": break
    limmerick = limerick.Limmerick()
    limmerick.printOut()
    print("\n")
{'fraction_non_alphanumeric': 0.13176470588235295, 'fraction_numerical': 0.004705882352941176, 'mean_word_length': 3.526595744680851, 'pattern_counts': {'":': 1, '<': 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': '2790899', 'n_tokens_mistral': 320, 'n_tokens_neox': 318, 'n_words': 72}