<commit_before>using System;
using System.Collections.Generic;
using System.Linq;

namespace Giles.Core.Configuration
{
    [Serializable]
    public class Filter
    {
        public Filter() { }

        public Filter(string convertToFilter)
        {
            foreach (var entry in FilterLookUp.Where(entry => convertToFilter.Contains(entry.Key)))
            {
                Type = entry.Value;
                Name = convertToFilter.Replace(entry.Key, string.Empty).Trim();

                break;
            }

            if (!string.IsNullOrWhiteSpace(Name)) return;

            Name = convertToFilter.Trim();
            Type = FilterType.Inclusive;
        }

        public string Name { get; set; }
        public FilterType Type { get; set; }

        public string NameDll
        {<commit_msg>Make sure there is a space between the -* and the filtered namespace to prevent any accidental replacements<commit_after>using System;
using System.Collections.Generic;
using System.Linq;

namespace Giles.Core.Configuration
{
    [Serializable]
    public class Filter
    {
        public Filter() { }

        public Filter(string convertToFilter)
        {
            foreach (var entry in FilterLookUp.Where(entry => convertToFilter.Contains(string.Format(" {0}" ,entry.Key))))
            {
                Type = entry.Value;
                Name = convertToFilter.Replace(string.Format(" {0}", entry.Key), string.Empty).Trim();

                break;
            }

            if (!string.IsNullOrWhiteSpace(Name)) return;

            Name = convertToFilter.Trim();
            Type = FilterType.Inclusive;
        }

        public string Name { get; set; }
        public FilterType Type { get; set; }

        public string NameDll
        {
{'fraction_non_alphanumeric': 0.09491525423728814, 'fraction_numerical': 0.0011299435028248588, 'mean_word_length': 1.9764705882352942, 'pattern_counts': {'":': 0, '<': 3, '<?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': '5614219', 'n_tokens_mistral': 467, 'n_tokens_neox': 445, 'n_words': 118}