<commit_before>package seedu.taskboss.testutil;

import seedu.taskboss.commons.exceptions.IllegalValueException;
import seedu.taskboss.model.category.UniqueCategoryList;
import seedu.taskboss.model.task.DateTime;
import seedu.taskboss.model.task.Information;
import seedu.taskboss.model.task.Name;
import seedu.taskboss.model.task.PriorityLevel;
import seedu.taskboss.model.task.ReadOnlyTask;

/**
 * A mutable person object. For testing only.
 */
public class TestTask implements ReadOnlyTask {

    private Name name;
    private Information information;
    private PriorityLevel priorityLevel;
    private DateTime startDateTime;
    private DateTime endDateTime;
    private UniqueCategoryList categories;

    public TestTask() {
        categories = new UniqueCategoryList();
    }

    /**
     * Creates a copy of {@code taskToCopy}.
     */
    public TestTask(TestTask taskToCopy) {
        this.name = taskToCopy.getName();
        this.priorityLevel = taskToCopy.getPriorityLevel();
        this.startDateTime = taskToCopy.getStartDateTime();
        this.endDateTime = taskToCopy.getEndDateTime();
        this.information = taskToCopy.getInformation();
        this.categories = taskToCopy.getCategories();
    }

    public void setName(Name name) {
        this.name = name;
    }

    public void setInformation(Information information) {
        this.information = information;
    }

    public void setPriorityLevel(PriorityLevel priorityLevel) {
        this.priorityLevel = priorityLevel;
    }

    public void setStartDateTime(DateTime startDateTime) throws IllegalValueException {
        DateTime parsedStartDateTime = new DateTime(startDateTime.value);
        this.startDateTime = parsedStartDateTime;
    }

    public void setEndDateTime(DateTime endDateTime) throws IllegalValueException {
        DateTime parsedEndDateTime = new DateTime(endDateTime.value);
        this.endDateTime = parsedEndDateTime;
    }

    public void setCategories(UniqueCategoryList categories) {
        this.categories = categories;
    }

    @Override
    public Name getName() {
        return name;
    }

    @Override
    public PriorityLevel getPriorityLevel() {
        return priorityLevel;
    }

    @Override
    public DateTime getStartDateTime() {
        return startDateTime;
    }

    @Override
    public DateTime getEndDateTime() {
        return endDateTime;
    }

    @Override
    public Information getInformation() {
        return information;
    }

    @Override
    public UniqueCategoryList getCategories() {
        return categories;
    }

    @Override
    public String toString() {
        return getAsText();
    }

    public String getAddCommand() {
        StringBuilder sb = new StringBuilder();
        //@@author A0144904H
        if (this.getPriorityLevel().equals(PriorityLevel.PRIORITY_NO)) {
            sb.append("add " + "n/" + this.getName().fullName + " ");
        } else {
            sb.append("add " + "n/" + this.getName().fullName + "! ");
        }
        sb.append("sd/" + this.getStartDateTime().value + " ");
        sb.append("ed/" + this.getEndDateTime().value + " ");
        sb.append("i/" + this.getInformation().value + " ");
        this.getCategories().asObservableList().stream().forEach(s -> sb.append("c/" + s.categoryName + " "));
        return sb.toString();
    }

    //@@author A0143157J
    public String getShortAddCommand() {
        StringBuilder sb = new StringBuilder();
        //@@author A0144904H
        if (this.getPriorityLevel().equals(PriorityLevel.PRIORITY_NO)) {
            sb.append("add " + "n/" + this.getName().fullName + " ");
        } else {
            sb.append("add " + "n/" + this.getName().fullName + "! ");
        }
        sb.append("sd/" + this.getStartDateTime().value + " ");
        sb.append("ed/" + this.getEndDateTime().value + " ");
        sb.append("i/" + this.getInformation().value + " ");
        this.getCategories().asObservableList().stream().forEach(s -> sb.append("c/" + s.categoryName + " "));
        return sb.toString();
    }
}<commit_msg>update add command test<commit_after>package seedu.taskboss.testutil;

