<commit_before>package org.springframework.data.neo4j.demo.test.config;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import org.springframework.core.env.Environment;
import org.springframework.data.neo4j.demo.config.AppConfig;
import org.springframework.data.neo4j.demo.config.GraphDatabaseConfiguration;
import org.springframework.data.neo4j.server.InProcessServer;
import org.springframework.data.neo4j.server.Neo4jServer;

import javax.annotation.PostConstruct;

@Configuration
@Import({AppConfig.class, TestConfiguration.TestNeo4jDatabase.class})
public class TestConfiguration {
    @Configuration
    static class TestNeo4jDatabase extends GraphDatabaseConfiguration {
        @Override
        public Neo4jServer neo4jServer() {
            return super.neo4jServer();
            // return new InProcessServer();
        }
    }

    @Autowired
    protected Environment env;

    @PostConstruct
    public void reportSpringProfile() {
        for (String profile : env.getActiveProfiles()) {
            System.out.println("==== Active Profile:" + profile + " ====");
        }
    }
}<commit_msg>ensure inprocess server is used for unit testing<commit_after>package org.springframework.data.neo4j.demo.test.config;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import org.springframework.core.env.Environment;
import org.springframework.data.neo4j.demo.config.AppConfig;
import org.springframework.data.neo4j.demo.config.GraphDatabaseConfiguration;
import org.springframework.data.neo4j.server.InProcessServer;
import org.springframework.data.neo4j.server.Neo4jServer;

import javax.annotation.PostConstruct;

@Configuration
@Import({AppConfig.class, TestConfiguration.TestNeo4jDatabase.class})
public class TestConfiguration {
    @Configuration
    static class TestNeo4jDatabase extends GraphDatabaseConfiguration {
        @Override
        public Neo4jServer neo4jServer() {
            // return super.neo4jServer();
            return new InProcessServer();
        }
    }

    @Autowired
    protected Environment env;

    @PostConstruct
    public void reportSpringProfile() {
        for (String profile : env.getActiveProfiles()) {
            System.out.println("==== Active Profile:" + profile + " ====");
        }
    }
}
{'fraction_non_alphanumeric': 0.09860834990059641, 'fraction_numerical': 0.00874751491053678, 'mean_word_length': 4.134693877551021, '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': '1700791', 'n_tokens_mistral': 659, 'n_tokens_neox': 657, 'n_words': 121}