<commit_before>//
//  Snapshot.swift
//  SwiftDataStore
//
//  Created by <NAME> on 2/5/17.
//  Copyright © 2017 <NAME>. All rights reserved.
//

public struct Snapshot {
    
}<commit_msg>Add properties, methods and initializer to Snapshot<commit_after>//
//  Snapshot.swift
//  SwiftDataStore
//
//  Created by <NAME> on 2/5/17.
//  Copyright © 2017 <NAME>. All rights reserved.
//

public struct Snapshot {
    let record: Record?
    let adapterOptions: AnyHashableJSON
    
    var id: ID? {
        return record?.id
    }
    
    func json() -> JSON? {
        return record?.toJSON()
    }
    
    init(record: Record? = nil, adapterOptions: AnyHashableJSON = AnyHashableJSON()) {
        self.record = record
        self.adapterOptions = adapterOptions
    }
}
{'fraction_non_alphanumeric': 0.12564766839378239, 'fraction_numerical': 0.02072538860103627, 'mean_word_length': 2.3175965665236054, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 8, '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': '7042301', 'n_tokens_mistral': 258, 'n_tokens_neox': 238, 'n_words': 68}