<commit_before>import XCTest
import ToDoRedux

class ToDoTests: ToDoReduxTests {
    private var todo: ToDo!

    override func setUp() {
        super.setUp()

        store.dispatch(ToDoActions.add(title: "Buy milk", notes: "", tags: []))
        todo = store.state.todos.first!
    }

    func testAddedToDo() {
        XCTAssertEqual(store.state.todos.count, 1)

        let todo = store.state.todos.first!

        XCTAssertEqual(todo.title, "Buy milk")
        XCTAssertFalse(todo.done)
    }

    func testRemoveToDo() {
        store.dispatch(ToDoActions.remove(todo: todo))

        XCTAssertTrue(store.state.todos.isEmpty)
    }

    func testDoneToDo() {
        store.dispatch(ToDoActions.done(todo: self.todo))

        let todo = store.state.todos.first!

        XCTAssertTrue(todo.done)
    }
}
<commit_msg>Add a ToDo to cover code path when ToDo does not match the one toggling<commit_after>import XCTest
import ToDoRedux

class ToDoTests: ToDoReduxTests {
    private var todo: ToDo!

    override func setUp() {
        super.setUp()

        store.dispatch(ToDoActions.add(title: "Buy milk", notes: "", tags: []))
        todo = store.state.todos.first!
    }

    func testAddedToDo() {
        XCTAssertEqual(store.state.todos.count, 1)

        let todo = store.state.todos.first!

        XCTAssertEqual(todo.title, "Buy milk")
        XCTAssertFalse(todo.done)
    }

    func testRemoveToDo() {
        store.dispatch(ToDoActions.remove(todo: todo))

        XCTAssertTrue(store.state.todos.isEmpty)
    }

    func testDoneToDo() {
        store.dispatch(ToDoActions.add(title: "Buy CDs", notes: "", tags: []))
        store.dispatch(ToDoActions.done(todo: self.todo))

        let todo = store.state.todos.first!

        XCTAssertTrue(todo.done)
    }
}

{'fraction_non_alphanumeric': 0.11833987661245092, 'fraction_numerical': 0.0011217049915872126, 'mean_word_length': 2.6260162601626016, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '5546442', 'n_tokens_mistral': 629, 'n_tokens_neox': 603, 'n_words': 111}