Program: 185087
Project: 185087
Buggy source:
public OpcPackage createPackage() throws InvalidFormatException {
  OpcPackage p;
  if (getPartNameOverridenByContentType(ContentTypes.WORDPROCESSINGML_DOCUMENT) != null || getPartNameOverridenByContentType(ContentTypes.WORDPROCESSINGML_DOCUMENT_MACROENABLED) != null || getPartNameOverridenByContentType(ContentTypes.WORDPROCESSINGML_TEMPLATE) != null || getPartNameOverridenByContentType(ContentTypes.WORDPROCESSINGML_TEMPLATE_MACROENABLED) != null) {
    log.info("String_Node_Str");
    p=new WordprocessingMLPackage(this);
    return p;
  }
 else   if (getPartNameOverridenByContentType(ContentTypes.PRESENTATIONML_MAIN) != null || getPartNameOverridenByContentType(ContentTypes.PRESENTATIONML_TEMPLATE) != null || getPartNameOverridenByContentType(ContentTypes.PRESENTATIONML_SLIDESHOW) != null) {
    log.info("String_Node_Str");
    p=new PresentationMLPackage(this);
    return p;
  }
 else   if (getPartNameOverridenByContentType(ContentTypes.SPREADSHEETML_WORKBOOK) != null || getPartNameOverridenByContentType(ContentTypes.SPREADSHEETML_WORKBOOK_MACROENABLED) != null || getPartNameOverridenByContentType(ContentTypes.SPREADSHEETML_TEMPLATE) != null || getPartNameOverridenByContentType(ContentTypes.SPREADSHEETML_TEMPLATE_MACROENABLED) != null) {
    log.info("String_Node_Str");
    p=new SpreadsheetMLPackage(this);
    return p;
  }
 else   if (getPartNameOverridenByContentType(ContentTypes.DRAWINGML_DIAGRAM_LAYOUT) != null) {
    log.info("String_Node_Str");
    p=new GloxPackage(this);
    return p;
  }
 else {
    throw new InvalidFormatException("String_Node_Str");
  }
}

Fixed version (ground truth):
public OpcPackage createPackage() throws InvalidFormatException {
  OpcPackage p;
  if (getPartNameOverridenByContentType(ContentTypes.WORDPROCESSINGML_DOCUMENT) != null || getPartNameOverridenByContentType(ContentTypes.WORDPROCESSINGML_DOCUMENT_MACROENABLED) != null || getPartNameOverridenByContentType(ContentTypes.WORDPROCESSINGML_TEMPLATE) != null || getPartNameOverridenByContentType(ContentTypes.WORDPROCESSINGML_TEMPLATE_MACROENABLED) != null) {
    log.info("String_Node_Str");
    p=new WordprocessingMLPackage(this);
    return p;
  }
 else   if (getPartNameOverridenByContentType(ContentTypes.PRESENTATIONML_MAIN) != null || getPartNameOverridenByContentType(ContentTypes.PRESENTATIONML_TEMPLATE) != null || getPartNameOverridenByContentType(ContentTypes.PRESENTATIONML_SLIDESHOW) != null) {
    log.info("String_Node_Str");
    p=new PresentationMLPackage(this);
    return p;
  }
 else   if (getPartNameOverridenByContentType(ContentTypes.SPREADSHEETML_WORKBOOK) != null || getPartNameOverridenByContentType(ContentTypes.SPREADSHEETML_WORKBOOK_MACROENABLED) != null || getPartNameOverridenByContentType(ContentTypes.SPREADSHEETML_TEMPLATE) != null || getPartNameOverridenByContentType(ContentTypes.SPREADSHEETML_TEMPLATE_MACROENABLED) != null) {
    log.info("String_Node_Str");
    p=new SpreadsheetMLPackage(this);
    return p;
  }
 else   if (getPartNameOverridenByContentType(ContentTypes.DRAWINGML_DIAGRAM_LAYOUT) != null) {
    log.info("String_Node_Str");
    p=new GloxPackage(this);
    return p;
  }
  String defaultContentTypeForXML=this.defaultContentType.get("String_Node_Str").getContentType();
  if (defaultContentTypeForXML != null) {
    if (defaultContentTypeForXML.equals(ContentTypes.WORDPROCESSINGML_DOCUMENT) || defaultContentTypeForXML.equals(ContentTypes.WORDPROCESSINGML_DOCUMENT_MACROENABLED) || defaultContentTypeForXML.equals(ContentTypes.WORDPROCESSINGML_TEMPLATE)|| defaultContentTypeForXML.equals(ContentTypes.WORDPROCESSINGML_TEMPLATE_MACROENABLED)) {
      log.info("String_Node_Str");
      p=new WordprocessingMLPackage(this);
      return p;
    }
 else     if (defaultContentTypeForXML.equals(ContentTypes.PRESENTATIONML_MAIN) || defaultContentTypeForXML.equals(ContentTypes.PRESENTATIONML_TEMPLATE) || defaultContentTypeForXML.equals(ContentTypes.PRESENTATIONML_SLIDESHOW)) {
      log.info("String_Node_Str");
      p=new PresentationMLPackage(this);
      return p;
    }
 else     if (defaultContentTypeForXML.equals(ContentTypes.SPREADSHEETML_WORKBOOK) || defaultContentTypeForXML.equals(ContentTypes.SPREADSHEETML_WORKBOOK_MACROENABLED) || defaultContentTypeForXML.equals(ContentTypes.SPREADSHEETML_TEMPLATE)|| defaultContentTypeForXML.equals(ContentTypes.SPREADSHEETML_TEMPLATE_MACROENABLED)) {
      log.info("String_Node_Str");
      p=new SpreadsheetMLPackage(this);
      return p;
    }
 else     if (defaultContentTypeForXML.equals(ContentTypes.DRAWINGML_DIAGRAM_LAYOUT)) {
      log.info("String_Node_Str");
      p=new GloxPackage(this);
      return p;
    }
  }
  throw new InvalidFormatException("String_Node_Str" + toString());
}