<commit_before>import java.util.IllegalFormatException;

/**
 * Created by <NAME> on 4/8/2016.
 */
public class Board {
    public String[][] board;

    public Board() {
        this.board = null;
    }
    public Board(String[][] board) {
        if (board == null || board[0] == null) {
            this.board = null;
        }
        else {
            String[][] temp = new String[board.length][board[0].length];
            for (int boardIndex = 0; boardIndex < board.length; boardIndex++) {
                for (int board2Index = 0; board2Index < board[0].length; board2Index++) {
                    temp[boardIndex][board2Index] = board[boardIndex][board2Index];
                }
            }
            this.board = temp;
        }
    }
    public Board(short len) {
        this.board = new String[len][len];
    }

    public void fill() {
        for (int boardIndex = 0; boardIndex < board.length; boardIndex++) {
            for (int board2Index = 0; board2Index < board[0].length; board2Index++) {
                board[boardIndex][board2Index] = " ";
            }
        }
    }

    /*public boolean isEmptyNotFilled() {
        return board == null;
    }*/
    public boolean isEmpty() {
        if (board == null) {
            return true;
        }
        for (int boardIndex = 0; boardIndex < board.length; boardIndex++) {
            for (int board2Index = 0; board2Index < board[0].length; board2Index++) {
                if (board[boardIndex][board2Index] == null || board[boardIndex][board2Index].equals("")
                    || board[boardIndex][board2Index].equals(" "))
                    return true;
            }
        }
        return false;
    }
    public boolean isEmpty(short num1, short num2) {
        return board[num1][num2] == null;
    }




    
}<commit_msg>added toString()<commit_after>import java.util.IllegalFormatException;

/**
 * Created by <NAME> on 4/8/2016.
 */
public class Board {
    public String[][] board;

    public Board() {
        this.board = null;
    }
    public Board(String[][] board) {
        if (board == null || board[0] == null) {
            this.board = null;
        }
        else {
            String[][] temp = new String[board.length][board[0].length];
            for (int boardIndex = 0; boardIndex < board.length; boardIndex++) {
                for (int board2Index = 0; board2Index < board[0].length; board2Index++) {
                    temp[boardIndex][board2Index] = board[boardIndex][board2Index];
                }
            }
            this.board = temp;
        }
    }
    public Board(short len) {
        this.board = new String[len][len];
    }

    public void fill() {
        for (int boardIndex = 0; boardIndex < board.length; boardIndex++) {
            for (int board2Index = 0; board2Index < board[0].length; board2Index++) {
                board[boardIndex][board2Index] = " ";
            }
        }
    }

    /*public boolean isEmptyNotFilled() {
        return board == null;
    }*/
    public boolean isEmpty() {
        if (board == null) {
            return true;
        }
        for (int boardIndex = 0; boardIndex < board.length; boardIndex++) {
            for (int board2Index = 0; board2Index < board[0].length; board2Index++) {
                if (board[boardIndex][board2Index] == null || board[boardIndex][board2Index].equals("")
                    || board[boardIndex][board2Index].equals(" "))
                    return true;
            }
        }
        return false;
    }
    public boolean isEmpty(short num1, short num2) {
        return board[num1][num2] == null;
    }

    @Override
    public String toString() {
        String str = "\n";
        System.out.print(str);
        for (int row = 0; row<this.board.length; row++) {
            for (int col = 0; col < this.board.length; col++) {
                if (col==0) {
                    str = str + row + "  ";
                }
                else str = str + " ";
                str = str + (this.board[row][col]);
                if (col < this.board[0].length - 1) str = str + (" |");
                else str = str + "\n";
            }
            if (row < this.board.length - 1) str = str + ("  -----------\n");
        }
        str = str + ("\n   0   1   2\n\n");

        return str;
    }



}
{'fraction_non_alphanumeric': 0.14183414183414184, 'fraction_numerical': 0.018711018711018712, 'mean_word_length': 1.6386349786715417, 'pattern_counts': {'":': 0, '<': 21, '<?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': '6836475', 'n_tokens_mistral': 1295, 'n_tokens_neox': 1236, 'n_words': 298}