<commit_before>package be.fluid_it.shiro.jee.authc.modules;

import be.fluid_it.guice.extensions.multibindings.shiro.realms.RealmKey;
import be.fluid_it.guice.extensions.multibindings.shiro.realms.modules.MultiRealmBinder;
import be.fluid_it.shiro.jee.authc.ContainerAuthenticationRealm;
import com.google.inject.Binder;
import com.google.inject.Module;

public class ContainerAuthenticationRealmModule implements Module {
    @Override
    public void configure(Binder binder) {
        MultiRealmBinder.newMultiRealmBinder(binder)
                .addBinding(new RealmKey(ContainerAuthenticationRealm.class))
                .to(ContainerAuthenticationRealm.class);
    }
}<commit_msg>Added Guice wiring<commit_after>package be.fluid_it.shiro.jee.authc.modules;

import be.fluid_it.guice.extensions.multibindings.shiro.realms.Deployment;
import be.fluid_it.guice.extensions.multibindings.shiro.realms.DeploymentSimpleFacet;
import be.fluid_it.guice.extensions.multibindings.shiro.realms.RealmKey;
import be.fluid_it.guice.extensions.multibindings.shiro.realms.modules.MultiRealmBinder;
import be.fluid_it.shiro.jee.authc.ContainerAuthenticationRealm;
import com.google.inject.Binder;
import com.google.inject.Module;

public class ContainerAuthenticationRealmModule implements Module {
    @Override
    public void configure(Binder binder) {
        MultiRealmBinder.newMultiRealmBinder(binder)
                .addBinding(new RealmKey(ContainerAuthenticationRealm.class).cut(new DeploymentSimpleFacet(Deployment.Option.WAR)))
                .to(ContainerAuthenticationRealm.class);
    }
}
{'fraction_non_alphanumeric': 0.09096612296110414, 'fraction_numerical': 0.0, 'mean_word_length': 5.064638783269962, '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': '2148597', 'n_tokens_mistral': 514, 'n_tokens_neox': 492, 'n_words': 59}