<commit_before>//@@author A0139961U
package seedu.tache.logic.commands;

import seedu.tache.commons.exceptions.IllegalValueException;
import seedu.tache.logic.commands.exceptions.CommandException;

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

    public static final String COMMAND_WORD = "save";

    public static final String MESSAGE_USAGE = COMMAND_WORD + ": Changes the save location of the"
            + "data files based on the directory entered or selected.\n"
            + "Parameters: DIRECTORY \n"
            + "Example: " + COMMAND_WORD
            + " C:\\Users\\user\\Desktop";

    public static final String MESSAGE_SUCCESS = "Save location changed to: %1$s";

    public final String newPath;

    /**
     * Creates a SaveCommand using the directory entered by the user.
     *
     * @throws IllegalValueException if any of the raw values are invalid
     */
    public SaveCommand(String newDirectory) {
        this.newPath = newDirectory;
    }

    @Override
    public CommandResult execute() throws CommandException {
        assert storage != null;
        storage.setTaskManagerFilePath(newPath + "\\data\\taskmanager.xml");
        return new CommandResult(String.format(MESSAGE_SUCCESS, newPath));
    }
}
<commit_msg>Update save directory<commit_after>//@@author A0139961U
package seedu.tache.logic.commands;

import seedu.tache.commons.exceptions.IllegalValueException;
import seedu.tache.logic.commands.exceptions.CommandException;

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

    public static final String COMMAND_WORD = "save";

    public static final String MESSAGE_USAGE = COMMAND_WORD + ": Changes the save location of the"
            + "data files based on the directory entered or selected.\n"
            + "Parameters: DIRECTORY \n"
            + "Example: " + COMMAND_WORD
            + " C:\\Users\\user\\Desktop";

    public static final String MESSAGE_SUCCESS = "Save location changed to: %1$s";

    public final String newPath;

    /**
     * Creates a SaveCommand using the directory entered by the user.
     *
     * @throws IllegalValueException if any of the raw values are invalid
     */
    public SaveCommand(String newDirectory) {
        this.newPath = newDirectory;
    }

    @Override
    public CommandResult execute() throws CommandException {
        assert storage != null;
        storage.setTaskManagerFilePath(newPath + "\\taskmanager.xml");
        return new CommandResult(String.format(MESSAGE_SUCCESS, newPath));
    }
}

{'fraction_non_alphanumeric': 0.09041731066460587, 'fraction_numerical': 0.0061823802163833074, 'mean_word_length': 3.001545595054096, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '5626054', 'n_tokens_mistral': 721, 'n_tokens_neox': 678, 'n_words': 216}