<commit_before>package summer

import (
	"log"
	"os"
)

type LogLevel int

const (
	DebugLevel LogLevel = iota
	InfoLevel
	WarnLevel
	ErrorLevel
	PanicLevel
	FatalLevel
)

var logger = NewSimpleLog("summer", InfoLevel)

type SimpleLogger struct {
	level LogLevel
}

func NewSimpleLogger(logLevel LogLevel) *SimpleLogger {
	return &SimpleLogger{logLevel}
}
func (sl *SimpleLogger) Module(module string) *SimpleLog {
	return &SimpleLog{log: log.New(os.Stderr, "["+module+"]", log.LstdFlags), level: sl.level}
}

type SimpleLog struct {
	log   *log.Logger
	level LogLevel
}

func NewSimpleLog(module string, logLevel LogLevel) *SimpleLog {
	return &SimpleLog{log: log.New(os.Stderr, "["+module+"]", log.LstdFlags), level: InfoLevel}
}
func (sl *SimpleLog) SetLevel(logLevel LogLevel) *SimpleLog {
	sl.level = logLevel
	return sl
}
func SetLogLevel(logLevel LogLevel) {
	logger.SetLevel(logLevel)
}
func (log *SimpleLog) Debug(args ...interface{}) {
	if DebugLevel < log.level {
		return
	}
	log.log.Println(args)
}
func (log *SimpleLog) Error(args ...interface{}) {
	if ErrorLevel < log.level {
		return
	}
	log.log.Println(args)
}
func (log *SimpleLog) Println(args ...interface{}) {
	log.log.Println(args)
}
func (log *SimpleLog) Warn(args ...interface{}) {
	if WarnLevel < log.level {
		return
	}
	log.log.Println(args)
}

func (log *SimpleLog) Panic(args ...interface{}) {
	if PanicLevel < log.level {
		return
	}
	log.log.Panicln(args)
}

func (log *SimpleLog) Fatal(args ...interface{}) {
	if FatalLevel < log.level {
		return
	}
	log.log.Fatalln(args)
}

func (log *SimpleLog) Info(args ...interface{}) {
	if InfoLevel < log.level {
		return
	}
	log.log.Println(args)
}
<commit_msg>fix logs bug<commit_after>package summer

import (
	"log"
	"os"
)

type LogLevel int

const (
	DebugLevel LogLevel = iota
	InfoLevel
	WarnLevel
	ErrorLevel
	PanicLevel
	FatalLevel
)

var logger = NewSimpleLog("summer", InfoLevel)

type SimpleLogger struct {
	level LogLevel
}

func NewSimpleLogger(logLevel LogLevel) *SimpleLogger {
	return &SimpleLogger{logLevel}
}
func (sl *SimpleLogger) Module(module string) *SimpleLog {
	return &SimpleLog{log: log.New(os.Stderr, "["+module+"]", log.LstdFlags), level: sl.level}
}

type SimpleLog struct {
	log   *log.Logger
	level LogLevel
}

func NewSimpleLog(module string, logLevel LogLevel) *SimpleLog {
	return &SimpleLog{log: log.New(os.Stderr, "["+module+"]", log.LstdFlags), level: InfoLevel}
}
func (sl *SimpleLog) SetLevel(logLevel LogLevel) *SimpleLog {
	sl.level = logLevel
	return sl
}
func SetLogLevel(logLevel LogLevel) {
	logger.SetLevel(logLevel)
}
func (log *SimpleLog) Debug(args ...interface{}) {
	if DebugLevel < log.level {
		return
	}
	log.log.Println(args...)
}
func (log *SimpleLog) Error(args ...interface{}) {
	if ErrorLevel < log.level {
		return
	}
	log.log.Println(args...)
}
func (log *SimpleLog) Println(args ...interface{}) {
	log.log.Println(args...)
}
func (log *SimpleLog) Warn(args ...interface{}) {
	if WarnLevel < log.level {
		return
	}
	log.log.Println(args...)
}

func (log *SimpleLog) Panic(args ...interface{}) {
	if PanicLevel < log.level {
		return
	}
	log.log.Panicln(args...)
}

func (log *SimpleLog) Fatal(args ...interface{}) {
	if FatalLevel < log.level {
		return
	}
	log.log.Fatalln(args...)
}

func (log *SimpleLog) Info(args ...interface{}) {
	if InfoLevel < log.level {
		return
	}
	log.log.Println(args...)
}

{'fraction_non_alphanumeric': 0.1488797169811321, 'fraction_numerical': 0.0, 'mean_word_length': 4.2686335403726705, 'pattern_counts': {'":': 0, '<': 15, '<?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': '6102682', 'n_tokens_mistral': 1263, 'n_tokens_neox': 1244, 'n_words': 292}