<commit_before>package seedu.address.logic.commands;

import java.util.HashSet;
import java.util.Set;

import seedu.address.commons.exceptions.IllegalValueException;
import seedu.address.model.tag.Tag;
import seedu.address.model.tag.UniqueTagList;
import seedu.address.model.task.*;

/**
 * Adds a person to the address book.
 */
public class NoteCommand extends Command {

    public static final String COMMAND_WORD = "note";

    public static final String MESSAGE_USAGE = COMMAND_WORD + ": Adds a note or floating task to the Task Manager. "
            + "Parameters: note [TASKNAME]\n"
            + "Example: " + COMMAND_WORD
            + " Eat egg";

    public static final String MESSAGE_SUCCESS = "New note added: %1$s";

    private final Task toNote;

    /**
     * Convenience constructor using raw values.
     *
     * @throws IllegalValueException if any of the raw values are invalid
     */
    public NoteCommand(String taskName)
            throws IllegalValueException {
        final Set<Tag> tagSet = new HashSet<>();
        this.toNote = new Task(
                new Name(taskName),
                new StartTime(null),
                new EndTime(null),
                new UniqueTagList(tagSet)
        );
    }

    @Override<commit_msg>Update comment in NoteCommand.java<commit_after>package seedu.address.logic.commands;

import java.util.HashSet;
import java.util.Set;

import seedu.address.commons.exceptions.IllegalValueException;
import seedu.address.model.tag.Tag;
import seedu.address.model.tag.UniqueTagList;
import seedu.address.model.task.*;

/**
 * Adds a floating task to the task manager.
 */
public class NoteCommand extends Command {

    public static final String COMMAND_WORD = "note";

    public static final String MESSAGE_USAGE = COMMAND_WORD + ": Adds a note or floating task to the Task Manager. "
            + "Parameters: note [TASKNAME]\n"
            + "Example: " + COMMAND_WORD
            + " Eat egg";

    public static final String MESSAGE_SUCCESS = "New note added: %1$s";

    private final Task toNote;

    /**
     * Convenience constructor using raw values.
     *
     * @throws IllegalValueException if any of the raw values are invalid
     */
    public NoteCommand(String taskName)
            throws IllegalValueException {
        final Set<Tag> tagSet = new HashSet<>();
        this.toNote = new Task(
                new Name(taskName),
                new StartTime(null),
                new EndTime(null),
                new UniqueTagList(tagSet)
        );
    }

    @Override
{'fraction_non_alphanumeric': 0.09002338269680436, 'fraction_numerical': 0.000779423226812159, 'mean_word_length': 2.526098901098901, 'pattern_counts': {'":': 2, '<': 7, '<?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': '4667962', 'n_tokens_mistral': 734, 'n_tokens_neox': 695, 'n_words': 213}