<commit_before>//
//  Error.swift
//  FranticApparatus
//
//  Created by <NAME> on 9/30/14.
//  Copyright (c) 2014 <NAME>. All rights reserved.
//

import Foundation

public class Error {
    public let message: String
    
    public init(message: String = "") {
        self.message = message
    }
}

public class NSErrorWrapperError : Error, Printable {
    public let cause: NSError
    
    public init(cause: NSError) {
        self.cause = cause
        super.init(message: cause.localizedDescription)
    }
    
    public var description: String {
        return cause.description
    }
}

public class OutOfMemoryError : Error { }<commit_msg>Make it easier to print errors<commit_after>//
//  Error.swift
//  FranticApparatus
//
//  Created by <NAME> on 9/30/14.
//  Copyright (c) 2014 <NAME>. All rights reserved.
//

import Foundation

public class Error : Printable {
    public let message: String
    
    public init(message: String = "") {
        self.message = message
    }
    
    public var description: String {
        return reflect(self).summary + ": " + message
    }
}

public class NSErrorWrapperError : Error, Printable {
    public let cause: NSError
    
    public init(cause: NSError) {
        self.cause = cause
        super.init(message: cause.description)
    }
}

public class OutOfMemoryError : Error { }
{'fraction_non_alphanumeric': 0.10393466963622866, 'fraction_numerical': 0.013363028953229399, 'mean_word_length': 2.4300254452926207, 'pattern_counts': {'":': 1, '<': 7, '<?xml version=': 0, '>': 7, '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': '6483534', 'n_tokens_mistral': 428, 'n_tokens_neox': 401, 'n_words': 117}