<commit_before>//
//  ShimMethodForwardingListTests.swift
//  TestableUIKit
//
//  Created by <NAME> on 12/21/14.
//  Copyright (c) 2014 Swagger Soft. All rights reserved.
//

import UIKit
import XCTest

class ShimMethodForwardingListTests: XCTestCase {

    var forwardingList: ShimMethodForwardingList!

    override func setUp() {
        super.setUp()
    }
    
    override func tearDown() {
        super.tearDown()
    }

    func testForwardingListWithDefaultForwarding() {
        forwardingList = ShimMethodForwardingList(shouldForwardByDefault: true)
        XCTAssertTrue(forwardingList.shouldForwardByDefault, "This forwarding list should forward shim methods by default")
        XCTAssertTrue(forwardingList.shouldForwardMethodCallWithSelector("someSelector"), "All methods should be forwarded by default")
        forwardingList.setShouldForwardMethodCallWithSelector("someSelector", false)
        XCTAssertFalse(forwardingList.shouldForwardMethodCallWithSelector("someSelector"), "The selector should not be forwarded now")
        forwardingList.setShouldForwardMethodCallWithSelector("someSelector", true)
        XCTAssertTrue(forwardingList.shouldForwardMethodCallWithSelector("someSelector"), "The selector should now be forwarded again")
    }

    func testForwardingListWithDefaultNonForwarding() {
        forwardingList = ShimMethodForwardingList(shouldForwardByDefault: false)
        XCTAssertFalse(forwardingList.shouldForwardByDefault, "This forwarding list should not forward shim methods by default")
        XCTAssertFalse(forwardingList.shouldForwardMethodCallWithSelector("someSelector"), "All methods should not be forwarded by default")
        forwardingList.setShouldForwardMethodCallWithSelector("someSelector", true)
        XCTAssertTrue(forwardingList.shouldForwardMethodCallWithSelector("someSelector"), "The selector should now be forwarded now")
        forwardingList.setShouldForwardMethodCallWithSelector("someSelector", false)
        XCTAssertFalse(forwardingList.shouldForwardMethodCallWithSelector("someSelector"), "The selector should not be forwarded again")
    }

}
<commit_msg>Removed unnecessary import<commit_after>//
//  ShimMethodForwardingListTests.swift
//  TestableUIKit
//
//  Created by <NAME> on 12/21/14.
//  Copyright (c) 2014 Swagger Soft. All rights reserved.
//

import XCTest

class ShimMethodForwardingListTests: XCTestCase {

    var forwardingList: ShimMethodForwardingList!

    override func setUp() {
        super.setUp()
    }
    
    override func tearDown() {
        super.tearDown()
    }

    func testForwardingListWithDefaultForwarding() {
        forwardingList = ShimMethodForwardingList(shouldForwardByDefault: true)
        XCTAssertTrue(forwardingList.shouldForwardByDefault, "This forwarding list should forward shim methods by default")
        XCTAssertTrue(forwardingList.shouldForwardMethodCallWithSelector("someSelector"), "All methods should be forwarded by default")
        forwardingList.setShouldForwardMethodCallWithSelector("someSelector", false)
        XCTAssertFalse(forwardingList.shouldForwardMethodCallWithSelector("someSelector"), "The selector should not be forwarded now")
        forwardingList.setShouldForwardMethodCallWithSelector("someSelector", true)
        XCTAssertTrue(forwardingList.shouldForwardMethodCallWithSelector("someSelector"), "The selector should now be forwarded again")
    }

    func testForwardingListWithDefaultNonForwarding() {
        forwardingList = ShimMethodForwardingList(shouldForwardByDefault: false)
        XCTAssertFalse(forwardingList.shouldForwardByDefault, "This forwarding list should not forward shim methods by default")
        XCTAssertFalse(forwardingList.shouldForwardMethodCallWithSelector("someSelector"), "All methods should not be forwarded by default")
        forwardingList.setShouldForwardMethodCallWithSelector("someSelector", true)
        XCTAssertTrue(forwardingList.shouldForwardMethodCallWithSelector("someSelector"), "The selector should now be forwarded now")
        forwardingList.setShouldForwardMethodCallWithSelector("someSelector", false)
        XCTAssertFalse(forwardingList.shouldForwardMethodCallWithSelector("someSelector"), "The selector should not be forwarded again")
    }

}

{'fraction_non_alphanumeric': 0.07390084190832553, 'fraction_numerical': 0.004677268475210477, 'mean_word_length': 5.03244005641749, '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': '1460820', 'n_tokens_mistral': 1108, 'n_tokens_neox': 1055, 'n_words': 244}