<commit_before>//
//  KUIViewController.swift
//  KofktuSDK
//
//  Created by kofktu on 2016. 7. 7..
//  Copyright © 2016년 Kofktu. All rights reserved.
//

import UIKit

open class KUIViewController: UIViewController {

    open var isFirstViewAppeared: Bool = true

    open override func viewWillDisappear(_ animated: Bool) {
        super.viewWillDisappear(animated)
        isFirstViewAppeared = false
    }
}<commit_msg>KUIViewController에 property 및 updateData function 추가<commit_after>//
//  KUIViewController.swift
//  KofktuSDK
//
//  Created by kofktu on 2016. 7. 7..
//  Copyright © 2016년 Kofktu. All rights reserved.
//

import UIKit

open class KUIViewController: UIViewController {

    public private(set) var isViewAppeared = false
    public private(set) var isFirstViewAppeared = true
    
    private var isNeedUpdateData = false

    open override func viewDidAppear(_ animated: Bool) {
        super.viewDidAppear(animated)
        isViewAppeared = true
        
        if isNeedUpdateData {
            updateDate()
        }
    }
    
    open override func viewWillDisappear(_ animated: Bool) {
        super.viewWillDisappear(animated)
        isViewAppeared = false
        isFirstViewAppeared = false
    }
    
    @objc func setNeedUpdateData() {
        isNeedUpdateData = true
        
        if isViewAppeared {
            updateDate()
        }
    }
    
    func updateDate() {
        isNeedUpdateData = false
    }
    
}
{'fraction_non_alphanumeric': 0.07665982203969883, 'fraction_numerical': 0.013689253935660506, 'mean_word_length': 2.315192743764172, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '2762655', 'n_tokens_mistral': 477, 'n_tokens_neox': 441, 'n_words': 114}