<commit_before>//
//  Created by <NAME> on 23/04/16.
//  Copyright © 2016 Blurred Software SL. All rights reserved.
//

import UIKit
import Cartography

class LaunchScreenViewController: UIViewController {
    
    var controllerToPresentOnAppereance: UIViewController?
    
    override func loadView() {
        //Folks, don't do this at home!
        let baseVC = UIStoryboard(name: "LaunchScreen", bundle: NSBundle.mainBundle()).instantiateInitialViewController()!
        let view = baseVC.view
        baseVC.view = nil
        self.view = view
    }
    
    override func viewDidAppear(animated: Bool) {
        super.viewDidAppear(animated)
        if let controllerToPresentOnAppereance = controllerToPresentOnAppereance {
            presentViewController(controllerToPresentOnAppereance, animated: true, completion: nil)
        }
    }
}

class OnboardingViewController: UIViewController {

    weak var onboardingObserver: OnboardingObserver!
    weak var onboardingDataSource: OnboardingDataSource!
    static let Spacing: CGFloat = 10
    let contentView = UIView()
    
    let socialStackView: UIStackView = {
        let stackView = UIStackView()
        stackView.axis = .Vertical
        stackView.alignment = .Fill
        stackView.distribution = .FillProportionally<commit_msg>Remove reference to the controllerToPresentOnAppereance after it's presented<commit_after>//
//  Created by <NAME> on 23/04/16.
//  Copyright © 2016 Blurred Software SL. All rights reserved.
//

import UIKit
import Cartography

class LaunchScreenViewController: UIViewController {
    
    var controllerToPresentOnAppereance: UIViewController?
    
    override func loadView() {
        //Folks, don't do this at home!
        let baseVC = UIStoryboard(name: "LaunchScreen", bundle: NSBundle.mainBundle()).instantiateInitialViewController()!
        let view = baseVC.view
        baseVC.view = nil
        self.view = view
    }
    
    override func viewDidAppear(animated: Bool) {
        super.viewDidAppear(animated)
        if let controllerToPresentOnAppereance = controllerToPresentOnAppereance {
            presentViewController(controllerToPresentOnAppereance, animated: true, completion: nil)
            self.controllerToPresentOnAppereance = nil
        }
    }
}

class OnboardingViewController: UIViewController {

    weak var onboardingObserver: OnboardingObserver!
    weak var onboardingDataSource: OnboardingDataSource!
    static let Spacing: CGFloat = 10
    let contentView = UIView()
    
    let socialStackView: UIStackView = {
        let stackView = UIStackView()
        stackView.axis = .Vertical
        stackView.alignment = .Fill
        stackView.distribution = .FillProportionally
{'fraction_non_alphanumeric': 0.0724264705882353, 'fraction_numerical': 0.008823529411764706, 'mean_word_length': 3.135258358662614, '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': '6532000', 'n_tokens_mistral': 781, 'n_tokens_neox': 715, 'n_words': 192}