nus-yam/ex-repair huggingface dataset:
Program: 2679
Project: 2679
Buggy source:
public PagesLogic(EventBus eventBus,PagesPanel view){
  this.eventBus=eventBus;
  this.view=view;
  this.hiddenPages=new ArrayList<PageView>();
  this.visiblePages=new ArrayList<PageView>();
  eventBus.addHandler(UserMessageEvent.TYPE,new UserMessageHandler(){
    @Override public void onUserMessage(    UserMessageEvent event){
    }
  }
);
  eventBus.addHandler(VisibilityChangedEvent.TYPE,new VisibilityChangedHandler(){
    @Override public void onVisibilityChanged(    VisibilityChangedEvent event){
      whenVisibilityChanged(event.getPage());
    }
  }
);
  eventBus.addHandler(ClosePageEvent.TYPE,new ClosePageHandler(){
    @Override public void onPageClosed(    PageLogic page){
      whenPageClosed(page);
    }
  }
);
}

Fixed version (ground truth):
public PagesLogic(EventBus eventBus,PagesPanel view){
  this.eventBus=eventBus;
  this.view=view;
  this.hiddenPages=new ArrayList<PageView>();
  this.visiblePages=new ArrayList<PageView>();
  eventBus.addHandler(UserMessageEvent.TYPE,new UserMessageHandler(){
    @Override public void onUserMessage(    UserMessageEvent event){
    }
  }
);
  eventBus.addHandler(VisibilityChangedEvent.TYPE,new VisibilityChangedHandler(){
    @Override public void onVisibilityChanged(    VisibilityChangedEvent event){
      whenVisibilityChanged(event.getPage());
    }
  }
);
  eventBus.addHandler(ClosePageEvent.TYPE,new ClosePageHandler(){
    @Override public void onPageClosed(    PageLogic page){
      whenPageClosed(page);
    }
  }
);
  eventBus.addHandler(OpenPageEvent.TYPE,new OpenPageHandler(){
    @Override public void onOpenPage(    OpenPageEvent event){
      open(event.getPage().getView());
    }
  }
);
}
Program: 2680
Project: 2680
Buggy source:
public static String updateTitle(final String message,final String title){
  final String extracted=title.replaceFirst("String_Node_Str","String_Node_Str");
  return (message != null && !message.isEmpty() ? "String_Node_Str" + message + "String_Node_Str" : "String_Node_Str") + extracted;
}

Fixed version (ground truth):
public static String updateTitle(final String title,final String message){
  final String extracted=title.replaceFirst("String_Node_Str","String_Node_Str");
  return (message != null && !message.isEmpty() ? "String_Node_Str" + message + "String_Node_Str" : "String_Node_Str") + extracted;
}
Program: 2681
Project: 2681
Buggy source:
@Override public void handleUnattendedMessage(UnattendedChatsChangedEvent event){
  final int size=event.getUnattendedChatPages().getSize();
  String message=size == 0 ? "String_Node_Str" : i18n.unreadChats(size);
  String oldTitle=display.getText();
  String newTitle=WindowTextHelper.updateTitle(message,oldTitle);
  display.setText(newTitle);
}

Fixed version (ground truth):
@Override public void handleUnattendedMessage(UnattendedChatsChangedEvent event){
  final int size=event.getUnattendedChatPages().getSize();
  String message=size == 0 ? "String_Node_Str" : i18n.unreadChats(size);
  String oldTitle=display.getText();
  String newTitle=WindowTextHelper.updateTitle(oldTitle,message);
  display.setText(newTitle);
}
Program: 2682
Project: 2682
Buggy source:
public WindowTitlePresenter(EventBus eventBus,final HasText display){
  final Msg i18n=Suco.get(Msg.class);
  eventBus.addHandler(UnattendedChatsChangedEvent.TYPE,new UnattendedMessageHandler(){
    @Override public void handleUnattendedMessage(    UnattendedChatsChangedEvent event){
      final int size=event.getUnattendedChatPages().getSize();
      String message=size == 0 ? "String_Node_Str" : i18n.unreadChats(size);
      String oldTitle=display.getText();
      String newTitle=WindowTextHelper.updateTitle(message,oldTitle);
      display.setText(newTitle);
    }
  }
);
}

Fixed version (ground truth):
public WindowTitlePresenter(EventBus eventBus,final HasText display){
  final Msg i18n=Suco.get(Msg.class);
  eventBus.addHandler(UnattendedChatsChangedEvent.TYPE,new UnattendedMessageHandler(){
    @Override public void handleUnattendedMessage(    UnattendedChatsChangedEvent event){
      final int size=event.getUnattendedChatPages().getSize();
      String message=size == 0 ? "String_Node_Str" : i18n.unreadChats(size);
      String oldTitle=display.getText();
      String newTitle=WindowTextHelper.updateTitle(oldTitle,message);
      display.setText(newTitle);
    }
  }
);
}
Program: 2683
Project: 2683
Buggy source:
public void setActive(final boolean active){
  GWT.log("String_Node_Str" + active,null);
  if (active) {
    roster.setWidgetTopHeight(actions,0,Unit.PX,20,Unit.PX);
    roster.setWidgetTopHeight(disabledPanel,0,Unit.PX,0,Unit.PX);
    roster.setWidgetTopBottom(list,20,Unit.PX,0,Unit.PX);
  }
 else {
    roster.setWidgetTopHeight(actions,0,Unit.PX,0,Unit.PX);
    roster.setWidgetTopBottom(disabledPanel,0,Unit.PX,0,Unit.PX);
    roster.setWidgetBottomHeight(list,0,Unit.PX,0,Unit.PX);
  }
  roster.animate(active ? 500 : 0);
}

