<commit_before>package eu.scasefp7.eclipse.core.ui.wizards;

import java.net.MalformedURLException;
import java.net.URL;

import org.eclipse.jface.wizard.WizardPage;
import org.eclipse.swt.SWT;
import org.eclipse.swt.custom.StyledText;
import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Link;
import org.eclipse.ui.PartInitException;
import org.eclipse.ui.PlatformUI;
import org.eclipse.ui.browser.IWebBrowser;

import eu.scasefp7.eclipse.core.ui.Activator;
import org.eclipse.swt.widgets.Text;

/**
 * Wizard intended to help users deploy generated services.
 * 
 * @author <NAME>
 * @author <NAME>
 */
public class DeployWizardPageTwo extends WizardPage {

	protected DeployWizardPageTwo(String pageName) {
		super(pageName);
		setTitle(pageName);
	}

	@Override
	public void createControl(Composite parent) {
		final Composite composite = new Composite(parent, SWT.NONE);
		initializeDialogUnits(parent);
		composite.setFont(parent.getFont());
		
		GridLayout layout = new GridLayout();
		layout.marginWidth = 0;
		layout.marginHeight = 0;
		composite.setLayout(layout);
        composite.setLayoutData(new GridData(GridData.FILL_BOTH));
		
		new Label(composite, SWT.NONE);
		
		StyledText styledText = new StyledText (composite,  SWT.MULTI);
		styledText.setEditable(false);
		//styledText.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_BACKGROUND));
		styledText.setText("To start the generated web service, create a WAR file using Maven with the goal 'package'.\n "
				+ "The created WAR file is ready to be deployed on a web server that supports Java JAX-RS web service.\n"
				+ "Your web service will connect to the database using credentials configured in the project.\n");
		
		String url = "http://s-case.github.io/webbook.html";
		this.setControl(composite);
		new Label(composite, SWT.NONE);
		
		Label lblMoreInformation = new Label(composite, SWT.NONE);
		lblMoreInformation.setText("More information:");
		Link link = new Link(composite, SWT.NONE);
		link.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));
		link.setText("<a href=\"#\">" + url + "</a>"); //$NON-NLS-1$ //$NON-NLS-2$
		link.addSelectionListener(new SelectionAdapter() {
		  public void widgetSelected(SelectionEvent e) {
		  	IWebBrowser browser;
				try {
					browser = PlatformUI.getWorkbench().getBrowserSupport().createBrowser("browser");
					browser.openURL(new URL(url));
				} catch (PartInitException | MalformedURLException e1) {
					Activator.log("Unable to open browser.", e1);
				}
				
		  }      
		});
		setPageComplete(true);
		
	}
}<commit_msg>Make appearance changes to the deploy project wizard<commit_after>package eu.scasefp7.eclipse.core.ui.wizards;

import java.net.MalformedURLException;
import java.net.URL;

import org.eclipse.jface.wizard.WizardPage;
import org.eclipse.swt.SWT;
import org.eclipse.swt.custom.StyledText;
import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Link;
import org.eclipse.ui.PartInitException;
import org.eclipse.ui.PlatformUI;
import org.eclipse.ui.browser.IWebBrowser;

import eu.scasefp7.eclipse.core.ui.Activator;

/**
 * Wizard intended to help users deploy generated services.
 * 
 * @author <NAME>
 * @author <NAME>
 */
public class DeployWizardPageTwo extends WizardPage {

	protected DeployWizardPageTwo(String pageName) {
		super(pageName);
		setTitle(pageName);
	}

	@Override
	public void createControl(Composite parent) {
		final Composite composite = new Composite(parent, SWT.NONE);
		initializeDialogUnits(parent);
		composite.setFont(parent.getFont());
		
		GridLayout layout = new GridLayout();
		layout.marginWidth = 0;
		layout.marginHeight = 0;
		composite.setLayout(layout);
        composite.setLayoutData(new GridData(GridData.FILL_BOTH));
		
		new Label(composite, SWT.NONE);
		
		StyledText styledText = new StyledText (composite,  SWT.MULTI);
		styledText.setCaret(null);
		styledText.setEditable(false);
		//styledText.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_BACKGROUND));
		styledText.setText("To start the generated web service, create a WAR file using Maven with the goal 'package'.\n"
				+ "The created WAR file is ready to be deployed on a web server that supports Java JAX-RS web service.\n"
				+ "Your web service will connect to the database using credentials configured in the project.");
		
		String url = "http://s-case.github.io/webbook.html#7";
		this.setControl(composite);
		new Label(composite, SWT.NONE);
		
		Label lblMoreInformation = new Label(composite, SWT.NONE);
		lblMoreInformation.setText("More information:");
		Link link = new Link(composite, SWT.NONE);
		link.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, true, false, 1, 1));
		link.setText("<a href=\"#\">" + url + "</a>"); //$NON-NLS-1$ //$NON-NLS-2$
		link.addSelectionListener(new SelectionAdapter() {
		  public void widgetSelected(SelectionEvent e) {
		  	IWebBrowser browser;
				try {
					browser = PlatformUI.getWorkbench().getBrowserSupport().createBrowser("browser");
					browser.openURL(new URL(url));
				} catch (PartInitException | MalformedURLException e1) {
					Activator.log("Unable to open browser.", e1);
				}
				
		  }      
		});
		setPageComplete(true);
		
	}
}
{'fraction_non_alphanumeric': 0.12019061066007766, 'fraction_numerical': 0.0037063183903988705, 'mean_word_length': 4.512645914396887, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '1798304', 'n_tokens_mistral': 1984, 'n_tokens_neox': 1795, 'n_words': 400}