import seedu.taskboss.commons.exceptions.IllegalValueException;
import seedu.taskboss.model.category.UniqueCategoryList;
import seedu.taskboss.model.task.DateTime;
import seedu.taskboss.model.task.Information;
import seedu.taskboss.model.task.Name;
import seedu.taskboss.model.task.PriorityLevel;
import seedu.taskboss.model.task.ReadOnlyTask;

/**
 * A mutable person object. For testing only.
 */
public class TestTask implements ReadOnlyTask {

    private Name name;
    private Information information;
    private PriorityLevel priorityLevel;
    private DateTime startDateTime;
    private DateTime endDateTime;
    private UniqueCategoryList categories;

    public TestTask() {
        categories = new UniqueCategoryList();
    }

    /**
     * Creates a copy of {@code taskToCopy}.
     */
    public TestTask(TestTask taskToCopy) {
        this.name = taskToCopy.getName();
        this.priorityLevel = taskToCopy.getPriorityLevel();
        this.startDateTime = taskToCopy.getStartDateTime();
        this.endDateTime = taskToCopy.getEndDateTime();
        this.information = taskToCopy.getInformation();
        this.categories = taskToCopy.getCategories();
    }

    public void setName(Name name) {
        this.name = name;
    }

    public void setInformation(Information information) {
        this.information = information;
    }

    public void setPriorityLevel(PriorityLevel priorityLevel) {
        this.priorityLevel = priorityLevel;
    }

    public void setStartDateTime(DateTime startDateTime) throws IllegalValueException {
        DateTime parsedStartDateTime = new DateTime(startDateTime.value);
        this.startDateTime = parsedStartDateTime;
    }

    public void setEndDateTime(DateTime endDateTime) throws IllegalValueException {
        DateTime parsedEndDateTime = new DateTime(endDateTime.value);
        this.endDateTime = parsedEndDateTime;
    }

    public void setCategories(UniqueCategoryList categories) {
        this.categories = categories;
    }

    @Override
    public Name getName() {
        return name;
    }

    @Override
    public PriorityLevel getPriorityLevel() {
        return priorityLevel;
    }

    @Override
    public DateTime getStartDateTime() {
        return startDateTime;
    }

    @Override
    public DateTime getEndDateTime() {
        return endDateTime;
    }

    @Override
    public Information getInformation() {
        return information;
    }

    @Override
    public UniqueCategoryList getCategories() {
        return categories;
    }

    @Override
    public String toString() {
        return getAsText();
    }

    public String getAddCommand() {
        StringBuilder sb = new StringBuilder();
        //@@author A0144904H
        if (this.getPriorityLevel().equals(PriorityLevel.PRIORITY_NO)) {
            sb.append("add " + this.getName().fullName + " ");
        } else {
            sb.append("add " + this.getName().fullName + "! ");
        }
        sb.append("sd/" + this.getStartDateTime().value + " ");
        sb.append("ed/" + this.getEndDateTime().value + " ");
        sb.append("i/" + this.getInformation().value + " ");
        this.getCategories().asObservableList().stream().forEach(s -> sb.append("c/" + s.categoryName + " "));
        return sb.toString();
    }

    //@@author A0143157J
    public String getShortAddCommand() {
        StringBuilder sb = new StringBuilder();
        //@@author A0144904H
        if (this.getPriorityLevel().equals(PriorityLevel.PRIORITY_NO)) {
            sb.append("add " + this.getName().fullName + " ");
        } else {
            sb.append("add " + this.getName().fullName + "! ");
        }
        sb.append("sd/" + this.getStartDateTime().value + " ");
        sb.append("ed/" + this.getEndDateTime().value + " ");
        sb.append("i/" + this.getInformation().value + " ");
        this.getCategories().asObservableList().stream().forEach(s -> sb.append("c/" + s.categoryName + " "));
        return sb.toString();
    }
}
{'fraction_non_alphanumeric': 0.11794997547817558, 'fraction_numerical': 0.005149583128984796, 'mean_word_length': 2.772895467160037, 'pattern_counts': {'":': 0, '<': 3, '<?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': '2269537', 'n_tokens_mistral': 2244, 'n_tokens_neox': 2176, 'n_words': 443}