<commit_before>//
//  ViewController.swift
//  AlertExample
//
//  Created by Domenico on 04/05/15.
//  License MIT
//

import UIKit

class ViewController: UIViewController {

    // Alert controller
    var controller: UIAlertController?
    
    override func viewDidLoad() {
        super.viewDidLoad()
        // Initializing the AlertController
        controller = UIAlertController(title: "Title", message: "Message", preferredStyle: UIAlertControllerStyle.Alert)
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }


}

<commit_msg>Added action tAdded action to the controller; Presenting the controller<commit_after>//
//  ViewController.swift
//  AlertExample
//
//  Created by Domenico on 04/05/15.
//  License MIT
//

import UIKit

class ViewController: UIViewController {

    // Alert controller
    var controller: UIAlertController?
    
    override func viewDidLoad() {
        super.viewDidLoad()
        // Initializing the AlertController
        controller = UIAlertController(title: "Title", message: "Message", preferredStyle: UIAlertControllerStyle.Alert)
        
        // Creating an action
        var action = UIAlertAction(title: "My action", style: UIAlertActionStyle.Default){ (paramAction: UIAlertAction!) in
                println("The button was tapped")
        }
        
        controller!.addAction(action)
    }

    override func viewDidAppear(animated: Bool) {
        self.presentViewController(controller!, animated: true, completion: nil)
    }


}


{'fraction_non_alphanumeric': 0.09283489096573208, 'fraction_numerical': 0.007476635514018692, 'mean_word_length': 2.7699530516431925, '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': '7148340', 'n_tokens_mistral': 454, 'n_tokens_neox': 416, 'n_words': 116}