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

import UIKit

class ViewController: UIViewController {

    //Weak reference to the label
    @IBOutlet weak var demoLabel: UILabel!
    
    //This is run each time the view controller it loaded
    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 doDemo(sender: AnyObject) {
        
        //Useful closure to extract the time in a given format
        let time = { (format : String) -> String in
            let date = NSDate()
            let fmt = NSDateFormatter()
            fmt.dateFormat = format
            let desc = fmt.stringFromDate(date)
            return desc
        }
        
        //Update the label to show the current time
        self.demoLabel.text = time("HH:mm:ss")
    }

}
<commit_msg>more meaningful names<commit_after>//
//  ViewController.swift
//  Demo
//
//  Created by <NAME> on 17/12/2014.
//  Copyright (c) 2014 <NAME>. All rights reserved.
//

import UIKit

class ViewController: UIViewController {

    //Weak reference to the label
    @IBOutlet weak var demoLabel: UILabel!
    
    //This is run each time the view controller it loaded
    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 doDemo(sender: AnyObject) {
        
        //Useful closure to extract the time in a given format
        let time = { (format : String) -> String in
            let date = NSDate()
            let formatter = NSDateFormatter()
            formatter.dateFormat = format
            let desc = formatter.stringFromDate(date)
            return desc
        }
        
        //Update the label to show the current time
        self.demoLabel.text = time("HH:mm:ss")
    }

}

{'fraction_non_alphanumeric': 0.08608695652173913, 'fraction_numerical': 0.010434782608695653, 'mean_word_length': 2.0157273918741807, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, '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': '2268275', 'n_tokens_mistral': 662, 'n_tokens_neox': 618, 'n_words': 224}