Skip to content

Commit

Permalink
collaborative updates from the HMDA Dev team to resolve CVEs and plat…
Browse files Browse the repository at this point in the history
…form bugs
  • Loading branch information
PatrickGoRaft committed Dec 9, 2024
1 parent 9da5f0f commit 4413bc1
Showing 1 changed file with 24 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ object ModifiedLarCsvParser {
val countyLoanLimitFileName2023 =
config.getString("hmda.countyLoanLimit.2023.fields.filename")

val countyLoanLimitFileName2024 =
config.getString("hmda.countyLoanLimit.2024.fields.filename")

val countyLoanLimitFileName2025 =
config.getString("hmda.countyLoanLimit.2025.fields.filename")

val countyLoanLimits2018: Seq[CountyLoanLimit] =
parseCountyLoanLimitFile(countyLoanLimitFileName2018)
val countyLoanLimits2019: Seq[CountyLoanLimit] =
Expand All @@ -45,20 +51,29 @@ object ModifiedLarCsvParser {
val countyLoanLimits2023: Seq[CountyLoanLimit] =
parseCountyLoanLimitFile(countyLoanLimitFileName2023)

val countyLoanLimits2024: Seq[CountyLoanLimit] =
parseCountyLoanLimitFile(countyLoanLimitFileName2024)

val countyLoanLimits2025: Seq[CountyLoanLimit] =
parseCountyLoanLimitFile(countyLoanLimitFileName2025)

val overallLoanLimit2018 = overallLoanLimits(countyLoanLimits2018)
val overallLoanLimit2019 = overallLoanLimits(countyLoanLimits2019)
val overallLoanLimit2020 = overallLoanLimits(countyLoanLimits2020)
val overallLoanLimit2021 = overallLoanLimits(countyLoanLimits2021)
val overallLoanLimit2022 = overallLoanLimits(countyLoanLimits2022)
val overallLoanLimit2023 = overallLoanLimits(countyLoanLimits2023)

val overallLoanLimit2024 = overallLoanLimits(countyLoanLimits2024)
val overallLoanLimit2025 = overallLoanLimits(countyLoanLimits2025)

val countyLoanLimitsByCounty2018 = countyLoansLimitByCounty(countyLoanLimits2018)
val countyLoanLimitsByCounty2019 = countyLoansLimitByCounty(countyLoanLimits2019)
val countyLoanLimitsByCounty2020 = countyLoansLimitByCounty(countyLoanLimits2020)
val countyLoanLimitsByCounty2021 = countyLoansLimitByCounty(countyLoanLimits2021)
val countyLoanLimitsByCounty2022 = countyLoansLimitByCounty(countyLoanLimits2022)
val countyLoanLimitsByCounty2023 = countyLoansLimitByCounty(countyLoanLimits2023)
val countyLoanLimitsByCounty2024 = countyLoansLimitByCounty(countyLoanLimits2024)
val countyLoanLimitsByCounty2025 = countyLoansLimitByCounty(countyLoanLimits2025)



Expand All @@ -68,6 +83,8 @@ object ModifiedLarCsvParser {
val countyLoanLimitsByState2021 = countyLoansLimitByState(countyLoanLimits2021)
val countyLoanLimitsByState2022 = countyLoansLimitByState(countyLoanLimits2022)
val countyLoanLimitsByState2023 = countyLoansLimitByState(countyLoanLimits2023)
val countyLoanLimitsByState2024 = countyLoansLimitByState(countyLoanLimits2024)
val countyLoanLimitsByState2025 = countyLoansLimitByState(countyLoanLimits2025)


def apply(s: String, year: Int): ModifiedLoanApplicationRegister = {
Expand Down Expand Up @@ -257,6 +274,8 @@ object ModifiedLarCsvParser {
case 2021 => countyLoanLimitsByCounty2021
case 2022 => countyLoanLimitsByCounty2022
case 2023 => countyLoanLimitsByCounty2023
case 2024 => countyLoanLimitsByCounty2024
case 2025 => countyLoanLimitsByCounty2025



Expand All @@ -271,6 +290,8 @@ object ModifiedLarCsvParser {
case 2021 => countyLoanLimitsByState2021
case 2022 => countyLoanLimitsByState2022
case 2023 => countyLoanLimitsByState2023
case 2024 => countyLoanLimitsByState2024
case 2025 => countyLoanLimitsByState2025



Expand All @@ -284,8 +305,8 @@ private def getOverallLoanLimit(year: Int) = {
case 2020 => overallLoanLimit2020
case 2021 => overallLoanLimit2021
case 2022 => overallLoanLimit2022
case 2023 => overallLoanLimit2023

case 2024 => overallLoanLimit2024
case 2025 => overallLoanLimit2025


}
Expand Down

0 comments on commit 4413bc1

Please sign in to comment.