<commit_before>package ioext

import (
	"io"
)

// ReadSeekCloser implements io.Reader, io.Seeker, and io.Closer. It is trivially implemented by os.File.
type ReadSeekCloser interface {
	io.Reader
	io.Seeker
	io.Closer
}

// NopCloser is useful in testing where something that implements ReadSeekCloser is needed
// If something that implements io.ReadSeeker is passed in, it will give it a noop close function.
func NopCloser(r io.Reader) ReadSeekCloser {
	//TODO: Require this cast be done outside of NopCloser!!!!
	return readSeekNopCloser{r.(io.ReadSeeker)}
}

type readSeekNopCloser struct {<commit_msg>Fixed unnecessary cast in ioext.NopCloser<commit_after>package ioext

import (
	"io"
)

// ReadSeekCloser implements io.Reader, io.Seeker, and io.Closer. It is trivially implemented by os.File.
type ReadSeekCloser interface {
	io.Reader
	io.Seeker
	io.Closer
}

// NopCloser wraps a io.ReadSeeker as ReadSeekCloser with Close being a noop.
// This is useful for compliance with interface, if you don't care about closing.
func NopCloser(r io.ReadSeeker) ReadSeekCloser {
	return readSeekNopCloser{r}
}

type readSeekNopCloser struct {
{'fraction_non_alphanumeric': 0.07705779334500876, 'fraction_numerical': 0.0, 'mean_word_length': 4.521739130434782, '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': '1422450', 'n_tokens_mistral': 400, 'n_tokens_neox': 386, 'n_words': 127}