<commit_before>package handler

import (
	"fmt"
	"os"
)

// A Logger interface is used by handlers to when some kind of output needs to be provided
type Logger interface {
	Print(v ...interface{})
}

type NopLogger struct{}

func (l NopLogger) Print(v ...interface{}) {}

type OutLogger struct{}

func (l OutLogger) Print(v ...interface{}) {
	fmt.Fprint(os.Stdout, v...)
}

type ErrLogger struct{}

func (l ErrLogger) Print(v ...interface{}) {
	fmt.Fprint(os.Stderr, v...)
}<commit_msg>Add docs to the various simple loggers<commit_after>package handler

import (
	"fmt"
	"os"
)

// A Logger interface is used by handlers to when some kind of output needs to be provided
type Logger interface {
	Print(v ...interface{})
}

// NopLogger is a Logger implementation that does nothing
type NopLogger struct{}

func (l NopLogger) Print(v ...interface{}) {}

// OutLogger is a Logger implementation that outputs to os.Stdout
type OutLogger struct{}

func (l OutLogger) Print(v ...interface{}) {
	fmt.Fprint(os.Stdout, v...)
}

// ErrLogger is a Logger implementation that outputs to os.Stderr
type ErrLogger struct{}

func (l ErrLogger) Print(v ...interface{}) {
	fmt.Fprint(os.Stderr, v...)
}
{'fraction_non_alphanumeric': 0.13310867733782644, 'fraction_numerical': 0.0, 'mean_word_length': 3.8292682926829267, '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': '4952525', 'n_tokens_mistral': 375, 'n_tokens_neox': 370, 'n_words': 142}