<commit_before>package org.carbon.web.auth;

import java.util.List;
import java.util.Map;

import org.carbon.component.annotation.Component;
import org.carbon.component.annotation.Configuration;
import org.carbon.component.annotation.Inject;

/**
 * TODO add security logic per @Action
 *
 * @author <NAME> 2016/10/28.
 */
@Configuration
public class AuthConfiguration {

    @Inject(optional = true)
    private AuthConfigAdapter configAdapter;

    @Component
    public AuthStrategyContext map() {
        AuthDefinition definition = new AuthDefinition();
        configAdapter.configure(definition);
        List<AuthStrategy<? extends AuthIdentity>> strategies = definition.getStrategies();
        return new AuthStrategyContext(strategies);
    }
}
<commit_msg>change inject rule<commit_after>package org.carbon.web.auth;

import java.util.List;
import java.util.Map;

import org.carbon.component.annotation.Component;
import org.carbon.component.annotation.Configuration;
import org.carbon.component.annotation.Inject;

/**
 * TODO add security logic per @Action
 *
 * @author <NAME> 2016/10/28.
 */
@Configuration
public class AuthConfiguration {

    @Inject
    private AuthConfigAdapter configAdapter;

    @Component
    public AuthStrategyContext map() {
        AuthDefinition definition = new AuthDefinition();
        configAdapter.configure(definition);
        List<AuthStrategy<? extends AuthIdentity>> strategies = definition.getStrategies();
        return new AuthStrategyContext(strategies);
    }
}

{'fraction_non_alphanumeric': 0.09908136482939632, 'fraction_numerical': 0.010498687664041995, 'mean_word_length': 4.204778156996587, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '5527744', 'n_tokens_mistral': 416, 'n_tokens_neox': 395, 'n_words': 95}