<commit_before>//
//  AppDelegate.swift
//  StatusbarCountdown
//
//  Created by <NAME> on 31/03/2015.
//  Copyright (c) 2015 <NAME>. All rights reserved.
//

import Cocoa

@NSApplicationMain
class AppDelegate: NSObject, NSApplicationDelegate {
    
    let countToDate = NSDate(timeIntervalSince1970: 1431000000)

    let statusItem = NSStatusBar.systemStatusBar().statusItemWithLength(-1)
    @IBOutlet weak var statusMenu: NSMenu!

    func applicationDidFinishLaunching(aNotification: NSNotification) {

        statusItem.title = "Countdown"
        statusItem.menu = statusMenu

        // Run tick() once a second
        NSTimer.scheduledTimerWithTimeInterval(1, target: self, selector: "tick", userInfo: nil, repeats: true)

    }

    func tick() {
        let now = NSDate()
        let diff = Int(countToDate.timeIntervalSinceDate(now))

        statusItem.title = String(diff)
    }

    @IBAction func quitApplication(sender: NSMenuItem) {
        NSApplication.sharedApplication().terminate(self);
    }

}<commit_msg>Prepend hardcoded countdown name<commit_after>//
//  AppDelegate.swift
//  StatusbarCountdown
//
//  Created by <NAME> on 31/03/2015.
//  Copyright (c) 2015 <NAME>. All rights reserved.
//

import Cocoa

@NSApplicationMain
class AppDelegate: NSObject, NSApplicationDelegate {
    
    let countToDate = NSDate(timeIntervalSince1970: 1431000000)
    let countdownName = "Diss"

    let statusItem = NSStatusBar.systemStatusBar().statusItemWithLength(-1)
    @IBOutlet weak var statusMenu: NSMenu!

    func applicationDidFinishLaunching(aNotification: NSNotification) {

        statusItem.title = "Countdown"
        statusItem.menu = statusMenu

        // Run tick() once a second
        NSTimer.scheduledTimerWithTimeInterval(1, target: self, selector: "tick", userInfo: nil, repeats: true)

    }

    func tick() {
        let now = NSDate()
        let diff = Int(countToDate.timeIntervalSinceDate(now))

        statusItem.title = countdownName + ": " + String(diff)
    }

    @IBAction func quitApplication(sender: NSMenuItem) {
        NSApplication.sharedApplication().terminate(self);
    }

}
{'fraction_non_alphanumeric': 0.10378681626928471, 'fraction_numerical': 0.026180458158017766, 'mean_word_length': 3.2544731610337974, 'pattern_counts': {'":': 1, '<': 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': '6595590', 'n_tokens_mistral': 686, 'n_tokens_neox': 621, 'n_words': 147}