<commit_before>const libui = require('../index.js');
libui.Ui.init();
const win = new libui.UiWindow('Test window', 800, 600, false);
win.margined = 1;

const box = new libui.UiVerticalBox();
const entry = new libui.UiEntry();
const status1 = new libui.UiLabel('status 1');
const status2 = new libui.UiLabel('status 2');
const btnQuit = new libui.UiButton('Quit');

entry.onChange(() => {
	status1.text = entry.text;
});

entry.onChange(() => {
	status2.text = entry.text;
});

btnQuit.onClicked(() => {
	libui.stopLoop();
});

box.append(entry, 1);
box.append(btnQuit, 0);
box.append(status1, 0);
box.append(status2, 0);

win.setChild(box);
win.show();
libui.startLoop();
<commit_msg>renamed onchanged event<commit_after>const libui = require('../index.js');
libui.Ui.init();
const win = new libui.UiWindow('Test window', 800, 600, false);
win.margined = 1;

const box = new libui.UiVerticalBox();
const entry = new libui.UiEntry();
const status1 = new libui.UiLabel('status 1');
const status2 = new libui.UiLabel('status 2');
const btnQuit = new libui.UiButton('Quit');

win.onClosing(() => {
	libui.stopLoop();
});

entry.onChanged(() => {
	status1.text = entry.text;
});

entry.onChanged(() => {
	status2.text = entry.text;
});

btnQuit.onClicked(() => {
	libui.stopLoop();
});

box.append(entry, 1);
box.append(btnQuit, 0);
box.append(status1, 0);
box.append(status2, 0);

win.setChild(box);
win.show();
libui.startLoop();

{'fraction_non_alphanumeric': 0.20028011204481794, 'fraction_numerical': 0.02661064425770308, 'mean_word_length': 5.1068376068376065, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 10, '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': '6510289', 'n_tokens_mistral': 561, 'n_tokens_neox': 534, 'n_words': 114}