Program: 106124
Project: 106124
Buggy source:
@Override public boolean configure(final String name,final Map<String,Object> params) throws ConfigurationException {
  _executor=Executors.newScheduledThreadPool(1,new NamedThreadFactory("String_Node_Str"));
  _checkExecutor=Executors.newScheduledThreadPool(1,new NamedThreadFactory("String_Node_Str"));
  _networkStatsUpdateExecutor=Executors.newScheduledThreadPool(1,new NamedThreadFactory("String_Node_Str"));
  final Map<String,String> configs=_configDao.getConfiguration("String_Node_Str",params);
  _routerRamSize=NumbersUtil.parseInt(configs.get("String_Node_Str"),DEFAULT_ROUTER_VM_RAMSIZE);
  _routerCpuMHz=NumbersUtil.parseInt(configs.get("String_Node_Str"),DEFAULT_ROUTER_CPU_MHZ);
  _routerExtraPublicNics=NumbersUtil.parseInt(_configDao.getValue(Config.RouterExtraPublicNics.key()),2);
  String guestOSString=configs.get("String_Node_Str");
  if (guestOSString != null) {
    String[] guestOSList=guestOSString.split("String_Node_Str");
    for (    String os : guestOSList) {
      _guestOSNeedGatewayOnNonDefaultNetwork.add(os);
    }
  }
  String value=configs.get("String_Node_Str");
  _retry=NumbersUtil.parseInt(value,2);
  value=configs.get("String_Node_Str");
  _routerStatsInterval=NumbersUtil.parseInt(value,300);
  value=configs.get("String_Node_Str");
  _routerCheckInterval=NumbersUtil.parseInt(value,30);
  value=configs.get("String_Node_Str");
  _rvrStatusUpdatePoolSize=NumbersUtil.parseInt(value,10);
  _vrUpdateQueue=new LinkedBlockingQueue<Long>(_rvrStatusUpdatePoolSize * 1000);
  _rvrStatusUpdateExecutor=Executors.newFixedThreadPool(_rvrStatusUpdatePoolSize,new NamedThreadFactory("String_Node_Str"));
  _instance=configs.get("String_Node_Str");
  if (_instance == null) {
    _instance="String_Node_Str";
  }
  String rpValue=configs.get("String_Node_Str");
  if (rpValue != null && rpValue.equalsIgnoreCase("String_Node_Str")) {
    _disable_rp_filter=true;
  }
  _dnsBasicZoneUpdates=String.valueOf(_configDao.getValue(Config.DnsBasicZoneUpdates.key()));
  s_logger.info("String_Node_Str" + "String_Node_Str" + _routerRamSize);
  _agentMgr.registerForHostEvents(new SshKeysDistriMonitor(_agentMgr,_hostDao,_configDao),true,false,false);
  _itMgr.registerGuru(VirtualMachine.Type.DomainRouter,this);
  boolean useLocalStorage=Boolean.parseBoolean(configs.get(Config.SystemVMUseLocalStorage.key()));
  _offering=new ServiceOfferingVO("String_Node_Str",1,_routerRamSize,_routerCpuMHz,null,null,true,null,useLocalStorage,true,null,true,VirtualMachine.Type.DomainRouter,true);
  _offering.setUniqueName(ServiceOffering.routerDefaultOffUniqueName);
  _offering=_serviceOfferingDao.persistSystemServiceOffering(_offering);
  if (_offering == null) {
    String msg="String_Node_Str";
    s_logger.error(msg);
    throw new ConfigurationException(msg);
  }
  _systemAcct=_accountMgr.getSystemAccount();
  String aggregationRange=configs.get("String_Node_Str");
  _usageAggregationRange=NumbersUtil.parseInt(aggregationRange,1440);
  _usageTimeZone=configs.get("String_Node_Str");
  if (_usageTimeZone == null) {
    _usageTimeZone="String_Node_Str";
  }
  _agentMgr.registerForHostEvents(this,true,false,false);
  s_logger.info("String_Node_Str");
  return true;
}

