<commit_before>package main

import (
	"log"

	"github.com/drunkenfall/drunkenfall/towerfall"
	"github.com/drunkenfall/drunkenfall/towerfall/migrations"
)

func main() {
	// Instantiate the database
	db, err := towerfall.NewDatabase("production.db")
	if err != nil {
		log.Fatal(err)
	}

	// Apply any applicable migrations
	err = migrations.Migrate(db.DB)
	if err != nil {
		log.Fatal(err)
	}

	// Create the server instance
	s := towerfall.NewServer(db)

	// Load tournaments from the database
	err = db.LoadTournaments()
	if err != nil {
		log.Fatal(err)
	}

	// Set up the paths and the websocket listeners
	s.RegisterHandlersAndListeners()

	Kekkonen() // Kekkonen

	// Actually start serving
	if err := s.Serve(); err != nil {
		log.Fatal(err)
	}
}
<commit_msg>Read database name from env<commit_after>package main

import (
	"log"
	"os"

	"github.com/drunkenfall/drunkenfall/towerfall"
	"github.com/drunkenfall/drunkenfall/towerfall/migrations"
)

func main() {
	// Instantiate the database
	db, err := towerfall.NewDatabase(os.Getenv("DF_DB_PATH"))
	if err != nil {
		log.Fatal(err)
	}

	// Apply any applicable migrations
	err = migrations.Migrate(db.DB)
	if err != nil {
		log.Fatal(err)
	}

	// Create the server instance
	s := towerfall.NewServer(db)

	// Load tournaments from the database
	err = db.LoadTournaments()
	if err != nil {
		log.Fatal(err)
	}

	// Set up the paths and the websocket listeners
	s.RegisterHandlersAndListeners()

	Kekkonen() // Kekkonen

	// Actually start serving
	if err := s.Serve(); err != nil {
		log.Fatal(err)
	}
}

{'fraction_non_alphanumeric': 0.13060179257362356, 'fraction_numerical': 0.0, 'mean_word_length': 3.556851311953353, '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': '4051765', 'n_tokens_mistral': 603, 'n_tokens_neox': 566, 'n_words': 135}