<commit_before>package main

import (
	"flag"
	"fmt"
	"github.com/mindera/version-code-service/vccounter"
	"log"
	"net/http"
)

const (
	mgoDatabaseName = "versionCodesDB"
)

func main() {

	serverPortPtr := flag.Int("port", 8080, "Service port number to listen for requests")
	flag.Parse()

	avcDataStore := vccounter.AppVersionCodeMGODataStore{}
	avcDataStore.OpenConnection(fmt.Sprintf("localhost/%s", mgoDatabaseName))
	defer avcDataStore.CloseConnection()

	vc := vccounter.VersionCodeService{&avcDataStore}
	vc.Register()

	log.Fatal(http.ListenAndServe(fmt.Sprintf(":%d", *serverPortPtr), nil))
}
<commit_msg>Removed fatal log errors from being sent to the client<commit_after>package main

import (
	"flag"
	"fmt"
	"github.com/mindera/version-code-service/vccounter"
	"net/http"
)

const (
	mgoDatabaseName = "versionCodesDB"
)

func main() {

	serverPortPtr := flag.Int("port", 8080, "Service port number to listen for requests")
	flag.Parse()

	avcDataStore := vccounter.AppVersionCodeMGODataStore{}
	avcDataStore.OpenConnection(fmt.Sprintf("localhost/%s", mgoDatabaseName))
	defer avcDataStore.CloseConnection()

	vc := vccounter.VersionCodeService{&avcDataStore}
	vc.Register()

	http.ListenAndServe(fmt.Sprintf(":%d", *serverPortPtr), nil)
}

{'fraction_non_alphanumeric': 0.13784860557768924, 'fraction_numerical': 0.006374501992031873, 'mean_word_length': 6.016759776536313, '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': '1123969', 'n_tokens_mistral': 455, 'n_tokens_neox': 445, 'n_words': 80}