<commit_before>package de.lessvoid.nifty.controls;

import de.lessvoid.nifty.NiftyEvent;

/**
 * Nifty generates this event when the current text of an TextField changes.
 * @author void
 */
public class TextFieldChangedEvent implements NiftyEvent<Void> {
  private String currentText;

  public TextFieldChangedEvent(final String currentText) {
    this.currentText = currentText;
  }

  public String getSelection() {
    return currentText;
  }
}<commit_msg>@public renamed getSelection() into getText() because it's not the selection the TextFieldChangedEvent carries but the complete text<commit_after>package de.lessvoid.nifty.controls;

import de.lessvoid.nifty.NiftyEvent;

/**
 * Nifty generates this event when the current text of an TextField changes.
 * @author void
 */
public class TextFieldChangedEvent implements NiftyEvent<Void> {
  private String currentText;

  public TextFieldChangedEvent(final String currentText) {
    this.currentText = currentText;
  }

  public String getText() {
    return currentText;
  }
}
{'fraction_non_alphanumeric': 0.07722007722007722, 'fraction_numerical': 0.0, 'mean_word_length': 4.7292817679558015, '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': '6203115', 'n_tokens_mistral': 298, 'n_tokens_neox': 294, 'n_words': 90}