Program: 9070
Project: 9070
Buggy source:
public NodeTypeImpl(NodeTypeManager manager,NameMapper mapper,String name,String cnd){
  this.manager=manager;
  this.mapper=mapper;
  this.name=name;
  Matcher matcher=CND_PATTERN.matcher(cnd);
  matcher.matches();
  this.isAbstract=matcher.group(5) != null;
  this.mixin=matcher.group(4) != null;
  this.hasOrderableChildNodes=matcher.group(7) != null;
  this.primaryItemName=matcher.group(8);
  String supertypes=matcher.group(2);
  if (supertypes != null) {
    this.declaredSuperTypeNames=supertypes.split("String_Node_Str");
  }
 else   if (mixin) {
    this.declaredSuperTypeNames=new String[0];
  }
 else {
    this.declaredSuperTypeNames=new String[]{"String_Node_Str"};
  }
  String defs=matcher.group(9);
  if (defs != null && !defs.isEmpty()) {
    for (    String line : defs.split("String_Node_Str")) {
      matcher=DEF_PATTERN.matcher(line);
      if (!matcher.matches()) {
        continue;
      }
      String defName=matcher.group(2);
      String defType=matcher.group(3);
      boolean mandatory=matcher.group(6).contains("String_Node_Str");
      boolean autoCreated=matcher.group(6).contains("String_Node_Str");
      boolean isProtected=matcher.group(6).contains("String_Node_Str");
      boolean multiple=matcher.group(6).contains("String_Node_Str");
      int onParentVersionAction=OnParentVersionAction.COPY;
      if (matcher.group(10) != null) {
        onParentVersionAction=OnParentVersionAction.valueFromName(matcher.group(10));
      }
      if ("String_Node_Str".equals(matcher.group(1))) {
        declaredChildNodeDefinitions.add(new NodeDefinitionImpl(this,mapper,defName,autoCreated,mandatory,onParentVersionAction,isProtected,manager,defType.split("String_Node_Str"),matcher.group(5),false));
      }
 else       if ("String_Node_Str".equals(matcher.group(1))) {
        declaredPropertyDefinitions.add(new PropertyDefinitionImpl(this,mapper,defName,autoCreated,mandatory,onParentVersionAction,isProtected,valueFromName(defType),multiple));
      }
    }
  }
}

Fixed version (ground truth):
public NodeTypeImpl(NodeTypeManager manager,NameMapper mapper,String name,String cnd){
  this.manager=manager;
  this.mapper=mapper;
  this.name=name;
  Matcher matcher=CND_PATTERN.matcher(cnd);
  matcher.matches();
  this.isAbstract=matcher.group(5) != null;
  this.mixin=matcher.group(4) != null;
  this.hasOrderableChildNodes=matcher.group(6) != null;
  this.primaryItemName=matcher.group(7);
  String supertypes=matcher.group(2);
  if (supertypes != null) {
    this.declaredSuperTypeNames=supertypes.split("String_Node_Str");
  }
 else   if (mixin) {
    this.declaredSuperTypeNames=new String[0];
  }
 else {
    this.declaredSuperTypeNames=new String[]{"String_Node_Str"};
  }
  String defs=matcher.group(9);
  if (defs != null && !defs.isEmpty()) {
    for (    String line : defs.split("String_Node_Str")) {
      matcher=DEF_PATTERN.matcher(line);
      if (!matcher.matches()) {
        continue;
      }
      String defName=matcher.group(2);
      String defType=matcher.group(3);
      boolean mandatory=matcher.group(6).contains("String_Node_Str");
      boolean autoCreated=matcher.group(6).contains("String_Node_Str");
      boolean isProtected=matcher.group(6).contains("String_Node_Str");
      boolean multiple=matcher.group(6).contains("String_Node_Str");
      boolean allowSNS=matcher.group(6).contains("String_Node_Str");
      int onParentVersionAction=OnParentVersionAction.COPY;
      if (matcher.group(10) != null) {
        onParentVersionAction=OnParentVersionAction.valueFromName(matcher.group(10));
      }
      if ("String_Node_Str".equals(matcher.group(1))) {
        declaredChildNodeDefinitions.add(new NodeDefinitionImpl(this,mapper,defName,autoCreated,mandatory,onParentVersionAction,isProtected,manager,defType.split("String_Node_Str"),matcher.group(5),allowSNS));
      }
 else       if ("String_Node_Str".equals(matcher.group(1))) {
        declaredPropertyDefinitions.add(new PropertyDefinitionImpl(this,mapper,defName,autoCreated,mandatory,onParentVersionAction,isProtected,valueFromName(defType),multiple));
      }
    }
  }
}