Fixed version (ground truth):
public void setActive(final boolean active){
  GWT.log("String_Node_Str" + active,null);
  if (active) {
    roster.setWidgetTopHeight(actions,0,Unit.PX,20,Unit.PX);
    roster.setWidgetTopHeight(disabledPanel,0,Unit.PX,0,Unit.PX);
    roster.setWidgetTopBottom(scroll,20,Unit.PX,0,Unit.PX);
  }
 else {
    roster.setWidgetTopHeight(actions,0,Unit.PX,0,Unit.PX);
    roster.setWidgetTopBottom(disabledPanel,0,Unit.PX,0,Unit.PX);
    roster.setWidgetBottomHeight(scroll,0,Unit.PX,0,Unit.PX);
  }
  roster.animate(active ? 500 : 0);
}
Program: 2684
Project: 2684
Buggy source:
public HablarLogic(HablarConfig config,final Pages pages){
  this.config=config;
  this.pages=pages;
  final Session session=Suco.get(Session.class);
  loginPage=new LoginPage();
  if (config.hasLogin) {
    pages.add(loginPage,Visibility.open);
  }
  if (config.hasRoster) {
    rosterPage=new RosterPage();
    pages.add(rosterPage,Visibility.closed);
    if (config.hasSearch) {
      final SearchPage searchPage=new SearchPage();
      pages.add(searchPage,Visibility.hidden);
      rosterPage.addAction(searchPage.icons.searchIcon(),new ClickHandler(){
        @Override public void onClick(        ClickEvent event){
          pages.open(searchPage);
        }
      }
);
    }
  }
  session.onStateChanged(new Listener<Session>(){
    @Override public void onEvent(    Session session){
      setState(session.getState());
    }
  }
);
  setState(session.getState());
}

Fixed version (ground truth):
public HablarLogic(HablarConfig config,final Pages pages){
  this.config=config;
  this.pages=pages;
  final Session session=Suco.get(Session.class);
  loginPage=new LoginPage();
  if (config.hasLogin) {
    pages.add(loginPage,Visibility.open);
  }
  if (config.hasRoster) {
    rosterPageWidget=new RosterPageWidget();
    pages.add(rosterPageWidget,Visibility.closed);
    if (config.hasSearch) {
      final SearchPage searchPage=new SearchPage();
      pages.add(searchPage,Visibility.hidden);
      rosterPageWidget.addAction(searchPage.icons.searchIcon(),new ClickHandler(){
        @Override public void onClick(        ClickEvent event){
          pages.open(searchPage);
        }
      }
);
    }
  }
  session.onStateChanged(new Listener<Session>(){
    @Override public void onEvent(    Session session){
      setState(session.getState());
    }
  }
);
  setState(session.getState());
}
Program: 2685
Project: 2685
Buggy source:
private void setState(State state){
  if (config.hasRoster && state == State.ready) {
    pages.open(rosterPage);
  }
 else   if (config.hasLogin && state == State.disconnected) {
    pages.open(loginPage);
  }
}

Fixed version (ground truth):
private void setState(State state){
  if (config.hasRoster && state == State.ready) {
    pages.open(rosterPageWidget);
  }
 else   if (config.hasLogin && state == State.disconnected) {
    pages.open(loginPage);
  }
}
Program: 2686
Project: 2686
Buggy source:
public RosterLogic(final RosterView view){
  this.view=view;
  this.roster=Suco.get(Roster.class);
  this.items=new HashMap<XmppURI,RosterItemView>();
  this.chatManager=Suco.get(ChatManager.class);
  createMenu();
  roster.onRosterRetrieved(new Listener<Collection<RosterItem>>(){
    @Override public void onEvent(    Collection<RosterItem> items){
      GWT.log("String_Node_Str",null);
      for (      RosterItem item : items) {
        getOrCreateWidget(item);
      }
    }
  }
);
  roster.onItemAdded(new Listener<RosterItem>(){
    @Override public void onEvent(    RosterItem item){
      getOrCreateWidget(item);
      view.setStatusMessage(item.getName() + "String_Node_Str");
    }
  }
);
  roster.onItemChanged(new Listener<RosterItem>(){
    @Override public void onEvent(    RosterItem item){
      getOrCreateWidget(item);
    }
  }
);
  Session session=Suco.get(Session.class);
  session.onStateChanged(new Listener<Session>(){
    @Override public void onEvent(    Session session){
      boolean isActive=session.getState() == State.ready;
      if (active != isActive) {
        active=isActive;
        view.setActive(isActive);
      }
    }
  }
);
  this.active=session.getState() == State.ready;
  view.setActive(active);
}

Fixed version (ground truth):
public RosterLogic(final RosterView view){
  this.view=view;
  this.roster=Suco.get(Roster.class);
  this.items=new HashMap<XmppURI,RosterItemView>();
  this.chatManager=Suco.get(ChatManager.class);
  createMenu();
  roster.onRosterRetrieved(new Listener<Collection<RosterItem>>(){
    @Override public void onEvent(    Collection<RosterItem> items){
      GWT.log("String_Node_Str",null);
      for (      RosterItem item : items) {
        getOrCreateWidget(item);
      }
    }
  }
);
  roster.onItemAdded(new Listener<RosterItem>(){
    @Override public void onEvent(    RosterItem item){
      getOrCreateWidget(item);
      view.setStatusMessage(item.getName() + "String_Node_Str");
    }
  }
);
  roster.onItemChanged(new Listener<RosterItem>(){
    @Override public void onEvent(    RosterItem item){
      getOrCreateWidget(item);
    }
  }
);
  roster.onItemRemoved(new Listener<RosterItem>(){
    @Override public void onEvent(    RosterItem item){
      view.removeItemView(getOrCreateWidget(item));
      view.setStatusMessage(item.getName() + "String_Node_Str");
    }
  }
);
  Session session=Suco.get(Session.class);
  session.onStateChanged(new Listener<Session>(){
    @Override public void onEvent(    Session session){
      boolean isActive=session.getState() == State.ready;
      if (active != isActive) {
        active=isActive;
        view.setActive(isActive);
      }
    }
  }
);
  this.active=session.getState() == State.ready;
  view.setActive(active);
}
Program: 2687
Project: 2687
Buggy source:
public static IconType getIcon(RosterItem item){
  Show show=item.getShow();
  if (show == Show.dnd) {
    return IconType.buddyDnd;
  }
 else   if (show == Show.xa) {
    return IconType.buddyWait;
  }
 else   if (show == Show.away) {
    return IconType.buddyWait;
  }
 else   if (item.isAvailable()) {
    return IconType.buddyOn;
  }
 else {
    return IconType.buddyOn;
  }
}

Fixed version (ground truth):
public static IconType getIcon(RosterItem item){
  Show show=item.getShow();
  if (show == Show.dnd) {
    return IconType.buddyDnd;
  }
 else   if (show == Show.xa) {
    return IconType.buddyWait;
  }
 else   if (show == Show.away) {
    return IconType.buddyWait;
  }
 else   if (item.isAvailable()) {
    return IconType.buddyOn;
  }
 else {
    return IconType.buddyOff;
  }
}
Program: 2688
Project: 2688
Buggy source:
@Override public void run(){
  PrintSubnetsTask task=new PrintSubnetsTask(m_pathToProject);
  task.run();
  m_subnets=task.getSubnets();
  try {
    Thread.sleep(2000);
  }
 catch (  InterruptedException e) {
  }
}

