<commit_before>package grails.fixture

import org.codehaus.groovy.grails.commons.spring.DefaultRuntimeSpringConfiguration
import org.springframework.beans.factory.config.BeanPostProcessor
import org.springframework.context.ApplicationContext
import org.springframework.context.support.GenericApplicationContext

class FixtureLoaderRuntimeSpringConfiguration extends DefaultRuntimeSpringConfiguration {

    public FixtureLoaderRuntimeSpringConfiguration(ApplicationContext parent, ClassLoader classLoader) {
        super(parent, classLoader);
    }
    
    protected GenericApplicationContext createApplicationContext(ApplicationContext parent) {
        def ctx = super(parent)
        ctx.beanFactory.addBeanPostProcessor(
            [
                postProcessBeforeInitialization: { Object bean, String beanName -><commit_msg>• Fixed bug where constructor was being called instead of super implementation.<commit_after>package grails.fixture

import org.codehaus.groovy.grails.commons.spring.DefaultRuntimeSpringConfiguration
import org.springframework.beans.factory.config.BeanPostProcessor
import org.springframework.context.ApplicationContext
import org.springframework.context.support.GenericApplicationContext

class FixtureLoaderRuntimeSpringConfiguration extends DefaultRuntimeSpringConfiguration {

    public FixtureLoaderRuntimeSpringConfiguration(ApplicationContext parent, ClassLoader classLoader) {
        super(parent, classLoader);
    }
    
    protected GenericApplicationContext createApplicationContext(ApplicationContext parent) {
        def ctx = super.createApplicationContext(parent)
        ctx.beanFactory.addBeanPostProcessor(
            [
                postProcessBeforeInitialization: { Object bean, String beanName ->
{'fraction_non_alphanumeric': 0.055082339579784215, 'fraction_numerical': 0.0, 'mean_word_length': 5.204225352112676, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '6818036', 'n_tokens_mistral': 379, 'n_tokens_neox': 371, 'n_words': 79}