<commit_before>package schema

import (
	"encoding/json"
	"fmt"
	"testing"

	"github.com/stretchr/testify/require"
	"nimona.io/pkg/object"
	"nimona.io/pkg/tilde"
)

func TestSchema_Self(t *testing.T) {
	c := &Context{
		Name: "schema/Context",
		Types: []*Type{{
			Properties: []*Property{{
				Name:     "name",
				Hint:     tilde.StringHint,
				Required: true,
			}, {
				Name: "description",
				Hint: tilde.StringHint,
			}, {
				Name: "version",
				Hint: tilde.StringHint,
			}, {
				Name:     "types",
				Hint:     tilde.MapHint,
				Repeated: true,
			}},
		}, {
			Properties: []*Property{{<commit_msg>chore(schema): lint imports<commit_after>package schema

import (
	"encoding/json"
	"fmt"
	"testing"

	"nimona.io/pkg/object"
	"nimona.io/pkg/tilde"

	"github.com/stretchr/testify/require"
)

func TestSchema_Self(t *testing.T) {
	c := &Context{
		Name: "schema/Context",
		Types: []*Type{{
			Properties: []*Property{{
				Name:     "name",
				Hint:     tilde.StringHint,
				Required: true,
			}, {
				Name: "description",
				Hint: tilde.StringHint,
			}, {
				Name: "version",
				Hint: tilde.StringHint,
			}, {
				Name:     "types",
				Hint:     tilde.MapHint,
				Repeated: true,
			}},
		}, {
			Properties: []*Property{{
{'fraction_non_alphanumeric': 0.17346123101518784, 'fraction_numerical': 0.0, 'mean_word_length': 2.8404907975460123, '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': '2933234', 'n_tokens_mistral': 563, 'n_tokens_neox': 471, 'n_words': 85}