<commit_before>﻿using System.Diagnostics.Tracing;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Spark.Engine.Logging
{
    [EventSource(Name = "Furore-Spark-Engine")]
    public sealed class SparkEngineEventSource : EventSource
    {
        public class Keywords
        {
            public const EventKeywords ServiceMethod = (EventKeywords)1;
            public const EventKeywords Invalid = (EventKeywords)2;
            public const EventKeywords Unsupported = (EventKeywords)4;
            public const EventKeywords Tracing = (EventKeywords)8;
        }

        public class Tasks
        {
            public const EventTask ServiceMethod = (EventTask)1;
        }

        private static readonly Lazy<SparkEngineEventSource> Instance = new Lazy<SparkEngineEventSource>(() => new SparkEngineEventSource());

        private SparkEngineEventSource() { }

        public static SparkEngineEventSource Log { get { return Instance.Value; } }

        [Event(1, Message = "Service call: {0}",
            Level = EventLevel.Verbose, Keywords = Keywords.ServiceMethod)]
        internal void ServiceMethodCalled(string methodName)
        {
            this.WriteEvent(1, methodName);
        }
    }
}
<commit_msg>SparkEventSource, added UnsupportedFeature.<commit_after>﻿using System.Diagnostics.Tracing;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Spark.Engine.Logging
{
    [EventSource(Name = "Furore-Spark-Engine")]
    public sealed class SparkEngineEventSource : EventSource
    {
        public class Keywords
        {
            public const EventKeywords ServiceMethod = (EventKeywords)1;
            public const EventKeywords Invalid = (EventKeywords)2;
            public const EventKeywords Unsupported = (EventKeywords)4;
            public const EventKeywords Tracing = (EventKeywords)8;
        }

        public class Tasks
        {
            public const EventTask ServiceMethod = (EventTask)1;
        }

        private static readonly Lazy<SparkEngineEventSource> Instance = new Lazy<SparkEngineEventSource>(() => new SparkEngineEventSource());

        private SparkEngineEventSource() { }

        public static SparkEngineEventSource Log { get { return Instance.Value; } }

        [Event(1, Message = "Service call: {0}",
            Level = EventLevel.Verbose, Keywords = Keywords.ServiceMethod)]
        internal void ServiceMethodCalled(string methodName)
        {
            this.WriteEvent(1, methodName);
        }

        [Event(2, Message = "Not supported: {0} in {1}",
         Level = EventLevel.Verbose, Keywords = Keywords.Unsupported)]
        internal void UnsupportedFeature(string methodName, string feature)
        {
            this.WriteEvent(2, feature, methodName);
        }
    }
}

{'fraction_non_alphanumeric': 0.0852233676975945, 'fraction_numerical': 0.006872852233676976, 'mean_word_length': 2.81020942408377, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, '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': '4620980', 'n_tokens_mistral': 773, 'n_tokens_neox': 764, 'n_words': 192}