<commit_before>
describe('aria.isValidRole', function () {
	'use strict';

	it('should return true if role is found in the lookup table', function () {
		var orig = kslib.aria._lut.role;
		kslib.aria._lut.role = {
			'cats': true
		};
		assert.isTrue(kslib.aria.isValidRole('cats'));
		kslib.aria._lut.role = orig;

	});

	it('should return false if role is not found in the lut', function () {
		assert.isFalse(kslib.aria.isValidRole('cats'));

	});
});


describe('aria.getRolesByType', function () {
	'use strict';

	it('should return array if roletype is found in the lookup table', function () {
		var orig = kslib.aria._lut.role;<commit_msg>Bring back test<commit_after>
describe('aria.isValidRole', function () {
	'use strict';

	it('should return true if role is found in the lookup table', function () {
		var orig = kslib.aria._lut.role;
		kslib.aria._lut.role = {
			'cats': true
		};
		assert.isTrue(kslib.aria.isValidRole('cats'));
		kslib.aria._lut.role = orig;

	});

	it('should return false if role is not found in the lut', function () {
		assert.isFalse(kslib.aria.isValidRole('cats'));

	});
});

describe('aria.getRolesWithNameFromContents', function () {
	'use strict';

	it('should return array if nameFrom contents is found in the lookup table', function () {
		var orig = kslib.aria._lut.role;
		kslib.aria._lut.role = {
			'dogs': {
				type: 'things',
				nameFrom: ['author', 'contents']
			},
			'cats': {
				type: 'stuff',
				nameFrom: ['author']
			}
		};
		assert.deepEqual(kslib.aria.getRolesWithNameFromContents(), ['dogs']);
		kslib.aria._lut.role = orig;

	});
});

describe('aria.getRolesByType', function () {
	'use strict';

	it('should return array if roletype is found in the lookup table', function () {
		var orig = kslib.aria._lut.role;
{'fraction_non_alphanumeric': 0.16049382716049382, 'fraction_numerical': 0.0, 'mean_word_length': 3.8983516483516483, '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': '1272740', 'n_tokens_mistral': 686, 'n_tokens_neox': 596, 'n_words': 153}