<commit_before>package com.timgroup.eventstore.common;

import com.timgroup.eventstore.api.*;

import java.util.Arrays;
import java.util.Collection;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.stream.Stream;

import static com.timgroup.eventstore.api.EventStreamReader.EmptyStreamEventNumber;
import static java.nio.charset.StandardCharsets.UTF_8;

public final class IdempotentEventStreamWriter implements EventStreamWriter {

    public static class IncompatibleNewEventException extends RuntimeException {
        public final ResolvedEvent currentEvent;
        public final NewEvent newEvent;<commit_msg>tomd: ok, scaladoc, you win... start undoing things until you can understand... first we remove the final modifier <sadface/><commit_after>package com.timgroup.eventstore.common;

import com.timgroup.eventstore.api.*;

import java.util.Arrays;
import java.util.Collection;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.stream.Stream;

import static com.timgroup.eventstore.api.EventStreamReader.EmptyStreamEventNumber;
import static java.nio.charset.StandardCharsets.UTF_8;

public class IdempotentEventStreamWriter implements EventStreamWriter {

    public static class IncompatibleNewEventException extends RuntimeException {
        public final ResolvedEvent currentEvent;
        public final NewEvent newEvent;
{'fraction_non_alphanumeric': 0.0723589001447178, 'fraction_numerical': 0.001447178002894356, 'mean_word_length': 5.5545023696682465, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '4157373', 'n_tokens_mistral': 369, 'n_tokens_neox': 360, 'n_words': 96}