nus-yam/ex-repair huggingface dataset:
Program: 73178
Project: 73178
Buggy source:
/** 
 * Add this design element to report.
 * @param newHandle The design element to add
 */
private void addHandleToReport(IDesignElement newElement,ModuleHandle currentDesignHandle) throws ContentException, NameException, SemanticException {
  DesignElementHandle newHandle=newElement.getHandle(currentDesignHandle.getModule());
  if (newContainer instanceof ThemeHandle) {
    currentDesignHandle.rename((ThemeHandle)newContainer,newHandle);
  }
 else   if (newContainer instanceof SlotHandle && ((SlotHandle)newContainer).getElementHandle() instanceof ThemeHandle) {
    currentDesignHandle.rename(((SlotHandle)newContainer).getElementHandle(),newHandle);
  }
 else {
    currentDesignHandle.rename(newHandle);
  }
  SlotHandle slotHandle=null;
  if (newContainer instanceof DesignElementHandle) {
    slotHandle=((DesignElementHandle)newContainer).getSlot(slotID);
  }
 else   if (newContainer instanceof SlotHandle) {
    slotHandle=(SlotHandle)newContainer;
  }
  if (slotHandle != null) {
    slotHandle.paste(newElement,position);
  }
 else   if (newContainer instanceof PropertyHandle) {
    ((PropertyHandle)newContainer).paste(newElement,position);
  }
 else   if (newContainer instanceof DesignElementHandle) {
    ((DesignElementHandle)newContainer).getPropertyHandle(contentString).paste(newElement,position);
  }
  if (DesignerConstants.TRACING_COMMANDS) {
    System.out.println("String_Node_Str" + DEUtil.getDisplayLabel(newHandle) + "String_Node_Str"+ slotHandle.getSlotID()+ "String_Node_Str"+ DEUtil.getDisplayLabel(slotHandle.getElementHandle())+ "String_Node_Str"+ position);
  }
}

Fixed version (ground truth):
/** 
 * Add this design element to report.
 * @param newHandle The design element to add
 */
private void addHandleToReport(DesignElementHandle newHandle) throws ContentException, NameException, SemanticException {
  SlotHandle slotHandle=null;
  if (newContainer instanceof DesignElementHandle) {
    slotHandle=((DesignElementHandle)newContainer).getSlot(slotID);
  }
 else   if (newContainer instanceof SlotHandle) {
    slotHandle=(SlotHandle)newContainer;
  }
  if (slotHandle != null) {
    slotHandle.paste(newHandle,position);
  }
 else   if (newContainer instanceof PropertyHandle) {
    ((PropertyHandle)newContainer).paste(newHandle,position);
  }
 else   if (newContainer instanceof DesignElementHandle) {
    ((DesignElementHandle)newContainer).getPropertyHandle(contentString).paste(newHandle,position);
  }
  if (DesignerConstants.TRACING_COMMANDS) {
    System.out.println("String_Node_Str" + DEUtil.getDisplayLabel(newHandle) + "String_Node_Str"+ slotHandle.getSlotID()+ "String_Node_Str"+ DEUtil.getDisplayLabel(slotHandle.getElementHandle())+ "String_Node_Str"+ position);
  }
}
Program: 73179
Project: 73179
Buggy source:
/** 
 * Executes the Command.
 */
public void execute(){
  if (DesignerConstants.TRACING_COMMANDS) {
    System.out.println("String_Node_Str");
  }
  try {
    if (!isCut || sourceHandle == null || sourceHandle.getContainer() == null) {
      isCut=false;
    }
    calculatePositionAndSlotId();
    dropSourceHandle(sourceHandle);
    ModuleHandle currentDesignHandle=SessionHandleAdapter.getInstance().getReportDesignHandle();
    addHandleToReport(copyNewHandle(cloneElement),currentDesignHandle);
  }
 catch (  Exception e) {
    if (DesignerConstants.TRACING_COMMANDS) {
      System.out.println("String_Node_Str");
    }
    logger.log(Level.SEVERE,e.getMessage(),e);
  }
}

Fixed version (ground truth):
/** 
 * Executes the Command.
 */
public void execute(){
  if (DesignerConstants.TRACING_COMMANDS) {
    System.out.println("String_Node_Str");
  }
  try {
    if (!isCut || sourceHandle == null || sourceHandle.getContainer() == null) {
      isCut=false;
    }
    calculatePositionAndSlotId();
    dropSourceHandle(sourceHandle);
    ModuleHandle currentDesignHandle=SessionHandleAdapter.getInstance().getReportDesignHandle();
    DesignElementHandle newHandle=copyNewHandle(cloneElement,currentDesignHandle);
    addHandleToReport(newHandle);
  }
 catch (  Exception e) {
    if (DesignerConstants.TRACING_COMMANDS) {
      System.out.println("String_Node_Str");
    }
    logger.log(Level.SEVERE,e.getMessage(),e);
  }
}
Program: 73180
Project: 73180
Buggy source:
public boolean isEnabled(){
  if (getSelection() instanceof DesignElementHandle) {
    DesignElementHandle elementHandle=(DesignElementHandle)getSelection();
    if (getClipBoardContents() instanceof IDesignElement) {
      IDesignElement content=(IDesignElement)getClipBoardContents();
      try {
        if (!elementHandle.canPaste(DEUtil.getDefaultContentName(elementHandle),content))         return false;
      }
 catch (      SemanticException e) {
      }
    }
 else     if (getClipBoardContents() instanceof Object[]) {
      Object[] array=(Object[])getClipBoardContents();
      for (int i=0; i < array.length; i++) {
        if (array[i] instanceof IDesignElement) {
          IDesignElement content=(IDesignElement)array[i];
          try {
            if (!elementHandle.canPaste(DEUtil.getDefaultContentName(elementHandle),content))             return false;
          }
 catch (          SemanticException e) {
          }
        }
      }
    }
  }
  return DNDUtil.handleValidateTargetCanContain(getSelection(),getClipBoardContents()) && DNDUtil.handleValidateTargetCanContainMore(getSelection(),DNDUtil.getObjectLength(getClipBoardContents()));
}

Fixed version (ground truth):
public boolean isEnabled(){
  return DNDUtil.handleValidateTargetCanContain(getSelection(),getClipBoardContents()) && DNDUtil.handleValidateTargetCanContainMore(getSelection(),DNDUtil.getObjectLength(getClipBoardContents()));
}
Program: 73182
Project: 73182
Buggy source:
protected Object initialValue(){
  HashMap value=new HashMap();
  String[] dateFormatPattern={"String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str"};
  SimpleDateFormat simpleDateFormatter=null;
  PatternKey patterKey=null;
  for (int i=0; i < dateFormatPattern.length; i++) {
    patterKey=PatternKey.getPatterKey(dateFormatPattern[i]);
    simpleDateFormatter=new SimpleDateFormat(dateFormatPattern[i]);
    simpleDateFormatter.setLenient(false);
    value.put(patterKey,simpleDateFormatter);
  }
  return value;
}

