<commit_before>package hmda.validation.rules.lar.quality

import hmda.model.fi.lar.LoanApplicationRegister
import hmda.validation.dsl.Result
import hmda.validation.rules.EditCheck
import hmda.validation.dsl.PredicateCommon._
import hmda.validation.dsl.PredicateSyntax._
import hmda.validation.dsl.PredicateGeo._

object Q029 extends EditCheck[LoanApplicationRegister] {
  override def apply(lar: LoanApplicationRegister): Result = {
    val geo = lar.geography
    when(geo is stateCountyCombinationInMsa) {
      geo.msa not equalTo("NA")
    }
  }

  override def name = "Q029"
}<commit_msg>update predicate name<commit_after>package hmda.validation.rules.lar.quality

import hmda.model.fi.lar.LoanApplicationRegister
import hmda.validation.dsl.Result
import hmda.validation.rules.EditCheck
import hmda.validation.dsl.PredicateCommon._
import hmda.validation.dsl.PredicateSyntax._
import hmda.validation.dsl.PredicateGeo._

object Q029 extends EditCheck[LoanApplicationRegister] {
  override def apply(lar: LoanApplicationRegister): Result = {
    val geo = lar.geography
    when(geo is stateCountyCombinationInMsaNotMicro) {
      geo.msa not equalTo("NA")
    }
  }

  override def name = "Q029"
}
{'fraction_non_alphanumeric': 0.08985024958402663, 'fraction_numerical': 0.009983361064891847, 'mean_word_length': 4.985074626865671, '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': '5564705', 'n_tokens_mistral': 409, 'n_tokens_neox': 385, 'n_words': 74}