<commit_before>package scorex.transaction

import play.api.libs.json.JsObject

trait TransactionSettings {
  val settingsJSON: JsObject

  lazy val dataDirOpt = {
    val res = (settingsJSON \ "datadir").asOpt[String]
    res.foreach(folder => new java.io.File(folder).mkdirs())
    res
  }

  private val DefaultHistory = "blocktree"
  lazy val history = (settingsJSON \ "history").asOpt[String].getOrElse(DefaultHistory)

  private val DefaultMaxRollback = 100
  lazy val MaxRollback = (settingsJSON \ "max-rollback").asOpt[Int].getOrElse(DefaultMaxRollback)

}<commit_msg>blockchain default history<commit_after>package scorex.transaction

import play.api.libs.json.JsObject

trait TransactionSettings {
  val settingsJSON: JsObject

  lazy val dataDirOpt = {
    val res = (settingsJSON \ "datadir").asOpt[String]
    res.foreach(folder => new java.io.File(folder).mkdirs())
    res
  }

  private val DefaultHistory = "blockchain"
  lazy val history = (settingsJSON \ "history").asOpt[String].getOrElse(DefaultHistory)

  private val DefaultMaxRollback = 100
  lazy val MaxRollback = (settingsJSON \ "max-rollback").asOpt[Int].getOrElse(DefaultMaxRollback)

}
{'fraction_non_alphanumeric': 0.10996563573883161, 'fraction_numerical': 0.005154639175257732, 'mean_word_length': 4.682926829268292, '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': '5939135', 'n_tokens_mistral': 376, 'n_tokens_neox': 362, 'n_words': 78}