<commit_before>package main

import (
	"bytes"
	"os"
)

func concat(a bytes.Buffer, b bytes.Buffer) []byte {
	return append(a.Bytes(), b.Bytes()...)
}

func exitIfError(err error) {
	if err != nil {
		os.Exit(1)
	}
}<commit_msg>utils_misc.go: print error on fatal exit<commit_after>package main

import (
	"bytes"
	"fmt"
	"os"
)

func concat(a bytes.Buffer, b bytes.Buffer) []byte {
	return append(a.Bytes(), b.Bytes()...)
}

func exitIfError(err error) {
	if err != nil {
		fmt.Printf("fatal error: %v\n", err)
		os.Exit(1)
	}
}
{'fraction_non_alphanumeric': 0.17958412098298676, 'fraction_numerical': 0.003780718336483932, 'mean_word_length': 3.774774774774775, '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': '1255550', 'n_tokens_mistral': 221, 'n_tokens_neox': 217, 'n_words': 52}