<commit_before>package uk.ac.wellcome.transformer.transformers.sierra

import org.scalatest.{FunSpec, Matchers}
import uk.ac.wellcome.models.{Agent, IdentifierSchemes, SourceIdentifier}
import uk.ac.wellcome.test.utils.SierraData
import uk.ac.wellcome.transformer.source.{
  MarcSubfield,
  SierraBibData,
  VarField
}

class SierraPhysicalDescriptionTest extends FunSpec with Matchers {

  val transformer = new SierraPhysicalDescription {}

  it("gets no physical if there is no MARC field 300 with subfield $c") {
    val bibData = SierraBibData(
      id = "pd1000001",
      title = Some("Quick!  The quails are quadrupling."),
      varFields = List()
    )

    transformer.getPhysicalDescription(bibData = bibData).get shouldBe None
  }
<commit_msg>SierraPhysicalDescriptionTest.scala: remove some unused imports<commit_after>package uk.ac.wellcome.transformer.transformers.sierra

import org.scalatest.{FunSpec, Matchers}
import uk.ac.wellcome.transformer.source.{
  MarcSubfield,
  SierraBibData,
  VarField
}

class SierraPhysicalDescriptionTest extends FunSpec with Matchers {

  val transformer = new SierraPhysicalDescription {}

  it("gets no physical if there is no MARC field 300 with subfield $c") {
    val bibData = SierraBibData(
      id = "pd1000001",
      title = Some("Quick!  The quails are quadrupling."),
      varFields = List()
    )

    transformer.getPhysicalDescription(bibData = bibData).get shouldBe None
  }

{'fraction_non_alphanumeric': 0.08782849239280774, 'fraction_numerical': 0.013831258644536652, 'mean_word_length': 4.339483394833948, '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': '5457982', 'n_tokens_mistral': 472, 'n_tokens_neox': 429, 'n_words': 110}