<commit_before>//
//  DispatchTimeIntervalExtension.swift
//  HandySwift
//
//  Created by <NAME> on 28.01.17.
//  Copyright © 2017 Flinesoft. All rights reserved.
//

import Foundation

public typealias Timespan = DispatchTimeInterval

extension Timespan {
    /// - Returns: The time in seconds using the`TimeInterval` type.
    var timeInterval: TimeInterval {
        switch self {
        case .seconds(let seconds):
            return Double(seconds)
        case .milliseconds(let milliseconds):
            return Double(milliseconds) / 1_000
        case .microseconds(let microseconds):
            return Double(microseconds) / 1_000_000
        case .nanoseconds(let nanoseconds):
            return Double(nanoseconds) / 1_000_000_000
        }
    }
}<commit_msg>Make DispatchTimeInterval extension timeInterval method public<commit_after>//
//  DispatchTimeIntervalExtension.swift
//  HandySwift
//
//  Created by <NAME> on 28.01.17.
//  Copyright © 2017 Flinesoft. All rights reserved.
//

import Foundation

public typealias Timespan = DispatchTimeInterval

extension Timespan {
    /// - Returns: The time in seconds using the`TimeInterval` type.
    public var timeInterval: TimeInterval {
        switch self {
        case .seconds(let seconds):
            return Double(seconds)
        case .milliseconds(let milliseconds):
            return Double(milliseconds) / 1_000
        case .microseconds(let microseconds):
            return Double(microseconds) / 1_000_000
        case .nanoseconds(let nanoseconds):
            return Double(nanoseconds) / 1_000_000_000
        }
    }
}
{'fraction_non_alphanumeric': 0.08571428571428572, 'fraction_numerical': 0.03850931677018633, 'mean_word_length': 2.556291390728477, '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': '2763922', 'n_tokens_mistral': 499, 'n_tokens_neox': 433, 'n_words': 124}