nus-yam/ex-repair huggingface dataset:
Program: 120233
Project: 120233
Buggy source:
public void deleteRoutinefile(IRepositoryViewObject objToDelete){
  try {
    IRunProcessService service=CodeGeneratorActivator.getDefault().getRunProcessService();
    IProject javaProject=service.getProject(ECodeLanguage.JAVA);
    IFile file=javaProject.getFile(JavaUtils.JAVA_SRC_DIRECTORY + "String_Node_Str" + JavaUtils.JAVA_ROUTINES_DIRECTORY+ "String_Node_Str"+ objToDelete.getLabel()+ JavaUtils.JAVA_EXTENSION);
    file.delete(true,null);
  }
 catch (  CoreException e) {
    e.printStackTrace();
  }
}

Fixed version (ground truth):
@Override public void deleteRoutinefile(IRepositoryViewObject objToDelete){
  try {
    IRunProcessService service=CodeGeneratorActivator.getDefault().getRunProcessService();
    IProject javaProject=service.getProject(ECodeLanguage.JAVA);
    IFile file=javaProject.getFile(JavaUtils.JAVA_SRC_DIRECTORY + "String_Node_Str" + JavaUtils.JAVA_ROUTINES_DIRECTORY+ "String_Node_Str"+ objToDelete.getLabel()+ JavaUtils.JAVA_EXTENSION);
    file.delete(true,null);
  }
 catch (  CoreException e) {
    e.printStackTrace();
  }
}
Program: 120234
Project: 120234
Buggy source:
public void deleteBeanfile(IRepositoryViewObject objToDelete){
  try {
    IRunProcessService service=CodeGeneratorActivator.getDefault().getRunProcessService();
    IProject javaProject=service.getProject(ECodeLanguage.JAVA);
    IFile file=javaProject.getFile(JavaUtils.JAVA_SRC_DIRECTORY + "String_Node_Str" + JavaUtils.JAVA_BEANS_DIRECTORY+ "String_Node_Str"+ objToDelete.getLabel()+ JavaUtils.JAVA_EXTENSION);
    file.delete(true,null);
  }
 catch (  CoreException e) {
    e.printStackTrace();
  }
}

Fixed version (ground truth):
@Override public void deleteBeanfile(IRepositoryViewObject objToDelete){
  try {
    IRunProcessService service=CodeGeneratorActivator.getDefault().getRunProcessService();
    IProject javaProject=service.getProject(ECodeLanguage.JAVA);
    IFile file=javaProject.getFile(JavaUtils.JAVA_SRC_DIRECTORY + "String_Node_Str" + JavaUtils.JAVA_BEANS_DIRECTORY+ "String_Node_Str"+ objToDelete.getLabel()+ JavaUtils.JAVA_EXTENSION);
    file.delete(true,null);
  }
 catch (  CoreException e) {
    e.printStackTrace();
  }
}
Program: 120235
Project: 120235
Buggy source:
public String receive(){
  try {
    checkOpen();
    Message msg=msmqHandle.receive(2000);
    return msg.getBodyAsString();
  }
 catch (  MessageQueueException ex1) {
    System.out.println("String_Node_Str" + ex1);
  }
catch (  UnsupportedEncodingException e) {
    e.printStackTrace();
  }
  return null;
}

Fixed version (ground truth):
public String receive() throws MessageQueueException, UnsupportedEncodingException {
  checkOpen();
  Message msg=msmqHandle.receive(2000);
  return msg.getBodyAsString();
}
Program: 120236
Project: 120236
Buggy source:
public MsmqUtil(){
  try {
    java.net.InetAddress thisIp=java.net.InetAddress.getLocalHost();
    ipAddr=thisIp.getHostAddress();
  }
 catch (  Exception ex1) {
    ex1.printStackTrace();
  }
}

Fixed version (ground truth):
public MsmqUtil() throws Exception {
  java.net.InetAddress thisIp=java.net.InetAddress.getLocalHost();
  ipAddr=thisIp.getHostAddress();
}
Program: 120237
Project: 120237
Buggy source:
private void delete(){
  try {
    String fullname=getQueueFullName("String_Node_Str",queueName);
    ionic.Msmq.Queue.delete(fullname);
  }
 catch (  MessageQueueException ex1) {
    System.out.println("String_Node_Str" + ex1);
  }
}

Fixed version (ground truth):
private void delete() throws MessageQueueException {
  String fullname=getQueueFullName("String_Node_Str",queueName);
  ionic.Msmq.Queue.delete(fullname);
}
Program: 120238
Project: 120238
Buggy source:
public void peek(){
  try {
    checkOpen();
    System.out.println("String_Node_Str");
    Message msg=msmqHandle.peek(2000);
    System.out.println("String_Node_Str" + msg.getBodyAsString());
    System.out.println("String_Node_Str" + msg.getLabel());
  }
 catch (  MessageQueueException ex1) {
    System.out.println("String_Node_Str" + ex1);
  }
catch (  UnsupportedEncodingException e) {
    e.printStackTrace();
  }
}

Fixed version (ground truth):
public void peek() throws MessageQueueException, UnsupportedEncodingException {
  checkOpen();
  System.out.println("String_Node_Str");
  Message msg=msmqHandle.peek(2000);
  System.out.println("String_Node_Str" + msg.getBodyAsString());
  System.out.println("String_Node_Str" + msg.getLabel());
}
Program: 120239
Project: 120239
Buggy source:
private void create(){
  try {
    if (!(host == null || "String_Node_Str".equals(host) || "String_Node_Str".equalsIgnoreCase(host) || host.equals(ipAddr) || LOCALIP.equals(host))) {
      throw new MessageQueueException("String_Node_Str",-1);
    }
    String fullname="String_Node_Str" + queueName;
    String qLabel="String_Node_Str" + this.getClass().getName() + "String_Node_Str";
    boolean transactional=false;
    msmqHandle=Queue.create(fullname,qLabel,transactional);
  }
 catch (  MessageQueueException ex1) {
    System.out.println("String_Node_Str" + ex1);
  }
}

Fixed version (ground truth):
private void create() throws MessageQueueException {
  if (!(host == null || "String_Node_Str".equals(host) || "String_Node_Str".equalsIgnoreCase(host) || host.equals(ipAddr) || LOCALIP.equals(host))) {
    throw new MessageQueueException("String_Node_Str",-1);
  }
  String fullname="String_Node_Str" + queueName;
  String qLabel="String_Node_Str" + this.getClass().getName() + "String_Node_Str";
  boolean transactional=false;
  msmqHandle=Queue.create(fullname,qLabel,transactional);
}
Program: 120240
Project: 120240
Buggy source:
public void close(){
  try {
    checkOpen();
    msmqHandle.close();
    msmqHandle=null;
  }
 catch (  MessageQueueException ex1) {
    System.out.println("String_Node_Str" + ex1);
  }
}

