<commit_before>//
//  BusStop.swift
//  testTables
//
//  Created by <NAME> on 22/10/16.
//  Copyright © 2016 Software Craftsmanship Toledo. All rights reserved.
//

import Foundation
import Marshal

struct BusStop : Unmarshaling {
    
    let address: String
    let id: String
    let latitude: Double
    let longitude: Double
    let routeId: String
    
    init(object: MarshaledObject) throws {
        address = try object.value(for: "address")
        id = try object.value(for: "id")
        latitude = try object.value(for: "latitude")
        longitude = try object.value(for: "longitude")
        routeId = try object.value(for: "routeId")
    }
}<commit_msg>Make property optional because in some cases it isn’t present<commit_after>//
//  BusStop.swift
//  testTables
//
//  Created by <NAME> on 22/10/16.
//  Copyright © 2016 Software Craftsmanship Toledo. All rights reserved.
//

import Foundation
import Marshal

struct BusStop : Unmarshaling {
    
    let address: String
    let id: String
    let latitude: Double
    let longitude: Double
    let routeId: String?
    
    init(object: MarshaledObject) throws {
        address = try object.value(for: "address")
        id = try object.value(for: "id")
        latitude = try object.value(for: "latitude")
        longitude = try object.value(for: "longitude")
        routeId = try? object.value(for: "routeId")
    }
}
{'fraction_non_alphanumeric': 0.10816618911174786, 'fraction_numerical': 0.014326647564469915, 'mean_word_length': 2.657068062827225, 'pattern_counts': {'":': 0, '<': 5, '<?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': '6316273', 'n_tokens_mistral': 446, 'n_tokens_neox': 420, 'n_words': 133}