<commit_before>namespace BootstrapTagHelpers {
    using System.Collections.Generic;
    using System.Linq;

    using Microsoft.AspNet.Razor.Runtime.TagHelpers;

    public static class TagHelperOutputExtensions
    {
        /// <summary>
        /// Adds an attribute to the Attributes collection. Existing Attributes are overwritten.
        /// </summary>
        public static void MergeAttribute(this TagHelperOutput output, string key, object value)
        {
            if (output.Attributes.ContainsName(key))
                output.Attributes[key].Value = value;
            else
                output.Attributes.Add(key, value);
        }

        /// <summary>
        /// Adds an attribute to the Attributes collection. Existing Attributes are overwritten.
        /// </summary>
        public static void MergeAttribute(this TagHelperOutput output, string key, string value)
        {
            MergeAttribute(output, key, value, false);
        }
<commit_msg>Added methods for adding aria and data attributes<commit_after>namespace BootstrapTagHelpers {
    using System.Collections.Generic;
    using System.Linq;

    using Microsoft.AspNet.Razor.Runtime.TagHelpers;

    public static class TagHelperOutputExtensions
    {
        /// <summary>
        /// Adds an attribute to the Attributes collection. Existing Attributes are overwritten.
        /// </summary>
        public static void MergeAttribute(this TagHelperOutput output, string key, object value)
        {
            if (output.Attributes.ContainsName(key))
                output.Attributes[key].Value = value;
            else
                output.Attributes.Add(key, value);
        }

        /// <summary>
        /// Adds an aria attribute
        /// </summary>
        /// <param name="name">Name of the attribute. "aria-" is prepended.</param>
        /// <param name="value"></param>
        public static void AddAriaAttribute(this TagHelperOutput output, string name, object value) {
            output.MergeAttribute("aria-" + name, value);
        }

        /// <summary>
        /// Adds an aria attribute
        /// </summary>
        /// <param name="name">Name of the attribute. "aria-" is prepended.</param>
        /// <param name="value"></param>
        public static void AddDataAttribute(this TagHelperOutput output, string name, object value) {
            output.MergeAttribute("data-" + name, value);
        }

        /// <summary>
        /// Adds an attribute to the Attributes collection. Existing Attributes are overwritten.
        /// </summary>
        public static void MergeAttribute(this TagHelperOutput output, string key, string value)
        {
            MergeAttribute(output, key, value, false);
        }

{'fraction_non_alphanumeric': 0.10116448326055313, 'fraction_numerical': 0.0, 'mean_word_length': 2.130979498861048, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 23, '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': '5277992', 'n_tokens_mistral': 671, 'n_tokens_neox': 664, 'n_words': 203}