<commit_before>//
//  TopicWithUserInfo.swift
//  TypetalkKit
//
//  Created by <NAME> on 2014/09/21.
//  Copyright (c) 2014年 Safx Developers. All rights reserved.
//

import Foundation
import JSONHelper

public class TopicWithUserInfo : Deserializable, ObjcBase {
    public let topic: Topic = Topic()
    public let favorite: Bool = false
    public let unread: Unread? = nil
    
    required public init() {}

    required public init(data: [String: AnyObject]) {
        topic    <<<< data["topic"]
        favorite <<<  data["favorite"]
        unread   <<<< data["unread"]
    }
}<commit_msg>add init function<commit_after>//
//  TopicWithUserInfo.swift
//  TypetalkKit
//
//  Created by <NAME> on 2014/09/21.
//  Copyright (c) 2014年 Safx Developers. All rights reserved.
//

import Foundation
import JSONHelper

public class TopicWithUserInfo : Deserializable, ObjcBase {
    public let topic: Topic = Topic()
    public let favorite: Bool = false
    public let unread: Unread? = nil

    required public init() {}

    public init(topic: Topic, favorite: Bool = false, unread: Unread? = nil) {
        self.topic = topic
        self.favorite = favorite
        self.unread = unread
    }

    required public init(data: [String: AnyObject]) {
        topic    <<<< data["topic"]
        favorite <<<  data["favorite"]
        unread   <<<< data["unread"]
    }
}
{'fraction_non_alphanumeric': 0.12235979606700656, 'fraction_numerical': 0.01747997086671522, 'mean_word_length': 2.7035040431266846, 'pattern_counts': {'":': 0, '<': 27, '<?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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '653243', 'n_tokens_mistral': 453, 'n_tokens_neox': 420, 'n_words': 125}