<commit_before>package trackello

import (
	"github.com/VojtechVitek/go-trello"
	"sort"
	"testing"
)

func TestSortListByName(t *testing.T) {
	lists := []List{
		*NewList(&trello.List{Name: "Z"}),
		*NewList(&trello.List{Name: "B"}),
		*NewList(&trello.List{Name: "A"}),
		*NewList(&trello.List{Name: "Q"}),
	}
	sort.Sort(ByListName(lists))
	if !sort.IsSorted(ByListName(lists)) {
		t.Fatal("Error: Not Sorted")
	}

	if lists[0].name != "A" {
		t.Fatal("Error: Not Sorted")
	}
	if lists[1].name != "B" {
		t.Fatal("Error: Not Sorted")
	}
	if lists[2].name != "Q" {
		t.Fatal("Error: Not Sorted")
	}
	if lists[3].name != "Z" {
		t.Fatal("Error: Not Sorted")
	}
}
<commit_msg>DeepEquals<commit_after>package trackello

import (
	"github.com/VojtechVitek/go-trello"
	"reflect"
	"sort"
	"testing"
)

func TestSortListByName(t *testing.T) {
	lists := []List{
		*NewList(&trello.List{Name: "Z"}),
		*NewList(&trello.List{Name: "B"}),
		*NewList(&trello.List{Name: "A"}),
		*NewList(&trello.List{Name: "Q"}),
	}
	sort.Sort(ByListName(lists))
	if !sort.IsSorted(ByListName(lists)) {
		t.Fatal("Error: Not Sorted")
	}
	sortedLists := []List{
		*NewList(&trello.List{Name: "A"}),
		*NewList(&trello.List{Name: "B"}),
		*NewList(&trello.List{Name: "Q"}),
		*NewList(&trello.List{Name: "Z"}),
	}
	if !reflect.DeepEqual(lists, sortedLists) {
		t.Fatal("Lists are not equal")
	}
}

{'fraction_non_alphanumeric': 0.22238478419897587, 'fraction_numerical': 0.002926115581565472, 'mean_word_length': 4.821276595744681, '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': '561436', 'n_tokens_mistral': 644, 'n_tokens_neox': 589, 'n_words': 92}