Program: 44772
Project: 44772
Buggy source:
private boolean getPosts(final String blogUri) throws Exception {
  SimpleDateFormat formatter=new SimpleDateFormat("String_Node_Str");
  URL feedUrl=new URL("String_Node_Str" + blogUri + "String_Node_Str");
  if (!blogUri.matches("String_Node_Str")) {
    feedUrl=new URL("String_Node_Str" + blogUri + "String_Node_Str");
  }
  Query myQuery=new Query(feedUrl);
  DateTime dtMin=DateTime.parseDate("String_Node_Str");
  myQuery.setPublishedMin(dtMin);
  if (blogUri.matches("String_Node_Str")) {
    BasicDBObject doc=new BasicDBObject();
    doc.put("String_Node_Str",blogUri);
    BasicDBObject sortDoc=new BasicDBObject();
    sortDoc.put("String_Node_Str",-1);
    if (collPosts.find(doc).size() > 0) {
      DBCursor cur=collPosts.find(doc).sort(sortDoc);
      if (cur.hasNext()) {
        Date dateChange=formatter.parse("String_Node_Str");
        DBObject obj=cur.next();
        dtMin=new DateTime((Date)obj.get("String_Node_Str"));
        if (collPosts.find(doc).size() > 30 || dateChange.compareTo((Date)obj.get("String_Node_Str")) < 0)         myQuery.setPublishedMin(dtMin);
      }
    }
  }
  Feed resultFeed=feedQuery(myQuery);
  String blogID=resultFeed.getSelfLink().getHref().replace("String_Node_Str","String_Node_Str").replace("String_Node_Str","String_Node_Str");
  int count=1;
  int size=resultFeed.getTotalResults();
  System.out.println("String_Node_Str" + r + "String_Node_Str"+ blogUri+ "String_Node_Str"+ size+ "String_Node_Str");
  do {
    if (size == 0)     break;
    myQuery.setStartIndex(count);
    if (count > 1)     resultFeed=feedQuery(myQuery);
    for (    Entry entry : resultFeed.getEntries()) {
      String postID="String_Node_Str";
      try {
        postID=entry.getSelfLink().getHref().replace("String_Node_Str","String_Node_Str").replace("String_Node_Str","String_Node_Str");
      }
 catch (      Exception e) {
        continue;
      }
      if (entry.getAuthors().get(0).getUri() != null) {
        setMongoPost(entry);
        getComments(postID);
        count++;
      }
    }
  }
 while (count <= size);
  return true;
}

Fixed version (ground truth):
private boolean getPosts(final String blogUri) throws Exception {
  SimpleDateFormat formatter=new SimpleDateFormat("String_Node_Str");
  URL feedUrl=new URL("String_Node_Str" + blogUri + "String_Node_Str");
  if (!blogUri.matches("String_Node_Str")) {
    feedUrl=new URL("String_Node_Str" + blogUri + "String_Node_Str");
  }
  Query myQuery=new Query(feedUrl);
  DateTime dtMin=DateTime.parseDate("String_Node_Str");
  myQuery.setPublishedMin(dtMin);
  if (blogUri.matches("String_Node_Str")) {
    BasicDBObject doc=new BasicDBObject();
    doc.put("String_Node_Str",blogUri);
    BasicDBObject sortDoc=new BasicDBObject();
    sortDoc.put("String_Node_Str",-1);
    if (collPosts.find(doc).size() > 0) {
      DBCursor cur=collPosts.find(doc).sort(sortDoc);
      if (cur.hasNext()) {
        Date dateChange=formatter.parse("String_Node_Str");
        DBObject obj=cur.next();
        dtMin=new DateTime((Date)obj.get("String_Node_Str"));
        if (collPosts.find(doc).size() > 30 || dateChange.compareTo((Date)obj.get("String_Node_Str")) < 0)         myQuery.setPublishedMin(dtMin);
      }
    }
  }
  Feed resultFeed=feedQuery(myQuery);
  String blogID=resultFeed.getSelfLink().getHref().replace("String_Node_Str","String_Node_Str").replace("String_Node_Str","String_Node_Str");
  int count=1;
  int size=resultFeed.getTotalResults();
  do {
    if (size == 0)     break;
    myQuery.setStartIndex(count);
    if (count > 1)     resultFeed=feedQuery(myQuery);
    System.out.println("String_Node_Str" + r + "String_Node_Str"+ blogUri+ "String_Node_Str"+ count+ "String_Node_Str"+ size+ "String_Node_Str");
    for (    Entry entry : resultFeed.getEntries()) {
      String postID="String_Node_Str";
      try {
        postID=entry.getSelfLink().getHref().replace("String_Node_Str","String_Node_Str").replace("String_Node_Str","String_Node_Str");
      }
 catch (      Exception e) {
        continue;
      }
      if (entry.getAuthors().get(0).getUri() != null) {
        setMongoPost(entry);
        getComments(postID);
      }
      count++;
    }
  }
 while (count <= size);
  return true;
}