Program: 58672
Project: 58672
Buggy source:
private void processView(String[] values,String type,FileWriter fw) throws IOException {
  String modelVal=values[CommonService.MODEL];
  String viewVal=values[CommonService.VIEW];
  if (Strings.isNullOrEmpty(modelVal) && Strings.isNullOrEmpty(viewVal)) {
    return;
  }
  String doc=values[CommonService.HELP];
  if (Strings.isNullOrEmpty(doc)) {
    doc=values[CommonService.HELP_FR];
  }
  if (Strings.isNullOrEmpty(doc)) {
    return;
  }
  String title=values[CommonService.TITLE];
  if (lang != null && lang.equals("String_Node_Str") && values[CommonService.TITLE_FR] != null) {
    title=values[CommonService.TITLE_FR];
  }
  if (title == null) {
    title=values[CommonService.TITLE_FR];
  }
  if (Strings.isNullOrEmpty(title)) {
    title=type;
  }
  if (COMMENT_TYPES.contains(type)) {
    title=ASCIIDOC_TYPES.get(COMMENT_TYPES.indexOf(type));
    if (header != null) {
      fw.write(header);
      header=null;
      setHorizontal=true;
      fw.write("String_Node_Str" + title + "String_Node_Str"+ doc);
      return;
    }
  }
  if (type.contains("String_Node_Str")) {
    type=type.substring(0,type.indexOf("String_Node_Str"));
  }
  if (CommonService.FIELD_TYPES.containsKey(type) || CommonService.VIEW_ELEMENTS.containsKey(type) || header != null) {
    if (header != null) {
      fw.write(header);
      header=null;
      fw.write("String_Node_Str");
    }
    if (setHorizontal) {
      fw.write("String_Node_Str");
      setHorizontal=false;
    }
    if (type.toUpperCase().contains("String_Node_Str")) {
      fw.write("String_Node_Str" + title + "String_Node_Str"+ doc);
    }
 else {
      fw.write("String_Node_Str" + title + "String_Node_Str"+ doc);
    }
  }
 else {
    if (!setHorizontal) {
      fw.write("String_Node_Str" + title + "String_Node_Str"+ doc);
    }
 else {
      fw.write("String_Node_Str" + title + "String_Node_Str"+ doc);
    }
  }
}

Fixed version (ground truth):
private void processView(String[] values,String type,FileWriter fw) throws IOException {
  String modelVal=values[CommonService.MODEL];
  String viewVal=values[CommonService.VIEW];
  if (Strings.isNullOrEmpty(modelVal) && Strings.isNullOrEmpty(viewVal)) {
    return;
  }
  String doc=values[CommonService.HELP];
  if (lang != null && lang.equals("String_Node_Str")) {
    doc=values[CommonService.HELP_FR];
  }
  if (Strings.isNullOrEmpty(doc)) {
    return;
  }
  String title=values[CommonService.TITLE];
  if (lang != null && lang.equals("String_Node_Str") && values[CommonService.TITLE_FR] != null) {
    title=values[CommonService.TITLE_FR];
  }
  if (title == null) {
    title=values[CommonService.TITLE_FR];
  }
  if (Strings.isNullOrEmpty(title)) {
    title=type;
  }
  if (COMMENT_TYPES.contains(type)) {
    title=ASCIIDOC_TYPES.get(COMMENT_TYPES.indexOf(type));
    if (header != null) {
      fw.write(header);
      header=null;
      setHorizontal=true;
      fw.write("String_Node_Str" + title + "String_Node_Str"+ doc);
      return;
    }
  }
  if (type.contains("String_Node_Str")) {
    type=type.substring(0,type.indexOf("String_Node_Str"));
  }
  if (CommonService.FIELD_TYPES.containsKey(type) || CommonService.VIEW_ELEMENTS.containsKey(type) || header != null) {
    if (header != null) {
      fw.write(header);
      header=null;
      fw.write("String_Node_Str");
    }
    if (setHorizontal) {
      fw.write("String_Node_Str");
      setHorizontal=false;
    }
    if (type.toUpperCase().contains("String_Node_Str")) {
      fw.write("String_Node_Str" + title + "String_Node_Str"+ doc);
    }
 else {
      fw.write("String_Node_Str" + title + "String_Node_Str"+ doc);
    }
  }
 else {
    if (!setHorizontal) {
      fw.write("String_Node_Str" + title + "String_Node_Str"+ doc);
    }
 else {
      fw.write("String_Node_Str" + title + "String_Node_Str"+ doc);
    }
  }
}