<commit_before>package com.cmendenhall.mocks;

import com.cmendenhall.views.TerminalView;

import java.util.Queue;
import java.util.concurrent.LinkedBlockingQueue;

public class MockTerminalView extends TerminalView {
    private Queue<String> inputQ = new LinkedBlockingQueue<String>();

    public void enqueueInput(String fakeInput) {
        inputQ.add(fakeInput);
    }

    public void clearInput() {
        inputQ.clear();
    }

    @Override
    public String getInput() {
        return inputQ.remove();
    }

}<commit_msg>Duplicated code 3: Add varargs to enqueue methods<commit_after>package com.cmendenhall.mocks;

import com.cmendenhall.views.TerminalView;

import java.util.Queue;
import java.util.concurrent.LinkedBlockingQueue;

public class MockTerminalView extends TerminalView {
    private Queue<String> inputQ = new LinkedBlockingQueue<String>();

    public void enqueueInput(String... fakeInput) {
        for (String input : fakeInput) {
            inputQ.add(input);
        }
    }

    public void clearInput() {
        inputQ.clear();
    }

    @Override
    public String getInput() {
        return inputQ.remove();
    }

}
{'fraction_non_alphanumeric': 0.09741379310344828, 'fraction_numerical': 0.0008620689655172414, 'mean_word_length': 3.2683823529411766, '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': '6606929', 'n_tokens_mistral': 347, 'n_tokens_neox': 340, 'n_words': 77}