<commit_before>package install

import (
	"bytes"
	"fmt"
	"io/ioutil"
	"os"
	"os/exec"
	"path/filepath"
	"regexp"
	"sort"
	"strings"

	"github.com/cockroachdb/roachprod/config"
	"github.com/cockroachdb/roachprod/ssh"
	"github.com/hashicorp/go-version"
	"github.com/pkg/errors"
)

var StartOpts struct {
	Sequential bool
}

type Cockroach struct{}

func cockroachNodeBinary(c *SyncedCluster, i int) string {
	if !c.IsLocal() || filepath.IsAbs(config.Binary) {
		return config.Binary
	}

	path := filepath.Join(fmt.Sprintf(os.ExpandEnv("${HOME}/local/%d"), i), config.Binary)
	if _, err := os.Stat(path); err == nil {<commit_msg>Fix specification of remote cockroach binary<commit_after>package install

import (
	"bytes"
	"fmt"
	"io/ioutil"
	"os"
	"os/exec"
	"path/filepath"
	"regexp"
	"sort"
	"strings"

	"github.com/cockroachdb/roachprod/config"
	"github.com/cockroachdb/roachprod/ssh"
	"github.com/hashicorp/go-version"
	"github.com/pkg/errors"
)

var StartOpts struct {
	Sequential bool
}

type Cockroach struct{}

func cockroachNodeBinary(c *SyncedCluster, i int) string {
	if filepath.IsAbs(config.Binary) {
		return config.Binary
	}
	if !c.IsLocal() {
		return "./" + config.Binary
	}

	path := filepath.Join(fmt.Sprintf(os.ExpandEnv("${HOME}/local/%d"), i), config.Binary)
	if _, err := os.Stat(path); err == nil {
{'fraction_non_alphanumeric': 0.16048448145344435, 'fraction_numerical': 0.0, 'mean_word_length': 4.485477178423237, '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': '2316893', 'n_tokens_mistral': 543, 'n_tokens_neox': 528, 'n_words': 96}