<commit_before>package board

import ()

type Chain struct {

	// Size is used for array length estimation.
	size      int
	boardSize int

	// size*size is very loose upper bound on the number of
	// points and liberties that a chain can have
	maxPoints    int
	maxLiberties int

	// Data members for keeping track of points
	// points length = maxPoints
	// pointsIndices = boardSize
	points        []int
	numPoints     int
	pointsIndices []int

	// Data members for keeping track of liberties
	// liberties length = maxLiberties
	// libertiesIndices length = boardSize
	liberties        []int
	numLiberties     int
	libertiesIndices []int
}

func (c *Chain) Init(size int) {

	c.size = size
	c.boardSize = (c.size+2)*(c.size+1) + 1

	c.maxPoints = c.size * c.size
	c.maxLiberties = c.size * c.size

	c.numPoints = 0
	c.points = make([]int, c.maxPoints)
	c.pointsIndices = make([]int, c.boardSize)

	c.numLiberties = 0
	c.liberties = make([]int, c.maxLiberties)<commit_msg>Fix comment.<commit_after>package board

import ()

type Chain struct {

	// Size is used for array length estimation.
	size      int
	boardSize int

	// size*size is very loose upper bound on the number of
	// points and liberties that a chain can have
	maxPoints    int
	maxLiberties int

	// Data members for keeping track of points
	// points length = maxPoints
	// pointsIndices length = boardSize
	points        []int
	numPoints     int
	pointsIndices []int

	// Data members for keeping track of liberties
	// liberties length = maxLiberties
	// libertiesIndices length = boardSize
	liberties        []int
	numLiberties     int
	libertiesIndices []int
}

func (c *Chain) Init(size int) {

	c.size = size
	c.boardSize = (c.size+2)*(c.size+1) + 1

	c.maxPoints = c.size * c.size
	c.maxLiberties = c.size * c.size

	c.numPoints = 0
	c.points = make([]int, c.maxPoints)
	c.pointsIndices = make([]int, c.boardSize)

	c.numLiberties = 0
	c.liberties = make([]int, c.maxLiberties)
{'fraction_non_alphanumeric': 0.09979529170931423, 'fraction_numerical': 0.00511770726714432, 'mean_word_length': 3.0560165975103732, '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': '612360', 'n_tokens_mistral': 675, 'n_tokens_neox': 651, 'n_words': 211}