<commit_before>﻿#if PARTNERTELEMETRYEVENTSOURCE_USE_NUGET
using Microsoft.Diagnostics.Tracing;  
#else
using System.Diagnostics.Tracing;
#endif

/*  
NOTES:  
  
Partner must update the PartnerProviderGuid constant with the  
assigned provider group ID. In addition, your project must do one of  
the following:  
  
    1. Target .NET 4.6 or later.  
    2. Add a reference to the EventSource NuGet version 1.1.23 or later,  
       and enable the conditional compilation symbol  
       PARTNERTELEMETRYEVENTSOURCE_USE_NUGET.  
  
To add an iKey to your event, add an event field named "PartA_iKey" with a  
string value. For example:  
  
    eventSource.Write(  
        "MyEventName",  
        new {  
            PartA_iKey = "MyIKeyValue",  
            Field1 = x,  
            Field2 = y,  
            ... etc.  
        });  
*/

namespace Microsoft.HockeyApp.Watson
{
    /// <summary>  
    /// <para>  
    /// An Asimov-enabled EventSource. This inherits from EventSource, and is  
    /// exactly the same as EventSource except that it forces Asimov-compatible  
    /// construction (it always enables EtwSelfDescribingEventFormat and joins the  
    /// MicrosoftPartnerTelemetry group). It also provides several Asimov-specific  
    /// constants.  
    /// </para>  
    /// <para>  
    /// Note that this class DOES NOT automatically add any keywords to your events.  
    /// Even when using this class, events will be ignored by UTC unless they include  
    /// one of the telemetry keywords. Each event that you want to send to UTC must  
    /// have one (and only one) of the following keywords set in  
    /// eventSourceOptions.Keywords: TelemetryKeyword, MeasuresKeyword, or  
    /// CriticalDataKeyword.  
    /// </para>  
    /// <para>  
    /// When including this class in your project, you may define the following  
    /// conditional-compilation symbols to adjust the default behaviors:  
    /// </para>  
    /// <para>  
    /// PARTNERTELEMETRYEVENTSOURCE_USE_NUGET - use Microsoft.Diagnostics.Tracing instead  
    /// of System.Diagnostics.Tracing.  
    /// </para>  
    /// <para>  
    /// PARTNERTELEMETRYEVENTSOURCE_PUBLIC - define PartnerTelemetryEventSource as public instead  
    /// of internal.  
    /// </para>  
    /// </summary>  
#if PARTNERTELEMETRYEVENTSOURCE_PUBLIC
    public  
#else
    internal
#endif
        class PartnerTelemetryEventSource : EventSource
    {
        /// <summary>  
        /// Partner must update this constant to the assigned provider group ID.  
        /// Guid is generated using EtGuid.exe Microsoft.HockeyApp.HockeyAppEventSource, see http://blogs.msdn.com/b/dcook/archive/2015/09/08/etw-provider-names-and-guids.aspx
        /// </summary>  
        private const string PartnerProviderGuid = "0417dd39-fc0e-54e8-feac-65e835bce897";

        /// <summary>  
        /// Keyword 0x0000100000000000 is reserved for future definition by UTC. Do  
        /// not use keyword 0x0000100000000000 for telemetry-enabled ETW events.  
        /// </summary>  
        public const EventKeywords Reserved44Keyword = (EventKeywords)0x0000100000000000;

        /// <summary>  
        /// Add TelemetryKeyword to eventSourceOptions.Keywords to indicate that  
        /// an event is for general-purpose telemetry.  <commit_msg>For Watson/HockeyApp prototype use Windows Internal Group Guid, provided by sorino.<commit_after>﻿#if PARTNERTELEMETRYEVENTSOURCE_USE_NUGET
using Microsoft.Diagnostics.Tracing;  
#else
using System.Diagnostics.Tracing;
#endif

/*  
NOTES:  
  
Partner must update the PartnerProviderGuid constant with the  
assigned provider group ID. In addition, your project must do one of  
the following:  
  
    1. Target .NET 4.6 or later.  
    2. Add a reference to the EventSource NuGet version 1.1.23 or later,  
       and enable the conditional compilation symbol  
       PARTNERTELEMETRYEVENTSOURCE_USE_NUGET.  
  
To add an iKey to your event, add an event field named "PartA_iKey" with a  
string value. For example:  
  
    eventSource.Write(  
        "MyEventName",  
        new {  
            PartA_iKey = "MyIKeyValue",  
            Field1 = x,  
            Field2 = y,  
            ... etc.  
        });  
*/

namespace Microsoft.HockeyApp.Watson
{
    /// <summary>  
    /// <para>  
    /// An Asimov-enabled EventSource. This inherits from EventSource, and is  
    /// exactly the same as EventSource except that it forces Asimov-compatible  
    /// construction (it always enables EtwSelfDescribingEventFormat and joins the  
    /// MicrosoftPartnerTelemetry group). It also provides several Asimov-specific  
    /// constants.  
    /// </para>  
    /// <para>  
    /// Note that this class DOES NOT automatically add any keywords to your events.  
    /// Even when using this class, events will be ignored by UTC unless they include  
    /// one of the telemetry keywords. Each event that you want to send to UTC must  
    /// have one (and only one) of the following keywords set in  
    /// eventSourceOptions.Keywords: TelemetryKeyword, MeasuresKeyword, or  
    /// CriticalDataKeyword.  
    /// </para>  
    /// <para>  
    /// When including this class in your project, you may define the following  
    /// conditional-compilation symbols to adjust the default behaviors:  
    /// </para>  
    /// <para>  
    /// PARTNERTELEMETRYEVENTSOURCE_USE_NUGET - use Microsoft.Diagnostics.Tracing instead  
    /// of System.Diagnostics.Tracing.  
    /// </para>  
    /// <para>  
    /// PARTNERTELEMETRYEVENTSOURCE_PUBLIC - define PartnerTelemetryEventSource as public instead  
    /// of internal.  
    /// </para>  
    /// </summary>  
#if PARTNERTELEMETRYEVENTSOURCE_PUBLIC
    public  
#else
    internal
#endif
        class PartnerTelemetryEventSource : EventSource
    {
        /// <summary>  
        /// Partner must update this constant to the assigned provider group ID.  
        /// ToDo: Guid must be generated using EtGuid.exe Microsoft.HockeyApp.HockeyAppEventSource, see http://blogs.msdn.com/b/dcook/archive/2015/09/08/etw-provider-names-and-guids.aspx.
        /// Currently, for prototype using Windows Internal Group Guid provided by <EMAIL>. 
        /// </summary>  
        private const string PartnerProviderGuid = "4f50731a-89cf-4782-b3e0-dce8c90476ba";

        /// <summary>  
        /// Keyword 0x0000100000000000 is reserved for future definition by UTC. Do  
        /// not use keyword 0x0000100000000000 for telemetry-enabled ETW events.  
        /// </summary>  
        public const EventKeywords Reserved44Keyword = (EventKeywords)0x0000100000000000;

        /// <summary>  
        /// Add TelemetryKeyword to eventSourceOptions.Keywords to indicate that  
        /// an event is for general-purpose telemetry.  
{'fraction_non_alphanumeric': 0.08852410962919537, 'fraction_numerical': 0.02638135717426352, 'mean_word_length': 2.2572792362768497, 'pattern_counts': {'":': 0, '<': 38, '<?xml version=': 0, '>': 38, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 6, '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': '2559610', 'n_tokens_mistral': 2051, 'n_tokens_neox': 1927, 'n_words': 621}