Fixed version (ground truth):
protected Object initialValue(){
  HashMap value=new HashMap();
  String[] dateFormatPattern={"String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str","String_Node_Str"};
  SimpleDateFormat simpleDateFormatter=null;
  PatternKey patterKey=null;
  for (int i=0; i < dateFormatPattern.length; i++) {
    patterKey=PatternKey.getPatterKey(dateFormatPattern[i]);
    simpleDateFormatter=new SimpleDateFormat(dateFormatPattern[i]);
    simpleDateFormatter.setLenient(false);
    value.put(patterKey,simpleDateFormatter);
  }
  return value;
}
Program: 73183
Project: 73183
Buggy source:
private void clearTempFile(){
  File tmpDir=new File(session.getTempDir());
  if (!tmpDir.exists() || !tmpDir.isDirectory()) {
    return;
  }
  File[] tmpFiles=tmpDir.listFiles();
  if (tmpFiles != null) {
    for (int i=0; i < tmpFiles.length; i++) {
      if (!tmpFiles[i].delete()) {
        tmpFiles[i].deleteOnExit();
      }
    }
  }
  if (!tmpDir.delete()) {
    tmpDir.deleteOnExit();
  }
}

Fixed version (ground truth):
/** 
 */
private void clearTempFile(){
  File tmpDir=new File(session.getTempDir());
  if (!tmpDir.exists() || !tmpDir.isDirectory()) {
    return;
  }
  deleteDirectory(tmpDir);
}
Program: 73184
Project: 73184
Buggy source:
public IResultSet executeQuery() throws OdaException {
  logger.logp(java.util.logging.Level.FINE,CallStatement.class.getName(),"String_Node_Str","String_Node_Str");
  if (this.cachedResultSet != null) {
    IResultSet ret=this.cachedResultSet;
    this.cachedResultSet=null;
    return ret;
  }
  if (!maxRowsUpToDate) {
    try {
      assertNotNull(callStat);
      callStat.setMaxRows(maxrows);
    }
 catch (    SQLException e1) {
    }
    maxRowsUpToDate=true;
  }
  registerOutputParameter();
  java.sql.ResultSet rs=null;
  try {
    this.callStat.execute();
    rs=this.callStat.getResultSet();
    while (rs == null && this.callStat.getMoreResults()) {
      rs=this.callStat.getResultSet();
    }
    if (rs != null)     return new ResultSet(rs);
    java.sql.ResultSet resultSet=getOutputParamResultSet();
    if (resultSet != null)     return new ResultSet(resultSet);
 else     return new SPResultSet(null);
  }
 catch (  SQLException e) {
    throw new JDBCException(ResourceConstants.RESULTSET_CANNOT_RETURN,e);
  }
}

Fixed version (ground truth):
public IResultSet executeQuery() throws OdaException {
  logger.logp(java.util.logging.Level.FINE,CallStatement.class.getName(),"String_Node_Str","String_Node_Str");
  if (this.cachedResultSet != null) {
    IResultSet ret=this.cachedResultSet;
    this.cachedResultSet=null;
    return ret;
  }
  if (!maxRowsUpToDate) {
    try {
      assertNotNull(callStat);
      callStat.setMaxRows(maxrows);
    }
 catch (    SQLException e1) {
    }
    maxRowsUpToDate=true;
  }
  registerOutputParameter();
  java.sql.ResultSet rs=null;
  try {
    this.callStat.execute();
    rs=this.callStat.getResultSet();
    if (rs == null && callStat.getUpdateCount() != -1) {
      while (true) {
        int rowCount=callStat.getUpdateCount();
        if (rowCount != -1) {
          if (callStat.getMoreResults() == false && callStat.getUpdateCount() == -1)           break;
          continue;
        }
 else {
          rs=callStat.getResultSet();
          break;
        }
      }
    }
    if (rs != null)     return new ResultSet(rs);
    java.sql.ResultSet resultSet=getOutputParamResultSet();
    if (resultSet != null)     return new ResultSet(resultSet);
 else     return new SPResultSet(null);
  }
 catch (  SQLException e) {
    throw new JDBCException(ResourceConstants.RESULTSET_CANNOT_RETURN,e);
  }
}
Program: 73186
Project: 73186
Buggy source:
/** 
 * Constructor.
 * @param os the output stream to which the design file is written.
 * @param signature the UTF signature
 * @param needMarkLineNumber 
 * @throws IOException if write error occurs
 */
public XMLWriter(OutputStream os,String signature,boolean needMarkLineNumber) throws IOException {
  out=new PrintStream(os,false,OUTPUT_ENCODING);
  markLineNumber=needMarkLineNumber;
  init(signature);
}

Fixed version (ground truth):
/** 
 * Constructor.
 * @param os the output stream to which the design file is written.
 * @param signature the UTF signature
 * @param needMarkLineNumber
 * @throws IOException if write error occurs
 */
public XMLWriter(OutputStream os,String signature,boolean needMarkLineNumber) throws IOException {
  out=new PrintStream(os,false,OUTPUT_ENCODING);
  markLineNumber=needMarkLineNumber;
  init(signature);
}
Program: 73187
Project: 73187
Buggy source:
/** 
 * Write text into the current element.
 * @param text the text to write
 */
public void text(String text){
  closeTextTag();
  if (text == null)   return;
  int len=text.length();
  for (int i=0; i < len; i++) {
    char c=text.charAt(i);
    if (c == '&')     out.print("String_Node_Str");
 else     if (c == '<')     out.print("String_Node_Str");
 else     if (c == '\n') {
      printLine();
    }
 else     out.print(c);
  }
}

Fixed version (ground truth):
/** 
 * Write text into the current element.
 * @param text the text to write
 */