Fixed version (ground truth):
public void close() throws MessageQueueException {
  checkOpen();
  msmqHandle.close();
  msmqHandle=null;
}
Program: 120241
Project: 120241
Buggy source:
public void send(){
  try {
    checkOpen();
    int transactionFlag=0;
    String mLabel="String_Node_Str" + this.getClass().getName() + "String_Node_Str";
    String correlationID="String_Node_Str";
    Message msg=new Message(msgContent,mLabel,correlationID);
    msmqHandle.send(msg);
  }
 catch (  MessageQueueException ex1) {
    System.out.println("String_Node_Str" + ex1);
  }
catch (  UnsupportedEncodingException e) {
    e.printStackTrace();
  }
}

Fixed version (ground truth):
public void send() throws MessageQueueException, UnsupportedEncodingException {
  checkOpen();
  int transactionFlag=0;
  String mLabel="String_Node_Str" + this.getClass().getName() + "String_Node_Str";
  String correlationID="String_Node_Str";
  Message msg=new Message(msgContent,mLabel,correlationID);
  msmqHandle.send(msg);
}
Program: 120242
Project: 120242
Buggy source:
public void open(){
  try {
    if (msmqHandle != null) {
      msmqHandle.close();
      msmqHandle=null;
    }
    String fullname=getQueueFullName(host,queueName);
    msmqHandle=new Queue(fullname);
  }
 catch (  MessageQueueException ex1) {
    System.out.println("String_Node_Str" + ex1);
    if (bTried) {
      bTried=false;
      create();
    }
  }
}

Fixed version (ground truth):
public void open() throws MessageQueueException {
  try {
    if (msmqHandle != null) {
      msmqHandle.close();
      msmqHandle=null;
    }
    String fullname=getQueueFullName(host,queueName);
    msmqHandle=new Queue(fullname);
  }
 catch (  MessageQueueException ex1) {
    if (bTried) {
      System.out.println("String_Node_Str" + ex1);
      bTried=false;
      create();
    }
 else {
      throw ex1;
    }
  }
}
Program: 120243
Project: 120243
Buggy source:
public String receive(){
  try {
    checkOpen();
    Message msg=msmqHandle.receive(2000);
    return msg.getBodyAsString();
  }
 catch (  MessageQueueException ex1) {
    System.out.println("String_Node_Str" + ex1);
  }
catch (  UnsupportedEncodingException e) {
    e.printStackTrace();
  }
  return null;
}

Fixed version (ground truth):
public String receive() throws MessageQueueException, UnsupportedEncodingException {
  checkOpen();
  Message msg=msmqHandle.receive(2000);
  return msg.getBodyAsString();
}
Program: 120244
Project: 120244
Buggy source:
public MsmqUtil(){
  try {
    java.net.InetAddress thisIp=java.net.InetAddress.getLocalHost();
    ipAddr=thisIp.getHostAddress();
  }
 catch (  Exception ex1) {
    ex1.printStackTrace();
  }
}

Fixed version (ground truth):
public MsmqUtil() throws Exception {
  java.net.InetAddress thisIp=java.net.InetAddress.getLocalHost();
  ipAddr=thisIp.getHostAddress();
}
Program: 120245
Project: 120245
Buggy source:
private void delete(){
  try {
    String fullname=getQueueFullName("String_Node_Str",queueName);
    ionic.Msmq.Queue.delete(fullname);
  }
 catch (  MessageQueueException ex1) {
    System.out.println("String_Node_Str" + ex1);
  }
}

Fixed version (ground truth):
private void delete() throws MessageQueueException {
  String fullname=getQueueFullName("String_Node_Str",queueName);
  ionic.Msmq.Queue.delete(fullname);
}
Program: 120246
Project: 120246
Buggy source:
public void peek(){
  try {
    checkOpen();
    System.out.println("String_Node_Str");
    Message msg=msmqHandle.peek(2000);
    System.out.println("String_Node_Str" + msg.getBodyAsString());
    System.out.println("String_Node_Str" + msg.getLabel());
  }
 catch (  MessageQueueException ex1) {
    System.out.println("String_Node_Str" + ex1);
  }
catch (  UnsupportedEncodingException e) {
    e.printStackTrace();
  }
}

Fixed version (ground truth):
public void peek() throws MessageQueueException, UnsupportedEncodingException {
  checkOpen();
  System.out.println("String_Node_Str");
  Message msg=msmqHandle.peek(2000);
  System.out.println("String_Node_Str" + msg.getBodyAsString());
  System.out.println("String_Node_Str" + msg.getLabel());
}
Program: 120247
Project: 120247
Buggy source:
private void create(){
  try {
    if (!(host == null || "String_Node_Str".equals(host) || "String_Node_Str".equalsIgnoreCase(host) || host.equals(ipAddr) || LOCALIP.equals(host))) {
      throw new MessageQueueException("String_Node_Str",-1);
    }
    String fullname="String_Node_Str" + queueName;
    String qLabel="String_Node_Str" + this.getClass().getName() + "String_Node_Str";
    boolean transactional=false;
    msmqHandle=Queue.create(fullname,qLabel,transactional);
  }
 catch (  MessageQueueException ex1) {
    System.out.println("String_Node_Str" + ex1);
  }
}

Fixed version (ground truth):
private void create() throws MessageQueueException {
  if (!(host == null || "String_Node_Str".equals(host) || "String_Node_Str".equalsIgnoreCase(host) || host.equals(ipAddr) || LOCALIP.equals(host))) {
    throw new MessageQueueException("String_Node_Str",-1);
  }
  String fullname="String_Node_Str" + queueName;
  String qLabel="String_Node_Str" + this.getClass().getName() + "String_Node_Str";
  boolean transactional=false;
  msmqHandle=Queue.create(fullname,qLabel,transactional);
}
Program: 120248
Project: 120248
Buggy source:
public void close(){
  try {
    checkOpen();
    msmqHandle.close();
    msmqHandle=null;
  }
 catch (  MessageQueueException ex1) {
    System.out.println("String_Node_Str" + ex1);
  }
}

