<commit_before>import logging

from mau_mau import concepts, subjects, objects

log = logging.getLogger(__name__)


def play_game(gameRules, playerSeed):
    game = setup_game(gameRules, playerSeed)
    while not game.over:
        player = game.next_turn()
        player.play(game.table)
    return game


def setup_game(rules, playerSeed):
    croupier = subjects.Croupier()
    table = objects.Table()

    croupier.fetch_fresh_deck_of_cards()
    croupier.invite(playerSeed, table)
    croupier.check_setup(table.players, rules.cardsPerPlayer)
    croupier.set_table(table, rules)
    for player in table.players:
        player.draw(table, rules.cardsPerPlayer)
    croupier.check_table(table)
    game = concepts.Game(table)<commit_msg>format<commit_after>import logging

from mau_mau import concepts, subjects, objects

log = logging.getLogger(__name__)


def play_game(gameRules, playerSeed):
    game = setup_game(gameRules, playerSeed)
    while not game.over:
        player = game.next_turn()
        player.play(game.table)
    return game


def setup_game(rules, playerSeed):
    croupier = subjects.Croupier()
    croupier.fetch_fresh_deck_of_cards()
    table = objects.Table()
    croupier.invite(playerSeed, table)
    croupier.check_setup(table.players, rules.cardsPerPlayer)
    croupier.set_table(table, rules)
    for player in table.players:
        player.draw(table, rules.cardsPerPlayer)
    croupier.check_table(table)
    game = concepts.Game(table)
{'fraction_non_alphanumeric': 0.09472259810554803, 'fraction_numerical': 0.0, 'mean_word_length': 3.9630872483221475, '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': '1016704', 'n_tokens_mistral': 490, 'n_tokens_neox': 481, 'n_words': 93}