<commit_before>package cli

import (
	"fmt"
	"log"
	"strconv"

	"github.com/spf13/cobra"
)

var importModelHelp = `
model [clusterId] [modelName]
Import a model from an H2O cluster into steam
Examples:

	$ steam import model 42 model3
`

func importModel(c *context) *cobra.Command {
	cmd := newCmd(c, importModelHelp, func(c *context, args []string) {
		if len(args) != 2 {
			log.Fatalln("Incorrect number of arguments. See 'steam help import model'.")
		}

		clusterId, err := strconv.ParseInt(args[0], 10, 64)
		if err != nil {
			log.Fatalf("Incorrect value for clusterId: %s: %v", args[0], err)
		}
		modelName := args[1]

		if _, err := c.remote.GetModelFromCluster(clusterId, modelName); err != nil {
			log.Fatalln(err)
		}

		fmt.Println("Retireved model:", modelName)
	})

	return cmd
}<commit_msg>STEAM-154 Rename GetModelFromCluster -> ImportModelFromCluster<commit_after>package cli

import (
	"fmt"
	"log"
	"strconv"

	"github.com/spf13/cobra"
)

var importModelHelp = `
model [clusterId] [modelName]
Import a model from an H2O cluster into steam
Examples:

	$ steam import model 42 model3
`

func importModel(c *context) *cobra.Command {
	cmd := newCmd(c, importModelHelp, func(c *context, args []string) {
		if len(args) != 2 {
			log.Fatalln("Incorrect number of arguments. See 'steam help import model'.")
		}

		clusterId, err := strconv.ParseInt(args[0], 10, 64)
		if err != nil {
			log.Fatalf("Incorrect value for clusterId: %s: %v", args[0], err)
		}
		modelName := args[1]

		if _, err := c.remote.ImportModelFromCluster(clusterId, modelName); err != nil {
			log.Fatalln(err)
		}

		fmt.Println("Retireved model:", modelName)
	})

	return cmd
}
{'fraction_non_alphanumeric': 0.13952095808383233, 'fraction_numerical': 0.018562874251497007, 'mean_word_length': 4.110091743119266, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '6157608', 'n_tokens_mistral': 670, 'n_tokens_neox': 607, 'n_words': 163}