Program: 124801
Project: 124801
Buggy source:
@Override protected void matchContextForAttribues(Connection conn,IConnParamName paramName,String hadoopVariableName){
  HadoopClusterConnection hadoopConn=(HadoopClusterConnection)conn;
  EHadoopParamName hadoopParam=(EHadoopParamName)paramName;
switch (hadoopParam) {
case NameNodeUri:
    hadoopConn.setNameNodeURI(ContextParameterUtils.getNewScriptCode(hadoopVariableName,LANGUAGE));
  break;
case JobTrackerUri:
hadoopConn.setJobTrackerURI(ContextParameterUtils.getNewScriptCode(hadoopVariableName,LANGUAGE));
break;
case ResourceManager:
hadoopConn.setJobTrackerURI(ContextParameterUtils.getNewScriptCode(hadoopVariableName,LANGUAGE));
break;
case ResourceManagerScheduler:
hadoopConn.setRmScheduler(ContextParameterUtils.getNewScriptCode(hadoopVariableName,LANGUAGE));
break;
case JobHistory:
hadoopConn.setJobHistory(ContextParameterUtils.getNewScriptCode(hadoopVariableName,LANGUAGE));
break;
case StagingDirectory:
hadoopConn.setStagingDirectory(ContextParameterUtils.getNewScriptCode(hadoopVariableName,LANGUAGE));
break;
case NameNodePrin:
hadoopConn.setPrincipal(ContextParameterUtils.getNewScriptCode(hadoopVariableName,LANGUAGE));
break;
case JTOrRMPrin:
hadoopConn.setJtOrRmPrincipal(ContextParameterUtils.getNewScriptCode(hadoopVariableName,LANGUAGE));
break;
case JobHistroyPrin:
hadoopConn.setJobHistoryPrincipal(ContextParameterUtils.getNewScriptCode(hadoopVariableName,LANGUAGE));
break;
case User:
hadoopConn.setUserName(ContextParameterUtils.getNewScriptCode(hadoopVariableName,LANGUAGE));
break;
case Group:
hadoopConn.setGroup(ContextParameterUtils.getNewScriptCode(hadoopVariableName,LANGUAGE));
break;
case Principal:
hadoopConn.setKeytabPrincipal(ContextParameterUtils.getNewScriptCode(hadoopVariableName,LANGUAGE));
break;
case KeyTab:
hadoopConn.setKeytab(ContextParameterUtils.getNewScriptCode(hadoopVariableName,LANGUAGE));
break;
case WebHostName:
hadoopConn.getParameters().put(ConnParameterKeys.CONN_PARA_KEY_WEB_HCAT_HOSTNAME,ContextParameterUtils.getNewScriptCode(hadoopVariableName,LANGUAGE));
break;
case WebPort:
hadoopConn.getParameters().put(ConnParameterKeys.CONN_PARA_KEY_WEB_HCAT_PORT,ContextParameterUtils.getNewScriptCode(hadoopVariableName,LANGUAGE));
break;
case WebUser:
hadoopConn.getParameters().put(ConnParameterKeys.CONN_PARA_KEY_WEB_HCAT_USERNAME,ContextParameterUtils.getNewScriptCode(hadoopVariableName,LANGUAGE));
break;
case WebJobResFolder:
hadoopConn.getParameters().put(ConnParameterKeys.CONN_PARA_KEY_WEB_HCAT_JOB_RESULT_FOLDER,ContextParameterUtils.getNewScriptCode(hadoopVariableName,LANGUAGE));
break;
case HDIUser:
hadoopConn.getParameters().put(ConnParameterKeys.CONN_PARA_KEY_HDI_USERNAME,ContextParameterUtils.getNewScriptCode(hadoopVariableName,LANGUAGE));
break;
case HDIPassword:
hadoopConn.getParameters().put(ConnParameterKeys.CONN_PARA_KEY_HDI_PASSWORD,ContextParameterUtils.getNewScriptCode(hadoopVariableName,LANGUAGE));
break;
case KeyAzureHost:
hadoopConn.getParameters().put(ConnParameterKeys.CONN_PARA_KEY_AZURE_HOSTNAME,ContextParameterUtils.getNewScriptCode(hadoopVariableName,LANGUAGE));
break;
case KeyAzureContainer:
hadoopConn.getParameters().put(ConnParameterKeys.CONN_PARA_KEY_AZURE_CONTAINER,ContextParameterUtils.getNewScriptCode(hadoopVariableName,LANGUAGE));
break;
case KeyAzuresUser:
hadoopConn.getParameters().put(ConnParameterKeys.CONN_PARA_KEY_AZURE_USERNAME,ContextParameterUtils.getNewScriptCode(hadoopVariableName,LANGUAGE));
break;
case KeyAzurePassword:
hadoopConn.getParameters().put(ConnParameterKeys.CONN_PARA_KEY_AZURE_PASSWORD,ContextParameterUtils.getNewScriptCode(hadoopVariableName,LANGUAGE));
break;
case KeyAzureDeployBlob:
hadoopConn.getParameters().put(ConnParameterKeys.CONN_PARA_KEY_AZURE_DEPLOY_BLOB,ContextParameterUtils.getNewScriptCode(hadoopVariableName,LANGUAGE));
break;
default :
}
}

