<commit_before>package com.mthaler.xmlstream

import org.scalatest.FunSuite
import scala.xml.{ MetaData, Node }
import ProductFormat._

object AdditionalFormatsTest {
  case class Friends(friends: List[String])
  case class Person(name: String, friends: Friends)
}

class AdditionalFormatsTest extends FunSuite {

  import AdditionalFormatsTest._

  test("ignoreFormat") {

    import BasicAttrFormats._
    val p = Person("<NAME>", Friends(List("<NAME>", "<NAME>", "<NAME>")))
    implicit val friendsFormat = AdditionalFormats.ignoreFormat(Friends(Nil))
    implicit val pf = xmlFormat2(Person)

    assertResult(Left(<Person name="<NAME>"/>)) {
      pf.write(p)
    }<commit_msg>Removed unused imports.<commit_after>package com.mthaler.xmlstream

import org.scalatest.FunSuite
import ProductFormat._

object AdditionalFormatsTest {
  case class Friends(friends: List[String])
  case class Person(name: String, friends: Friends)
}

class AdditionalFormatsTest extends FunSuite {

  import AdditionalFormatsTest._

  test("ignoreFormat") {

    import BasicAttrFormats._
    val p = Person("<NAME>", Friends(List("<NAME>", "<NAME>", "<NAME>")))
    implicit val friendsFormat = AdditionalFormats.ignoreFormat(Friends(Nil))
    implicit val pf = xmlFormat2(Person)

    assertResult(Left(<Person name="<NAME>"/>)) {
      pf.write(p)
    }
{'fraction_non_alphanumeric': 0.12388059701492538, 'fraction_numerical': 0.0014925373134328358, 'mean_word_length': 4.96, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 5}, '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': '7249418', 'n_tokens_mistral': 403, 'n_tokens_neox': 389, 'n_words': 94}