<commit_before>﻿using LINQToTTreeLib.ExecutionCommon;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LINQToTTreeLib.Tests.ExecutionCommon
{
    /// <summary>
    /// Check to see if we can do basic ROOT stuff.
    /// </summary>
    [TestClass]
    public class LocalBashHelpersTest
    {
        [TestInitialize]
        public void Setup()
        {
            LocalBashExecutor.ResetCommandLineExecutor();
            LocalBashExecutor.ResetLocalBashExecutor();
        }

        [TestCleanup]
        public void Cleanup()
        {
            LocalBashExecutor.ResetCommandLineExecutor();
            LocalBashExecutor.ResetLocalBashExecutor();
        }

        [TestMethod]
        public void BashRunBasicCommand()
        {
            string bashCmds = "ls\n";

            List<string> results = new List<string>();
            LocalBashExecutor.AddLogEndpoint(s => results.Add(s));

            LocalBashHelpers.RunBashCommand("testmeout", bashCmds);

            Assert.AreNotEqual(0, results.Count);
        }
<commit_msg>Update test to make sure this is working<commit_after>﻿using LINQToTTreeLib.ExecutionCommon;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LINQToTTreeLib.Tests.ExecutionCommon
{
    /// <summary>
    /// Check to see if we can do basic ROOT stuff.
    /// </summary>
    [TestClass]
    public class LocalBashHelpersTest
    {
        [TestInitialize]
        public void Setup()
        {
            LocalBashExecutor.ResetCommandLineExecutor();
            LocalBashExecutor.ResetLocalBashExecutor();
        }

        [TestCleanup]
        public void Cleanup()
        {
            LocalBashExecutor.ResetCommandLineExecutor();
            LocalBashExecutor.ResetLocalBashExecutor();
        }

        [TestMethod]
        public void BashRunBasicCommand()
        {
            string bashCmds = "ls\n";

            List<string> results = new List<string>();
            LocalBashExecutor.AddLogEndpoint(s => results.Add(s));

            LocalBashHelpers.RunBashCommand("testmeout", bashCmds, s => Console.WriteLine(s), verbose: true);

            Assert.AreNotEqual(0, results.Count);
        }

{'fraction_non_alphanumeric': 0.09531703273932864, 'fraction_numerical': 0.0008288437629506838, 'mean_word_length': 2.458452722063037, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 14, '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': '5760119', 'n_tokens_mistral': 671, 'n_tokens_neox': 661, 'n_words': 133}