<commit_before>﻿using Microsoft.Exchange.WebServices.Data;
using System;
using System.IO;
using System.Linq;
using System.Text.RegularExpressions;

namespace SODA.Utilities
{
    /// <summary>
    /// Base implementation of the IEwsClient interface
    /// </summary>
    public abstract class EwsClient : IEwsClient
    {
        /// <summary>
        /// The underlying <see cref="Microsoft.Exchange.WebServices.Data.ExchangeService"/> that this client uses to talk to EWS.
        /// </summary>
        protected readonly ExchangeService exchangeService;

        //lazy-load the inbox folder
        private Folder inbox = null;

        /// <summary>
        /// Gets a <see cref="Microsoft.Exchange.WebServices.Data.Folder"/> object representing the Inbox that this client connects to.
        /// </summary>
        protected Folder Inbox
        {
            get
            {
                if(inbox == null)
                    inbox = Folder.Bind(exchangeService, WellKnownFolderName.Inbox);
<commit_msg>allow EwsClient to be instantiated directly<commit_after>﻿using Microsoft.Exchange.WebServices.Data;
using System;
using System.IO;
using System.Linq;
using System.Text.RegularExpressions;

namespace SODA.Utilities
{
    /// <summary>
    /// Base implementation of the IEwsClient interface
    /// </summary>
    public class EwsClient : IEwsClient
    {
        /// <summary>
        /// The underlying <see cref="Microsoft.Exchange.WebServices.Data.ExchangeService"/> that this client uses to talk to EWS.
        /// </summary>
        protected readonly ExchangeService exchangeService;

        //lazy-load the inbox folder
        private Folder inbox = null;

        /// <summary>
        /// Gets a <see cref="Microsoft.Exchange.WebServices.Data.Folder"/> object representing the Inbox that this client connects to.
        /// </summary>
        protected Folder Inbox
        {
            get
            {
                if(inbox == null)
                    inbox = Folder.Bind(exchangeService, WellKnownFolderName.Inbox);

{'fraction_non_alphanumeric': 0.10014584346135148, 'fraction_numerical': 0.0, 'mean_word_length': 2.2106084243369737, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, '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': '2982706', 'n_tokens_mistral': 545, 'n_tokens_neox': 517, 'n_words': 154}