<commit_before>package org.shlrm.kataBankOCR

class NumberParser(fileName: String) {

  def loadFile = {
    val source = scala.io.Source.fromFile(fileName)
    val lines = source.getLines()
    source.close()
  }

  def value:Int = ???
<commit_msg>Got part of the implementation<commit_after>package org.shlrm.kataBankOCR

import io.Source

class NumberParser() {

  /**
   * Lets read in the entire file, and get a List of List of strings, 3 lines for each entry
   * @return
   */
  def loadFile(source: Source): List[List[String]] = {
    val grouped = source.getLines().grouped(4)
    grouped.foldLeft(List[List[String]]())((coll, strings) => {
      strings.toList :: coll
    }).reverse
  }

  /**
   * Take an account number and return the nine digits that are it
   * Get a list of list of strings, then we can go through each one and determine if it properly matches things
   * @param lines
   */
  def toNumber(lines:List[List[String]]) = {
    /*
    Convert the list of strings to a matrix of things that look like LED numbers
    Specifically a list of two dimensional arrays (or whatever the non mutable thing is for that)
    x_x 010
    |_| 111
    |_| 111
     */


  }

  def value: Int = {


    0
  }

{'fraction_non_alphanumeric': 0.10057236304170074, 'fraction_numerical': 0.009811937857726901, 'mean_word_length': 2.9611650485436893, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '6885448', 'n_tokens_mistral': 399, 'n_tokens_neox': 379, 'n_words': 134}