<commit_before>//
//  ViewController.swift
//  Sample
//
//  Created by <NAME> on 6/22/15.
//  Copyright (c) 2015 <NAME>. All rights reserved.
//

import UIKit
import Kamagari

class ViewController: UITableViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        // Do any additional setup after loading the view, typically from a nib.
    }

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


}

extension ViewController: UITableViewDelegate {
    override func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath) {
        tableView.deselectRowAtIndexPath(indexPath, animated: true)
        
        if indexPath.row == 0 {
            AlertBuilder(title: "Question", message: "Are you sure where Kamagari is?", preferredStyle: .Alert)
                .addAction(title: "NO", style: .Cancel) { _ in }
                .addAction(title: "YES", style: .Default) { _ in }
                .build()
                .kam_show(animated: true)
        } else {
            if UIDevice.currentDevice().userInterfaceIdiom != .Pad {
                // Sample to show on iPad
                AlertBuilder(title: "Question", message: "Are you sure where Kamagari is?", preferredStyle: .ActionSheet)
                    .addAction(title: "NO", style: .Cancel) { _ in }
                    .addAction(title: "YES", style: .Default) { _ in }<commit_msg>Fix the build error occurred on Xcode 7 beta 6<commit_after>//
//  ViewController.swift
//  Sample
//
//  Created by <NAME> on 6/22/15.
//  Copyright (c) 2015 <NAME>. All rights reserved.
//

import UIKit
import Kamagari

class ViewController: UITableViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        // Do any additional setup after loading the view, typically from a nib.
    }

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


}
// MARK: - UITableViewDelegate
extension ViewController {
    override func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath) {
        tableView.deselectRowAtIndexPath(indexPath, animated: true)
        
        if indexPath.row == 0 {
            AlertBuilder(title: "Question", message: "Are you sure where Kamagari is?", preferredStyle: .Alert)
                .addAction(title: "NO", style: .Cancel) { _ in }
                .addAction(title: "YES", style: .Default) { _ in }
                .build()
                .kam_show(animated: true)
        } else {
            if UIDevice.currentDevice().userInterfaceIdiom != .Pad {
                // Sample to show on iPad
                AlertBuilder(title: "Question", message: "Are you sure where Kamagari is?", preferredStyle: .ActionSheet)
                    .addAction(title: "NO", style: .Cancel) { _ in }
                    .addAction(title: "YES", style: .Default) { _ in }
{'fraction_non_alphanumeric': 0.10545335085413929, 'fraction_numerical': 0.007227332457293035, 'mean_word_length': 2.2777179763186224, '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': '3932451', 'n_tokens_mistral': 897, 'n_tokens_neox': 817, 'n_words': 250}