<commit_before>package main

import (
	"fmt"
	"github.com/zetamatta/nyagos/dos"
)

func main() {
	indent := 1
	var callback func(*dos.NetResource) bool

	callback = func(node *dos.NetResource) bool {
		fmt.Printf("%*s%s\n", indent*2, "", node.RemoteName())
		indent++
		node.Enum(callback)
		indent--
		return true
	}<commit_msg>Add benchmark code on dos/netest<commit_after>package main

import (
	"fmt"
	"time"

	"github.com/zetamatta/nyagos/dos"
)

func main() {
	indent := 1
	var callback func(*dos.NetResource) bool

	callback = func(node *dos.NetResource) bool {
		name := node.RemoteName()
		now := time.Now()
		fmt.Printf("%02d:%02d:%02d %*s%s\n",
			now.Hour(),
			now.Minute(),
			now.Second(),
			indent*2,
			"",
			name)
		if len(name) <= 0 || name[0] != '\\' {
			indent++
			node.Enum(callback)
			indent--
		}
		return true
	}
{'fraction_non_alphanumeric': 0.17933491686460806, 'fraction_numerical': 0.014251781472684086, 'mean_word_length': 3.4368421052631577, 'pattern_counts': {'":': 0, '<': 4, '<?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': '6842506', 'n_tokens_mistral': 374, 'n_tokens_neox': 329, 'n_words': 67}