<commit_before>package org.hexpresso.elm327.commands;

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.ArrayList;

/**
 * Created by <NAME> <<EMAIL>> on 2015-10-26.
 */
public abstract class AbstractMultiCommand implements Command {

    private ArrayList<Command> mCommands = new ArrayList<>();
    protected Response mRawResponse = null;                    // Raw response data (for all commands)

    @Override
    public void execute(InputStream in, OutputStream out) throws IOException, InterruptedException {
        String rawResponse = "";
        for(Command command : mCommands) {
            command.execute(in, out);
            rawResponse += command.getResponse().rawResponse() + "\\n";
        }

        mRawResponse = new Response(rawResponse);
    }

    @Override
    public Response getResponse() {
        return mRawResponse;
    }

    protected AbstractMultiCommand addCommand(Command command) {
        mCommands.add(command);
        return this;
    }
}<commit_msg>Forgot to commit this file long ago<commit_after>package org.hexpresso.elm327.commands;

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.ArrayList;

/**
 * Created by <NAME> <<EMAIL>> on 2015-10-26.
 */
public abstract class AbstractMultiCommand implements Command {

    private ArrayList<Command> mCommands = new ArrayList<>();
    protected Response mRawResponse = null;                    // Raw response data (for all commands)

    @Override
    public void execute(InputStream in, OutputStream out) throws IOException, InterruptedException {
        String rawResponse = "";
        for(Command command : mCommands) {
            command.execute(in, out);
            rawResponse += command.getResponse().rawResponse() + "\\n";
        }

        mRawResponse = new Response();
        mRawResponse.setRawResponse(rawResponse);
    }

    @Override
    public Response getResponse() {
        return mRawResponse;
    }

    protected AbstractMultiCommand addCommand(Command command) {
        mCommands.add(command);
        return this;
    }
}
{'fraction_non_alphanumeric': 0.09846725499303298, 'fraction_numerical': 0.010218300046446818, 'mean_word_length': 2.9234972677595628, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, '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': '4628935', 'n_tokens_mistral': 569, 'n_tokens_neox': 542, 'n_words': 153}