<commit_before>﻿using System;

namespace HedgeLib.Archives
{
    public class ArchiveData
    {
        // Variables/Constants
        public string Name;
        
        // Methods
        public virtual void Extract(string filePath)
        {
            throw new NotImplementedException();
        }
    }
}<commit_msg>Make ArchiveData implement IComparable Should allow you to sort lists of ArchiveData objects (and anything that extends from it, such as ArchiveFile) by name, alphabetically.<commit_after>﻿using System;

namespace HedgeLib.Archives
{
    public class ArchiveData : IComparable
    {
        // Variables/Constants
        public string Name;
        
        // Methods
        public virtual void Extract(string filePath)
        {
            throw new NotImplementedException();
        }

        public virtual int CompareTo(object obj)
        {
            if (obj == null)
                return 1;

            if (obj is ArchiveData data)
                return Name.CompareTo(data.Name);

            throw new NotImplementedException(
                $"Cannot compare {GetType()} to {obj.GetType()}!");
        }
    }
}
{'fraction_non_alphanumeric': 0.0726643598615917, 'fraction_numerical': 0.0008650519031141869, 'mean_word_length': 1.8925, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '5373220', 'n_tokens_mistral': 301, 'n_tokens_neox': 281, 'n_words': 91}