<commit_before>using System;
using System.IO;
using System.Text;

namespace MqttLib.Core.Messages
{
    internal class MqttPubrecMessage : MqttMessage
    {
        private ulong _ackID;

        public ulong AckID
        {
            get
            {
                return _ackID;
            }
        }

        public MqttPubrecMessage(ulong ackID)
            : base(MessageType.PUBREC, 8)
        {
            _ackID = ackID;
            // Ensure that this message will be re-sent unless acknowledged
            msgQos = QoS.AtLeastOnce;
        }

        public MqttPubrecMessage(Stream str, byte header) : base(str, header)
        {
            // Ensure that this message can get resent in the event of failure
            this.msgQos = QoS.AtLeastOnce;
        }

        protected override void ConstructFromStream(System.IO.Stream str)
        {
            _ackID = ReadUlongFromStream(str);
        }

        protected override void SendPayload(Stream str)
        {
            WriteToStream(str, _ackID);
        }
    }
}<commit_msg>publish pubrec with qos0, to fix retry issue.<commit_after>using System;
using System.IO;
using System.Text;

namespace MqttLib.Core.Messages
{
    internal class MqttPubrecMessage : MqttMessage
    {
        private ulong _ackID;

        public ulong AckID
        {
            get
            {
                return _ackID;
            }
        }

        public MqttPubrecMessage(ulong ackID)
            : base(MessageType.PUBREC, 8)
        {
            _ackID = ackID;
            // Ensure that this message will be re-sent unless acknowledged
            msgQos = QoS.BestEfforts;
        }

        public MqttPubrecMessage(Stream str, byte header) : base(str, header)
        {
            // Ensure that this message can get resent in the event of failure
            this.msgQos = QoS.BestEfforts;
        }

        protected override void ConstructFromStream(System.IO.Stream str)
        {
            _ackID = ReadUlongFromStream(str);
        }

        protected override void SendPayload(Stream str)
        {
            WriteToStream(str, _ackID);
        }
    }
}
{'fraction_non_alphanumeric': 0.06691449814126393, 'fraction_numerical': 0.0013940520446096654, 'mean_word_length': 1.6160388821385177, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '1447457', 'n_tokens_mistral': 624, 'n_tokens_neox': 608, 'n_words': 155}