<commit_before>package sql

import (
	"database/sql"
)

type DB interface {
	Exec(query string, args ...interface{}) (sql.Result, error)
	Query(query string, args ...interface{}) (*sql.Rows, error)
	QueryRow(query string, args ...interface{}) *sql.Row
}

type db struct {
	*sql.DB
	tx     *sql.Tx
	db     DB
	driver *Driver
}

func (d *db) Exec(query string, args ...interface{}) (sql.Result, error) {
	d.driver.debugq(query, args)
	return d.db.Exec(query, args...)
}

func (d *db) Query(query string, args ...interface{}) (*sql.Rows, error) {
	d.driver.debugq(query, args)
	return d.db.Query(query, args...)
}

func (d *db) QueryRow(query string, args ...interface{}) *sql.Row {
	d.driver.debugq(query, args)
	return d.DB.QueryRow(query, args...)
}
<commit_msg>Call QueryRow using db rather than DB<commit_after>package sql

import (
	"database/sql"
)

type DB interface {
	Exec(query string, args ...interface{}) (sql.Result, error)
	Query(query string, args ...interface{}) (*sql.Rows, error)
	QueryRow(query string, args ...interface{}) *sql.Row
}

type db struct {
	*sql.DB
	tx     *sql.Tx
	db     DB
	driver *Driver
}

func (d *db) Exec(query string, args ...interface{}) (sql.Result, error) {
	d.driver.debugq(query, args)
	return d.db.Exec(query, args...)
}

func (d *db) Query(query string, args ...interface{}) (*sql.Rows, error) {
	d.driver.debugq(query, args)
	return d.db.Query(query, args...)
}

func (d *db) QueryRow(query string, args ...interface{}) *sql.Row {
	d.driver.debugq(query, args)
	return d.db.QueryRow(query, args...)
}

{'fraction_non_alphanumeric': 0.1821705426356589, 'fraction_numerical': 0.0, 'mean_word_length': 3.6516516516516515, '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': '4698651', 'n_tokens_mistral': 558, 'n_tokens_neox': 555, 'n_words': 156}