<commit_before>﻿namespace SLANG
{
    using System;

    /// <summary>Used to associate an implementation of <see cref="ILexer" /> with a grammar rule.</summary>
    [AttributeUsage(AttributeTargets.Class)]
    public sealed class RuleNameAttribute : Attribute
    {
        private readonly string ruleName;

        /// <summary>
        ///     Initializes a new instance of the <see cref="RuleNameAttribute" /> with a given rule name.
        /// </summary>
        /// <param name="ruleName">The name of the grammar rule.</param>
        public RuleNameAttribute(string ruleName)
        {
            this.ruleName = ruleName;
        }

        /// <summary>
        ///     Gets the name of the grammar rule.
        /// </summary>
        public string RuleName
        {
            get
            {
                return this.ruleName;
            }
        }
    }
}<commit_msg>Adding a null check for ruleName<commit_after>﻿namespace SLANG
{
    using System;

    /// <summary>Used to associate an implementation of <see cref="ILexer" /> with a grammar rule.</summary>
    [AttributeUsage(AttributeTargets.Class)]
    public sealed class RuleNameAttribute : Attribute
    {
        private readonly string ruleName;

        /// <summary>
        ///     Initializes a new instance of the <see cref="RuleNameAttribute" /> with a given rule name.
        /// </summary>
        /// <param name="ruleName">The name of the grammar rule.</param>
        public RuleNameAttribute(string ruleName)
        {
            if (ruleName == null)
            {
                throw new ArgumentNullException("ruleName");
            }

            this.ruleName = ruleName;
        }

        /// <summary>
        ///     Gets the name of the grammar rule.
        /// </summary>
        public string RuleName
        {
            get
            {
                return this.ruleName;
            }
        }
    }
}
{'fraction_non_alphanumeric': 0.10119356512714063, 'fraction_numerical': 0.0, 'mean_word_length': 1.5983827493261455, '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': '1346519', 'n_tokens_mistral': 494, 'n_tokens_neox': 477, 'n_words': 147}