<commit_before>//
//  Dictionary+Helpers.swift
//
//  Created by <NAME> on 6/17/15.
//  Copyright (c) 2015 <NAME>. All rights reserved.
//

import Foundation
import CoreLocation
import CoreTelephony.CTTelephonyNetworkInfo
import CoreTelephony.CTCarrier

extension UIApplication {
    //MARK: - Safari
    
    public class func openUrl(url:NSURL?) {
        if let link = url where UIApplication.sharedApplication().canOpenURL(link) {
            UIApplication.sharedApplication().openURL(link)
        }
    }
    
    //MARK: - iTunes
    
    public class func openApplication(id:String) {
        let url = NSURL(string:"https://itunes.apple.com/app/id" + id)
        UIApplication.openUrl(url)
    }
    
    public class func openAppForReview(id:String) {
        let url = NSURL(string:"http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?pageNumber=0&sortOrdering=1&type=Purple+Software&mt=8&id=948650272" + id)
        UIApplication.openUrl(url)
    }
    
    //MARK: - Phone
    
    public static var canCall : Bool {
        get {
            return CTTelephonyNetworkInfo().subscriberCellularProvider?.isoCountryCode != nil
        }
    }
    
    public class func call(number:String) throws {
        let phoneURLString = "telprompt://" + number.stringByReplacingOccurrencesOfString("-", withString: "").stringByReplacingOccurrencesOfString(" ", withString: "")
        if UIApplication.canCall {<commit_msg>method name update<commit_after>//
//  Dictionary+Helpers.swift
//
//  Created by <NAME> on 6/17/15.
//  Copyright (c) 2015 <NAME>. All rights reserved.
//

import Foundation
import CoreLocation
import CoreTelephony.CTTelephonyNetworkInfo
import CoreTelephony.CTCarrier

extension UIApplication {
    //MARK: - Safari
    
    public class func openUrl(url:NSURL?) {
        if let link = url where UIApplication.sharedApplication().canOpenURL(link) {
            UIApplication.sharedApplication().openURL(link)
        }
    }
    
    //MARK: - iTunes
    
    public class func openAppItunes(id:String) {
        let url = NSURL(string:"https://itunes.apple.com/app/id" + id)
        UIApplication.openUrl(url)
    }
    
    public class func openAppForReview(id:String) {
        let url = NSURL(string:"http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?pageNumber=0&sortOrdering=1&type=Purple+Software&mt=8&id=948650272" + id)
        UIApplication.openUrl(url)
    }
    
    //MARK: - Phone
    
    public static var canCall : Bool {
        get {
            return CTTelephonyNetworkInfo().subscriberCellularProvider?.isoCountryCode != nil
        }
    }
    
    public class func call(number:String) throws {
        let phoneURLString = "telprompt://" + number.stringByReplacingOccurrencesOfString("-", withString: "").stringByReplacingOccurrencesOfString(" ", withString: "")
        if UIApplication.canCall {
{'fraction_non_alphanumeric': 0.11460131170176044, 'fraction_numerical': 0.014497756299620296, 'mean_word_length': 2.9536152796725785, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 2, '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': '3502560', 'n_tokens_mistral': 919, 'n_tokens_neox': 872, 'n_words': 166}