Fixed version (ground truth):
@Override public void run(){
  PrintSubnetsTask task=new PrintSubnetsTask(m_pathToProject);
  task.run();
  if (task.isOk()) {
    m_subnets=task.getSubnets();
  }
  try {
    Thread.sleep(2000);
  }
 catch (  InterruptedException e) {
  }
}
Program: 2689
Project: 2689
Buggy source:
@Override public IStatus runInUIThread(IProgressMonitor monitor){
  m_table.removeAll();
  IPath path=m_project.getLocation();
  path=path.append(LUDevice.configFileName);
  try {
    List<LUDevice> devices=LUDevice.load(path);
    if (devices != null && devices.size() != 0) {
      for (      LUDevice itemDev : devices) {
        TableItem item=new TableItem(m_table,SWT.NONE);
        item.setText(0,itemDev.Name);
        item.setText(1,itemDev.URI);
        item.setText(2,itemDev.Application);
        item.setText(3,itemDev.Platfrom);
      }
    }
  }
 catch (  FileNotFoundException e) {
    e.printStackTrace();
  }
  return Status.OK_STATUS;
}

Fixed version (ground truth):
@Override public IStatus runInUIThread(IProgressMonitor monitor){
  if (m_table.isDisposed())   return Status.OK_STATUS;
  m_table.removeAll();
  IPath path=m_project.getLocation();
  path=path.append(LUDevice.configFileName);
  try {
    List<LUDevice> devices=LUDevice.load(path);
    if (devices != null && devices.size() != 0) {
      for (      LUDevice itemDev : devices) {
        TableItem item=new TableItem(m_table,SWT.NONE);
        item.setText(0,itemDev.Name);
        item.setText(1,itemDev.URI);
        item.setText(2,itemDev.Application);
        item.setText(3,itemDev.Platfrom);
      }
    }
  }
 catch (  FileNotFoundException e) {
    e.printStackTrace();
  }
  return Status.OK_STATUS;
}
Program: 2690
Project: 2690
Buggy source:
public DiscoverTask(String workDir,String subnetAddress){
  super(workDir,SysCommandExecutor.RUBY_BAT,"String_Node_Str");
}

Fixed version (ground truth):
public DiscoverTask(String workDir,String subnetAddress){
  super(workDir,SysCommandExecutor.RUBY,"String_Node_Str","String_Node_Str" + subnetAddress + "String_Node_Str");
}
Program: 2691
Project: 2691
Buggy source:
public PrintSubnetsTask(String workDir){
  super(workDir,SysCommandExecutor.RUBY_BAT,"String_Node_Str");
}

Fixed version (ground truth):
public PrintSubnetsTask(String workDir){
  super(workDir,SysCommandExecutor.RUBY_BAT,"String_Node_Str","String_Node_Str");
}
Program: 2692
Project: 2692
Buggy source:
public List<String> getSubnets(){
  List<String> fakeList=new ArrayList<String>();
  fakeList.add("String_Node_Str");
  fakeList.add("String_Node_Str");
  fakeList.add("String_Node_Str");
  return fakeList;
}

Fixed version (ground truth):
public List<String> getSubnets(){
  String out=getOutput();
  List<String> subnetsList=Arrays.asList(out.split("String_Node_Str"));
  return subnetsList;
}
Program: 2693
Project: 2693
Buggy source:
@Override public void exec(){
  m_console.show();
  m_console.getStream().print(showCommand());
  SysCommandExecutor executor=new SysCommandExecutor();
  executor.setOutputLogDevice(getLogDevice(m_console.getOutputStream()));
  executor.setErrorLogDevice(getLogDevice(m_console.getErrorStream()));
  executor.setWorkingDirectory(m_workDir);
  Process process;
  try {
    process=executor.startCommand(m_decorator,m_cmdLine,null);
  }
 catch (  IOException e) {
    Activator.logError(e);
    return;
  }
  m_debugProcess=DebugPlugin.newProcess(m_launch,process,m_appName);
  if (m_debugProcess != null) {
    attachConsole(m_debugProcess,m_console);
  }
  new Job("String_Node_Str"){
    @Override protected IStatus run(    IProgressMonitor monitor){
      m_console.show();
      return Status.OK_STATUS;
    }
  }
.schedule(1000);
}

Fixed version (ground truth):
@Override public void exec(){
  m_console.show();
  m_console.getStream().print(showCommand());
  SysCommandExecutor executor=new SysCommandExecutor();
  executor.setOutputLogDevice(getLogDevice(m_console.getOutputStream()));
  executor.setErrorLogDevice(getLogDevice(m_console.getErrorStream()));
  executor.setWorkingDirectory(m_workDir);
  Process process;
  try {
    process=executor.startCommand(m_decorator,m_cmdLine,null);
  }
 catch (  IOException e) {
    Activator.logError(e);
    return;
  }
  m_debugProcess=DebugPlugin.newProcess(m_launch,process,m_appName);
  if (m_debugProcess != null) {
    attachConsole(m_debugProcess,m_console);
  }
  new Job("String_Node_Str"){
    @Override protected IStatus run(    IProgressMonitor monitor){
      m_console.show();
      return Status.OK_STATUS;
    }
  }
.schedule(1000);
  try {
    while (true) {
      Set<Integer> ids=OSHelper.getProcessesIds("String_Node_Str");
      if (ids.size() == 0) {
        break;
      }
    }
  }
 catch (  InterruptedException e) {
    e.printStackTrace();
  }
}
Program: 2694
Project: 2694
Buggy source:
public BuildProjectAsDebug(RhodesConfigurationRO configuration,ILaunch launch,String startPathOverride,String[] additionalRubyExtensions){
  m_platformType=configuration.platformType();
  m_buildType=configuration.buildType();
  m_isReloadCode=configuration.reloadCode();
  m_isTrace=configuration.trace();
  m_selType=configuration.runType();
  m_launch=launch;
  m_startPathOverride=startPathOverride;
  m_additionalRubyExtensions=additionalRubyExtensions;
  m_currProject=ResourcesPlugin.getWorkspace().getRoot().getProject(configuration.project());
}

