<commit_before>package com.yoghurt.crypto.transactions.client.widget;

import com.google.gwt.core.client.GWT;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.Widget;
import com.yoghurt.crypto.transactions.client.domain.transaction.TransactionInput;

public class TransactionInputWidget extends Composite {
  interface TransactionInputWidgetUiBinder extends UiBinder<Widget, TransactionInputWidget> {}

  private static final TransactionInputWidgetUiBinder UI_BINDER = GWT.create(TransactionInputWidgetUiBinder.class);

  @UiField LabelledValue previousOutputField;
  @UiField LabelledValue signatureScriptField;
  @UiField LabelledValue sequenceField;

  public TransactionInputWidget(final TransactionInput input) {
    initWidget(UI_BINDER.createAndBindUi(this));

    //    previousOutputField.setValue(new String(Hex.encode(input.getOutPoint().getReferenceTransaction())));
    //    signatureScriptField.setValue(new String(Hex.encode(input.getSignatureScript().getScriptBytes())));
    //    sequenceField.setValue(String.valueOf(input.getTransactionSequence()));
  }
}
<commit_msg>Input widget<commit_after>package com.yoghurt.crypto.transactions.client.widget;

import com.google.gwt.core.client.GWT;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.Widget;
import com.googlecode.gwt.crypto.bouncycastle.util.encoders.Hex;
import com.yoghurt.crypto.transactions.client.domain.transaction.TransactionInput;

public class TransactionInputWidget extends Composite {
  interface TransactionInputWidgetUiBinder extends UiBinder<Widget, TransactionInputWidget> {}

  private static final TransactionInputWidgetUiBinder UI_BINDER = GWT.create(TransactionInputWidgetUiBinder.class);

  @UiField LabelledValue previousOutputField;
  @UiField LabelledValue signatureScriptField;
  @UiField LabelledValue sequenceField;

  public TransactionInputWidget(final TransactionInput input) {
    initWidget(UI_BINDER.createAndBindUi(this));

    previousOutputField.setValue(new String(Hex.encode(input.getOutPoint().getReferenceTransaction())));


    sequenceField.setValue(String.valueOf(input.getTransactionSequence()));
  }
}

{'fraction_non_alphanumeric': 0.09857382550335571, 'fraction_numerical': 0.0, 'mean_word_length': 6.718446601941747, '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': '265668', 'n_tokens_mistral': 701, 'n_tokens_neox': 691, 'n_words': 99}