Fixed version (ground truth):
public void close() throws MessageQueueException {
  checkOpen();
  msmqHandle.close();
  msmqHandle=null;
}
Program: 120249
Project: 120249
Buggy source:
public void send(){
  try {
    checkOpen();
    int transactionFlag=0;
    String mLabel="String_Node_Str" + this.getClass().getName() + "String_Node_Str";
    String correlationID="String_Node_Str";
    Message msg=new Message(msgContent,mLabel,correlationID);
    msmqHandle.send(msg);
  }
 catch (  MessageQueueException ex1) {
    System.out.println("String_Node_Str" + ex1);
  }
catch (  UnsupportedEncodingException e) {
    e.printStackTrace();
  }
}

Fixed version (ground truth):
public void send() throws MessageQueueException, UnsupportedEncodingException {
  checkOpen();
  int transactionFlag=0;
  String mLabel="String_Node_Str" + this.getClass().getName() + "String_Node_Str";
  String correlationID="String_Node_Str";
  Message msg=new Message(msgContent,mLabel,correlationID);
  msmqHandle.send(msg);
}
Program: 120250
Project: 120250
Buggy source:
public void open(){
  try {
    if (msmqHandle != null) {
      msmqHandle.close();
      msmqHandle=null;
    }
    String fullname=getQueueFullName(host,queueName);
    msmqHandle=new Queue(fullname);
  }
 catch (  MessageQueueException ex1) {
    System.out.println("String_Node_Str" + ex1);
    if (bTried) {
      bTried=false;
      create();
    }
  }
}

Fixed version (ground truth):
public void open() throws MessageQueueException {
  try {
    if (msmqHandle != null) {
      msmqHandle.close();
      msmqHandle=null;
    }
    String fullname=getQueueFullName(host,queueName);
    msmqHandle=new Queue(fullname);
  }
 catch (  MessageQueueException ex1) {
    if (bTried) {
      System.out.println("String_Node_Str" + ex1);
      bTried=false;
      create();
    }
 else {
      throw ex1;
    }
  }
}
Program: 120252
Project: 120252
Buggy source:
public String receive(){
  try {
    checkOpen();
    Message msg=msmqHandle.receive(2000);
    return msg.getBodyAsString();
  }
 catch (  MessageQueueException ex1) {
    System.out.println("String_Node_Str" + ex1);
  }
catch (  UnsupportedEncodingException e) {
    e.printStackTrace();
  }
  return null;
}

Fixed version (ground truth):
public String receive() throws MessageQueueException, UnsupportedEncodingException {
  checkOpen();
  Message msg=msmqHandle.receive(2000);
  return msg.getBodyAsString();
}
Program: 120253
Project: 120253
Buggy source:
public MsmqUtil(){
  try {
    java.net.InetAddress thisIp=java.net.InetAddress.getLocalHost();
    ipAddr=thisIp.getHostAddress();
  }
 catch (  Exception ex1) {
    ex1.printStackTrace();
  }
}

Fixed version (ground truth):
public MsmqUtil() throws Exception {
  java.net.InetAddress thisIp=java.net.InetAddress.getLocalHost();
  ipAddr=thisIp.getHostAddress();
}
Program: 120254
Project: 120254
Buggy source:
private void delete(){
  try {
    String fullname=getQueueFullName("String_Node_Str",queueName);
    ionic.Msmq.Queue.delete(fullname);
  }
 catch (  MessageQueueException ex1) {
    System.out.println("String_Node_Str" + ex1);
  }
}

Fixed version (ground truth):
private void delete() throws MessageQueueException {
  String fullname=getQueueFullName("String_Node_Str",queueName);
  ionic.Msmq.Queue.delete(fullname);
}
Program: 120255
Project: 120255
Buggy source:
public void peek(){
  try {
    checkOpen();
    System.out.println("String_Node_Str");
    Message msg=msmqHandle.peek(2000);
    System.out.println("String_Node_Str" + msg.getBodyAsString());
    System.out.println("String_Node_Str" + msg.getLabel());
  }
 catch (  MessageQueueException ex1) {
    System.out.println("String_Node_Str" + ex1);
  }
catch (  UnsupportedEncodingException e) {
    e.printStackTrace();
  }
}

Fixed version (ground truth):
public void peek() throws MessageQueueException, UnsupportedEncodingException {
  checkOpen();
  System.out.println("String_Node_Str");
  Message msg=msmqHandle.peek(2000);
  System.out.println("String_Node_Str" + msg.getBodyAsString());
  System.out.println("String_Node_Str" + msg.getLabel());
}
Program: 120256
Project: 120256
Buggy source:
private void create(){
  try {
    if (!(host == null || "String_Node_Str".equals(host) || "String_Node_Str".equalsIgnoreCase(host) || host.equals(ipAddr) || LOCALIP.equals(host))) {
      throw new MessageQueueException("String_Node_Str",-1);
    }
    String fullname="String_Node_Str" + queueName;
    String qLabel="String_Node_Str" + this.getClass().getName() + "String_Node_Str";
    boolean transactional=false;
    msmqHandle=Queue.create(fullname,qLabel,transactional);
  }
 catch (  MessageQueueException ex1) {
    System.out.println("String_Node_Str" + ex1);
  }
}

Fixed version (ground truth):
private void create() throws MessageQueueException {
  if (!(host == null || "String_Node_Str".equals(host) || "String_Node_Str".equalsIgnoreCase(host) || host.equals(ipAddr) || LOCALIP.equals(host))) {
    throw new MessageQueueException("String_Node_Str",-1);
  }
  String fullname="String_Node_Str" + queueName;
  String qLabel="String_Node_Str" + this.getClass().getName() + "String_Node_Str";
  boolean transactional=false;
  msmqHandle=Queue.create(fullname,qLabel,transactional);
}
Program: 120257
Project: 120257
Buggy source:
public void close(){
  try {
    checkOpen();
    msmqHandle.close();
    msmqHandle=null;
  }
 catch (  MessageQueueException ex1) {
    System.out.println("String_Node_Str" + ex1);
  }
}

Fixed version (ground truth):
public void close() throws MessageQueueException {
  checkOpen();
  msmqHandle.close();
  msmqHandle=null;
}
Program: 120258
Project: 120258
Buggy source:
public void send(){
  try {
    checkOpen();
    int transactionFlag=0;
    String mLabel="String_Node_Str" + this.getClass().getName() + "String_Node_Str";
    String correlationID="String_Node_Str";
    Message msg=new Message(msgContent,mLabel,correlationID);
    msmqHandle.send(msg);
  }
 catch (  MessageQueueException ex1) {
    System.out.println("String_Node_Str" + ex1);
  }
catch (  UnsupportedEncodingException e) {
    e.printStackTrace();
  }
}

