<commit_before>package client

import (
	"github.com/michaelorr/goodall/pkg/db"
)

func Run() int {
	conn, err := db.Open()
	if err != nil {
		// TODO log
		return 1
	}
	err = db.Init()
	if err != nil {
		// TODO log
		return 2
	}

	response := make(chan int)
	go GatherMetrics(response)
	// TODO
	// select response
	// return that value
}

func GatherMetrics(killed chan int) {
	// TODO gather metrics
	// store in bolt
	// sleep for one second
}
<commit_msg>need args and return values<commit_after>package client

import (
	"github.com/michaelorr/goodall/pkg/db"
)

func Run() int {
	conn, err := db.Open()
	if err != nil {
		// TODO log
		return 1
	}
	err = db.Init(conn)
	if err != nil {
		// TODO log
		return 2
	}

	response := make(chan int)
	go GatherMetrics(response)
	// TODO
	// select response
	// return that value
	return 0
}

func GatherMetrics(killed chan int) {
	// TODO gather metrics
	// store in bolt
	// sleep for one second
}

{'fraction_non_alphanumeric': 0.12631578947368421, 'fraction_numerical': 0.005263157894736842, 'mean_word_length': 2.71484375, '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': '4466164', 'n_tokens_mistral': 362, 'n_tokens_neox': 344, 'n_words': 108}