<commit_before>package mdt

import (
	"fmt"
	"github.com/mattn/go-runewidth"
	"strings"
)

type columner interface {
	length() int
	toMarkdown(length int) string
}

type column struct {
	content string
}

func newColumn(s string) column {
	return column{
		content: strings.TrimSpace(s),
	}
}

func (c column) length() int {
	return runewidth.StringWidth(c.content)
}

func (c column) toMarkdown(length int) string {
	format := fmt.Sprintf(" %%- %ds ", length-c.length()+1)
	return fmt.Sprintf(format, c.content)
}

type align int

const (
	left align = iota
	center
	right
	none
)

type divColumn struct {
	column<commit_msg>fix toMarkdown()<commit_after>package mdt

import (
	"fmt"
	"github.com/mattn/go-runewidth"
	"strings"
)

type columner interface {
	length() int
	toMarkdown(length int) string
}

type column struct {
	content string
}

func newColumn(s string) column {
	return column{
		content: strings.TrimSpace(s),
	}
}

func (c column) length() int {
	return runewidth.StringWidth(c.content)
}

func (c column) toMarkdown(length int) string {
	return " " + c.content + strings.Repeat(" ", length-c.length()) + " "
}

type align int

const (
	left align = iota
	center
	right
	none
)

type divColumn struct {
	column
{'fraction_non_alphanumeric': 0.12195121951219512, 'fraction_numerical': 0.0008130081300813008, 'mean_word_length': 4.1078838174273855, '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': '4681737', 'n_tokens_mistral': 460, 'n_tokens_neox': 454, 'n_words': 119}