<commit_before>package awsbase

import (
	"fmt"
	"log"

	"github.com/aws/smithy-go/logging"
)

type debugLogger struct{}

func (l debugLogger) Logf(classification logging.Classification, format string, v ...interface{}) {
	log.Printf("[%s] [aws-sdk-go-v2] %s", classification, fmt.Sprintf(format, v...))
}
<commit_msg>Filters out CR (`\r`) characters from log messages<commit_after>package awsbase

import (
	"fmt"
	"log"
	"strings"

	"github.com/aws/smithy-go/logging"
)

type debugLogger struct{}

func (l debugLogger) Logf(classification logging.Classification, format string, v ...interface{}) {
	s := fmt.Sprintf(format, v...)
	s = strings.ReplaceAll(s, "\r", "") // Works around https://github.com/jen20/teamcity-go-test/pull/2
	log.Printf("[%s] [aws-sdk-go-v2] %s", classification, s)
}

{'fraction_non_alphanumeric': 0.17884130982367757, 'fraction_numerical': 0.006297229219143577, 'mean_word_length': 4.520833333333333, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, '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': '4494901', 'n_tokens_mistral': 284, 'n_tokens_neox': 286, 'n_words': 64}