<commit_before>package org.scalawiki.wlx.query

import org.scalawiki.MwBot
import org.scalawiki.dto.cmd.Action
import org.scalawiki.dto.cmd.query.prop._
import org.scalawiki.dto.cmd.query.{PageIdsParam, Query}
import org.scalawiki.dto.{Namespace, Page}
import org.scalawiki.query.QueryLibrary
import org.scalawiki.wlx.dto.lists.OtherTemplateListConfig
import org.scalawiki.wlx.dto.{Contest, Monument}

import java.time.ZonedDateTime
import scala.concurrent.ExecutionContext.Implicits.global
import scala.concurrent.duration.DurationInt
import scala.concurrent.{Future, _}

trait MonumentQuery {
  val Timeout = 2.minutes

  import scala.concurrent.duration._

  def contest: Contest

  def listTemplate: String = contest.uploadConfigs.head.listTemplate

  def byMonumentTemplateAsync(generatorTemplate: String = listTemplate,
                              date: Option[ZonedDateTime] = None,
                              listTemplate: Option[String] = None): Future[Seq[Monument]]

  def byPageAsync(page: String, template: String, date: Option[ZonedDateTime] = None): Future[Seq[Monument]]

  final def byMonumentTemplate(generatorTemplate: String = listTemplate,
                               date: Option[ZonedDateTime] = None,
                               listTemplate: Option[String] = None): Seq[Monument] =
    Await.result(byMonumentTemplateAsync(generatorTemplate, date, listTemplate), Timeout): Seq[Monument]

  final def byPage(page: String, template: String): Seq[Monument] =
    Await.result(byPageAsync(page, template), Timeout): Seq[Monument]
}
<commit_msg>fix compilation<commit_after>package org.scalawiki.wlx.query

import org.scalawiki.MwBot
import org.scalawiki.dto.cmd.Action
import org.scalawiki.dto.cmd.query.prop._
import org.scalawiki.dto.cmd.query.{PageIdsParam, Query}
import org.scalawiki.dto.{Namespace, Page}
import org.scalawiki.query.QueryLibrary
import org.scalawiki.wlx.dto.lists.OtherTemplateListConfig
import org.scalawiki.wlx.dto.{Contest, Monument}

import java.time.ZonedDateTime
import scala.concurrent.ExecutionContext.Implicits.global
import scala.concurrent.duration.DurationInt
import scala.concurrent.{Future, _}

trait MonumentQuery {
  val Timeout = 2.minutes

  def contest: Contest

  def defaultListTemplate: String = contest.uploadConfigs.head.listTemplate

  def byMonumentTemplateAsync(generatorTemplate: String = defaultListTemplate,
                              date: Option[ZonedDateTime] = None,
                              listTemplate: Option[String] = None): Future[Seq[Monument]]

  def byPageAsync(page: String, template: String, date: Option[ZonedDateTime] = None): Future[Seq[Monument]]

  final def byMonumentTemplate(generatorTemplate: String = defaultListTemplate,
                               date: Option[ZonedDateTime] = None,
                               listTemplate: Option[String] = None): Seq[Monument] =
    Await.result(byMonumentTemplateAsync(generatorTemplate, date, listTemplate), Timeout): Seq[Monument]

  final def byPage(page: String, template: String): Seq[Monument] =
    Await.result(byPageAsync(page, template), Timeout): Seq[Monument]
}

{'fraction_non_alphanumeric': 0.09850175326745297, 'fraction_numerical': 0.000637551801083838, 'mean_word_length': 4.012779552715655, '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': '2406332', 'n_tokens_mistral': 942, 'n_tokens_neox': 926, 'n_words': 181}