<commit_before>package myutil

import (
	"reflect"
	"strings"
	"testing"
)

func Test_splitTextByLineBreak(t *testing.T) {
	type args struct {
		text  string
		limit int
	}
	tests := []struct {
		name      string
		args      args
		wantTexts []string
	}{
		{"pass", args{
			`你好
			阿`, 5}, []string{"你好", "阿"}},
	}
	for _, tt := range tests {
		t.Run(tt.name, func(t *testing.T) {
			if gotTexts := splitTextByLineBreak(tt.args.text, tt.args.limit); !reflect.DeepEqual(gotTexts, tt.wantTexts) {
				for i, v := range gotTexts {<commit_msg>fix typo<commit_after>package myutil

import (
	"reflect"
	"strings"
	"testing"
)

func Test_SplitTextByLineBreak(t *testing.T) {
	type args struct {
		text  string
		limit int
	}
	tests := []struct {
		name      string
		args      args
		wantTexts []string
	}{
		{"pass", args{
			`你好
			阿`, 5}, []string{"你好", "阿"}},
	}
	for _, tt := range tests {
		t.Run(tt.name, func(t *testing.T) {
			if gotTexts := SplitTextByLineBreak(tt.args.text, tt.args.limit); !reflect.DeepEqual(gotTexts, tt.wantTexts) {
				for i, v := range gotTexts {
{'fraction_non_alphanumeric': 0.15470643056849953, 'fraction_numerical': 0.001863932898415657, 'mean_word_length': 3.296, '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': '5789232', 'n_tokens_mistral': 454, 'n_tokens_neox': 422, 'n_words': 99}