<commit_before>using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Ploeh.Albedo
{
    public class CompositeReflectionElement : IReflectionElement, IEnumerable<IReflectionElement>
    {
        private readonly IEnumerable<IReflectionElement> elements;

        public CompositeReflectionElement(params IReflectionElement[] elements)
        {
            this.elements = elements;
        }

        public IReflectionVisitor<T> Accept<T>(IReflectionVisitor<T> visitor)
        {
            return this.elements.Aggregate(visitor, (v, e) => e.Accept(v));
        }

        public IEnumerator<IReflectionElement> GetEnumerator()
        {
            return this.elements.GetEnumerator();
        }

        System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator()
        {
            return this.GetEnumerator();
        }
    }
}<commit_msg>Added XML documentation to CompositeReflectionElement class.<commit_after>using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Ploeh.Albedo
{
    /// <summary>
    /// An implementation of a polymorphic <see cref="IReflectionElement"/> 
    /// that composes other <see cref="IReflectionElement"/> instances which
    /// can be visited by an <see cref="IReflectionVisitor{T}"/> instance.
    /// </summary>
    public class CompositeReflectionElement : IReflectionElement, IEnumerable<IReflectionElement>
    {
        private readonly IEnumerable<IReflectionElement> elements;

        /// <summary>
        /// Initializes a new instance of the 
        /// <see cref="CompositeReflectionElement"/> class.
        /// </summary>
        /// <param name="elements">
        /// The <see cref="IReflectionElement"/> instances to compose.</param>
        public CompositeReflectionElement(params IReflectionElement[] elements)
        {
            this.elements = elements;
        }

        /// <summary>
        /// Accepts the <see cref="IReflectionVisitor{T}"/> visitor.
        /// </summary>
        /// <typeparam name="T">
        /// The type of observation(s) of the vistor.
        /// </typeparam>
        /// <param name="visitor">The visitor to accept.</param>
        /// <returns></returns>
        public IReflectionVisitor<T> Accept<T>(IReflectionVisitor<T> visitor)
        {
            return this.elements.Aggregate(visitor, (v, e) => e.Accept(v));
        }

        /// <summary>
        /// Returns an enumerator that iterates through the supplied 
        /// <see cref="IReflectionElement"/> instances.
        /// </summary>
        /// <returns>
        /// A <see cref="IEnumerator{IReflectionElement}" /> that can be used to
        /// iterate through the supplied <see cref="IReflectionElement"/> 
        /// instances.
        /// </returns>
        public IEnumerator<IReflectionElement> GetEnumerator()
        {
            return this.elements.GetEnumerator();
        }

        System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator()
        {
            return this.GetEnumerator();
        }
    }
}
{'fraction_non_alphanumeric': 0.11481020535158681, 'fraction_numerical': 0.0, 'mean_word_length': 2.1335282651072123, 'pattern_counts': {'":': 0, '<': 42, '<?xml version=': 0, '>': 44, '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': '5987853', 'n_tokens_mistral': 814, 'n_tokens_neox': 827, 'n_words': 187}