<commit_before>//
//  ViewController.swift
//  AlertViewBotDemo
//
//  Created by Evgenii on 27/08/2015.
//  Copyright © 2015 <NAME>. All rights reserved.
//

import UIKit

class ViewController: UIViewController {

  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.
  }
  
  @IBAction func didTapOpenAlertButton(sender: AnyObject) {
    openAlertView()
  }
  
  private func openAlertView() {
    let title = "Email"
    
    let alertView = UIAlertView(title: title,
      message: "",
      delegate: nil, cancelButtonTitle: nil,
      otherButtonTitles: "OK", "Cancel")
    
    alertView.cancelButtonIndex = 1
    alertView.alertViewStyle = UIAlertViewStyle.PlainTextInput
    
    if let textField = alertView.textFieldAtIndex(0) {
      textField.placeholder = title
      textField.autocapitalizationType = UITextAutocapitalizationType.Sentences
      textField.autocorrectionType = UITextAutocorrectionType.Default
//      textField.font = UIFont.preferredFontForTextStyle(UIFontTextStyleBody)
//      textField.clearButtonMode = UITextFieldViewMode.Always
    }
    
    alertView.show()
  }
<commit_msg>Remove unnecessary code<commit_after>//
//  ViewController.swift
//  AlertViewBotDemo
//
//  Created by Evgenii on 27/08/2015.
//  Copyright © 2015 <NAME>. All rights reserved.
//

import UIKit

class ViewController: UIViewController {

  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.
  }
  
  @IBAction func didTapOpenAlertButton(sender: AnyObject) {
    openAlertView()
  }
  
  private func openAlertView() {
    let title = "Email"
    
    let alertView = UIAlertView(title: title,
      message: "",
      delegate: nil, cancelButtonTitle: nil,
      otherButtonTitles: "OK", "Cancel")
    
    alertView.cancelButtonIndex = 1
    alertView.alertViewStyle = UIAlertViewStyle.PlainTextInput
    
    if let textField = alertView.textFieldAtIndex(0) {
      textField.placeholder = title
      textField.autocapitalizationType = UITextAutocapitalizationType.Sentences
//      textField.autocorrectionType = UITextAutocorrectionType.Default
//      textField.font = UIFont.preferredFontForTextStyle(UIFontTextStyleBody)
//      textField.clearButtonMode = UITextFieldViewMode.Always
    }
    
    alertView.show()
  }

{'fraction_non_alphanumeric': 0.08799403430275914, 'fraction_numerical': 0.010439970171513796, 'mean_word_length': 3.2655007949125596, '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': '958162', 'n_tokens_mistral': 848, 'n_tokens_neox': 795, 'n_words': 182}