<commit_before>package cuckoo

import (
	"bytes"
	"sync"
	"sync/atomic"
	"time"
	"unsafe"
)

var binP sync.Pool

func init() {
	binP.New = func() interface{} {
		return make([]int, MAX_HASHES)
	}
}

// offset64 is the fnv1a 64-bit offset
var offset64 uint64 = 14695981039346656037

// prime64 is the fnv1a 64-bit prime
var prime64 uint64 = 1099511628211

var intoffs []uint = []uint{0, 8, 16, 24}

// bin returns the nth hash of the given key
func (m *cmap) bin(n int, key keyt) int {
	s := offset64
	for _, c := range key {
		s ^= uint64(c)
		s *= prime64
	}
	for _, i := range intoffs {
		s ^= uint64(n >> i)
		s *= prime64
	}<commit_msg>New bins should have capacity, not length<commit_after>package cuckoo

import (
	"bytes"
	"sync"
	"sync/atomic"
	"time"
	"unsafe"
)

var binP sync.Pool

func init() {
	binP.New = func() interface{} {
		return make([]int, 0, MAX_HASHES)
	}
}

// offset64 is the fnv1a 64-bit offset
var offset64 uint64 = 14695981039346656037

// prime64 is the fnv1a 64-bit prime
var prime64 uint64 = 1099511628211

var intoffs []uint = []uint{0, 8, 16, 24}

// bin returns the nth hash of the given key
func (m *cmap) bin(n int, key keyt) int {
	s := offset64
	for _, c := range key {
		s ^= uint64(c)
		s *= prime64
	}
	for _, i := range intoffs {
		s ^= uint64(n >> i)
		s *= prime64
	}
{'fraction_non_alphanumeric': 0.13424866514111367, 'fraction_numerical': 0.10297482837528604, 'mean_word_length': 3.287581699346405, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '4562195', 'n_tokens_mistral': 636, 'n_tokens_neox': 538, 'n_words': 171}