<commit_before>//
//  MainViewController.swift
//  Transitions
//
//  Created by <NAME> on 19/01/2016.
//  Copyright © 2016 <NAME>. All rights reserved.
//

import UIKit
import SimpleLogger

class MainViewController: BaseViewController {
    
    fileprivate let cellTitles: [String] = [
        "Transitioning Left",
        "Transitioning Right",
        "Transitioning Up",
        "Transitioning Down"
    ]
    
    // MARK: - Properties
    @IBOutlet weak var functionalitesTableView: UITableView!
    
    // MARK: - Life cycle
    override func viewDidLoad() {
        super.viewDidLoad()
        
        self.configure_appearance()
        self.configure(self.functionalitesTableView)
    }
}

// MARK: - UI configurations
fileprivate extension MainViewController {
    
    fileprivate func configure_appearance() {
        self.title = "Transitions"
    }
    
    fileprivate func configure(_ tableView: UITableView) {
        tableView.register(BaseTableViewCell.self, forCellReuseIdentifier: NSStringFromClass(BaseTableViewCell.self))<commit_msg>updated `MainViewController.swift` - using view model object (base implementation)<commit_after>//
//  MainViewController.swift
//  Transitions
//
//  Created by <NAME> on 19/01/2016.
//  Copyright © 2016 <NAME>. All rights reserved.
//

import UIKit
import SimpleLogger

import SimpleLogger

class MainViewController: BaseViewController, MainViewModelConsumable {
    
    fileprivate let cellTitles: [String] = [
        "Transitioning Left",
        "Transitioning Right",
        "Transitioning Up",
        "Transitioning Down"
    ]
    
    // MARK: - Properties
    @IBOutlet weak var functionalitesTableView: UITableView!
    
    // MARK: - MainViewModelConsumable protocol
    fileprivate(set) var viewModel: MainViewModelable?
    func updateViewModel(_ viewModel: MainViewModelable?) {
        self.viewModel = viewModel
    }
    
    // MARK: - Initialization
    required init?(coder aDecoder: NSCoder) {
        super.init(coder: aDecoder)
    }
    
    deinit {
        Logger.debug.message("\(String(describing: MainViewController.self)) deinitialized")
    }
    
    // MARK: - Life cycle
    override func viewDidLoad() {
        super.viewDidLoad()
        
        self.configure_appearance()
        self.configure(self.functionalitesTableView)
    }
    
    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }    
}

// MARK: - UI configurations
fileprivate extension MainViewController {
    
    fileprivate func configure_appearance() {
        self.title = "Transitions"
    }
    
    fileprivate func configure(_ tableView: UITableView) {
        tableView.register(BaseTableViewCell.self, forCellReuseIdentifier: NSStringFromClass(BaseTableViewCell.self))
{'fraction_non_alphanumeric': 0.09135628952916373, 'fraction_numerical': 0.008432888264230498, 'mean_word_length': 2.7758620689655173, 'pattern_counts': {'":': 0, '<': 7, '<?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': '4671932', 'n_tokens_mistral': 828, 'n_tokens_neox': 769, 'n_words': 184}