<commit_before>package initiate

import (
	"os"
	"path/filepath"
	"strings"

	"github.com/markelog/eclectica/console"
	"github.com/markelog/eclectica/io"
	"github.com/markelog/eclectica/rc"
	"github.com/markelog/eclectica/variables"
)

type Init struct {
	language           string
	plugins            []string
	command            string
	shouldRestartShell bool
	rc                 *rc.Rc
}

func New(language string, plugins []string) *Init {
	init := &Init{
		language: language,
		plugins:  plugins,
		command: `

#eclectica start
export PATH="$(ec path)"
#eclectica end

`,
		shouldRestartShell: false,
		rc:                 nil,
	}

	return init
}<commit_msg>Add quickfix for the $GOROOT variable<commit_after>package initiate

import (
	"os"
	"path/filepath"
	"strings"

	"github.com/markelog/eclectica/console"
	"github.com/markelog/eclectica/io"
	"github.com/markelog/eclectica/rc"
	"github.com/markelog/eclectica/variables"
)

type Init struct {
	language           string
	plugins            []string
	command            string
	shouldRestartShell bool
	rc                 *rc.Rc
}

func New(language string, plugins []string) *Init {
	GOROOT := filepath.Join(variables.Home(), "go", "current/bin")

	init := &Init{
		language: language,
		plugins:  plugins,
		command: `

#eclectica start
export PATH="$(ec path)"
export GOROOT=` + GOROOT + `
#eclectica end

`,
		shouldRestartShell: false,
		rc:                 nil,
	}

	return init
}
{'fraction_non_alphanumeric': 0.1180939226519337, 'fraction_numerical': 0.0, 'mean_word_length': 2.9375, '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': '6918747', 'n_tokens_mistral': 531, 'n_tokens_neox': 507, 'n_words': 110}