<commit_before>package composition

import uk.gov.dvla.vehicles.presentation.common.ConfigProperties._
import uk.gov.dvla.vehicles.presentation.common.services.SEND.{From, EmailConfiguration}
import uk.gov.dvla.vehicles.presentation.common.webserviceclients.acquire_service.FakeAcquireConfig
import utils.helpers.Config

/**
 * Test configuration. This should be provided as the configuration, so we need to bind this to Config type.
 */
class TestConfig extends Config {

  override lazy val acquire = new FakeAcquireConfig()

  // Prototype message in html
  def isPrototypeBannerVisible: Boolean = getOptionalProperty[Boolean]("prototype.disclaimer").getOrElse(true)

  // Google analytics
  def googleAnalyticsTrackingId: Option[String] = None

  // Progress step indicator
  def isProgressBarEnabled: Boolean = getOptionalProperty[Boolean]("progressBar.enabled").getOrElse(true)

  def isHtml5ValidationEnabled: Boolean =
    getOptionalProperty[Boolean]("html5Validation.enabled").getOrElse(false)

  def startUrl: String = "/before-you-start"

  def ordnanceSurveyUseUprn: Boolean = false

  // Opening and closing times
  def opening: Int = 0
  def closing: Int = 24

  // Web headers
  def applicationCode: String = ""
  def vssServiceTypeCode: String = ""
  def dmsServiceTypeCode: String = ""
  def orgBusinessUnit: String = ""
  def channelCode: String = ""
  def contactId: Long = 0


  def emailConfiguration: EmailConfiguration = EmailConfiguration(
    "",
    25,
    "",
    "",
    From("", "DO-NOT-REPLY"),
    From("", "Feedback"),
    None
  )

  override def assetsUrl: Option[String] = None
}<commit_msg>Changed the TestConfig so it reads the opening and closing times from the application.test.config file<commit_after>package composition

import uk.gov.dvla.vehicles.presentation.common.ConfigProperties._
import uk.gov.dvla.vehicles.presentation.common.services.SEND.{EmailConfiguration, From}
import uk.gov.dvla.vehicles.presentation.common.webserviceclients.acquire_service.FakeAcquireConfig
import utils.helpers.Config

/**
 * Test configuration. This should be provided as the configuration, so we need to bind this to Config type.
 */
class TestConfig extends Config {

  override lazy val acquire = new FakeAcquireConfig()

  // Prototype message in html
  def isPrototypeBannerVisible: Boolean = getOptionalProperty[Boolean]("prototype.disclaimer").getOrElse(true)

  // Google analytics
  def googleAnalyticsTrackingId: Option[String] = None

  // Progress step indicator
  def isProgressBarEnabled: Boolean = getOptionalProperty[Boolean]("progressBar.enabled").getOrElse(true)

  def isHtml5ValidationEnabled: Boolean =
    getOptionalProperty[Boolean]("html5Validation.enabled").getOrElse(false)

  def startUrl: String = "/before-you-start"

  def ordnanceSurveyUseUprn: Boolean = false

  // Opening and closing times
  def opening: Int = getOptionalProperty[Int]("openingTime").getOrElse(0)
  def closing: Int = getOptionalProperty[Int]("closingTime").getOrElse(24)

  // Web headers
  def applicationCode: String = ""
  def vssServiceTypeCode: String = ""
  def dmsServiceTypeCode: String = ""
  def orgBusinessUnit: String = ""
  def channelCode: String = ""
  def contactId: Long = 0


  def emailConfiguration: EmailConfiguration = EmailConfiguration(
    "",
    25,
    "",
    "",
    From("", "DO-NOT-REPLY"),
    From("", "Feedback"),
    None
  )

  override def assetsUrl: Option[String] = None
}
{'fraction_non_alphanumeric': 0.10211778357992457, 'fraction_numerical': 0.004641717435451117, 'mean_word_length': 4.588330632090762, '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': '908739', 'n_tokens_mistral': 1012, 'n_tokens_neox': 972, 'n_words': 254}