<commit_before>package main

import (
	"fmt"
	"log"
	"os"
	"time"

	"github.com/jasonlvhit/gocron"
)

func main() {
	scheduler := gocron.NewScheduler()
	scheduler.Every(1).Day().At("00:00").Do(runSchedulerTask, nil)
	<-scheduler.Start()
}

func runSchedulerTask() {
	archive, err := buildArchive(os.Getenv("TOGLACIER_PATH"))
	if err != nil {
		log.Fatal(err)
	}
	defer archive.Close()<commit_msg>Remove temporary tarball after using it<commit_after>package main

import (
	"fmt"
	"log"
	"os"
	"time"

	"github.com/jasonlvhit/gocron"
)

func main() {
	scheduler := gocron.NewScheduler()
	scheduler.Every(1).Day().At("00:00").Do(runSchedulerTask, nil)
	<-scheduler.Start()
}

func runSchedulerTask() {
	archive, err := buildArchive(os.Getenv("TOGLACIER_PATH"))
	if err != nil {
		log.Fatal(err)
	}
	defer func() {
		archive.Close()
		// remove the temporary tarball
		os.Remove(archive.Name())
	}()
{'fraction_non_alphanumeric': 0.17410714285714285, 'fraction_numerical': 0.011160714285714286, 'mean_word_length': 4.677215189873418, 'pattern_counts': {'":': 0, '<': 5, '<?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': '1591353', 'n_tokens_mistral': 377, 'n_tokens_neox': 357, 'n_words': 62}