<commit_before><commit_msg>First pass at a simple psake build tester.  It runs each example build script and reports if the build passed or failed.<commit_after>powershell -nologo -noprofile -command {
	function runBuilds{
		$buildFiles = dir examples\*.ps1
		$testResults = @()	
		
		foreach($buildFile in $buildFiles) {					
			$testResult = "" | select Name, Result 
			$testResult.Name = $buildFile.Name
			.\psake.ps1 $buildFile | Out-Null			
			$testResult.Result = (getResult $buildFile.Name $?)
			$testResults += $testResult 			
		}			
		
		$testResults | ft -auto
		
		$failed = $testResults | ? { $_.Result -eq "Failed" }
		if ($failed) { exit(1) }
	}
	
	function getResult([string]$fileName, [bool]$buildSucceeded) {		
		if ($fileName.StartsWith("bad")) {
			if (!$buildSucceeded) {
				"Passed"
			} 
			else {
				"Failed"
			}	
		}
		else {
			if ($buildSucceeded) {
				"Passed"
			} 
			else {
				"Failed"
			}
		}
	}

	runBuilds
}
{'fraction_non_alphanumeric': 0.13593256059009484, 'fraction_numerical': 0.003161222339304531, 'mean_word_length': 2.8, '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': '620923', 'n_tokens_mistral': 408, 'n_tokens_neox': 333, 'n_words': 76}