<commit_before>import UIKit

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {

    var window: UIWindow?

    func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
        FORMDefaultStyle.applyStyle()

        self.window = UIWindow(frame: UIScreen.mainScreen().bounds)

        let initialValues: Dictionary<NSObject, AnyObject> = [
            "address"    : "Burger Park 667",
            "end_date"   : "2017-10-31 23:00:00 +00:00",
            "first_name" : "Ola",
            "last_name"  : "Nordman",
            "start_date" : "2014-10-31 23:00:00 +00:00"]
        var JSON: AnyObject? = NSJSONSerialization.JSONObjectWithContentsOfFile("forms.json")

        if (JSON != nil) {
            let sampleController = SampleCollectionViewController(initialValues: initialValues, JSON: JSON)
            let rootViewController = UINavigationController(rootViewController: sampleController)

            rootViewController.view.tintColor = UIColor(fromHex: "5182AF")
            rootViewController.navigationBarHidden = true

            self.window?.rootViewController = rootViewController
            self.window?.makeKeyAndVisible()
        }

        return true
    }

}
<commit_msg>Refactor AppDelegate<commit_after>import UIKit

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {

    var window: UIWindow?

    func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {

        if let JSON: AnyObject? = NSJSONSerialization.JSONObjectWithContentsOfFile("forms.json") {
            let initialValues: Dictionary<NSObject, AnyObject> = [
                "address"    : "Burger Park 667",
                "end_date"   : "2017-10-31 23:00:00 +00:00",
                "first_name" : "Ola",
                "last_name"  : "Nordman",
                "start_date" : "2014-10-31 23:00:00 +00:00"]
            let sampleController = SampleCollectionViewController(initialValues: initialValues, JSON: JSON)
            let rootViewController = UINavigationController(rootViewController: sampleController)

            rootViewController.view.tintColor = UIColor(fromHex: "5182AF")
            rootViewController.navigationBarHidden = true

            FORMDefaultStyle.applyStyle()

            self.window = UIWindow(frame: UIScreen.mainScreen().bounds)
            self.window?.rootViewController = rootViewController
            self.window?.makeKeyAndVisible()
        }

        return true
    }

}

{'fraction_non_alphanumeric': 0.09645061728395062, 'fraction_numerical': 0.033179012345679014, 'mean_word_length': 2.8586309523809526, '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': '6978854', 'n_tokens_mistral': 775, 'n_tokens_neox': 680, 'n_words': 137}