<commit_before>package codectest

import (
	. "github.com/Aptomi/aptomi/pkg/slinga/object"
)

type CodecTestObject1 struct {
	Metadata

	Str    string
	Number int
}

type CodecTestObject2 struct {
	Metadata

	Nested CodecTestNestedObject
	Map    map[Kind][]Key
}

type CodecTestNestedObject struct {
	NestedStrs []string
}

var (
	CodecTestObjectsCatalog = &ObjectCatalog{
		map[Kind]*ObjectInfo{
			Kind("t1"): {
				Kind("t1"),
				func() BaseObject { return new(CodecTestObject1) },
			},
			Kind("t2"): {
				Kind("t2"),
				func() BaseObject { return new(CodecTestObject2) },
			},
		},
	}
	CodecTestObjects = []BaseObject{
		&CodecTestObject1{
			Metadata: Metadata{
				"t1",
				"uid-1",
				1,
				"name-1",
				"namespace-1",
			},
			Str:    "str-1",
			Number: 1,
		},
		&CodecTestObject1{
			Metadata: Metadata{
				"t1",
				"uid-2",
				2,
				"name-2",
				"namespace-1",
			},
			Str:    "str-2",
			Number: 2,
		},
		&CodecTestObject2{
			Metadata: Metadata{
				"t2",
				"uid-3",
				3,
				"name-3",
				"namespace-2",
			},
			Nested: CodecTestNestedObject{
				[]string{"1", "2", "3"},
			},
			Map: map[Kind][]Key{
				Kind("k-1"): {
					KeyFromParts("uid-1", 1),
					KeyFromParts("uid-2", 2),
				},
				Kind("k-2"): {
					KeyFromParts("uid-3", 1),
					KeyFromParts("uid-4", 2),
				},
			},
		},
		&CodecTestObject2{
			Metadata: Metadata{
				"t2",
				"uid-4",
				4,
				"name-4",
				"namespace-2",
			},
			Nested: CodecTestNestedObject{
				[]string{"4", "5", "6"},
			},
			Map: map[Kind][]Key{
				Kind("k-3"): {
					KeyFromParts("uid-5", 1),
					KeyFromParts("uid-6", 2),
				},
				Kind("k-4"): {
					KeyFromParts("uid-7", 1),
					KeyFromParts("uid-8", 2),
				},
			},
		},
	}
)
<commit_msg>Final vet fix<commit_after>package codectest

import (
	. "github.com/Aptomi/aptomi/pkg/slinga/object"
)

type CodecTestObject1 struct {
	Metadata

	Str    string
	Number int
}

type CodecTestObject2 struct {
	Metadata

	Nested CodecTestNestedObject
	Map    map[Kind][]Key
}

type CodecTestNestedObject struct {
	NestedStrs []string
}

var (
	CodecTestObjectsCatalog = &ObjectCatalog{
		Infos: map[Kind]*ObjectInfo{
			Kind("t1"): {
				Kind:        Kind("t1"),
				Constructor: func() BaseObject { return new(CodecTestObject1) },
			},
			Kind("t2"): {
				Kind:        Kind("t2"),
				Constructor: func() BaseObject { return new(CodecTestObject2) },
			},
		},
	}
	CodecTestObjects = []BaseObject{
		&CodecTestObject1{
			Metadata: Metadata{
				Kind:       "t1",
				UID:        "uid-1",
				Generation: 1,
				Name:       "name-1",
				Namespace:  "namespace-1",
			},
			Str:    "str-1",
			Number: 1,
		},
		&CodecTestObject1{
			Metadata: Metadata{
				Kind:       "t1",
				UID:        "uid-2",
				Generation: 2,
				Name:       "name-2",
				Namespace:  "namespace-1",
			},
			Str:    "str-2",
			Number: 2,
		},
		&CodecTestObject2{
			Metadata: Metadata{
				Kind:       "t2",
				UID:        "uid-3",
				Generation: 3,
				Name:       "name-3",
				Namespace:  "namespace-2",
			},
			Nested: CodecTestNestedObject{
				NestedStrs: []string{"1", "2", "3"},
			},
			Map: map[Kind][]Key{
				Kind("k-1"): {
					KeyFromParts("uid-1", 1),
					KeyFromParts("uid-2", 2),
				},
				Kind("k-2"): {
					KeyFromParts("uid-3", 1),
					KeyFromParts("uid-4", 2),
				},
			},
		},
		&CodecTestObject2{
			Metadata: Metadata{
				Kind:       "t2",
				UID:        "uid-4",
				Generation: 4,
				Name:       "name-4",
				Namespace:  "namespace-2",
			},
			Nested: CodecTestNestedObject{
				NestedStrs: []string{"4", "5", "6"},
			},
			Map: map[Kind][]Key{
				Kind("k-3"): {
					KeyFromParts("uid-5", 1),
					KeyFromParts("uid-6", 2),
				},
				Kind("k-4"): {
					KeyFromParts("uid-7", 1),
					KeyFromParts("uid-8", 2),
				},
			},
		},
	}
)

{'fraction_non_alphanumeric': 0.1836627140974967, 'fraction_numerical': 0.03267457180500659, 'mean_word_length': 2.41981981981982, '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': '6803405', 'n_tokens_mistral': 1900, 'n_tokens_neox': 1519, 'n_words': 263}