<commit_before>package testdb

import (
	"database/sql/driver"
	"io"
)

type rows struct {
	closed  bool
	columns []string
	rows    [][]driver.Value
	pos     int
}

func (rs *rows) clone() *rows {
	if rs == nil {
		return nil
	}

	return &rows{closed: false, columns: rs.columns, rows: rs.rows, pos: 0}
}

func (rs *rows) Next(dest []driver.Value) error {
	rs.pos++
	if rs.pos > len(rs.rows) {
		rs.closed = true
		rs.pos = 0

		return io.EOF // per interface spec
	}

	for i, col := range rs.rows[rs.pos-1] {
		dest[i] = col
	}

	return nil
}

func (rs *rows) Err() error {
	return nil
}

func (rs *rows) Columns() []string {
	return rs.columns
}

func (rs *rows) Close() error {<commit_msg>Remove position resetting from fork after upstream clone solution<commit_after>package testdb

import (
	"database/sql/driver"
	"io"
)

type rows struct {
	closed  bool
	columns []string
	rows    [][]driver.Value
	pos     int
}

func (rs *rows) clone() *rows {
	if rs == nil {
		return nil
	}

	return &rows{closed: false, columns: rs.columns, rows: rs.rows, pos: 0}
}

func (rs *rows) Next(dest []driver.Value) error {
	rs.pos++
	if rs.pos > len(rs.rows) {
		rs.closed = true

		return io.EOF // per interface spec
	}

	for i, col := range rs.rows[rs.pos-1] {
		dest[i] = col
	}

	return nil
}

func (rs *rows) Err() error {
	return nil
}

func (rs *rows) Columns() []string {
	return rs.columns
}

func (rs *rows) Close() error {
{'fraction_non_alphanumeric': 0.14898102600140548, 'fraction_numerical': 0.0035137034434293743, 'mean_word_length': 3.127536231884058, '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': '1603441', 'n_tokens_mistral': 566, 'n_tokens_neox': 544, 'n_words': 170}