<commit_before>package main

import (
	"flag"
	"github.com/gregoryv/backstejg/text"
	"io/ioutil"
	"os"
)

var size = flag.Int("fs", 72, "font size of title, other text is adapted using golden mean")
var fontColor = flag.String("fc", "999999", "font color")

func main() {
	flag.Parse()

	if len(flag.Args()) == 0 {
		print("Usage: texter [OPTIONS] text_file\n\nOptions\n")
		flag.PrintDefaults()
		os.Exit(1)
	}
	file := flag.Args()[0]

	txt, err := ioutil.ReadFile(file)
	if err != nil {
		print(err.Error(), "\n")
		flag.Usage()
		os.Exit(1)
	}

	text.SetSize(int32(*size))
	text.SetFontColor(*fontColor)
	text.BasicMarkdown(string(txt))
}<commit_msg>Document texter<commit_after>// texter, text actor for stejg, stejg.7de.se
package main

import (
	"flag"
	"github.com/gregoryv/backstejg/text"
	"io/ioutil"
	"os"
)

var size = flag.Int("fs", 72, "font size of title, other text is adapted using golden mean")
var fontColor = flag.String("fc", "999999", "font color")

func main() {
	flag.Parse()
	if len(flag.Args()) == 0 {
		print("Usage: texter [OPTIONS] text_file\n\nOptions\n")
		flag.PrintDefaults()
		os.Exit(1)
	}

	// Load the entire file, useless to try to render very large
	// files anyway so this is ok.
	file := flag.Args()[0]
	txt, err := ioutil.ReadFile(file)
	if err != nil {
		print(err.Error(), "\n")
		flag.Usage()
		os.Exit(1)
	}

	// Main title font size
	text.SetSize(int32(*size))
	text.SetFontColor(*fontColor)
	text.BasicMarkdown(string(txt))
}
{'fraction_non_alphanumeric': 0.17255434782608695, 'fraction_numerical': 0.01970108695652174, 'mean_word_length': 4.044520547945205, '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': '192139', 'n_tokens_mistral': 612, 'n_tokens_neox': 575, 'n_words': 139}