<commit_before>package main

import (
	"os"
	"os/signal"
	"syscall"

	"github.com/funkygao/gafka/cmd/gk/command"
	"github.com/funkygao/gocli"
)

var commands map[string]cli.CommandFactory

func init() {
	ui := &cli.ColoredUi{
		Ui: &cli.BasicUi{
			Writer:      os.Stdout,
			Reader:      os.Stdin,
			ErrorWriter: os.Stderr,
		},
		InfoColor:  cli.UiColorGreen,
		ErrorColor: cli.UiColorRed,
		WarnColor:  cli.UiColorYellow,
	}
	cmd := os.Args[0]

	commands = map[string]cli.CommandFactory{
		"zones": func() (cli.Command, error) {
			return &command.Zones{
				Ui:  ui,
				Cmd: cmd,
			}, nil
		},

		"lszk": func() (cli.Command, error) {
			return &command.LsZk{
				Ui:  ui,
				Cmd: cmd,
			}, nil
		},

		"zktop": func() (cli.Command, error) {
			return &command.Zktop{
				Ui:  ui,
				Cmd: cmd,
			}, nil
		},

		"host": func() (cli.Command, error) {
			return &command.Host{
				Ui:  ui,
				Cmd: cmd,
			}, nil
		},

		"discover": func() (cli.Command, error) {
			return &command.Discover{
				Ui:  ui,
				Cmd: cmd,
			}, nil
		},

		"checkup": func() (cli.Command, error) {
			return &command.Checkup{
				Ui:  ui,
				Cmd: cmd,
			}, nil
		},

		"lags": func() (cli.Command, error) {
			return &command.Lags{
				Ui:  ui,
				Cmd: cmd,
			}, nil
		},

		"consumers": func() (cli.Command, error) {
			return &command.Consumers{
				Ui:  ui,
				Cmd: cmd,<commit_msg>disable the 'gk host' command<commit_after>package main

import (
	"os"
	"os/signal"
	"syscall"

	"github.com/funkygao/gafka/cmd/gk/command"
	"github.com/funkygao/gocli"
)

var commands map[string]cli.CommandFactory

func init() {
	ui := &cli.ColoredUi{
		Ui: &cli.BasicUi{
			Writer:      os.Stdout,
			Reader:      os.Stdin,
			ErrorWriter: os.Stderr,
		},
		InfoColor:  cli.UiColorGreen,
		ErrorColor: cli.UiColorRed,
		WarnColor:  cli.UiColorYellow,
	}
	cmd := os.Args[0]

	commands = map[string]cli.CommandFactory{
		"zones": func() (cli.Command, error) {
			return &command.Zones{
				Ui:  ui,
				Cmd: cmd,
			}, nil
		},

		"lszk": func() (cli.Command, error) {
			return &command.LsZk{
				Ui:  ui,
				Cmd: cmd,
			}, nil
		},

		"zktop": func() (cli.Command, error) {
			return &command.Zktop{
				Ui:  ui,
				Cmd: cmd,
			}, nil
		},

		"discover": func() (cli.Command, error) {
			return &command.Discover{
				Ui:  ui,
				Cmd: cmd,
			}, nil
		},

		"checkup": func() (cli.Command, error) {
			return &command.Checkup{
				Ui:  ui,
				Cmd: cmd,
			}, nil
		},

		"lags": func() (cli.Command, error) {
			return &command.Lags{
				Ui:  ui,
				Cmd: cmd,
			}, nil
		},

		"consumers": func() (cli.Command, error) {
			return &command.Consumers{
				Ui:  ui,
				Cmd: cmd,
{'fraction_non_alphanumeric': 0.16916729182295573, 'fraction_numerical': 0.0007501875468867217, 'mean_word_length': 2.60893098782138, 'pattern_counts': {'":': 15, '<': 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': '2050937', 'n_tokens_mistral': 1304, 'n_tokens_neox': 1084, 'n_words': 232}