<commit_before>package com.linkedin.sleipnir.data

/**
 * A super type for all enum types
 * @author <NAME>
 */
trait ScalaEnumTemplate extends Enumeration {

  val $Unknown = Value

  def withNameOrUnknown(s: String) = {
    try {
      withName(s)
    } catch {
      case _: NoSuchElementException => $Unknown
    }
  }

}<commit_msg>Pass scalastyle. Add scalastyle to precommit.<commit_after>package com.linkedin.sleipnir.data

/**
 * A super type for all enum types
 * @author <NAME>
 */
trait ScalaEnumTemplate extends Enumeration {

  val $Unknown = Value

  def withNameOrUnknown(s: String): Value = {
    try {
      withName(s)
    } catch {
      case _: NoSuchElementException => $Unknown
    }
  }

}
{'fraction_non_alphanumeric': 0.10518934081346423, 'fraction_numerical': 0.0, 'mean_word_length': 3.0338983050847457, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '7323300', 'n_tokens_mistral': 239, 'n_tokens_neox': 233, 'n_words': 60}