<commit_before>import app.ConfigProperties._
import java.net.InetAddress
import monitor.MonitorFilter
import monitoring._
import org.slf4j.MDC
import play.api._
import play.api.mvc.Results._
import play.api.mvc._
import play.api.mvc.SimpleResult
import scala.concurrent.{ExecutionContext, Future}
import ExecutionContext.Implicits.global
import services.async.AsyncActors
import services.mail.EmailActors
import utils.Injector
import utils.helpers.CarersLanguageHelper
import play.api.GlobalSettings

object Global extends WithFilters(MonitorFilter) with Injector with CarersLanguageHelper with C3MonitorRegistration with GlobalSettings {

  override def onStart(app: Application) {
    MDC.put("httpPort", getProperty("http.port", "Value not set"))
    MDC.put("hostName", Option(InetAddress.getLocalHost.getHostName).getOrElse("Value not set"))
    MDC.put("envName", getProperty("env.name", "Value not set"))
    MDC.put("appName", getProperty("app.name", "Value not set"))
    super.onStart(app)

    val secret: String = getProperty("application.secret", "secret")
    val secretDefault: String = getProperty("secret.default", "don't Match")

    duplicateClaimCheckEnabled

    if (secret.equals(secretDefault)) {
      Logger.warn("application.secret is using default value")
    }

    actorSystems()

    registerReporters()
    registerHealthChecks()

    Logger.info(s"c3 Started : memcachedplugin is ${getProperty("memcachedplugin", "Not defined")}") // used for operations, do not remove
    Logger.info(s"c3 property include.analytics is ${getProperty("include.analytics", "Not defined")}") // used for operations, do not remove
  }<commit_msg>US802 - commented out changes in Global.scala which were preventing app to start. To Investigate.<commit_after>import app.ConfigProperties._
import java.net.InetAddress
import monitor.MonitorFilter
import monitoring._
import org.slf4j.MDC
import play.api._
import play.api.mvc.Results._
import play.api.mvc._
import play.api.mvc.SimpleResult
import scala.concurrent.{ExecutionContext, Future}
import ExecutionContext.Implicits.global
import services.async.AsyncActors
import services.mail.EmailActors
import utils.Injector
import utils.helpers.CarersLanguageHelper
import play.api.GlobalSettings

object Global extends WithFilters(MonitorFilter) with Injector with CarersLanguageHelper /*with C3MonitorRegistration */ with GlobalSettings {

  override def onStart(app: Application) {
    MDC.put("httpPort", getProperty("http.port", "Value not set"))
    MDC.put("hostName", Option(InetAddress.getLocalHost.getHostName).getOrElse("Value not set"))
    MDC.put("envName", getProperty("env.name", "Value not set"))
    MDC.put("appName", getProperty("app.name", "Value not set"))
    super.onStart(app)

    val secret: String = getProperty("application.secret", "secret")
    val secretDefault: String = getProperty("secret.default", "don't Match")

    duplicateClaimCheckEnabled

    if (secret.equals(secretDefault)) {
      Logger.warn("application.secret is using default value")
    }

    actorSystems()

//    registerReporters()
//    registerHealthChecks()

    Logger.info(s"c3 Started : memcachedplugin is ${getProperty("memcachedplugin", "Not defined")}") // used for operations, do not remove
    Logger.info(s"c3 property include.analytics is ${getProperty("include.analytics", "Not defined")}") // used for operations, do not remove
  }
{'fraction_non_alphanumeric': 0.11264300381343502, 'fraction_numerical': 0.0032267527134056907, 'mean_word_length': 5.2226277372262775, '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': '1026244', 'n_tokens_mistral': 969, 'n_tokens_neox': 969, 'n_words': 247}