<commit_before>﻿//  ------------------------------------------------------------------------------------
//  Copyright (c) Microsoft Corporation
//  All rights reserved. 
//  
//  Licensed under the Apache License, Version 2.0 (the ""License""); you may not use this 
//  file except in compliance with the License. You may obtain a copy of the License at 
//  http://www.apache.org/licenses/LICENSE-2.0  
//  
//  THIS CODE IS PROVIDED *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, 
//  EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR 
//  CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR 
//  NON-INFRINGEMENT. 
// 
//  See the Apache Version 2.0 License for specific language governing permissions and 
//  limitations under the License.
//  ------------------------------------------------------------------------------------

namespace Amqp.Framing
{
    using Amqp.Types;

    public sealed class Error : DescribedList
    {
        public Error()
            : base(Codec.Error, 3)
        {
        }

        public string Condition
        {
            get { return (string)this.Fields[0]; }
            set { this.Fields[0] = value; }
        }

        public string Description
        {
            get { return (string)this.Fields[1]; }
            set { this.Fields[1] = value; }
        }

        public Fields Info
        {
            get { return Amqp.Framing.Fields.From(this.Fields, 2); }
            set { this.Fields[2] = value; }
        }

        public override string ToString()
        {
#if TRACE
            return this.GetDebugString(
                "error",
                new object[] { "condition", "description", "fields" },
                this.Fields);
#else
            return base.ToString();
#endif
        }
    }
}<commit_msg>Error condition is symbol, not string<commit_after>﻿//  ------------------------------------------------------------------------------------
//  Copyright (c) Microsoft Corporation
//  All rights reserved. 
//  
//  Licensed under the Apache License, Version 2.0 (the ""License""); you may not use this 
//  file except in compliance with the License. You may obtain a copy of the License at 
//  http://www.apache.org/licenses/LICENSE-2.0  
//  
//  THIS CODE IS PROVIDED *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, 
//  EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR 
//  CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR 
//  NON-INFRINGEMENT. 
// 
//  See the Apache Version 2.0 License for specific language governing permissions and 
//  limitations under the License.
//  ------------------------------------------------------------------------------------

namespace Amqp.Framing
{
    using Amqp.Types;

    public sealed class Error : DescribedList
    {
        public Error()
            : base(Codec.Error, 3)
        {
        }

        public Symbol Condition
        {
            get { return (Symbol)this.Fields[0]; }
            set { this.Fields[0] = value; }
        }

        public string Description
        {
            get { return (string)this.Fields[1]; }
            set { this.Fields[1] = value; }
        }

        public Fields Info
        {
            get { return Amqp.Framing.Fields.From(this.Fields, 2); }
            set { this.Fields[2] = value; }
        }

#if TRACE
        public override string ToString()
        {
            return this.GetDebugString(
                "error",
                new object[] { "condition", "description", "fields" },
                this.Fields);
        }
#endif
    }
}
{'fraction_non_alphanumeric': 0.18325176726481784, 'fraction_numerical': 0.0070690592713431215, 'mean_word_length': 1.4494007989347537, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '194551', 'n_tokens_mistral': 949, 'n_tokens_neox': 930, 'n_words': 304}