<commit_before>//
//  AboutViewController.swift
//  Mirror++
//
//  Created by <NAME> on 12/15/16.
//  Copyright © 2016 Smith Industries. All rights reserved.
//

import UIKit
import MessageUI

class AboutViewController: UITableViewController, MFMailComposeViewControllerDelegate {

    override func viewDidLoad() {
        super.viewDidLoad()

        // Uncomment the following line to preserve selection between presentations
        // self.clearsSelectionOnViewWillAppear = false

        // Uncomment the following line to display an Edit button in the navigation bar for this view controller.
        // self.navigationItem.rightBarButtonItem = self.editButtonItem()
        
        let versionNumber = Bundle.main.object(forInfoDictionaryKey: "CFBundleShortVersionString") as! String
        let buildNumber = Bundle.main.object(forInfoDictionaryKey: "CFBundleVersion") as! String
        
        if var info = infoText.text {
            info = info.replacingOccurrences(of: "VERSION_NUMBER", with: versionNumber)
            info = info.replacingOccurrences(of: "BUILD_NUMBER", with: buildNumber)
            infoText.text = info
        }
        
    }
    
    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    
    @IBOutlet weak var infoText: UITextView!
    
    override func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
        
        var url:URL?<commit_msg>Deselect the row after following a link<commit_after>//
//  AboutViewController.swift
//  Mirror++
//
//  Created by <NAME> on 12/15/16.
//  Copyright © 2016 Smith Industries. All rights reserved.
//

import UIKit
import MessageUI

class AboutViewController: UITableViewController, MFMailComposeViewControllerDelegate {

    override func viewDidLoad() {
        super.viewDidLoad()

        // Uncomment the following line to preserve selection between presentations
        // self.clearsSelectionOnViewWillAppear = false

        // Uncomment the following line to display an Edit button in the navigation bar for this view controller.
        // self.navigationItem.rightBarButtonItem = self.editButtonItem()
        
        let versionNumber = Bundle.main.object(forInfoDictionaryKey: "CFBundleShortVersionString") as! String
        let buildNumber = Bundle.main.object(forInfoDictionaryKey: "CFBundleVersion") as! String
        
        if var info = infoText.text {
            info = info.replacingOccurrences(of: "VERSION_NUMBER", with: versionNumber)
            info = info.replacingOccurrences(of: "BUILD_NUMBER", with: buildNumber)
            infoText.text = info
        }
        
    }
    
    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    
    @IBOutlet weak var infoText: UITextView!
    
    override func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
        
        tableView.deselectRow(at: indexPath, animated: true)
        
        var url:URL?
{'fraction_non_alphanumeric': 0.07751441383728379, 'fraction_numerical': 0.0064061499039077515, 'mean_word_length': 2.7581227436823106, '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': '6590484', 'n_tokens_mistral': 864, 'n_tokens_neox': 802, 'n_words': 235}