<commit_before>import Foundation

public func throwAssertion() -> MatcherFunc<Void> {
    return MatcherFunc { actualExpression, failureMessage in
    #if arch(x86_64) && _runtime(_ObjC)
        failureMessage.postfixMessage = "throw an assertion"
        failureMessage.actualValue = nil
        
        var succeeded = true
        
        let caughtException: BadInstructionException? = catchBadInstruction {
            do {
                try actualExpression.evaluate()
            } catch let error {
                succeeded = false
                failureMessage.postfixMessage += "; threw error instead <\(error)>"
            }
        }

        if !succeeded {
            return false
        }
        
        if caughtException == nil {
            return false
        }
        
        return true
    #else
        fatalError("The throwAssertion Nimble matcher can only run on x86_64 platforms with Objective-C (e.g. Mac, iPhone 5s or later simulators)")
    #endif
    }
}<commit_msg>Added more info to fatalError raised for incompatible client binaries<commit_after>import Foundation

public func throwAssertion() -> MatcherFunc<Void> {
    return MatcherFunc { actualExpression, failureMessage in
    #if arch(x86_64) && _runtime(_ObjC)
        failureMessage.postfixMessage = "throw an assertion"
        failureMessage.actualValue = nil
        
        var succeeded = true
        
        let caughtException: BadInstructionException? = catchBadInstruction {
            do {
                try actualExpression.evaluate()
            } catch let error {
                succeeded = false
                failureMessage.postfixMessage += "; threw error instead <\(error)>"
            }
        }

        if !succeeded {
            return false
        }
        
        if caughtException == nil {
            return false
        }
        
        return true
    #else
        fatalError("The throwAssertion Nimble matcher can only run on x86_64 platforms with " +
            "Objective-C (e.g. Mac, iPhone 5s or later simulators). You can silence this error " +
            "by placing the test case inside an #if arch(x86_64) or _runtime(_ObjC) conditional statement")
    #endif
    }
}
{'fraction_non_alphanumeric': 0.06902734199910354, 'fraction_numerical': 0.009861048857014791, 'mean_word_length': 1.88745148771022, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, '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': '5001829', 'n_tokens_mistral': 580, 'n_tokens_neox': 548, 'n_words': 171}