<commit_before>package play.core

import akka.actor._
import akka.actor.Actor._

import com.typesafe.config._

/**
 * provides Play's internal actor system and the corresponding actor instances
 */
object Invoker {

  val system: ActorSystem = ActorSystem("play") //TODO make sure this is configurable

  val executionContext: scala.concurrent.ExecutionContext = system.dispatcher

}<commit_msg>Ensured invoker loads play akka configuration<commit_after>package play.core

import akka.actor._
import akka.actor.Actor._

import com.typesafe.config._
import play.api.{Logger, Play}

/**
 * provides Play's internal actor system and the corresponding actor instances
 */
object Invoker {

  private def loadActorConfig = {
    val config = Play.maybeApplication.map(_.configuration.underlying).getOrElse {
      Logger("play").warn("No application found at invoker init")
      ConfigFactory.load()
    }
    config.getConfig("play")
  }

  val system: ActorSystem = ActorSystem("play", loadActorConfig)

  val executionContext: scala.concurrent.ExecutionContext = system.dispatcher

}
{'fraction_non_alphanumeric': 0.09426987060998152, 'fraction_numerical': 0.0, 'mean_word_length': 4.49746192893401, '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': '7391203', 'n_tokens_mistral': 307, 'n_tokens_neox': 293, 'n_words': 85}