<commit_before>package controllers.s6_education

import play.api.mvc._
import models.view.CachedClaim
import collection.immutable.ListMap
import play.api.mvc.Call
import models.domain.Claim
import play.api.templates.Html

object Education extends Controller with CachedClaim {

  val route: ListMap[String, Call] = ListMap(G1YourCourseDetails,
    G2AddressOfSchoolCollegeOrUniversity)


  def whenVisible(claim: Claim)(closure: () => SimpleResult[Html]) = {
    val iAmVisible = claim.isSectionVisible(models.domain.Education.id)

    if (iAmVisible) closure() else Ok("TODO: Should Redirect To Empolyment SECTION")
  }

  def completedQuestionGroups(implicit claim: Claim) = claim.completedQuestionGroups(models.domain.Education.id)

  def completed = claiming {
    implicit claim => implicit request =>
      Ok(views.html.s6_education.g3_completed(completedQuestionGroups))
  }

  def completedSubmit = claiming {
    implicit claim => implicit request =>
      ???
  }
}<commit_msg>fixed a typo<commit_after>package controllers.s6_education

import play.api.mvc._
import models.view.CachedClaim
import collection.immutable.ListMap
import play.api.mvc.Call
import models.domain.Claim
import play.api.templates.Html

object Education extends Controller with CachedClaim {

  val route: ListMap[String, Call] = ListMap(G1YourCourseDetails,
    G2AddressOfSchoolCollegeOrUniversity)


  def whenVisible(claim: Claim)(closure: () => SimpleResult[Html]) = {
    val iAmVisible = claim.isSectionVisible(models.domain.Education.id)

    if (iAmVisible) closure() else Ok("TODO: Should Redirect To Employment SECTION")
  }

  def completedQuestionGroups(implicit claim: Claim) = claim.completedQuestionGroups(models.domain.Education.id)

  def completed = claiming {
    implicit claim => implicit request =>
      Ok(views.html.s6_education.g3_completed(completedQuestionGroups))
  }

  def completedSubmit = claiming {
    implicit claim => implicit request =>
      ???
  }
}
{'fraction_non_alphanumeric': 0.09518987341772152, 'fraction_numerical': 0.005063291139240506, 'mean_word_length': 4.863501483679525, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, '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': '5443138', 'n_tokens_mistral': 603, 'n_tokens_neox': 558, 'n_words': 128}