<commit_before>
/*
 * Carrot2 project.
 *
 * Copyright (C) 2002-2015, <NAME>, <NAME>.
 * All rights reserved.
 *
 * Refer to the full license file "carrot2.LICENSE"
 * in the root folder of the repository checkout or at:
 * http://www.carrot2.org/carrot2.LICENSE
 */

package org.carrot2.workbench.editors.impl;

import org.carrot2.workbench.core.helpers.GUIFactory;
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Text;


public class QueryStringEditor extends StringEditor
{
    @Override
    protected Text createTextBox(Composite parent, int gridColumns)
    {
        Text textBox = new Text(parent, SWT.SEARCH | SWT.ICON_SEARCH | SWT.BORDER );
        textBox.setLayoutData(
            GUIFactory.editorGridData()
                .grab(true, false)
                .hint(200, SWT.DEFAULT)
                .align(SWT.FILL, SWT.CENTER)
                .span(gridColumns, 1).create());
        return textBox;
    }
}
<commit_msg>Removed the special SWT.SEARCH style; it isn't intuitive to me.<commit_after>
/*
 * Carrot2 project.
 *
 * Copyright (C) 2002-2015, <NAME>, <NAME>.
 * All rights reserved.
 *
 * Refer to the full license file "carrot2.LICENSE"
 * in the root folder of the repository checkout or at:
 * http://www.carrot2.org/carrot2.LICENSE
 */

package org.carrot2.workbench.editors.impl;

import org.carrot2.workbench.core.helpers.GUIFactory;
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Text;


public class QueryStringEditor extends StringEditor
{
    @Override
    protected Text createTextBox(Composite parent, int gridColumns)
    {
        Text textBox = new Text(parent, SWT.BORDER );
        textBox.setLayoutData(
            GUIFactory.editorGridData()
                .grab(true, false)
                .hint(200, SWT.DEFAULT)
                .align(SWT.FILL, SWT.CENTER)
                .span(gridColumns, 1).create());
        return textBox;
    }
}

{'fraction_non_alphanumeric': 0.11138986452584045, 'fraction_numerical': 0.01806322127446061, 'mean_word_length': 2.7481203007518795, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '145922', 'n_tokens_mistral': 670, 'n_tokens_neox': 633, 'n_words': 147}