<commit_before>package uk.ac.wellcome.platform.reindex_request_creator

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.{
  SNSClientModule,
  SNSConfigModule,
  SQSClientModule,
  SQSConfigModule
}
import uk.ac.wellcome.finatra.monitoring.MetricsSenderModule
import uk.ac.wellcome.finatra.storage.{
  DynamoClientModule,
  DynamoConfigModule,
  S3ClientModule
}
import uk.ac.wellcome.platform.reindex_request_creator.modules.ReindexerWorkerModule

object ServerMain extends Server

class Server extends HttpServer {
  override val name = "uk.ac.wellcome.platform.reindex_request_creator ReindexRequestCreator"

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

  override def configureHttp(router: HttpRouter) {
    router
      .filter[CommonFilters]
      .filter[LoggingMDCFilter[Request, Response]]
      .filter[TraceIdMDCFilter[Request, Response]]
      .add[ManagementController]
  }
}<commit_msg>Apply auto-formatting rules<commit_after>package uk.ac.wellcome.platform.reindex_request_creator

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.{
  SNSClientModule,
  SNSConfigModule,
  SQSClientModule,
  SQSConfigModule
}
import uk.ac.wellcome.finatra.monitoring.MetricsSenderModule
import uk.ac.wellcome.finatra.storage.{
  DynamoClientModule,
  DynamoConfigModule,
  S3ClientModule
}
import uk.ac.wellcome.platform.reindex_request_creator.modules.ReindexerWorkerModule

object ServerMain extends Server

class Server extends HttpServer {
  override val name =
    "uk.ac.wellcome.platform.reindex_request_creator ReindexRequestCreator"

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

  override def configureHttp(router: HttpRouter) {
    router
      .filter[CommonFilters]
      .filter[LoggingMDCFilter[Request, Response]]
      .filter[TraceIdMDCFilter[Request, Response]]
      .add[ManagementController]
  }
}
{'fraction_non_alphanumeric': 0.0795221843003413, 'fraction_numerical': 0.0013651877133105802, 'mean_word_length': 4.909274193548387, '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': '5716587', 'n_tokens_mistral': 950, 'n_tokens_neox': 936, 'n_words': 144}