<commit_before>//
//  GuitarPaddingTests.swift
//  GuitarExample
//
//  Created by <NAME> on 3/2/17.
//  Copyright © 2017 <NAME>. All rights reserved.
//

import XCTest
@testable import Guitar

class GuitarPaddingTests: XCTestCase {

    func testPadLeft() {
        XCTAssertEqual("Hello World".padLeft(length: 15), "    Hello World")
        XCTAssertEqual("-Hello_World-".padLeft(length: 15), "  -Hello_World-")
        XCTAssertEqual(" -H3Llo W0rld_ ".padLeft(length: 20), "      -H3Llo W0rld_ ")
        XCTAssertEqual("Hello World".padLeft(length: 5), "Hello World")

        XCTAssertEqual("Hello World".padLeft(length: 15, withToken: "*"), "****Hello World")
        XCTAssertEqual("-Hello_World-".padLeft(length: 15, withToken: "*"), "**-Hello_World-")
        XCTAssertEqual(" -H3Llo W0rld_ ".padLeft(length: 20, withToken: "*"), "***** -H3Llo W0rld_ ")
        XCTAssertEqual("Hello World".padLeft(length: 5, withToken: "*"), "Hello World")
    }

    func testPadRight() {
        XCTAssertEqual("Hello World".padRight(length: 15), "Hello World    ")
        XCTAssertEqual("-Hello_World-".padRight(length: 15), "-Hello_World-  ")
        XCTAssertEqual(" -H3Llo W0rld_ ".padRight(length: 20), " -H3Llo W0rld_      ")
        XCTAssertEqual("Hello World".padRight(length: 5), "Hello World")

        XCTAssertEqual("Hello World".padRight(length: 15, withToken: "*"), "Hello World****")
        XCTAssertEqual("-Hello_World-".padRight(length: 15, withToken: "*"), "-Hello_World-**")
        XCTAssertEqual(" -H3Llo W0rld_ ".padRight(length: 20, withToken: "*"), " -H3Llo W0rld_ *****")
        XCTAssertEqual("Hello World".padRight(length: 5, withToken: "*"), "Hello World")
    }

    func testPad() {
        XCTAssertEqual("Hello World".pad(length: 15), "  Hello World  ")
        XCTAssertEqual("-Hello_World-".pad(length: 15), " -Hello_World- ")
        XCTAssertEqual(" -H3Llo W0rld_ ".pad(length: 20), "   -H3Llo W0rld_    ")
        XCTAssertEqual("Hello World".pad(length: 5), "Hello World")

//        XCTAssertEqual("Hello World".padRight(length: 15, with: "*"), "Hello World****")
//        XCTAssertEqual("-Hello_World-".padRight(length: 15, with: "*"), "-Hello_World-**")
//        XCTAssertEqual(" -H3Llo W0rld_ ".padRight(length: 20, with: "*"), " -H3Llo W0rld_ *****")
//        XCTAssertEqual("Hello World".padRight(length: 5, with: "*"), "Hello World")
    }
    
}<commit_msg>Updated Pad Tests<commit_after>//
//  GuitarPaddingTests.swift
//  GuitarExample
//
//  Created by Sabintsev, Arthur on 3/2/17.
//  Copyright © 2017 <NAME>. All rights reserved.
//

import XCTest
@testable import Guitar

class GuitarPaddingTests: XCTestCase {

    func testPadLeft() {
        XCTAssertEqual("Hello World".padLeft(length: 15), "    Hello World")
        XCTAssertEqual("-Hello_World-".padLeft(length: 15), "  -Hello_World-")
        XCTAssertEqual(" -H3Llo W0rld_ ".padLeft(length: 20), "      -H3Llo W0rld_ ")
        XCTAssertEqual("Hello World".padLeft(length: 5), "Hello World")

        XCTAssertEqual("Hello World".padLeft(length: 15, withToken: "*"), "****Hello World")
        XCTAssertEqual("-Hello_World-".padLeft(length: 15, withToken: "*"), "**-Hello_World-")
        XCTAssertEqual(" -H3Llo W0rld_ ".padLeft(length: 20, withToken: "*"), "***** -H3Llo W0rld_ ")
        XCTAssertEqual("Hello World".padLeft(length: 5, withToken: "*"), "Hello World")
    }

    func testPadRight() {
        XCTAssertEqual("Hello World".padRight(length: 15), "Hello World    ")
        XCTAssertEqual("-Hello_World-".padRight(length: 15), "-Hello_World-  ")
        XCTAssertEqual(" -H3Llo W0rld_ ".padRight(length: 20), " -H3Llo W0rld_      ")
        XCTAssertEqual("Hello World".padRight(length: 5), "Hello World")

        XCTAssertEqual("Hello World".padRight(length: 15, withToken: "*"), "Hello World****")
        XCTAssertEqual("-Hello_World-".padRight(length: 15, withToken: "*"), "-Hello_World-**")
        XCTAssertEqual(" -H3Llo W0rld_ ".padRight(length: 20, withToken: "*"), " -H3Llo W0rld_ *****")
        XCTAssertEqual("Hello World".padRight(length: 5, withToken: "*"), "Hello World")
    }

    func testPad() {
        XCTAssertEqual("Hello World".pad(length: 15), "  Hello World  ")
        XCTAssertEqual("-Hello_World-".pad(length: 15), " -Hello_World- ")
        XCTAssertEqual(" -H3Llo W0rld_ ".pad(length: 20), "   -H3Llo W0rld_    ")
        XCTAssertEqual("Hello World".pad(length: 5), "Hello World")

        XCTAssertEqual("Hello World".pad(length: 15, withToken: "*"), "**Hello World**")
        XCTAssertEqual("-Hello_World-".pad(length: 15, withToken: "*"), "*-Hello_World-*")
        XCTAssertEqual(" -H3Llo W0rld_ ".pad(length: 20, withToken: "*"), "** -H3Llo W0rld_ ***")
        XCTAssertEqual("Hello World".pad(length: 5, withToken: "*"), "Hello World")
    }
    
}
{'fraction_non_alphanumeric': 0.18274216967434143, 'fraction_numerical': 0.030699025098527278, 'mean_word_length': 3.3836363636363638, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, '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': '5392833', 'n_tokens_mistral': 1763, 'n_tokens_neox': 1657, 'n_words': 325}