<commit_before>//
//  NSTimeInterval.swift
//  ZamzamKit
//
//  Created by <NAME> on 3/22/16.
//  Copyright © 2016 Zamzam. All rights reserved.
//

import Foundation

public extension TimeInterval {
    
    /// Number of seconds to integer.
    var seconds: Int {
        return Int(self)
    }
    
    /// Convert current number of seconds to minutes.
    var minutes: Double {
        return self / 60.0
    }
    
    /// Convert current number of seconds to hours.
    var hours: Double {
        return self / 3600.0
    }
    
    /// Convert current number of seconds to days.
    var days: Double {
        return self / 86400.0
    }
    
    /// Convert current number of seconds to weeks.
    var weeks: Double {
        return self / 604800.0
    }
}

public extension TimeInterval {
    
    /// Time interval unit used for date calculations
    enum Unit {
        case seconds(Int)
        case minutes(Int)
        case hours(Int)
        case days(Int)
        case months(Int)
        case years(Int)
    }
    
    /// Time interval unit used for date calculations
    enum UnitWithCalendar {
        case seconds(Int, Calendar)
        case minutes(Int, Calendar)
        case hours(Int, Calendar)
        case days(Int, Calendar)
        case months(Int, Calendar)
        case years(Int, Calendar)
    }
}<commit_msg>Change access of time interval unit enum to public<commit_after>//
//  NSTimeInterval.swift
//  ZamzamKit
//
//  Created by <NAME> on 3/22/16.
//  Copyright © 2016 Zamzam. All rights reserved.
//

import Foundation

public extension TimeInterval {
    
    /// Number of seconds to integer.
    var seconds: Int {
        return Int(self)
    }
    
    /// Convert current number of seconds to minutes.
    var minutes: Double {
        return self / 60.0
    }
    
    /// Convert current number of seconds to hours.
    var hours: Double {
        return self / 3600.0
    }
    
    /// Convert current number of seconds to days.
    var days: Double {
        return self / 86400.0
    }
    
    /// Convert current number of seconds to weeks.
    var weeks: Double {
        return self / 604800.0
    }
}

extension TimeInterval {
    
    /// Time interval unit used for date calculations
    public enum Unit {
        case seconds(Int)
        case minutes(Int)
        case hours(Int)
        case days(Int)
        case months(Int)
        case years(Int)
    }
    
    /// Time interval unit used for date calculations
    public enum UnitWithCalendar {
        case seconds(Int, Calendar)
        case minutes(Int, Calendar)
        case hours(Int, Calendar)
        case days(Int, Calendar)
        case months(Int, Calendar)
        case years(Int, Calendar)
    }
}
{'fraction_non_alphanumeric': 0.08437270726338958, 'fraction_numerical': 0.022010271460014674, 'mean_word_length': 1.7940573770491803, 'pattern_counts': {'":': 0, '<': 5, '<?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': '4807203', 'n_tokens_mistral': 816, 'n_tokens_neox': 758, 'n_words': 275}