<commit_before>
import scala.actors.Reactor
import scala.actors.Actor._

case class Ping(from: Reactor)
case object Pong
case object Stop

/**
 * Ping pong example for OutputChannelActor.
 *
 * @author  <NAME>
 */
object Test {
  def main(args: Array[String]) {
    val pong = new PongActor
    val ping = new PingActor(100000, pong)
    ping.start
    pong.start
  }
}

class PingActor(count: Int, pong: Reactor) extends Reactor {
  ignoreSender = true
  def act() {
    var pingsLeft = count - 1
    pong ! Ping(this)
    loop {
      react {
        case Pong =>
          if (pingsLeft % 10000 == 0)
            println("Ping: pong")
          if (pingsLeft > 0) {
            pong ! Ping(this)
            pingsLeft -= 1
          } else {
            println("Ping: stop")
            pong ! Stop
            exit()
          }
      }
    }
  }
}

class PongActor extends Reactor {
  ignoreSender = true
  def act() {
    var pongCount = 0
    loop {
      react {
        case Ping(from) =><commit_msg>Prepares a test for further changes in Reactor.<commit_after>
import scala.actors.Reactor
import scala.actors.Actor._

case class Ping(from: Reactor)
case object Pong
case object Stop

/**
 * Ping pong example for OutputChannelActor.
 *
 * @author  <NAME>
 */
object Test {
  def main(args: Array[String]) {
    val pong = new PongActor
    val ping = new PingActor(100000, pong)
    ping.start
    pong.start
  }
}

class PingActor(count: Int, pong: Reactor) extends Reactor {
  def act() {
    var pingsLeft = count - 1
    pong ! Ping(this)
    loop {
      react {
        case Pong =>
          if (pingsLeft % 10000 == 0)
            println("Ping: pong")
          if (pingsLeft > 0) {
            pong ! Ping(this)
            pingsLeft -= 1
          } else {
            println("Ping: stop")
            pong ! Stop
            exit()
          }
      }
    }
  }
}

class PongActor extends Reactor {
  def act() {
    var pongCount = 0
    loop {
      react {
        case Ping(from) =>
{'fraction_non_alphanumeric': 0.10298507462686567, 'fraction_numerical': 0.015920398009950248, 'mean_word_length': 1.8444130127298444, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, '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': '4215263', 'n_tokens_mistral': 707, 'n_tokens_neox': 663, 'n_words': 189}