<commit_before>//
//  Alerts.swift
//  GreatStuff
//
//  Created by <NAME> on 30.12.15.
//  Copyright © 2015 <NAME>. All rights reserved.
//  Website: http://arsenkin.com
//

import UIKit
import WatchKit

public struct GSAlerts {
    
    private init() {}
    
    public static func informationalAlertWithMessage(message: String, title: String = "") -> UIAlertController {
        return alertWithTitle(title, message: message)
    }
    
    public static func errorAlertWithMessage(message: String, title: String = "Error") -> UIAlertController {
        return alertWithTitle(title, message: message)
    }

}

// MARK: - Private

extension GSAlerts {
    
    private static func alertWithTitle(title: String, message: String) -> UIAlertController {
        let alert = UIAlertController(title: title, message: message, preferredStyle: .Alert)
        let OKAction = UIAlertAction(title: "OK", style: .Default, handler: { (action) -> Void in
            alert.dismissViewControllerAnimated(true, completion: nil)
        })
        alert.addAction(OKAction)
        
        return alert
    }
    
}
<commit_msg>Removes redundant WatchKit framework import statement<commit_after>//
//  Alerts.swift
//  GreatStuff
//
//  Created by <NAME> on 30.12.15.
//  Copyright © 2015 <NAME>. All rights reserved.
//  Website: http://arsenkin.com
//

import UIKit

public struct GSAlerts {
    
    private init() {}
    
    public static func informationalAlertWithMessage(message: String, title: String = "") -> UIAlertController {
        return alertWithTitle(title, message: message)
    }
    
    public static func errorAlertWithMessage(message: String, title: String = "Error") -> UIAlertController {
        return alertWithTitle(title, message: message)
    }

}

// MARK: - Private

extension GSAlerts {
    
    private static func alertWithTitle(title: String, message: String) -> UIAlertController {
        let alert = UIAlertController(title: title, message: message, preferredStyle: .Alert)
        let OKAction = UIAlertAction(title: "OK", style: .Default, handler: { (action) -> Void in
            alert.dismissViewControllerAnimated(true, completion: nil)
        })
        alert.addAction(OKAction)
        
        return alert
    }
    
}

{'fraction_non_alphanumeric': 0.10786914235190097, 'fraction_numerical': 0.008841732979664015, 'mean_word_length': 2.822635135135135, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 15, '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': '3734218', 'n_tokens_mistral': 662, 'n_tokens_neox': 627, 'n_words': 177}