<commit_before>package main

import (
	"log"
	"net/http"
	"time"
)

type SiteMap []Sitemap
type Sitemap struct {
	Loc        string
	Date       time.Time
	ChangeFreq string
	Priority   float64
}

func (sm Sitemap) LastMod() string {
	if sm.Date.IsZero() {
		return ""
	}
	return sm.Date.Local().Format("2006-02-01")
}

func sitemapHandler(w http.ResponseWriter, r *http.Request) {
	var sm SiteMap
	articles := art.Enabled()
	sm = append(sm, Sitemap{
		Loc:        "http://" + r.Host,
		Priority:   1.0,
		Date:       articles[0].Date,
		ChangeFreq: "daily",
	})
	for _, a := range articles {
		sm = append(sm, Sitemap{
			Loc:        "http://" + r.Host + "/" + a.Slug,
			Priority:   0.8,<commit_msg>Make clear it's a slice<commit_after>package main

import (
	"log"
	"net/http"
	"time"
)

type SiteMap []Sitemap
type Sitemap struct {
	Loc        string
	Date       time.Time
	ChangeFreq string
	Priority   float64
}

func (sm Sitemap) LastMod() string {
	if sm.Date.IsZero() {
		return ""
	}
	return sm.Date.Local().Format("2006-02-01")
}

func sitemapHandler(w http.ResponseWriter, r *http.Request) {
	var sm []Sitemap
	articles := art.Enabled()
	sm = append(sm, Sitemap{
		Loc:        "http://" + r.Host,
		Priority:   1.0,
		Date:       articles[0].Date,
		ChangeFreq: "daily",
	})
	for _, a := range articles {
		sm = append(sm, Sitemap{
			Loc:        "http://" + r.Host + "/" + a.Slug,
			Priority:   0.8,
{'fraction_non_alphanumeric': 0.1536827195467422, 'fraction_numerical': 0.021246458923512748, 'mean_word_length': 2.768, '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': '3649561', 'n_tokens_mistral': 587, 'n_tokens_neox': 549, 'n_words': 133}