<commit_before>package main

import (
	"log"
	"net/http"

	"github.com/rafael84/shortener/config"
	"github.com/rafael84/shortener/handler"
	"github.com/rafael84/shortener/persistence"
	"github.com/rafael84/shortener/service"
)

func main() {
	if config.Data.Redis.Addr != "" {
		service.Storage = persistence.NewRedis(
			config.Data.Redis.Addr,
			config.Data.Redis.Password,
			config.Data.Redis.DB,
		)
	}

	http.HandleFunc("/create", handler.Create)
	http.HandleFunc("/a/", handler.Recover)

	log.Println("server is running", config.Data.Server.Addr)
	log.Fatal(http.ListenAndServe(config.Data.Server.Addr, nil))
}<commit_msg>add log<commit_after>package main

import (
	"log"
	"net/http"

	"github.com/rafael84/shortener/config"
	"github.com/rafael84/shortener/handler"
	"github.com/rafael84/shortener/persistence"
	"github.com/rafael84/shortener/service"
)

func main() {
	if config.Data.Redis.Addr != "" {
		log.Println("configuring redis persistence", config.Data.Redis.Addr)
		service.Storage = persistence.NewRedis(
			config.Data.Redis.Addr,
			config.Data.Redis.Password,
			config.Data.Redis.DB,
		)
	}

	http.HandleFunc("/create", handler.Create)
	http.HandleFunc("/a/", handler.Recover)

	log.Println("server is running", config.Data.Server.Addr)
	log.Fatal(http.ListenAndServe(config.Data.Server.Addr, nil))
}
{'fraction_non_alphanumeric': 0.15773584905660376, 'fraction_numerical': 0.012075471698113207, 'mean_word_length': 4.525, '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': '6316570', 'n_tokens_mistral': 530, 'n_tokens_neox': 494, 'n_words': 61}