<commit_before>package mgopath

import (
    "fmt"
    "testing"
    "github.com/stretchr/testify/assert"
    "github.com/ory-am/dockertest"
    "github.com/ory-am/common/rand/sequence"
)

func TestConnect(t *testing.T) {
    containerID, ip, port := dockertest.SetupMongoContainer(t)
    dbName, err := sequence.RuneSequence(22, []rune("abcdefghijklmnopqrstuvxyzABCDEFGHIJKLMNOPQRSTUVXYZ1234567890"))
    assert.Nil(t, err)
    defer containerID.KillRemove(t)
    path := fmt.Sprintf("mongodb://%s:%d/%s", ip, port, string(dbName))
    db, name, err := Connect(path)
    assert.NotNil(t, db)
    assert.Equals(t, name, string(dbName))
    assert.Nil(t, err)
}<commit_msg>mgopath: Fixed typo in tests<commit_after>package mgopath

import (
    "fmt"
    "testing"
    "github.com/stretchr/testify/assert"
    "github.com/ory-am/dockertest"
    "github.com/ory-am/common/rand/sequence"
)

func TestConnect(t *testing.T) {
    containerID, ip, port := dockertest.SetupMongoContainer(t)
    dbName, err := sequence.RuneSequence(22, []rune("abcdefghijklmnopqrstuvxyzABCDEFGHIJKLMNOPQRSTUVXYZ1234567890"))
    assert.Nil(t, err)
    defer containerID.KillRemove(t)
    path := fmt.Sprintf("mongodb://%s:%d/%s", ip, port, string(dbName))
    db, name, err := Connect(path)
    assert.NotNil(t, db)
    assert.Equal(t, name, string(dbName))
    assert.Nil(t, err)
}
{'fraction_non_alphanumeric': 0.15243004418262152, 'fraction_numerical': 0.017673048600883652, 'mean_word_length': 4.128301886792453, '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': '197046', 'n_tokens_mistral': 543, 'n_tokens_neox': 512, 'n_words': 82}