<commit_before>package net.sf.taverna.t2.activities.biomoby.ui;

import java.awt.Frame;
import java.awt.event.ActionEvent;

import javax.swing.AbstractAction;
import javax.swing.JButton;

import net.sf.taverna.t2.activities.biomoby.actions.BiomobyScavengerDialog;
import net.sf.taverna.t2.workbench.helper.HelpEnabledDialog;

import org.apache.log4j.Logger;
import org.biomoby.client.CentralImpl;

@SuppressWarnings("serial")
public abstract class AddBiomobyDialogue extends HelpEnabledDialog {

	@SuppressWarnings("unused")
	private static Logger logger = Logger.getLogger(AddBiomobyDialogue.class);

	private String endpoint = CentralImpl.DEFAULT_ENDPOINT;

	private String uri = CentralImpl.DEFAULT_NAMESPACE;

	public AddBiomobyDialogue() {
		super((Frame) null, "Add BioMoby Registry", true, null);
		initialize();
	}
	public void initialize() {
		final BiomobyScavengerDialog msp = new BiomobyScavengerDialog();
		getContentPane().add(msp);
		JButton accept = new JButton(new OKAction(msp));
		JButton cancel = new JButton(new CancelAction());
		msp.add(accept);
		msp.add(cancel);
		setResizable(false);
		getContentPane().add(msp);
		setLocationRelativeTo(null);
		pack();
	}
<commit_msg>Fixed the parent for Import new Biomoby Service dialog. It was null before and would go to a different screen if people used multiple monitors.<commit_after>package net.sf.taverna.t2.activities.biomoby.ui;

import java.awt.Frame;
import java.awt.event.ActionEvent;

import javax.swing.AbstractAction;
import javax.swing.JButton;

import net.sf.taverna.t2.activities.biomoby.actions.BiomobyScavengerDialog;
import net.sf.taverna.t2.workbench.helper.HelpEnabledDialog;
import net.sf.taverna.t2.workbench.ui.impl.Workbench;

import org.apache.log4j.Logger;
import org.biomoby.client.CentralImpl;

@SuppressWarnings("serial")
public abstract class AddBiomobyDialogue extends HelpEnabledDialog {

	@SuppressWarnings("unused")
	private static Logger logger = Logger.getLogger(AddBiomobyDialogue.class);

	private String endpoint = CentralImpl.DEFAULT_ENDPOINT;

	private String uri = CentralImpl.DEFAULT_NAMESPACE;

	public AddBiomobyDialogue() {
		super(Workbench.getInstance(), "Add BioMoby Registry", true, null);
		initialize();
		setLocationRelativeTo(getParent());
	}
	public void initialize() {
		final BiomobyScavengerDialog msp = new BiomobyScavengerDialog();
		getContentPane().add(msp);
		JButton accept = new JButton(new OKAction(msp));
		JButton cancel = new JButton(new CancelAction());
		msp.add(accept);
		msp.add(cancel);
		setResizable(false);
		getContentPane().add(msp);
		setLocationRelativeTo(null);
		pack();
	}

{'fraction_non_alphanumeric': 0.10895238095238095, 'fraction_numerical': 0.0034285714285714284, 'mean_word_length': 6.002666666666666, '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': '1091858', 'n_tokens_mistral': 880, 'n_tokens_neox': 847, 'n_words': 174}