<commit_before>package main

import (
	"encoding/json"
	"errors"
	"fmt"
	"io/ioutil"
	"os"
	"os/exec"
	"os/signal"
	"path/filepath"
	"runtime"
	"sort"
	"strconv"
	"strings"
	"syscall"

	"github.com/dickeyxxx/golock"
	"github.com/heroku/heroku-cli/gode"
)

// Plugin represents a javascript plugin
type Plugin struct {
	Name     string     `json:"name"`
	Version  string     `json:"version"`
	Topics   TopicSet   `json:"topics"`
	Topic    *Topic     `json:"topic"`
	Commands CommandSet `json:"commands"`
}

// SetupNode sets up node and npm in ~/.heroku
func SetupNode() {
	gode.SetRootPath(AppDir())
	if !gode.IsSetup() {
		Errf("Setting up node-v%s...", gode.Version)
		ExitIfError(gode.Setup())
		Errln(" done")
	}
}

func updateNode() {
	gode.SetRootPath(AppDir())
	if gode.NeedsUpdate() {
		Errf("Setting up node-v%s...", gode.Version)
		PrintError(gode.Setup())
		Errln("done")<commit_msg>fix update output<commit_after>package main

import (
	"encoding/json"
	"errors"
	"fmt"
	"io/ioutil"
	"os"
	"os/exec"
	"os/signal"
	"path/filepath"
	"runtime"
	"sort"
	"strconv"
	"strings"
	"syscall"

	"github.com/dickeyxxx/golock"
	"github.com/heroku/heroku-cli/gode"
)

// Plugin represents a javascript plugin
type Plugin struct {
	Name     string     `json:"name"`
	Version  string     `json:"version"`
	Topics   TopicSet   `json:"topics"`
	Topic    *Topic     `json:"topic"`
	Commands CommandSet `json:"commands"`
}

// SetupNode sets up node and npm in ~/.heroku
func SetupNode() {
	gode.SetRootPath(AppDir())
	if !gode.IsSetup() {
		Errf("Setting up node-v%s...", gode.Version)
		ExitIfError(gode.Setup())
		Errln(" done")
	}
}

func updateNode() {
	gode.SetRootPath(AppDir())
	if gode.NeedsUpdate() {
		Errf("Setting up node-v%s...", gode.Version)
		PrintError(gode.Setup())
		Errln(" done")
{'fraction_non_alphanumeric': 0.16731734523145567, 'fraction_numerical': 0.0, 'mean_word_length': 3.8225806451612905, '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': '41997', 'n_tokens_mistral': 741, 'n_tokens_neox': 710, 'n_words': 146}