<commit_before>package io.magnetic.vamp_common.akka

import akka.actor._
import io.magnetic.vamp_common.text.Text

trait ActorDescription {
  def props(args: Any*): Props

  def name: String = Text.toSnakeCase(getClass.getSimpleName)
}

object ActorSupport {
  def actorOf(actorDescription: ActorDescription, args: Any*)(implicit actorSystem: ActorSystem) = actorSystem.actorOf(actorDescription.props(args: _*), actorDescription.name)
}

trait ActorSupport {
  this: Actor =>

  def actorOf(actorDescription: ActorDescription, args: Any*) = context.system.actorOf(actorDescription.props(args: _*), actorDescription.name)

  def actorFor(actorDescription: ActorDescription) = context.actorSelection(s"../${actorDescription.name}")
}<commit_msg>akka mailbox support<commit_after>package io.magnetic.vamp_common.akka

import akka.actor._
import io.magnetic.vamp_common.text.Text

trait ActorDescription {
  def props(args: Any*): Props

  def name: String = Text.toSnakeCase(getClass.getSimpleName)
}

object ActorSupport {
  def actorOf(actorDescription: ActorDescription, args: Any*)(implicit  mailbox: String = "akka.actor.default-mailbox", actorSystem: ActorSystem) =
    actorSystem.actorOf(actorDescription.props(args: _*).withMailbox(mailbox), actorDescription.name)
}

trait ActorSupport {
  this: Actor =>

  def actorOf(actorDescription: ActorDescription, args: Any*)(implicit mailbox: String = "akka.actor.default-mailbox") =
    context.system.actorOf(actorDescription.props(args: _*).withMailbox(mailbox), actorDescription.name)

  def actorFor(actorDescription: ActorDescription) = context.actorSelection(s"../${actorDescription.name}")
}
{'fraction_non_alphanumeric': 0.11825348696179502, 'fraction_numerical': 0.0, 'mean_word_length': 6.5, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '2403178', 'n_tokens_mistral': 515, 'n_tokens_neox': 495, 'n_words': 94}