public void text(String text){
  closeTextTag();
  if (text == null)   return;
  int len=text.length();
  for (int i=0; i < len; i++) {
    char c=text.charAt(i);
    if (c == '&')     out.print("String_Node_Str");
 else     if (c == '<')     out.print("String_Node_Str");
 else     if (c == '>') {
      if (i - 2 >= 0 && text.charAt(i - 1) == ']' && text.charAt(i - 2) == ']')       out.print("String_Node_Str");
 else       out.print(c);
    }
 else     if (c == '\n') {
      printLine();
    }
 else     out.print(c);
  }
}
Program: 73188
Project: 73188
Buggy source:
public IReportRunnable getReportRunnable(){
  if (reportRunnable != null) {
    return reportRunnable;
  }
synchronized (this) {
    if (reportRunnable != null) {
      return reportRunnable;
    }
    String name=null;
    if (systemId == null) {
      name=archive.getName();
    }
 else {
      name=systemId;
    }
    InputStream stream=getDesignStream();
    if (stream != null) {
      try {
        reportRunnable=(ReportRunnable)engine.openReportDesign(name,stream,moduleOptions);
        stream.close();
        try {
          stream=archive.getStream(DESIGN_IR_STREAM);
          EngineIRReader reader=new EngineIRReader();
          Report reportIR=reader.read(stream);
          reportIR.setVersion(getVersion());
          reader.link(reportIR,reportRunnable.getReport());
          reportRunnable.setReportIR(reportIR);
        }
 catch (        IOException ioex) {
          logger.log(Level.FINE,"String_Node_Str",ioex);
        }
      }
 catch (      Exception ex) {
        logger.log(Level.SEVERE,"String_Node_Str",ex);
      }
 finally {
        try {
          if (stream != null) {
            stream.close();
          }
        }
 catch (        IOException ex) {
        }
      }
    }
  }
  return reportRunnable;
}

Fixed version (ground truth):
private IReportRunnable getReportRunnable(String systemId){
  if (reportRunnable != null) {
    return reportRunnable;
  }
synchronized (this) {
    if (reportRunnable != null) {
      return reportRunnable;
    }
    String name=null;
    if (systemId == null) {
      name=archive.getName();
    }
 else {
      name=systemId;
    }
    InputStream stream=getDesignStream();
    if (stream != null) {
      try {
        reportRunnable=(ReportRunnable)engine.openReportDesign(name,stream,moduleOptions);
        stream.close();
        try {
          stream=archive.getStream(DESIGN_IR_STREAM);
          EngineIRReader reader=new EngineIRReader();
          Report reportIR=reader.read(stream);
          reportIR.setVersion(getVersion());
          reader.link(reportIR,reportRunnable.getReport());
          reportRunnable.setReportIR(reportIR);
        }
 catch (        IOException ioex) {
          logger.log(Level.FINE,"String_Node_Str",ioex);
        }
      }
 catch (      Exception ex) {
        logger.log(Level.SEVERE,"String_Node_Str",ex);
      }
 finally {
        try {
          if (stream != null) {
            stream.close();
          }
        }
 catch (        IOException ex) {
        }
      }
    }
  }
  return reportRunnable;
}
Program: 73189
Project: 73189
Buggy source:
public ClassLoader getClassLoader(){
  if (applicationClassLoader == null) {
    applicationClassLoader=new ApplicationClassLoader(engine,getReportRunnable());
  }
  return applicationClassLoader;
}

Fixed version (ground truth):
private ClassLoader getClassLoader(String systemId){
  if (applicationClassLoader == null) {
    applicationClassLoader=new ApplicationClassLoader(engine,getReportRunnable(systemId));
  }
  return applicationClassLoader;
}
Program: 73190
Project: 73190
Buggy source:
protected void doRefreshV0(DataInputStream di) throws IOException {
  ReportDocumentCoreInfo documentInfo=new ReportDocumentCoreInfo();
  documentInfo.checkpoint=CHECKPOINT_INIT;
  documentInfo.pageCount=PAGECOUNT_INIT;
  documentInfo.checkpoint=IOUtil.readInt(di);
  documentInfo.pageCount=IOUtil.readLong(di);
  if (documentInfo.checkpoint == checkpoint) {
    return;
  }
  String orgSystemId=IOUtil.readString(di);
  if (systemId == null) {
    documentInfo.systemId=orgSystemId;
  }
 else {
    documentInfo.systemId=systemId;
  }
  ClassLoader applicationClassLoader=getClassLoader();
  Map originalParameters=IOUtil.readMap(di,applicationClassLoader);
  documentInfo.parameters=convertToCompatibleParameter(originalParameters);
  documentInfo.globalVariables=(HashMap)IOUtil.readMap(di,applicationClassLoader);
  checkpoint=documentInfo.checkpoint;
  pageCount=documentInfo.pageCount;
  systemId=documentInfo.systemId;
  globalVariables=documentInfo.globalVariables;
  parameters=documentInfo.parameters;
  if (documentInfo.checkpoint == CHECKPOINT_END) {
    bookmarks=readMap(di);
    tocTree=new TOCTree();
    TOCBuilder.read(tocTree,di,applicationClassLoader);
    reportletsIndexById=readMap(di);
    reportletsIndexByBookmark=readMap(di);
  }
}

Fixed version (ground truth):
protected void doRefreshV0(DataInputStream di) throws IOException {
  ReportDocumentCoreInfo documentInfo=new ReportDocumentCoreInfo();
  documentInfo.checkpoint=CHECKPOINT_INIT;
  documentInfo.pageCount=PAGECOUNT_INIT;
  documentInfo.checkpoint=IOUtil.readInt(di);
  documentInfo.pageCount=IOUtil.readLong(di);
  if (documentInfo.checkpoint == checkpoint) {
    return;
  }
  String orgSystemId=IOUtil.readString(di);
  if (systemId == null) {
    documentInfo.systemId=orgSystemId;
  }
 else {
    documentInfo.systemId=systemId;
  }
  documentInfo.applicationClassLoader=getClassLoader(documentInfo.systemId);
  Map originalParameters=IOUtil.readMap(di,documentInfo.applicationClassLoader);
  documentInfo.parameters=convertToCompatibleParameter(originalParameters);
  documentInfo.globalVariables=(HashMap)IOUtil.readMap(di,documentInfo.applicationClassLoader);
  checkpoint=documentInfo.checkpoint;
  pageCount=documentInfo.pageCount;
  systemId=documentInfo.systemId;
  globalVariables=documentInfo.globalVariables;
  parameters=documentInfo.parameters;
  applicationClassLoader=documentInfo.applicationClassLoader;
  if (documentInfo.checkpoint == CHECKPOINT_END) {
    bookmarks=readMap(di);
    tocTree=new TOCTree();
    TOCBuilder.read(tocTree,di,applicationClassLoader);
    reportletsIndexById=readMap(di);
    reportletsIndexByBookmark=readMap(di);
  }
}
Program: 73191
Project: 73191
Buggy source:
protected void doOldRefresh(DataInputStream coreStream) throws IOException {
  ReportDocumentCoreInfo documentInfo=new ReportDocumentCoreInfo();
  documentInfo.checkpoint=CHECKPOINT_INIT;
  documentInfo.pageCount=PAGECOUNT_INIT;
  if (!archive.exists(CHECKPOINT_STREAM)) {
    documentInfo.checkpoint=CHECKPOINT_END;
    initializePageHintReader();
    if (pageHintReader != null) {
      documentInfo.pageCount=pageHintReader.getTotalPage();
    }
  }
 else {
    RAInputStream in=archive.getStream(CHECKPOINT_STREAM);
    try {
      DataInputStream di=new DataInputStream(in);
      documentInfo.checkpoint=IOUtil.readInt(di);
      documentInfo.pageCount=IOUtil.readLong(di);
    }
  finally {
      if (in != null) {
        in.close();
      }
    }
    if (documentInfo.checkpoint == checkpoint) {
      return;
    }
  }
  String orgSystemId=IOUtil.readString(coreStream);
  if (systemId == null) {
    documentInfo.systemId=orgSystemId;
  }
 else {
    documentInfo.systemId=systemId;
  }
  ClassLoader applicationClassLoader=getClassLoader();
  Map originalParameters=IOUtil.readMap(coreStream,applicationClassLoader);
  documentInfo.parameters=convertToCompatibleParameter(originalParameters);
  documentInfo.globalVariables=(HashMap)IOUtil.readMap(coreStream,applicationClassLoader);
  checkpoint=documentInfo.checkpoint;
  pageCount=documentInfo.pageCount;
  systemId=documentInfo.systemId;
  globalVariables=documentInfo.globalVariables;
  parameters=documentInfo.parameters;
}