Fixed version (ground truth):
public BuildProjectAsDebug(RhodesConfigurationRO configuration,ILaunch launch,String startPathOverride,String[] additionalRubyExtensions,final IProgressMonitor monitor){
  m_platformType=configuration.platformType();
  m_buildType=configuration.buildType();
  m_isReloadCode=configuration.reloadCode();
  m_isTrace=configuration.trace();
  m_selType=configuration.runType();
  m_launch=launch;
  m_startPathOverride=startPathOverride;
  m_additionalRubyExtensions=additionalRubyExtensions;
  m_monitor=monitor;
  m_currProject=ResourcesPlugin.getWorkspace().getRoot().getProject(configuration.project());
}
Program: 2695
Project: 2695
Buggy source:
private IProcess debugSelectedBuildConfiguration(IProject currProject,RunType selType,ILaunch launch) throws Exception {
  if (!TokenChecker.processToken(currProject))   return null;
  IDebugTask task;
  if (m_buildType == BuildType.eRhoMobileCom) {
    task=new RhohubDebugRhodesAppTask(launch,selType,currProject.getLocation().toOSString(),currProject.getName(),m_platformType,m_isReloadCode,m_startPathOverride,m_additionalRubyExtensions);
  }
 else {
    task=new LocalDebugRhodesAppTask(launch,selType,currProject.getLocation().toOSString(),currProject.getName(),m_platformType,m_isReloadCode,m_isTrace,m_startPathOverride,m_additionalRubyExtensions);
  }
  task.run();
  return task.getDebugProcess();
}

Fixed version (ground truth):
private IProcess debugSelectedBuildConfiguration(IProject currProject,RunType selType,ILaunch launch) throws Exception {
  m_monitor.setTaskName("String_Node_Str" + m_currProject.getName());
  if (!TokenChecker.processToken(currProject))   return null;
  setupBuildFinishWait();
  IDebugTask task;
  if (m_buildType == BuildType.eRhoMobileCom) {
    task=new RhohubDebugRhodesAppTask(launch,selType,currProject.getLocation().toOSString(),currProject.getName(),m_platformType,m_isReloadCode,m_startPathOverride,m_additionalRubyExtensions);
  }
 else {
    task=new LocalDebugRhodesAppTask(launch,selType,currProject.getLocation().toOSString(),currProject.getName(),m_platformType,m_isReloadCode,m_isTrace,m_startPathOverride,m_additionalRubyExtensions);
  }
  task.run();
  waitBuildFinish();
  return task.getDebugProcess();
}
Program: 2696
Project: 2696
Buggy source:
public BuildProjectAsRelease(RhodesConfigurationRO configuration,ILaunch launch,String startPathOverride,String[] additionalRubyExtensions){
  m_platformType=configuration.platformType();
  m_buildType=configuration.buildType();
  m_isReloadCode=configuration.reloadCode();
  m_isTrace=configuration.trace();
  m_selType=configuration.runType();
  m_launch=launch;
  m_startPathOverride=startPathOverride;
  m_additionalRubyExtensions=additionalRubyExtensions;
  m_currProject=ResourcesPlugin.getWorkspace().getRoot().getProject(configuration.project());
}

Fixed version (ground truth):
public BuildProjectAsRelease(RhodesConfigurationRO configuration,ILaunch launch,String startPathOverride,String[] additionalRubyExtensions,final IProgressMonitor monitor){
  m_platformType=configuration.platformType();
  m_buildType=configuration.buildType();
  m_isReloadCode=configuration.reloadCode();
  m_isTrace=configuration.trace();
  m_selType=configuration.runType();
  m_launch=launch;
  m_startPathOverride=startPathOverride;
  m_additionalRubyExtensions=additionalRubyExtensions;
  m_monitor=monitor;
  m_currProject=ResourcesPlugin.getWorkspace().getRoot().getProject(configuration.project());
}
Program: 2699
Project: 2699
Buggy source:
public void terminate() throws DebugException {
  try {
    m_debugServer.debugTerminate();
    if (ProjectFactory.getInstance().typeFromProject(m_debugProject).equals(RhoconnectProject.class)) {
      new StopSyncAppTask().run();
    }
    if (m_processHandle != null) {
      m_processHandle.terminate();
      m_processHandle=null;
    }
  }
 catch (  DebugServerException e) {
    e.printStackTrace();
  }
catch (  Exception e) {
    e.printStackTrace();
  }
}

Fixed version (ground truth):
public void terminate() throws DebugException {
  try {
    m_debugServer.debugTerminate();
    if (ProjectFactory.getInstance().typeFromProject(m_debugProject).equals(RhoconnectProject.class)) {
      new StopSyncAppTask().run();
    }
 else     if (m_runType == RunType.eDevice || m_runType == RunType.eEmulator) {
      String workDir=m_debugProject.getLocation().makeAbsolute().toString();
      new StopRhodesAppTask(workDir,m_platformType,m_runType).run();
    }
    if (m_processHandle != null) {
      m_processHandle.terminate();
      m_processHandle=null;
    }
  }
 catch (  DebugServerException e) {
    e.printStackTrace();
  }
catch (  Exception e) {
    e.printStackTrace();
  }
}
Program: 2700
Project: 2700
Buggy source:
private void waitDebugProcessing(){
  while (m_debugServer.debugIsProcessing()) {
  }
  try {
    Thread.currentThread().sleep(100);
  }
 catch (  InterruptedException e) {
    e.printStackTrace();
  }
}

Fixed version (ground truth):
private void waitDebugProcessing(){
  try {
    while (m_debugServer.debugIsProcessing()) {
    }
    Thread.currentThread();
    Thread.sleep(100);
  }
 catch (  InterruptedException e) {
    e.printStackTrace();
  }
}
Program: 2701
Project: 2701
Buggy source:
public DebugTarget(ILaunch launch,IProcess process,IProject debugProject){
  super(null);
  m_debugProject=debugProject;
  m_launchHandle=launch;
  m_debugTarget=this;
  m_processHandle=process;
  m_threadHandle=new DebugThread(this);
  m_allThreads=new IThread[]{m_threadHandle};
  DebugServer.setDebugOutputStream(System.out);
  if (m_debugServer != null) {
    m_debugServer.shutdown();
  }
  DebugPlugin.getDefault().getBreakpointManager().addBreakpointListener(this);
  DebugPlugin.getDefault().getExpressionManager().addExpressionListener(this);
  m_debugServer=new DebugServer(this);
  m_debugServer.start();
  m_debugServer.debugSkipBreakpoints(false);
}

