<commit_before>package lib

import (
	"fmt"
)

type karmaSet struct {
	plusplus   int
	minusminus int
	plusminus  int
}

func (k karmaSet) value() int {
	return k.plusplus - k.minusminus
}

func (k karmaSet) String() string {
	ratio := float64(k.plusplus) / float64(k.minusminus)
	return fmt.Sprintf("(%v++, %v--, %v+-) +/- ratio: %v", k.plusplus, k.minusminus, k.plusminus, ratio)
}
<commit_msg>Precision now 3 sigfigs for ratio printing<commit_after>package lib

import (
	"fmt"
)

type karmaSet struct {
	plusplus   int
	minusminus int
	plusminus  int
}

func (k karmaSet) value() int {
	return k.plusplus - k.minusminus
}

func (k karmaSet) String() string {
	ratio := float64(k.plusplus) / float64(k.minusminus)
	return fmt.Sprintf("(%v++, %v--, %v+-) +/- ratio: %.3g", k.plusplus, k.minusminus, k.plusminus, ratio)
}

{'fraction_non_alphanumeric': 0.1543134872417983, 'fraction_numerical': 0.012150668286755772, 'mean_word_length': 3.9047619047619047, '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': '6912003', 'n_tokens_mistral': 329, 'n_tokens_neox': 316, 'n_words': 84}