<commit_before>/*
 *  Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See full license at the bottom of this file.
 */

package com.microsoft.office365.snippetapp.Snippets;

import com.microsoft.outlookservices.Attachment;
import com.microsoft.outlookservices.BodyType;
import com.microsoft.outlookservices.EmailAddress;
import com.microsoft.outlookservices.FileAttachment;
import com.microsoft.outlookservices.Folder;
import com.microsoft.outlookservices.Item;
import com.microsoft.outlookservices.ItemAttachment;
import com.microsoft.outlookservices.ItemBody;
import com.microsoft.outlookservices.Message;
import com.microsoft.outlookservices.Recipient;
import com.microsoft.outlookservices.odata.OutlookClient;

import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ExecutionException;

public class EmailSnippets {
    private final static int pageSize = 11;
    public static final String MICROSOFT_OUTLOOK_SERVICES_ITEM_ATTACHMENT = "#Microsoft.OutlookServices.ItemAttachment";
    OutlookClient mOutlookClient;

    public EmailSnippets(OutlookClient mailClient) {
        mOutlookClient = mailClient;
    }

    /**
     * Gets a list of the 10 most recent email messages in the
     * user Inbox, sorted by date and time received.
     *
     * @return List of type com.microsoft.outlookservices.Message
     * @version 1.0
     */
    public List<Message> getMailMessages() throws ExecutionException, InterruptedException {
        List<Message> messages = mOutlookClient
                .getMe()<commit_msg>Removing unused constant<commit_after>/*
 *  Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See full license at the bottom of this file.
 */

package com.microsoft.office365.snippetapp.Snippets;

import com.microsoft.outlookservices.Attachment;
import com.microsoft.outlookservices.BodyType;
import com.microsoft.outlookservices.EmailAddress;
import com.microsoft.outlookservices.FileAttachment;
import com.microsoft.outlookservices.Folder;
import com.microsoft.outlookservices.Item;
import com.microsoft.outlookservices.ItemAttachment;
import com.microsoft.outlookservices.ItemBody;
import com.microsoft.outlookservices.Message;
import com.microsoft.outlookservices.Recipient;
import com.microsoft.outlookservices.odata.OutlookClient;

import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ExecutionException;

public class EmailSnippets {
    
    public static final String MICROSOFT_OUTLOOK_SERVICES_ITEM_ATTACHMENT = "#Microsoft.OutlookServices.ItemAttachment";
    OutlookClient mOutlookClient;

    public EmailSnippets(OutlookClient mailClient) {
        mOutlookClient = mailClient;
    }

    /**
     * Gets a list of the 10 most recent email messages in the
     * user Inbox, sorted by date and time received.
     *
     * @return List of type com.microsoft.outlookservices.Message
     * @version 1.0
     */
    public List<Message> getMailMessages() throws ExecutionException, InterruptedException {
        List<Message> messages = mOutlookClient
                .getMe()
{'fraction_non_alphanumeric': 0.07927927927927927, 'fraction_numerical': 0.004804804804804805, 'mean_word_length': 4.542429284525791, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '6205887', 'n_tokens_mistral': 961, 'n_tokens_neox': 914, 'n_words': 231}