<commit_before>package dynamake.tools;

import java.util.List;

import dynamake.commands.DualCommand;
import dynamake.models.LiveModel.ProductionPanel;
import dynamake.models.CanvasModel;
import dynamake.models.Model;
import dynamake.models.ModelComponent;

public class UnwrapTool extends RepetitiveCanvasTaskTool {
	@Override
	public String getName() {
		return "Unwrap";
	}
	
	@Override
	protected void createDualCommandsForSingleTask(ProductionPanel productionPanel, List<DualCommand<Model>> dualCommands, ModelComponent canvas, ModelComponent modelOver) {
		CanvasModel.appendUnwrapTransaction(dualCommands, modelOver);
	}
}<commit_msg>Made the behavior of the unwrap tool consistent with unwrapping using the drag tool.<commit_after>package dynamake.tools;

import java.util.List;

import dynamake.commands.DualCommand;
import dynamake.models.LiveModel.ProductionPanel;
import dynamake.models.CanvasModel;
import dynamake.models.Model;
import dynamake.models.ModelComponent;

public class UnwrapTool extends RepetitiveCanvasTaskTool {
	@Override
	public String getName() {
		return "Unwrap";
	}
	
	@Override
	protected void createDualCommandsForSingleTask(ProductionPanel productionPanel, List<DualCommand<Model>> dualCommands, ModelComponent canvas, ModelComponent modelOver) {
		if(modelOver.getModelBehind() instanceof CanvasModel && ((CanvasModel)modelOver.getModelBehind()).getModelCount() > 0) {
			CanvasModel.appendUnwrapTransaction(dualCommands, modelOver);
		}
	}
}
{'fraction_non_alphanumeric': 0.08305199189736664, 'fraction_numerical': 0.0006752194463200541, 'mean_word_length': 7.325842696629214, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 8, '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': '5514841', 'n_tokens_mistral': 430, 'n_tokens_neox': 413, 'n_words': 94}