<commit_before>package main

import cat "../"
import "runtime"

func main(){
	runtime.GOMAXPROCS(4)
	mycat := cat.Instance()
	_write(mycat)
	chan1 := make(chan int)
	chan1 <- 0
}

func _write(mycat cat.Cat){
	tr := mycat.NewTransaction("System", "Status")
	defer func(){
		tr.AddData("dumpLocked", "false")
		p := recover()
		tr.SetStatus(p)
		tr.Complete()
	}()

	h := mycat.NewHeartbeat("Heartbeat", "192.168.141.131")
	h.Set("Disk", "Happiness", "0.1")
	h.Set("Disk", "Tiredness", "0.9")
	//h.Set("Environment", "PM2.5", "142.0")
	h.SetStatus("0")
	h.Complete()
}<commit_msg>update example<commit_after>package main

import cat "../"
import "runtime"

func main(){
	runtime.GOMAXPROCS(4)
	mycat := cat.Instance()
	_write(mycat)
	chan1 := make(chan int)
	chan1 <- 0
}

func _write(mycat cat.Cat){
	tr := mycat.NewTransaction("System", "Status")
	defer func(){
		tr.AddData("dumpLocked", "false")
		p := recover()
		tr.SetStatus(p)
		tr.Complete()
	}()

	h := mycat.NewHeartbeat("Heartbeat", "192.168.141.131")
	h.Set("System", "Total", "0.9")
	h.Set("System", "I/O Thread", "0.1")
	h.SetStatus("0")
	h.Complete()
}
{'fraction_non_alphanumeric': 0.21863799283154123, 'fraction_numerical': 0.043010752688172046, 'mean_word_length': 4.396135265700483, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '1834832', 'n_tokens_mistral': 493, 'n_tokens_neox': 459, 'n_words': 89}