<commit_before>﻿using System;
using vCardLib.Models;

namespace vCardLib.Collections
{
    /// <summary>
    /// Collection class to hold all contact expertises
    /// </summary>
    public class ExpertiseCollection : System.Collections.CollectionBase
    {
        /// <summary>
        /// Method to add expertise to the expertise collection
        /// </summary>
        /// <param name="expertise">Expertise object to be added</param>
        public void Add(Expertise expertise)
        {
            List.Add(expertise);
        }

        /// <summary>
        /// Method to remove a expertise from the expertise collection
        /// </summary>
        /// <param name="expertise">Expertise object to be removed</param>
        public void Remove(Expertise expertise)
        {
            List.Remove(expertise);
        }

        /// <summary>
        /// Indexer to enable index access to the collection
        /// </summary>
        /// <param name="index">zero based index of the object to be returned</param>
        /// <returns>a Expertise object at the specified index</returns>
        public Expertise this[int index]
        {
            get
            {
                if (index < 0 || index >= List.Count)
                    throw new IndexOutOfRangeException("Index cannot be " + index + " because collection does not contain as many elements");
                else
                    return (Expertise)List[index];
            }
            set
            {
                if (index < 0 || index >= List.Count)
                    throw new IndexOutOfRangeException("Index cannot be " + index + " because collection does not contain as many elements");
                else
                    List[index] = value;
            }
        }
    }
}<commit_msg>#33 | syntax upgrades for the expertise collection<commit_after>﻿using System;
using System.Collections;
using vCardLib.Models;

namespace vCardLib.Collections
{
    /// <summary>
    /// Collection class to hold all contact expertises
    /// </summary>
    public class ExpertiseCollection : CollectionBase
    {
        /// <summary>
        /// Method to add expertise to the expertise collection
        /// </summary>
        /// <param name="expertise">Expertise object to be added</param>
        public void Add(Expertise expertise)
        {
            List.Add(expertise);
        }

        /// <summary>
        /// Method to remove a expertise from the expertise collection
        /// </summary>
        /// <param name="expertise">Expertise object to be removed</param>
        public void Remove(Expertise expertise)
        {
            List.Remove(expertise);
        }

        /// <summary>
        /// Indexer to enable index access to the collection
        /// </summary>
        /// <param name="index">zero based index of the object to be returned</param>
        /// <returns>a Expertise object at the specified index</returns>
        public Expertise this[int index]
        {
            get
            {
                if (index < 0 || index >= List.Count)
                {
                    throw new IndexOutOfRangeException("Index cannot be " + index +
                                                       " because collection does not contain as many elements");
                }

                return (Expertise) List[index];
            }
            set
            {
                if (index < 0 || index >= List.Count)
                {
                    throw new IndexOutOfRangeException("Index cannot be " + index +
                                                       " because collection does not contain as many elements");
                }

                List[index] = value;
            }
        }
    }
}
{'fraction_non_alphanumeric': 0.0965773414698859, 'fraction_numerical': 0.0015919342000530645, 'mean_word_length': 1.4640522875816993, 'pattern_counts': {'":': 0, '<': 39, '<?xml version=': 0, '>': 39, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '359795', 'n_tokens_mistral': 901, 'n_tokens_neox': 863, 'n_words': 289}