<commit_before>package modules

import com.tzavellas.sse.guice.ScalaModule
import play.api.Logger
import services._
import services.address_lookup.AddressLookupService
import services.address_lookup.ordnance_survey.WebServiceImpl

/**
 * Provides real implementations of traits
 * Note the use of sse-guice, which is a library that makes the Guice internal DSL more scala friendly
 * eg we can write this:
 * bind[Service].to[ServiceImpl].in[Singleton]
 * instead of this:
 * bind(classOf[Service]).to(classOf[ServiceImpl]).in(classOf[Singleton])
 *
 * Look in build.scala for where we import the sse-guice library
 */
object DevModule extends ScalaModule {
  def configure() {
    Logger.debug("Guice is loading DevModule")

    bind[V5cSearchWebService].to[V5cSearchWebServiceImpl].asEagerSingleton
    bind[LoginWebService].to[LoginWebServiceImpl].asEagerSingleton
    bind[AddressLookupService].to[services.address_lookup.ordnance_survey.AddressLookupServiceImpl].asEagerSingleton
    bind[WebService].to[services.address_lookup.ordnance_survey.WebServiceImpl].asEagerSingleton
    //bind[AddressLookupService].to[services.address_lookup.gds.AddressLookupServiceImpl].asEagerSingleton
    //bind[WebService].to[services.address_lookup.gds.WebServiceImpl].asEagerSingleton
    bind[VehicleLookupService].to[VehicleLookupServiceImpl].asEagerSingleton
    bind[DisposeService].to[DisposeServiceImpl].asEagerSingleton
  }
}<commit_msg>turn on gds address lookup<commit_after>package modules

import com.tzavellas.sse.guice.ScalaModule
import play.api.Logger
import services._
import services.address_lookup.AddressLookupService
import services.address_lookup.ordnance_survey.WebServiceImpl

/**
 * Provides real implementations of traits
 * Note the use of sse-guice, which is a library that makes the Guice internal DSL more scala friendly
 * eg we can write this:
 * bind[Service].to[ServiceImpl].in[Singleton]
 * instead of this:
 * bind(classOf[Service]).to(classOf[ServiceImpl]).in(classOf[Singleton])
 *
 * Look in build.scala for where we import the sse-guice library
 */
object DevModule extends ScalaModule {
  def configure() {
    Logger.debug("Guice is loading DevModule")

    bind[V5cSearchWebService].to[V5cSearchWebServiceImpl].asEagerSingleton
    bind[LoginWebService].to[LoginWebServiceImpl].asEagerSingleton
    //ordnanceSurveyAddressLookup()
    gdsAddressLookup()
    bind[VehicleLookupService].to[VehicleLookupServiceImpl].asEagerSingleton
    bind[DisposeService].to[DisposeServiceImpl].asEagerSingleton
  }

  private def ordnanceSurveyAddressLookup() = {
    bind[AddressLookupService].to[services.address_lookup.ordnance_survey.AddressLookupServiceImpl].asEagerSingleton
    bind[WebService].to[services.address_lookup.ordnance_survey.WebServiceImpl].asEagerSingleton
  }

  private def gdsAddressLookup() = {
    bind[AddressLookupService].to[services.address_lookup.gds.AddressLookupServiceImpl].asEagerSingleton
    bind[WebService].to[services.address_lookup.gds.WebServiceImpl].asEagerSingleton
  }
}
{'fraction_non_alphanumeric': 0.09033959775799538, 'fraction_numerical': 0.0013188262446422684, 'mean_word_length': 6.241050119331742, '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': '3486580', 'n_tokens_mistral': 917, 'n_tokens_neox': 909, 'n_words': 158}