<commit_before>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Elementary.Hierarchy
{
    public interface IHasDescendantNodes<TNode> : IHasChildNodes<TNode>
    {
        /// <summary>
        /// Retrieves the descandants of this node. The order of the descrndant nodes may be either 
        /// deoth first or breadth first. 
        /// The maximum depth of descending can be restricted.
        /// </summary>
        /// <param name="depthFirst">Descend dethf first or breadth first</param>
        /// <param name="maxDepth">maximum deopths of descending 0 is always empty set, 1 are the children of this node and so on</param>
        /// <returns>Enumerable set of descendant nodes, in the order of visiting</returns>
        IEnumerable<TNode> GetDescendants(bool depthFirst, int? maxDepth=null);
    }
}<commit_msg>IHasDescandants(GetDescendatns(...,maxDepth): max depth is no longer optional<commit_after>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Elementary.Hierarchy
{
    public interface IHasDescendantNodes<TNode> : IHasChildNodes<TNode>
    {
        /// <summary>
        /// Retrieves the descandants of this node. The order of the descrndant nodes may be either 
        /// deoth first or breadth first. 
        /// The maximum depth of descending can be restricted.
        /// </summary>
        /// <param name="depthFirst">Descend dethf first or breadth first</param>
        /// <param name="maxDepth">maximum deopths of descending 0 is always empty set, 1 are the children of this node and so on</param>
        /// <returns>Enumerable set of descendant nodes, in the order of visiting</returns>
        IEnumerable<TNode> GetDescendants(bool depthFirst, int maxDepth);
    }
}
{'fraction_non_alphanumeric': 0.09722222222222222, 'fraction_numerical': 0.002136752136752137, 'mean_word_length': 3.0717391304347825, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 25, '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': '1358155', 'n_tokens_mistral': 525, 'n_tokens_neox': 503, 'n_words': 182}