<commit_before>package main

import (
	"github.com/mitchellh/cli"
	"github.com/pims/spark/command"
	"os"
)

// Commands is the mapping of all the available Spark commands.
var Commands map[string]cli.CommandFactory

func init() {
	ui := &cli.ColoredUi{
		InfoColor:  cli.UiColorGreen,
		ErrorColor: cli.UiColorRed,
		Ui:         &cli.BasicUi{Writer: os.Stdout},
	}

	Commands = map[string]cli.CommandFactory{
		"login": func() (cli.Command, error) {
			return &command.LoginCommand{
				Ui: ui,
			}, nil
		},

		"rename": func() (cli.Command, error) {
			return &command.RenameCommand{
				Ui: ui,
			}, nil
		},

		"devices": func() (cli.Command, error) {
			return &command.DevicesCommand{
				Ui: ui,
			}, nil
		},

		"claim": func() (cli.Command, error) {
			return &command.ClaimCommand{
				Ui: ui,
			}, nil
		},
<commit_msg>Fixing previous commit. Missing changes to Ui<commit_after>package main

import (
	"github.com/mitchellh/cli"
	"github.com/pims/spark/command"
	"os"
)

// Commands is the mapping of all the available Spark commands.
var Commands map[string]cli.CommandFactory

func init() {
	ui := &cli.ColoredUi{
		InfoColor:  cli.UiColorGreen,
		ErrorColor: cli.UiColorRed,
		Ui: &cli.BasicUi{
			Writer: os.Stdout,
			Reader: os.Stdin,
		},
	}

	Commands = map[string]cli.CommandFactory{
		"login": func() (cli.Command, error) {
			return &command.LoginCommand{
				Ui: ui,
			}, nil
		},

		"rename": func() (cli.Command, error) {
			return &command.RenameCommand{
				Ui: ui,
			}, nil
		},

		"devices": func() (cli.Command, error) {
			return &command.DevicesCommand{
				Ui: ui,
			}, nil
		},

		"claim": func() (cli.Command, error) {
			return &command.ClaimCommand{
				Ui: ui,
			}, nil
		},

{'fraction_non_alphanumeric': 0.15165601394538059, 'fraction_numerical': 0.0, 'mean_word_length': 3.251851851851852, 'pattern_counts': {'":': 8, '<': 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': '1138679', 'n_tokens_mistral': 723, 'n_tokens_neox': 628, 'n_words': 145}