<commit_before>package main

import (
	"fmt"
	"os"
	"text/tabwriter"

	"github.com/codegangsta/cli"
)

var infoCommand = cli.Command{
	Name:   "info",
	Usage:  "show cluster info",
	Action: infoAction,
}

func infoAction(c *cli.Context) {
	m := NewManager(c.GlobalString("host"))
	info, err := m.Info()
	if err != nil {
		logger.Fatalf("error getting cluster info: %s", err)
	}
	w := tabwriter.NewWriter(os.Stdout, 0, 8, 1, '\t', 0)
	fmt.Fprintln(w, "Cpus\tMemory\tContainers\tImages\tEngines")
	fmt.Fprintf(w, "%.2f\t%.2f\t%d\t%d\t%d\n", info.Cpus, info.Memory, info.ContainerCount, info.ImageCount, info.EngineCount)
	w.Flush()
}<commit_msg>updated info formatting<commit_after>package main

import (
	"fmt"
	"os"
	"text/tabwriter"

	"github.com/codegangsta/cli"
)

var infoCommand = cli.Command{
	Name:   "info",
	Usage:  "show cluster info",
	Action: infoAction,
}

func infoAction(c *cli.Context) {
	m := NewManager(c.GlobalString("host"))
	info, err := m.Info()
	if err != nil {
		logger.Fatalf("error getting cluster info: %s", err)
	}
	w := tabwriter.NewWriter(os.Stdout, 0, 8, 1, '\t', 0)
	fmt.Fprintf(w, "Cpus: %.2f\n", info.Cpus)
	fmt.Fprintf(w, "Memory: %.2f\n", info.Memory)
	fmt.Fprintf(w, "Containers: %d\n", info.ContainerCount)
	fmt.Fprintf(w, "Images: %d\n", info.ImageCount)
	fmt.Fprintf(w, "Engines: %d\n", info.EngineCount)
	w.Flush()
}
{'fraction_non_alphanumeric': 0.18938835666912307, 'fraction_numerical': 0.008843036109064112, 'mean_word_length': 4.388888888888889, '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': '4061502', 'n_tokens_mistral': 580, 'n_tokens_neox': 571, 'n_words': 117}