Program: 152253
Project: 152253
Buggy source:
public void testSiteStat() throws Exception {
  server.stop();
  initServer();
  FTPClient client1=new FTPClient();
  client1.connect("String_Node_Str",port);
  assertTrue(client1.login(ADMIN_USERNAME,ADMIN_PASSWORD));
  assertTrue(client1.makeDirectory("String_Node_Str"));
  assertTrue(client1.makeDirectory("String_Node_Str"));
  assertTrue(client1.removeDirectory("String_Node_Str"));
  assertTrue(client1.storeFile(TEST_FILENAME,new ByteArrayInputStream(TESTDATA)));
  assertTrue(client1.storeFile(TEST_FILENAME,new ByteArrayInputStream(TESTDATA)));
  assertTrue(client1.retrieveFile(TEST_FILENAME,new ByteArrayOutputStream()));
  assertTrue(client1.deleteFile(TEST_FILENAME));
  assertTrue(client1.logout());
  client1.disconnect();
  FTPClient client2=new FTPClient();
  client2.connect("String_Node_Str",port);
  assertTrue(client2.login(ANONYMOUS_USERNAME,ANONYMOUS_PASSWORD));
  client.connect("String_Node_Str",port);
  client.login(ADMIN_USERNAME,ADMIN_PASSWORD);
  client.sendCommand("String_Node_Str");
  String[] siteReplies=client.getReplyString().split("String_Node_Str");
  assertEquals("String_Node_Str",siteReplies[0]);
  String pattern="String_Node_Str" + TIMESTAMP_PATTERN;
  assertTrue(Pattern.matches(pattern,siteReplies[1]));
  assertTrue(Pattern.matches("String_Node_Str",siteReplies[2]));
  assertTrue(Pattern.matches("String_Node_Str",siteReplies[3]));
  assertTrue(Pattern.matches("String_Node_Str",siteReplies[4]));
  assertTrue(Pattern.matches("String_Node_Str",siteReplies[5]));
  assertTrue(Pattern.matches("String_Node_Str",siteReplies[6]));
  assertTrue(Pattern.matches("String_Node_Str",siteReplies[7]));
  assertTrue(Pattern.matches("String_Node_Str",siteReplies[8]));
  assertTrue(Pattern.matches("String_Node_Str",siteReplies[9]));
  assertTrue(Pattern.matches("String_Node_Str",siteReplies[10]));
  assertTrue(Pattern.matches("String_Node_Str",siteReplies[11]));
  assertTrue(Pattern.matches("String_Node_Str",siteReplies[12]));
  assertTrue(Pattern.matches("String_Node_Str",siteReplies[13]));
  assertTrue(Pattern.matches("String_Node_Str",siteReplies[14]));
}

Fixed version (ground truth):
public void testSiteStat() throws Exception {
  server.stop();
  initServer();
  FTPClient client1=new FTPClient();
  client1.connect("String_Node_Str",getListenerPort());
  assertTrue(client1.login(ADMIN_USERNAME,ADMIN_PASSWORD));
  assertTrue(client1.makeDirectory("String_Node_Str"));
  assertTrue(client1.makeDirectory("String_Node_Str"));
  assertTrue(client1.removeDirectory("String_Node_Str"));
  assertTrue(client1.storeFile(TEST_FILENAME,new ByteArrayInputStream(TESTDATA)));
  assertTrue(client1.storeFile(TEST_FILENAME,new ByteArrayInputStream(TESTDATA)));
  assertTrue(client1.retrieveFile(TEST_FILENAME,new ByteArrayOutputStream()));
  assertTrue(client1.deleteFile(TEST_FILENAME));
  assertTrue(client1.logout());
  client1.disconnect();
  FTPClient client2=new FTPClient();
  client2.connect("String_Node_Str",getListenerPort());
  assertTrue(client2.login(ANONYMOUS_USERNAME,ANONYMOUS_PASSWORD));
  client.connect("String_Node_Str",getListenerPort());
  client.login(ADMIN_USERNAME,ADMIN_PASSWORD);
  client.sendCommand("String_Node_Str");
  String[] siteReplies=client.getReplyString().split("String_Node_Str");
  assertEquals("String_Node_Str",siteReplies[0]);
  String pattern="String_Node_Str" + TIMESTAMP_PATTERN;
  assertTrue(Pattern.matches(pattern,siteReplies[1]));
  assertTrue(Pattern.matches("String_Node_Str",siteReplies[2]));
  assertTrue(Pattern.matches("String_Node_Str",siteReplies[3]));
  assertTrue(Pattern.matches("String_Node_Str",siteReplies[4]));
  assertTrue(Pattern.matches("String_Node_Str",siteReplies[5]));
  assertTrue(Pattern.matches("String_Node_Str",siteReplies[6]));
  assertTrue(Pattern.matches("String_Node_Str",siteReplies[7]));
  assertTrue(Pattern.matches("String_Node_Str",siteReplies[8]));
  assertTrue(Pattern.matches("String_Node_Str",siteReplies[9]));
  assertTrue(Pattern.matches("String_Node_Str",siteReplies[10]));
  assertTrue(Pattern.matches("String_Node_Str",siteReplies[11]));
  assertTrue(Pattern.matches("String_Node_Str",siteReplies[12]));
  assertTrue(Pattern.matches("String_Node_Str",siteReplies[13]));
  assertTrue(Pattern.matches("String_Node_Str",siteReplies[14]));
}