<commit_before>package models

import play.api.libs.json.Json
import org.apache.commons.codec.digest.DigestUtils
import play.api.data.format.Formats._
import library.Redis
import org.apache.commons.lang3.RandomStringUtils
import play.api.libs.Crypto
import play.api.cache.Cache
import play.api.Play.current

case class Webuser(uuid: String, email: String, firstName: String, lastName: String, password: String, profile: String) {
  val cleanName = {
    if(lastName!=null && lastName.toLowerCase().startsWith("le ")){
      firstName.toLowerCase.capitalize + " " + lastName
    }else{
      firstName.toLowerCase.capitalize + " " + lastName.toLowerCase.capitalize
    }
  }
}

object Webuser {
  implicit val webuserFormat = Json.format[Webuser]

  def gravatarHash(email: String): String = {
    Cache.getOrElse[String]("gravatar:" + email) {
      val cleanEmail = email.trim().toLowerCase()
      DigestUtils.md5Hex(cleanEmail)
    }
  }
<commit_msg>Fix again for family name<commit_after>package models

import play.api.libs.json.Json
import org.apache.commons.codec.digest.DigestUtils
import play.api.data.format.Formats._
import library.Redis
import org.apache.commons.lang3.RandomStringUtils
import play.api.libs.Crypto
import play.api.cache.Cache
import play.api.Play.current

case class Webuser(uuid: String, email: String, firstName: String, lastName: String, password: String, profile: String) {
  val cleanName = {
    firstName.toLowerCase.capitalize + " " + lastName
  }
}

object Webuser {
  implicit val webuserFormat = Json.format[Webuser]

  def gravatarHash(email: String): String = {
    Cache.getOrElse[String]("gravatar:" + email) {
      val cleanEmail = email.trim().toLowerCase()
      DigestUtils.md5Hex(cleanEmail)
    }
  }

{'fraction_non_alphanumeric': 0.11529680365296803, 'fraction_numerical': 0.00228310502283105, 'mean_word_length': 4.328267477203648, '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': '2452558', 'n_tokens_mistral': 555, 'n_tokens_neox': 557, 'n_words': 113}