<commit_before>package mdb

import (
	"fmt"
	"github.com/mabetle/mcore"
)

// SqlLogger
type SqlLogger struct {
}

var (
	sqlLogger *SqlLogger
)

// GetSqlLogger
func GetSqlLogger() *SqlLogger {
	if nil == sqlLogger {
		sqlLogger = &SqlLogger{}
	}
	return sqlLogger
}

// SqlLogger Log
func (s SqlLogger) Log(query string, args ...interface{}) {
	msg := fmt.Sprintf("\nQuery:%s", query)
	if len(args) > 0 {
		argStr := mcore.Join(",", args...)
		msg = fmt.Sprintf("%s\nArgs:%s", msg, argStr)
	}
	logger.Trace(msg)
}<commit_msg>fix log<commit_after>package mdb

import (
	"fmt"
	"github.com/mabetle/mcore"
)

// SqlLogger
type SqlLogger struct {
}

var (
	sqlLogger *SqlLogger
)

// GetSqlLogger
func GetSqlLogger() *SqlLogger {
	if nil == sqlLogger {
		sqlLogger = &SqlLogger{}
	}
	return sqlLogger
}

// SqlLogger Log
func (s SqlLogger) Log(query string, args ...interface{}) {
	msg := fmt.Sprintf("\nQuery:%s", query)
	if len(args) > 0 {
		argStr := mcore.Join(",", args...)
		msg = fmt.Sprintf("%s\n Args:%s", msg, argStr)
	}
	logger.Trace(msg)
}
{'fraction_non_alphanumeric': 0.17349857006673022, 'fraction_numerical': 0.0019065776930409914, 'mean_word_length': 3.708520179372197, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '5153298', 'n_tokens_mistral': 408, 'n_tokens_neox': 403, 'n_words': 94}