<commit_before>import Cocoa
import Carbon

class AppDelegate: NSObject, NSApplicationDelegate {
                            
    @IBOutlet var window: NSWindow?
    @IBOutlet var parentView: NSView?
    @IBOutlet var menu: NSMenu?
    var statusItem: NSStatusItem?
    let keyHandler = KeyHandler()

    override init() {

    }

    func applicationDidFinishLaunching(_ aNotification: Notification) {
        WM2Helper.requestAccessibility()
        WM2Helper.setupWindow(window)
        keyHandler.setWindow(window!)
        keyHandler.setupView(parentView!)
        
        statusItem = NSStatusBar.system().statusItem(withLength: -1)
        statusItem!.menu = menu
        statusItem!.image = Bundle.main.image(forResource: "icon")
        statusItem!.highlightMode = true
    }

    func applicationWillTerminate(_ aNotification: Notification) {
        // Insert code here to tear down your application<commit_msg>Don’t request accessibility permissions<commit_after>import Cocoa
import Carbon

class AppDelegate: NSObject, NSApplicationDelegate {
                            
    @IBOutlet var window: NSWindow?
    @IBOutlet var parentView: NSView?
    @IBOutlet var menu: NSMenu?
    var statusItem: NSStatusItem?
    let keyHandler = KeyHandler()

    override init() {

    }

    func applicationDidFinishLaunching(_ aNotification: Notification) {
        //WM2Helper.requestAccessibility()
        WM2Helper.setupWindow(window)
        keyHandler.setWindow(window!)
        keyHandler.setupView(parentView!)
        
        statusItem = NSStatusBar.system().statusItem(withLength: -1)
        statusItem!.menu = menu
        statusItem!.image = Bundle.main.image(forResource: "icon")
        statusItem!.highlightMode = true
    }

    func applicationWillTerminate(_ aNotification: Notification) {
        // Insert code here to tear down your application
{'fraction_non_alphanumeric': 0.08066239316239317, 'fraction_numerical': 0.003205128205128205, 'mean_word_length': 2.8858921161825726, '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': '3672255', 'n_tokens_mistral': 512, 'n_tokens_neox': 482, 'n_words': 118}