Fixed version (ground truth):
protected void doOldRefresh(DataInputStream coreStream) throws IOException {
  ReportDocumentCoreInfo documentInfo=new ReportDocumentCoreInfo();
  documentInfo.checkpoint=CHECKPOINT_INIT;
  documentInfo.pageCount=PAGECOUNT_INIT;
  if (!archive.exists(CHECKPOINT_STREAM)) {
    documentInfo.checkpoint=CHECKPOINT_END;
    initializePageHintReader();
    if (pageHintReader != null) {
      documentInfo.pageCount=pageHintReader.getTotalPage();
    }
  }
 else {
    RAInputStream in=archive.getStream(CHECKPOINT_STREAM);
    try {
      DataInputStream di=new DataInputStream(in);
      documentInfo.checkpoint=IOUtil.readInt(di);
      documentInfo.pageCount=IOUtil.readLong(di);
    }
  finally {
      if (in != null) {
        in.close();
      }
    }
    if (documentInfo.checkpoint == checkpoint) {
      return;
    }
  }
  String orgSystemId=IOUtil.readString(coreStream);
  if (systemId == null) {
    documentInfo.systemId=orgSystemId;
  }
 else {
    documentInfo.systemId=systemId;
  }
  documentInfo.applicationClassLoader=getClassLoader(documentInfo.systemId);
  Map originalParameters=IOUtil.readMap(coreStream,documentInfo.applicationClassLoader);
  documentInfo.parameters=convertToCompatibleParameter(originalParameters);
  documentInfo.globalVariables=(HashMap)IOUtil.readMap(coreStream,documentInfo.applicationClassLoader);
  checkpoint=documentInfo.checkpoint;
  pageCount=documentInfo.pageCount;
  systemId=documentInfo.systemId;
  globalVariables=documentInfo.globalVariables;
  parameters=documentInfo.parameters;
  applicationClassLoader=documentInfo.applicationClassLoader;
}
Program: 73192
Project: 73192
Buggy source:
public void doSave(IProgressMonitor progressMonitor){
  reportXMLEditor.doSave(progressMonitor);
  IReportProvider provider=getProvider();
  if (provider != null && getErrorLIine(false) == -1) {
    unhookModelEventManager(getModel());
    getCommandStack().removeCommandStackListener(getCommandStackListener());
    ModuleHandle model=provider.getReportModuleHandle(getEditorInput(),true);
    SessionHandleAdapter.getInstance().setReportDesignHandle(model);
    SessionHandleAdapter.getInstance().getMediator().addColleague(this);
    hookModelEventManager(getModel());
    getCommandStack().addCommandStackListener(getCommandStackListener());
    setIsModified(false);
    getEditor().editorDirtyStateChanged();
    if (isActive() && !isLeaving) {
      getReportEditor().reloadOutlinePage();
    }
  }
}

Fixed version (ground truth):
public void doSave(IProgressMonitor progressMonitor){
  reportXMLEditor.doSave(progressMonitor);
}
Program: 73193
Project: 73193
Buggy source:
public void init(IEditorSite site,IEditorInput input) throws PartInitException {
  super.init(site,input);
  try {
    reportXMLEditor=new StructuredTextEditor();
    reportXMLEditor.init(site,input);
  }
 catch (  Exception e) {
  }
}

Fixed version (ground truth):
public void init(IEditorSite site,IEditorInput input) throws PartInitException {
  super.init(site,input);
  try {
    reportXMLEditor=new StructuredTextEditor(){
      @Override public void doSave(      IProgressMonitor progressMonitor){
        super.doSave(progressMonitor);
        clearDirtyFlag();
      }
    }
;
    reportXMLEditor.init(site,input);
  }
 catch (  Exception e) {
  }
}
Program: 73194
Project: 73194
Buggy source:
protected void firePropertyChange(int type){
  if (type == PROP_DIRTY) {
    if (editor != null) {
      markPageStale(IPageStaleType.CODE_CHANGED);
      editor.editorDirtyStateChanged();
    }
  }
 else {
    super.firePropertyChange(type);
  }
}

Fixed version (ground truth):
protected void firePropertyChange(int type){
  super.firePropertyChange(type);
  if (type == PROP_DIRTY) {
    if (editor != null) {
      markPageStale(IPageStaleType.CODE_CHANGED);
      editor.editorDirtyStateChanged();
    }
  }
}
Program: 73195
Project: 73195
Buggy source:
/** 
 * Transforms dimension value to points.
 * @param handle
 * @param dpi to convert px unit
 * @return the dimension value with measure of points
 * @since 2.3
 */
public static double convertToPoints(org.eclipse.birt.report.model.api.DimensionHandle handle,int dpi){
  double retValue=0.0;
  if (handle.isSet()) {
    if (handle.getUnits() == DesignChoiceConstants.UNITS_PT) {
      retValue=handle.getMeasure();
    }
 else     if (handle.getUnits() == DesignChoiceConstants.UNITS_PX) {
      retValue=(handle.getMeasure() * 72d) / dpi;
    }
 else {
      retValue=DimensionUtil.convertTo(handle.getMeasure(),handle.getUnits(),DesignChoiceConstants.UNITS_PT).getMeasure();
    }
  }
  return retValue;
}

Fixed version (ground truth):
/** 
 * Transforms dimension value to points.
 * @param handle
 * @param dpi to convert px unit
 * @return the dimension value with measure of points
 * @since 2.3
 */
