<commit_before>﻿using HomeSeerAPI;
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Threading;

namespace Hspi
{
    using static System.FormattableString;

    /// <summary>
    /// Class to store PlugIn Configuration
    /// </summary>
    /// <seealso cref="System.IDisposable" />
    internal class PluginConfig : IDisposable
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="PluginConfig"/> class.
        /// </summary>
        /// <param name="HS">The homeseer application.</param>
        public PluginConfig(IHSApplication HS)
        {
            this.HS = HS;

            debugLogging = GetValue(DebugLoggingKey, false);

            LoadDeviceConfig(DeviceType.SamsungTV);
            LoadDeviceConfig(DeviceType.DenonAVR);
            LoadDeviceConfig(DeviceType.ADBRemoteControl);
            LoadDeviceConfig(DeviceType.IP2IR);
            LoadDeviceConfig(DeviceType.XboxOne);
            LoadDeviceConfig(DeviceType.SonyBluRay);
        }

        public event EventHandler<EventArgs> ConfigChanged;

        /// <summary>
        /// Gets or sets a value indicating whether debug logging is enabled.
        /// </summary>
        /// <value>
        ///   <c>true</c> if [debug logging]; otherwise, <c>false</c>.
        /// </value>
        public bool DebugLogging
        {
            get
            {
                configLock.EnterReadLock();
                try
                {<commit_msg>Add PS3 to config<commit_after>﻿using HomeSeerAPI;
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Threading;

namespace Hspi
{
    using static System.FormattableString;

    /// <summary>
    /// Class to store PlugIn Configuration
    /// </summary>
    /// <seealso cref="System.IDisposable" />
    internal class PluginConfig : IDisposable
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="PluginConfig"/> class.
        /// </summary>
        /// <param name="HS">The homeseer application.</param>
        public PluginConfig(IHSApplication HS)
        {
            this.HS = HS;

            debugLogging = GetValue(DebugLoggingKey, false);

            LoadDeviceConfig(DeviceType.SamsungTV);
            LoadDeviceConfig(DeviceType.DenonAVR);
            LoadDeviceConfig(DeviceType.ADBRemoteControl);
            LoadDeviceConfig(DeviceType.IP2IR);
            LoadDeviceConfig(DeviceType.XboxOne);
            LoadDeviceConfig(DeviceType.SonyBluRay);
            LoadDeviceConfig(DeviceType.PS3);
        }

        public event EventHandler<EventArgs> ConfigChanged;

        /// <summary>
        /// Gets or sets a value indicating whether debug logging is enabled.
        /// </summary>
        /// <value>
        ///   <c>true</c> if [debug logging]; otherwise, <c>false</c>.
        /// </value>
        public bool DebugLogging
        {
            get
            {
                configLock.EnterReadLock();
                try
                {
{'fraction_non_alphanumeric': 0.10989717223650386, 'fraction_numerical': 0.0012853470437017994, 'mean_word_length': 1.9479166666666667, 'pattern_counts': {'":': 0, '<': 37, '<?xml version=': 0, '>': 37, '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': '5581965', 'n_tokens_mistral': 843, 'n_tokens_neox': 816, 'n_words': 188}