Program: 149059
Project: 149059
Buggy source:
private int getElementType(Object decl){
  if (Util.getParent(decl) == decl) {
    if (Util.checkConcept((XSDElementDeclaration)decl)) {
      return 0;
    }
    return 1;
  }
  if (decl instanceof XSDComplexTypeDefinition)   return 2;
  if (decl instanceof XSDIdentityConstraintDefinition)   return 3;
  if (decl instanceof XSDXPathDefinition)   return 4;
  if (decl instanceof XSDSimpleTypeDefinition)   return 5;
  if (decl instanceof XSDAnnotation)   return 6;
  if (decl instanceof XSDParticle)   return 7;
  if (decl instanceof XSDWhiteSpaceFacet)   return 201;
  if (decl instanceof XSDLengthFacet)   return 202;
  if (decl instanceof XSDMinLengthFacet)   return 203;
  if (decl instanceof XSDMaxLengthFacet)   return 204;
  if (decl instanceof XSDTotalDigitsFacet)   return 205;
  if (decl instanceof XSDFractionDigitsFacet)   return 206;
  if (decl instanceof XSDMaxInclusiveFacet)   return 207;
  if (decl instanceof XSDMaxExclusiveFacet)   return 208;
  if (decl instanceof XSDMinInclusiveFacet)   return 209;
  if (decl instanceof XSDMinExclusiveFacet)   return 210;
  if (decl instanceof XSDPatternFacet)   return 211;
  if (decl instanceof XSDEnumerationFacet)   return 212;
  if (decl instanceof Element) {
    Element e=(Element)decl;
    if (e.getLocalName().equals("String_Node_Str")) {
    }
    String source=e.getAttribute("String_Node_Str");
    if (source != null) {
      if (source.startsWith("String_Node_Str")) {
        return 101;
      }
 else       if (source.equals("String_Node_Str")) {
        return 102;
      }
 else       if (source.equals("String_Node_Str")) {
        return 103;
      }
 else       if (source.equals("String_Node_Str")) {
        return 104;
      }
 else       if (source.equals("String_Node_Str")) {
        return 105;
      }
 else       if (source.startsWith("String_Node_Str")) {
        return 106;
      }
 else       if (source.equals("String_Node_Str")) {
        return 107;
      }
 else       if (source.equals("String_Node_Str")) {
        return 108;
      }
 else       if (source.equals("String_Node_Str")) {
        return 109;
      }
 else       if (source.startsWith("String_Node_Str")) {
        return 110;
      }
    }
  }
  return -1;
}

Fixed version (ground truth):
private int getElementType(Object decl){
  if (Util.getParent(decl) == decl) {
    if (Util.checkConcept((XSDElementDeclaration)decl)) {
      return 0;
    }
    return 1;
  }
  if (decl instanceof XSDComplexTypeDefinition)   return 2;
  if (decl instanceof XSDIdentityConstraintDefinition)   return 3;
  if (decl instanceof XSDXPathDefinition)   return 4;
  if (decl instanceof XSDSimpleTypeDefinition)   return 5;
  if (decl instanceof XSDAnnotation)   return 6;
  if (decl instanceof XSDParticle)   return 7;
  if (decl instanceof XSDModelGroup)   return 8;
  if (decl instanceof XSDWhiteSpaceFacet)   return 201;
  if (decl instanceof XSDLengthFacet)   return 202;
  if (decl instanceof XSDMinLengthFacet)   return 203;
  if (decl instanceof XSDMaxLengthFacet)   return 204;
  if (decl instanceof XSDTotalDigitsFacet)   return 205;
  if (decl instanceof XSDFractionDigitsFacet)   return 206;
  if (decl instanceof XSDMaxInclusiveFacet)   return 207;
  if (decl instanceof XSDMaxExclusiveFacet)   return 208;
  if (decl instanceof XSDMinInclusiveFacet)   return 209;
  if (decl instanceof XSDMinExclusiveFacet)   return 210;
  if (decl instanceof XSDPatternFacet)   return 211;
  if (decl instanceof XSDEnumerationFacet)   return 212;
  if (decl instanceof Element) {
    Element e=(Element)decl;
    if (e.getLocalName().equals("String_Node_Str")) {
    }
    String source=e.getAttribute("String_Node_Str");
    if (source != null) {
      if (source.startsWith("String_Node_Str")) {
        return 101;
      }
 else       if (source.equals("String_Node_Str")) {
        return 102;
      }
 else       if (source.equals("String_Node_Str")) {
        return 103;
      }
 else       if (source.equals("String_Node_Str")) {
        return 104;
      }
 else       if (source.equals("String_Node_Str")) {
        return 105;
      }
 else       if (source.startsWith("String_Node_Str")) {
        return 106;
      }
 else       if (source.equals("String_Node_Str")) {
        return 107;
      }
 else       if (source.equals("String_Node_Str")) {
        return 108;
      }
 else       if (source.equals("String_Node_Str")) {
        return 109;
      }
 else       if (source.startsWith("String_Node_Str")) {
        return 110;
      }
    }
  }
  return -1;
}