Program: 97109
Project: 97109
Buggy source:
@Override public void writeCellText(Object cellData,int cellIndex) throws IOException {
  if (cellData == null) {
    rowBuffer[cellIndex]=null;
  }
 else   if (cellIndex >= numColumns) {
    throw new OseeCoreException("String_Node_Str",numColumns,cellIndex);
  }
 else {
    StringBuilder sb=new StringBuilder();
    sb.append("String_Node_Str");
    if (cellData instanceof Date) {
      sb.append("String_Node_Str");
    }
 else     if (applyStyle) {
      applyStyleToCell(sb,cellIndex);
    }
    if (previouslyWrittenCellIndex + 1 != cellIndex) {
      sb.append("String_Node_Str" + (cellIndex + 1) + "String_Node_Str");
    }
    previouslyWrittenCellIndex=cellIndex;
    if (cellData instanceof String) {
      String cellDataStr=(String)cellData;
      if (!cellDataStr.equals("String_Node_Str") && cellDataStr.charAt(0) == '=') {
        String value=cellDataStr.replaceAll("String_Node_Str","String_Node_Str");
        sb.append("String_Node_Str" + value + "String_Node_Str");
      }
 else {
        sb.append("String_Node_Str");
        if (cellDataStr.equals("String_Node_Str")) {
          sb.append(emptyStringRepresentation);
        }
 else {
          if (cellDataStr.length() > 32767) {
            sb.append(blobMessage);
          }
 else {
            Xml.writeWhileHandlingCdata(sb,cellDataStr);
          }
        }
        sb.append("String_Node_Str");
        if (cellDataStr.length() > 32767) {
          sb.append("String_Node_Str");
          Xml.writeWhileHandlingCdata(sb,cellDataStr);
          sb.append("String_Node_Str");
        }
      }
    }
 else     if (cellData instanceof Number) {
      Number cellDataNum=(Number)cellData;
      sb.append("String_Node_Str");
      Xml.writeWhileHandlingCdata(sb,cellDataNum.toString());
      sb.append("String_Node_Str");
    }
 else     if (cellData instanceof Date) {
      Date cellDataDate=(Date)cellData;
      sb.append("String_Node_Str");
      String dateString=DateUtil.get(cellDataDate,"String_Node_Str") + "String_Node_Str";
      Xml.writeWhileHandlingCdata(sb,dateString);
      sb.append("String_Node_Str");
    }
 else {
      sb.append("String_Node_Str");
      Xml.writeWhileHandlingCdata(sb,cellData.toString());
      sb.append("String_Node_Str");
    }
    sb.append("String_Node_Str");
    rowBuffer[cellIndex]=sb.toString();
  }
}

Fixed version (ground truth):
@Override public void writeCellText(Object cellData,int cellIndex) throws IOException {
  if (cellIndex >= numColumns) {
    throw new OseeCoreException("String_Node_Str",numColumns,cellIndex);
  }
 else   if (cellData == null) {
    rowBuffer[cellIndex]=null;
  }
 else {
    StringBuilder sb=new StringBuilder();
    sb.append("String_Node_Str");
    if (cellData instanceof Date) {
      sb.append("String_Node_Str");
    }
 else     if (applyStyle) {
      applyStyleToCell(sb,cellIndex);
    }
    if (previouslyWrittenCellIndex + 1 != cellIndex) {
      sb.append("String_Node_Str" + (cellIndex + 1) + "String_Node_Str");
    }
    previouslyWrittenCellIndex=cellIndex;
    if (cellData instanceof String) {
      String cellDataStr=(String)cellData;
      if (!cellDataStr.equals("String_Node_Str") && cellDataStr.charAt(0) == '=') {
        String value=cellDataStr.replaceAll("String_Node_Str","String_Node_Str");
        sb.append("String_Node_Str" + value + "String_Node_Str");
      }
 else {
        sb.append("String_Node_Str");
        if (cellDataStr.equals("String_Node_Str")) {
          sb.append(emptyStringRepresentation);
        }
 else {
          if (cellDataStr.length() > 32767) {
            sb.append(blobMessage);
          }
 else {
            Xml.writeWhileHandlingCdata(sb,cellDataStr);
          }
        }
        sb.append("String_Node_Str");
        if (cellDataStr.length() > 32767) {
          sb.append("String_Node_Str");
          Xml.writeWhileHandlingCdata(sb,cellDataStr);
          sb.append("String_Node_Str");
        }
      }
    }
 else     if (cellData instanceof Number) {
      Number cellDataNum=(Number)cellData;
      sb.append("String_Node_Str");
      Xml.writeWhileHandlingCdata(sb,cellDataNum.toString());
      sb.append("String_Node_Str");
    }
 else     if (cellData instanceof Date) {
      Date cellDataDate=(Date)cellData;
      sb.append("String_Node_Str");
      String dateString=DateUtil.get(cellDataDate,"String_Node_Str") + "String_Node_Str";
      Xml.writeWhileHandlingCdata(sb,dateString);
      sb.append("String_Node_Str");
    }
 else {
      sb.append("String_Node_Str");
      Xml.writeWhileHandlingCdata(sb,cellData.toString());
      sb.append("String_Node_Str");
    }
    sb.append("String_Node_Str");
    rowBuffer[cellIndex]=sb.toString();
  }
}