<commit_before>package com.heroku.api.command;


public class ChainedResponse<T extends Command> implements CommandResponse {

    T nextCommand;
    byte[] data;

    public ChainedResponse(T next, byte[] raw) {
        nextCommand = next;
        data = raw;
    }

    @Override
    public Object get(String key) {
        throw new UnsupportedOperationException("Call getData to get the next command to execute");
    }

    @Override
    public byte[] getRawData() {
        return data;
    }

    @Override
    public T getData() {
        return nextCommand;
    }
}
<commit_msg>bit of doc for ChainedResponse<commit_after>package com.heroku.api.command;


/**
 * A chained response is a response that returns a command that should subsequently be executed.
 * <p/>
 * For intstance to get access to logs, an initial LogsRequest is sent which sets up the logplex session
 * and returns a LogResponse  (which is a ChainedResponse<TextCommand>).
 * Executing the command returned from the LogResponse will
 * actually be the command that gets log data for you.
 *
 * @param <T> The type of the 'next' command that should be executed.
 */
public class ChainedResponse<T extends Command> implements CommandResponse {

    T nextCommand;
    byte[] data;

    public ChainedResponse(T next, byte[] raw) {
        nextCommand = next;
        data = raw;
    }

    @Override
    public Object get(String key) {
        throw new UnsupportedOperationException("Call getData to get the next command to execute");
    }

    @Override
    public byte[] getRawData() {
        return data;
    }

    @Override
    public T getData() {
        return nextCommand;
    }
}

{'fraction_non_alphanumeric': 0.07784431137724551, 'fraction_numerical': 0.0, 'mean_word_length': 2.8680555555555554, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, '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': '6744379', 'n_tokens_mistral': 459, 'n_tokens_neox': 445, 'n_words': 176}