<commit_before>package de.prob2.ui.states;

import java.util.Objects;

public class StateItem<T> {
	private final T contents;
	private final boolean errored;
	
	public StateItem(final T contents, final boolean errored) {
		super();
		
		Objects.requireNonNull(contents);
		
		this.contents = contents;
		this.errored = errored;
	}
	
	public T getContents() {
		return this.contents;
	}
	
	public boolean isErrored() {
		return this.errored;
	}
}
<commit_msg>Add custom toString() to StateItem<commit_after>package de.prob2.ui.states;

import java.util.Objects;

public class StateItem<T> {
	private final T contents;
	private final boolean errored;
	
	public StateItem(final T contents, final boolean errored) {
		super();
		
		Objects.requireNonNull(contents);
		
		this.contents = contents;
		this.errored = errored;
	}
	
	public T getContents() {
		return this.contents;
	}
	
	public boolean isErrored() {
		return this.errored;
	}
	
	@Override
	public String toString() {
		return String.format("%s{contents=%s, errored=%s}", this.getClass().getName(), this.getContents(), this.isErrored());
	}
}

{'fraction_non_alphanumeric': 0.11625794732061762, 'fraction_numerical': 0.0018165304268846503, 'mean_word_length': 4.173708920187793, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '6030721', 'n_tokens_mistral': 395, 'n_tokens_neox': 346, 'n_words': 90}