<commit_before>package com.hearthsim.util.tree;

import java.util.ArrayList;

import com.hearthsim.card.Deck;
import com.hearthsim.exception.HSException;
import com.hearthsim.model.PlayerSide;
import com.hearthsim.util.HearthAction;

/**
 * Random effect node
 * 
 * This node signifies that the immediate children of the node are all outcomes of a random event.  
 * Each random outcome can have a weighting associated to it.  The total expected score of this node
 * is computed as a weighted average of the scores of all outcomes.
 *
 */
public class RandomEffectNode extends StopNode {

	private ArrayList<Double> childWeighting_;
	private HearthAction action_;
	
	public RandomEffectNode(HearthTreeNode origNode,
							HearthAction action) {
		super(origNode);
		action_ = action;
		childWeighting_ = new ArrayList<Double>();
	}
	<commit_msg>This private variable was never used and was probably trying to set the action on HearthTreeNode anyway.<commit_after>package com.hearthsim.util.tree;

import java.util.ArrayList;

import com.hearthsim.card.Deck;
import com.hearthsim.exception.HSException;
import com.hearthsim.model.PlayerSide;
import com.hearthsim.util.HearthAction;

/**
 * Random effect node
 * 
 * This node signifies that the immediate children of the node are all outcomes of a random event.  
 * Each random outcome can have a weighting associated to it.  The total expected score of this node
 * is computed as a weighted average of the scores of all outcomes.
 *
 */
public class RandomEffectNode extends StopNode {

	private ArrayList<Double> childWeighting_;
	
	public RandomEffectNode(HearthTreeNode origNode,
							HearthAction action) {
		super(origNode);
		this.setAction(action);
		childWeighting_ = new ArrayList<Double>();
	}
	
{'fraction_non_alphanumeric': 0.07037457434733257, 'fraction_numerical': 0.0, 'mean_word_length': 4.5266457680250785, 'pattern_counts': {'":': 0, '<': 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': '978883', 'n_tokens_mistral': 524, 'n_tokens_neox': 484, 'n_words': 178}