<commit_before>package com.sandwell.JavaSimulation3D;

import com.sandwell.JavaSimulation.ColourInput;
import com.sandwell.JavaSimulation.Keyword;

public class BooleanIndicator extends DisplayEntity {

	private PropertyReader propReader;

	@Keyword(description = "The colour of the indicator when the property is true",
	         example = "BinLevel TrueColor { green }")
	private final ColourInput trueColor;

	@Keyword(description = "The colour of the indicator when the property is false",
	         example = "BinLevel TrueColor { green }")
	private final ColourInput falseColor;

	{
		propReader = new PropertyReader();
		addInputGroup(propReader);

		trueColor = new ColourInput("TrueColour", "Key Inputs", ColourInput.GREEN);
		this.addInput(trueColor, true, "TrueColor");

		falseColor = new ColourInput("FalseColour", "Key Inputs", ColourInput.RED);
		this.addInput(falseColor, true, "FalseColor");
	}

	public BooleanIndicator() {
	}

	@Override
	public void updateGraphics( double time ) {

		String val = propReader.getPropertyValueString(time);
		if(val.equals( "true" ) ) {
			setTagColour(DisplayModelCompat.TAG_CONTENTS, trueColor.getValue());
		}
		else {
			setTagColour(DisplayModelCompat.TAG_CONTENTS, falseColor.getValue());
		}
	}

}<commit_msg>TLS: convert BooleanIndicator to use Outputs rather than target methods<commit_after>package com.sandwell.JavaSimulation3D;

import com.jaamsim.input.OutputInput;
import com.sandwell.JavaSimulation.ColourInput;
import com.sandwell.JavaSimulation.Keyword;

public class BooleanIndicator extends DisplayEntity {

	private final OutputInput<Boolean> boolProp;

	@Keyword(description = "The colour of the indicator when the property is true",
	         example = "BinLevel TrueColor { green }")
	private final ColourInput trueColor;

	@Keyword(description = "The colour of the indicator when the property is false",
	         example = "BinLevel TrueColor { green }")
	private final ColourInput falseColor;

	{
		boolProp = new OutputInput<Boolean>(Boolean.class, "OutputName", "Key Inputs", null);
		this.addInput(boolProp, true);

		trueColor = new ColourInput("TrueColour", "Key Inputs", ColourInput.GREEN);
		this.addInput(trueColor, true, "TrueColor");

		falseColor = new ColourInput("FalseColour", "Key Inputs", ColourInput.RED);
		this.addInput(falseColor, true, "FalseColor");
	}

	public BooleanIndicator() {
	}

	@Override
	public void updateGraphics( double time ) {
		Boolean b = boolProp.getOutputValue(time);
		if (b.booleanValue()) {
			setTagColour(DisplayModelCompat.TAG_CONTENTS, trueColor.getValue());
		}
		else {
			setTagColour(DisplayModelCompat.TAG_CONTENTS, falseColor.getValue());
		}
	}

}
{'fraction_non_alphanumeric': 0.1040656471465871, 'fraction_numerical': 0.0007459903021260724, 'mean_word_length': 5.151376146788991, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '138413', 'n_tokens_mistral': 845, 'n_tokens_neox': 794, 'n_words': 201}