<commit_before>//
//  DispatchTimeTests.swift
//  Codemine
//
//  Created by <NAME> on 16/12/2016.
//  Copyright © 2016 Nodes. All rights reserved.
//

import XCTest

class DispatchTimeTests: XCTestCase {
    
    override func setUp() {
        super.setUp()
    }
    
    func testAfterDispatchTime() {
        let expectation = self.expectation(description: "The duration should be 3.2 seconds")
        
        DispatchQueue.main.asyncAfter(deadline: 3.2) {
            expectation.fulfill()
        }
        
        waitForExpectations(timeout: 3.2 + 0.005, handler: nil)
        
    }
    
}<commit_msg>Added another test for the dispatch time extension<commit_after>//
//  DispatchTimeTests.swift
//  Codemine
//
//  Created by <NAME> on 16/12/2016.
//  Copyright © 2016 Nodes. All rights reserved.
//

import XCTest

class DispatchTimeTests: XCTestCase {
    
    override func setUp() {
        super.setUp()
    }
    
    func testAfterDispatchTime() {
        let expectation = self.expectation(description: "The duration should be 3.2 seconds")
        
        DispatchQueue.main.asyncAfter(deadline: 3.2) {
            expectation.fulfill()
        }
        
        waitForExpectations(timeout: 3.2 + 0.005, handler: nil)
        
    }
    
    func testAfterIntegerDispatchTime() {
        let expectation = self.expectation(description: "The duration should be 3 seconds")
        
        DispatchQueue.main.asyncAfter(deadline: 3) {
            expectation.fulfill()
        }
        
        waitForExpectations(timeout: 3 + 0.005, handler: nil)
        
    }
    
}
{'fraction_non_alphanumeric': 0.10150375939849623, 'fraction_numerical': 0.03195488721804511, 'mean_word_length': 2.024621212121212, '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': '3382455', 'n_tokens_mistral': 519, 'n_tokens_neox': 473, 'n_words': 112}