<commit_before>package businessmodel;

import java.util.ArrayList;

import component.*;

/**
 * A class representing an action.
 * 
 * @author team 10
 *
 */
public class Action {

	/**
	 * The description of this action.
	 */
	private String description;

	/**
	 * The list of components of this action.
	 */
	private ArrayList<String> component_types = new ArrayList<String>();

	/**
	 * This method constructs a new action with a given description.
	 * 
	 * @param 	description
	 * 			The description of the new action.
	 */
	public Action(String descr) {
		this.setDescription(descr);
	}

	/**
	 * This method returns the description of the action.
	 * 
	 * @return	the discription of this action.
	 */
	public String getDescription() {
		return this.description;
	}

	/**
	 * This method returns the list of components needed for this action.
	 * 
	 * @return	the components of this action.
	 */
	public ArrayList<String> getComponents() {
		return this.component_types;
	}

	/**
	 * This method sets the description of the action.
	 * 
	 * @param	description
	 * 			The description of the action
	 */
	private void setDescription(String description) {
		this.description = description;
	}

	/**
	 * This method adds a component to the action.
	 * 
	 * @param	component
	 * 			The component that needs to be added.
	 * @throws  IllegalArgumentException
	 * 			if component equals null or the component class name already belongs to this action.
	 */
	protected void addComponent(Component component) throws IllegalArgumentException {
		if (!this.getComponents().contains(component.getClass().getName()) && component != null) 
			throw new IllegalArgumentException();
		this.getComponents().add(component.getClass().getName());
	}
}
<commit_msg>shiizzllleees met Action<commit_after>package businessmodel;

import java.util.ArrayList;

import component.*;

/**
 * A class representing an action.
 * 
 * @author team 10
 *
 */
public class Action {

	/**
	 * The description of this action.
	 */
	private String description;

	/**
	 * The list of components of this action.
	 */
	private ArrayList<String> component_types = new ArrayList<String>();

	/**
	 * This method constructs a new action with a given description.
	 * 
	 * @param 	description
	 * 			The description of the new action.
	 */
	public Action(String descr) {
		this.setDescription(descr);
	}

	/**
	 * This method returns the description of the action.
	 * 
	 * @return	the discription of this action.
	 */
	public String getDescription() {
		return this.description;
	}

	/**
	 * This method returns the list of components needed for this action.
	 * 
	 * @return	the components of this action.
	 */
	public ArrayList<String> getComponents() {
		return this.component_types;
	}

	/**
	 * This method sets the description of the action.
	 * 
	 * @param	description
	 * 			The description of the action
	 */
	private void setDescription(String description) {
		this.description = description;
	}

	/**
	 * This method adds a component to the action.
	 * 
	 * @param	component
	 * 			The component that needs to be added.
	 * @throws  IllegalArgumentException
	 * 			if component equals null or the component class name already belongs to this action.
	 */
	protected void addComponent(Component component) {
		if (this.getComponents().contains(component.getClass().getName())) 
			this.getComponents().add(component.getClass().getName());
	}
}

{'fraction_non_alphanumeric': 0.10014641288433382, 'fraction_numerical': 0.001171303074670571, 'mean_word_length': 3.33502538071066, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '4600271', 'n_tokens_mistral': 1014, 'n_tokens_neox': 907, 'n_words': 331}