Fixed version (ground truth):
public DebugTarget(ILaunch launch,IProcess process,IProject debugProject,RunType runType,PlatformType platformType){
  super(null);
  m_platformType=platformType;
  m_runType=runType;
  m_debugProject=debugProject;
  m_launchHandle=launch;
  m_debugTarget=this;
  m_processHandle=process;
  m_threadHandle=new DebugThread(this);
  m_allThreads=new IThread[]{m_threadHandle};
  DebugServer.setDebugOutputStream(System.out);
  if (m_debugServer != null) {
    m_debugServer.shutdown();
  }
  DebugPlugin.getDefault().getBreakpointManager().addBreakpointListener(this);
  DebugPlugin.getDefault().getExpressionManager().addExpressionListener(this);
  m_debugServer=new DebugServer(this);
  m_debugServer.start();
  m_debugServer.debugSkipBreakpoints(false);
}
Program: 2704
Project: 2704
Buggy source:
public List<Capabilities> getCapabilities(){
  List<String> rawList=(List<String>)super.getObject("String_Node_Str");
  List<String> androidList=(List<String>)super.getObject("String_Node_Str","String_Node_Str");
  if (androidList != null) {
    rawList.addAll(androidList);
  }
  return Capabilities.getCapabilitiesList(rawList);
}

Fixed version (ground truth):
public List<Capabilities> getCapabilities(){
  List<String> rawList=(List<String>)super.getObject("String_Node_Str");
  List<String> androidList=(List<String>)super.getObject("String_Node_Str","String_Node_Str");
  if (rawList != null) {
    if (androidList != null) {
      rawList.addAll(androidList);
    }
  }
 else {
    rawList=androidList;
  }
  return Capabilities.getCapabilitiesList(rawList);
}
Program: 2705
Project: 2705
Buggy source:
public static List<Capabilities> getCapabilitiesList(List<String> capabList){
  List<Capabilities> list=new ArrayList<Capabilities>();
  defaultCapabilityList();
  if (capabList != null) {
    for (    String pt : capabList) {
      list.add(Capabilities.fromId(pt));
    }
  }
  return list;
}

Fixed version (ground truth):
public static List<Capabilities> getCapabilitiesList(List<String> capabList){
  List<Capabilities> list=new ArrayList<Capabilities>();
  defaultCapabilityList();
  if (capabList != null) {
    for (    String pt : capabList) {
      Capabilities temp=Capabilities.fromId(pt);
      if (list.indexOf(temp) == -1)       list.add(Capabilities.fromId(pt));
    }
  }
  return list;
}
Program: 2706
Project: 2706
Buggy source:
/** 
 * Returns the current stack frames in the target.
 * @return the current stack frames in the target
 * @throws DebugException if unable to perform the request
 */
protected IStackFrame[] getStackFrames() throws DebugException {
  waitDebugProcessing();
  StackData stackData=new StackData(m_debugServer.debugGetFile(),m_debugServer.debugGetLine());
  IStackFrame[] theFrames=new IStackFrame[1];
  for (int i=0; i < 3; ++i) {
    try {
      stackData.m_currVariables=new ArrayList<rhogenwizard.debugger.backend.DebugVariable>();
      theFrames[0]=new DebugStackFrame(m_threadHandle,stackData,0);
      break;
    }
 catch (    DebugServerException e) {
      try {
        Thread.sleep(200);
      }
 catch (      InterruptedException e1) {
      }
    }
  }
  return theFrames;
}

Fixed version (ground truth):
/** 
 * Returns the current stack frames in the target.
 * @return the current stack frames in the target
 * @throws DebugException if unable to perform the request
 */
protected IStackFrame[] getStackFrames() throws DebugException {
  waitDebugProcessing();
  StackData stackData=new StackData(m_debugServer.debugGetFile(),m_debugServer.debugGetLine());
  IStackFrame[] theFrames=new IStackFrame[1];
  for (int i=0; i < 3; ++i) {
    try {
      stackData.m_currVariables=m_debugServer.debugWatchList();
      theFrames[0]=new DebugStackFrame(m_threadHandle,stackData,0);
      break;
    }
 catch (    DebugServerException e) {
      try {
        Thread.sleep(200);
      }
 catch (      InterruptedException e1) {
      }
    }
  }
  return theFrames;
}
Program: 2708
Project: 2708
Buggy source:
private void setPlatfromTypeCombo(ILaunchConfigurationWorkingCopy configuration) throws CoreException {
  String platformType=configuration.getAttribute(ConfigurationConstants.simulatorType,"String_Node_Str");
  m_platformTypeCombo.setEnabled(true);
  m_platformTypeCombo.select(m_platformTypeCombo.indexOf(platformType));
}

Fixed version (ground truth):
private void setPlatfromTypeCombo(ILaunchConfigurationWorkingCopy configuration) throws CoreException {
  PlatformType selProjectPlatform=PlatformType.fromId(configuration.getAttribute(ConfigurationConstants.platforrmCfgAttribute,"String_Node_Str"));
  if (getLaunchConfigurationDialog().getMode().equals(ILaunchManager.DEBUG_MODE) && selProjectPlatform != PlatformType.eAndroid) {
    m_platformTypeCombo.setEnabled(false);
    m_platformTypeCombo.select(m_platformTypeCombo.indexOf(RunType.platformRhoSim));
  }
 else {
    String platformType=configuration.getAttribute(ConfigurationConstants.simulatorType,"String_Node_Str");
    m_platformTypeCombo.setEnabled(true);
    m_platformTypeCombo.select(m_platformTypeCombo.indexOf(platformType));
  }
}
Program: 2709
Project: 2709
Buggy source:
@Override public String getResName(){
  String srcName=null;
  try {
    srcName=m_bp.getResourceName();
  }
 catch (  CoreException e) {
    srcName=new String();
  }
  srcName=srcName.replace('\\','/');
  srcName=srcName.substring(1,srcName.length());
  String[] srcPath=srcName.split("String_Node_Str");
  if (srcPath.length < 1)   return "String_Node_Str";
  StringBuilder sb=new StringBuilder();
  sb.append("String_Node_Str");
  for (int i=1; i < srcPath.length; ++i) {
    sb.append(srcPath[i]);
    if (i + 1 < srcPath.length)     sb.append('/');
  }
  return sb.toString();
}

