<commit_before>﻿using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Runtime.InteropServices;
using System.Security;
using System.Text;
using System.Threading;
using System.Threading.Tasks;

namespace Docker.DotNet.BasicAuth
{
    public class BasicAuthCredentials : Credentials
    {
        private readonly BasicAuthHandler _handler;
        private readonly bool _isTls;

        private class BasicAuthHandler : HttpClientHandler
        {
            SecureString _username;
            SecureString _password;

            public BasicAuthHandler(SecureString username, SecureString password)
            {
                _username = username;
                _password = password;
            }

            protected override Task<HttpResponseMessage> SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
            {
                request.Headers.Authorization = new AuthenticationHeaderValue("Basic", BuildParameters());

                return base.SendAsync(request, cancellationToken);<commit_msg>added private readonly to readonly fields<commit_after>﻿using System;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Runtime.InteropServices;
using System.Security;
using System.Text;
using System.Threading;
using System.Threading.Tasks;

namespace Docker.DotNet.BasicAuth
{
    public class BasicAuthCredentials : Credentials
    {
        private readonly BasicAuthHandler _handler;
        private readonly bool _isTls;

        private class BasicAuthHandler : HttpClientHandler
        {
            private readonly SecureString _username;
            private readonly SecureString _password;

            public BasicAuthHandler(SecureString username, SecureString password)
            {
                _username = username;
                _password = password;
            }

            protected override Task<HttpResponseMessage> SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
            {
                request.Headers.Authorization = new AuthenticationHeaderValue("Basic", BuildParameters());

                return base.SendAsync(request, cancellationToken);
{'fraction_non_alphanumeric': 0.060218978102189784, 'fraction_numerical': 0.0, 'mean_word_length': 2.8339160839160837, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '6532617', 'n_tokens_mistral': 502, 'n_tokens_neox': 489, 'n_words': 130}