<commit_before>package gotility

import (
	"testing"
	"reflect"
)

func TestIsEmail(t *testing.T) {
	isEmail := IsEmail("<EMAIL>")
	if isEmail != true {
		t.Error("Expected true, got ", isEmail)
	}
	isEmail = IsEmail("mail")
	if isEmail != false {
		t.Error("Expected false, got ", isEmail)
	}
}

func TestIsUrl(t *testing.T) {
	isUrl := IsUrl("google.com")
	if isUrl != true {
		t.Error("Expected true, got ", isUrl)
	}
	isUrl = IsUrl("123.com1")
	if isUrl != false {
		t.Error("Expected false, got ", isUrl)
	}
}

func TestIsNumber(t *testing.T) {
	isNumber := IsNumber("12134.0009")
	if isNumber != true {
		t.Error("Expected true, got ", isNumber)
	}
	isNumber = IsNumber("a12134.0009")
	if isNumber != false {
		t.Error("Expected false, got ", isNumber)
	}
}

func TestIsTitleCase(t *testing.T) {
	isTitleCase := IsTitleCase("Go Is VEry Popular")
	if isTitleCase != true {
		t.Error("Expected true, got ", isTitleCase)
	}
	isTitleCase = IsTitleCase("gO IS NOT POPULAR")
	if isTitleCase != false {
		t.Error("Expected false, got ", isTitleCase)
	}
}

func TestFlattenFloat64(t *testing.T) {
	row := FlattenFloat64([][]float64{{1.1, 2.2}, {3.3, 4.4}})
	if !reflect.DeepEqual(row, []float64{1.1, 2.2, 3.3, 4.4}) {
		t.Error("Expected [1.1 2.2 3.3 4.4], got ", row)
	}
}

func TestFlattenInt(t *testing.T) {
	row := FlattenInt([][]int{{1, 2}, {3, 4}})
	if !reflect.DeepEqual(row, []int{1, 2, 3, 4}) {
		t.Error("Expected [1 2 3 4], got ", row)
	}
}

func TestFlattenString(t *testing.T) {
	row := FlattenString([][]string{{"A", "B"}, {"C", "D"}})
	if !reflect.DeepEqual(row, []string{"A", "B", "C", "D"}) {
		t.Error("Expected [A B C D], got ", row)
	}
}
<commit_msg>Prettified test file<commit_after>package gotility

import (
	"reflect"
	"testing"
)

func TestIsEmail(t *testing.T) {
	isEmail := IsEmail("<EMAIL>")
	if isEmail != true {
		t.Error("Expected true, got ", isEmail)
	}
	isEmail = IsEmail("mail")
	if isEmail != false {
		t.Error("Expected false, got ", isEmail)
	}
}

func TestIsUrl(t *testing.T) {
	isUrl := IsUrl("google.com")
	if isUrl != true {
		t.Error("Expected true, got ", isUrl)
	}
	isUrl = IsUrl("123.com1")
	if isUrl != false {
		t.Error("Expected false, got ", isUrl)
	}
}

func TestIsNumber(t *testing.T) {
	isNumber := IsNumber("12134.0009")
	if isNumber != true {
		t.Error("Expected true, got ", isNumber)
	}
	isNumber = IsNumber("a12134.0009")
	if isNumber != false {
		t.Error("Expected false, got ", isNumber)
	}
}

func TestIsTitleCase(t *testing.T) {
	isTitleCase := IsTitleCase("Go Is VEry Popular")
	if isTitleCase != true {
		t.Error("Expected true, got ", isTitleCase)
	}
	isTitleCase = IsTitleCase("gO IS NOT POPULAR")
	if isTitleCase != false {
		t.Error("Expected false, got ", isTitleCase)
	}
}

func TestFlattenFloat64(t *testing.T) {
	row := FlattenFloat64([][]float64{{1.1, 2.2}, {3.3, 4.4}})
	if !reflect.DeepEqual(row, []float64{1.1, 2.2, 3.3, 4.4}) {
		t.Error("Expected [1.1 2.2 3.3 4.4], got ", row)
	}
}

func TestFlattenInt(t *testing.T) {
	row := FlattenInt([][]int{{1, 2}, {3, 4}})
	if !reflect.DeepEqual(row, []int{1, 2, 3, 4}) {
		t.Error("Expected [1 2 3 4], got ", row)
	}
}

func TestFlattenString(t *testing.T) {
	row := FlattenString([][]string{{"A", "B"}, {"C", "D"}})
	if !reflect.DeepEqual(row, []string{"A", "B", "C", "D"}) {
		t.Error("Expected [A B C D], got ", row)
	}
}

{'fraction_non_alphanumeric': 0.20161531558480406, 'fraction_numerical': 0.039485492072988335, 'mean_word_length': 4.074355083459787, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '7009392', 'n_tokens_mistral': 1457, 'n_tokens_neox': 1362, 'n_words': 318}