<commit_before>package com.planetmayo.debrief.satc.gwt.client.ui;

import com.google.gwt.core.client.GWT;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.logical.shared.ValueChangeHandler;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.uibinder.client.UiHandler;
import com.google.gwt.user.client.ui.CheckBox;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.HorizontalPanel;
import com.google.gwt.user.client.ui.InlineLabel;
import com.google.gwt.user.client.ui.Widget;

public class ContributionPanelHeader extends Composite
{

	interface ContributionPanelHeaderUiBinder extends
			UiBinder<Widget, ContributionPanelHeader>
	{
	}

	private static ContributionPanelHeaderUiBinder uiBinder = GWT
			.create(ContributionPanelHeaderUiBinder.class);

	@UiField
	HorizontalPanel header;

	@UiField
	CheckBox active;

	@UiField
	InlineLabel estimate;

	@UiField
	InlineLabel hardConstraints;

	@UiField
	NumberSpinner weighting;

	public ContributionPanelHeader()
	{
		initWidget(uiBinder.createAndBindUi(this));
		header.setCellWidth(active, "20%");
		header.setCellWidth(estimate, "30%");
		header.setCellWidth(hardConstraints, "30%");
		header.setCellWidth(weighting, "20%");
	}

	@UiHandler("active")
	void onClick(ClickEvent e)
	{
		e.stopPropagation();
	}

	public void setActive(boolean value)
	{
		active.setValue(value);
	}

	public void setActiveData(boolean active)
	{
		this.active.setValue(active);

	}

	public void setData(boolean active, String hardConstraints,
			String estimateStr, int weight)
	{
		setActive(active);
		setHardConstraints(hardConstraints);
		setWeighting(weight);
		setEstimate(estimateStr);

	}

	public void setEstimate(String value)
	{
		estimate.setText(value);
	}

	public void setEstimateData(String value)
	{
		estimate.setText(value);

	}

	public void setHardConstraints(String value)
	{
		hardConstraints.setText(value);
	}

	public void setHardConstraintsData(String hardConstraints)
	{
		this.hardConstraints.setText(hardConstraints);

	}

	public void setWeightData(Integer weight)
	{
		this.weighting.setValue(weight);

	}

	public void setWeighting(int value)
	{
		weighting.setValue(value);
	}

	public void addHandler(ValueChangeHandler<Boolean> activeValueChangeHandler, ValueChangeHandler<Integer> weightingValueChangeHandler) {
		active.addValueChangeHandler(activeValueChangeHandler);
		weighting.addValueChangeHandler(weightingValueChangeHandler);
	}
}<commit_msg>minor rename<commit_after>package com.planetmayo.debrief.satc.gwt.client.ui;

import com.google.gwt.core.client.GWT;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.logical.shared.ValueChangeHandler;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.uibinder.client.UiHandler;
import com.google.gwt.user.client.ui.CheckBox;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.HorizontalPanel;
import com.google.gwt.user.client.ui.InlineLabel;
import com.google.gwt.user.client.ui.Widget;

public class ContributionPanelHeader extends Composite
{

	interface ContributionPanelHeaderUiBinder extends
			UiBinder<Widget, ContributionPanelHeader>
	{
	}

	private static ContributionPanelHeaderUiBinder uiBinder = GWT
			.create(ContributionPanelHeaderUiBinder.class);

	@UiField
	HorizontalPanel header;

	@UiField
	CheckBox active;

	@UiField
	InlineLabel estimate;

	@UiField
	InlineLabel hardConstraints;

	@UiField
	NumberSpinner weighting;

	public ContributionPanelHeader()
	{
		initWidget(uiBinder.createAndBindUi(this));
		header.setCellWidth(active, "20%");
		header.setCellWidth(estimate, "30%");
		header.setCellWidth(hardConstraints, "30%");
		header.setCellWidth(weighting, "20%");
	}

	@UiHandler("active")
	void onClick(ClickEvent e)
	{
		e.stopPropagation();
	}

	public void setActive(boolean value)
	{
		active.setValue(value);
	}

	public void setActiveData(boolean active)
	{
		this.active.setValue(active);

	}

	public void setData(boolean active, String hardConstraints,
			String estimateStr, int weight)
	{
		setActive(active);
		setHardConstraints(hardConstraints);
		setWeighting(weight);
		setEstimate(estimateStr);

	}

	public void setEstimate(String value)
	{
		estimate.setText(value);
	}

	public void setEstimateData(String value)
	{
		estimate.setText(value);

	}

	public void setHardConstraints(String value)
	{
		hardConstraints.setText(value);
	}

	public void setHardConstraintsData(String hardConstraints)
	{
		this.hardConstraints.setText(hardConstraints);

	}

	public void setWeightData(Integer weight)
	{
		this.weighting.setValue(weight);

	}

	public void setWeighting(int value)
	{
		weighting.setValue(value);
	}

	public void setHandlers(ValueChangeHandler<Boolean> activeValueChangeHandler, ValueChangeHandler<Integer> weightingValueChangeHandler) {
		active.addValueChangeHandler(activeValueChangeHandler);
		weighting.addValueChangeHandler(weightingValueChangeHandler);
	}
}
{'fraction_non_alphanumeric': 0.1033672670321065, 'fraction_numerical': 0.0031323414252153485, 'mean_word_length': 5.7938829787234045, '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': '7395478', 'n_tokens_mistral': 1765, 'n_tokens_neox': 1663, 'n_words': 267}