<commit_before>﻿using System.Collections.Generic;
using System.IO;
using Xunit;

namespace DeveImageOptimizer.Tests.TestHelpers
{
    public static class FileOptimizerFullExeFinder
    {
        public static string GetFileOptimizerPathOrThrowSkipTestException()
        {
            var possiblePaths = new List<string>();

            possiblePaths.Add(@"C:\Program Files\FileOptimizer\FileOptimizer64.exe");

            var extractedPathForAppVeyor = Path.GetFullPath(@"..\..\..\..\..\DeveImageOptimizer\Scripts\FileOptimizer\FileOptimizer64.exe");
            possiblePaths.Add(extractedPathForAppVeyor);

            foreach (var possiblePath in possiblePaths)
            {
                if (File.Exists(possiblePath))
                {
                    return possiblePath;
                }
            }

            throw new SkipException($"FileOptimizerFull exe file can't be found. Expected locations: " + string.Join(' ', possiblePaths));
        }
    }
}<commit_msg>Added other path to find FileOptimizer<commit_after>﻿using System.Collections.Generic;
using System.IO;
using Xunit;

namespace DeveImageOptimizer.Tests.TestHelpers
{
    public static class FileOptimizerFullExeFinder
    {
        public static string GetFileOptimizerPathOrThrowSkipTestException()
        {
            var possiblePaths = new List<string>();

            possiblePaths.Add(@"C:\Program Files\FileOptimizer\FileOptimizer64.exe");

            //Maybe this can be improved, but just to test I'll have it like this for now. (It's just for unit testing anyway)
            var extractedPathForAppVeyor = Path.GetFullPath(@"..\..\..\..\..\DeveImageOptimizer\Scripts\FileOptimizer\FileOptimizer64.exe");
            possiblePaths.Add(extractedPathForAppVeyor);

            var extractedPathForAppVeyor2 = Path.GetFullPath(@"..\..\..\..\DeveImageOptimizer\Scripts\FileOptimizer\FileOptimizer64.exe");
            possiblePaths.Add(extractedPathForAppVeyor2);

            foreach (var possiblePath in possiblePaths)
            {
                if (File.Exists(possiblePath))
                {
                    return possiblePath;
                }
            }

            throw new SkipException($"FileOptimizerFull exe file can't be found. Expected locations: " + string.Join(' ', possiblePaths));
        }
    }
}
{'fraction_non_alphanumeric': 0.09879725085910653, 'fraction_numerical': 0.005154639175257732, 'mean_word_length': 2.370477568740955, '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': '2892399', 'n_tokens_mistral': 670, 'n_tokens_neox': 616, 'n_words': 125}