<commit_before>package seedu.address.model;

import seedu.address.commons.core.UnmodifiableObservableList;
import seedu.address.model.task.ReadOnlyTask;
import seedu.address.model.task.Task;
import seedu.address.model.task.UniqueTaskList;
import seedu.address.model.undo.UndoTask;

import java.util.Set;

/**
 * The API of the Model component.
 */
public interface Model {
    /** Clears existing backing model and replaces with the provided new data. */
    void resetData(ReadOnlyTaskBook newData);

    /** Returns the TaskBook */
    ReadOnlyTaskBook getTaskBook();

    /** Deletes the given task. */
    void deleteTask(ReadOnlyTask target) throws UniqueTaskList.TaskNotFoundException;

    /** Adds the given task */
    void addTask(Task toAdd) throws UniqueTaskList.DuplicateTaskException;
    
    /** Adds the given undo */
    void addUndo(String command, ReadOnlyTask data);
    
    /** Adds the given undo */
    void addUndo(String command, ReadOnlyTask postData, ReadOnlyTask preData);

    /** Marks the given task as completed */
    void completeTask(ReadOnlyTask target) throws UniqueTaskList.TaskNotFoundException;
    
    /** Marks the given task as uncompleted */
    void uncompleteTask(ReadOnlyTask target) throws UniqueTaskList.TaskNotFoundException;
    
    /** Undoes the last reversible action */
    UndoTask undoTask();
    
    /** Returns the filtered dated task list as an {@code UnmodifiableObservableList<ReadOnlyTask>} */
    UnmodifiableObservableList<ReadOnlyTask> getFilteredDatedTaskList();
    
    /** Returns the filtered undated task list as an {@code UnmodifiableObservableList<ReadOnlyTask>} */
    UnmodifiableObservableList<ReadOnlyTask> getFilteredUndatedTaskList();

    /** Updates the filter of the filtered tasks list to show all persons */
    void updateFilteredListToShowAll();

    /** Updates the filter of the filtered tasks list to filter by the given keywords*/
    void updateFilteredTaskList(Set<String> keywords);

    /** Updates the filter of the filtered tasks list to filter by the given keyword (od/done)*/
    void updateFilteredTaskList(String... keyword);
    
    /** Marks task as overdue as compared to system current Datetime */
    void overdueTask(ReadOnlyTask target) throws UniqueTaskList.TaskNotFoundException;
}<commit_msg>Model: refactor filtering methods to more intuitive names<commit_after>package seedu.address.model;

import seedu.address.commons.core.UnmodifiableObservableList;
import seedu.address.model.task.ReadOnlyTask;
import seedu.address.model.task.Task;
import seedu.address.model.task.UniqueTaskList;
import seedu.address.model.undo.UndoTask;

import java.util.Set;

/**
 * The API of the Model component.
 */
public interface Model {
    /** Clears existing backing model and replaces with the provided new data. */
    void resetData(ReadOnlyTaskBook newData);

    /** Returns the TaskBook */
    ReadOnlyTaskBook getTaskBook();

    /** Deletes the given task. */
    void deleteTask(ReadOnlyTask target) throws UniqueTaskList.TaskNotFoundException;

    /** Adds the given task */
    void addTask(Task toAdd) throws UniqueTaskList.DuplicateTaskException;
    
    /** Adds the given undo */
    void addUndo(String command, ReadOnlyTask data);
    
    /** Adds the given undo */
    void addUndo(String command, ReadOnlyTask postData, ReadOnlyTask preData);

    /** Marks the given task as completed */
    void completeTask(ReadOnlyTask target) throws UniqueTaskList.TaskNotFoundException;
    
    /** Marks the given task as uncompleted */
    void uncompleteTask(ReadOnlyTask target) throws UniqueTaskList.TaskNotFoundException;
    
    /** Undoes the last reversible action */
    UndoTask undoTask();
    
    /** Returns the filtered dated task list as an {@code UnmodifiableObservableList<ReadOnlyTask>} */
    UnmodifiableObservableList<ReadOnlyTask> getFilteredDatedTaskList();
    
    /** Returns the filtered undated task list as an {@code UnmodifiableObservableList<ReadOnlyTask>} */
    UnmodifiableObservableList<ReadOnlyTask> getFilteredUndatedTaskList();

    /** Updates the filter of the filtered tasks list to show all persons */
    void updateFilteredListToShowAll();

    /** Updates the filter of the filtered tasks list to filter by the given keywords*/
    void updateFilteredTaskListByKeywords(Set<String> keywords);

    /** Updates the filter of the filtered tasks list to filter by the given keyword (od/done)*/
    void updateFilteredTaskListByStatus(String... keyword);
    
    /** Marks task as overdue as compared to system current Datetime */
    void overdueTask(ReadOnlyTask target) throws UniqueTaskList.TaskNotFoundException;
}
{'fraction_non_alphanumeric': 0.08354700854700854, 'fraction_numerical': 0.0, 'mean_word_length': 4.0010683760683765, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, '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': '6015206', 'n_tokens_mistral': 1261, 'n_tokens_neox': 1233, 'n_words': 401}