<commit_before>use TAP::Entry;
package TAP {
	class Result {
		has Str $.name;
		has Int $.tests-planned;
		has Int $.tests-run;
		has Int @.passed;
		has Int @.failed;
		has Str @.errors;
		has Int @.actual-passed;
		has Int @.actual-failed;
		has Int @.todo;
		has Int @.todo-passed;
		has Int @.skipped;
		has Int $.unknowns;
		has Bool $.skip-all;
		has Proc $.exit-status;
		has Duration $.time;
		method exit() {
			$!exit-status.defined ?? $!exit-status.exitcode !! Int;
		}
		method wait() {
			$!exit-status.defined ?? $!exit-status.status !! Int;
		}

		method has-problems() {
			@!todo || self.has-errors;
		}
		method has-errors() {
			return @!failed || @!errors || self.exit-failed;
		}
		method exit-failed() {
			return $!exit-status && $!exit-status.exitcode > 0;
		}
	}

	class Aggregator {
		has Result %.results-for;
		has Result @!parse-order;

		has Int $.parsed = 0;
		has Int $.tests-planned = 0;
		has Int $.tests-run = 0;
		has Int $.passed = 0;
		has Int $.failed = 0;
		has Str @.errors;
		has Int $.actual-passed = 0;
		has Int $.actual-failed = 0;
		has Int $.todo;
		has Int $.todo-passed;
		has Int $.skipped;<commit_msg>Add workaround for Proc.status<commit_after>use TAP::Entry;
package TAP {
	class Result {
		has Str $.name;
		has Int $.tests-planned;
		has Int $.tests-run;
		has Int @.passed;
		has Int @.failed;
		has Str @.errors;
		has Int @.actual-passed;
		has Int @.actual-failed;
		has Int @.todo;
		has Int @.todo-passed;
		has Int @.skipped;
		has Int $.unknowns;
		has Bool $.skip-all;
		has Proc $.exit-status;
		has Duration $.time;
		method exit() {
			$!exit-status.defined ?? $!exit-status.exitcode !! Int;
		}
		method wait() {
			# XXX Workaround for rakudobug
			if ($!exit-status.defined) {
				my $exit-code = $!exit-status.exitcode // 0;
				my $signal = $!exit-status.signal // 0;
				return ($exit-code +< 8) +| $signal;
			}
			else {
				return Int;
			}
		}

		method has-problems() {
			@!todo || self.has-errors;
		}
		method has-errors() {
			return @!failed || @!errors || self.exit-failed;
		}
		method exit-failed() {
			return $!exit-status && $!exit-status.exitcode > 0;
		}
	}

	class Aggregator {
		has Result %.results-for;
		has Result @!parse-order;

		has Int $.parsed = 0;
		has Int $.tests-planned = 0;
		has Int $.tests-run = 0;
		has Int $.passed = 0;
		has Int $.failed = 0;
		has Str @.errors;
		has Int $.actual-passed = 0;
		has Int $.actual-failed = 0;
		has Int $.todo;
		has Int $.todo-passed;
		has Int $.skipped;
{'fraction_non_alphanumeric': 0.16573482428115016, 'fraction_numerical': 0.0075878594249201275, 'mean_word_length': 2.640988372093023, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 5, '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': '2084533', 'n_tokens_mistral': 1107, 'n_tokens_neox': 940, 'n_words': 270}