<commit_before>package main

import (
	"encoding/csv"
	"fmt"
	"os"
)

func outputCSV(entries []entry) {
	csvFile, err := os.Create("cs-reboot-info-output.csv")
	if err != nil {
		fmt.Println("Error creating csv file:", err)
		return
	}
	defer csvFile.Close()
	writer := csv.NewWriter(csvFile)
	writer.Write([]string{"generation", "region", "server_uuid", "server_name", "reboot_window_start_UTC", "reboot_window_end_UTC", "reboot_window_start_local", "reboot_window_end_local"})
	for _, e := range entries {
		record := []string{e.GenType, e.Region, e.Server.ID, e.Server.Name, e.WindowStart.String(), e.WindowEnd.String(), e.WindowStart.Local().String(), e.WindowEnd.Local().String()}
		err := writer.Write(record)
		if err != nil {
			fmt.Println("Error writing row to CSV: ", err)
			return
		}
	}
}<commit_msg>tell user csv file name<commit_after>package main

import (
	"encoding/csv"
	"fmt"
	"os"
)

func outputCSV(entries []entry) {
	outputFile := "cs-reboot-info-output.csv"
	csvFile, err := os.Create(outputFile)
	if err != nil {
		fmt.Println("Error creating csv file:", err)
		return
	}
	fmt.Printf("Writing output to %s\n", outputFile)
	defer csvFile.Close()
	writer := csv.NewWriter(csvFile)
	writer.Write([]string{"generation", "region", "server_uuid", "server_name", "reboot_window_start_UTC", "reboot_window_end_UTC", "reboot_window_start_local", "reboot_window_end_local"})
	for _, e := range entries {
		record := []string{e.GenType, e.Region, e.Server.ID, e.Server.Name, e.WindowStart.String(), e.WindowEnd.String(), e.WindowStart.Local().String(), e.WindowEnd.Local().String()}
		err := writer.Write(record)
		if err != nil {
			fmt.Println("Error writing row to CSV: ", err)
			return
		}
	}
}
{'fraction_non_alphanumeric': 0.17036172695449242, 'fraction_numerical': 0.0, 'mean_word_length': 4.975609756097561, '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': '5235185', 'n_tokens_mistral': 646, 'n_tokens_neox': 612, 'n_words': 127}