<commit_before>package br.ufrj.cos.expline.model;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

public class Rule implements Cloneable, Serializable{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 334751913464640344L;
	
	private String name;
	
	private List<Expression> conditions;
	
	private List<Expression> implications;
	
	public Rule(){
		name = "";
		conditions = new ArrayList<Expression>();
		implications = new ArrayList<Expression>();
	}
	
	public List<Expression> getConditions() {
		return conditions;
	}

	public void setConditions(List<Expression> conditions) {
		this.conditions = conditions;
	}

	public List<Expression> getImplications() {
		return implications;
	}

	public void setImplications(List<Expression> implications) {
		this.implications = implications;
	}
	
	public boolean addCondition(Expression expression){
		return conditions.add(expression);
	}
	
	public boolean addImplication(Expression expression){
		return implications.add(expression);
	}
	
	public void clearConditions(){
		conditions.clear();
		
	}
	
	public void clearImplications(){
		implications.clear();
	}

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

	public String getName() {
		return name;
	}

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

}<commit_msg>Definition modification in the Rule Class<commit_after>package br.ufrj.cos.expline.model;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

public class Rule implements Cloneable, Serializable{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 334751913464640344L;
	
	public final static int OPERATION_OR = 0;
	
	public final static int OPERATION_AND = 1;
	
	private String name;
	
	private Activity conditionElement;
	
	private boolean conditionElementOperationSelection;
	
	private int implicationOperation;
	
	private Map<Activity, Boolean> implicationElements;
	
	
	public Rule(){
		name = "";	
		implicationElements = new HashMap<Activity, Boolean>();
	}
	
	public void addImplicationElement(Activity actv, boolean selected){
		
		implicationElements.put(actv, selected);
	}
	
	public void addConditionElement(Activity actv, boolean selected){
		
		conditionElement = actv;
		conditionElementOperationSelection = selected;
	}

	public String getName() {
		return name;
	}

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

	public int getImplicationOperation() {
		return implicationOperation;
	}

	public void setImplicationOperation(int implicationOperation) {
		this.implicationOperation = implicationOperation;
	}

	public Activity getConditionElement() {
		return conditionElement;
	}

	public void setConditionElement(Activity conditionElement) {
		this.conditionElement = conditionElement;
	}

	public boolean isConditionElementOperationSelection() {
		return conditionElementOperationSelection;
	}

	public void setConditionElementOperationSelection(
			boolean conditionElementOperationSelection) {
		this.conditionElementOperationSelection = conditionElementOperationSelection;
	}

	public Map<Activity, Boolean> getImplicationElements() {
		return implicationElements;
	}
	
	
	
}
{'fraction_non_alphanumeric': 0.08372530573847602, 'fraction_numerical': 0.01191596111633741, 'mean_word_length': 4.81056466302368, 'pattern_counts': {'":': 0, '<': 14, '<?xml version=': 0, '>': 14, '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': '4540885', 'n_tokens_mistral': 995, 'n_tokens_neox': 853, 'n_words': 226}