<commit_before>package log

import (
	"io/ioutil"
	"log"
	"os"

	"github.com/bahadley/ssim/system"
)

var (
	Trace   *log.Logger
	Info    *log.Logger
	Warning *log.Logger
	Error   *log.Logger
)

func init() {
	traceOut := ioutil.Discard
	if system.Trace() {
		traceOut = os.Stdout
	}

	Trace = log.New(traceOut,
		"TRACE: ",
		log.Ldate|log.Lmicroseconds|log.Lshortfile)

	Info = log.New(os.Stdout,
		"INFO: ",
		log.Ldate|log.Ltime)

	Warning = log.New(os.Stdout,
		"WARNING: ",
		log.Ldate|log.Ltime|log.Lshortfile)

	Error = log.New(os.Stderr,
		"ERROR: ",
		log.Ldate|log.Ltime|log.Lshortfile)
}<commit_msg>Switched INFO and WARNING messages to stderr<commit_after>package log

import (
	"io/ioutil"
	"log"
	"os"

	"github.com/bahadley/ssim/system"
)

var (
	Trace   *log.Logger
	Info    *log.Logger
	Warning *log.Logger
	Error   *log.Logger
)

func init() {
	traceOut := ioutil.Discard
	if system.Trace() {
		traceOut = os.Stdout
	}

	Trace = log.New(traceOut,
		"TRACE: ",
		log.Ldate|log.Lmicroseconds|log.Lshortfile)

	Info = log.New(os.Stderr,
		"INFO: ",
		log.Ldate|log.Ltime)

	Warning = log.New(os.Stderr,
		"WARNING: ",
		log.Ldate|log.Ltime|log.Lshortfile)

	Error = log.New(os.Stderr,
		"ERROR: ",
		log.Ldate|log.Ltime|log.Lshortfile)
}
{'fraction_non_alphanumeric': 0.15802075019952114, 'fraction_numerical': 0.0, 'mean_word_length': 3.527075812274368, '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': '4953908', 'n_tokens_mistral': 578, 'n_tokens_neox': 546, 'n_words': 86}