Fixed version (ground truth):
public void send() throws MessageQueueException, UnsupportedEncodingException {
  checkOpen();
  int transactionFlag=0;
  String mLabel="String_Node_Str" + this.getClass().getName() + "String_Node_Str";
  String correlationID="String_Node_Str";
  Message msg=new Message(msgContent,mLabel,correlationID);
  msmqHandle.send(msg);
}
Program: 120259
Project: 120259
Buggy source:
public void open(){
  try {
    if (msmqHandle != null) {
      msmqHandle.close();
      msmqHandle=null;
    }
    String fullname=getQueueFullName(host,queueName);
    msmqHandle=new Queue(fullname);
  }
 catch (  MessageQueueException ex1) {
    System.out.println("String_Node_Str" + ex1);
    if (bTried) {
      bTried=false;
      create();
    }
  }
}

Fixed version (ground truth):
public void open() throws MessageQueueException {
  try {
    if (msmqHandle != null) {
      msmqHandle.close();
      msmqHandle=null;
    }
    String fullname=getQueueFullName(host,queueName);
    msmqHandle=new Queue(fullname);
  }
 catch (  MessageQueueException ex1) {
    if (bTried) {
      System.out.println("String_Node_Str" + ex1);
      bTried=false;
      create();
    }
 else {
      throw ex1;
    }
  }
}
Program: 120260
Project: 120260
Buggy source:
public void resolveItem(ResourcesManager manager,ItemRecord itemRecord){
  if (itemRecord.isResolved()) {
    return;
  }
  InputStream stream=null;
  try {
    final Item item=itemRecord.getItem();
    boolean byteArray=(item instanceof FileItem);
    IPath itemPath=getItemPath(itemRecord.getPath(),item);
    stream=manager.getStream(itemPath);
    Resource resource=createResource(itemRecord,itemPath,byteArray);
    if (byteArray) {
      ByteArrayOutputStream baos=new ByteArrayOutputStream();
      byte[] buf=new byte[1024];
      int i=0;
      while ((i=stream.read(buf)) != -1) {
        baos.write(buf,0,i);
      }
      ByteArrayInputStream bais=new ByteArrayInputStream(baos.toByteArray());
      resource.load(bais,null);
    }
 else {
      resource.load(stream,null);
    }
    for (    ReferenceFileItem rfItem : (List<ReferenceFileItem>)item.getReferenceResources()) {
      itemPath=getReferenceItemPath(itemRecord.getPath(),rfItem.getExtension());
      stream=manager.getStream(itemPath);
      Resource rfResource=createResource(itemRecord,itemPath,true);
      rfResource.load(stream,null);
    }
    resetItemReference(itemRecord,resource);
  }
 catch (  IOException e) {
  }
 finally {
    if (stream != null) {
      try {
        stream.close();
      }
 catch (      IOException e) {
      }
    }
  }
  itemRecord.setResolved(true);
}

Fixed version (ground truth):
public void resolveItem(ResourcesManager manager,ItemRecord itemRecord){
  if (itemRecord.isResolved()) {
    return;
  }
  InputStream stream=null;
  try {
    final Item item=itemRecord.getItem();
    boolean byteArray=(item instanceof FileItem);
    IPath itemPath=getItemPath(itemRecord.getPath(),item);
    Set<IPath> paths=manager.getPaths();
    if (!paths.contains(itemPath)) {
      return;
    }
    stream=manager.getStream(itemPath);
    Resource resource=createResource(itemRecord,itemPath,byteArray);
    if (byteArray) {
      ByteArrayOutputStream baos=new ByteArrayOutputStream();
      byte[] buf=new byte[1024];
      int i=0;
      while ((i=stream.read(buf)) != -1) {
        baos.write(buf,0,i);
      }
      ByteArrayInputStream bais=new ByteArrayInputStream(baos.toByteArray());
      resource.load(bais,null);
    }
 else {
      resource.load(stream,null);
    }
    for (    ReferenceFileItem rfItem : (List<ReferenceFileItem>)item.getReferenceResources()) {
      itemPath=getReferenceItemPath(itemRecord.getPath(),rfItem.getExtension());
      stream=manager.getStream(itemPath);
      Resource rfResource=createResource(itemRecord,itemPath,true);
      rfResource.load(stream,null);
    }
    resetItemReference(itemRecord,resource);
  }
 catch (  IOException e) {
  }
 finally {
    if (stream != null) {
      try {
        stream.close();
      }
 catch (      IOException e) {
      }
    }
  }
  itemRecord.setResolved(true);
}
Program: 120262
Project: 120262
Buggy source:
public void init(IWorkbenchWindow window){
}

Fixed version (ground truth):
@Override public void init(IWorkbenchWindow window){
}
Program: 120263
Project: 120263
Buggy source:
@Override protected void doRun(){
  IRepositoryView repositoryView=getViewPart();
  if (repositoryView != null && repositoryView.getViewer() instanceof TreeViewer) {
    ((TreeViewer)repositoryView.getViewer()).getTree().setFocus();
  }
  ExportItemWizard wizard=new ExportItemWizard();
  IWorkbench workbench=getWorkbench();
  wizard.setWindowTitle(EXPORT_ITEM);
  if (!toolbarAction) {
    wizard.init(workbench,(IStructuredSelection)this.getSelection());
  }
 else {
    if (repositoryView != null) {
      IStructuredSelection selection=(IStructuredSelection)repositoryView.getViewer().getSelection();
      wizard.init(workbench,selection);
    }
  }
  Shell activeShell=Display.getCurrent().getActiveShell();
  WizardDialog dialog=new WizardDialog(activeShell,wizard);
  dialog.open();
}

Fixed version (ground truth):
@Override protected void doRun(){
  IRepositoryView repositoryView=getViewPart();
  if (repositoryView != null && repositoryView.getViewer() instanceof TreeViewer) {
    ((TreeViewer)repositoryView.getViewer()).getTree().setFocus();
  }
  ExportItemWizard wizard=new ExportItemWizard((repositoryView != null ? repositoryView.getViewSite().getId() : null));
  IWorkbench workbench=getWorkbench();
  wizard.setWindowTitle(EXPORT_ITEM);
  if (!toolbarAction) {
    wizard.init(workbench,(IStructuredSelection)this.getSelection());
  }
 else {
    if (repositoryView != null) {
      IStructuredSelection selection=(IStructuredSelection)repositoryView.getViewer().getSelection();
      wizard.init(workbench,selection);
    }
  }
  Shell activeShell=Display.getCurrent().getActiveShell();
  WizardDialog dialog=new WizardDialog(activeShell,wizard);
  dialog.open();
}
Program: 120264
Project: 120264
Buggy source:
public void selectionChanged(IAction action,ISelection selection){
}

