<commit_before>package de.frosner.broccoli.auth

import de.frosner.broccoli.RemoveSecrets
import play.api.libs.json.{Json, Writes}

/**
  * A user account in Broccoli.
  *
  * @param name The account name
  * @param password The account password
  * @param instanceRegex A regex matching instance names this account is allowed to access
  * @param role The role of the user
  */
case class Account(name: String, password: String, instanceRegex: String, role: Role)

object Account {<commit_msg>Make account a Silhouette identity<commit_after>package de.frosner.broccoli.auth

import com.mohiva.play.silhouette.api.Identity
import de.frosner.broccoli.RemoveSecrets
import play.api.libs.json.{Json, Writes}

/**
  * A user account in Broccoli.
  *
  * @param name The account name
  * @param password The account password
  * @param instanceRegex A regex matching instance names this account is allowed to access
  * @param role The role of the user
  */
case class Account(name: String, password: String, instanceRegex: String, role: Role) extends Identity

object Account {
{'fraction_non_alphanumeric': 0.08294501397949673, 'fraction_numerical': 0.0, 'mean_word_length': 4.424242424242424, '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': '4625426', 'n_tokens_mistral': 320, 'n_tokens_neox': 311, 'n_words': 116}