<commit_before>/* @java.file.header */

/*  _________        _____ __________________        _____
 *  __  ____/___________(_)______  /__  ____/______ ____(_)_______
 *  _  / __  __  ___/__  / _  __  / _  / __  _  __ `/__  / __  __ \
 *  / /_/ /  _  /    _  /  / /_/ /  / /_/ /  / /_/ / _  /  _  / / /
 *  \____/   /_/     /_/   \_,__/   \____/   \__,_/  /_/   /_/ /_/
 */

package org.gridgain.grid.spi.indexing.h2;

import org.gridgain.grid.spi.indexing.*;
import org.gridgain.testframework.junits.spi.*;

/**
 * Tests for H2 indexing SPI.
 */
@GridSpiTest(spi = GridH2IndexingSpi.class, group = "Indexing SPI")
public class GridH2IndexingSpiOffheapSelfTest extends GridIndexingSpiAbstractSelfTest<GridH2IndexingSpi> {
    /** */
    private static final long offheap = 10000000;

    private static GridH2IndexingSpi currentSpi;

    /** {@inheritDoc} */
    @Override protected void spiConfigure(GridH2IndexingSpi spi) throws Exception {
        super.spiConfigure(spi);

        spi.setMaxOffHeapMemory(offheap);

        currentSpi = spi;
    }

    /** {@inheritDoc} */
    @Override protected void afterSpiStopped() throws Exception {
        super.afterSpiStopped();

        assertEquals(0, currentSpi.getAllocatedOffHeapMemory());
    }<commit_msg>sp-22 fake<commit_after>/* @java.file.header */

/*  _________        _____ __________________        _____
 *  __  ____/___________(_)______  /__  ____/______ ____(_)_______
 *  _  / __  __  ___/__  / _  __  / _  / __  _  __ `/__  / __  __ \
 *  / /_/ /  _  /    _  /  / /_/ /  / /_/ /  / /_/ / _  /  _  / / /
 *  \____/   /_/     /_/   \_,__/   \____/   \__,_/  /_/   /_/ /_/
 */

package org.gridgain.grid.spi.indexing.h2;

import org.gridgain.grid.spi.indexing.*;
import org.gridgain.testframework.junits.spi.*;

/**
 * Tests for H2 indexing SPI.
 */
@GridSpiTest(spi = GridH2IndexingSpi.class,  group = "Indexing SPI")
public class GridH2IndexingSpiOffheapSelfTest extends GridIndexingSpiAbstractSelfTest<GridH2IndexingSpi> {
    /** */
    private static final long offheap = 10000000;

    private static GridH2IndexingSpi currentSpi;

    /** {@inheritDoc} */
    @Override protected void spiConfigure(GridH2IndexingSpi spi) throws Exception {
        super.spiConfigure(spi);

        spi.setMaxOffHeapMemory(offheap);

        currentSpi = spi;
    }

    /** {@inheritDoc} */
    @Override protected void afterSpiStopped() throws Exception {
        super.afterSpiStopped();

        assertEquals(0, currentSpi.getAllocatedOffHeapMemory());
    }
{'fraction_non_alphanumeric': 0.13553259141494436, 'fraction_numerical': 0.013513513513513514, 'mean_word_length': 2.320580474934037, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 6, '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': '264823', 'n_tokens_mistral': 934, 'n_tokens_neox': 893, 'n_words': 111}