<commit_before><!Doctype html>
<script type=module>
import {cherub} from './cherub.js';
onload=function()
{
	'use strict';
	var
	sum=(a,b)=>a+b,
	{test}=cherub,
	tests=[{
		name:'math',
		tests:
		[{
			name:'sum',
			func:sum,
			tests:
			[
				test('positive (test 1)').args(1,5).rtn(6),
				test('negative (test 2)').args(-1,-5).rtn(-6),
				test('fail (test 3)').args(-1,-5).rtn(0)
			]
		}]
	},
	{
		func:()=>0,
		name:'return 0 (test 4)',
		rtn:0
	}];
	cherub({hidePassed:false,parallel:false}).run(...tests)
	.then(function()
	{
		console.log('\n');
		cherub().run(...tests);
	});
};
</script><commit_msg>DRYed syntax<commit_after><!Doctype html>
<script type=module>
'use strict';
import {cherub} from './cherub.js';
onload=function()
{
	const
	sum=(a,b)=>a+b,
	{test}=cherub,
	tests=test('math').tests
	(
		test('sum').func(sum).tests
		(
			test('positive (test 1)').args(1,5).rtn(6),
			test('negative (test 2)').args(-1,-5).rtn(-6),
			test('fail (test 3)').args(-1,-5).rtn(0)
		),
		test('return 0 (test 4)').func(()=>0).rtn(0)
	);
	cherub({hidePassed:false,parallel:false}).run(tests)
	.then(()=>console.log('\n'))
	.then(()=>cherub().run(tests));
};
</script>
{'fraction_non_alphanumeric': 0.27489361702127657, 'fraction_numerical': 0.02723404255319149, 'mean_word_length': 4.226666666666667, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 15, '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': '2840416', 'n_tokens_mistral': 560, 'n_tokens_neox': 508, 'n_words': 73}