Program: 124725
Project: 124725
Buggy source:
private void initCommonProperties(HadoopServiceProperties properties){
  HadoopClusterConnection connection=getConnection();
  ContextType contextType=null;
  if (getConnection().isContextMode()) {
    contextType=ConnectionContextHelper.getContextTypeForContextMode(connection);
  }
  properties.setContextType(contextType);
  properties.setDistribution(connection.getDistribution());
  properties.setVersion(connection.getDfVersion());
  properties.setGroup(connection.getGroup());
  properties.setUseKrb(connection.isEnableKerberos());
  properties.setCustom(connection.isUseCustomVersion());
  properties.setUseCustomConfs(connection.isUseCustomConfs());
  properties.setPrincipal(connection.getPrincipal());
  properties.setJtOrRmPrincipal(connection.getJtOrRmPrincipal());
  properties.setJobHistoryPrincipal(connection.getJobHistoryPrincipal());
  properties.setUseKeytab(connection.isUseKeytab());
  properties.setKeytabPrincipal(connection.getKeytabPrincipal());
  properties.setKeytab(connection.getKeytab());
  properties.setHadoopProperties(HadoopRepositoryUtil.getHadoopPropertiesList(connection.getHadoopProperties()));
  properties.setRelativeHadoopClusterId(connectionItem.getProperty().getId());
  properties.setMaprT(connection.isEnableMaprT());
  properties.setUserName(connection.getUserName());
  properties.setMaprTPassword(connection.getMaprTPassword());
  properties.setMaprTCluster(connection.getMaprTCluster());
  properties.setMaprTDuration(connection.getMaprTDuration());
  properties.setSetMaprTHomeDir(connection.isSetMaprTHomeDir());
  properties.setSetHadoopLogin(connection.isSetHadoopLogin());
  properties.setPreloadAuthentification(connection.isPreloadAuthentification());
  properties.setMaprTHomeDir(connection.getMaprTHomeDir());
  properties.setMaprTHadoopLogin(connection.getMaprTHadoopLogin());
}

Fixed version (ground truth):
private void initCommonProperties(HadoopServiceProperties properties){
  HadoopClusterConnection connection=getConnection();
  ContextType contextType=null;
  if (getConnection().isContextMode()) {
    contextType=ConnectionContextHelper.getContextTypeForContextMode(connection);
  }
  properties.setContextType(contextType);
  properties.setDistribution(connection.getDistribution());
  properties.setVersion(connection.getDfVersion());
  properties.setGroup(connection.getGroup());
  properties.setUseKrb(connection.isEnableKerberos());
  properties.setCustom(connection.isUseCustomVersion());
  properties.setUseCustomConfs(connection.isUseCustomConfs());
  properties.setPrincipal(connection.getPrincipal());
  properties.setJtOrRmPrincipal(connection.getJtOrRmPrincipal());
  properties.setJobHistoryPrincipal(connection.getJobHistoryPrincipal());
  properties.setUseKeytab(connection.isUseKeytab());
  properties.setKeytabPrincipal(connection.getKeytabPrincipal());
  properties.setKeytab(connection.getKeytab());
  properties.setHadoopProperties(HadoopRepositoryUtil.getHadoopPropertiesList(connection.getHadoopProperties()));
  properties.setRelativeHadoopClusterId(connectionItem.getProperty().getId());
  properties.setRelativeHadoopClusterLabel(connectionItem.getProperty().getLabel());
  properties.setMaprT(connection.isEnableMaprT());
  properties.setUserName(connection.getUserName());
  properties.setMaprTPassword(connection.getMaprTPassword());
  properties.setMaprTCluster(connection.getMaprTCluster());
  properties.setMaprTDuration(connection.getMaprTDuration());
  properties.setSetMaprTHomeDir(connection.isSetMaprTHomeDir());
  properties.setSetHadoopLogin(connection.isSetHadoopLogin());
  properties.setPreloadAuthentification(connection.isPreloadAuthentification());
  properties.setMaprTHomeDir(connection.getMaprTHomeDir());
  properties.setMaprTHadoopLogin(connection.getMaprTHadoopLogin());
}