<commit_before>package ch.viascom.hipchat.api.request;

import ch.viascom.hipchat.api.deserializer.MessageFromDeserializer;
import ch.viascom.hipchat.api.deserializer.MessageLinkDeserializer;
import ch.viascom.hipchat.api.exception.APIException;
import ch.viascom.hipchat.api.models.message.MessageFrom;
import ch.viascom.hipchat.api.models.message.MessageLink;
import ch.viascom.hipchat.api.request.generic.GetRequest;
import ch.viascom.hipchat.api.request.models.ViewRecentRoomHistory;
import ch.viascom.hipchat.api.response.ViewRecentRoomHistoryResponse;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import org.apache.http.client.HttpClient;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.concurrent.ExecutorService;

/**
 * Created by <NAME> on 04.05.16.
 */
public class ViewRecentRoomHistoryRequest extends GetRequest<ViewRecentRoomHistoryResponse> {
    private ViewRecentRoomHistory viewRecentRoomHistory;

    public ViewRecentRoomHistoryRequest(ViewRecentRoomHistory viewRecentRoomHistory, String accessToken, String baseUrl, HttpClient httpClient, ExecutorService executorService) throws APIException {
        super(accessToken, baseUrl, httpClient, executorService);
        this.viewRecentRoomHistory = viewRecentRoomHistory;
        setQueryParams(new ArrayList<>(Arrays.asList("max_results","isInclude_deleted", "timezone", "not_before")), viewRecentRoomHistory);
    }

    @Override
    protected String getPath() {
        return "/room/" + viewRecentRoomHistory.getRoomId() + "/history/latest";
    }

    @Override
    protected Gson getGson() {
        GsonBuilder gsonBuilder = new GsonBuilder();
        // Use Custom TypeAdapter (MessageFromDeserializer) because "from" can be an object or a string
        gsonBuilder.registerTypeAdapter(MessageFrom.class, new MessageFromDeserializer());
        gsonBuilder.registerTypeAdapter(MessageLink.class, new MessageLinkDeserializer());
        Gson gson = gsonBuilder.create();

        return gson;
    }
}
<commit_msg>Fix include_deleted param in ViewRecentRoomHistoryRequest<commit_after>package ch.viascom.hipchat.api.request;

import ch.viascom.hipchat.api.deserializer.MessageFromDeserializer;
import ch.viascom.hipchat.api.deserializer.MessageLinkDeserializer;
import ch.viascom.hipchat.api.exception.APIException;
import ch.viascom.hipchat.api.models.message.MessageFrom;
import ch.viascom.hipchat.api.models.message.MessageLink;
import ch.viascom.hipchat.api.request.generic.GetRequest;
import ch.viascom.hipchat.api.request.models.ViewRecentRoomHistory;
import ch.viascom.hipchat.api.response.ViewRecentRoomHistoryResponse;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import org.apache.http.client.HttpClient;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.concurrent.ExecutorService;

/**
 * Created by <NAME> on 04.05.16.
 */
public class ViewRecentRoomHistoryRequest extends GetRequest<ViewRecentRoomHistoryResponse> {
    private ViewRecentRoomHistory viewRecentRoomHistory;

    public ViewRecentRoomHistoryRequest(ViewRecentRoomHistory viewRecentRoomHistory, String accessToken, String baseUrl, HttpClient httpClient, ExecutorService executorService) throws APIException {
        super(accessToken, baseUrl, httpClient, executorService);
        this.viewRecentRoomHistory = viewRecentRoomHistory;
        setQueryParams(new ArrayList<>(Arrays.asList("max_results","include_deleted", "timezone", "not_before")), viewRecentRoomHistory);
    }

    @Override
    protected String getPath() {
        return "/room/" + viewRecentRoomHistory.getRoomId() + "/history/latest";
    }

    @Override
    protected Gson getGson() {
        GsonBuilder gsonBuilder = new GsonBuilder();
        // Use Custom TypeAdapter (MessageFromDeserializer) because "from" can be an object or a string
        gsonBuilder.registerTypeAdapter(MessageFrom.class, new MessageFromDeserializer());
        gsonBuilder.registerTypeAdapter(MessageLink.class, new MessageLinkDeserializer());
        Gson gson = gsonBuilder.create();

        return gson;
    }
}

{'fraction_non_alphanumeric': 0.09440389294403893, 'fraction_numerical': 0.00291970802919708, 'mean_word_length': 5.126676602086438, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '4743446', 'n_tokens_mistral': 1211, 'n_tokens_neox': 1176, 'n_words': 218}