<commit_before>package main

import (
	"log"
	"net/http"

	"github.com/oursky/ourd/auth"
	"github.com/oursky/ourd/handler"
	_ "github.com/oursky/ourd/oddb/fs"
	"github.com/oursky/ourd/router"
)

func main() {
	tokenStore := auth.FileStore("data/token")

	authenticator := handler.Authentication{
		TokenStore: tokenStore,
	}

	recordService := handler.RecordService{
		TokenStore: tokenStore,
	}

	r := router.NewRouter()
	r.Map("", handler.HomeHandler)
	r.Map("auth:signup", authenticator.SignupHandler())
	r.Map("auth:login", authenticator.LoginHandler())
	r.Map("record:fetch", recordService.RecordFetchHandler())
	r.Map("record:query", recordService.RecordQueryHandler())
	r.Map("record:save", recordService.RecordSaveHandler())
	r.Map("record:delete", recordService.RecordDeleteHandler())
	r.Preprocess(router.CheckAuth)
	r.Preprocess(router.AssignDBConn)
	log.Println("Listening...")
	http.ListenAndServe(":3000", r)
}<commit_msg>Remove temporarily the CheckAuth Handler, #6<commit_after>package main

import (
	"log"
	"net/http"

	"github.com/oursky/ourd/auth"
	"github.com/oursky/ourd/handler"
	_ "github.com/oursky/ourd/oddb/fs"
	"github.com/oursky/ourd/router"
)

func main() {
	tokenStore := auth.FileStore("data/token")

	authenticator := handler.Authentication{
		TokenStore: tokenStore,
	}

	recordService := handler.RecordService{
		TokenStore: tokenStore,
	}

	r := router.NewRouter()
	r.Map("", handler.HomeHandler)
	r.Map("auth:signup", authenticator.SignupHandler())
	r.Map("auth:login", authenticator.LoginHandler())
	r.Map("record:fetch", recordService.RecordFetchHandler())
	r.Map("record:query", recordService.RecordQueryHandler())
	r.Map("record:save", recordService.RecordSaveHandler())
	r.Map("record:delete", recordService.RecordDeleteHandler())
	r.Preprocess(router.AssignDBConn)
	log.Println("Listening...")
	http.ListenAndServe(":3000", r)
}
{'fraction_non_alphanumeric': 0.16568679850347406, 'fraction_numerical': 0.004810261892036344, 'mean_word_length': 6.090909090909091, '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': '1097149', 'n_tokens_mistral': 674, 'n_tokens_neox': 651, 'n_words': 88}