<commit_before>//
//  SIApplication+Amethyst.swift
//  Amethyst
//
//  Created by <NAME> on 5/8/16.
//  Copyright © 2016 <NAME>. All rights reserved.
//

import Foundation
import Silica

extension SIApplication {
    func defaultFloatForWindowWithTitle(_ windowTitle: String?) -> DefaultFloat {
        guard let runningApplication = NSRunningApplication(processIdentifier: processIdentifier()) else {
            return .notFloating
        }

        return UserConfiguration.shared.runningApplication(runningApplication, byDefaultFloatsForTitle: windowTitle)
    }

    func observe(notification: String, with accessibilityElement: SIAccessibilityElement, handler: @escaping SIAXNotificationHandler) -> Bool {
        return observeNotification(notification as CFString, with: accessibilityElement, handler: handler)
    }
}<commit_msg>Fix some incorrectly flipped logic in floating for apps<commit_after>//
//  SIApplication+Amethyst.swift
//  Amethyst
//
//  Created by <NAME> on 5/8/16.
//  Copyright © 2016 <NAME>. All rights reserved.
//

import Foundation
import Silica

extension SIApplication {
    func defaultFloatForWindowWithTitle(_ windowTitle: String?) -> DefaultFloat {
        guard let runningApplication = NSRunningApplication(processIdentifier: processIdentifier()) else {
            return .floating
        }

        return UserConfiguration.shared.runningApplication(runningApplication, byDefaultFloatsForTitle: windowTitle)
    }

    func observe(notification: String, with accessibilityElement: SIAccessibilityElement, handler: @escaping SIAXNotificationHandler) -> Bool {
        return observeNotification(notification as CFString, with: accessibilityElement, handler: handler)
    }
}
{'fraction_non_alphanumeric': 0.08386721025043681, 'fraction_numerical': 0.009318578916715201, 'mean_word_length': 4.067846607669616, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 11, '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': '5388208', 'n_tokens_mistral': 448, 'n_tokens_neox': 419, 'n_words': 120}