<commit_before>package org.motechproject.email.domain;

import org.joda.time.DateTime;
import org.motechproject.commons.date.util.DateUtil;
import org.motechproject.mds.annotations.Entity;
import org.motechproject.mds.annotations.Field;

import java.util.Objects;

/**
 * The <code>EmailRecord</code> class represents a record of a sent Email.
 * This class is exposed as an {@link org.motechproject.mds.annotations.Entity} through
 * Motech Data Services.
 *
 * @see org.motechproject.mds.annotations
 */
@Entity
public class EmailRecord {

    private String fromAddress;

    @Field
    private Long id;

    @Field(required = true)
    private String toAddress;

    @Field
    private String subject;

    @Field
    private String message;

    @Field(required = true)
    private DateTime deliveryTime;

    @Field(required = true)
    private DeliveryStatus deliveryStatus;

    /**<commit_msg>Adjust column length for Email messages<commit_after>package org.motechproject.email.domain;

import org.joda.time.DateTime;
import org.motechproject.commons.date.util.DateUtil;
import org.motechproject.mds.annotations.Entity;
import org.motechproject.mds.annotations.Field;

import javax.jdo.annotations.Column;
import java.util.Objects;

/**
 * The <code>EmailRecord</code> class represents a record of a sent Email.
 * This class is exposed as an {@link org.motechproject.mds.annotations.Entity} through
 * Motech Data Services.
 *
 * @see org.motechproject.mds.annotations
 */
@Entity
public class EmailRecord {

    private String fromAddress;

    @Field
    private Long id;

    @Field(required = true)
    private String toAddress;

    @Field
    private String subject;

    @Field
    @Column(length = 5000)
    private String message;

    @Field(required = true)
    private DateTime deliveryTime;

    @Field(required = true)
    private DeliveryStatus deliveryStatus;

    /**
{'fraction_non_alphanumeric': 0.09398099260823653, 'fraction_numerical': 0.0021119324181626186, 'mean_word_length': 3.8096446700507616, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '2146295', 'n_tokens_mistral': 576, 'n_tokens_neox': 539, 'n_words': 149}