<commit_before>//
//  DKExtensions.swift
//  <NAME>
//
//  Created by <NAME> on 24/09/14.
//  Copyright (c) 2015 <NAME>. All rights reserved.
//

import Foundation
import CoreTelephony

// MARK: - Debug

func DKLog(verbose: Bool, obj: AnyObject) {
    #if DEBUG
        if (verbose == true) {
            println(obj)
        }
        #else
        // do nothing
    #endif
}

// MARK: - Classes

class PopToRootViewControllerSegue : UIStoryboardSegue {
    override func perform() {
        (self.sourceViewController as? UIViewController)?.navigationController?.popToRootViewControllerAnimated(true)
    }
}

class PopViewControllerSegue : UIStoryboardSegue {
    override func perform() {
        (self.sourceViewController as? UIViewController)?.navigationController?.popViewControllerAnimated(true)
    }
}
<commit_msg>SKProduct: add lcoalised price function<commit_after>//
//  DKExtensions.swift
//  <NAME>
//
//  Created by <NAME> on 24/09/14.
//  Copyright (c) 2015 <NAME>. All rights reserved.
//

import Foundation
import CoreTelephony

// MARK: - Debug

func DKLog(verbose: Bool, obj: AnyObject) {
    #if DEBUG
        if (verbose == true) {
            println(obj)
        }
        #else
        // do nothing
    #endif
}

// MARK: - Classes

class PopToRootViewControllerSegue : UIStoryboardSegue {
    override func perform() {
        (self.sourceViewController as? UIViewController)?.navigationController?.popToRootViewControllerAnimated(true)
    }
}

class PopViewControllerSegue : UIStoryboardSegue {
    override func perform() {
        (self.sourceViewController as? UIViewController)?.navigationController?.popViewControllerAnimated(true)
    }
}

extension SKProduct {
    func localisedPrice() -> String? {
        var numberFormatter = NSNumberFormatter()
        numberFormatter.formatterBehavior = NSNumberFormatterBehavior.BehaviorDefault
        numberFormatter.numberStyle = .CurrencyStyle
        numberFormatter.locale = self.priceLocale
        return numberFormatter.stringFromNumber(self.price)
    }
}
{'fraction_non_alphanumeric': 0.10371819960861056, 'fraction_numerical': 0.009784735812133072, 'mean_word_length': 3.0335305719921104, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 10, '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': '1410875', 'n_tokens_mistral': 619, 'n_tokens_neox': 569, 'n_words': 132}