<commit_before>package hood

import (
	"database/sql"
	"errors"
	"fmt"
	"reflect"
	"strconv"
	"strings"
	"time"
)

type (
	Hood struct {
		Db        *sql.DB
		Dialect   Dialect
		Log       bool
		qo        qo // the query object
		selector  string
		where     string
		args      []interface{}
		markerPos int
		limit     string
		offset    string
		orderBy   string
		joins     []string
		groupBy   string
		having    string
	}
	Id      int64
	VarChar string // TODO: make size settable via tag
	Model   struct {
		Pk     *Field
		Table  string
		Fields []*Field
	}
	Field struct {
		Name    string      // column name
		Value   interface{} // value
		IsPk    bool        // primary key
		NotNull bool        // null allowed
		Default string      // default value
		Size    int         // size (e.g. for varchar)
	}
	qo interface {
		Prepare(query string) (*sql.Stmt, error)
		QueryRow(query string, args ...interface{}) *sql.Row
	}
)

var registeredDialects map[string]Dialect = make(map[string]Dialect)

func New(database *sql.DB, dialect Dialect) *Hood {
	hood := &Hood{
		Db:      database,
		Dialect: dialect,
		qo:      database,
	}
	hood.Reset()

	return hood
}<commit_msg>removed todo<commit_after>package hood

import (
	"database/sql"
	"errors"
	"fmt"
	"reflect"
	"strconv"
	"strings"
	"time"
)

type (
	Hood struct {
		Db        *sql.DB
		Dialect   Dialect
		Log       bool
		qo        qo // the query object
		selector  string
		where     string
		args      []interface{}
		markerPos int
		limit     string
		offset    string
		orderBy   string
		joins     []string
		groupBy   string
		having    string
	}
	Id      int64
	VarChar string
	Model   struct {
		Pk     *Field
		Table  string
		Fields []*Field
	}
	Field struct {
		Name    string      // column name
		Value   interface{} // value
		IsPk    bool        // primary key
		NotNull bool        // null allowed
		Default string      // default value
		Size    int         // size (e.g. for varchar)
	}
	qo interface {
		Prepare(query string) (*sql.Stmt, error)
		QueryRow(query string, args ...interface{}) *sql.Row
	}
)

var registeredDialects map[string]Dialect = make(map[string]Dialect)

func New(database *sql.DB, dialect Dialect) *Hood {
	hood := &Hood{
		Db:      database,
		Dialect: dialect,
		qo:      database,
	}
	hood.Reset()

	return hood
}
{'fraction_non_alphanumeric': 0.09427464485578993, 'fraction_numerical': 0.0017219113215669393, 'mean_word_length': 2.179206566347469, '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': '2512925', 'n_tokens_mistral': 867, 'n_tokens_neox': 804, 'n_words': 237}