<commit_before>import logging
from statistics import mean
from timeit import timeit

from mau_mau import rules, play

log = logging.getLogger(__name__)


def mean_turns(players=3, reps=1000):
    games = _simulate_games(players, reps)
    log.info("mean turns played: %s", mean([g.turns for g in games]))


def winner_distribution(players=('Eric', 'Terry', 'John'), reps=1000):
    games = _simulate_games(players, reps)
    wc = {}
    # not optimal but premature optimization is the course of all evil ...<commit_msg>fix wrong word<commit_after>import logging
from statistics import mean
from timeit import timeit

from mau_mau import rules, play

log = logging.getLogger(__name__)


def mean_turns(players=3, reps=1000):
    games = _simulate_games(players, reps)
    log.info("mean turns played: %s", mean([g.turns for g in games]))


def winner_distribution(players=('Eric', 'Terry', 'John'), reps=1000):
    games = _simulate_games(players, reps)
    wc = {}
    # not optimal but premature optimization is the root of all evil ...
{'fraction_non_alphanumeric': 0.11186113789778207, 'fraction_numerical': 0.017357762777242044, 'mean_word_length': 4.672131147540983, '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': '6052954', 'n_tokens_mistral': 359, 'n_tokens_neox': 322, 'n_words': 106}