<commit_before>package main

import (
	"log"

	termbox "github.com/nsf/termbox-go"
	tet "github.com/zephyyrr/thegotribe"
)

const (
	leftMarker  = termbox.ColorGreen
	rightMarker = termbox.ColorRed
)

func main() {
	termbox.Init()
	defer termbox.Close()

	et, err := tet.Create()

	if err != nil {
		log.Println(err)
		return
	}

	defer et.Close()
	if hb, err := et.Get("heartbeatinterval"); err == nil {
		log.Printf("Heartbeat Interval: %d", hb.(float64))
	}
	termbox.Clear(0, termbox.ColorWhite) //Set bg to white.
	et.OnGaze = func(frame tet.Frame) {
		log.Println(frame)
		if frame.TrackingGaze() {
			termbox.Clear(0, termbox.ColorWhite)
			drawPoint(frame.LeftEye.Average, leftMarker)
			drawPoint(frame.RightEye.Average, rightMarker)
			termbox.Flush()
		}
	}

	done := make(chan struct{})

	go func() {
		for {
			event := termbox.PollEvent()
			if event.Type == termbox.EventKey && event.Key == termbox.KeyEsc {
				close(done)
			}
		}
	}()
	<-done
	log.Println("Shutting down.")
}

func drawPoint(point tet.Point2D, attributes termbox.Attribute) {
	sizeX, sizeY := termbox.Size()
	x, y := int(float64(sizeX)*(float64(point.X)/float64(1366))),<commit_msg>And the actual, updated example.<commit_after>package main

import (
	termbox "github.com/nsf/termbox-go"
	tet "github.com/zephyyrr/thegotribe"
	"log"
)

const (
	leftMarker  = termbox.ColorGreen
	rightMarker = termbox.ColorRed
)

func main() {
	termbox.Init()
	defer termbox.Close()

	et, err := tet.Create()

	if err != nil {
		log.Println(err)
		return
	}

	defer et.Close()
	if hb, err := et.Get("heartbeatinterval"); err == nil {
		log.Printf("Heartbeat Interval: %d", hb.(float64))
	}
	termbox.Clear(0, termbox.ColorWhite) //Set bg to white.
	go func() {
		for frame := range et.Frames {
			if frame.TrackingGaze() {
				termbox.Clear(0, termbox.ColorWhite)
				drawPoint(frame.LeftEye.Average, leftMarker)
				drawPoint(frame.RightEye.Average, rightMarker)
				termbox.Flush()
			}
		}
	}()

	done := make(chan struct{})

	go func() {
		for {
			event := termbox.PollEvent()
			if event.Type == termbox.EventKey && event.Key == termbox.KeyEsc {
				close(done)
			}
		}
	}()
	<-done
	log.Println("Shutting down.")
}

func drawPoint(point tet.Point2D, attributes termbox.Attribute) {
	sizeX, sizeY := termbox.Size()
	x, y := int(float64(sizeX)*(float64(point.X)/float64(1366))),
{'fraction_non_alphanumeric': 0.15872340425531914, 'fraction_numerical': 0.01276595744680851, 'mean_word_length': 3.7494949494949497, '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': '3812874', 'n_tokens_mistral': 1005, 'n_tokens_neox': 898, 'n_words': 175}