<commit_before>package main

// NOTE: THIS FILE WAS PRODUCED BY THE
// GOMA CODE GENERATION TOOL (github.com/kyokomi/goma)
// DO NOT EDIT

import (
	"os"

	_ "github.com/go-sql-driver/mysql"

	"github.com/kyokomi/goma/example/dao"

	"github.com/kyokomi/goma/goma"
)

// Goma goma.Goma utils.
type Goma struct {
	*goma.Goma

	// dao
	GOMANUMERICTYPETEST *dao.GOMANUMERICTYPETESTDao
	Quest               *dao.QuestDao
	Sample              *dao.SampleDao
}

// NewGoma is goma.Goma wrapper utils.
func NewGoma() (Goma, error) {

	opts := goma.Options{
		Driver:     "mysql",
		UserName:   "admin",
		PassWord:   "password",
		Host:       "localhost",
		Port:       3306,
		DBName:     "test",
		Debug:      true,
		SQLRootDir: "sql",
		DaoRootDir: "dao",
	}

	currentDir, err := os.Getwd()
	if err != nil {
		return Goma{}, err
	}
	opts.CurrentDir = currentDir

	g, err := goma.NewGoma(opts)
	if err != nil {
		return Goma{}, err
	}

	gm := Goma{}
	gm.Goma = g
	gm.GOMANUMERICTYPETEST = dao.GOMANUMERICTYPETEST(g)
	gm.Quest = dao.Quest(g)
	gm.Sample = dao.Sample(g)

	return gm, nil
}<commit_msg>testデータベースを整理<commit_after>package main

// NOTE: THIS FILE WAS PRODUCED BY THE
// GOMA CODE GENERATION TOOL (github.com/kyokomi/goma)
// DO NOT EDIT

import (
	"os"

	_ "github.com/go-sql-driver/mysql"

	"github.com/kyokomi/goma/example/dao"

	"github.com/kyokomi/goma/goma"
)

// Goma goma.Goma utils.
type Goma struct {
	*goma.Goma

	// dao
	Quest  *dao.QuestDao
	Sample *dao.SampleDao
}

// NewGoma is goma.Goma wrapper utils.
func NewGoma() (Goma, error) {

	opts := goma.Options{
		Driver:     "mysql",
		UserName:   "admin",
		PassWord:   "password",
		Host:       "localhost",
		Port:       3306,
		DBName:     "test",
		Debug:      true,
		SQLRootDir: "sql",
		DaoRootDir: "dao",
	}

	currentDir, err := os.Getwd()
	if err != nil {
		return Goma{}, err
	}
	opts.CurrentDir = currentDir

	g, err := goma.NewGoma(opts)
	if err != nil {
		return Goma{}, err
	}

	gm := Goma{}
	gm.Goma = g
	gm.Quest = dao.Quest(g)
	gm.Sample = dao.Sample(g)

	return gm, nil
}
{'fraction_non_alphanumeric': 0.14528668610301262, 'fraction_numerical': 0.003887269193391642, 'mean_word_length': 2.7918968692449355, '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': '6403726', 'n_tokens_mistral': 915, 'n_tokens_neox': 880, 'n_words': 192}