<commit_before>package de.thomasvolk.easy.core.actors

import akka.actor.{Props, Actor}
import de.thomasvolk.easy.core.actors.page._

import de.thomasvolk.easy.core.persistence.PagePersistenceService
import de.thomasvolk.easy.core.message._
import de.thomasvolk.easy.core.model.Page
import de.thomasvolk.easy.core.Logging

class PageActor(pagePersistenceService: PagePersistenceService) extends Actor with Logging {
  val parentPageActor = context.actorOf(Props(new ParentPageActor(pagePersistenceService)))
  val subPagesActor = context.actorOf(Props(new SubPagesActor(pagePersistenceService)))
  val loadPageActor = context.actorOf(Props(new LoadPageActor(pagePersistenceService)))
  val savePageActor = context.actorOf(Props(new SavePageActor(pagePersistenceService)))
  val deletePageActor = context.actorOf(Props(new DeletePageActor(pagePersistenceService)))

  context watch(parentPageActor)
  context watch(subPagesActor)
  context watch(loadPageActor)
  context watch(savePageActor)
  context watch(deletePageActor)

  def receive = {
    case lp: FindPage =>
      loadPageActor.tell(lp, sender)
    case sp: PersistPage =>
     savePageActor.tell(sp, sender)
    case dp: DeletePage =>
      deletePageActor.tell(dp, sender)
    case fsp: FindSubPages =>
      subPagesActor.tell(fsp, sender)
    case fpp: FindParentPage =>
      parentPageActor.tell(fpp, sender)
  }
}<commit_msg>change tell to scala method<commit_after>package de.thomasvolk.easy.core.actors

import akka.actor.{Props, Actor}
import de.thomasvolk.easy.core.actors.page._

import de.thomasvolk.easy.core.persistence.PagePersistenceService
import de.thomasvolk.easy.core.message._
import de.thomasvolk.easy.core.model.Page
import de.thomasvolk.easy.core.Logging

class PageActor(pagePersistenceService: PagePersistenceService) extends Actor with Logging {
  val parentPageActor = context.actorOf(Props(new ParentPageActor(pagePersistenceService)))
  val subPagesActor = context.actorOf(Props(new SubPagesActor(pagePersistenceService)))
  val loadPageActor = context.actorOf(Props(new LoadPageActor(pagePersistenceService)))
  val savePageActor = context.actorOf(Props(new SavePageActor(pagePersistenceService)))
  val deletePageActor = context.actorOf(Props(new DeletePageActor(pagePersistenceService)))

  context watch(parentPageActor)
  context watch(subPagesActor)
  context watch(loadPageActor)
  context watch(savePageActor)
  context watch(deletePageActor)

  def receive = {
    case lp: FindPage =>
      loadPageActor.!(lp)(sender)
    case sp: PersistPage =>
     savePageActor.!(sp)(sender)
    case dp: DeletePage =>
      deletePageActor.!(dp)(sender)
    case fsp: FindSubPages =>
      subPagesActor.!(fsp)(sender)
    case fpp: FindParentPage =>
      parentPageActor.!(fpp)(sender)
  }
}
{'fraction_non_alphanumeric': 0.09701760689902983, 'fraction_numerical': 0.0, 'mean_word_length': 5.566037735849057, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, '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': '5325572', 'n_tokens_mistral': 874, 'n_tokens_neox': 845, 'n_words': 157}