Program: 60338
Project: 60338
Buggy source:
private void extractTag(char magicChar,String template,char[] chars,int marker,int tagStart,int i){
  if (parts == null)   parts=new ArrayList<SnippetPart>();
  if (marker < tagStart) {
    SnippetPart literal=new SnippetPart(template.substring(marker,tagStart));
    literal.setLiteral(true);
    parts.add(literal);
  }
  String wholeTag=template.substring(tagStart,i + 1);
  if (magicChar == '~') {
    String gooeyCenter=template.substring(tagStart + 2,i);
    SnippetTag tag=new SnippetTag(wholeTag,gooeyCenter);
    parts.add(tag);
  }
 else   if (magicChar == '^') {
    String gooeyCenter=template.substring(tagStart + 2,i);
    SnippetTag tag=new SnippetTag(wholeTag,"String_Node_Str" + gooeyCenter);
    parts.add(tag);
  }
 else   if (magicChar == '/') {
    String gooeyCenter=template.substring(tagStart + 1,i);
    SnippetTag tag=new SnippetTag(wholeTag,"String_Node_Str" + gooeyCenter);
    parts.add(tag);
  }
 else   if (magicChar == '*') {
    if (wholeTag.length() == 3) {
      SnippetTag tag=new SnippetTag(wholeTag,"String_Node_Str" + MacroTag.MACRO_END_MARKER);
      parts.add(tag);
    }
 else {
      int refEnd=i;
      if (chars[i - 1] == '*')       refEnd--;
      String macroTemplate=template.substring(tagStart + 2,refEnd).trim();
      SnippetTag macroHead=new SnippetTag(wholeTag,"String_Node_Str" + MacroTag.MACRO_MARKER + "String_Node_Str"+ macroTemplate);
      parts.add(macroHead);
    }
  }
 else   if (magicChar == '=') {
    if (wholeTag.length() == 3) {
      SnippetTag tag=new SnippetTag(wholeTag,"String_Node_Str");
      parts.add(tag);
    }
  }
 else   if (magicChar == '_') {
    SnippetToken token=SnippetToken.parseTokenWithArgs(wholeTag);
    parts.add(token);
  }
 else {
    SnippetPart wackyTag=new SnippetPart(wholeTag);
    parts.add(wackyTag);
  }
}

Fixed version (ground truth):
private void extractTag(char magicChar,String template,char[] chars,int marker,int tagStart,int i){
  if (parts == null)   parts=new ArrayList<SnippetPart>();
  if (marker < tagStart) {
    SnippetPart literal=new SnippetPart(template.substring(marker,tagStart));
    literal.setLiteral(true);
    parts.add(literal);
  }
  String wholeTag=template.substring(tagStart,i + 1);
  if (magicChar == '~') {
    String gooeyCenter=template.substring(tagStart + 2,i);
    SnippetTag tag=new SnippetTag(wholeTag,gooeyCenter);
    parts.add(tag);
  }
 else   if (magicChar == '^') {
    String gooeyCenter=template.substring(tagStart + 2,i);
    SnippetTag tag=new SnippetTag(wholeTag,"String_Node_Str" + gooeyCenter);
    parts.add(tag);
  }
 else   if (magicChar == '/') {
    String gooeyCenter=template.substring(tagStart + 1,i);
    SnippetTag tag=new SnippetTag(wholeTag,"String_Node_Str" + gooeyCenter);
    parts.add(tag);
  }
 else   if (magicChar == '*') {
    if (wholeTag.length() == 3) {
      SnippetTag tag=new SnippetTag(wholeTag,"String_Node_Str" + MacroTag.MACRO_END_MARKER);
      parts.add(tag);
    }
 else {
      int refEnd=i;
      if (chars[i - 1] == '*')       refEnd--;
      String macroTemplate=template.substring(tagStart + 2,refEnd).trim();
      SnippetTag macroHead=new SnippetTag(wholeTag,"String_Node_Str" + MacroTag.MACRO_MARKER + "String_Node_Str"+ macroTemplate);
      parts.add(macroHead);
    }
  }
 else   if (magicChar == '=') {
    if (wholeTag.length() == 3) {
      SnippetTag tag=new SnippetTag(wholeTag,"String_Node_Str");
      parts.add(tag);
    }
  }
 else   if (magicChar == '_') {
    SnippetToken token=SnippetToken.parseTokenWithArgs(wholeTag);
    parts.add(token);
  }
 else   if (magicChar == '+') {
    if (wholeTag.startsWith("String_Node_Str")) {
      String includeIfTag="String_Node_Str" + template.substring(tagStart + 3,i);
      SnippetTag condInclude=new SnippetTag(wholeTag,includeIfTag);
      parts.add(condInclude);
    }
 else {
      String includeTag="String_Node_Str" + template.substring(tagStart + 2,i);
      SnippetTag include=new SnippetTag(wholeTag,includeTag);
      parts.add(include);
    }
  }
 else {
    SnippetPart wackyTag=new SnippetPart(wholeTag);
    parts.add(wackyTag);
  }
}