<commit_before>//
//  UIApplication+Extensions.swift
//  SwiftWisdom
//
//  Created by <NAME> on 1/19/16.
//  Copyright © 2016 Intrepid. All rights reserved.
//

import UIKit

enum OpenSettingsError: Error {
    case cannotOpenURL
}

extension UIApplication {
    public func ip_openSettingsApp() throws {
        guard let url = URL(string: UIApplication.openSettingsURLString), canOpenURL(url) else {
            throw OpenSettingsError.cannotOpenURL
        }
        open(url)
    }
}
<commit_msg>Makes the pod Extension-compliant<commit_after>//
//  UIApplication+Extensions.swift
//  SwiftWisdom
//
//  Created by <NAME> on 1/19/16.
//  Copyright © 2016 Intrepid. All rights reserved.
//

import UIKit

enum OpenSettingsError: Error {
    case cannotOpenURL
}

extension UIApplication {

    @available(*, unavailable, message: "Call open(_:) directly using UIApplication.openSettingsURLString.\nSee ip_openSettingsApp source code for more details.")
    public func ip_openSettingsApp() throws {
        #if false
        guard let url = URL(string: UIApplication.openSettingsURLString), canOpenURL(url) else {
            throw OpenSettingsError.cannotOpenURL
        }
        open(url)
        #endif
    }
}

{'fraction_non_alphanumeric': 0.09598031173092698, 'fraction_numerical': 0.014766201804757998, 'mean_word_length': 2.973941368078176, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '5558647', 'n_tokens_mistral': 377, 'n_tokens_neox': 349, 'n_words': 96}