<commit_before>package au.gov.ga.geodesy.support.spring;

import java.io.FileNotFoundException;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.util.ResourceUtils;

import au.gov.ga.geodesy.domain.model.SynchronousEventPublisher;
import au.gov.ga.geodesy.domain.model.event.EventPublisher;
import au.gov.ga.geodesy.port.adapter.geodesyml.GeodesyMLValidator;

@Configuration
public class GeodesyServiceTestConfig extends GeodesyServiceConfig {

    @Bean
    @Override
    public EventPublisher eventPublisher() {
        return new SynchronousEventPublisher();
    }

    @Bean
    public GeodesyMLValidator getGeodesyMLValidator() throws FileNotFoundException {
        String catalog = ResourceUtils.getFile("classpath:xsd/geodesyml-1.0.0-SNAPSHOT/catalog.xml").getAbsolutePath();
        return new GeodesyMLValidator(catalog);
    }
}<commit_msg>Use file path to find catalog.xml file<commit_after>package au.gov.ga.geodesy.support.spring;

import java.io.FileNotFoundException;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.util.ResourceUtils;

import au.gov.ga.geodesy.domain.model.SynchronousEventPublisher;
import au.gov.ga.geodesy.domain.model.event.EventPublisher;
import au.gov.ga.geodesy.port.adapter.geodesyml.GeodesyMLValidator;

@Configuration
public class GeodesyServiceTestConfig extends GeodesyServiceConfig {

    @Bean
    @Override
    public EventPublisher eventPublisher() {
        return new SynchronousEventPublisher();
    }

    @Bean
    public GeodesyMLValidator getGeodesyMLValidator() throws FileNotFoundException {
        String catalog = ResourceUtils.getFile("file:target/generated-resources/xsd/geodesyml-1.0.0-SNAPSHOT/catalog.xml").getAbsolutePath();
        return new GeodesyMLValidator(catalog);
    }
}
{'fraction_non_alphanumeric': 0.09208484221417486, 'fraction_numerical': 0.0031039834454216243, 'mean_word_length': 5.100946372239748, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 3}, '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': '1468132', 'n_tokens_mistral': 584, 'n_tokens_neox': 554, 'n_words': 90}