<commit_before>package edit

// Mode is an editor mode.
type Mode interface {
	Mode() ModeType
	ModeLine(width int) *buffer
}

type ModeType int

const (
	modeInsert ModeType = iota
	modeCommand
	modeCompletion
	modeNavigation
	modeHistory
	modeHistoryListing
	modeLocation
)

// Lister is a mode with a listing.
type Lister interface {
	List(width, maxHeight int) *buffer
}
<commit_msg>Comments.<commit_after>package edit

// Mode is an editor mode.
type Mode interface {
	Mode() ModeType
	// ModeLine renders a mode line under the given width constraint. It
	// returns a rendered buffer.
	ModeLine(width int) *buffer
}

type ModeType int

const (
	modeInsert ModeType = iota
	modeCommand
	modeCompletion
	modeNavigation
	modeHistory
	modeHistoryListing
	modeLocation
)

// Lister is a mode with a listing.
type Lister interface {
	// List renders the listing under the given constraint of width and maximum
	// height. It returns a rendered buffer.
	List(width, maxHeight int) *buffer
}

{'fraction_non_alphanumeric': 0.06363636363636363, 'fraction_numerical': 0.0, 'mean_word_length': 4.030456852791878, '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': '6832838', 'n_tokens_mistral': 298, 'n_tokens_neox': 294, 'n_words': 117}