Program: 4998
Project: 4998
Buggy source:
private static CConfiguration createCConf(File localDataDir) throws IOException {
  CConfiguration cConf=CConfiguration.create();
  cConf.setBoolean(Constants.Explore.EXPLORE_ENABLED,true);
  cConf.setBoolean(Constants.Explore.START_ON_DEMAND,false);
  for (  String key : System.getProperties().stringPropertyNames()) {
    if (key.startsWith(TestConfiguration.PROPERTY_PREFIX)) {
      String value=System.getProperty(key);
      cConf.set(key.substring(TestConfiguration.PROPERTY_PREFIX.length()),System.getProperty(key));
      LOG.info("String_Node_Str",key,value);
    }
  }
  String localhost=InetAddress.getLoopbackAddress().getHostAddress();
  cConf.set(Constants.Service.MASTER_SERVICES_BIND_ADDRESS,localhost);
  cConf.set(Constants.Transaction.Container.ADDRESS,localhost);
  cConf.set(Constants.Dataset.Executor.ADDRESS,localhost);
  cConf.set(Constants.Stream.ADDRESS,localhost);
  cConf.set(Constants.Metrics.ADDRESS,localhost);
  cConf.set(Constants.Metrics.SERVER_ADDRESS,localhost);
  cConf.set(Constants.MetricsProcessor.ADDRESS,localhost);
  cConf.set(Constants.LogSaver.ADDRESS,localhost);
  cConf.set(Constants.Security.AUTH_SERVER_BIND_ADDRESS,localhost);
  cConf.set(Constants.Explore.SERVER_ADDRESS,localhost);
  cConf.set(Constants.Metadata.SERVICE_BIND_ADDRESS,localhost);
  cConf.set(Constants.Metrics.SERVER_PORT,Integer.toString(Networks.getRandomPort()));
  cConf.set(Constants.CFG_LOCAL_DATA_DIR,localDataDir.getAbsolutePath());
  cConf.setBoolean(Constants.Dangerous.UNRECOVERABLE_RESET,true);
  cConf.set(Constants.Explore.LOCAL_DATA_DIR,TMP_FOLDER.newFolder("String_Node_Str").getAbsolutePath());
  return cConf;
}

Fixed version (ground truth):
private static CConfiguration createCConf(File localDataDir) throws IOException {
  CConfiguration cConf=CConfiguration.create();
  cConf.setBoolean(Constants.Explore.EXPLORE_ENABLED,true);
  cConf.setBoolean(Constants.Explore.START_ON_DEMAND,false);
  cConf.set(Constants.AppFabric.SYSTEM_ARTIFACTS_DIR,"String_Node_Str");
  for (  String key : System.getProperties().stringPropertyNames()) {
    if (key.startsWith(TestConfiguration.PROPERTY_PREFIX)) {
      String value=System.getProperty(key);
      cConf.set(key.substring(TestConfiguration.PROPERTY_PREFIX.length()),System.getProperty(key));
      LOG.info("String_Node_Str",key,value);
    }
  }
  String localhost=InetAddress.getLoopbackAddress().getHostAddress();
  cConf.set(Constants.Service.MASTER_SERVICES_BIND_ADDRESS,localhost);
  cConf.set(Constants.Transaction.Container.ADDRESS,localhost);
  cConf.set(Constants.Dataset.Executor.ADDRESS,localhost);
  cConf.set(Constants.Stream.ADDRESS,localhost);
  cConf.set(Constants.Metrics.ADDRESS,localhost);
  cConf.set(Constants.Metrics.SERVER_ADDRESS,localhost);
  cConf.set(Constants.MetricsProcessor.ADDRESS,localhost);
  cConf.set(Constants.LogSaver.ADDRESS,localhost);
  cConf.set(Constants.Security.AUTH_SERVER_BIND_ADDRESS,localhost);
  cConf.set(Constants.Explore.SERVER_ADDRESS,localhost);
  cConf.set(Constants.Metadata.SERVICE_BIND_ADDRESS,localhost);
  cConf.set(Constants.Metrics.SERVER_PORT,Integer.toString(Networks.getRandomPort()));
  cConf.set(Constants.CFG_LOCAL_DATA_DIR,localDataDir.getAbsolutePath());
  cConf.setBoolean(Constants.Dangerous.UNRECOVERABLE_RESET,true);
  cConf.set(Constants.Explore.LOCAL_DATA_DIR,TMP_FOLDER.newFolder("String_Node_Str").getAbsolutePath());
  return cConf;
}