<commit_before>﻿using Atlassian.Stash.Api.Api;
using Atlassian.Stash.Api.Workers;

namespace Atlassian.Stash.Api
{
    public class StashClient
    {
        private HttpCommunicationWorker _httpWorker;

        public StashClient(string baseUrl, string base64Auth)
        {
            _httpWorker = new HttpCommunicationWorker(baseUrl, base64Auth);
            InjectDependencies();
        }

        public StashClient(string baseUrl, string username, string password)
        {
            _httpWorker = new HttpCommunicationWorker(baseUrl, username, password);
            InjectDependencies();
        }

        private void InjectDependencies()
        {
            this.Projects = new Projects(_httpWorker);
            this.Repositories = new Repositories(_httpWorker);
            this.Branches = new Branches(_httpWorker);
            this.Commits = new Commits(_httpWorker);
        }

        public Projects Projects { get; private set; }
        public Repositories Repositories { get; private set; }
        public Branches Branches { get; private set; }
        public Commits Commits { get; private set; }

    }
}
<commit_msg>make _httpWorker readonly<commit_after>﻿using Atlassian.Stash.Api.Api;
using Atlassian.Stash.Api.Workers;

namespace Atlassian.Stash.Api
{
    public class StashClient
    {
        private readonly HttpCommunicationWorker _httpWorker;

        public StashClient(string baseUrl, string base64Auth)
        {
            _httpWorker = new HttpCommunicationWorker(baseUrl, base64Auth);
            InjectDependencies();
        }

        public StashClient(string baseUrl, string username, string password)
        {
            _httpWorker = new HttpCommunicationWorker(baseUrl, username, password);
            InjectDependencies();
        }

        private void InjectDependencies()
        {
            this.Projects = new Projects(_httpWorker);
            this.Repositories = new Repositories(_httpWorker);
            this.Branches = new Branches(_httpWorker);
            this.Commits = new Commits(_httpWorker);
        }

        public Projects Projects { get; private set; }
        public Repositories Repositories { get; private set; }
        public Branches Branches { get; private set; }
        public Commits Commits { get; private set; }

    }
}

{'fraction_non_alphanumeric': 0.07503234152652005, 'fraction_numerical': 0.0034497628288055198, 'mean_word_length': 2.4319526627218937, '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': '6324703', 'n_tokens_mistral': 632, 'n_tokens_neox': 599, 'n_words': 151}