<commit_before>﻿using Microsoft.VisualStudio.Shell.TableControl;
using Microsoft.VisualStudio.Shell.TableManager;
using Microsoft.VisualStudio.Text;
using Microsoft.VisualStudio.Text.Editor;
using Microsoft.VisualStudio.Text.Tagging;
using Microsoft.VisualStudio.Utilities;
using System;
using System.Collections.Generic;
using System.ComponentModel.Composition;
using System.IO;
using System.Threading.Tasks;

namespace jwldnr.VisualLinter
{
    [Export(typeof(IViewTaggerProvider))]
    [TagType(typeof(IErrorTag))]
    [ContentType("text")]
    internal class TaggerProvider : IViewTaggerProvider, ITableDataSource
    {
        public string DisplayName => "VisualLint";
        public string Identifier => "VisualLint";
        public string SourceTypeIdentifier => StandardTableDataSources.ErrorTableDataSource;
        internal readonly ITableManager ErrorTableManager;
        internal readonly ITextDocumentFactoryService TextDocumentFactoryService;

        private readonly ILinterService _linterService;

        private readonly List<SinkManager> _managers = new List<SinkManager>();
        private readonly TaggerManager _taggers = new TaggerManager();

        [ImportingConstructor]
        internal TaggerProvider(
            [Import] ITableManagerProvider tableManagerProvider,
            [Import] ITextDocumentFactoryService textDocumentFactoryService,
            [Import] ILinterService linterService)
        {
            ErrorTableManager = tableManagerProvider
                .GetTableManager(StandardTables.ErrorsTable);

            TextDocumentFactoryService = textDocumentFactoryService;

            _linterService = linterService;

            var columns = new[]
            {
                StandardTableColumnDefinitions.DetailsExpander,<commit_msg>cleanup TaggerProvider<commit_after>﻿using Microsoft.VisualStudio.Shell.TableControl;
using Microsoft.VisualStudio.Shell.TableManager;
using Microsoft.VisualStudio.Text;
using Microsoft.VisualStudio.Text.Editor;
using Microsoft.VisualStudio.Text.Tagging;
using Microsoft.VisualStudio.Utilities;
using System;
using System.Collections.Generic;
using System.ComponentModel.Composition;
using System.IO;
using System.Threading.Tasks;

namespace jwldnr.VisualLinter
{
    [Export(typeof(IViewTaggerProvider))]
    [TagType(typeof(IErrorTag))]
    [ContentType("text")]
    internal class TaggerProvider : IViewTaggerProvider, ITableDataSource
    {
        public string DisplayName => "VisualLint";
        public string Identifier => "VisualLint";
        public string SourceTypeIdentifier => StandardTableDataSources.ErrorTableDataSource;

        internal readonly ITableManager ErrorTableManager;
        internal readonly ITextDocumentFactoryService TextDocumentFactoryService;

        private readonly ILinterService _linterService;

        private readonly List<SinkManager> _managers = new List<SinkManager>();
        private readonly TaggerManager _taggers = new TaggerManager();

        [ImportingConstructor]
        internal TaggerProvider(
            [Import] ITableManagerProvider tableManagerProvider,
            [Import] ITextDocumentFactoryService textDocumentFactoryService,
            [Import] ILinterService linterService)
        {
            ErrorTableManager = tableManagerProvider
                .GetTableManager(StandardTables.ErrorsTable);

            TextDocumentFactoryService = textDocumentFactoryService;

            _linterService = linterService;

            var columns = new[]
            {
                StandardTableColumnDefinitions.DetailsExpander,
{'fraction_non_alphanumeric': 0.06636921360847742, 'fraction_numerical': 0.0, 'mean_word_length': 3.763612217795485, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 13, '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': '7532384', 'n_tokens_mistral': 859, 'n_tokens_neox': 837, 'n_words': 182}