<commit_before>package org.javers.repository.sql.integration

import org.h2.tools.Server
import org.javers.core.JaversRepositoryE2ETest
import org.javers.core.model.SnapshotEntity
import org.javers.repository.sql.ConnectionProvider
import org.javers.repository.sql.DialectName
import org.javers.repository.sql.SqlRepositoryBuilder
import org.javers.repository.sql.reposiotries.PersistentGlobalId

import java.sql.Connection

import static org.javers.core.JaversBuilder.javers
import static org.javers.core.metamodel.object.InstanceIdDTO.instanceId

abstract class BaseSqlIntegrationTest extends JaversRepositoryE2ETest {

    abstract Connection getConnection();

    protected Connection dbConnection;

    @Override
    def setup() {
        Server.createTcpServer().start()
        dbConnection = getConnection()
<commit_msg>#104 cr fixes<commit_after>package org.javers.repository.sql.integration

import org.h2.tools.Server
import org.javers.core.JaversRepositoryE2ETest
import org.javers.core.model.SnapshotEntity
import org.javers.repository.sql.ConnectionProvider
import org.javers.repository.sql.DialectName
import org.javers.repository.sql.SqlRepositoryBuilder
import org.javers.repository.sql.reposiotries.PersistentGlobalId

import java.sql.Connection

import static org.javers.core.JaversBuilder.javers
import static org.javers.core.metamodel.object.InstanceIdDTO.instanceId

abstract class BaseSqlIntegrationTest extends JaversRepositoryE2ETest {

    abstract Connection getConnection()

    Connection dbConnection

    @Override
    def setup() {
        Server.createTcpServer().start()
        dbConnection = getConnection()

{'fraction_non_alphanumeric': 0.07725060827250609, 'fraction_numerical': 0.005474452554744526, 'mean_word_length': 5.375968992248062, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3756925', 'n_tokens_mistral': 479, 'n_tokens_neox': 461, 'n_words': 83}