<commit_before> //
//  AppDelegate.swift
//  MiniTwitter
//
//  Created by kkr on 25/03/2017.
//  Copyright © 2017 allting. All rights reserved.
//

import Cocoa

@NSApplicationMain
class AppDelegate: NSObject, NSApplicationDelegate {
    var window: NSWindow!
    var contentView: NSVisualEffectView!
    
    func applicationDidFinishLaunching(_ aNotification: Notification) {
        window = NSApplication.shared().windows.last!
        window.styleMask.insert(.fullSizeContentView)
        window.titleVisibility = .hidden
        window.titlebarAppearsTransparent = true
        window.isMovableByWindowBackground = true
        
//        contentView = window.contentView as! NSVisualEffectView
//        
//        self.contentView?.blendingMode = NSVisualEffectBlendingMode.behindWindow
//        self.contentView?.state = NSVisualEffectState.active
  
//        let blurryView = NSVisualEffectView(frame: NSRect(x: 0, y: 0, width: 800, height: 600))
//        blurryView.blendingMode = NSVisualEffectBlendingMode.behindWindow
//        blurryView.material = NSVisualEffectMaterial.dark
//        blurryView.state = NSVisualEffectState.active
//        
//        window.contentView?.addSubview(blurryView)
<commit_msg>Add window level to make topmost<commit_after> //
//  AppDelegate.swift
//  MiniTwitter
//
//  Created by kkr on 25/03/2017.
//  Copyright © 2017 allting. All rights reserved.
//

import Cocoa

@NSApplicationMain
class AppDelegate: NSObject, NSApplicationDelegate {
    var window: NSWindow!
    var contentView: NSVisualEffectView!
    
    func applicationDidFinishLaunching(_ aNotification: Notification) {
        window = NSApplication.shared().windows.last!
        window.styleMask.insert(.fullSizeContentView)
        window.titleVisibility = .hidden
        window.titlebarAppearsTransparent = true
        window.isMovableByWindowBackground = true
        window.level = Int(CGWindowLevelForKey(.floatingWindow))
        
//        contentView = window.contentView as! NSVisualEffectView
//        
//        self.contentView?.blendingMode = NSVisualEffectBlendingMode.behindWindow
//        self.contentView?.state = NSVisualEffectState.active
  
//        let blurryView = NSVisualEffectView(frame: NSRect(x: 0, y: 0, width: 800, height: 600))
//        blurryView.blendingMode = NSVisualEffectBlendingMode.behindWindow
//        blurryView.material = NSVisualEffectMaterial.dark
//        blurryView.state = NSVisualEffectState.active
//        
//        window.contentView?.addSubview(blurryView)

{'fraction_non_alphanumeric': 0.09330708661417322, 'fraction_numerical': 0.015748031496062992, 'mean_word_length': 2.989010989010989, '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': '2858699', 'n_tokens_mistral': 753, 'n_tokens_neox': 696, 'n_words': 141}