<commit_before>package actors.daily

import java.io.File
import java.util.UUID

import actors.daily.ReadJournalTypes.ReadJournalWithEvents
import actors.{InMemoryStreamingJournal, StreamingJournalLike}
import akka.actor.{ActorRef, Props}
import akka.pattern.ask
import akka.stream.ActorMaterializer
import akka.testkit.TestProbe
import com.typesafe.config.{Config, ConfigFactory, ConfigValueFactory}
import drt.shared.CrunchApi.{CrunchMinute, MinutesContainer}
import drt.shared.Terminals.{T1, Terminal}
import drt.shared.{Queues, SDateLike}
import scalapb.GeneratedMessage
import server.protobuf.messages.CrunchState.CrunchMinuteMessage
import services.SDate
import services.crunch.CrunchTestLike
import test.TestActors.TestTerminalDayQueuesActor

import scala.concurrent.duration._
import scala.concurrent.{Await, ExecutionContextExecutor, Future}
import scala.reflect.io.Directory

object LevelDbConfig {
  val tempStoreDir: String = s"/tmp/drt-${UUID.randomUUID().toString}"

  def config(uuid: String): Config = ConfigFactory.load("leveldb").withValue("akka.persistence.journal.leveldb.dir", ConfigValueFactory.fromAnyRef(tempStoreDir + uuid))

  def clearData(uuid: String): Boolean = {
    val path = tempStoreDir + uuid
    println(s"Attempting to delete $path")
    val directory = new Directory(new File(path))
    if (directory.exists) {
      directory.deleteRecursively()
    } else true
  }
}

class TerminalDayQueuesUpdatesActorSpec extends CrunchTestLike {<commit_msg>DRTII-60 Remove redundant leveldb testing stuff<commit_after>package actors.daily

import java.io.File
import java.util.UUID

import actors.daily.ReadJournalTypes.ReadJournalWithEvents
import actors.{InMemoryStreamingJournal, StreamingJournalLike}
import akka.actor.{ActorRef, Props}
import akka.pattern.ask
import akka.stream.ActorMaterializer
import akka.testkit.TestProbe
import com.typesafe.config.{Config, ConfigFactory, ConfigValueFactory}
import drt.shared.CrunchApi.{CrunchMinute, MinutesContainer}
import drt.shared.Terminals.{T1, Terminal}
import drt.shared.{Queues, SDateLike}
import scalapb.GeneratedMessage
import server.protobuf.messages.CrunchState.CrunchMinuteMessage
import services.SDate
import services.crunch.CrunchTestLike
import test.TestActors.TestTerminalDayQueuesActor

import scala.concurrent.duration._
import scala.concurrent.{Await, ExecutionContextExecutor, Future}
import scala.reflect.io.Directory


class TerminalDayQueuesUpdatesActorSpec extends CrunchTestLike {
{'fraction_non_alphanumeric': 0.08629032258064516, 'fraction_numerical': 0.0016129032258064516, 'mean_word_length': 6.826498422712934, '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': '7393911', 'n_tokens_mistral': 755, 'n_tokens_neox': 739, 'n_words': 150}