Fixed version (ground truth):
@Override public String getResName(){
  String[] srcName=m_bp.getResourcePath().segments();
  StringBuilder sb=new StringBuilder();
  sb.append('/');
  for (int i=1; i < srcName.length; i++) {
    sb.append(srcName[i]);
    sb.append('/');
  }
  sb.deleteCharAt(sb.length() - 1);
  return sb.toString();
}
Program: 2710
Project: 2710
Buggy source:
int createWizardDialog(IWizard wizard){
  WizardDialog buildWizardDialog=new WizardDialog(window.getShell(),wizard){
    @Override protected void configureShell(    Shell newShell){
      super.configureShell(newShell);
      newShell.setSize(wizardWidth,wizardHeigth);
    }
  }
;
  buildWizardDialog.create();
  return buildWizardDialog.open();
}

Fixed version (ground truth):
int createWizardDialog(IWizard wizard,final String finishButtonTitle){
  WizardDialog buildWizardDialog=new WizardDialog(window.getShell(),wizard){
    private Button m_finishButton;
    private Button m_cancelButton;
    private SelectionAdapter m_cancelListener;
    private Button createCancelButton(    Composite parent){
      m_cancelListener=new SelectionAdapter(){
        public void widgetSelected(        SelectionEvent e){
          cancelPressed();
        }
      }
;
      ((GridLayout)parent.getLayout()).numColumns++;
      Button button=new Button(parent,SWT.PUSH);
      button.setText(IDialogConstants.CANCEL_LABEL);
      setButtonLayoutData(button);
      button.setFont(parent.getFont());
      button.setData(new Integer(IDialogConstants.CANCEL_ID));
      button.addSelectionListener(m_cancelListener);
      return button;
    }
    @Override public void updateButtons(){
      boolean canFinish=getWizard().canFinish();
      m_finishButton.setEnabled(canFinish);
    }
    @Override protected void createButtonsForButtonBar(    Composite parent){
      m_finishButton=createButton(parent,IDialogConstants.FINISH_ID,finishButtonTitle,true);
      m_cancelButton=createCancelButton(parent);
      if (parent.getDisplay().getDismissalAlignment() == SWT.RIGHT) {
        m_finishButton.moveBelow(null);
      }
    }
    @Override protected void configureShell(    Shell newShell){
      super.configureShell(newShell);
      newShell.setSize(wizardWidth,wizardHeigth);
    }
  }
;
  buildWizardDialog.create();
  return buildWizardDialog.open();
}
Program: 2711
Project: 2711
Buggy source:
/** 
 * The action has been activated. The argument of the method represents the 'real' action sitting in the workbench UI.
 * @see IWorkbenchWindowActionDelegate#run
 */
@Override public void run(IAction action){
  IProject project=ProjectFactory.getInstance().getSelectedProject();
  if (project == null) {
    DialogUtils.error("String_Node_Str","String_Node_Str");
    return;
  }
  if (!RhodesProject.checkNature(project) && !RhoelementsProject.checkNature(project)) {
    DialogUtils.error("String_Node_Str","String_Node_Str");
    return;
  }
  IRhoHubSetting setting=RhoHubBundleSetting.createGetter(project);
  if (setting.getToken().isEmpty() || setting.getServerUrl().isEmpty()) {
    DialogUtils.error("String_Node_Str","String_Node_Str");
    return;
  }
  if (!checkProjectProperties(project)) {
    if (DialogUtils.confirm("String_Node_Str","String_Node_Str" + project.getName() + "String_Node_Str")) {
      LinkWizard linkWizard=new LinkWizard(project);
      if (createWizardDialog(linkWizard) == Window.CANCEL)       return;
    }
 else {
      return;
    }
  }
  if (setting.isLinking()) {
    BuildWizard buildWizard=new BuildWizard(project);
    createWizardDialog(buildWizard);
  }
}

Fixed version (ground truth):
/** 
 * The action has been activated. The argument of the method represents the 'real' action sitting in the workbench UI.
 * @see IWorkbenchWindowActionDelegate#run
 */
@Override public void run(IAction action){
  IProject project=ProjectFactory.getInstance().getSelectedProject();
  if (project == null) {
    DialogUtils.error("String_Node_Str","String_Node_Str");
    return;
  }
  if (!RhodesProject.checkNature(project) && !RhoelementsProject.checkNature(project)) {
    DialogUtils.error("String_Node_Str","String_Node_Str");
    return;
  }
  IRhoHubSetting setting=RhoHubBundleSetting.createGetter(project);
  if (setting.getToken().isEmpty() || setting.getServerUrl().isEmpty()) {
    DialogUtils.error("String_Node_Str","String_Node_Str");
    return;
  }
  if (!checkProjectProperties(project)) {
    if (DialogUtils.confirm("String_Node_Str","String_Node_Str" + project.getName() + "String_Node_Str"+ project.getName()+ "String_Node_Str")) {
      LinkWizard linkWizard=new LinkWizard(project);
      if (createWizardDialog(linkWizard,"String_Node_Str") == Window.CANCEL)       return;
    }
 else {
      return;
    }
  }
  if (setting.isLinking()) {
    BuildWizard buildWizard=new BuildWizard(project);
    createWizardDialog(buildWizard,"String_Node_Str");
  }
}
Program: 2712
Project: 2712
Buggy source:
public PreferencesPageRhoHub(){
  super(GRID);
  setPreferenceStore(Activator.getDefault().getPreferenceStore());
  setDescription(MsgConstants.preferencesRhoHubTitle);
}

Fixed version (ground truth):
public PreferencesPageRhoHub(){
  super(GRID);
  setPreferenceStore(Activator.getDefault().getPreferenceStore());
  setDescription("String_Node_Str");
}
Program: 2713
Project: 2713
Buggy source:
public void createFieldEditors(){
  checkRhodesSdk();
  addField(new StringFieldEditor(IRhoHubSetting.rhoHubUrl,"String_Node_Str",getFieldEditorParent()));
  addField(new StringFieldEditor(IRhoHubSetting.rhoHubToken,"String_Node_Str",getFieldEditorParent()));
  addField(new StringFieldEditor(IRhoHubSetting.rhoHubSelectedRhodesVesion,"String_Node_Str",getFieldEditorParent()));
}

