<commit_before>package is.hail.methods

import is.hail.annotations.UnsafeRow
import is.hail.variant.{MatrixTable, Variant}
import is.hail.utils._

object VerifyBiallelic {
  def apply(vsm: MatrixTable, method: String): MatrixTable = {
    val localRowType = vsm.rowType
    vsm.copy2(
      rdd2 = vsm.rdd2.mapPreservesPartitioning(vsm.rdd2.typ) { rv =>
        val ur = new UnsafeRow(localRowType, rv.region, rv.offset)
        val v = ur.getAs[Variant](1)
        if (!v.isBiallelic)
          fatal("in $method: found non-biallelic variant: $v")
        rv
      })
  }
}<commit_msg>Fix require biallelic error message (#2742)<commit_after>package is.hail.methods

import is.hail.annotations.UnsafeRow
import is.hail.variant.{MatrixTable, Variant}
import is.hail.utils._

object VerifyBiallelic {
  def apply(vsm: MatrixTable, method: String): MatrixTable = {
    val localRowType = vsm.rowType
    vsm.copy2(
      rdd2 = vsm.rdd2.mapPreservesPartitioning(vsm.rdd2.typ) { rv =>
        val ur = new UnsafeRow(localRowType, rv.region, rv.offset)
        val v = ur.getAs[Variant](1)
        if (!v.isBiallelic)
          fatal(s"in $method: found non-biallelic variant: $v")
        rv
      })
  }
}
{'fraction_non_alphanumeric': 0.11886949293433084, 'fraction_numerical': 0.011637572734829594, 'mean_word_length': 3.1232876712328768, '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': '974841', 'n_tokens_mistral': 439, 'n_tokens_neox': 433, 'n_words': 89}