<commit_before>package rdb

import (
	"log"
	"os"
	"testing"
	"time"

	gorethink "gopkg.in/dancannon/gorethink.v2"

	"github.com/deskr/gopkg/internal/dock"
	docker "github.com/fsouza/go-dockerclient"
)

func TestMain(m *testing.M) {
	conf := dock.Config{}
	conf.Image = "rethinkdb:latest"
	conf.Tty = true
	conf.OpenStdin = true
	conf.ExposedPorts = map[docker.Port]struct{}{
		"28015/tcp": {},
	}
	conf.PortBindings = map[docker.Port][]docker.PortBinding{
		"28015/tcp": []docker.PortBinding{
			{
				HostPort: "28015",
			},
		},<commit_msg>comment<commit_after>package rdb

import (
	"log"
	"os"
	"testing"
	"time"

	gorethink "gopkg.in/dancannon/gorethink.v2"

	"github.com/deskr/gopkg/internal/dock"
	docker "github.com/fsouza/go-dockerclient"
)

func TestMain(m *testing.M) {
	conf := dock.Config{}
	conf.Image = "rethinkdb:latest"
	conf.Tty = true
	conf.OpenStdin = true

	// Using "Docker for Mac" - so no connection from host -> container :(
	conf.ExposedPorts = map[docker.Port]struct{}{
		"28015/tcp": {},
	}
	conf.PortBindings = map[docker.Port][]docker.PortBinding{
		"28015/tcp": []docker.PortBinding{
			{
				HostPort: "28015",
			},
		},
{'fraction_non_alphanumeric': 0.16883116883116883, 'fraction_numerical': 0.027705627705627706, 'mean_word_length': 4.004329004329004, 'pattern_counts': {'":': 4, '<': 3, '<?xml version=': 0, '>': 4, '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': '2433543', 'n_tokens_mistral': 532, 'n_tokens_neox': 473, 'n_words': 74}