Fixed version (ground truth):
@Override protected void matchContextForAttribues(Connection conn,IConnParamName paramName,String hadoopVariableName){
  HadoopClusterConnection hadoopConn=(HadoopClusterConnection)conn;
  EHadoopParamName hadoopParam=(EHadoopParamName)paramName;
switch (hadoopParam) {
case NameNodeUri:
    hadoopConn.setNameNodeURI(ContextParameterUtils.getNewScriptCode(hadoopVariableName,LANGUAGE));
  break;
case JobTrackerUri:
hadoopConn.setJobTrackerURI(ContextParameterUtils.getNewScriptCode(hadoopVariableName,LANGUAGE));
break;
case ResourceManager:
hadoopConn.setJobTrackerURI(ContextParameterUtils.getNewScriptCode(hadoopVariableName,LANGUAGE));
break;
case ResourceManagerScheduler:
hadoopConn.setRmScheduler(ContextParameterUtils.getNewScriptCode(hadoopVariableName,LANGUAGE));
break;
case JobHistory:
hadoopConn.setJobHistory(ContextParameterUtils.getNewScriptCode(hadoopVariableName,LANGUAGE));
break;
case StagingDirectory:
hadoopConn.setStagingDirectory(ContextParameterUtils.getNewScriptCode(hadoopVariableName,LANGUAGE));
break;
case NameNodePrin:
hadoopConn.setPrincipal(ContextParameterUtils.getNewScriptCode(hadoopVariableName,LANGUAGE));
break;
case JTOrRMPrin:
hadoopConn.setJtOrRmPrincipal(ContextParameterUtils.getNewScriptCode(hadoopVariableName,LANGUAGE));
break;
case JobHistroyPrin:
hadoopConn.setJobHistoryPrincipal(ContextParameterUtils.getNewScriptCode(hadoopVariableName,LANGUAGE));
break;
case User:
hadoopConn.setUserName(ContextParameterUtils.getNewScriptCode(hadoopVariableName,LANGUAGE));
break;
case Group:
hadoopConn.setGroup(ContextParameterUtils.getNewScriptCode(hadoopVariableName,LANGUAGE));
break;
case Principal:
hadoopConn.setKeytabPrincipal(ContextParameterUtils.getNewScriptCode(hadoopVariableName,LANGUAGE));
break;
case KeyTab:
hadoopConn.setKeytab(ContextParameterUtils.getNewScriptCode(hadoopVariableName,LANGUAGE));
break;
case WebHostName:
hadoopConn.getParameters().put(ConnParameterKeys.CONN_PARA_KEY_WEB_HCAT_HOSTNAME,ContextParameterUtils.getNewScriptCode(hadoopVariableName,LANGUAGE));
break;
case WebPort:
hadoopConn.getParameters().put(ConnParameterKeys.CONN_PARA_KEY_WEB_HCAT_PORT,ContextParameterUtils.getNewScriptCode(hadoopVariableName,LANGUAGE));
break;
case WebUser:
hadoopConn.getParameters().put(ConnParameterKeys.CONN_PARA_KEY_WEB_HCAT_USERNAME,ContextParameterUtils.getNewScriptCode(hadoopVariableName,LANGUAGE));
break;
case WebJobResFolder:
hadoopConn.getParameters().put(ConnParameterKeys.CONN_PARA_KEY_WEB_HCAT_JOB_RESULT_FOLDER,ContextParameterUtils.getNewScriptCode(hadoopVariableName,LANGUAGE));
break;
case HDIUser:
hadoopConn.getParameters().put(ConnParameterKeys.CONN_PARA_KEY_HDI_USERNAME,ContextParameterUtils.getNewScriptCode(hadoopVariableName,LANGUAGE));
break;
case HDIPassword:
hadoopConn.getParameters().put(ConnParameterKeys.CONN_PARA_KEY_HDI_PASSWORD,ContextParameterUtils.getNewScriptCode(hadoopVariableName,LANGUAGE));
break;
case KeyAzureHost:
hadoopConn.getParameters().put(ConnParameterKeys.CONN_PARA_KEY_AZURE_HOSTNAME,ContextParameterUtils.getNewScriptCode(hadoopVariableName,LANGUAGE));
break;
case KeyAzureContainer:
hadoopConn.getParameters().put(ConnParameterKeys.CONN_PARA_KEY_AZURE_CONTAINER,ContextParameterUtils.getNewScriptCode(hadoopVariableName,LANGUAGE));
break;
case KeyAzuresUser:
hadoopConn.getParameters().put(ConnParameterKeys.CONN_PARA_KEY_AZURE_USERNAME,ContextParameterUtils.getNewScriptCode(hadoopVariableName,LANGUAGE));
break;
case KeyAzurePassword:
hadoopConn.getParameters().put(ConnParameterKeys.CONN_PARA_KEY_AZURE_PASSWORD,ContextParameterUtils.getNewScriptCode(hadoopVariableName,LANGUAGE));
break;
case KeyAzureDeployBlob:
hadoopConn.getParameters().put(ConnParameterKeys.CONN_PARA_KEY_AZURE_DEPLOY_BLOB,ContextParameterUtils.getNewScriptCode(hadoopVariableName,LANGUAGE));
break;
case ClouderaNavigatorUsername:
hadoopConn.setClouderaNaviUserName(ContextParameterUtils.getNewScriptCode(hadoopVariableName,LANGUAGE));
break;
case ClouderaNavigatorPassword:
hadoopConn.setClouderaNaviPassword(ContextParameterUtils.getNewScriptCode(hadoopVariableName,LANGUAGE));
break;
case ClouderaNavigatorUrl:
hadoopConn.setClouderaNaviUrl(ContextParameterUtils.getNewScriptCode(hadoopVariableName,LANGUAGE));
break;
case ClouderaNavigatorMetadataUrl:
hadoopConn.setClouderaNaviMetadataUrl(ContextParameterUtils.getNewScriptCode(hadoopVariableName,LANGUAGE));
break;
case ClouderaNavigatorClientUrl:
hadoopConn.setClouderaNaviClientUrl(ContextParameterUtils.getNewScriptCode(hadoopVariableName,LANGUAGE));
break;
default :
}
}