<commit_before>package main

import "testing"

var result []string

func benchCases() map[string][]string {
	m := map[string][]string{
		"short": short(),
		"long":  long(),
	}
	return m
}

func benchFunc(b *testing.B, fn func([]string) []string, in []string) {
	var r []string
	b.ResetTimer()
	for n := 0; n < b.N; n++ {
		r = fn(in)
	}
	result = r
}<commit_msg>fromquotes: add Benchmark<commit_after>package main

import (
	"fmt"
	"testing"
)

var result []string

func benchCases() map[string]func([]string) []string {
	m := map[string]func([]string) []string{
		"original": original,
	}
	return m
}

func benchFunc(b *testing.B, fn func([]string) []string, in []string) {
	var r []string
	b.ResetTimer()
	for n := 0; n < b.N; n++ {
		r = fn(in)
	}
	result = r
}

func Benchmark(b *testing.B) {
	inputs := map[string][]string{
		"short": short(),
		"long":  long(),
	}
	for bname, fn := range benchCases() {
		for iname, in := range inputs {
			name := fmt.Sprintf("%s(%s)", bname, iname)
			b.Run(name, func(b *testing.B) {
				benchFunc(b, fn, in)
			})
		}

	}
}
{'fraction_non_alphanumeric': 0.19662921348314608, 'fraction_numerical': 0.0018726591760299626, 'mean_word_length': 3.7511111111111113, 'pattern_counts': {'":': 5, '<': 5, '<?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': '2203330', 'n_tokens_mistral': 450, 'n_tokens_neox': 425, 'n_words': 112}