Program: 189964
Project: 189964
Buggy source:
private void readGraph(XMLStreamReader reader) throws Exception {
  String mode="String_Node_Str";
  String defaultEdgeType="String_Node_Str";
  String start="String_Node_Str";
  String end="String_Node_Str";
  String timeFormat="String_Node_Str";
  for (int i=0; i < reader.getAttributeCount(); i++) {
    String attName=reader.getAttributeName(i).getLocalPart();
    if (GRAPH_DEFAULT_EDGETYPE.equalsIgnoreCase(attName)) {
      defaultEdgeType=reader.getAttributeValue(i);
    }
 else     if (ATTRIBUTES_TYPE2.equalsIgnoreCase(attName)) {
      mode=reader.getAttributeValue(i);
    }
 else     if (START.equalsIgnoreCase(attName)) {
      start=reader.getAttributeValue(i);
    }
 else     if (END.equalsIgnoreCase(attName)) {
      end=reader.getAttributeValue(i);
    }
 else     if (GRAPH_TIMEFORMAT.equalsIgnoreCase(attName) || GRAPH_TIMEFORMAT2.equalsIgnoreCase(attName)) {
      timeFormat=reader.getAttributeValue(i);
    }
  }
  if (!defaultEdgeType.isEmpty()) {
    if (defaultEdgeType.equalsIgnoreCase("String_Node_Str")) {
      container.setEdgeDefault(EdgeDefault.UNDIRECTED);
    }
 else     if (defaultEdgeType.equalsIgnoreCase("String_Node_Str")) {
      container.setEdgeDefault(EdgeDefault.DIRECTED);
    }
 else     if (defaultEdgeType.equalsIgnoreCase("String_Node_Str")) {
      report.logIssue(new Issue(NbBundle.getMessage(ImporterGEXF.class,"String_Node_Str"),Issue.Level.WARNING));
    }
 else {
      report.logIssue(new Issue(NbBundle.getMessage(ImporterGEXF.class,"String_Node_Str",defaultEdgeType),Issue.Level.SEVERE));
    }
  }
  if (!timeFormat.isEmpty()) {
    if ("String_Node_Str".equalsIgnoreCase(timeFormat) || "String_Node_Str".equalsIgnoreCase(timeFormat)) {
      container.setTimeFormat(TimeFormat.DOUBLE);
    }
 else     if ("String_Node_Str".equalsIgnoreCase(timeFormat)) {
      container.setTimeFormat(TimeFormat.DATE);
    }
 else     if ("String_Node_Str".equalsIgnoreCase(timeFormat) || "String_Node_Str".equalsIgnoreCase(timeFormat)) {
      container.setTimeFormat(TimeFormat.DATETIME);
    }
  }
 else   if (mode.equals("String_Node_Str")) {
    container.setTimeFormat(TimeFormat.DOUBLE);
  }
  if (!start.isEmpty()) {
    container.setTimeIntervalMin(start);
  }
  if (!end.isEmpty()) {
    container.setTimeIntervalMax(end);
  }
}

Fixed version (ground truth):
private void readGraph(XMLStreamReader reader) throws Exception {
  String mode="String_Node_Str";
  String defaultEdgeType="String_Node_Str";
  String start="String_Node_Str";
  String end="String_Node_Str";
  String timeFormat="String_Node_Str";
  for (int i=0; i < reader.getAttributeCount(); i++) {
    String attName=reader.getAttributeName(i).getLocalPart();
    if (GRAPH_DEFAULT_EDGETYPE.equalsIgnoreCase(attName)) {
      defaultEdgeType=reader.getAttributeValue(i);
    }
 else     if (ATTRIBUTES_TYPE2.equalsIgnoreCase(attName)) {
      mode=reader.getAttributeValue(i);
    }
 else     if (START.equalsIgnoreCase(attName)) {
      start=reader.getAttributeValue(i);
    }
 else     if (END.equalsIgnoreCase(attName)) {
      end=reader.getAttributeValue(i);
    }
 else     if (GRAPH_TIMEFORMAT.equalsIgnoreCase(attName) || GRAPH_TIMEFORMAT2.equalsIgnoreCase(attName)) {
      timeFormat=reader.getAttributeValue(i);
    }
  }
  if (!defaultEdgeType.isEmpty()) {
    if (defaultEdgeType.equalsIgnoreCase("String_Node_Str")) {
      container.setEdgeDefault(EdgeDefault.UNDIRECTED);
    }
 else     if (defaultEdgeType.equalsIgnoreCase("String_Node_Str")) {
      container.setEdgeDefault(EdgeDefault.DIRECTED);
    }
 else     if (defaultEdgeType.equalsIgnoreCase("String_Node_Str")) {
      report.logIssue(new Issue(NbBundle.getMessage(ImporterGEXF.class,"String_Node_Str"),Issue.Level.WARNING));
    }
 else {
      report.logIssue(new Issue(NbBundle.getMessage(ImporterGEXF.class,"String_Node_Str",defaultEdgeType),Issue.Level.SEVERE));
    }
  }
  if (!timeFormat.isEmpty()) {
    if ("String_Node_Str".equalsIgnoreCase(timeFormat) || "String_Node_Str".equalsIgnoreCase(timeFormat)) {
      container.setTimeFormat(TimeFormat.DOUBLE);
    }
 else     if ("String_Node_Str".equalsIgnoreCase(timeFormat)) {
      container.setTimeFormat(TimeFormat.DATE);
    }
 else     if ("String_Node_Str".equalsIgnoreCase(timeFormat)) {
      container.setTimeFormat(TimeFormat.DATETIME);
    }
  }
 else   if (mode.equalsIgnoreCase("String_Node_Str")) {
    container.setTimeFormat(TimeFormat.DOUBLE);
  }
  if (!start.isEmpty()) {
    container.setTimeIntervalMin(start);
  }
  if (!end.isEmpty()) {
    container.setTimeIntervalMax(end);
  }
}