<commit_before>package com.flytxt.parser.lookup;

import org.junit.Test;

import com.flytxt.parser.marker.Marker;
import com.flytxt.parser.marker.MarkerFactory;

public class SearchLookupTest {

    @Test
    public void basicTest() {
        final String[][] data = { { "Hello World", "World" }, { "Wallnut", "fruit" } };
        final Search<Marker> object = new Search<>();
        final MarkerFactory mf = new MarkerFactory();
        mf.setMaxListSize(100);

        for (final String[] datum : data) {
            object.load(datum[0].getBytes(), mf.createImmutable(datum[1].getBytes(), 0, datum[1].getBytes().length));
        }
        final Marker marker = object.get("qwertyuiopasdsdadsad".getBytes());
        System.out.println(marker.toString(marker.getData()));
    }
}<commit_msg>Positive test case<commit_after>package com.flytxt.parser.lookup;

import org.junit.Test;

import com.flytxt.parser.marker.Marker;
import com.flytxt.parser.marker.MarkerFactory;

public class SearchLookupTest {

    @Test
    public void basicTest() {
        final String[][] data = { { "Hello World", "World" }, { "Wallnut", "fruit" } };
        final Search<Marker> object = new Search<>();
        final MarkerFactory mf = new MarkerFactory();
        mf.setMaxListSize(100);

        for (final String[] datum : data) {
            object.load(datum[0].getBytes(), mf.createImmutable(datum[1].getBytes(), 0, datum[1].getBytes().length));
        }
        final Marker marker = object.get("lln".getBytes());
        System.out.println(marker.toString(marker.getData()));
    }
}
{'fraction_non_alphanumeric': 0.1520912547528517, 'fraction_numerical': 0.008871989860583017, 'mean_word_length': 3.279132791327913, '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': '1794424', 'n_tokens_mistral': 496, 'n_tokens_neox': 481, 'n_words': 98}