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

import hmda.model.census.CBSATractLookup
import hmda.model.fi.lar.LoanApplicationRegister
import hmda.validation.dsl.Result
import hmda.validation.rules.EditCheck

object V295 extends EditCheck[LoanApplicationRegister] {

  val cbsaTracts = CBSATractLookup.values

  val validCombination = cbsaTracts.map { cbsa =>
    (cbsa.state, cbsa.county)
  }

  override def name: String = "V295"<commit_msg>Update V295 to refactored typeclass pattern<commit_after>package hmda.validation.rules.lar.validity

import hmda.model.census.CBSATractLookup
import hmda.model.fi.lar.LoanApplicationRegister
import hmda.validation.dsl.Result
import hmda.validation.rules.EditCheck

object V295 extends EditCheck[LoanApplicationRegister] {

  import hmda.validation.dsl.PredicateDefaults._
  import hmda.validation.dsl.PredicateSyntax._

  val cbsaTracts = CBSATractLookup.values

  val validCombination = cbsaTracts.map { cbsa =>
    (cbsa.state, cbsa.county)
  }

  override def name: String = "V295"
{'fraction_non_alphanumeric': 0.0845341018251681, 'fraction_numerical': 0.01440922190201729, 'mean_word_length': 5.2395209580838324, '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': '5713203', 'n_tokens_mistral': 380, 'n_tokens_neox': 359, 'n_words': 64}