<commit_before>public enum Error: ErrorType, Equatable {
    case General
    case InvalidUrl(String)
    case InvalidResponseData(NSData?)
    case Error(NSError?)
    case InvalidAuthentication
    case ShouldOverride
    case CreateDataTask
}

public func == (lhs: Error, rhs: Error) -> Bool {
    switch (lhs, rhs) {
    case (.General, .General):
        return true
    case (.InvalidAuthentication, .InvalidAuthentication ):
        return true
    case (.InvalidUrl(let url_lhs), .InvalidUrl(let url_rhs)): // tailor:disable
        return url_lhs == url_rhs
    case (.Error(let error_lhs), .Error(let error_rhs)): // tailor:disable
        return error_lhs?.code == error_rhs?.code
    case (.InvalidResponseData (_), .InvalidResponseData ( _)):
        return true
    default:
        return false
    }
}<commit_msg>added ns error case and ErroType case<commit_after>public enum Error: ErrorType, Equatable {
    case General
    case InvalidUrl(String)
    case InvalidResponseData(NSData?)
    case ErrorNS(NSError?)
    case Error(ErrorType)
    case InvalidAuthentication
    case ShouldOverride
    case CreateDataTask
}

public func == (lhs: Error, rhs: Error) -> Bool {
    switch (lhs, rhs) {
    case (.General, .General):
        return true
    case (.InvalidAuthentication, .InvalidAuthentication):
        return true
    case (.InvalidUrl(let url_lhs), .InvalidUrl(let url_rhs)): // tailor:disable
        return url_lhs == url_rhs
    case (.Error(_), .Error(_)):
        return true
    case (.ErrorNS(let error_lhs), .ErrorNS(let error_rhs)): // tailor:disable
        return error_lhs?.code == error_rhs?.code
    case (.InvalidResponseData (_), .InvalidResponseData (_)):
        return true
    default:
        return false
    }
}
{'fraction_non_alphanumeric': 0.10651558073654391, 'fraction_numerical': 0.0, 'mean_word_length': 2.995475113122172, 'pattern_counts': {'":': 0, '<': 3, '<?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': '4396901', 'n_tokens_mistral': 517, 'n_tokens_neox': 504, 'n_words': 143}