<commit_before>__author__ = 'mike.lyons'

print "Hello Customer!"

while True:
    x = raw_input("Enter any number: ")
    y = raw_input("Enter another number: ")

    try:
        x = int(x)
        y = int(y)
    except ValueError:
        x = 0
        y = 0

    print "Sum: " + str(x+y)
    print "Difference: " + str(x-y)
    print "Product: " + str(x*y)
    print "Quotient: " + str(x/y)
    print "Square of 2nd number: " + str(y**2)

    user_exit = raw_input("Exit? (y/n): ")
    if user_exit == 'y' or user_exit == 'Y':
        break
print "Goodbye Customer!"
<commit_msg>fixed divide by 0 problem when a user enters text that is not numbers<commit_after>__author__ = 'mike.lyons'

print "Hello Customer!"

while True:
    x = raw_input("Enter any number: ")
    y = raw_input("Enter another number: ")

    try:
        x = int(x)
        y = int(y)
    except ValueError:
        x = 0
        y = 0

    print "Sum: " + str(x+y)
    print "Difference: " + str(x-y)
    print "Product: " + str(x*y)
    print "Quotient: " + (str(x/y) if y != 0.0 else str(0.0))
    print "Square of 2nd number: " + str(y**2)

    user_exit = raw_input("Exit? (y/n): ")
    if user_exit == 'y' or user_exit == 'Y':
        break
print "Goodbye Customer!"

{'fraction_non_alphanumeric': 0.152, 'fraction_numerical': 0.0104, 'mean_word_length': 2.3994565217391304, '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': '149218', 'n_tokens_mistral': 476, 'n_tokens_neox': 463, 'n_words': 132}