<commit_before>package testutils

import (
	"golang.org/x/net/context"
	"google.golang.org/appengine"
	"google.golang.org/appengine/aetest"
)

type T struct {
	inst aetest.Instance
}

func (t *T) GetContext() context.Context {
	inst := t.GetInstance()
	r, err := inst.NewRequest("GET", "/", nil)
	if err != nil {
		inst.Close()
		return nil
	}
	return appengine.NewContext(r)
}

func (t *T) GetInstance() aetest.Instance {
	if t.inst == nil {
		t.inst, _ = aetest.NewInstance(nil)
	}

	return t.inst
}

func (t *T) Close() {
	if t.inst != nil {
		t.inst.Close()
	}
}
<commit_msg>make the GetInstance method private<commit_after>package testutils

import (
	"golang.org/x/net/context"
	"google.golang.org/appengine"
	"google.golang.org/appengine/aetest"
)

type T struct {
	inst aetest.Instance
}

func (t *T) GetContext() context.Context {
	inst := t.getInstance()
	r, err := inst.NewRequest("GET", "/", nil)
	if err != nil {
		inst.Close()
		return nil
	}
	return appengine.NewContext(r)
}

func (t *T) getInstance() aetest.Instance {
	if t.inst == nil {
		t.inst, _ = aetest.NewInstance(nil)
	}

	return t.inst
}

func (t *T) Close() {
	if t.inst != nil {
		t.inst.Close()
	}
}

{'fraction_non_alphanumeric': 0.16440677966101694, 'fraction_numerical': 0.0, 'mean_word_length': 3.524904214559387, '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': '3908707', 'n_tokens_mistral': 499, 'n_tokens_neox': 476, 'n_words': 104}