<commit_before>package store_test

import (
	tt "testing"

	"github.com/synapse-garden/sg-proto/store"
	"github.com/synapse-garden/sg-proto/testing"

	"github.com/boltdb/bolt"
	"github.com/pkg/errors"
	. "gopkg.in/check.v1"
)

func Test(t *tt.T) { TestingT(t) }

type StoreSuite struct {
	*bolt.DB

	tmpDir string
}

var _ = Suite(&StoreSuite{})

func (s *StoreSuite) SetUpTest(c *C) {
	var err error
	s.DB, s.tmpDir, err = testing.TempDB("store")
	c.Assert(err, IsNil)
}

func (s *StoreSuite) TearDownTest(c *C) {
	c.Assert(testing.CleanupDB(s.DB), IsNil)
}

func (s *StoreSuite) TestPrep(c *C) {
	// Wrap
	// Migrate
	// SetupBuckets
	// Put "version"
}
<commit_msg>Remove tmp testing dir after store tests<commit_after>package store_test

import (
	"os"
	tt "testing"

	"github.com/synapse-garden/sg-proto/store"
	"github.com/synapse-garden/sg-proto/testing"

	"github.com/boltdb/bolt"
	"github.com/pkg/errors"
	. "gopkg.in/check.v1"
)

func Test(t *tt.T) { TestingT(t) }

type StoreSuite struct {
	*bolt.DB

	tmpDir string
}

var _ = Suite(&StoreSuite{})

func (s *StoreSuite) SetUpTest(c *C) {
	var err error
	s.DB, s.tmpDir, err = testing.TempDB("store")
	c.Assert(err, IsNil)
}

func (s *StoreSuite) TearDownTest(c *C) {
	c.Assert(testing.CleanupDB(s.DB), IsNil)
	c.Assert(os.Remove(s.tmpDir), IsNil)
}

func (s *StoreSuite) TestPrep(c *C) {
	// Wrap
	// Migrate
	// SetupBuckets
	// Put "version"
}

{'fraction_non_alphanumeric': 0.1677327647476901, 'fraction_numerical': 0.0014214641080312722, 'mean_word_length': 3.838487972508591, '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': '2929157', 'n_tokens_mistral': 624, 'n_tokens_neox': 605, 'n_words': 115}