<commit_before>package http

import (
	"context"
	"database/sql/driver"

	"github.com/pkg/errors"
)

// SQL statement struct
type stmt struct {
	connection *conn
	query      string
}

// See https://golang.org/pkg/database/sql/driver/#Stmt for more details
func (s *stmt) Close() error {
	s.connection = nil
	s.query = ""
	return nil
}

// See https://golang.org/pkg/database/sql/driver/#Stmt for more details
func (s *stmt) NumInput() int {
	return -1
}

// See https://golang.org/pkg/database/sql/driver/#Stmt for more details
func (s *stmt) Exec(args []driver.Value) (driver.Result, error) {
	return s.ExecContext(context.Background(), s.values2NamedValues(args))
}

// See https://golang.org/pkg/database/sql/driver/#StmtExecContext for more details
func (s *stmt) ExecContext(ctx context.Context, args []driver.NamedValue) (driver.Result, error) {
	if s.connection == nil {
		return nil, errors.WithStack(errors.New("Statement is closed"))
	}
	return s.connection.ExecContext(ctx, s.query, args)
}

// See https://golang.org/pkg/database/sql/driver/#Stmt for more details
func (s *stmt) Query(args []driver.Value) (driver.Rows, error) {
	return s.QueryContext(context.Background(), s.values2NamedValues(args))
}

// See https://golang.org/pkg/database/sql/driver/#StmtQueryContext for more details
func (s *stmt) QueryContext(ctx context.Context, args []driver.NamedValue) (driver.Rows, error) {
	if s.connection == nil {
		return nil, errors.WithStack(errors.New("Statement is closed"))<commit_msg>removed useless code<commit_after>package http

import (
	"context"
	"database/sql/driver"

	"github.com/pkg/errors"
)

// SQL statement struct
type stmt struct {
	connection *conn
	query      string
}

// See https://golang.org/pkg/database/sql/driver/#Stmt for more details
func (s *stmt) Close() error {
	s.connection = nil
	return nil
}

// See https://golang.org/pkg/database/sql/driver/#Stmt for more details
func (s *stmt) NumInput() int {
	return -1
}

// See https://golang.org/pkg/database/sql/driver/#Stmt for more details
func (s *stmt) Exec(args []driver.Value) (driver.Result, error) {
	return s.ExecContext(context.Background(), s.values2NamedValues(args))
}

// See https://golang.org/pkg/database/sql/driver/#StmtExecContext for more details
func (s *stmt) ExecContext(ctx context.Context, args []driver.NamedValue) (driver.Result, error) {
	if s.connection == nil {
		return nil, errors.WithStack(errors.New("Statement is closed"))
	}
	return s.connection.ExecContext(ctx, s.query, args)
}

// See https://golang.org/pkg/database/sql/driver/#Stmt for more details
func (s *stmt) Query(args []driver.Value) (driver.Rows, error) {
	return s.QueryContext(context.Background(), s.values2NamedValues(args))
}

// See https://golang.org/pkg/database/sql/driver/#StmtQueryContext for more details
func (s *stmt) QueryContext(ctx context.Context, args []driver.NamedValue) (driver.Rows, error) {
	if s.connection == nil {
		return nil, errors.WithStack(errors.New("Statement is closed"))
{'fraction_non_alphanumeric': 0.14995001666111296, 'fraction_numerical': 0.001999333555481506, 'mean_word_length': 4.418772563176895, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 12, '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': '6790780', 'n_tokens_mistral': 990, 'n_tokens_neox': 968, 'n_words': 242}