<commit_before>package zk

import (
	"fmt"
	"time"
)

// Returns {zkHost: outputLines}
func (this *ZkZone) RunZkFourLetterCommand(cmd string) map[string]string {
	servers := this.conf.ZkServers()
	r := make(map[string]string, len(servers))
	for _, server := range servers {
		b, err := zkFourLetterWord(server, cmd, time.Minute)
		if err != nil {
			fmt.Println(err)
		}

		r[server] = string(b)
	}

	return r
}<commit_msg>bad zk host will be in alarm color<commit_after>package zk

import (
	"time"

	"github.com/funkygao/golib/color"
)

// Returns {zkHost: outputLines}
func (this *ZkZone) RunZkFourLetterCommand(cmd string) map[string]string {
	servers := this.conf.ZkServers()
	r := make(map[string]string, len(servers))
	for _, server := range servers {
		b, err := zkFourLetterWord(server, cmd, time.Minute)
		if err != nil {
			color.Red("%s: %v", server, err)
		}

		r[server] = string(b)
	}

	return r
}
{'fraction_non_alphanumeric': 0.15021929824561403, 'fraction_numerical': 0.0, 'mean_word_length': 4.247126436781609, 'pattern_counts': {'":': 0, '<': 3, '<?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': '5574951', 'n_tokens_mistral': 375, 'n_tokens_neox': 351, 'n_words': 82}