Fixed version (ground truth):
@Override public boolean configure(final String name,final Map<String,Object> params) throws ConfigurationException {
  _executor=Executors.newScheduledThreadPool(1,new NamedThreadFactory("String_Node_Str"));
  _checkExecutor=Executors.newScheduledThreadPool(1,new NamedThreadFactory("String_Node_Str"));
  _networkStatsUpdateExecutor=Executors.newScheduledThreadPool(1,new NamedThreadFactory("String_Node_Str"));
  final Map<String,String> configs=_configDao.getConfiguration("String_Node_Str",params);
  _routerRamSize=NumbersUtil.parseInt(configs.get("String_Node_Str"),DEFAULT_ROUTER_VM_RAMSIZE);
  _routerCpuMHz=NumbersUtil.parseInt(configs.get("String_Node_Str"),DEFAULT_ROUTER_CPU_MHZ);
  _routerExtraPublicNics=NumbersUtil.parseInt(_configDao.getValue(Config.RouterExtraPublicNics.key()),2);
  String guestOSString=configs.get("String_Node_Str");
  if (guestOSString != null) {
    String[] guestOSList=guestOSString.split("String_Node_Str");
    for (    String os : guestOSList) {
      _guestOSNeedGatewayOnNonDefaultNetwork.add(os);
    }
  }
  String value=configs.get("String_Node_Str");
  _retry=NumbersUtil.parseInt(value,2);
  value=configs.get("String_Node_Str");
  _routerStatsInterval=NumbersUtil.parseInt(value,300);
  value=configs.get("String_Node_Str");
  _routerCheckInterval=NumbersUtil.parseInt(value,30);
  value=configs.get("String_Node_Str");
  _rvrStatusUpdatePoolSize=NumbersUtil.parseInt(value,10);
  _vrUpdateQueue=new LinkedBlockingQueue<Long>(_rvrStatusUpdatePoolSize * 1000);
  _rvrStatusUpdateExecutor=Executors.newFixedThreadPool(_rvrStatusUpdatePoolSize,new NamedThreadFactory("String_Node_Str"));
  _instance=configs.get("String_Node_Str");
  if (_instance == null) {
    _instance="String_Node_Str";
  }
  String rpValue=configs.get("String_Node_Str");
  if (rpValue != null && rpValue.equalsIgnoreCase("String_Node_Str")) {
    _disable_rp_filter=true;
  }
  _dnsBasicZoneUpdates=String.valueOf(_configDao.getValue(Config.DnsBasicZoneUpdates.key()));
  s_logger.info("String_Node_Str" + "String_Node_Str" + _routerRamSize);
  _agentMgr.registerForHostEvents(new SshKeysDistriMonitor(_agentMgr,_hostDao,_configDao),true,false,false);
  boolean useLocalStorage=Boolean.parseBoolean(configs.get(Config.SystemVMUseLocalStorage.key()));
  _offering=new ServiceOfferingVO("String_Node_Str",1,_routerRamSize,_routerCpuMHz,null,null,true,null,useLocalStorage,true,null,true,VirtualMachine.Type.DomainRouter,true);
  _offering.setUniqueName(ServiceOffering.routerDefaultOffUniqueName);
  _offering=_serviceOfferingDao.persistSystemServiceOffering(_offering);
  if (_offering == null) {
    String msg="String_Node_Str";
    s_logger.error(msg);
    throw new ConfigurationException(msg);
  }
  _systemAcct=_accountMgr.getSystemAccount();
  String aggregationRange=configs.get("String_Node_Str");
  _usageAggregationRange=NumbersUtil.parseInt(aggregationRange,1440);
  _usageTimeZone=configs.get("String_Node_Str");
  if (_usageTimeZone == null) {
    _usageTimeZone="String_Node_Str";
  }
  _agentMgr.registerForHostEvents(this,true,false,false);
  s_logger.info("String_Node_Str");
  return true;
}