<commit_before><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
	<title>Crucible Functional Tests</title>
	<script src="../crucible.js" type="text/javascript" charset="utf-8"></script>
	<script type="text/javascript" charset="utf-8">
		var runner = new Crucible.PrettyRunner('itself'), fixture;
		var pr = runner;
		
		fixture = new Crucible.Fixture('Runner');
		fixture.setUp = function set_up_runner() {
			this.runner = new Crucible.Runner();
		};
		fixture.tearDown = function tear_down_runner() {
			delete this.runner;
		};
		
		fixture.add('Test units get Runner reference', function(passed) {
			this.assertSame(runner, passed);
		});
		
		function test_response(name, expected_result, test_code, ex) {
			var test = null;
			
			function evaluate_result(internal_test, result) {
				var desc = null;
				
				try {
					switch (expected_result) {
						case 'pass':
							if (result === true) {
								pr.report(test, true);
								return;
							}
						case 'fail':
							if (result.name == 'Crucible.Failure') {
								pr.report(test, true);
								return;
							}
						case 'error':
							if (result.name == 'Crucible.UnexpectedError') {
								pr.report(test, true);
								return;
							}
					}

					if (result === true)
						desc = 'pass';
					else if (result.name == 'Crucible.Failure')
						desc = 'fail';
					else if (result.name == 'Crucible.UnexpectedError')<commit_msg>Making the functional tests catch any type of Crucible failure.<commit_after><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
	<title>Crucible Functional Tests</title>
	<script src="../crucible.js" type="text/javascript" charset="utf-8"></script>
	<script type="text/javascript" charset="utf-8">
		var runner = new Crucible.PrettyRunner('itself'), fixture;
		var pr = runner;
		
		fixture = new Crucible.Fixture('Runner');
		fixture.setUp = function set_up_runner() {
			this.runner = new Crucible.Runner();
		};
		fixture.tearDown = function tear_down_runner() {
			delete this.runner;
		};
		
		fixture.add('Test units get Runner reference', function(passed) {
			this.assertSame(runner, passed);
		});
		
		function test_response(name, expected_result, test_code, ex) {
			var test = null;
			
			function evaluate_result(internal_test, result) {
				var desc = null;
				
				try {
					switch (expected_result) {
						case 'pass':
							if (result === true) {
								pr.report(test, true);
								return;
							}
						case 'fail':
							if (/^Crucible\.\w*Failure$/.test(result.name)) {
								pr.report(test, true);
								return;
							}
						case 'error':
							if (result.name == 'Crucible.UnexpectedError') {
								pr.report(test, true);
								return;
							}
					}

					if (result === true)
						desc = 'pass';
					else if (/^Crucible\.\w*Failure$/.test(result.name))
						desc = 'fail';
					else if (result.name == 'Crucible.UnexpectedError')
{'fraction_non_alphanumeric': 0.1596969696969697, 'fraction_numerical': 0.008484848484848486, 'mean_word_length': 2.888103651354535, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 21, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 4}, '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': '7448659', 'n_tokens_mistral': 1473, 'n_tokens_neox': 1074, 'n_words': 232}