<commit_before>package controllers.priv

import com.google.inject.Inject
import controllers.{routes, SurveyUrl}
import uk.gov.dvla.vehicles.presentation.common.clientsidesession.ClientSideSessionFactory
import uk.gov.dvla.vehicles.presentation.common.services.DateService
import uk.gov.dvla.vehicles.presentation.common.webserviceclients.bruteforceprevention.BruteForcePreventionService
import uk.gov.dvla.vehicles.presentation.common.webserviceclients.vehicleandkeeperlookup.VehicleAndKeeperLookupService
import utils.helpers.Config

class VehicleLookup @Inject()(implicit bruteForceService: BruteForcePreventionService,
                              vehicleAndKeeperLookupService: VehicleAndKeeperLookupService,
                              surveyUrl: SurveyUrl,
                              dateService: DateService,
                              clientSideSessionFactory: ClientSideSessionFactory,
                              config: Config) extends controllers.VehicleLookup {

  protected override val submitTarget = controllers.routes.VehicleLookup.submit()
  protected override val exitTarget = controllers.routes.VehicleLookup.exit()
  protected override val onVrmLocked = Redirect(routes.VrmLocked.present())
  protected override val onMicroServiceError = Redirect(routes.MicroServiceError.present())
  protected override val onVehicleLookupFailure = Redirect(routes.VehicleLookupFailure.present())
  protected override val missingTradeDetails = Redirect(routes.SetUpTradeDetails.present())
  protected override val enterAddressManually = Redirect(routes.EnterAddressManually.present())
  protected override val businessChooseYourAddress = Redirect(routes.BusinessChooseYourAddress.present())
  protected override val suppressedV5C = Redirect(routes.SuppressedV5C.present())
  protected override val duplicateDisposalError = Redirect(routes.DuplicateDisposalError.present())
  protected override val dispose = Redirect(routes.Dispose.present())
  protected override val onExit = Redirect(config.endUrl)
}<commit_msg>US2666 Abstracted out the calls for vehicle lookup<commit_after>package controllers.priv

import com.google.inject.Inject
import controllers.SurveyUrl
import uk.gov.dvla.vehicles.presentation.common.clientsidesession.ClientSideSessionFactory
import uk.gov.dvla.vehicles.presentation.common.services.DateService
import uk.gov.dvla.vehicles.presentation.common.webserviceclients.bruteforceprevention.BruteForcePreventionService
import uk.gov.dvla.vehicles.presentation.common.webserviceclients.vehicleandkeeperlookup.VehicleAndKeeperLookupService
import utils.helpers.Config

class VehicleLookup @Inject()(implicit bruteForceService: BruteForcePreventionService,
                              vehicleAndKeeperLookupService: VehicleAndKeeperLookupService,
                              surveyUrl: SurveyUrl,
                              dateService: DateService,
                              clientSideSessionFactory: ClientSideSessionFactory,
                              config: Config) extends controllers.VehicleLookup {

  protected override val submitTarget = controllers.routes.VehicleLookup.submit()
  protected override val exitTarget = controllers.routes.VehicleLookup.exit()
  protected override val onVrmLocked = Redirect(controllers.routes.VrmLocked.present())
  protected override val onMicroServiceError = Redirect(controllers.routes.MicroServiceError.present())
  protected override val onVehicleLookupFailure = Redirect(controllers.routes.VehicleLookupFailure.present())
  protected override val missingTradeDetails = Redirect(controllers.routes.SetUpTradeDetails.present())
  protected override val enterAddressManually = Redirect(controllers.routes.EnterAddressManually.present())
  protected override val businessChooseYourAddress = Redirect(controllers.routes.BusinessChooseYourAddress.present())
  protected override val suppressedV5C = Redirect(controllers.routes.SuppressedV5C.present())
  protected override val duplicateDisposalError = Redirect(controllers.routes.DuplicateDisposalError.present())
  protected override val dispose = Redirect(controllers.routes.Dispose.present())
  protected override val onExit = Redirect(config.endUrl)
}
{'fraction_non_alphanumeric': 0.06865315852205006, 'fraction_numerical': 0.0019070321811680572, 'mean_word_length': 4.909859154929578, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4878648', 'n_tokens_mistral': 1055, 'n_tokens_neox': 1050, 'n_words': 194}