<commit_before>using System.Collections.Generic;
using JetBrains.Annotations;
using JetBrains.Application.Settings;
using JetBrains.ProjectModel;
using JetBrains.ReSharper.Feature.Services.Daemon;
using JetBrains.ReSharper.Psi;
using JetBrains.ReSharper.Psi.Tree;
using JetBrains.Util;

namespace JetBrains.ReSharper.Plugins.Unity.CSharp.Daemon.Stages.PerformanceCriticalCodeAnalysis
{
    public class PerformanceHighlightingConsumer : DefaultHighlightingConsumer
    {
        private IgnoreWarningsRegionsInfo myRegionsInfo;

        public PerformanceHighlightingConsumer([NotNull] IPsiSourceFile sourceFile, [NotNull] IFile psiFile)
            : base(sourceFile)
        {
            var solution = psiFile.GetSolution();
            myRegionsInfo = solution.GetComponent<IRegionsInfoProvider>().GetOrCreateInfoForDocument(SourceFile.Document) as IgnoreWarningsRegionsInfo;
        }

        public override void ConsumeHighlighting(HighlightingInfo highlightingInfo)
        {
            var highlighting = highlightingInfo.Highlighting;
            Assertion.Assert(highlighting is PerformanceHighlightingBase, "highlightingInfo is PerformanceCriticalCodeHighlightingBase");

            var performanceHighlighting = highlighting as PerformanceHighlightingBase;
            if (myRegionsInfo != null)
            {
                if (myRegionsInfo.ShouldIgnoreWarningHighlighting(performanceHighlighting.SeverityId, highlightingInfo, false, out var _))<commit_msg>Dummy commit for restart travis<commit_after>using System.Collections.Generic;
using JetBrains.Annotations;
using JetBrains.Application.Settings;
using JetBrains.ProjectModel;
using JetBrains.ReSharper.Feature.Services.Daemon;
using JetBrains.ReSharper.Psi;
using JetBrains.ReSharper.Psi.Tree;
using JetBrains.Util;

namespace JetBrains.ReSharper.Plugins.Unity.CSharp.Daemon.Stages.PerformanceCriticalCodeAnalysis
{
    public class PerformanceHighlightingConsumer : DefaultHighlightingConsumer
    {
        private readonly IgnoreWarningsRegionsInfo myRegionsInfo;

        public PerformanceHighlightingConsumer([NotNull] IPsiSourceFile sourceFile, [NotNull] IFile psiFile)
            : base(sourceFile)
        {
            var solution = psiFile.GetSolution();
            myRegionsInfo = solution.GetComponent<IRegionsInfoProvider>().GetOrCreateInfoForDocument(SourceFile.Document) as IgnoreWarningsRegionsInfo;
        }

        public override void ConsumeHighlighting(HighlightingInfo highlightingInfo)
        {
            var highlighting = highlightingInfo.Highlighting;
            Assertion.Assert(highlighting is PerformanceHighlightingBase, "highlightingInfo is PerformanceCriticalCodeHighlightingBase");

            var performanceHighlighting = highlighting as PerformanceHighlightingBase;
            if (myRegionsInfo != null)
            {
                if (myRegionsInfo.ShouldIgnoreWarningHighlighting(performanceHighlighting.SeverityId, highlightingInfo, false, out var _))
{'fraction_non_alphanumeric': 0.0637370010063737, 'fraction_numerical': 0.0, 'mean_word_length': 4.195121951219512, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '1470550', 'n_tokens_mistral': 808, 'n_tokens_neox': 747, 'n_words': 141}