<commit_before>package com.github.apixandru.games.rummikub.model;

import java.util.ArrayList;
import java.util.List;

/**
 * @author <NAME>
 * @since December 23, 2015
 */
public class RummikubGame {

    private final Board board;
    private final List<Player> players = new ArrayList<>();

    private final List<Grid> grids = new ArrayList<>();

    /**
     *
     */
    public RummikubGame() {
        this.board = new Board(this); // shouldn't leak this reference...
        this.grids.add(board);
    }

    /**
     * @return
     */
    public Player addPlayer() {
        Player player = new Player(this);
        this.players.add(player);
        this.grids.add(player);
        return player;
    }

    /**
     * @return
     */
    public Board getBoard() {
        return board;
    }

    /**
     * @param card
     */
    public void removeCard(final Card card) {
        grids.stream()
                .forEach((grid) -> grid.removeCard(card));
    }

}<commit_msg>remove unused<commit_after>package com.github.apixandru.games.rummikub.model;

import java.util.ArrayList;
import java.util.List;

/**
 * @author <NAME>
 * @since December 23, 2015
 */
public class RummikubGame {

    private final List<Player> players = new ArrayList<>();

    private final List<Grid> grids = new ArrayList<>();

    /**
     * @return
     */
    public Player addPlayer() {
        Player player = new Player(this);
        this.players.add(player);
        this.grids.add(player);
        return player;
    }

    /**
     * @param card
     */
    public void removeCard(final Card card) {
        grids.stream()
                .forEach((grid) -> grid.removeCard(card));
    }

}
{'fraction_non_alphanumeric': 0.13652482269503546, 'fraction_numerical': 0.0070921985815602835, 'mean_word_length': 2.146840148698885, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 15, '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': '6002012', 'n_tokens_mistral': 536, 'n_tokens_neox': 505, 'n_words': 119}