<commit_before>// vim: ts=2 sw=2 et


package com.debiki.v0

import collection.{immutable => imm, mutable => mut}
import Prelude._

/*
package object debate {
  type ID = String
}

case class Forum private[debiki] (
  id: String
)
*/

case class Debate private[debiki] (
  val id: String,
  private val posts: List[Post],
  private val votes: List[Vote]
){
  val RootPostId = "root"

  private lazy val postsById =<commit_msg>Add constructor method Debate.empty().<commit_after>// vim: ts=2 sw=2 et


package com.debiki.v0

import collection.{immutable => imm, mutable => mut}
import Prelude._

/*
package object debate {
  type ID = String
}

case class Forum private[debiki] (
  id: String
)
*/

object Debate {

  def empty(id: String) = Debate(id, Nil, Nil)

}

case class Debate (
  val id: String,
  private val posts: List[Post],
  private val votes: List[Vote]
){
  val RootPostId = "root"

  private lazy val postsById =
{'fraction_non_alphanumeric': 0.11840688912809473, 'fraction_numerical': 0.006458557588805167, 'mean_word_length': 3.6733668341708543, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '3627600', 'n_tokens_mistral': 337, 'n_tokens_neox': 326, 'n_words': 106}