<commit_before>//
//  KeyPathTests.swift
//  Collections
//
//  Created by <NAME> on 12/23/16.
//
//

import XCTest
import Collections

class KeyPathTests: XCTestCase {

    func testInitArray() {
        let keyPath = KeyPath(["1", "2", "ok"])
        XCTAssertEqual(keyPath.count, 3)
    }

    func testInitArrayLiteral() {
        let keyPath: KeyPath = ["1", "2", "ok"]
        XCTAssertEqual(keyPath.count, 3)
    }

    func testInitStringLiteral() {
        let keyPath: KeyPath = "<KEY>"
        XCTAssertEqual(keyPath.count, 5)
    }

    func testInitHeterogeneousType() {
        let keyPath = KeyPath(["a", 1])
        XCTAssertEqual(keyPath[0] as! String, "a")
        XCTAssertEqual(keyPath[1] as! Int, 1)
    }
}<commit_msg>Use Collections.KeyPath explicitly in tests<commit_after>//
//  KeyPathTests.swift
//  Collections
//
//  Created by <NAME> on 12/23/16.
//
//

import XCTest
import Collections

class KeyPathTests: XCTestCase {

    func testInitArray() {
        let keyPath = Collections.KeyPath(["1", "2", "ok"])
        XCTAssertEqual(keyPath.count, 3)
    }

    func testInitArrayLiteral() {
        let keyPath: Collections.KeyPath = ["1", "2", "ok"]
        XCTAssertEqual(keyPath.count, 3)
    }

    func testInitStringLiteral() {
        let keyPath: Collections.KeyPath = "<KEY>"
        XCTAssertEqual(keyPath.count, 5)
    }

    func testInitHeterogeneousType() {
        let keyPath = KeyPath(["a", 1])
        XCTAssertEqual(keyPath[0] as! String, "a")
        XCTAssertEqual(keyPath[1] as! Int, 1)
    }
}
{'fraction_non_alphanumeric': 0.1410090556274256, 'fraction_numerical': 0.02199223803363519, 'mean_word_length': 2.622950819672131, 'pattern_counts': {'":': 0, '<': 7, '<?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': '6182666', 'n_tokens_mistral': 552, 'n_tokens_neox': 522, 'n_words': 116}