<commit_before>package spinoco.protocol.mail.header

import org.scalacheck.Prop.protect
import org.scalacheck.Properties

object AutoSubmittedSpec extends Properties("AutoSubmitted") {

  import spinoco.protocol.mail.SpecUtil._
  implicit val HeaderCodec = `Auto-Submitted`.codec


  property("no") = protect {
    verify(
      "no"
      , `Auto-Submitted`(`Auto-Submitted`.AutoType.No, None)
    )
  }

  property("auto-generated") = protect {
    verify(
      "auto-generated"
      , `Auto-Submitted`(`Auto-Submitted`.AutoType.AutoGenerated, None)
    )
  }

  property("auto-replied") = protect {
    verify(
      "auto-replied"
      , `Auto-Submitted`(`Auto-Submitted`.AutoType.AutoReplied, None)
    )
  }

  property("auto-replied.vacation") = protect {
    verify(
      "auto-replied (vacation; wtf)"
      , `Auto-Submitted`(`Auto-Submitted`.AutoType.AutoReplied, Some(Seq("vacation", "wtf")))
    )
  }

  property("auto-notified") = protect {
    verify(
      "auto-notified"
      , `Auto-Submitted`(`Auto-Submitted`.AutoType.AutoNotified, None)
    )
  }


}<commit_msg>Don't use WTF in tests!<commit_after>package spinoco.protocol.mail.header

import org.scalacheck.Prop.protect
import org.scalacheck.Properties

object AutoSubmittedSpec extends Properties("AutoSubmitted") {

  import spinoco.protocol.mail.SpecUtil._
  implicit val HeaderCodec = `Auto-Submitted`.codec


  property("no") = protect {
    verify(
      "no"
      , `Auto-Submitted`(`Auto-Submitted`.AutoType.No, None)
    )
  }

  property("auto-generated") = protect {
    verify(
      "auto-generated"
      , `Auto-Submitted`(`Auto-Submitted`.AutoType.AutoGenerated, None)
    )
  }

  property("auto-replied") = protect {
    verify(
      "auto-replied"
      , `Auto-Submitted`(`Auto-Submitted`.AutoType.AutoReplied, None)
    )
  }

  property("auto-replied.vacation") = protect {
    verify(
      "auto-replied (vacation; vacation2)"
      , `Auto-Submitted`(`Auto-Submitted`.AutoType.AutoReplied, Some(Seq("vacation", "vacation2")))
    )
  }

  property("auto-notified") = protect {
    verify(
      "auto-notified"
      , `Auto-Submitted`(`Auto-Submitted`.AutoType.AutoNotified, None)
    )
  }


}
{'fraction_non_alphanumeric': 0.148047229791099, 'fraction_numerical': 0.0009082652134423251, 'mean_word_length': 3.294346978557505, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4941776', 'n_tokens_mistral': 757, 'n_tokens_neox': 719, 'n_words': 102}