<commit_before>﻿using System.Collections.Generic;

namespace Shience.Result
{
    public class ExperimentResult<TResult>
    {
        public string TestName { get; set; }
        public TestResult<TResult> ControlResult { get; set; }
        public TestResult<TResult> CandidateResult { get; set; }
        private readonly IComparer<TResult> _comparer;
        public bool ControlRanFirst { get; set; }

        public ExperimentResult(IComparer<TResult> comparer)
        {
            if (comparer == null)
            {
                comparer = Comparer<TResult>.Default;
            }
            _comparer = comparer;
        }

        public bool Matched
        {
            get { return _comparer.Compare(ControlResult.Result, CandidateResult.Result) == 0; }
        }
    }
}<commit_msg>Updated Matched to use .equals for now<commit_after>﻿using System;
using System.Collections.Generic;

namespace Shience.Result
{
    public class ExperimentResult<TResult>
    {
        public string TestName { get; set; }
        public TestResult<TResult> ControlResult { get; set; }
        public TestResult<TResult> CandidateResult { get; set; }
        private readonly IComparer<TResult> _comparer;
        public bool ControlRanFirst { get; set; }

        public ExperimentResult(IComparer<TResult> comparer)
        {
            if (comparer == null)
            {
                comparer = Comparer<TResult>.Default;
            }
            _comparer = comparer;
        }

        public bool Matched
        {
            get { return ControlResult.Result.Equals(CandidateResult.Result); }
        }
    }
}
{'fraction_non_alphanumeric': 0.08425584255842558, 'fraction_numerical': 0.0006150061500615006, 'mean_word_length': 2.1108986615678775, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, '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': '6256288', 'n_tokens_mistral': 446, 'n_tokens_neox': 436, 'n_words': 104}