<commit_before>package roomba

import (
	"bytes"
	"testing"
)

type CloseableRWBuffer struct {
	r, w bytes.Buffer
}

func (this *CloseableRWBuffer) Read(p []byte) (int, error) {
	return this.r.Read(p)
}

func (this *CloseableRWBuffer) Write(p []byte) (int, error) {
	return this.w.Write(p)<commit_msg>Allow overwriting the testing ReadBuffer.<commit_after>package roomba

import (
	"bytes"
	"testing"
)

type CloseableRWBuffer struct {
	r, w bytes.Buffer
}

func (this *CloseableRWBuffer) Read(p []byte) (int, error) {
	return this.r.Read(p)
}

func (this *CloseableRWBuffer) WriteReadBuffer(p []byte) {
    this.r.Write(p)
}

func (this *CloseableRWBuffer) Write(p []byte) (int, error) {
	return this.w.Write(p)
{'fraction_non_alphanumeric': 0.14325842696629212, 'fraction_numerical': 0.0, 'mean_word_length': 4.991596638655462, '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': '6473058', 'n_tokens_mistral': 271, 'n_tokens_neox': 269, 'n_words': 67}