<commit_before>import Foundation


internal func identityAsString(_ value: Any?) -> String {
    if let value = value as AnyObject? {
        return NSString(format: "<%p>", unsafeBitCast(value, to: Int.self)).description
    } else {
        return "nil"
    }
}

internal func classAsString(_ cls: AnyClass) -> String {
    return NSStringFromClass(cls)
}

internal func arrayAsString<T>(_ items: [T], joiner: String = ", ") -> String {
    return items.reduce("") { accum, item in
        let prefix = (accum.isEmpty ? "" : joiner)
        return accum + prefix + "\(stringify(item))"
    }
}<commit_msg>Fix build error on Linux<commit_after>import Foundation


internal func identityAsString(_ value: Any?) -> String {
#if os(Linux)
    if let value = value as? AnyObject {
        return NSString(format: "<%p>", unsafeBitCast(value, to: Int.self)).description
    } else {
        return "nil"
    }
#else
    if let value = value as AnyObject? {
        return NSString(format: "<%p>", unsafeBitCast(value, to: Int.self)).description
    } else {
        return "nil"
    }
#endif
}

internal func classAsString(_ cls: AnyClass) -> String {
    return NSStringFromClass(cls)
}

internal func arrayAsString<T>(_ items: [T], joiner: String = ", ") -> String {
    return items.reduce("") { accum, item in
        let prefix = (accum.isEmpty ? "" : joiner)
        return accum + prefix + "\(stringify(item))"
    }
}
{'fraction_non_alphanumeric': 0.13933849401829698, 'fraction_numerical': 0.0, 'mean_word_length': 3.0979827089337175, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 14, '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': '3612040', 'n_tokens_mistral': 432, 'n_tokens_neox': 422, 'n_words': 127}