public static double convertToPoints(org.eclipse.birt.report.model.api.DimensionHandle handle,int dpi){
  double retValue=0.0;
  if (handle.isSet() && handle.getMeasure() > 0 && handle.getUnits().trim().length() > 0) {
    if (handle.getUnits() == DesignChoiceConstants.UNITS_PT) {
      retValue=handle.getMeasure();
    }
 else     if (handle.getUnits() == DesignChoiceConstants.UNITS_PX) {
      retValue=(handle.getMeasure() * 72d) / dpi;
    }
 else {
      retValue=DimensionUtil.convertTo(handle.getMeasure(),handle.getUnits(),DesignChoiceConstants.UNITS_PT).getMeasure();
    }
  }
  return retValue;
}
Program: 73196
Project: 73196
Buggy source:
public void test(){
  WordRecognizerWrapper wr=new WordRecognizerWrapper(testStr,java.util.Locale.ENGLISH);
  Word word=wr.getNextWord();
  assertTrue("String_Node_Str".equals(word.getValue()));
  word=wr.getNextWord();
  assertTrue("String_Node_Str".equals(word.getValue()));
  word=wr.getNextWord();
  assertTrue("String_Node_Str".equals(word.getValue()));
  word=wr.getNextWord();
  assertTrue("String_Node_Str".equals(word.getValue()));
  word=wr.getNextWord();
  assertTrue("String_Node_Str".equals(word.getValue()));
  word=wr.getNextWord();
  assertTrue("String_Node_Str".equals(word.getValue()));
  word=wr.getNextWord();
  assertTrue("String_Node_Str".equals(word.getValue()));
  word=wr.getNextWord();
  assertTrue("String_Node_Str".equals(word.getValue()));
  word=wr.getNextWord();
  assertTrue("String_Node_Str".equals(word.getValue()));
  word=wr.getNextWord();
  assertTrue("String_Node_Str".equals(word.getValue()));
}

Fixed version (ground truth):
public void test(){
  WordRecognizerWrapper wr=new WordRecognizerWrapper(testStr,java.util.Locale.ENGLISH);
  Word word=wr.getNextWord();
  assertTrue("String_Node_Str".equals(word.getValue()));
  word=wr.getNextWord();
  assertTrue("String_Node_Str".equals(word.getValue()));
  word=wr.getNextWord();
  assertTrue("String_Node_Str".equals(word.getValue()));
  word=wr.getNextWord();
  assertTrue("String_Node_Str".equals(word.getValue()));
  word=wr.getNextWord();
  assertTrue("String_Node_Str".equals(word.getValue()));
  word=wr.getNextWord();
  assertTrue("String_Node_Str".equals(word.getValue()));
  word=wr.getNextWord();
  assertTrue("String_Node_Str".equals(word.getValue()));
  word=wr.getNextWord();
  assertTrue("String_Node_Str".equals(word.getValue()));
  word=wr.getNextWord();
  assertTrue("String_Node_Str".equals(word.getValue()));
  word=wr.getNextWord();
  assertTrue("String_Node_Str".equals(word.getValue()));
  wr=new WordRecognizerWrapper(testStr2,java.util.Locale.ENGLISH);
  word=wr.getNextWord();
  assertTrue("String_Node_Str".equals(word.getValue()));
  wr=new WordRecognizerWrapper(testStr3,java.util.Locale.ENGLISH);
  word=wr.getNextWord();
  assertTrue("String_Node_Str".equals(word.getValue()));
}
Program: 73197
Project: 73197
Buggy source:
private void addDataExpForAggregate(String expr){
  lstTransformedExprs.add(expr);
}

Fixed version (ground truth):
private void addDataExpForAggregate(String expr,String aggExp){
  String key=generateKey(expr,aggExp);
  if (!lhmTransformedExprs.containsKey(key)) {
    lhmTransformedExprs.put(key,new Integer(iLookupTransformedExprs++));
    lstTransformedExprs.add(expr);
  }
}
Program: 73199
Project: 73199
Buggy source:
private boolean addDataExpOfBaseSeries(String dataExp){
  boolean result=addDataExp(dataExp,"String_Node_Str");
  if (result) {
    addDataExpForAggregate(dataExp);
  }
  return result;
}

Fixed version (ground truth):
private boolean addDataExpOfBaseSeries(String dataExp){
  boolean result=addDataExp(dataExp,"String_Node_Str");
  if (result) {
    addDataExpForAggregate(dataExp,"String_Node_Str");
  }
  return result;
}
Program: 73200
Project: 73200
Buggy source:
/** 
 * Add common sort expression by the specified expression.
 * @param baseSD
 */
private void addCommonSortKey(SeriesDefinition baseSD){
  if (fBaseSortExprIndex < 0 && baseSD.eIsSet(DataPackage.eINSTANCE.getSeriesDefinition_Sorting())) {
    String sortExpr=getSortKey(baseSD);
    if (sortExpr != null) {
      if (addDataExp(sortExpr,"String_Node_Str")) {
        addDataExpForAggregate(sortExpr);
      }
      fBaseSortExprIndex=findIndexOfBaseSeries(sortExpr);
    }
  }
}

Fixed version (ground truth):
/** 
 * Add common sort expression by the specified expression.
 * @param baseSD
 */
private void addCommonSortKey(SeriesDefinition baseSD){
  if (fBaseSortExprIndex < 0 && baseSD.eIsSet(DataPackage.eINSTANCE.getSeriesDefinition_Sorting())) {
    String sortExpr=getSortKey(baseSD);
    if (sortExpr != null) {
      if (addDataExp(sortExpr,"String_Node_Str")) {
        addDataExpForAggregate(sortExpr,"String_Node_Str");
      }
      fBaseSortExprIndex=findIndexOfBaseSeries(sortExpr);
    }
  }
}
Program: 73201
Project: 73201
Buggy source:
public Object get(String name,Scriptable start){
  DummyParameterAttribute attr=(DummyParameterAttribute)this.params.get(this.parameterName);
  if (attr == null) {
    return null;
  }
  if (FIELD_VALUE.equals(name)) {
    return attr.getValue();
  }
 else   if (FIELD_DISPLAY_TEXT.equals(name)) {
    return attr.getDisplayText();
  }
  Object value=attr.getValue();
  Scriptable jsStr=Context.toObject(value,start);
  if (jsStr != null) {
    return jsStr.getPrototype().get(name,jsStr);
  }
  return null;
}

