<commit_before>package sample;

public class Game {
	private Cell[][] matrix;
	private int width;
	private int height;

	public Game(int width, int height) {
		this.width = width;
		this.height = height;
		matrix = new Cell[width][height];
	}

	public void toggleCellAt(int column, int row) {
		if (matrix[column][row] == null) {
			matrix[column][row] = new Cell();
		}
		else {
			matrix[column][row] = null;
		}
	}

	public void visit(StringRenderer renderer) {
		for (int r = 0; r < height; r++) {
			for (int c = 0; c < width; c++) {
				if (matrix[c][r] == null) {
					renderer.addCell(".");
				}
				else {
					renderer.addCell("0");
				}
			}
			renderer.nextRow();
		}
	}
}<commit_msg>Fixes test, by corecting output<commit_after>package sample;

public class Game {
	private Cell[][] matrix;
	private int width;
	private int height;

	public Game(int width, int height) {
		this.width = width;
		this.height = height;
		matrix = new Cell[width][height];
	}

	public void toggleCellAt(int column, int row) {
		if (matrix[column][row] == null) {
			matrix[column][row] = new Cell();
		}
		else {
			matrix[column][row] = null;
		}
	}

	public void visit(StringRenderer renderer) {
		for (int r = 0; r < height; r++) {
			for (int c = 0; c < width; c++) {
				if (matrix[c][r] == null) {
					renderer.addCell(".");
				}
				else {
					renderer.addCell("X");
				}
			}
			renderer.nextRow();
		}
	}
}
{'fraction_non_alphanumeric': 0.16195190947666196, 'fraction_numerical': 0.003536067892503536, 'mean_word_length': 3.008498583569405, 'pattern_counts': {'":': 0, '<': 7, '<?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': '4434820', 'n_tokens_mistral': 591, 'n_tokens_neox': 507, 'n_words': 136}