<commit_before>package org.mockito.internal.debugging;

import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;

import org.mockito.internal.invocation.Invocation;
import org.mockito.internal.invocation.InvocationMatcher;
import org.mockito.internal.util.MockitoLogger;

public class DebuggingInfo {

    //TODO Thread safety issue?
    private final List<Invocation> stubbedInvocations = new LinkedList<Invocation>();
    private final List<InvocationMatcher> potentiallyUnstubbedInvocations = new LinkedList<InvocationMatcher>();
    //TODO this code is crap. Use different field to maintain unusedInvocations
    private final List<InvocationMatcher> unusedInvocations = new LinkedList<InvocationMatcher>();
    private boolean collectingData;

    public void addStubbedInvocation(Invocation invocation) {
        if (!collectingData) {
            return;<commit_msg>thread safety = OK, removed TODO<commit_after>package org.mockito.internal.debugging;

import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;

import org.mockito.internal.invocation.Invocation;
import org.mockito.internal.invocation.InvocationMatcher;
import org.mockito.internal.util.MockitoLogger;

public class DebuggingInfo {

    private final List<Invocation> stubbedInvocations = new LinkedList<Invocation>();
    private final List<InvocationMatcher> potentiallyUnstubbedInvocations = new LinkedList<InvocationMatcher>();
    //TODO this code is crap. Use different field to maintain unusedInvocations
    private final List<InvocationMatcher> unusedInvocations = new LinkedList<InvocationMatcher>();
    private boolean collectingData;

    public void addStubbedInvocation(Invocation invocation) {
        if (!collectingData) {
            return;
{'fraction_non_alphanumeric': 0.07934721440630275, 'fraction_numerical': 0.0, 'mean_word_length': 5.26056338028169, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, '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': '822628', 'n_tokens_mistral': 472, 'n_tokens_neox': 460, 'n_words': 119}