<commit_before>//
//  RBSTools.swift
//  Pods
//
//  Created by <NAME> on 03/05/2017.
//
//

import RealmSwift
import AVFoundation

final class BrowserTools {
    
    private static let localVersion = "v0.3.0"
    
    static func stringForProperty(_ property: Property, object: Object) -> String {
        if property.isArray || property.type == .linkingObjects {
            return arrayString(for: property, object: object)
        }
        return handleSupportedTypes(for: property, object: object)
    }
    
    static func previewText(for properties: [Property], object: Object) -> String {
        return properties.prefix(2).reduce("", { (result, property) -> String in
            return result + previewText(for: property, object: object)
        })
    }
    
    static func previewText(for property: Property, object: Object) -> String {
        guard property.type != .object, property.type != .data else { return "\(property.name):          Value not supported" }
        return """<commit_msg>Remove unnecessary parentheses<commit_after>//
//  RBSTools.swift
//  Pods
//
//  Created by <NAME> on 03/05/2017.
//
//

import RealmSwift
import AVFoundation

final class BrowserTools {
    
    private static let localVersion = "v0.3.0"
    
    static func stringForProperty(_ property: Property, object: Object) -> String {
        if property.isArray || property.type == .linkingObjects {
            return arrayString(for: property, object: object)
        }
        return handleSupportedTypes(for: property, object: object)
    }
    
    static func previewText(for properties: [Property], object: Object) -> String {
        return properties.prefix(2).reduce("", { result, property -> String in
            return result + previewText(for: property, object: object)
        })
    }
    
    static func previewText(for property: Property, object: Object) -> String {
        guard property.type != .object, property.type != .data else { return "\(property.name):          Value not supported" }
        return """
{'fraction_non_alphanumeric': 0.11574301128003923, 'fraction_numerical': 0.011770475723393821, 'mean_word_length': 2.585237258347979, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 13, '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': '3077555', 'n_tokens_mistral': 565, 'n_tokens_neox': 542, 'n_words': 166}