<commit_before>package com.github.cstroe.svndumpgui.api;

import java.io.IOException;
import java.io.OutputStream;
import java.util.Iterator;

public interface SvnDumpWriter extends SvnDumpConsumer {
    void writeTo(OutputStream os);

    default void write(OutputStream os, SvnDump dump) throws IOException {
        writeTo(os);
        consume(dump.getPreamble());
        Iterator<SvnRevision> revisionIter = dump.revisions();
        while(revisionIter.hasNext()) {
            SvnRevision revision = revisionIter.next();
            consume(revision);

            Iterator<SvnNode> nodeIter = revision.nodes();
            while(nodeIter.hasNext()) {
                consume(nodeIter.next());
            }
        }
        finish();
    }<commit_msg>Been meaning to get rid of this for a while.<commit_after>package com.github.cstroe.svndumpgui.api;

import java.io.OutputStream;

public interface SvnDumpWriter extends SvnDumpConsumer {
    void writeTo(OutputStream os);
{'fraction_non_alphanumeric': 0.09775967413441955, 'fraction_numerical': 0.0, 'mean_word_length': 3.078838174273859, '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': '1088183', 'n_tokens_mistral': 281, 'n_tokens_neox': 274, 'n_words': 61}