<commit_before>package comb

import (
	"testing"
	"math/big"
)

func TestGenerator(test *testing.T) {
	nums := []uint32{1, 2, 3, 4, 5, 6, 7, 8, 9, 10}
	expTotal := Count(big.NewInt(int64(len(nums))), big.NewInt(5))
	actTotal := new(big.Int)

	c := Generator(nums, 5)
	loop := true
	vals := make([]uint32, 5)
	for loop {
		loop = c(vals)
		actTotal.Add(actTotal, ONE)
	}
	if expTotal.Cmp(actTotal) != 0 {
		test.Fatalf("Expected %v combinations, but saw %v\n", expTotal, actTotal)
	}
}<commit_msg>Fixed the combinations test.<commit_after>package comb

import (
	"testing"
	"math/big"
)

func TestGenerator(test *testing.T) {
	nums := []int32{1, 2, 3, 4, 5, 6, 7, 8, 9, 10}
	expTotal := Count(big.NewInt(int64(len(nums))), big.NewInt(5))
	actTotal := new(big.Int)

	c := Generator(nums, 5)
	loop := true
	vals := make([]int32, 5)
	for loop {
		loop = c(vals)
		actTotal.Add(actTotal, big.NewInt(1))
	}
	if expTotal.Cmp(actTotal) != 0 {
		test.Fatalf("Expected %v combinations, but saw %v\n", expTotal, actTotal)
	}
}
{'fraction_non_alphanumeric': 0.1852216748768473, 'fraction_numerical': 0.042364532019704436, 'mean_word_length': 4.237113402061856, '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': '3068443', 'n_tokens_mistral': 467, 'n_tokens_neox': 427, 'n_words': 101}