Fixed version (ground truth):
@Override public void selectionChanged(IAction action,ISelection selection){
}
Program: 120265
Project: 120265
Buggy source:
public void dispose(){
}

Fixed version (ground truth):
@Override public void dispose(){
}
Program: 120266
Project: 120266
Buggy source:
public void run(IAction action){
  toolbarAction=true;
  run();
}

Fixed version (ground truth):
@Override public void run(IAction action){
  toolbarAction=true;
  run();
}
Program: 120267
Project: 120267
Buggy source:
@Override public void run(final IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
  monitor.beginTask("String_Node_Str",100);
  final List<IRepositoryViewObject> repositoryObjects=new ArrayList<IRepositoryViewObject>();
  ProcessUtils.clearFakeProcesses();
  for (  Item item : selectedItems) {
    RepositoryNodeUtilities.checkItemDependencies(item,repositoryObjects,false,true);
  }
  monitor.worked(60);
  for (  IRepositoryViewObject repositoryObject : repositoryObjects) {
    Object repositoryNode=RepositoryNodeUtilities.getRepositoryNode(repositoryObject,monitor);
    if (repositoryNode != null) {
      checkedDependency.add(repositoryNode);
    }
 else {
      implicitDependences.add(repositoryObject);
    }
  }
  monitor.worked(90);
  ProcessUtils.clearFakeProcesses();
  monitor.done();
}

Fixed version (ground truth):
@Override public void run(final IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
  monitor.beginTask("String_Node_Str",100);
  final List<IRepositoryViewObject> repositoryObjects=new ArrayList<IRepositoryViewObject>();
  ProcessUtils.clearFakeProcesses();
  for (  Item item : selectedItems) {
    RepositoryNodeUtilities.checkItemDependencies(item,repositoryObjects,false,true);
  }
  monitor.worked(60);
  for (  IRepositoryViewObject repositoryObject : repositoryObjects) {
    RepositoryNode repositoryNode=RepositoryNodeUtilities.getRepositoryNode(repositoryObject,monitor);
    if (repositoryNode != null) {
      checkedDependency.add(repositoryNode);
    }
 else {
      implicitDependences.add(repositoryObject);
    }
    for (    IExtendedRepositoryNodeHandler nodeHandler : RepositoryContentManager.getExtendedNodeHandler()) {
      List nodesAndDependencies=nodeHandler.getRepositoryNodeAndDependencies(repositoryObject);
      if (!nodesAndDependencies.isEmpty()) {
        checkedDependency.addAll(nodesAndDependencies);
      }
    }
  }
  for (  Item item : selectedItems) {
    for (    IExtendedRepositoryNodeHandler nodeHandler : RepositoryContentManager.getExtendedNodeHandler()) {
      List nodesAndDependencies=nodeHandler.getRepositoryNodeAndDependencies(new RepositoryObject(item.getProperty()));
      if (!nodesAndDependencies.isEmpty()) {
        checkedDependency.addAll(nodesAndDependencies);
      }
    }
  }
  monitor.worked(90);
  ProcessUtils.clearFakeProcesses();
  monitor.done();
}
Program: 120268
Project: 120268
Buggy source:
private void checkElement(Object obj,Set<Object> nodes){
  if (obj == null) {
    return;
  }
  if (obj instanceof RepositoryNode) {
    Object repositoryNode=null;
    for (    IExtendedRepositoryNodeHandler nodeHandler : RepositoryContentManager.getExtendedNodeHandler()) {
      List nodesAndDependencies=nodeHandler.getRepositoryNodeAndDependencies(((RepositoryNode)obj).getObject());
      if (!nodesAndDependencies.isEmpty()) {
        nodes.addAll(nodesAndDependencies);
        return;
      }
    }
    RepositoryNode node=(RepositoryNode)obj;
    ERepositoryObjectType objectType=node.getObjectType();
    Property property=null;
    if (objectType != null) {
      if (objectType == ERepositoryObjectType.METADATA_CON_TABLE || objectType == ERepositoryObjectType.METADATA_CON_VIEW || objectType == ERepositoryObjectType.METADATA_CON_SYNONYM || objectType == ERepositoryObjectType.METADATA_CON_QUERY) {
        if (node.getObject() != null) {
          property=node.getObject().getProperty();
        }
      }
    }
    if (property != null) {
      repositoryNode=RepositoryNodeUtilities.getRepositoryNode(property.getId(),false);
      if (repositoryNode != null) {
        nodes.add(repositoryNode);
      }
    }
 else {
      nodes.add(node);
    }
  }
 else {
    nodes.add(obj);
  }
}

Fixed version (ground truth):
private void checkElement(Object obj,Set<Object> nodes){
  if (obj == null) {
    return;
  }
  if (obj instanceof RepositoryNode) {
    Object repositoryNode=null;
    RepositoryNode node=(RepositoryNode)obj;
    ERepositoryObjectType objectType=node.getObjectType();
    Property property=null;
    if (objectType != null) {
      if (objectType == ERepositoryObjectType.METADATA_CON_TABLE || objectType == ERepositoryObjectType.METADATA_CON_VIEW || objectType == ERepositoryObjectType.METADATA_CON_SYNONYM || objectType == ERepositoryObjectType.METADATA_CON_QUERY) {
        if (node.getObject() != null) {
          property=node.getObject().getProperty();
        }
      }
    }
    if (property != null) {
      repositoryNode=RepositoryNodeUtilities.getRepositoryNode(property.getId(),false);
      if (repositoryNode != null) {
        nodes.add(repositoryNode);
      }
    }
 else {
      nodes.add(node);
    }
  }
 else {
    nodes.add(obj);
  }
}
Program: 120273
Project: 120273
Buggy source:
@Override public void run(final IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
  monitor.beginTask("String_Node_Str",100);
  final List<IRepositoryViewObject> repositoryObjects=new ArrayList<IRepositoryViewObject>();
  ProcessUtils.clearFakeProcesses();
  for (  Item item : selectedItems) {
    RepositoryNodeUtilities.checkItemDependencies(item,repositoryObjects,false,true);
  }
  monitor.worked(60);
  for (  IRepositoryViewObject repositoryObject : repositoryObjects) {
    Object repositoryNode=RepositoryNodeUtilities.getRepositoryNode(repositoryObject,monitor);
    if (repositoryNode != null) {
      checkedDependency.add(repositoryNode);
    }
 else {
      implicitDependences.add(repositoryObject);
    }
  }
  monitor.worked(90);
  ProcessUtils.clearFakeProcesses();
  monitor.done();
}

