<commit_before>package hmda.validation.engine

import hmda.model.filing.lar.LoanApplicationRegister
import hmda.validation.context.ValidationContext
import hmda.validation.rules.lar.quality._2019._
import hmda.validation.rules.lar.quality.{common, _2020 => quality2020}
import hmda.validation.rules.lar.quality.common._
import hmda.validation.rules.lar.syntactical.{S300, S301}
import hmda.validation.rules.lar.validity._
import hmda.validation.rules.lar.validity._2020
import hmda.census.records.CensusRecords
import hmda.validation.rules.lar.validity._2020.V716

private[engine] object LarEngine2020 extends ValidationEngine[LoanApplicationRegister] {

  override def syntacticalChecks(ctx: ValidationContext) = Vector(
    S300,
    S301.withContext(ctx)
  )

  override def validityChecks(ctx: ValidationContext) = Vector(
    V600,
    V608_1,
    V608_2,
    V609,
    V610_1,
    V610_2,
    V611,
    V612_1,
    V612_2,
    V613_1,
    V613_2,
    V613_3,
    V613_4,
    V614_1,
    V614_2,
    V614_3,
    V614_4,
    V615_1,
    V615_2,
    V615_3,
    V616,
    V617,
    V618,
    V619_1,
    _2020.V619_2,
    V619_3,
    V620,
    V621,
    V622,
    V623,
    V624,
    V625_1,
    V625_2.withIndexedTracts(CensusRecords.indexedTract2020),
    V626.withIndexedCounties(CensusRecords.indexedCounty2020),
    V628_1,
    V628_2,
    V628_3,
    V628_4,
    V629_1,
    V629_2,
    V629_3,
    V630,
    V631_1,
    V631_2,
    V631_3,
    V631_4,
    V632_1,
    V632_2,
    V632_3,
    V633,
    V634,
    V635_1,
    V635_2,
    V635_3,
    V635_4,
    V636_1,
    V636_2,
    V636_3,
    V637,
    V638_1,
    V638_2,
    V638_3,<commit_msg>Fix V627 for 2020<commit_after>package hmda.validation.engine

import hmda.model.filing.lar.LoanApplicationRegister
import hmda.validation.context.ValidationContext
import hmda.validation.rules.lar.quality._2019._
import hmda.validation.rules.lar.quality.{common, _2020 => quality2020}
import hmda.validation.rules.lar.quality.common._
import hmda.validation.rules.lar.syntactical.{S300, S301}
import hmda.validation.rules.lar.validity._
import hmda.validation.rules.lar.validity._2020
import hmda.census.records.CensusRecords
import hmda.validation.rules.lar.validity._2020.V716

private[engine] object LarEngine2020 extends ValidationEngine[LoanApplicationRegister] {

  override def syntacticalChecks(ctx: ValidationContext) = Vector(
    S300,
    S301.withContext(ctx)
  )

  override def validityChecks(ctx: ValidationContext) = Vector(
    V600,
    V608_1,
    V608_2,
    V609,
    V610_1,
    V610_2,
    V611,
    V612_1,
    V612_2,
    V613_1,
    V613_2,
    V613_3,
    V613_4,
    V614_1,
    V614_2,
    V614_3,
    V614_4,
    V615_1,
    V615_2,
    V615_3,
    V616,
    V617,
    V618,
    V619_1,
    _2020.V619_2,
    V619_3,
    V620,
    V621,
    V622,
    V623,
    V624,
    V625_1,
    V625_2.withIndexedTracts(CensusRecords.indexedTract2020),
    V626.withIndexedCounties(CensusRecords.indexedCounty2020),
    V627.withIndexedCounties(CensusRecords.indexedCounty2020),
    V628_1,
    V628_2,
    V628_3,
    V628_4,
    V629_1,
    V629_2,
    V629_3,
    V630,
    V631_1,
    V631_2,
    V631_3,
    V631_4,
    V632_1,
    V632_2,
    V632_3,
    V633,
    V634,
    V635_1,
    V635_2,
    V635_3,
    V635_4,
    V636_1,
    V636_2,
    V636_3,
    V637,
    V638_1,
    V638_2,
    V638_3,
{'fraction_non_alphanumeric': 0.09128508124076809, 'fraction_numerical': 0.17134416543574593, 'mean_word_length': 2.8874856486796787, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '3523163', 'n_tokens_mistral': 1769, 'n_tokens_neox': 1444, 'n_words': 211}