<commit_before>﻿using System;
using Microsoft.VisualStudio;
using Microsoft.VisualStudio.Shell.Interop;
using NuGetConsole;

namespace NuGet.VisualStudio {

    /// <summary>
    /// This class implements the IConsole interface in order to integrate with the PowerShellHost.
    /// It sends PowerShell host outputs to the VS Output tool window.
    /// </summary>
    internal class OutputConsole : IConsole, IConsoleDispatcher {
        // guid for our Output window pane
        private static Guid _outputWindowPaneGuid = new Guid("CEC55EC8-CC51-40E7-9243-57B87A6F6BEB");
        private const string _outputWindowPaneName = "Package Manager";

        private IVsOutputWindow _outputWindow;
        private IVsOutputWindowPane _outputWindowPane;

        public OutputConsole(IVsOutputWindow outputWindow) {
            if (outputWindow == null) {
                throw new ArgumentNullException("outputWindow");
            }
            
            _outputWindow = outputWindow;
        }

        public IHost Host {
            get;
            set;
        }

        public bool ShowDisclaimerHeader {
            get {
                return false;
            }
        }

        public IConsoleDispatcher Dispatcher {
            get { return this; }
        }

        public int ConsoleWidth {
            get {
                return 120;
            }
        }

        public bool ExecuteInitScriptOnStartup {
            get { return false; }
        }

        public void Write(string text) {<commit_msg>Run init scripts even in the output console.<commit_after>﻿using System;
using Microsoft.VisualStudio;
using Microsoft.VisualStudio.Shell.Interop;
using NuGetConsole;

namespace NuGet.VisualStudio {

    /// <summary>
    /// This class implements the IConsole interface in order to integrate with the PowerShellHost.
    /// It sends PowerShell host outputs to the VS Output tool window.
    /// </summary>
    internal class OutputConsole : IConsole, IConsoleDispatcher {
        // guid for our Output window pane
        private static Guid _outputWindowPaneGuid = new Guid("CEC55EC8-CC51-40E7-9243-57B87A6F6BEB");
        private const string _outputWindowPaneName = "Package Manager";

        private IVsOutputWindow _outputWindow;
        private IVsOutputWindowPane _outputWindowPane;

        public OutputConsole(IVsOutputWindow outputWindow) {
            if (outputWindow == null) {
                throw new ArgumentNullException("outputWindow");
            }
            
            _outputWindow = outputWindow;
        }

        public IHost Host {
            get;
            set;
        }

        public bool ShowDisclaimerHeader {
            get {
                return false;
            }
        }

        public IConsoleDispatcher Dispatcher {
            get { return this; }
        }

        public int ConsoleWidth {
            get {
                return 120;
            }
        }

        public bool ExecuteInitScriptOnStartup {
            get { return true; }
        }

        public void Write(string text) {
{'fraction_non_alphanumeric': 0.06379533678756477, 'fraction_numerical': 0.013601036269430052, 'mean_word_length': 1.8575393154486586, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '1554352', 'n_tokens_mistral': 802, 'n_tokens_neox': 735, 'n_words': 225}