<commit_before>package main

import (
	"container/ring"
	"log"
	"os"
	"os/signal"
	"syscall"
	"time"
)

func main() {
	ring := ring.New(10)
	current := &ring

	ticker := time.NewTicker(10 * time.Second)
	go func() {
		for _ = range ticker.C {
			log.Println("ping google.com -c 5")
			res, err := ping("google.com", 5)
			if err != nil {
				log.Printf("Error from ping: %v\n", err)
			} else {
				ring.Value = res
				ring = ring.Next()
				log.Printf("Time: %v\n", res.Time)
				log.Printf("Min: %f ms\n", res.Min)
				log.Printf("Avg: %f ms\n", res.Avg)
				log.Printf("Max: %f ms\n", res.Max)
				log.Printf("Mdev: %f ms\n", res.Mdev)
			}
		}
	}()

	startServer(current)

	ch := make(chan os.Signal)
	signal.Notify(ch, syscall.SIGINT, syscall.SIGTERM)
	log.Printf("Received signal: %v\n", <-ch)
	log.Println("Shutting down")
	ticker.Stop()
}
<commit_msg>Less output<commit_after>package main

import (
	"container/ring"
	"log"
	"os"
	"os/signal"
	"syscall"
	"time"
)

func main() {
	ring := ring.New(10)
	current := &ring

	ticker := time.NewTicker(10 * time.Second)
	go func() {
		for _ = range ticker.C {
			log.Println("ping google.com -c 5")
			res, err := ping("google.com", 5)
			if err != nil {
				log.Printf("Error from ping: %v\n", err)
			} else {
				ring.Value = res
				ring = ring.Next()
			}
		}
	}()

	startServer(current)

	ch := make(chan os.Signal)
	signal.Notify(ch, syscall.SIGINT, syscall.SIGTERM)
	log.Printf("Received signal: %v\n", <-ch)
	log.Println("Shutting down")
	ticker.Stop()
}

{'fraction_non_alphanumeric': 0.1885299934080422, 'fraction_numerical': 0.007910349373764008, 'mean_word_length': 3.1027027027027025, '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': '427301', 'n_tokens_mistral': 714, 'n_tokens_neox': 631, 'n_words': 136}