<commit_before>//
//  SemanticsWindowController.swift
//  Barliman
//
//  Created by <NAME> on 5/29/16.
//  Copyright © 2016 <NAME>.
//  Released under MIT License (see LICENSE file)

import Cocoa

class SemanticsWindowController: NSWindowController {

    // Making this a weak reference seems to cause a runtime error.  Why?
    @IBOutlet var evaluationRulesView: NSTextView!

    override var windowNibName: String? {
        return "SemanticsWindowController"
    }

    override func windowDidLoad() {
        super.windowDidLoad()
        
        // Implement this method to handle any initialization after your window controller's window has been loaded from its nib file.
        
        // from http://stackoverflow.com/questions/19801601/nstextview-with-smart-quotes-disabled-still-replaces-quotes
        evaluationRulesView.automaticQuoteSubstitutionEnabled = false
    }

    func cleanup() {
        // application is about to quit -- clean up!
    }

}<commit_msg>working on adding default evaluation rules<commit_after>//
//  SemanticsWindowController.swift
//  Barliman
//
//  Created by <NAME> on 5/29/16.
//  Copyright © 2016 <NAME>.
//  Released under MIT License (see LICENSE file)

import Cocoa

class SemanticsWindowController: NSWindowController {

    // Making this a weak reference seems to cause a runtime error.  Why?
    @IBOutlet var evaluationRulesView: NSTextView!

    override var windowNibName: String? {
        return "SemanticsWindowController"
    }

    override func windowDidLoad() {
        super.windowDidLoad()
        
        // Implement this method to handle any initialization after your window controller's window has been loaded from its nib file.
        
        // from http://stackoverflow.com/questions/19801601/nstextview-with-smart-quotes-disabled-still-replaces-quotes
        evaluationRulesView.automaticQuoteSubstitutionEnabled = false
        
        evaluationRulesView.textStorage?.setAttributedString(NSAttributedString(string: "(foo)"))
        
    }
    

    func cleanup() {
        // application is about to quit -- clean up!
    }

}
{'fraction_non_alphanumeric': 0.08428030303030302, 'fraction_numerical': 0.016098484848484848, 'mean_word_length': 2.793536804308797, 'pattern_counts': {'":': 0, '<': 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': '4034113', 'n_tokens_mistral': 619, 'n_tokens_neox': 563, 'n_words': 171}