<commit_before>package de.fuberlin.wiwiss.silk.workbench.lift.snippet

import net.liftweb.util.Helpers._
import xml.NodeSeq
import de.fuberlin.wiwiss.silk.workbench.workspace.User
import net.liftweb.http.SHtml
import de.fuberlin.wiwiss.silk.util.task.{Finished, Running, Started, Status}
import de.fuberlin.wiwiss.silk.workbench.learning.CurrentLearningTask
import de.fuberlin.wiwiss.silk.learning.{LearningTask, CrossValidationTask}

class LearningToolbar {

  def render(xhtml: NodeSeq): NodeSeq = {
    bind("entry", xhtml,
         "startCrossValidation" -> SHtml.button("Cross validation", () => new CrossValidationTask(User().linkingTask.cache.instances).run()))
  }
}<commit_msg>Updated lift<commit_after>package de.fuberlin.wiwiss.silk.workbench.lift.snippet

import net.liftweb.util.Helpers._
import xml.NodeSeq
import net.liftweb.http.SHtml
import de.fuberlin.wiwiss.silk.learning.CrossValidationTask
import de.fuberlin.wiwiss.silk.workbench.workspace.User

class LearningToolbar {

  def render(xhtml: NodeSeq): NodeSeq = {
    bind("entry", xhtml,
         "startCrossValidation" -> SHtml.button("Cross validation", () => new CrossValidationTask(User().linkingTask.cache.instances).run()))
  }
}
{'fraction_non_alphanumeric': 0.1275890637945319, 'fraction_numerical': 0.0, 'mean_word_length': 5.425531914893617, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '383159', 'n_tokens_mistral': 414, 'n_tokens_neox': 400, 'n_words': 59}