<commit_before>//
//  TaskManDocument.swift
//  TaskMan
//
//  Created by <NAME> on 06/12/16.
//  Copyright © 2016 <NAME>. All rights reserved.
//

import Cocoa
import SwiftyJSON

class TaskManDocument: NSDocument {
    
    var taskManState = TaskManState(range: DateRange(startDate: Date(),endDate: Date().addingTimeInterval(8 * 60 * 60)))
    
    override func makeWindowControllers() {
        let storyboard = NSStoryboard(name: "Main", bundle: nil)
        let windowController = storyboard.instantiateController(withIdentifier: "Document View Controller") as! NSWindowController
        self.addWindowController(windowController)<commit_msg>Making the default name for documents the current date + 'Tasks'<commit_after>//
//  TaskManDocument.swift
//  TaskMan
//
//  Created by <NAME> on 06/12/16.
//  Copyright © 2016 <NAME>. All rights reserved.
//

import Cocoa
import SwiftyJSON

class TaskManDocument: NSDocument {
    
    var taskManState = TaskManState(range: DateRange(startDate: Date(),endDate: Date().addingTimeInterval(8 * 60 * 60)))
    
    override func defaultDraftName() -> String {
        let now = Date()
        
        let formatter = DateFormatter()
        formatter.dateFormat = DateFormatter.dateFormat(fromTemplate: "yyyyMMdd", options: 0, locale: nil)
        
        return "\(formatter.string(from: now)) Tasks"
    }
    
    override func makeWindowControllers() {
        let storyboard = NSStoryboard(name: "Main", bundle: nil)
        let windowController = storyboard.instantiateController(withIdentifier: "Document View Controller") as! NSWindowController
        self.addWindowController(windowController)
{'fraction_non_alphanumeric': 0.10647307924984876, 'fraction_numerical': 0.018753781004234724, 'mean_word_length': 3.494565217391304, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '334544', 'n_tokens_mistral': 496, 'n_tokens_neox': 459, 'n_words': 125}