<commit_before>package models;

import java.util.List;
import org.bson.types.ObjectId;
import play.data.validation.Constraints.Required;
import com.google.code.morphia.annotations.Entity;
import static models.BaseModel.ds;
import org.codehaus.jackson.annotate.JsonIgnoreProperties;

@Entity
@JsonIgnoreProperties(ignoreUnknown = true)
public class ContactRequest extends BaseModel {

    @Required
    public String name;
    @Required
    public String email;
    @Required
    public String message;

    public static ContactRequest find(String id) {
        return ds.find(ContactRequest.class).field("_id").equal(new ObjectId(id)).get();
    }

    public static List<ContactRequest> all() {
        return allItems(ContactRequest.class);
    }

    public static void save(ContactRequest item) {
        saveItem(item);
    }

    public static void delete(String idToDelete) {
        deleteItem(ContactRequest.class, find(idToDelete));
    }
}<commit_msg>Added user token to info and contact request<commit_after>package models;

import java.util.List;
import org.bson.types.ObjectId;
import play.data.validation.Constraints.Required;
import com.google.code.morphia.annotations.Entity;
import static models.BaseModel.ds;
import org.codehaus.jackson.annotate.JsonIgnoreProperties;

@Entity
@JsonIgnoreProperties(ignoreUnknown = true)
public class ContactRequest extends BaseModel {

    @Required
    public String name;
    @Required
    public String email;
    @Required
    public String message;
    @Required
    public String userToken;

    public static ContactRequest find(String id) {
        return ds.find(ContactRequest.class).field("_id").equal(new ObjectId(id)).get();
    }

    public static List<ContactRequest> all() {
        return allItems(ContactRequest.class);
    }

    public static void save(ContactRequest item) {
        saveItem(item);
    }

    public static void delete(String idToDelete) {
        deleteItem(ContactRequest.class, find(idToDelete));
    }
}
{'fraction_non_alphanumeric': 0.094, 'fraction_numerical': 0.0, 'mean_word_length': 3.9044117647058822, 'pattern_counts': {'":': 0, '<': 5, '<?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': '5424444', 'n_tokens_mistral': 559, 'n_tokens_neox': 545, 'n_words': 135}