<commit_before>function Assert-ConsoleIsInSync {
	param(
		[switch]$Quiet,
		[switch]$AssertIsFatal
	)
	_workOnConsoleWorkingDirectory {
		$uncommitedChanges = _getNumberOfUncommitedChanges
    	if ($uncommitedChanges -eq 0) {
    		if (-not $Quiet) { Write-Host -ForegroundColor Green "Branch $(_getCurrentBranch) has no uncommited changes" }
    		return $true
    	} else {
    		if (-not $Quiet -or $AssertIsFatal) { Write-Host -ForegroundColor Red "Branch $(_getCurrentBranch) has #$uncommitedChanges uncommited changes" }
    		if ($AssertIsFatal) { Write-Host -ForegroundColor Red "Unable to continue, use Save-ConsoleChanges to commit the changes and retry" }
    		return $false
    	}
    }
}<commit_msg>fixing bug in assert<commit_after>function Assert-ConsoleIsInSync {
	param(
		[switch]$Quiet,
		[switch]$AssertIsFatal
	)
	
    _workOnConsoleWorkingDirectory {
		$uncommitedChanges = _getNumberOfUncommitedChanges
    	if ($uncommitedChanges -eq 0) {
    		if (-not $Quiet) { Write-Host -ForegroundColor Green "Branch $(_getCurrentBranch) has no uncommited changes" }
    		return $true
    	} else {
    		if (-not $Quiet -or $AssertIsFatal) { Write-Host -ForegroundColor Red "Branch $(_getCurrentBranch) has #$uncommitedChanges uncommited changes" }
    		if ($AssertIsFatal) { Write-Host -ForegroundColor Red "Unable to continue, use Save-ConsoleChanges to commit the changes and retry" }
    		return $false
    	}
    } -ReturnValue
}
{'fraction_non_alphanumeric': 0.09704060564349622, 'fraction_numerical': 0.0013764624913971094, 'mean_word_length': 3.862876254180602, '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': '4629836', 'n_tokens_mistral': 476, 'n_tokens_neox': 468, 'n_words': 122}