<commit_before>//
//  ViewController.swift
//  Clock
//
//  Created by 石韬 on 16/5/18.
//  Copyright © 2016年 石韬. All rights reserved.
//

import UIKit

class ViewController: UIViewController {
  
  // MARK: - Properties
  @IBOutlet weak var timeLabel: UILabel!
  let clock = Clock()
  
  
  // MARK: - Methods
  func updateTimeLabel() {
    let formatter = NSDateFormatter()
    formatter.timeStyle = .MediumStyle
    timeLabel.text = formatter.stringFromDate(clock.currentTime)
  }
  
  // MARK: - Life Cycle
  override func viewWillAppear(animated: Bool) {
    super.viewWillAppear(true)
    updateTimeLabel()
    NSTimer.scheduledTimerWithTimeInterval(1, target: self, selector: "updateTimeLabel", userInfo: nil, repeats: true)
  }
  
  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.
  }


}
<commit_msg>Clock<commit_after>//
//  ViewController.swift
//  Clock
//
//  Created by 石韬 on 16/5/18.
//  Copyright © 2016年 石韬. All rights reserved.
//

import UIKit

class ViewController: UIViewController {
  
  // MARK: - Properties
  @IBOutlet weak var timeLabel: UILabel!
  let clock = Clock()
  
  
  // MARK: - Methods
  func updateTimeLabel() {
    let formatter = NSDateFormatter()
    formatter.timeStyle = .MediumStyle
    timeLabel.text = formatter.stringFromDate(clock.currentTime)
  }
  
  // MARK: - Life Cycle
  override func viewWillAppear(animated: Bool) {
    super.viewWillAppear(true)
    updateTimeLabel()
    NSTimer.scheduledTimerWithTimeInterval(1, target: self, selector: "updateTimeLabel", userInfo: nil, repeats: true)
  }
  
  override func viewDidLoad() {
    super.viewDidLoad()
  }

  override func didReceiveMemoryWarning() {
    super.didReceiveMemoryWarning()
  }


}

{'fraction_non_alphanumeric': 0.10572916666666667, 'fraction_numerical': 0.010416666666666666, 'mean_word_length': 3.14902807775378, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '921143', 'n_tokens_mistral': 665, 'n_tokens_neox': 615, 'n_words': 154}