<commit_before>package srv

import (
	"log"
	"net"
)

const Version = "0.7.4"

var sing struct {
	Dao			*dao
	Rao			*rao
	UssnMgr		*ussnMgr
	BookMgr		*bookMgr
	TssnMgr		*tssnMgr
}

func Serve(port string) {
	sing.Dao = newDao()
	sing.Rao = newRao()
	sing.UssnMgr = newUssnMgr()
	sing.BookMgr = newBookMgr()
	sing.TssnMgr = newTssnMgr()
	defer sing.Dao.Close()
	go sing.UssnMgr.Loop()
	go sing.BookMgr.Loop()
	go sing.TssnMgr.Loop()

	ln, err := net.Listen("tcp", ":" + port)
	if err != nil {
		log.Fatalln(err)
	} else {
		log.Println("mjpancake-server", Version, "listen", port)
	}

	for {
		conn, err := ln.Accept()

		if err != nil {<commit_msg>bump to 0.7.5<commit_after>package srv

import (
	"log"
	"net"
)

const Version = "0.7.5"

var sing struct {
	Dao			*dao
	Rao			*rao
	UssnMgr		*ussnMgr
	BookMgr		*bookMgr
	TssnMgr		*tssnMgr
}

func Serve(port string) {
	sing.Dao = newDao()
	sing.Rao = newRao()
	sing.UssnMgr = newUssnMgr()
	sing.BookMgr = newBookMgr()
	sing.TssnMgr = newTssnMgr()
	defer sing.Dao.Close()
	go sing.UssnMgr.Loop()
	go sing.BookMgr.Loop()
	go sing.TssnMgr.Loop()

	ln, err := net.Listen("tcp", ":" + port)
	if err != nil {
		log.Fatalln(err)
	} else {
		log.Println("mjpancake-server", Version, "listen", port)
	}

	for {
		conn, err := ln.Accept()

		if err != nil {
{'fraction_non_alphanumeric': 0.16049382716049382, 'fraction_numerical': 0.006944444444444444, 'mean_word_length': 3.3377926421404682, 'pattern_counts': {'":': 2, '<': 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': '1620354', 'n_tokens_mistral': 621, 'n_tokens_neox': 615, 'n_words': 126}