Program: 4948
Project: 4948
Buggy source:
private StandaloneMain(List<Module> modules,CConfiguration cConf){
  Thread.setDefaultUncaughtExceptionHandler(new UncaughtExceptionHandler());
  this.cConf=cConf;
  injector=Guice.createInjector(modules);
  if (cConf.getBoolean(Constants.Audit.ENABLED)) {
    trackerAppCreationService=injector.getInstance(TrackerAppCreationService.class);
  }
 else {
    trackerAppCreationService=null;
  }
  messagingService=injector.getInstance(MessagingService.class);
  authorizerInstantiator=injector.getInstance(AuthorizerInstantiator.class);
  authorizationBootstrapper=injector.getInstance(AuthorizationBootstrapper.class);
  txService=injector.getInstance(InMemoryTransactionService.class);
  router=injector.getInstance(NettyRouter.class);
  metricsQueryService=injector.getInstance(MetricsQueryService.class);
  appFabricServer=injector.getInstance(AppFabricServer.class);
  logAppenderInitializer=injector.getInstance(LogAppenderInitializer.class);
  metricsCollectionService=injector.getInstance(MetricsCollectionService.class);
  datasetService=injector.getInstance(DatasetService.class);
  serviceStore=injector.getInstance(ServiceStore.class);
  streamService=injector.getInstance(StreamService.class);
  operationalStatsService=injector.getInstance(OperationalStatsService.class);
  if (cConf.getBoolean(DISABLE_UI,false)) {
    userInterfaceService=null;
  }
 else {
    userInterfaceService=injector.getInstance(UserInterfaceService.class);
  }
  sslEnabled=cConf.getBoolean(Constants.Security.SSL.EXTERNAL_ENABLED);
  securityEnabled=cConf.getBoolean(Constants.Security.ENABLED);
  if (securityEnabled) {
    externalAuthenticationServer=injector.getInstance(ExternalAuthenticationServer.class);
  }
  boolean exploreEnabled=cConf.getBoolean(Constants.Explore.EXPLORE_ENABLED);
  if (exploreEnabled) {
    ExploreServiceUtils.checkHiveSupport(getClass().getClassLoader());
    exploreExecutorService=injector.getInstance(ExploreExecutorService.class);
  }
  exploreClient=injector.getInstance(ExploreClient.class);
  metadataService=injector.getInstance(MetadataService.class);
  remoteSystemOperationsService=injector.getInstance(RemoteSystemOperationsService.class);
  Runtime.getRuntime().addShutdownHook(new Thread(){
    @Override public void run(){
      try {
        shutDown();
      }
 catch (      Throwable e) {
        LOG.error("String_Node_Str",e);
        System.err.println("String_Node_Str" + e.getMessage());
        e.printStackTrace(System.err);
      }
    }
  }
);
}

Fixed version (ground truth):
private StandaloneMain(List<Module> modules,CConfiguration cConf){
  Thread.setDefaultUncaughtExceptionHandler(new UncaughtExceptionHandler());
  this.cConf=cConf;
  injector=Guice.createInjector(modules);
  if (cConf.getBoolean(Constants.Audit.ENABLED)) {
    trackerAppCreationService=injector.getInstance(TrackerAppCreationService.class);
  }
 else {
    trackerAppCreationService=null;
  }
  wranglerAppCreationService=injector.getInstance(WranglerAppCreationService.class);
  messagingService=injector.getInstance(MessagingService.class);
  authorizerInstantiator=injector.getInstance(AuthorizerInstantiator.class);
  authorizationBootstrapper=injector.getInstance(AuthorizationBootstrapper.class);
  txService=injector.getInstance(InMemoryTransactionService.class);
  router=injector.getInstance(NettyRouter.class);
  metricsQueryService=injector.getInstance(MetricsQueryService.class);
  appFabricServer=injector.getInstance(AppFabricServer.class);
  logAppenderInitializer=injector.getInstance(LogAppenderInitializer.class);
  metricsCollectionService=injector.getInstance(MetricsCollectionService.class);
  datasetService=injector.getInstance(DatasetService.class);
  serviceStore=injector.getInstance(ServiceStore.class);
  streamService=injector.getInstance(StreamService.class);
  operationalStatsService=injector.getInstance(OperationalStatsService.class);
  if (cConf.getBoolean(DISABLE_UI,false)) {
    userInterfaceService=null;
  }
 else {
    userInterfaceService=injector.getInstance(UserInterfaceService.class);
  }
  sslEnabled=cConf.getBoolean(Constants.Security.SSL.EXTERNAL_ENABLED);
  securityEnabled=cConf.getBoolean(Constants.Security.ENABLED);
  if (securityEnabled) {
    externalAuthenticationServer=injector.getInstance(ExternalAuthenticationServer.class);
  }
  boolean exploreEnabled=cConf.getBoolean(Constants.Explore.EXPLORE_ENABLED);
  if (exploreEnabled) {
    ExploreServiceUtils.checkHiveSupport(getClass().getClassLoader());
    exploreExecutorService=injector.getInstance(ExploreExecutorService.class);
  }
  exploreClient=injector.getInstance(ExploreClient.class);
  metadataService=injector.getInstance(MetadataService.class);
  remoteSystemOperationsService=injector.getInstance(RemoteSystemOperationsService.class);
  Runtime.getRuntime().addShutdownHook(new Thread(){
    @Override public void run(){
      try {
        shutDown();
      }
 catch (      Throwable e) {
        LOG.error("String_Node_Str",e);
        System.err.println("String_Node_Str" + e.getMessage());
        e.printStackTrace(System.err);
      }
    }
  }
);
}