<commit_before>//
//  MMUserAgent.swift
//  DonerKabab
//
//  Created by iOSDeveloper on 7/8/17.
//  Copyright © 2017 EnoOne. All rights reserved.
//

class MMUserAgent: NSObject {
    static func userAgent() ->NSString{
        let version:NSString = (Bundle.main.infoDictionary! as NSDictionary).object(forKey: "CFBundleShortVersionString") as! NSString
        let build:NSString = (Bundle.main.infoDictionary! as NSDictionary).object(forKey: "CFBundleVersion") as! NSString
        let deviceModel:NSString = UIDevice.current.model as NSString
        let deviceSystemName:NSString = UIDevice.current.systemName as NSString
        let deviceSystemVersion:NSString = UIDevice.current.systemVersion as NSString
        let locale:NSString = NSLocale.current.identifier as NSString
        let userAgent = String(format:"com.frikadell.Frikadell.ios.iphone/%@ (%@; %@; %@; %@; %@)", version, build, deviceModel, deviceSystemName, deviceSystemVersion, locale)
        return userAgent as NSString
    }
}
<commit_msg>#user agent public<commit_after>//
//  MMUserAgent.swift
//  DonerKabab
//
//  Created by iOSDeveloper on 7/8/17.
//  Copyright © 2017 EnoOne. All rights reserved.
//

public class MMUserAgent: NSObject {
    public static func userAgent() ->NSString{
        let version:NSString = (Bundle.main.infoDictionary! as NSDictionary).object(forKey: "CFBundleShortVersionString") as! NSString
        let build:NSString = (Bundle.main.infoDictionary! as NSDictionary).object(forKey: "CFBundleVersion") as! NSString
        let deviceModel:NSString = UIDevice.current.model as NSString
        let deviceSystemName:NSString = UIDevice.current.systemName as NSString
        let deviceSystemVersion:NSString = UIDevice.current.systemVersion as NSString
        let locale:NSString = NSLocale.current.identifier as NSString
        let userAgent = String(format:"com.frikadell.Frikadell.ios.iphone/%@ (%@; %@; %@; %@; %@)", version, build, deviceModel, deviceSystemName, deviceSystemVersion, locale)
        return userAgent as NSString
    }
}

{'fraction_non_alphanumeric': 0.10959571358986848, 'fraction_numerical': 0.007793472966390648, 'mean_word_length': 3.855791962174941, 'pattern_counts': {'":': 0, '<': 3, '<?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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4535280', 'n_tokens_mistral': 638, 'n_tokens_neox': 587, 'n_words': 146}