<commit_before>''' Guess the number

Building on the previous version, save the results (number of games and
total number of guesses) in a file named "guessing_game.stats"
in the user's home directory.

The file should be updated each time this program is executed.

'''

import random
import os

max_nb = 100
prompt = "Guess a number, between 1 and {}, or enter -1 to quit:".format(max_nb)
file_name = "guessing_game.stats"<commit_msg>correcting comment<commit_after>''' Guess the number

Building on the previous version, save the results (number of games and
total number of guesses) in a file named "guessing_game.stats"

The file should be updated each time this program is executed.

'''

import random
import os

max_nb = 100
prompt = "Guess a number, between 1 and {}, or enter -1 to quit:".format(max_nb)
file_name = "guessing_game.stats"
{'fraction_non_alphanumeric': 0.08028335301062574, 'fraction_numerical': 0.011806375442739079, 'mean_word_length': 4.72972972972973, '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': '1842011', 'n_tokens_mistral': 266, 'n_tokens_neox': 248, 'n_words': 117}