<commit_before>package pg

import (
	"log"
	"os"
	"strconv"

	"gopkg.in/pg.v4/internal"
	"gopkg.in/pg.v4/orm"
	"gopkg.in/pg.v4/types"
)

// Discard is used with Query and QueryOne to discard rows.
var Discard orm.Discard

// Scan returns ColumnScanner that copies the columns in the
// row into the values.
func Scan(values ...interface{}) orm.ColumnScanner {
	return orm.Scan(values...)
}

// Q returns a ValueAppender that represents safe SQL query.
func Q(query string, params ...interface{}) types.Q {
	return orm.Q(query, params...)
}

// F returns a ValueAppender that represents SQL identifier,
// e.g. table or column name.
func F(field string, params ...interface{}) types.F {
	return orm.F(field, params...)
}

// Array returns an Array type that represents PostgreSQL array of any type.
func Array(v interface{}) *types.Array {
	return types.NewArray(v)
}

func init() {
	SetLogger(log.New(os.Stderr, "pg: ", log.LstdFlags))
}

func SetLogger(logger *log.Logger) {
	internal.Logger = logger
}

//------------------------------------------------------------------------------

type Strings []string

var _ orm.Model = (*Strings)(nil)
var _ types.ValueAppender = (*Strings)(nil)

func (strings *Strings) NewModel() orm.ColumnScanner {
	return strings<commit_msg>Logging is disabled by default.<commit_after>package pg

import (
	"log"
	"strconv"

	"gopkg.in/pg.v4/internal"
	"gopkg.in/pg.v4/orm"
	"gopkg.in/pg.v4/types"
)

// Discard is used with Query and QueryOne to discard rows.
var Discard orm.Discard

// Scan returns ColumnScanner that copies the columns in the
// row into the values.
func Scan(values ...interface{}) orm.ColumnScanner {
	return orm.Scan(values...)
}

// Q returns a ValueAppender that represents safe SQL query.
func Q(query string, params ...interface{}) types.Q {
	return orm.Q(query, params...)
}

// F returns a ValueAppender that represents SQL identifier,
// e.g. table or column name.
func F(field string, params ...interface{}) types.F {
	return orm.F(field, params...)
}

// Array returns an Array type that represents PostgreSQL array of any type.
func Array(v interface{}) *types.Array {
	return types.NewArray(v)
}

func SetLogger(logger *log.Logger) {
	internal.Logger = logger
}

//------------------------------------------------------------------------------

type Strings []string

var _ orm.Model = (*Strings)(nil)
var _ types.ValueAppender = (*Strings)(nil)

func (strings *Strings) NewModel() orm.ColumnScanner {
	return strings
{'fraction_non_alphanumeric': 0.18807893677003626, 'fraction_numerical': 0.0024164317358034634, 'mean_word_length': 2.8511627906976744, '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': '5402517', 'n_tokens_mistral': 793, 'n_tokens_neox': 784, 'n_words': 247}