<commit_before>package mysql

import (
	"fmt"
	"github.com/fatih/structs"
	"github.com/aacanakin/qbit"
)

func NewMapper() *Mapper {
	return &Mapper{}
}

type Mapper struct {
}

func (m *Mapper) Convert(model interface{}) *qbit.Table {

	//	fmt.Printf("%s\n", structs.Fields(model))

	for _, f := range structs.Fields(model) {
		fmt.Printf("field name: %s, type: %s, tag: %s;\n", f.Name(), f.Kind(), f.Tag("qbit"))
	}
	//	modelType := reflect.TypeOf(model)
	//	for i := 0; i < modelType.NumField(); i++ {
	//		fmt.Printf("field name: %s\n", modelType.Field(i).Name)
	//		fmt.Printf("field tag: %s\n", string(modelType.Field(i).Tag))
	//	}
	return qbit.NewTable("-", []qbit.Column{}, []qbit.Constraint{})
}<commit_msg>fix compile error in mapper<commit_after>package qbit

import (
	"fmt"
	"github.com/fatih/structs"
)

func NewMapper() *Mapper {
	return &Mapper{}
}

type Mapper struct {
}

func (m *Mapper) Convert(model interface{}) *Table {

	//	fmt.Printf("%s\n", structs.Fields(model))

	for _, f := range structs.Fields(model) {
		fmt.Printf("field name: %s, type: %s, tag: %s;\n", f.Name(), f.Kind(), f.Tag("qbit"))
	}
	//	modelType := reflect.TypeOf(model)
	//	for i := 0; i < modelType.NumField(); i++ {
	//		fmt.Printf("field name: %s\n", modelType.Field(i).Name)
	//		fmt.Printf("field tag: %s\n", string(modelType.Field(i).Tag))
	//	}
	return NewTable("-", []Column{}, []Constraint{})
}
{'fraction_non_alphanumeric': 0.22389127324749641, 'fraction_numerical': 0.001430615164520744, 'mean_word_length': 3.9609929078014185, 'pattern_counts': {'":': 0, '<': 5, '<?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': '5055047', 'n_tokens_mistral': 565, 'n_tokens_neox': 562, 'n_words': 115}