<commit_before><commit_msg>Added NSCalendar util.<commit_after>//
//  NSCalendar+VehicleID.swift
//  Pods
//
//  Created by <NAME> on 2016-04-27.
//
//

import Foundation

public extension NSCalendar {
    public static func getCurrentYear() -> NSInteger {
        let gregorian = NSCalendar(calendarIdentifier: NSCalendarIdentifierGregorian)
        let components = gregorian?.components(.Year, fromDate: NSDate())
        return components!.year
    }
}
{'fraction_non_alphanumeric': 0.11403508771929824, 'fraction_numerical': 0.017543859649122806, 'mean_word_length': 3.394230769230769, 'pattern_counts': {'":': 0, '<': 4, '<?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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6031354', 'n_tokens_mistral': 153, 'n_tokens_neox': 141, 'n_words': 31}