<commit_before>//
//  AppDelegate.swift
//  WWDC
//
//  Created by <NAME> on 18/04/15.
//  Copyright (c) 2015 <NAME>. All rights reserved.
//

import Cocoa

@NSApplicationMain
class AppDelegate: NSObject, NSApplicationDelegate {



    func applicationDidFinishLaunching(aNotification: NSNotification) {
        // continue any paused downloads
        VideoStore.SharedStore().initialize()
    }

    func applicationWillTerminate(aNotification: NSNotification) {
        // Insert code here to tear down your application
    }

<commit_msg>Main window can now be reopened after it's been closed by clicking the app's Dock icon<commit_after>//
//  AppDelegate.swift
//  WWDC
//
//  Created by <NAME> on 18/04/15.
//  Copyright (c) 2015 <NAME>. All rights reserved.
//

import Cocoa

@NSApplicationMain
class AppDelegate: NSObject, NSApplicationDelegate {



    var window: NSWindow?
	
    func applicationOpenUntitledFile(sender: NSApplication) -> Bool {
        window?.makeKeyAndOrderFront(nil)
        return false
    }

    func applicationDidFinishLaunching(aNotification: NSNotification) {
        // Keep a reference to the main application window
        window = NSApplication.sharedApplication().windows.last as! NSWindow?
        // continue any paused downloads
        VideoStore.SharedStore().initialize()
    }

    func applicationWillTerminate(aNotification: NSNotification) {
        // Insert code here to tear down your application
    }


{'fraction_non_alphanumeric': 0.08960328317373462, 'fraction_numerical': 0.013679890560875513, 'mean_word_length': 3.0752089136490253, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 8, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4000048', 'n_tokens_mistral': 425, 'n_tokens_neox': 381, 'n_words': 119}