<commit_before>using System.Configuration;
using Arma3BE.Server.Abstract;
using Arma3BE.Server.Mocks;
using Arma3BE.Server.ServerDecorators;
using Arma3BEClient.Common.Logging;
using BattleNET;

namespace Arma3BE.Server.ServerFactory
{
    public class BattlEyeServerFactory : IBattlEyeServerFactory
    {
        private readonly ILog _log;
        private const string DebugServerKey = "DebugServerEnabled";

        public BattlEyeServerFactory(ILog log)
        {
            _log = log;
        }

        public IBattlEyeServer Create(BattlEyeLoginCredentials credentials)
        {

            //if (ConfigurationManager.AppSettings[DebugServerKey] == bool.TrueString)
            //{
            //    return new BattlEyeServerLogProxy(new MockBattleEyeServer(), _log);
            //}

            return new ThreadSafeBattleEyeServer(new BattlEyeServerProxy(new BattlEyeClient(credentials)
            {
                ReconnectOnPacketLoss = true
            }), _log);
        }
    }
}<commit_msg>#18 return fake factory<commit_after>using System.Configuration;
using Arma3BE.Server.Abstract;
using Arma3BE.Server.Mocks;
using Arma3BE.Server.ServerDecorators;
using Arma3BEClient.Common.Logging;
using BattleNET;

namespace Arma3BE.Server.ServerFactory
{
    public class BattlEyeServerFactory : IBattlEyeServerFactory
    {
        private readonly ILog _log;
        private const string DebugServerKey = "DebugServerEnabled";

        public BattlEyeServerFactory(ILog log)
        {
            _log = log;
        }

        public IBattlEyeServer Create(BattlEyeLoginCredentials credentials)
        {

            if (ConfigurationManager.AppSettings[DebugServerKey] == bool.TrueString)
            {
                return new BattlEyeServerLogProxy(new MockBattleEyeServer(), _log);
            }

            return new ThreadSafeBattleEyeServer(new BattlEyeServerProxy(new BattlEyeClient(credentials)
            {
                ReconnectOnPacketLoss = true
            }), _log);
        }
    }
}
{'fraction_non_alphanumeric': 0.07058242843040474, 'fraction_numerical': 0.005923000987166831, 'mean_word_length': 2.568661971830986, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '7246843', 'n_tokens_mistral': 586, 'n_tokens_neox': 552, 'n_words': 107}