<commit_before>package models

import play.api.data.Form
import play.api.data.Forms._

import play.api.libs.json._

case class Carro(id: Option[Long], name:String, year:Int, description:String, img:String, keywords:String, state: String)

case class CarroFormData(id:String, name: String, year:Int, description: String, keywords: String, state: String)

object CarroForm {

  val form = Form(
    mapping(
      "id" -> text,
      "name" -> nonEmptyText,
      "year" -> number,
      "description" -> nonEmptyText,
      "keywords" -> nonEmptyText,
      "state"	-> nonEmptyText
    )(CarroFormData.apply)(CarroFormData.unapply)
  )
}

object Carros {
  implicit val carroFormat = Json.format[Carro]
}<commit_msg>added model and state<commit_after>package models

import play.api.data.Form
import play.api.data.Forms._

import play.api.libs.json._

case class Carro(id: Option[Long], name:String, year:Int, description:String,
                 img:String, keywords:String, state: String, model: Long)

case class CarroFormData(id:String, name: String, year:Int, description: String,
                         keywords: String, state: String, model: Long)

object CarroForm {

  val form = Form(
    mapping(
      "id" -> text,
      "name" -> nonEmptyText,
      "year" -> number,
      "description" -> nonEmptyText,
      "keywords" -> nonEmptyText,
      "state"	-> nonEmptyText,
      "model" -> longNumber
    )(CarroFormData.apply)(CarroFormData.unapply)
  )
}

object Carros {
  implicit val carroFormat = Json.format[Carro]
}
{'fraction_non_alphanumeric': 0.1257328990228013, 'fraction_numerical': 0.0, 'mean_word_length': 3.388571428571429, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 16, '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': '6776948', 'n_tokens_mistral': 496, 'n_tokens_neox': 487, 'n_words': 121}