<commit_before>package oauth2

import (
	"os"
	"path/filepath"
	"testing"

	"github.com/stretchr/testify/assert"
)

func TestNewFileSystemRepository(t *testing.T) {
	wd, err := os.Getwd()
	assert.NoError(t, err)
	assert.Contains(t, wd, "github.com/hellofresh/janus")

	// .../github.com/hellofresh/janus/pkg/api/../../assets/auth
	exampleAPIsPath := filepath.Join(wd, "..", "..", "..", "assets", "stubs", "auth")
	info, err := os.Stat(exampleAPIsPath)
	assert.NoError(t, err)
	assert.True(t, info.IsDir())

	fsRepo, err := NewFileSystemRepository(exampleAPIsPath)
	assert.NoError(t, err)
	assert.NotNil(t, fsRepo)
}<commit_msg>Fixed one more test to be compatible with go modules<commit_after>package oauth2

import (
	"os"
	"path/filepath"
	"testing"

	"github.com/stretchr/testify/assert"
	"github.com/stretchr/testify/require"
)

func TestNewFileSystemRepository(t *testing.T) {
	wd, err := os.Getwd()
	assert.NoError(t, err)

	// ./../../assets/auth
	exampleAPIsPath := filepath.Join(wd, "..", "..", "..", "assets", "stubs", "auth")
	info, err := os.Stat(exampleAPIsPath)
	require.NoError(t, err)
	require.True(t, info.IsDir())

	fsRepo, err := NewFileSystemRepository(exampleAPIsPath)
	require.NoError(t, err)
	assert.NotNil(t, fsRepo)
}
{'fraction_non_alphanumeric': 0.18679549114331723, 'fraction_numerical': 0.001610305958132045, 'mean_word_length': 4.5, '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': '6427038', 'n_tokens_mistral': 492, 'n_tokens_neox': 485, 'n_words': 83}