<commit_before>package controllers.s7_employment

import models.view.{Navigable, CachedClaim}
import play.api.mvc._
import play.api.data.{FormError, Form}
import play.api.data.Forms._
import models.domain.{Employment => Emp, Claim, Jobs, BeenEmployed}
import utils.helpers.CarersForm._
import controllers.Mappings._
import controllers.s7_employment.Employment.jobs
import models.domain.Claim
import models.domain.Claim
import scala.reflect.ClassTag
import play.api.i18n.Lang

object G2BeenEmployed extends Controller with CachedClaim with Navigable {
  val form = Form(mapping(
    "beenEmployed" -> (nonEmptyText verifying validYesNo)
  )(BeenEmployed.apply)(BeenEmployed.unapply))

  def presentConditionally(c: => Either[Result,ClaimResult])(implicit claim: Claim, request: Request[AnyContent], lang:Lang): Either[Result,ClaimResult] = {
    claim.questionGroup[Emp].collect {<commit_msg>DE388 - add import for implicit<commit_after>package controllers.s7_employment

import models.view.{Navigable, CachedClaim}
import play.api.mvc._
import play.api.data.{FormError, Form}
import play.api.data.Forms._
import models.domain.{Employment => Emp, Claim, Jobs, BeenEmployed}
import utils.helpers.CarersForm._
import controllers.Mappings._
import controllers.s7_employment.Employment.jobs
import models.domain.Claim
import models.domain.Claim
import scala.reflect.ClassTag
import play.api.i18n.Lang
import scala.language.postfixOps

object G2BeenEmployed extends Controller with CachedClaim with Navigable {
  val form = Form(mapping(
    "beenEmployed" -> (nonEmptyText verifying validYesNo)
  )(BeenEmployed.apply)(BeenEmployed.unapply))

  def presentConditionally(c: => Either[Result,ClaimResult])(implicit claim: Claim, request: Request[AnyContent], lang:Lang): Either[Result,ClaimResult] = {
    claim.questionGroup[Emp].collect {
{'fraction_non_alphanumeric': 0.10420076377523187, 'fraction_numerical': 0.0070921985815602835, 'mean_word_length': 6.365461847389558, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '5895891', 'n_tokens_mistral': 577, 'n_tokens_neox': 550, 'n_words': 122}