<commit_before>﻿using StructureMap;

namespace SFA.DAS.CommitmentsV2.Api.Client.DependencyResolution
{
    public class CommitmentsApiClientRegistry : Registry
    {
        public CommitmentsApiClientRegistry()
        {
            For<ICommitmentsApiClient>().Use(c => c.GetInstance<ICommitmentsApiClientFactory>().CreateClient()).Singleton();
        }
    }
}<commit_msg>Added ICommitmentsApiClientFactory to CommitmentsApiClientRegistry to avoid having to register it in client applications<commit_after>﻿using StructureMap;

namespace SFA.DAS.CommitmentsV2.Api.Client.DependencyResolution
{
    public class CommitmentsApiClientRegistry : Registry
    {
        public CommitmentsApiClientRegistry()
        {
            For<ICommitmentsApiClient>().Use(c => c.GetInstance<ICommitmentsApiClientFactory>().CreateClient()).Singleton();
            For<ICommitmentsApiClientFactory>().Use<CommitmentsApiClientFactory>();
        }
    }
}
{'fraction_non_alphanumeric': 0.09544008483563096, 'fraction_numerical': 0.0021208907741251328, 'mean_word_length': 4.2154696132596685, 'pattern_counts': {'":': 0, '<': 9, '<?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': '3962472', 'n_tokens_mistral': 254, 'n_tokens_neox': 257, 'n_words': 37}