<commit_before>Ui.Form.extend('Ui.TextButtonField', 
/**@lends Ui.TextButtonField#*/
{
	entry: undefined,
	button: undefined,
	buttonIcon: undefined,
	buttonText: undefined,

	/**
     * @constructs
	 * @class 
     * @extends Ui.LBox
     * @param {String} [config.buttonText] Text display in the button
	 * @param {String} [config.buttonIcon] Name of the button icon
	 * @param {String} [config.value] Default TextField value
	 */
	constructor: function(config) {
		this.addEvents('change', 'validate', 'buttonpress');

		var hbox = new Ui.HBox();
		this.setContent(hbox);

		this.entry = new Ui.TextField();
		hbox.append(this.entry, true);
		
		this.button = new Ui.DefaultButton({ orientation: 'horizontal' });
		hbox.append(this.button);
		
		this.connect(this.entry, 'change', this.onEntryChange);
		this.connect(this, 'submit', this.onFormSubmit);

		this.connect(this.button, 'press', this.onButtonPress);
	},<commit_msg>provide a new class for TextButtonField button<commit_after>Ui.DefaultButton.extend('Ui.TextFieldButton');

Ui.Form.extend('Ui.TextButtonField', 
/**@lends Ui.TextButtonField#*/
{
	entry: undefined,
	button: undefined,
	buttonIcon: undefined,
	buttonText: undefined,

	/**
     * @constructs
	 * @class 
     * @extends Ui.LBox
     * @param {String} [config.buttonText] Text display in the button
	 * @param {String} [config.buttonIcon] Name of the button icon
	 * @param {String} [config.value] Default TextField value
	 */
	constructor: function(config) {
		this.addEvents('change', 'validate', 'buttonpress');

		var hbox = new Ui.HBox();
		this.setContent(hbox);

		this.entry = new Ui.TextField();
		hbox.append(this.entry, true);
		
		this.button = new Ui.TextFieldButton({ orientation: 'horizontal' });
		hbox.append(this.button);
		
		this.connect(this.entry, 'change', this.onEntryChange);
		this.connect(this, 'submit', this.onFormSubmit);

		this.connect(this.button, 'press', this.onButtonPress);
	},
{'fraction_non_alphanumeric': 0.1523417395779722, 'fraction_numerical': 0.0, 'mean_word_length': 4.4, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '6686282', 'n_tokens_mistral': 672, 'n_tokens_neox': 620, 'n_words': 141}