<commit_before> /**********************************************************************
 **                                                                   **
 ** This Script has been developed for more StyledText Enrichment     **
 ** December-2006 by proconis GmbH / Germany                          **
 **                                                                   ** 
 ** http://www.proconis.de                                            **
 ** <EMAIL>                                                  **
 **                                                                   **
 **********************************************************************/

package org.pentaho.di.ui.core.widget;

import org.eclipse.swt.SWT;
import org.eclipse.swt.custom.StyledText;
import org.eclipse.swt.events.ModifyEvent;
import org.eclipse.swt.events.ModifyListener;
import org.eclipse.swt.graphics.Point;
import org.eclipse.swt.layout.FormAttachment;
import org.eclipse.swt.layout.FormData;
import org.eclipse.swt.layout.FormLayout;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Event;
import org.eclipse.swt.widgets.Group;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Listener;
import org.eclipse.swt.widgets.MessageBox;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.widgets.Text;


public class StyledTextCompFind extends org.eclipse.swt.widgets.Dialog {


	private Shell sShell = null;
	private Text searchText;
	private StyledText text;
	private String strHeader;
	
	private Button btnNext;
	private Button btnCancel;
	
	private Button btnIgnoreCase;
	private Button optForward; 
	
	public StyledTextCompFind(Shell parent, StyledText text, String strHeader){
		super(parent);
		this.text = text;
		this.strHeader = "Find";
	}
	
	public void open() {
		
		Shell parent = getParent();
		sShell = new Shell(parent, SWT.DIALOG_TRIM | SWT.NO_REDRAW_RESIZE | SWT.APPLICATION_MODAL  );

		sShell.setText(strHeader);
		sShell.setSize(new Point(360, 126));
		FormLayout formLayout = new FormLayout ();
		sShell.setLayout(formLayout);
		
		searchText = new Text(sShell,  SWT.SINGLE | SWT.BORDER);
		FormData frmData = new FormData();
		frmData.left = new FormAttachment(0, 70);
		frmData.top  = new FormAttachment(12, 0);
		frmData.width = 178;
		searchText.setLayoutData(frmData);

		Label lblFind = new Label(sShell,SWT.LEFT);
		lblFind.setText("Find:");
		frmData = new FormData();
		frmData.right = new FormAttachment(searchText,  -8);<commit_msg>use provided parameter instead of hard-coded value<commit_after> /**********************************************************************
 **                                                                   **
 ** This Script has been developed for more StyledText Enrichment     **
 ** December-2006 by proconis GmbH / Germany                          **
 **                                                                   ** 
 ** http://www.proconis.de                                            **
 ** <EMAIL>                                                  **
 **                                                                   **
 **********************************************************************/

package org.pentaho.di.ui.core.widget;

import org.eclipse.swt.SWT;
import org.eclipse.swt.custom.StyledText;
import org.eclipse.swt.events.ModifyEvent;
import org.eclipse.swt.events.ModifyListener;
import org.eclipse.swt.graphics.Point;
import org.eclipse.swt.layout.FormAttachment;
import org.eclipse.swt.layout.FormData;
import org.eclipse.swt.layout.FormLayout;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Event;
import org.eclipse.swt.widgets.Group;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Listener;
import org.eclipse.swt.widgets.MessageBox;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.widgets.Text;


public class StyledTextCompFind extends org.eclipse.swt.widgets.Dialog {


	private Shell sShell = null;
	private Text searchText;
	private StyledText text;
	private String strHeader;
	
	private Button btnNext;
	private Button btnCancel;
	
	private Button btnIgnoreCase;
	private Button optForward; 
	
	public StyledTextCompFind(Shell parent, StyledText text, String strHeader){
		super(parent);
		this.text = text;
		this.strHeader = strHeader;
	}
	
	public void open() {
		
		Shell parent = getParent();
		sShell = new Shell(parent, SWT.DIALOG_TRIM | SWT.NO_REDRAW_RESIZE | SWT.APPLICATION_MODAL  );

		sShell.setText(strHeader);
		sShell.setSize(new Point(360, 126));
		FormLayout formLayout = new FormLayout ();
		sShell.setLayout(formLayout);
		
		searchText = new Text(sShell,  SWT.SINGLE | SWT.BORDER);
		FormData frmData = new FormData();
		frmData.left = new FormAttachment(0, 70);
		frmData.top  = new FormAttachment(12, 0);
		frmData.width = 178;
		searchText.setLayoutData(frmData);

		Label lblFind = new Label(sShell,SWT.LEFT);
		lblFind.setText("Find:");
		frmData = new FormData();
		frmData.right = new FormAttachment(searchText,  -8);
{'fraction_non_alphanumeric': 0.15335151987529227, 'fraction_numerical': 0.00779423226812159, 'mean_word_length': 2.6875, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 26, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4625441', 'n_tokens_mistral': 1576, 'n_tokens_neox': 1428, 'n_words': 301}