<commit_before>package main

import (
	"encoding/json"
	"flag"
	"fmt"
	"html/template"
	"net/http"
	"os"
)

var (
	configFile = "leedsgeeks.json"
	port       = flag.String("port", "5000", "http port")
	templates  = template.Must(template.ParseGlob("templates/*.html"))
)

type Config struct {
	Maintainer    string
	RepositoryURL string
	Groups        []Group
}

type Group struct {
	Name        string
	Description string
	Schedule    string
	Links       []Link
}

type Link struct {
	Label    string
	URL      string
	LinkText string
}

func main() {
	flag.Parse()
	http.HandleFunc("/", index)
	http.Handle("/_/", http.StripPrefix("/_/", http.FileServer(http.Dir("./static/"))))
	http.ListenAndServe(":"+*port, nil)<commit_msg>Move the port flag to main().<commit_after>package main

import (
	"encoding/json"
	"flag"
	"fmt"
	"html/template"
	"net/http"
	"os"
)

var (
	configFile = "leedsgeeks.json"
	templates  = template.Must(template.ParseGlob("templates/*.html"))
)

type Config struct {
	Maintainer    string
	RepositoryURL string
	Groups        []Group
}

type Group struct {
	Name        string
	Description string
	Schedule    string
	Links       []Link
}

type Link struct {
	Label    string
	URL      string
	LinkText string
}

func main() {
	port := flag.String("port", "5000", "http port")
	flag.Parse()

	http.HandleFunc("/", index)
	http.Handle("/_/", http.StripPrefix("/_/", http.FileServer(http.Dir("./static/"))))
	http.ListenAndServe(":"+*port, nil)
{'fraction_non_alphanumeric': 0.1510204081632653, 'fraction_numerical': 0.005442176870748299, 'mean_word_length': 3.430722891566265, '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': '1592430', 'n_tokens_mistral': 523, 'n_tokens_neox': 516, 'n_words': 120}