<commit_before>package org.liquidengine.legui.component.event.textinput;

import org.liquidengine.legui.component.Frame;
import org.liquidengine.legui.component.TextInput;
import org.liquidengine.legui.event.Event;
import org.liquidengine.legui.system.context.Context;

/**
 * @author Aliaksandr_Shcherbin.
 */
public class TextInputContentChangeEvent<T extends TextInput> extends Event<T> {

    public TextInputContentChangeEvent(T component, Context context, Frame frame, String oldValue, String newValue) {
        super(component, context, frame);
    }
}<commit_msg>Added fields to TextInputContentChangeEvent of old and new text values.<commit_after>package org.liquidengine.legui.component.event.textinput;

import org.liquidengine.legui.component.Frame;
import org.liquidengine.legui.component.TextInput;
import org.liquidengine.legui.event.Event;
import org.liquidengine.legui.system.context.Context;

/**
 * @author Aliaksandr_Shcherbin.
 */
public class TextInputContentChangeEvent<T extends TextInput> extends Event<T> {

    /**
     * Old value.
     */
    private final String oldValue;
    /**
     * New value.
     */
    private final String newValue;

    public TextInputContentChangeEvent(T component, Context context, Frame frame, String oldValue, String newValue) {
        super(component, context, frame);
        this.oldValue = oldValue;
        this.newValue = newValue;
    }

    /**
     * Returns old value.
     *
     * @return old value.
     */
    public String getOldValue() {
        return oldValue;
    }

    /**
     * Returns new value.
     *
     * @return new value.
     */
    public String getNewValue() {
        return newValue;
    }
}
{'fraction_non_alphanumeric': 0.09994086339444117, 'fraction_numerical': 0.0, 'mean_word_length': 3.316326530612245, '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': '7594958', 'n_tokens_mistral': 511, 'n_tokens_neox': 484, 'n_words': 113}