<commit_before>package main

import (
	"flag"
	"os"

	"fmt"
	"io/ioutil"
	"strings"

	"github.com/j-delaney/typewriter"
)

func main() {
	flag.Usage = func() {
		fmt.Printf("Usage: side_by_side [options] leftFile rightFile\nOptions:\n")
		flag.PrintDefaults()
	}

	padding := flag.Int("padding", 5, "The padding between the two columns")
	separator := flag.String("separator", "", "Character to separate the two columns")
	markDifference := flag.Bool("diff", false, "Mark the first difference found")
	lineNumbers := flag.Bool("linenums", false, "Show line numbers")
	showHeader := flag.Bool("header", false, "Use the filenames as headers")

	flag.Parse()

	if flag.NArg() != 2 {
		flag.Usage()
		os.Exit(2)
	}

	filePath1 := flag.Arg(0)
	filePath2 := flag.Arg(1)

	bytes1, err := ioutil.ReadFile(filePath1)
	if err != nil {
		fmt.Fprint(os.Stderr, "Could not read %v: %v", filePath1, err)
		os.Exit(1)
	}

	bytes2, err := ioutil.ReadFile(filePath2)
	if err != nil {
		fmt.Fprint(os.Stderr, "Could not read %v: %v", filePath2, err)
		os.Exit(1)
	}

	lines1 := strings.Split(string(bytes1), "\n")
	lines2 := strings.Split(string(bytes2), "\n")

	config := typewriter.Config{
		Padding:   *padding,
		Separator: *separator,

		MarkFirstDifference: *markDifference,
		ShowLineNumbers:     *lineNumbers,
	}

	if *showHeader {
		config.LeftHeader = filePath1
		config.RightHeader = filePath2
	}

	s := typewriter.Run(lines1, lines2, config)

	fmt.Print(s)
}<commit_msg>Fix printing issue<commit_after>package main

import (
	"flag"
	"os"

	"fmt"
	"io/ioutil"
	"strings"

	"github.com/j-delaney/typewriter"
)

func main() {
	flag.Usage = func() {
		fmt.Printf("Usage: side_by_side [options] leftFile rightFile\nOptions:\n")
		flag.PrintDefaults()
	}

	padding := flag.Int("padding", 5, "The padding between the two columns")
	separator := flag.String("separator", "", "Character to separate the two columns")
	markDifference := flag.Bool("diff", false, "Mark the first difference found")
	lineNumbers := flag.Bool("linenums", false, "Show line numbers")
	showHeader := flag.Bool("header", false, "Use the filenames as headers")

	flag.Parse()

	if flag.NArg() != 2 {
		flag.Usage()
		os.Exit(2)
	}

	filePath1 := flag.Arg(0)
	filePath2 := flag.Arg(1)

	bytes1, err := ioutil.ReadFile(filePath1)
	if err != nil {
		fmt.Fprintf(os.Stderr, "Could not read %v: %v", filePath1, err)
		os.Exit(1)
	}

	bytes2, err := ioutil.ReadFile(filePath2)
	if err != nil {
		fmt.Fprintf(os.Stderr, "Could not read %v: %v", filePath2, err)
		os.Exit(1)
	}

	lines1 := strings.Split(string(bytes1), "\n")
	lines2 := strings.Split(string(bytes2), "\n")

	config := typewriter.Config{
		Padding:   *padding,
		Separator: *separator,

		MarkFirstDifference: *markDifference,
		ShowLineNumbers:     *lineNumbers,
	}

	if *showHeader {
		config.LeftHeader = filePath1
		config.RightHeader = filePath2
	}

	s := typewriter.Run(lines1, lines2, config)

	fmt.Print(s)
}
{'fraction_non_alphanumeric': 0.16013628620102216, 'fraction_numerical': 0.015672913117546847, 'mean_word_length': 4.233511586452763, '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': '2597964', 'n_tokens_mistral': 1159, 'n_tokens_neox': 1085, 'n_words': 252}