Fixed version (ground truth):
public Object get(String name,Scriptable start){
  DummyParameterAttribute attr=(DummyParameterAttribute)this.params.get(this.parameterName);
  if (attr == null) {
    return null;
  }
  if (FIELD_VALUE.equals(name)) {
    return attr.getValue();
  }
 else   if (FIELD_DISPLAY_TEXT.equals(name)) {
    return attr.getDisplayText();
  }
  Object value=attr.getValue();
  Scriptable jsStr=Context.toObject(value,start);
  if (jsStr != null && jsStr.getPrototype() != null) {
    return jsStr.getPrototype().get(name,jsStr);
  }
  return null;
}
Program: 73202
Project: 73202
Buggy source:
public boolean has(String name,Scriptable scope){
  if (FIELD_VALUE.equals(name) || FIELD_DISPLAY_TEXT.equals(name)) {
    return true;
  }
  if (jsStrPrototype == null) {
    jsStrPrototype=Context.toObject("String_Node_Str",scope);
    if (jsStrPrototype != null) {
      jsStrPrototype=jsStrPrototype.getPrototype();
    }
  }
  return jsStrPrototype.has(name,scope);
}

Fixed version (ground truth):
public boolean has(String name,Scriptable scope){
  if (FIELD_VALUE.equals(name) || FIELD_DISPLAY_TEXT.equals(name)) {
    return true;
  }
  if (jsStrPrototype == null) {
    jsStrPrototype=Context.toObject("String_Node_Str",scope);
    if (jsStrPrototype != null) {
      jsStrPrototype=jsStrPrototype.getPrototype();
    }
  }
  return jsStrPrototype != null && jsStrPrototype.has(name,scope);
}
Program: 73204
Project: 73204
Buggy source:
/** 
 * Initializes the pdfEmitter.
 * @param services the emitter svervices object.
 */
private void initialize(IEmitterServices services){
  this.services=services;
  reportRunnable=services.getReportRunnable();
  if (reportRunnable != null) {
    reportDesign=(ReportDesignHandle)reportRunnable.getDesignHandle();
  }
  this.context=services.getReportContext();
  Object fd=services.getOption(RenderOption.OUTPUT_FILE_NAME);
  File file=null;
  try {
    if (fd != null) {
      file=new File(fd.toString());
      File parent=file.getParentFile();
      if (parent != null && !parent.exists()) {
        parent.mkdirs();
      }
      output=new FileOutputStream(file);
    }
  }
 catch (  FileNotFoundException fnfe) {
    logger.log(Level.WARNING,fnfe.getMessage(),fnfe);
  }
  if (output == null) {
    Object value=services.getOption(RenderOption.OUTPUT_STREAM);
    if (value != null && value instanceof OutputStream) {
      output=(OutputStream)value;
    }
 else {
      try {
        file=new File("String_Node_Str");
        output=new FileOutputStream(file);
      }
 catch (      FileNotFoundException e) {
        logger.log(Level.SEVERE,e.getMessage(),e);
      }
    }
  }
}

Fixed version (ground truth):
/** 
 * Initializes the pdfEmitter.
 * @param services the emitter svervices object.
 */
private void initialize(IEmitterServices services){
  this.services=services;
  reportRunnable=services.getReportRunnable();
  if (reportRunnable != null) {
    reportDesign=(ReportDesignHandle)reportRunnable.getDesignHandle();
  }
  this.context=services.getReportContext();
  this.output=EmitterUtil.getOuputStream(services,"String_Node_Str");
}
Program: 73205
Project: 73205
Buggy source:
/** 
 * Initializes the pdfEmitter.
 * @param services the emitter svervices object.
 */
private void initialize(IEmitterServices services){
  this.services=services;
  IReportRunnable reportRunnable=services.getReportRunnable();
  if (reportRunnable != null) {
    reportDesign=(ReportDesignHandle)reportRunnable.getDesignHandle();
  }
  this.context=services.getReportContext();
  Object fd=services.getOption(RenderOption.OUTPUT_FILE_NAME);
  File file=null;
  try {
    if (fd != null) {
      file=new File(fd.toString());
      File parent=file.getParentFile();
      if (parent != null && !parent.exists()) {
        parent.mkdirs();
      }
      output=new FileOutputStream(file);
    }
  }
 catch (  FileNotFoundException fnfe) {
    logger.log(Level.WARNING,fnfe.getMessage(),fnfe);
  }
  if (output == null) {
    Object value=services.getOption(RenderOption.OUTPUT_STREAM);
    if (value != null && value instanceof OutputStream) {
      output=(OutputStream)value;
    }
 else {
      try {
        file=new File("String_Node_Str");
        output=new FileOutputStream(file);
      }
 catch (      FileNotFoundException e) {
        logger.log(Level.SEVERE,e.getMessage(),e);
      }
    }
  }
}

Fixed version (ground truth):
/** 
 * Initializes the pdfEmitter.
 * @param services the emitter svervices object.
 */
private void initialize(IEmitterServices services){
  this.services=services;
  IReportRunnable reportRunnable=services.getReportRunnable();
  if (reportRunnable != null) {
    reportDesign=(ReportDesignHandle)reportRunnable.getDesignHandle();
  }
  this.context=services.getReportContext();
  this.output=EmitterUtil.getOuputStream(services,"String_Node_Str");
}
Program: 73206
Project: 73206
Buggy source:
public void close() throws IOException {
  writer.stopRenderer();
}

Fixed version (ground truth):
public void close() throws IOException {
  writer.close();
}
Program: 73207
Project: 73207
Buggy source:
/** 
 * Initializes the PPTEmitter.
 * @param services the emitter services object.
 */
public void initialize(IEmitterServices services){
  this.services=services;
  IReportRunnable reportRunnable=services.getReportRunnable();
  if (reportRunnable != null) {
    reportDesign=(ReportDesignHandle)reportRunnable.getDesignHandle();
  }
  this.context=services.getReportContext();
  Object fd=services.getOption(RenderOption.OUTPUT_FILE_NAME);
  File file=null;
  try {
    if (fd != null) {
      file=new File(fd.toString());
      File parent=file.getParentFile();
      if (parent != null && !parent.exists()) {
        parent.mkdirs();
      }
      pptOutput=new FileOutputStream(file);
    }
  }
 catch (  FileNotFoundException fnfe) {
    logger.log(Level.WARNING,fnfe.getMessage(),fnfe);
  }
  if (pptOutput == null) {
    Object value=services.getOption(RenderOption.OUTPUT_STREAM);
    if (value instanceof OutputStream) {
      pptOutput=(OutputStream)value;
    }
 else {
      try {
        file=new File(REPORT_FILE);
        pptOutput=new FileOutputStream(file);
      }
 catch (      FileNotFoundException e) {
        logger.log(Level.SEVERE,e.getMessage(),e);
      }
    }
  }
}

Fixed version (ground truth):
/** 
 * Initializes the PPTEmitter.
 * @param services the emitter services object.
 */
