<commit_before>package gogo

import "fmt"

type PointDistanceMap struct {
	data [][][]int
}

func NewPointDistanceMap(b *Board, ds int) *PointDistanceMap {
	size := len(b.w)
	data := make([][][]int, size, size)
	for i := 0; i < size; i++ {
		data[i] = make([][]int, ds, ds)
		for d := 0; d < ds; d++ {
			data[i][d] = make([]int, 0, ds*4+4)
		}
		pi := b.w[i]
		for j := 0; j < size; j++ {
			pj := b.w[j]
			d := pi.Distance(pj)
			if d >= ds {
				continue
			}
			data[i][d] = append(data[i][d], j)
		}
	}
	return &PointDistanceMap{data}
}

func (p *PointDistanceMap) PointDistance(q, d int) []int {
	return p.data[q][d]
}

func (b *Board) ColorHash(p Point) int64 {
	h := int64(p.x*882377 + p.y*104729)<commit_msg>pattern<commit_after>package gogo

import "fmt"

type PointDistanceMap struct {
	data [][][]int
}

func NewPointDistanceMap(b *Board, ds int) *PointDistanceMap {
	size := len(b.w)
	data := make([][][]int, size, size)
	for i := 0; i < size; i++ {
		data[i] = make([][]int, ds, ds)
		for d := 0; d < ds; d++ {
			data[i][d] = make([]int, 0, ds*4+4)
		}
		pi := b.w[i]
		for j := 0; j < size; j++ {
			pj := b.w[j]
			d := pi.Distance(pj)
			if d >= ds {
				continue
			}
			data[i][d] = append(data[i][d], j)
		}
	}
	return &PointDistanceMap{data}
}

func (p *PointDistanceMap) PointDistance(q, d int) []int {
	return p.data[q][d]
}

func (b *Board) ColorHash(p Point) int64 {
	h := int64(p.x*17674494770905 + p.y*13174494670911)
{'fraction_non_alphanumeric': 0.21023513139695713, 'fraction_numerical': 0.04149377593360996, 'mean_word_length': 3.3716012084592144, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 5, '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': '3649433', 'n_tokens_mistral': 715, 'n_tokens_neox': 637, 'n_words': 159}