<commit_before>package cell

import org.apache.poi.ss.usermodel.{ Cell => PCell }
import poi4s.Implicit._
import scala.collection.immutable.Map

abstract class Cell {
  val DIFF = "diff"
  val EQUAL = "equal"

  val typename: String
  val left: PCell
  val right: PCell

  def getLineNo(): Int = {
    left match {
      case l => l.rowNum
      case _ => right match {
        case r => r.rowNum
        case _ => 0 // TODO
      }
    }
  }

  def getCellNo(): Int = {
    left match {
      case l => l.getColumnIndex
      case _ => right match {
        case r => r.getColumnIndex
        case _ => 0 // TODO
      }
    }
  }

}

case class Diff(left: PCell, right: PCell) extends Cell {<commit_msg>variable patternのエラーが発生するため修正<commit_after>package cell

import org.apache.poi.ss.usermodel.{ Cell => PCell }
import poi4s.Implicit._
import scala.collection.immutable.Map

abstract class Cell {
  val DIFF = "diff"
  val EQUAL = "equal"

  val typename: String
  val left: PCell
  val right: PCell

  def getLineNo(): Int = {
    left match {
      case l if (l != null) => l.rowNum
      case _ => right match {
        case r if (r != null) => r.rowNum
        case _ => 0 // TODO
      }
    }
  }

  def getCellNo(): Int = {
    left match {
      case l if (l != null) => l.getColumnIndex
      case _ => right match {
        case r if (r != null) => r.getColumnIndex
        case _ => 0 // TODO
      }
    }
  }

}

case class Diff(left: PCell, right: PCell) extends Cell {
{'fraction_non_alphanumeric': 0.11574697173620457, 'fraction_numerical': 0.004037685060565276, 'mean_word_length': 2.097916666666667, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 21, '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': '6136588', 'n_tokens_mistral': 527, 'n_tokens_neox': 513, 'n_words': 153}