<commit_before>package model.neighbors;

public abstract class Neighbors {

	//will contain methods to construct neighbor list and check neighbors, etc.
	//extended by different type of neighbor functions?
	//or perhaps different neighbor functions will all be in this class?
	<commit_msg>basic inheritance hierarchy for implementing different grids and shapes<commit_after>package model.neighbors;
import java.util.List;
import model.cells.Cell;
import model.gridrules.GridRules;

public abstract class Neighbors {

    //will contain methods to construct neighbor list and check neighbors, etc.
    //extended by different type of neighbor functions?
    //or perhaps different neighbor functions will all be in this class?
    public abstract List<Cell> getCardinalNeighbors(Cell[][] grid, int x,
                                                    int y, GridRules rules);
    public abstract List<Cell> getDiagonalNeighbors(Cell[][] grid, int x, int y,
                                                    GridRules rules);
    public abstract List<Cell> getAllNeighbors(Cell[][] grid, int x, int y,
                                               GridRules rules);

{'fraction_non_alphanumeric': 0.0658682634730539, 'fraction_numerical': 0.0, 'mean_word_length': 2.6, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4606963', 'n_tokens_mistral': 276, 'n_tokens_neox': 261, 'n_words': 117}