<commit_before>package main

import (
	"strconv"
)

// Statusline represents the information line at the bottom
// of each view
// It gives information such as filename, whether the file has been
// modified, filetype, cursor location
type Statusline struct {
	view *View
}

// Display draws the statusline to the screen
func (sline *Statusline) Display() {
	// We'll draw the line at the lowest line in the view
	y := sline.view.Height + sline.view.y

	file := sline.view.Buf.GetName()

	// If the buffer is dirty (has been modified) write a little '+'
	if sline.view.Buf.Modified() {
		file += " +"
	}

	// Add one to cursor.x and cursor.y because (0,0) is the top left,
	// but users will be used to (1,1) (first line,first column)<commit_msg>Don't draw statusline if infobar is off and in use<commit_after>package main

import (
	"strconv"
)

// Statusline represents the information line at the bottom
// of each view
// It gives information such as filename, whether the file has been
// modified, filetype, cursor location
type Statusline struct {
	view *View
}

// Display draws the statusline to the screen
func (sline *Statusline) Display() {
	if messenger.hasPrompt && !GetGlobalOption("infobar").(bool) {
		return
	}

	// We'll draw the line at the lowest line in the view
	y := sline.view.Height + sline.view.y

	file := sline.view.Buf.GetName()

	// If the buffer is dirty (has been modified) write a little '+'
	if sline.view.Buf.Modified() {
		file += " +"
	}

	// Add one to cursor.x and cursor.y because (0,0) is the top left,
	// but users will be used to (1,1) (first line,first column)
{'fraction_non_alphanumeric': 0.1095890410958904, 'fraction_numerical': 0.0049813200498132005, 'mean_word_length': 3.463888888888889, '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': '3271327', 'n_tokens_mistral': 516, 'n_tokens_neox': 498, 'n_words': 208}