<commit_before>package server.lobby.state;

import proto.Command;
import server.game.Deck;
import server.game.DeckGenerator;
import server.game.Player;
import server.lobby.Lobby;

import io.netty.channel.Channel;

import java.util.List;

public class DrawState extends AState {

    private boolean isGenerated = false;

    public DrawState(Lobby lobby) {
        super("Draw", lobby);
    }

    @Override
    public AState initialize() {
        this.getLobby().broadcast("All teams are complete. Distribution of cards.", null);
        List<Deck> decks = new DeckGenerator().generateAllDecks();
        for (Player player : this.getLobby().getPlayers()) {
            player.setDeck(decks.get(0));
            decks.remove(0);
        }
        this.isGenerated = true;
        return this;
    }

    @Override
    public boolean isFinished() {
        return this.isGenerated;
    }

    @Override
    public AState getNextState() {
        return new ContractState(this.getLobby());
    }

    @Override
    public void handleAction(Channel channel, Command.LobbyCmd cmd) {

    }

}
<commit_msg>Message when getNextState.<commit_after>package server.lobby.state;

import proto.Command;
import server.game.Deck;
import server.game.DeckGenerator;
import server.game.Player;
import server.lobby.Lobby;

import io.netty.channel.Channel;

import java.util.List;

public class DrawState extends AState {

    private boolean isGenerated = false;

    public DrawState(Lobby lobby) {
        super("Draw", lobby);
    }

    @Override
    public AState initialize() {
        this.getLobby().broadcast("Distribution of cards.", null);
        List<Deck> decks = new DeckGenerator().generateAllDecks();
        for (Player player : this.getLobby().getPlayers()) {
            player.setDeck(decks.get(0));
            decks.remove(0);
        }
        this.isGenerated = true;
        return this;
    }

    @Override
    public boolean isFinished() {
        return this.isGenerated;
    }

    @Override
    public AState getNextState() {
        return new ContractState(this.getLobby());
    }

    @Override
    public void handleAction(Channel channel, Command.LobbyCmd cmd) {

    }

}

{'fraction_non_alphanumeric': 0.1030117852466172, 'fraction_numerical': 0.001745962461807071, 'mean_word_length': 2.3755522827687776, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '3014944', 'n_tokens_mistral': 689, 'n_tokens_neox': 646, 'n_words': 150}