<commit_before>﻿using System;
using System.Collections;
using System.Collections.Generic;
using MessageTemplates.Structure;

namespace MessageTemplates.Core
{
    /// <summary>
    /// 
    /// </summary>
    public class TemplatePropertyList : IEnumerable<TemplateProperty>
    {
        private readonly TemplateProperty[] result;

        /// <summary>
        /// 
        /// </summary>
        /// <param name="result"></param>
        public TemplatePropertyList(TemplateProperty[] result)
        {
            this.result = result;
        }

        /// <summary>
        /// 
        /// </summary>
        public int Length => result.Length;

        /// <summary>
        /// 
        /// </summary>
        /// <param name="index"></param>
        /// <returns></returns>
        public TemplateProperty this[int index] => result[index];

        /// <summary>Returns an enumerator that iterates through a collection.</summary>
        /// <returns>An <see cref="T:System.Collections.IEnumerator" /> object that can be used to iterate through the collection.</returns>
        public IEnumerator<TemplateProperty> GetEnumerator()
        {
            for (int index = 0; index < result.Length; index++)
            {
                var templateProperty = result[index];
                yield return templateProperty;
            }
        }

        /// <summary>Returns an enumerator that iterates through a collection.</summary>
        /// <returns>An <see cref="T:System.Collections.IEnumerator" /> object that can be used to iterate through the collection.</returns>
        IEnumerator IEnumerable.GetEnumerator()
        {
            return GetEnumerator();
        }
    }
}<commit_msg>fixed TemplatePropertyList enumeration<commit_after>﻿using System;
using System.Collections;
using System.Collections.Generic;
using MessageTemplates.Structure;

namespace MessageTemplates.Core
{
    /// <summary>
    /// 
    /// </summary>
    public class TemplatePropertyList : IEnumerable<TemplateProperty>
    {
        private readonly TemplateProperty[] result;

        /// <summary>
        /// 
        /// </summary>
        /// <param name="result"></param>
        public TemplatePropertyList(TemplateProperty[] result)
        {
            if (result == null) throw new ArgumentNullException(nameof(result));
            this.result = result;
        }

        /// <summary>
        /// 
        /// </summary>
        public int Length => result.Length;

        /// <summary>
        /// 
        /// </summary>
        /// <param name="index"></param>
        /// <returns></returns>
        public TemplateProperty this[int index] => result[index];

        /// <summary>Returns an enumerator that iterates through a collection.</summary>
        /// <returns>An <see cref="IEnumerator{T}" /> object that can be used to iterate 
        /// through the collection.</returns>
        public IEnumerator<TemplateProperty> GetEnumerator()
        {
            return ((IEnumerable<TemplateProperty>) result).GetEnumerator();
        }

        /// <summary>Returns an enumerator that iterates through a collection.</summary>
        /// <returns>An <see cref="T:System.Collections.IEnumerator" /> object that can be used to iterate through the collection.</returns>
        IEnumerator IEnumerable.GetEnumerator()
        {
            return GetEnumerator();
        }
    }
}
{'fraction_non_alphanumeric': 0.12650425594364545, 'fraction_numerical': 0.000293513354857646, 'mean_word_length': 2.021276595744681, 'pattern_counts': {'":': 0, '<': 57, '<?xml version=': 0, '>': 60, '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': '3948347', 'n_tokens_mistral': 844, 'n_tokens_neox': 830, 'n_words': 212}