<commit_before>package logs

import (
	"bytes"
	"fmt"
	"strings"
	"time"

	log "github.com/Sirupsen/logrus"
)

type BzkFormatter struct {
}

func (f *BzkFormatter) Format(entry *log.Entry) ([]byte, error) {

	b := &bytes.Buffer{}

	fmt.Fprintf(b, "%s [%s] %s ", entry.Time.Format(time.RFC3339), strings.ToUpper(entry.Level.String()), entry.Message)

	for k, v := range entry.Data {
		fmt.Fprintf(b, "%v=%s ", k, v)
	}
	b.WriteByte('\n')

	return b.Bytes(), nil
}<commit_msg>Remove time in formatter, this is handled by mongo<commit_after>package logs

import (
	"bytes"
	"fmt"
	"strings"

	log "github.com/Sirupsen/logrus"
)

type BzkFormatter struct {
}

func (f *BzkFormatter) Format(entry *log.Entry) ([]byte, error) {

	b := &bytes.Buffer{}

	fmt.Fprintf(b, "[%s] %s ", strings.ToUpper(entry.Level.String()), entry.Message)

	for k, v := range entry.Data {
		fmt.Fprintf(b, "%v=%s ", k, v)
	}
	b.WriteByte('\n')

	return b.Bytes(), nil
}
{'fraction_non_alphanumeric': 0.19128586609989373, 'fraction_numerical': 0.004250797024442083, 'mean_word_length': 4.119565217391305, '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': '2934450', 'n_tokens_mistral': 392, 'n_tokens_neox': 378, 'n_words': 87}