Program: 107369
Project: 107369
Buggy source:
@Override public boolean configure(String name,Map<String,Object> params) throws ConfigurationException {
  _name=name;
  ComponentLocator locator=ComponentLocator.getCurrentLocator();
  ConfigurationDao configDao=locator.getDao(ConfigurationDao.class);
  if (configDao == null) {
    s_logger.error("String_Node_Str");
    return false;
  }
  Map<String,String> configs=configDao.getConfiguration("String_Node_Str",params);
  String emailAddressList=configs.get("String_Node_Str");
  String[] emailAddresses=null;
  if (emailAddressList != null) {
    emailAddresses=emailAddressList.split("String_Node_Str");
  }
  String smtpHost=configs.get("String_Node_Str");
  int smtpPort=NumbersUtil.parseInt(configs.get("String_Node_Str"),25);
  String useAuthStr=configs.get("String_Node_Str");
  boolean useAuth=((useAuthStr == null) ? false : Boolean.parseBoolean(useAuthStr));
  String smtpUsername=configs.get("String_Node_Str");
  String smtpPassword=configs.get("String_Node_Str");
  String emailSender=configs.get("String_Node_Str");
  String smtpDebugStr=configs.get("String_Node_Str");
  boolean smtpDebug=false;
  if (smtpDebugStr != null) {
    smtpDebug=Boolean.parseBoolean(smtpDebugStr);
  }
  _emailAlert=new EmailAlert(emailAddresses,smtpHost,smtpPort,useAuth,smtpUsername,smtpPassword,emailSender,smtpDebug);
  _emailAlert=null;
  String storageCapacityThreshold=configs.get("String_Node_Str");
  String cpuCapacityThreshold=configs.get("String_Node_Str");
  String memoryCapacityThreshold=configs.get("String_Node_Str");
  String storageAllocCapacityThreshold=configs.get("String_Node_Str");
  String publicIPCapacityThreshold=configs.get("String_Node_Str");
  String privateIPCapacityThreshold=configs.get("String_Node_Str");
  if (storageCapacityThreshold != null) {
    _storageCapacityThreshold=Double.parseDouble(storageCapacityThreshold);
  }
  if (storageAllocCapacityThreshold != null) {
    _storageAllocCapacityThreshold=Double.parseDouble(storageAllocCapacityThreshold);
  }
  if (cpuCapacityThreshold != null) {
    _cpuCapacityThreshold=Double.parseDouble(cpuCapacityThreshold);
  }
  if (memoryCapacityThreshold != null) {
    _memoryCapacityThreshold=Double.parseDouble(memoryCapacityThreshold);
  }
  if (publicIPCapacityThreshold != null) {
    _publicIPCapacityThreshold=Double.parseDouble(publicIPCapacityThreshold);
  }
  if (privateIPCapacityThreshold != null) {
    _privateIPCapacityThreshold=Double.parseDouble(privateIPCapacityThreshold);
  }
  String capacityCheckPeriodStr=configs.get("String_Node_Str");
  if (capacityCheckPeriodStr != null) {
    _capacityCheckPeriod=Long.parseLong(capacityCheckPeriodStr);
  }
  String cpuOverProvisioningFactorStr=configs.get("String_Node_Str");
  if (cpuOverProvisioningFactorStr != null) {
    _cpuOverProvisioningFactor=NumbersUtil.parseFloat(cpuOverProvisioningFactorStr,1);
    if (_cpuOverProvisioningFactor < 1) {
      _cpuOverProvisioningFactor=1;
    }
  }
  _timer=new Timer("String_Node_Str");
  return true;
}

Fixed version (ground truth):
@Override public boolean configure(String name,Map<String,Object> params) throws ConfigurationException {
  _name=name;
  ComponentLocator locator=ComponentLocator.getCurrentLocator();
  ConfigurationDao configDao=locator.getDao(ConfigurationDao.class);
  if (configDao == null) {
    s_logger.error("String_Node_Str");
    return false;
  }
  Map<String,String> configs=configDao.getConfiguration("String_Node_Str",params);
  String emailAddressList=configs.get("String_Node_Str");
  String[] emailAddresses=null;
  if (emailAddressList != null) {
    emailAddresses=emailAddressList.split("String_Node_Str");
  }
  String smtpHost=configs.get("String_Node_Str");
  int smtpPort=NumbersUtil.parseInt(configs.get("String_Node_Str"),25);
  String useAuthStr=configs.get("String_Node_Str");
  boolean useAuth=((useAuthStr == null) ? false : Boolean.parseBoolean(useAuthStr));
  String smtpUsername=configs.get("String_Node_Str");
  String smtpPassword=configs.get("String_Node_Str");
  String emailSender=configs.get("String_Node_Str");
  String smtpDebugStr=configs.get("String_Node_Str");
  boolean smtpDebug=false;
  if (smtpDebugStr != null) {
    smtpDebug=Boolean.parseBoolean(smtpDebugStr);
  }
  _emailAlert=new EmailAlert(emailAddresses,smtpHost,smtpPort,useAuth,smtpUsername,smtpPassword,emailSender,smtpDebug);
  String storageCapacityThreshold=configs.get("String_Node_Str");
  String cpuCapacityThreshold=configs.get("String_Node_Str");
  String memoryCapacityThreshold=configs.get("String_Node_Str");
  String storageAllocCapacityThreshold=configs.get("String_Node_Str");
  String publicIPCapacityThreshold=configs.get("String_Node_Str");
  String privateIPCapacityThreshold=configs.get("String_Node_Str");
  if (storageCapacityThreshold != null) {
    _storageCapacityThreshold=Double.parseDouble(storageCapacityThreshold);
  }
  if (storageAllocCapacityThreshold != null) {
    _storageAllocCapacityThreshold=Double.parseDouble(storageAllocCapacityThreshold);
  }
  if (cpuCapacityThreshold != null) {
    _cpuCapacityThreshold=Double.parseDouble(cpuCapacityThreshold);
  }
  if (memoryCapacityThreshold != null) {
    _memoryCapacityThreshold=Double.parseDouble(memoryCapacityThreshold);
  }
  if (publicIPCapacityThreshold != null) {
    _publicIPCapacityThreshold=Double.parseDouble(publicIPCapacityThreshold);
  }
  if (privateIPCapacityThreshold != null) {
    _privateIPCapacityThreshold=Double.parseDouble(privateIPCapacityThreshold);
  }
  String capacityCheckPeriodStr=configs.get("String_Node_Str");
  if (capacityCheckPeriodStr != null) {
    _capacityCheckPeriod=Long.parseLong(capacityCheckPeriodStr);
  }
  String cpuOverProvisioningFactorStr=configs.get("String_Node_Str");
  if (cpuOverProvisioningFactorStr != null) {
    _cpuOverProvisioningFactor=NumbersUtil.parseFloat(cpuOverProvisioningFactorStr,1);
    if (_cpuOverProvisioningFactor < 1) {
      _cpuOverProvisioningFactor=1;
    }
  }
  _timer=new Timer("String_Node_Str");
  return true;
}