<commit_before>// Create an m x n matrix.
Array.matrix = function (m, n, initial) {
  var a, i, j, mat = [];
  for (i = 0; i < m; i += 1) {
    a = [];
    for (j = 0; j < n; j += 1) {
      a[j] = 0;
    }
    mat[i] = a;
  }
  return mat;
};

// Grid utils
function Cell(row, column) {
  this.row = row;
  this.column = column;
};


$(document).ready(

  function() {
    var gridCanvas = document.getElementById("grid");
    var counterSpan = document.getElementById("counter");
    var populationSpan = document.getElementById("population");
    var myPopulationSpan = document.getElementById("score");

    sink('game_of_life_demo', { debug: true }, function(Life){

      // If variables are not initialized, do so.
      var originator;
      var id;
      if (Life.CELL_SIZE === undefined) {
        Life.CELL_SIZE = 20;
        Life.X = 600;
        Life.Y = 600;

        Life.WIDTH = Life.X / Life.CELL_SIZE;
        Life.HEIGHT = Life.Y / Life.CELL_SIZE;
<commit_msg>debug off<commit_after>// Create an m x n matrix.
Array.matrix = function (m, n, initial) {
  var a, i, j, mat = [];
  for (i = 0; i < m; i += 1) {
    a = [];
    for (j = 0; j < n; j += 1) {
      a[j] = 0;
    }
    mat[i] = a;
  }
  return mat;
};

// Grid utils
function Cell(row, column) {
  this.row = row;
  this.column = column;
};


$(document).ready(

  function() {
    var gridCanvas = document.getElementById("grid");
    var counterSpan = document.getElementById("counter");
    var populationSpan = document.getElementById("population");
    var myPopulationSpan = document.getElementById("score");

    sink('game_of_life_demo', function(Life){

      // If variables are not initialized, do so.
      var originator;
      var id;
      if (Life.CELL_SIZE === undefined) {
        Life.CELL_SIZE = 20;
        Life.X = 600;
        Life.Y = 600;

        Life.WIDTH = Life.X / Life.CELL_SIZE;
        Life.HEIGHT = Life.Y / Life.CELL_SIZE;

{'fraction_non_alphanumeric': 0.15281362932369644, 'fraction_numerical': 0.013422818791946308, 'mean_word_length': 2.388111888111888, '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': '1722429', 'n_tokens_mistral': 689, 'n_tokens_neox': 652, 'n_words': 181}