<commit_before>using System;
using System.Text;
using MqttLib.Core;
using MqttLib;

namespace MqttLib
{
    public class MqttClientFactory
    {
        public static IMqtt CreateClient(string connString, string clientId, string username, string password, IPersistence persistence)
        {
            return new Mqtt(connString, clientId, username, password, persistence);
        }

        public static IMqtt CreateClient(string connString, string clientId)
        {
            return CreateClient(connString, clientId, null, null, null);
        }

        public static IMqttShared CreateSharedClient(string connString, string clientId, string username, string password)
        {
            return new Mqtt(connString, clientId, username, password, null);
        }

        public static IMqttShared CreateSharedClient(string connString, string clientId)
        {
            return new Mqtt(connString, clientId, null, null, null);
        }

        public static IMqtt CreateBufferedClient(string connString, string clientId)
        {
            throw new NotImplementedException();
        }
    }
}<commit_msg>Updated overloads to client factory<commit_after>using System;
using System.Text;
using MqttLib.Core;
using MqttLib;

namespace MqttLib
{
    public class MqttClientFactory
    {
        public static IMqtt CreateClient(string connString, string clientId, string username = null, string password = null, IPersistence persistence = null)
        {
            return new Mqtt(connString, clientId, username, password, persistence);
        }

        public static IMqttShared CreateSharedClient(string connString, string clientId, string username = null, string password = null)
        {
            return new Mqtt(connString, clientId, username, password, null);
        }

        public static IMqtt CreateBufferedClient(string connString, string clientId)
        {
            throw new NotImplementedException();
        }
    }
}
{'fraction_non_alphanumeric': 0.06551549009649568, 'fraction_numerical': 0.0, 'mean_word_length': 2.8627450980392157, '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': '7631192', 'n_tokens_mistral': 516, 'n_tokens_neox': 504, 'n_words': 158}