<commit_before><?php

namespace jamesiarmes\PEWS\API\Type;

/**
 * Class representing MessageType
 *
 *
 * XSD Type: MessageType
 *
 * @method SingleRecipientType getSender()
 * @method MessageType setSender(SingleRecipientType $sender)
 * @method MessageType addToRecipients(EmailAddressType $toRecipients)
 * @method EmailAddressType[] getToRecipients()
 * @method MessageType setToRecipients(array $toRecipients)
 * @method MessageType addCcRecipients(EmailAddressType $ccRecipients)
 * @method EmailAddressType[] getCcRecipients()
 * @method MessageType setCcRecipients(array $ccRecipients)
 * @method MessageType addBccRecipients(EmailAddressType $bccRecipients)
 * @method EmailAddressType[] getBccRecipients()
 * @method MessageType setBccRecipients(array $bccRecipients)
 * @method boolean getIsReadReceiptRequested()
 * @method MessageType setIsReadReceiptRequested(boolean $isReadReceiptRequested)
 * @method boolean getIsDeliveryReceiptRequested()
 * @method MessageType setIsDeliveryReceiptRequested(boolean $isDeliveryReceiptRequested)
 * @method string getConversationIndex()
 * @method MessageType setConversationIndex(string $conversationIndex)
 * @method string getConversationTopic()
 * @method MessageType setConversationTopic(string $conversationTopic)
 * @method SingleRecipientType getFrom()
 * @method MessageType setFrom(SingleRecipientType $from)
 * @method string getInternetMessageId()
 * @method MessageType setInternetMessageId(string $internetMessageId)
 * @method boolean getIsRead()
 * @method MessageType setIsRead(boolean $isRead)
 * @method boolean getIsResponseRequested()
 * @method MessageType setIsResponseRequested(boolean $isResponseRequested)
 * @method string getReferences()
 * @method MessageType setReferences(string $references)
 * @method MessageType addReplyTo(EmailAddressType $replyTo)
 * @method EmailAddressType[] getReplyTo()
 * @method MessageType setReplyTo(array $replyTo)
 * @method SingleRecipientType getReceivedBy()
 * @method MessageType setReceivedBy(SingleRecipientType $receivedBy)
 * @method SingleRecipientType getReceivedRepresenting()
 * @method MessageType setReceivedRepresenting(SingleRecipientType $receivedRepresenting)
 */
class MessageType extends ItemType
{

    /**
     * @var \jamesiarmes\PEWS\API\Type\SingleRecipientType
     */
    protected $sender = null;

    /**
     * @var \jamesiarmes\PEWS\API\Type\EmailAddressType[]
     */
    protected $toRecipients = null;

    /**
     * @var \jamesiarmes\PEWS\API\Type\EmailAddressType[]
     */
    protected $ccRecipients = null;

    /**
     * @var \jamesiarmes\PEWS\API\Type\EmailAddressType[]
     */
    protected $bccRecipients = null;

    /**
     * @var boolean
     */
    protected $isReadReceiptRequested = null;

    /**
     * @var boolean
     */
    protected $isDeliveryReceiptRequested = null;

    /**
     * @var string
     */
    protected $conversationIndex = null;

    /**
     * @var string
     */
    protected $conversationTopic = null;

    /**
     * @var \jamesiarmes\PEWS\API\Type\SingleRecipientType
     */
    protected $from = null;

    /**
     * @var string
     */
    protected $internetMessageId = null;

    /**
     * @var boolean
     */
    protected $isRead = null;

    /**
     * @var boolean
     */
    protected $isResponseRequested = null;

    /**
     * @var string
     */
    protected $references = null;

    /**
     * @var \jamesiarmes\PEWS\API\Type\EmailAddressType[]
     */
    protected $replyTo = null;

    /**
     * @var \jamesiarmes\PEWS\API\Type\SingleRecipientType
     */
    protected $receivedBy = null;

    /**
     * @var \jamesiarmes\PEWS\API\Type\SingleRecipientType
     */
    protected $receivedRepresenting = null;
}<commit_msg>Added MessageType::isAReply()<commit_after><?php

namespace jamesiarmes\PEWS\API\Type;

