Program: 5566
Project: 5566
Buggy source:
UpgradeTool() throws Exception {
  this.cConf=CConfiguration.create();
  if (this.cConf.getBoolean(Constants.Security.Authorization.ENABLED)) {
    LOG.info("String_Node_Str",getClass().getSimpleName());
    this.cConf.setBoolean(Constants.Security.Authorization.ENABLED,false);
  }
  SecurityUtil.loginForMasterService(cConf);
  this.hConf=HBaseConfiguration.create();
  Injector injector=createInjector();
  this.txService=injector.getInstance(TransactionService.class);
  this.zkClientService=injector.getInstance(ZKClientService.class);
  this.dsFramework=injector.getInstance(DatasetFramework.class);
  this.metadataStore=injector.getInstance(MetadataStore.class);
  this.streamStateStoreUpgrader=injector.getInstance(StreamStateStoreUpgrader.class);
  this.dsUpgrade=injector.getInstance(DatasetUpgrader.class);
  this.dsSpecUpgrader=injector.getInstance(DatasetSpecificationUpgrader.class);
  this.queueAdmin=injector.getInstance(QueueAdmin.class);
  this.nsStore=injector.getInstance(NamespaceStore.class);
  this.authorizationService=injector.getInstance(AuthorizationEnforcementService.class);
  this.datasetBasedStreamSizeScheduleStore=injector.getInstance(DatasetBasedStreamSizeScheduleStore.class);
  this.datasetBasedTimeScheduleStore=injector.getInstance(DatasetBasedTimeScheduleStore.class);
  this.store=injector.getInstance(DefaultStore.class);
  this.datasetInstanceManager=injector.getInstance(Key.get(DatasetInstanceManager.class,Names.named("String_Node_Str")));
  Runtime.getRuntime().addShutdownHook(new Thread(){
    @Override public void run(){
      try {
        UpgradeTool.this.stop();
      }
 catch (      Throwable e) {
        LOG.error("String_Node_Str",e);
      }
    }
  }
);
  this.existingEntitySystemMetadataWriter=injector.getInstance(ExistingEntitySystemMetadataWriter.class);
  this.upgradeDatasetServiceManager=injector.getInstance(UpgradeDatasetServiceManager.class);
}

Fixed version (ground truth):
UpgradeTool() throws Exception {
  this.cConf=CConfiguration.create();
  if (this.cConf.getBoolean(Constants.Security.Authorization.ENABLED)) {
    LOG.info("String_Node_Str",getClass().getSimpleName());
    this.cConf.setBoolean(Constants.Security.Authorization.ENABLED,false);
  }
  SecurityUtil.loginForMasterService(cConf);
  this.hConf=HBaseConfiguration.create();
  Injector injector=createInjector();
  this.txService=injector.getInstance(TransactionService.class);
  this.zkClientService=injector.getInstance(ZKClientService.class);
  this.dsFramework=injector.getInstance(DatasetFramework.class);
  this.streamStateStoreUpgrader=injector.getInstance(StreamStateStoreUpgrader.class);
  this.dsUpgrade=injector.getInstance(DatasetUpgrader.class);
  this.dsSpecUpgrader=injector.getInstance(DatasetSpecificationUpgrader.class);
  this.queueAdmin=injector.getInstance(QueueAdmin.class);
  this.nsStore=injector.getInstance(NamespaceStore.class);
  this.authorizationService=injector.getInstance(AuthorizationEnforcementService.class);
  this.datasetBasedStreamSizeScheduleStore=injector.getInstance(DatasetBasedStreamSizeScheduleStore.class);
  this.datasetBasedTimeScheduleStore=injector.getInstance(DatasetBasedTimeScheduleStore.class);
  this.store=injector.getInstance(DefaultStore.class);
  this.datasetInstanceManager=injector.getInstance(Key.get(DatasetInstanceManager.class,Names.named("String_Node_Str")));
  Runtime.getRuntime().addShutdownHook(new Thread(){
    @Override public void run(){
      try {
        UpgradeTool.this.stop();
      }
 catch (      Throwable e) {
        LOG.error("String_Node_Str",e);
      }
    }
  }
);
  this.existingEntitySystemMetadataWriter=injector.getInstance(ExistingEntitySystemMetadataWriter.class);
  this.upgradeDatasetServiceManager=injector.getInstance(UpgradeDatasetServiceManager.class);
}