Program: 189809
Project: 189809
Buggy source:
private void exportEdgeData(Graph graph) throws IOException {
  writer.write("String_Node_Str");
  writer.write("String_Node_Str");
  if (exportEdgeWeight) {
    writer.write("String_Node_Str");
  }
  if (exportAttributes) {
    for (int i=0; i < attributeModel.getEdgeTable().getColumns().length; i++) {
      if (!attributeModel.getEdgeTable().getColumns()[i].getTitle().equalsIgnoreCase("String_Node_Str") && !attributeModel.getEdgeTable().getColumns()[i].getTitle().equalsIgnoreCase("String_Node_Str") && !attributeModel.getEdgeTable().getColumns()[i].getTitle().equalsIgnoreCase("String_Node_Str")) {
        writer.write("String_Node_Str" + attributeModel.getEdgeTable().getColumn(i).getTitle());
      }
    }
  }
  writer.write("String_Node_Str");
  for (EdgeIterator edgeIterator=graph.getEdges().iterator(); edgeIterator.hasNext(); ) {
    Edge edge=edgeIterator.next();
    writer.write(edge.getSource().getNodeData().getId());
    writer.write("String_Node_Str" + edge.getTarget().getNodeData().getId());
    if (exportEdgeWeight) {
      writer.write("String_Node_Str" + edge.getWeight());
    }
    if (exportAttributes) {
      for (int i=0; i < attributeModel.getEdgeTable().getColumns().length; i++) {
        if (!attributeModel.getEdgeTable().getColumns()[i].getTitle().equalsIgnoreCase("String_Node_Str") && !attributeModel.getEdgeTable().getColumns()[i].getTitle().equalsIgnoreCase("String_Node_Str") && !attributeModel.getEdgeTable().getColumns()[i].getTitle().equalsIgnoreCase("String_Node_Str")) {
          if (edge.getEdgeData().getAttributes().getValue(i) != null) {
            writer.write("String_Node_Str" + edge.getEdgeData().getAttributes().getValue(i));
          }
 else {
            writer.write("String_Node_Str" + valueForEmptyAttributes);
          }
        }
      }
    }
    writer.write("String_Node_Str");
  }
}

Fixed version (ground truth):
private void exportEdgeData(Graph graph) throws IOException {
  stringBuilder.append("String_Node_Str");
  stringBuilder.append("String_Node_Str");
  if (exportEdgeWeight) {
    stringBuilder.append("String_Node_Str");
  }
  if (exportAttributes) {
    for (int i=0; i < attributeModel.getEdgeTable().getColumns().length; i++) {
      if (!attributeModel.getEdgeTable().getColumns()[i].getTitle().equalsIgnoreCase("String_Node_Str") && !attributeModel.getEdgeTable().getColumns()[i].getTitle().equalsIgnoreCase("String_Node_Str") && !attributeModel.getEdgeTable().getColumns()[i].getTitle().equalsIgnoreCase("String_Node_Str")&& !attributeModel.getEdgeTable().getColumns()[i].getTitle().equalsIgnoreCase("String_Node_Str")) {
        stringBuilder.append("String_Node_Str").append(printParameter(attributeModel.getEdgeTable().getColumn(i).getTitle()).replace(' ','_'));
      }
    }
  }
  stringBuilder.append("String_Node_Str");
  for (  Edge edge : graph.getEdges()) {
    progressTicket.progress();
    stringBuilder.append(printParameter(edge.getSource().getNodeData().getId()));
    stringBuilder.append("String_Node_Str").append(printParameter(edge.getTarget().getNodeData().getId()));
    if (exportEdgeWeight) {
      stringBuilder.append("String_Node_Str").append(edge.getWeight());
    }
    if (exportAttributes) {
      for (int i=0; i < attributeModel.getEdgeTable().getColumns().length; i++) {
        if (!attributeModel.getEdgeTable().getColumns()[i].getTitle().equalsIgnoreCase("String_Node_Str") && !attributeModel.getEdgeTable().getColumns()[i].getTitle().equalsIgnoreCase("String_Node_Str") && !attributeModel.getEdgeTable().getColumns()[i].getTitle().equalsIgnoreCase("String_Node_Str")&& !attributeModel.getEdgeTable().getColumns()[i].getTitle().equalsIgnoreCase("String_Node_Str")) {
          if (edge.getEdgeData().getAttributes().getValue(i) != null) {
            stringBuilder.append("String_Node_Str").append(printParameter(edge.getEdgeData().getAttributes().getValue(i)));
          }
 else {
            stringBuilder.append("String_Node_Str" + valueForEmptyAttributes);
          }
        }
      }
    }
    stringBuilder.append("String_Node_Str");
  }
}