<commit_before>package schema

// CommandType is an enum of the type that can be represented by a schema.
type CommandType int //go:generate stringer -type=CommandType :: manual

const (
	CommandInvalid CommandType = iota
	CommandList
	CommandCreate
	CommandRead
	CommandUpdate
	CommandDelete
	CommandManipulateMulti
	CommandManipulateSingle
	CommandManipulateIDOnly
	CommandCustom
)

func (c CommandType) IsRequiredIDType() bool {
	switch c {
	case CommandRead, CommandUpdate, CommandDelete, CommandManipulateMulti, CommandManipulateSingle, CommandManipulateIDOnly:
		return true
	default:
		return false
	}
}

func (c CommandType) IsNeedSingleIDType() bool {
	return c == CommandManipulateSingle
}

func (c CommandType) IsNeedIDOnlyType() bool {
	return c == CommandManipulateIDOnly
}

func (c CommandType) IsNeedConfirmType() bool {
	switch c {<commit_msg>Make the read command target to only a single resource<commit_after>package schema

// CommandType is an enum of the type that can be represented by a schema.
type CommandType int //go:generate stringer -type=CommandType :: manual

const (
	CommandInvalid CommandType = iota
	CommandList
	CommandCreate
	CommandRead
	CommandUpdate
	CommandDelete
	CommandManipulateMulti
	CommandManipulateSingle
	CommandManipulateIDOnly
	CommandCustom
)

func (c CommandType) IsRequiredIDType() bool {
	switch c {
	case CommandRead, CommandUpdate, CommandDelete, CommandManipulateMulti, CommandManipulateSingle, CommandManipulateIDOnly:
		return true
	default:
		return false
	}
}

func (c CommandType) IsNeedSingleIDType() bool {
	return c == CommandManipulateSingle || c == CommandRead
}

func (c CommandType) IsNeedIDOnlyType() bool {
	return c == CommandManipulateIDOnly
}

func (c CommandType) IsNeedConfirmType() bool {
	switch c {
{'fraction_non_alphanumeric': 0.061832490163012926, 'fraction_numerical': 0.0, 'mean_word_length': 5.641791044776119, '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': '5966175', 'n_tokens_mistral': 525, 'n_tokens_neox': 520, 'n_words': 167}