<commit_before>function Solver() {
	this.numRows = 0;
	this.numCols = 0;
	this.maze = [];
	this.distances = [];
	this.visited = [];
	this.path = [];
	this.numNodes = 0;
}

GOL.prototype.init = function () {
	this.numRows = Math.floor((canvas.height - 1) / Life.UI.cellSize);
	this.numCols = Math.floor((canvas.width - 1) / Life.UI.cellSize);
	this.numNodes = numRows * numCols;
	
	for (var i = 0; i < numNodes; ++i) {
	    this.distances[i] = null;
	    this.visited[i] = false;
	    this.path[i] = null;
	}
	
	for (var i = 0; i < this.numNodes; ++i) {
	    maze[i] = [];
	    for (var j = 0; j < this.numNodes; ++j) {
	        maze[i][j] = false;
	    }
	}
	
	for (var i = 0; i < this.numRows; ++i) {
	    for (var j = 0; j < this.numCols; ++j) {
	        currentNode = i * this.numCols + j
	        if (i != this.numRows - 1 && j != this.numCols -1) {
	            if (i == this.numRows - 1) {
	                maze[currentNode][currentNode + 1] = true;
	            } else if (j = this.numCols - 1) {
	                maze[currentNode + 1][currentNode] = true;
	            } else {
	                maze[currentNode][currentNode + 1] = true;
	                maze[currentNode + 1][currentNode] = true;
	            }
	        }
	    }
	}
}

<commit_msg>Removed UI related statements.<commit_after>function Solver() {
	this.maze = [];
	this.distances = [];
	this.visited = [];
	this.path = [];
	this.numNodes = 0;
}

GOL.prototype.init = function () {
	this.numNodes = numRows * numCols;
	
	for (var i = 0; i < numNodes; ++i) {
	    this.distances[i] = null;
	    this.visited[i] = false;
	    this.path[i] = null;
	}
	
	//Initialize adjacency matrix
	for (var i = 0; i < this.numNodes; ++i) {
	    maze[i] = [];
	    for (var j = 0; j < this.numNodes; ++j) {
	        maze[i][j] = false;
	    }
	}
	
    //Initialize graph edges
	for (var i = 0; i < Life.UI.numRows; ++i) {
	    for (var j = 0; j < Life.UI.numCols; ++j) {
	        currentNode = i * Life.UI.numCols + j
	        if (i != Life.UI.numRows - 1 && j != Life.UI.numCols -1) {
	            if (i == Life.UI.numRows - 1) {
	                maze[currentNode][currentNode + 1] = true;
	            } else if (j = Life.UI.numCols - 1) {
	                maze[currentNode + 1][currentNode] = true;
	            } else {
	                maze[currentNode][currentNode + 1] = true;
	                maze[currentNode + 1][currentNode] = true;
	            }
	        }
	    }
	}
}


{'fraction_non_alphanumeric': 0.16974169741697417, 'fraction_numerical': 0.013120131201312012, 'mean_word_length': 1.8143021914648212, 'pattern_counts': {'":': 0, '<': 13, '<?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': '697738', 'n_tokens_mistral': 991, 'n_tokens_neox': 900, 'n_words': 201}