<commit_before>/*
Package validator implements value validations for structs and individual fields based on tags.

Built In Validator

	v3 no longer contains a built in Validator instance.

	myValidator = validator.New("validate", validator.BakedInFunctions)

	errs := myValidator.ValidateStruct(//your struct)
	valErr := myValidator.ValidateFieldByTag(field, "omitempty,min=1,max=10")

A simple example usage:

	type UserDetail {
		Details string `validate:"-"`
	}

	type User struct {<commit_msg>Update docs with correct code to instantiate a new validator.<commit_after>/*
Package validator implements value validations for structs and individual fields based on tags.

Built In Validator

	v3 no longer contains a built in Validator instance.

	myValidator = validator.NewValidator("validate", validator.BakedInValidators)

	errs := myValidator.ValidateStruct(//your struct)
	valErr := myValidator.ValidateFieldByTag(field, "omitempty,min=1,max=10")

A simple example usage:

	type UserDetail {
		Details string `validate:"-"`
	}

	type User struct {
{'fraction_non_alphanumeric': 0.08444022770398482, 'fraction_numerical': 0.007590132827324478, 'mean_word_length': 5.317365269461078, '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': '6006439', 'n_tokens_mistral': 308, 'n_tokens_neox': 295, 'n_words': 103}