<commit_before>﻿namespace ColorMapTest.BasicTest.Main
{
    using ColorMap;
    using ColorMapTest.TestDataStructure.Main;
    using System;
    using System.Collections.Generic;

    public class ColorMapProcessBase : BaseTest
    {
        protected ColorMapProcess MainProcess { get; set; }
        private static List<string> _fileList { get; set; }

        public ColorMapProcessBase()
        {
            MainProcess = new ColorMapProcess();
        }

        static ColorMapProcessBase()
        {
            _fileList = new List<string>();
            InvokeMethod<ColorMapProcessBase>("BaseImageTransformInit");
        }

        public void BaseImageTransformInit()
        {
            _fileList.Add(String.Format("{0}{1}", Directory, "ex1.bmp"));
            _fileList.Add(String.Format("{0}{1}", Directory, "ex2.bmp"));
        }

        public static IEnumerable<ColorMapProcessData> ColorMapProcessData
        {
            get
            {
                yield return new ColorMapProcessData()
                {
                    FileName = _fileList[0],
                    Expected = new Dictionary<string, System.Drawing.Color>()
                    {
                        { "D", System.Drawing.Color.Yellow  },
                        { "G", System.Drawing.Color.Green   },
                        { "B", System.Drawing.Color.Red     },
                        { "C", System.Drawing.Color.Green   },
                        { "E", System.Drawing.Color.Red     },
                        { "F", System.Drawing.Color.Blue    },
                        { "A", System.Drawing.Color.Blue    },
                        { "H", System.Drawing.Color.Yellow  }
                    }
                };
            }
        }
    }
}<commit_msg>ColorMapProcess + Added unit test case<commit_after>﻿namespace ColorMapTest.BasicTest.Main
{
    using ColorMap;
    using ColorMapTest.TestDataStructure.Main;
    using System;
    using System.Collections.Generic;

    public class ColorMapProcessBase : BaseTest
    {
        protected ColorMapProcess MainProcess { get; set; }
        private static List<string> _fileList { get; set; }

        public ColorMapProcessBase()
        {
            MainProcess = new ColorMapProcess();
        }

        static ColorMapProcessBase()
        {
            _fileList = new List<string>();
            InvokeMethod<ColorMapProcessBase>("BaseImageTransformInit");
        }

        public void BaseImageTransformInit()
        {
            _fileList.Add(String.Format("{0}{1}", Directory, "ex1.bmp"));
            _fileList.Add(String.Format("{0}{1}", Directory, "ex2.bmp"));
        }

        public static IEnumerable<ColorMapProcessData> ColorMapProcessData
        {
            get
            {
                yield return new ColorMapProcessData()
                {
                    FileName = _fileList[0],
                    Expected = new Dictionary<string, System.Drawing.Color>()
                    {
                        { "D", System.Drawing.Color.Yellow  },
                        { "G", System.Drawing.Color.Green   },
                        { "B", System.Drawing.Color.Red     },
                        { "C", System.Drawing.Color.Green   },
                        { "E", System.Drawing.Color.Red     },
                        { "F", System.Drawing.Color.Blue    },
                        { "A", System.Drawing.Color.Blue    },
                        { "H", System.Drawing.Color.Yellow  }
                    }
                };
                yield return new ColorMapProcessData()
                {
                    FileName = _fileList[1],
                    Expected = new Dictionary<string, System.Drawing.Color>()
                    {
                        { "M", System.Drawing.Color.Yellow  },
                        { "L", System.Drawing.Color.Green   },
                        { "O", System.Drawing.Color.Yellow  },
                        { "I", System.Drawing.Color.Green   },
                        { "C", System.Drawing.Color.Yellow  },
                        { "E", System.Drawing.Color.Blue    },
                        { "G", System.Drawing.Color.Green   },
                        { "H", System.Drawing.Color.Red     },
                        { "J", System.Drawing.Color.Green   },
                        { "N", System.Drawing.Color.Blue    },
                        { "P", System.Drawing.Color.Red     },
                        { "Q", System.Drawing.Color.Yellow  },
                        { "S", System.Drawing.Color.Red     },
                        { "X", System.Drawing.Color.Green   },
                        { "D", System.Drawing.Color.Red     },
                        { "K", System.Drawing.Color.Blue    },
                        { "R", System.Drawing.Color.Blue    },
                        { "F", System.Drawing.Color.Red     },
                        { "T", System.Drawing.Color.Blue    },
                        { "U", System.Drawing.Color.Blue    },
                        { "V", System.Drawing.Color.Red     },
                        { "W", System.Drawing.Color.Green   },
                        { "A", System.Drawing.Color.Yellow  },
                        { "B", System.Drawing.Color.Blue    }
                    }
                };
            }
        }
    }
}
{'fraction_non_alphanumeric': 0.11523327712197864, 'fraction_numerical': 0.002810567734682406, 'mean_word_length': 1.1949013157894737, 'pattern_counts': {'":': 0, '<': 14, '<?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': '7052925', 'n_tokens_mistral': 1372, 'n_tokens_neox': 1288, 'n_words': 214}