Program: 145767
Project: 145767
Buggy source:
public void execute(Writer writer,SnipMacroParameter params) throws IllegalArgumentException, IOException {
  if (params.getLength() < 2) {
    int count=0;
    if (params.getLength() == 1) {
      count=Integer.parseInt(params.get("String_Node_Str"));
    }
 else {
      count=10;
    }
    String name=params.getSnip().getName();
    Blog blog=space.getBlog(name);
    List posts=blog.getPosts(count);
    int NAME_INDEX=0;
    int DAY_INDEX=1;
    int COUNT_INDEX=2;
    String lastDay="String_Node_Str";
    Iterator iterator=posts.iterator();
    while (iterator.hasNext()) {
      Snip entry=(Snip)iterator.next();
      String[] entryName=StringUtil.split(entry.getName(),"String_Node_Str");
      if (!lastDay.equals(entryName[DAY_INDEX])) {
        writer.write("String_Node_Str");
        writer.write(SnipUtil.toDate(entryName[DAY_INDEX]));
        lastDay=entryName[DAY_INDEX];
        writer.write("String_Node_Str");
      }
      writer.write(entry.getXMLContent());
      writer.write("String_Node_Str");
      SnipLink.appendUrl(writer,entry.getName());
      writer.write("String_Node_Str");
      writer.write(entry.getName());
      writer.write("String_Node_Str");
      SnipLink.appendImage(writer,"String_Node_Str","String_Node_Str");
      writer.write("String_Node_Str");
      writer.write("String_Node_Str");
      writer.write(entry.getComments().getCommentString());
      writer.write("String_Node_Str");
      writer.write(entry.getComments().getPostString());
      writer.write("String_Node_Str");
      writer.write("String_Node_Str");
      BackLinks.appendTo(writer,entry.getAccess().getBackLinks(),5);
      writer.write("String_Node_Str");
    }
  }
 else {
    throw new IllegalArgumentException("String_Node_Str");
  }
}

Fixed version (ground truth):
public void execute(Writer writer,SnipMacroParameter params) throws IllegalArgumentException, IOException {
  if (params.getLength() < 2) {
    int count=0;
    if (params.getLength() == 1) {
      count=Integer.parseInt(params.get("String_Node_Str"));
    }
 else {
      count=10;
    }
    String name=params.getSnip().getName();
    Blog blog=space.getBlog(name);
    List posts=blog.getPosts(count);
    int NAME_INDEX=0;
    int DAY_INDEX=1;
    int COUNT_INDEX=2;
    String lastDay="String_Node_Str";
    Iterator iterator=posts.iterator();
    while (iterator.hasNext()) {
      Object object=iterator.next();
      System.err.println("String_Node_Str" + object.getClass());
      Snip entry=(Snip)object;
      String[] entryName=StringUtil.split(entry.getName(),"String_Node_Str");
      if (!lastDay.equals(entryName[DAY_INDEX])) {
        writer.write("String_Node_Str");
        writer.write(SnipUtil.toDate(entryName[DAY_INDEX]));
        lastDay=entryName[DAY_INDEX];
        writer.write("String_Node_Str");
      }
      writer.write(entry.getXMLContent());
      writer.write("String_Node_Str");
      SnipLink.appendUrl(writer,entry.getName());
      writer.write("String_Node_Str");
      writer.write(entry.getName());
      writer.write("String_Node_Str");
      SnipLink.appendImage(writer,"String_Node_Str","String_Node_Str");
      writer.write("String_Node_Str");
      writer.write("String_Node_Str");
      writer.write(entry.getComments().getCommentString());
      writer.write("String_Node_Str");
      writer.write(entry.getComments().getPostString());
      writer.write("String_Node_Str");
      writer.write("String_Node_Str");
      BackLinks.appendTo(writer,entry.getAccess().getBackLinks(),5);
      writer.write("String_Node_Str");
    }
  }
 else {
    throw new IllegalArgumentException("String_Node_Str");
  }
}