<commit_before>package com.hurence.logisland.processor;

import com.hurence.logisland.record.FieldType;
import com.hurence.logisland.record.Record;
import com.hurence.logisland.record.StandardRecord;
import com.hurence.logisland.util.runner.TestRunner;
import com.hurence.logisland.util.runner.TestRunners;
import org.junit.Test;

import java.util.ArrayList;
import java.util.Collection;

public class DebugStreamTest {

    @Test
    public void trtetytry() {
        Collection<Record> records = new ArrayList<>();


        records.add(new StandardRecord()
                .setField("a", FieldType.STRING, "a1")
                .setField("b", FieldType.STRING, "b1")
                .setField("c", FieldType.LONG, 1));

        records.add(new StandardRecord()
                .setField("a", FieldType.STRING, "a2")
                .setField("b", FieldType.STRING, "b2")
                .setField("c", FieldType.LONG, 2));

        records.add(new StandardRecord()
                .setField("a", FieldType.STRING, "a3")
                .setField("b", FieldType.STRING, "b3")
                .setField("c", FieldType.LONG, 3));

        DebugStream proc = new DebugStream();
        proc.setIdentifier("debug_1");
        TestRunner testRunner = TestRunners.newTestRunner(proc);
        testRunner.assertValid();
        testRunner.enqueue(records);
        testRunner.run();
        testRunner.assertAllInputRecordsProcessed();
        testRunner.assertOutputRecordsCount(3);
        testRunner.assertOutputErrorCount(0);
        testRunner.enqueue(records);
        testRunner.run();
        testRunner.assertOutputRecordsCount(6);
        testRunner.enqueue(records);
        testRunner.run();
        testRunner.assertOutputRecordsCount(9);
        testRunner.enqueue(records);
        testRunner.run();
        testRunner.assertOutputRecordsCount(12);
        testRunner.enqueue(records);
        testRunner.run();
        testRunner.assertOutputRecordsCount(12);
        testRunner.enqueue(records);
        testRunner.run();
        testRunner.assertOutputRecordsCount(15);
        testRunner.enqueue(records);
        testRunner.run();
        testRunner.assertOutputRecordsCount(18);
    }
}
<commit_msg>Fixed DebugStreamTest.<commit_after>package com.hurence.logisland.processor;

import com.hurence.logisland.record.FieldType;
import com.hurence.logisland.record.Record;
import com.hurence.logisland.record.StandardRecord;
import com.hurence.logisland.util.runner.TestRunner;
import com.hurence.logisland.util.runner.TestRunners;
import org.junit.Test;

import java.util.ArrayList;
import java.util.Collection;

public class DebugStreamTest {

    @Test
    public void trtetytry() {
        Collection<Record> records = new ArrayList<>();


        records.add(new StandardRecord()
                .setField("a", FieldType.STRING, "a1")
                .setField("b", FieldType.STRING, "b1")
                .setField("c", FieldType.LONG, 1));

        records.add(new StandardRecord()
                .setField("a", FieldType.STRING, "a2")
                .setField("b", FieldType.STRING, "b2")
                .setField("c", FieldType.LONG, 2));

        records.add(new StandardRecord()
                .setField("a", FieldType.STRING, "a3")
                .setField("b", FieldType.STRING, "b3")
                .setField("c", FieldType.LONG, 3));

        DebugStream proc = new DebugStream();
        proc.setIdentifier("debug_1");
        TestRunner testRunner = TestRunners.newTestRunner(proc);
        testRunner.assertValid();
        testRunner.enqueue(records);
        testRunner.run();
        testRunner.assertAllInputRecordsProcessed();
        testRunner.assertOutputRecordsCount(3);
        testRunner.assertOutputErrorCount(0);
        testRunner.enqueue(records);
        testRunner.run();
        testRunner.assertOutputRecordsCount(6);
        testRunner.enqueue(records);
        testRunner.run();
        testRunner.assertOutputRecordsCount(9);
        testRunner.enqueue(records);
        testRunner.run();
        testRunner.assertOutputRecordsCount(12);
        testRunner.enqueue(records);
        testRunner.run();
        testRunner.assertOutputRecordsCount(15);
        testRunner.enqueue(records);
        testRunner.run();
        testRunner.assertOutputRecordsCount(18);
        testRunner.enqueue(records);
        testRunner.run();
        testRunner.assertOutputRecordsCount(21);
    }
}

{'fraction_non_alphanumeric': 0.12232484793872493, 'fraction_numerical': 0.00991214237440865, 'mean_word_length': 2.7405223251895534, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '3147495', 'n_tokens_mistral': 1298, 'n_tokens_neox': 1241, 'n_words': 189}