<commit_before>package fixtures

import (
	"fmt"
	"io/ioutil"
	"os"
	"path/filepath"

	"github.com/github/hub/cmd"
)

var pwd string

func init() {
	// need to cache it before all tests run
	pwd, _ = os.Getwd()
}

type TestRepo struct {
	pwd    string
	dir    string
	Remote string
}

func (r *TestRepo) Setup() (err error) {
	r.dir, err = ioutil.TempDir("", "test-repo")
	if err != nil {
		return
	}
	targetPath := filepath.Join(r.dir, "test.git")

	err = r.clone(r.Remote, targetPath)
	if err != nil {<commit_msg>More comments on caching pwd<commit_after>package fixtures

import (
	"fmt"
	"io/ioutil"
	"os"
	"path/filepath"

	"github.com/github/hub/cmd"
)

var pwd string

func init() {
	// need to cache pwd before all tests run
	pwd, _ = os.Getwd()
}

type TestRepo struct {
	pwd    string
	dir    string
	Remote string
}

func (r *TestRepo) Setup() (err error) {
	r.dir, err = ioutil.TempDir("", "test-repo")
	if err != nil {
		return
	}
	targetPath := filepath.Join(r.dir, "test.git")

	err = r.clone(r.Remote, targetPath)
	if err != nil {
{'fraction_non_alphanumeric': 0.14722753346080306, 'fraction_numerical': 0.0, 'mean_word_length': 3.273469387755102, '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': '4293752', 'n_tokens_mistral': 432, 'n_tokens_neox': 426, 'n_words': 114}