<commit_before>package metrics

import "testing"

func TestAddFirstKey(t *testing.T) {
	empty := Key{}
	expected := "first"

	k := empty.Add("first")

	if k.String() != expected {
		t.Error("%v != %v", expected, k)
		t.FailNow()
	}
}

func TestAddMultipleKeys(t *testing.T) {
	empty := Key{}
	expected := "first.second.third"

	k := empty.Add("first").Add("second").Add("third")

	if k.String() != expected {
		t.Error("%v != %v", expected, k)
		t.FailNow()
	}
}<commit_msg>replace calls to Error to Errorf which was the original intention<commit_after>package metrics

import "testing"

func TestAddFirstKey(t *testing.T) {
	empty := Key{}
	expected := "first"

	k := empty.Add("first")

	if k.String() != expected {
		t.Errorf("'%v' != '%v'", expected, k)
		t.FailNow()
	}
}

func TestAddMultipleKeys(t *testing.T) {
	empty := Key{}
	expected := "first.second.third"

	k := empty.Add("first").Add("second").Add("third")

	if k.String() != expected {
		t.Errorf("'%v' != '%v'", expected, k)
		t.FailNow()
	}
}
{'fraction_non_alphanumeric': 0.2079207920792079, 'fraction_numerical': 0.0, 'mean_word_length': 4.080402010050252, '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': '5282578', 'n_tokens_mistral': 390, 'n_tokens_neox': 374, 'n_words': 86}