<commit_before>using System.Collections.Generic;
using JetBrains.Annotations;

namespace isukces.code.interfaces.Ammy
{
    public interface IAmmyNamespaceProvider
    {
        [NotNull]
        ISet<string> Namespaces { get; }   
    }
}<commit_msg>new extension methods<commit_after>using System;
using System.Collections.Generic;
using JetBrains.Annotations;

namespace isukces.code.interfaces.Ammy
{
    public interface IAmmyNamespaceProvider
    {
        [NotNull]
        ISet<string> Namespaces { get; }
    }


    public static class AmmyNamespaceProviderExt
    {
        public static void AddNamespace([NotNull] this IAmmyNamespaceProvider src, [NotNull] Type type)
        {
            if (src == null) throw new ArgumentNullException(nameof(src));
            if (type == null) throw new ArgumentNullException(nameof(type));
            var ns = type.Namespace;
            if (!string.IsNullOrEmpty(ns))
                src.Namespaces.Add(ns);
        }

        public static void AddNamespace<T>([NotNull] this IAmmyNamespaceProvider src)
        {
            src.AddNamespace(typeof(T));
        }
    }
}
{'fraction_non_alphanumeric': 0.09042553191489362, 'fraction_numerical': 0.0, 'mean_word_length': 2.6775244299674266, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, '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': '823014', 'n_tokens_mistral': 316, 'n_tokens_neox': 314, 'n_words': 70}