<commit_before>package integration

// +build integration
import (
	"os/exec"
	"strings"
	"testing"

	"github.com/opentable/sous/ext/docker"
	"github.com/opentable/sous/lib"
	"github.com/opentable/sous/util/docker_registry"
	"github.com/opentable/sous/util/shell"
	"github.com/stretchr/testify/suite"
)

type buildingTestSuite struct {
	suite.Suite
	imagesBefore []string
}

func TestBuilding(t *testing.T) {
	suite.Run(t, new(buildingTestSuite))
}

func (suite *buildingTestSuite) SetupTest() {
	imagesBytes, err := exec.Command("docker", "images").Output()
	suite.Require().NoError(err)
	suite.imagesBefore = strings.Split(string(imagesBytes), "\n")
}

func (suite *buildingTestSuite) TeardownTest() {
	imagesBytes, err := exec.Command("docker", "images").Output()<commit_msg>Marking building_test as +integration<commit_after>// +build integration

package integration

import (
	"os/exec"
	"strings"
	"testing"

	"github.com/opentable/sous/ext/docker"
	"github.com/opentable/sous/lib"
	"github.com/opentable/sous/util/docker_registry"
	"github.com/opentable/sous/util/shell"
	"github.com/stretchr/testify/suite"
)

type buildingTestSuite struct {
	suite.Suite
	imagesBefore []string
}

func TestBuilding(t *testing.T) {
	suite.Run(t, new(buildingTestSuite))
}

func (suite *buildingTestSuite) SetupTest() {
	imagesBytes, err := exec.Command("docker", "images").Output()
	suite.Require().NoError(err)
	suite.imagesBefore = strings.Split(string(imagesBytes), "\n")
}

func (suite *buildingTestSuite) TeardownTest() {
	imagesBytes, err := exec.Command("docker", "images").Output()
{'fraction_non_alphanumeric': 0.1562302340290955, 'fraction_numerical': 0.0, 'mean_word_length': 5.731914893617021, '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': '2985242', 'n_tokens_mistral': 568, 'n_tokens_neox': 556, 'n_words': 91}