<commit_before>package main

import (
	"io/ioutil"
	"log"
	"net/smtp"
	"strings"
)

func SendBootEmail() {
	content, err := ioutil.ReadFile("tokens.txt")
	ChkErr(err)
	lines := strings.Split(string(content), "\n")

	from := lines[0]
	pwd := lines[1]
	to := lines[2 : len(lines)-1]

	sub := "Subject: TorilMUD reboot/crash:\r\n\r\n"
	body := "Katumi detected a new TorilMUD boot."
	msg := []byte(sub + body)
	server := "smtp.gmail.com"
	tls := ":587"
	log.Printf("Email: %s\n", body)
	auth := smtp.PlainAuth("", from, pwd, server)
	err = smtp.SendMail(server+tls, auth, from, to, msg)
	ChkErr(err)
}<commit_msg>Add comment about tokens<commit_after>package main

import (
	"io/ioutil"
	"log"
	"net/smtp"
	"strings"
)

func SendBootEmail() {
	content, err := ioutil.ReadFile("tokens.txt")
	ChkErr(err)
	lines := strings.Split(string(content), "\n")

	from := lines[0]
	pwd := lines[1]
	to := lines[2 : len(lines)-1] // vim adds a newline at end of file? careful

	sub := "Subject: TorilMUD reboot/crash:\r\n\r\n"
	body := "Katumi detected a new TorilMUD boot."
	msg := []byte(sub + body)
	server := "smtp.gmail.com"
	tls := ":587"
	log.Printf("Email: %s\n", body)
	auth := smtp.PlainAuth("", from, pwd, server)
	err = smtp.SendMail(server+tls, auth, from, to, msg)
	ChkErr(err)
}
{'fraction_non_alphanumeric': 0.1918559122944401, 'fraction_numerical': 0.01096319498825372, 'mean_word_length': 4.195121951219512, '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': '1927728', 'n_tokens_mistral': 549, 'n_tokens_neox': 535, 'n_words': 124}