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

namespace ArmA.Studio.Data.Configuration
{
    public class Category : ConfigurationBaseClass, IEnumerable<SubCategory>
    {
        private readonly IEnumerable<SubCategory> InnerList;

        public IEnumerator<SubCategory> GetEnumerator() => InnerList.GetEnumerator();
        IEnumerator IEnumerable.GetEnumerator() => InnerList.GetEnumerator();

        public Category(IEnumerable<SubCategory> items)
        {
            this.InnerList = items;
        }
    }
}<commit_msg>added IList interface<commit_after>﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ArmA.Studio.Data.Configuration
{
    public class Category : ConfigurationBaseClass, IEnumerable<SubCategory>, IList<SubCategory>
    { 
        private readonly IList<SubCategory> InnerList;

        public IEnumerator<SubCategory> GetEnumerator() => InnerList.GetEnumerator();
        IEnumerator IEnumerable.GetEnumerator() => InnerList.GetEnumerator();

        public int Count => this.InnerList.Count;
        public bool IsReadOnly => this.InnerList.IsReadOnly;
        public SubCategory this[int index] { get { return this.InnerList[index]; } set { this.InnerList[index] = value; } }
        public int IndexOf(SubCategory item) => this.InnerList.IndexOf(item);
        public void Insert(int index, SubCategory item) => this.InnerList.Insert(index, item);
        public void RemoveAt(int index) => this.InnerList.RemoveAt(index);
        public void Add(SubCategory item) => this.InnerList.Add(item);
        public void Clear() => this.InnerList.Clear();
        public bool Contains(SubCategory item) => this.InnerList.Contains(item);
        public void CopyTo(SubCategory[] array, int arrayIndex) => this.InnerList.CopyTo(array, arrayIndex);
        public bool Remove(SubCategory item) => this.InnerList.Remove(item);
        public Category(IEnumerable<SubCategory> items) : this(items.ToList()) { }
        public Category(IList<SubCategory> items)
        {
            this.InnerList = items;
        }
    }
}
{'fraction_non_alphanumeric': 0.10521662245800177, 'fraction_numerical': 0.0, 'mean_word_length': 3.7442348008385746, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 27, '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': '357429', 'n_tokens_mistral': 615, 'n_tokens_neox': 618, 'n_words': 140}