Program: 185094
Project: 185094
Buggy source:
public static Part newPartForContentType(String contentType,String partName) throws InvalidFormatException, PartUnrecognisedException {
  if (contentType.equals(ContentTypes.PRESENTATIONML_MAIN)) {
    return new MainPresentationPart(new PartName(partName));
  }
 else   if (contentType.equals(ContentTypes.PRESENTATIONML_SLIDE)) {
    return new SlidePart(new PartName(partName));
  }
 else   if (contentType.equals(ContentTypes.PRESENTATIONML_SLIDE_MASTER)) {
    return new SlideMasterPart(new PartName(partName));
  }
 else   if (contentType.equals(ContentTypes.PRESENTATIONML_SLIDE_LAYOUT)) {
    return new SlideLayoutPart(new PartName(partName));
  }
 else   if (contentType.equals(ContentTypes.PRESENTATIONML_TABLE_STYLES)) {
    return new TableStylesPart(new PartName(partName));
  }
 else   if (contentType.equals(ContentTypes.PRESENTATIONML_PRES_PROPS)) {
    return new PresentationPropertiesPart(new PartName(partName));
  }
 else   if (contentType.equals(ContentTypes.PRESENTATIONML_VIEW_PROPS)) {
    return new ViewPropertiesPart(new PartName(partName));
  }
 else   if (contentType.equals(ContentTypes.PRESENTATIONML_TAGS)) {
    return new TagsPart(new PartName(partName));
  }
 else   if (contentType.equals(ContentTypes.PRESENTATIONML_HANDOUT_MASTER)) {
    return new HandoutMasterPart(new PartName(partName));
  }
 else   if (contentType.equals(ContentTypes.PRESENTATIONML_NOTES_MASTER)) {
    return new NotesMasterPart(new PartName(partName));
  }
 else   if (contentType.equals(ContentTypes.PRESENTATIONML_NOTES_SLIDE)) {
    return new NotesSlidePart(new PartName(partName));
  }
 else {
    throw new PartUnrecognisedException("String_Node_Str" + partName + "String_Node_Str"+ contentType+ "String_Node_Str");
  }
}

Fixed version (ground truth):
public static Part newPartForContentType(String contentType,String partName) throws InvalidFormatException, PartUnrecognisedException {
  if (contentType.equals(ContentTypes.PRESENTATIONML_MAIN) || contentType.equals(ContentTypes.PRESENTATIONML_TEMPLATE)) {
    return new MainPresentationPart(new PartName(partName));
  }
 else   if (contentType.equals(ContentTypes.PRESENTATIONML_SLIDE)) {
    return new SlidePart(new PartName(partName));
  }
 else   if (contentType.equals(ContentTypes.PRESENTATIONML_SLIDE_MASTER)) {
    return new SlideMasterPart(new PartName(partName));
  }
 else   if (contentType.equals(ContentTypes.PRESENTATIONML_SLIDE_LAYOUT)) {
    return new SlideLayoutPart(new PartName(partName));
  }
 else   if (contentType.equals(ContentTypes.PRESENTATIONML_TABLE_STYLES)) {
    return new TableStylesPart(new PartName(partName));
  }
 else   if (contentType.equals(ContentTypes.PRESENTATIONML_PRES_PROPS)) {
    return new PresentationPropertiesPart(new PartName(partName));
  }
 else   if (contentType.equals(ContentTypes.PRESENTATIONML_VIEW_PROPS)) {
    return new ViewPropertiesPart(new PartName(partName));
  }
 else   if (contentType.equals(ContentTypes.PRESENTATIONML_TAGS)) {
    return new TagsPart(new PartName(partName));
  }
 else   if (contentType.equals(ContentTypes.PRESENTATIONML_HANDOUT_MASTER)) {
    return new HandoutMasterPart(new PartName(partName));
  }
 else   if (contentType.equals(ContentTypes.PRESENTATIONML_NOTES_MASTER)) {
    return new NotesMasterPart(new PartName(partName));
  }
 else   if (contentType.equals(ContentTypes.PRESENTATIONML_NOTES_SLIDE)) {
    return new NotesSlidePart(new PartName(partName));
  }
 else {
    throw new PartUnrecognisedException("String_Node_Str" + partName + "String_Node_Str"+ contentType+ "String_Node_Str");
  }
}