<commit_before>package ublox

import (
	"testing"

	"github.com/mdigger/geotrack/mongo"
)

func TestCache(t *testing.T) {
	mongodb, err := mongo.Connect("mongodb://localhost/geotrace")
	if err != nil {
		t.Fatal(err)
	}
	defer mongodb.Close()

	cache, err := InitCache(mongodb, token)
	if err != nil {
		t.Fatal(err)
	}
	for i := 0; i < 1000; i++ {
		data, err := cache.Get(pointHome, DefaultProfile)
		if err != nil {
			t.Fatal(err)
		}<commit_msg>test fix<commit_after>package ublox

import (
	"testing"

	"github.com/mdigger/geotrack/mongo"
)

func TestCache(t *testing.T) {
	mongodb, err := mongo.Connect("mongodb://localhost/geotrace")
	if err != nil {
		t.Fatal(err)
	}
	defer mongodb.Close()

	cache, err := InitCache(mongodb, "", token)
	if err != nil {
		t.Fatal(err)
	}
	for i := 0; i < 1000; i++ {
		data, err := cache.Get(pointHome, DefaultProfile)
		if err != nil {
			t.Fatal(err)
		}
{'fraction_non_alphanumeric': 0.17018909899888765, 'fraction_numerical': 0.011123470522803115, 'mean_word_length': 3.568527918781726, 'pattern_counts': {'":': 0, '<': 5, '<?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': '4349814', 'n_tokens_mistral': 409, 'n_tokens_neox': 361, 'n_words': 79}