<commit_before>/*
 * @name Game of Life
 * @arialabel Grid of white squares on a black background with some squares flickering between white and black to generate random patterns
 * @description A basic implementation of John Conway's Game of Life CA
 * (<a href="http://natureofcode.com">natureofcode.com</a>)
 */

let w;
let columns;
let rows;
let board;
let next;

function setup() {
  createCanvas(720, 400);
  w = 20;<commit_msg>Reduce simulation framerate to avoid flickering.<commit_after>/*
 * @name Game of Life
 * @arialabel Grid of white squares on a black background with some squares flickering between white and black to generate random patterns
 * @description A basic implementation of John Conway's Game of Life CA
 * (<a href="http://natureofcode.com">natureofcode.com</a>)
 */

let w;
let columns;
let rows;
let board;
let next;
let framerate;

function setup() {
  // Set simulation framerate to 10 to avoid flickering
  framerate = 10;
  frameRate(framerate);
  createCanvas(720, 400);
  w = 20;
{'fraction_non_alphanumeric': 0.09547244094488189, 'fraction_numerical': 0.01968503937007874, 'mean_word_length': 4.409574468085107, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '6534349', 'n_tokens_mistral': 327, 'n_tokens_neox': 288, 'n_words': 127}