<commit_before>//
//  ViewController.swift
//  Fizzbuzz
//
//  Created by <NAME> on 2014-12-20.
//  Copyright (c) 2014 <NAME>. All rights reserved.
//

import UIKit

class ViewController: UIViewController {
  
  // MARK: UI
  
  @IBOutlet weak var inputTextField: UITextField!
  @IBOutlet weak var computeButton: UIButton!
  @IBOutlet weak var outputTextField: UITextField!
  
  
  // MARK: View Controller Lifecycle
  
  override func viewDidLoad() {
    super.viewDidLoad()
  } // viewDidLoad
  
  
  // MARK: Button Handlers
  
  @IBAction func computeButtonPressed(sender: AnyObject) {
    
    // TODO: handle invalid input
    let inputNum:Int? = inputTextField.text.toInt()!<commit_msg>Handle invalid input.<commit_after>//
//  ViewController.swift
//  Fizzbuzz
//
//  Created by <NAME> on 2014-12-20.
//  Copyright (c) 2014 <NAME>. All rights reserved.
//

import UIKit

class ViewController: UIViewController {
  
  // MARK: UI
  
  @IBOutlet weak var inputTextField: UITextField!
  @IBOutlet weak var computeButton: UIButton!
  @IBOutlet weak var outputTextField: UITextField!
  
  
  // MARK: View Controller Lifecycle
  
  override func viewDidLoad() {
    super.viewDidLoad()
  } // viewDidLoad
  
  
  // MARK: Button Handlers
  
  @IBAction func computeButtonPressed(sender: AnyObject) {
    
    // handle invalid input
    let inputNum:Int? = inputTextField.text.toInt()
{'fraction_non_alphanumeric': 0.10598413842826243, 'fraction_numerical': 0.017303532804614274, 'mean_word_length': 2.977077363896848, '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': '395265', 'n_tokens_mistral': 482, 'n_tokens_neox': 443, 'n_words': 120}