<commit_before>//
//  UIApplication+Utilities.swift
//  swiftlets
//
//  Created by <NAME> on 6/11/16.
//  Copyright © 2016 <NAME>. All rights reserved.
//

import Foundation

extension UIApplication {
    static var isSimulator: Bool {
        return TARGET_OS_SIMULATOR != 0
    }
    
    class func jumpOutToAppPreferences() {
        guard let settingsURL:NSURL = NSURL(string: UIApplicationOpenSettingsURLString)
            where UIApplication.sharedApplication().canOpenURL(settingsURL) else {
                return
        }
        
        UIApplication.sharedApplication().openURL(settingsURL)
    }
}<commit_msg>Fixing bug in UIApplication utilities<commit_after>//
//  UIApplication+Utilities.swift
//  swiftlets
//
//  Created by <NAME> on 6/11/16.
//  Copyright © 2016 <NAME>. All rights reserved.
//

import UIKit

extension UIApplication {
    static var isSimulator: Bool {
        return TARGET_OS_SIMULATOR != 0
    }
    
    class func jumpOutToAppPreferences() {
        guard let settingsURL:NSURL = NSURL(string: UIApplicationOpenSettingsURLString)
            where UIApplication.sharedApplication().canOpenURL(settingsURL) else {
                return
        }
        
        UIApplication.sharedApplication().openURL(settingsURL)
    }
}
{'fraction_non_alphanumeric': 0.09284028324154209, 'fraction_numerical': 0.015735641227380016, 'mean_word_length': 2.603399433427762, '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': '916299', 'n_tokens_mistral': 373, 'n_tokens_neox': 350, 'n_words': 82}