<commit_before>package models.response

import play.api.libs.json._

// for typeahead search
case class LDAPUserInfoSearch( userName: String,
                             firstName: String,
                             lastName: String,
                             email: String)

object LDAPUserInfoSearch {
  implicit val format = Json.format[LDAPUserInfo]
  implicit object LDAPUserInfoSearchFormat extends Format[LDAPUserInfoSearch] {
    def writes(o:LDAPUserInfoSearch): JsValue = JsObject(
      List("value" -> JsString(o.email),
        "token" -> Json.arr(o.firstName, o.lastName),
        "firstName" -> JsString(o.firstName),
        "lastName" -> JsString(o.lastName),
        "userName" -> JsString(o.userName)
      )
    )
    def reads(json: JsValue) = JsSuccess( LDAPUserInfoSearch (
      (json \ "value").as[String],
      (json \ "firstName").as[String],
      (json \ "lastName").as[String],
      (json \ "userName").as[String]
    ))
  }
}<commit_msg>committing missing b/e file<commit_after>package models.response

import play.api.libs.json._

// for typeahead search
case class LDAPUserInfoSearch( userName: String,
                             firstName: String,
                             lastName: String,
                             email: String)

object LDAPUserInfoSearch {
  implicit val format = Json.format[LDAPUserInfo]
  implicit object LDAPUserInfoSearchFormat extends Format[LDAPUserInfoSearch] {
    def writes(o:LDAPUserInfoSearch): JsValue = JsObject(
      List("value" -> JsString(o.email),
	    "token" -> Json.arr(o.firstName, o.lastName),
	    "firstName" -> JsString(o.firstName),
		"lastName" -> JsString(o.lastName),
		"userName" -> JsString(o.userName)
      )
    )	
    def reads(json: JsValue) = JsSuccess( LDAPUserInfoSearch (
	  (json \ "value").as[String],
	  (json \ "firstName").as[String],
	  (json \ "lastName").as[String],
	  (json \ "userName").as[String]
	))
  }
}
{'fraction_non_alphanumeric': 0.12771458117890383, 'fraction_numerical': 0.0, 'mean_word_length': 2.56353591160221, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, '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': '2548425', 'n_tokens_mistral': 624, 'n_tokens_neox': 614, 'n_words': 117}