Fixed version (ground truth):
@Override public void run(final IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
  monitor.beginTask("String_Node_Str",100);
  final List<IRepositoryViewObject> repositoryObjects=new ArrayList<IRepositoryViewObject>();
  ProcessUtils.clearFakeProcesses();
  for (  Item item : selectedItems) {
    RepositoryNodeUtilities.checkItemDependencies(item,repositoryObjects,false,true);
  }
  monitor.worked(60);
  for (  IRepositoryViewObject repositoryObject : repositoryObjects) {
    RepositoryNode repositoryNode=RepositoryNodeUtilities.getRepositoryNode(repositoryObject,monitor);
    if (repositoryNode != null) {
      checkedDependency.add(repositoryNode);
    }
 else {
      implicitDependences.add(repositoryObject);
    }
    for (    IExtendedRepositoryNodeHandler nodeHandler : RepositoryContentManager.getExtendedNodeHandler()) {
      List nodesAndDependencies=nodeHandler.getRepositoryNodeAndDependencies(repositoryObject);
      if (!nodesAndDependencies.isEmpty()) {
        checkedDependency.addAll(nodesAndDependencies);
      }
    }
  }
  for (  Item item : selectedItems) {
    for (    IExtendedRepositoryNodeHandler nodeHandler : RepositoryContentManager.getExtendedNodeHandler()) {
      List nodesAndDependencies=nodeHandler.getRepositoryNodeAndDependencies(new RepositoryObject(item.getProperty()));
      if (!nodesAndDependencies.isEmpty()) {
        checkedDependency.addAll(nodesAndDependencies);
      }
    }
  }
  monitor.worked(90);
  ProcessUtils.clearFakeProcesses();
  monitor.done();
}
Program: 120274
Project: 120274
Buggy source:
private void checkElement(Object obj,Set<Object> nodes){
  if (obj == null) {
    return;
  }
  if (obj instanceof RepositoryNode) {
    Object repositoryNode=null;
    for (    IExtendedRepositoryNodeHandler nodeHandler : RepositoryContentManager.getExtendedNodeHandler()) {
      List nodesAndDependencies=nodeHandler.getRepositoryNodeAndDependencies(((RepositoryNode)obj).getObject());
      if (!nodesAndDependencies.isEmpty()) {
        nodes.addAll(nodesAndDependencies);
        return;
      }
    }
    RepositoryNode node=(RepositoryNode)obj;
    ERepositoryObjectType objectType=node.getObjectType();
    Property property=null;
    if (objectType != null) {
      if (objectType == ERepositoryObjectType.METADATA_CON_TABLE || objectType == ERepositoryObjectType.METADATA_CON_VIEW || objectType == ERepositoryObjectType.METADATA_CON_SYNONYM || objectType == ERepositoryObjectType.METADATA_CON_QUERY) {
        if (node.getObject() != null) {
          property=node.getObject().getProperty();
        }
      }
    }
    if (property != null) {
      repositoryNode=RepositoryNodeUtilities.getRepositoryNode(property.getId(),false);
      if (repositoryNode != null) {
        nodes.add(repositoryNode);
      }
    }
 else {
      nodes.add(node);
    }
  }
 else {
    nodes.add(obj);
  }
}

Fixed version (ground truth):
private void checkElement(Object obj,Set<Object> nodes){
  if (obj == null) {
    return;
  }
  if (obj instanceof RepositoryNode) {
    Object repositoryNode=null;
    RepositoryNode node=(RepositoryNode)obj;
    ERepositoryObjectType objectType=node.getObjectType();
    Property property=null;
    if (objectType != null) {
      if (objectType == ERepositoryObjectType.METADATA_CON_TABLE || objectType == ERepositoryObjectType.METADATA_CON_VIEW || objectType == ERepositoryObjectType.METADATA_CON_SYNONYM || objectType == ERepositoryObjectType.METADATA_CON_QUERY) {
        if (node.getObject() != null) {
          property=node.getObject().getProperty();
        }
      }
    }
    if (property != null) {
      repositoryNode=RepositoryNodeUtilities.getRepositoryNode(property.getId(),false);
      if (repositoryNode != null) {
        nodes.add(repositoryNode);
      }
    }
 else {
      nodes.add(node);
    }
  }
 else {
    nodes.add(obj);
  }
}
Program: 120276
Project: 120276
Buggy source:
public boolean isTableViewMoveable(Zone zone,boolean moveUp){
  if (zone == Zone.INPUTS) {
    if (currentSelectedInputTableView == null) {
      return false;
    }
    List<DataMapTableView> tablesView=mapperManager.getUiManager().getInputsTablesView();
    int indexCurrentTable=tablesView.indexOf(currentSelectedInputTableView);
    if (moveUp) {
      if (indexCurrentTable > 1) {
        return true;
      }
      return false;
    }
 else {
      if (indexCurrentTable < tablesView.size() - 1 && indexCurrentTable > 0) {
        return true;
      }
      return false;
    }
  }
 else   if (zone == Zone.OUTPUTS) {
    if (currentSelectedOutputTableView == null) {
      return false;
    }
    List<DataMapTableView> tablesView=mapperManager.getUiManager().getOutputsTablesView();
    int indexCurrentTable=tablesView.indexOf(currentSelectedOutputTableView);
    if (moveUp) {
      if (indexCurrentTable > 0) {
        return true;
      }
      return false;
    }
 else {
      if (indexCurrentTable < tablesView.size() - 1) {
        return true;
      }
      return false;
    }
  }
  return false;
}

