<commit_before>// Copyright 2011 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

package types

import (
	"exec"
	"io/ioutil"
	"os"
	"path/filepath"
	"strings"
	"testing"
	"time"
)


var gcName, gcPath string // compiler name and path

func init() {
	// find a compiler
	for _, char := range []string{"5", "6", "8"} {
		var err os.Error
		gcName = char + "g"
		gcPath, err = exec.LookPath(gcName)
		if err == nil {
			return
		}
	}<commit_msg>go/types: fix build: use the right compiler to compile test case<commit_after>// Copyright 2011 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

package types

import (
	"exec"
	"io/ioutil"
	"path/filepath"
	"runtime"
	"strings"
	"testing"
	"time"
)


var gcName, gcPath string // compiler name and path

func init() {
	// determine compiler
	switch runtime.GOARCH {
	case "386":
		gcName = "8g"
	case "amd64":
		gcName = "6g"
	case "arm":
		gcName = "5g"
	default:
		gcName = "unknown-GOARCH-compiler"
		gcPath = gcName
		return
	}
	gcPath, _ = exec.LookPath(gcName)
{'fraction_non_alphanumeric': 0.12113617376775271, 'fraction_numerical': 0.015873015873015872, 'mean_word_length': 3.23321554770318, 'pattern_counts': {'":': 3, '<': 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': '4651481', 'n_tokens_mistral': 457, 'n_tokens_neox': 429, 'n_words': 152}