<commit_before>//
//  UIApplication+Utility.swift
//  GISTFramework
//
//  Created by <NAME> on 29/06/2016.
//  Copyright © 2016 Social Cubix. All rights reserved.
//

import UIKit

public extension UIApplication {
    class func topViewController(base: UIViewController) -> UIViewController? {
        if let nav = base as? UINavigationController {
            return topViewController(nav.visibleViewController!)
        }<commit_msg>Initial commit<commit_after>//
//  UIApplication+Utility.swift
//  GISTFramework
//
//  Created by <NAME> on 29/06/2016.
//  Copyright © 2016 Social Cubix. All rights reserved.
//

import UIKit

public extension UIApplication {
    public class func topViewController(base: UIViewController) -> UIViewController? {
        if let nav = base as? UINavigationController {
            return topViewController(nav.visibleViewController!)
        }
{'fraction_non_alphanumeric': 0.09772727272727273, 'fraction_numerical': 0.02727272727272727, 'mean_word_length': 3.136150234741784, 'pattern_counts': {'":': 0, '<': 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': '6125403', 'n_tokens_mistral': 265, 'n_tokens_neox': 233, 'n_words': 70}