<commit_before>package org.pwsafe.passwordsafeswt.action;

import org.eclipse.jface.action.Action;
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.MessageBox;
import org.pwsafe.passwordsafeswt.PasswordSafeJFace;

import edu.stanford.ejalbert.BrowserLauncher;

/**
 * Launches a browser to the passwordsafe website.
 *
 * @author <NAME>
 */
public class VisitPasswordSafeWebsiteAction extends Action {

    public VisitPasswordSafeWebsiteAction() {
        super("Visit Password Safe website");
    }

    /**
     * @see org.eclipse.jface.action.Action#run()
     */
    public void run() {
        final PasswordSafeJFace app = PasswordSafeJFace.getApp();
        new Thread() {
            public void run() {
                try {
                    BrowserLauncher
                            .openURL("http://passwordsafe.sourceforge.net/");
                } catch (Exception ioe) {
                    MessageBox mb = new MessageBox(app.getShell(),
                            SWT.ICON_ERROR);
                    mb.setText("Could not open URL");
                    mb
                            .setText("Could not launch browser to http://passwordsafe.sourceforge.net/");
                    mb.open();
                }
            }
        }.start();
    }

}<commit_msg>Used native swt launcher rather than browser launcher.<commit_after>package org.pwsafe.passwordsafeswt.action;

import org.eclipse.jface.action.Action;
import org.eclipse.swt.SWT;
import org.eclipse.swt.program.Program;
import org.eclipse.swt.widgets.MessageBox;
import org.pwsafe.passwordsafeswt.PasswordSafeJFace;


/**
 * Launches a browser to the passwordsafe website.
 *
 * @author <NAME>
 */
public class VisitPasswordSafeWebsiteAction extends Action {

    public VisitPasswordSafeWebsiteAction() {
        super("Visit Password Safe website");
    }

    /**
     * @see org.eclipse.jface.action.Action#run()
     */
    public void run() {
        final PasswordSafeJFace app = PasswordSafeJFace.getApp();
        new Thread() {
            public void run() {
                try {
                		Program.launch("http://passwordsafe.sourceforge.net/");
                } catch (Exception ioe) {
                    MessageBox mb = new MessageBox(app.getShell(),
                            SWT.ICON_ERROR);
                    mb.setText("Could not open URL");
                    mb
                            .setText("Could not launch browser to http://passwordsafe.sourceforge.net/");
                    mb.open();
                }
            }
        }.start();
    }

}
{'fraction_non_alphanumeric': 0.10575067541489773, 'fraction_numerical': 0.0, 'mean_word_length': 1.8389923329682365, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '2409491', 'n_tokens_mistral': 723, 'n_tokens_neox': 681, 'n_words': 146}