<commit_before>package se.ltu.emapal.compute.util.media.jackson

import org.junit.Test

import se.ltu.emapal.compute.util.media.MediaDecoder

import org.junit.Assert.*
import se.ltu.emapal.compute.util.Result
import se.ltu.emapal.compute.util.media.jackson.JacksonMediaConverter
import java.io.ByteArrayInputStream
import java.nio.charset.StandardCharsets

/**
 * Only briefly tests JSON decoding as a complement to the tests in TestMediaTranscoding.
 */
class TestJacksonMediaDecoderJson {
    @Test
    fun shouldDecodeNull() {
        decode("[null]", { decoder ->
            val value = decoder.toList()[0]
            assertNotNull(value)
            assertEquals(MediaDecoder.Type.NULL, value.type)
        })
    }
<commit_msg>Remove unused imports from TestJacksonMediaDecoderJson<commit_after>package se.ltu.emapal.compute.util.media.jackson

import org.junit.Test

import se.ltu.emapal.compute.util.media.MediaDecoder

import org.junit.Assert.*
import se.ltu.emapal.compute.util.Result
import java.io.ByteArrayInputStream
import java.nio.charset.StandardCharsets

/**
 * Only briefly tests JSON decoding as a complement to the tests in TestMediaTranscoding.
 */
class TestJacksonMediaDecoderJson {
    @Test
    fun shouldDecodeNull() {
        decode("[null]", { decoder ->
            val value = decoder.toList()[0]
            assertNotNull(value)
            assertEquals(MediaDecoder.Type.NULL, value.type)
        })
    }

{'fraction_non_alphanumeric': 0.10062456627342123, 'fraction_numerical': 0.0013879250520471894, 'mean_word_length': 3.450617283950617, 'pattern_counts': {'":': 0, '<': 3, '<?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': '1923534', 'n_tokens_mistral': 432, 'n_tokens_neox': 416, 'n_words': 86}