Fixed version (ground truth):
public void createFieldEditors(){
  checkRhodesSdk();
  addField(new StringFieldEditor(IRhoHubSetting.rhoHubUrl,"String_Node_Str",getFieldEditorParent()));
  addField(new StringFieldEditor(IRhoHubSetting.rhoHubToken,"String_Node_Str",getFieldEditorParent()));
}
Program: 2714
Project: 2714
Buggy source:
@Override public void run(IProgressMonitor monitor){
  IRhoHubSetting store=RhoHubBundleSetting.createGetter(m_project.getProject());
  if (store != null) {
    try {
      monitor.beginTask("String_Node_Str",3);
      while (m_buildInfo.getStatus() == RemoteStatus.eQueued || m_buildInfo.getStatus() == RemoteStatus.eStarted) {
        m_status.getAndSet(RhoHub.getInstance(store).checkProjectBuildStatus(m_project,m_buildInfo));
        if (monitor.isCanceled())         break;
        Thread.sleep(waitSleep);
      }
      monitor.worked(1);
      if (m_status.get()) {
        ByteArrayOutputStream os=new ByteArrayOutputStream();
        HttpDownload hd=new HttpDownload(m_buildInfo.getBuildResultUrl(),os);
        hd.join(0);
        File resultFile=new File(m_dstDir + File.separator + m_buildInfo.getBuildResultFileName());
        FileOutputStream foStream=new FileOutputStream(resultFile);
        os.writeTo(foStream);
        foStream.close();
        os.close();
        monitor.worked(1);
        if (DialogUtils.confirm("String_Node_Str","String_Node_Str")) {
          Desktop.getDesktop().open(resultFile);
        }
        monitor.worked(1);
      }
      monitor.done();
    }
 catch (    IOException e) {
      m_status.getAndSet(false);
      e.printStackTrace();
    }
catch (    JSONException e) {
      m_status.getAndSet(false);
      e.printStackTrace();
    }
catch (    InterruptedException e) {
      m_status.getAndSet(false);
      e.printStackTrace();
    }
  }
}

Fixed version (ground truth):
@Override public void run(IProgressMonitor monitor){
  IRhoHubSetting store=RhoHubBundleSetting.createGetter(m_project.getProject());
  if (store != null) {
    try {
      monitor.beginTask("String_Node_Str",3);
      while (m_buildInfo.getStatus() == RemoteStatus.eQueued || m_buildInfo.getStatus() == RemoteStatus.eStarted) {
        m_status.getAndSet(RhoHub.getInstance(store).checkProjectBuildStatus(m_project,m_buildInfo));
        if (monitor.isCanceled())         break;
        Thread.sleep(waitSleep);
      }
      monitor.worked(1);
      if (m_status.get()) {
        ByteArrayOutputStream os=new ByteArrayOutputStream();
        HttpDownload hd=new HttpDownload(m_buildInfo.getBuildResultUrl(),os);
        hd.join(0);
        File resultFile=new File(m_dstDir + File.separator + m_buildInfo.getBuildResultFileName());
        FileOutputStream foStream=new FileOutputStream(resultFile);
        os.writeTo(foStream);
        foStream.close();
        os.close();
        monitor.worked(1);
        if (DialogUtils.confirm("String_Node_Str",m_project.getName() + "String_Node_Str")) {
          Desktop.getDesktop().open(resultFile);
        }
        monitor.worked(1);
      }
      monitor.done();
    }
 catch (    IOException e) {
      m_status.getAndSet(false);
      e.printStackTrace();
    }
catch (    JSONException e) {
      m_status.getAndSet(false);
      e.printStackTrace();
    }
catch (    InterruptedException e) {
      m_status.getAndSet(false);
      e.printStackTrace();
    }
  }
}
Program: 2716
Project: 2716
Buggy source:
private void addTableLine(TableItem newItem,RemoteAppBuildDesc projectBuild) throws JSONException, MalformedURLException {
  TableEditor colOneEditor=new TableEditor(m_remoteBuildsList);
  colOneEditor.grabHorizontal=true;
  Label prjNameLabel=new Label(m_remoteBuildsList,SWT.LEFT);
  prjNameLabel.setText(projectBuild.getId().toString());
  colOneEditor.setEditor(prjNameLabel,newItem,0);
  TableEditor colTwoEditor=new TableEditor(m_remoteBuildsList);
  colTwoEditor.grabHorizontal=true;
  Button dwlButton=new Button(m_remoteBuildsList,SWT.PUSH | SWT.VIRTUAL);
  dwlButton.setText("String_Node_Str");
  dwlButton.setData(projectBuild.getBuildResultUrl());
  dwlButton.addSelectionListener(new SelectionListener(){
    private String getDirectory(){
      DirectoryDialog dlg=new DirectoryDialog(Display.getCurrent().getActiveShell());
      dlg.setFilterPath("String_Node_Str");
      dlg.setText("String_Node_Str");
      dlg.setMessage("String_Node_Str");
      return dlg.open();
    }
    @Override public void widgetSelected(    SelectionEvent e){
      Button parentBtn=(Button)e.widget;
      ExecutorService executor=Executors.newSingleThreadExecutor();
      executor.execute(new BuildDownload((URL)parentBtn.getData(),getDirectory()));
    }
    @Override public void widgetDefaultSelected(    SelectionEvent e){
    }
  }
);
  colTwoEditor.setEditor(dwlButton,newItem,1);
  TableEditor colThreeEditor=new TableEditor(m_remoteBuildsList);
  colThreeEditor.grabHorizontal=true;
  Label prjStatusLabel=new Label(m_remoteBuildsList,SWT.RIGHT);
  prjStatusLabel.setText(projectBuild.getBuildStatus().toString());
  colThreeEditor.setEditor(prjStatusLabel,newItem,2);
}

