<commit_before>package main

import (
	"path/filepath"
	"testing"
)

var sourceURITests = []struct {
	src string
	dst string
}{
	//Full URI
	{
		"https://github.com/sunaku/vim-unbundle",
		"https://github.com/sunaku/vim-unbundle",
	},

	//Short GitHub URI
	{
		"Shougo/neobundle.vim",
		"https://github.com/Shougo/neobundle.vim",
	},
	{
		"thinca/vim-quickrun",
		"https://github.com/thinca/vim-quickrun",
	},
}

func TestSourceURI(t *testing.T) {
	for _, test := range sourceURITests {
		expect := test.dst
		actual, err := ToSourceURI(test.src)
		if err != nil {
			t.Errorf("ToSourceURI(%q) returns %q, want nil", err)
		}
		if actual != expect {
			t.Errorf("%q: got %q, want %q",
				test.src, actual, expect)
		}
	}
}

var destinationPathTests = []struct {
	filetype string
	src      string
	dst      string
}{
	{
		"",
		"https://github.com/sunaku/vim-unbundle",
		filepath.Join(dotvim, "bundle", "vim-unbundle"),
	},

	{
		"go",
		"https://github.com/fatih/vim-go",
		filepath.Join(dotvim, "ftbundle", "go", "vim-go"),
	},
}

func TestDestinationPath(t *testing.T) {
	for _, test := range destinationPathTests {
		expect := test.dst
		actual, err := ToDestinationPath(test.src, test.filetype)
		if err != nil {
			t.Errorf("ToSourceURI(%q) returns %q, want nil", err)
		}
		if actual != expect {
			t.Errorf("(filetype=%q, uri=%q): got %q, want %q",<commit_msg>Fix not enough Errorf args<commit_after>package main

import (
	"path/filepath"
	"testing"
)

var sourceURITests = []struct {
	src string
	dst string
}{
	//Full URI
	{
		"https://github.com/sunaku/vim-unbundle",
		"https://github.com/sunaku/vim-unbundle",
	},

	//Short GitHub URI
	{
		"Shougo/neobundle.vim",
		"https://github.com/Shougo/neobundle.vim",
	},
	{
		"thinca/vim-quickrun",
		"https://github.com/thinca/vim-quickrun",
	},
}

func TestSourceURI(t *testing.T) {
	for _, test := range sourceURITests {
		expect := test.dst
		actual, err := ToSourceURI(test.src)
		if err != nil {
			t.Errorf("ToSourceURI(%q) returns %q, want nil",
				test.src, err)
		}
		if actual != expect {
			t.Errorf("%q: got %q, want %q",
				test.src, actual, expect)
		}
	}
}

var destinationPathTests = []struct {
	filetype string
	src      string
	dst      string
}{
	{
		"",
		"https://github.com/sunaku/vim-unbundle",
		filepath.Join(dotvim, "bundle", "vim-unbundle"),
	},

	{
		"go",
		"https://github.com/fatih/vim-go",
		filepath.Join(dotvim, "ftbundle", "go", "vim-go"),
	},
}

func TestDestinationPath(t *testing.T) {
	for _, test := range destinationPathTests {
		expect := test.dst
		actual, err := ToDestinationPath(test.src, test.filetype)
		if err != nil {
			t.Errorf("ToSourceURI(%q) returns %q, want nil",
				test.src, err)
		}
		if actual != expect {
			t.Errorf("(filetype=%q, uri=%q): got %q, want %q",
{'fraction_non_alphanumeric': 0.1820798848506657, 'fraction_numerical': 0.0, 'mean_word_length': 3.3369734789391576, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 12, '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': '1405180', 'n_tokens_mistral': 1190, 'n_tokens_neox': 1087, 'n_words': 215}