<commit_before>//376d91c0-5633-4523-b012-f2d9ecfbe6c7<#if includeOutlookServices>^//fa684d69-70b3-41ec-83ff-2f8fa77aeeba</#if><#if includeFileServices>^//1073bed4-78c3-4b4a-8a4d-ad874a286d86</#if><#if includeListServices>^//6695fd94-10cc-4274-b5df-46a3bc63a33d</#if><#if includeOneNoteServices>^//657555dc-6167-466a-9536-071307770d46</#if>
package ${packageName};

import android.app.Activity;
<#if includeOutlookServices || includeFileServices || includeListServices>
import android.content.Context;
</#if>
import android.os.Bundle;
<#if includeOutlookServices || includeFileServices || includeListServices>
import com.google.common.util.concurrent.FutureCallback;
import com.google.common.util.concurrent.Futures;
import com.google.common.util.concurrent.ListenableFuture;
</#if>
<#if includeFileServices>
import com.microsoft.fileservices.Item;
</#if>
<#if includeOutlookServices>
import com.microsoft.outlookservices.Message;
import com.microsoft.outlookservices.odata.OutlookClient;
</#if>
<#if includeOutlookServices || includeFileServices>
import com.microsoft.services.odata.impl.DefaultDependencyResolver;
</#if>
<#if includeListServices>
import com.microsoft.sharepointservices.Credentials;
import com.microsoft.sharepointservices.ListClient;
import com.microsoft.sharepointservices.Query;
import com.microsoft.sharepointservices.SPList;
import com.microsoft.sharepointservices.http.Request;
</#if>
<#if includeFileServices>
import com.microsoft.sharepointservices.odata.SharePointClient;
</#if>
<#if includeOneNoteServices>
import com.google.common.util.concurrent.FutureCallback;
import com.google.common.util.concurrent.Futures;
import com.microsoft.live.LiveAuthClient;
import com.microsoft.onenote.api.Notebook;
import com.microsoft.onenote.api.odata.OneNoteApiClient;
import com.microsoft.services.odata.impl.LiveAuthDependencyResolver;
import com.microsoft.services.odata.interfaces.LogLevel;

import java.util.Arrays;
import java.util.List;
import android.util.Log;
</#if>


<#if includeOutlookServices || includeFileServices || includeListServices>

import java.util.List;
</#if>

public class ${activityClass} extends Activity {
<#if includeOutlookServices || includeFileServices || includeListServices>
    private final String o365AppId = this.getString(R.string.o365_app_id_${activityToLayout(activityClass)});
    private final String o365Name = this.getString(R.string.o365_name_${activityToLayout(activityClass)});

</#if>

<#if includeOneNoteServices>
    private final String CLIENT_ID = this.getString(R.string.o365_clientId_${activityToLayout(activityClass)});
    final static public String[] SCOPES = {
            "wl.signin",
            "wl.basic",
            "wl.offline_access",
            "wl.skydrive_update",
            "wl.contacts_create",
            "office.onenote_create"
    };
    final static public String ONENOTE_API_ROOT = "https://www.onenote.com/api/v1.0";

    private LiveAuthDependencyResolver dependencyResolver;
    private List<Notebook> notebookList;
    private OneNoteApiClient oneNoteClient;
</#if>

    /**
     * Initializes the activity
     */
    @Override
    public void onCreate(Bundle savedInstanceState) {<commit_msg>[O365] Format and fix imports in template<commit_after>//376d91c0-5633-4523-b012-f2d9ecfbe6c7<#if includeOutlookServices>^//fa684d69-70b3-41ec-83ff-2f8fa77aeeba</#if><#if includeFileServices>^//1073bed4-78c3-4b4a-8a4d-ad874a286d86</#if><#if includeListServices>^//6695fd94-10cc-4274-b5df-46a3bc63a33d</#if><#if includeOneNoteServices>^//657555dc-6167-466a-9536-071307770d46</#if>
package ${packageName};

import android.app.Activity;
<#if includeOutlookServices || includeFileServices || includeListServices>
import android.content.Context;
</#if>
import android.os.Bundle;
<#if includeOneNoteServices>
import android.util.Log;
</#if>
<#if includeOutlookServices || includeFileServices || includeListServices || includeOneNoteServices>
import com.google.common.util.concurrent.FutureCallback;
import com.google.common.util.concurrent.Futures;
</#if>
<#if includeOutlookServices || includeFileServices || includeListServices>
import com.google.common.util.concurrent.ListenableFuture;
</#if>
<#if includeFileServices>
import com.microsoft.fileservices.Item;
import com.microsoft.fileservices.odata.SharePointClient;
</#if>
<#if includeOneNoteServices>
import com.microsoft.live.LiveAuthClient;
import com.microsoft.onenote.api.Notebook;
import com.microsoft.onenote.api.odata.OneNoteApiClient;
</#if>
<#if includeOutlookServices>
import com.microsoft.outlookservices.Message;
import com.microsoft.outlookservices.odata.OutlookClient;
</#if>
<#if includeOutlookServices || includeFileServices>
import com.microsoft.services.odata.impl.DefaultDependencyResolver;
</#if>
<#if includeOneNoteServices>
import com.microsoft.services.odata.impl.LiveAuthDependencyResolver;
import com.microsoft.services.odata.interfaces.LogLevel;
</#if>
<#if includeListServices>
import com.microsoft.sharepointservices.Credentials;
import com.microsoft.sharepointservices.ListClient;
import com.microsoft.sharepointservices.Query;
import com.microsoft.sharepointservices.SPList;
import com.microsoft.sharepointservices.http.Request;
</#if>

<#if includeOneNoteServices>
import java.util.Arrays;
</#if>
<#if includeOutlookServices || includeFileServices || includeListServices || includeOneNoteServices>
import java.util.List;
</#if>

public class ${activityClass} extends Activity {
<#if includeOutlookServices || includeFileServices || includeListServices>
    private final String o365AppId = this.getString(R.string.o365_app_id_${activityToLayout(activityClass)});
    private final String o365Name = this.getString(R.string.o365_name_${activityToLayout(activityClass)});
</#if>
<#if includeOneNoteServices>
    private final String CLIENT_ID = this.getString(R.string.o365_clientId_${activityToLayout(activityClass)});
    final static public String[] SCOPES = {
            "wl.signin",
            "wl.basic",
            "wl.offline_access",
            "wl.skydrive_update",
            "wl.contacts_create",
            "office.onenote_create"
    };
    final static public String ONENOTE_API_ROOT = "https://www.onenote.com/api/v1.0";

    private LiveAuthDependencyResolver dependencyResolver;
    private List<Notebook> notebookList;
    private OneNoteApiClient oneNoteClient;
</#if>

    /**
     * Initializes the activity
     */
    @Override
    public void onCreate(Bundle savedInstanceState) {
{'fraction_non_alphanumeric': 0.12060456508328192, 'fraction_numerical': 0.03809376927822332, 'mean_word_length': 5.699380165289257, 'pattern_counts': {'":': 0, '<': 71, '<?xml version=': 0, '>': 71, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '5838074', 'n_tokens_mistral': 2188, 'n_tokens_neox': 2028, 'n_words': 327}