public void initialize(IEmitterServices services){
  this.services=services;
  IReportRunnable reportRunnable=services.getReportRunnable();
  if (reportRunnable != null) {
    reportDesign=(ReportDesignHandle)reportRunnable.getDesignHandle();
  }
  this.context=services.getReportContext();
  this.pptOutput=EmitterUtil.getOuputStream(services,REPORT_FILE);
}
Program: 73208
Project: 73208
Buggy source:
public void testGetPageCount() throws EngineException {
  String design="String_Node_Str";
  IReportDocument document=engine.openReportDocument("String_Node_Str");
  test(document,"String_Node_Str");
  test(document,"String_Node_Str");
}

Fixed version (ground truth):
public void testGetPageCount() throws EngineException {
  String design="String_Node_Str";
  IReportDocument document=createReportDocument(design);
  test(document,"String_Node_Str");
  test(document,"String_Node_Str");
}
Program: 73210
Project: 73210
Buggy source:
public List convertSelectionToModelLisr(List list){
  List retValue=new ArrayList();
  int size=list.size();
  boolean isDummy=false;
  for (int i=0; i < size; i++) {
    Object object=list.get(i);
    if (!(object instanceof EditPart)) {
      continue;
    }
    EditPart part=(EditPart)object;
    if (part instanceof DummyEditpart) {
      retValue.add(part.getModel());
      isDummy=true;
    }
 else     if (isDummy) {
      break;
    }
 else     if (part.getModel() instanceof ListBandProxy) {
      retValue.add(((ListBandProxy)part.getModel()).getSlotHandle());
    }
 else {
      Object model=part.getModel();
      if (model instanceof IAdaptable) {
        Object temp=((IAdaptable)model).getAdapter(DesignElementHandle.class);
        model=temp == null ? model : temp;
      }
      retValue.add(model);
    }
  }
  return retValue;
}

Fixed version (ground truth):
public List convertSelectionToModelLisr(List list){
  List retValue=new ArrayList();
  int size=list.size();
  boolean isDummy=false;
  for (int i=0; i < size; i++) {
    Object object=list.get(i);
    if (!(object instanceof EditPart)) {
      continue;
    }
    EditPart part=(EditPart)object;
    if (part instanceof DummyEditpart) {
      retValue.add(part.getModel());
      isDummy=true;
    }
 else     if (isDummy) {
      break;
    }
 else     if (part.getModel() instanceof ListBandProxy) {
      retValue.add(((ListBandProxy)part.getModel()).getSlotHandle());
    }
 else {
      Object model=part.getModel();
      if (model instanceof IAdaptable) {
        Object temp=((IAdaptable)model).getAdapter(DesignElementHandle.class);
        model=temp == null ? model : temp;
      }
      if (model instanceof ReportItemHandle) {
        ReportItemHandle handle=(ReportItemHandle)model;
        if (handle.getCurrentView() != null) {
          model=handle.getCurrentView();
        }
      }
      retValue.add(model);
    }
  }
  return retValue;
}
Program: 73211
Project: 73211
Buggy source:
protected void propertyChange(Map info){
  Set set=info.keySet();
  if (set.contains(IReportItemModel.MULTI_VIEWS_PROP) && getMultipleAdapter().getViews().size() > 0) {
    refresh();
    return;
  }
  super.propertyChange(info);
}

Fixed version (ground truth):
protected void propertyChange(Map info){
  Set set=info.keySet();
  if (set.contains(IReportItemModel.MULTI_VIEWS_PROP) && getMultipleAdapter().getViews().size() > 0) {
    refresh();
    UIUtil.resetViewSelection(getViewer(),true);
    return;
  }
  super.propertyChange(info);
}
Program: 73212
Project: 73212
Buggy source:
public void defineCube(CubeHandle cubeHandle) throws BirtException {
  Set involvedDataSets=getInvolvedDataSets((TabularCubeHandle)cubeHandle);
  Iterator itr=involvedDataSets.iterator();
  while (itr.hasNext()) {
    DataSetHandle dsHandle=(DataSetHandle)itr.next();
    BaseDataSourceDesign baseDataSource=this.modelAdaptor.adaptDataSource(dsHandle.getDataSource());
    BaseDataSetDesign baseDataSet=this.modelAdaptor.adaptDataSet(dsHandle);
    this.defineDataSource(baseDataSource);
    this.defineDataSet(baseDataSet);
  }
  if (!cubeHandleMap.containsKey(cubeHandle.getQualifiedName())) {
    this.cubeHandleMap.put(cubeHandle.getQualifiedName(),cubeHandle);
  }
}

Fixed version (ground truth):
public void defineCube(CubeHandle cubeHandle) throws BirtException {
  Set involvedDataSets=getInvolvedDataSets((TabularCubeHandle)cubeHandle);
  Iterator itr=involvedDataSets.iterator();
  while (itr.hasNext()) {
    DataSetHandle dsHandle=(DataSetHandle)itr.next();
    BaseDataSourceDesign baseDataSource=this.modelAdaptor.adaptDataSource(dsHandle.getDataSource());
    BaseDataSetDesign baseDataSet=this.modelAdaptor.adaptDataSet(dsHandle);
    if (baseDataSource != null)     this.defineDataSource(baseDataSource);
    this.defineDataSet(baseDataSet);
  }
  if (!cubeHandleMap.containsKey(cubeHandle.getQualifiedName())) {
    this.cubeHandleMap.put(cubeHandle.getQualifiedName(),cubeHandle);
  }
}
Program: 73213
Project: 73213
Buggy source:
/** 
 */
private void populateTypesTable(){
  Collection cTypes=ChartUIExtensionsImpl.instance().getUIChartTypeExtensions();
  Iterator iterTypes=cTypes.iterator();
  while (iterTypes.hasNext()) {
    IChartType type=(IChartType)iterTypes.next();
    if (((ChartWizardContext)context).isEnabled(type.getName())) {
      htTypes.put(type.getName(),type);
    }
  }
}

Fixed version (ground truth):
/** 
 */
private void populateTypesTable(){
  htTypes.clear();
  Collection cTypes=ChartUIExtensionsImpl.instance().getUIChartTypeExtensions();
  Iterator iterTypes=cTypes.iterator();
  while (iterTypes.hasNext()) {
    IChartType type=(IChartType)iterTypes.next();
    if (((ChartWizardContext)context).isEnabled(type.getName())) {
      htTypes.put(type.getName(),type);
    }
  }
}
Program: 73215
Project: 73215
Buggy source:
private void printCube(CubeCursor cursor,List columnEdgeBindingNames,List rowEdgeBindingNames,String measureBindingNames,String columnAggr,String rowAggr,String overallAggr) throws Exception {
  String output=getOutputFromCursor(cursor,columnEdgeBindingNames,rowEdgeBindingNames,measureBindingNames,columnAggr,rowAggr,overallAggr);
  this.testPrint(output);
  this.checkOutputFile();
  close(cursor);
}