/**
 * Class representing MessageType
 *
 *
 * XSD Type: MessageType
 *
 * @method SingleRecipientType getSender()
 * @method MessageType setSender(SingleRecipientType $sender)
 * @method MessageType addToRecipients(EmailAddressType $toRecipients)
 * @method EmailAddressType[] getToRecipients()
 * @method MessageType setToRecipients(array $toRecipients)
 * @method MessageType addCcRecipients(EmailAddressType $ccRecipients)
 * @method EmailAddressType[] getCcRecipients()
 * @method MessageType setCcRecipients(array $ccRecipients)
 * @method MessageType addBccRecipients(EmailAddressType $bccRecipients)
 * @method EmailAddressType[] getBccRecipients()
 * @method MessageType setBccRecipients(array $bccRecipients)
 * @method boolean getIsReadReceiptRequested()
 * @method MessageType setIsReadReceiptRequested(boolean $isReadReceiptRequested)
 * @method boolean getIsDeliveryReceiptRequested()
 * @method MessageType setIsDeliveryReceiptRequested(boolean $isDeliveryReceiptRequested)
 * @method string getConversationIndex()
 * @method MessageType setConversationIndex(string $conversationIndex)
 * @method string getConversationTopic()
 * @method MessageType setConversationTopic(string $conversationTopic)
 * @method SingleRecipientType getFrom()
 * @method MessageType setFrom(SingleRecipientType $from)
 * @method string getInternetMessageId()
 * @method MessageType setInternetMessageId(string $internetMessageId)
 * @method boolean getIsRead()
 * @method MessageType setIsRead(boolean $isRead)
 * @method boolean getIsResponseRequested()
 * @method MessageType setIsResponseRequested(boolean $isResponseRequested)
 * @method string getReferences()
 * @method MessageType setReferences(string $references)
 * @method MessageType addReplyTo(EmailAddressType $replyTo)
 * @method EmailAddressType[] getReplyTo()
 * @method MessageType setReplyTo(array $replyTo)
 * @method SingleRecipientType getReceivedBy()
 * @method MessageType setReceivedBy(SingleRecipientType $receivedBy)
 * @method SingleRecipientType getReceivedRepresenting()
 * @method MessageType setReceivedRepresenting(SingleRecipientType $receivedRepresenting)
 */
class MessageType extends ItemType
{

    /**
     * @var \jamesiarmes\PEWS\API\Type\SingleRecipientType
     */
    protected $sender = null;

    /**
     * @var \jamesiarmes\PEWS\API\Type\EmailAddressType[]
     */
    protected $toRecipients = null;

    /**
     * @var \jamesiarmes\PEWS\API\Type\EmailAddressType[]
     */
    protected $ccRecipients = null;

    /**
     * @var \jamesiarmes\PEWS\API\Type\EmailAddressType[]
     */
    protected $bccRecipients = null;

    /**
     * @var boolean
     */
    protected $isReadReceiptRequested = null;

    /**
     * @var boolean
     */
    protected $isDeliveryReceiptRequested = null;

    /**
     * @var string
     */
    protected $conversationIndex = null;

    /**
     * @var string
     */
    protected $conversationTopic = null;

    /**
     * @var \jamesiarmes\PEWS\API\Type\SingleRecipientType
     */
    protected $from = null;

    /**
     * @var string
     */
    protected $internetMessageId = null;

    /**
     * @var boolean
     */
    protected $isRead = null;

    /**
     * @var boolean
     */
    protected $isResponseRequested = null;

    /**
     * @var string
     */
    protected $references = null;

    /**
     * @var \jamesiarmes\PEWS\API\Type\EmailAddressType[]
     */
    protected $replyTo = null;

    /**
     * @var \jamesiarmes\PEWS\API\Type\SingleRecipientType
     */
    protected $receivedBy = null;

    /**
     * @var \jamesiarmes\PEWS\API\Type\SingleRecipientType
     */
    protected $receivedRepresenting = null;

    /**
     * @return bool
     */
    public function isAReply()
    {
        return ($this->exists('InReplyTo') && $this->InReplyTo !== null);
    }
}
{'fraction_non_alphanumeric': 0.10924040720438528, 'fraction_numerical': 0.0, 'mean_word_length': 3.896485623003195, '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': '898396', 'n_tokens_mistral': 2391, 'n_tokens_neox': 2258, 'n_words': 452}