<commit_before>//
//  BalanceHistoryList.swift
//  Stripe
//
//  Created by <NAME> on 4/15/17.
//
//

import Foundation
import Vapor

public final class BalanceHistoryList: StripeModelProtocol {
    
    public let object: String
    public let hasMore: Bool
    public let items: [BalanceTransactionItem]
    
    public init(node: Node) throws {
        self.object = try node.get("object")
        self.hasMore = try node.get("has_more")
        self.items = try node.get("data")
    }
    
    public func makeNode(in context: Context?) throws -> Node {
        return try Node(node: [
            "object": self.object,
            "has_more": self.hasMore,
            "data": self.items
        ])
    }
    
}
<commit_msg>Mode model read only.<commit_after>//
//  BalanceHistoryList.swift
//  Stripe
//
//  Created by <NAME> on 4/15/17.
//
//

import Foundation
import Vapor

public final class BalanceHistoryList: StripeModelProtocol {
    
    public private(set) var object: String?
    public private(set) var url: String?
    public private(set) var hasMore: Bool?
    public private(set) var items: [BalanceTransactionItem]?
    
    public init(node: Node) throws {
        self.object = try node.get("object")
        self.url = try node.get("url")
        self.hasMore = try node.get("has_more")
        self.items = try node.get("data")
    }
    
    public func makeNode(in context: Context?) throws -> Node {
        let object: [String : Any?] = [
            "object": self.object,
            "url": self.url,
            "has_more": self.hasMore,
            "data": self.items
        ]
        return try Node(node: object)
    }
}

{'fraction_non_alphanumeric': 0.12055455093429777, 'fraction_numerical': 0.006027727546714889, 'mean_word_length': 2.1800766283524906, 'pattern_counts': {'":': 7, '<': 5, '<?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': '362941', 'n_tokens_mistral': 519, 'n_tokens_neox': 506, 'n_words': 137}