<commit_before>//
//  DateUtil.swift
//  eSportsKitProject
//
//  Created by <NAME> on 7/10/15.
//  Copyright (c) 2015 Rithms. All rights reserved.
//

import Foundation

extension String {
    
    func toNSDate() -> NSDate? {
        let formatter = NSDateFormatter()
        formatter.dateFormat = "yyyy-MM-dd'T'HH:mmZ"
        return formatter.dateFromString(self)
    }
}<commit_msg>Add optional date format parameter to toNSDate method<commit_after>//
//  DateUtil.swift
//  eSportsKitProject
//
//  Created by <NAME> on 7/10/15.
//  Copyright (c) 2015 Rithms. All rights reserved.
//

import Foundation

extension String {
    
    func toNSDate(format: String = "yyyy-MM-dd'T'HH:mmZ") -> NSDate? {
        let formatter = NSDateFormatter()
        formatter.dateFormat = format
        return formatter.dateFromString(self)
    }
}
{'fraction_non_alphanumeric': 0.12395709177592372, 'fraction_numerical': 0.021454112038140644, 'mean_word_length': 2.668122270742358, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '4468879', 'n_tokens_mistral': 295, 'n_tokens_neox': 276, 'n_words': 67}