<commit_before>package uk.ac.wellcome.platform.reindex.processor

import com.twitter.finagle.http.{Request, Response}
import com.twitter.finatra.http.HttpServer
import com.twitter.finatra.http.filters.{
  CommonFilters,
  LoggingMDCFilter,
  TraceIdMDCFilter
}
import com.twitter.finatra.http.routing.HttpRouter
import uk.ac.wellcome.finatra.akka.AkkaModule
import uk.ac.wellcome.finatra.controllers.ManagementController
import uk.ac.wellcome.finatra.messaging.{SQSClientModule, SQSConfigModule}
import uk.ac.wellcome.finatra.monitoring.MetricsSenderModule
import uk.ac.wellcome.finatra.storage.{DynamoClientModule, DynamoConfigModule}
import uk.ac.wellcome.platform.reindex.processor.modules.ReindexerWorkerModule

object ServerMain extends Server

class Server extends HttpServer {
  override val name =
    "uk.ac.wellcome.platform.reindex.processor ReindexRequestProcessor"

  override val modules = Seq(
    AkkaModule,
    MetricsSenderModule,
    SQSConfigModule,
    SQSClientModule,
    DynamoConfigModule,
    DynamoClientModule,
    ReindexerWorkerModule
  )

  override def configureHttp(router: HttpRouter) {
    router
      .filter[CommonFilters]
      .filter[LoggingMDCFilter[Request, Response]]
      .filter[TraceIdMDCFilter[Request, Response]]
      .add[ManagementController]
  }
}<commit_msg>Don't forget to actually load the module<commit_after>package uk.ac.wellcome.platform.reindex.processor

import com.twitter.finagle.http.{Request, Response}
import com.twitter.finatra.http.HttpServer
import com.twitter.finatra.http.filters.{
  CommonFilters,
  LoggingMDCFilter,
  TraceIdMDCFilter
}
import com.twitter.finatra.http.routing.HttpRouter
import uk.ac.wellcome.finatra.akka.AkkaModule
import uk.ac.wellcome.finatra.controllers.ManagementController
import uk.ac.wellcome.finatra.messaging.{SQSClientModule, SQSConfigModule}
import uk.ac.wellcome.finatra.monitoring.MetricsSenderModule
import uk.ac.wellcome.finatra.storage.{DynamoClientModule, DynamoConfigModule}
import uk.ac.wellcome.platform.reindex.processor.modules.{
  ExecutionContextModule,
  ReindexerWorkerModule
}

object ServerMain extends Server

class Server extends HttpServer {
  override val name =
    "uk.ac.wellcome.platform.reindex.processor ReindexRequestProcessor"

  override val modules = Seq(
    AkkaModule,
    MetricsSenderModule,
    SQSConfigModule,
    SQSClientModule,
    DynamoConfigModule,
    DynamoClientModule,
    ExecutionContextModule,
    ReindexerWorkerModule
  )

  override def configureHttp(router: HttpRouter) {
    router
      .filter[CommonFilters]
      .filter[LoggingMDCFilter[Request, Response]]
      .filter[TraceIdMDCFilter[Request, Response]]
      .add[ManagementController]
  }
}
{'fraction_non_alphanumeric': 0.08508287292817679, 'fraction_numerical': 0.0, 'mean_word_length': 5.048997772828508, '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': '146174', 'n_tokens_mistral': 850, 'n_tokens_neox': 831, 'n_words': 135}