<commit_before>package org.cakesolutions.akkapatterns.core

import akka.actor.{ActorLogging, Props, Actor}

case class GetImplementation()
case class Implementation(title: String, version: String, build: String)

object ApplicationActor {
  case class Start()
  case class Stop()
}

class ApplicationActor extends Actor with ActorLogging {
  import ApplicationActor._

  def receive = {
    case GetImplementation() =>
      val title = "Akka-Patterns"
      val version = "1.0"
      val build = "1.0"

      sender ! Implementation(title, version, build)

    case Start() =>
      val messageDelivery = context.actorOf(Props[MessageDeliveryActor], "messageDelivery")
      context.actorOf(Props(new CustomerActor(messageDelivery)), "customer")
      context.actorOf(Props(new UserActor(messageDelivery)),     "user")


    case Stop() =>
      context.children.foreach(context.stop _)

  }
}<commit_msg>close #24<commit_after>package org.cakesolutions.akkapatterns.core

import akka.actor.{ActorLogging, Props, Actor}
import akka.routing.FromConfig

case class GetImplementation()
case class Implementation(title: String, version: String, build: String)

object ApplicationActor {
  case class Start()
  case class Stop()
}

class ApplicationActor extends Actor with ActorLogging {
  import ApplicationActor._

  def receive = {
    case GetImplementation() =>
      val title = "Akka-Patterns"
      val version = "1.0"
      val build = "1.0"

      sender ! Implementation(title, version, build)

    case Start() =>
      val messageDelivery = context.actorOf(
        Props[MessageDeliveryActor].withRouter(FromConfig()).withDispatcher("low-priority-dispatcher")
        , "messageDelivery"
      )
      context.actorOf(Props(new CustomerActor(messageDelivery)).withRouter(FromConfig()), "customer")
      context.actorOf(Props(new UserActor(messageDelivery)).withRouter(FromConfig()),     "user")


    case Stop() =>
      context.children.foreach(context.stop _)

  }
}
{'fraction_non_alphanumeric': 0.10954063604240283, 'fraction_numerical': 0.005047955577990914, 'mean_word_length': 4.017721518987342, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '6746996', 'n_tokens_mistral': 587, 'n_tokens_neox': 557, 'n_words': 134}