<commit_before><commit_msg>[golerror] a custom error struct<commit_after>package golerror

import "fmt"

type csutomError struct {
	ExitCode    int
	ExitMessage string
}

func (e *CustomError) Error() string {
	return fmt.Sprintf("[error] %d - %s", e.ExitCode, e.ExitMessage)
}

func CustomError(exitcode int, msg string) error {
	return &argError{exitcode, msg}
}
{'fraction_non_alphanumeric': 0.11538461538461539, 'fraction_numerical': 0.0, 'mean_word_length': 5.4035087719298245, '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': '5129892', 'n_tokens_mistral': 124, 'n_tokens_neox': 122, 'n_words': 35}