<commit_before>﻿﻿// Version compatibility level: 3.1.0
namespace BoboBrowse.Net.Sort
{
    using Lucene.Net.Index;
    using Lucene.Net.Search;
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;

    public class ReverseDocComparatorSource : DocComparatorSource
    {
        private readonly DocComparatorSource _inner;

        public ReverseDocComparatorSource(DocComparatorSource inner)
        {
            _inner = inner;
        }

        public override DocComparator GetComparator(IndexReader reader, int docbase)
        {
            return new ReverseDocComparator(_inner.GetComparator(reader, docbase));
        }

        public class ReverseDocComparator : DocComparator
        {
            private readonly DocComparator _comparator;

            public ReverseDocComparator(DocComparator comparator)
            {
                _comparator = comparator;
            }

            public override int Compare(ScoreDoc doc1, ScoreDoc doc2)
            {
                return -_comparator.Compare(doc1, doc2);
            }

            public override IComparable Value(ScoreDoc doc)
            {
                return new ReverseComparable(_comparator.Value(doc));
            }

            [Serializable]
            public class ReverseComparable : IComparable
            {
                //private static long serialVersionUID = 1L; // NOT USED

                private readonly IComparable _inner;

                public ReverseComparable(IComparable inner)
                {
                    _inner = inner;
                }

                public int CompareTo(object obj)
                {
                    if (obj is ReverseComparable)
                    {
                        IComparable inner = ((ReverseComparable)obj)._inner;
                        return -_inner.CompareTo(inner);
                    }
                    else
                    {
                        throw new ArgumentException("expected instance of ReverseComparable");
                    }
                }

                public override string ToString()
                {
                    return string.Concat("!", _inner);
                }
            }
        }
    }
}<commit_msg>Changed accessibility of ReverseDocComparatorSource.ReverseDocComparator.ReverseComparable.Compare to virtual.<commit_after>﻿﻿// Version compatibility level: 3.1.0
namespace BoboBrowse.Net.Sort
{
    using Lucene.Net.Index;
    using Lucene.Net.Search;
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;

    public class ReverseDocComparatorSource : DocComparatorSource
    {
        private readonly DocComparatorSource _inner;

        public ReverseDocComparatorSource(DocComparatorSource inner)
        {
            _inner = inner;
        }

        public override DocComparator GetComparator(IndexReader reader, int docbase)
        {
            return new ReverseDocComparator(_inner.GetComparator(reader, docbase));
        }

        public class ReverseDocComparator : DocComparator
        {
            private readonly DocComparator _comparator;

            public ReverseDocComparator(DocComparator comparator)
            {
                _comparator = comparator;
            }

            public override int Compare(ScoreDoc doc1, ScoreDoc doc2)
            {
                return -_comparator.Compare(doc1, doc2);
            }

            public override IComparable Value(ScoreDoc doc)
            {
                return new ReverseComparable(_comparator.Value(doc));
            }

            [Serializable]
            public class ReverseComparable : IComparable
            {
                //private static long serialVersionUID = 1L; // NOT USED

                private readonly IComparable _inner;

                public ReverseComparable(IComparable inner)
                {
                    _inner = inner;
                }

                public virtual int CompareTo(object obj)
                {
                    if (obj is ReverseComparable)
                    {
                        IComparable inner = ((ReverseComparable)obj)._inner;
                        return -_inner.CompareTo(inner);
                    }
                    else
                    {
                        throw new ArgumentException("expected instance of " + typeof(ReverseComparable));
                    }
                }

                public override string ToString()
                {
                    return string.Concat("!", _inner);
                }
            }
        }
    }
}
{'fraction_non_alphanumeric': 0.0605477107402653, 'fraction_numerical': 0.0034231921266581087, 'mean_word_length': 1.4185204345576823, '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': '6721223', 'n_tokens_mistral': 1117, 'n_tokens_neox': 1043, 'n_words': 250}