<commit_before>#pragma warning disable 1591

using System;
using System.Text;

namespace Braintree
{
    public class CreditCardAddressOptionsRequest : Request
    {
        public Boolean UpdateExisting { get; set; }

        public override String ToXml()
        {
            return ToXml("options");
        }

        public override String ToXml(String rootElement)
        {
            StringBuilder builder = new StringBuilder();
            builder.Append(String.Format("<{0}>", rootElement));
            builder.Append(BuildXMLElement("update-existing", UpdateExisting));
            builder.Append(String.Format("</{0}>", rootElement));
            
            return builder.ToString();
        }

        public override String ToQueryString()
        {
            return ToQueryString("options");
        }

        public override String ToQueryString(String root)
        {
            return new QueryString().
                Append(ParentBracketChildString(root, "update_existing"), UpdateExisting).
                ToString();
        }

    }
}
<commit_msg>[#1897] - use RequestBuilder to build CreditCardAddressOptionsRequest<commit_after>#pragma warning disable 1591

using System;
using System.Text;

namespace Braintree
{
    public class CreditCardAddressOptionsRequest : Request
    {
        public Boolean UpdateExisting { get; set; }

        public override String ToXml()
        {
            return ToXml("options");
        }

        public override String ToXml(String root)
        {
            return BuildRequest(root).ToXml();
        }

        public override String ToQueryString()
        {
            return ToQueryString("options");
        }

        public override String ToQueryString(String root)
        {
            return BuildRequest(root).ToQueryString();
        }

        protected virtual RequestBuilder BuildRequest(String root)
        {
            return new RequestBuilder(root).AddElement("update-existing", UpdateExisting.ToString().ToLower());
        }
    }
}

{'fraction_non_alphanumeric': 0.08925944090240313, 'fraction_numerical': 0.006866110838646395, 'mean_word_length': 2.1677018633540373, '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': '2879722', 'n_tokens_mistral': 501, 'n_tokens_neox': 479, 'n_words': 119}