<commit_before>package org.runetranscriber.core;

import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertThat;

import java.util.List;

import org.junit.Test;

/**
 * Provides tests for the <code>FullTranscriber</code> class.
 */
public class FullTranscriberTest
{
    /** Transcriber. */
    private final FullTranscriber<MyTestRune> transcriber = new FullTranscriber<MyTestRune>("MyTestRune",
            "MyTestRune runes.", new MyTestPhoneticTranscriber(), new MyTestRuneTranscriber(),
            new MyTestFontTranscriber()/* , MyTestRune.class */);

    /**
     * Test the <code>transcribeForward()</code> method.
     */
    @Test
    public void transcribeForward()
    {
        final List<String> languageLetters = ListUtilities.convert("the hobbit,\nor there and back again");

        final List<String> result = transcriber.transcribeForward(languageLetters);

        assertNotNull(result);
        assertThat(result.size(), is(35));
        assertThat(ListUtilities.convert(result), is("the hobbit,\nor there and bakk again"));
    }

    /**
     * Test the <code>transcribeReverse()</code> method.
     */
    @Test
    public void transcribeReverse()
    {
        final List<String> fontLetters = ListUtilities.convert("the hobbit,\nor there and bakk again");

        final List<String> result = transcriber.transcribeReverse(fontLetters);

        assertNotNull(result);
        assertThat(result.size(), is(35));
        assertThat(ListUtilities.convert(result), is("the hobbit,\nor there and bakk again"));
    }
}<commit_msg>Changed to use type-specific lists.<commit_after>package org.runetranscriber.core;

import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertThat;

import org.junit.Test;

/**
 * Provides tests for the <code>FullTranscriber</code> class.
 */
public final class FullTranscriberTest
{
    /** Transcriber. */
    private final FullTranscriber<MyTestRune> transcriber = new FullTranscriber<MyTestRune>("MyTestRune",
            "MyTestRune runes.", new MyTestPhoneticTranscriber(), new MyTestRuneTranscriber(),
            new MyTestFontTranscriber()/* , MyTestRune.class */);

    /**
     * Test the <code>transcribeForward()</code> method.
     */
    @Test
    public void transcribeForward()
    {
        final LanguageLetterList languageLetters = new LanguageLetterList("the hobbit,\nor there and back again");

        final FontLetterList result = transcriber.transcribeForward(languageLetters);

        assertNotNull(result);
        assertThat(result.size(), is(35));
        assertThat(result.toString(), is("the hobbit,\nor there and bakk again"));
    }

    /**
     * Test the <code>transcribeReverse()</code> method.
     */
    @Test
    public void transcribeReverse()
    {
        final FontLetterList fontLetters = new FontLetterList("the hobbit,\nor there and bakk again");

        final LanguageLetterList result = transcriber.transcribeReverse(fontLetters);

        assertNotNull(result);
        assertThat(result.size(), is(35));
        assertThat(result.toString(), is("the hobbit,\nor there and bakk again"));
    }
}
{'fraction_non_alphanumeric': 0.11820987654320987, 'fraction_numerical': 0.0024691358024691358, 'mean_word_length': 3.5455820476858344, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 23, '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': '5629504', 'n_tokens_mistral': 979, 'n_tokens_neox': 931, 'n_words': 209}