Fixed version (ground truth):
public boolean isTableViewMoveable(Zone zone,boolean moveUp){
  if (zone == Zone.INPUTS) {
    if (currentSelectedInputTableView == null) {
      return false;
    }
    List<DataMapTableView> tablesView=mapperManager.getUiManager().getInputsTablesView();
    int indexCurrentTable=tablesView.indexOf(currentSelectedInputTableView);
    if (moveUp) {
      if (indexCurrentTable > 1) {
        return true;
      }
      return false;
    }
 else {
      if (indexCurrentTable < tablesView.size() - 1 && indexCurrentTable > 0) {
        return true;
      }
      return false;
    }
  }
 else   if (zone == Zone.OUTPUTS) {
    if (currentSelectedOutputTableView == null) {
      return false;
    }
    List<DataMapTableView> tablesView=mapperManager.getUiManager().getOutputsTablesView();
    int indexCurrentTable=tablesView.indexOf(currentSelectedOutputTableView);
    if (moveUp) {
      if (indexCurrentTable > 0) {
        OutputDataMapTableView previousOutTable=(OutputDataMapTableView)tablesView.get(indexCurrentTable - 1);
        String joinTableName=currentSelectedOutputTableView.getOutputTable().getIsJoinTableOf();
        if (joinTableName != null && joinTableName.equals(previousOutTable.getOutputTable().getName())) {
          return false;
        }
        return true;
      }
      return false;
    }
 else {
      if (indexCurrentTable < tablesView.size() - 1) {
        OutputDataMapTableView nextOutTable=(OutputDataMapTableView)tablesView.get(indexCurrentTable + 1);
        String joinTableName=nextOutTable.getOutputTable().getIsJoinTableOf();
        if (joinTableName != null && joinTableName.equals(currentSelectedOutputTableView.getOutputTable().getName())) {
          return false;
        }
        return true;
      }
      return false;
    }
  }
  return false;
}
Program: 120277
Project: 120277
Buggy source:
private void processPerformances(final String data,final PerformanceData perfData,final IConnection conn){
  processPerformanceForConnection(data,perfData,conn);
  String uniqueName=ConnectionUtil.getConnectionUnifiedName(conn);
  IConnection[] shadowConnections=traceConnectionsManager.getShadowConnenctions(uniqueName);
  if (shadowConnections != null) {
    for (    IConnection shadowConn : shadowConnections) {
      processPerformanceForConnection(data,perfData,shadowConn);
    }
  }
}

Fixed version (ground truth):
private void processPerformances(final String data,final PerformanceData perfData,final IConnection conn){
  if (conn == null) {
    return;
  }
  processPerformanceForConnection(data,perfData,conn);
  String uniqueName=ConnectionUtil.getConnectionUnifiedName(conn);
  IConnection[] shadowConnections=traceConnectionsManager.getShadowConnenctions(uniqueName);
  if (shadowConnections != null) {
    for (    IConnection shadowConn : shadowConnections) {
      processPerformanceForConnection(data,perfData,shadowConn);
    }
  }
}
Program: 120278
Project: 120278
Buggy source:
public void doUnzipWithoutDecryption() throws Exception {
  if (checkArchive && !org.talend.archive.IntegrityUtil.isZipValid(new java.io.File(sourceZip))) {
    Thread.sleep(1000);
    throw new RuntimeException("String_Node_Str" + sourceZip + "String_Node_Str");
  }
  Thread.sleep(1000);
  org.apache.commons.compress.archivers.zip.ZipFile zip=new org.apache.commons.compress.archivers.zip.ZipFile(sourceZip);
  java.util.Enumeration enuFiles=zip.getEntries();
  java.io.InputStream is=null;
  while (enuFiles.hasMoreElements()) {
    org.apache.commons.compress.archivers.zip.ZipArchiveEntry entry=(org.apache.commons.compress.archivers.zip.ZipArchiveEntry)enuFiles.nextElement();
    if (verbose) {
      System.out.println("String_Node_Str" + entry.getName());
    }
    boolean isDirectory=entry.isDirectory();
    if (!isDirectory) {
      is=zip.getInputStream(entry);
    }
    String filename=entry.getName();
    util.output(targetDir,filename,isDirectory,is);
    applyLastModifiedTime(entry,filename);
  }
  zip.close();
}

Fixed version (ground truth):
public void doUnzipWithoutDecryption() throws Exception {
  if (checkArchive && !org.talend.archive.IntegrityUtil.isZipValid(new java.io.File(sourceZip))) {
    Thread.sleep(1000);
    throw new RuntimeException("String_Node_Str" + sourceZip + "String_Node_Str");
  }
  Thread.sleep(1000);
  org.apache.commons.compress.archivers.zip.ZipFile zip=null;
  try {
    zip=new org.apache.commons.compress.archivers.zip.ZipFile(sourceZip);
    java.util.Enumeration enuFiles=zip.getEntries();
    java.io.InputStream is=null;
    while (enuFiles.hasMoreElements()) {
      org.apache.commons.compress.archivers.zip.ZipArchiveEntry entry=(org.apache.commons.compress.archivers.zip.ZipArchiveEntry)enuFiles.nextElement();
      if (verbose) {
        System.out.println("String_Node_Str" + entry.getName());
      }
      boolean isDirectory=entry.isDirectory();
      if (!isDirectory) {
        is=zip.getInputStream(entry);
      }
      String filename=entry.getName();
      util.output(targetDir,filename,isDirectory,is);
      applyLastModifiedTime(entry,filename);
    }
  }
  finally {
    if (zip != null) {
      zip.close();
    }
  }
}
Program: 120279
Project: 120279
Buggy source:
public void doUnzipWithDecryption() throws Exception {
  File file=new File(sourceZip);
  if (password == null || "String_Node_Str".equals(password)) {
    Thread.sleep(1000);
    throw new RuntimeException("String_Node_Str");
  }
  if (checkArchive) {
    if (!org.talend.archive.IntegrityUtil.isEncryptedZipValid(file,password)) {
      throw new RuntimeException("String_Node_Str" + sourceZip + "String_Node_Str");
    }
  }
  java.io.InputStream is=new java.io.FileInputStream(sourceZip);
  is=new javax.crypto.CipherInputStream(is,org.talend.archive.IntegrityUtil.createCipher(javax.crypto.Cipher.DECRYPT_MODE,password));
  org.apache.commons.compress.archivers.zip.ZipArchiveInputStream input=new org.apache.commons.compress.archivers.zip.ZipArchiveInputStream(new java.io.BufferedInputStream(is));
  org.apache.commons.compress.archivers.zip.ZipArchiveEntry entry;
  while ((entry=input.getNextZipEntry()) != null) {
    if (verbose) {
      System.out.println("String_Node_Str" + entry.getName());
    }
    boolean isDirectory=entry.isDirectory();
    String filename=entry.getName();
    util.output(targetDir,filename,isDirectory,input);
    applyLastModifiedTime(entry,filename);
  }
  is.close();
}

