<commit_before>package main

import (
	"fmt"
	"os"
	"text/tabwriter"

	"github.com/CrowdSurge/banner"
)

type Program struct {
	Days []Day
}

type Day struct {
	Name       string
	Sets       int
	Reps       int
	Percentage float64
}

func (p Program) Print(liftName string, max int, weeks int, increment int) {
	banner.Print(liftName)
	fmt.Println(weeks, "week Smolov Jr. program")
	fmt.Println("==========================================")
	for i := 0; i < weeks; i++ {
		fmt.Println("\nWeek", i+1)
		fmt.Println("---------")

		w := tabwriter.NewWriter(os.Stdout, 0, 0, 1, ' ', tabwriter.AlignRight)
		fmt.Fprintln(w, "\tSets\tReps\t Weight\tWorksheet\t")

		for _, day := range p.Days {
			fmt.Fprintf(w, "%s\t", day.Name)
			fmt.Fprintf(w, "%d\t", day.Sets)
			fmt.Fprintf(w, "%d\t", day.Reps)
			fmt.Fprintf(w, "%d\t  ", int(day.Percentage*float64(max))+(increment*i))
			for j := 0; j < day.Sets; j++ {
				fmt.Fprint(w, "| ")
			}
			fmt.Fprintf(w, "|\t\n")
		}<commit_msg>slightly nicer formatting<commit_after>package main

import (
	"fmt"
	"os"
	"text/tabwriter"

	"github.com/CrowdSurge/banner"
)

type Program struct {
	Days []Day
}

type Day struct {
	Name       string
	Sets       int
	Reps       int
	Percentage float64
}

func (p Program) Print(liftName string, max int, weeks int, increment int) {
	banner.Print(liftName)
	fmt.Println(weeks, "week Smolov Jr. program")
	fmt.Println("==========================================")
	for i := 0; i < weeks; i++ {
		fmt.Println("\nWeek", i+1)
		fmt.Println("---------")

		w := tabwriter.NewWriter(os.Stdout, 0, 0, 1, ' ', tabwriter.AlignRight)
		fmt.Fprintln(w, "\tSets\tReps\t Weight\tWorksheet\t")
		fmt.Fprintln(w, "\t----\t----\t ------\t---------\t")

		for _, day := range p.Days {
			fmt.Fprintf(w, "%s\t", day.Name)
			fmt.Fprintf(w, "%d\t", day.Sets)
			fmt.Fprintf(w, "%d\t", day.Reps)
			fmt.Fprintf(w, "%d\t  [ ", int(day.Percentage*float64(max))+(increment*i))
			for j := 0; j < day.Sets-1; j++ {
				fmt.Fprint(w, "| ")
			}
			fmt.Fprintf(w, "]\t\n")
		}
{'fraction_non_alphanumeric': 0.23818897637795275, 'fraction_numerical': 0.01033464566929134, 'mean_word_length': 3.0741482965931866, 'pattern_counts': {'":': 0, '<': 7, '<?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': '2786973', 'n_tokens_mistral': 904, 'n_tokens_neox': 817, 'n_words': 173}