<commit_before>﻿using System;
using System.Collections.Generic;
using System.Collections.Concurrent;
using System.Diagnostics;
using System.IO;
using System.Windows.Forms;
using System.Runtime.Serialization;
using System.Runtime.Serialization.Json;

namespace Microsoft.HockeyApp
{
    /// <summary>
    /// Dictionary based app settings that HockeyApp.Core needs to store user id and session data
    /// </summary>
    sealed class DictionarySettings
    {
        private static DictionarySettings _current;

        /// <summary>
        /// Settings instance for this AppDomain
        /// </summary>
        public static DictionarySettings Current { get { return _current ?? (_current = new DictionarySettings()); } }

        private const string FILE_NAME = "settings.json";<commit_msg>synchronize Current accessor<commit_after>﻿using System;
using System.Collections.Generic;
using System.Collections.Concurrent;
using System.Diagnostics;
using System.IO;
using System.Windows.Forms;
using System.Runtime.Serialization;
using System.Runtime.Serialization.Json;

namespace Microsoft.HockeyApp
{
    /// <summary>
    /// Dictionary based app settings that HockeyApp.Core needs to store user id and session data
    /// </summary>
    sealed class DictionarySettings
    {
        private static DictionarySettings _current;
        private static object _loadSyncObject = new object();

        /// <summary>
        /// Settings instance for this AppDomain
        /// </summary>
        public static DictionarySettings Current
        {
            get
            {
                lock (_loadSyncObject)
                {
                    return _current ?? (_current = new DictionarySettings());
                }
            }
        }

        private const string FILE_NAME = "settings.json";
{'fraction_non_alphanumeric': 0.08710033076074973, 'fraction_numerical': 0.0, 'mean_word_length': 2.5588235294117645, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '512844', 'n_tokens_mistral': 423, 'n_tokens_neox': 422, 'n_words': 135}