<commit_before>package org.neo4j.kernel.impl.ha;

import java.io.IOException;
import java.nio.channels.ReadableByteChannel;
import java.util.Collection;

/**
 * Represents a stream of the data of one or more consecutive transactions. 
 */
public final class TransactionStream
{
    private final Collection<ReadableByteChannel> channels;

    public TransactionStream( Collection<ReadableByteChannel> channels )
    {
        this.channels = channels;
    }

    public Collection<ReadableByteChannel> getChannels()
    {
        return channels;
    }

    public void close() throws IOException
    {
        for ( ReadableByteChannel channel : channels )
        {
            channel.close();
        }
    }
}<commit_msg>Each tx channels is paired with its txId<commit_after>package org.neo4j.kernel.impl.ha;

import java.io.IOException;
import java.nio.channels.ReadableByteChannel;
import java.util.Collection;

import org.neo4j.helpers.Pair;

/**
 * Represents a stream of the data of one or more consecutive transactions. 
 */
public final class TransactionStream
{
    private final Collection<Pair<Long, ReadableByteChannel>> channels;

    public TransactionStream( Collection<Pair<Long, ReadableByteChannel>> channels )
    {
        this.channels = channels;
    }

    public Collection<Pair<Long, ReadableByteChannel>> getChannels()
    {
        return channels;
    }

    public void close() throws IOException
    {
        for ( Pair<Long, ReadableByteChannel> channel : channels )
        {
            channel.other().close();
        }
    }
}
{'fraction_non_alphanumeric': 0.0874282067645182, 'fraction_numerical': 0.0019144862795149968, 'mean_word_length': 3.093994778067885, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, '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': '4741834', 'n_tokens_mistral': 425, 'n_tokens_neox': 414, 'n_words': 111}