<commit_before>using System;

namespace Nirvana.Domain
{
    public abstract class RootType
    {
        public abstract string RootName { get; }
    }


    public abstract class AggregateRootAttribute : Attribute
    {
        public string RootName => RootType.RootName;
        public RootType RootType { get; private set; }
        public string Identifier { get; private set; }

        public static string FilterName(string cqrsTypeName )
        {
            var q = "Query";
            if (cqrsTypeName.EndsWith(q))
            {
                return cqrsTypeName.Substring(0, cqrsTypeName.Length - q.Length);
            }
            q = "Command";
            if (cqrsTypeName.EndsWith(q))
            {
                return cqrsTypeName.Substring(0, cqrsTypeName.Length - q.Length);
            }
            q = "UiEvent";
            if (cqrsTypeName.EndsWith(q))
            {
                return cqrsTypeName.Substring(0, cqrsTypeName.Length - q.Length);
            }
            return q;
        }


        protected AggregateRootAttribute(RootType rootType, Type parameterType)
        {
            RootType = rootType;
            Identifier = FilterName(parameterType.Name);
        }
    }
}<commit_msg>Added public / Private delineation in root type attribute<commit_after>using System;

namespace Nirvana.Domain
{
    public abstract class RootType
    {
        public abstract string RootName { get; }
    }


    public abstract class AggregateRootAttribute : Attribute
    {
        public string RootName => RootType.RootName;
        public RootType RootType { get; private set; }
        public string Identifier { get; private set; }
        public bool Public{ get; private set; }

        public static string FilterName(string cqrsTypeName )
        {
            var q = "Query";
            if (cqrsTypeName.EndsWith(q))
            {
                return cqrsTypeName.Substring(0, cqrsTypeName.Length - q.Length);
            }
            q = "Command";
            if (cqrsTypeName.EndsWith(q))
            {
                return cqrsTypeName.Substring(0, cqrsTypeName.Length - q.Length);
            }
            q = "UiEvent";
            if (cqrsTypeName.EndsWith(q))
            {
                return cqrsTypeName.Substring(0, cqrsTypeName.Length - q.Length);
            }
            return q;
        }


        protected AggregateRootAttribute(RootType rootType, Type parameterType,bool isPublic=false)
        {
            RootType = rootType;
            Identifier = FilterName(parameterType.Name);
            Public = isPublic;
        }
    }
}
{'fraction_non_alphanumeric': 0.08044224170796797, 'fraction_numerical': 0.002287457110179184, 'mean_word_length': 1.7135470527404344, 'pattern_counts': {'":': 0, '<': 3, '<?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': '6703742', 'n_tokens_mistral': 728, 'n_tokens_neox': 719, 'n_words': 166}