<commit_before>using Mono.Cecil;
using System.Collections.Generic;
using System.Linq;

namespace PublicApiGenerator
{
    internal sealed partial class AttributeFilter
    {
        private readonly HashSet<string> _excludedAttributes;

        public AttributeFilter(IEnumerable<string> excludedAttributes)
        {
            _excludedAttributes = excludedAttributes is null
                ? SkippedAttributeNames
                : new HashSet<string>(SkippedAttributeNames.Concat(excludedAttributes));
        }

        public bool ShouldIncludeAttribute(CustomAttribute attribute)
        {
            var attributeTypeDefinition = attribute.AttributeType.Resolve();
            return attributeTypeDefinition != null && !_excludedAttributes.Contains(attribute.AttributeType.FullName) && (attributeTypeDefinition.IsPublic || attributeTypeDefinition.FullName == "System.Runtime.CompilerServices.NullableAttribute");
        }
    }
}<commit_msg>Remove unused check<commit_after>using Mono.Cecil;
using System.Collections.Generic;
using System.Linq;

namespace PublicApiGenerator
{
    internal sealed partial class AttributeFilter
    {
        private readonly HashSet<string> _excludedAttributes;

        public AttributeFilter(IEnumerable<string> excludedAttributes)
        {
            _excludedAttributes = excludedAttributes is null
                ? SkippedAttributeNames
                : new HashSet<string>(SkippedAttributeNames.Concat(excludedAttributes));
        }

        public bool ShouldIncludeAttribute(CustomAttribute attribute)
        {
            var attributeTypeDefinition = attribute.AttributeType.Resolve();
            return attributeTypeDefinition != null && !_excludedAttributes.Contains(attribute.AttributeType.FullName) && attributeTypeDefinition.IsPublic;
        }
    }
}
{'fraction_non_alphanumeric': 0.07036833424958769, 'fraction_numerical': 0.0, 'mean_word_length': 3.3645083932853717, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '4542799', 'n_tokens_mistral': 412, 'n_tokens_neox': 408, 'n_words': 82}