<commit_before>package org.ossim.omar.security

class SecUser
{
  String username
  String password
  String userRealName
  String organization
  String phoneNumber
  String email

  boolean enabled
  boolean accountExpired
  boolean accountLocked
  boolean passwordExpired

  static constraints = {
    username blank: false, unique: true
    password blank: false
    userRealName nullable: true
    email email: true, blank: false
    organization nullable: true
    phoneNumber nullable: true
  }

  static mapping = {
    password column: '`password`'
    columns {
      username index: 'sec_user_username_idx'
    }
  }

  Set<SecRole> getAuthorities()
  {
    SecUserSecRole.findAllByAuthUser(this).collect { it.role } as Set
  }

  def getAuthoritiesAsStringList()
  {
      def result = []
      def authorities = getAuthorities()
      authorities.each{
          result << it.authority
      }
      result
  }
}
<commit_msg>Made e-mail property nullabe for compatibility w/PEDs<commit_after>package org.ossim.omar.security

class SecUser
{
  String username
  String password
  String userRealName
  String organization
  String phoneNumber
  String email

  boolean enabled
  boolean accountExpired
  boolean accountLocked
  boolean passwordExpired

  static constraints = {
    username blank: false, unique: true
    password blank: false
    userRealName nullable: true
    //email email: true, blank: false
    email nullable: true
    organization nullable: true
    phoneNumber nullable: true
  }

  static mapping = {
    password column: '`password`'
    columns {
      username index: 'sec_user_username_idx'
    }
  }

  Set<SecRole> getAuthorities()
  {
    SecUserSecRole.findAllByAuthUser(this).collect { it.role } as Set
  }

  def getAuthoritiesAsStringList()
  {
      def result = []
      def authorities = getAuthorities()
      authorities.each{
          result << it.authority
      }
      result
  }
}

{'fraction_non_alphanumeric': 0.0674909840288511, 'fraction_numerical': 0.0, 'mean_word_length': 2.9795081967213113, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 5, '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': '6444088', 'n_tokens_mistral': 565, 'n_tokens_neox': 556, 'n_words': 157}