<commit_before>package brdoc

import (
	"testing"
)

func TestIsCNS(t *testing.T) {
	for i, tc := range []struct {
		name     string
		expected bool
		v        string
	}{
		{"InvalidData_ShouldReturnFalse", false, "3467875434578764345789654"},
		{"InvalidData_ShouldReturnFalse", false, ""},
		{"InvalidData_ShouldReturnFalse", false, "AAAAAAAAAAA"},
		{"InvalidDigit_ShouldReturnFalse", false, "915501701930306"},
		{"InvalidDigit_ShouldReturnFalse", false, "174224171330004"},
		{"InvalidDigit_ShouldReturnFalse", false, "259755733880001"},
		{"Valid_ShouldReturnTrue", true, "259955733880001"},
		{"Valid_ShouldReturnTrue", true, "174524171330004"},
		{"Valid_ShouldReturnTrue", true, "915501701930006"},
		{"Valid_ShouldReturnTrue", true, "750655718440005"},
		{"Valid_ShouldReturnTrue", true, "864397336660007"},
		{"Valid_ShouldReturnTrue", true, "285054561330005"},
	} {
		t.Run(testName(i, tc.name), func(t *testing.T) {
			assertEqual(t, tc.expected, IsCNS(tc.v))
		})
	}
}<commit_msg>Added more test cases<commit_after>package brdoc

import (
	"testing"
)

func TestIsCNS(t *testing.T) {
	for i, tc := range []struct {
		name     string
		expected bool
		v        string
	}{
		{"InvalidData_ShouldReturnFalse", false, "3467875434578764345789654"},
		{"InvalidData_ShouldReturnFalse", false, ""},
		{"InvalidData_ShouldReturnFalse", false, "AAAAAAAAAAA"},
		{"InvalidDigit_ShouldReturnFalse", false, "915501701930306"},
		{"InvalidDigit_ShouldReturnFalse", false, "174224171330004"},
		{"InvalidDigit_ShouldReturnFalse", false, "259755733880001"},
		{"InvalidDigit_ShouldReturnFalse", false, "259755-33880001"},
		{"InvalidDigit_ShouldReturnFalse", false, "2597550R3880001"},
		{"Valid_ShouldReturnTrue", true, "259955733880001"},
		{"Valid_ShouldReturnTrue", true, "174524171330004"},
		{"Valid_ShouldReturnTrue", true, "915501701930006"},
		{"Valid_ShouldReturnTrue", true, "750655718440005"},
		{"Valid_ShouldReturnTrue", true, "864397336660007"},
		{"Valid_ShouldReturnTrue", true, "285054561330005"},
	} {
		t.Run(testName(i, tc.name), func(t *testing.T) {
			assertEqual(t, tc.expected, IsCNS(tc.v))
		})
	}
}
{'fraction_non_alphanumeric': 0.153954802259887, 'fraction_numerical': 0.1638418079096045, 'mean_word_length': 6.562277580071174, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 2, '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': '1616118', 'n_tokens_mistral': 998, 'n_tokens_neox': 748, 'n_words': 129}