<commit_before>package command

import (
	"os/exec"
	"log"
)

type CommandExecuter struct {
	errLogger *log.Logger
	infLogger *log.Logger
}

func New(errLogger, infLogger *log.Logger) *CommandExecuter {
	return &CommandExecuter{
		errLogger: errLogger,
		infLogger: infLogger,
	}
}

func (me CommandExecuter) Execute(cmd *exec.Cmd) bool {
	out, err := cmd.CombinedOutput()

	me.infLogger.Println("Processing message...")

	if err != nil {
		me.errLogger.Printf("Failed: %s\n", string(out[:]))
		return false
	}

	me.infLogger.Println(string(out[:]))

	return false
}<commit_msg>Added a bit more info while logging (probably last commit of 2014 :))<commit_after>package command

import (
	"os/exec"
	"log"
)

type CommandExecuter struct {
	errLogger *log.Logger
	infLogger *log.Logger
}

func New(errLogger, infLogger *log.Logger) *CommandExecuter {
	return &CommandExecuter{
		errLogger: errLogger,
		infLogger: infLogger,
	}
}

func (me CommandExecuter) Execute(cmd *exec.Cmd) bool {
	out, err := cmd.CombinedOutput()

	me.infLogger.Println("Processing message...")

	if err != nil {
		me.infLogger.Println("Failed. Check error log for details.")
		me.errLogger.Printf("Failed: %s\n", string(out[:]))
		return false
	}

	me.infLogger.Println("Processed!")
	me.infLogger.Println(string(out[:]))

	return false
}
{'fraction_non_alphanumeric': 0.13958810068649885, 'fraction_numerical': 0.0030511060259344014, 'mean_word_length': 4.67965367965368, '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': '1975751', 'n_tokens_mistral': 479, 'n_tokens_neox': 457, 'n_words': 109}