<commit_before>//
//  UIApplication+Utility.swift
//  SquidKit
//
//  Created by <NAME> on 4/3/16.
//  Copyright © 2016 SquidKit. All rights reserved.
//

import UIKit

public extension UIApplication {
    
    public func displayName() -> String {
        if let name:String = Bundle.main.object(forInfoDictionaryKey: "CFBundleDisplayName") as? String , name.count > 0 {
            return name
        }
        
        return Bundle.main.object(forInfoDictionaryKey: kCFBundleNameKey as String) as! String
    }
}
<commit_msg>add isTestFlight bool to UIApplication<commit_after>//
//  UIApplication+Utility.swift
//  SquidKit
//
//  Created by <NAME> on 4/3/16.
//  Copyright © 2016 SquidKit. All rights reserved.
//

import UIKit

public extension UIApplication {
    
    public var isTestFlight: Bool {
        guard let appStoreReceiptURL = Bundle.main.appStoreReceiptURL else {return false}
        return appStoreReceiptURL.lastPathComponent == "sandboxReceipt"
    }
    
    public func displayName() -> String {
        if let name:String = Bundle.main.object(forInfoDictionaryKey: "CFBundleDisplayName") as? String , name.count > 0 {
            return name
        }
        
        return Bundle.main.object(forInfoDictionaryKey: kCFBundleNameKey as String) as! String
    }
}

{'fraction_non_alphanumeric': 0.09659969088098919, 'fraction_numerical': 0.013910355486862442, 'mean_word_length': 2.6894586894586894, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '956643', 'n_tokens_mistral': 411, 'n_tokens_neox': 381, 'n_words': 102}