<commit_before>package slackboard

import (
	"bytes"
	"fmt"
	"html/template"
	"io"
	"mime"
	"net/http"
	"os"
	"path"
	"path/filepath"
	_ "strings"
)

type Topic struct {
	Tag   SectionTag
	Count uint64
}

func SetupUI() {
	root := ConfSlackboard.UI.Root
	index := fmt.Sprintf("%s/index.html", root)
	if _, err := os.Stat(filepath.Join(root, "index.html")); err != nil {
		LogError.Warn(fmt.Sprintf("%s is not found", index))
		return
	}

	bs, err := Asset("ui/index.html")<commit_msg>minor refactored.<commit_after>package slackboard

import (
	"bytes"
	"fmt"
	"html/template"
	"io"
	"mime"
	"net/http"
	"path"
)

type Topic struct {
	Tag   SectionTag
	Count uint64
}

func SetupUI() {
	root := ConfSlackboard.UI.Root
	index := fmt.Sprintf("%s/index.html", root)

	bs, err := Asset("ui/index.html")
{'fraction_non_alphanumeric': 0.17042606516290726, 'fraction_numerical': 0.005012531328320802, 'mean_word_length': 3.9627329192546585, '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': '5956787', 'n_tokens_mistral': 336, 'n_tokens_neox': 323, 'n_words': 69}