<commit_before>﻿using Newtonsoft.Json;
using SecretSanta.Models;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Web;

namespace SecretSanta.Utilities
{
    public static class DataRepository
    {
        #region Variables

        private static IList<Account> _accounts_singleton;
        private static object _lock;
        private static IList<Account> _accounts
        {
            get
            {
                lock (_lock)
                {
                    return _accounts_singleton;
                }
            }

            set
            {
                lock (_lock)
                {
                    _accounts_singleton = value;
                }
            }
        }


        #endregion<commit_msg>Fix for null locking object<commit_after>﻿using Newtonsoft.Json;
using SecretSanta.Models;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Web;

namespace SecretSanta.Utilities
{
    public static class DataRepository
    {
        #region Variables

        private static IList<Account> _accounts_singleton;
        private static object _lock = new object();
        private static IList<Account> _accounts
        {
            get
            {
                lock (_lock)
                {
                    return _accounts_singleton;
                }
            }

            set
            {
                lock (_lock)
                {
                    _accounts_singleton = value;
                }
            }
        }


        #endregion
{'fraction_non_alphanumeric': 0.061224489795918366, 'fraction_numerical': 0.0, 'mean_word_length': 1.4305949008498584, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '396895', 'n_tokens_mistral': 443, 'n_tokens_neox': 415, 'n_words': 103}