<commit_before>package maze

const numNeighbors = 4

// Cell is a cell in a maze.
type Cell struct {
	Row, Col                 int
	North, South, East, West *Cell
	links                    map[*Cell]bool
}

// NewCell returns a new Cell put in (row, col).
func NewCell(row, col int) *Cell {
	return &Cell{
		Row: row,
		Col: col,
	}
}

// Link links c and cell bidirectionally.<commit_msg>go/maze: add initial value of Cell.links<commit_after>package maze

const numNeighbors = 4

// Cell is a cell in a maze.
type Cell struct {
	Row, Col                 int
	North, South, East, West *Cell
	links                    map[*Cell]bool
}

// NewCell returns a new Cell put in (row, col).
func NewCell(row, col int) *Cell {
	return &Cell{
		Row:   row,
		Col:   col,
		links: make(map[*Cell]bool),
	}
}

// Link links c and cell bidirectionally.
{'fraction_non_alphanumeric': 0.10476190476190476, 'fraction_numerical': 0.002380952380952381, 'mean_word_length': 2.3911290322580645, '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': '7437623', 'n_tokens_mistral': 301, 'n_tokens_neox': 280, 'n_words': 108}