<commit_before>﻿// ReSharper disable ExplicitCallerInfoArgument

namespace Azi.Tools
{
    using System;
    using System.Collections.Generic;
    using System.Diagnostics;
    using System.Diagnostics.Eventing.Reader;
    using System.Runtime.CompilerServices;
    using System.Security;
    using System.Threading.Tasks;
    using Microsoft.HockeyApp;

    public static class UnitTestDetector
    {
        public static bool IsUnitTest { get; set; }
    }

    public static class Log
    {
        public const int BigFile = 300;
        public const int Dokan = 100;
        public const int Performance = 10000;
        public const int VirtualDrive = 200;
        private const string Source = "ACDDokan.Net";
        private static readonly string Query = $"*[System[Provider[@Name = '{Source}']]]";
        private static string version;

        static Log()
        {
            if (!UnitTestDetector.IsUnitTest)
            {
                HockeyClient.Current.Configure("7ca5f74596c44804825d1d2a4d3a99e5");
#if DEBUG
                ((HockeyClient) HockeyClient.Current).OnHockeySDKInternalException += (sender, args) =>
                {
                    if (Debugger.IsAttached)
                    {
                        Debugger.Break();
                    }
                };
#endif

                try
                {
                    EventLog.CreateEventSource(Source, "Application");
                }
                catch (Exception)
                {
                    // Just ignore
                }
            }

            HockeyAppEnabled = !UnitTestDetector.IsUnitTest;
        }

#if DEBUG
        public static bool HockeyAppEnabled { get; set; } = true;<commit_msg>Fixed installer project Fixed hockeyapp checkbox<commit_after>﻿// ReSharper disable ExplicitCallerInfoArgument

namespace Azi.Tools
{
    using System;
    using System.Collections.Generic;
    using System.Diagnostics;
    using System.Diagnostics.Eventing.Reader;
    using System.Runtime.CompilerServices;
    using System.Security;
    using System.Threading.Tasks;
    using Microsoft.HockeyApp;

    public static class UnitTestDetector
    {
        public static bool IsUnitTest { get; set; }
    }

    public static class Log
    {
        public const int BigFile = 300;
        public const int Dokan = 100;
        public const int Performance = 10000;
        public const int VirtualDrive = 200;
        private const string Source = "ACDDokan.Net";
        private static readonly string Query = $"*[System[Provider[@Name = '{Source}']]]";
        private static string version;

        static Log()
        {
            if (!UnitTestDetector.IsUnitTest)
            {
                HockeyClient.Current.Configure("7ca5f74596c44804825d1d2a4d3a99e5");
#if DEBUG
                ((HockeyClient) HockeyClient.Current).OnHockeySDKInternalException += (sender, args) =>
                {
                    if (Debugger.IsAttached)
                    {
                        Debugger.Break();
                    }
                };
#endif

                try
                {
                    EventLog.CreateEventSource(Source, "Application");
                }
                catch (Exception)
                {
                    // Just ignore
                }
            }
        }

#if DEBUG
        public static bool HockeyAppEnabled { get; set; } = !UnitTestDetector.IsUnitTest;
{'fraction_non_alphanumeric': 0.07913878382310154, 'fraction_numerical': 0.02094850160023276, 'mean_word_length': 1.6651162790697673, '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': '5643020', 'n_tokens_mistral': 941, 'n_tokens_neox': 858, 'n_words': 212}