<commit_before>using System.Collections.Generic;
using System.Linq;
using ICSharpCode.NRefactory.TypeSystem;
using OmniSharp.AutoComplete;
using OmniSharp.AutoComplete.Overrides;
using OmniSharp.Common;
using OmniSharp.Parser;

namespace Omnisharp.AutoComplete.Overrides {

    /// <summary>
    ///   Represents a context where some base class members are going
    ///   to be overridden.
    /// </summary>
    public class OverrideContext {

        public OverrideContext
            (AutoCompleteRequest request, BufferParser parser) {

            this.BufferParser = parser;
            this.CompletionContext = new AutoCompleteBufferContext
                (request, this.BufferParser);

            this.CurrentType = this.CompletionContext.ParsedContent
                .UnresolvedFile.GetInnermostTypeDefinition
                    (this.CompletionContext.TextLocation)
                .Resolve(this.CompletionContext.ResolveContext);

            this.OverrideTargets =
                GetOverridableMembers()
                // TODO should we remove duplicates?
                .Select(m => new GetOverrideTargetsResponse<commit_msg>Remove old TODO: removing duplicates from overridable members<commit_after>using System.Collections.Generic;
using System.Linq;
using ICSharpCode.NRefactory.TypeSystem;
using OmniSharp.AutoComplete;
using OmniSharp.AutoComplete.Overrides;
using OmniSharp.Common;
using OmniSharp.Parser;

namespace Omnisharp.AutoComplete.Overrides {

    /// <summary>
    ///   Represents a context where some base class members are going
    ///   to be overridden.
    /// </summary>
    public class OverrideContext {

        public OverrideContext
            (AutoCompleteRequest request, BufferParser parser) {

            this.BufferParser = parser;
            this.CompletionContext = new AutoCompleteBufferContext
                (request, this.BufferParser);

            this.CurrentType = this.CompletionContext.ParsedContent
                .UnresolvedFile.GetInnermostTypeDefinition
                    (this.CompletionContext.TextLocation)
                .Resolve(this.CompletionContext.ResolveContext);

            this.OverrideTargets =
                GetOverridableMembers()
                .Select(m => new GetOverrideTargetsResponse
{'fraction_non_alphanumeric': 0.07164700742682394, 'fraction_numerical': 0.0, 'mean_word_length': 2.544891640866873, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, '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': '4037492', 'n_tokens_mistral': 581, 'n_tokens_neox': 549, 'n_words': 125}