<commit_before>package org.easybatch.core.writer;

import org.easybatch.core.record.Batch;

import java.util.List;

import static java.util.Arrays.asList;

/**
 * Composite writer that delegates record writing to a list of writers.
 *
 * @author <NAME> (<EMAIL>)
 */
public class CompositeRecordWriter implements RecordWriter {

    private List<RecordWriter> writers;

    /**
     * Create a {@link CompositeRecordWriter}.
     *
     * @param writers delegates
     */
    public CompositeRecordWriter(List<RecordWriter> writers) {
        this.writers = writers;
    }

    /**
     * Create a {@link CompositeRecordWriter}.
     *
     * @param writers delegates
     */
    public CompositeRecordWriter(RecordWriter... writers) {
        this.writers = asList(writers);
    }

    @Override
    public void open() throws Exception {
        for (RecordWriter writer : writers) {<commit_msg>remove constructor with varargs<commit_after>package org.easybatch.core.writer;

import org.easybatch.core.record.Batch;

import java.util.List;

/**
 * Composite writer that delegates record writing to a list of writers.
 *
 * @author <NAME> (<EMAIL>)
 */
public class CompositeRecordWriter implements RecordWriter {

    private List<RecordWriter> writers;

    /**
     * Create a {@link CompositeRecordWriter}.
     *
     * @param writers delegates
     */
    public CompositeRecordWriter(List<RecordWriter> writers) {
        this.writers = writers;
    }

    @Override
    public void open() throws Exception {
        for (RecordWriter writer : writers) {
{'fraction_non_alphanumeric': 0.10185778347213324, 'fraction_numerical': 0.0, 'mean_word_length': 3.0783289817232378, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '20581', 'n_tokens_mistral': 444, 'n_tokens_neox': 422, 'n_words': 118}