Fixed version (ground truth):
public void doUnzipWithDecryption() throws Exception {
  File file=new File(sourceZip);
  if (password == null || "String_Node_Str".equals(password)) {
    Thread.sleep(1000);
    throw new RuntimeException("String_Node_Str");
  }
  if (checkArchive) {
    if (!org.talend.archive.IntegrityUtil.isEncryptedZipValid(file,password)) {
      throw new RuntimeException("String_Node_Str" + sourceZip + "String_Node_Str");
    }
  }
  java.io.InputStream is=null;
  try {
    is=new java.io.FileInputStream(sourceZip);
    is=new javax.crypto.CipherInputStream(is,org.talend.archive.IntegrityUtil.createCipher(javax.crypto.Cipher.DECRYPT_MODE,password));
    org.apache.commons.compress.archivers.zip.ZipArchiveInputStream input=new org.apache.commons.compress.archivers.zip.ZipArchiveInputStream(new java.io.BufferedInputStream(is));
    org.apache.commons.compress.archivers.zip.ZipArchiveEntry entry;
    while ((entry=input.getNextZipEntry()) != null) {
      if (verbose) {
        System.out.println("String_Node_Str" + entry.getName());
      }
      boolean isDirectory=entry.isDirectory();
      String filename=entry.getName();
      util.output(targetDir,filename,isDirectory,input);
      applyLastModifiedTime(entry,filename);
    }
  }
  finally {
    if (is != null) {
      is.close();
    }
  }
}
Program: 120280
Project: 120280
Buggy source:
public void output(String path,String fileName,boolean isDirectory,java.io.InputStream is) throws java.lang.Exception {
  java.io.File f=null;
  if (extractPath) {
    f=new java.io.File(path,fileName);
  }
 else {
    String tempName=fileName.replaceAll("String_Node_Str","String_Node_Str");
    int m=tempName.lastIndexOf('/');
    String shortName=tempName.substring(m != -1 ? m + 1 : 0);
    f=new java.io.File(path,shortName);
  }
  if (isDirectory) {
    if (!f.exists()) {
      f.mkdirs();
    }
  }
 else {
    java.io.File parent=f.getParentFile();
    if (parent != null && !parent.exists()) {
      parent.mkdirs();
    }
    f.createNewFile();
    java.io.BufferedOutputStream bos=new java.io.BufferedOutputStream(new java.io.FileOutputStream(f));
    byte[] buff=new byte[1024];
    int data=-1;
    while ((data=is.read(buff)) != -1) {
      bos.write(buff,0,data);
    }
    bos.close();
  }
  unzippedFiles.add(new UnzippedFile(f.getName(),f.getAbsolutePath()));
}

Fixed version (ground truth):
public void output(String path,String fileName,boolean isDirectory,java.io.InputStream is) throws java.lang.Exception {
  java.io.File f=null;
  if (extractPath) {
    f=new java.io.File(path,fileName);
  }
 else {
    String tempName=fileName.replaceAll("String_Node_Str","String_Node_Str");
    int m=tempName.lastIndexOf('/');
    String shortName=tempName.substring(m != -1 ? m + 1 : 0);
    f=new java.io.File(path,shortName);
  }
  if (isDirectory) {
    if (!f.exists()) {
      f.mkdirs();
    }
  }
 else {
    java.io.File parent=f.getParentFile();
    if (parent != null && !parent.exists()) {
      parent.mkdirs();
    }
    f.createNewFile();
    java.io.BufferedOutputStream bos=null;
    try {
      bos=new java.io.BufferedOutputStream(new java.io.FileOutputStream(f));
      byte[] buff=new byte[1024];
      int data=-1;
      while ((data=is.read(buff)) != -1) {
        bos.write(buff,0,data);
      }
    }
  finally {
      if (bos != null) {
        bos.close();
      }
    }
  }
  unzippedFiles.add(new UnzippedFile(f.getName(),f.getAbsolutePath()));
}
Program: 120282
Project: 120282
Buggy source:
@Override protected void doRun(){
  IRepositoryView repositoryView=getViewPart();
  if (repositoryView != null && repositoryView.getViewer() instanceof TreeViewer) {
    ((TreeViewer)repositoryView.getViewer()).getTree().setFocus();
  }
  ExportItemWizard wizard=new ExportItemWizard();
  IWorkbench workbench=getWorkbench();
  wizard.setWindowTitle(EXPORT_ITEM);
  if (!toolbarAction) {
    wizard.init(workbench,(IStructuredSelection)this.getSelection());
  }
 else {
    if (repositoryView != null) {
      IStructuredSelection selection=(IStructuredSelection)repositoryView.getViewer().getSelection();
      wizard.init(workbench,selection);
    }
  }
  Shell activeShell=Display.getCurrent().getActiveShell();
  WizardDialog dialog=new WizardDialog(activeShell,wizard);
  dialog.open();
}

Fixed version (ground truth):
@Override protected void doRun(){
  IRepositoryView repositoryView=getViewPart();
  if (repositoryView != null && repositoryView.getViewer() instanceof TreeViewer) {
    ((TreeViewer)repositoryView.getViewer()).getTree().setFocus();
  }
  ExportItemWizard wizard=new ExportItemWizard((repositoryView != null ? repositoryView.getViewSite().getId() : null));
  IWorkbench workbench=getWorkbench();
  wizard.setWindowTitle(EXPORT_ITEM);
  if (!toolbarAction) {
    wizard.init(workbench,(IStructuredSelection)this.getSelection());
  }
 else {
    if (repositoryView != null) {
      IStructuredSelection selection=(IStructuredSelection)repositoryView.getViewer().getSelection();
      wizard.init(workbench,selection);
    }
  }
  Shell activeShell=Display.getCurrent().getActiveShell();
  WizardDialog dialog=new WizardDialog(activeShell,wizard);
  dialog.open();
}
Program: 120287
Project: 120287
Buggy source:
public void applyEditorValue(){
  ModifiedObjectInfo modifiedObjectInfo=tableViewerCreator.getModifiedObjectInfo();
  mapperManager.getUiManager().parseNewExpression(text.getText(),(ITableEntry)modifiedObjectInfo.getCurrentModifiedBean(),true);
}

Fixed version (ground truth):
public void applyEditorValue(){
  ModifiedObjectInfo modifiedObjectInfo=tableViewerCreator.getModifiedObjectInfo();
  mapperManager.getUiManager().parseNewExpression(text.getText(),(ITableEntry)modifiedObjectInfo.getCurrentModifiedBean(),true);
  checkChangementsAfterEntryModifiedOrAdded(false);
}
Program: 120290
Project: 120290
Buggy source:
public void applyEditorValue(){
  ModifiedObjectInfo modifiedObjectInfo=tableViewerCreator.getModifiedObjectInfo();
  mapperManager.getUiManager().parseNewExpression(text.getText(),(ITableEntry)modifiedObjectInfo.getCurrentModifiedBean(),true);
}

Fixed version (ground truth):
public void applyEditorValue(){
  ModifiedObjectInfo modifiedObjectInfo=tableViewerCreator.getModifiedObjectInfo();
  mapperManager.getUiManager().parseNewExpression(text.getText(),(ITableEntry)modifiedObjectInfo.getCurrentModifiedBean(),true);
  checkChangementsAfterEntryModifiedOrAdded(false);
}