<commit_before>﻿using JetBrains.Annotations;

namespace PowerAssert.Infrastructure.Nodes
{
    class UnaryNode : Node
    {
        [CanBeNull]
        public string Prefix { get; set; }

        [CanBeNull]
        public string Suffix { get; set; }

        [NotNull]
        public Node Operand { get; set; }

        [CanBeNull]
        public string PrefixValue { get; set; }

        [CanBeNull]
        public string SuffixValue { get; set; }

        internal override void Walk(NodeWalker walker, int depth, bool wrap)
        {
            if (!string.IsNullOrEmpty(Prefix))
            {
                walker(Prefix, PrefixValue, depth + 1);
            }
            Operand.Walk(walker, depth, Priority < Operand.Priority);
            if (!string.IsNullOrEmpty(Suffix))
            {
                walker(Suffix, SuffixValue, depth + 1);
            }
        }
    }
}<commit_msg>UnaryNode: Suffix is no longer needed<commit_after>﻿using JetBrains.Annotations;

namespace PowerAssert.Infrastructure.Nodes
{
    class UnaryNode : Node
    {
        [CanBeNull]
        public string Prefix { get; set; }

        [NotNull]
        public Node Operand { get; set; }

        [CanBeNull]
        public string PrefixValue { get; set; }

        internal override void Walk(NodeWalker walker, int depth, bool wrap)
        {
            if (!string.IsNullOrEmpty(Prefix))
            {
                walker(Prefix, PrefixValue, depth + 1);
            }
            Operand.Walk(walker, depth, Priority < Operand.Priority);
        }
    }
}
{'fraction_non_alphanumeric': 0.09306803594351733, 'fraction_numerical': 0.0019255455712451862, 'mean_word_length': 1.8140794223826715, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '3944975', 'n_tokens_mistral': 456, 'n_tokens_neox': 434, 'n_words': 111}