Fixed version (ground truth):
private void addTableLine(TableItem newItem,RemoteAppBuildDesc projectBuild) throws JSONException, MalformedURLException {
  TableEditor colTwoEditor=new TableEditor(m_remoteBuildsList);
  colTwoEditor.grabHorizontal=true;
  Button dwlButton=new Button(m_remoteBuildsList,SWT.PUSH | SWT.VIRTUAL);
  dwlButton.setText("String_Node_Str");
  dwlButton.setData(projectBuild.getBuildResultUrl());
  dwlButton.addSelectionListener(new SelectionListener(){
    private String getDirectory(){
      DirectoryDialog dlg=new DirectoryDialog(Display.getCurrent().getActiveShell());
      dlg.setFilterPath("String_Node_Str");
      dlg.setText("String_Node_Str");
      dlg.setMessage("String_Node_Str");
      return dlg.open();
    }
    @Override public void widgetSelected(    SelectionEvent e){
      Button parentBtn=(Button)e.widget;
      ExecutorService executor=Executors.newSingleThreadExecutor();
      executor.execute(new BuildDownload((URL)parentBtn.getData(),getDirectory()));
    }
    @Override public void widgetDefaultSelected(    SelectionEvent e){
    }
  }
);
  colTwoEditor.setEditor(dwlButton,newItem,0);
  TableEditor colThreeEditor=new TableEditor(m_remoteBuildsList);
  colThreeEditor.grabHorizontal=true;
  Label prjStatusLabel=new Label(m_remoteBuildsList,SWT.RIGHT);
  prjStatusLabel.setText(projectBuild.getBuildStatus().toString() + "String_Node_Str");
  colThreeEditor.setEditor(prjStatusLabel,newItem,1);
}
Program: 2717
Project: 2717
Buggy source:
@Override public void stopped(DebugState state,String file,int line,String className,String method){
  waitDebugProcessing();
  cleanState();
  installDeferredWatchs();
  waitDebugProcessing();
  if (state == DebugState.BREAKPOINT) {
    IBreakpoint[] breakpoints=DebugPlugin.getDefault().getBreakpointManager().getBreakpoints(DebugConstants.debugModelId);
    for (int i=0; i < breakpoints.length; i++) {
      waitDebugProcessing();
      IBreakpoint breakpoint=breakpoints[i];
      if (breakpoint instanceof ScriptLineBreakpoint) {
        try {
          ScriptLineBreakpoint lineBreakpoint=(ScriptLineBreakpoint)breakpoint;
          String resPath=ResourceNameSelector.getInstance().convertBpName(ProjectFactory.getInstance().typeFromProject(m_debugProject),lineBreakpoint);
          if (lineBreakpoint.getLineNumber() == line && resPath.equals(file)) {
            m_threadHandle.setBreakpoints(new IBreakpoint[]{breakpoint});
            break;
          }
        }
 catch (        CoreException e) {
        }
catch (        BadProjectTagException e1) {
        }
      }
    }
    suspended(DebugEvent.BREAKPOINT);
  }
 else   if (DebugState.paused(state)) {
    m_threadHandle.setStepping(true);
    suspended(DebugEvent.STEP_END);
  }
}

Fixed version (ground truth):
@Override public void stopped(DebugState state,String file,int line,String className,String method){
  waitDebugProcessing();
  if (file.contains(fwTag)) {
    if (!isFoundFramework()) {
      try {
        resume();
      }
 catch (      DebugException e) {
        e.printStackTrace();
      }
      return;
    }
  }
  cleanState();
  installDeferredWatchs();
  waitDebugProcessing();
  if (state == DebugState.BREAKPOINT) {
    IBreakpoint[] breakpoints=DebugPlugin.getDefault().getBreakpointManager().getBreakpoints(DebugConstants.debugModelId);
    for (int i=0; i < breakpoints.length; i++) {
      waitDebugProcessing();
      IBreakpoint breakpoint=breakpoints[i];
      if (breakpoint instanceof ScriptLineBreakpoint) {
        try {
          ScriptLineBreakpoint lineBreakpoint=(ScriptLineBreakpoint)breakpoint;
          String resPath=ResourceNameSelector.getInstance().convertBpName(ProjectFactory.getInstance().typeFromProject(m_debugProject),lineBreakpoint);
          if (lineBreakpoint.getLineNumber() == line && resPath.equals(file)) {
            m_threadHandle.setBreakpoints(new IBreakpoint[]{breakpoint});
            break;
          }
        }
 catch (        CoreException e) {
        }
catch (        BadProjectTagException e1) {
        }
      }
    }
    suspended(DebugEvent.BREAKPOINT);
  }
 else   if (DebugState.paused(state)) {
    m_threadHandle.setStepping(true);
    suspended(DebugEvent.STEP_END);
  }
}
Program: 2718
Project: 2718
Buggy source:
/** 
 * The action has been activated. The argument of the method represents the 'real' action sitting in the workbench UI.
 * @see IWorkbenchWindowActionDelegate#run
 */
@Override public void run(IAction action){
  IProject project=ProjectFactory.getInstance().getSelectedProject();
  if (project == null) {
    DialogUtils.error("String_Node_Str","String_Node_Str");
    return;
  }
  if (!RhodesProject.checkNature(project) && !RhoelementsProject.checkNature(project)) {
    DialogUtils.error("String_Node_Str","String_Node_Str");
    return;
  }
  IRhoHubSetting setting=RhoHubBundleSetting.createGetter(project);
  if (setting.getToken().isEmpty() || setting.getServerUrl().isEmpty()) {
    DialogUtils.error("String_Node_Str","String_Node_Str");
    return;
  }
  if (!checkProjectProperties(project)) {
    if (DialogUtils.confirm("String_Node_Str","String_Node_Str" + project.getName() + "String_Node_Str")) {
      LinkWizard linkWizard=new LinkWizard(project);
      if (createWizardDialog(linkWizard) == Window.CANCEL)       return;
    }
 else {
      return;
    }
  }
  if (setting.isLinking()) {
    BuildWizard buildWizard=new BuildWizard(project);
    createWizardDialog(buildWizard);
  }
}

Fixed version (ground truth):
/** 
 * The action has been activated. The argument of the method represents the 'real' action sitting in the workbench UI.
 * @see IWorkbenchWindowActionDelegate#run
 */
@Override public void run(IAction action){
  IProject project=ProjectFactory.getInstance().getSelectedProject();
  if (project == null) {
    DialogUtils.error("String_Node_Str","String_Node_Str");
    return;
  }
  if (!RhodesProject.checkNature(project) && !RhoelementsProject.checkNature(project)) {
    DialogUtils.error("String_Node_Str","String_Node_Str");
    return;
  }
  IRhoHubSetting setting=RhoHubBundleSetting.createGetter(project);
  if (setting.getToken().isEmpty() || setting.getServerUrl().isEmpty()) {
    DialogUtils.error("String_Node_Str","String_Node_Str");
    return;
  }
  if (!checkProjectProperties(project)) {
    if (DialogUtils.confirm("String_Node_Str","String_Node_Str" + project.getName() + "String_Node_Str")) {
      LinkWizard linkWizard=new LinkWizard(project);
      if (createWizardDialog(linkWizard) == Window.CANCEL)       return;
    }
 else {
      return;
    }
  }
  if (checkProjectProperties(project)) {
    BuildWizard buildWizard=new BuildWizard(project);
    createWizardDialog(buildWizard);
  }
}