<commit_before>package edu.stuy.goldfish;


import edu.stuy.goldfish.rules.*;

public class Goldfish {

    private Grid _grid;
    private Render _render;

    public Goldfish () {
    	int height = 96;
    	int width = 96;
        _render = new Render(width, height);
        _grid = new Grid(width, height);
    }

    public void run () {
        //TODO: make it run.
        _grid.getPatch(1,0).setState(1);
        _grid.getPatch(2,1).setState(1);
        _grid.getPatch(2,2).setState(1);
        _grid.getPatch(1,2).setState(1);
        _grid.getPatch(0,2).setState(1);
        System.out.println(_grid);

        _grid = LifeWithoutDeath.run(_grid);
        System.out.println("------------");
        System.out.println(_grid);
        _render.setGrid(_grid);
        _render.run();

   }

    public static void main (String[] args) {
        Goldfish g = new Goldfish();
        while(true) {
        	g.run();
        }
    }
}
<commit_msg>Setup code should only be executed once. Make run() a loop.<commit_after>package edu.stuy.goldfish;

import edu.stuy.goldfish.rules.*;

public class Goldfish {

    private Grid _grid;
    private Render _render;

    public Goldfish() {
    	int height = 96;
    	int width = 96;
        _render = new Render(width, height);
        _grid = new Grid(width, height);
    }

    public void run() {
        _grid.getPatch(1,0).setState(1);
        _grid.getPatch(2,1).setState(1);
        _grid.getPatch(2,2).setState(1);
        _grid.getPatch(1,2).setState(1);
        _grid.getPatch(0,2).setState(1);

        while (true) {
            _grid = Conway.run(_grid);
            _render.setGrid(_grid);
            _render.run();
        }
   }

    public static void main (String[] args) {
        Goldfish g = new Goldfish();
        g.run();
    }
}

{'fraction_non_alphanumeric': 0.13556618819776714, 'fraction_numerical': 0.020202020202020204, 'mean_word_length': 1.8300751879699249, 'pattern_counts': {'":': 0, '<': 3, '<?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': '719809', 'n_tokens_mistral': 625, 'n_tokens_neox': 602, 'n_words': 124}