<commit_before>import random

attempts = 1
number = random.randint(1, 100)
while True:
    guess = raw_input("Guess (1 - 100): ")
    if guess.isdigit():
        guess = int(guess)
        if 1 <= guess and guess <= 100:
            if guess == number:
                print "Correct!"
                print "It Only Took You", attempts, "Attempts!" if attempts > 1 else "Attempt!"
                break
            elif guess > number:
                print "That Guess Is Too High!"
            elif guess < number:
                print "That Guess Is Too Low!"
        else:
            print "Guesses Must Be Between 1 And 100!"
    else:
        print "That's Not A Number!"
    attempts += 1<commit_msg>Added basic menu. Allow the changing of the minimum and maximum random number.<commit_after>import random

minmax = [1, 100]

while True:
    print "Choose A Action:"
    print "1. Play"
    print "2. Change Minimum & Maximum"
    print "3. Exit"
    choice = raw_input("")
    if choice.isdigit():
        if choice == "1":
            attempts = 1
            number = random.randint(minmax[0], minmax[1])
            while True:
                guess = raw_input("Guess (" + str(minmax[0]) + " - " + str(minmax[1]) + "): ")
                if guess.isdigit():
                    guess = int(guess)
                    if guess == number:
                        print "Correct!"
                        print "It Only Took You", attempts, "Attempts!" if attempts > 1 else "Attempt!"
                        break
                    elif guess > number:
                        print "That Guess Is Too High!"
                    elif guess < number:
                        print "That Guess Is Too Low!"
                else:
                    print "That's Not A Number!"
                attempts += 1
        elif choice == "2":
            getting_min_max = True
            while getting_min_max:
                minimum = raw_input("Minimum: ")
                if minimum.isdigit():
                    minmax[0] = int(minimum)
                    while True:
                        maximum = raw_input("Maximum: ")
                        if maximum.isdigit():
                            maximum = int(maximum)
                            if maximum > minmax[0]:
                                minmax[1] = maximum
                                getting_min_max = False
                                break
                            else:
                                print "Maximum Given Is Lower Then The Current Minimum(", minimum, ")"
                        else:
                            print "Not A Number"
                else:
                    print "Not A Number"
        elif choice == "3":
            print "Goodbye!"
            break
        else:
            print "Invalid Option!"
    else:
        print "Not A Number"
{'fraction_non_alphanumeric': 0.08932916232186305, 'fraction_numerical': 0.013555787278415016, 'mean_word_length': 1.1318518518518519, 'pattern_counts': {'":': 3, '<': 7, '<?xml version=': 0, '>': 8, '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': '1199162', 'n_tokens_mistral': 757, 'n_tokens_neox': 689, 'n_words': 240}