Fixed version (ground truth):
private void printCube(CubeCursor cursor,List columnEdgeBindingNames,List rowEdgeBindingNames,String measureBindingNames,String columnAggr,String rowAggr,String overallAggr) throws Exception {
  this.printCube(cursor,columnEdgeBindingNames,rowEdgeBindingNames,measureBindingNames,columnAggr,rowAggr,overallAggr,true);
}
Program: 73216
Project: 73216
Buggy source:
protected void showLayoutTargetFeedback(Request request){
  if (getHost().getChildren().size() == 0)   return;
  boolean isCrossTabElement=false;
  if (request instanceof ChangeBoundsRequest) {
    List editParts=((ChangeBoundsRequest)request).getEditParts();
    if (editParts.size() > 0) {
      isCrossTabElement=editParts.get(0) instanceof CrosstabCellEditPart;
    }
  }
  if (!isCrossTabElement) {
    Object template=TemplateTransfer.getInstance().getTemplate();
    if (template instanceof Object[] && ((Object[])template).length > 0) {
      Object dragObject=((Object[])template)[0];
      if (!(dragObject instanceof DimensionHandle || dragObject instanceof MeasureHandle)) {
        isCrossTabElement=false;
      }
    }
  }
  if (isCrossTabElement) {
    Transposer transposer=new Transposer();
    transposer.setEnabled(!isHorizontal());
    Rectangle r=transposer.t(getAbsoluteClientBounds((GraphicalEditPart)getHost()));
    Point p=transposer.t(getLocationFromRequest(request));
    boolean before=p.x <= r.x + (r.width / 2);
    Point p1=new Point(before ? r.x : r.x + r.width,r.y - 2);
    p1=transposer.t(p1);
    Point p2=new Point(before ? r.x : r.x + r.width,r.y + r.height + 7);
    p2=transposer.t(p2);
    setTargetFeedbackPoints(p1,p2);
  }
 else {
    super.showLayoutTargetFeedback(request);
  }
}

Fixed version (ground truth):
protected void showLayoutTargetFeedback(Request request){
  boolean isCrossTabElement=false;
  if (request instanceof ChangeBoundsRequest) {
    List editParts=((ChangeBoundsRequest)request).getEditParts();
    if (editParts.size() > 0) {
      isCrossTabElement=editParts.get(0) instanceof CrosstabCellEditPart;
    }
  }
  if (isCrossTabElement) {
    Object template=TemplateTransfer.getInstance().getTemplate();
    if (template instanceof Object[] && ((Object[])template).length > 0) {
      Object dragObject=((Object[])template)[0];
      if (!(dragObject instanceof DimensionHandle || dragObject instanceof LevelHandle || dragObject instanceof MeasureHandle)) {
        isCrossTabElement=true;
      }
    }
  }
  if (isCrossTabElement) {
    Transposer transposer=new Transposer();
    transposer.setEnabled(!isHorizontal());
    Rectangle r=transposer.t(getAbsoluteClientBounds((GraphicalEditPart)getHost()));
    Point p=transposer.t(getLocationFromRequest(request));
    boolean before=p.x <= r.x + (r.width / 2);
    Point p1=new Point(before ? r.x : r.x + r.width,r.y - 2);
    p1=transposer.t(p1);
    Point p2=new Point(before ? r.x : r.x + r.width,r.y + r.height + 7);
    p2=transposer.t(p2);
    setTargetFeedbackPoints(p1,p2);
  }
 else {
    super.showLayoutTargetFeedback(request);
  }
}
Program: 73217
Project: 73217
Buggy source:
/** 
 * @param pb
 * @param pb2
 * @return
 */
private boolean isEqualParameterHint(ParameterHint pb,ParameterHint pb2){
  return pb.getPosition() == pb2.getPosition() && isEqualString(pb.getName(),pb2.getName()) && isEqualString(pb.getDefaultInputValue(),pb2.getDefaultInputValue()) && isEqualString(pb.getDataType().toString(),pb2.getDataType().toString()) && pb.getNativeDataType() == pb2.getNativeDataType();
}

Fixed version (ground truth):
/** 
 * @param pb
 * @param pb2
 * @return
 */
private boolean isEqualParameterHint(ParameterHint pb,ParameterHint pb2){
  return pb.getPosition() == pb2.getPosition() && isEqualString(pb.getName(),pb2.getName()) && isEqualString(pb.getDefaultInputValue(),pb2.getDefaultInputValue()) && DataTypeUtil.toApiDataType(pb.getDataType()) == DataTypeUtil.toApiDataType(pb2.getDataType()) && pb.getNativeDataType() == pb2.getNativeDataType();
}
Program: 73218
Project: 73218
Buggy source:
public void run(VMRunnerConfiguration configuration,ILaunch launch,IProgressMonitor monitor) throws CoreException {
  delegate.run(configuration,launch,monitor);
  IProcess[] ps=launch.getProcesses();
  if (runScript && ps != null && ps.length > 0) {
    if (monitor == null) {
      monitor=new NullProgressMonitor();
    }
    IProgressMonitor subMonitor=new SubProgressMonitor(monitor,1);
    subMonitor.beginTask("String_Node_Str",1);
    ReportVMClient vm=new ReportVMClient();
    ScriptDebugTarget target=new ScriptDebugTarget(launch,vm,null,ps[0],config.helper.requestPort,config.helper.eventPort,config.helper.tempFolder);
    target.setFileName(config.helper.fileName);
    subMonitor.worked(1);
    subMonitor.done();
    ReportLaunchHelper.handleProcessTermination(launch,ps[0],config.helper.fileName,config.helper.tempFolder);
  }
}

Fixed version (ground truth):
public void run(VMRunnerConfiguration configuration,ILaunch launch,IProgressMonitor monitor) throws CoreException {
  delegate.run(configuration,launch,monitor);
  IProcess[] ps=launch.getProcesses();
  if (ps != null && ps.length > 0) {
    if (runScript) {
      if (monitor == null) {
        monitor=new NullProgressMonitor();
      }
      IProgressMonitor subMonitor=new SubProgressMonitor(monitor,1);
      subMonitor.beginTask("String_Node_Str",1);
      ReportVMClient vm=new ReportVMClient();
      ScriptDebugTarget target=new ScriptDebugTarget(launch,vm,null,ps[0],config.helper.requestPort,config.helper.eventPort,config.helper.tempFolder);
      target.setFileName(config.helper.fileName);
      subMonitor.worked(1);
      subMonitor.done();
    }
    ReportLaunchHelper.handleProcessTermination(launch,ps[0],config.helper.fileName,config.helper.tempFolder);
  }
}