<commit_before>package core

/**
 * The system fields used by the CultureHub
 *
 * @author <NAME> <<EMAIL>>
 */

case class SystemField(name: String) {

  val tag = "delving_" + name

}

object SystemField {

  val values = List(TITLE, DESCRIPTION, OWNER, THUMBNAIL, LANDING_PAGE, DEEP_ZOOM_URL, PROVIDER, SPEC)

  def valueOf(name: String) = values.find(v => v.name.toUpperCase == name.toUpperCase.replaceAll("_", "")).getOrElse(throw new IllegalArgumentException("Invalid SystemField " + name))

  object TITLE extends SystemField("title")
  object DESCRIPTION extends SystemField("description")
  object THUMBNAIL extends SystemField("thumbnail")

  object CREATOR extends SystemField("creator")<commit_msg>Re-ordering fields<commit_after>package core

/**
 * The system fields used by the CultureHub
 *
 * @author <NAME> <<EMAIL>>
 */

case class SystemField(name: String) {

  val tag = "delving_" + name

}

object SystemField {

  val values = List(TITLE, DESCRIPTION, PROVIDER, OWNER, THUMBNAIL, LANDING_PAGE, DEEP_ZOOM_URL, SPEC)

  def valueOf(name: String) = values.find(v => v.name.toUpperCase == name.toUpperCase.replaceAll("_", "")).getOrElse(throw new IllegalArgumentException("Invalid SystemField " + name))

  object TITLE extends SystemField("title")
  object DESCRIPTION extends SystemField("description")
  object THUMBNAIL extends SystemField("thumbnail")

  object CREATOR extends SystemField("creator")
{'fraction_non_alphanumeric': 0.11859649122807017, 'fraction_numerical': 0.0, 'mean_word_length': 5.452488687782806, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 11, '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': '3928001', 'n_tokens_mistral': 467, 'n_tokens_neox': 433, 'n_words': 118}